mirror of
https://github.com/n64decomp/mk64
synced 2026-05-25 07:03:01 -04:00
a753895359
* Assorted Matches * Matches in code_80027D00 Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
7459 lines
249 KiB
C
7459 lines
249 KiB
C
#include <ultra64.h>
|
|
#include <macros.h>
|
|
#include <defines.h>
|
|
#include <common_structs.h>
|
|
#include <actor_types.h>
|
|
#include <config.h>
|
|
#include "memory.h"
|
|
#include "math_util_2.h"
|
|
#include "objects.h"
|
|
#include "variables.h"
|
|
#include "common_textures.h"
|
|
#include "code_8001F980.h"
|
|
#include "code_800431B0.h"
|
|
#include "code_80071F00.h"
|
|
#include "main.h"
|
|
|
|
extern struct UnkStruct_800DC5EC *D_800DC5F0;
|
|
extern s32 D_8018D1F0;
|
|
|
|
void func_800431B0(Vec3f arg0, Vec3s arg1, f32 arg2, Vtx *vtx) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPVertex(gDisplayListHead++, vtx, 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
}
|
|
|
|
void func_80043220(Vec3f arg0, Vec3s arg1, f32 arg2, Gfx *gfx) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, &D_0D0077A0);
|
|
gSPDisplayList(gDisplayListHead++, gfx);
|
|
}
|
|
|
|
UNUSED void func_80043288(Vec3f arg0, Vec3s arg1, f32 arg2, Gfx *gfx) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0077A0);
|
|
gSPClearGeometryMode(gDisplayListHead++, G_CULL_BOTH);
|
|
gSPDisplayList(gDisplayListHead++, gfx);
|
|
gSPSetGeometryMode(gDisplayListHead++, G_CULL_BACK);
|
|
}
|
|
|
|
void func_80043328(Vec3f arg0, Vec3s arg1, f32 arg2, Gfx *gfx) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0077D0);
|
|
gSPDisplayList(gDisplayListHead++, gfx);
|
|
}
|
|
|
|
UNUSED void func_80043390(Vec3f arg0, Vec3s arg1, f32 arg2, Gfx *gfx) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0077F8);
|
|
gSPDisplayList(gDisplayListHead++, gfx);
|
|
}
|
|
|
|
UNUSED void func_800433F8(Vec3f arg0, Vec3s arg1, f32 arg2, Gfx *gfx) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007828);
|
|
gSPDisplayList(gDisplayListHead++, gfx);
|
|
}
|
|
|
|
UNUSED void func_80043460(Vec3f arg0, Vec3s arg1, f32 arg2, Gfx *gfx) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007828);
|
|
gSPClearGeometryMode(gDisplayListHead++, G_CULL_BOTH);
|
|
gSPDisplayList(gDisplayListHead++, gfx);
|
|
gSPSetGeometryMode(gDisplayListHead++, G_CULL_BACK);
|
|
}
|
|
|
|
void func_80043500(Vec3f arg0, Vec3s arg1, f32 arg2, Gfx *gfx) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007850);
|
|
gSPClearGeometryMode(gDisplayListHead++, G_CULL_BOTH);
|
|
gSPDisplayList(gDisplayListHead++, gfx);
|
|
gSPSetGeometryMode(gDisplayListHead++, G_CULL_BACK);
|
|
}
|
|
|
|
void func_800435A0(Vec3f arg0, Vec3su arg1, f32 arg2, Gfx *gfx, s32 arg4) {
|
|
func_80042F70(arg0, arg1, arg2);
|
|
|
|
gSPDisplayList(gDisplayListHead++, D_0D007878);
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, 0xFF, 0xFF, 0xFF, arg4);
|
|
gSPClearGeometryMode(gDisplayListHead++, G_CULL_BOTH);
|
|
gSPDisplayList(gDisplayListHead++, gfx);
|
|
gSPSetGeometryMode(gDisplayListHead++, G_CULL_BACK);
|
|
}
|
|
|
|
UNUSED void func_80043668(Vec3f arg0, Vec3s arg1, f32 arg2, Gfx *gfx) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0078A0);
|
|
gSPDisplayList(gDisplayListHead++, gfx);
|
|
}
|
|
|
|
UNUSED void func_800436D0(s32 arg0, s32 arg1, u16 arg2, f32 arg3, Vtx *vtx) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0078A0);
|
|
gSPVertex(gDisplayListHead++, vtx, 3, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006930);
|
|
|
|
}
|
|
|
|
UNUSED void func_80043764(s32 arg0, s32 arg1, u16 arg2, f32 arg3, Vtx *vtx) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0078A0);
|
|
gSPVertex(gDisplayListHead++, vtx, 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
}
|
|
|
|
UNUSED void func_800437F8(s32 arg0, s32 arg1, u16 arg2, f32 arg3, Vtx *vtx, s32 arg5) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0078A0);
|
|
|
|
gDPSetRenderMode(gDisplayListHead++, G_RM_CLD_SURF, G_RM_CLD_SURF2);
|
|
vtx[0].v.cn[3] = arg5;
|
|
vtx[1].v.cn[3] = arg5;
|
|
vtx[2].v.cn[3] = arg5;
|
|
vtx[3].v.cn[3] = arg5;
|
|
gSPVertex(gDisplayListHead++, vtx, 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
}
|
|
|
|
UNUSED void func_800438C4(s32 arg0, s32 arg1, u16 arg2, f32 arg3, Vtx *vtx, s32 arg5) {
|
|
vtx[1].v.ob[0] = arg5;
|
|
vtx[2].v.ob[0] = arg5;
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0078A0);
|
|
gDPSetRenderMode(gDisplayListHead++, G_RM_CLD_SURF, G_RM_CLD_SURF2);
|
|
gSPVertex(gDisplayListHead++, vtx, 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
}
|
|
|
|
UNUSED void func_8004398C(s32 arg0, s32 arg1, u16 arg2, f32 arg3, Vtx *vtx, s32 arg5) {
|
|
vtx[0].v.ob[0] = arg5;
|
|
vtx[3].v.ob[0] = arg5;
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0078A0);
|
|
gDPSetRenderMode(gDisplayListHead++, G_RM_CLD_SURF, G_RM_CLD_SURF2);
|
|
gSPVertex(gDisplayListHead++, vtx, 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
}
|
|
|
|
s32 func_80043A54(s32 arg0) {
|
|
s32 temp_a1;
|
|
s32 phi_v0;
|
|
s32 phi_v1 = 0;
|
|
|
|
phi_v0 = arg0;
|
|
do {
|
|
phi_v1++;
|
|
temp_a1 = phi_v0 / 2;
|
|
phi_v0 = temp_a1;
|
|
} while (temp_a1 != 1);
|
|
return phi_v1;
|
|
}
|
|
|
|
void func_80043A84(s8 *image, s32 width, s32 height) {
|
|
gDPLoadTextureBlock(gDisplayListHead++, image, G_IM_FMT_RGBA, G_IM_SIZ_32b, width, height, 0,
|
|
G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
}
|
|
|
|
void func_80043C28(s8 *image, s32 width, s32 height) {
|
|
gDPLoadTextureTile(gDisplayListHead++, image, G_IM_FMT_RGBA, G_IM_SIZ_32b, width, height,
|
|
0, 0, width - 1, height - 1, 0,
|
|
G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
}
|
|
|
|
void func_80043D50(s8 *image, s32 width, s32 height) {
|
|
gDPLoadTextureBlock(gDisplayListHead++, image, G_IM_FMT_RGBA, G_IM_SIZ_16b, width, height, 0,
|
|
G_TX_MIRROR | G_TX_CLAMP, G_TX_MIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
}
|
|
|
|
void func_80043EF8(s8 *image, s32 width, s32 height, s32 someMask) {
|
|
gDPLoadTextureBlock(gDisplayListHead++, image, G_IM_FMT_RGBA, G_IM_SIZ_16b, width, height, 0,
|
|
G_TX_MIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_CLAMP, someMask, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
}
|
|
|
|
void func_800440B8(s8 *image, s32 width, s32 height) {
|
|
gDPLoadTextureTile(gDisplayListHead++, image, G_IM_FMT_RGBA, G_IM_SIZ_16b, width, height,
|
|
0, 0, width - 1, height - 1, 0,
|
|
G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
}
|
|
|
|
void func_800441E0(s8 *image, s32 width, s32 height) {
|
|
gDPLoadTextureBlock(gDisplayListHead++, image, G_IM_FMT_IA, G_IM_SIZ_16b, width, height, 0,
|
|
G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
}
|
|
|
|
void func_80044388(s8 *image, s32 width, s32 height) {
|
|
gDPLoadTextureTile(gDisplayListHead++, image, G_IM_FMT_IA, G_IM_SIZ_16b, width, height,
|
|
0, 0, width - 1, height - 1, 0,
|
|
G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
}
|
|
|
|
void func_800444B0(s8 *image, s32 width, s32 height) {
|
|
gDPLoadTextureBlock(gDisplayListHead++, image, G_IM_FMT_IA, G_IM_SIZ_8b, width, height, 0,
|
|
G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
}
|
|
|
|
void func_80044658(s8 *image, s32 width, s32 height) {
|
|
gDPLoadTextureTile(gDisplayListHead++, image, G_IM_FMT_IA, G_IM_SIZ_8b, width, height,
|
|
0, 0, width - 1, height - 1, 0,
|
|
G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
}
|
|
|
|
void func_8004477C(s8 *image, s32 width, s32 height) {
|
|
gDPLoadTextureBlock(gDisplayListHead++, image, G_IM_FMT_I, G_IM_SIZ_8b, width, height, 0,
|
|
G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
void func_80044924(s8 *image, s32 width, s32 height) {
|
|
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 temp_t0;
|
|
s32 temp_t3;
|
|
s32 var_a0;
|
|
|
|
temp_v0 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0 + 8;
|
|
temp_v0->words.w0 = 0xFD700000;
|
|
temp_v0->words.w1 = (u32) image;
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->words.w0 = 0xF5700000;
|
|
temp_v0_2->words.w1 = 0x07080200;
|
|
temp_v0_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->words.w0 = 0xE6000000;
|
|
temp_v0_3->words.w1 = 0;
|
|
temp_v0_4 = gDisplayListHead;
|
|
temp_t3 = ((s32) ((width * height) + 3) >> 2) - 1;
|
|
gDisplayListHead = temp_v0_4 + 8;
|
|
temp_v0_4->words.w0 = 0xF3000000;
|
|
if (temp_t3 < 0x7FF) {
|
|
var_a0 = temp_t3;
|
|
} else {
|
|
var_a0 = 0x7FF;
|
|
}
|
|
temp_t0 = width / 16;
|
|
temp_v0_4->words.w1 = ((var_a0 & 0xFFF) << 0xC) | 0x07000000 | (((s32) (temp_t0 + 0x7FF) / temp_t0) & 0xFFF);
|
|
temp_v0_5 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_5 + 8;
|
|
temp_v0_5->words.w0 = 0xE7000000;
|
|
temp_v0_5->words.w1 = 0;
|
|
temp_v0_6 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_6 + 8;
|
|
temp_v0_6->words.w1 = 0x00080200;
|
|
temp_v0_6->words.w0 = ((((s32) ((width >> 1) + 7) >> 3) & 0x1FF) << 9) | 0xF5600000;
|
|
temp_v0_7 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_7 + 8;
|
|
temp_v0_7->words.w0 = 0xF2000000;
|
|
temp_v0_7->words.w1 = ((((width - 1) * 4) & 0xFFF) << 0xC) | (((height - 1) * 4) & 0xFFF);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80044924.s")
|
|
#endif
|
|
|
|
UNUSED void func_80044AB8(s8 *image, s32 width, s32 height) {
|
|
gDPLoadTextureTile_4b(gDisplayListHead++, image, G_IM_FMT_IA, width, height,
|
|
0, 0, width - 1, height - 1, 0,
|
|
G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
}
|
|
|
|
void func_80044BF8(s8 *image, s32 width, s32 height) {
|
|
gDPLoadTextureBlock(gDisplayListHead++, image, G_IM_FMT_I, G_IM_SIZ_8b, width, height, 0,
|
|
G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
void func_80044DA0(s8 *image, s32 width, s32 height) {
|
|
/*
|
|
It seems like we should be using the below macro, but its not quite right
|
|
gDPLoadMultiBlock_4b(gDisplayListHead++, image, G_IM_FMT_I, width, height, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
*/
|
|
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 temp_t0;
|
|
s32 temp_t3;
|
|
s32 var_a0;
|
|
|
|
temp_v0 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0 + 8;
|
|
temp_v0->words.w0 = 0xFD900000;
|
|
temp_v0->words.w1 = (u32) image;
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->words.w0 = 0xF5900000;
|
|
temp_v0_2->words.w1 = 0x07080200;
|
|
temp_v0_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->words.w0 = 0xE6000000;
|
|
temp_v0_3->words.w1 = 0;
|
|
temp_v0_4 = gDisplayListHead;
|
|
temp_t3 = ((s32) ((width * height) + 3) >> 2) - 1;
|
|
gDisplayListHead = temp_v0_4 + 8;
|
|
temp_v0_4->words.w0 = 0xF3000000;
|
|
if (temp_t3 < 0x7FF) {
|
|
var_a0 = temp_t3;
|
|
} else {
|
|
var_a0 = 0x7FF;
|
|
}
|
|
temp_t0 = width / 16;
|
|
temp_v0_4->words.w1 = ((var_a0 & 0xFFF) << 0xC) | 0x07000000 | (((s32) (temp_t0 + 0x7FF) / temp_t0) & 0xFFF);
|
|
temp_v0_5 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_5 + 8;
|
|
temp_v0_5->words.w0 = 0xE7000000;
|
|
temp_v0_5->words.w1 = 0;
|
|
temp_v0_6 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_6 + 8;
|
|
temp_v0_6->words.w1 = 0x00080200;
|
|
temp_v0_6->words.w0 = ((((s32) ((width >> 1) + 7) >> 3) & 0x1FF) << 9) | 0xF5800000;
|
|
temp_v0_7 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_7 + 8;
|
|
temp_v0_7->words.w0 = 0xF2000000;
|
|
temp_v0_7->words.w1 = ((((width - 1) * 4) & 0xFFF) << 0xC) | (((height - 1) * 4) & 0xFFF);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80044DA0.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
|
|
|
|
|
void func_80044F34(s32 arg0, s32 arg1, s32 arg2) {
|
|
s32 temp_t0;
|
|
s32 temp_t3;
|
|
void *temp_v0;
|
|
void *temp_v0_2;
|
|
void *temp_v0_3;
|
|
void *temp_v0_4;
|
|
void *temp_v0_5;
|
|
void *temp_v0_6;
|
|
void *temp_v0_7;
|
|
s32 phi_a0;
|
|
|
|
temp_v0 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0 + 8;
|
|
temp_v0->unk0 = 0xFD900000;
|
|
temp_v0->unk4 = arg0;
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->unk0 = 0xF5900000;
|
|
temp_v0_2->unk4 = 0x7080200;
|
|
temp_v0_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->unk0 = 0xE6000000;
|
|
temp_v0_3->unk4 = 0;
|
|
temp_v0_4 = gDisplayListHead;
|
|
temp_t3 = (((arg1 * arg2) + 3) >> 2) - 1;
|
|
gDisplayListHead = temp_v0_4 + 8;
|
|
temp_v0_4->unk0 = 0xF3000000;
|
|
if (temp_t3 < 0x7FF) {
|
|
phi_a0 = temp_t3;
|
|
} else {
|
|
phi_a0 = 0x7FF;
|
|
}
|
|
temp_t0 = arg1 / 0x10;
|
|
temp_v0_4->unk4 = ((phi_a0 & 0xFFF) << 0xC) | 0x7000000 | (((temp_t0 + 0x7FF) / temp_t0) & 0xFFF);
|
|
temp_v0_5 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_5 + 8;
|
|
temp_v0_5->unk0 = 0xE7000000;
|
|
temp_v0_5->unk4 = 0;
|
|
temp_v0_6 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_6 + 8;
|
|
temp_v0_6->unk4 = 0x80200;
|
|
temp_v0_6->unk0 = (((((arg1 >> 1) + 7) >> 3) & 0x1FF) << 9) | 0xF5800000;
|
|
temp_v0_7 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_7 + 8;
|
|
temp_v0_7->unk0 = 0xF2000000;
|
|
temp_v0_7->unk4 = ((((arg1 - 1) * 4) & 0xFFF) << 0xC) | (((arg2 - 1) * 4) & 0xFFF);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80044F34.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
void func_800450C8(s8 *image, s32 width, s32 height) {
|
|
Gfx *temp_v1;
|
|
Gfx *temp_v1_2;
|
|
Gfx *temp_v1_3;
|
|
Gfx *temp_v1_4;
|
|
Gfx *temp_v1_5;
|
|
Gfx *temp_v1_6;
|
|
Gfx *temp_v1_7;
|
|
s32 temp_a1;
|
|
s32 temp_t0;
|
|
s32 temp_t6;
|
|
s32 temp_v0;
|
|
s32 var_t3;
|
|
|
|
temp_v0 = func_80043A54(width);
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0xFD900000;
|
|
temp_v1->words.w1 = (u32) image;
|
|
temp_v1_2 = gDisplayListHead;
|
|
temp_t6 = (temp_v0 & 0xF) * 0x10;
|
|
gDisplayListHead = temp_v1_2 + 8;
|
|
temp_v1_2->words.w0 = 0xF5900000;
|
|
temp_v1_2->words.w1 = temp_t6 | 0x07080100;
|
|
temp_v1_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_3 + 8;
|
|
temp_v1_3->words.w0 = 0xE6000000;
|
|
temp_v1_3->words.w1 = 0;
|
|
temp_v1_4 = gDisplayListHead;
|
|
temp_t0 = ((s32) ((width * height) + 3) >> 2) - 1;
|
|
gDisplayListHead = temp_v1_4 + 8;
|
|
temp_v1_4->words.w0 = 0xF3000000;
|
|
if (temp_t0 < 0x7FF) {
|
|
var_t3 = temp_t0;
|
|
} else {
|
|
var_t3 = 0x7FF;
|
|
}
|
|
temp_a1 = width / 16;
|
|
temp_v1_4->words.w1 = ((var_t3 & 0xFFF) << 0xC) | 0x07000000 | (((s32) (temp_a1 + 0x7FF) / temp_a1) & 0xFFF);
|
|
temp_v1_5 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_5 + 8;
|
|
temp_v1_5->words.w0 = 0xE7000000;
|
|
temp_v1_5->words.w1 = 0;
|
|
temp_v1_6 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_6 + 8;
|
|
temp_v1_6->words.w1 = temp_t6 | 0x80100;
|
|
temp_v1_6->words.w0 = ((((s32) ((width >> 1) + 7) >> 3) & 0x1FF) << 9) | 0xF5800000;
|
|
temp_v1_7 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_7 + 8;
|
|
temp_v1_7->words.w0 = 0xF2000000;
|
|
temp_v1_7->words.w1 = ((((width - 1) * 4) & 0xFFF) << 0xC) | (((height - 1) * 4) & 0xFFF);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800450C8.s")
|
|
#endif
|
|
|
|
void func_800452A4(s8 *image, s32 width, s32 height) {
|
|
gDPLoadTextureBlock(gDisplayListHead++, image, G_IM_FMT_CI, G_IM_SIZ_8b, width, height, 0,
|
|
G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
}
|
|
|
|
void func_8004544C(s8 *image, s32 width, s32 height, s32 someMask) {
|
|
gDPLoadTextureBlock(gDisplayListHead++, image, G_IM_FMT_CI, G_IM_SIZ_8b, width, height, 0,
|
|
G_TX_MIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_CLAMP, someMask, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
}
|
|
|
|
UNUSED void func_80045614(s8 *image, s32 width, s32 height) {
|
|
gDPLoadTextureTile(gDisplayListHead++, image, G_IM_FMT_CI, G_IM_SIZ_8b, width, height,
|
|
0, 0, width - 1, height - 1, 0,
|
|
G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit 6b6e1390bf30013247343623194964ff13d0c45b
|
|
void func_80045738(s8 *image1, s8 *image2, s32 width, s32 height) {
|
|
Gfx *sp4C;
|
|
Gfx *sp28;
|
|
Gfx *sp24;
|
|
Gfx *sp20;
|
|
Gfx *sp1C;
|
|
s32 spC;
|
|
s32 sp4;
|
|
s32 sp0;
|
|
Gfx *temp_t0;
|
|
Gfx *temp_t1;
|
|
Gfx *temp_v0;
|
|
Gfx *temp_v0_10;
|
|
Gfx *temp_v0_11;
|
|
Gfx *temp_v0_13;
|
|
Gfx *temp_v0_14;
|
|
Gfx *temp_v0_15;
|
|
Gfx *temp_v0_16;
|
|
Gfx *temp_v0_17;
|
|
Gfx *temp_v0_2;
|
|
Gfx *temp_v0_3;
|
|
Gfx *temp_v0_5;
|
|
Gfx *temp_v0_6;
|
|
Gfx *temp_v0_7;
|
|
Gfx *temp_v0_8;
|
|
Gfx *temp_v0_9;
|
|
s32 temp_a0;
|
|
s32 temp_a0_2;
|
|
s32 temp_lo;
|
|
s32 temp_t5;
|
|
s32 temp_t6;
|
|
s32 temp_t8;
|
|
s32 temp_v0_12;
|
|
s32 temp_v0_4;
|
|
s32 var_t2;
|
|
s32 var_t2_2;
|
|
s32 var_t3;
|
|
s32 var_t3_2;
|
|
s32 var_t4;
|
|
s32 var_t4_2;
|
|
|
|
temp_t0 = gDisplayListHead;
|
|
gDisplayListHead = temp_t0 + 8;
|
|
temp_t0->words.w0 = 0xFCFFFFFF;
|
|
temp_t0->words.w1 = 0xFFFCF438;
|
|
temp_t1 = gDisplayListHead;
|
|
gDisplayListHead = temp_t1 + 8;
|
|
temp_t1->words.w1 = (u32) image2;
|
|
temp_t1->words.w0 = 0xFD900000;
|
|
temp_v0 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0 + 8;
|
|
temp_v0->words.w0 = 0xF5900100;
|
|
temp_v0->words.w1 = 0x070C0300;
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->words.w0 = 0xE6000000;
|
|
temp_v0_2->words.w1 = 0;
|
|
temp_v0_3 = gDisplayListHead;
|
|
var_t4 = 0x7FF;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
sp4C = temp_v0_3;
|
|
temp_v0_3->words.w0 = 0xF3000000;
|
|
temp_lo = width * height;
|
|
temp_t5 = ((s32) (temp_lo + 1) >> 1) - 1;
|
|
spC = temp_lo;
|
|
if (temp_t5 < 0x7FF) {
|
|
var_t4 = temp_t5;
|
|
}
|
|
temp_v0_4 = width / 8;
|
|
var_t3 = temp_v0_4;
|
|
if (temp_v0_4 <= 0) {
|
|
var_t3 = 1;
|
|
}
|
|
if (temp_v0_4 <= 0) {
|
|
var_t2 = 1;
|
|
} else {
|
|
var_t2 = temp_v0_4;
|
|
}
|
|
sp4C->words.w1 = (((s32) (var_t3 + 0x7FF) / var_t2) & 0xFFF) | 0x07000000 | ((var_t4 & 0xFFF) << 0xC);
|
|
temp_v0_5 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_5 + 8;
|
|
temp_v0_5->words.w0 = 0xE7000000;
|
|
temp_v0_5->words.w1 = 0;
|
|
temp_v0_6 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_6 + 8;
|
|
temp_v0_6->words.w0 = ((((s32) (width + 7) >> 3) & 0x1FF) << 9) | 0xF5880000 | 0x100;
|
|
temp_v0_6->words.w1 = 0x000C0300;
|
|
temp_v0_7 = gDisplayListHead;
|
|
var_t4_2 = 0x7FF;
|
|
gDisplayListHead = temp_v0_7 + 8;
|
|
temp_v0_7->words.w0 = 0xF2000000;
|
|
temp_t6 = (((width - 1) * 4) & 0xFFF) << 0xC;
|
|
temp_t8 = ((height - 1) * 4) & 0xFFF;
|
|
sp0 = temp_t8;
|
|
sp4 = temp_t6;
|
|
temp_v0_7->words.w1 = temp_t6 | temp_t8;
|
|
temp_v0_8 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_8 + 8;
|
|
temp_v0_8->words.w0 = 0xFD100000;
|
|
temp_v0_8->words.w1 = (u32) image1;
|
|
temp_v0_9 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_9 + 8;
|
|
temp_v0_9->words.w0 = 0xF5100000;
|
|
temp_v0_9->words.w1 = 0x070C0300;
|
|
temp_v0_10 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_10 + 8;
|
|
temp_v0_10->words.w0 = 0xE6000000;
|
|
temp_v0_10->words.w1 = 0;
|
|
temp_v0_11 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_11 + 8;
|
|
temp_v0_11->words.w0 = 0xF3000000;
|
|
temp_a0 = spC - 1;
|
|
if (temp_a0 < 0x7FF) {
|
|
var_t4_2 = temp_a0;
|
|
}
|
|
temp_a0_2 = width * 2;
|
|
temp_v0_12 = temp_a0_2 / 8;
|
|
var_t3_2 = temp_v0_12;
|
|
if (temp_v0_12 <= 0) {
|
|
var_t3_2 = 1;
|
|
}
|
|
if (temp_v0_12 <= 0) {
|
|
var_t2_2 = 1;
|
|
} else {
|
|
var_t2_2 = temp_v0_12;
|
|
}
|
|
temp_v0_11->words.w1 = (((s32) (var_t3_2 + 0x7FF) / var_t2_2) & 0xFFF) | 0x07000000 | ((var_t4_2 & 0xFFF) << 0xC);
|
|
temp_v0_13 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_13 + 8;
|
|
temp_v0_13->words.w0 = 0xE7000000;
|
|
temp_v0_13->words.w1 = 0;
|
|
temp_v0_14 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_14 + 8;
|
|
sp28 = temp_v0_14;
|
|
temp_v0_14->words.w1 = 0x000C0300;
|
|
temp_v0_14->words.w0 = ((((s32) (temp_a0_2 + 7) >> 3) & 0x1FF) << 9) | 0xF5100000;
|
|
temp_v0_15 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_15 + 8;
|
|
sp24 = temp_v0_15;
|
|
temp_v0_15->words.w0 = 0xF2000000;
|
|
temp_v0_15->words.w1 = sp4 | sp0;
|
|
temp_v0_16 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_16 + 8;
|
|
sp20 = temp_v0_16;
|
|
temp_v0_16->words.w0 = ((((s32) (width + 7) >> 3) & 0x1FF) << 9) | 0xF5880000 | 0x100;
|
|
sp20->words.w1 = 0x01000000;
|
|
temp_v0_17 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_17 + 8;
|
|
sp1C = temp_v0_17;
|
|
temp_v0_17->words.w0 = 0xF2000000;
|
|
sp1C->words.w1 = sp4 | 0x01000000 | sp0;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80045738.s")
|
|
#endif
|
|
|
|
void func_80045B2C(Vtx *arg0) {
|
|
gSPVertex(gDisplayListHead++, arg0, 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
}
|
|
|
|
void func_80045B74(Vtx *arg0) {
|
|
gSPVertex(gDisplayListHead++, arg0, 3, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006930);
|
|
}
|
|
|
|
UNUSED void func_80045BBC(Vec3f arg0, Vec3s arg1, f32 arg2, Vtx *arg3) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0078A0);
|
|
gSPVertex(gDisplayListHead++, arg3, 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
}
|
|
|
|
UNUSED void func_80045C48(Vec3f arg0, Vec3s arg1, f32 arg2, Vtx *arg3) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0078D0);
|
|
gSPClearGeometryMode(gDisplayListHead++, G_CULL_BOTH);
|
|
gSPVertex(gDisplayListHead++, arg3, 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
gSPSetGeometryMode(gDisplayListHead++, G_CULL_BACK);
|
|
}
|
|
|
|
void func_80045D0C(s8 *arg0, Vtx *arg1, s32 width, s32 arg3, s32 height) {
|
|
s32 vertexIndex;
|
|
s32 heightIndex;
|
|
s8 *var_s1;
|
|
|
|
vertexIndex = 0;
|
|
var_s1 = arg0;
|
|
for (heightIndex = 0; heightIndex < arg3 / height; heightIndex++) {
|
|
func_80043D50(var_s1, width, height);
|
|
func_80045B2C(&arg1[vertexIndex]);
|
|
var_s1 += width * height * 2;
|
|
vertexIndex += 4;
|
|
}
|
|
gSPTexture(gDisplayListHead++, 1, 1, 0, G_TX_RENDERTILE, G_OFF);
|
|
}
|
|
|
|
void func_80045E10(s8 *arg0, Vtx *arg1, s32 width, s32 arg3, s32 height) {
|
|
s32 vertexIndex;
|
|
s32 heightIndex;
|
|
s8 *var_s1;
|
|
|
|
vertexIndex = 0;
|
|
var_s1 = arg0;
|
|
for (heightIndex = 0; heightIndex < arg3 / height; heightIndex++) {
|
|
func_80043D50(var_s1, width, height);
|
|
func_80045B2C(&arg1[vertexIndex]);
|
|
var_s1 += width * (height - 1) * 2;
|
|
vertexIndex += 4;
|
|
}
|
|
gSPTexture(gDisplayListHead++, 1, 1, 0, G_TX_RENDERTILE, G_OFF);
|
|
}
|
|
|
|
void func_80045F18(s8 *arg0, Vtx *arg1, s32 width, s32 arg3, s32 height, s32 someMask) {
|
|
s32 vertexIndex;
|
|
s32 heightIndex;
|
|
s8 *var_s1;
|
|
|
|
vertexIndex = 0;
|
|
var_s1 = arg0;
|
|
for (heightIndex = 0; heightIndex < arg3 / height; heightIndex++) {
|
|
func_80043EF8(var_s1, width, height, someMask);
|
|
func_80045B2C(&arg1[vertexIndex]);
|
|
var_s1 += width * (height - 1) * 2;
|
|
vertexIndex += 4;
|
|
}
|
|
gSPTexture(gDisplayListHead++, 1, 1, 0, G_TX_RENDERTILE, G_OFF);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80045738(s8 *, s32, s32, s32); /* extern */
|
|
|
|
void func_80046030(s8 *arg0, s32 arg1, Vtx *arg2, s32 width, s32 arg4, s32 height) {
|
|
Gfx *temp_v0;
|
|
Gfx *temp_v0_2;
|
|
Gfx *temp_v0_3;
|
|
s32 temp_lo;
|
|
s32 temp_lo_2;
|
|
s32 var_s0;
|
|
s32 var_s2;
|
|
s32 var_s3;
|
|
s8 *var_s1;
|
|
|
|
temp_v0 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0 + 8;
|
|
temp_v0->words.w0 = 0x06000000;
|
|
temp_v0->words.w1 = (u32) D_0D008138;
|
|
var_s0 = 0;
|
|
temp_lo = arg4 / height;
|
|
var_s1 = arg0;
|
|
var_s2 = arg1;
|
|
var_s3 = 0;
|
|
if (temp_lo > 0) {
|
|
temp_lo_2 = width * (height - 1);
|
|
do {
|
|
func_80045738(var_s1, var_s2, width, height);
|
|
func_80045B2C(&arg2[var_s0]);
|
|
var_s3 += 1;
|
|
var_s1 += temp_lo_2 * 2;
|
|
var_s2 += temp_lo_2;
|
|
var_s0 += 4;
|
|
} while (var_s3 != temp_lo);
|
|
}
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->words.w0 = 0xBB000000;
|
|
temp_v0_2->words.w1 = 0x00010001;
|
|
temp_v0_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->words.w0 = 0x06000000;
|
|
temp_v0_3->words.w1 = (u32) D_0D008120;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80046030.s")
|
|
#endif
|
|
|
|
void func_800461A4(s8 *arg0, Vtx *arg1, s32 width, s32 arg3, s32 height) {
|
|
s32 vertexIndex;
|
|
s32 heightIndex;
|
|
s8 *var_s1;
|
|
|
|
vertexIndex = 0;
|
|
var_s1 = arg0;
|
|
for (heightIndex = 0; heightIndex < arg3 / height; heightIndex++) {
|
|
func_80043A84(var_s1, width, height);
|
|
func_80045B2C(&arg1[vertexIndex]);
|
|
var_s1 += width * height * 4;
|
|
vertexIndex += 4;
|
|
}
|
|
gSPTexture(gDisplayListHead++, 1, 1, 0, G_TX_RENDERTILE, G_OFF);
|
|
}
|
|
|
|
void func_800462A8(s8 *arg0, Vtx *arg1, s32 width, s32 arg3, s32 height) {
|
|
s32 vertexIndex;
|
|
s32 heightIndex;
|
|
s8 *var_s1;
|
|
|
|
vertexIndex = 0;
|
|
var_s1 = arg0;
|
|
for (heightIndex = 0; heightIndex < arg3 / height; heightIndex++) {
|
|
func_80043A84(var_s1, width, height);
|
|
func_80045B2C(&arg1[vertexIndex]);
|
|
var_s1 += width * (height - 1) * 4;
|
|
vertexIndex += 4;
|
|
}
|
|
gSPTexture(gDisplayListHead++, 1, 1, 0, G_TX_RENDERTILE, G_OFF);
|
|
}
|
|
|
|
void func_800463B0(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007928);
|
|
func_80045D0C(arg4, arg5, arg6, arg7, arg9);
|
|
}
|
|
|
|
void func_80046424(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007968);
|
|
func_8004B614(D_801656C0, D_801656D0, D_801656E0, 128, 128, 128, 255);
|
|
func_80045D0C(arg4, arg5, arg6, arg7, arg9);
|
|
}
|
|
|
|
void func_800464D0(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007948);
|
|
func_80045E10(arg4, arg5, arg6, arg7, arg9);
|
|
}
|
|
|
|
UNUSED void func_80046544(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0079A8);
|
|
func_80045E10(arg4, arg5, arg6, arg7, arg9);
|
|
}
|
|
|
|
void func_800465B8(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0079E8);
|
|
|
|
func_8004B2BC(arg4);
|
|
func_80045E10(arg5, arg6, arg7, arg8, argA);
|
|
}
|
|
|
|
UNUSED void func_80046634(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007948);
|
|
func_80046030(arg4, arg5, arg6, arg7, arg8, argA);
|
|
}
|
|
|
|
void func_800466B0(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007948);
|
|
func_80043D50(arg4, arg6, arg7);
|
|
func_80045B74(arg5);
|
|
}
|
|
|
|
UNUSED void func_80046720(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007928);
|
|
func_800461A4(arg4, arg5, arg6, arg7, arg9);
|
|
}
|
|
|
|
UNUSED void func_80046794(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007948);
|
|
func_800462A8(arg4, arg5, arg6, arg7, arg9);
|
|
}
|
|
|
|
void func_80046808(Vec3f arg0, Vec3s arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007948);
|
|
func_80045E10(arg3, arg4, arg5, arg6, arg8);
|
|
}
|
|
|
|
UNUSED void func_80046874(Vec3f arg0, Vec3s arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0079C8);
|
|
func_80045E10(arg3, arg4, arg5, arg6, arg8);
|
|
}
|
|
|
|
void func_800468E0(Vec3f arg0, Vec3s arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0079C8);
|
|
func_80045F18(arg3, arg4, arg5, arg6, arg8, arg9);
|
|
}
|
|
|
|
UNUSED void func_80046954(Vec3f arg0, Vec3s arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0079C8);
|
|
gSPClearGeometryMode(gDisplayListHead++, G_CULL_BOTH);
|
|
func_80045E10(arg3, arg4, arg5, arg6, arg8);
|
|
gSPSetGeometryMode(gDisplayListHead++, G_CULL_BACK);
|
|
}
|
|
|
|
void func_80046A00(Vec3f arg0, Vec3s arg1, f32 arg2, s32 arg3, Vtx *arg4, s32 arg5, s32 arg6) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007948);
|
|
func_80043D50(arg3, arg5, arg6);
|
|
func_80045B74(arg4);
|
|
}
|
|
|
|
UNUSED void func_80046A68(Vec3f arg0, Vec3s arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D0079C8);
|
|
func_800462A8(arg3, arg4, arg5, arg6, arg8);
|
|
}
|
|
|
|
UNUSED void func_80046AD4(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4) {
|
|
func_800464D0(arg0, arg1, arg2, arg3, arg4, D_0D005470, 8, 8, 8, 8);
|
|
}
|
|
|
|
UNUSED void func_80046B38(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4) {
|
|
func_800464D0(arg0, arg1, arg2, arg3, arg4, D_0D005770, 16, 16, 16, 16);
|
|
}
|
|
|
|
UNUSED void func_80046B9C(Vec3f arg0, Vec3s arg1, f32 arg2, s32 arg3) {
|
|
func_80046808(arg0, arg1, arg2, arg3, D_0D005770, 16, 16, 16, 16);
|
|
}
|
|
|
|
UNUSED void func_80046BEC(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5) {
|
|
func_800466B0(arg0, arg1, arg2, arg3, arg4, arg5, 16, 16);
|
|
}
|
|
|
|
UNUSED void func_80046C3C(s32 arg0, s32 arg1, f32 arg2, s32 arg3, s32 arg4) {
|
|
func_80046A00(arg0, arg1, arg2, arg3, arg4, 16, 16);
|
|
}
|
|
|
|
UNUSED void func_80046C78(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4) {
|
|
func_800464D0(arg0, arg1, arg2, arg3, arg4, D_0D005AE0, 32, 32, 32, 32);
|
|
}
|
|
|
|
UNUSED void func_80046CDC(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4) {
|
|
func_800464D0(arg0, arg1, arg2, arg3, arg4, D_0D005FB0, 64, 32, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_80046D40(Vec3f arg0, Vec3s arg1, f32 arg2, s32 arg3) {
|
|
func_80046808(arg0, arg1, arg2, arg3, D_0D005FB0, 64, 32, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_80046D90(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4) {
|
|
func_800464D0(arg0, arg1, arg2, arg3, arg4, D_0D0060B0, 64, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_80046DF4(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5) {
|
|
func_800465B8(arg0, arg1, arg2, arg3, arg4, arg5, D_0D0060B0, 64, 64, 64, 32);
|
|
}
|
|
|
|
void func_80046E60(s32 arg0, s32 arg1, s32 arg2, s32 arg3) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D007D78);
|
|
gDPLoadTLUT_pal256(gDisplayListHead++, arg0);
|
|
func_800452A4(arg1, arg2, arg3);
|
|
}
|
|
|
|
void func_80046F60(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D007D78);
|
|
gDPLoadTLUT_pal256(gDisplayListHead++, arg0);
|
|
func_8004544C(arg1, arg2, arg3, arg4);
|
|
}
|
|
|
|
void func_80047068(s8 *arg0, s8 *arg1, Vtx *arg2, s32 arg3, s32 arg4, s32 width, s32 height) {
|
|
s32 heightIndex;
|
|
s32 vertexIndex;
|
|
s8 *var_s2;
|
|
|
|
gDPLoadTLUT_pal256(gDisplayListHead++, arg0);
|
|
vertexIndex = 0;
|
|
var_s2 = arg1;
|
|
for (heightIndex = 0; heightIndex < arg4 / height; heightIndex++) {
|
|
func_800452A4(var_s2, width, height);
|
|
gSPVertex(gDisplayListHead++, &arg2[vertexIndex], 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
var_s2 += width * height;
|
|
vertexIndex += 4;
|
|
}
|
|
gSPTexture(gDisplayListHead++, 1, 1, 0, G_TX_RENDERTILE, G_OFF);
|
|
}
|
|
|
|
void func_80047270(s8 *arg0, s8 *arg1, Vtx *arg2, s32 arg3, s32 arg4, s32 width, s32 height) {
|
|
s32 heightIndex;
|
|
s32 vertexIndex;
|
|
s8 *var_s2;
|
|
|
|
gDPLoadTLUT_pal256(gDisplayListHead++, arg0);
|
|
vertexIndex = 0;
|
|
var_s2 = arg1;
|
|
for (heightIndex = 0; heightIndex < arg4 / height; heightIndex++) {
|
|
func_800452A4(var_s2, width, height);
|
|
gSPVertex(gDisplayListHead++, &arg2[vertexIndex], 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
var_s2 += width * (height - 1);
|
|
vertexIndex += 4;
|
|
}
|
|
gSPTexture(gDisplayListHead++, 1, 1, 0, G_TX_RENDERTILE, G_OFF);
|
|
}
|
|
|
|
void func_8004747C(s8 *arg0, s8 *arg1, Vtx *arg2, s32 arg3, s32 arg4, s32 width, s32 height, s32 someMask) {
|
|
s32 heightIndex;
|
|
s32 vertexIndex;
|
|
s8 *var_s2;
|
|
|
|
gDPLoadTLUT_pal256(gDisplayListHead++, arg0);
|
|
vertexIndex = 0;
|
|
var_s2 = arg1;
|
|
for (heightIndex = 0; heightIndex < arg4 / height; heightIndex++) {
|
|
func_8004544C(var_s2, width, height, someMask);
|
|
gSPVertex(gDisplayListHead++, &arg2[vertexIndex], 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
var_s2 += width * (height - 1);
|
|
vertexIndex += 4;
|
|
}
|
|
gSPTexture(gDisplayListHead++, 1, 1, 0, G_TX_RENDERTILE, G_OFF);
|
|
}
|
|
|
|
void func_8004768C(s8 *arg0, s8 *arg1, Vtx *arg2, s32 arg3, s32 width, s32 height) {
|
|
s32 heightIndex;
|
|
s32 vertexIndex;
|
|
s8 *var_s2;
|
|
|
|
gDPLoadTLUT_pal256(gDisplayListHead++, arg0);
|
|
vertexIndex = 0;
|
|
var_s2 = arg1;
|
|
for (heightIndex = 0; heightIndex < arg3 / height; heightIndex++) {
|
|
// Something seems off about arguments here, but if it matches it matches
|
|
func_800452A4(var_s2, height, width);
|
|
gSPVertex(gDisplayListHead++, &arg2[vertexIndex], 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
var_s2 += height * width;
|
|
vertexIndex += 4;
|
|
}
|
|
gSPTexture(gDisplayListHead++, 1, 1, 0, G_TX_RENDERTILE, G_OFF);
|
|
}
|
|
|
|
void func_8004788C(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007CB8);
|
|
func_80047068(arg4, arg5, arg6, arg7, arg8, arg9, argA);
|
|
}
|
|
|
|
void func_80047910(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007CD8);
|
|
func_80047270(arg4, arg5, arg6, arg7, arg8, arg9, argA);
|
|
}
|
|
|
|
void func_80047994(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007CF8);
|
|
func_80047270(arg4, arg5, arg6, arg7, arg8, arg9, argA);
|
|
}
|
|
|
|
void func_80047A18(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007D18);
|
|
func_80047068(arg4, arg5, arg6, arg7, arg8, arg9, argA);
|
|
}
|
|
|
|
void func_80047A9C(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007D38);
|
|
func_80047270(arg4, arg5, arg6, arg7, arg8, arg9, argA);
|
|
}
|
|
|
|
UNUSED void func_80047B20(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007D38);
|
|
func_8004768C(arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
void func_80047B9C(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, s32 arg6, Vtx *arg7, s32 arg8, s32 arg9, s32 argA, s32 argB) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007DB8);
|
|
func_8004B2BC(arg4);
|
|
func_80047068(arg5, arg6, arg7, arg8, arg9, argA, argB);
|
|
}
|
|
|
|
UNUSED void func_80047C28(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, s32 arg6, Vtx *arg7, s32 arg8, s32 arg9, s32 argA, s32 argB) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007DD8);
|
|
func_8004B2BC(arg4);
|
|
func_80047270(arg5, arg6, arg7, arg8, arg9, argA, argB);
|
|
}
|
|
|
|
void func_80047CB4(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, s32 arg6, Vtx *arg7, s32 arg8, s32 arg9, s32 argA, s32 argB) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007E38);
|
|
func_8004B2BC(arg4);
|
|
func_80047068(arg5, arg6, arg7, arg8, arg9, argA, argB);
|
|
}
|
|
|
|
UNUSED void func_80047D40(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, s32 arg6, Vtx *arg7, s32 arg8, s32 arg9, s32 argA, s32 argB) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007E58);
|
|
func_8004B2BC(arg4);
|
|
func_80047270(arg5, arg6, arg7, arg8, arg9, argA, argB);
|
|
}
|
|
|
|
UNUSED void func_80047DCC(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007CB8);
|
|
func_80047068(arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
void func_80047E48(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007CD8);
|
|
func_80047270(arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
UNUSED void func_80047EC4(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007D18);
|
|
func_80047068(arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
void func_80047F40(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007D38);
|
|
func_80047270(arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
UNUSED void func_80047FBC(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007D58);
|
|
func_80047270(arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
UNUSED void func_80048038(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007D98);
|
|
func_80047068(arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
void func_800480B4(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007D78);
|
|
func_80047270(arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
void func_80048130(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007D78);
|
|
func_8004747C(arg3, arg4, arg5, arg6, arg7, arg8, arg9, argA);
|
|
}
|
|
|
|
UNUSED void func_800481B4(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007D78);
|
|
func_8004768C(arg3, arg4, arg5, arg6, arg7, arg8);
|
|
}
|
|
|
|
UNUSED void func_80048228(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, Vtx *arg6, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007DB8);
|
|
func_8004B2BC(arg3);
|
|
func_80047068(arg4, arg5, arg6, arg7, arg8, arg9, argA);
|
|
}
|
|
|
|
void func_800482AC(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, Vtx *arg6, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007DD8);
|
|
func_8004B2BC(arg3);
|
|
func_80047270(arg4, arg5, arg6, arg7, arg8, arg9, argA);
|
|
}
|
|
|
|
UNUSED void func_80048330(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, Vtx *arg6, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007E38);
|
|
func_8004B2BC(arg3);
|
|
func_80047068(arg4, arg5, arg6, arg7, arg8, arg9, argA);
|
|
}
|
|
|
|
void func_800483B4(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, Vtx *arg6, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007E58);
|
|
func_8004B2BC(arg3);
|
|
func_80047270(arg4, arg5, arg6, arg7, arg8, arg9, argA);
|
|
}
|
|
|
|
void func_80048438(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, Vtx *arg6, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007DF8);
|
|
func_8004B2BC(arg3);
|
|
func_80047068(arg4, arg5, arg6, arg7, arg8, arg9, argA);
|
|
}
|
|
|
|
void func_800484BC(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, Vtx *arg6, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007E18);
|
|
func_8004B2BC(arg3);
|
|
func_80047270(arg4, arg5, arg6, arg7, arg8, arg9, argA);
|
|
}
|
|
|
|
void func_80048540(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, Vtx *arg6, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007E98);
|
|
func_8004B2BC(arg3);
|
|
func_80047270(arg4, arg5, arg6, arg7, arg8, arg9, argA);
|
|
}
|
|
|
|
void func_800485C4(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, Vtx *arg6, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007E98);
|
|
gDPSetAlphaCompare(gDisplayListHead++, G_AC_DITHER);
|
|
gDPSetRenderMode(gDisplayListHead++, G_RM_AA_ZB_XLU_SURF, G_RM_AA_ZB_XLU_SURF2);
|
|
|
|
func_8004B2BC(arg3);
|
|
func_80047270(arg4, arg5, arg6, arg7, arg8, arg9, argA);
|
|
|
|
gDPSetAlphaCompare(gDisplayListHead++, G_AC_NONE);
|
|
}
|
|
|
|
UNUSED void func_800486B0(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_8004788C(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 24, 48, 24, 48);
|
|
}
|
|
|
|
UNUSED void func_80048718(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_8004788C(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 32, 32, 32, 32);
|
|
}
|
|
|
|
UNUSED void func_80048780(s32 arg0, s32 arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_80048540(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 48, 48, 48, 40);
|
|
}
|
|
|
|
UNUSED void func_800487DC(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_8004788C(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 48, 48, 48, 48);
|
|
}
|
|
|
|
UNUSED void func_80048844(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_8004788C(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 64, 32, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_800488AC(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_8004788C(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 64, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_80048914(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_80047910(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 64, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_8004897C(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_80047994(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 64, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_800489E4(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_80047A18(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 64, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_80048A4C(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_80047A9C(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 64, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_80048AB4(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, s32 arg6, Vtx *arg7) {
|
|
func_80047B9C(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, 64, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_80048B24(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, s32 arg6, Vtx *arg7) {
|
|
func_80047CB4(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, 64, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_80048B94(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_80047E48(arg0, arg1, arg2, arg3, arg4, arg5, 64, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_80048BE8(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_80047F40(arg0, arg1, arg2, arg3, arg4, arg5, 64, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_80048C3C(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_800480B4(arg0, arg1, arg2, arg3, arg4, arg5, 64, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_80048C90(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_800482AC(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 64, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_80048CEC(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_800483B4(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 64, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_80048D48(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_800484BC(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 64, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_80048DA4(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_80048540(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 64, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_80048E00(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_80047910(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 72, 48, 72, 24);
|
|
}
|
|
|
|
UNUSED void func_80048E68(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_80047A18(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 72, 48, 72, 24);
|
|
}
|
|
|
|
UNUSED void func_80048ED0(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, s32 arg5, Vtx *arg6) {
|
|
func_80047A9C(arg0, arg1, arg2, arg3, arg4, arg5, arg6, 72, 48, 72, 24);
|
|
}
|
|
|
|
UNUSED void func_80048F38(s32 arg0, s32 arg1, f32 arg2, s32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_800480B4(arg0, arg1, arg2, arg3, arg4, arg5, 72, 48, 72, 24);
|
|
}
|
|
|
|
void func_80048F8C(s8 *arg0, Vtx *arg1, s32 arg2, s32 arg3, s32 width, s32 height) {
|
|
s32 heightIndex;
|
|
s32 widthIndex;
|
|
s32 vertexIndex;
|
|
s8 *var_s3;
|
|
|
|
vertexIndex = 0;
|
|
var_s3 = arg0;
|
|
for (heightIndex = 0; heightIndex < arg3 / height; heightIndex++) {
|
|
for (widthIndex = 0; widthIndex < arg2 / width; widthIndex++) {
|
|
func_800441E0(var_s3, width, height);
|
|
gSPVertex(gDisplayListHead++, &arg1[vertexIndex], 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
var_s3 += width * height * 2;
|
|
vertexIndex += 4;
|
|
}
|
|
}
|
|
gSPTexture(gDisplayListHead++, 1, 1, 0, G_TX_RENDERTILE, G_OFF);
|
|
}
|
|
|
|
void func_80049130(s8 *arg0, Vtx *arg1, s32 arg2, s32 arg3, s32 width, s32 height) {
|
|
s32 heightIndex;
|
|
s32 widthIndex;
|
|
s32 vertexIndex;
|
|
s8 *var_s3;
|
|
|
|
vertexIndex = 0;
|
|
var_s3 = arg0;
|
|
for (heightIndex = 0; heightIndex < arg3 / height; heightIndex++) {
|
|
for (widthIndex = 0; widthIndex < arg2 / width; widthIndex++) {
|
|
func_80044388(var_s3, width, height);
|
|
gSPVertex(gDisplayListHead++, &arg1[vertexIndex], 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
var_s3 += width * height * 2;
|
|
vertexIndex += 4;
|
|
}
|
|
}
|
|
gSPTexture(gDisplayListHead++, 1, 1, 0, G_TX_RENDERTILE, G_OFF);
|
|
}
|
|
|
|
void func_800492D4(s8 *arg0, Vtx *arg1, s32 arg2, s32 arg3, s32 width, s32 height) {
|
|
s32 heightIndex;
|
|
s32 widthIndex;
|
|
s32 vertexIndex;
|
|
s8 *var_s3;
|
|
|
|
vertexIndex = 0;
|
|
var_s3 = arg0;
|
|
for (heightIndex = 0; heightIndex < arg3 / height; heightIndex++) {
|
|
for (widthIndex = 0; widthIndex < arg2 / width; widthIndex++) {
|
|
func_800444B0(var_s3, width, height);
|
|
gSPVertex(gDisplayListHead++, &arg1[vertexIndex], 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
var_s3 += width * height;
|
|
vertexIndex += 4;
|
|
}
|
|
}
|
|
gSPTexture(gDisplayListHead++, 1, 1, 0, G_TX_RENDERTILE, G_OFF);
|
|
}
|
|
|
|
void func_80049478(s8 *arg0, Vtx *arg1, s32 arg2, s32 arg3, s32 width, s32 height) {
|
|
s32 heightIndex;
|
|
s32 widthIndex;
|
|
s32 vertexIndex;
|
|
s8 *var_s3;
|
|
|
|
vertexIndex = 0;
|
|
var_s3 = arg0;
|
|
for (heightIndex = 0; heightIndex < arg3 / height; heightIndex++) {
|
|
for (widthIndex = 0; widthIndex < arg2 / width; widthIndex++) {
|
|
func_80044658(var_s3, width, height);
|
|
gSPVertex(gDisplayListHead++, &arg1[vertexIndex], 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
var_s3 += width * height;
|
|
vertexIndex += 4;
|
|
}
|
|
}
|
|
gSPTexture(gDisplayListHead++, 1, 1, 0, G_TX_RENDERTILE, G_OFF);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80044924(s8 *, s32, s32); /* extern */
|
|
|
|
void func_8004961C(s8 *arg0, Vtx *arg1, s32 arg2, s32 arg3, s32 width, s32 height) {
|
|
s32 sp5C;
|
|
s32 sp40;
|
|
Gfx *temp_v0;
|
|
Gfx *temp_v0_2;
|
|
Gfx *temp_v0_3;
|
|
s32 temp_lo;
|
|
s32 temp_lo_2;
|
|
s32 var_s0;
|
|
s32 var_s2;
|
|
s32 var_v0;
|
|
s8 *var_s3;
|
|
|
|
temp_lo = arg3 / height;
|
|
var_s2 = 0;
|
|
var_s3 = arg0;
|
|
sp40 = temp_lo;
|
|
var_v0 = 0;
|
|
if (temp_lo > 0) {
|
|
temp_lo_2 = arg2 / width;
|
|
do {
|
|
var_s0 = 0;
|
|
if (temp_lo_2 > 0) {
|
|
sp5C = var_v0;
|
|
do {
|
|
// gSPVertex(gDisplayListHead++, &arg2[var_s1], 4, 0);
|
|
// gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
func_80044924(var_s3, width, height);
|
|
temp_v0 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0 + 8;
|
|
temp_v0->words.w0 = 0x0400103F;
|
|
var_s0 += 1;
|
|
temp_v0->words.w1 = (u32) &arg1[var_s2];
|
|
temp_v0_2 = gDisplayListHead;
|
|
var_s3 = &var_s3[(s32) (width * height) / 2];
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
var_s2 += 4;
|
|
temp_v0_2->words.w1 = (u32) D_0D006940;
|
|
temp_v0_2->words.w0 = 0x06000000;
|
|
} while (var_s0 != temp_lo_2);
|
|
var_v0 = sp5C;
|
|
}
|
|
var_v0 += 1;
|
|
} while (var_v0 != sp40);
|
|
}
|
|
// gSPTexture(gDisplayListHead++, 0, 0, 0, G_TX_RENDERTILE, G_OFF);
|
|
temp_v0_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->words.w0 = 0xBB000000;
|
|
temp_v0_3->words.w1 = 0x00010001;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004961C.s")
|
|
#endif
|
|
|
|
void func_800497CC(s8 *arg0, Vtx *arg1, s32 arg2, s32 arg3, s32 width, s32 height) {
|
|
s32 heightIndex;
|
|
s32 widthIndex;
|
|
s32 vertexIndex;
|
|
s8 *var_s3;
|
|
|
|
vertexIndex = 0;
|
|
var_s3 = arg0;
|
|
for (heightIndex = 0; heightIndex < arg3 / height; heightIndex++) {
|
|
for (widthIndex = 0; widthIndex < arg2 / width; widthIndex++) {
|
|
func_80044BF8(var_s3, width, height);
|
|
gSPVertex(gDisplayListHead++, &arg1[vertexIndex], 4, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
var_s3 += width * height;
|
|
vertexIndex += 4;
|
|
}
|
|
}
|
|
gSPTexture(gDisplayListHead++, 1, 1, 0, G_TX_RENDERTILE, G_OFF);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80044DA0(s8 *, s32, s32); /* extern */
|
|
|
|
void func_80049970(s8 *arg0, Vtx *arg1, s32 arg2, s32 arg3, s32 width, s32 height) {
|
|
s32 sp5C;
|
|
s32 sp40;
|
|
Gfx *temp_v0;
|
|
Gfx *temp_v0_2;
|
|
Gfx *temp_v0_3;
|
|
s32 temp_lo;
|
|
s32 temp_lo_2;
|
|
s32 var_s0;
|
|
s32 var_s2;
|
|
s32 var_v0;
|
|
s8 *var_s3;
|
|
|
|
temp_lo = arg3 / height;
|
|
var_s2 = 0;
|
|
var_s3 = arg0;
|
|
sp40 = temp_lo;
|
|
var_v0 = 0;
|
|
if (temp_lo > 0) {
|
|
temp_lo_2 = arg2 / width;
|
|
do {
|
|
var_s0 = 0;
|
|
if (temp_lo_2 > 0) {
|
|
sp5C = var_v0;
|
|
do {
|
|
func_80044DA0(var_s3, width, height);
|
|
// gSPVertex(gDisplayListHead++, &arg2[var_s1], 4, 0);
|
|
// gSPDisplayList(gDisplayListHead++, D_0D006940);
|
|
temp_v0 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0 + 8;
|
|
temp_v0->words.w0 = 0x0400103F;
|
|
var_s0 += 1;
|
|
temp_v0->words.w1 = (u32) &arg1[var_s2];
|
|
temp_v0_2 = gDisplayListHead;
|
|
var_s3 = &var_s3[(s32) (width * height) / 2];
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
var_s2 += 4;
|
|
temp_v0_2->words.w1 = (u32) D_0D006940;
|
|
temp_v0_2->words.w0 = 0x06000000;
|
|
} while (var_s0 != temp_lo_2);
|
|
var_v0 = sp5C;
|
|
}
|
|
var_v0 += 1;
|
|
} while (var_v0 != sp40);
|
|
}
|
|
// gSPTexture(gDisplayListHead++, 0, 0, 0, G_TX_RENDERTILE, G_OFF);
|
|
temp_v0_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->words.w0 = 0xBB000000;
|
|
temp_v0_3->words.w1 = 0x00010001;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80049970.s")
|
|
#endif
|
|
|
|
void func_80049B20(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A40);
|
|
func_80048F8C(arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
UNUSED void func_80049B9C(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A40);
|
|
func_80049130(arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
void func_80049C18(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A40);
|
|
func_800492D4(arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
void func_80049C94(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A60);
|
|
func_800492D4(arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
void func_80049D10(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A80);
|
|
func_800492D4(arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
void func_80049D8C(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007AA0);
|
|
func_800492D4(arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
UNUSED void func_80049E08(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 red, s32 green, s32 blue, s32 alpha, s32 arg8, Vtx *arg9, s32 argA, s32 argB, s32 argC, s32 argD) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A40);
|
|
func_8004B35C(red, green, blue, alpha);
|
|
func_800492D4(arg8, arg9, argA, argB, argC, argD);
|
|
}
|
|
|
|
UNUSED void func_80049E98(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 red, s32 green, s32 blue, s32 alpha, s32 arg8, Vtx *arg9, s32 argA, s32 argB, s32 argC, s32 argD) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A60);
|
|
func_8004B35C(red, green, blue, alpha);
|
|
func_800492D4(arg8, arg9, argA, argB, argC, argD);
|
|
}
|
|
|
|
UNUSED void func_80049F28(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 red, s32 green, s32 blue, s32 alpha, s32 arg8, Vtx *arg9, s32 argA, s32 argB, s32 argC, s32 argD) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007B00);
|
|
func_8004B35C(red, green, blue, alpha);
|
|
func_800492D4(arg8, arg9, argA, argB, argC, argD);
|
|
}
|
|
|
|
UNUSED void func_80049FB8(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A40);
|
|
func_80049478(arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
UNUSED void func_8004A034(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A60);
|
|
func_80049478(arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
void func_8004A0B0(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A40);
|
|
func_8004961C(arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
UNUSED void func_8004A12C(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 red, s32 green, s32 blue, s32 alpha, s32 arg8, Vtx *arg9, s32 argA, s32 argB, s32 argC, s32 argD) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A60);
|
|
func_8004B35C(red, green, blue, alpha);
|
|
func_8004961C(arg8, arg9, argA, argB, argC, argD);
|
|
}
|
|
UNUSED void func_8004A1BC(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A40);
|
|
gDPSetCombineLERP(gDisplayListHead++, 1, 0, SHADE, 0, 0, 0, 0, TEXEL0, 1, 0, SHADE, 0, 0, 0, 0, TEXEL0);
|
|
func_80049970(arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
void func_8004A258(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A60);
|
|
gDPSetCombineLERP(gDisplayListHead++, 1, 0, SHADE, 0, 0, 0, 0, TEXEL0, 1, 0, SHADE, 0, 0, 0, 0, TEXEL0);
|
|
func_80049970(arg4, arg5, arg6, arg7, arg8, arg9);
|
|
}
|
|
|
|
void func_8004A2F4(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 red, s32 green, s32 blue, s32 alpha, s32 arg8, Vtx *arg9, s32 argA, s32 argB, s32 argC, s32 argD) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A40);
|
|
func_8004B414(red, green, blue, alpha);
|
|
func_80049970(arg8, arg9, argA, argB, argC, argD);
|
|
}
|
|
|
|
void func_8004A384(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 red, s32 green, s32 blue, s32 alpha, s32 arg8, Vtx *arg9, s32 argA, s32 argB, s32 argC, s32 argD) {
|
|
func_80042330(arg0, arg1, arg2, arg3);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A60);
|
|
func_8004B414(red, green, blue, alpha);
|
|
func_80049970(arg8, arg9, argA, argB, argC, argD);
|
|
}
|
|
|
|
void func_8004A414(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, Vtx *arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A40);
|
|
func_800492D4(arg3, arg4, arg5, arg6, arg7, arg8);
|
|
}
|
|
|
|
UNUSED void func_8004A488(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, Vtx *arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007A60);
|
|
func_800492D4(arg3, arg4, arg5, arg6, arg7, arg8);
|
|
}
|
|
|
|
UNUSED void func_8004A4FC(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, Vtx *arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007AC0);
|
|
func_800492D4(arg3, arg4, arg5, arg6, arg7, arg8);
|
|
}
|
|
|
|
UNUSED void func_8004A570(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, Vtx *arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007AE0);
|
|
func_800492D4(arg3, arg4, arg5, arg6, arg7, arg8);
|
|
}
|
|
|
|
UNUSED void func_8004A5E4(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, Vtx *arg4) {
|
|
func_8004A414(arg0, arg1, arg2, arg3, arg4, 16, 16, 16, 16);
|
|
}
|
|
|
|
#ifdef NEEDS_RODATA
|
|
// data_0DD0A0_3_0_1.s
|
|
// D_800EE030
|
|
|
|
void func_8004A630(UnkActorInner *arg0, Vec3f arg1, f32 arg2) {
|
|
if (func_80041924(arg0, arg1) != 0) {
|
|
D_80183E50[0] = arg1[0];
|
|
D_80183E50[1] = func_802ABE30(arg1[0], 0.0f, arg1[2], arg0->unk3A) + 0.8;
|
|
D_80183E50[2] = arg1[2];
|
|
func_80043050(D_80183E50, arg0->unk60, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007B98);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004A630.s")
|
|
#endif
|
|
|
|
#ifdef NEEDS_RODATA
|
|
// data_0DD0A0_3_0_1.s
|
|
// D_800EE038
|
|
|
|
void func_8004A6EC(s32 objectIndex, f32 arg1) {
|
|
struct_80165C18_entry *temp_v0;
|
|
|
|
if ((func_8007223C(objectIndex, 0x00000020) != 0) && (func_8007223C(objectIndex, 0x00800000) != 0)) {
|
|
temp_v0 = &D_80165C18[objectIndex];
|
|
D_80183E50[0] = temp_v0->unk_004[0];
|
|
D_80183E50[1] = temp_v0->unk_044 + 0.8;
|
|
D_80183E50[2] = temp_v0->unk_004[2];
|
|
func_80042E00(D_80183E50, temp_v0->unk_0B8, arg1);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007B20);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004A6EC.s")
|
|
#endif
|
|
|
|
#ifdef NEEDS_RODATA
|
|
// data_0DD0A0_3_0_1.s
|
|
// D_800EE040
|
|
|
|
void func_8004A7AC(s32 objectIndex, f32 arg1) {
|
|
struct_80165C18_entry *temp_v0;
|
|
|
|
if (func_8007223C(objectIndex, 0x00000020) != 0) {
|
|
temp_v0 = &D_80165C18[objectIndex];
|
|
D_80183E50[0] = temp_v0->unk_004[0];
|
|
D_80183E50[1] = temp_v0->unk_044 + 0.8;
|
|
D_80183E50[2] = temp_v0->unk_004[2];
|
|
D_80183E98[0] = 0x4000;
|
|
D_80183E98[1] = 0;
|
|
D_80183E98[2] = 0;
|
|
func_80042E00(D_80183E50, &D_80183E98, arg1);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007B20);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004A7AC.s")
|
|
#endif
|
|
|
|
#if NEEDS_RODATA
|
|
// data_0DD0A0_3_0_1.s
|
|
// D_800EE048
|
|
|
|
void func_8004A870(s32 objectIndex, f32 arg1) {
|
|
Mat4 sp30;
|
|
struct_80165C18_entry *temp_v0;
|
|
|
|
if ((func_8007223C(objectIndex, 0x00000020) != 0) && (func_8007223C(objectIndex, 0x00800000) != 0)) {
|
|
temp_v0 = &D_80165C18[objectIndex];
|
|
D_80183E50[0] = temp_v0->unk_004[0];
|
|
D_80183E50[1] = temp_v0->unk_044 + 0.8;
|
|
D_80183E50[2] = temp_v0->unk_004[2];
|
|
func_80042A20(sp30, temp_v0->unk_01C, D_80183E50, 0U, arg1);
|
|
func_80022180(&gGfxPool->mtxPool[D_8018D120 + 0xB], sp30);
|
|
gSPMatrix(gDisplayListHead++, VIRTUAL_TO_PHYSICAL(&gGfxPool->mtxPool[D_8018D120 + 0xB]), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
|
D_8018D120++;
|
|
gSPDisplayList(gDisplayListHead++, D_0D007B98);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004A870.s")
|
|
#endif
|
|
|
|
void func_8004A9B8(f32 arg0) {
|
|
func_80043050(D_80183E50, D_80183E70, arg0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007C10);
|
|
}
|
|
|
|
UNUSED void func_8004AA10(Vec3f arg0, Vec3su arg1, f32 arg2, s32 arg3, Vtx *arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8) {
|
|
func_80042E00(arg0, arg1, arg2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007AE0);
|
|
func_8004B6C4(D_80165860, D_8016586C, D_80165878);
|
|
func_800497CC(arg3, arg4, arg5, arg6, arg7, arg8);
|
|
}
|
|
|
|
UNUSED void func_8004AAA0(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_80049B20(arg0, arg1, arg2, arg3, arg4, arg5, 16, 16, 16, 16);
|
|
}
|
|
|
|
UNUSED void func_8004AB00(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_80049C18(arg0, arg1, arg2, arg3, arg4, arg5, 16, 16, 16, 16);
|
|
}
|
|
|
|
UNUSED void func_8004AB60(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_8004A0B0(arg0, arg1, arg2, arg3, arg4, arg5, 16, 16, 16, 16);
|
|
}
|
|
|
|
UNUSED void func_8004ABC0(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_80049B20(arg0, arg1, arg2, arg3, arg4, arg5, 32, 32, 32, 32);
|
|
}
|
|
|
|
UNUSED void func_8004AC20(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_80049C18(arg0, arg1, arg2, arg3, arg4, arg5, 32, 32, 32, 32);
|
|
}
|
|
|
|
UNUSED void func_8004AC80(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_8004A0B0(arg0, arg1, arg2, arg3, arg4, arg5, 32, 32, 32, 32);
|
|
}
|
|
|
|
UNUSED void func_8004ACE0(s32 arg0, s32 arg1, f32 arg2, s32 arg3, Vtx *arg4) {
|
|
func_8004A414(arg0, arg1, arg2, arg3, arg4, 32, 32, 32, 32);
|
|
}
|
|
|
|
UNUSED void func_8004AD2C(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_80049B20(arg0, arg1, arg2, arg3, arg4, arg5, 64, 32, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_8004AD8C(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_80049C18(arg0, arg1, arg2, arg3, arg4, arg5, 64, 32, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_8004ADEC(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_80049C94(arg0, arg1, arg2, arg3, arg4, arg5, 64, 32, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_8004AE4C(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_80049D10(arg0, arg1, arg2, arg3, arg4, arg5, 64, 32, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_8004AEAC(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_80049D8C(arg0, arg1, arg2, arg3, arg4, arg5, 64, 32, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_8004AF0C(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_80049C18(arg0, arg1, arg2, arg3, arg4, arg5, 64, 64, 64, 64);
|
|
}
|
|
|
|
UNUSED void func_8004AF6C(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_80049B20(arg0, arg1, arg2, arg3, arg4, arg5, 64, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_8004AFCC(s32 arg0, s32 arg1, u16 arg2, f32 arg3, s32 arg4, Vtx *arg5) {
|
|
func_80049C18(arg0, arg1, arg2, arg3, arg4, arg5, 64, 96, 64, 48);
|
|
}
|
|
|
|
UNUSED void func_8004B02C(void) {
|
|
gDPSetRenderMode(gDisplayListHead++, AA_EN | Z_CMP | Z_UPD | IM_RD | CVG_DST_WRAP | ZMODE_XLU | CVG_X_ALPHA | FORCE_BL | GBL_c1(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA), AA_EN | Z_CMP | Z_UPD | IM_RD | CVG_DST_WRAP | ZMODE_XLU | CVG_X_ALPHA | FORCE_BL | GBL_c2(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA));
|
|
}
|
|
|
|
void func_8004B05C(u8 *texture) {
|
|
gDPLoadTLUT_pal256(gDisplayListHead++, texture);
|
|
gDPLoadSync(gDisplayListHead++);
|
|
gDPSetTexturePersp(gDisplayListHead++, G_TP_NONE);
|
|
}
|
|
|
|
void func_8004B138(s32 red, s32 green, s32 blue, s32 alpha) {
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, red, green, blue, alpha);
|
|
}
|
|
|
|
UNUSED void func_8004B180(s32 red, s32 green, s32 blue, s32 alpha) {
|
|
gDPSetEnvColor(gDisplayListHead++, red, green, blue, alpha);
|
|
}
|
|
|
|
void func_8004B1C8(s32 primRed, s32 primGreen, s32 primBlue, s32 envRed, s32 envGreen, s32 envBlue, s32 primAlpha) {
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, primRed, primGreen, primBlue, primAlpha);
|
|
gDPSetEnvColor(gDisplayListHead++, envRed, envGreen, envBlue, 0xFF);
|
|
}
|
|
|
|
UNUSED void func_8004B254(s32 red, s32 green, s32 blue) {
|
|
gDPSetCombineMode(gDisplayListHead++, G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM);
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, red, green, blue, 0xFF);
|
|
}
|
|
|
|
void func_8004B2BC(s32 alpha) {
|
|
gDPSetCombineMode(gDisplayListHead++, G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM);
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, 0xFF, 0xFF, 0xFF, alpha);
|
|
}
|
|
|
|
void func_8004B310(s32 alpha) {
|
|
gDPSetCombineLERP(gDisplayListHead++, 0, 0, 0, TEXEL0, TEXEL0, 0, PRIMITIVE, 0, 0, 0, 0, TEXEL0, TEXEL0, 0, PRIMITIVE, 0);
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, 0x00, 0x00, 0x00, alpha);
|
|
}
|
|
|
|
void func_8004B35C(s32 red, s32 green, s32 blue, s32 alpha) {
|
|
gDPSetCombineMode(gDisplayListHead++, G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM);
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, red, green, blue, alpha);
|
|
}
|
|
|
|
void func_8004B3C8(s32 alpha) {
|
|
gDPSetCombineLERP(gDisplayListHead++, 0, 0, 0, 1, TEXEL0, 0, PRIMITIVE, 0, 0, 0, 0, 1, TEXEL0, 0, PRIMITIVE, 0);
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, 0x00, 0x00, 0x00, alpha);
|
|
}
|
|
|
|
void func_8004B414(s32 red, s32 green, s32 blue, s32 alpha) {
|
|
gDPSetCombineLERP(gDisplayListHead++, 0, 0, 0, PRIMITIVE, TEXEL0, 0, PRIMITIVE, 0, 0, 0, 0, PRIMITIVE, TEXEL0, 0, PRIMITIVE, 0);
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, red, green, blue, alpha);
|
|
}
|
|
|
|
void func_8004B480(s32 red, s32 green, s32 blue) {
|
|
gDPSetCombineLERP(gDisplayListHead++, 0, 0, 0, PRIMITIVE, 0, 0, 0, TEXEL0, 0, 0, 0, PRIMITIVE, 0, 0, 0, TEXEL0);
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, red, green, blue, 0xFF);
|
|
}
|
|
|
|
UNUSED void func_8004B4E8(s32 red, s32 green, s32 blue, s32 alpha) {
|
|
gDPSetCombineLERP(gDisplayListHead++, 1, 0, SHADE, PRIMITIVE, 0, 0, 0, TEXEL0, 1, 0, SHADE, PRIMITIVE, 0, 0, 0, TEXEL0);
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, red, green, blue, alpha);
|
|
}
|
|
|
|
UNUSED void func_8004B554(s32 alpha) {
|
|
gDPSetCombineLERP(gDisplayListHead++, 0, 0, 0, SHADE, TEXEL0, 0, PRIMITIVE, 0, 0, 0, 0, SHADE, TEXEL0, 0, PRIMITIVE, 0);
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, 0xFF, 0xFF, 0xFF, alpha);
|
|
}
|
|
|
|
UNUSED void func_8004B5A8(s32 red, s32 green, s32 blue, s32 alpha) {
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, red, green, blue, alpha);
|
|
gDPSetCombineLERP(gDisplayListHead++, 1, PRIMITIVE_ALPHA, TEXEL0, PRIMITIVE, 0, 0, 0, TEXEL0, 1, PRIMITIVE_ALPHA, TEXEL0, PRIMITIVE, 0, 0, 0, TEXEL0);
|
|
}
|
|
|
|
void func_8004B614(s32 primRed, s32 primGreen, s32 primBlue, s32 envRed, s32 envGreen, s32 envBlue, s32 primAlpha) {
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, primRed, primGreen, primBlue, primAlpha);
|
|
gDPSetEnvColor(gDisplayListHead++, envRed, envGreen, envBlue, 0xFF);
|
|
gDPSetCombineLERP(gDisplayListHead++, 1, ENVIRONMENT, TEXEL0, PRIMITIVE, PRIMITIVE, 0, TEXEL0, 0, 1, ENVIRONMENT, TEXEL0, PRIMITIVE, PRIMITIVE, 0, TEXEL0, 0);
|
|
}
|
|
|
|
void func_8004B6C4(s32 red, s32 green, s32 blue) {
|
|
gDPSetCombineLERP(gDisplayListHead++, 0, 0, 0, PRIMITIVE, 0, 0, 0, TEXEL0, 0, 0, 0, PRIMITIVE, 0, 0, 0, TEXEL0);
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, red, green, blue, 0xFF);
|
|
}
|
|
|
|
void func_8004B72C(s32 primRed, s32 primGreen, s32 primBlue, s32 envRed, s32 envGreen, s32 envBlue, s32 primAlpha) {
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, primRed, primGreen, primBlue, primAlpha);
|
|
gDPSetEnvColor(gDisplayListHead++, envRed, envGreen, envBlue, 0xFF);
|
|
gDPSetCombineLERP(gDisplayListHead++, PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT, TEXEL0, 0, PRIMITIVE, 0, PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT, TEXEL0, 0, PRIMITIVE, 0);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit 6b6e1390bf30013247343623194964ff13d0c45b
|
|
void func_8004B7DC(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6) {
|
|
Gfx *temp_v1;
|
|
Gfx *temp_v1_2;
|
|
Gfx *temp_v1_3;
|
|
Gfx *temp_v1_4;
|
|
Gfx *temp_v1_5;
|
|
Gfx *temp_v1_6;
|
|
|
|
// These look like they should be gSPTextureRectangle, but that's not quite right...
|
|
|
|
if (arg6 == 0) {
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = (((((arg0 + arg2) - 1) * 4) & 0xFFF) << 0xC) | 0xE4000000 | ((((arg1 + arg3) - 1) * 4) & 0xFFF);
|
|
temp_v1->words.w1 = (((arg0 * 4) & 0xFFF) << 0xC) | ((arg1 * 4) & 0xFFF);
|
|
temp_v1_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_2 + 8;
|
|
temp_v1_2->words.w0 = 0xB3000000;
|
|
temp_v1_2->words.w1 = (arg4 << 0x15) | ((arg5 << 5) & 0xFFFF);
|
|
temp_v1_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_3 + 8;
|
|
temp_v1_3->words.w0 = 0xB2000000;
|
|
temp_v1_3->words.w1 = 0x10000400;
|
|
return;
|
|
}
|
|
temp_v1_4 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_4 + 8;
|
|
temp_v1_4->words.w1 = (((arg0 * 4) & 0xFFF) << 0xC) | ((arg1 * 4) & 0xFFF);
|
|
temp_v1_4->words.w0 = ((((arg0 + arg2) * 4) & 0xFFF) << 0xC) | 0xE4000000 | (((arg1 + arg3) * 4) & 0xFFF);
|
|
temp_v1_5 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_5 + 8;
|
|
temp_v1_5->words.w0 = 0xB3000000;
|
|
temp_v1_5->words.w1 = (arg4 << 0x15) | ((arg5 << 5) & 0xFFFF);
|
|
temp_v1_6 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_6 + 8;
|
|
temp_v1_6->words.w0 = 0xB2000000;
|
|
temp_v1_6->words.w1 = 0x04000400;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004B7DC.s")
|
|
#endif
|
|
|
|
void func_8004B7DC(s32, s32, s32, s32, s32, s32, s32);
|
|
|
|
void func_8004B950(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4) {
|
|
func_8004B7DC(arg0, arg1, arg2, arg3, 0, 0, arg4);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
|
//void func_8004B7DC(s32, s32, s32, s32, s32, s32, s32); // extern
|
|
|
|
void func_8004B97C(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4) {
|
|
s32 sp2C;
|
|
s32 phi_a1;
|
|
s32 phi_v1;
|
|
s32 phi_v0;
|
|
|
|
phi_a1 = arg1;
|
|
if (-arg2 < arg0) {
|
|
phi_v0 = 0;
|
|
if (-arg3 < arg1) {
|
|
//sp2C = arg0;
|
|
phi_v1 = 0;
|
|
if (arg0 < 0) {
|
|
arg0 = 0;
|
|
phi_v1 = -arg0;
|
|
}
|
|
if (arg1 < 0) {
|
|
phi_a1 = 0;
|
|
phi_v0 = -arg1;
|
|
}
|
|
func_8004B7DC(arg0, phi_a1, arg2 - phi_v1, arg3 - phi_v0, phi_v1, phi_v0, arg4);
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004B97C.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
|
void func_8004B7DC(s32, s32, s32, s32, s32, s32, s32); // extern
|
|
|
|
void func_8004BA08(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4) {
|
|
s32 sp2C;
|
|
s32 phi_a1;
|
|
s32 phi_v1;
|
|
s32 phi_v0;
|
|
|
|
phi_a1 = arg1;
|
|
if (-arg2 < arg0) {
|
|
phi_v0 = 0;
|
|
if (-arg3 < arg1) {
|
|
sp2C = arg0;
|
|
phi_v1 = 0;
|
|
if (arg0 < 0) {
|
|
sp2C = 0;
|
|
phi_v1 = -arg0;
|
|
}
|
|
if (arg1 < 0) {
|
|
phi_a1 = 0;
|
|
phi_v0 = -arg1;
|
|
}
|
|
func_8004B7DC(sp2C, phi_a1, arg2 - phi_v1, arg3 - phi_v0, phi_v1 + arg2, phi_v0, arg4);
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004BA08.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
|
void func_8004B7DC(s32, s32, s32, s32, s32, s32, s32); // extern
|
|
|
|
void func_8004BA98(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6) {
|
|
s32 sp34;
|
|
s32 sp30;
|
|
s32 sp2C;
|
|
s32 phi_a3;
|
|
s32 phi_v0;
|
|
s32 phi_v1;
|
|
|
|
phi_a3 = arg3;
|
|
if ((-arg2 < arg0) && (-arg3 < arg1)) {
|
|
sp34 = arg0;
|
|
sp30 = arg1;
|
|
sp2C = arg2;
|
|
phi_v0 = arg4;
|
|
phi_v1 = arg5;
|
|
if (arg0 < 0) {
|
|
sp34 = 0;
|
|
sp2C = arg2 + arg0;
|
|
phi_v0 = arg4 - arg0;
|
|
}
|
|
if (arg1 < 0) {
|
|
sp30 = 0;
|
|
phi_a3 = arg3 + arg1;
|
|
phi_v1 = arg5 - arg1;
|
|
}
|
|
func_8004B7DC(sp34, sp30, sp2C, phi_a3, phi_v0, phi_v1, arg6);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004BA98.s")
|
|
#endif
|
|
|
|
UNUSED void func_8004BB34(void) {
|
|
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
void func_8004BB3C(s32 arg0, s32 arg1, s32 arg2, s32 arg3, f32 arg4) {
|
|
Gfx *temp_a3;
|
|
Gfx *temp_a3_2;
|
|
Gfx *temp_a3_3;
|
|
s16 var_a0;
|
|
s16 var_a1;
|
|
s32 temp_f18;
|
|
s32 temp_f18_2;
|
|
s32 temp_t4;
|
|
s32 temp_t5;
|
|
s32 temp_t9;
|
|
s32 var_t0;
|
|
s32 var_t1;
|
|
s32 var_v0;
|
|
s32 var_v1;
|
|
|
|
temp_f18 = (s32) ((f64) ((f32) (arg2 * 4) * arg4) + 0.5);
|
|
var_t0 = temp_f18;
|
|
temp_f18_2 = (s32) ((f64) ((f32) (arg3 * 4) * arg4) + 0.5);
|
|
var_t1 = temp_f18_2;
|
|
temp_t4 = (arg0 * 4) - (temp_f18 / 2);
|
|
var_v0 = temp_t4;
|
|
temp_t5 = (arg1 * 4) - (temp_f18_2 / 2);
|
|
var_v1 = temp_t5;
|
|
if (-temp_f18 < temp_t4) {
|
|
var_a0 = 0;
|
|
if (-temp_f18_2 < temp_t5) {
|
|
var_a1 = 0;
|
|
if (temp_t4 < 0) {
|
|
var_t0 = temp_f18 + temp_t4;
|
|
var_v0 = 0;
|
|
var_a1 = (s16) (s32) ((f32) (temp_t4 * -8) / arg4);
|
|
}
|
|
if (temp_t5 < 0) {
|
|
var_t1 = temp_f18_2 + temp_t5;
|
|
var_v1 = 0;
|
|
var_a0 = (s16) (s32) ((f32) (temp_t5 * -8) / arg4);
|
|
}
|
|
temp_a3 = gDisplayListHead;
|
|
gDisplayListHead = temp_a3 + 8;
|
|
temp_a3->words.w0 = (((var_v0 + var_t0) & 0xFFF) << 0xC) | 0xE4000000 | ((var_v1 + var_t1) & 0xFFF);
|
|
temp_a3->words.w1 = ((var_v0 & 0xFFF) << 0xC) | (var_v1 & 0xFFF);
|
|
temp_a3_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_a3_2 + 8;
|
|
temp_a3_2->words.w0 = 0xB3000000;
|
|
temp_a3_2->words.w1 = (var_a1 << 0x10) | (var_a0 & 0xFFFF);
|
|
temp_a3_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_a3_3 + 8;
|
|
temp_a3_3->words.w0 = 0xB2000000;
|
|
temp_t9 = (s32) ((f64) (1024.0f / arg4) + 0.5) & 0xFFFF;
|
|
temp_a3_3->words.w1 = (temp_t9 << 0x10) | temp_t9;
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004BB3C.s")
|
|
#endif
|
|
|
|
void func_8004BD14(s32 arg0, s32 arg1, u32 width, u32 height, s32 alpha, s8 *arg5, s8 *arg6) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D007F38);
|
|
gSPDisplayList(gDisplayListHead++, D_0D008138);
|
|
gDPSetTextureLOD(gDisplayListHead++, G_TL_TILE);
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, 0x00, 0x00, 0x00, alpha);
|
|
gDPSetCombineLERP(gDisplayListHead++, TEXEL1, TEXEL0, PRIMITIVE_ALPHA, TEXEL0, TEXEL1, TEXEL0, PRIMITIVE, TEXEL0, 0, 0, 0, COMBINED, 0, 0, 0, COMBINED);
|
|
gDPLoadMultiTile(gDisplayListHead++, arg5, 0, G_TX_RENDERTILE, G_IM_FMT_RGBA, G_IM_SIZ_16b, width, height, 0, 0, width - 1, height - 1, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
gDPLoadMultiTile(gDisplayListHead++, arg6, 256, G_TX_RENDERTILE+1, G_IM_FMT_RGBA, G_IM_SIZ_16b, width, height, 0, 0, width - 1, height - 1, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
|
func_8004B950(arg0, arg1, width, height, 2);
|
|
gSPDisplayList(gDisplayListHead++, D_0D008120);
|
|
}
|
|
|
|
void func_8004C024(s16 arg0, s16 arg1, s16 arg2, u16 red, u16 green, u16 blue, u16 alpha) {
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, red, green, blue, alpha);
|
|
gDPSetTextureLUT(gDisplayListHead++, G_TT_NONE);
|
|
gDPSetTexturePersp(gDisplayListHead++, G_TP_NONE);
|
|
gDPSetCombineMode(gDisplayListHead++, G_CC_PRIMITIVE, G_CC_PRIMITIVE);
|
|
gDPSetRenderMode(gDisplayListHead++, G_RM_XLU_SURF, G_RM_XLU_SURF2);
|
|
func_8004B97C(arg0, arg1, arg2, 1, 1);
|
|
}
|
|
|
|
void func_8004C148(s16 arg0, s16 arg1, s16 arg2, u16 red, u16 green, u16 blue, u16 alpha) {
|
|
gDPSetPrimColor(gDisplayListHead++, 0, 0, red, green, blue, alpha);
|
|
gDPSetTextureLUT(gDisplayListHead++, G_TT_NONE);
|
|
gDPSetTexturePersp(gDisplayListHead++, G_TP_NONE);
|
|
gDPSetCombineMode(gDisplayListHead++, G_CC_PRIMITIVE, G_CC_PRIMITIVE);
|
|
gDPSetRenderMode(gDisplayListHead++, G_RM_XLU_SURF, G_RM_XLU_SURF2);
|
|
func_8004B97C(arg0, arg1, 1, arg2, 1);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
|
void func_80043D50(s32, u32, u32); // extern
|
|
void func_8004B97C(s32, s32, u32, u32, s32); // extern
|
|
|
|
void func_8004C268(s32 arg0, s32 arg1, s32 arg2, u32 arg3, u32 arg4, u32 arg5, s32 arg6) {
|
|
u32 temp_lo;
|
|
u32 temp_s2;
|
|
s32 phi_s1;
|
|
s32 phi_s0;
|
|
u32 phi_s2;
|
|
|
|
temp_lo = arg4 / arg5;
|
|
phi_s1 = arg2;
|
|
phi_s0 = arg1 - (arg4 >> 1);
|
|
phi_s2 = 0;
|
|
if (temp_lo != 0) {
|
|
do {
|
|
func_80043D50(phi_s1, arg3, arg5);
|
|
func_8004B97C(arg0 - (arg3 >> 1), phi_s0, arg3, arg5, arg6);
|
|
temp_s2 = phi_s2 + 1;
|
|
phi_s1 += arg3 * arg5 * 2;
|
|
phi_s0 += arg5;
|
|
phi_s2 = temp_s2;
|
|
} while (temp_s2 < temp_lo);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004C268.s")
|
|
#endif
|
|
|
|
UNUSED void func_8004C354() {
|
|
}
|
|
|
|
UNUSED void func_8004C35C() {
|
|
}
|
|
|
|
void func_8004C364(s32 arg0, s32 arg1, u32 arg2, u32 arg3, s32 arg4) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D008108);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007EF8);
|
|
gDPSetAlphaCompare(gDisplayListHead++, G_AC_THRESHOLD);
|
|
func_80043D50(arg4, arg2, arg3);
|
|
func_8004B97C(arg0 - (arg2 >> 1), arg1 - (arg3 >> 1), arg2, arg3, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007EB8);
|
|
}
|
|
|
|
void func_8004C450(s32 arg0, s32 arg1, u32 arg2, u32 arg3, s32 arg4) {
|
|
|
|
gSPDisplayList(gDisplayListHead++, D_0D007F38);
|
|
func_8004B614(D_801656C0, D_801656D0, D_801656E0, 0x80, 0x80, 0x80, 0xFF);
|
|
func_80043D50(arg4, arg2, arg3);
|
|
func_8004B97C(arg0 - (arg2 >> 1), arg1 - (arg3 >> 1), arg2, arg3, 1);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007EB8);
|
|
}
|
|
|
|
UNUSED void func_8004C53C(s32 arg0, s32 arg1, u32 arg2, u32 arg3, s32 arg4) {
|
|
|
|
gSPDisplayList(gDisplayListHead++, D_0D008108);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007EF8);
|
|
gDPSetAlphaCompare(gDisplayListHead++, G_AC_THRESHOLD);
|
|
func_800440B8(arg4, arg2, arg3);
|
|
func_8004B97C(arg0 - (arg2 >> 1), arg1 - (arg3 >> 1), arg2, arg3, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007EB8);
|
|
}
|
|
|
|
void func_8004C628(s32 arg0, s32 arg1, u32 arg2, u32 arg3, s32 arg4) {
|
|
|
|
gSPDisplayList(gDisplayListHead++, D_0D007EF8);
|
|
gDPSetAlphaCompare(gDisplayListHead++, G_AC_THRESHOLD);
|
|
func_80043A84(arg4, arg2, arg3);
|
|
func_8004B97C(arg0 - (arg2 >> 1), arg1 - (arg3 >> 1), arg2, arg3, 1);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007EB8);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
void func_8004C6FC(s16 arg0, s16 arg1, s8 *arg2, u32 arg3, u32 arg4) {
|
|
Gfx *temp_v0;
|
|
Gfx *temp_v0_2;
|
|
Gfx *temp_v0_4;
|
|
s32 temp_t5;
|
|
s32 temp_v0_3;
|
|
s32 var_s3;
|
|
s32 var_s4;
|
|
s8 *var_s5;
|
|
u32 temp_t3;
|
|
u32 temp_t8;
|
|
u32 var_s0;
|
|
u32 var_s6;
|
|
u32 var_t2;
|
|
|
|
temp_v0 = gDisplayListHead;
|
|
var_s4 = arg1 - (arg4 >> 1);
|
|
gDisplayListHead = temp_v0 + 8;
|
|
temp_v0->words.w0 = 0x06000000;
|
|
temp_v0->words.w1 = (u32) D_0D007EF8;
|
|
temp_v0_2 = gDisplayListHead;
|
|
temp_t8 = arg3 * arg4 * 4;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_t3 = temp_t8 >> 0xC;
|
|
var_s5 = arg2;
|
|
var_s6 = temp_t8;
|
|
var_t2 = temp_t3;
|
|
temp_v0_2->words.w1 = 0x00504240;
|
|
temp_v0_2->words.w0 = 0xB900031D;
|
|
if (temp_t8 & 0xFFF) {
|
|
var_t2 = temp_t3 + 1;
|
|
}
|
|
var_s0 = arg4 / var_t2;
|
|
var_s3 = 0;
|
|
if ((s32) var_t2 > 0) {
|
|
do {
|
|
temp_t5 = arg3 * var_s0 * 4;
|
|
func_80043C28(var_s5, (s32) arg3, (s32) var_s0);
|
|
func_8004B950(arg0 - (arg3 >> 1), var_s4, (s32) arg3, (s32) var_s0, 1);
|
|
temp_v0_3 = var_s6 - temp_t5;
|
|
var_s5 += temp_t5;
|
|
if (temp_v0_3 < 0) {
|
|
var_s0 = var_s6 / arg3;
|
|
} else {
|
|
var_s6 = (u32) temp_v0_3;
|
|
}
|
|
var_s3 += 1;
|
|
var_s4 += var_s0;
|
|
} while (var_s3 < (s32) var_t2);
|
|
}
|
|
temp_v0_4 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_4 + 8;
|
|
temp_v0_4->words.w0 = 0x06000000;
|
|
temp_v0_4->words.w1 = (u32) D_0D007EB8;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004C6FC.s")
|
|
#endif
|
|
|
|
void func_8004C8D4(s16 arg0, s16 arg1) {
|
|
func_8004C6FC(arg0, arg1, D_8018D1E0, 0x100, 0x80);
|
|
}
|
|
|
|
void func_8004C91C(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D008108);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007EF8);
|
|
gDPSetAlphaCompare(gDisplayListHead++, G_AC_THRESHOLD);
|
|
func_8004C268(arg0, arg1, arg2, arg3, arg4, arg5, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007EB8);
|
|
}
|
|
|
|
void func_8004C9D8(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D007F38);
|
|
func_8004B2BC(arg2);
|
|
func_8004C268(arg0, arg1, arg3, arg4, arg5, arg7, 1);
|
|
}
|
|
|
|
void func_8004CA58(s32 arg0, s32 arg1, f32 arg2, s32 arg3, s32 arg4, s32 arg5) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D007F78);
|
|
func_80043D50(arg3, arg4, arg5);
|
|
func_8004BB3C(arg0, arg1, arg4, arg5, arg2);
|
|
}
|
|
|
|
void func_8004CAD0(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004C364(arg0, arg1, 8, 8, arg2);
|
|
}
|
|
|
|
UNUSED void func_8004CB00(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004C364(arg0, arg1, 8, 16, arg2);
|
|
}
|
|
|
|
UNUSED void func_8004CB30(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004C364(arg0, arg1, 16, 16, arg2);
|
|
}
|
|
|
|
void func_8004CB60(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004C364(arg0, arg1, 32, 8, arg2);
|
|
}
|
|
|
|
void func_8004CB90(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004C364(arg0, arg1, 32, 16, arg2);
|
|
}
|
|
|
|
UNUSED void func_8004CBC0(s32 arg0, s32 arg1, f32 arg2, s32 arg3) {
|
|
func_8004CA58(arg0, arg1, arg2, arg3, 32, 16);
|
|
}
|
|
|
|
UNUSED void func_8004CBF4(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004C364(arg0, arg1, 32, 32, arg2);
|
|
}
|
|
|
|
UNUSED void func_8004CC24(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004C628(arg0, arg1, 32, 32, arg2);
|
|
}
|
|
|
|
UNUSED void func_8004CC54(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004C364(arg0, arg1, 40, 32, arg2);
|
|
}
|
|
|
|
UNUSED void func_8004CC84(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004C91C(arg0, arg1, arg2, 48, 48, 24);
|
|
}
|
|
|
|
UNUSED void func_8004CCB4(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004C364(arg0, arg1, 64, 32, arg2);
|
|
}
|
|
|
|
UNUSED void func_8004CCE4(s32 arg0, s32 arg1, f32 arg2, s32 arg3) {
|
|
func_8004CA58(arg0, arg1, arg2, arg3, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_8004CD18(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004C91C(arg0, arg1, arg2, 64, 64, 32);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
Gfx *func_8004B97C(s32, s32, s32, s32, s32); /* extern */
|
|
|
|
Gfx *func_8004CD48(s32 arg0, s32 arg1, s32 arg2, s32 width, s32 arg4, s32 height) {
|
|
s8 *sp40;
|
|
Gfx *temp_v1;
|
|
Gfx *var_v0;
|
|
s32 temp_lo;
|
|
s32 var_s0;
|
|
s32 var_s1;
|
|
s8 *var_s4;
|
|
|
|
temp_lo = arg4 / height;
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
var_s0 = arg1 - (arg4 / 2);
|
|
var_s1 = 0;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) D_0D007FE0;
|
|
var_v0 = temp_v1;
|
|
if (temp_lo > 0) {
|
|
var_s4 = sp40;
|
|
do {
|
|
func_800441E0(var_s4, width, height);
|
|
var_v0 = func_8004B97C(arg0 - (width / 2), var_s0, width, height, 1);
|
|
var_s1 += 1;
|
|
var_s4 += width * height * 2;
|
|
var_s0 += height;
|
|
} while (var_s1 != temp_lo);
|
|
sp40 = var_s4;
|
|
}
|
|
return var_v0;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004CD48.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_8004B97C(s32, s32, s32, s32, s32); /* extern */
|
|
|
|
void func_8004CE8C(s32 arg0, s32 arg1, s8 *arg2, s32 width, s32 arg4, s32 height) {
|
|
s32 temp_lo;
|
|
s32 var_s0;
|
|
s32 var_s2;
|
|
s8 *var_s1;
|
|
|
|
temp_lo = arg4 / height;
|
|
var_s0 = arg1 - (arg4 / 2);
|
|
var_s1 = arg2;
|
|
var_s2 = 0;
|
|
if (temp_lo > 0) {
|
|
do {
|
|
func_800444B0(var_s1, width, height);
|
|
func_8004B97C(arg0 - (width / 2), var_s0, width, height, 1);
|
|
var_s2 += 1;
|
|
var_s1 = &var_s1[width * height];
|
|
var_s0 += height;
|
|
} while (var_s2 != temp_lo);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004CE8C.s")
|
|
#endif
|
|
|
|
void func_8004CF9C(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D007FE0);
|
|
func_8004CE8C(arg0, arg1, arg2, arg3, arg4, arg6);
|
|
}
|
|
|
|
UNUSED void func_8004CFF0(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D008000);
|
|
func_8004CE8C(arg0, arg1, arg2, arg3, arg4, arg6);
|
|
}
|
|
|
|
UNUSED void func_8004D044(s32 arg0, s32 arg1, s32 arg2, s32 red, s32 green, s32 blue, s32 alpha, s32 arg7, s32 arg8, s32 arg9, s32 argA) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D007FE0);
|
|
func_8004B35C(red, green, blue, alpha);
|
|
func_8004CE8C(arg0, arg1, arg2, arg7, arg8, argA);
|
|
}
|
|
|
|
UNUSED void func_8004D0CC(void) {
|
|
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80044924(s8 *, s32, s32); /* extern */
|
|
Gfx *func_8004B97C(s32, s32, s32, s32, s32); /* extern */
|
|
|
|
Gfx *func_8004D0D4(s32 arg0, s32 arg1, s8 *arg2, s32 width, s32 arg4, s32 height) {
|
|
Gfx *temp_v1;
|
|
Gfx *var_v0;
|
|
s32 temp_lo;
|
|
s32 var_s0;
|
|
s32 var_s2;
|
|
s8 *var_s1;
|
|
|
|
temp_lo = arg4 / height;
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
var_s0 = arg1 - (arg4 / 2);
|
|
var_s1 = arg2;
|
|
var_s2 = 0;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) D_0D007FE0;
|
|
var_v0 = temp_v1;
|
|
if (temp_lo > 0) {
|
|
do {
|
|
func_80044924(var_s1, width, height);
|
|
var_v0 = func_8004B97C(arg0 - (width / 2), var_s0, width, height, 1);
|
|
var_s2 += 1;
|
|
var_s1 = &var_s1[width * height];
|
|
var_s0 += height;
|
|
} while (var_s2 != temp_lo);
|
|
}
|
|
return var_v0;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004D0D4.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80044924(s8 *, s32, s32); /* extern */
|
|
? func_8004B97C(s32, s32, s32, s32, s32); /* extern */
|
|
|
|
void func_8004D210(s32 arg0, s32 arg1, s8 *arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 width, s32 arg8, s32 arg9, s32 height) {
|
|
Gfx *temp_v1;
|
|
s32 temp_lo;
|
|
s32 var_s0;
|
|
s32 var_s3;
|
|
s8 *var_s4;
|
|
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) D_0D007FE0;
|
|
var_s3 = arg1 - (arg8 / 2);
|
|
var_s4 = arg2;
|
|
func_8004B35C(arg3, arg4, arg5, arg6);
|
|
var_s0 = 0;
|
|
temp_lo = arg8 / height;
|
|
if (temp_lo > 0) {
|
|
do {
|
|
func_80044924(var_s4, width, height);
|
|
func_8004B97C(arg0 - (width / 2), var_s3, width, height, 1);
|
|
var_s0 += 1;
|
|
var_s4 = &var_s4[(s32) (width * height) / 2];
|
|
var_s3 += height;
|
|
} while (var_s0 != temp_lo);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004D210.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80044F34(s8 *, s32, s32); /* extern */
|
|
? func_8004B97C(s32, s32, s32, s32, s32); /* extern */
|
|
|
|
void func_8004D37C(s32 arg0, s32 arg1, s8 *arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 width, s32 arg8, s32 arg9, s32 height) {
|
|
Gfx *temp_v1;
|
|
s32 temp_lo;
|
|
s32 var_s0;
|
|
s32 var_s3;
|
|
s8 *var_s4;
|
|
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) D_0D007FE0;
|
|
var_s3 = arg1 - (arg8 / 2);
|
|
var_s4 = arg2;
|
|
func_8004B414(arg3, arg4, arg5, arg6);
|
|
var_s0 = 0;
|
|
temp_lo = arg8 / height;
|
|
if (temp_lo > 0) {
|
|
do {
|
|
func_80044F34(var_s4, width, height);
|
|
func_8004B97C(arg0 - (width / 2), var_s3, width, height, 1);
|
|
var_s0 += 1;
|
|
var_s4 = &var_s4[(s32) (width * height) / 2];
|
|
var_s3 += height;
|
|
} while (var_s0 != temp_lo);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004D37C.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_800450C8(s8 *, s32, s32); /* extern */
|
|
? func_8004BA08(s32, s32, s32, s32, s32); /* extern */
|
|
|
|
void func_8004D4E8(s32 arg0, s32 arg1, s8 *arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 width, s32 arg8, s32 arg9, s32 height) {
|
|
Gfx *temp_v1;
|
|
s32 temp_lo;
|
|
s32 var_s0;
|
|
s32 var_s3;
|
|
s8 *var_s4;
|
|
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) D_0D007FE0;
|
|
var_s3 = arg1 - (arg8 / 2);
|
|
var_s4 = arg2;
|
|
func_8004B414(arg3, arg4, arg5, arg6);
|
|
var_s0 = 0;
|
|
temp_lo = arg8 / height;
|
|
if (temp_lo > 0) {
|
|
do {
|
|
func_800450C8(var_s4, width, height);
|
|
func_8004BA08(arg0 - (width / 2), var_s3, width, height, 1);
|
|
var_s0 += 1;
|
|
var_s4 = &var_s4[(s32) (width * height) / 2];
|
|
var_s3 += height;
|
|
} while (var_s0 != temp_lo);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004D4E8.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80044F34(s8 *, s32, s32); /* extern */
|
|
|
|
void func_8004D654(s32 arg0, s32 arg1, s8 *arg2, f32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 width, s32 arg9, s32 argA, s32 height) {
|
|
Gfx *temp_v1;
|
|
s32 temp_lo;
|
|
s32 var_s0;
|
|
s8 *var_s2;
|
|
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) D_0D008000;
|
|
var_s2 = arg2;
|
|
func_8004B480(arg4, arg5, arg6);
|
|
var_s0 = 0;
|
|
temp_lo = arg9 / height;
|
|
if (temp_lo > 0) {
|
|
do {
|
|
func_80044F34(var_s2, width, height);
|
|
func_8004BB3C(arg0, arg1, width, arg9, arg3);
|
|
var_s0 += 1;
|
|
var_s2 = &var_s2[(s32) (width * height) / 2];
|
|
} while (var_s0 != temp_lo);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004D654.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_8004B97C(s32, s32, s32, ?, s32); /* extern */
|
|
extern u16 D_801656B0;
|
|
extern s16 D_80165708;
|
|
extern s16 D_80165710;
|
|
extern f32 D_8018D00C;
|
|
|
|
void func_8004D7B4(s32 arg0, s32 arg1, s8 *arg2, s32 arg3, s32 arg4) {
|
|
s32 sp5C;
|
|
Gfx *temp_v1;
|
|
f32 temp_f20;
|
|
s16 temp_s7;
|
|
s16 var_s1;
|
|
s32 temp_s0;
|
|
s32 temp_s5;
|
|
s32 var_s3;
|
|
s32 var_s4;
|
|
s8 *var_s2;
|
|
|
|
D_801656B0 += D_80165710;
|
|
temp_f20 = D_8018D00C;
|
|
temp_v1 = gDisplayListHead;
|
|
temp_s7 = D_80165708;
|
|
var_s1 = (s16) D_801656B0;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
var_s2 = arg2;
|
|
var_s3 = arg1 - (arg4 / 2);
|
|
var_s4 = 0;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) D_0D007FE0;
|
|
if (arg4 > 0) {
|
|
sp5C = arg3 * 2;
|
|
do {
|
|
temp_s0 = var_s1 & 0xFFFF;
|
|
temp_s5 = (s32) ((sins(temp_s0 & 0xFFFF) * temp_f20) + (f32) (arg0 - (arg3 / 2)));
|
|
sins(temp_s0 & 0xFFFF);
|
|
func_800441E0(var_s2, arg3, 1);
|
|
func_8004B97C(temp_s5, var_s3, arg3, 1, 1);
|
|
var_s4 += 1;
|
|
var_s1 += temp_s7;
|
|
var_s3 += 1;
|
|
var_s2 = &var_s2[sp5C];
|
|
} while (var_s4 != arg4);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004D7B4.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_8004B97C(s32, s32, s32, ?, s32); /* extern */
|
|
extern u16 D_801656B0;
|
|
extern s16 D_80165708;
|
|
extern s16 D_80165710;
|
|
extern f32 D_8018D00C;
|
|
|
|
void func_8004D93C(s32 arg0, s32 arg1, s8 *arg2, s32 arg3, s32 arg4) {
|
|
Gfx *temp_v1;
|
|
f32 temp_f20;
|
|
s16 temp_s7;
|
|
s16 var_s1;
|
|
s32 temp_s0;
|
|
s32 temp_s6;
|
|
s32 var_s4;
|
|
s32 var_s5;
|
|
s8 *var_s2;
|
|
|
|
D_801656B0 += D_80165710;
|
|
temp_f20 = D_8018D00C;
|
|
temp_v1 = gDisplayListHead;
|
|
temp_s7 = D_80165708;
|
|
var_s1 = (s16) D_801656B0;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
var_s2 = arg2;
|
|
var_s4 = arg1 - (arg4 / 2);
|
|
var_s5 = 0;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) D_0D007FE0;
|
|
if (arg4 > 0) {
|
|
do {
|
|
temp_s0 = var_s1 & 0xFFFF;
|
|
temp_s6 = (s32) ((sins(temp_s0 & 0xFFFF) * temp_f20) + (f32) (arg0 - (arg3 / 2)));
|
|
sins(temp_s0 & 0xFFFF);
|
|
func_800444B0(var_s2, arg3, 1);
|
|
func_8004B97C(temp_s6, var_s4, arg3, 1, 1);
|
|
var_s5 += 1;
|
|
var_s1 += temp_s7;
|
|
var_s2 = &var_s2[arg3];
|
|
var_s4 += 1;
|
|
} while (var_s5 != arg4);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004D93C.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80044924(s32, s32, ?); /* extern */
|
|
? func_8004B97C(s32, s32, s32, ?, s32); /* extern */
|
|
extern u16 D_801656B0;
|
|
extern s16 D_80165708;
|
|
extern s16 D_80165710;
|
|
extern f32 D_8018D00C;
|
|
|
|
void func_8004DAB8(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4) {
|
|
Gfx *temp_v1;
|
|
f32 temp_f20;
|
|
s16 temp_s7;
|
|
s16 var_s1;
|
|
s32 temp_s0;
|
|
s32 temp_s6;
|
|
s32 var_s2;
|
|
s32 var_s4;
|
|
s32 var_s5;
|
|
|
|
D_801656B0 += D_80165710;
|
|
temp_f20 = D_8018D00C;
|
|
temp_v1 = gDisplayListHead;
|
|
temp_s7 = D_80165708;
|
|
var_s1 = (s16) D_801656B0;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
var_s2 = arg2;
|
|
var_s4 = arg1 - (arg4 / 2);
|
|
var_s5 = 0;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) D_0D007FE0;
|
|
if (arg4 > 0) {
|
|
do {
|
|
temp_s0 = var_s1 & 0xFFFF;
|
|
temp_s6 = (s32) ((sins(temp_s0 & 0xFFFF) * temp_f20) + (f32) (arg0 - (arg3 / 2)));
|
|
sins(temp_s0 & 0xFFFF);
|
|
func_80044924(var_s2, arg3, 1);
|
|
func_8004B97C(temp_s6, var_s4, arg3, 1, 1);
|
|
var_s5 += 1;
|
|
var_s1 += temp_s7;
|
|
var_s2 += arg3;
|
|
var_s4 += 1;
|
|
} while (var_s5 != arg4);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004DAB8.s")
|
|
#endif
|
|
|
|
UNUSED void func_8004DC34(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004CF9C(arg0, arg1, arg2, 8, 160, 8, 160);
|
|
}
|
|
|
|
UNUSED void func_8004DC6C(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004CF9C(arg0, arg1, arg2, 12, 160, 12, 160);
|
|
}
|
|
|
|
UNUSED void func_8004DCA4(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004CF9C(arg0, arg1, arg2, 12, 192, 12, 192);
|
|
}
|
|
|
|
UNUSED void func_8004DCDC(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004CD48(arg0, arg1, arg2, 16, 16, 16);
|
|
}
|
|
|
|
UNUSED void func_8004DD0C(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004CF9C(arg0, arg1, arg2, 16, 160, 16, 160);
|
|
}
|
|
|
|
UNUSED void func_8004DD44(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004CD48(arg0, arg1, arg2, 32, 32, 32);
|
|
}
|
|
|
|
UNUSED void func_8004DD74(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004CF9C(arg0, arg1, arg2, 32, 32, 32, 32);
|
|
}
|
|
|
|
UNUSED void func_8004DDAC(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004D0D4(arg0, arg1, arg2, 32, 32, 32);
|
|
}
|
|
|
|
UNUSED void func_8004DDDC(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004D7B4(arg0, arg1, arg2, 32, 32);
|
|
}
|
|
|
|
UNUSED void func_8004DE04(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004D93C(arg0, arg1, arg2, 32, 32);
|
|
}
|
|
|
|
UNUSED void func_8004DE2C(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004DAB8(arg0, arg1, arg2, 32, 32);
|
|
}
|
|
|
|
UNUSED void func_8004DE54(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004CD48(arg0, arg1, arg2, 64, 32, 32);
|
|
}
|
|
|
|
UNUSED void func_8004DE84(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004CD48(arg0, arg1, arg2, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_8004DEB4(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004CF9C(arg0, arg1, arg2, 64, 96, 64, 48);
|
|
}
|
|
|
|
UNUSED void func_8004DEEC(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004CF9C(arg0, arg1, arg2, 112, 32, 112, 32);
|
|
}
|
|
|
|
UNUSED void func_8004DF24(s32 arg0, s32 arg1, s32 arg2) {
|
|
func_8004CF9C(arg0, arg1, arg2, 128, 32, 128, 32);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_8004B97C(s32, s32, s32, s32, s32); /* extern */
|
|
|
|
void func_8004DF5C(s32 arg0, s32 arg1, s8 *arg2, s32 width, s32 arg4, s32 height) {
|
|
s32 temp_lo;
|
|
s32 var_s0;
|
|
s32 var_s2;
|
|
s8 *var_s1;
|
|
|
|
temp_lo = arg4 / height;
|
|
var_s0 = arg1 - (arg4 / 2);
|
|
var_s1 = arg2;
|
|
var_s2 = 0;
|
|
if (temp_lo > 0) {
|
|
do {
|
|
func_800452A4(var_s1, width, height);
|
|
func_8004B97C(arg0 - (width / 2), var_s0, width, height, 1);
|
|
var_s2 += 1;
|
|
var_s1 = &var_s1[width * height];
|
|
var_s0 += height;
|
|
} while (var_s2 != temp_lo);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004DF5C.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_8004B97C(u32, s32, s32, ?, s32); /* extern */
|
|
extern u16 D_801656B0;
|
|
extern s16 D_80165708;
|
|
extern s16 D_80165710;
|
|
extern f32 D_8018D00C;
|
|
|
|
void func_8004E06C(s32 arg0, s32 arg1, s8 *arg2, s32 arg3, s32 arg4) {
|
|
f32 temp_f20;
|
|
s16 temp_s7;
|
|
s16 var_s1;
|
|
s32 temp_s0;
|
|
s32 var_s4;
|
|
s32 var_s5;
|
|
s8 *var_s2;
|
|
u32 temp_s6;
|
|
|
|
D_801656B0 += D_80165710;
|
|
temp_f20 = D_8018D00C;
|
|
var_s1 = (s16) D_801656B0;
|
|
temp_s7 = D_80165708;
|
|
var_s2 = arg2;
|
|
var_s4 = arg1 - (arg4 / 2);
|
|
var_s5 = 0;
|
|
if (arg4 > 0) {
|
|
do {
|
|
temp_s0 = var_s1 & 0xFFFF;
|
|
temp_s6 = (u32) ((sins(temp_s0 & 0xFFFF) * temp_f20) + (f32) (arg0 - (arg3 / 2)));
|
|
sins(temp_s0 & 0xFFFF);
|
|
func_800452A4(var_s2, arg3, 1);
|
|
func_8004B97C(temp_s6, var_s4, arg3, 1, 1);
|
|
var_s5 += 1;
|
|
var_s1 += temp_s7;
|
|
var_s2 = &var_s2[arg3];
|
|
var_s4 += 1;
|
|
} while (var_s5 != arg4);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004E06C.s")
|
|
#endif
|
|
|
|
UNUSED void func_8004E238(void) {
|
|
|
|
}
|
|
|
|
void func_8004E240(s32 arg0, s32 arg1, u8 *tlut, s32 arg3, s32 arg4, s32 arg5, s32 arg6) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D007CB8);
|
|
func_8004B05C(tlut);
|
|
func_8004DF5C(arg0, arg1, arg3, arg4, arg5, arg6);
|
|
}
|
|
|
|
void func_8004E2B8(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D007DB8);
|
|
func_8004B2BC(arg2);
|
|
func_8004B05C(arg3);
|
|
func_8004DF5C(arg0, arg1, arg4, arg5, arg6, arg7);
|
|
}
|
|
|
|
void func_8004E338(s32 arg0, s32 arg1, u8 *tlut, s32 arg3, s32 arg4, s32 arg5) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D007DB8);
|
|
func_8004B2BC(D_8016589C);
|
|
func_8004B05C(tlut);
|
|
func_8004E06C(arg0, arg1, arg3, arg4, arg5);
|
|
}
|
|
|
|
UNUSED void func_8004E3B8(void) {
|
|
|
|
}
|
|
|
|
UNUSED void func_8004E3C0(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7) {
|
|
func_8004E240(arg0, arg1, arg2, arg3, arg4, arg5, arg7);
|
|
}
|
|
|
|
UNUSED void func_8004E3F4(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8) {
|
|
func_8004E2B8(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg8);
|
|
}
|
|
|
|
UNUSED void func_8004E430(s32 arg0, s32 arg1, s32 arg2, s32 arg3) {
|
|
func_8004E240(arg0, arg1, arg2, arg3, 8, 128, 128);
|
|
}
|
|
|
|
UNUSED void func_8004E464(s32 arg0, s32 arg1, s32 arg2, s32 arg3) {
|
|
func_8004E240(arg0, arg1, arg2, arg3, 32, 32, 32);
|
|
}
|
|
|
|
UNUSED void func_8004E498(s32 arg0, s32 arg1, s32 arg2, s32 arg3) {
|
|
func_8004E240(arg0, arg1, arg2, arg3, 32, 64, 64);
|
|
}
|
|
|
|
void func_8004E4CC(s32 arg0, s32 arg1, s32 arg2, s32 arg3) {
|
|
func_8004E240(arg0, arg1, arg2, arg3, 40, 32, 32);
|
|
}
|
|
|
|
UNUSED void func_8004E500(s32 arg0, s32 arg1, s32 arg2, s32 arg3) {
|
|
func_8004E240(arg0, arg1, arg2, arg3, 48, 48, 24);
|
|
}
|
|
|
|
UNUSED void func_8004E534(s32 arg0, s32 arg1, s32 arg2, s32 arg3) {
|
|
func_8004E240(arg0, arg1, arg2, arg3, 64, 32, 32);
|
|
}
|
|
|
|
UNUSED void func_8004E568(s32 arg0, s32 arg1, s32 arg2, s32 arg3) {
|
|
func_8004E240(arg0, arg1, arg2, arg3, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_8004E59C(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4) {
|
|
func_8004E2B8(arg0, arg1, arg2, arg3, arg4, 64, 64, 32);
|
|
}
|
|
|
|
UNUSED void func_8004E5D8(s32 arg0, s32 arg1, u8 *tlut, s32 arg3) {
|
|
func_8004E338(arg0, arg1, tlut, arg3, 64, 64);
|
|
}
|
|
|
|
UNUSED void func_8004E604(s32 arg0, s32 arg1, u8 *tlut, s32 arg3) {
|
|
func_8004E240(arg0, arg1, tlut, arg3, SCREEN_WIDTH, SCREEN_HEIGHT, 6);
|
|
}
|
|
|
|
void func_8004E638(s32 playerId) {
|
|
s32 objectIndex;
|
|
struct_80165C18_entry *temp_v1;
|
|
struct_8018CA70_entry *temp_v0;
|
|
|
|
objectIndex = D_80183E88[playerId];
|
|
temp_v1 = &D_80165C18[objectIndex];
|
|
if (temp_v1->unk_0A6 >= 2) {
|
|
temp_v0 = &D_8018CA70[playerId];
|
|
func_8004E4CC(temp_v0->slideItemBoxX + temp_v0->itemBoxX, temp_v0->slideItemBoxY + temp_v0->itemBoxY, temp_v1->unk_060, temp_v1->unk_064);
|
|
}
|
|
}
|
|
|
|
void func_8004E6C4(s32 playerId) {
|
|
s32 objectIndex;
|
|
struct_80165C18_entry *temp_v1;
|
|
struct_8018CA70_entry *temp_v0;
|
|
|
|
objectIndex = D_80183E88[playerId];
|
|
temp_v1 = &D_80165C18[objectIndex];
|
|
if (temp_v1->unk_0A6 >= 2) {
|
|
temp_v0 = &D_8018CA70[playerId];
|
|
func_80047910(temp_v0->slideItemBoxX + temp_v0->itemBoxX, temp_v0->slideItemBoxY + temp_v0->itemBoxY, 0U, temp_v0->unknownScaling, (s32) temp_v1->unk_060, (s32) temp_v1->unk_064, D_0D005C30, 0x00000028, 0x00000020, 0x00000028, 0x00000020);
|
|
}
|
|
}
|
|
|
|
#ifdef NEEDS_RODATA
|
|
// Might actually be plain data? hard to say for sure
|
|
// data_0DD0A0_2_0.s
|
|
// s8 *D_800E4570[3];// = { (s32) D_0D00B158, (s32) D_0D00B558, (s32) D_0D00B958 };
|
|
|
|
void func_8004E78C(s32 playerId) {
|
|
func_8004CB60((s32) D_8018CA70[playerId].lapX, D_8018CA70[playerId].lapY + 3, (s32) D_0D00A958);
|
|
func_8004CB90(D_8018CA70[playerId].lapX + 0x1C, (s32) D_8018CA70[playerId].lapY, D_800E4570[D_8018CA70[playerId].alsoLapCount]);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004E78C.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern s32 D_80165594;
|
|
extern ? D_8018CF98;
|
|
static s32 D_800E55F8[8] = { 0x000000FF, 0x000000ED, 0x000000D7, 0x000000BF, 0x000000A2, 0x00000082, 0x00000061, 0x0000003A, };
|
|
|
|
void func_8004E800(s32 playerId) {
|
|
s16 temp_v1;
|
|
struct_8018CA70_entry *temp_v0;
|
|
|
|
temp_v0 = &D_8018CA70[playerId];
|
|
if ((u8) temp_v0->unk_81 != 0) {
|
|
if (temp_v0->lapCount != 3) {
|
|
temp_v1 = *(&D_8018CF98 + (playerId * 2));
|
|
func_8004A384(temp_v0->slideRankX + temp_v0->rankX, temp_v0->slideRankY + temp_v0->rankY, 0U, temp_v0->rankScaling, 0x000000FF, D_800E55F8[temp_v1], 0, 0x000000FF, (s32) ((temp_v1 << 0xC) + D_0D00D258), D_0D0068F0, 0x00000080, 0x00000040, 0x00000080, 0x00000040);
|
|
return;
|
|
}
|
|
func_8004A384(temp_v0->slideRankX + temp_v0->rankX, temp_v0->slideRankY + temp_v0->rankY, 0U, temp_v0->rankScaling, 0x000000FF, D_800E55F8[D_80165594], 0, 0x000000FF, (s32) ((gPlayerPositions[playerId] << 0xC) + D_0D00D258), D_0D0068F0, 0x00000080, 0x00000040, 0x00000080, 0x00000040);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004E800.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern s32 D_80165598;
|
|
static s32 D_800E5618[4] = { 0x000000FF, 0x000000D7, 0x000000A2, 0x00000061 };
|
|
|
|
void func_8004E998(s32 playerId) {
|
|
s32 temp_v1;
|
|
struct_8018CA70_entry *temp_v0;
|
|
|
|
temp_v0 = &D_8018CA70[playerId];
|
|
if ((u8) temp_v0->unk_81 != 0) {
|
|
if (temp_v0->lapCount != 3) {
|
|
temp_v1 = gPlayerPositions[playerId];
|
|
func_8004A384(temp_v0->slideRankX + temp_v0->rankX, temp_v0->slideRankY + temp_v0->rankY, 0U, temp_v0->rankScaling, 0x000000FF, D_800E5618[temp_v1], 0, 0x000000FF, (s32) ((temp_v1 << 0xB) + D_0D015258), D_0D006030, 0x00000040, 0x00000040, 0x00000040, 0x00000040);
|
|
return;
|
|
}
|
|
func_8004A384(temp_v0->slideRankX + temp_v0->rankX, temp_v0->slideRankY + temp_v0->rankY, 0U, temp_v0->rankScaling, 0x000000FF, D_800E5618[D_80165598], 0, 0x000000FF, (s32) ((gPlayerPositions[playerId] << 0xB) + D_0D015258), D_0D006030, 0x00000040, 0x00000040, 0x00000040, 0x00000040);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004E998.s")
|
|
#endif
|
|
|
|
void func_8004EB30(s32 arg0) {
|
|
|
|
}
|
|
|
|
#ifdef NEEDS_RODATA
|
|
// data/data_0DD0A0_2_0.s
|
|
// Internals of the array are entries from common_textures.inc
|
|
extern s8* D_800E4570[3];// = { (s32) D_0D00B158, (s32) D_0D00B558, (s32) D_0D00B958 };
|
|
|
|
void func_8004EB38(s32 playerId) {
|
|
struct_8018CA70_entry *temp_s0;
|
|
|
|
temp_s0 = &D_8018CA70[playerId];
|
|
if ((u8) temp_s0->unk_7B != 0) {
|
|
func_8004C9D8(temp_s0->lap1CompletionTimeX - 0x13, temp_s0->timerY + 8, 0x00000080, (s32) D_0D00C158, 0x00000020, 0x00000010, 0x00000020, 0x00000010);
|
|
func_8004F950((s32) temp_s0->lap1CompletionTimeX, (s32) temp_s0->timerY, 0x00000080, (s32) temp_s0->someTimer);
|
|
}
|
|
if ((u8) temp_s0->unk_7C != 0) {
|
|
func_8004C9D8(temp_s0->lap2CompletionTimeX - 0x13, temp_s0->timerY + 8, 0x00000050, (s32) D_0D00C158, 0x00000020, 0x00000010, 0x00000020, 0x00000010);
|
|
func_8004F950((s32) temp_s0->lap2CompletionTimeX, (s32) temp_s0->timerY, 0x00000050, (s32) temp_s0->someTimer);
|
|
}
|
|
if ((u8) temp_s0->unk_7E != 0) {
|
|
func_8004C9D8((s32) temp_s0->lapAfterImage1X, temp_s0->lapY + 3, 0x00000080, (s32) D_0D00A958, 0x00000020, 8, 0x00000020, 8);
|
|
func_8004C9D8(temp_s0->lapAfterImage1X + 0x1C, (s32) temp_s0->lapY, 0x00000080, D_800E4570[temp_s0->alsoLapCount], 0x00000020, 0x00000010, 0x00000020, 0x00000010);
|
|
}
|
|
if ((u8) temp_s0->unk_7F != 0) {
|
|
func_8004C9D8((s32) temp_s0->lapAfterImage2X, temp_s0->lapY + 3, 0x00000050, (s32) D_0D00A958, 0x00000020, 8, 0x00000020, 8);
|
|
func_8004C9D8(temp_s0->lapAfterImage2X + 0x1C, (s32) temp_s0->lapY, 0x00000050, D_800E4570[temp_s0->alsoLapCount], 0x00000020, 0x00000010, 0x00000020, 0x00000010);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004EB38.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern u16 D_8016579E;
|
|
extern f32 D_8018CFEC;
|
|
extern f32 D_8018CFF4;
|
|
extern u16 D_8018D300;
|
|
extern u16 D_8018D308;
|
|
extern u16 D_8018D310;
|
|
|
|
void func_8004ED40(s32 playerId) {
|
|
struct_8018CA70_entry *temp_v0;
|
|
|
|
temp_v0 = &D_8018CA70[playerId];
|
|
func_8004A2F4((s32) temp_v0->speedometerX, (s32) temp_v0->speedometerY, 0U, 1.0f, (s32) D_8018D300, (s32) D_8018D308, (s32) D_8018D310, 0x000000FF, (s32) D_0D009958, D_0D0064B0, 0x00000040, 0x00000060, 0x00000040, 0x00000030);
|
|
func_8004A258((s32) D_8018CFEC, (s32) D_8018CFF4, D_8016579E, 1.0f, (s32) D_0D00A558, D_0D005FF0, 0x00000040, 0x00000020, 0x00000040, 0x00000020);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004ED40.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_8004D37C(s32, s32, s32, u16, s32, s32, s32, s32, s32, s32, s32); /* extern */
|
|
? func_8004D4E8(s32, s32, s32, u16, s32, s32, s32, s32, s32, s32, s32); /* extern */
|
|
extern s32 D_8018D240;
|
|
extern s16 D_8018D2B0;
|
|
extern s16 D_8018D2B8;
|
|
extern ? D_8018D2C0;
|
|
extern ? D_8018D2D8;
|
|
extern s16 D_8018D2F0;
|
|
extern s16 D_8018D2F8;
|
|
extern u16 D_8018D300;
|
|
extern u16 D_8018D308;
|
|
extern u16 D_8018D310;
|
|
|
|
void func_8004EE54(s32 arg0) {
|
|
s16 temp_t0;
|
|
s16 temp_t0_2;
|
|
s16 temp_v1;
|
|
s16 temp_v1_2;
|
|
s32 temp_t6;
|
|
s32 temp_v0;
|
|
|
|
if (gIsMirrorMode != 0) {
|
|
temp_v0 = arg0 * 2;
|
|
temp_t0 = D_8018D2B8;
|
|
temp_v1 = D_8018D2B0;
|
|
func_8004D4E8(*(&D_8018D2C0 + temp_v0) + D_8018D2F0, *(&D_8018D2D8 + temp_v0) + D_8018D2F8, D_8018D240, D_8018D300, (s32) D_8018D308, (s32) D_8018D310, 0x000000FF, (s32) temp_v1, (s32) temp_t0, (s32) temp_v1, (s32) temp_t0);
|
|
return;
|
|
}
|
|
temp_t6 = arg0 * 2;
|
|
temp_t0_2 = D_8018D2B8;
|
|
temp_v1_2 = D_8018D2B0;
|
|
func_8004D37C(*(&D_8018D2C0 + temp_t6) + D_8018D2F0, *(&D_8018D2D8 + temp_t6) + D_8018D2F8, D_8018D240, D_8018D300, (s32) D_8018D308, (s32) D_8018D310, 0x000000FF, (s32) temp_v1_2, (s32) temp_t0_2, (s32) temp_v1_2, (s32) temp_t0_2);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004EE54.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_8004D37C(?, ?, s32, ?, s32, s32, s32, s32, s32, s32, s32); /* extern */
|
|
extern ? D_8018D248;
|
|
static s32 D_800E5548[0]; /* unable to generate initializer */
|
|
|
|
void func_8004EF9C(s32 arg0) {
|
|
s16 temp_t0;
|
|
s16 temp_v0;
|
|
s32 *temp_v1;
|
|
|
|
temp_v1 = &D_800E5548[arg0];
|
|
temp_v0 = temp_v1->unk0;
|
|
temp_t0 = temp_v1->unk2;
|
|
func_8004D37C(0x104, 0x3C, *(&D_8018D248 + (arg0 * 4)), 0xFF, 0x000000FF, 0x000000FF, 0x000000FF, (s32) temp_v0, (s32) temp_t0, (s32) temp_v0, (s32) temp_t0);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004EF9C.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern s16 D_8018D2B0;
|
|
extern s16 D_8018D2B8;
|
|
extern ? D_8018D2C0;
|
|
extern ? D_8018D2D8;
|
|
extern s16 D_8018D2E0;
|
|
extern s16 D_8018D2E8;
|
|
extern s16 D_8018D2F0;
|
|
extern s16 D_8018D2F8;
|
|
s16 gCurrentCourseId; /* unable to generate initializer */
|
|
|
|
void func_8004F020(s32 arg0) {
|
|
f32 var_f0;
|
|
f64 var_f16;
|
|
s16 temp_v1;
|
|
s32 temp_v0;
|
|
|
|
temp_v0 = arg0 * 2;
|
|
temp_v1 = gCurrentCourseId;
|
|
var_f0 = (f32) (((*(&D_8018D2D8 + temp_v0) + D_8018D2F8) - ((s16) D_8018D2B8 / 2)) + D_8018D2E8);
|
|
switch (temp_v1) { /* irregular */
|
|
case 0:
|
|
var_f16 = (f64) var_f0 - 2.0;
|
|
block_7:
|
|
var_f0 = (f32) var_f16;
|
|
break;
|
|
case 1:
|
|
var_f0 = (f32) ((f64) var_f0 - 16.0);
|
|
break;
|
|
case 11:
|
|
var_f16 = (f64) var_f0 + 4.0;
|
|
goto block_7;
|
|
}
|
|
func_8004CAD0((s32) (f32) (((*(&D_8018D2C0 + temp_v0) + D_8018D2F0) - ((s16) D_8018D2B0 / 2)) + D_8018D2E0), (s32) var_f0, (s32) D_0D02CC58);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004F020.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern f32 D_8018D2A0;
|
|
extern s16 D_8018D2B0;
|
|
extern s16 D_8018D2B8;
|
|
extern ? D_8018D2C0;
|
|
extern ? D_8018D2D8;
|
|
extern s16 D_8018D2E0;
|
|
extern s16 D_8018D2E8;
|
|
extern s16 D_8018D2F0;
|
|
extern s16 D_8018D2F8;
|
|
|
|
void func_8004F168(s32 arg0, s32 arg1, s32 arg2) {
|
|
Player *temp_v1;
|
|
f32 temp_f0;
|
|
s16 temp_a0;
|
|
s16 temp_a1;
|
|
s32 temp_t0;
|
|
s32 temp_v0;
|
|
|
|
temp_v1 = &gPlayerOne[arg1];
|
|
temp_t0 = arg0 * 2;
|
|
if (temp_v1->unk_000 & 0x8000) {
|
|
temp_f0 = D_8018D2A0;
|
|
temp_a0 = ((*(&D_8018D2C0 + temp_t0) + D_8018D2F0) - ((s16) D_8018D2B0 / 2)) + D_8018D2E0 + (s16) (s32) (temp_v1->pos[0] * temp_f0);
|
|
temp_a1 = ((*(&D_8018D2D8 + temp_t0) + D_8018D2F8) - ((s16) D_8018D2B8 / 2)) + D_8018D2E8 + (s32) (temp_v1->pos[2] * temp_f0);
|
|
if (arg2 != 8) {
|
|
if (gPlayerPositions[arg1] == 0) {
|
|
temp_v0 = gModeSelection;
|
|
if ((temp_v0 != 3) && (temp_v0 != 1)) {
|
|
func_80046424((s32) temp_a0, (s32) temp_a1, (temp_v1->unk_02C[1] + 0x8000) & 0xFFFF, 1.0f, (s32) ((arg2 << 7) + D_0D02CCD8), (s32) D_0D005470, 8, 8, 8, 8);
|
|
return;
|
|
}
|
|
}
|
|
func_800463B0((s32) temp_a0, (s32) temp_a1, (temp_v1->unk_02C[1] + 0x8000) & 0xFFFF, 1.0f, (s32) ((arg2 << 7) + D_0D02CCD8), (s32) D_0D005470, 8, 8, 8, 8);
|
|
return;
|
|
}
|
|
if (gPlayerPositions[arg1] == 0) {
|
|
func_8004C450((s32) temp_a0, (s32) temp_a1, 8U, 8U, (s32) D_0D02D0D8);
|
|
return;
|
|
}
|
|
func_8004C364((s32) temp_a0, (s32) temp_a1, 8U, 8U, (s32) D_0D02D0D8);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004F168.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_8004F168(s32, s16, u16); /* extern */
|
|
extern s32 D_8018D158;
|
|
|
|
void func_8004F3E4(s32 arg0) {
|
|
Player *temp_v0_3;
|
|
s16 *var_s0_2;
|
|
s16 *var_s0_4;
|
|
s16 *var_s0_5;
|
|
s16 temp_a1;
|
|
s16 temp_a1_2;
|
|
s16 temp_a1_3;
|
|
s16 var_s1;
|
|
s16 var_s1_2;
|
|
s32 temp_s1;
|
|
s32 temp_v0;
|
|
s32 var_s0;
|
|
s32 var_s0_3;
|
|
s32 var_s1_3;
|
|
void *temp_v0_2;
|
|
|
|
temp_v0 = gModeSelection;
|
|
if (temp_v0 != 0) {
|
|
var_s1 = 0;
|
|
switch (temp_v0) { /* irregular */
|
|
case 1:
|
|
var_s0 = 0;
|
|
do {
|
|
if ((*(var_s0 + gPlayerOne) & 0x100) == 0x100) {
|
|
func_8004F168(arg0, var_s1, 8U);
|
|
}
|
|
var_s1 += 1;
|
|
var_s0 += 0xDD8;
|
|
} while (var_s1 != (s16) 8U);
|
|
func_8004F168(arg0, 0, gPlayerOne->characterId);
|
|
return;
|
|
case 2:
|
|
temp_s1 = gPlayerCountSelection1 - 1;
|
|
if (temp_s1 >= 0) {
|
|
var_s0_2 = &gGPCurrentRacePlayerIdByRank[temp_s1];
|
|
do {
|
|
temp_a1 = *var_s0_2;
|
|
func_8004F168(arg0, temp_a1, gPlayerOne[temp_a1].characterId);
|
|
var_s0_2 -= 2;
|
|
} while ((u32) var_s0_2 >= (u32) gGPCurrentRacePlayerIdByRank);
|
|
return;
|
|
}
|
|
break;
|
|
case 3:
|
|
var_s1_2 = 0;
|
|
var_s0_3 = 0;
|
|
if (gPlayerCountSelection1 > 0) {
|
|
do {
|
|
temp_v0_2 = var_s0_3 + gPlayerOne;
|
|
if (!(temp_v0_2->unk0 & 0x40)) {
|
|
func_8004F168(arg0, var_s1_2, temp_v0_2->unk254);
|
|
}
|
|
var_s1_2 += 1;
|
|
var_s0_3 += 0xDD8;
|
|
} while (var_s1_2 < gPlayerCountSelection1);
|
|
}
|
|
break;
|
|
}
|
|
} else {
|
|
var_s1_3 = D_8018D158 - 1;
|
|
if (var_s1_3 >= 0) {
|
|
var_s0_4 = &gGPCurrentRacePlayerIdByRank[var_s1_3];
|
|
do {
|
|
temp_a1_2 = *var_s0_4;
|
|
if (gPlayerOne[temp_a1_2].unk_000 & 0x1000) {
|
|
func_8004F168(arg0, temp_a1_2, 8U);
|
|
}
|
|
var_s0_4 -= 2;
|
|
} while ((u32) var_s0_4 >= (u32) gGPCurrentRacePlayerIdByRank);
|
|
var_s1_3 = D_8018D158 - 1;
|
|
}
|
|
if (var_s1_3 >= 0) {
|
|
var_s0_5 = &gGPCurrentRacePlayerIdByRank[var_s1_3];
|
|
do {
|
|
temp_a1_3 = *var_s0_5;
|
|
temp_v0_3 = &gPlayerOne[temp_a1_3];
|
|
if ((temp_v0_3->unk_000 & 0x1000) != 0x1000) {
|
|
func_8004F168(arg0, temp_a1_3, temp_v0_3->characterId);
|
|
}
|
|
var_s0_5 -= 2;
|
|
} while ((u32) var_s0_5 >= (u32) gGPCurrentRacePlayerIdByRank);
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004F3E4.s")
|
|
#endif
|
|
|
|
s32 func_8004F674(s32 *arg0, s32 arg1) {
|
|
s32 temp_v0;
|
|
s32 ret;
|
|
|
|
temp_v0 = *arg0;
|
|
if (temp_v0 != 0) {
|
|
ret = temp_v0 / arg1;
|
|
*arg0 = temp_v0 % arg1;
|
|
} else {
|
|
*arg0 = 0;
|
|
ret = 0;
|
|
}
|
|
return ret;
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern ? D_801657D0;
|
|
|
|
void func_8004F6D0(s32 arg0) {
|
|
s32 sp24;
|
|
|
|
sp24 = arg0;
|
|
if (arg0 >= 0x000927BF) {
|
|
sp24 = 0x000927BF;
|
|
}
|
|
D_801657D0.unk0 = func_8004F674(&sp24, 0x0000EA60);
|
|
D_801657D0.unk1 = func_8004F674(&sp24, 0x00001770);
|
|
D_801657D0.unk3 = func_8004F674(&sp24, 0x000003E8);
|
|
D_801657D0.unk4 = func_8004F674(&sp24, 0x00000064);
|
|
D_801657D0.unk6 = func_8004F674(&sp24, 0x0000000A);
|
|
D_801657D0.unk2 = 0x0A;
|
|
D_801657D0.unk5 = 0x0B;
|
|
D_801657D0.unk7 = (s8) sp24;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004F6D0.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
|
void func_8004BA98(s32, ?, ?, ?, s32, s32, s32); // extern
|
|
extern s8 D_801657D0;
|
|
extern s8 D_801657D8;
|
|
|
|
void func_8004F774(s32 arg0, ? arg1) {
|
|
s8 *temp_s0;
|
|
s32 phi_s1;
|
|
s8 *phi_s0;
|
|
|
|
phi_s1 = arg0;
|
|
phi_s0 = &D_801657D0;
|
|
do {
|
|
func_8004BA98(phi_s1, arg1, 8, 0x10, *phi_s0 * 8, 0, 0);
|
|
temp_s0 = phi_s0 + 1;
|
|
phi_s1 += 8;
|
|
phi_s0 = temp_s0;
|
|
} while (temp_s0 != &D_801657D8);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004F774.s")
|
|
#endif
|
|
|
|
void print_timer(s32 arg0, s32 arg1, s32 arg2) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D008108);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007EF8);
|
|
gDPSetAlphaCompare(gDisplayListHead++, G_AC_THRESHOLD);
|
|
func_80043D50(D_0D00C558, 104, 16);
|
|
func_8004F6D0(arg2);
|
|
func_8004F774(arg0, arg1);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007EB8);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
|
void func_8004BA98(s32, ?, ?, ?, s32, s32, s32); // extern
|
|
extern s8 D_801657D0;
|
|
extern s8 D_801657D8;
|
|
|
|
void func_8004F8CC(s32 arg0, ? arg1) {
|
|
s8 *temp_s0;
|
|
s32 phi_s1;
|
|
s8 *phi_s0;
|
|
|
|
phi_s1 = arg0;
|
|
phi_s0 = &D_801657D0;
|
|
do {
|
|
func_8004BA98(phi_s1, arg1, 8, 0x10, *phi_s0 * 8, 0, 1);
|
|
temp_s0 = phi_s0 + 1;
|
|
phi_s1 += 8;
|
|
phi_s0 = temp_s0;
|
|
} while (temp_s0 != &D_801657D8);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004F8CC.s")
|
|
#endif
|
|
|
|
void func_8004F950(s32 arg0, s32 arg1, s32 arg2, s32 arg3) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D007F38);
|
|
func_8004B2BC(arg2);
|
|
func_80043D50(D_0D00C558, 104, 16);
|
|
func_8004F6D0(arg3);
|
|
func_8004F8CC(arg0, arg1);
|
|
}
|
|
|
|
void func_8004F9CC(s32 arg0, s32 arg1, s32 arg2) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D007F38);
|
|
func_8004B614(D_801656C0, D_801656D0, D_801656E0, 128, 128, 128, 255);
|
|
func_80043D50(&D_0D00C558, 104, 16);
|
|
func_8004F6D0(arg2);
|
|
func_8004F8CC(arg0, arg1);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern s32 D_80165658;
|
|
extern s8 D_801657E3;
|
|
extern s8 D_801657E5;
|
|
extern s32 D_8018D320;
|
|
|
|
void func_8004FA78(s32 playerId) {
|
|
s32 *var_s3;
|
|
s32 temp_v0;
|
|
s32 var_s0;
|
|
struct_8018CA70_entry *temp_s4;
|
|
struct_8018CA70_entry *var_s1;
|
|
struct_8018CA70_entry *var_s2;
|
|
|
|
temp_v0 = gModeSelection;
|
|
if ((temp_v0 != 2) && (temp_v0 != 3)) {
|
|
temp_s4 = &D_8018CA70[playerId];
|
|
if (D_8018D320 == temp_s4->lapCount) {
|
|
var_s3 = &D_80165658;
|
|
var_s1 = temp_s4;
|
|
if (D_8015F890 == 0) {
|
|
var_s0 = 0;
|
|
var_s2 = temp_s4;
|
|
do {
|
|
if (*var_s3 == 0) {
|
|
print_timer((s32) var_s1->lap1CompletionTimeX, temp_s4->timerY + var_s0, (s32) var_s2->lap1Duration);
|
|
} else {
|
|
func_8004F9CC((s32) var_s1->lap1CompletionTimeX, temp_s4->timerY + var_s0, (s32) var_s2->lap1Duration);
|
|
}
|
|
var_s0 += 0x10;
|
|
var_s3 += 4;
|
|
var_s1 += 2;
|
|
var_s2 += 4;
|
|
} while (var_s0 != 0x30);
|
|
func_8004CB90(temp_s4->totalTimeX - 0x13, temp_s4->timerY + 0x38, (s32) D_0D00BD58);
|
|
if (D_801657E5 != 0) {
|
|
func_8004F9CC((s32) temp_s4->totalTimeX, temp_s4->timerY + 0x30, (s32) temp_s4->someTimer);
|
|
return;
|
|
}
|
|
print_timer((s32) temp_s4->totalTimeX, temp_s4->timerY + 0x30, (s32) temp_s4->someTimer);
|
|
}
|
|
} else {
|
|
if (temp_s4->blinkTimer == 0) {
|
|
func_8004CB90(temp_s4->timerX - 0x13, temp_s4->timerY + 8, (s32) D_0D00C158);
|
|
print_timer((s32) temp_s4->timerX, (s32) temp_s4->timerY, (s32) temp_s4->someTimer);
|
|
return;
|
|
}
|
|
func_8004CB90(temp_s4->timerX - 0x13, temp_s4->timerY + 8, 0x0D00AD58);
|
|
if (D_801657E3 != 0) {
|
|
func_8004F9CC((s32) temp_s4->timerX, (s32) temp_s4->timerY, (s32) temp_s4->someTimer1);
|
|
return;
|
|
}
|
|
if (temp_s4->blinkState == 0) {
|
|
print_timer((s32) temp_s4->timerX, (s32) temp_s4->timerY, (s32) temp_s4->someTimer1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004FA78.s")
|
|
#endif
|
|
|
|
void func_8004FC78(s16 arg0, s16 arg1, s8 arg2) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D008108);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007EF8);
|
|
gDPSetAlphaCompare(gDisplayListHead++, G_AC_THRESHOLD);
|
|
func_80043D50(D_0D00AB58, 32, 8);
|
|
func_8004BA98(arg0, arg1, 8, 8, arg2 * 8, 0, 0);
|
|
func_8004BA98(arg0 + 8, arg1, 8, 8, 24, 0, 0);
|
|
func_8004BA98(arg0 + 16, arg1, 8, 8, 16, 0, 0);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007EB8);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80044924(s8 *, ?, ?); /* extern */
|
|
extern ? D_0D019458;
|
|
extern ? D_0D019658;
|
|
extern s32 D_8018D3E0;
|
|
extern s32 D_8018D3E4;
|
|
extern s32 D_8018D3E8;
|
|
extern s32 D_8018D3EC;
|
|
static u32 D_800E457C[8] = {
|
|
(u32) D_0D01A4D8,
|
|
(u32) D_0D01A6D8,
|
|
(u32) D_0D01ACD8,
|
|
(u32) D_0D01AAD8,
|
|
(u32) D_0D01AED8,
|
|
(u32) D_0D01B0D8,
|
|
(u32) D_0D01A8D8,
|
|
(u32) D_0D01B2D8,
|
|
};
|
|
static s8 *D_800E459C[9] = {
|
|
D_0D01B6D8,
|
|
D_0D01BAD8,
|
|
D_0D01C6D8,
|
|
D_0D01C2D8,
|
|
D_0D01CAD8,
|
|
D_0D01CED8,
|
|
D_0D01BED8,
|
|
D_0D01D2D8,
|
|
NULL,
|
|
};
|
|
s16 gCurrentCourseId; /* unable to generate initializer */
|
|
|
|
void func_8004FDB4(f32 arg0, f32 arg1, s16 arg2, s16 arg3, s16 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8) {
|
|
s32 sp34;
|
|
s32 sp30;
|
|
Gfx *sp2C;
|
|
Gfx *sp28;
|
|
Gfx *temp_s0;
|
|
Gfx *temp_s0_10;
|
|
Gfx *temp_s0_11;
|
|
Gfx *temp_s0_12;
|
|
Gfx *temp_s0_13;
|
|
Gfx *temp_s0_14;
|
|
Gfx *temp_s0_15;
|
|
Gfx *temp_s0_16;
|
|
Gfx *temp_s0_17;
|
|
Gfx *temp_s0_18;
|
|
Gfx *temp_s0_19;
|
|
Gfx *temp_s0_20;
|
|
Gfx *temp_s0_21;
|
|
Gfx *temp_s0_22;
|
|
Gfx *temp_s0_23;
|
|
Gfx *temp_s0_24;
|
|
Gfx *temp_s0_25;
|
|
Gfx *temp_s0_26;
|
|
Gfx *temp_s0_27;
|
|
Gfx *temp_s0_28;
|
|
Gfx *temp_s0_2;
|
|
Gfx *temp_s0_3;
|
|
Gfx *temp_s0_4;
|
|
Gfx *temp_s0_5;
|
|
Gfx *temp_s0_6;
|
|
Gfx *temp_s0_7;
|
|
Gfx *temp_s0_8;
|
|
Gfx *temp_s0_9;
|
|
s32 temp_f10;
|
|
s32 temp_f8;
|
|
|
|
if ((gCurrentCourseId == 4) && (arg3 < 3) && (arg8 == 0)) {
|
|
func_80042330((s32) arg0, (s32) arg1, 0U, 1.0f);
|
|
temp_s0 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0 + 8;
|
|
temp_s0->words.w1 = (u32) D_0D007DB8;
|
|
temp_s0->words.w0 = 0x06000000;
|
|
func_8004B35C(0x000000FF, 0x000000FF, 0x000000FF, D_8018D3E0);
|
|
temp_s0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_2 + 8;
|
|
temp_s0_2->words.w0 = 0xFD100000;
|
|
temp_s0_2->words.w1 = (u32) D_0D01B4D8;
|
|
temp_s0_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_3 + 8;
|
|
temp_s0_3->words.w1 = 0;
|
|
temp_s0_3->words.w0 = 0xE8000000;
|
|
temp_s0_4 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_4 + 8;
|
|
temp_s0_4->words.w1 = 0x07000000;
|
|
temp_s0_4->words.w0 = 0xF5000100;
|
|
temp_s0_5 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_5 + 8;
|
|
temp_s0_5->words.w1 = 0;
|
|
temp_s0_5->words.w0 = 0xE6000000;
|
|
temp_s0_6 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_6 + 8;
|
|
temp_s0_6->words.w1 = 0x073FC000;
|
|
temp_s0_6->words.w0 = 0xF0000000;
|
|
temp_s0_7 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_7 + 8;
|
|
temp_s0_7->words.w1 = 0;
|
|
temp_s0_7->words.w0 = 0xE7000000;
|
|
func_800452A4(D_0D01DAD8, 0x00000020, 0x00000020);
|
|
temp_s0_8 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_8 + 8;
|
|
temp_s0_8->words.w1 = (u32) D_0D0069E0;
|
|
} else {
|
|
temp_f8 = (s32) arg0;
|
|
temp_f10 = (s32) arg1;
|
|
sp34 = temp_f8;
|
|
sp30 = temp_f10;
|
|
func_80042330(temp_f8, temp_f10, 0U, 1.0f);
|
|
temp_s0_9 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_9 + 8;
|
|
temp_s0_9->words.w1 = (u32) D_0D007DB8;
|
|
temp_s0_9->words.w0 = 0x06000000;
|
|
sp2C = D_0D007DB8;
|
|
func_8004B35C(0x000000FF, 0x000000FF, 0x000000FF, arg5);
|
|
temp_s0_10 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_10 + 8;
|
|
temp_s0_10->words.w0 = 0xFD100000;
|
|
temp_s0_10->words.w1 = D_800E457C[arg4];
|
|
temp_s0_11 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_11 + 8;
|
|
temp_s0_11->words.w1 = 0;
|
|
temp_s0_11->words.w0 = 0xE8000000;
|
|
temp_s0_12 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_12 + 8;
|
|
temp_s0_12->words.w1 = 0x07000000;
|
|
temp_s0_12->words.w0 = 0xF5000100;
|
|
temp_s0_13 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_13 + 8;
|
|
temp_s0_13->words.w1 = 0;
|
|
temp_s0_13->words.w0 = 0xE6000000;
|
|
temp_s0_14 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_14 + 8;
|
|
temp_s0_14->words.w1 = 0x073FC000;
|
|
temp_s0_14->words.w0 = 0xF0000000;
|
|
temp_s0_15 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_15 + 8;
|
|
temp_s0_15->words.w1 = 0;
|
|
temp_s0_15->words.w0 = 0xE7000000;
|
|
func_800452A4(D_800E459C[arg4], 0x00000020, 0x00000020);
|
|
if (arg7 != 0) {
|
|
temp_s0_16 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_16 + 8;
|
|
temp_s0_16->words.w1 = (u32) D_0D0069F8;
|
|
} else {
|
|
temp_s0_17 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_17 + 8;
|
|
temp_s0_17->words.w1 = (u32) D_0D0069E0;
|
|
}
|
|
gDisplayListHead->words.w0 = 0x06000000;
|
|
if (arg6 != 0) {
|
|
sp28 = D_0D0069E0;
|
|
func_80042330(sp34, sp30, 0U, 1.0f);
|
|
temp_s0_18 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_18 + 8;
|
|
temp_s0_18->words.w1 = (u32) D_0D007A60;
|
|
temp_s0_18->words.w0 = 0x06000000;
|
|
func_8004B35C(D_8018D3E4, D_8018D3E8, D_8018D3EC, 0x000000FF);
|
|
func_80044924(D_0D01A2D8, 0x20, 0x20);
|
|
temp_s0_19 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_19 + 8;
|
|
temp_s0_19->words.w0 = 0x06000000;
|
|
temp_s0_19->words.w1 = (u32) sp28;
|
|
}
|
|
temp_s0_20 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_20 + 8;
|
|
temp_s0_20->words.w0 = 0x06000000;
|
|
temp_s0_20->words.w1 = (u32) sp2C;
|
|
func_8004B35C(0x000000FF, 0x000000FF, 0x000000FF, arg5);
|
|
temp_s0_21 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_21 + 8;
|
|
temp_s0_21->words.w1 = (u32) D_0D007CB8;
|
|
temp_s0_21->words.w0 = 0x06000000;
|
|
temp_s0_22 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_22 + 8;
|
|
temp_s0_22->words.w0 = 0xFD100000;
|
|
temp_s0_22->words.w1 = (u32) &D_0D019458;
|
|
temp_s0_23 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_23 + 8;
|
|
temp_s0_23->words.w1 = 0;
|
|
temp_s0_23->words.w0 = 0xE8000000;
|
|
temp_s0_24 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_24 + 8;
|
|
temp_s0_24->words.w1 = 0x07000000;
|
|
temp_s0_24->words.w0 = 0xF5000100;
|
|
temp_s0_25 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_25 + 8;
|
|
temp_s0_25->words.w1 = 0;
|
|
temp_s0_25->words.w0 = 0xE6000000;
|
|
temp_s0_26 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_26 + 8;
|
|
temp_s0_26->words.w1 = 0x073FC000;
|
|
temp_s0_26->words.w0 = 0xF0000000;
|
|
temp_s0_27 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_27 + 8;
|
|
temp_s0_27->words.w1 = 0;
|
|
temp_s0_27->words.w0 = 0xE7000000;
|
|
func_800452A4((arg2 << 8) + &D_0D019658, 0x00000010, 0x00000010);
|
|
if (arg7 != 0) {
|
|
func_80042330((s32) (arg0 + 9.0f), (s32) (arg1 + 7.0f), 0U, 1.0f);
|
|
} else {
|
|
func_80042330((s32) (arg0 - 9.0f), (s32) (arg1 + 7.0f), 0U, 1.0f);
|
|
}
|
|
temp_s0_28 = gDisplayListHead;
|
|
gDisplayListHead = temp_s0_28 + 8;
|
|
temp_s0_28->words.w1 = (u32) D_0D006980;
|
|
}
|
|
gDisplayListHead->words.w0 = 0x06000000;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8004FDB4.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_8004FDB4(f32, f32, s32, s32, s16, s16, s32, s32, s32, s32, s32); /* extern */
|
|
extern s8 D_801657E2;
|
|
extern ? D_8018D028;
|
|
extern f32 D_8018D050;
|
|
extern ? D_8018D078;
|
|
extern s32 D_8018D3E0;
|
|
extern ? gGPCurrentRaceRanks;
|
|
|
|
void func_80050320(void) {
|
|
Gfx *temp_v1_3;
|
|
f32 *temp_t0;
|
|
f32 *temp_t0_2;
|
|
f32 *var_s2;
|
|
f32 *var_s2_2;
|
|
f32 temp_f14;
|
|
f32 temp_f14_2;
|
|
s16 temp_v0;
|
|
s16 temp_v1;
|
|
s16 temp_v1_2;
|
|
s16 var_s0;
|
|
s16 var_s0_2;
|
|
s32 temp_a1;
|
|
s32 temp_a1_2;
|
|
s32 var_a0;
|
|
s32 var_a0_2;
|
|
s32 var_s1;
|
|
s32 var_s1_2;
|
|
|
|
if (D_801657E2 == 0) {
|
|
var_s2 = &D_8018D050;
|
|
var_s0 = 0;
|
|
var_s1 = 0;
|
|
do {
|
|
temp_f14 = *var_s2;
|
|
var_a0 = 0;
|
|
if (temp_f14 >= 0.0f) {
|
|
temp_t0 = var_s1 + &D_8018D028;
|
|
if ((f64) *(&D_8018D078 + var_s1) < 0.0) {
|
|
var_a0 = 1;
|
|
}
|
|
temp_v1 = *((var_s0 * 2) + &gGPCurrentRaceRanks);
|
|
temp_a1 = gLapCountByPlayerId[gGPCurrentRacePlayerIdByRank[var_s0]];
|
|
if (temp_v1 == gPlayerOne->characterId) {
|
|
func_8004FDB4(*temp_t0, temp_f14, var_a0, temp_a1, var_s0, (s16) temp_a1, (s32) temp_v1, 0x000000FF, 1, var_a0, 0);
|
|
} else {
|
|
func_8004FDB4(*temp_t0, temp_f14, var_a0, temp_a1, var_s0, (s16) temp_a1, (s32) temp_v1, D_8018D3E0, 0, var_a0, 0);
|
|
}
|
|
}
|
|
var_s0 += 1;
|
|
var_s1 += 4;
|
|
var_s2 += 4;
|
|
} while (var_s0 != 4);
|
|
} else {
|
|
var_s2_2 = &D_8018D050;
|
|
var_s0_2 = 0;
|
|
var_s1_2 = 0;
|
|
do {
|
|
temp_f14_2 = *var_s2_2;
|
|
var_a0_2 = 0;
|
|
if (temp_f14_2 >= 0.0f) {
|
|
temp_t0_2 = var_s1_2 + &D_8018D028;
|
|
if ((f64) *(&D_8018D078 + var_s1_2) <= 0.0) {
|
|
var_a0_2 = 1;
|
|
}
|
|
temp_v0 = gGPCurrentRacePlayerIdByRank[var_s0_2];
|
|
temp_a1_2 = gLapCountByPlayerId[temp_v0];
|
|
temp_v1_2 = (s16) gPlayerOne[temp_v0].characterId;
|
|
if (temp_v0 == 0) {
|
|
func_8004FDB4(*temp_t0_2, temp_f14_2, var_a0_2, temp_a1_2, var_s0_2, (s16) temp_a1_2, (s32) temp_v1_2, 0x000000FF, 1, var_a0_2, 1);
|
|
} else {
|
|
func_8004FDB4(*temp_t0_2, temp_f14_2, var_a0_2, temp_a1_2, var_s0_2, (s16) temp_a1_2, (s32) temp_v1_2, 0x000000FF, 0, var_a0_2, 1);
|
|
}
|
|
}
|
|
var_s0_2 += 1;
|
|
var_s1_2 += 4;
|
|
var_s2_2 += 4;
|
|
} while (var_s0_2 != 8);
|
|
}
|
|
temp_v1_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_3 + 8;
|
|
temp_v1_3->words.w0 = 0xBB000000;
|
|
temp_v1_3->words.w1 = 0x00010001;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80050320.s")
|
|
#endif
|
|
|
|
s32 func_80050644(u16 arg0, s32 *arg1, s32 *arg2) {
|
|
s32 var_v0 = 0;
|
|
s32 thing = 0;
|
|
s32 test = gLapCountByPlayerId[arg0];
|
|
|
|
if (test < 3) {
|
|
if (gPlayerCountSelection1 == 1) {
|
|
if (test >= 0) {
|
|
thing = (s32) (gLapCompletionPercentByPlayerId[arg0] * 928);
|
|
}
|
|
if (thing < 0x104) {
|
|
*arg1 = thing;
|
|
*arg2 = 0;
|
|
var_v0 = 1;
|
|
} else if (thing < 0x1D0) {
|
|
*arg1 = 0x00000104;
|
|
*arg2 = thing - 0x104;
|
|
var_v0 = 2;
|
|
} else if (thing < 0x2D4) {
|
|
*arg1 = 0x2D4 - thing;
|
|
*arg2 = 0x000000CC;
|
|
var_v0 = 3;
|
|
} else {
|
|
*arg1 = 0;
|
|
*arg2 = 0x3A0 - thing;
|
|
var_v0 = 4;
|
|
}
|
|
} else {
|
|
if (test >= 0) {
|
|
thing = (s32) (gLapCompletionPercentByPlayerId[arg0] * 260);
|
|
}
|
|
*arg1 = thing;
|
|
*arg2 = 0;
|
|
}
|
|
} else if (gPlayerCountSelection1 == 1) {
|
|
*arg1 = 0x00000020;
|
|
*arg2 = (gPlayerPositions[arg0] * 0x14) + 0x20;
|
|
} else {
|
|
thing = (s32) (gLapCompletionPercentByPlayerId[arg0] * 260);
|
|
*arg1 = thing;
|
|
*arg2 = 0;
|
|
}
|
|
return var_v0;
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
|
extern u16 D_80163E2A;
|
|
extern u16 D_80164430;
|
|
|
|
void func_800507D8(s32 arg0, s32 *arg1, s32 *arg2) {
|
|
u16 temp_v0;
|
|
s32 phi_v1;
|
|
|
|
temp_v0 = *(&D_80163E2A + ((arg0 & 0xFFFF) * 0x54));
|
|
phi_v1 = 0;
|
|
if (temp_v0 != 0) {
|
|
phi_v1 = (temp_v0 * 0x3A0) / D_80164430;
|
|
}
|
|
if (phi_v1 < 0x104) {
|
|
*arg1 = phi_v1;
|
|
*arg2 = 0;
|
|
return;
|
|
}
|
|
if (phi_v1 < 0x1D0) {
|
|
*arg1 = 0x104;
|
|
*arg2 = phi_v1 - 0x104;
|
|
return;
|
|
}
|
|
if (phi_v1 < 0x2D4) {
|
|
*arg1 = 0x2D4 - phi_v1;
|
|
*arg2 = 0xCC;
|
|
return;
|
|
}
|
|
*arg1 = 0;
|
|
*arg2 = 0x3A0 - phi_v1;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800507D8.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
u32 func_80050644(s32, s32 *, s32 *); /* extern */
|
|
extern s16 D_80164378;
|
|
|
|
void func_800508C0(void) {
|
|
s32 sp54;
|
|
s32 sp50;
|
|
u32 sp4C;
|
|
s32 sp48;
|
|
u16 sp42;
|
|
u16 sp40;
|
|
u16 sp3E;
|
|
s16 var_s0;
|
|
s32 temp_v1;
|
|
s32 var_s1;
|
|
s32 var_s2;
|
|
u16 var_s0_2;
|
|
u16 var_s0_3;
|
|
u16 var_s1_2;
|
|
u16 var_s2_2;
|
|
|
|
if (gModeSelection == TIME_TRIALS) {
|
|
var_s0 = D_80164378;
|
|
} else {
|
|
var_s0 = *gGPCurrentRacePlayerIdByRank;
|
|
}
|
|
temp_v1 = gLapCountByPlayerId[var_s0];
|
|
sp4C = func_80050644(var_s0 & 0xFFFF, &sp54, &sp50);
|
|
if (temp_v1 > 0) {
|
|
if (temp_v1 == 1) {
|
|
var_s0_2 = 0;
|
|
var_s1 = 0;
|
|
var_s2 = 0x000000FF;
|
|
} else {
|
|
var_s0_2 = 0x00FF;
|
|
if (temp_v1 == 2) {
|
|
var_s0_2 = 0x00FF;
|
|
var_s1 = 0x000000FF;
|
|
} else {
|
|
var_s1 = 0;
|
|
}
|
|
var_s2 = 0;
|
|
}
|
|
sp48 = temp_v1;
|
|
func_8004C024(0x0020, 0x0012, 0x0104, var_s0_2 & 0xFFFF, (u16) var_s1, (u16) var_s2, (u16) 0x000000FF);
|
|
func_8004C148(0x0124, 0x0012, 0x00CC, var_s0_2 & 0xFFFF, (u16) var_s1, (u16) var_s2, (u16) 0x000000FF);
|
|
func_8004C024(0x0020, 0x00DE, 0x0104, var_s0_2 & 0xFFFF, (u16) var_s1, (u16) var_s2, (u16) 0x000000FF);
|
|
func_8004C148(0x0020, 0x0012, 0x00CC, var_s0_2 & 0xFFFF, (u16) var_s1, (u16) var_s2, (u16) 0x000000FF);
|
|
sp42 = var_s0_2;
|
|
sp40 = (u16) var_s1;
|
|
sp3E = (u16) var_s2;
|
|
}
|
|
var_s0_3 = sp42;
|
|
var_s1_2 = sp40;
|
|
var_s2_2 = sp3E;
|
|
switch (temp_v1) { /* switch 1; irregular */
|
|
case 0: /* switch 1 */
|
|
var_s0_3 = 0;
|
|
var_s1_2 = 0;
|
|
var_s2_2 = 0x00FF;
|
|
default: /* switch 1 */
|
|
block_21:
|
|
switch (sp4C) {
|
|
case 1:
|
|
func_8004C024(0x0020, 0x0012, (s16) sp54, var_s0_3 & 0xFFFF, (u16) (s32) var_s1_2, (u16) (s32) var_s2_2, (u16) 0x000000FF);
|
|
return;
|
|
case 2:
|
|
func_8004C024(0x0020, 0x0012, 0x0104, var_s0_3 & 0xFFFF, (u16) (s32) var_s1_2, (u16) (s32) var_s2_2, (u16) 0x000000FF);
|
|
func_8004C148(0x0124, 0x0012, (s16) sp50, var_s0_3 & 0xFFFF, (u16) (s32) var_s1_2, (u16) (s32) var_s2_2, (u16) 0x000000FF);
|
|
return;
|
|
case 3:
|
|
func_8004C024(0x0020, 0x0012, 0x0104, var_s0_3 & 0xFFFF, (u16) (s32) var_s1_2, (u16) (s32) var_s2_2, (u16) 0x000000FF);
|
|
func_8004C148(0x0124, 0x0012, 0x00CC, var_s0_3 & 0xFFFF, (u16) (s32) var_s1_2, (u16) (s32) var_s2_2, (u16) 0x000000FF);
|
|
func_8004C024((s16) (sp54 + 0x20), 0x00DE, (s16) (0x104 - sp54), var_s0_3 & 0xFFFF, (u16) (s32) var_s1_2, (u16) (s32) var_s2_2, (u16) 0x000000FF);
|
|
return;
|
|
case 4:
|
|
func_8004C024(0x0020, 0x0012, 0x0104, var_s0_3 & 0xFFFF, (u16) (s32) var_s1_2, (u16) (s32) var_s2_2, (u16) 0x000000FF);
|
|
func_8004C148(0x0124, 0x0012, 0x00CC, var_s0_3 & 0xFFFF, (u16) (s32) var_s1_2, (u16) (s32) var_s2_2, (u16) 0x000000FF);
|
|
func_8004C024(0x0020, 0x00DE, 0x0104, var_s0_3 & 0xFFFF, (u16) (s32) var_s1_2, (u16) (s32) var_s2_2, (u16) 0x000000FF);
|
|
func_8004C148(0x0020, (s16) (sp50 + 0x12), (s16) (0xCC - sp50), var_s0_3 & 0xFFFF, (u16) (s32) var_s1_2, (u16) (s32) var_s2_2, (u16) 0x000000FF);
|
|
/* fallthrough */
|
|
default:
|
|
return;
|
|
}
|
|
break;
|
|
case 1: /* switch 1 */
|
|
var_s0_3 = 0x00FF;
|
|
var_s1_2 = 0x00FF;
|
|
block_20:
|
|
var_s2_2 = 0;
|
|
goto block_21;
|
|
case 2: /* switch 1 */
|
|
var_s0_3 = 0x00FF;
|
|
var_s1_2 = 0;
|
|
goto block_20;
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800508C0.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_800507D8(s32, s32 *, s32 *); /* extern */
|
|
extern ? D_80163DE8;
|
|
|
|
void func_80050C68(void) {
|
|
s32 sp88;
|
|
s32 sp84;
|
|
? *var_s2;
|
|
Gfx *temp_v0_2;
|
|
Gfx *temp_v0_3;
|
|
Gfx *temp_v0_4;
|
|
Gfx *temp_v0_5;
|
|
Gfx *temp_v0_6;
|
|
Gfx *temp_v0_7;
|
|
Gfx *temp_v0_8;
|
|
Gfx *temp_v0_9;
|
|
s32 var_s1;
|
|
u16 temp_v0;
|
|
|
|
var_s2 = &D_80163DE8;
|
|
var_s1 = 0;
|
|
do {
|
|
temp_v0 = var_s2->unk44;
|
|
if ((temp_v0 != 4) && (temp_v0 != 0)) {
|
|
func_800507D8(var_s1 & 0xFFFF, &sp88, &sp84);
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->words.w1 = (u32) D_0D007DB8;
|
|
temp_v0_2->words.w0 = 0x06000000;
|
|
temp_v0_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->words.w1 = (u32) D_0D01B4D8;
|
|
temp_v0_3->words.w0 = 0xFD100000;
|
|
temp_v0_4 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_4 + 8;
|
|
temp_v0_4->words.w1 = 0;
|
|
temp_v0_4->words.w0 = 0xE8000000;
|
|
temp_v0_5 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_5 + 8;
|
|
temp_v0_5->words.w1 = 0x07000000;
|
|
temp_v0_5->words.w0 = 0xF5000100;
|
|
temp_v0_6 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_6 + 8;
|
|
temp_v0_6->words.w1 = 0;
|
|
temp_v0_6->words.w0 = 0xE6000000;
|
|
temp_v0_7 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_7 + 8;
|
|
temp_v0_7->words.w1 = 0x073FC000;
|
|
temp_v0_7->words.w0 = 0xF0000000;
|
|
temp_v0_8 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_8 + 8;
|
|
temp_v0_8->words.w1 = 0;
|
|
temp_v0_8->words.w0 = 0xE7000000;
|
|
func_800452A4(D_0D01D6D8, 0x00000020, 0x00000020);
|
|
func_80042330(sp88 + 0x20, sp84 + 0x12, 0U, 0.6f);
|
|
temp_v0_9 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_9 + 8;
|
|
temp_v0_9->words.w1 = (u32) D_0D0069E0;
|
|
temp_v0_9->words.w0 = 0x06000000;
|
|
}
|
|
var_s1 += 1;
|
|
var_s2 += 0x54;
|
|
} while (var_s1 != 7);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80050C68.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80044924(s8 *, ?, ?); /* extern */
|
|
s32 func_80050644(s32, s32 *, s32 *, s32); /* extern */
|
|
extern ? D_0D019E58;
|
|
extern ? D_0D01A058;
|
|
extern u16 D_801656C0;
|
|
extern u16 D_801656D0;
|
|
extern u16 D_801656E0;
|
|
extern ? D_8018CE24;
|
|
extern s32 D_8018D3E4;
|
|
extern s32 D_8018D3E8;
|
|
extern s32 D_8018D3EC;
|
|
static u32 D_800E457C[8] = {
|
|
(u32) D_0D01A4D8,
|
|
(u32) D_0D01A6D8,
|
|
(u32) D_0D01ACD8,
|
|
(u32) D_0D01AAD8,
|
|
(u32) D_0D01AED8,
|
|
(u32) D_0D01B0D8,
|
|
(u32) D_0D01A8D8,
|
|
(u32) D_0D01B2D8,
|
|
};
|
|
static ? D_800E459C; /* unable to generate initializer */
|
|
s16 gCurrentCourseId; /* unable to generate initializer */
|
|
|
|
void func_80050E34(s32 playerId, s32 arg1) {
|
|
s32 spD4;
|
|
s32 spD0;
|
|
s32 spCC;
|
|
s32 spC4;
|
|
s32 spB8;
|
|
Player *spAC;
|
|
s32 sp3C; /* compiler-managed */
|
|
s16 *sp38;
|
|
Gfx *sp34;
|
|
Gfx *temp_v0_10;
|
|
Gfx *temp_v0_11;
|
|
Gfx *temp_v0_12;
|
|
Gfx *temp_v0_13;
|
|
Gfx *temp_v0_14;
|
|
Gfx *temp_v0_15;
|
|
Gfx *temp_v0_16;
|
|
Gfx *temp_v0_17;
|
|
Gfx *temp_v0_18;
|
|
Gfx *temp_v0_19;
|
|
Gfx *temp_v0_20;
|
|
Gfx *temp_v0_21;
|
|
Gfx *temp_v0_22;
|
|
Gfx *temp_v0_23;
|
|
Gfx *temp_v0_24;
|
|
Gfx *temp_v0_25;
|
|
Gfx *temp_v0_26;
|
|
Gfx *temp_v0_27;
|
|
Gfx *temp_v0_28;
|
|
Gfx *temp_v0_3;
|
|
Gfx *temp_v0_4;
|
|
Gfx *temp_v0_5;
|
|
Gfx *temp_v0_6;
|
|
Gfx *temp_v0_7;
|
|
Gfx *temp_v0_8;
|
|
Gfx *temp_v0_9;
|
|
Player *temp_v0;
|
|
f32 *temp_a0;
|
|
s16 *temp_a1;
|
|
s32 temp_s0;
|
|
s32 temp_t2;
|
|
s32 temp_v0_2;
|
|
struct_80165C18_entry *temp_s1_2;
|
|
u16 temp_s1;
|
|
|
|
temp_v0 = &gPlayerOne[playerId];
|
|
spAC = temp_v0;
|
|
temp_s0 = gLapCountByPlayerId[playerId];
|
|
temp_s1 = temp_v0->characterId;
|
|
if (gPlayerCountSelection1 == 1) {
|
|
spC4 = 0x00000012;
|
|
} else {
|
|
spC4 = 0x00000078;
|
|
}
|
|
spD4 = *(&D_8018CE24 + (playerId << 5));
|
|
temp_v0_2 = func_80050644(playerId & 0xFFFF, &spD0, &spCC, playerId);
|
|
if ((temp_v0_2 == 2) || (temp_v0_2 == 3)) {
|
|
spB8 = 1;
|
|
} else {
|
|
spB8 = 0;
|
|
}
|
|
temp_t2 = temp_s1 * 4;
|
|
if ((gCurrentCourseId == 4) && (temp_s0 < 3)) {
|
|
temp_v0_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->words.w0 = 0x06000000;
|
|
temp_v0_3->words.w1 = (u32) D_0D007DB8;
|
|
temp_v0_4 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_4 + 8;
|
|
temp_v0_4->words.w0 = 0xFD100000;
|
|
temp_v0_4->words.w1 = (u32) D_0D01B4D8;
|
|
temp_v0_5 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_5 + 8;
|
|
temp_v0_5->words.w1 = 0;
|
|
temp_v0_5->words.w0 = 0xE8000000;
|
|
temp_v0_6 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_6 + 8;
|
|
temp_v0_6->words.w1 = 0x07000000;
|
|
temp_v0_6->words.w0 = 0xF5000100;
|
|
temp_v0_7 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_7 + 8;
|
|
temp_v0_7->words.w1 = 0;
|
|
temp_v0_7->words.w0 = 0xE6000000;
|
|
temp_v0_8 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_8 + 8;
|
|
temp_v0_8->words.w1 = 0x073FC000;
|
|
temp_v0_8->words.w0 = 0xF0000000;
|
|
temp_v0_9 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_9 + 8;
|
|
temp_v0_9->words.w1 = 0;
|
|
temp_v0_9->words.w0 = 0xE7000000;
|
|
spD4 = spD4;
|
|
func_800452A4(D_0D01DAD8, 0x00000020, 0x00000020);
|
|
temp_s1_2 = &D_80165C18[spD4];
|
|
temp_s1_2->unk_004[0] = temp_s1_2->unk_028[0] + (f32) (spD0 + 0x20);
|
|
temp_s1_2->unk_004[2] = temp_s1_2->unk_028[2];
|
|
temp_s1_2->unk_004[1] = temp_s1_2->unk_028[1] + (f32) (spC4 + spCC);
|
|
func_80042E00(temp_s1_2->unk_004, (s16 *) temp_s1_2->unk_0BE, temp_s1_2->unk_000);
|
|
temp_v0_10 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_10 + 8;
|
|
temp_v0_10->words.w0 = 0x06000000;
|
|
temp_v0_10->words.w1 = (u32) D_0D0069E0;
|
|
return;
|
|
}
|
|
temp_v0_11 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_11 + 8;
|
|
temp_v0_11->words.w0 = 0xFD100000;
|
|
temp_v0_11->words.w1 = D_800E457C[temp_s1];
|
|
temp_v0_12 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_12 + 8;
|
|
temp_v0_12->words.w1 = 0;
|
|
temp_v0_12->words.w0 = 0xE8000000;
|
|
temp_v0_13 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_13 + 8;
|
|
temp_v0_13->words.w1 = 0x07000000;
|
|
temp_v0_13->words.w0 = 0xF5000100;
|
|
temp_v0_14 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_14 + 8;
|
|
temp_v0_14->words.w1 = 0;
|
|
temp_v0_14->words.w0 = 0xE6000000;
|
|
temp_v0_15 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_15 + 8;
|
|
temp_v0_15->words.w1 = 0x073FC000;
|
|
temp_v0_15->words.w0 = 0xF0000000;
|
|
temp_v0_16 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_16 + 8;
|
|
temp_v0_16->words.w1 = 0;
|
|
temp_v0_16->words.w0 = 0xE7000000;
|
|
temp_v0_17 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_17 + 8;
|
|
temp_v0_17->words.w1 = (u32) D_0D007DB8;
|
|
temp_v0_17->words.w0 = 0x06000000;
|
|
if (spAC->unk_0BC & 0x200) {
|
|
sp3C = temp_t2;
|
|
func_8004B614((s32) D_801656C0, (s32) D_801656D0, (s32) D_801656E0, 0x00000080, 0x00000080, 0x00000080, (s32) D_80165C18[spD4].unk_0A0);
|
|
} else {
|
|
sp3C = temp_t2;
|
|
func_8004B2BC((s32) D_80165C18[spD4].unk_0A0);
|
|
}
|
|
func_800452A4(*(&D_800E459C + sp3C), 0x00000020, 0x00000020);
|
|
temp_a0 = &D_80165C18[spD4] + 4;
|
|
temp_a1 = &D_80165C18[spD4] + 0xBE;
|
|
sp38 = temp_a1;
|
|
sp3C = temp_a0;
|
|
D_80165C18[spD4].unk_004[0] = D_80165C18[spD4].unk_028[0] + (f32) (spD0 + 0x20);
|
|
D_80165C18[spD4].unk_004[2] = D_80165C18[spD4].unk_028[2];
|
|
D_80165C18[spD4].unk_004[1] = D_80165C18[spD4].unk_028[1] + (f32) (spC4 + spCC);
|
|
func_80042E00(temp_a0, temp_a1, D_80165C18[spD4].unk_000);
|
|
if (spB8 != 0) {
|
|
temp_v0_18 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_18 + 8;
|
|
temp_v0_18->words.w1 = (u32) D_0D0069F8;
|
|
temp_v0_18->words.w0 = 0x06000000;
|
|
} else {
|
|
temp_v0_19 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_19 + 8;
|
|
temp_v0_19->words.w1 = (u32) D_0D0069E0;
|
|
temp_v0_19->words.w0 = 0x06000000;
|
|
}
|
|
temp_v0_20 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_20 + 8;
|
|
temp_v0_20->words.w0 = 0xFD100000;
|
|
temp_v0_20->words.w1 = (u32) &D_0D019E58;
|
|
temp_v0_21 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_21 + 8;
|
|
temp_v0_21->words.w1 = 0;
|
|
temp_v0_21->words.w0 = 0xE8000000;
|
|
temp_v0_22 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_22 + 8;
|
|
temp_v0_22->words.w1 = 0x07000000;
|
|
temp_v0_22->words.w0 = 0xF5000100;
|
|
temp_v0_23 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_23 + 8;
|
|
temp_v0_23->words.w1 = 0;
|
|
temp_v0_23->words.w0 = 0xE6000000;
|
|
temp_v0_24 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_24 + 8;
|
|
temp_v0_24->words.w1 = 0x073FC000;
|
|
temp_v0_24->words.w0 = 0xF0000000;
|
|
temp_v0_25 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_25 + 8;
|
|
temp_v0_25->words.w1 = 0;
|
|
temp_v0_25->words.w0 = 0xE7000000;
|
|
func_800452A4((arg1 << 6) + 0x40 + &D_0D01A058, 8, 8);
|
|
if (spB8 != 0) {
|
|
func_80042330(spD0 + 0x26, spC4 + spCC + 4, 0U, 1.0f);
|
|
} else {
|
|
func_80042330(spD0 + 0x1B, spC4 + spCC + 4, 0U, 1.0f);
|
|
}
|
|
temp_v0_26 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_26 + 8;
|
|
temp_v0_26->words.w0 = 0x06000000;
|
|
temp_v0_26->words.w1 = (u32) D_0D006950;
|
|
if ((spAC == gPlayerOne) && (gScreenModeSelection == 0)) {
|
|
temp_v0_27 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_27 + 8;
|
|
temp_v0_27->words.w1 = (u32) D_0D007A40;
|
|
temp_v0_27->words.w0 = 0x06000000;
|
|
sp34 = D_0D0069E0;
|
|
func_8004B35C(D_8018D3E4, D_8018D3E8, D_8018D3EC, 0x000000FF);
|
|
func_80044924(D_0D01A2D8, 0x20, 0x20);
|
|
func_80042E00(sp3C, sp38, D_80165C18[spD4].unk_000);
|
|
temp_v0_28 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_28 + 8;
|
|
temp_v0_28->words.w0 = 0x06000000;
|
|
temp_v0_28->words.w1 = (u32) sp34;
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80050E34.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_800508C0(); /* extern */
|
|
? func_80050E34(s16, s32); /* extern */
|
|
extern s32 D_80164408;
|
|
|
|
void func_800514BC(void) {
|
|
Gfx *temp_v1;
|
|
s16 *var_s2;
|
|
s16 temp_a0;
|
|
s32 var_s0;
|
|
s32 var_s1;
|
|
s32 var_s3;
|
|
|
|
if (gScreenModeSelection == SCREEN_MODE_1P) {
|
|
func_800508C0();
|
|
}
|
|
var_s3 = 8;
|
|
var_s1 = 0;
|
|
if ((gPlayerCountSelection1 == 2) && (gActiveScreenMode == SCREEN_MODE_2P_SPLITSCREEN_VERTICAL)) {
|
|
var_s3 = 0;
|
|
}
|
|
var_s0 = var_s3 - 1;
|
|
if (var_s3 > 0) {
|
|
var_s2 = &gGPCurrentRacePlayerIdByRank[var_s0];
|
|
do {
|
|
temp_a0 = *var_s2;
|
|
if ((gPlayerOne[temp_a0].unk_000 & 0x8000) && ((temp_a0 != 0) || (gPlayerCountSelection1 != 1))) {
|
|
func_80050E34(temp_a0, var_s0);
|
|
}
|
|
var_s1 += 1;
|
|
var_s0 -= 1;
|
|
var_s2 -= 2;
|
|
} while (var_s1 != var_s3);
|
|
}
|
|
if (gModeSelection == TIME_TRIALS) {
|
|
func_80050E34(0, D_80164408);
|
|
} else if (gPlayerCountSelection1 == 1) {
|
|
func_80050E34(0, *gPlayerPositions);
|
|
}
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0xBB000000;
|
|
temp_v1->words.w1 = 0x00010001;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800514BC.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern s32 D_8018C970;
|
|
|
|
void func_80051638(s32 arg0) {
|
|
Gfx *temp_v1;
|
|
Gfx *temp_v1_2;
|
|
Gfx *temp_v1_3;
|
|
Gfx *temp_v1_4;
|
|
Gfx *temp_v1_5;
|
|
s32 *var_s0;
|
|
s32 temp_a0;
|
|
struct_80165C18_entry *temp_v0;
|
|
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w1 = (u32) D_0D0079C8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_2 + 8;
|
|
temp_v1_2->words.w1 = 0x00003000;
|
|
temp_v1_2->words.w0 = 0xB6000000;
|
|
func_80043D50(D_0D028DD8, 0x00000020, 0x00000010);
|
|
var_s0 = &D_8018C970;
|
|
do {
|
|
temp_a0 = *var_s0;
|
|
if (temp_a0 != -1) {
|
|
temp_v0 = &D_80165C18[temp_a0];
|
|
if ((temp_v0->unk_0A6 >= 2) && (temp_v0->unk_0D5 == 7) && (D_8018D120 < 0x2EF)) {
|
|
func_80043104(temp_a0);
|
|
temp_v1_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_3 + 8;
|
|
temp_v1_3->words.w1 = (u32) D_0D0069C8;
|
|
temp_v1_3->words.w0 = 0x06000000;
|
|
}
|
|
}
|
|
var_s0 += 4;
|
|
} while (var_s0 != D_8018CA70);
|
|
temp_v1_4 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_4 + 8;
|
|
temp_v1_4->words.w1 = 0x00002000;
|
|
temp_v1_4->words.w0 = 0xB7000000;
|
|
temp_v1_5 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_5 + 8;
|
|
temp_v1_5->words.w0 = 0xBB000000;
|
|
temp_v1_5->words.w1 = 0x00010001;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80051638.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80044F34(s8 *, ?, ?); /* extern */
|
|
extern s32 D_8018C1B0;
|
|
extern ? D_8018C278;
|
|
|
|
void func_800517C8(void) {
|
|
Gfx *temp_v1;
|
|
Gfx *temp_v1_2;
|
|
Gfx *temp_v1_3;
|
|
Gfx *temp_v1_4;
|
|
s32 *var_s0;
|
|
s32 temp_a0;
|
|
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w1 = (u32) D_0D007AE0;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_2 + 8;
|
|
temp_v1_2->words.w1 = -0x00000C07U;
|
|
temp_v1_2->words.w0 = 0xFC627EC4;
|
|
func_80044F34(D_0D0293D8, 0x10, 0x10);
|
|
var_s0 = &D_8018C1B0;
|
|
do {
|
|
temp_a0 = *var_s0;
|
|
if (D_80165C18[temp_a0].unk_0A6 >= 2) {
|
|
func_80043104(temp_a0);
|
|
temp_v1_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_3 + 8;
|
|
temp_v1_3->words.w1 = (u32) D_0D006980;
|
|
temp_v1_3->words.w0 = 0x06000000;
|
|
}
|
|
var_s0 += 4;
|
|
} while (var_s0 != &D_8018C278);
|
|
temp_v1_4 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_4 + 8;
|
|
temp_v1_4->words.w0 = 0xBB000000;
|
|
temp_v1_4->words.w1 = 0x00010001;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800517C8.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80044DA0(s32 *, u8, u8); /* extern */
|
|
extern u8 D_8018D228;
|
|
|
|
void func_800518F8(s32 arg0, s16 arg1, s16 arg2) {
|
|
struct_80165C18_entry *sp18;
|
|
Gfx *temp_v0_2;
|
|
Gfx *temp_v0_3;
|
|
struct_80165C18_entry *temp_t0;
|
|
u8 temp_v0;
|
|
|
|
temp_t0 = &D_80165C18[arg0];
|
|
if (temp_t0->unk_054 & 0x10) {
|
|
temp_v0 = temp_t0->unk_0D5;
|
|
if (D_8018D228 != temp_v0) {
|
|
D_8018D228 = temp_v0;
|
|
sp18 = temp_t0;
|
|
func_80044DA0(temp_t0->unk_064, temp_t0->unk_0D9, temp_t0->unk_0DA);
|
|
}
|
|
sp18 = temp_t0;
|
|
func_80042330((s32) arg1, (s32) arg2, 0U, temp_t0->unk_000);
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->words.w0 = 0x0400103F;
|
|
temp_v0_2->words.w1 = (u32) temp_t0->unk_074;
|
|
temp_v0_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->words.w1 = (u32) D_0D006940;
|
|
temp_v0_3->words.w0 = 0x06000000;
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800518F8.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80044DA0(s32 *, u8, u8); /* extern */
|
|
extern u8 D_8018D228;
|
|
|
|
void func_800519D4(s32 arg0, s16 arg1, s16 arg2) {
|
|
Gfx *temp_v0_2;
|
|
Gfx *temp_v0_3;
|
|
struct_80165C18_entry *temp_s0;
|
|
u8 temp_v0;
|
|
|
|
temp_s0 = &D_80165C18[arg0];
|
|
if (temp_s0->unk_054 & 0x10) {
|
|
temp_v0 = temp_s0->unk_0D5;
|
|
if (D_8018D228 != temp_v0) {
|
|
D_8018D228 = temp_v0;
|
|
func_80044DA0(temp_s0->unk_064, temp_s0->unk_0D9, temp_s0->unk_0DA);
|
|
}
|
|
func_8004B138(0x000000FF, 0x000000FF, 0x000000FF, (s32) temp_s0->unk_0A0);
|
|
func_80042330((s32) arg1, (s32) arg2, 0U, temp_s0->unk_000);
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->words.w0 = 0x0400103F;
|
|
temp_v0_2->words.w1 = (u32) temp_s0->unk_074;
|
|
temp_v0_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->words.w1 = (u32) D_0D006940;
|
|
temp_v0_3->words.w0 = 0x06000000;
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800519D4.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_800518F8(s32, s16, s16); /* extern */
|
|
? func_800519D4(s32, s16, s16); /* extern */
|
|
extern ? D_0D007A60;
|
|
extern ? D_8018CC80;
|
|
extern s32 D_8018D1F0;
|
|
extern s8 D_8018D228;
|
|
extern u8 D_8018D230;
|
|
|
|
void func_80051ABC(s16 arg0, s32 arg1) {
|
|
Gfx *temp_v1;
|
|
s32 *var_s1;
|
|
s32 *var_s1_2;
|
|
s32 temp_a0;
|
|
s32 temp_a0_2;
|
|
s32 var_s0;
|
|
s32 var_s0_2;
|
|
struct_80165C18_entry *temp_v0;
|
|
struct_80165C18_entry *temp_v0_2;
|
|
|
|
D_8018D228 = 0xFF;
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) &D_0D007A60;
|
|
if (D_8018D230 != 0) {
|
|
func_8004B414(0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF);
|
|
var_s0 = 0;
|
|
if (D_8018D1F0 > 0) {
|
|
var_s1 = (arg1 * 4) + &D_8018CC80;
|
|
do {
|
|
temp_a0 = *var_s1;
|
|
temp_v0 = &D_80165C18[temp_a0];
|
|
func_800519D4(temp_a0, temp_v0->unk_09C, (s16) (arg0 - temp_v0->unk_09E));
|
|
var_s0 += 1;
|
|
var_s1 += 4;
|
|
} while (var_s0 < D_8018D1F0);
|
|
}
|
|
} else {
|
|
func_8004B6C4(0x000000FF, 0x000000FF, 0x000000FF);
|
|
var_s0_2 = 0;
|
|
if (D_8018D1F0 > 0) {
|
|
var_s1_2 = (arg1 * 4) + &D_8018CC80;
|
|
do {
|
|
temp_a0_2 = *var_s1_2;
|
|
temp_v0_2 = &D_80165C18[temp_a0_2];
|
|
func_800518F8(temp_a0_2, temp_v0_2->unk_09C, (s16) (arg0 - temp_v0_2->unk_09E));
|
|
var_s0_2 += 1;
|
|
var_s1_2 += 4;
|
|
} while (var_s0_2 < D_8018D1F0);
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80051ABC.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_800518F8(s32, s16, s16); /* extern */
|
|
? func_800519D4(s32, s16, s16); /* extern */
|
|
extern ? D_0D007A60;
|
|
extern ? D_8018CC80;
|
|
extern s32 D_8018D1F0;
|
|
extern s8 D_8018D228;
|
|
extern u8 D_8018D230;
|
|
s16 gCurrentCourseId; /* unable to generate initializer */
|
|
|
|
// arg0 = cameraHeight
|
|
void func_80051C60(s16 arg0, s32 arg1) {
|
|
Gfx *temp_v1;
|
|
s16 temp_v0;
|
|
s16 var_s5;
|
|
s32 *var_s1;
|
|
s32 *var_s1_2;
|
|
s32 temp_a0;
|
|
s32 temp_a0_2;
|
|
s32 var_s0;
|
|
s32 var_s0_2;
|
|
struct_80165C18_entry *temp_v0_2;
|
|
struct_80165C18_entry *temp_v0_3;
|
|
|
|
if (D_801658FE == 0) {
|
|
temp_v0 = gCurrentCourseId;
|
|
if (temp_v0 == 6) {
|
|
var_s5 = arg0;
|
|
} else if (temp_v0 == 9) {
|
|
var_s5 = arg0 - 0x10;
|
|
} else if (temp_v0 == 4) {
|
|
var_s5 = arg0 - 0x10;
|
|
} else {
|
|
var_s5 = arg0 + 0x10;
|
|
}
|
|
} else if (gCurrentCourseId == 6) {
|
|
var_s5 = arg0 * 2;
|
|
} else {
|
|
var_s5 = arg0 + 0x20;
|
|
}
|
|
D_8018D228 = 0xFF;
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) &D_0D007A60;
|
|
if (D_8018D230 != 0) {
|
|
func_8004B414(0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF);
|
|
var_s0 = 0;
|
|
if (D_8018D1F0 > 0) {
|
|
var_s1 = (arg1 * 4) + &D_8018CC80;
|
|
do {
|
|
temp_a0 = *var_s1;
|
|
temp_v0_2 = &D_80165C18[temp_a0];
|
|
func_800519D4(temp_a0, temp_v0_2->unk_09C, (s16) ((s32) (var_s5 - temp_v0_2->unk_09E) / 2));
|
|
var_s0 += 1;
|
|
var_s1 += 4;
|
|
} while (var_s0 < D_8018D1F0);
|
|
}
|
|
} else {
|
|
func_8004B6C4(0x000000FF, 0x000000FF, 0x000000FF);
|
|
var_s0_2 = 0;
|
|
if (D_8018D1F0 > 0) {
|
|
var_s1_2 = (arg1 * 4) + &D_8018CC80;
|
|
do {
|
|
temp_a0_2 = *var_s1_2;
|
|
temp_v0_3 = &D_80165C18[temp_a0_2];
|
|
func_800518F8(temp_a0_2, temp_v0_3->unk_09C, (s16) ((s32) (var_s5 - temp_v0_3->unk_09E) / 2));
|
|
var_s0_2 += 1;
|
|
var_s1_2 += 4;
|
|
} while (var_s0_2 < D_8018D1F0);
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80051C60.s")
|
|
#endif
|
|
|
|
void func_80051EBC(void) {
|
|
func_80051ABC(240 - D_800DC5EC->cameraHeight, 0); // 28
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern void *D_800DC5EC;
|
|
s16 gCurrentCourseId; /* unable to generate initializer */
|
|
|
|
void func_80051EF8(void) {
|
|
s16 temp_a0;
|
|
s16 temp_v0;
|
|
s16 var_a0;
|
|
|
|
temp_v0 = gCurrentCourseId;
|
|
temp_a0 = 0xF0 - D_800DC5EC->unk28;
|
|
if (temp_v0 == 6) {
|
|
var_a0 = temp_a0 - 0x30;
|
|
} else if (temp_v0 == 9) {
|
|
var_a0 = temp_a0 - 0x40;
|
|
} else if (temp_v0 == 4) {
|
|
var_a0 = temp_a0 - 0x40;
|
|
} else {
|
|
var_a0 = temp_a0 - 0x30;
|
|
}
|
|
func_80051ABC(var_a0, 0);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80051EF8.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern void *D_800DC5F0;
|
|
extern s32 D_8018D1F0;
|
|
s16 gCurrentCourseId; /* unable to generate initializer */
|
|
|
|
void func_80051F9C(void) {
|
|
s16 temp_a0;
|
|
s16 temp_v0;
|
|
s16 var_a0;
|
|
|
|
temp_v0 = gCurrentCourseId;
|
|
temp_a0 = 0xF0 - D_800DC5F0->unk28;
|
|
if (temp_v0 == 6) {
|
|
var_a0 = temp_a0 - 0x30;
|
|
} else if (temp_v0 == 9) {
|
|
var_a0 = temp_a0 - 0x40;
|
|
} else if (temp_v0 == 4) {
|
|
var_a0 = temp_a0 - 0x40;
|
|
} else {
|
|
var_a0 = temp_a0 - 0x30;
|
|
}
|
|
func_80051ABC(var_a0, D_8018D1F0);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80051F9C.s")
|
|
#endif
|
|
|
|
void func_80052044(void) {
|
|
func_80051C60(240 - D_800DC5EC->cameraHeight, 0);
|
|
}
|
|
|
|
void func_80052080(void) {
|
|
func_80051C60(240 - D_800DC5F0->cameraHeight, D_8018D1F0);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
|
extern ? D_800E45C0;
|
|
extern ? D_80165CED;
|
|
|
|
void func_800520C0(s32 arg0) {
|
|
s8 temp_v0;
|
|
s8 temp_v0_2;
|
|
s8 temp_v0_3;
|
|
s8 temp_v0_4;
|
|
s8 temp_v0_5;
|
|
s8 temp_v0_6;
|
|
|
|
if (*(&D_80165CED + (arg0 * 0xE0)) == 0) {
|
|
D_800E45C0.unk58 = 0;
|
|
temp_v0 = D_800E45C0.unk58;
|
|
D_800E45C0.unk59 = -0x78;
|
|
D_800E45C0.unk40 = temp_v0;
|
|
D_800E45C0.unk28 = temp_v0;
|
|
D_800E45C0.unk10 = temp_v0;
|
|
temp_v0_2 = D_800E45C0.unk59;
|
|
D_800E45C0.unk5A = 0;
|
|
D_800E45C0.unk41 = temp_v0_2;
|
|
D_800E45C0.unk29 = temp_v0_2;
|
|
D_800E45C0.unk11 = temp_v0_2;
|
|
temp_v0_3 = D_800E45C0.unk5A;
|
|
D_800E45C0.unk42 = temp_v0_3;
|
|
D_800E45C0.unk2A = temp_v0_3;
|
|
D_800E45C0.unk12 = temp_v0_3;
|
|
return;
|
|
}
|
|
D_800E45C0.unk58 = 0x63;
|
|
temp_v0_4 = D_800E45C0.unk58;
|
|
D_800E45C0.unk59 = 0x42;
|
|
D_800E45C0.unk40 = temp_v0_4;
|
|
D_800E45C0.unk28 = temp_v0_4;
|
|
D_800E45C0.unk10 = temp_v0_4;
|
|
temp_v0_5 = D_800E45C0.unk59;
|
|
D_800E45C0.unk5A = 0;
|
|
D_800E45C0.unk41 = temp_v0_5;
|
|
D_800E45C0.unk29 = temp_v0_5;
|
|
D_800E45C0.unk11 = temp_v0_5;
|
|
temp_v0_6 = D_800E45C0.unk5A;
|
|
D_800E45C0.unk42 = temp_v0_6;
|
|
D_800E45C0.unk2A = temp_v0_6;
|
|
D_800E45C0.unk12 = temp_v0_6;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800520C0.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_800520C0(s32); /* extern */
|
|
extern ? D_06007650;
|
|
extern ? D_060078C0;
|
|
extern ? D_06007978;
|
|
extern ? D_06007B38;
|
|
extern ? D_0D007828;
|
|
static ? D_800E45C0; /* unable to generate initializer */
|
|
static ? D_800E45C8; /* unable to generate initializer */
|
|
static ? D_800E45D8; /* unable to generate initializer */
|
|
static ? D_800E45E0; /* unable to generate initializer */
|
|
static ? D_800E45F0; /* unable to generate initializer */
|
|
static ? D_800E45F8; /* unable to generate initializer */
|
|
static ? D_800E4608; /* unable to generate initializer */
|
|
static ? D_800E4610; /* unable to generate initializer */
|
|
|
|
void func_8005217C(s32 arg0) {
|
|
s32 sp50;
|
|
struct_80165C18_entry *sp18;
|
|
Gfx *temp_v0;
|
|
Gfx *temp_v0_10;
|
|
Gfx *temp_v0_11;
|
|
Gfx *temp_v0_12;
|
|
Gfx *temp_v0_13;
|
|
Gfx *temp_v0_2;
|
|
Gfx *temp_v0_3;
|
|
Gfx *temp_v0_4;
|
|
Gfx *temp_v0_5;
|
|
Gfx *temp_v0_6;
|
|
Gfx *temp_v0_7;
|
|
Gfx *temp_v0_8;
|
|
Gfx *temp_v0_9;
|
|
s32 temp_a3;
|
|
struct_80165C18_entry *temp_v1;
|
|
|
|
temp_a3 = *D_80183F28;
|
|
temp_v1 = &D_80165C18[temp_a3];
|
|
if (temp_v1->unk_0A6 >= 2) {
|
|
sp18 = temp_v1;
|
|
sp50 = temp_a3;
|
|
if (func_8007223C(temp_a3, 0x00000010) != 0) {
|
|
sp50 = temp_a3;
|
|
func_80042E00(temp_v1->unk_004, (s16 *) temp_v1->unk_0BE, temp_v1->unk_000);
|
|
func_800520C0(sp50);
|
|
temp_v0 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0 + 8;
|
|
temp_v0->words.w1 = (u32) &D_0D007828;
|
|
temp_v0->words.w0 = 0x06000000;
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->words.w1 = (u32) &D_800E45C8;
|
|
temp_v0_2->words.w0 = 0x03860010;
|
|
temp_v0_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->words.w1 = (u32) &D_800E45C0;
|
|
temp_v0_3->words.w0 = 0x03880010;
|
|
temp_v0_4 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_4 + 8;
|
|
temp_v0_4->words.w1 = (u32) &D_06007B38;
|
|
temp_v0_4->words.w0 = 0x06000000;
|
|
temp_v0_5 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_5 + 8;
|
|
temp_v0_5->words.w1 = (u32) &D_800E45E0;
|
|
temp_v0_5->words.w0 = 0x03860010;
|
|
temp_v0_6 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_6 + 8;
|
|
temp_v0_6->words.w1 = (u32) &D_800E45D8;
|
|
temp_v0_6->words.w0 = 0x03880010;
|
|
temp_v0_7 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_7 + 8;
|
|
temp_v0_7->words.w1 = (u32) &D_06007978;
|
|
temp_v0_7->words.w0 = 0x06000000;
|
|
temp_v0_8 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_8 + 8;
|
|
temp_v0_8->words.w1 = (u32) &D_800E45F8;
|
|
temp_v0_8->words.w0 = 0x03860010;
|
|
temp_v0_9 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_9 + 8;
|
|
temp_v0_9->words.w1 = (u32) &D_800E45F0;
|
|
temp_v0_9->words.w0 = 0x03880010;
|
|
temp_v0_10 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_10 + 8;
|
|
temp_v0_10->words.w1 = (u32) &D_060078C0;
|
|
temp_v0_10->words.w0 = 0x06000000;
|
|
temp_v0_11 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_11 + 8;
|
|
temp_v0_11->words.w1 = (u32) &D_800E4610;
|
|
temp_v0_11->words.w0 = 0x03860010;
|
|
temp_v0_12 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_12 + 8;
|
|
temp_v0_12->words.w1 = (u32) &D_800E4608;
|
|
temp_v0_12->words.w0 = 0x03880010;
|
|
temp_v0_13 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_13 + 8;
|
|
temp_v0_13->words.w1 = (u32) &D_06007650;
|
|
temp_v0_13->words.w0 = 0x06000000;
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8005217C.s")
|
|
#endif
|
|
|
|
void func_800523B8(s32 arg0, s32 arg1, u32 arg2) {
|
|
s32 stackPadding0[2];
|
|
struct_80165C18_entry *temp_v1;
|
|
Camera *camera = &camera1[arg1];
|
|
|
|
temp_v1 = &D_80165C18[arg0];
|
|
temp_v1->unk_0B2[1] = func_800418AC(temp_v1->unk_004[0], temp_v1->unk_004[2], camera->pos);
|
|
func_800484BC(temp_v1->unk_004, temp_v1->unk_0B2, temp_v1->unk_000, temp_v1->unk_0A0, temp_v1->unk_060, temp_v1->unk_064, (Vtx *) temp_v1->unk_074, 0x00000030, 0x00000028, 0x00000030, 0x00000028);
|
|
if ((func_8007223C(arg0, 0x00000020) != 0) && (arg2 < 0x15F91U)) {
|
|
func_8004A630(&D_8018C830, temp_v1->unk_004, 0.4f);
|
|
}
|
|
}
|
|
|
|
void func_800524B4(s32 arg0) {
|
|
u32 temp_s2;
|
|
s32 someIndex;
|
|
s32 objectIndex;
|
|
|
|
for (someIndex = 0; someIndex < 10; someIndex++) {
|
|
objectIndex = D_8018BFA8[someIndex];
|
|
if (D_80165C18[objectIndex].unk_0A6 >= 2) {
|
|
temp_s2 = func_8008A364(objectIndex, arg0, 0x4000U, 0x00000320);
|
|
if (func_8007223C(objectIndex, 0x00040000) != 0) {
|
|
func_800523B8(objectIndex, arg0, temp_s2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern s16 D_80183E80;
|
|
extern s32 D_8018C3F0;
|
|
extern ? D_8018C490;
|
|
extern s32 D_8018C630;
|
|
extern ? D_8018C6A8;
|
|
extern s16 D_8018CFB0;
|
|
extern s16 D_8018CFC8;
|
|
extern s16 D_8018CFE8;
|
|
extern s16 D_8018D000;
|
|
|
|
void func_80052590(s32 cameraId) {
|
|
Camera *temp_s7;
|
|
Gfx *temp_v1;
|
|
s32 *var_s1;
|
|
s32 *var_s1_2;
|
|
s32 temp_v0;
|
|
s32 temp_v0_2;
|
|
struct_80165C18_entry *temp_s0;
|
|
struct_80165C18_entry *temp_s0_2;
|
|
struct_80165C18_entry *temp_s0_3;
|
|
|
|
temp_s0 = &D_80165C18[*D_80183EA0];
|
|
temp_s7 = &camera1[cameraId];
|
|
func_80046F60((s32) temp_s0->unk_060, (s32) temp_s0->unk_064, 0x00000020, 0x00000040, 5);
|
|
D_80183E80.unk0 = (s16) temp_s0->unk_0B2[0];
|
|
D_80183E80.unk4 = (u16) temp_s0->unk_0B2[2];
|
|
var_s1 = &D_8018C3F0;
|
|
if ((D_8018CFB0 != 0) || (D_8018CFC8 != 0)) {
|
|
do {
|
|
temp_v0 = *var_s1;
|
|
if (temp_v0 != -1) {
|
|
temp_s0_2 = &D_80165C18[temp_v0];
|
|
if ((temp_s0_2->unk_0A6 >= 2) && (D_8018D120 < 0x2EF)) {
|
|
D_80183E80.unk2 = func_800418AC(temp_s0_2->unk_004[0], temp_s0_2->unk_004[2], temp_s7->pos);
|
|
func_800431B0(temp_s0_2->unk_004, &D_80183E80, temp_s0_2->unk_000, D_0D0062B0);
|
|
}
|
|
}
|
|
var_s1 += 4;
|
|
} while (var_s1 != &D_8018C490);
|
|
}
|
|
if ((D_8018CFE8 != 0) || (D_8018D000 != 0)) {
|
|
var_s1_2 = &D_8018C630;
|
|
do {
|
|
temp_v0_2 = *var_s1_2;
|
|
if (temp_v0_2 != -1) {
|
|
temp_s0_3 = &D_80165C18[temp_v0_2];
|
|
if ((temp_s0_3->unk_0A6 >= 2) && (D_8018D120 < 0x2EF)) {
|
|
D_80183E80.unk2 = func_800418AC(temp_s0_3->unk_004[0], temp_s0_3->unk_004[2], temp_s7->pos);
|
|
func_800431B0(temp_s0_3->unk_004, &D_80183E80, temp_s0_3->unk_000, D_0D0062B0);
|
|
}
|
|
}
|
|
var_s1_2 += 4;
|
|
} while (var_s1_2 != &D_8018C6A8);
|
|
}
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0xBB000000;
|
|
temp_v1->words.w1 = 0x00010001;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80052590.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern s32 D_80183EA4;
|
|
|
|
void func_800527D8(s32 arg0) {
|
|
s32 sp1C;
|
|
s32 temp_a0;
|
|
struct_80165C18_entry *temp_v0;
|
|
|
|
temp_a0 = D_80183EA4;
|
|
sp1C = temp_a0;
|
|
func_8008A364(temp_a0, arg0, 0x5555U, 0x00000320);
|
|
if (func_8007223C(temp_a0, 0x00040000) != 0) {
|
|
temp_v0 = &D_80165C18[sp1C];
|
|
if (temp_v0->unk_0A6 >= 2) {
|
|
func_80043220(temp_v0->unk_004, (s16 *) &temp_v0->unk_0B2, temp_v0->unk_000, (Gfx *) temp_v0->unk_070);
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800527D8.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern Gfx D_06007218;
|
|
extern f32 D_80183E40;
|
|
extern s16 D_80183E80;
|
|
|
|
void func_8005285C(s32 playerId) {
|
|
Player *temp_v0;
|
|
|
|
temp_v0 = &gPlayerOne[playerId];
|
|
D_80183E40.unk0 = temp_v0->pos[0];
|
|
D_80183E40.unk4 = (f32) temp_v0->pos[1];
|
|
D_80183E80.unk0 = 0;
|
|
D_80183E80.unk2 = 0;
|
|
D_80183E80.unk4 = 0;
|
|
D_80183E40.unk8 = (f32) temp_v0->pos[2];
|
|
func_80043500(&D_80183E40, &D_80183E80, 0.02f, &D_06007218);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8005285C.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern s8 D_060068E8;
|
|
extern ? D_8016582C;
|
|
extern s16 D_80183E80;
|
|
extern s32 D_8018C3F0;
|
|
extern ? D_8018C5F0;
|
|
static ? D_800E4620; /* unable to generate initializer */
|
|
static ? D_800E4628; /* unable to generate initializer */
|
|
|
|
void func_800528EC(s32 arg0) {
|
|
Gfx *temp_v0;
|
|
Gfx *temp_v0_10;
|
|
Gfx *temp_v0_12;
|
|
Gfx *temp_v0_13;
|
|
Gfx *temp_v0_14;
|
|
Gfx *temp_v0_15;
|
|
Gfx *temp_v0_16;
|
|
Gfx *temp_v0_2;
|
|
Gfx *temp_v0_3;
|
|
Gfx *temp_v0_4;
|
|
Gfx *temp_v0_5;
|
|
Gfx *temp_v0_6;
|
|
Gfx *temp_v0_7;
|
|
Gfx *temp_v0_9;
|
|
s32 *var_s3;
|
|
s32 *var_s3_2;
|
|
s32 temp_v0_11;
|
|
s32 temp_v0_8;
|
|
struct_80165C18_entry *temp_v1;
|
|
struct_80165C18_entry *temp_v1_2;
|
|
|
|
temp_v0 = gDisplayListHead;
|
|
D_80183E80.unk0 = (s16) D_8016582C.unk0;
|
|
D_80183E80.unk2 = (u16) D_8016582C.unk2;
|
|
gDisplayListHead = temp_v0 + 8;
|
|
D_80183E80.unk4 = (u16) D_8016582C.unk4;
|
|
temp_v0->words.w0 = 0x06000000;
|
|
temp_v0->words.w1 = (u32) D_0D007B00;
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->words.w1 = 0x80000040;
|
|
temp_v0_2->words.w0 = 0xBC000002;
|
|
temp_v0_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->words.w1 = (u32) &D_800E4628;
|
|
temp_v0_3->words.w0 = 0x03860010;
|
|
temp_v0_4 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_4 + 8;
|
|
temp_v0_4->words.w1 = (u32) &D_800E4620;
|
|
temp_v0_4->words.w0 = 0x03880010;
|
|
temp_v0_5 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_5 + 8;
|
|
temp_v0_5->words.w1 = 0xFF33FFFF;
|
|
temp_v0_5->words.w0 = 0xFC121824;
|
|
temp_v0_6 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_6 + 8;
|
|
temp_v0_6->words.w1 = 0x00003000;
|
|
temp_v0_6->words.w0 = 0xB6000000;
|
|
temp_v0_7 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_7 + 8;
|
|
temp_v0_7->words.w0 = 0xB7000000;
|
|
temp_v0_7->words.w1 = 0x00020204;
|
|
func_800441E0(&D_060068E8, 0x00000020, 0x00000020);
|
|
var_s3 = &D_8018C3F0;
|
|
if (gPlayerCountSelection1 < 3) {
|
|
var_s3_2 = &D_8018C3F0;
|
|
do {
|
|
temp_v0_8 = *var_s3_2;
|
|
if (temp_v0_8 != -1) {
|
|
temp_v1 = &D_80165C18[temp_v0_8];
|
|
if (temp_v1->unk_0A6 > 0) {
|
|
func_80042E00(temp_v1->unk_004, &D_80183E80, temp_v1->unk_000);
|
|
temp_v0_9 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_9 + 8;
|
|
temp_v0_9->words.w1 = (u32) D_0D005BD0;
|
|
temp_v0_9->words.w0 = 0x04000C2F;
|
|
temp_v0_10 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_10 + 8;
|
|
temp_v0_10->words.w1 = (u32) D_0D006930;
|
|
temp_v0_10->words.w0 = 0x06000000;
|
|
}
|
|
}
|
|
var_s3_2 += 4;
|
|
} while (var_s3_2 != &D_8018C5F0);
|
|
} else {
|
|
do {
|
|
temp_v0_11 = *var_s3;
|
|
if (temp_v0_11 != -1) {
|
|
temp_v1_2 = &D_80165C18[temp_v0_11];
|
|
if ((temp_v1_2->unk_0A6 > 0) && (arg0 == temp_v1_2->unk_084[7]) && (D_8018D120 < 0x2EF)) {
|
|
func_80042E00(temp_v1_2->unk_004, &D_80183E80, temp_v1_2->unk_000);
|
|
temp_v0_12 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_12 + 8;
|
|
temp_v0_12->words.w1 = (u32) D_0D005BD0;
|
|
temp_v0_12->words.w0 = 0x04000C2F;
|
|
temp_v0_13 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_13 + 8;
|
|
temp_v0_13->words.w1 = (u32) D_0D006930;
|
|
temp_v0_13->words.w0 = 0x06000000;
|
|
}
|
|
}
|
|
var_s3 += 4;
|
|
} while (var_s3 != &D_8018C5F0);
|
|
}
|
|
temp_v0_14 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_14 + 8;
|
|
temp_v0_14->words.w1 = 0x00002000;
|
|
temp_v0_14->words.w0 = 0xB7000000;
|
|
temp_v0_15 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_15 + 8;
|
|
temp_v0_15->words.w1 = 0x00020000;
|
|
temp_v0_15->words.w0 = 0xB6000000;
|
|
temp_v0_16 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_16 + 8;
|
|
temp_v0_16->words.w0 = 0xBB000000;
|
|
temp_v0_16->words.w1 = 0x00010001;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800528EC.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_8005285C(s32); /* extern */
|
|
? func_800528EC(s32); /* extern */
|
|
extern ? D_80165840;
|
|
extern s32 D_80183DB8;
|
|
static ? D_800E4620; /* unable to generate initializer */
|
|
static ? D_800E4628; /* unable to generate initializer */
|
|
|
|
void func_80052C60(s32 arg0) {
|
|
Gfx *temp_v0;
|
|
Gfx *temp_v0_2;
|
|
s32 *var_s1;
|
|
s32 temp_s0;
|
|
s32 var_s2;
|
|
|
|
temp_v0 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0 + 8;
|
|
D_800E4620.unk10 = (s8) D_80165840.unk0;
|
|
D_800E4620.unk11 = (s8) D_80165840.unk1;
|
|
D_800E4620.unk12 = (s8) D_80165840.unk2;
|
|
temp_v0->words.w0 = 0x03860010;
|
|
temp_v0->words.w1 = (u32) &D_800E4628;
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->words.w0 = 0x03880010;
|
|
temp_v0_2->words.w1 = (u32) &D_800E4620;
|
|
var_s1 = &D_80183DB8;
|
|
var_s2 = 0;
|
|
if (gPlayerCountSelection1 > 0) {
|
|
do {
|
|
temp_s0 = *var_s1;
|
|
if (func_80072320(temp_s0, 4) != 0) {
|
|
func_8005285C(var_s2);
|
|
}
|
|
func_80072320(temp_s0, 0x00000010);
|
|
var_s2 += 1;
|
|
var_s1 += 4;
|
|
} while (var_s2 < gPlayerCountSelection1);
|
|
}
|
|
func_800528EC(arg0);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80052C60.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern Gfx D_06007218;
|
|
extern ? D_80183DB8;
|
|
extern f32 D_80183E40;
|
|
extern u16 D_80183E80;
|
|
|
|
void func_80052D70(s32 playerId) {
|
|
Player *sp20;
|
|
Player *temp_v1;
|
|
|
|
temp_v1 = &gPlayerOne[playerId];
|
|
sp20 = temp_v1;
|
|
if (func_80072320(*(&D_80183DB8 + (playerId * 4)), 8) != 0) {
|
|
D_80183E40.unk0 = temp_v1->pos[0];
|
|
D_80183E40.unk4 = (f32) ((f64) temp_v1->unk_074 - 6.5);
|
|
D_80183E40.unk8 = (f32) temp_v1->pos[2];
|
|
func_800435A0(&D_80183E40, &D_80183E80, 0.02f, &D_06007218, 0x000000FF);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80052D70.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
|
void func_80052D70(s32); // extern
|
|
extern ? D_800E4620;
|
|
extern ? D_800E4628;
|
|
extern ? D_80165840;
|
|
extern s16 D_80183E80;
|
|
|
|
|
|
void func_80052E30(s32 arg0) {
|
|
s32 temp_s0;
|
|
void *temp_v0;
|
|
void *temp_v0_2;
|
|
s32 phi_s0;
|
|
|
|
temp_v0 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0 + 8;
|
|
D_800E4620.unk10 = D_80165840.unk0;
|
|
D_800E4620.unk11 = D_80165840.unk1;
|
|
D_800E4620.unk12 = D_80165840.unk2;
|
|
temp_v0->unk0 = 0x3860010;
|
|
temp_v0->unk4 = &D_800E4628;
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->unk0 = 0x3880010;
|
|
temp_v0_2->unk4 = &D_800E4620;
|
|
D_80183E80.unk0 = 0;
|
|
D_80183E80.unk2 = 0;
|
|
D_80183E80.unk4 = 0;
|
|
if (D_8018EDF3 == ONE_PLAYERS_SELECTED) {
|
|
phi_s0 = 0;
|
|
if (gPlayerCountSelection1 > 0) {
|
|
do {
|
|
func_80052D70(phi_s0);
|
|
temp_s0 = phi_s0 + 1;
|
|
phi_s0 = temp_s0;
|
|
} while (temp_s0 < gPlayerCountSelection1);
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80052E30.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern ? D_06006D20;
|
|
extern ? D_06006F20;
|
|
extern s32 D_8018C3F0;
|
|
extern ? D_8018C5F0;
|
|
|
|
void func_80052F20(s32 cameraId) {
|
|
Camera *sp44;
|
|
Gfx *temp_v1;
|
|
Gfx *temp_v1_2;
|
|
s32 *var_s2;
|
|
s32 temp_s0;
|
|
struct_80165C18_entry *temp_s1;
|
|
|
|
sp44 = &camera1[cameraId];
|
|
func_80046E60((s32) &D_06006D20, (s32) &D_06006F20, 0x00000020, 0x00000020);
|
|
var_s2 = &D_8018C3F0;
|
|
do {
|
|
temp_s0 = *var_s2;
|
|
if (temp_s0 != -1) {
|
|
temp_s1 = &D_80165C18[temp_s0];
|
|
if (temp_s1->unk_0A6 > 0) {
|
|
func_8008A364(temp_s0, cameraId, 0x2AABU, 0x000001F4);
|
|
if (func_8007223C(temp_s0, 0x00040000) != 0) {
|
|
temp_s1->unk_0B2[1] = func_800418AC(temp_s1->unk_004[0], temp_s1->unk_004[2], sp44->pos);
|
|
func_80043104(temp_s0);
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w1 = (u32) D_0D0069E0;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
}
|
|
}
|
|
}
|
|
var_s2 += 4;
|
|
} while (var_s2 != &D_8018C5F0);
|
|
temp_v1_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_2 + 8;
|
|
temp_v1_2->words.w0 = 0xBB000000;
|
|
temp_v1_2->words.w1 = 0x00010001;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80052F20.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern ? D_80183E80;
|
|
extern ? D_80183EEC;
|
|
|
|
void func_8005309C(s32 cameraId) {
|
|
Camera *temp_fp;
|
|
s32 *var_s3;
|
|
s32 temp_s1;
|
|
s32 var_s4;
|
|
struct_80165C18_entry *temp_s0;
|
|
struct_80165C18_entry *temp_s0_2;
|
|
|
|
var_s3 = D_80183EA0;
|
|
var_s4 = 0;
|
|
temp_fp = &camera1[cameraId];
|
|
do {
|
|
temp_s1 = *var_s3;
|
|
temp_s0 = &D_80165C18[temp_s1];
|
|
if (temp_s0->unk_0A6 >= 2) {
|
|
func_8008A364(temp_s1, cameraId, 0x2AABU, 0x00000258);
|
|
if (func_8007223C(temp_s1, 0x00040000) != 0) {
|
|
D_80183E80.unk0 = (u16) temp_s0->unk_0B2;
|
|
D_80183E80.unk2 = func_800418AC(temp_s0->unk_004[0], temp_s0->unk_004[2], temp_fp->pos);
|
|
D_80183E80.unk4 = (u16) temp_s0->unk_0B6;
|
|
if (func_8007223C(temp_s1, 0x00000010) != 0) {
|
|
func_800480B4((s32) temp_s0->unk_004, (s32) &D_80183E80, temp_s0->unk_000, (s32) temp_s0->unk_060, (s32) temp_s0->unk_064, temp_s0->unk_074, 0x00000040, 0x00000040, 0x00000040, 0x00000020);
|
|
}
|
|
temp_s0_2 = &D_80165C18[*(var_s4 + D_80183F28)];
|
|
D_80183E80.unk0 = (u16) temp_s0_2->unk_0B2;
|
|
D_80183E80.unk4 = (u16) temp_s0_2->unk_0B6;
|
|
func_800480B4((s32) temp_s0_2->unk_004, (s32) &D_80183E80, temp_s0_2->unk_000, (s32) temp_s0_2->unk_060, (s32) temp_s0_2->unk_064, temp_s0_2->unk_074, 0x00000040, 0x00000040, 0x00000040, 0x00000020);
|
|
}
|
|
}
|
|
var_s3 += 4;
|
|
var_s4 += 4;
|
|
} while (var_s3 != &D_80183EEC);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8005309C.s")
|
|
#endif
|
|
|
|
void func_8005327C(s32 arg0) {
|
|
func_8005309C();
|
|
func_80052F20(arg0);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern ? D_80183DB8;
|
|
extern ? D_8018C0B0;
|
|
extern void *D_8018CF14;
|
|
|
|
void func_800532A4(s32 cameraId) {
|
|
s32 sp44;
|
|
Camera *temp_s1;
|
|
f32 var_f0;
|
|
f32 var_f2;
|
|
s32 temp_a0;
|
|
struct_80165C18_entry *temp_s0;
|
|
u8 temp_v0;
|
|
u8 temp_v0_2;
|
|
u8 temp_v1;
|
|
u8 temp_v1_2;
|
|
void *temp_v0_3;
|
|
|
|
temp_a0 = *(&D_80183DB8 + (cameraId * 4));
|
|
sp44 = temp_a0;
|
|
temp_s1 = &camera1[cameraId];
|
|
if (func_8007223C(temp_a0, 0x00000010) != 0) {
|
|
temp_s0 = &D_80165C18[sp44];
|
|
temp_s0->unk_0B2 = 0;
|
|
temp_s0->unk_0B4 = func_800418AC(temp_s0->unk_004[0], temp_s0->unk_004[2], temp_s1->pos);
|
|
temp_s0->unk_0B6 = 0x8000;
|
|
if (func_80072354(sp44, 2) != 0) {
|
|
temp_v1 = temp_s0->unk_0DA;
|
|
temp_v0 = temp_s0->unk_0D9;
|
|
func_800480B4((s32) temp_s0->unk_004, (s32) &temp_s0->unk_0B2, temp_s0->unk_000, (s32) temp_s0->unk_060, (s32) temp_s0->unk_064, (Vtx *) temp_s0->unk_074, (s32) temp_v0, (s32) temp_v1, (s32) temp_v0, (s32) temp_v1 / 2);
|
|
} else {
|
|
temp_v1_2 = temp_s0->unk_0DA;
|
|
temp_v0_2 = temp_s0->unk_0D9;
|
|
func_800485C4((s32) temp_s0->unk_004, (s32) &temp_s0->unk_0B2, temp_s0->unk_000, (s32) temp_s0->unk_0A0, (s32) temp_s0->unk_060, (s32) temp_s0->unk_064, (Vtx *) temp_s0->unk_074, (s32) temp_v0_2, (s32) temp_v1_2, (s32) temp_v0_2, (s32) temp_v1_2 / 2);
|
|
}
|
|
if (gScreenModeSelection == 0) {
|
|
temp_v0_3 = D_8018CF14;
|
|
var_f0 = temp_s0->unk_004[0] - temp_v0_3->unk0;
|
|
var_f2 = temp_s0->unk_004[2] - temp_v0_3->unk8;
|
|
if (var_f0 < 0.0f) {
|
|
var_f0 = -var_f0;
|
|
}
|
|
if (var_f2 < 0.0f) {
|
|
var_f2 = -var_f2;
|
|
}
|
|
if ((f64) (var_f0 + var_f2) <= 200.0) {
|
|
func_8004A630((cameraId << 6) + &D_8018C0B0, temp_s0->unk_004, 0.35f);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800532A4.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern ? D_80165840;
|
|
static ? D_800E4638; /* unable to generate initializer */
|
|
|
|
void func_800534A4(s32 arg0) {
|
|
func_800419F8();
|
|
D_800E4638.unk10 = (s8) D_80165840.unk0;
|
|
D_800E4638.unk11 = (s8) D_80165840.unk1;
|
|
D_800E4638.unk12 = (s8) D_80165840.unk2;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800534A4.s")
|
|
#endif
|
|
|
|
#ifdef NEEDS_RODATA
|
|
// jpt_800EE068
|
|
// I guess this also needs all those Light1's too, which are plain data (I think)
|
|
|
|
void func_800534E8(s32 objectIndex) {
|
|
// I don't get why all of theses weren't just `gSPSetLights1` calls...
|
|
switch (D_80165C18[objectIndex].unk_0A4) {
|
|
case 0:
|
|
gSPLight(gDisplayListHead++, &D_800E4638.l[0], LIGHT_1);
|
|
gSPLight(gDisplayListHead++, &D_800E4638.a, LIGHT_2);
|
|
break;
|
|
case 1:
|
|
gSPLight(gDisplayListHead++, &D_800E4650.l[0], LIGHT_1);
|
|
gSPLight(gDisplayListHead++, &D_800E4650.a, LIGHT_2);
|
|
break;
|
|
case 2:
|
|
gSPLight(gDisplayListHead++, &D_800E4668.l[0], LIGHT_1);
|
|
gSPLight(gDisplayListHead++, &D_800E4668.a, LIGHT_2);
|
|
break;
|
|
case 3:
|
|
gSPLight(gDisplayListHead++, &D_800E4680.l[0], LIGHT_1);
|
|
gSPLight(gDisplayListHead++, &D_800E4680.a, LIGHT_2);
|
|
break;
|
|
case 4:
|
|
gSPLight(gDisplayListHead++, &D_800E4698.l[0], LIGHT_1);
|
|
gSPLight(gDisplayListHead++, &D_800E4698.a, LIGHT_2);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800534E8.s")
|
|
#endif
|
|
|
|
void func_800536C8(s32 objectIndex) {
|
|
if ((D_80165C18[objectIndex].unk_0A6 >= 2) && (func_80072354(objectIndex, 0x00000040) != 0)) {
|
|
func_8004A7AC(objectIndex, 1.75f);
|
|
func_80042E00(D_80165C18[objectIndex].unk_004, D_80165C18[objectIndex].unk_0B2, D_80165C18[objectIndex].unk_000);
|
|
func_800534E8(objectIndex);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007828);
|
|
gDPSetTextureLUT(gDisplayListHead++, G_TT_RGBA16);
|
|
gDPLoadTLUT_pal256(gDisplayListHead++, D_06006F38);
|
|
func_8004544C(D_80165C18[objectIndex].unk_064, 0x00000010, 0x00000040, 4);
|
|
gSPDisplayList(gDisplayListHead++, D_80165C18[objectIndex].unk_070);
|
|
}
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_800534A4(s32); /* extern */
|
|
? func_800536C8(s32); /* extern */
|
|
extern s8 D_06006738;
|
|
extern s16 D_80165750;
|
|
extern s16 D_80183E80;
|
|
extern s32 D_8018C3F0;
|
|
extern ? D_8018C5F0;
|
|
extern s32 D_8018C630;
|
|
extern ? D_8018C830;
|
|
extern s8 *D_8018D490;
|
|
extern s32 gGamestate;
|
|
static ? D_800E4668; /* unable to generate initializer */
|
|
static ? D_800E4670; /* unable to generate initializer */
|
|
|
|
void func_80053870(s32 cameraId) {
|
|
s32 sp94;
|
|
Camera *sp84;
|
|
s32 *sp44;
|
|
Gfx *temp_v0_10;
|
|
Gfx *temp_v0_11;
|
|
Gfx *temp_v0_12;
|
|
Gfx *temp_v0_13;
|
|
Gfx *temp_v0_14;
|
|
Gfx *temp_v0_15;
|
|
Gfx *temp_v0_3;
|
|
Gfx *temp_v0_4;
|
|
Gfx *temp_v0_5;
|
|
Gfx *temp_v0_6;
|
|
Gfx *temp_v0_7;
|
|
Gfx *temp_v0_8;
|
|
Gfx *temp_v0_9;
|
|
s16 temp_v0_2;
|
|
s32 *var_a3;
|
|
s32 *var_s0;
|
|
s32 *var_s0_2;
|
|
s32 *var_s3;
|
|
s32 *var_v1;
|
|
s32 temp_s1;
|
|
s32 temp_s1_2;
|
|
s32 temp_s1_3;
|
|
s32 temp_s1_4;
|
|
s32 var_s2;
|
|
struct_80165C18_entry *temp_s0;
|
|
struct_80165C18_entry *temp_s0_2;
|
|
u8 temp_v0;
|
|
|
|
sp84 = &camera1[cameraId];
|
|
if (cameraId == 0) {
|
|
var_s0 = D_80183EA0;
|
|
var_s2 = 0;
|
|
if (D_80165750 > 0) {
|
|
do {
|
|
temp_s1 = *var_s0;
|
|
func_800721E8(temp_s1, 0x00070000);
|
|
func_800722CC(temp_s1, 0x00000110);
|
|
var_s2 += 1;
|
|
var_s0 += 4;
|
|
} while (var_s2 < D_80165750);
|
|
sp94 = temp_s1;
|
|
}
|
|
}
|
|
func_800534A4(sp94);
|
|
var_s0_2 = D_80183EA0;
|
|
if (D_80165750 > 0) {
|
|
do {
|
|
temp_s1_2 = *var_s0_2;
|
|
temp_v0 = D_80165C18[temp_s1_2].unk_0DF;
|
|
if (gGamestate != 9) {
|
|
temp_v0_2 = D_8018CF68[cameraId];
|
|
if ((temp_v0_2 >= (s16) (temp_v0 - 1)) && ((s16) (temp_v0 + 1) >= temp_v0_2) && (func_8008A140(temp_s1_2, sp84, 0x8000U) != 0)) {
|
|
func_800536C8(temp_s1_2);
|
|
}
|
|
var_v1 = &D_80183EA0[D_80165750];
|
|
} else {
|
|
func_800536C8(temp_s1_2);
|
|
var_v1 = &D_80183EA0[D_80165750];
|
|
}
|
|
var_s0_2 += 4;
|
|
} while ((u32) var_s0_2 < (u32) var_v1);
|
|
}
|
|
temp_v0_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->words.w0 = 0x06000000;
|
|
temp_v0_3->words.w1 = (u32) D_0D0079C8;
|
|
temp_v0_4 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_4 + 8;
|
|
temp_v0_4->words.w1 = 0xFF33FFFF;
|
|
temp_v0_4->words.w0 = 0xFC121824;
|
|
temp_v0_5 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_5 + 8;
|
|
temp_v0_5->words.w1 = 0x80000040;
|
|
temp_v0_5->words.w0 = 0xBC000002;
|
|
temp_v0_6 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_6 + 8;
|
|
temp_v0_6->words.w1 = (u32) &D_800E4670;
|
|
temp_v0_6->words.w0 = 0x03860010;
|
|
temp_v0_7 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_7 + 8;
|
|
temp_v0_7->words.w1 = (u32) &D_800E4668;
|
|
temp_v0_7->words.w0 = 0x03880010;
|
|
temp_v0_8 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_8 + 8;
|
|
temp_v0_8->words.w1 = 0x00003000;
|
|
temp_v0_8->words.w0 = 0xB6000000;
|
|
temp_v0_9 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_9 + 8;
|
|
temp_v0_9->words.w0 = 0xB7000000;
|
|
temp_v0_9->words.w1 = 0x00020204;
|
|
func_80043D50(&D_06006738, 0x00000020, 0x00000020);
|
|
var_a3 = &D_8018C630;
|
|
do {
|
|
temp_s1_3 = *var_a3;
|
|
if (temp_s1_3 != -1) {
|
|
temp_s0 = &D_80165C18[temp_s1_3];
|
|
if ((temp_s0->unk_0A6 > 0) && (temp_s0->unk_0D5 == 3) && (D_8018D120 < 0x2EF)) {
|
|
sp44 = var_a3;
|
|
func_80042E00(temp_s0->unk_004, (s16 *) &temp_s0->unk_0B2, temp_s0->unk_000);
|
|
temp_v0_10 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_10 + 8;
|
|
temp_v0_10->words.w0 = 0x04000C2F;
|
|
temp_v0_10->words.w1 = (u32) D_0D005C00;
|
|
temp_v0_11 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_11 + 8;
|
|
temp_v0_11->words.w1 = (u32) D_0D006930;
|
|
temp_v0_11->words.w0 = 0x06000000;
|
|
}
|
|
}
|
|
var_a3 += 4;
|
|
} while ((u32) var_a3 < (u32) &D_8018C830);
|
|
temp_v0_12 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_12 + 8;
|
|
temp_v0_12->words.w1 = 0x00002000;
|
|
temp_v0_12->words.w0 = 0xB7000000;
|
|
temp_v0_13 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_13 + 8;
|
|
temp_v0_13->words.w1 = 0x00020000;
|
|
temp_v0_13->words.w0 = 0xB6000000;
|
|
temp_v0_14 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_14 + 8;
|
|
temp_v0_14->words.w0 = 0xBB000000;
|
|
temp_v0_14->words.w1 = 0x00010001;
|
|
temp_v0_15 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_15 + 8;
|
|
temp_v0_15->words.w0 = 0x06000000;
|
|
temp_v0_15->words.w1 = (u32) D_0D007AE0;
|
|
func_800444B0(D_8018D490, 0x00000020, 0x00000020);
|
|
func_8004B3C8(0);
|
|
D_80183E80.unk0 = 0;
|
|
D_80183E80.unk4 = 0x8000;
|
|
var_s3 = &D_8018C3F0;
|
|
do {
|
|
temp_s1_4 = *var_s3;
|
|
if (temp_s1_4 != -1) {
|
|
temp_s0_2 = &D_80165C18[temp_s1_4];
|
|
if ((temp_s0_2->unk_0A6 >= 2) && (temp_s0_2->unk_0D5 == 2) && (D_8018D120 < 0x2EF)) {
|
|
func_8004B138(0x000000FF, 0x000000FF, 0x000000FF, (s32) temp_s0_2->unk_0A0);
|
|
D_80183E80.unk2 = func_800418AC(temp_s0_2->unk_004[0], temp_s0_2->unk_004[2], sp84->pos);
|
|
func_800431B0(temp_s0_2->unk_004, &D_80183E80, temp_s0_2->unk_000, D_0D005AE0);
|
|
}
|
|
}
|
|
var_s3 += 4;
|
|
} while (var_s3 != &D_8018C5F0);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80053870.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit 6b6e1390bf30013247343623194964ff13d0c45b
|
|
extern ? D_0D0060B0;
|
|
extern s16 D_80183E80;
|
|
|
|
void func_80053D74(s32 objectIndex, s32 arg1, s32 arg2) {
|
|
struct_80165C18_entry *sp28;
|
|
Gfx *temp_v0_2;
|
|
Gfx *temp_v0_3;
|
|
struct_80165C18_entry *temp_v0;
|
|
|
|
if (D_8018D120 < 0x2EF) {
|
|
temp_v0 = &D_80165C18[objectIndex];
|
|
D_80183E80.unk4 = (s16) (temp_v0->unk_084[6] + 0x8000);
|
|
sp28 = temp_v0;
|
|
func_80042E00(temp_v0->unk_004, &D_80183E80, temp_v0->unk_000);
|
|
func_8004B1C8((s32) temp_v0->unk_084[0], (s32) temp_v0->unk_084[1], (s32) temp_v0->unk_084[2], (s32) temp_v0->unk_084[3], (s32) temp_v0->unk_084[4], (s32) temp_v0->unk_084[5], (s32) temp_v0->unk_0A0);
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->words.w0 = 0x0400103F;
|
|
temp_v0_2->words.w1 = (u32) ((arg2 * 0x10) + &D_0D0060B0);
|
|
temp_v0_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->words.w0 = 0x06000000;
|
|
temp_v0_3->words.w1 = (u32) D_0D006940;
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80053D74.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80053D74(s32, s32, ?); /* extern */
|
|
extern ? D_0D007E98;
|
|
extern ? D_80183E80;
|
|
extern s32 D_8018C630;
|
|
extern s8 *D_8018D4BC;
|
|
extern s8 *D_8018D4C0;
|
|
static ? D_800E52D0; /* unable to generate initializer */
|
|
|
|
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;
|
|
|
|
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;
|
|
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;
|
|
}
|
|
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);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80053E6C.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern Vtx D_0D005AE0;
|
|
extern s16 D_80183E80;
|
|
|
|
void func_800540CC(s32 objectIndex, s32 cameraId) {
|
|
Camera *sp2C;
|
|
struct_80165C18_entry *sp28;
|
|
s16 temp_a0;
|
|
struct_80165C18_entry *temp_v1;
|
|
|
|
sp2C = &camera1[cameraId];
|
|
if (objectIndex != -1) {
|
|
temp_v1 = &D_80165C18[objectIndex];
|
|
if ((temp_v1->unk_0A6 >= 2) && (temp_v1->unk_0D5 == 1) && (D_8018D120 < 0x2EF)) {
|
|
temp_a0 = temp_v1->unk_0A4;
|
|
sp28 = temp_v1;
|
|
func_8004B1C8((s32) temp_a0, (s32) temp_a0, (s32) temp_a0, 0, 0, 0, (s32) temp_v1->unk_0A0);
|
|
D_80183E80.unk2 = func_800418AC(temp_v1->unk_004[0], temp_v1->unk_004[2], sp2C->pos);
|
|
func_800431B0(temp_v1->unk_004, &D_80183E80, temp_v1->unk_000, &D_0D005AE0);
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800540CC.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_800540CC(s32, s32); /* extern */
|
|
extern ? D_0D007AE0;
|
|
extern s8 D_0D029458;
|
|
extern f32 D_801635A4;
|
|
extern s32 D_801636A0;
|
|
extern f32 D_801636B0;
|
|
extern s32 D_801637AC;
|
|
extern ? D_80183E80;
|
|
extern s32 D_8018C3F0;
|
|
extern ? D_8018C5F0;
|
|
extern s32 D_8018C630;
|
|
extern ? D_8018C830;
|
|
|
|
void func_800541BC(s32 cameraId) {
|
|
Camera *sp3C;
|
|
Gfx *temp_v1;
|
|
s32 *var_s0;
|
|
s32 *var_s0_2;
|
|
|
|
temp_v1 = gDisplayListHead;
|
|
sp3C = &camera1[cameraId];
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) &D_0D007AE0;
|
|
func_8004477C(&D_0D029458, 0x00000020, 0x00000020);
|
|
func_8004B72C(0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF);
|
|
D_80183E80.unk0 = 0;
|
|
D_80183E80.unk4 = 0x8000;
|
|
if ((D_801636A0 != 0) && (func_80041980(&D_801635A4, sp3C, 0x4000U) != 0)) {
|
|
var_s0 = &D_8018C3F0;
|
|
do {
|
|
func_800540CC(*var_s0, cameraId);
|
|
var_s0 += 4;
|
|
} while (var_s0 != &D_8018C5F0);
|
|
}
|
|
if ((D_801637AC != 0) && (func_80041980(&D_801636B0, sp3C, 0x4000U) != 0)) {
|
|
var_s0_2 = &D_8018C630;
|
|
do {
|
|
func_800540CC(*var_s0_2, cameraId);
|
|
var_s0_2 += 4;
|
|
} while (var_s0_2 != &D_8018C830);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800541BC.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern Vtx D_0D005AE0;
|
|
extern s16 D_80183E80;
|
|
|
|
void func_80054324(s32 objectIndex, s32 cameraId) {
|
|
Camera *sp2C;
|
|
struct_80165C18_entry *sp28;
|
|
s16 temp_a0;
|
|
s16 temp_a3;
|
|
struct_80165C18_entry *temp_v1;
|
|
|
|
sp2C = &camera1[cameraId];
|
|
if (objectIndex != -1) {
|
|
temp_v1 = &D_80165C18[objectIndex];
|
|
if ((temp_v1->unk_0A6 >= 2) && (temp_v1->unk_0D5 == 6) && (D_8018D120 < 0x2EF)) {
|
|
temp_a0 = temp_v1->unk_0A4;
|
|
temp_a3 = temp_v1->unk_0A2;
|
|
sp28 = temp_v1;
|
|
func_8004B1C8((s32) temp_a0, (s32) temp_a0, (s32) temp_a0, (s32) temp_a3, (s32) temp_a3, (s32) temp_a3, (s32) temp_v1->unk_0A0);
|
|
D_80183E80.unk2 = func_800418AC(temp_v1->unk_004[0], temp_v1->unk_004[2], sp2C->pos);
|
|
func_800431B0(temp_v1->unk_004, &D_80183E80, temp_v1->unk_000, &D_0D005AE0);
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80054324.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80054324(s32, s32); /* extern */
|
|
extern ? D_0D007AE0;
|
|
extern s8 D_0D029458;
|
|
extern f32 D_801637C4;
|
|
extern s32 D_801637E8;
|
|
extern f32 D_801637F0;
|
|
extern s32 D_80163814;
|
|
extern ? D_80183E80;
|
|
extern s32 D_8018C3F0;
|
|
extern ? D_8018C5F0;
|
|
extern s32 D_8018C630;
|
|
extern ? D_8018C830;
|
|
|
|
void func_80054414(s32 cameraId) {
|
|
Camera *sp3C;
|
|
Gfx *temp_v1;
|
|
s32 *var_s0;
|
|
s32 *var_s0_2;
|
|
|
|
temp_v1 = gDisplayListHead;
|
|
sp3C = &camera1[cameraId];
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) &D_0D007AE0;
|
|
func_8004477C(&D_0D029458, 0x00000020, 0x00000020);
|
|
func_8004B72C(0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF);
|
|
D_80183E80.unk0 = 0;
|
|
D_80183E80.unk4 = 0x8000;
|
|
if ((D_801637E8 != 0) && (func_80041980(&D_801637C4, sp3C, 0x4000U) != 0)) {
|
|
var_s0 = &D_8018C3F0;
|
|
do {
|
|
func_80054324(*var_s0, cameraId);
|
|
var_s0 += 4;
|
|
} while (var_s0 != &D_8018C5F0);
|
|
}
|
|
if ((D_80163814 != 0) && (func_80041980(&D_801637F0, sp3C, 0x4000U) != 0)) {
|
|
var_s0_2 = &D_8018C630;
|
|
do {
|
|
func_80054324(*var_s0_2, cameraId);
|
|
var_s0_2 += 4;
|
|
} while (var_s0_2 != &D_8018C830);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80054414.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern Vtx D_0D005AE0;
|
|
extern s16 D_80183E80;
|
|
|
|
void func_8005457C(s32 objectIndex, s32 cameraId) {
|
|
Camera *sp34;
|
|
struct_80165C18_entry *temp_s0;
|
|
|
|
sp34 = &camera1[cameraId];
|
|
if (D_8018D120 < 0x2EF) {
|
|
temp_s0 = &D_80165C18[objectIndex];
|
|
if (temp_s0->unk_0D5 == 9) {
|
|
func_8004B72C(0x000000FF, (s32) temp_s0->unk_0A4, 0, (s32) temp_s0->unk_0A2, 0, 0, (s32) temp_s0->unk_0A0);
|
|
} else {
|
|
func_8004B138(0x000000FF, (s32) temp_s0->unk_0A4, 0, (s32) temp_s0->unk_0A0);
|
|
}
|
|
D_80183E80.unk2 = func_800418AC(temp_s0->unk_004[0], temp_s0->unk_004[2], sp34->pos);
|
|
func_800431B0(temp_s0->unk_004, &D_80183E80, temp_s0->unk_000, &D_0D005AE0);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8005457C.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_8005457C(s32, s32); /* extern */
|
|
extern ? D_0D007AE0;
|
|
extern ? D_0D02BC58;
|
|
extern s32 D_80165598;
|
|
extern ? D_80183E80;
|
|
extern s32 D_8018C1B0;
|
|
|
|
void func_80054664(s32 arg0) {
|
|
Gfx *temp_v1;
|
|
s32 *var_s0;
|
|
s32 temp_a0;
|
|
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) &D_0D007AE0;
|
|
func_8004477C((D_80165598 << 0xA) + &D_0D02BC58, 0x00000020, 0x00000020);
|
|
func_8004B414(0, 0, 0, 0x000000FF);
|
|
D_80183E80.unk0 = 0;
|
|
D_80183E80.unk4 = 0x8000;
|
|
var_s0 = &D_8018C1B0;
|
|
do {
|
|
temp_a0 = *var_s0;
|
|
if ((temp_a0 != -1) && (D_80165C18[temp_a0].unk_0A6 >= 3)) {
|
|
func_8005457C(temp_a0, arg0);
|
|
}
|
|
var_s0 += 4;
|
|
} while (var_s0 != &D_8018C3B0);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80054664.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit 6b6e1390bf30013247343623194964ff13d0c45b
|
|
extern ? D_0D005AE0;
|
|
extern s16 D_80183E80;
|
|
|
|
void func_8005477C(s32 objectIndex, s32 arg1, f32 *arg2) {
|
|
s32 temp_t6;
|
|
struct_80165C18_entry *var_s0;
|
|
|
|
temp_t6 = arg1 & 0xFF;
|
|
if (D_8018D120 < 0x2EF) {
|
|
switch (temp_t6) { /* irregular */
|
|
default:
|
|
var_s0 = &D_80165C18[objectIndex];
|
|
break;
|
|
case 0:
|
|
var_s0 = &D_80165C18[objectIndex];
|
|
func_8004B1C8(0x000000E6, 0x000000FF, 0x000000FF, 0, 0, 0x000000FF, (s32) var_s0->unk_0A0);
|
|
break;
|
|
case 1:
|
|
var_s0 = &D_80165C18[objectIndex];
|
|
func_8004B1C8(0x000000FF, 0x000000FF, 0x00000096, 0x000000FF, 0, 0, (s32) var_s0->unk_0A0);
|
|
break;
|
|
case 2:
|
|
var_s0 = &D_80165C18[objectIndex];
|
|
func_8004B1C8(0x000000FF, 0x000000E6, 0x000000FF, 0x000000FF, 0, 0x00000096, (s32) var_s0->unk_0A0);
|
|
break;
|
|
case 3:
|
|
var_s0 = &D_80165C18[objectIndex];
|
|
func_8004B1C8(0x000000FF, 0x000000FF, 0x0000001E, 0x000000FF, 0, 0, (s32) var_s0->unk_0A0);
|
|
break;
|
|
}
|
|
D_80183E80.unk2 = func_800418AC(var_s0->unk_004[0], var_s0->unk_004[2], arg2);
|
|
func_800431B0(var_s0->unk_004, &D_80183E80, var_s0->unk_000, (s32) &D_0D005AE0);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8005477C.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_8005477C(s32, u8, Camera *); /* extern */
|
|
extern ? D_0D007AE0;
|
|
extern ? D_0D02BC58;
|
|
extern s32 D_80165598;
|
|
extern ? D_80183E80;
|
|
extern s32 D_8018C870;
|
|
extern ? D_8018C970;
|
|
|
|
void func_80054938(s32 cameraId) {
|
|
Camera *sp54;
|
|
Gfx *temp_v1;
|
|
s32 *var_s2;
|
|
s32 temp_s0;
|
|
struct_80165C18_entry *temp_s1;
|
|
|
|
temp_v1 = gDisplayListHead;
|
|
sp54 = &camera1[cameraId];
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) &D_0D007AE0;
|
|
func_8004477C((D_80165598 << 0xA) + &D_0D02BC58, 0x00000020, 0x00000020);
|
|
func_8004B72C(0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF);
|
|
D_80183E80.unk0 = 0;
|
|
D_80183E80.unk4 = 0x8000;
|
|
var_s2 = &D_8018C870;
|
|
do {
|
|
temp_s0 = *var_s2;
|
|
if (temp_s0 != -1) {
|
|
temp_s1 = &D_80165C18[temp_s0];
|
|
if (temp_s1->unk_0A6 >= 2) {
|
|
if ((u8) temp_s1->unk_0D8 == 3) {
|
|
func_8008A364(temp_s0, cameraId, 0x4000U, 0x00000514);
|
|
} else {
|
|
func_8008A364(temp_s0, cameraId, 0x4000U, 0x000001F4);
|
|
}
|
|
if (func_8007223C(temp_s0, 0x00040000) != 0) {
|
|
func_8005477C(temp_s0, (u8) temp_s1->unk_0D8, sp54);
|
|
}
|
|
}
|
|
}
|
|
var_s2 += 4;
|
|
} while (var_s2 != &D_8018C970);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80054938.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern ? D_0D005AE0;
|
|
extern s16 D_80183E80;
|
|
|
|
void func_80054AFC(s32 objectIndex, Vec3f arg1) {
|
|
Gfx *temp_v0;
|
|
Gfx *temp_v0_2;
|
|
struct_80165C18_entry *temp_s0;
|
|
|
|
temp_s0 = &D_80165C18[objectIndex];
|
|
D_80183E80.unk0 = func_800418E8(temp_s0->unk_004[2], temp_s0->unk_004[1], arg1);
|
|
D_80183E80.unk2 = func_800418AC(temp_s0->unk_004[0], temp_s0->unk_004[2], arg1);
|
|
D_80183E80.unk4 = (u16) temp_s0->unk_0B6;
|
|
func_8004B138((s32) temp_s0->unk_084[0], (s32) temp_s0->unk_084[1], (s32) temp_s0->unk_084[2], (s32) temp_s0->unk_0A0);
|
|
func_80042E00(temp_s0->unk_004, &D_80183E80, temp_s0->unk_000);
|
|
temp_v0 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0 + 8;
|
|
temp_v0->words.w0 = 0x0400103F;
|
|
temp_v0->words.w1 = (u32) &D_0D005AE0;
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->words.w0 = 0x06000000;
|
|
temp_v0_2->words.w1 = (u32) D_0D006940;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80054AFC.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80054AFC(s32, Camera *); /* extern */
|
|
extern ? D_0D007AE0;
|
|
extern s16 D_80183E80;
|
|
extern s32 D_8018C630;
|
|
extern ? D_8018C830;
|
|
extern s8 *D_8018D488;
|
|
|
|
void func_80054BE8(s32 cameraId) {
|
|
Camera *temp_s5;
|
|
Gfx *temp_v1;
|
|
s32 *var_s0;
|
|
s32 temp_a0;
|
|
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) &D_0D007AE0;
|
|
temp_s5 = &camera1[cameraId];
|
|
func_800444B0(D_8018D488, 0x00000020, 0x00000020);
|
|
func_8004B35C(0x000000FF, 0x000000FF, 0, 0x000000FF);
|
|
D_80183E80 = 0;
|
|
var_s0 = &D_8018C630;
|
|
do {
|
|
temp_a0 = *var_s0;
|
|
if ((temp_a0 != -1) && (D_80165C18[temp_a0].unk_0A6 >= 2)) {
|
|
func_80054AFC(temp_a0, temp_s5);
|
|
}
|
|
var_s0 += 4;
|
|
} while (var_s0 != &D_8018C830);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80054BE8.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern ? D_0D0062B0;
|
|
extern ? D_80183E80;
|
|
|
|
void func_80054D00(s32 objectIndex, s32 cameraId) {
|
|
Camera *sp3C;
|
|
struct_80165C18_entry *sp38;
|
|
struct_80165C18_entry *temp_v1;
|
|
|
|
temp_v1 = &D_80165C18[objectIndex];
|
|
sp3C = &camera1[cameraId];
|
|
if (temp_v1->unk_0A6 >= 3) {
|
|
sp38 = temp_v1;
|
|
func_8008A364(objectIndex, cameraId, 0x2AABU, 0x0000012C);
|
|
if (func_8007223C(objectIndex, 0x00040000) != 0) {
|
|
sp38 = temp_v1;
|
|
D_80183E80.unk0 = (u16) temp_v1->unk_0B2;
|
|
D_80183E80.unk2 = func_800418AC(temp_v1->unk_004[0], temp_v1->unk_004[2], sp3C->pos);
|
|
D_80183E80.unk4 = (u16) temp_v1->unk_0B6;
|
|
func_80048130((s32) temp_v1->unk_004, (s32) &D_80183E80, temp_v1->unk_000, (s32) temp_v1->unk_060, (s32) temp_v1->unk_064, (s32) &D_0D0062B0, 0x00000020, 0x00000040, 0x00000020, 0x00000040, 5);
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80054D00.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern ? D_80183E50;
|
|
extern ? D_80183E70;
|
|
|
|
void func_80054E10(s32 objectIndex) {
|
|
struct_80165C18_entry *sp1C;
|
|
struct_80165C18_entry *temp_v1;
|
|
|
|
temp_v1 = &D_80165C18[objectIndex];
|
|
if (temp_v1->unk_0A6 > 0) {
|
|
sp1C = temp_v1;
|
|
if (func_8007223C(objectIndex, 0x00800000) != 0) {
|
|
D_80183E50.unk0 = (f32) temp_v1->unk_004[0];
|
|
D_80183E50.unk4 = (f32) ((f64) temp_v1->unk_044 + 0.8);
|
|
D_80183E50.unk8 = (f32) temp_v1->unk_004[2];
|
|
D_80183E70.unk0 = (f32) temp_v1->unk_038[0];
|
|
D_80183E70.unk4 = (f32) temp_v1->unk_038[1];
|
|
D_80183E70.unk8 = (f32) temp_v1->unk_038[2];
|
|
func_8004A9B8(temp_v1->unk_000);
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80054E10.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
|
void func_80054E10(s32); // extern
|
|
extern s32 D_8018C1B0;
|
|
extern ? D_8018C22C;
|
|
|
|
void func_80054EB8(s32 arg0) {
|
|
s32 *temp_s0;
|
|
s32 *phi_s0;
|
|
|
|
phi_s0 = &D_8018C1B0;
|
|
do {
|
|
func_80054E10(*phi_s0);
|
|
temp_s0 = phi_s0 + 4;
|
|
phi_s0 = temp_s0;
|
|
} while (temp_s0 != &D_8018C22C);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80054EB8.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern s8 D_06013670;
|
|
extern ? D_0D006980;
|
|
extern ? D_0D0079C8;
|
|
extern s32 D_8018C3F0;
|
|
extern ? D_8018C5F0;
|
|
|
|
void func_80054F04(s32 cameraId) {
|
|
Camera *sp44;
|
|
Gfx *temp_v1;
|
|
Gfx *temp_v1_2;
|
|
Gfx *temp_v1_3;
|
|
s32 *var_s2;
|
|
s32 temp_s0;
|
|
struct_80165C18_entry *temp_s1;
|
|
|
|
temp_v1 = gDisplayListHead;
|
|
sp44 = &camera1[cameraId];
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) &D_0D0079C8;
|
|
func_80043D50(&D_06013670, 0x00000010, 0x00000010);
|
|
var_s2 = &D_8018C3F0;
|
|
do {
|
|
temp_s0 = *var_s2;
|
|
temp_s1 = &D_80165C18[temp_s0];
|
|
if (temp_s1->unk_0A6 > 0) {
|
|
func_8008A364(temp_s0, cameraId, 0x2AABU, 0x000000C8);
|
|
if ((func_8007223C(temp_s0, 0x00040000) != 0) && (D_8018D120 < 0x2EF)) {
|
|
temp_s1->unk_0B4 = func_800418AC(temp_s1->unk_004[0], temp_s1->unk_004[2], sp44->pos);
|
|
func_80043104(temp_s0);
|
|
temp_v1_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_2 + 8;
|
|
temp_v1_2->words.w1 = (u32) &D_0D006980;
|
|
temp_v1_2->words.w0 = 0x06000000;
|
|
}
|
|
}
|
|
var_s2 += 4;
|
|
} while (var_s2 != &D_8018C5F0);
|
|
temp_v1_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_3 + 8;
|
|
temp_v1_3->words.w0 = 0xBB000000;
|
|
temp_v1_3->words.w1 = 0x00010001;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80054F04.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80054D00(s32, s32); /* extern */
|
|
? func_80054EB8(s32); /* extern */
|
|
? func_80054F04(s32); /* extern */
|
|
extern ? D_80183EC0;
|
|
extern ? D_80183F54;
|
|
extern ? D_8018BFD8;
|
|
|
|
void func_800550A4(s32 arg0) {
|
|
s32 *var_s0;
|
|
s32 *var_s0_2;
|
|
s32 *var_s0_3;
|
|
|
|
var_s0 = D_80183EA0;
|
|
do {
|
|
func_80054D00(*var_s0, arg0);
|
|
var_s0 += 4;
|
|
} while ((u32) var_s0 < (u32) &D_80183EC0);
|
|
var_s0_2 = D_80183F28;
|
|
do {
|
|
func_80054D00(*var_s0_2, arg0);
|
|
var_s0_2 += 4;
|
|
} while ((u32) var_s0_2 < (u32) &D_80183F54);
|
|
var_s0_3 = D_8018BFA8;
|
|
do {
|
|
func_80054D00(*var_s0_3, arg0);
|
|
var_s0_3 += 4;
|
|
} while (var_s0_3 != &D_8018BFD8);
|
|
func_80054EB8(arg0);
|
|
func_80054F04(arg0);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800550A4.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
s16 func_80004DFC(s32, s32, ?, s16); /* extern */
|
|
|
|
void func_80055164(s32 objectIndex) {
|
|
struct_80165C18_entry *sp18;
|
|
Gfx *temp_a3;
|
|
struct_80165C18_entry *temp_v1;
|
|
|
|
temp_v1 = &D_80165C18[objectIndex];
|
|
if (temp_v1->unk_0A6 >= 2) {
|
|
temp_a3 = gDisplayListHead;
|
|
gDisplayListHead = temp_a3 + 8;
|
|
temp_a3->words.w0 = 0x06000000;
|
|
temp_a3->words.w1 = (u32) D_0D0077A0;
|
|
sp18 = temp_v1;
|
|
func_80042E00(temp_v1->unk_004, (s16 *) temp_v1->unk_0BE, temp_v1->unk_000);
|
|
if (D_800DC5FC == 0) {
|
|
sp18 = temp_v1;
|
|
temp_v1->unk_0A2 = func_80004DFC(temp_v1->unk_070, temp_v1->unk_074, 0, temp_v1->unk_0A2);
|
|
return;
|
|
}
|
|
func_80004DFC(temp_v1->unk_070, temp_v1->unk_074, 0, temp_v1->unk_0A2);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80055164.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80055164(s32); /* extern */
|
|
extern ? D_80183EB0;
|
|
|
|
void func_80055228(s32 arg0) {
|
|
s32 *var_s1;
|
|
s32 temp_s0;
|
|
|
|
var_s1 = D_80183EA0;
|
|
do {
|
|
temp_s0 = *var_s1;
|
|
func_8008A364(temp_s0, arg0, 0x4000U, 0x000005DC);
|
|
if (func_8007223C(temp_s0, 0x00040000) != 0) {
|
|
func_80055164(temp_s0);
|
|
}
|
|
var_s1 += 4;
|
|
} while (var_s1 != &D_80183EB0);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80055228.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
s16 func_80004DFC(s32, s32, ?, s16); /* extern */
|
|
|
|
void func_800552BC(s32 objectIndex) {
|
|
struct_80165C18_entry *sp18;
|
|
Gfx *temp_a0;
|
|
struct_80165C18_entry *temp_v1;
|
|
|
|
temp_v1 = &D_80165C18[objectIndex];
|
|
if (temp_v1->unk_0A6 >= 2) {
|
|
sp18 = temp_v1;
|
|
func_80042E00(temp_v1->unk_004, (s16 *) temp_v1->unk_0BE, temp_v1->unk_000);
|
|
temp_a0 = gDisplayListHead;
|
|
gDisplayListHead = temp_a0 + 8;
|
|
temp_a0->words.w0 = 0x06000000;
|
|
temp_a0->words.w1 = (u32) D_0D0077D0;
|
|
if (D_800DC5FC == 0) {
|
|
sp18 = temp_v1;
|
|
temp_v1->unk_0A2 = func_80004DFC(temp_v1->unk_070, temp_v1->unk_074, 0, temp_v1->unk_0A2);
|
|
return;
|
|
}
|
|
func_80004DFC(temp_v1->unk_070, temp_v1->unk_074, 0, temp_v1->unk_0A2);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800552BC.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_800552BC(s32); /* extern */
|
|
extern s8 D_80165908;
|
|
extern ? D_80183F50;
|
|
|
|
void func_80055380(s32 arg0) {
|
|
s32 *var_s1;
|
|
s32 temp_s0;
|
|
|
|
var_s1 = D_80183F28;
|
|
do {
|
|
temp_s0 = *var_s1;
|
|
if (func_8008A364(temp_s0, arg0, 0x5555U, 0x000005DC) < 0x9C401) {
|
|
D_80165908 = 1;
|
|
func_800722A4(temp_s0, 2);
|
|
}
|
|
if (func_8007223C(temp_s0, 0x00040000) != 0) {
|
|
func_800552BC(temp_s0);
|
|
}
|
|
var_s1 += 4;
|
|
} while (var_s1 != &D_80183F50);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80055380.s")
|
|
#endif
|
|
|
|
void func_80055458(s32 objectIndex, s32 cameraId) {
|
|
Camera *camera;
|
|
|
|
if (D_80165C18[objectIndex].unk_0A6 >= 2) {
|
|
camera = &camera1[cameraId];
|
|
func_8004A6EC(objectIndex, 0.5f);
|
|
D_80165C18[objectIndex].unk_0B2[1] = func_800418AC(D_80165C18[objectIndex].unk_004[0], D_80165C18[objectIndex].unk_004[2], camera->pos);
|
|
func_800480B4(D_80165C18[objectIndex].unk_004, D_80165C18[objectIndex].unk_0B2, D_80165C18[objectIndex].unk_000, (s32) D_80165C18[objectIndex].unk_060, (s32) D_80165C18[objectIndex].unk_064, D_0D0060B0, 0x00000040, 0x00000040, 0x00000040, 0x00000020);
|
|
}
|
|
}
|
|
|
|
void func_80055528(s32 arg0) {
|
|
s32 someIndex;
|
|
s32 test;
|
|
|
|
for (someIndex = 0; someIndex < 10; someIndex++) {
|
|
test = D_80183EA0[someIndex];
|
|
func_8008A364(test, arg0, 0x2AABU, 0x00000320);
|
|
if (func_8007223C(test, 0x00040000) != 0) {
|
|
func_80055458(test, arg0);
|
|
}
|
|
}
|
|
}
|
|
|
|
void func_800555BC(s32 objectIndex, s32 cameraId) {
|
|
Camera *camera;
|
|
|
|
if (D_80165C18[objectIndex].unk_0A6 >= 2) {
|
|
camera = &camera1[cameraId];
|
|
func_8004A870(objectIndex, 0.7f);
|
|
D_80165C18[objectIndex].unk_0B2[1] = func_800418AC(D_80165C18[objectIndex].unk_004[0], D_80165C18[objectIndex].unk_004[2], camera->pos);
|
|
func_800480B4(D_80165C18[objectIndex].unk_004, D_80165C18[objectIndex].unk_0B2, D_80165C18[objectIndex].unk_000, (s32) D_80165C18[objectIndex].unk_060, (s32) D_80165C18[objectIndex].unk_064, (Vtx *) D_80165C18[objectIndex].unk_074, 0x00000040, 0x00000040, 0x00000040, 0x00000020);
|
|
}
|
|
}
|
|
|
|
void func_8005568C(s32 arg0) {
|
|
s32 test;
|
|
u32 something;
|
|
s32 someIndex;
|
|
|
|
for (someIndex = 0; someIndex < 15; someIndex++) {
|
|
test = D_80183F28[someIndex];
|
|
something = func_8008A364(test, arg0, 0x4000U, 0x000003E8);
|
|
if (func_8007223C(test, 0x00040000) != 0) {
|
|
func_800721C0(test, 0x00200000);
|
|
if (something < 0x2711U) {
|
|
func_800721C0(test, 0x00000020);
|
|
} else {
|
|
func_800721E8(test, 0x00000020);
|
|
}
|
|
if (something < 0x57E41U) {
|
|
func_800721C0(test, 0x00400000);
|
|
}
|
|
if (something < 0x52211U) {
|
|
func_800555BC(test, arg0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
UNUSED void func_800557AC() {
|
|
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80004DFC(s32, s32, u8, s8); /* extern */
|
|
|
|
void func_800557B4(s32 objectIndex, u32 arg1, u32 arg2) {
|
|
f32 sp3C;
|
|
f32 sp38;
|
|
f32 sp34;
|
|
Gfx *sp20;
|
|
Gfx *temp_v1;
|
|
Gfx *temp_v1_2;
|
|
struct_80165C18_entry *temp_s0;
|
|
|
|
temp_s0 = &D_80165C18[objectIndex];
|
|
if (temp_s0->unk_0A6 >= 2) {
|
|
if (func_8007223C(objectIndex, 0x00000020) != 0) {
|
|
if (func_80072320(objectIndex, 4) != 0) {
|
|
if (arg2 >= arg1) {
|
|
sp34 = temp_s0->unk_004[0];
|
|
sp3C = temp_s0->unk_004[2];
|
|
sp38 = (f32) ((f64) temp_s0->unk_004[1] - 1.0);
|
|
func_80042F70(&sp34, &temp_s0->unk_0B2, temp_s0->unk_000);
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) D_0D0077D0;
|
|
func_80004DFC(temp_s0->unk_070, temp_s0->unk_074, (u8) temp_s0->unk_0D8, temp_s0->unk_0D2);
|
|
}
|
|
} else if (arg1 < 0x15F91U) {
|
|
func_8004A7AC(objectIndex, 1.5f);
|
|
}
|
|
}
|
|
sp20 = D_0D0077D0;
|
|
func_80042E00(temp_s0->unk_004, (s16 *) &temp_s0->unk_0B2, temp_s0->unk_000);
|
|
temp_v1_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_2 + 8;
|
|
temp_v1_2->words.w0 = 0x06000000;
|
|
temp_v1_2->words.w1 = (u32) sp20;
|
|
func_80004DFC(temp_s0->unk_070, temp_s0->unk_074, (u8) temp_s0->unk_0D8, temp_s0->unk_0D2);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800557B4.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_800557B4(s32, u32, ?); /* extern */
|
|
extern ? D_80183EDC;
|
|
|
|
void func_8005592C(s32 arg0) {
|
|
? var_s3;
|
|
s32 *var_s2;
|
|
s32 temp_s0;
|
|
s32 temp_v0;
|
|
s32 var_a3;
|
|
s32 var_s1;
|
|
u32 temp_s1;
|
|
|
|
temp_v0 = gPlayerCountSelection1;
|
|
if (temp_v0 == 1) {
|
|
var_s3 = 0x3D090;
|
|
} else if (temp_v0 == 2) {
|
|
var_s3 = 0x27100;
|
|
} else {
|
|
var_s3 = 0x15F90;
|
|
}
|
|
var_s2 = D_80183EA0;
|
|
do {
|
|
temp_s0 = *var_s2;
|
|
if (D_80165C18[temp_s0].unk_0A6 >= 2) {
|
|
if (gPlayerCountSelection1 == 1) {
|
|
var_s1 = 0x4000;
|
|
if (var_s2 == D_80183EA0) {
|
|
var_a3 = 0x000005DC;
|
|
} else if (func_80072320(temp_s0, 8) != 0) {
|
|
var_a3 = 0x00000320;
|
|
} else {
|
|
var_a3 = 0x000003E8;
|
|
}
|
|
} else {
|
|
var_a3 = 0x00000258;
|
|
if (func_80072320(temp_s0, 8) != 0) {
|
|
var_a3 = 0x000001F4;
|
|
var_s1 = 0x4000;
|
|
} else {
|
|
var_s1 = 0x5555;
|
|
}
|
|
}
|
|
temp_s1 = func_8008A364(temp_s0, arg0, var_s1 & 0xFFFF, var_a3);
|
|
if (func_8007223C(temp_s0, 0x00040000) != 0) {
|
|
func_800557B4(temp_s0, temp_s1, var_s3);
|
|
}
|
|
}
|
|
var_s2 += 4;
|
|
} while (var_s2 != &D_80183EDC);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8005592C.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80004DFC(s32, s32, ?, s8); /* extern */
|
|
extern ? D_06012028;
|
|
extern ? D_0D0062B0;
|
|
extern ? D_0D0077D0;
|
|
extern f32 D_80183E40;
|
|
extern s16 D_80183E80;
|
|
|
|
void func_80055AB8(s32 objectIndex, s32 cameraId) {
|
|
Camera *sp3C;
|
|
struct_80165C18_entry *sp34;
|
|
Camera *temp_a2;
|
|
Gfx *temp_t0;
|
|
f32 temp_f12;
|
|
f32 temp_f14;
|
|
struct_80165C18_entry *temp_v1;
|
|
|
|
temp_v1 = &D_80165C18[objectIndex];
|
|
temp_a2 = &camera1[cameraId];
|
|
if (temp_v1->unk_0A6 >= 2) {
|
|
sp34 = temp_v1;
|
|
sp3C = temp_a2;
|
|
if (func_8007223C(objectIndex, 0x00100000) != 0) {
|
|
temp_f12 = temp_v1->unk_004[0];
|
|
temp_f14 = temp_v1->unk_004[2];
|
|
D_80183E80.unk0 = 0;
|
|
D_80183E40.unk4 = (f32) ((f64) temp_v1->unk_004[1] + 16.0);
|
|
D_80183E40.unk0 = temp_f12;
|
|
D_80183E40.unk8 = temp_f14;
|
|
D_80183E80.unk2 = func_800418AC(temp_f12, temp_f14, temp_a2->pos);
|
|
D_80183E80.unk4 = 0x8000;
|
|
func_800468E0(&D_80183E40, &D_80183E80, 0.54f, (s32) &D_06012028, (s32) &D_0D0062B0, 0x00000020, 0x00000040, 0x00000020, 0x00000040, 5);
|
|
return;
|
|
}
|
|
sp34 = temp_v1;
|
|
func_80042E00(temp_v1->unk_004, (s16 *) temp_v1->unk_0BE, temp_v1->unk_000);
|
|
temp_t0 = gDisplayListHead;
|
|
gDisplayListHead = temp_t0 + 8;
|
|
temp_t0->words.w0 = 0x06000000;
|
|
temp_t0->words.w1 = (u32) &D_0D0077D0;
|
|
func_80004DFC(temp_v1->unk_070, temp_v1->unk_074, 0, temp_v1->unk_0D2);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80055AB8.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_80055AB8(s32, s32); /* extern */
|
|
extern ? D_80183F34;
|
|
|
|
void func_80055C38(s32 arg0) {
|
|
s32 *var_s1;
|
|
s32 temp_s0;
|
|
|
|
var_s1 = D_80183F28;
|
|
do {
|
|
temp_s0 = *var_s1;
|
|
func_8008A1D0(temp_s0, arg0, 0x000005DC, 0x000009C4);
|
|
if (func_8007223C(temp_s0, 0x00040000) != 0) {
|
|
func_80055AB8(temp_s0, arg0);
|
|
}
|
|
var_s1 += 4;
|
|
} while (var_s1 != &D_80183F34);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80055C38.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern ? D_0600F650;
|
|
extern Gfx D_0600F960;
|
|
extern ? D_0600FA20;
|
|
extern Gfx D_0600FBE0;
|
|
extern s16 D_80183E80;
|
|
|
|
void func_80055CCC(s32 objectIndex, s32 cameraId) {
|
|
Camera *sp24;
|
|
Gfx *temp_v1;
|
|
Gfx *temp_v1_2;
|
|
struct_80165C18_entry *temp_s0;
|
|
|
|
temp_s0 = &D_80165C18[objectIndex];
|
|
sp24 = &camera1[cameraId];
|
|
if (temp_s0->unk_0A6 >= 2) {
|
|
func_8008A454(objectIndex, cameraId, 0x0000012C);
|
|
func_8004A6EC(objectIndex, (f32) ((20.0 / (f64) (temp_s0->unk_004[1] - temp_s0->unk_044)) + 0.5));
|
|
if (func_80072270(objectIndex, 0x00100000) != 0) {
|
|
func_80043328(temp_s0->unk_004, (s16 *) temp_s0->unk_0BE, temp_s0->unk_000, &D_0600F960);
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) &D_0600F650;
|
|
return;
|
|
}
|
|
D_80183E80.unk0 = (s16) temp_s0->unk_0BE[0];
|
|
D_80183E80.unk2 = (s16) (func_800418AC(temp_s0->unk_004[0], temp_s0->unk_004[2], sp24->pos) + 0x8000);
|
|
D_80183E80.unk4 = (u16) temp_s0->unk_0BE[2];
|
|
func_80043328(temp_s0->unk_004, &D_80183E80, temp_s0->unk_000, &D_0600FBE0);
|
|
temp_v1_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_2 + 8;
|
|
temp_v1_2->words.w0 = 0x06000000;
|
|
temp_v1_2->words.w1 = (u32) &D_0600FA20;
|
|
if (gPlayerCountSelection1 == 1) {
|
|
temp_s0->unk_0BE[1] = 0;
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80055CCC.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit 6b6e1390bf30013247343623194964ff13d0c45b
|
|
? func_80055CCC(s32, s32); /* extern */
|
|
extern s32 gGamestate;
|
|
|
|
void func_80055E68(s32 arg0) {
|
|
s32 temp_s0;
|
|
|
|
temp_s0 = *D_80183EA0;
|
|
if (gGamestate != 9) {
|
|
func_8008A1D0(temp_s0, arg0, 0x000005DC, 0x00000BB8);
|
|
if (func_8007223C(temp_s0, 0x00040000) != 0) {
|
|
func_80055CCC(temp_s0, arg0);
|
|
}
|
|
} else {
|
|
func_800721E8(temp_s0, 0x00100000);
|
|
func_80055CCC(temp_s0, arg0);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80055E68.s")
|
|
#endif
|
|
|
|
void func_80055EF4(s32 objectIndex, s32 arg1) {
|
|
struct_80165C18_entry *object;
|
|
|
|
object = &D_80165C18[objectIndex];
|
|
if (object->unk_0A6 >= 2) {
|
|
func_80043220(object->unk_004, object->unk_0BE, object->unk_000, object->unk_070);
|
|
}
|
|
}
|
|
|
|
void func_80055F48(s32 arg0) {
|
|
s32 someIndex;
|
|
|
|
for (someIndex = 0; someIndex < 3; someIndex++) {
|
|
func_80055EF4(D_80183EA0[someIndex], arg0);
|
|
}
|
|
}
|
|
|
|
void func_80055FA0(s32 objectIndex, s32 arg1) {
|
|
Mat4 someMatrix1;
|
|
Mat4 someMatrix2;
|
|
struct_80165C18_entry *object;
|
|
|
|
object = &D_80165C18[objectIndex];
|
|
if (object->unk_0A6 >= 2) {
|
|
gSPMatrix(gDisplayListHead++, VIRTUAL_TO_PHYSICAL(&gGfxPool->mtxPool[1]), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
|
|
gSPMatrix(gDisplayListHead++, VIRTUAL_TO_PHYSICAL(&gGfxPool->mtxPool[7]), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
|
func_800425D0(someMatrix1,object->unk_004, object->unk_0BE, object->unk_000);
|
|
func_80022180(&gGfxPool->mtxPool[D_8018D120 + 0xB], someMatrix1);
|
|
gSPMatrix(gDisplayListHead++, VIRTUAL_TO_PHYSICAL(&gGfxPool->mtxPool[D_8018D120 + 0xB]), G_MTX_NOPUSH | G_MTX_MUL | G_MTX_MODELVIEW);
|
|
D_8018D120++;
|
|
gSPDisplayList(gDisplayListHead++, D_0D0077A0);
|
|
gSPDisplayList(gDisplayListHead++, object->unk_070);
|
|
gSPMatrix(gDisplayListHead++, VIRTUAL_TO_PHYSICAL(&gGfxPool->mtxPool[7]), G_MTX_NOPUSH | G_MTX_MUL | G_MTX_PROJECTION);
|
|
mtxf_identity(someMatrix2);
|
|
func_802B4FF8(someMatrix2, 0);
|
|
}
|
|
}
|
|
|
|
void func_80056160(s32 arg0) {
|
|
func_80055FA0(D_80183EAC, arg0);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern ? D_80183EC8;
|
|
extern ? D_8018E838;
|
|
|
|
void func_80056188(s32 cameraId) {
|
|
Camera *temp_s3;
|
|
s32 *var_s2;
|
|
s32 temp_s1;
|
|
struct_80165C18_entry *temp_s0;
|
|
|
|
var_s2 = D_80183EA0;
|
|
temp_s3 = &camera1[cameraId];
|
|
do {
|
|
temp_s1 = *var_s2;
|
|
if (*(cameraId + &D_8018E838) == 0) {
|
|
temp_s0 = &D_80165C18[temp_s1];
|
|
if ((temp_s0->unk_0A6 >= 2) && (func_80072270(temp_s1, 0x00080000) != 0) && (func_8008A140(temp_s1, temp_s3, 0x2AABU) != 0)) {
|
|
temp_s0->unk_0B4 = func_800872D8(temp_s1, temp_s3);
|
|
func_800480B4(temp_s0->unk_004, &temp_s0->unk_0B2, temp_s0->unk_000, (s32) temp_s0->unk_060, (s32) temp_s0->unk_064, D_0D0060B0, 0x00000040, 0x00000040, 0x00000040, 0x00000020);
|
|
}
|
|
}
|
|
var_s2 += 4;
|
|
} while (var_s2 != &D_80183EC8);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80056188.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
struct _struct_D_800E46F8_0xC {
|
|
/* 0x0 */ s32 unk0; /* inferred */
|
|
/* 0x4 */ s32 unk4; /* inferred */
|
|
/* 0x8 */ s32 unk8; /* inferred */
|
|
}; /* size = 0xC */
|
|
|
|
extern s32 D_80165860;
|
|
extern s32 D_8016586C;
|
|
extern s32 D_80165878;
|
|
extern f32 D_80183E40;
|
|
extern s16 D_80183E80;
|
|
static struct _struct_D_800E46F8_0xC D_800E46F8[3] = {
|
|
{ 0x000000FF, 0x000000FF, 0x000000FF },
|
|
{ 0x000000FF, 0x000000FF, 0 },
|
|
{ 0x000000FF, 0, 0 },
|
|
};
|
|
|
|
void func_800562E4(s32 arg0, s32 arg1, s32 arg2) {
|
|
Gfx *temp_v0_2;
|
|
Gfx *temp_v0_3;
|
|
s32 temp_a0;
|
|
s32 temp_a1;
|
|
s32 temp_a2;
|
|
struct _struct_D_800E46F8_0xC *temp_v0;
|
|
|
|
temp_v0 = &D_800E46F8[arg0];
|
|
temp_a0 = temp_v0->unk0;
|
|
temp_a1 = temp_v0->unk4;
|
|
temp_a2 = temp_v0->unk8;
|
|
D_80165860 = temp_a0;
|
|
D_8016586C = temp_a1;
|
|
D_80165878 = temp_a2;
|
|
func_8004B138(temp_a0, temp_a1, temp_a2, arg2);
|
|
func_80042E00(&D_80183E40, &D_80183E80, 0.2f);
|
|
func_80044BF8((arg1 << 0xA) + D_0D02AC58, 0x00000020, 0x00000020);
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->words.w0 = 0x0400103F;
|
|
temp_v0_2->words.w1 = (u32) D_0D005AE0;
|
|
temp_v0_3 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->words.w0 = 0x06000000;
|
|
temp_v0_3->words.w1 = (u32) D_0D006940;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800562E4.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_800562E4(s32, s32, s32); /* extern */
|
|
extern s32 D_801655CC;
|
|
extern f32 D_80183E40;
|
|
extern s16 D_80183E80;
|
|
extern s32 D_8018D400;
|
|
|
|
void func_800563DC(s32 objectIndex, s32 cameraId, s32 arg2) {
|
|
Gfx *temp_v0_2;
|
|
Gfx *temp_v0_3;
|
|
Gfx *temp_v0_6;
|
|
f32 temp_f12;
|
|
f32 temp_f14;
|
|
s32 temp_s0;
|
|
s32 temp_s0_2;
|
|
s32 temp_v0_4;
|
|
s32 temp_v0_5;
|
|
struct_80165C18_entry *temp_v0;
|
|
|
|
temp_v0 = &D_80165C18[objectIndex];
|
|
temp_f12 = temp_v0->unk_004[0];
|
|
temp_f14 = temp_v0->unk_004[2];
|
|
temp_s0 = D_801655CC & 3;
|
|
D_80183E40.unk4 = (f32) ((f64) temp_v0->unk_004[1] + 1.0);
|
|
D_80183E80.unk0 = 0;
|
|
D_80183E40.unk0 = temp_f12;
|
|
D_80183E40.unk8 = temp_f14;
|
|
D_80183E80.unk2 = func_800418AC(temp_f12, temp_f14, camera1[cameraId].pos);
|
|
D_80183E80.unk4 = 0x8000;
|
|
func_80042E00(&D_80183E40, &D_80183E80, 0.2f);
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->words.w0 = 0x06000000;
|
|
temp_v0_2->words.w1 = (u32) D_0D007E98;
|
|
func_8004B310(arg2);
|
|
func_80047270(D_0D02A858, (temp_s0 << 0xA) + D_0D029858, D_0D005AE0, 0x00000020, 0x00000020, 0x00000020, 0x00000020);
|
|
temp_v0_3 = gDisplayListHead;
|
|
temp_s0_2 = D_8018D400;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->words.w0 = 0x06000000;
|
|
temp_v0_3->words.w1 = (u32) D_0D007B00;
|
|
func_8004B414(0, 0, 0, arg2);
|
|
D_80183E80.unk4 = 0;
|
|
D_80183E40.unk4 = (f32) ((f64) D_80183E40.unk4 + 4.0);
|
|
func_800562E4(temp_s0_2 % 3, temp_s0_2 % 4, arg2);
|
|
temp_v0_4 = temp_s0_2 + 1;
|
|
D_80183E80.unk4 = 0x6000;
|
|
func_800562E4(temp_v0_4 % 3, temp_v0_4 % 4, arg2);
|
|
temp_v0_5 = temp_s0_2 + 2;
|
|
D_80183E80.unk4 = 0xA000;
|
|
func_800562E4(temp_v0_5 % 3, temp_v0_5 % 4, arg2);
|
|
temp_v0_6 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_6 + 8;
|
|
temp_v0_6->words.w0 = 0xBB000000;
|
|
temp_v0_6->words.w1 = 0x00010001;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800563DC.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern f32 D_80183E40;
|
|
extern s16 D_80183E80;
|
|
|
|
void func_8005669C(s32 objectIndex, s32 arg1, s32 arg2) {
|
|
Gfx *temp_v1;
|
|
Gfx *temp_v1_2;
|
|
struct_80165C18_entry *temp_s1;
|
|
|
|
temp_v1 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) D_0D0079E8;
|
|
func_8004B310(arg2);
|
|
func_80043D50(D_0D02AA58, 0x00000010, 0x00000010);
|
|
temp_s1 = &D_80165C18[objectIndex];
|
|
D_80183E40.unk4 = (f32) ((f64) temp_s1->unk_004[1] - 2.0);
|
|
D_80183E40.unk0 = (f32) ((f64) temp_s1->unk_004[0] + 2.0);
|
|
D_80183E40.unk8 = (f32) ((f64) temp_s1->unk_004[2] + 2.0);
|
|
func_800431B0(&D_80183E40, &D_80183E80, 0.15f, D_0D005770);
|
|
D_80183E40.unk0 = (f32) ((f64) temp_s1->unk_004[0] + 2.0);
|
|
D_80183E40.unk8 = (f32) ((f64) temp_s1->unk_004[2] - 2.0);
|
|
func_800431B0(&D_80183E40, &D_80183E80, 0.15f, D_0D005770);
|
|
D_80183E40.unk0 = (f32) ((f64) temp_s1->unk_004[0] - 2.0);
|
|
D_80183E40.unk8 = (f32) ((f64) temp_s1->unk_004[2] - 2.0);
|
|
func_800431B0(&D_80183E40, &D_80183E80, 0.15f, D_0D005770);
|
|
D_80183E40.unk0 = (f32) ((f64) temp_s1->unk_004[0] - 2.0);
|
|
D_80183E40.unk8 = (f32) ((f64) temp_s1->unk_004[2] + 2.0);
|
|
func_800431B0(&D_80183E40, &D_80183E80, 0.15f, D_0D005770);
|
|
temp_v1_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_2 + 8;
|
|
temp_v1_2->words.w0 = 0xBB000000;
|
|
temp_v1_2->words.w1 = 0x00010001;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8005669C.s")
|
|
#endif
|
|
|
|
#ifdef NEEDS_RODATA
|
|
// data_0DD0A0_3_0_1.s
|
|
extern f64 D_800EE088;// = 0.8;
|
|
|
|
void func_800568A0(s32 objectIndex, s32 playerId) {
|
|
Mat4 sp30;
|
|
Player *player;
|
|
|
|
player = &gPlayerOne[playerId];
|
|
D_80183E50[0] = D_80165C18[objectIndex].unk_004[0];
|
|
D_80183E50[1] = D_80165C18[objectIndex].unk_044 + 0.8;
|
|
D_80183E50[2] = D_80165C18[objectIndex].unk_004[2];
|
|
func_80042A20(sp30, player->unk_110.unk60, D_80183E50, 0U, 0.5f);
|
|
func_80022180(&gGfxPool->mtxPool[D_8018D120 + 0xB], sp30);
|
|
gSPMatrix(gDisplayListHead++, VIRTUAL_TO_PHYSICAL(&gGfxPool->mtxPool[D_8018D120 + 0xB]), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
|
D_8018D120++;
|
|
gSPDisplayList(gDisplayListHead++, D_0D007B98);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_800568A0.s")
|
|
#endif
|
|
|
|
void func_800569F4(s32 arg0) {
|
|
s32 objectIndex;
|
|
|
|
objectIndex = D_80183DD8[arg0];
|
|
func_800723A4(objectIndex, 0);
|
|
D_80165C18[objectIndex].unk_0A0 = 0;
|
|
}
|
|
|
|
void func_80056A40(s32 arg0, s32 arg1) {
|
|
s32 objectIndex;
|
|
|
|
objectIndex = D_80183DD8[arg0];
|
|
func_800723A4(objectIndex, 0);
|
|
D_80165C18[objectIndex].unk_0A0 = (s16) arg1;
|
|
}
|
|
|
|
void func_80056A94(s32 arg0) {
|
|
func_80072428(D_80183DD8[arg0]);
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_800563DC(s32, s32, s16); /* extern */
|
|
? func_8005669C(s32, s32, s16); /* extern */
|
|
|
|
void func_80056AC0(s32 arg0) {
|
|
Player *temp_v0;
|
|
s16 temp_s1;
|
|
s32 *var_s3;
|
|
s32 temp_s0;
|
|
s32 var_s2;
|
|
struct_80165C18_entry *temp_v1;
|
|
|
|
var_s3 = D_80183DD8;
|
|
var_s2 = 0;
|
|
do {
|
|
temp_s0 = *var_s3;
|
|
temp_v1 = &D_80165C18[temp_s0];
|
|
if (temp_v1->unk_0A6 != 0) {
|
|
temp_s1 = temp_v1->unk_0A0;
|
|
temp_v0 = &gPlayerOne[var_s2];
|
|
temp_v1->unk_004[0] = temp_v0->pos[0];
|
|
temp_v1->unk_004[1] = (f32) ((f64) temp_v0->pos[1] - 2.0);
|
|
temp_v1->unk_004[2] = temp_v0->pos[2];
|
|
temp_v1->unk_044 = temp_v0->unk_074;
|
|
func_800563DC(temp_s0, arg0, temp_s1);
|
|
func_8005669C(temp_s0, arg0, temp_s1);
|
|
func_800568A0(temp_s0, arg0);
|
|
}
|
|
var_s2 += 1;
|
|
var_s3 += 4;
|
|
} while (var_s2 != 4);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80056AC0.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_800562E4(s32, s32, ?); /* extern */
|
|
extern ? D_80163DE8;
|
|
extern u32 D_801655CC;
|
|
extern f32 D_80183E40;
|
|
extern f32 D_80183E44;
|
|
extern u16 D_80183E80;
|
|
extern s16 D_80183E84;
|
|
extern s32 D_8018D400;
|
|
static ? D_800E471C; /* unable to generate initializer */
|
|
|
|
void func_80056BF0(s32 arg0) {
|
|
f32 sp40;
|
|
Gfx *temp_v1;
|
|
f32 *var_t6;
|
|
s32 *var_t9;
|
|
s32 temp_at;
|
|
s32 temp_s0;
|
|
s32 temp_v0;
|
|
s32 temp_v0_2;
|
|
void *temp_t3;
|
|
|
|
var_t9 = (arg0 * 0x54) + &D_80163DE8;
|
|
temp_t3 = var_t9 + 0x54;
|
|
var_t6 = &sp40;
|
|
do {
|
|
temp_at = *var_t9;
|
|
var_t9 += 0xC;
|
|
var_t6 += 0xC;
|
|
var_t6->unk-C = temp_at;
|
|
var_t6->unk-8 = (s32) var_t9->unk-8;
|
|
var_t6->unk-4 = (s32) var_t9->unk-4;
|
|
} while (var_t9 != temp_t3);
|
|
D_80183E40.unk0 = sp40;
|
|
D_80183E40.unk4 = (f32) ((f64) sp44 + 1.0);
|
|
D_80183E40.unk8 = sp48;
|
|
func_800480B4(&D_80183E40, &D_80183E80, 0.25f, (s32) D_0D02A858, (s32) ((*(&D_800E471C + ((u32) D_801655CC % 6U)) << 0xA) + D_0D029858), D_0D005AE0, 0x00000020, 0x00000020, 0x00000020, 0x00000020);
|
|
temp_v1 = gDisplayListHead;
|
|
temp_s0 = D_8018D400;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) D_0D007B00;
|
|
func_8004B414(0, 0, 0, 0x000000FF);
|
|
D_80183E44 = (f32) ((f64) sp44 + 5.0);
|
|
D_80183E84 = 0;
|
|
func_800562E4(temp_s0 % 3, temp_s0 % 4, 0xFF);
|
|
temp_v0 = temp_s0 + 1;
|
|
D_80183E84 = 0x6000;
|
|
func_800562E4(temp_v0 % 3, temp_v0 % 4, 0xFF);
|
|
temp_v0_2 = temp_s0 + 2;
|
|
D_80183E84 = 0xA000;
|
|
func_800562E4(temp_v0_2 % 3, temp_v0_2 % 4, 0xFF);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80056BF0.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern ? D_80163DE8;
|
|
extern s16 D_80183E80;
|
|
|
|
void func_80056E24(s32 arg0, f32 *arg1) {
|
|
f32 sp5C;
|
|
f32 sp50;
|
|
f32 sp44;
|
|
f32 sp38;
|
|
? sp2C;
|
|
? *var_t6;
|
|
Gfx *temp_v1;
|
|
Gfx *temp_v1_2;
|
|
s32 *var_t9;
|
|
s32 temp_at;
|
|
void *temp_t3;
|
|
|
|
var_t9 = (arg0 * 0x54) + &D_80163DE8;
|
|
temp_t3 = var_t9 + 0x54;
|
|
var_t6 = &sp2C;
|
|
do {
|
|
temp_at = *var_t9;
|
|
var_t9 += 0xC;
|
|
var_t6 += 0xC;
|
|
var_t6->unk-C = temp_at;
|
|
var_t6->unk-8 = (s32) var_t9->unk-8;
|
|
var_t6->unk-4 = (s32) var_t9->unk-4;
|
|
} while (var_t9 != temp_t3);
|
|
temp_v1 = gDisplayListHead;
|
|
D_80183E80.unk0 = 0;
|
|
D_80183E80.unk4 = 0x8000;
|
|
gDisplayListHead = temp_v1 + 8;
|
|
temp_v1->words.w0 = 0x06000000;
|
|
temp_v1->words.w1 = (u32) D_0D0079C8;
|
|
func_80043D50(D_0D02AA58, 0x00000010, 0x00000010);
|
|
D_80183E80.unk2 = func_800418AC(sp38, sp40, arg1);
|
|
func_800431B0(&sp38, &D_80183E80, 0.15f, D_0D005770);
|
|
D_80183E80.unk2 = func_800418AC(sp44, sp4C, arg1);
|
|
func_800431B0(&sp44, &D_80183E80, 0.15f, D_0D005770);
|
|
D_80183E80.unk2 = func_800418AC(sp50, sp58, arg1);
|
|
func_800431B0(&sp50, &D_80183E80, 0.15f, D_0D005770);
|
|
D_80183E80.unk2 = func_800418AC(sp5C, sp64, arg1);
|
|
func_800431B0(&sp5C, &D_80183E80, 0.15f, D_0D005770);
|
|
temp_v1_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v1_2 + 8;
|
|
temp_v1_2->words.w0 = 0xBB000000;
|
|
temp_v1_2->words.w1 = 0x00010001;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80056E24.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern ? D_0D007B98;
|
|
extern ? D_80163DE8;
|
|
extern ? D_80164038;
|
|
extern f32 D_80183E50;
|
|
|
|
void func_80056FCC(s32 arg0) {
|
|
Gfx *temp_v0_2;
|
|
Gfx *temp_v0_3;
|
|
void *temp_v0;
|
|
|
|
temp_v0 = (arg0 * 0x54) + &D_80163DE8;
|
|
D_80183E50.unk0 = temp_v0->unk0;
|
|
D_80183E50.unk4 = (f32) ((f64) temp_v0->unk50 + 1.0);
|
|
D_80183E50.unk8 = (f32) temp_v0->unk8;
|
|
func_80042A20((f32 (*)[4]) &sp30[0], (arg0 << 6) + 0x30 + &D_80164038, &D_80183E50, 0U, 0.5f);
|
|
func_80022180(&gGfxPool->mtxPool[D_8018D120] + 0x2C0, (f32 (*)[4]) &sp30[0]);
|
|
temp_v0_2 = gDisplayListHead;
|
|
gDisplayListHead = temp_v0_2 + 8;
|
|
temp_v0_2->words.w0 = 0x01020040;
|
|
temp_v0_2->words.w1 = (s32) (&gGfxPool->mtxPool[D_8018D120] + 0x2C0) & 0x1FFFFFFF;
|
|
temp_v0_3 = gDisplayListHead;
|
|
D_8018D120 += 1;
|
|
gDisplayListHead = temp_v0_3 + 8;
|
|
temp_v0_3->words.w0 = 0x06000000;
|
|
temp_v0_3->words.w1 = (u32) &D_0D007B98;
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80056FCC.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
? func_800563DC(s32, s32, ?); /* extern */
|
|
? func_80056E24(s32, Camera *); /* extern */
|
|
? func_80056FCC(s32); /* extern */
|
|
extern ? D_80163DE8;
|
|
extern ? D_80183E80;
|
|
extern s32 gGamestate;
|
|
|
|
void func_80057114(s32 cameraId) {
|
|
? *var_s1_2;
|
|
Camera *temp_s7;
|
|
s32 *var_s1;
|
|
s32 temp_s0;
|
|
s32 temp_s0_2;
|
|
s32 var_fp;
|
|
s32 var_s2;
|
|
s32 var_s2_2;
|
|
struct_80165C18_entry *temp_v0;
|
|
u16 temp_s5;
|
|
u32 temp_s4;
|
|
|
|
var_fp = cameraId;
|
|
if (gGamestate == 5) {
|
|
var_fp = 0;
|
|
}
|
|
temp_s7 = &camera1[var_fp];
|
|
if (var_fp == 0) {
|
|
var_s1 = D_80183DD8;
|
|
var_s2 = 0;
|
|
do {
|
|
temp_s0 = *var_s1;
|
|
if (func_8007223C(temp_s0, 0x00200000) != 0) {
|
|
(&D_80163DE8 + (var_s2 * 0x54))->unk4A = 0;
|
|
} else if (gGamestate != 5) {
|
|
(&D_80163DE8 + (var_s2 * 0x54))->unk4A = 1;
|
|
}
|
|
func_800721E8(temp_s0, 0x00200000);
|
|
var_s2 += 1;
|
|
var_s1 += 4;
|
|
} while (var_s2 != 7);
|
|
}
|
|
var_s1_2 = &D_80163DE8;
|
|
var_s2_2 = 0;
|
|
do {
|
|
temp_s5 = var_s1_2->unk44;
|
|
if (temp_s5 != 0) {
|
|
temp_s0_2 = D_80183DD8[var_s2_2];
|
|
temp_v0 = &D_80165C18[temp_s0_2];
|
|
temp_v0->unk_004[0] = var_s1_2->unk0;
|
|
temp_v0->unk_004[1] = var_s1_2->unk4;
|
|
temp_v0->unk_004[2] = var_s1_2->unk8;
|
|
temp_s4 = func_8008A364(temp_s0_2, var_fp, 0x31C4U, 0x000001F4);
|
|
if (func_8007223C(temp_s0_2, 0x00040000) != 0) {
|
|
func_800721C0(temp_s0_2, 0x00200000);
|
|
D_80183E80.unk0 = 0;
|
|
D_80183E80.unk2 = func_800418AC(var_s1_2->unk0, var_s1_2->unk8, temp_s7->pos);
|
|
D_80183E80.unk4 = 0x8000;
|
|
func_800563DC(temp_s0_2, var_fp, 0xFF);
|
|
func_80056E24(var_s2_2, temp_s7);
|
|
if ((temp_s4 < 0x4E21U) && (temp_s5 != 4)) {
|
|
func_80056FCC(var_s2_2);
|
|
}
|
|
}
|
|
}
|
|
var_s2_2 += 1;
|
|
var_s1_2 += 0x54;
|
|
} while (var_s2_2 != 7);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80057114.s")
|
|
#endif
|
|
|
|
UNUSED void func_80057330(void) {
|
|
|
|
}
|
|
|
|
UNUSED void func_80057338(void) {
|
|
|
|
gSPDisplayList(gDisplayListHead++, D_0D0079C8);
|
|
gSPClearGeometryMode(gDisplayListHead++, G_CULL_BOTH);
|
|
gSPDisplayList(gDisplayListHead++, D_0D007AE0);
|
|
gSPTexture(gDisplayListHead++, 1, 1, 0, G_TX_RENDERTILE, G_OFF);
|
|
}
|
|
|
|
UNUSED void func_800573BC(void) {
|
|
|
|
}
|
|
|
|
UNUSED void func_800573C4(void) {
|
|
|
|
}
|
|
|
|
UNUSED void func_800573CC(void) {
|
|
|
|
}
|
|
UNUSED void func_800573D4(void) {
|
|
|
|
}
|
|
|
|
UNUSED void func_800573DC(void) {
|
|
|
|
}
|
|
|
|
|
|
void func_800573E4(s32 arg0, s32 arg1, s8 arg2) {
|
|
func_8004B7DC(arg0, arg1, 8, 8, (((arg2 % 16) * 8) << 16) >> 16, (((unsigned short) (arg2 / 16)) << 19) >> 16, 0);
|
|
}
|
|
|
|
void func_80057454(s32 *arg0, s32 *arg1) {
|
|
*arg0 += 8;
|
|
if (*arg0 >= 296) {
|
|
*arg0 = 20;
|
|
*arg1 += 8;
|
|
}
|
|
}
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
static ? D_800E5628; /* unable to generate initializer */
|
|
|
|
void debug_print_string(s32 *arg0, s32 *arg1, s8 *arg2) {
|
|
s8 *var_s0;
|
|
s8 temp_a2;
|
|
s8 var_v0;
|
|
|
|
var_s0 = arg2;
|
|
*arg0 += 0x14;
|
|
*arg1 += 0x14;
|
|
var_v0 = *arg2;
|
|
if (var_v0 != 0) {
|
|
do {
|
|
temp_a2 = *(&D_800E5628 + var_v0);
|
|
if (temp_a2 >= 0) {
|
|
func_800573E4(*arg0, *arg1, temp_a2);
|
|
}
|
|
func_80057454(arg0, arg1);
|
|
var_v0 = var_s0->unk1;
|
|
var_s0 += 1;
|
|
} while (var_v0 != 0);
|
|
}
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/debug_print_string.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern s8 D_801657B8;
|
|
extern s8 D_801657B9;
|
|
static s8 D_800E5655[0x15] = { 0x2B, 0x24, 0x2D, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0x2C, 0x36, 0x3C, 0x2F, 0x3D, 0x28, 0x30, 0x0A, };
|
|
|
|
void debug_print_number(s32 *arg0, s32 *arg1, s32 arg2, u32 arg3) {
|
|
s32 var_v0;
|
|
s8 *var_s0;
|
|
s8 var_a2;
|
|
u32 temp_t6;
|
|
|
|
func_80057454(arg0, arg1);
|
|
var_v0 = arg2;
|
|
if (arg2 < 0) {
|
|
func_800573E4(*arg0, *arg1, *D_800E5655);
|
|
func_80057454(arg0, arg1);
|
|
var_v0 = -arg2;
|
|
}
|
|
D_801657B8 = -1;
|
|
var_s0 = &D_801657B8;
|
|
if (var_v0 != 0) {
|
|
if (var_v0 != 0) {
|
|
do {
|
|
temp_t6 = (u32) var_v0 % arg3;
|
|
var_v0 = (s32) ((u32) var_v0 / arg3);
|
|
var_s0->unk1 = (s8) temp_t6;
|
|
var_s0 += 1;
|
|
} while (var_v0 != 0);
|
|
}
|
|
} else {
|
|
var_s0 = &D_801657B9;
|
|
D_801657B9 = 0;
|
|
}
|
|
var_a2 = *var_s0;
|
|
do {
|
|
var_s0 -= 1;
|
|
func_800573E4(*arg0, *arg1, var_a2);
|
|
func_80057454(arg0, arg1);
|
|
var_a2 = *var_s0;
|
|
} while (var_a2 != -1);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/debug_print_number.s")
|
|
#endif
|
|
|
|
#ifdef MIPS_TO_C
|
|
//generated by m2c commit b7eac665cffd02361f73cec283ef16d0a35a0e5b
|
|
extern s8 D_801657B8;
|
|
extern s8 D_801657B9;
|
|
|
|
void func_8005762C(s32 *arg0, s32 *arg1, u32 arg2, u32 arg3) {
|
|
s8 *var_s0;
|
|
s8 var_a2;
|
|
u32 temp_t6;
|
|
u32 var_v0;
|
|
|
|
func_80057454(arg0, arg1);
|
|
D_801657B8 = -1;
|
|
var_s0 = &D_801657B8;
|
|
var_v0 = arg2;
|
|
if (arg2 != 0) {
|
|
if (arg2 != 0) {
|
|
do {
|
|
temp_t6 = var_v0 % arg3;
|
|
var_v0 = var_v0 / arg3;
|
|
var_s0->unk1 = (s8) temp_t6;
|
|
var_s0 += 1;
|
|
} while (var_v0 != 0);
|
|
}
|
|
} else {
|
|
var_s0 = &D_801657B9;
|
|
D_801657B9 = 0;
|
|
}
|
|
var_a2 = *var_s0;
|
|
do {
|
|
var_s0 -= 1;
|
|
func_800573E4(*arg0, *arg1, var_a2);
|
|
func_80057454(arg0, arg1);
|
|
var_a2 = *var_s0;
|
|
} while (var_a2 != -1);
|
|
}
|
|
#else
|
|
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8005762C.s")
|
|
#endif
|
|
|
|
UNUSED void func_80057708() {
|
|
|
|
}
|
|
|
|
void load_debug_font(void) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D008108);
|
|
gSPDisplayList(gDisplayListHead++, D_0D008080);
|
|
gDPSetAlphaCompare(gDisplayListHead++, G_AC_THRESHOLD);
|
|
}
|
|
|
|
void func_80057778(void) {
|
|
gSPDisplayList(gDisplayListHead++, D_0D007EB8);
|
|
}
|
|
|
|
void debug_print_str2(s32 arg0, s32 arg1, s8 *arg2) {
|
|
debug_print_string(&arg0, &arg1, arg2);
|
|
}
|
|
|
|
void print_str_num(s32 arg0, s32 arg1, s8 *arg2, s32 arg3) {
|
|
debug_print_string(&arg0, &arg1, arg2);
|
|
debug_print_number(&arg0, &arg1, arg3, 10);
|
|
}
|
|
|
|
UNUSED void func_80057814(s32 arg0, s32 arg1, s8 *arg2, s32 arg3) {
|
|
debug_print_string(&arg0, &arg1, arg2);
|
|
func_8005762C(&arg0, &arg1, arg3, 10);
|
|
}
|
|
|
|
UNUSED void func_80057858(s32 arg0, s32 arg1, s8 *arg2, s32 arg3) {
|
|
debug_print_string(&arg0, &arg1, arg2);
|
|
debug_print_number(&arg0, &arg1, arg3, 16);
|
|
func_800573E4(arg0, arg1, D_800E5670[0]);
|
|
}
|
|
|
|
UNUSED void func_800578B0(s32 arg0, s32 arg1, s8 *arg2, s32 arg3) {
|
|
debug_print_string(&arg0, &arg1, arg2);
|
|
func_8005762C(&arg0, &arg1, arg3, 16);
|
|
func_800573E4(arg0, arg1, D_800E5670[0]);
|
|
}
|
|
|
|
UNUSED void func_80057908(s32 arg0, s32 arg1, s8 *arg2, s32 arg3) {
|
|
debug_print_string(&arg0, &arg1, arg2);
|
|
debug_print_number(&arg0, &arg1, arg3, 2);
|
|
func_800573E4(arg0, arg1, D_800E566A[0]);
|
|
}
|
|
|
|
UNUSED void func_80057960(s32 arg0, s32 arg1, s8 *arg2, s32 arg3) {
|
|
debug_print_string(&arg0, &arg1, arg2);
|
|
func_8005762C(&arg0, &arg1, arg3, 2);
|
|
func_800573E4(arg0, arg1, D_800E566A[0]);
|
|
}
|
|
|
|
UNUSED void func_800579B8(s32 arg0, s32 arg1, s8 *arg2) {
|
|
load_debug_font();
|
|
debug_print_string(&arg0, &arg1, arg2);
|
|
func_80057778();
|
|
}
|
|
|
|
void func_800579F8(s32 arg0, s32 arg1, s8 *arg2, s32 arg3) {
|
|
load_debug_font();
|
|
debug_print_string(&arg0, &arg1, arg2);
|
|
debug_print_number(&arg0, &arg1, arg3, 10);
|
|
func_80057778();
|
|
}
|
|
|
|
void func_80057A50(s32 arg0, s32 arg1, s8 *arg2, s32 arg3) {
|
|
load_debug_font();
|
|
debug_print_string(&arg0, &arg1, arg2);
|
|
func_8005762C(&arg0, &arg1, arg3, 10);
|
|
func_80057778();
|
|
}
|
|
|
|
UNUSED void func_80057AA8(s32 arg0, s32 arg1, s8 *arg2, s32 arg3) {
|
|
load_debug_font();
|
|
debug_print_string(&arg0, &arg1, arg2);
|
|
debug_print_number(&arg0, &arg1, arg3, 16);
|
|
func_800573E4(arg0, arg1, D_800E5670[0]);
|
|
func_80057778();
|
|
}
|
|
|
|
UNUSED void func_80057B14(s32 arg0, s32 arg1, s8 *arg2, s32 arg3) {
|
|
load_debug_font();
|
|
debug_print_string(&arg0, &arg1, arg2);
|
|
func_8005762C(&arg0, &arg1, arg3, 16);
|
|
func_800573E4(arg0, arg1, D_800E5670[0]);
|
|
func_80057778();
|
|
}
|
|
|
|
UNUSED void func_80057B80(s32 arg0, s32 arg1, s8 *arg2, s32 arg3) {
|
|
load_debug_font();
|
|
debug_print_string(&arg0, &arg1, arg2);
|
|
debug_print_number(&arg0, &arg1, arg3, 2);
|
|
func_800573E4(arg0, arg1, D_800E566A[0]);
|
|
func_80057778();
|
|
}
|
|
|
|
UNUSED void func_80057BEC(s32 arg0, s32 arg1, s8 *arg2, s32 arg3) {
|
|
load_debug_font();
|
|
debug_print_string(&arg0, &arg1, arg2);
|
|
func_8005762C(&arg0, &arg1, arg3, 2);
|
|
func_800573E4(arg0, arg1, D_800E566A[0]);
|
|
func_80057778();
|
|
}
|