matched several world functions (#794)

* matched 11 functions

* fix warning
This commit is contained in:
Unnunu 2022-10-01 14:34:49 +03:00 committed by GitHub
parent 7b24d78503
commit 036115e97d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 639 additions and 3608 deletions

View File

@ -12,6 +12,7 @@
#include "sprite/npc/Toad.h"
#include "sprite/npc/WorldMerlee.h"
#include "sprite/npc/WorldParakarry.h"
#include "sprite.h"
#define CHUCK_QUIZMO_NPC_ID 10
@ -41,7 +42,7 @@ typedef struct {
f32 unk_08;
f32 unk_0C;
f32 unk_10;
s32 unk_14;
f32 unk_14;
s32 unk_18;
s32 unk_1C;
s32 unk_20;
@ -2506,8 +2507,89 @@ ApiStatus N(func_80241874_96AA34)(Evt* script, s32 isInitialCall) {
return ApiStatus_DONE2;
}
u32 N(func_8024190C_96AACC)(D_8024F010_Struct*, Matrix4f);
INCLUDE_ASM(u32, "world/area_dro/dro_02/9694C0", dro_02_func_8024190C_96AACC, D_8024F010_Struct* ptr, Matrix4f matrix);
u32 N(func_8024190C_96AACC)(D_8024F010_Struct* arg0, Matrix4f matrix) {
Matrix4f sp18;
Matrix4f sp58;
FoldImageRecPart foldImage;
SpriteRasterInfo rasterInfo;
s32 ret;
if (arg0->unk_00 == 0) {
return 1;
}
gSPDisplayList(gMasterGfxPos++, N(D_802478C8_970A88));
if (arg0->unk_00 == 1 || arg0->unk_00 == 4 || arg0->unk_00 == 5) {
guTranslateF(sp58, arg0->unk_04, arg0->unk_08, arg0->unk_0C);
guMtxCatF(sp58, matrix, sp18);
guRotateF(sp58, arg0->unk_10, 0.0f, 1.0f, 0.0f);
guMtxCatF(sp58, sp18, sp18);
guRotateF(sp58, arg0->unk_14, 1.0f, 0.0f, 0.0f);
guMtxCatF(sp58, sp18, sp18);
guMtxF2L(sp18, &gDisplayContext->matrixStack[gMatrixListPos]);
gSPMatrix(gMasterGfxPos++, VIRTUAL_TO_PHYSICAL(&gDisplayContext->matrixStack[gMatrixListPos++]), G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
if (arg0->unk_00 == 1 || arg0->unk_00 == 4) {
gSPDisplayList(gMasterGfxPos++, N(D_802479B8_970B78));
}
if (arg0->unk_00 == 1 || arg0->unk_00 == 5) {
spr_get_player_raster_info(&rasterInfo, arg0->unk_18, arg0->unk_1C);
gDPSetTextureLUT(gMasterGfxPos++, G_TT_RGBA16);
gDPLoadTLUT_pal16(gMasterGfxPos++, 0, rasterInfo.defaultPal);
gDPLoadTextureTile_4b(gMasterGfxPos++, rasterInfo.raster, G_IM_FMT_CI, rasterInfo.width, rasterInfo.height,
0, 0, rasterInfo.width - 1, rasterInfo.height - 1, 0,
G_TX_CLAMP, G_TX_CLAMP, 8, 8, G_TX_NOLOD, G_TX_NOLOD);
guTranslateF(sp18, arg0->unk_20 + 30 - rasterInfo.width / 2, 0.0f, 0.0f);
guMtxF2L(sp18, &gDisplayContext->matrixStack[gMatrixListPos]);
gSPMatrix(gMasterGfxPos++, VIRTUAL_TO_PHYSICAL(&gDisplayContext->matrixStack[gMatrixListPos++]), G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW);
gSPDisplayList(gMasterGfxPos++, N(D_80247A38_970BF8));
gSPPopMatrix(gMasterGfxPos++, G_MTX_MODELVIEW);
}
gSPPopMatrix(gMasterGfxPos++, G_MTX_MODELVIEW);
return 1;
}
if (arg0->unk_00 == 2) {
gDPSetTileSize(gMasterGfxPos++, G_TX_RENDERTILE, 256 * 4, 256 * 4, 287 * 4, 287 * 4);
guTranslateF(sp58, N(D_8024F010)[0].unk_04, N(D_8024F010)[0].unk_08, N(D_8024F010)[0].unk_0C);
guMtxCatF(sp58, matrix, sp18);
guMtxF2L(sp18, &gDisplayContext->matrixStack[gMatrixListPos]);
gSPMatrix(gMasterGfxPos++, VIRTUAL_TO_PHYSICAL(&gDisplayContext->matrixStack[gMatrixListPos++]), G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
ret = fold_appendGfx_component(evt_get_variable(N(D_8024EFCC), ArrayVar(0)), &foldImage, FOLD_STATE_FLAG_10 | FOLD_STATE_FLAG_20, sp18);
gSPPopMatrix(gMasterGfxPos++, G_MTX_MODELVIEW);
return ret;
}
if (arg0->unk_00 == 3) {
gDPSetTileSize(gMasterGfxPos++, G_TX_RENDERTILE, 256 * 4, 256 * 4, 287 * 4, 287 * 4);
guTranslateF(sp58, N(D_8024F010)[0].unk_04, N(D_8024F010)[0].unk_08, N(D_8024F010)[0].unk_0C);
guMtxCatF(sp58, matrix, sp18);
guMtxF2L(sp18, &gDisplayContext->matrixStack[gMatrixListPos]);
gSPMatrix(gMasterGfxPos++, VIRTUAL_TO_PHYSICAL(&gDisplayContext->matrixStack[gMatrixListPos++]), G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
fold_appendGfx_component(evt_get_variable(N(D_8024EFCC), ArrayVar(1)), &foldImage, FOLD_STATE_FLAG_10 | FOLD_STATE_FLAG_20, sp18);
fold_appendGfx_component(evt_get_variable(N(D_8024EFCC), ArrayVar(2)), &foldImage, FOLD_STATE_FLAG_10 | FOLD_STATE_FLAG_20, sp18);
gSPPopMatrix(gMasterGfxPos++, G_MTX_MODELVIEW);
guTranslateF(sp58, N(D_8024F010)[0].unk_04, N(D_8024F010)[0].unk_08, N(D_8024F010)[0].unk_0C);
guMtxCatF(sp58, matrix, sp18);
guMtxF2L(sp18, &gDisplayContext->matrixStack[gMatrixListPos]);
gSPMatrix(gMasterGfxPos++, VIRTUAL_TO_PHYSICAL(&gDisplayContext->matrixStack[gMatrixListPos++]), G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
spr_get_player_raster_info(&rasterInfo, arg0->unk_18, arg0->unk_1C);
foldImage.raster = rasterInfo.raster;
foldImage.palette = rasterInfo.defaultPal;
foldImage.width = rasterInfo.width;
foldImage.height = rasterInfo.height;
foldImage.xOffset = -(rasterInfo.width / 2);
foldImage.yOffset = rasterInfo.height / 2;
foldImage.opacity = 255;
ret = fold_appendGfx_component(evt_get_variable(N(D_8024EFCC), ArrayVar(3)), &foldImage, FOLD_STATE_FLAG_10, sp18);
gSPPopMatrix(gMasterGfxPos++, G_MTX_MODELVIEW);
return ret;
}
return 1;
}
void N(func_80242214_96B3D4)(s32 arg0, f32* arg1, f32* arg2, f32* arg3, f32* arg4) {
D_8024F010_Struct* F010_ptr;

View File

@ -1,5 +1,7 @@
#include "hos_05.h"
extern Gfx D_8024AA28_A34C68[];
void set_model_fog_color_parameters(u8 var2, u8 var3, u8 var4, u8 var5, u8 var6, u8 var7, u8 var8, s32 var9, s32 var10);
void set_model_env_color_parameters(u8 primR, u8 primG, u8 primB, u8 envR, u8 envG, u8 envB);
void get_model_env_color_parameters(u8* primR, u8* primG, u8* primB, u8* envR, u8* envG, u8* envB);
@ -40,7 +42,7 @@ ApiStatus func_802409C4_A2AC04(Evt* script, s32 isInitialCall) {
duration = evt_get_variable(script, *args++);
time = 0;
}
if (duration > 0) {
if(time >= duration) {
return ApiStatus_DONE2;
@ -144,11 +146,74 @@ INCLUDE_ASM(s32, "world/area_hos/hos_05/A2AAC0", func_8024301C_A2D25C);
INCLUDE_ASM(s32, "world/area_hos/hos_05/A2AAC0", func_80243100_A2D340);
INCLUDE_ASM(s32, "world/area_hos/hos_05/A2AAC0", func_80243164_A2D3A4);
void func_80243164_A2D3A4(s32 baseX, s32 baseY, IMG_PTR img, PAL_PTR pal, s32 alpha, s32 width, s32 height, s32 lineHeight) {
u8 overlayType;
f32 overlayZoomBack;
f32 overlayZoomFront;
s32 i;
if (alpha == 0) {
return;
}
gDPPipeSync(gMasterGfxPos++);
gSPDisplayList(gMasterGfxPos++, D_8024AA28_A34C68);
if (pal != NULL) {
gDPLoadTLUT_pal256(gMasterGfxPos++, pal);
} else {
gDPSetTextureLUT(gMasterGfxPos++, G_TT_NONE);
}
get_screen_overlay_params(1, &overlayType, &overlayZoomBack);
get_screen_overlay_params(0, &overlayType, &overlayZoomFront);
alpha = alpha * (255.0f - overlayZoomBack) * (255.0f - overlayZoomFront) / 255.0f / 255.0f;
if (alpha != 255) {
gDPSetCombineLERP(gMasterGfxPos++, 0, 0, 0, TEXEL0, PRIMITIVE, 0, TEXEL0, 0, 0, 0, 0, TEXEL0, PRIMITIVE, 0, TEXEL0, 0);
gDPSetPrimColor(gMasterGfxPos++, 0, 0, 0, 0, 0, alpha);
} else {
gDPSetCombineMode(gMasterGfxPos++, G_CC_DECALRGBA, G_CC_DECALRGBA);
}
gDPSetScissor(gMasterGfxPos++, G_SC_NON_INTERLACE, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
gDPSetRenderMode(gMasterGfxPos++, G_RM_CLD_SURF, G_RM_CLD_SURF2);
for (i = 0; i < height / lineHeight; i++) {
gDPLoadTextureTile(gMasterGfxPos++, img, pal != NULL ? G_IM_FMT_CI : G_IM_FMT_IA, G_IM_SIZ_8b, width, height,
0, i * lineHeight, width - 1, i * lineHeight + lineHeight - 1, 0,
G_TX_WRAP, G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
gSPScisTextureRectangle(gMasterGfxPos++, baseX * 4, (baseY + i * lineHeight) * 4, (baseX + width) * 4, (baseY + i * lineHeight + lineHeight) * 4,
G_TX_RENDERTILE, 0, (i * lineHeight) * 32, 1024, 1024);
}
gDPPipeSync(gMasterGfxPos++);
}
INCLUDE_ASM(s32, "world/area_hos/hos_05/A2AAC0", func_8024370C_A2D94C);
INCLUDE_ASM(s32, "world/area_hos/hos_05/A2AAC0", func_80243758_A2D998);
void func_80243758_A2D998(s32 baseX, s32 baseY, IMG_PTR img, PAL_PTR pal) {
s32 i;
s32 m = 1;
gDPPipeSync(gMasterGfxPos++);
gDPLoadTLUT_pal256(gMasterGfxPos++, pal);
for (i = 0; i < 23; i++) {
gDPLoadTextureTile(gMasterGfxPos++, img, G_IM_FMT_CI, G_IM_SIZ_8b, 264, 162,
0, i * 7, 263, i * 7 + 7 - 1, 0,
G_TX_WRAP, G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
gSPScisTextureRectangle(gMasterGfxPos++, baseX * 4, (baseY + i * 7) * 4, (baseX + 264) * 4, (baseY + i * 7 + 7) * 4,
G_TX_RENDERTILE, 0, (i * 7) << 5, 1024, 1024);
}
if (m != 0) {
gDPLoadTextureTile(gMasterGfxPos++, img, G_IM_FMT_CI, G_IM_SIZ_8b, 264, 0,
0, i * 7, 263, i * 7 + m - 1, 0,
G_TX_WRAP, G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
gSPScisTextureRectangle(gMasterGfxPos++, baseX * 4, (baseY + i * 7) * 4, (baseX + 264) * 4, (baseY + i * 7 + m) * 4,
G_TX_RENDERTILE, 0, (i * 7) << 5, 1024, 1024);
}
gDPPipeSync(gMasterGfxPos++);
}
INCLUDE_ASM(s32, "world/area_hos/hos_05/A2AAC0", func_80243CC0_A2DF00);

View File

@ -1,6 +1,80 @@
#include "kgr_02.h"
#include "nu/nusys.h"
extern s32 N(D_80240970_8AADC0);
INCLUDE_ASM(s32, "world/area_kgr/kgr_02/8AA5B0", func_80240160_8AA5B0);
void func_80240160_8AA5B0(s32 x1, s32 y1, s32 x2, s32 y2, s32 arg4) {
s32 i;
f32 f0;
s32 n, m;
u16* img;
N(D_80240970_8AADC0) += 5;
if (x1 >= x2 || y1 >= y2) {
return;
}
if (x1 < 0) {
x1 = 0;
}
if (y1 < 0) {
y1 = 0;
}
if (x2 < 0) {
x2 = 0;
}
if (y2 < 0) {
y2 = 0;
}
if (x1 >= SCREEN_WIDTH) {
x1 = SCREEN_WIDTH - 1;
}
if (y1 >= SCREEN_HEIGHT) {
y1 = SCREEN_HEIGHT - 1;
}
if (x2 >= SCREEN_WIDTH) {
x2 = SCREEN_WIDTH - 1;
}
if (y2 >= SCREEN_HEIGHT) {
y2 = SCREEN_HEIGHT - 1;
}
if (x1 == x2 || y1 == y2) {
return;
}
x1 = x1 / 4 * 4;
x2 = x2 / 4 * 4 + 4;
gDPSetPrimColor(gMasterGfxPos++, 0, 0, 255, 255, 255, 255);
n = (y2 - y1) / 6;
m = (y2 - y1) % 6;
img = nuGfxCfb_ptr;
for (i = 0; i < n; i++) {
gDPLoadTextureTile(gMasterGfxPos++, osVirtualToPhysical(img), G_IM_FMT_RGBA, G_IM_SIZ_16b,
SCREEN_WIDTH, 6,
x1, y1 + 6 * i, x2 - 1, y1 + 6 * i + 5, 0,
G_TX_WRAP, G_TX_WRAP, 9, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
f0 = sin_deg(N(D_80240970_8AADC0) + i * 30);
gDPSetTileSize(gMasterGfxPos++, G_TX_RENDERTILE, (x1 + 512) * 4 + arg4 * (s32)(f0 * 4),
(y1 + i * 6) * 4,
(x1 + 512) * 4 + arg4 * (s32)(f0 * 4) + 512 * 4,
(y1 + i * 6) * 4 + 5 * 4);
gSPTextureRectangle(gMasterGfxPos++, x1 * 4, (y1 + i * 6) * 4, x2 * 4, (y1 + i * 6 + 6) * 4,
G_TX_RENDERTILE, x1 * 32, (y1 + i * 6) * 32, 1024, 1024);
}
if (m != 0) {
gDPLoadTextureTile(gMasterGfxPos++, osVirtualToPhysical(img), G_IM_FMT_RGBA, G_IM_SIZ_16b,
SCREEN_WIDTH, m,
x1, y1 + i * 6, x2 - 1, y1 + i * 6 + m - 1, 0,
G_TX_WRAP, G_TX_WRAP, 9, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
gSPTextureRectangle(gMasterGfxPos++, x1 * 4, (y1 + i * 6) * 4, x2 * 4, (y1 + i * 6 + m) * 4,
G_TX_RENDERTILE, x1 * 32, (y1 + i * 6) * 32, 1024, 1024);
}
}

View File

@ -1,6 +1,28 @@
#include "kmr_21.h"
INCLUDE_ASM(s32, "world/area_kmr/kmr_21/8FEE90", func_80240010_8FEE90);
extern u8 D_80240333_8FF1B3;
extern s32 D_80240334_8FF1B4;
extern Gfx D_80240338_8FF1B8[];
// BSS
extern IMG_PTR kmr_21_802407F4;
void func_80240010_8FEE90(void) {
s32 i;
gSPDisplayList(gMasterGfxPos++, D_80240338_8FF1B8);
gDPSetPrimColor(gMasterGfxPos++, 0, 0, 0, 0, 0, D_80240333_8FF1B3);
gDPPipeSync(gMasterGfxPos++);
for (i = 0; i < 56; i++) {
gDPLoadTextureTile(gMasterGfxPos++, &kmr_21_802407F4[1600 * i], G_IM_FMT_RGBA, G_IM_SIZ_32b, 200, 112,
0, 0, 199, 1, 0,
G_TX_WRAP, G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
gSPTextureRectangle(gMasterGfxPos++, 60 * 4, (i * 2 + D_80240334_8FF1B4) * 4, 260 * 4, ((i * 2 + 2) + D_80240334_8FF1B4) * 4,
G_TX_RENDERTILE, 0, 0, 1024, 1024);
}
gDPPipeSync(gMasterGfxPos++);
}
INCLUDE_ASM(s32, "world/area_kmr/kmr_21/8FEE90", func_80240210_8FF090);

View File

@ -1,4 +1,7 @@
#include "mac_01.h"
#include "mapfs/mac_01_shape.h"
#include "model.h"
#include "nu/nusys.h"
extern s32 D_80248420_808CA0;
@ -28,4 +31,94 @@ void func_802405E8_800E68(void) {
gSPEndDisplayList(gMasterGfxPos++);
}
INCLUDE_ASM(s32, "world/area_mac/mac_01/800C40", func_80240628_800EA8);
void func_80240628_800EA8(void) {
f32 x, y, z, s;
f32 f20, f22;
f32 f0, f2;
s32 ulx, uly;
Camera* camera = &gCameras[gCurrentCameraID];
Model* model = get_model_from_list_index(get_model_list_index_from_tree_index(MODEL_tama));
transform_point(camera->perspectiveMatrix, model->center.x, model->center.y, model->center.z, 1.0f, &x, &y, &z, &s);
s = 1.0f / s;
x *= s;
y *= -s;
z = (z * s + 1.0f) * 0.5;
if (!(z > 0.0f)) {
return;
}
f20 = (x * camera->viewportW + camera->viewportW) * 0.5f;
f22 = (y * camera->viewportH + camera->viewportH) * 0.5f;
f0 = f20;
f2 = f22;
if (f20 < 0.0f) {
f20 = 0.0f;
}
if (f0 < 4.0f) {
f0 = 4.0f;
}
if (f22 < 0.0f) {
f22 = 0.0f;
}
if (f2 < 4.0f) {
f2 = 4.0f;
}
if (f20 >= camera->viewportW - 4) {
f20 = camera->viewportW - 5;
}
if (f0 >= camera->viewportW - 4) {
f0 = camera->viewportW - 5;
}
if (f22 >= camera->viewportH - 4) {
f22 = camera->viewportH - 5;
}
if (f2 >= camera->viewportH - 4) {
f2 = camera->viewportH - 5;
}
f20 += camera->viewportStartX;
f22 += camera->viewportStartY;
gDPSetCycleType(gMasterGfxPos++, G_CYC_1CYCLE);
gDPSetRenderMode(gMasterGfxPos++, Z_CMP | CVG_DST_CLAMP | ZMODE_OPA | FORCE_BL | G_RM_PASS, Z_CMP | CVG_DST_CLAMP | ZMODE_OPA | FORCE_BL | GBL_c2(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1));
gDPSetColorImage(gMasterGfxPos++, G_IM_FMT_RGBA, G_IM_SIZ_16b, SCREEN_WIDTH, osVirtualToPhysical(nuGfxZBuffer));
gDPSetCombineLERP(gMasterGfxPos++, 0, 0, 0, PRIMITIVE, 0, 0, 0, 0, 0, 0, 0, PRIMITIVE, 0, 0, 0, 0);
gDPSetPrimColor(gMasterGfxPos++, 0, 0, 248, 240, 240, 0);
gDPPipeSync(gMasterGfxPos++);
gSPDisplayList(gMasterGfxPos++, model->modelNode->displayData->displayList);
gDPPipeSync(gMasterGfxPos++);
gDPSetColorImage(gMasterGfxPos++, G_IM_FMT_RGBA, G_IM_SIZ_16b, SCREEN_WIDTH, osVirtualToPhysical(nuGfxCfb_ptr));
gDPSetDepthSource(gMasterGfxPos++, G_ZS_PRIM);
gDPSetPrimDepth(gMasterGfxPos++, 32734, 0);
gDPSetRenderMode(gMasterGfxPos++, G_RM_ZB_OPA_DECAL, G_RM_ZB_OPA_DECAL2);
gDPSetTextureFilter(gMasterGfxPos++, G_TF_POINT);
gDPSetTexturePersp(gMasterGfxPos++, G_TP_NONE);
gSPTexture(gMasterGfxPos++, 0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON);
gDPSetTextureLUT(gMasterGfxPos++, G_TT_NONE);
gDPSetTextureDetail(gMasterGfxPos++, G_TD_CLAMP);
gDPSetTextureLOD(gMasterGfxPos++, G_TL_TILE);
gDPPipeSync(gMasterGfxPos++);
ulx = f20 / 32.0f * 32.0f - 8.0f;
uly = f22 / 32.0f * 32.0f - 8.0f;
if (ulx >= 0 && uly >= 0 && ulx + 40 < SCREEN_WIDTH && uly + 40 < SCREEN_HEIGHT) {
gDPLoadTextureTile(gMasterGfxPos++, osVirtualToPhysical(nuGfxCfb_ptr), G_IM_FMT_RGBA, G_IM_SIZ_16b,
SCREEN_WIDTH, SCREEN_HEIGHT, ulx, uly, ulx + 31, uly + 31, 0,
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD);
gDPSetCombineLERP(gMasterGfxPos++, 0, 0, 0, TEXEL0, 0, 0, 0, 0, 0, 0, 0, TEXEL0, 0, 0, 0, 0);
gSPScisTextureRectangle(gMasterGfxPos++, (ulx - 8) * 4, (uly - 8) * 4, (ulx + 24) * 4, (uly + 24) * 4,
G_TX_RENDERTILE, (ulx & 0x1F) << 5, (uly & 0x1F) << 5, 700, 700);
}
gDPPipeSync(gMasterGfxPos++);
gDPSetDepthSource(gMasterGfxPos++, G_ZS_PIXEL);
gDPSetRenderMode(gMasterGfxPos++, G_RM_AA_ZB_XLU_SURF, G_RM_AA_ZB_XLU_SURF2);
gDPSetCombineMode(gMasterGfxPos++, G_CC_SHADE, G_CC_SHADE);
gDPSetTexturePersp(gMasterGfxPos++, G_TP_PERSP);
gSPTexture(gMasterGfxPos++, 0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF);
}

View File

@ -1,5 +1,35 @@
#include "mac_05.h"
INCLUDE_ASM(s32, "world/area_mac/mac_05/855F20", func_80243DB0_855F20);
extern f32 D_80252744_8648B4;
INCLUDE_ASM(s32, "world/area_mac/mac_05/855F20", func_80243F0C_85607C);
INCLUDE_ASM(s32, "world/area_mac/mac_05/855F20", func_80243DB0_855F20);
void func_80243DB0_855F20(f32 arg0, f32 arg1, f32 arg2, f32* arg3, f32* arg4, f32* arg5);
void func_80243F0C_85607C(s32 index) {
Vtx* first;
Vtx* copied;
s32 numCopied;
s32 i;
f32 unk1, unk2, unk3;
mdl_get_copied_vertices(3, &first, &copied, &numCopied);
for (i = 0; i < numCopied; i++) {
u8* colors = copied[i].v.cn;
f32 temp = D_80252744_8648B4 + (f32)i / (f32)numCopied;
if (temp > 1.0) {
temp -= 1.0;
}
func_80243DB0_855F20(temp, 1.0f, 0.5f, &unk1, &unk2, &unk3);
colors[0] = unk1 * 255.0f;
colors[1] = unk2 * 255.0f;
colors[2] = unk3 * 255.0f;
}
gSPDisplayList(gMasterGfxPos++, mdl_get_copied_gfx(3));
D_80252744_8648B4 += 0.01;
if (D_80252744_8648B4 > 1.0) {
D_80252744_8648B4 -= 1.0f;
}
}

View File

@ -1,5 +1,43 @@
#include "mim_04.h"
INCLUDE_ASM(s32, "world/area_mim/mim_04/B9D9D0", func_80240070_B9D9D0);
extern s32 D_80241530_B9EE90;
extern s32 D_80241534_B9EE94;
extern s32 D_80241538_B9EE98;
void func_80240070_B9D9D0(s32 index) {
switch (D_80241530_B9EE90) {
case 1:
D_80241538_B9EE98 = 0;
D_80241530_B9EE90 = 2;
break;
case 2:
D_80241538_B9EE98 += 10;
if (D_80241538_B9EE98 >= 256) {
D_80241538_B9EE98 = 255;
D_80241534_B9EE94 = 20;
D_80241530_B9EE90 = 3;
}
break;
case 3:
D_80241534_B9EE94--;
if (D_80241534_B9EE94 < 0) {
D_80241534_B9EE94 = 0;
D_80241530_B9EE90 = 4;
}
break;
case 4:
D_80241538_B9EE98 -= 10;
if (D_80241538_B9EE98 < 0) {
D_80241538_B9EE98 = 0;
D_80241530_B9EE90 = 0;
}
break;
}
gDPSetCycleType(gMasterGfxPos++, G_CYC_2CYCLE);
gDPSetPrimColor(gMasterGfxPos++, 0, 0, 0, 0, 0, D_80241538_B9EE98);
gDPSetCombineLERP(gMasterGfxPos++, TEXEL0, 0, SHADE, 0, TEXEL0, 0, PRIMITIVE, 0, COMBINED, 0, PRIMITIVE_ALPHA, 0, 0, 0, 0, COMBINED);
gDPSetRenderMode(gMasterGfxPos++, G_RM_FOG_SHADE_A, G_RM_AA_ZB_XLU_DECAL2);
}
INCLUDE_ASM(s32, "world/area_mim/mim_04/B9D9D0", func_802401DC_B9DB3C);

View File

@ -1,7 +1,45 @@
#include "mim_07.h"
extern s32 D_80241680_BAB7C0;
extern s32 D_80241684_BAB7C4;
extern s32 D_80241688_BAB7C8;
#include "world/common/SetForeverForestFog.inc.c"
INCLUDE_ASM(s32, "world/area_mim/mim_07/BAA1B0", func_802400D8_BAA218);
void func_802400D8_BAA218(s32 index) {
switch (D_80241680_BAB7C0) {
case 1:
D_80241688_BAB7C8 = 0;
D_80241680_BAB7C0 = 2;
break;
case 2:
D_80241688_BAB7C8 += 10;
if (D_80241688_BAB7C8 >= 256) {
D_80241688_BAB7C8 = 255;
D_80241684_BAB7C4 = 50;
D_80241680_BAB7C0 = 3;
}
break;
case 3:
D_80241684_BAB7C4--;
if (D_80241684_BAB7C4 < 0) {
D_80241684_BAB7C4 = 0;
D_80241680_BAB7C0 = 4;
}
break;
case 4:
D_80241688_BAB7C8 -= 7;
if (D_80241688_BAB7C8 < 0) {
D_80241688_BAB7C8 = 0;
D_80241680_BAB7C0 = 0;
}
break;
}
gDPSetCycleType(gMasterGfxPos++, G_CYC_2CYCLE);
gDPSetPrimColor(gMasterGfxPos++, 0, 0, 0, 0, 0, D_80241688_BAB7C8);
gDPSetCombineLERP(gMasterGfxPos++, TEXEL0, 0, SHADE, 0, TEXEL0, 0, PRIMITIVE, 0, COMBINED, 0, PRIMITIVE_ALPHA, 0, 0, 0, 0, COMBINED);
gDPSetRenderMode(gMasterGfxPos++, G_RM_FOG_SHADE_A, G_RM_AA_ZB_XLU_DECAL2);
}
INCLUDE_ASM(s32, "world/area_mim/mim_07/BAA1B0", func_80240244_BAA384);

View File

@ -46,8 +46,8 @@ extern s32 D_8024143C_9EF02C;
extern s32 D_80243254_9F0E44;
extern EvtScript D_80241470_9EF060;
extern EvtScript D_8024161C_9EF20C;
extern s32 D_80241768_9EF358;
extern s32 D_80241748_9EF338;
extern Gfx D_80241768_9EF358[];
extern Vtx D_80241748_9EF338[];
/*
trees in this room are labeled with a 0 through 5 system, meaning there are "6" tree values
@ -68,7 +68,7 @@ ApiStatus func_80240314_9EDF04(Evt* script, s32 isInitialCall) {
s32 temp_s2 = evt_get_variable(script, *args++);
s32 temp_s0_3 = evt_get_variable(script, *args++);
f32 temp_f6 = evt_get_variable(script, *args++);
D_802413F8_9EEFE8.unk_00.x = temp_s2;
D_802413F8_9EEFE8.unk_00.y = temp_s0_3 + 4.0f;
D_802413F8_9EEFE8.unk_00.z = temp_f6;
@ -110,7 +110,7 @@ ApiStatus func_802403C0_9EDFB0(Evt* script, s32 isInitialCall) {
D_802413F8_9EEFE8.unk_20 = temp_f8;
D_802413F8_9EEFE8.unk_30 = temp_f10;
}
return ApiStatus_DONE2;
}
@ -191,7 +191,7 @@ ApiStatus func_802406C4_9EE2B4(Evt* script, s32 isInitialCall) {
}
phi_a0 = &D_80241470_9EF060;
switch (temp_s2) {
case 0:
phi_a0 = &D_80241470_9EF060;
@ -222,13 +222,84 @@ ApiStatus func_802406C4_9EE2B4(Evt* script, s32 isInitialCall) {
return ApiStatus_DONE2;
}
INCLUDE_ASM(s32, "world/area_nok/nok_04/9EDBF0", func_80240814_9EE404);
void func_80240814_9EE404(s32 index) {
f32 x = D_802413F8_9EEFE8.unk_00.x;
f32 y = D_802413F8_9EEFE8.unk_00.y;
f32 z = D_802413F8_9EEFE8.unk_00.z;
s32 i;
f32 angle, deltaY, fs3;
D_802413F8_9EEFE8.unk_14 += 0.2;
if (D_802413F8_9EEFE8.unk_30 != 0.0f) {
D_802413F8_9EEFE8.unk_10 += D_802413F8_9EEFE8.unk_38;
if (D_802413F8_9EEFE8.unk_0C < D_802413F8_9EEFE8.unk_10) {
D_802413F8_9EEFE8.unk_14 += (D_802413F8_9EEFE8.unk_0C - D_802413F8_9EEFE8.unk_10) * 0.5f;
}
D_802413F8_9EEFE8.unk_34 += 1.0f;
D_802413F8_9EEFE8.unk_1C = (D_802413F8_9EEFE8.unk_1C + (D_802413F8_9EEFE8.unk_18 - D_802413F8_9EEFE8.unk_20) / 10.0f) * 0.92;
D_802413F8_9EEFE8.unk_20 += D_802413F8_9EEFE8.unk_3C;
if (D_802413F8_9EEFE8.unk_30 <= D_802413F8_9EEFE8.unk_34) {
D_802413F8_9EEFE8.unk_30 = 0.0f;
}
} else {
D_802413F8_9EEFE8.unk_10 += D_802413F8_9EEFE8.unk_14;
if (D_802413F8_9EEFE8.unk_0C < D_802413F8_9EEFE8.unk_10) {
D_802413F8_9EEFE8.unk_14 += (D_802413F8_9EEFE8.unk_0C - D_802413F8_9EEFE8.unk_10) * 0.5f;
}
D_802413F8_9EEFE8.unk_1C = (D_802413F8_9EEFE8.unk_1C + (D_802413F8_9EEFE8.unk_18 - D_802413F8_9EEFE8.unk_20) / 10.0f) * 0.92;
D_802413F8_9EEFE8.unk_20 += D_802413F8_9EEFE8.unk_1C;
}
D_802413F8_9EEFE8.unk_14 *= 0.5;
gSPDisplayList(gMasterGfxPos++, D_80241768_9EF358);
guTranslate(&gDisplayContext->matrixStack[gMatrixListPos], D_802413F8_9EEFE8.unk_00.x, D_802413F8_9EEFE8.unk_00.y, D_802413F8_9EEFE8.unk_00.z);
gSPMatrix(gMasterGfxPos++, &gDisplayContext->matrixStack[gMatrixListPos++], G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
angle = D_802413F8_9EEFE8.unk_20;
deltaY = -D_802413F8_9EEFE8.unk_10;
x += -deltaY * sin_rad(D_802413F8_9EEFE8.unk_20 * 0 / 180.0f * PI);
y += deltaY * cos_rad(D_802413F8_9EEFE8.unk_20 * 0 / 180.0f * PI);
guPosition(&gDisplayContext->matrixStack[gMatrixListPos], 0.0f, 0.0f, angle, 1.0f, 0.0f, deltaY, 0.0f);
gSPMatrix(gMasterGfxPos++, &gDisplayContext->matrixStack[gMatrixListPos++], G_MTX_NOPUSH | G_MTX_MUL | G_MTX_MODELVIEW);
for (i = 1; i < 16; i++) {
angle = D_802413F8_9EEFE8.unk_20;
deltaY = -D_802413F8_9EEFE8.unk_10;
x += -deltaY * sin_rad(D_802413F8_9EEFE8.unk_20 * i / 180.0f * PI);
y += deltaY * cos_rad(D_802413F8_9EEFE8.unk_20 * i / 180.0f * PI);
gSPVertex(gMasterGfxPos++, D_80241748_9EF338, 2, 0);
guPosition(&gDisplayContext->matrixStack[gMatrixListPos], 0.0f, 0.0f, angle, 1.0f, 0.0f, deltaY, 0.0f);
gSPMatrix(gMasterGfxPos++, &gDisplayContext->matrixStack[gMatrixListPos++], G_MTX_NOPUSH | G_MTX_MUL | G_MTX_MODELVIEW);
gSPVertex(gMasterGfxPos++, D_80241748_9EF338, 2, 2);
gSP2Triangles(gMasterGfxPos++, 0, 2, 1, 0, 2, 3, 1, 0);
}
gSPPopMatrix(gMasterGfxPos++, G_MTX_MODELVIEW);
gDPPipeSync(gMasterGfxPos++);
D_802413F8_9EEFE8.unk_24 = x;
D_802413F8_9EEFE8.unk_28 = y;
D_802413F8_9EEFE8.unk_2C = z;
if (D_802413F8_9EEFE8.unk_40 != NULL) {
D_802413F8_9EEFE8.unk_40->unk_38 = x;
D_802413F8_9EEFE8.unk_40->unk_3C = y - 4.0f;
D_802413F8_9EEFE8.unk_40->unk_40 = z + 6.0f;
}
if (D_802413F8_9EEFE8.unk_44 != NULL) {
D_802413F8_9EEFE8.unk_44->unk_38 = x;
D_802413F8_9EEFE8.unk_44->unk_3C = y - 4.0f;
D_802413F8_9EEFE8.unk_44->unk_40 = z + 3.0f;
}
}
ApiStatus func_80240E4C_9EEA3C(Evt* script, s32 isInitialCall) {
if (isInitialCall) {
D_80243254_9F0E44 = FALSE;
}
if (D_80243254_9F0E44) {
return ApiStatus_DONE2;
} else {

View File

@ -2,8 +2,31 @@
#include "world/common/atomic/Reflection.inc.c"
void func_80240F20_D7DA70(Vtx* arg0, Vtx* arg1, Vtx* arg2, s32 arg3, s32 arg4);
INCLUDE_ASM(s32, "world/area_pra/pra_29/D7CB70", func_80240F20_D7DA70);
INCLUDE_ASM(s32, "world/area_pra/pra_29/D7CB70", func_802410B0_D7DC00);
void func_802410B0_D7DC00(s32 index) {
Vtx* first1;
Vtx* copied1;
s32 numVertices;
Vtx* first2;
Vtx* copied2;
s32 v0 = evt_get_variable(NULL, MapVar(0));
if (v0 < 256) {
mdl_get_copied_vertices(index * 3, &first1, &copied1, &numVertices);
mdl_get_copied_vertices(index * 3 + 1, &first2, &copied2, &numVertices);
func_80240F20_D7DA70(first2, first1, copied1, numVertices, v0);
if (v0 == 0) {
return;
}
gSPDisplayList(gMasterGfxPos++, mdl_get_copied_gfx(index * 3));
} else {
mdl_get_copied_vertices(index * 3, &first1, &copied1, &numVertices);
mdl_get_copied_vertices(index * 3 + 2, &first2, &copied2, &numVertices);
func_80240F20_D7DA70(first1, first2, copied1, numVertices, v0 - 256);
gSPDisplayList(gMasterGfxPos++, mdl_get_copied_gfx(index * 3));
}
}
INCLUDE_ASM(s32, "world/area_pra/pra_29/D7CB70", func_802411D4_D7DD24);

View File

@ -1,8 +1,84 @@
#include "trd_06.h"
#include "sprite.h"
extern s32 D_802451F0;
typedef struct Struct_trd_06_802451F0 {
/* 0x00 */ s32 unk_00;
/* 0x04 */ s32 unk_04;
/* 0x08 */ s32 unk_08;
/* 0x0C */ s32 unk_0C;
/* 0x10 */ s32 unk_10;
/* 0x14 */ f32 unk_14;
/* 0x18 */ f32 unk_18;
/* 0x1C */ f32 unk_1C;
/* 0x20 */ f32 unk_20;
/* 0x24 */ f32 unk_24;
/* 0x28 */ f32 unk_28;
/* 0x2C */ f32 unk_2C;
/* 0x30 */ f32 unk_30;
/* 0x34 */ f32 unk_34;
/* 0x38 */ f32 unk_38;
/* 0x3C */ f32 unk_3C;
} Struct_trd_06_802451F0; // size unknown
INCLUDE_ASM(s32, "world/area_trd/trd_06/9B1AA0", func_80240310_9B1AA0);
// BSS
extern Struct_trd_06_802451F0 trd_06_802451F0;
void func_80240310_9B1AA0(void) {
FoldImageRecPart foldImage;
SpriteRasterInfo rasterInfo;
Matrix4f mtx1;
Matrix4f mtx2;
Struct_trd_06_802451F0* unkStruct = &trd_06_802451F0;
gDPPipeSync(gMasterGfxPos++);
gDPSetCycleType(gMasterGfxPos++, G_CYC_1CYCLE);
gSPClearGeometryMode(gMasterGfxPos++, G_SHADE | G_CULL_BOTH | G_FOG | G_LIGHTING | G_TEXTURE_GEN | G_TEXTURE_GEN_LINEAR | G_LOD | G_SHADING_SMOOTH);
gSPSetGeometryMode(gMasterGfxPos++, G_ZBUFFER | G_SHADE | G_SHADING_SMOOTH);
gSPTexture(gMasterGfxPos++, 0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON);
gDPSetTextureLOD(gMasterGfxPos++, G_TL_TILE);
gDPSetTexturePersp(gMasterGfxPos++, G_TP_PERSP);
gDPSetTextureFilter(gMasterGfxPos++, G_TF_BILERP);
gDPSetColorDither(gMasterGfxPos++, G_CD_DISABLE);
gDPSetTextureDetail(gMasterGfxPos++, G_TD_CLAMP);
gDPSetTextureConvert(gMasterGfxPos++, G_TC_FILT);
gDPSetCombineKey(gMasterGfxPos++, G_CK_NONE);
gDPSetAlphaCompare(gMasterGfxPos++, G_AC_NONE);
guTranslateF(mtx1, unkStruct->unk_14, unkStruct->unk_18, unkStruct->unk_1C);
guRotateF(mtx2, unkStruct->unk_24, 0.0f, 1.0f, 0.0f);
guMtxCatF(mtx2, mtx1, mtx1);
guRotateF(mtx2, unkStruct->unk_28, 0.0f, 0.0f, 1.0f);
guMtxCatF(mtx2, mtx1, mtx1);
guRotateF(mtx2, unkStruct->unk_20, 1.0f, 0.0f, 0.0f);
guMtxCatF(mtx2, mtx1, mtx1);
guScaleF(mtx2, unkStruct->unk_2C, unkStruct->unk_30, unkStruct->unk_34);
guMtxCatF(mtx2, mtx1, mtx1);
guMtxF2L(mtx1, &gDisplayContext->matrixStack[gMatrixListPos]);
gSPMatrix(gMasterGfxPos++, VIRTUAL_TO_PHYSICAL(&gDisplayContext->matrixStack[gMatrixListPos++]), G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
if (unkStruct->unk_00 == 0) {
u32 v1;
unkStruct->unk_0C = 8;
v1 = gGameStatusPtr->frameCounter % 4;
if (v1 == 0) {
unkStruct->unk_10 = 37;
} else if (v1 <= 1) {
unkStruct->unk_10 = 38;
} else if (v1 <= 2) {
unkStruct->unk_10 = 39;
} else {
unkStruct->unk_10 = 36;
}
}
spr_get_player_raster_info(&rasterInfo, unkStruct->unk_0C, unkStruct->unk_10);
foldImage.raster = rasterInfo.raster;
foldImage.palette = rasterInfo.defaultPal;
unkStruct->unk_38 = foldImage.width = rasterInfo.width;
unkStruct->unk_3C = foldImage.height = rasterInfo.height;
foldImage.xOffset = -(rasterInfo.width / 2);
foldImage.yOffset = rasterInfo.height / 2;
foldImage.opacity = 255;
fold_appendGfx_component(unkStruct->unk_04, &foldImage, 0, mtx1);
gSPPopMatrix(gMasterGfxPos++, G_MTX_MODELVIEW);
}
INCLUDE_ASM(s32, "world/area_trd/trd_06/9B1AA0", func_80240724_9B1EB4);
@ -13,7 +89,7 @@ INCLUDE_ASM(s32, "world/area_trd/trd_06/9B1AA0", func_80240854_9B1FE4);
INCLUDE_ASM(s32, "world/area_trd/trd_06/9B1AA0", func_8024093C_9B20CC);
ApiStatus func_80240A5C_9B21EC(void) {
D_802451F0 = 1;
trd_06_802451F0.unk_00 = 1;
return ApiStatus_DONE2;
}

View File

@ -1,592 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel dro_02_func_8024190C_96AACC
/* 96AACC 8024190C 27BDFF00 */ addiu $sp, $sp, -0x100
/* 96AAD0 80241910 AFBF00EC */ sw $ra, 0xec($sp)
/* 96AAD4 80241914 AFBE00E8 */ sw $fp, 0xe8($sp)
/* 96AAD8 80241918 AFB700E4 */ sw $s7, 0xe4($sp)
/* 96AADC 8024191C AFB600E0 */ sw $s6, 0xe0($sp)
/* 96AAE0 80241920 AFB500DC */ sw $s5, 0xdc($sp)
/* 96AAE4 80241924 AFB400D8 */ sw $s4, 0xd8($sp)
/* 96AAE8 80241928 AFB300D4 */ sw $s3, 0xd4($sp)
/* 96AAEC 8024192C AFB200D0 */ sw $s2, 0xd0($sp)
/* 96AAF0 80241930 AFB100CC */ sw $s1, 0xcc($sp)
/* 96AAF4 80241934 AFB000C8 */ sw $s0, 0xc8($sp)
/* 96AAF8 80241938 F7B600F8 */ sdc1 $f22, 0xf8($sp)
/* 96AAFC 8024193C F7B400F0 */ sdc1 $f20, 0xf0($sp)
/* 96AB00 80241940 AFA40100 */ sw $a0, 0x100($sp)
/* 96AB04 80241944 AFA50104 */ sw $a1, 0x104($sp)
/* 96AB08 80241948 8C820000 */ lw $v0, ($a0)
/* 96AB0C 8024194C 10400184 */ beqz $v0, .L80241F60
/* 96AB10 80241950 3C02DE00 */ lui $v0, 0xde00
/* 96AB14 80241954 3C1E800A */ lui $fp, %hi(gMasterGfxPos)
/* 96AB18 80241958 27DEA66C */ addiu $fp, $fp, %lo(gMasterGfxPos)
/* 96AB1C 8024195C 8FC80000 */ lw $t0, ($fp)
/* 96AB20 80241960 0100182D */ daddu $v1, $t0, $zero
/* 96AB24 80241964 25080008 */ addiu $t0, $t0, 8
/* 96AB28 80241968 AFC80000 */ sw $t0, ($fp)
/* 96AB2C 8024196C AC620000 */ sw $v0, ($v1)
/* 96AB30 80241970 3C028024 */ lui $v0, %hi(dro_02_D_802478C8_970A88)
/* 96AB34 80241974 244278C8 */ addiu $v0, $v0, %lo(dro_02_D_802478C8_970A88)
/* 96AB38 80241978 AC620004 */ sw $v0, 4($v1)
/* 96AB3C 8024197C 8FAD0100 */ lw $t5, 0x100($sp)
/* 96AB40 80241980 8DA30000 */ lw $v1, ($t5)
/* 96AB44 80241984 24020001 */ addiu $v0, $zero, 1
/* 96AB48 80241988 10620006 */ beq $v1, $v0, .L802419A4
/* 96AB4C 8024198C 24020004 */ addiu $v0, $zero, 4
/* 96AB50 80241990 10620004 */ beq $v1, $v0, .L802419A4
/* 96AB54 80241994 24020005 */ addiu $v0, $zero, 5
/* 96AB58 80241998 14620126 */ bne $v1, $v0, .L80241E34
/* 96AB5C 8024199C 24020002 */ addiu $v0, $zero, 2
/* 96AB60 802419A0 8FAD0100 */ lw $t5, 0x100($sp)
.L802419A4:
/* 96AB64 802419A4 27B00058 */ addiu $s0, $sp, 0x58
/* 96AB68 802419A8 8DA50004 */ lw $a1, 4($t5)
/* 96AB6C 802419AC 8DA60008 */ lw $a2, 8($t5)
/* 96AB70 802419B0 8DA7000C */ lw $a3, 0xc($t5)
/* 96AB74 802419B4 0C019E40 */ jal guTranslateF
/* 96AB78 802419B8 0200202D */ daddu $a0, $s0, $zero
/* 96AB7C 802419BC 0200202D */ daddu $a0, $s0, $zero
/* 96AB80 802419C0 8FA50104 */ lw $a1, 0x104($sp)
/* 96AB84 802419C4 4480A000 */ mtc1 $zero, $f20
/* 96AB88 802419C8 0C019D80 */ jal guMtxCatF
/* 96AB8C 802419CC 27A60018 */ addiu $a2, $sp, 0x18
/* 96AB90 802419D0 8FAD0100 */ lw $t5, 0x100($sp)
/* 96AB94 802419D4 3C013F80 */ lui $at, 0x3f80
/* 96AB98 802419D8 4481B000 */ mtc1 $at, $f22
/* 96AB9C 802419DC 4406A000 */ mfc1 $a2, $f20
/* 96ABA0 802419E0 3C120001 */ lui $s2, 1
/* 96ABA4 802419E4 E7B40010 */ swc1 $f20, 0x10($sp)
/* 96ABA8 802419E8 8DA50010 */ lw $a1, 0x10($t5)
/* 96ABAC 802419EC 4407B000 */ mfc1 $a3, $f22
/* 96ABB0 802419F0 0C019EC8 */ jal guRotateF
/* 96ABB4 802419F4 0200202D */ daddu $a0, $s0, $zero
/* 96ABB8 802419F8 0200202D */ daddu $a0, $s0, $zero
/* 96ABBC 802419FC 27A50018 */ addiu $a1, $sp, 0x18
/* 96ABC0 80241A00 0C019D80 */ jal guMtxCatF
/* 96ABC4 80241A04 00A0302D */ daddu $a2, $a1, $zero
/* 96ABC8 80241A08 8FAD0100 */ lw $t5, 0x100($sp)
/* 96ABCC 80241A0C 4406B000 */ mfc1 $a2, $f22
/* 96ABD0 80241A10 4407A000 */ mfc1 $a3, $f20
/* 96ABD4 80241A14 36521630 */ ori $s2, $s2, 0x1630
/* 96ABD8 80241A18 E7B40010 */ swc1 $f20, 0x10($sp)
/* 96ABDC 80241A1C 8DA50014 */ lw $a1, 0x14($t5)
/* 96ABE0 80241A20 0C019EC8 */ jal guRotateF
/* 96ABE4 80241A24 0200202D */ daddu $a0, $s0, $zero
/* 96ABE8 80241A28 0200202D */ daddu $a0, $s0, $zero
/* 96ABEC 80241A2C 27A50018 */ addiu $a1, $sp, 0x18
/* 96ABF0 80241A30 0C019D80 */ jal guMtxCatF
/* 96ABF4 80241A34 00A0302D */ daddu $a2, $a1, $zero
/* 96ABF8 80241A38 27A40018 */ addiu $a0, $sp, 0x18
/* 96ABFC 80241A3C 3C108007 */ lui $s0, %hi(gMatrixListPos)
/* 96AC00 80241A40 261041F0 */ addiu $s0, $s0, %lo(gMatrixListPos)
/* 96AC04 80241A44 3C11800A */ lui $s1, %hi(gDisplayContext)
/* 96AC08 80241A48 2631A674 */ addiu $s1, $s1, %lo(gDisplayContext)
/* 96AC0C 80241A4C 96050000 */ lhu $a1, ($s0)
/* 96AC10 80241A50 8E220000 */ lw $v0, ($s1)
/* 96AC14 80241A54 00052980 */ sll $a1, $a1, 6
/* 96AC18 80241A58 00B22821 */ addu $a1, $a1, $s2
/* 96AC1C 80241A5C 0C019D40 */ jal guMtxF2L
/* 96AC20 80241A60 00452821 */ addu $a1, $v0, $a1
/* 96AC24 80241A64 3C03DA38 */ lui $v1, 0xda38
/* 96AC28 80241A68 3C06800A */ lui $a2, %hi(gMasterGfxPos)
/* 96AC2C 80241A6C 24C6A66C */ addiu $a2, $a2, %lo(gMasterGfxPos)
/* 96AC30 80241A70 34630002 */ ori $v1, $v1, 2
/* 96AC34 80241A74 8CC50000 */ lw $a1, ($a2)
/* 96AC38 80241A78 96020000 */ lhu $v0, ($s0)
/* 96AC3C 80241A7C 00A0202D */ daddu $a0, $a1, $zero
/* 96AC40 80241A80 24A50008 */ addiu $a1, $a1, 8
/* 96AC44 80241A84 ACC50000 */ sw $a1, ($a2)
/* 96AC48 80241A88 AC830000 */ sw $v1, ($a0)
/* 96AC4C 80241A8C 24430001 */ addiu $v1, $v0, 1
/* 96AC50 80241A90 3042FFFF */ andi $v0, $v0, 0xffff
/* 96AC54 80241A94 00021180 */ sll $v0, $v0, 6
/* 96AC58 80241A98 A6030000 */ sh $v1, ($s0)
/* 96AC5C 80241A9C 8E230000 */ lw $v1, ($s1)
/* 96AC60 80241AA0 00521021 */ addu $v0, $v0, $s2
/* 96AC64 80241AA4 00621821 */ addu $v1, $v1, $v0
/* 96AC68 80241AA8 3C028000 */ lui $v0, 0x8000
/* 96AC6C 80241AAC 00621821 */ addu $v1, $v1, $v0
/* 96AC70 80241AB0 AC830004 */ sw $v1, 4($a0)
/* 96AC74 80241AB4 8FAD0100 */ lw $t5, 0x100($sp)
/* 96AC78 80241AB8 8DA30000 */ lw $v1, ($t5)
/* 96AC7C 80241ABC 24020001 */ addiu $v0, $zero, 1
/* 96AC80 80241AC0 10620003 */ beq $v1, $v0, .L80241AD0
/* 96AC84 80241AC4 24020004 */ addiu $v0, $zero, 4
/* 96AC88 80241AC8 1462000B */ bne $v1, $v0, .L80241AF8
/* 96AC8C 80241ACC 24020001 */ addiu $v0, $zero, 1
.L80241AD0:
/* 96AC90 80241AD0 24A20008 */ addiu $v0, $a1, 8
/* 96AC94 80241AD4 ACC20000 */ sw $v0, ($a2)
/* 96AC98 80241AD8 3C02DE00 */ lui $v0, 0xde00
/* 96AC9C 80241ADC ACA20000 */ sw $v0, ($a1)
/* 96ACA0 80241AE0 3C028024 */ lui $v0, %hi(dro_02_D_802479B8_970B78)
/* 96ACA4 80241AE4 244279B8 */ addiu $v0, $v0, %lo(dro_02_D_802479B8_970B78)
/* 96ACA8 80241AE8 ACA20004 */ sw $v0, 4($a1)
/* 96ACAC 80241AEC 8FAD0100 */ lw $t5, 0x100($sp)
/* 96ACB0 80241AF0 8DA30000 */ lw $v1, ($t5)
/* 96ACB4 80241AF4 24020001 */ addiu $v0, $zero, 1
.L80241AF8:
/* 96ACB8 80241AF8 10620003 */ beq $v1, $v0, .L80241B08
/* 96ACBC 80241AFC 24020005 */ addiu $v0, $zero, 5
/* 96ACC0 80241B00 146200C0 */ bne $v1, $v0, .L80241E04
/* 96ACC4 80241B04 3C06D838 */ lui $a2, 0xd838
.L80241B08:
/* 96ACC8 80241B08 27A400B0 */ addiu $a0, $sp, 0xb0
/* 96ACCC 80241B0C 8FAD0100 */ lw $t5, 0x100($sp)
/* 96ACD0 80241B10 3C130001 */ lui $s3, 1
/* 96ACD4 80241B14 8DA50018 */ lw $a1, 0x18($t5)
/* 96ACD8 80241B18 8DA6001C */ lw $a2, 0x1c($t5)
/* 96ACDC 80241B1C 0C0B7811 */ jal spr_get_player_raster_info
/* 96ACE0 80241B20 36731630 */ ori $s3, $s3, 0x1630
/* 96ACE4 80241B24 3C02E300 */ lui $v0, 0xe300
/* 96ACE8 80241B28 34421001 */ ori $v0, $v0, 0x1001
/* 96ACEC 80241B2C 3C08F500 */ lui $t0, 0xf500
/* 96ACF0 80241B30 35080100 */ ori $t0, $t0, 0x100
/* 96ACF4 80241B34 3C090703 */ lui $t1, 0x703
/* 96ACF8 80241B38 3529C000 */ ori $t1, $t1, 0xc000
/* 96ACFC 80241B3C 3C0B070A */ lui $t3, 0x70a
/* 96AD00 80241B40 356B0280 */ ori $t3, $t3, 0x280
/* 96AD04 80241B44 3C0C000A */ lui $t4, 0xa
/* 96AD08 80241B48 358C0280 */ ori $t4, $t4, 0x280
/* 96AD0C 80241B4C 27A40018 */ addiu $a0, $sp, 0x18
/* 96AD10 80241B50 3C10800A */ lui $s0, %hi(gMasterGfxPos)
/* 96AD14 80241B54 2610A66C */ addiu $s0, $s0, %lo(gMasterGfxPos)
/* 96AD18 80241B58 3C0A0700 */ lui $t2, 0x700
/* 96AD1C 80241B5C 8E050000 */ lw $a1, ($s0)
/* 96AD20 80241B60 44800000 */ mtc1 $zero, $f0
/* 96AD24 80241B64 00A0182D */ daddu $v1, $a1, $zero
/* 96AD28 80241B68 44060000 */ mfc1 $a2, $f0
/* 96AD2C 80241B6C 24A50008 */ addiu $a1, $a1, 8
/* 96AD30 80241B70 AE050000 */ sw $a1, ($s0)
/* 96AD34 80241B74 AC620000 */ sw $v0, ($v1)
/* 96AD38 80241B78 34028000 */ ori $v0, $zero, 0x8000
/* 96AD3C 80241B7C AC620004 */ sw $v0, 4($v1)
/* 96AD40 80241B80 24A20008 */ addiu $v0, $a1, 8
/* 96AD44 80241B84 AE020000 */ sw $v0, ($s0)
/* 96AD48 80241B88 3C02FD10 */ lui $v0, 0xfd10
/* 96AD4C 80241B8C ACA20000 */ sw $v0, ($a1)
/* 96AD50 80241B90 24A20010 */ addiu $v0, $a1, 0x10
/* 96AD54 80241B94 AE020000 */ sw $v0, ($s0)
/* 96AD58 80241B98 8FA300B4 */ lw $v1, 0xb4($sp)
/* 96AD5C 80241B9C 3C02E800 */ lui $v0, 0xe800
/* 96AD60 80241BA0 ACA20008 */ sw $v0, 8($a1)
/* 96AD64 80241BA4 24A20018 */ addiu $v0, $a1, 0x18
/* 96AD68 80241BA8 ACA0000C */ sw $zero, 0xc($a1)
/* 96AD6C 80241BAC AE020000 */ sw $v0, ($s0)
/* 96AD70 80241BB0 24A20020 */ addiu $v0, $a1, 0x20
/* 96AD74 80241BB4 ACA80010 */ sw $t0, 0x10($a1)
/* 96AD78 80241BB8 3C08E600 */ lui $t0, 0xe600
/* 96AD7C 80241BBC ACAA0014 */ sw $t2, 0x14($a1)
/* 96AD80 80241BC0 AE020000 */ sw $v0, ($s0)
/* 96AD84 80241BC4 24A20028 */ addiu $v0, $a1, 0x28
/* 96AD88 80241BC8 ACA80018 */ sw $t0, 0x18($a1)
/* 96AD8C 80241BCC ACA0001C */ sw $zero, 0x1c($a1)
/* 96AD90 80241BD0 AE020000 */ sw $v0, ($s0)
/* 96AD94 80241BD4 3C02F000 */ lui $v0, 0xf000
/* 96AD98 80241BD8 ACA20020 */ sw $v0, 0x20($a1)
/* 96AD9C 80241BDC 24A20030 */ addiu $v0, $a1, 0x30
/* 96ADA0 80241BE0 ACA90024 */ sw $t1, 0x24($a1)
/* 96ADA4 80241BE4 3C09E700 */ lui $t1, 0xe700
/* 96ADA8 80241BE8 AE020000 */ sw $v0, ($s0)
/* 96ADAC 80241BEC ACA90028 */ sw $t1, 0x28($a1)
/* 96ADB0 80241BF0 ACA0002C */ sw $zero, 0x2c($a1)
/* 96ADB4 80241BF4 ACA30004 */ sw $v1, 4($a1)
/* 96ADB8 80241BF8 8FA200B8 */ lw $v0, 0xb8($sp)
/* 96ADBC 80241BFC 24A30038 */ addiu $v1, $a1, 0x38
/* 96ADC0 80241C00 AE030000 */ sw $v1, ($s0)
/* 96ADC4 80241C04 3C03FD48 */ lui $v1, 0xfd48
/* 96ADC8 80241C08 00021043 */ sra $v0, $v0, 1
/* 96ADCC 80241C0C 2442FFFF */ addiu $v0, $v0, -1
/* 96ADD0 80241C10 30420FFF */ andi $v0, $v0, 0xfff
/* 96ADD4 80241C14 00431025 */ or $v0, $v0, $v1
/* 96ADD8 80241C18 ACA20030 */ sw $v0, 0x30($a1)
/* 96ADDC 80241C1C 8FA300B0 */ lw $v1, 0xb0($sp)
/* 96ADE0 80241C20 24A20040 */ addiu $v0, $a1, 0x40
/* 96ADE4 80241C24 AE020000 */ sw $v0, ($s0)
/* 96ADE8 80241C28 ACA30034 */ sw $v1, 0x34($a1)
/* 96ADEC 80241C2C 8FA200B8 */ lw $v0, 0xb8($sp)
/* 96ADF0 80241C30 24A30048 */ addiu $v1, $a1, 0x48
/* 96ADF4 80241C34 AE030000 */ sw $v1, ($s0)
/* 96ADF8 80241C38 3C03F548 */ lui $v1, 0xf548
/* 96ADFC 80241C3C ACAB003C */ sw $t3, 0x3c($a1)
/* 96AE00 80241C40 00021043 */ sra $v0, $v0, 1
/* 96AE04 80241C44 24420007 */ addiu $v0, $v0, 7
/* 96AE08 80241C48 000210C3 */ sra $v0, $v0, 3
/* 96AE0C 80241C4C 304201FF */ andi $v0, $v0, 0x1ff
/* 96AE10 80241C50 00021240 */ sll $v0, $v0, 9
/* 96AE14 80241C54 00431025 */ or $v0, $v0, $v1
/* 96AE18 80241C58 ACA20038 */ sw $v0, 0x38($a1)
/* 96AE1C 80241C5C 3C02F400 */ lui $v0, 0xf400
/* 96AE20 80241C60 ACA80040 */ sw $t0, 0x40($a1)
/* 96AE24 80241C64 ACA00044 */ sw $zero, 0x44($a1)
/* 96AE28 80241C68 ACA20048 */ sw $v0, 0x48($a1)
/* 96AE2C 80241C6C 8FA200B8 */ lw $v0, 0xb8($sp)
/* 96AE30 80241C70 8FA300BC */ lw $v1, 0xbc($sp)
/* 96AE34 80241C74 24A80050 */ addiu $t0, $a1, 0x50
/* 96AE38 80241C78 AE080000 */ sw $t0, ($s0)
/* 96AE3C 80241C7C ACA90050 */ sw $t1, 0x50($a1)
/* 96AE40 80241C80 ACA00054 */ sw $zero, 0x54($a1)
/* 96AE44 80241C84 2442FFFF */ addiu $v0, $v0, -1
/* 96AE48 80241C88 00021040 */ sll $v0, $v0, 1
/* 96AE4C 80241C8C 30420FFF */ andi $v0, $v0, 0xfff
/* 96AE50 80241C90 00021300 */ sll $v0, $v0, 0xc
/* 96AE54 80241C94 2463FFFF */ addiu $v1, $v1, -1
/* 96AE58 80241C98 00031880 */ sll $v1, $v1, 2
/* 96AE5C 80241C9C 30630FFF */ andi $v1, $v1, 0xfff
/* 96AE60 80241CA0 006A1825 */ or $v1, $v1, $t2
/* 96AE64 80241CA4 00431025 */ or $v0, $v0, $v1
/* 96AE68 80241CA8 ACA2004C */ sw $v0, 0x4c($a1)
/* 96AE6C 80241CAC 8FA200B8 */ lw $v0, 0xb8($sp)
/* 96AE70 80241CB0 24A30058 */ addiu $v1, $a1, 0x58
/* 96AE74 80241CB4 AE030000 */ sw $v1, ($s0)
/* 96AE78 80241CB8 3C03F200 */ lui $v1, 0xf200
/* 96AE7C 80241CBC ACA30060 */ sw $v1, 0x60($a1)
/* 96AE80 80241CC0 3C03F540 */ lui $v1, 0xf540
/* 96AE84 80241CC4 ACAC005C */ sw $t4, 0x5c($a1)
/* 96AE88 80241CC8 00021043 */ sra $v0, $v0, 1
/* 96AE8C 80241CCC 24420007 */ addiu $v0, $v0, 7
/* 96AE90 80241CD0 000210C3 */ sra $v0, $v0, 3
/* 96AE94 80241CD4 304201FF */ andi $v0, $v0, 0x1ff
/* 96AE98 80241CD8 00021240 */ sll $v0, $v0, 9
/* 96AE9C 80241CDC 00431025 */ or $v0, $v0, $v1
/* 96AEA0 80241CE0 ACA20058 */ sw $v0, 0x58($a1)
/* 96AEA4 80241CE4 8FA300B8 */ lw $v1, 0xb8($sp)
/* 96AEA8 80241CE8 24A20060 */ addiu $v0, $a1, 0x60
/* 96AEAC 80241CEC AE020000 */ sw $v0, ($s0)
/* 96AEB0 80241CF0 8FA200BC */ lw $v0, 0xbc($sp)
/* 96AEB4 80241CF4 2463FFFF */ addiu $v1, $v1, -1
/* 96AEB8 80241CF8 00031880 */ sll $v1, $v1, 2
/* 96AEBC 80241CFC 30630FFF */ andi $v1, $v1, 0xfff
/* 96AEC0 80241D00 00031B00 */ sll $v1, $v1, 0xc
/* 96AEC4 80241D04 2442FFFF */ addiu $v0, $v0, -1
/* 96AEC8 80241D08 00021080 */ sll $v0, $v0, 2
/* 96AECC 80241D0C 30420FFF */ andi $v0, $v0, 0xfff
/* 96AED0 80241D10 00621825 */ or $v1, $v1, $v0
/* 96AED4 80241D14 ACA30064 */ sw $v1, 0x64($a1)
/* 96AED8 80241D18 8FA200B8 */ lw $v0, 0xb8($sp)
/* 96AEDC 80241D1C 24A50068 */ addiu $a1, $a1, 0x68
/* 96AEE0 80241D20 AE050000 */ sw $a1, ($s0)
/* 96AEE4 80241D24 8FAD0100 */ lw $t5, 0x100($sp)
/* 96AEE8 80241D28 00021FC2 */ srl $v1, $v0, 0x1f
/* 96AEEC 80241D2C 00431021 */ addu $v0, $v0, $v1
/* 96AEF0 80241D30 00021043 */ sra $v0, $v0, 1
/* 96AEF4 80241D34 8DA30020 */ lw $v1, 0x20($t5)
/* 96AEF8 80241D38 2442FFE2 */ addiu $v0, $v0, -0x1e
/* 96AEFC 80241D3C 00621823 */ subu $v1, $v1, $v0
/* 96AF00 80241D40 44831000 */ mtc1 $v1, $f2
/* 96AF04 80241D44 00000000 */ nop
/* 96AF08 80241D48 468010A0 */ cvt.s.w $f2, $f2
/* 96AF0C 80241D4C 44051000 */ mfc1 $a1, $f2
/* 96AF10 80241D50 0C019E40 */ jal guTranslateF
/* 96AF14 80241D54 00C0382D */ daddu $a3, $a2, $zero
/* 96AF18 80241D58 27A40018 */ addiu $a0, $sp, 0x18
/* 96AF1C 80241D5C 3C118007 */ lui $s1, %hi(gMatrixListPos)
/* 96AF20 80241D60 263141F0 */ addiu $s1, $s1, %lo(gMatrixListPos)
/* 96AF24 80241D64 3C12800A */ lui $s2, %hi(gDisplayContext)
/* 96AF28 80241D68 2652A674 */ addiu $s2, $s2, %lo(gDisplayContext)
/* 96AF2C 80241D6C 96250000 */ lhu $a1, ($s1)
/* 96AF30 80241D70 8E420000 */ lw $v0, ($s2)
/* 96AF34 80241D74 00052980 */ sll $a1, $a1, 6
/* 96AF38 80241D78 00B32821 */ addu $a1, $a1, $s3
/* 96AF3C 80241D7C 0C019D40 */ jal guMtxF2L
/* 96AF40 80241D80 00452821 */ addu $a1, $v0, $a1
/* 96AF44 80241D84 3C06D838 */ lui $a2, 0xd838
/* 96AF48 80241D88 8E040000 */ lw $a0, ($s0)
/* 96AF4C 80241D8C 34C60002 */ ori $a2, $a2, 2
/* 96AF50 80241D90 0080282D */ daddu $a1, $a0, $zero
/* 96AF54 80241D94 24840008 */ addiu $a0, $a0, 8
/* 96AF58 80241D98 AE040000 */ sw $a0, ($s0)
/* 96AF5C 80241D9C 96220000 */ lhu $v0, ($s1)
/* 96AF60 80241DA0 3C03DA38 */ lui $v1, 0xda38
/* 96AF64 80241DA4 ACA30000 */ sw $v1, ($a1)
/* 96AF68 80241DA8 24430001 */ addiu $v1, $v0, 1
/* 96AF6C 80241DAC 3042FFFF */ andi $v0, $v0, 0xffff
/* 96AF70 80241DB0 00021180 */ sll $v0, $v0, 6
/* 96AF74 80241DB4 A6230000 */ sh $v1, ($s1)
/* 96AF78 80241DB8 8E430000 */ lw $v1, ($s2)
/* 96AF7C 80241DBC 00531021 */ addu $v0, $v0, $s3
/* 96AF80 80241DC0 00621821 */ addu $v1, $v1, $v0
/* 96AF84 80241DC4 3C028000 */ lui $v0, 0x8000
/* 96AF88 80241DC8 00621821 */ addu $v1, $v1, $v0
/* 96AF8C 80241DCC 24820008 */ addiu $v0, $a0, 8
/* 96AF90 80241DD0 ACA30004 */ sw $v1, 4($a1)
/* 96AF94 80241DD4 AE020000 */ sw $v0, ($s0)
/* 96AF98 80241DD8 3C02DE00 */ lui $v0, 0xde00
/* 96AF9C 80241DDC AC820000 */ sw $v0, ($a0)
/* 96AFA0 80241DE0 3C028024 */ lui $v0, %hi(dro_02_D_80247A38_970BF8)
/* 96AFA4 80241DE4 24427A38 */ addiu $v0, $v0, %lo(dro_02_D_80247A38_970BF8)
/* 96AFA8 80241DE8 AC820004 */ sw $v0, 4($a0)
/* 96AFAC 80241DEC 24820010 */ addiu $v0, $a0, 0x10
/* 96AFB0 80241DF0 AE020000 */ sw $v0, ($s0)
/* 96AFB4 80241DF4 24020040 */ addiu $v0, $zero, 0x40
/* 96AFB8 80241DF8 AC860008 */ sw $a2, 8($a0)
/* 96AFBC 80241DFC AC82000C */ sw $v0, 0xc($a0)
/* 96AFC0 80241E00 3C06D838 */ lui $a2, 0xd838
.L80241E04:
/* 96AFC4 80241E04 34C60002 */ ori $a2, $a2, 2
/* 96AFC8 80241E08 3C04800A */ lui $a0, %hi(gMasterGfxPos)
/* 96AFCC 80241E0C 2484A66C */ addiu $a0, $a0, %lo(gMasterGfxPos)
/* 96AFD0 80241E10 8C830000 */ lw $v1, ($a0)
/* 96AFD4 80241E14 24020001 */ addiu $v0, $zero, 1
/* 96AFD8 80241E18 0060282D */ daddu $a1, $v1, $zero
/* 96AFDC 80241E1C 24630008 */ addiu $v1, $v1, 8
/* 96AFE0 80241E20 AC830000 */ sw $v1, ($a0)
/* 96AFE4 80241E24 24030040 */ addiu $v1, $zero, 0x40
/* 96AFE8 80241E28 ACA60000 */ sw $a2, ($a1)
/* 96AFEC 80241E2C 08090877 */ j .L802421DC
/* 96AFF0 80241E30 ACA30004 */ sw $v1, 4($a1)
.L80241E34:
/* 96AFF4 80241E34 14620048 */ bne $v1, $v0, .L80241F58
/* 96AFF8 80241E38 24020003 */ addiu $v0, $zero, 3
/* 96AFFC 80241E3C 3C03F240 */ lui $v1, 0xf240
/* 96B000 80241E40 34630400 */ ori $v1, $v1, 0x400
/* 96B004 80241E44 3C020047 */ lui $v0, 0x47
/* 96B008 80241E48 3442C47C */ ori $v0, $v0, 0xc47c
/* 96B00C 80241E4C 27B00058 */ addiu $s0, $sp, 0x58
/* 96B010 80241E50 0200202D */ daddu $a0, $s0, $zero
/* 96B014 80241E54 3C120001 */ lui $s2, 1
/* 96B018 80241E58 36521630 */ ori $s2, $s2, 0x1630
/* 96B01C 80241E5C AD020004 */ sw $v0, 4($t0)
/* 96B020 80241E60 3C028025 */ lui $v0, %hi(D_8024F010)
/* 96B024 80241E64 2442F010 */ addiu $v0, $v0, %lo(D_8024F010)
/* 96B028 80241E68 AD030000 */ sw $v1, ($t0)
/* 96B02C 80241E6C 8C450004 */ lw $a1, 4($v0)
/* 96B030 80241E70 8C460008 */ lw $a2, 8($v0)
/* 96B034 80241E74 8C47000C */ lw $a3, 0xc($v0)
/* 96B038 80241E78 25020008 */ addiu $v0, $t0, 8
/* 96B03C 80241E7C 0C019E40 */ jal guTranslateF
/* 96B040 80241E80 AFC20000 */ sw $v0, ($fp)
/* 96B044 80241E84 0200202D */ daddu $a0, $s0, $zero
/* 96B048 80241E88 8FA50104 */ lw $a1, 0x104($sp)
/* 96B04C 80241E8C 0C019D80 */ jal guMtxCatF
/* 96B050 80241E90 27A60018 */ addiu $a2, $sp, 0x18
/* 96B054 80241E94 27A40018 */ addiu $a0, $sp, 0x18
/* 96B058 80241E98 3C108007 */ lui $s0, %hi(gMatrixListPos)
/* 96B05C 80241E9C 261041F0 */ addiu $s0, $s0, %lo(gMatrixListPos)
/* 96B060 80241EA0 3C11800A */ lui $s1, %hi(gDisplayContext)
/* 96B064 80241EA4 2631A674 */ addiu $s1, $s1, %lo(gDisplayContext)
/* 96B068 80241EA8 96050000 */ lhu $a1, ($s0)
/* 96B06C 80241EAC 8E220000 */ lw $v0, ($s1)
/* 96B070 80241EB0 00052980 */ sll $a1, $a1, 6
/* 96B074 80241EB4 00B22821 */ addu $a1, $a1, $s2
/* 96B078 80241EB8 0C019D40 */ jal guMtxF2L
/* 96B07C 80241EBC 00452821 */ addu $a1, $v0, $a1
/* 96B080 80241EC0 3C07DA38 */ lui $a3, 0xda38
/* 96B084 80241EC4 34E70002 */ ori $a3, $a3, 2
/* 96B088 80241EC8 3C05F4AC */ lui $a1, 0xf4ac
/* 96B08C 80241ECC 34A5D480 */ ori $a1, $a1, 0xd480
/* 96B090 80241ED0 8FC30000 */ lw $v1, ($fp)
/* 96B094 80241ED4 3C048025 */ lui $a0, %hi(D_8024EFCC)
/* 96B098 80241ED8 8C84EFCC */ lw $a0, %lo(D_8024EFCC)($a0)
/* 96B09C 80241EDC 96020000 */ lhu $v0, ($s0)
/* 96B0A0 80241EE0 0060302D */ daddu $a2, $v1, $zero
/* 96B0A4 80241EE4 24630008 */ addiu $v1, $v1, 8
/* 96B0A8 80241EE8 AFC30000 */ sw $v1, ($fp)
/* 96B0AC 80241EEC 24430001 */ addiu $v1, $v0, 1
/* 96B0B0 80241EF0 3042FFFF */ andi $v0, $v0, 0xffff
/* 96B0B4 80241EF4 00021180 */ sll $v0, $v0, 6
/* 96B0B8 80241EF8 ACC70000 */ sw $a3, ($a2)
/* 96B0BC 80241EFC A6030000 */ sh $v1, ($s0)
/* 96B0C0 80241F00 8E230000 */ lw $v1, ($s1)
/* 96B0C4 80241F04 00521021 */ addu $v0, $v0, $s2
/* 96B0C8 80241F08 00621821 */ addu $v1, $v1, $v0
/* 96B0CC 80241F0C 3C028000 */ lui $v0, 0x8000
/* 96B0D0 80241F10 00621821 */ addu $v1, $v1, $v0
/* 96B0D4 80241F14 0C0B1EAF */ jal evt_get_variable
/* 96B0D8 80241F18 ACC30004 */ sw $v1, 4($a2)
/* 96B0DC 80241F1C 0040202D */ daddu $a0, $v0, $zero
/* 96B0E0 80241F20 27A50098 */ addiu $a1, $sp, 0x98
/* 96B0E4 80241F24 24060030 */ addiu $a2, $zero, 0x30
/* 96B0E8 80241F28 0C04EBDC */ jal fold_appendGfx_component
/* 96B0EC 80241F2C 27A70018 */ addiu $a3, $sp, 0x18
/* 96B0F0 80241F30 3C05D838 */ lui $a1, 0xd838
/* 96B0F4 80241F34 8FC30000 */ lw $v1, ($fp)
/* 96B0F8 80241F38 34A50002 */ ori $a1, $a1, 2
/* 96B0FC 80241F3C 0060202D */ daddu $a0, $v1, $zero
/* 96B100 80241F40 24630008 */ addiu $v1, $v1, 8
/* 96B104 80241F44 AFC30000 */ sw $v1, ($fp)
/* 96B108 80241F48 24030040 */ addiu $v1, $zero, 0x40
/* 96B10C 80241F4C AC850000 */ sw $a1, ($a0)
/* 96B110 80241F50 08090877 */ j .L802421DC
/* 96B114 80241F54 AC830004 */ sw $v1, 4($a0)
.L80241F58:
/* 96B118 80241F58 10620003 */ beq $v1, $v0, .L80241F68
/* 96B11C 80241F5C 3C03F240 */ lui $v1, 0xf240
.L80241F60:
/* 96B120 80241F60 08090877 */ j .L802421DC
/* 96B124 80241F64 24020001 */ addiu $v0, $zero, 1
.L80241F68:
/* 96B128 80241F68 34630400 */ ori $v1, $v1, 0x400
/* 96B12C 80241F6C 3C020047 */ lui $v0, 0x47
/* 96B130 80241F70 3442C47C */ ori $v0, $v0, 0xc47c
/* 96B134 80241F74 27B30058 */ addiu $s3, $sp, 0x58
/* 96B138 80241F78 0260202D */ daddu $a0, $s3, $zero
/* 96B13C 80241F7C 3C140001 */ lui $s4, 1
/* 96B140 80241F80 36941630 */ ori $s4, $s4, 0x1630
/* 96B144 80241F84 3C17DA38 */ lui $s7, 0xda38
/* 96B148 80241F88 36F70002 */ ori $s7, $s7, 2
/* 96B14C 80241F8C 3C0DD838 */ lui $t5, 0xd838
/* 96B150 80241F90 35AD0002 */ ori $t5, $t5, 2
/* 96B154 80241F94 3C108025 */ lui $s0, %hi(D_8024F010)
/* 96B158 80241F98 2610F010 */ addiu $s0, $s0, %lo(D_8024F010)
/* 96B15C 80241F9C AFAD00C0 */ sw $t5, 0xc0($sp)
/* 96B160 80241FA0 AD030000 */ sw $v1, ($t0)
/* 96B164 80241FA4 AD020004 */ sw $v0, 4($t0)
/* 96B168 80241FA8 8E050004 */ lw $a1, 4($s0)
/* 96B16C 80241FAC 8E060008 */ lw $a2, 8($s0)
/* 96B170 80241FB0 8E07000C */ lw $a3, 0xc($s0)
/* 96B174 80241FB4 25020008 */ addiu $v0, $t0, 8
/* 96B178 80241FB8 0C019E40 */ jal guTranslateF
/* 96B17C 80241FBC AFC20000 */ sw $v0, ($fp)
/* 96B180 80241FC0 0260202D */ daddu $a0, $s3, $zero
/* 96B184 80241FC4 8FA50104 */ lw $a1, 0x104($sp)
/* 96B188 80241FC8 0C019D80 */ jal guMtxCatF
/* 96B18C 80241FCC 27A60018 */ addiu $a2, $sp, 0x18
/* 96B190 80241FD0 27A40018 */ addiu $a0, $sp, 0x18
/* 96B194 80241FD4 3C118007 */ lui $s1, %hi(gMatrixListPos)
/* 96B198 80241FD8 263141F0 */ addiu $s1, $s1, %lo(gMatrixListPos)
/* 96B19C 80241FDC 3C12800A */ lui $s2, %hi(gDisplayContext)
/* 96B1A0 80241FE0 2652A674 */ addiu $s2, $s2, %lo(gDisplayContext)
/* 96B1A4 80241FE4 96250000 */ lhu $a1, ($s1)
/* 96B1A8 80241FE8 8E420000 */ lw $v0, ($s2)
/* 96B1AC 80241FEC 00052980 */ sll $a1, $a1, 6
/* 96B1B0 80241FF0 00B42821 */ addu $a1, $a1, $s4
/* 96B1B4 80241FF4 0C019D40 */ jal guMtxF2L
/* 96B1B8 80241FF8 00452821 */ addu $a1, $v0, $a1
/* 96B1BC 80241FFC 3C05F4AC */ lui $a1, 0xf4ac
/* 96B1C0 80242000 34A5D481 */ ori $a1, $a1, 0xd481
/* 96B1C4 80242004 3C158025 */ lui $s5, %hi(D_8024EFCC)
/* 96B1C8 80242008 26B5EFCC */ addiu $s5, $s5, %lo(D_8024EFCC)
/* 96B1CC 8024200C 3C0D8000 */ lui $t5, 0x8000
/* 96B1D0 80242010 8FC30000 */ lw $v1, ($fp)
/* 96B1D4 80242014 8EA40000 */ lw $a0, ($s5)
/* 96B1D8 80242018 96220000 */ lhu $v0, ($s1)
/* 96B1DC 8024201C 0060302D */ daddu $a2, $v1, $zero
/* 96B1E0 80242020 24630008 */ addiu $v1, $v1, 8
/* 96B1E4 80242024 AFC30000 */ sw $v1, ($fp)
/* 96B1E8 80242028 24430001 */ addiu $v1, $v0, 1
/* 96B1EC 8024202C 3042FFFF */ andi $v0, $v0, 0xffff
/* 96B1F0 80242030 00021180 */ sll $v0, $v0, 6
/* 96B1F4 80242034 ACD70000 */ sw $s7, ($a2)
/* 96B1F8 80242038 A6230000 */ sh $v1, ($s1)
/* 96B1FC 8024203C 8E430000 */ lw $v1, ($s2)
/* 96B200 80242040 00541021 */ addu $v0, $v0, $s4
/* 96B204 80242044 00621821 */ addu $v1, $v1, $v0
/* 96B208 80242048 006D1821 */ addu $v1, $v1, $t5
/* 96B20C 8024204C 0C0B1EAF */ jal evt_get_variable
/* 96B210 80242050 ACC30004 */ sw $v1, 4($a2)
/* 96B214 80242054 0040202D */ daddu $a0, $v0, $zero
/* 96B218 80242058 27B60098 */ addiu $s6, $sp, 0x98
/* 96B21C 8024205C 02C0282D */ daddu $a1, $s6, $zero
/* 96B220 80242060 24060030 */ addiu $a2, $zero, 0x30
/* 96B224 80242064 0C04EBDC */ jal fold_appendGfx_component
/* 96B228 80242068 27A70018 */ addiu $a3, $sp, 0x18
/* 96B22C 8024206C 3C05F4AC */ lui $a1, 0xf4ac
/* 96B230 80242070 8EA40000 */ lw $a0, ($s5)
/* 96B234 80242074 0C0B1EAF */ jal evt_get_variable
/* 96B238 80242078 34A5D482 */ ori $a1, $a1, 0xd482
/* 96B23C 8024207C 0040202D */ daddu $a0, $v0, $zero
/* 96B240 80242080 02C0282D */ daddu $a1, $s6, $zero
/* 96B244 80242084 24060030 */ addiu $a2, $zero, 0x30
/* 96B248 80242088 0C04EBDC */ jal fold_appendGfx_component
/* 96B24C 8024208C 27A70018 */ addiu $a3, $sp, 0x18
/* 96B250 80242090 0260202D */ daddu $a0, $s3, $zero
/* 96B254 80242094 8FC20000 */ lw $v0, ($fp)
/* 96B258 80242098 8FAD00C0 */ lw $t5, 0xc0($sp)
/* 96B25C 8024209C 0040182D */ daddu $v1, $v0, $zero
/* 96B260 802420A0 AC6D0000 */ sw $t5, ($v1)
/* 96B264 802420A4 240D0040 */ addiu $t5, $zero, 0x40
/* 96B268 802420A8 AC6D0004 */ sw $t5, 4($v1)
/* 96B26C 802420AC 8E050004 */ lw $a1, 4($s0)
/* 96B270 802420B0 8E060008 */ lw $a2, 8($s0)
/* 96B274 802420B4 8E07000C */ lw $a3, 0xc($s0)
/* 96B278 802420B8 24420008 */ addiu $v0, $v0, 8
/* 96B27C 802420BC 0C019E40 */ jal guTranslateF
/* 96B280 802420C0 AFC20000 */ sw $v0, ($fp)
/* 96B284 802420C4 0260202D */ daddu $a0, $s3, $zero
/* 96B288 802420C8 8FA50104 */ lw $a1, 0x104($sp)
/* 96B28C 802420CC 0C019D80 */ jal guMtxCatF
/* 96B290 802420D0 27A60018 */ addiu $a2, $sp, 0x18
/* 96B294 802420D4 27A40018 */ addiu $a0, $sp, 0x18
/* 96B298 802420D8 96250000 */ lhu $a1, ($s1)
/* 96B29C 802420DC 8E420000 */ lw $v0, ($s2)
/* 96B2A0 802420E0 00052980 */ sll $a1, $a1, 6
/* 96B2A4 802420E4 00B42821 */ addu $a1, $a1, $s4
/* 96B2A8 802420E8 0C019D40 */ jal guMtxF2L
/* 96B2AC 802420EC 00452821 */ addu $a1, $v0, $a1
/* 96B2B0 802420F0 27A400B0 */ addiu $a0, $sp, 0xb0
/* 96B2B4 802420F4 3C0D8000 */ lui $t5, 0x8000
/* 96B2B8 802420F8 8FC70000 */ lw $a3, ($fp)
/* 96B2BC 802420FC 96280000 */ lhu $t0, ($s1)
/* 96B2C0 80242100 00E0282D */ daddu $a1, $a3, $zero
/* 96B2C4 80242104 3102FFFF */ andi $v0, $t0, 0xffff
/* 96B2C8 80242108 00021180 */ sll $v0, $v0, 6
/* 96B2CC 8024210C ACB70000 */ sw $s7, ($a1)
/* 96B2D0 80242110 8E430000 */ lw $v1, ($s2)
/* 96B2D4 80242114 00541021 */ addu $v0, $v0, $s4
/* 96B2D8 80242118 00621821 */ addu $v1, $v1, $v0
/* 96B2DC 8024211C 006D1821 */ addu $v1, $v1, $t5
/* 96B2E0 80242120 ACA30004 */ sw $v1, 4($a1)
/* 96B2E4 80242124 8FAD0100 */ lw $t5, 0x100($sp)
/* 96B2E8 80242128 24E70008 */ addiu $a3, $a3, 8
/* 96B2EC 8024212C 8DA50018 */ lw $a1, 0x18($t5)
/* 96B2F0 80242130 8DA6001C */ lw $a2, 0x1c($t5)
/* 96B2F4 80242134 25080001 */ addiu $t0, $t0, 1
/* 96B2F8 80242138 AFC70000 */ sw $a3, ($fp)
/* 96B2FC 8024213C 0C0B7811 */ jal spr_get_player_raster_info
/* 96B300 80242140 A6280000 */ sh $t0, ($s1)
/* 96B304 80242144 3C05F4AC */ lui $a1, 0xf4ac
/* 96B308 80242148 34A5D483 */ ori $a1, $a1, 0xd483
/* 96B30C 8024214C 8EA40000 */ lw $a0, ($s5)
/* 96B310 80242150 8FA600B0 */ lw $a2, 0xb0($sp)
/* 96B314 80242154 8FA700B4 */ lw $a3, 0xb4($sp)
/* 96B318 80242158 97A800BA */ lhu $t0, 0xba($sp)
/* 96B31C 8024215C 97A900BE */ lhu $t1, 0xbe($sp)
/* 96B320 80242160 8FA300B8 */ lw $v1, 0xb8($sp)
/* 96B324 80242164 240200FF */ addiu $v0, $zero, 0xff
/* 96B328 80242168 A3A200A8 */ sb $v0, 0xa8($sp)
/* 96B32C 8024216C 000317C2 */ srl $v0, $v1, 0x1f
/* 96B330 80242170 00621821 */ addu $v1, $v1, $v0
/* 96B334 80242174 00031843 */ sra $v1, $v1, 1
/* 96B338 80242178 8FA200BC */ lw $v0, 0xbc($sp)
/* 96B33C 8024217C 00031823 */ negu $v1, $v1
/* 96B340 80242180 AFA60098 */ sw $a2, 0x98($sp)
/* 96B344 80242184 AFA7009C */ sw $a3, 0x9c($sp)
/* 96B348 80242188 A7A800A0 */ sh $t0, 0xa0($sp)
/* 96B34C 8024218C A7A900A2 */ sh $t1, 0xa2($sp)
/* 96B350 80242190 A7A300A4 */ sh $v1, 0xa4($sp)
/* 96B354 80242194 00021FC2 */ srl $v1, $v0, 0x1f
/* 96B358 80242198 00431021 */ addu $v0, $v0, $v1
/* 96B35C 8024219C 00021043 */ sra $v0, $v0, 1
/* 96B360 802421A0 0C0B1EAF */ jal evt_get_variable
/* 96B364 802421A4 A7A200A6 */ sh $v0, 0xa6($sp)
/* 96B368 802421A8 0040202D */ daddu $a0, $v0, $zero
/* 96B36C 802421AC 02C0282D */ daddu $a1, $s6, $zero
/* 96B370 802421B0 24060010 */ addiu $a2, $zero, 0x10
/* 96B374 802421B4 0C04EBDC */ jal fold_appendGfx_component
/* 96B378 802421B8 27A70018 */ addiu $a3, $sp, 0x18
/* 96B37C 802421BC 8FC30000 */ lw $v1, ($fp)
/* 96B380 802421C0 0060202D */ daddu $a0, $v1, $zero
/* 96B384 802421C4 24630008 */ addiu $v1, $v1, 8
/* 96B388 802421C8 AFC30000 */ sw $v1, ($fp)
/* 96B38C 802421CC 8FAD00C0 */ lw $t5, 0xc0($sp)
/* 96B390 802421D0 AC8D0000 */ sw $t5, ($a0)
/* 96B394 802421D4 240D0040 */ addiu $t5, $zero, 0x40
/* 96B398 802421D8 AC8D0004 */ sw $t5, 4($a0)
.L802421DC:
/* 96B39C 802421DC 8FBF00EC */ lw $ra, 0xec($sp)
/* 96B3A0 802421E0 8FBE00E8 */ lw $fp, 0xe8($sp)
/* 96B3A4 802421E4 8FB700E4 */ lw $s7, 0xe4($sp)
/* 96B3A8 802421E8 8FB600E0 */ lw $s6, 0xe0($sp)
/* 96B3AC 802421EC 8FB500DC */ lw $s5, 0xdc($sp)
/* 96B3B0 802421F0 8FB400D8 */ lw $s4, 0xd8($sp)
/* 96B3B4 802421F4 8FB300D4 */ lw $s3, 0xd4($sp)
/* 96B3B8 802421F8 8FB200D0 */ lw $s2, 0xd0($sp)
/* 96B3BC 802421FC 8FB100CC */ lw $s1, 0xcc($sp)
/* 96B3C0 80242200 8FB000C8 */ lw $s0, 0xc8($sp)
/* 96B3C4 80242204 D7B600F8 */ ldc1 $f22, 0xf8($sp)
/* 96B3C8 80242208 D7B400F0 */ ldc1 $f20, 0xf0($sp)
/* 96B3CC 8024220C 03E00008 */ jr $ra
/* 96B3D0 80242210 27BD0100 */ addiu $sp, $sp, 0x100

View File

@ -1,393 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80243164_A2D3A4
/* A2D3A4 80243164 27BDFFB0 */ addiu $sp, $sp, -0x50
/* A2D3A8 80243168 AFB1002C */ sw $s1, 0x2c($sp)
/* A2D3AC 8024316C 8FB10060 */ lw $s1, 0x60($sp)
/* A2D3B0 80243170 AFB40038 */ sw $s4, 0x38($sp)
/* A2D3B4 80243174 8FB40064 */ lw $s4, 0x64($sp)
/* A2D3B8 80243178 AFB5003C */ sw $s5, 0x3c($sp)
/* A2D3BC 8024317C 8FB50068 */ lw $s5, 0x68($sp)
/* A2D3C0 80243180 AFB20030 */ sw $s2, 0x30($sp)
/* A2D3C4 80243184 8FB2006C */ lw $s2, 0x6c($sp)
/* A2D3C8 80243188 AFBE0048 */ sw $fp, 0x48($sp)
/* A2D3CC 8024318C 0080F02D */ daddu $fp, $a0, $zero
/* A2D3D0 80243190 AFB30034 */ sw $s3, 0x34($sp)
/* A2D3D4 80243194 00E0982D */ daddu $s3, $a3, $zero
/* A2D3D8 80243198 AFBF004C */ sw $ra, 0x4c($sp)
/* A2D3DC 8024319C AFB70044 */ sw $s7, 0x44($sp)
/* A2D3E0 802431A0 AFB60040 */ sw $s6, 0x40($sp)
/* A2D3E4 802431A4 AFB00028 */ sw $s0, 0x28($sp)
/* A2D3E8 802431A8 AFA50054 */ sw $a1, 0x54($sp)
/* A2D3EC 802431AC 1220014B */ beqz $s1, .L802436DC
/* A2D3F0 802431B0 AFA60058 */ sw $a2, 0x58($sp)
/* A2D3F4 802431B4 3C06800A */ lui $a2, %hi(gMasterGfxPos)
/* A2D3F8 802431B8 24C6A66C */ addiu $a2, $a2, %lo(gMasterGfxPos)
/* A2D3FC 802431BC 8CC50000 */ lw $a1, ($a2)
/* A2D400 802431C0 3C07E700 */ lui $a3, 0xe700
/* A2D404 802431C4 00A0102D */ daddu $v0, $a1, $zero
/* A2D408 802431C8 24A50008 */ addiu $a1, $a1, 8
/* A2D40C 802431CC ACC50000 */ sw $a1, ($a2)
/* A2D410 802431D0 AC470000 */ sw $a3, ($v0)
/* A2D414 802431D4 AC400004 */ sw $zero, 4($v0)
/* A2D418 802431D8 24A20008 */ addiu $v0, $a1, 8
/* A2D41C 802431DC ACC20000 */ sw $v0, ($a2)
/* A2D420 802431E0 3C02DE00 */ lui $v0, 0xde00
/* A2D424 802431E4 ACA20000 */ sw $v0, ($a1)
/* A2D428 802431E8 3C028025 */ lui $v0, %hi(D_8024AA28_A34C68)
/* A2D42C 802431EC 2442AA28 */ addiu $v0, $v0, %lo(D_8024AA28_A34C68)
/* A2D430 802431F0 12600023 */ beqz $s3, .L80243280
/* A2D434 802431F4 ACA20004 */ sw $v0, 4($a1)
/* A2D438 802431F8 3C03F500 */ lui $v1, 0xf500
/* A2D43C 802431FC 34630100 */ ori $v1, $v1, 0x100
/* A2D440 80243200 3C04073F */ lui $a0, 0x73f
/* A2D444 80243204 3484C000 */ ori $a0, $a0, 0xc000
/* A2D448 80243208 24A20010 */ addiu $v0, $a1, 0x10
/* A2D44C 8024320C ACC20000 */ sw $v0, ($a2)
/* A2D450 80243210 3C02FD10 */ lui $v0, 0xfd10
/* A2D454 80243214 ACA20008 */ sw $v0, 8($a1)
/* A2D458 80243218 24A20018 */ addiu $v0, $a1, 0x18
/* A2D45C 8024321C ACB3000C */ sw $s3, 0xc($a1)
/* A2D460 80243220 ACC20000 */ sw $v0, ($a2)
/* A2D464 80243224 3C02E800 */ lui $v0, 0xe800
/* A2D468 80243228 ACA20010 */ sw $v0, 0x10($a1)
/* A2D46C 8024322C 24A20020 */ addiu $v0, $a1, 0x20
/* A2D470 80243230 ACA00014 */ sw $zero, 0x14($a1)
/* A2D474 80243234 ACC20000 */ sw $v0, ($a2)
/* A2D478 80243238 3C020700 */ lui $v0, 0x700
/* A2D47C 8024323C ACA2001C */ sw $v0, 0x1c($a1)
/* A2D480 80243240 24A20028 */ addiu $v0, $a1, 0x28
/* A2D484 80243244 ACA30018 */ sw $v1, 0x18($a1)
/* A2D488 80243248 ACC20000 */ sw $v0, ($a2)
/* A2D48C 8024324C 3C02E600 */ lui $v0, 0xe600
/* A2D490 80243250 ACA20020 */ sw $v0, 0x20($a1)
/* A2D494 80243254 24A20030 */ addiu $v0, $a1, 0x30
/* A2D498 80243258 ACA00024 */ sw $zero, 0x24($a1)
/* A2D49C 8024325C ACC20000 */ sw $v0, ($a2)
/* A2D4A0 80243260 3C02F000 */ lui $v0, 0xf000
/* A2D4A4 80243264 ACA20028 */ sw $v0, 0x28($a1)
/* A2D4A8 80243268 24A20038 */ addiu $v0, $a1, 0x38
/* A2D4AC 8024326C ACA4002C */ sw $a0, 0x2c($a1)
/* A2D4B0 80243270 ACC20000 */ sw $v0, ($a2)
/* A2D4B4 80243274 ACA70030 */ sw $a3, 0x30($a1)
/* A2D4B8 80243278 08090CA6 */ j .L80243298
/* A2D4BC 8024327C ACA00034 */ sw $zero, 0x34($a1)
.L80243280:
/* A2D4C0 80243280 3C03E300 */ lui $v1, 0xe300
/* A2D4C4 80243284 34631001 */ ori $v1, $v1, 0x1001
/* A2D4C8 80243288 24A20010 */ addiu $v0, $a1, 0x10
/* A2D4CC 8024328C ACC20000 */ sw $v0, ($a2)
/* A2D4D0 80243290 ACA30008 */ sw $v1, 8($a1)
/* A2D4D4 80243294 ACA0000C */ sw $zero, 0xc($a1)
.L80243298:
/* A2D4D8 80243298 24040001 */ addiu $a0, $zero, 1
/* A2D4DC 8024329C 27B00010 */ addiu $s0, $sp, 0x10
/* A2D4E0 802432A0 0200282D */ daddu $a1, $s0, $zero
/* A2D4E4 802432A4 0C04DF70 */ jal get_screen_overlay_params
/* A2D4E8 802432A8 27A60014 */ addiu $a2, $sp, 0x14
/* A2D4EC 802432AC 0000202D */ daddu $a0, $zero, $zero
/* A2D4F0 802432B0 0200282D */ daddu $a1, $s0, $zero
/* A2D4F4 802432B4 0C04DF70 */ jal get_screen_overlay_params
/* A2D4F8 802432B8 27A60018 */ addiu $a2, $sp, 0x18
/* A2D4FC 802432BC C7A20014 */ lwc1 $f2, 0x14($sp)
/* A2D500 802432C0 3C01437F */ lui $at, 0x437f
/* A2D504 802432C4 44812000 */ mtc1 $at, $f4
/* A2D508 802432C8 00000000 */ nop
/* A2D50C 802432CC 46022081 */ sub.s $f2, $f4, $f2
/* A2D510 802432D0 44910000 */ mtc1 $s1, $f0
/* A2D514 802432D4 00000000 */ nop
/* A2D518 802432D8 46800020 */ cvt.s.w $f0, $f0
/* A2D51C 802432DC 46020002 */ mul.s $f0, $f0, $f2
/* A2D520 802432E0 00000000 */ nop
/* A2D524 802432E4 C7A20018 */ lwc1 $f2, 0x18($sp)
/* A2D528 802432E8 46022081 */ sub.s $f2, $f4, $f2
/* A2D52C 802432EC 46020002 */ mul.s $f0, $f0, $f2
/* A2D530 802432F0 00000000 */ nop
/* A2D534 802432F4 240200FF */ addiu $v0, $zero, 0xff
/* A2D538 802432F8 46040003 */ div.s $f0, $f0, $f4
/* A2D53C 802432FC 46040003 */ div.s $f0, $f0, $f4
/* A2D540 80243300 4600018D */ trunc.w.s $f6, $f0
/* A2D544 80243304 44113000 */ mfc1 $s1, $f6
/* A2D548 80243308 00000000 */ nop
/* A2D54C 8024330C 12220013 */ beq $s1, $v0, .L8024335C
/* A2D550 80243310 3C06FCFF */ lui $a2, 0xfcff
/* A2D554 80243314 34C6B3FF */ ori $a2, $a2, 0xb3ff
/* A2D558 80243318 3C05FF64 */ lui $a1, 0xff64
/* A2D55C 8024331C 3C04800A */ lui $a0, %hi(gMasterGfxPos)
/* A2D560 80243320 2484A66C */ addiu $a0, $a0, %lo(gMasterGfxPos)
/* A2D564 80243324 8C820000 */ lw $v0, ($a0)
/* A2D568 80243328 34A5FE7F */ ori $a1, $a1, 0xfe7f
/* A2D56C 8024332C 0040182D */ daddu $v1, $v0, $zero
/* A2D570 80243330 24420008 */ addiu $v0, $v0, 8
/* A2D574 80243334 AC820000 */ sw $v0, ($a0)
/* A2D578 80243338 AC660000 */ sw $a2, ($v1)
/* A2D57C 8024333C AC650004 */ sw $a1, 4($v1)
/* A2D580 80243340 24430008 */ addiu $v1, $v0, 8
/* A2D584 80243344 AC830000 */ sw $v1, ($a0)
/* A2D588 80243348 3C03FA00 */ lui $v1, 0xfa00
/* A2D58C 8024334C AC430000 */ sw $v1, ($v0)
/* A2D590 80243350 322300FF */ andi $v1, $s1, 0xff
/* A2D594 80243354 08090CE2 */ j .L80243388
/* A2D598 80243358 AC430004 */ sw $v1, 4($v0)
.L8024335C:
/* A2D59C 8024335C 34C6FFFF */ ori $a2, $a2, 0xffff
/* A2D5A0 80243360 3C05FFFC */ lui $a1, 0xfffc
/* A2D5A4 80243364 3C04800A */ lui $a0, %hi(gMasterGfxPos)
/* A2D5A8 80243368 2484A66C */ addiu $a0, $a0, %lo(gMasterGfxPos)
/* A2D5AC 8024336C 8C820000 */ lw $v0, ($a0)
/* A2D5B0 80243370 34A5F279 */ ori $a1, $a1, 0xf279
/* A2D5B4 80243374 0040182D */ daddu $v1, $v0, $zero
/* A2D5B8 80243378 24420008 */ addiu $v0, $v0, 8
/* A2D5BC 8024337C AC820000 */ sw $v0, ($a0)
/* A2D5C0 80243380 AC660000 */ sw $a2, ($v1)
/* A2D5C4 80243384 AC650004 */ sw $a1, 4($v1)
.L80243388:
/* A2D5C8 80243388 16400002 */ bnez $s2, .L80243394
/* A2D5CC 8024338C 02B2001A */ div $zero, $s5, $s2
/* A2D5D0 80243390 0007000D */ break 7
.L80243394:
/* A2D5D4 80243394 2401FFFF */ addiu $at, $zero, -1
/* A2D5D8 80243398 16410004 */ bne $s2, $at, .L802433AC
/* A2D5DC 8024339C 3C018000 */ lui $at, 0x8000
/* A2D5E0 802433A0 16A10002 */ bne $s5, $at, .L802433AC
/* A2D5E4 802433A4 00000000 */ nop
/* A2D5E8 802433A8 0006000D */ break 6
.L802433AC:
/* A2D5EC 802433AC 00004812 */ mflo $t1
/* A2D5F0 802433B0 3C050050 */ lui $a1, 0x50
/* A2D5F4 802433B4 34A503C0 */ ori $a1, $a1, 0x3c0
/* A2D5F8 802433B8 3C07E200 */ lui $a3, 0xe200
/* A2D5FC 802433BC 34E7001C */ ori $a3, $a3, 0x1c
/* A2D600 802433C0 3C060050 */ lui $a2, 0x50
/* A2D604 802433C4 34C64340 */ ori $a2, $a2, 0x4340
/* A2D608 802433C8 3C08800A */ lui $t0, %hi(gMasterGfxPos)
/* A2D60C 802433CC 2508A66C */ addiu $t0, $t0, %lo(gMasterGfxPos)
/* A2D610 802433D0 0000582D */ daddu $t3, $zero, $zero
/* A2D614 802433D4 8D020000 */ lw $v0, ($t0)
/* A2D618 802433D8 3C03ED00 */ lui $v1, 0xed00
/* A2D61C 802433DC 0040202D */ daddu $a0, $v0, $zero
/* A2D620 802433E0 24420008 */ addiu $v0, $v0, 8
/* A2D624 802433E4 AD020000 */ sw $v0, ($t0)
/* A2D628 802433E8 AC830000 */ sw $v1, ($a0)
/* A2D62C 802433EC 24430008 */ addiu $v1, $v0, 8
/* A2D630 802433F0 AC850004 */ sw $a1, 4($a0)
/* A2D634 802433F4 AD030000 */ sw $v1, ($t0)
/* A2D638 802433F8 AC470000 */ sw $a3, ($v0)
/* A2D63C 802433FC 192000AE */ blez $t1, .L802436B8
/* A2D640 80243400 AC460004 */ sw $a2, 4($v0)
/* A2D644 80243404 0100302D */ daddu $a2, $t0, $zero
/* A2D648 80243408 2684FFFF */ addiu $a0, $s4, -1
/* A2D64C 8024340C 30830FFF */ andi $v1, $a0, 0xfff
/* A2D650 80243410 3C02FD48 */ lui $v0, 0xfd48
/* A2D654 80243414 0062B825 */ or $s7, $v1, $v0
/* A2D658 80243418 3C02FD68 */ lui $v0, 0xfd68
/* A2D65C 8024341C 00621825 */ or $v1, $v1, $v0
/* A2D660 80243420 26820007 */ addiu $v0, $s4, 7
/* A2D664 80243424 000210C3 */ sra $v0, $v0, 3
/* A2D668 80243428 304201FF */ andi $v0, $v0, 0x1ff
/* A2D66C 8024342C 00021240 */ sll $v0, $v0, 9
/* A2D670 80243430 AFA30020 */ sw $v1, 0x20($sp)
/* A2D674 80243434 3C03F548 */ lui $v1, 0xf548
/* A2D678 80243438 00437825 */ or $t7, $v0, $v1
/* A2D67C 8024343C 3C03F568 */ lui $v1, 0xf568
/* A2D680 80243440 00437025 */ or $t6, $v0, $v1
/* A2D684 80243444 3C110700 */ lui $s1, 0x700
/* A2D688 80243448 00042080 */ sll $a0, $a0, 2
/* A2D68C 8024344C 30840FFF */ andi $a0, $a0, 0xfff
/* A2D690 80243450 00046B00 */ sll $t5, $a0, 0xc
/* A2D694 80243454 03D41021 */ addu $v0, $fp, $s4
/* A2D698 80243458 00021480 */ sll $v0, $v0, 0x12
/* A2D69C 8024345C 00028403 */ sra $s0, $v0, 0x10
/* A2D6A0 80243460 32020FFF */ andi $v0, $s0, 0xfff
/* A2D6A4 80243464 0002CB00 */ sll $t9, $v0, 0xc
/* A2D6A8 80243468 001E1480 */ sll $v0, $fp, 0x12
/* A2D6AC 8024346C 00026403 */ sra $t4, $v0, 0x10
/* A2D6B0 80243470 31980FFF */ andi $t8, $t4, 0xfff
/* A2D6B4 80243474 000CA280 */ sll $s4, $t4, 0xa
/* A2D6B8 80243478 0160402D */ daddu $t0, $t3, $zero
/* A2D6BC 8024347C 0240502D */ daddu $t2, $s2, $zero
/* A2D6C0 80243480 8FA70054 */ lw $a3, 0x54($sp)
.L80243484:
/* A2D6C4 80243484 8CC30000 */ lw $v1, ($a2)
/* A2D6C8 80243488 24620008 */ addiu $v0, $v1, 8
/* A2D6CC 8024348C 12600003 */ beqz $s3, .L8024349C
/* A2D6D0 80243490 ACC20000 */ sw $v0, ($a2)
/* A2D6D4 80243494 08090D29 */ j .L802434A4
/* A2D6D8 80243498 AC770000 */ sw $s7, ($v1)
.L8024349C:
/* A2D6DC 8024349C 8FB60020 */ lw $s6, 0x20($sp)
/* A2D6E0 802434A0 AC760000 */ sw $s6, ($v1)
.L802434A4:
/* A2D6E4 802434A4 8CC50000 */ lw $a1, ($a2)
/* A2D6E8 802434A8 8FB60058 */ lw $s6, 0x58($sp)
/* A2D6EC 802434AC 24A20008 */ addiu $v0, $a1, 8
/* A2D6F0 802434B0 AC760004 */ sw $s6, 4($v1)
/* A2D6F4 802434B4 12600003 */ beqz $s3, .L802434C4
/* A2D6F8 802434B8 ACC20000 */ sw $v0, ($a2)
/* A2D6FC 802434BC 08090D32 */ j .L802434C8
/* A2D700 802434C0 ACAF0000 */ sw $t7, ($a1)
.L802434C4:
/* A2D704 802434C4 ACAE0000 */ sw $t6, ($a1)
.L802434C8:
/* A2D708 802434C8 8CC40000 */ lw $a0, ($a2)
/* A2D70C 802434CC 3C02E600 */ lui $v0, 0xe600
/* A2D710 802434D0 ACB10004 */ sw $s1, 4($a1)
/* A2D714 802434D4 0080182D */ daddu $v1, $a0, $zero
/* A2D718 802434D8 24840008 */ addiu $a0, $a0, 8
/* A2D71C 802434DC ACC40000 */ sw $a0, ($a2)
/* A2D720 802434E0 AC620000 */ sw $v0, ($v1)
/* A2D724 802434E4 24820008 */ addiu $v0, $a0, 8
/* A2D728 802434E8 AC600004 */ sw $zero, 4($v1)
/* A2D72C 802434EC ACC20000 */ sw $v0, ($a2)
/* A2D730 802434F0 00081080 */ sll $v0, $t0, 2
/* A2D734 802434F4 30420FFF */ andi $v0, $v0, 0xfff
/* A2D738 802434F8 3C03F400 */ lui $v1, 0xf400
/* A2D73C 802434FC 00431025 */ or $v0, $v0, $v1
/* A2D740 80243500 AC820000 */ sw $v0, ($a0)
/* A2D744 80243504 2542FFFF */ addiu $v0, $t2, -1
/* A2D748 80243508 00021080 */ sll $v0, $v0, 2
/* A2D74C 8024350C 30420FFF */ andi $v0, $v0, 0xfff
/* A2D750 80243510 00511025 */ or $v0, $v0, $s1
/* A2D754 80243514 01A21025 */ or $v0, $t5, $v0
/* A2D758 80243518 24830010 */ addiu $v1, $a0, 0x10
/* A2D75C 8024351C AC820004 */ sw $v0, 4($a0)
/* A2D760 80243520 3C02E700 */ lui $v0, 0xe700
/* A2D764 80243524 ACC30000 */ sw $v1, ($a2)
/* A2D768 80243528 AC820008 */ sw $v0, 8($a0)
/* A2D76C 8024352C 24820018 */ addiu $v0, $a0, 0x18
/* A2D770 80243530 AC80000C */ sw $zero, 0xc($a0)
/* A2D774 80243534 12600003 */ beqz $s3, .L80243544
/* A2D778 80243538 ACC20000 */ sw $v0, ($a2)
/* A2D77C 8024353C 08090D52 */ j .L80243548
/* A2D780 80243540 AC8F0010 */ sw $t7, 0x10($a0)
.L80243544:
/* A2D784 80243544 AC8E0010 */ sw $t6, 0x10($a0)
.L80243548:
/* A2D788 80243548 00081080 */ sll $v0, $t0, 2
/* A2D78C 8024354C 8CC40000 */ lw $a0, ($a2)
/* A2D790 80243550 30420FFF */ andi $v0, $v0, 0xfff
/* A2D794 80243554 AC600004 */ sw $zero, 4($v1)
/* A2D798 80243558 3C03F200 */ lui $v1, 0xf200
/* A2D79C 8024355C 00431025 */ or $v0, $v0, $v1
/* A2D7A0 80243560 0080282D */ daddu $a1, $a0, $zero
/* A2D7A4 80243564 24840008 */ addiu $a0, $a0, 8
/* A2D7A8 80243568 ACC40000 */ sw $a0, ($a2)
/* A2D7AC 8024356C ACA20000 */ sw $v0, ($a1)
/* A2D7B0 80243570 2542FFFF */ addiu $v0, $t2, -1
/* A2D7B4 80243574 00021080 */ sll $v0, $v0, 2
/* A2D7B8 80243578 30420FFF */ andi $v0, $v0, 0xfff
/* A2D7BC 8024357C 01A21025 */ or $v0, $t5, $v0
/* A2D7C0 80243580 ACA20004 */ sw $v0, 4($a1)
/* A2D7C4 80243584 24820008 */ addiu $v0, $a0, 8
/* A2D7C8 80243588 1A000004 */ blez $s0, .L8024359C
/* A2D7CC 8024358C ACC20000 */ sw $v0, ($a2)
/* A2D7D0 80243590 3C02E400 */ lui $v0, 0xe400
/* A2D7D4 80243594 08090D68 */ j .L802435A0
/* A2D7D8 80243598 03221825 */ or $v1, $t9, $v0
.L8024359C:
/* A2D7DC 8024359C 3C03E400 */ lui $v1, 0xe400
.L802435A0:
/* A2D7E0 802435A0 00F21021 */ addu $v0, $a3, $s2
/* A2D7E4 802435A4 00021480 */ sll $v0, $v0, 0x12
/* A2D7E8 802435A8 00021403 */ sra $v0, $v0, 0x10
/* A2D7EC 802435AC 18400004 */ blez $v0, .L802435C0
/* A2D7F0 802435B0 AC830000 */ sw $v1, ($a0)
/* A2D7F4 802435B4 30420FFF */ andi $v0, $v0, 0xfff
/* A2D7F8 802435B8 00621025 */ or $v0, $v1, $v0
/* A2D7FC 802435BC AC820000 */ sw $v0, ($a0)
.L802435C0:
/* A2D800 802435C0 19800002 */ blez $t4, .L802435CC
/* A2D804 802435C4 0000182D */ daddu $v1, $zero, $zero
/* A2D808 802435C8 00181B00 */ sll $v1, $t8, 0xc
.L802435CC:
/* A2D80C 802435CC 00071480 */ sll $v0, $a3, 0x12
/* A2D810 802435D0 00021403 */ sra $v0, $v0, 0x10
/* A2D814 802435D4 18400004 */ blez $v0, .L802435E8
/* A2D818 802435D8 AC830004 */ sw $v1, 4($a0)
/* A2D81C 802435DC 30420FFF */ andi $v0, $v0, 0xfff
/* A2D820 802435E0 00621025 */ or $v0, $v1, $v0
/* A2D824 802435E4 AC820004 */ sw $v0, 4($a0)
.L802435E8:
/* A2D828 802435E8 8CC20000 */ lw $v0, ($a2)
/* A2D82C 802435EC 00082940 */ sll $a1, $t0, 5
/* A2D830 802435F0 0040182D */ daddu $v1, $v0, $zero
/* A2D834 802435F4 24420008 */ addiu $v0, $v0, 8
/* A2D838 802435F8 ACC20000 */ sw $v0, ($a2)
/* A2D83C 802435FC 3C02E100 */ lui $v0, 0xe100
/* A2D840 80243600 AC620000 */ sw $v0, ($v1)
/* A2D844 80243604 05810007 */ bgez $t4, .L80243624
/* A2D848 80243608 24630004 */ addiu $v1, $v1, 4
/* A2D84C 8024360C 001411C3 */ sra $v0, $s4, 7
/* A2D850 80243610 5C400001 */ bgtzl $v0, .L80243618
/* A2D854 80243614 0000102D */ daddu $v0, $zero, $zero
.L80243618:
/* A2D858 80243618 00021023 */ negu $v0, $v0
/* A2D85C 8024361C 08090D8A */ j .L80243628
/* A2D860 80243620 00022400 */ sll $a0, $v0, 0x10
.L80243624:
/* A2D864 80243624 0000202D */ daddu $a0, $zero, $zero
.L80243628:
/* A2D868 80243628 00071080 */ sll $v0, $a3, 2
/* A2D86C 8024362C 04410007 */ bgez $v0, .L8024364C
/* A2D870 80243630 30A2FFFF */ andi $v0, $a1, 0xffff
/* A2D874 80243634 00071480 */ sll $v0, $a3, 0x12
/* A2D878 80243638 00021343 */ sra $v0, $v0, 0xd
/* A2D87C 8024363C 5C400001 */ bgtzl $v0, .L80243644
/* A2D880 80243640 0000102D */ daddu $v0, $zero, $zero
.L80243644:
/* A2D884 80243644 00A21023 */ subu $v0, $a1, $v0
/* A2D888 80243648 3042FFFF */ andi $v0, $v0, 0xffff
.L8024364C:
/* A2D88C 8024364C 00821025 */ or $v0, $a0, $v0
/* A2D890 80243650 AC620000 */ sw $v0, ($v1)
/* A2D894 80243654 16400002 */ bnez $s2, .L80243660
/* A2D898 80243658 02B2001A */ div $zero, $s5, $s2
/* A2D89C 8024365C 0007000D */ break 7
.L80243660:
/* A2D8A0 80243660 2401FFFF */ addiu $at, $zero, -1
/* A2D8A4 80243664 16410004 */ bne $s2, $at, .L80243678
/* A2D8A8 80243668 3C018000 */ lui $at, 0x8000
/* A2D8AC 8024366C 16A10002 */ bne $s5, $at, .L80243678
/* A2D8B0 80243670 00000000 */ nop
/* A2D8B4 80243674 0006000D */ break 6
.L80243678:
/* A2D8B8 80243678 00004812 */ mflo $t1
/* A2D8BC 8024367C 3C040400 */ lui $a0, 0x400
/* A2D8C0 80243680 34840400 */ ori $a0, $a0, 0x400
/* A2D8C4 80243684 00F23821 */ addu $a3, $a3, $s2
/* A2D8C8 80243688 01124021 */ addu $t0, $t0, $s2
/* A2D8CC 8024368C 01525021 */ addu $t2, $t2, $s2
/* A2D8D0 80243690 8CC20000 */ lw $v0, ($a2)
/* A2D8D4 80243694 256B0001 */ addiu $t3, $t3, 1
/* A2D8D8 80243698 0040182D */ daddu $v1, $v0, $zero
/* A2D8DC 8024369C 24420008 */ addiu $v0, $v0, 8
/* A2D8E0 802436A0 ACC20000 */ sw $v0, ($a2)
/* A2D8E4 802436A4 3C02F100 */ lui $v0, 0xf100
/* A2D8E8 802436A8 AC620000 */ sw $v0, ($v1)
/* A2D8EC 802436AC 0169102A */ slt $v0, $t3, $t1
/* A2D8F0 802436B0 1440FF74 */ bnez $v0, .L80243484
/* A2D8F4 802436B4 AC640004 */ sw $a0, 4($v1)
.L802436B8:
/* A2D8F8 802436B8 3C03800A */ lui $v1, %hi(gMasterGfxPos)
/* A2D8FC 802436BC 2463A66C */ addiu $v1, $v1, %lo(gMasterGfxPos)
/* A2D900 802436C0 8C620000 */ lw $v0, ($v1)
/* A2D904 802436C4 0040202D */ daddu $a0, $v0, $zero
/* A2D908 802436C8 24420008 */ addiu $v0, $v0, 8
/* A2D90C 802436CC AC620000 */ sw $v0, ($v1)
/* A2D910 802436D0 3C02E700 */ lui $v0, 0xe700
/* A2D914 802436D4 AC820000 */ sw $v0, ($a0)
/* A2D918 802436D8 AC800004 */ sw $zero, 4($a0)
.L802436DC:
/* A2D91C 802436DC 8FBF004C */ lw $ra, 0x4c($sp)
/* A2D920 802436E0 8FBE0048 */ lw $fp, 0x48($sp)
/* A2D924 802436E4 8FB70044 */ lw $s7, 0x44($sp)
/* A2D928 802436E8 8FB60040 */ lw $s6, 0x40($sp)
/* A2D92C 802436EC 8FB5003C */ lw $s5, 0x3c($sp)
/* A2D930 802436F0 8FB40038 */ lw $s4, 0x38($sp)
/* A2D934 802436F4 8FB30034 */ lw $s3, 0x34($sp)
/* A2D938 802436F8 8FB20030 */ lw $s2, 0x30($sp)
/* A2D93C 802436FC 8FB1002C */ lw $s1, 0x2c($sp)
/* A2D940 80243700 8FB00028 */ lw $s0, 0x28($sp)
/* A2D944 80243704 03E00008 */ jr $ra
/* A2D948 80243708 27BD0050 */ addiu $sp, $sp, 0x50

View File

@ -1,373 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80243758_A2D998
/* A2D998 80243758 27BDFFE8 */ addiu $sp, $sp, -0x18
/* A2D99C 8024375C 0080C82D */ daddu $t9, $a0, $zero
/* A2D9A0 80243760 AFB40010 */ sw $s4, 0x10($sp)
/* A2D9A4 80243764 00A0A02D */ daddu $s4, $a1, $zero
/* A2D9A8 80243768 AFB00000 */ sw $s0, ($sp)
/* A2D9AC 8024376C 00C0802D */ daddu $s0, $a2, $zero
/* A2D9B0 80243770 AFB50014 */ sw $s5, 0x14($sp)
/* A2D9B4 80243774 24150001 */ addiu $s5, $zero, 1
/* A2D9B8 80243778 3C05F500 */ lui $a1, 0xf500
/* A2D9BC 8024377C 34A50100 */ ori $a1, $a1, 0x100
/* A2D9C0 80243780 3C06073F */ lui $a2, 0x73f
/* A2D9C4 80243784 34C6C000 */ ori $a2, $a2, 0xc000
/* A2D9C8 80243788 0000502D */ daddu $t2, $zero, $zero
/* A2D9CC 8024378C 3C02800A */ lui $v0, %hi(gMasterGfxPos)
/* A2D9D0 80243790 2442A66C */ addiu $v0, $v0, %lo(gMasterGfxPos)
/* A2D9D4 80243794 0040402D */ daddu $t0, $v0, $zero
/* A2D9D8 80243798 3C0FF548 */ lui $t7, 0xf548
/* A2D9DC 8024379C 35EF4200 */ ori $t7, $t7, 0x4200
/* A2D9E0 802437A0 27220108 */ addiu $v0, $t9, 0x108
/* A2D9E4 802437A4 00021480 */ sll $v0, $v0, 0x12
/* A2D9E8 802437A8 0002C403 */ sra $t8, $v0, 0x10
/* A2D9EC 802437AC 33020FFF */ andi $v0, $t8, 0xfff
/* A2D9F0 802437B0 AFB3000C */ sw $s3, 0xc($sp)
/* A2D9F4 802437B4 00029B00 */ sll $s3, $v0, 0xc
/* A2D9F8 802437B8 00191480 */ sll $v0, $t9, 0x12
/* A2D9FC 802437BC 00027403 */ sra $t6, $v0, 0x10
/* A2DA00 802437C0 AFB20008 */ sw $s2, 8($sp)
/* A2DA04 802437C4 31D20FFF */ andi $s2, $t6, 0xfff
/* A2DA08 802437C8 AFB10004 */ sw $s1, 4($sp)
/* A2DA0C 802437CC 000E8A80 */ sll $s1, $t6, 0xa
/* A2DA10 802437D0 0280482D */ daddu $t1, $s4, $zero
/* A2DA14 802437D4 0140682D */ daddu $t5, $t2, $zero
/* A2DA18 802437D8 240C0018 */ addiu $t4, $zero, 0x18
/* A2DA1C 802437DC 0140582D */ daddu $t3, $t2, $zero
/* A2DA20 802437E0 8D020000 */ lw $v0, ($t0)
/* A2DA24 802437E4 3C04E700 */ lui $a0, 0xe700
/* A2DA28 802437E8 0040182D */ daddu $v1, $v0, $zero
/* A2DA2C 802437EC 24420008 */ addiu $v0, $v0, 8
/* A2DA30 802437F0 AD020000 */ sw $v0, ($t0)
/* A2DA34 802437F4 AC640000 */ sw $a0, ($v1)
/* A2DA38 802437F8 AC600004 */ sw $zero, 4($v1)
/* A2DA3C 802437FC 24430008 */ addiu $v1, $v0, 8
/* A2DA40 80243800 AD030000 */ sw $v1, ($t0)
/* A2DA44 80243804 3C03FD10 */ lui $v1, 0xfd10
/* A2DA48 80243808 AC430000 */ sw $v1, ($v0)
/* A2DA4C 8024380C 24430010 */ addiu $v1, $v0, 0x10
/* A2DA50 80243810 AC470004 */ sw $a3, 4($v0)
/* A2DA54 80243814 AD030000 */ sw $v1, ($t0)
/* A2DA58 80243818 3C03E800 */ lui $v1, 0xe800
/* A2DA5C 8024381C AC430008 */ sw $v1, 8($v0)
/* A2DA60 80243820 004C1821 */ addu $v1, $v0, $t4
/* A2DA64 80243824 AC40000C */ sw $zero, 0xc($v0)
/* A2DA68 80243828 AD030000 */ sw $v1, ($t0)
/* A2DA6C 8024382C 3C030700 */ lui $v1, 0x700
/* A2DA70 80243830 AC430014 */ sw $v1, 0x14($v0)
/* A2DA74 80243834 24430020 */ addiu $v1, $v0, 0x20
/* A2DA78 80243838 AC450010 */ sw $a1, 0x10($v0)
/* A2DA7C 8024383C AD030000 */ sw $v1, ($t0)
/* A2DA80 80243840 3C03E600 */ lui $v1, 0xe600
/* A2DA84 80243844 AC430018 */ sw $v1, 0x18($v0)
/* A2DA88 80243848 24430028 */ addiu $v1, $v0, 0x28
/* A2DA8C 8024384C AC40001C */ sw $zero, 0x1c($v0)
/* A2DA90 80243850 AD030000 */ sw $v1, ($t0)
/* A2DA94 80243854 3C03F000 */ lui $v1, 0xf000
/* A2DA98 80243858 AC430020 */ sw $v1, 0x20($v0)
/* A2DA9C 8024385C 24430030 */ addiu $v1, $v0, 0x30
/* A2DAA0 80243860 AC460024 */ sw $a2, 0x24($v0)
/* A2DAA4 80243864 AD030000 */ sw $v1, ($t0)
/* A2DAA8 80243868 AC440028 */ sw $a0, 0x28($v0)
/* A2DAAC 8024386C AC40002C */ sw $zero, 0x2c($v0)
.L80243870:
/* A2DAB0 80243870 3C04FD48 */ lui $a0, 0xfd48
/* A2DAB4 80243874 34840107 */ ori $a0, $a0, 0x107
/* A2DAB8 80243878 3C060741 */ lui $a2, 0x741
/* A2DABC 8024387C 34C6C000 */ ori $a2, $a2, 0xc000
/* A2DAC0 80243880 3C070041 */ lui $a3, 0x41
/* A2DAC4 80243884 34E7C000 */ ori $a3, $a3, 0xc000
/* A2DAC8 80243888 8D030000 */ lw $v1, ($t0)
/* A2DACC 8024388C 31650FFF */ andi $a1, $t3, 0xfff
/* A2DAD0 80243890 0060102D */ daddu $v0, $v1, $zero
/* A2DAD4 80243894 24630008 */ addiu $v1, $v1, 8
/* A2DAD8 80243898 AD030000 */ sw $v1, ($t0)
/* A2DADC 8024389C AC440000 */ sw $a0, ($v0)
/* A2DAE0 802438A0 AC500004 */ sw $s0, 4($v0)
/* A2DAE4 802438A4 24620008 */ addiu $v0, $v1, 8
/* A2DAE8 802438A8 AD020000 */ sw $v0, ($t0)
/* A2DAEC 802438AC 3C020700 */ lui $v0, 0x700
/* A2DAF0 802438B0 AC620004 */ sw $v0, 4($v1)
/* A2DAF4 802438B4 24620010 */ addiu $v0, $v1, 0x10
/* A2DAF8 802438B8 AC6F0000 */ sw $t7, ($v1)
/* A2DAFC 802438BC AD020000 */ sw $v0, ($t0)
/* A2DB00 802438C0 3C02E600 */ lui $v0, 0xe600
/* A2DB04 802438C4 AC620008 */ sw $v0, 8($v1)
/* A2DB08 802438C8 24620018 */ addiu $v0, $v1, 0x18
/* A2DB0C 802438CC AC60000C */ sw $zero, 0xc($v1)
/* A2DB10 802438D0 AD020000 */ sw $v0, ($t0)
/* A2DB14 802438D4 3C02F400 */ lui $v0, 0xf400
/* A2DB18 802438D8 00A21025 */ or $v0, $a1, $v0
/* A2DB1C 802438DC 31840FFF */ andi $a0, $t4, 0xfff
/* A2DB20 802438E0 00863025 */ or $a2, $a0, $a2
/* A2DB24 802438E4 AC620010 */ sw $v0, 0x10($v1)
/* A2DB28 802438E8 24620020 */ addiu $v0, $v1, 0x20
/* A2DB2C 802438EC AC660014 */ sw $a2, 0x14($v1)
/* A2DB30 802438F0 AD020000 */ sw $v0, ($t0)
/* A2DB34 802438F4 3C02E700 */ lui $v0, 0xe700
/* A2DB38 802438F8 AC620018 */ sw $v0, 0x18($v1)
/* A2DB3C 802438FC 24620028 */ addiu $v0, $v1, 0x28
/* A2DB40 80243900 24660030 */ addiu $a2, $v1, 0x30
/* A2DB44 80243904 AC60001C */ sw $zero, 0x1c($v1)
/* A2DB48 80243908 AD020000 */ sw $v0, ($t0)
/* A2DB4C 8024390C 3C02F200 */ lui $v0, 0xf200
/* A2DB50 80243910 00A22825 */ or $a1, $a1, $v0
/* A2DB54 80243914 00872025 */ or $a0, $a0, $a3
/* A2DB58 80243918 AC6F0020 */ sw $t7, 0x20($v1)
/* A2DB5C 8024391C AC600024 */ sw $zero, 0x24($v1)
/* A2DB60 80243920 AD060000 */ sw $a2, ($t0)
/* A2DB64 80243924 AC650028 */ sw $a1, 0x28($v1)
/* A2DB68 80243928 AC64002C */ sw $a0, 0x2c($v1)
/* A2DB6C 8024392C 24630038 */ addiu $v1, $v1, 0x38
/* A2DB70 80243930 1B000004 */ blez $t8, .L80243944
/* A2DB74 80243934 AD030000 */ sw $v1, ($t0)
/* A2DB78 80243938 3C02E400 */ lui $v0, 0xe400
/* A2DB7C 8024393C 08090E52 */ j .L80243948
/* A2DB80 80243940 02621825 */ or $v1, $s3, $v0
.L80243944:
/* A2DB84 80243944 3C03E400 */ lui $v1, 0xe400
.L80243948:
/* A2DB88 80243948 25220007 */ addiu $v0, $t1, 7
/* A2DB8C 8024394C 00021480 */ sll $v0, $v0, 0x12
/* A2DB90 80243950 00021403 */ sra $v0, $v0, 0x10
/* A2DB94 80243954 18400004 */ blez $v0, .L80243968
/* A2DB98 80243958 ACC30000 */ sw $v1, ($a2)
/* A2DB9C 8024395C 30420FFF */ andi $v0, $v0, 0xfff
/* A2DBA0 80243960 00621025 */ or $v0, $v1, $v0
/* A2DBA4 80243964 ACC20000 */ sw $v0, ($a2)
.L80243968:
/* A2DBA8 80243968 19C00002 */ blez $t6, .L80243974
/* A2DBAC 8024396C 0000182D */ daddu $v1, $zero, $zero
/* A2DBB0 80243970 00121B00 */ sll $v1, $s2, 0xc
.L80243974:
/* A2DBB4 80243974 00091480 */ sll $v0, $t1, 0x12
/* A2DBB8 80243978 00021403 */ sra $v0, $v0, 0x10
/* A2DBBC 8024397C 18400004 */ blez $v0, .L80243990
/* A2DBC0 80243980 ACC30004 */ sw $v1, 4($a2)
/* A2DBC4 80243984 30420FFF */ andi $v0, $v0, 0xfff
/* A2DBC8 80243988 00621025 */ or $v0, $v1, $v0
/* A2DBCC 8024398C ACC20004 */ sw $v0, 4($a2)
.L80243990:
/* A2DBD0 80243990 8D020000 */ lw $v0, ($t0)
/* A2DBD4 80243994 000D2940 */ sll $a1, $t5, 5
/* A2DBD8 80243998 0040182D */ daddu $v1, $v0, $zero
/* A2DBDC 8024399C 24420008 */ addiu $v0, $v0, 8
/* A2DBE0 802439A0 AD020000 */ sw $v0, ($t0)
/* A2DBE4 802439A4 3C02E100 */ lui $v0, 0xe100
/* A2DBE8 802439A8 AC620000 */ sw $v0, ($v1)
/* A2DBEC 802439AC 05C10007 */ bgez $t6, .L802439CC
/* A2DBF0 802439B0 24630004 */ addiu $v1, $v1, 4
/* A2DBF4 802439B4 001111C3 */ sra $v0, $s1, 7
/* A2DBF8 802439B8 5C400001 */ bgtzl $v0, .L802439C0
/* A2DBFC 802439BC 0000102D */ daddu $v0, $zero, $zero
.L802439C0:
/* A2DC00 802439C0 00021023 */ negu $v0, $v0
/* A2DC04 802439C4 08090E74 */ j .L802439D0
/* A2DC08 802439C8 00022400 */ sll $a0, $v0, 0x10
.L802439CC:
/* A2DC0C 802439CC 0000202D */ daddu $a0, $zero, $zero
.L802439D0:
/* A2DC10 802439D0 00091080 */ sll $v0, $t1, 2
/* A2DC14 802439D4 04410007 */ bgez $v0, .L802439F4
/* A2DC18 802439D8 30A2FFFF */ andi $v0, $a1, 0xffff
/* A2DC1C 802439DC 00091480 */ sll $v0, $t1, 0x12
/* A2DC20 802439E0 00021343 */ sra $v0, $v0, 0xd
/* A2DC24 802439E4 5C400001 */ bgtzl $v0, .L802439EC
/* A2DC28 802439E8 0000102D */ daddu $v0, $zero, $zero
.L802439EC:
/* A2DC2C 802439EC 00A21023 */ subu $v0, $a1, $v0
/* A2DC30 802439F0 3042FFFF */ andi $v0, $v0, 0xffff
.L802439F4:
/* A2DC34 802439F4 00821025 */ or $v0, $a0, $v0
/* A2DC38 802439F8 AC620000 */ sw $v0, ($v1)
/* A2DC3C 802439FC 3C040400 */ lui $a0, 0x400
/* A2DC40 80243A00 34840400 */ ori $a0, $a0, 0x400
/* A2DC44 80243A04 25290007 */ addiu $t1, $t1, 7
/* A2DC48 80243A08 25AD0007 */ addiu $t5, $t5, 7
/* A2DC4C 80243A0C 258C001C */ addiu $t4, $t4, 0x1c
/* A2DC50 80243A10 256B001C */ addiu $t3, $t3, 0x1c
/* A2DC54 80243A14 8D020000 */ lw $v0, ($t0)
/* A2DC58 80243A18 254A0001 */ addiu $t2, $t2, 1
/* A2DC5C 80243A1C 0040182D */ daddu $v1, $v0, $zero
/* A2DC60 80243A20 24420008 */ addiu $v0, $v0, 8
/* A2DC64 80243A24 AD020000 */ sw $v0, ($t0)
/* A2DC68 80243A28 3C02F100 */ lui $v0, 0xf100
/* A2DC6C 80243A2C AC620000 */ sw $v0, ($v1)
/* A2DC70 80243A30 29420017 */ slti $v0, $t2, 0x17
/* A2DC74 80243A34 1440FF8E */ bnez $v0, .L80243870
/* A2DC78 80243A38 AC640004 */ sw $a0, 4($v1)
/* A2DC7C 80243A3C 12A0008F */ beqz $s5, .L80243C7C
/* A2DC80 80243A40 3C03FD48 */ lui $v1, 0xfd48
/* A2DC84 80243A44 34630107 */ ori $v1, $v1, 0x107
/* A2DC88 80243A48 3C08F548 */ lui $t0, 0xf548
/* A2DC8C 80243A4C 35084200 */ ori $t0, $t0, 0x4200
/* A2DC90 80243A50 3C070741 */ lui $a3, 0x741
/* A2DC94 80243A54 34E7C000 */ ori $a3, $a3, 0xc000
/* A2DC98 80243A58 3C090041 */ lui $t1, 0x41
/* A2DC9C 80243A5C 3C05800A */ lui $a1, %hi(gMasterGfxPos)
/* A2DCA0 80243A60 24A5A66C */ addiu $a1, $a1, %lo(gMasterGfxPos)
/* A2DCA4 80243A64 8CA40000 */ lw $a0, ($a1)
/* A2DCA8 80243A68 3529C000 */ ori $t1, $t1, 0xc000
/* A2DCAC 80243A6C 0080102D */ daddu $v0, $a0, $zero
/* A2DCB0 80243A70 24840008 */ addiu $a0, $a0, 8
/* A2DCB4 80243A74 ACA40000 */ sw $a0, ($a1)
/* A2DCB8 80243A78 AC430000 */ sw $v1, ($v0)
/* A2DCBC 80243A7C AC500004 */ sw $s0, 4($v0)
/* A2DCC0 80243A80 24820008 */ addiu $v0, $a0, 8
/* A2DCC4 80243A84 ACA20000 */ sw $v0, ($a1)
/* A2DCC8 80243A88 3C020700 */ lui $v0, 0x700
/* A2DCCC 80243A8C AC820004 */ sw $v0, 4($a0)
/* A2DCD0 80243A90 24820010 */ addiu $v0, $a0, 0x10
/* A2DCD4 80243A94 AC880000 */ sw $t0, ($a0)
/* A2DCD8 80243A98 ACA20000 */ sw $v0, ($a1)
/* A2DCDC 80243A9C 3C02E600 */ lui $v0, 0xe600
/* A2DCE0 80243AA0 AC820008 */ sw $v0, 8($a0)
/* A2DCE4 80243AA4 24820018 */ addiu $v0, $a0, 0x18
/* A2DCE8 80243AA8 000A18C0 */ sll $v1, $t2, 3
/* A2DCEC 80243AAC 006A1823 */ subu $v1, $v1, $t2
/* A2DCF0 80243AB0 00033080 */ sll $a2, $v1, 2
/* A2DCF4 80243AB4 30C60FFF */ andi $a2, $a2, 0xfff
/* A2DCF8 80243AB8 AC80000C */ sw $zero, 0xc($a0)
/* A2DCFC 80243ABC ACA20000 */ sw $v0, ($a1)
/* A2DD00 80243AC0 3C02F400 */ lui $v0, 0xf400
/* A2DD04 80243AC4 00C21025 */ or $v0, $a2, $v0
/* A2DD08 80243AC8 00751821 */ addu $v1, $v1, $s5
/* A2DD0C 80243ACC 2463FFFF */ addiu $v1, $v1, -1
/* A2DD10 80243AD0 00031880 */ sll $v1, $v1, 2
/* A2DD14 80243AD4 30630FFF */ andi $v1, $v1, 0xfff
/* A2DD18 80243AD8 00673825 */ or $a3, $v1, $a3
/* A2DD1C 80243ADC AC820010 */ sw $v0, 0x10($a0)
/* A2DD20 80243AE0 24820020 */ addiu $v0, $a0, 0x20
/* A2DD24 80243AE4 AC870014 */ sw $a3, 0x14($a0)
/* A2DD28 80243AE8 ACA20000 */ sw $v0, ($a1)
/* A2DD2C 80243AEC 3C02E700 */ lui $v0, 0xe700
/* A2DD30 80243AF0 AC820018 */ sw $v0, 0x18($a0)
/* A2DD34 80243AF4 24820028 */ addiu $v0, $a0, 0x28
/* A2DD38 80243AF8 24870030 */ addiu $a3, $a0, 0x30
/* A2DD3C 80243AFC AC80001C */ sw $zero, 0x1c($a0)
/* A2DD40 80243B00 ACA20000 */ sw $v0, ($a1)
/* A2DD44 80243B04 3C02F200 */ lui $v0, 0xf200
/* A2DD48 80243B08 00C23025 */ or $a2, $a2, $v0
/* A2DD4C 80243B0C 00691825 */ or $v1, $v1, $t1
/* A2DD50 80243B10 AC880020 */ sw $t0, 0x20($a0)
/* A2DD54 80243B14 AC800024 */ sw $zero, 0x24($a0)
/* A2DD58 80243B18 ACA70000 */ sw $a3, ($a1)
/* A2DD5C 80243B1C AC860028 */ sw $a2, 0x28($a0)
/* A2DD60 80243B20 AC83002C */ sw $v1, 0x2c($a0)
/* A2DD64 80243B24 24840038 */ addiu $a0, $a0, 0x38
/* A2DD68 80243B28 27220108 */ addiu $v0, $t9, 0x108
/* A2DD6C 80243B2C 00021480 */ sll $v0, $v0, 0x12
/* A2DD70 80243B30 00021403 */ sra $v0, $v0, 0x10
/* A2DD74 80243B34 18400006 */ blez $v0, .L80243B50
/* A2DD78 80243B38 ACA40000 */ sw $a0, ($a1)
/* A2DD7C 80243B3C 30420FFF */ andi $v0, $v0, 0xfff
/* A2DD80 80243B40 00021300 */ sll $v0, $v0, 0xc
/* A2DD84 80243B44 3C03E400 */ lui $v1, 0xe400
/* A2DD88 80243B48 08090ED5 */ j .L80243B54
/* A2DD8C 80243B4C 00431825 */ or $v1, $v0, $v1
.L80243B50:
/* A2DD90 80243B50 3C03E400 */ lui $v1, 0xe400
.L80243B54:
/* A2DD94 80243B54 000A10C0 */ sll $v0, $t2, 3
/* A2DD98 80243B58 004A1023 */ subu $v0, $v0, $t2
/* A2DD9C 80243B5C 02821021 */ addu $v0, $s4, $v0
/* A2DDA0 80243B60 00551021 */ addu $v0, $v0, $s5
/* A2DDA4 80243B64 00021480 */ sll $v0, $v0, 0x12
/* A2DDA8 80243B68 00021403 */ sra $v0, $v0, 0x10
/* A2DDAC 80243B6C 18400004 */ blez $v0, .L80243B80
/* A2DDB0 80243B70 ACE30000 */ sw $v1, ($a3)
/* A2DDB4 80243B74 30420FFF */ andi $v0, $v0, 0xfff
/* A2DDB8 80243B78 00621025 */ or $v0, $v1, $v0
/* A2DDBC 80243B7C ACE20000 */ sw $v0, ($a3)
.L80243B80:
/* A2DDC0 80243B80 00191480 */ sll $v0, $t9, 0x12
/* A2DDC4 80243B84 00021403 */ sra $v0, $v0, 0x10
/* A2DDC8 80243B88 18400004 */ blez $v0, .L80243B9C
/* A2DDCC 80243B8C 24E70004 */ addiu $a3, $a3, 4
/* A2DDD0 80243B90 30420FFF */ andi $v0, $v0, 0xfff
/* A2DDD4 80243B94 08090EE8 */ j .L80243BA0
/* A2DDD8 80243B98 00021B00 */ sll $v1, $v0, 0xc
.L80243B9C:
/* A2DDDC 80243B9C 0000182D */ daddu $v1, $zero, $zero
.L80243BA0:
/* A2DDE0 80243BA0 000A10C0 */ sll $v0, $t2, 3
/* A2DDE4 80243BA4 004A2823 */ subu $a1, $v0, $t2
/* A2DDE8 80243BA8 02851021 */ addu $v0, $s4, $a1
/* A2DDEC 80243BAC 00021480 */ sll $v0, $v0, 0x12
/* A2DDF0 80243BB0 00021403 */ sra $v0, $v0, 0x10
/* A2DDF4 80243BB4 18400004 */ blez $v0, .L80243BC8
/* A2DDF8 80243BB8 ACE30000 */ sw $v1, ($a3)
/* A2DDFC 80243BBC 30420FFF */ andi $v0, $v0, 0xfff
/* A2DE00 80243BC0 00621025 */ or $v0, $v1, $v0
/* A2DE04 80243BC4 ACE20000 */ sw $v0, ($a3)
.L80243BC8:
/* A2DE08 80243BC8 3C03800A */ lui $v1, %hi(gMasterGfxPos)
/* A2DE0C 80243BCC 2463A66C */ addiu $v1, $v1, %lo(gMasterGfxPos)
/* A2DE10 80243BD0 8C620000 */ lw $v0, ($v1)
/* A2DE14 80243BD4 00053140 */ sll $a2, $a1, 5
/* A2DE18 80243BD8 0040202D */ daddu $a0, $v0, $zero
/* A2DE1C 80243BDC 24420008 */ addiu $v0, $v0, 8
/* A2DE20 80243BE0 AC620000 */ sw $v0, ($v1)
/* A2DE24 80243BE4 3C02E100 */ lui $v0, 0xe100
/* A2DE28 80243BE8 AC820000 */ sw $v0, ($a0)
/* A2DE2C 80243BEC 00191480 */ sll $v0, $t9, 0x12
/* A2DE30 80243BF0 00021403 */ sra $v0, $v0, 0x10
/* A2DE34 80243BF4 04410007 */ bgez $v0, .L80243C14
/* A2DE38 80243BF8 24840004 */ addiu $a0, $a0, 4
/* A2DE3C 80243BFC 000210C0 */ sll $v0, $v0, 3
/* A2DE40 80243C00 5C400001 */ bgtzl $v0, .L80243C08
/* A2DE44 80243C04 0000102D */ daddu $v0, $zero, $zero
.L80243C08:
/* A2DE48 80243C08 00021023 */ negu $v0, $v0
/* A2DE4C 80243C0C 08090F06 */ j .L80243C18
/* A2DE50 80243C10 00021C00 */ sll $v1, $v0, 0x10
.L80243C14:
/* A2DE54 80243C14 0000182D */ daddu $v1, $zero, $zero
.L80243C18:
/* A2DE58 80243C18 000A10C0 */ sll $v0, $t2, 3
/* A2DE5C 80243C1C 004A1023 */ subu $v0, $v0, $t2
/* A2DE60 80243C20 02822821 */ addu $a1, $s4, $v0
/* A2DE64 80243C24 00051080 */ sll $v0, $a1, 2
/* A2DE68 80243C28 04410007 */ bgez $v0, .L80243C48
/* A2DE6C 80243C2C 30C2FFFF */ andi $v0, $a2, 0xffff
/* A2DE70 80243C30 00051480 */ sll $v0, $a1, 0x12
/* A2DE74 80243C34 00021343 */ sra $v0, $v0, 0xd
/* A2DE78 80243C38 5C400001 */ bgtzl $v0, .L80243C40
/* A2DE7C 80243C3C 0000102D */ daddu $v0, $zero, $zero
.L80243C40:
/* A2DE80 80243C40 00C21023 */ subu $v0, $a2, $v0
/* A2DE84 80243C44 3042FFFF */ andi $v0, $v0, 0xffff
.L80243C48:
/* A2DE88 80243C48 00621025 */ or $v0, $v1, $v0
/* A2DE8C 80243C4C AC820000 */ sw $v0, ($a0)
/* A2DE90 80243C50 3C050400 */ lui $a1, 0x400
/* A2DE94 80243C54 3C03800A */ lui $v1, %hi(gMasterGfxPos)
/* A2DE98 80243C58 2463A66C */ addiu $v1, $v1, %lo(gMasterGfxPos)
/* A2DE9C 80243C5C 8C620000 */ lw $v0, ($v1)
/* A2DEA0 80243C60 34A50400 */ ori $a1, $a1, 0x400
/* A2DEA4 80243C64 0040202D */ daddu $a0, $v0, $zero
/* A2DEA8 80243C68 24420008 */ addiu $v0, $v0, 8
/* A2DEAC 80243C6C AC620000 */ sw $v0, ($v1)
/* A2DEB0 80243C70 3C02F100 */ lui $v0, 0xf100
/* A2DEB4 80243C74 AC820000 */ sw $v0, ($a0)
/* A2DEB8 80243C78 AC850004 */ sw $a1, 4($a0)
.L80243C7C:
/* A2DEBC 80243C7C 3C03800A */ lui $v1, %hi(gMasterGfxPos)
/* A2DEC0 80243C80 2463A66C */ addiu $v1, $v1, %lo(gMasterGfxPos)
/* A2DEC4 80243C84 8C620000 */ lw $v0, ($v1)
/* A2DEC8 80243C88 0040202D */ daddu $a0, $v0, $zero
/* A2DECC 80243C8C 24420008 */ addiu $v0, $v0, 8
/* A2DED0 80243C90 AC620000 */ sw $v0, ($v1)
/* A2DED4 80243C94 3C02E700 */ lui $v0, 0xe700
/* A2DED8 80243C98 AC820000 */ sw $v0, ($a0)
/* A2DEDC 80243C9C AC800004 */ sw $zero, 4($a0)
/* A2DEE0 80243CA0 8FB50014 */ lw $s5, 0x14($sp)
/* A2DEE4 80243CA4 8FB40010 */ lw $s4, 0x10($sp)
/* A2DEE8 80243CA8 8FB3000C */ lw $s3, 0xc($sp)
/* A2DEEC 80243CAC 8FB20008 */ lw $s2, 8($sp)
/* A2DEF0 80243CB0 8FB10004 */ lw $s1, 4($sp)
/* A2DEF4 80243CB4 8FB00000 */ lw $s0, ($sp)
/* A2DEF8 80243CB8 03E00008 */ jr $ra
/* A2DEFC 80243CBC 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,389 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80240160_8AA5B0
/* 8AA5B0 80240160 27BDFFB0 */ addiu $sp, $sp, -0x50
/* 8AA5B4 80240164 AFB70044 */ sw $s7, 0x44($sp)
/* 8AA5B8 80240168 0080B82D */ daddu $s7, $a0, $zero
/* 8AA5BC 8024016C 3C028024 */ lui $v0, %hi(kgr_02_D_80240970_8AADC0)
/* 8AA5C0 80240170 24420970 */ addiu $v0, $v0, %lo(kgr_02_D_80240970_8AADC0)
/* 8AA5C4 80240174 AFBF004C */ sw $ra, 0x4c($sp)
/* 8AA5C8 80240178 AFBE0048 */ sw $fp, 0x48($sp)
/* 8AA5CC 8024017C AFB60040 */ sw $s6, 0x40($sp)
/* 8AA5D0 80240180 AFB5003C */ sw $s5, 0x3c($sp)
/* 8AA5D4 80240184 AFB40038 */ sw $s4, 0x38($sp)
/* 8AA5D8 80240188 AFB30034 */ sw $s3, 0x34($sp)
/* 8AA5DC 8024018C AFB20030 */ sw $s2, 0x30($sp)
/* 8AA5E0 80240190 AFB1002C */ sw $s1, 0x2c($sp)
/* 8AA5E4 80240194 AFB00028 */ sw $s0, 0x28($sp)
/* 8AA5E8 80240198 AFA50054 */ sw $a1, 0x54($sp)
/* 8AA5EC 8024019C 8C430000 */ lw $v1, ($v0)
/* 8AA5F0 802401A0 00C0B02D */ daddu $s6, $a2, $zero
/* 8AA5F4 802401A4 24630005 */ addiu $v1, $v1, 5
/* 8AA5F8 802401A8 AC430000 */ sw $v1, ($v0)
/* 8AA5FC 802401AC 02F6102A */ slt $v0, $s7, $s6
/* 8AA600 802401B0 10400152 */ beqz $v0, .L802406FC
/* 8AA604 802401B4 00000000 */ nop
/* 8AA608 802401B8 8FAC0054 */ lw $t4, 0x54($sp)
/* 8AA60C 802401BC 0187102A */ slt $v0, $t4, $a3
/* 8AA610 802401C0 1040014E */ beqz $v0, .L802406FC
/* 8AA614 802401C4 00000000 */ nop
/* 8AA618 802401C8 06E20001 */ bltzl $s7, .L802401D0
/* 8AA61C 802401CC 0000B82D */ daddu $s7, $zero, $zero
.L802401D0:
/* 8AA620 802401D0 8FAD0054 */ lw $t5, 0x54($sp)
/* 8AA624 802401D4 05A20001 */ bltzl $t5, .L802401DC
/* 8AA628 802401D8 AFA00054 */ sw $zero, 0x54($sp)
.L802401DC:
/* 8AA62C 802401DC 06C20001 */ bltzl $s6, .L802401E4
/* 8AA630 802401E0 0000B02D */ daddu $s6, $zero, $zero
.L802401E4:
/* 8AA634 802401E4 04E20001 */ bltzl $a3, .L802401EC
/* 8AA638 802401E8 0000382D */ daddu $a3, $zero, $zero
.L802401EC:
/* 8AA63C 802401EC 2AE20140 */ slti $v0, $s7, 0x140
/* 8AA640 802401F0 50400001 */ beql $v0, $zero, .L802401F8
/* 8AA644 802401F4 2417013F */ addiu $s7, $zero, 0x13f
.L802401F8:
/* 8AA648 802401F8 8FAC0054 */ lw $t4, 0x54($sp)
/* 8AA64C 802401FC 298200F0 */ slti $v0, $t4, 0xf0
/* 8AA650 80240200 14400003 */ bnez $v0, .L80240210
/* 8AA654 80240204 2AC20140 */ slti $v0, $s6, 0x140
/* 8AA658 80240208 240D00EF */ addiu $t5, $zero, 0xef
/* 8AA65C 8024020C AFAD0054 */ sw $t5, 0x54($sp)
.L80240210:
/* 8AA660 80240210 50400001 */ beql $v0, $zero, .L80240218
/* 8AA664 80240214 2416013F */ addiu $s6, $zero, 0x13f
.L80240218:
/* 8AA668 80240218 28E200F0 */ slti $v0, $a3, 0xf0
/* 8AA66C 8024021C 50400001 */ beql $v0, $zero, .L80240224
/* 8AA670 80240220 240700EF */ addiu $a3, $zero, 0xef
.L80240224:
/* 8AA674 80240224 12F60135 */ beq $s7, $s6, .L802406FC
/* 8AA678 80240228 00000000 */ nop
/* 8AA67C 8024022C 8FAC0054 */ lw $t4, 0x54($sp)
/* 8AA680 80240230 11870132 */ beq $t4, $a3, .L802406FC
/* 8AA684 80240234 00000000 */ nop
/* 8AA688 80240238 06E10002 */ bgez $s7, .L80240244
/* 8AA68C 8024023C 02E0102D */ daddu $v0, $s7, $zero
/* 8AA690 80240240 26E20003 */ addiu $v0, $s7, 3
.L80240244:
/* 8AA694 80240244 00021083 */ sra $v0, $v0, 2
/* 8AA698 80240248 0002B880 */ sll $s7, $v0, 2
/* 8AA69C 8024024C 06C10002 */ bgez $s6, .L80240258
/* 8AA6A0 80240250 02C0102D */ daddu $v0, $s6, $zero
/* 8AA6A4 80240254 26C20003 */ addiu $v0, $s6, 3
.L80240258:
/* 8AA6A8 80240258 00021083 */ sra $v0, $v0, 2
/* 8AA6AC 8024025C 00021080 */ sll $v0, $v0, 2
/* 8AA6B0 80240260 24560004 */ addiu $s6, $v0, 4
/* 8AA6B4 80240264 3C052AAA */ lui $a1, 0x2aaa
/* 8AA6B8 80240268 34A5AAAB */ ori $a1, $a1, 0xaaab
/* 8AA6BC 8024026C 3C06800A */ lui $a2, %hi(gMasterGfxPos)
/* 8AA6C0 80240270 24C6A66C */ addiu $a2, $a2, %lo(gMasterGfxPos)
/* 8AA6C4 80240274 8CC20000 */ lw $v0, ($a2)
/* 8AA6C8 80240278 0000F02D */ daddu $fp, $zero, $zero
/* 8AA6CC 8024027C 0040202D */ daddu $a0, $v0, $zero
/* 8AA6D0 80240280 24420008 */ addiu $v0, $v0, 8
/* 8AA6D4 80240284 ACC20000 */ sw $v0, ($a2)
/* 8AA6D8 80240288 8FAD0054 */ lw $t5, 0x54($sp)
/* 8AA6DC 8024028C 3C02FA00 */ lui $v0, 0xfa00
/* 8AA6E0 80240290 00ED1823 */ subu $v1, $a3, $t5
/* 8AA6E4 80240294 00650018 */ mult $v1, $a1
/* 8AA6E8 80240298 AC820000 */ sw $v0, ($a0)
/* 8AA6EC 8024029C 2402FFFF */ addiu $v0, $zero, -1
/* 8AA6F0 802402A0 AC820004 */ sw $v0, 4($a0)
/* 8AA6F4 802402A4 000317C3 */ sra $v0, $v1, 0x1f
/* 8AA6F8 802402A8 00006010 */ mfhi $t4
/* 8AA6FC 802402AC 01826023 */ subu $t4, $t4, $v0
/* 8AA700 802402B0 AFAC0014 */ sw $t4, 0x14($sp)
/* 8AA704 802402B4 0180682D */ daddu $t5, $t4, $zero
/* 8AA708 802402B8 000D1040 */ sll $v0, $t5, 1
/* 8AA70C 802402BC 004D1021 */ addu $v0, $v0, $t5
/* 8AA710 802402C0 00021040 */ sll $v0, $v0, 1
/* 8AA714 802402C4 3C0C800A */ lui $t4, %hi(nuGfxCfb_ptr)
/* 8AA718 802402C8 8D8CA64C */ lw $t4, %lo(nuGfxCfb_ptr)($t4)
/* 8AA71C 802402CC 00621823 */ subu $v1, $v1, $v0
/* 8AA720 802402D0 AFAD0010 */ sw $t5, 0x10($sp)
/* 8AA724 802402D4 AFA30014 */ sw $v1, 0x14($sp)
/* 8AA728 802402D8 19A00099 */ blez $t5, .L80240540
/* 8AA72C 802402DC AFAC0018 */ sw $t4, 0x18($sp)
/* 8AA730 802402E0 00C0A02D */ daddu $s4, $a2, $zero
/* 8AA734 802402E4 02D71023 */ subu $v0, $s6, $s7
/* 8AA738 802402E8 00021040 */ sll $v0, $v0, 1
/* 8AA73C 802402EC 24420007 */ addiu $v0, $v0, 7
/* 8AA740 802402F0 000210C3 */ sra $v0, $v0, 3
/* 8AA744 802402F4 304201FF */ andi $v0, $v0, 0x1ff
/* 8AA748 802402F8 00021240 */ sll $v0, $v0, 9
/* 8AA74C 802402FC 3C03F510 */ lui $v1, 0xf510
/* 8AA750 80240300 00431025 */ or $v0, $v0, $v1
/* 8AA754 80240304 AFA2001C */ sw $v0, 0x1c($sp)
/* 8AA758 80240308 26E20200 */ addiu $v0, $s7, 0x200
/* 8AA75C 8024030C 8FB50054 */ lw $s5, 0x54($sp)
/* 8AA760 80240310 00021080 */ sll $v0, $v0, 2
/* 8AA764 80240314 AFA20020 */ sw $v0, 0x20($sp)
/* 8AA768 80240318 AFA00024 */ sw $zero, 0x24($sp)
/* 8AA76C 8024031C 3C03FD10 */ lui $v1, 0xfd10
.L80240320:
/* 8AA770 80240320 3463013F */ ori $v1, $v1, 0x13f
/* 8AA774 80240324 8E820000 */ lw $v0, ($s4)
/* 8AA778 80240328 8FA40018 */ lw $a0, 0x18($sp)
/* 8AA77C 8024032C 0040802D */ daddu $s0, $v0, $zero
/* 8AA780 80240330 24420008 */ addiu $v0, $v0, 8
/* 8AA784 80240334 AE820000 */ sw $v0, ($s4)
/* 8AA788 80240338 0C0187A4 */ jal osVirtualToPhysical
/* 8AA78C 8024033C AE030000 */ sw $v1, ($s0)
/* 8AA790 80240340 3C040700 */ lui $a0, 0x700
/* 8AA794 80240344 8E830000 */ lw $v1, ($s4)
/* 8AA798 80240348 34840090 */ ori $a0, $a0, 0x90
/* 8AA79C 8024034C AE020004 */ sw $v0, 4($s0)
/* 8AA7A0 80240350 00178080 */ sll $s0, $s7, 2
/* 8AA7A4 80240354 32100FFF */ andi $s0, $s0, 0xfff
/* 8AA7A8 80240358 00108300 */ sll $s0, $s0, 0xc
/* 8AA7AC 8024035C 00159080 */ sll $s2, $s5, 2
/* 8AA7B0 80240360 32530FFF */ andi $s3, $s2, 0xfff
/* 8AA7B4 80240364 26A50005 */ addiu $a1, $s5, 5
/* 8AA7B8 80240368 00052880 */ sll $a1, $a1, 2
/* 8AA7BC 8024036C 30A50FFF */ andi $a1, $a1, 0xfff
/* 8AA7C0 80240370 3C11F200 */ lui $s1, 0xf200
/* 8AA7C4 80240374 0060102D */ daddu $v0, $v1, $zero
/* 8AA7C8 80240378 24630008 */ addiu $v1, $v1, 8
/* 8AA7CC 8024037C AE830000 */ sw $v1, ($s4)
/* 8AA7D0 80240380 8FAD001C */ lw $t5, 0x1c($sp)
/* 8AA7D4 80240384 02718825 */ or $s1, $s3, $s1
/* 8AA7D8 80240388 AC440004 */ sw $a0, 4($v0)
/* 8AA7DC 8024038C 26C4FFFF */ addiu $a0, $s6, -1
/* 8AA7E0 80240390 00042080 */ sll $a0, $a0, 2
/* 8AA7E4 80240394 30840FFF */ andi $a0, $a0, 0xfff
/* 8AA7E8 80240398 00042300 */ sll $a0, $a0, 0xc
/* 8AA7EC 8024039C AC4D0000 */ sw $t5, ($v0)
/* 8AA7F0 802403A0 24620008 */ addiu $v0, $v1, 8
/* 8AA7F4 802403A4 AE820000 */ sw $v0, ($s4)
/* 8AA7F8 802403A8 3C02E600 */ lui $v0, 0xe600
/* 8AA7FC 802403AC AC620000 */ sw $v0, ($v1)
/* 8AA800 802403B0 24620010 */ addiu $v0, $v1, 0x10
/* 8AA804 802403B4 AC600004 */ sw $zero, 4($v1)
/* 8AA808 802403B8 AE820000 */ sw $v0, ($s4)
/* 8AA80C 802403BC 3C02F400 */ lui $v0, 0xf400
/* 8AA810 802403C0 02621025 */ or $v0, $s3, $v0
/* 8AA814 802403C4 02021025 */ or $v0, $s0, $v0
/* 8AA818 802403C8 AC620008 */ sw $v0, 8($v1)
/* 8AA81C 802403CC 3C020700 */ lui $v0, 0x700
/* 8AA820 802403D0 00A21025 */ or $v0, $a1, $v0
/* 8AA824 802403D4 00821025 */ or $v0, $a0, $v0
/* 8AA828 802403D8 AC62000C */ sw $v0, 0xc($v1)
/* 8AA82C 802403DC 24620018 */ addiu $v0, $v1, 0x18
/* 8AA830 802403E0 AE820000 */ sw $v0, ($s4)
/* 8AA834 802403E4 3C02E700 */ lui $v0, 0xe700
/* 8AA838 802403E8 AC620010 */ sw $v0, 0x10($v1)
/* 8AA83C 802403EC 24620020 */ addiu $v0, $v1, 0x20
/* 8AA840 802403F0 AC600014 */ sw $zero, 0x14($v1)
/* 8AA844 802403F4 AE820000 */ sw $v0, ($s4)
/* 8AA848 802403F8 24020090 */ addiu $v0, $zero, 0x90
/* 8AA84C 802403FC AC62001C */ sw $v0, 0x1c($v1)
/* 8AA850 80240400 24620028 */ addiu $v0, $v1, 0x28
/* 8AA854 80240404 AC6D0018 */ sw $t5, 0x18($v1)
/* 8AA858 80240408 AE820000 */ sw $v0, ($s4)
/* 8AA85C 8024040C 02111025 */ or $v0, $s0, $s1
/* 8AA860 80240410 AC620020 */ sw $v0, 0x20($v1)
/* 8AA864 80240414 3C028024 */ lui $v0, %hi(kgr_02_D_80240970_8AADC0)
/* 8AA868 80240418 8C420970 */ lw $v0, %lo(kgr_02_D_80240970_8AADC0)($v0)
/* 8AA86C 8024041C 00852025 */ or $a0, $a0, $a1
/* 8AA870 80240420 AC640024 */ sw $a0, 0x24($v1)
/* 8AA874 80240424 8FAC0024 */ lw $t4, 0x24($sp)
/* 8AA878 80240428 004C1021 */ addu $v0, $v0, $t4
/* 8AA87C 8024042C 44826000 */ mtc1 $v0, $f12
/* 8AA880 80240430 00000000 */ nop
/* 8AA884 80240434 46806320 */ cvt.s.w $f12, $f12
/* 8AA888 80240438 0C00A8BB */ jal sin_deg
/* 8AA88C 8024043C 26520014 */ addiu $s2, $s2, 0x14
/* 8AA890 80240440 3C070400 */ lui $a3, 0x400
/* 8AA894 80240444 34E70400 */ ori $a3, $a3, 0x400
/* 8AA898 80240448 26A20006 */ addiu $v0, $s5, 6
/* 8AA89C 8024044C 00153140 */ sll $a2, $s5, 5
/* 8AA8A0 80240450 0040A82D */ daddu $s5, $v0, $zero
/* 8AA8A4 80240454 32520FFF */ andi $s2, $s2, 0xfff
/* 8AA8A8 80240458 02138025 */ or $s0, $s0, $s3
/* 8AA8AC 8024045C 8FAD0024 */ lw $t5, 0x24($sp)
/* 8AA8B0 80240460 3C014080 */ lui $at, 0x4080
/* 8AA8B4 80240464 44811000 */ mtc1 $at, $f2
/* 8AA8B8 80240468 25AD001E */ addiu $t5, $t5, 0x1e
/* 8AA8BC 8024046C AFAD0024 */ sw $t5, 0x24($sp)
/* 8AA8C0 80240470 8E850000 */ lw $a1, ($s4)
/* 8AA8C4 80240474 46020002 */ mul.s $f0, $f0, $f2
/* 8AA8C8 80240478 00000000 */ nop
/* 8AA8CC 8024047C 00A0202D */ daddu $a0, $a1, $zero
/* 8AA8D0 80240480 24A50008 */ addiu $a1, $a1, 8
/* 8AA8D4 80240484 24A20008 */ addiu $v0, $a1, 8
/* 8AA8D8 80240488 AE850000 */ sw $a1, ($s4)
/* 8AA8DC 8024048C AE820000 */ sw $v0, ($s4)
/* 8AA8E0 80240490 4600010D */ trunc.w.s $f4, $f0
/* 8AA8E4 80240494 44022000 */ mfc1 $v0, $f4
/* 8AA8E8 80240498 8FAC0060 */ lw $t4, 0x60($sp)
/* 8AA8EC 8024049C 30C6FFFF */ andi $a2, $a2, 0xffff
/* 8AA8F0 802404A0 01820018 */ mult $t4, $v0
/* 8AA8F4 802404A4 24A20010 */ addiu $v0, $a1, 0x10
/* 8AA8F8 802404A8 AE820000 */ sw $v0, ($s4)
/* 8AA8FC 802404AC 24A20018 */ addiu $v0, $a1, 0x18
/* 8AA900 802404B0 AE820000 */ sw $v0, ($s4)
/* 8AA904 802404B4 8FAD0020 */ lw $t5, 0x20($sp)
/* 8AA908 802404B8 00006012 */ mflo $t4
/* 8AA90C 802404BC 01AC1821 */ addu $v1, $t5, $t4
/* 8AA910 802404C0 30620FFF */ andi $v0, $v1, 0xfff
/* 8AA914 802404C4 00021300 */ sll $v0, $v0, 0xc
/* 8AA918 802404C8 00511025 */ or $v0, $v0, $s1
/* 8AA91C 802404CC 24630800 */ addiu $v1, $v1, 0x800
/* 8AA920 802404D0 30630FFF */ andi $v1, $v1, 0xfff
/* 8AA924 802404D4 00031B00 */ sll $v1, $v1, 0xc
/* 8AA928 802404D8 00721825 */ or $v1, $v1, $s2
/* 8AA92C 802404DC AC830004 */ sw $v1, 4($a0)
/* 8AA930 802404E0 00161880 */ sll $v1, $s6, 2
/* 8AA934 802404E4 30630FFF */ andi $v1, $v1, 0xfff
/* 8AA938 802404E8 00031B00 */ sll $v1, $v1, 0xc
/* 8AA93C 802404EC AC820000 */ sw $v0, ($a0)
/* 8AA940 802404F0 00151080 */ sll $v0, $s5, 2
/* 8AA944 802404F4 30420FFF */ andi $v0, $v0, 0xfff
/* 8AA948 802404F8 3C04E400 */ lui $a0, 0xe400
/* 8AA94C 802404FC 00441025 */ or $v0, $v0, $a0
/* 8AA950 80240500 00621825 */ or $v1, $v1, $v0
/* 8AA954 80240504 3C02E100 */ lui $v0, 0xe100
/* 8AA958 80240508 ACA20008 */ sw $v0, 8($a1)
/* 8AA95C 8024050C 00171540 */ sll $v0, $s7, 0x15
/* 8AA960 80240510 00461025 */ or $v0, $v0, $a2
/* 8AA964 80240514 ACA2000C */ sw $v0, 0xc($a1)
/* 8AA968 80240518 3C02F100 */ lui $v0, 0xf100
/* 8AA96C 8024051C ACA30000 */ sw $v1, ($a1)
/* 8AA970 80240520 ACB00004 */ sw $s0, 4($a1)
/* 8AA974 80240524 ACA20010 */ sw $v0, 0x10($a1)
/* 8AA978 80240528 ACA70014 */ sw $a3, 0x14($a1)
/* 8AA97C 8024052C 8FAD0010 */ lw $t5, 0x10($sp)
/* 8AA980 80240530 27DE0001 */ addiu $fp, $fp, 1
/* 8AA984 80240534 03CD102A */ slt $v0, $fp, $t5
/* 8AA988 80240538 1440FF79 */ bnez $v0, .L80240320
/* 8AA98C 8024053C 3C03FD10 */ lui $v1, 0xfd10
.L80240540:
/* 8AA990 80240540 8FAC0014 */ lw $t4, 0x14($sp)
/* 8AA994 80240544 1180006D */ beqz $t4, .L802406FC
/* 8AA998 80240548 3C03FD10 */ lui $v1, 0xfd10
/* 8AA99C 8024054C 3463013F */ ori $v1, $v1, 0x13f
/* 8AA9A0 80240550 3C10800A */ lui $s0, %hi(gMasterGfxPos)
/* 8AA9A4 80240554 2610A66C */ addiu $s0, $s0, %lo(gMasterGfxPos)
/* 8AA9A8 80240558 8E020000 */ lw $v0, ($s0)
/* 8AA9AC 8024055C 8FA40018 */ lw $a0, 0x18($sp)
/* 8AA9B0 80240560 0040882D */ daddu $s1, $v0, $zero
/* 8AA9B4 80240564 24420008 */ addiu $v0, $v0, 8
/* 8AA9B8 80240568 AE020000 */ sw $v0, ($s0)
/* 8AA9BC 8024056C 0C0187A4 */ jal osVirtualToPhysical
/* 8AA9C0 80240570 AE230000 */ sw $v1, ($s1)
/* 8AA9C4 80240574 3C060700 */ lui $a2, 0x700
/* 8AA9C8 80240578 34C60090 */ ori $a2, $a2, 0x90
/* 8AA9CC 8024057C 3C0B0400 */ lui $t3, 0x400
/* 8AA9D0 80240580 356B0400 */ ori $t3, $t3, 0x400
/* 8AA9D4 80240584 02D72823 */ subu $a1, $s6, $s7
/* 8AA9D8 80240588 00052840 */ sll $a1, $a1, 1
/* 8AA9DC 8024058C 24A50007 */ addiu $a1, $a1, 7
/* 8AA9E0 80240590 000528C3 */ sra $a1, $a1, 3
/* 8AA9E4 80240594 30A501FF */ andi $a1, $a1, 0x1ff
/* 8AA9E8 80240598 8E040000 */ lw $a0, ($s0)
/* 8AA9EC 8024059C 00052A40 */ sll $a1, $a1, 9
/* 8AA9F0 802405A0 AE220004 */ sw $v0, 4($s1)
/* 8AA9F4 802405A4 3C02F510 */ lui $v0, 0xf510
/* 8AA9F8 802405A8 00A22825 */ or $a1, $a1, $v0
/* 8AA9FC 802405AC 00174880 */ sll $t1, $s7, 2
/* 8AAA00 802405B0 31290FFF */ andi $t1, $t1, 0xfff
/* 8AAA04 802405B4 00094B00 */ sll $t1, $t1, 0xc
/* 8AAA08 802405B8 001E3840 */ sll $a3, $fp, 1
/* 8AAA0C 802405BC 00FE3821 */ addu $a3, $a3, $fp
/* 8AAA10 802405C0 00073840 */ sll $a3, $a3, 1
/* 8AAA14 802405C4 0080182D */ daddu $v1, $a0, $zero
/* 8AAA18 802405C8 24840008 */ addiu $a0, $a0, 8
/* 8AAA1C 802405CC 24820008 */ addiu $v0, $a0, 8
/* 8AAA20 802405D0 AE040000 */ sw $a0, ($s0)
/* 8AAA24 802405D4 AC650000 */ sw $a1, ($v1)
/* 8AAA28 802405D8 AC660004 */ sw $a2, 4($v1)
/* 8AAA2C 802405DC AE020000 */ sw $v0, ($s0)
/* 8AAA30 802405E0 3C02E600 */ lui $v0, 0xe600
/* 8AAA34 802405E4 AC820000 */ sw $v0, ($a0)
/* 8AAA38 802405E8 24820010 */ addiu $v0, $a0, 0x10
/* 8AAA3C 802405EC AC800004 */ sw $zero, 4($a0)
/* 8AAA40 802405F0 AE020000 */ sw $v0, ($s0)
/* 8AAA44 802405F4 3C02F400 */ lui $v0, 0xf400
/* 8AAA48 802405F8 26C3FFFF */ addiu $v1, $s6, -1
/* 8AAA4C 802405FC 00031880 */ sll $v1, $v1, 2
/* 8AAA50 80240600 30630FFF */ andi $v1, $v1, 0xfff
/* 8AAA54 80240604 8FAD0054 */ lw $t5, 0x54($sp)
/* 8AAA58 80240608 00031B00 */ sll $v1, $v1, 0xc
/* 8AAA5C 8024060C 01A73821 */ addu $a3, $t5, $a3
/* 8AAA60 80240610 00075080 */ sll $t2, $a3, 2
/* 8AAA64 80240614 314A0FFF */ andi $t2, $t2, 0xfff
/* 8AAA68 80240618 01421025 */ or $v0, $t2, $v0
/* 8AAA6C 8024061C 01221025 */ or $v0, $t1, $v0
/* 8AAA70 80240620 AC820008 */ sw $v0, 8($a0)
/* 8AAA74 80240624 8FAC0014 */ lw $t4, 0x14($sp)
/* 8AAA78 80240628 3C020700 */ lui $v0, 0x700
/* 8AAA7C 8024062C 00EC3021 */ addu $a2, $a3, $t4
/* 8AAA80 80240630 24C8FFFF */ addiu $t0, $a2, -1
/* 8AAA84 80240634 00084080 */ sll $t0, $t0, 2
/* 8AAA88 80240638 31080FFF */ andi $t0, $t0, 0xfff
/* 8AAA8C 8024063C 01021025 */ or $v0, $t0, $v0
/* 8AAA90 80240640 00621025 */ or $v0, $v1, $v0
/* 8AAA94 80240644 AC82000C */ sw $v0, 0xc($a0)
/* 8AAA98 80240648 24820018 */ addiu $v0, $a0, 0x18
/* 8AAA9C 8024064C AE020000 */ sw $v0, ($s0)
/* 8AAAA0 80240650 3C02E700 */ lui $v0, 0xe700
/* 8AAAA4 80240654 AC820010 */ sw $v0, 0x10($a0)
/* 8AAAA8 80240658 24820020 */ addiu $v0, $a0, 0x20
/* 8AAAAC 8024065C AC800014 */ sw $zero, 0x14($a0)
/* 8AAAB0 80240660 AE020000 */ sw $v0, ($s0)
/* 8AAAB4 80240664 24020090 */ addiu $v0, $zero, 0x90
/* 8AAAB8 80240668 AC82001C */ sw $v0, 0x1c($a0)
/* 8AAABC 8024066C 24820028 */ addiu $v0, $a0, 0x28
/* 8AAAC0 80240670 AC850018 */ sw $a1, 0x18($a0)
/* 8AAAC4 80240674 AE020000 */ sw $v0, ($s0)
/* 8AAAC8 80240678 3C02F200 */ lui $v0, 0xf200
/* 8AAACC 8024067C 01421025 */ or $v0, $t2, $v0
/* 8AAAD0 80240680 01221025 */ or $v0, $t1, $v0
/* 8AAAD4 80240684 00681825 */ or $v1, $v1, $t0
/* 8AAAD8 80240688 AC820020 */ sw $v0, 0x20($a0)
/* 8AAADC 8024068C 24820030 */ addiu $v0, $a0, 0x30
/* 8AAAE0 80240690 AC830024 */ sw $v1, 0x24($a0)
/* 8AAAE4 80240694 AE020000 */ sw $v0, ($s0)
/* 8AAAE8 80240698 00161080 */ sll $v0, $s6, 2
/* 8AAAEC 8024069C 30420FFF */ andi $v0, $v0, 0xfff
/* 8AAAF0 802406A0 00021300 */ sll $v0, $v0, 0xc
/* 8AAAF4 802406A4 00063080 */ sll $a2, $a2, 2
/* 8AAAF8 802406A8 30C60FFF */ andi $a2, $a2, 0xfff
/* 8AAAFC 802406AC 3C03E400 */ lui $v1, 0xe400
/* 8AAB00 802406B0 00C33025 */ or $a2, $a2, $v1
/* 8AAB04 802406B4 00461025 */ or $v0, $v0, $a2
/* 8AAB08 802406B8 012A4825 */ or $t1, $t1, $t2
/* 8AAB0C 802406BC AC820028 */ sw $v0, 0x28($a0)
/* 8AAB10 802406C0 24820038 */ addiu $v0, $a0, 0x38
/* 8AAB14 802406C4 AC89002C */ sw $t1, 0x2c($a0)
/* 8AAB18 802406C8 AE020000 */ sw $v0, ($s0)
/* 8AAB1C 802406CC 3C02E100 */ lui $v0, 0xe100
/* 8AAB20 802406D0 AC820030 */ sw $v0, 0x30($a0)
/* 8AAB24 802406D4 00171540 */ sll $v0, $s7, 0x15
/* 8AAB28 802406D8 00073940 */ sll $a3, $a3, 5
/* 8AAB2C 802406DC 30E7FFFF */ andi $a3, $a3, 0xffff
/* 8AAB30 802406E0 00471025 */ or $v0, $v0, $a3
/* 8AAB34 802406E4 AC820034 */ sw $v0, 0x34($a0)
/* 8AAB38 802406E8 24820040 */ addiu $v0, $a0, 0x40
/* 8AAB3C 802406EC AE020000 */ sw $v0, ($s0)
/* 8AAB40 802406F0 3C02F100 */ lui $v0, 0xf100
/* 8AAB44 802406F4 AC820038 */ sw $v0, 0x38($a0)
/* 8AAB48 802406F8 AC8B003C */ sw $t3, 0x3c($a0)
.L802406FC:
/* 8AAB4C 802406FC 8FBF004C */ lw $ra, 0x4c($sp)
/* 8AAB50 80240700 8FBE0048 */ lw $fp, 0x48($sp)
/* 8AAB54 80240704 8FB70044 */ lw $s7, 0x44($sp)
/* 8AAB58 80240708 8FB60040 */ lw $s6, 0x40($sp)
/* 8AAB5C 8024070C 8FB5003C */ lw $s5, 0x3c($sp)
/* 8AAB60 80240710 8FB40038 */ lw $s4, 0x38($sp)
/* 8AAB64 80240714 8FB30034 */ lw $s3, 0x34($sp)
/* 8AAB68 80240718 8FB20030 */ lw $s2, 0x30($sp)
/* 8AAB6C 8024071C 8FB1002C */ lw $s1, 0x2c($sp)
/* 8AAB70 80240720 8FB00028 */ lw $s0, 0x28($sp)
/* 8AAB74 80240724 03E00008 */ jr $ra
/* 8AAB78 80240728 27BD0050 */ addiu $sp, $sp, 0x50
/* 8AAB7C 8024072C 00000000 */ nop

View File

@ -1,133 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80240010_8FEE90
/* 8FEE90 80240010 27BDFFF0 */ addiu $sp, $sp, -0x10
/* 8FEE94 80240014 0000482D */ daddu $t1, $zero, $zero
/* 8FEE98 80240018 3C02800A */ lui $v0, %hi(gMasterGfxPos)
/* 8FEE9C 8024001C 2442A66C */ addiu $v0, $v0, %lo(gMasterGfxPos)
/* 8FEEA0 80240020 0040402D */ daddu $t0, $v0, $zero
/* 8FEEA4 80240024 3C0EFD18 */ lui $t6, 0xfd18
/* 8FEEA8 80240028 35CE00C7 */ ori $t6, $t6, 0xc7
/* 8FEEAC 8024002C AFB3000C */ sw $s3, 0xc($sp)
/* 8FEEB0 80240030 3C138024 */ lui $s3, %hi(kmr_07_StationaryAI_Main)
/* 8FEEB4 80240034 267307F4 */ addiu $s3, $s3, %lo(kmr_07_StationaryAI_Main)
/* 8FEEB8 80240038 3C0BF518 */ lui $t3, 0xf518
/* 8FEEBC 8024003C 356B6400 */ ori $t3, $t3, 0x6400
/* 8FEEC0 80240040 AFB20008 */ sw $s2, 8($sp)
/* 8FEEC4 80240044 3C120700 */ lui $s2, 0x700
/* 8FEEC8 80240048 AFB10004 */ sw $s1, 4($sp)
/* 8FEECC 8024004C 3C11E600 */ lui $s1, 0xe600
/* 8FEED0 80240050 AFB00000 */ sw $s0, ($sp)
/* 8FEED4 80240054 3C10F400 */ lui $s0, 0xf400
/* 8FEED8 80240058 3C0D0731 */ lui $t5, 0x731
/* 8FEEDC 8024005C 35ADC004 */ ori $t5, $t5, 0xc004
/* 8FEEE0 80240060 3C19E700 */ lui $t9, 0xe700
/* 8FEEE4 80240064 3C18F200 */ lui $t8, 0xf200
/* 8FEEE8 80240068 3C0C0031 */ lui $t4, 0x31
/* 8FEEEC 8024006C 358CC004 */ ori $t4, $t4, 0xc004
/* 8FEEF0 80240070 3C0F8024 */ lui $t7, %hi(D_80240334_8FF1B4)
/* 8FEEF4 80240074 25EF0334 */ addiu $t7, $t7, %lo(D_80240334_8FF1B4)
/* 8FEEF8 80240078 0120502D */ daddu $t2, $t1, $zero
/* 8FEEFC 8024007C 8D030000 */ lw $v1, ($t0)
/* 8FEF00 80240080 3C02DE00 */ lui $v0, 0xde00
/* 8FEF04 80240084 0060202D */ daddu $a0, $v1, $zero
/* 8FEF08 80240088 24630008 */ addiu $v1, $v1, 8
/* 8FEF0C 8024008C AD030000 */ sw $v1, ($t0)
/* 8FEF10 80240090 AC820000 */ sw $v0, ($a0)
/* 8FEF14 80240094 3C028024 */ lui $v0, %hi(D_80240338_8FF1B8)
/* 8FEF18 80240098 24420338 */ addiu $v0, $v0, %lo(D_80240338_8FF1B8)
/* 8FEF1C 8024009C AC820004 */ sw $v0, 4($a0)
/* 8FEF20 802400A0 24620008 */ addiu $v0, $v1, 8
/* 8FEF24 802400A4 AD020000 */ sw $v0, ($t0)
/* 8FEF28 802400A8 3C048024 */ lui $a0, %hi(D_80240333_8FF1B3)
/* 8FEF2C 802400AC 90840333 */ lbu $a0, %lo(D_80240333_8FF1B3)($a0)
/* 8FEF30 802400B0 3C02FA00 */ lui $v0, 0xfa00
/* 8FEF34 802400B4 AC620000 */ sw $v0, ($v1)
/* 8FEF38 802400B8 24620010 */ addiu $v0, $v1, 0x10
/* 8FEF3C 802400BC AC640004 */ sw $a0, 4($v1)
/* 8FEF40 802400C0 AD020000 */ sw $v0, ($t0)
/* 8FEF44 802400C4 0320102D */ daddu $v0, $t9, $zero
/* 8FEF48 802400C8 AC620008 */ sw $v0, 8($v1)
/* 8FEF4C 802400CC AC60000C */ sw $zero, 0xc($v1)
.L802400D0:
/* 8FEF50 802400D0 3C070400 */ lui $a3, 0x400
/* 8FEF54 802400D4 34E70400 */ ori $a3, $a3, 0x400
/* 8FEF58 802400D8 00092840 */ sll $a1, $t1, 1
/* 8FEF5C 802400DC 25290001 */ addiu $t1, $t1, 1
/* 8FEF60 802400E0 8D040000 */ lw $a0, ($t0)
/* 8FEF64 802400E4 8E620000 */ lw $v0, ($s3)
/* 8FEF68 802400E8 0080182D */ daddu $v1, $a0, $zero
/* 8FEF6C 802400EC 24840008 */ addiu $a0, $a0, 8
/* 8FEF70 802400F0 004A1021 */ addu $v0, $v0, $t2
/* 8FEF74 802400F4 254A0640 */ addiu $t2, $t2, 0x640
/* 8FEF78 802400F8 AD040000 */ sw $a0, ($t0)
/* 8FEF7C 802400FC AC620004 */ sw $v0, 4($v1)
/* 8FEF80 80240100 24820008 */ addiu $v0, $a0, 8
/* 8FEF84 80240104 AC6E0000 */ sw $t6, ($v1)
/* 8FEF88 80240108 AD020000 */ sw $v0, ($t0)
/* 8FEF8C 8024010C 24820010 */ addiu $v0, $a0, 0x10
/* 8FEF90 80240110 AC8B0000 */ sw $t3, ($a0)
/* 8FEF94 80240114 AC920004 */ sw $s2, 4($a0)
/* 8FEF98 80240118 AD020000 */ sw $v0, ($t0)
/* 8FEF9C 8024011C 24820018 */ addiu $v0, $a0, 0x18
/* 8FEFA0 80240120 AC910008 */ sw $s1, 8($a0)
/* 8FEFA4 80240124 AC80000C */ sw $zero, 0xc($a0)
/* 8FEFA8 80240128 AD020000 */ sw $v0, ($t0)
/* 8FEFAC 8024012C 24820020 */ addiu $v0, $a0, 0x20
/* 8FEFB0 80240130 AC900010 */ sw $s0, 0x10($a0)
/* 8FEFB4 80240134 AC8D0014 */ sw $t5, 0x14($a0)
/* 8FEFB8 80240138 AD020000 */ sw $v0, ($t0)
/* 8FEFBC 8024013C 24820028 */ addiu $v0, $a0, 0x28
/* 8FEFC0 80240140 AC990018 */ sw $t9, 0x18($a0)
/* 8FEFC4 80240144 AC80001C */ sw $zero, 0x1c($a0)
/* 8FEFC8 80240148 AD020000 */ sw $v0, ($t0)
/* 8FEFCC 8024014C 24820030 */ addiu $v0, $a0, 0x30
/* 8FEFD0 80240150 AC8B0020 */ sw $t3, 0x20($a0)
/* 8FEFD4 80240154 AC800024 */ sw $zero, 0x24($a0)
/* 8FEFD8 80240158 AD020000 */ sw $v0, ($t0)
/* 8FEFDC 8024015C 24820038 */ addiu $v0, $a0, 0x38
/* 8FEFE0 80240160 AC980028 */ sw $t8, 0x28($a0)
/* 8FEFE4 80240164 AC8C002C */ sw $t4, 0x2c($a0)
/* 8FEFE8 80240168 8DE60000 */ lw $a2, ($t7)
/* 8FEFEC 8024016C 3C03E441 */ lui $v1, 0xe441
/* 8FEFF0 80240170 AD020000 */ sw $v0, ($t0)
/* 8FEFF4 80240174 24C20002 */ addiu $v0, $a2, 2
/* 8FEFF8 80240178 00A21021 */ addu $v0, $a1, $v0
/* 8FEFFC 8024017C 00021080 */ sll $v0, $v0, 2
/* 8FF000 80240180 30420FFF */ andi $v0, $v0, 0xfff
/* 8FF004 80240184 00431025 */ or $v0, $v0, $v1
/* 8FF008 80240188 00A62821 */ addu $a1, $a1, $a2
/* 8FF00C 8024018C 00052880 */ sll $a1, $a1, 2
/* 8FF010 80240190 30A50FFF */ andi $a1, $a1, 0xfff
/* 8FF014 80240194 AC820030 */ sw $v0, 0x30($a0)
/* 8FF018 80240198 3C02000F */ lui $v0, 0xf
/* 8FF01C 8024019C 00A22825 */ or $a1, $a1, $v0
/* 8FF020 802401A0 24820040 */ addiu $v0, $a0, 0x40
/* 8FF024 802401A4 AC850034 */ sw $a1, 0x34($a0)
/* 8FF028 802401A8 AD020000 */ sw $v0, ($t0)
/* 8FF02C 802401AC 3C02E100 */ lui $v0, 0xe100
/* 8FF030 802401B0 AC820038 */ sw $v0, 0x38($a0)
/* 8FF034 802401B4 24820048 */ addiu $v0, $a0, 0x48
/* 8FF038 802401B8 AC80003C */ sw $zero, 0x3c($a0)
/* 8FF03C 802401BC AD020000 */ sw $v0, ($t0)
/* 8FF040 802401C0 3C02F100 */ lui $v0, 0xf100
/* 8FF044 802401C4 AC820040 */ sw $v0, 0x40($a0)
/* 8FF048 802401C8 29220038 */ slti $v0, $t1, 0x38
/* 8FF04C 802401CC 1440FFC0 */ bnez $v0, .L802400D0
/* 8FF050 802401D0 AC870044 */ sw $a3, 0x44($a0)
/* 8FF054 802401D4 3C03800A */ lui $v1, %hi(gMasterGfxPos)
/* 8FF058 802401D8 2463A66C */ addiu $v1, $v1, %lo(gMasterGfxPos)
/* 8FF05C 802401DC 8C620000 */ lw $v0, ($v1)
/* 8FF060 802401E0 0040202D */ daddu $a0, $v0, $zero
/* 8FF064 802401E4 24420008 */ addiu $v0, $v0, 8
/* 8FF068 802401E8 AC620000 */ sw $v0, ($v1)
/* 8FF06C 802401EC 3C02E700 */ lui $v0, 0xe700
/* 8FF070 802401F0 AC820000 */ sw $v0, ($a0)
/* 8FF074 802401F4 AC800004 */ sw $zero, 4($a0)
/* 8FF078 802401F8 8FB3000C */ lw $s3, 0xc($sp)
/* 8FF07C 802401FC 8FB20008 */ lw $s2, 8($sp)
/* 8FF080 80240200 8FB10004 */ lw $s1, 4($sp)
/* 8FF084 80240204 8FB00000 */ lw $s0, ($sp)
/* 8FF088 80240208 03E00008 */ jr $ra
/* 8FF08C 8024020C 27BD0010 */ addiu $sp, $sp, 0x10

View File

@ -1,557 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80240628_800EA8
/* 800EA8 80240628 27BDFF90 */ addiu $sp, $sp, -0x70
/* 800EAC 8024062C 2404002F */ addiu $a0, $zero, 0x2f
/* 800EB0 80240630 3C038007 */ lui $v1, %hi(gCurrentCameraID)
/* 800EB4 80240634 8C637410 */ lw $v1, %lo(gCurrentCameraID)($v1)
/* 800EB8 80240638 3C05800B */ lui $a1, %hi(gCameras)
/* 800EBC 8024063C 24A51D80 */ addiu $a1, $a1, %lo(gCameras)
/* 800EC0 80240640 AFBF005C */ sw $ra, 0x5c($sp)
/* 800EC4 80240644 AFBE0058 */ sw $fp, 0x58($sp)
/* 800EC8 80240648 AFB70054 */ sw $s7, 0x54($sp)
/* 800ECC 8024064C AFB60050 */ sw $s6, 0x50($sp)
/* 800ED0 80240650 AFB5004C */ sw $s5, 0x4c($sp)
/* 800ED4 80240654 AFB40048 */ sw $s4, 0x48($sp)
/* 800ED8 80240658 AFB30044 */ sw $s3, 0x44($sp)
/* 800EDC 8024065C AFB20040 */ sw $s2, 0x40($sp)
/* 800EE0 80240660 AFB1003C */ sw $s1, 0x3c($sp)
/* 800EE4 80240664 AFB00038 */ sw $s0, 0x38($sp)
/* 800EE8 80240668 F7B60068 */ sdc1 $f22, 0x68($sp)
/* 800EEC 8024066C F7B40060 */ sdc1 $f20, 0x60($sp)
/* 800EF0 80240670 00031080 */ sll $v0, $v1, 2
/* 800EF4 80240674 00431021 */ addu $v0, $v0, $v1
/* 800EF8 80240678 00021080 */ sll $v0, $v0, 2
/* 800EFC 8024067C 00431023 */ subu $v0, $v0, $v1
/* 800F00 80240680 000218C0 */ sll $v1, $v0, 3
/* 800F04 80240684 00431021 */ addu $v0, $v0, $v1
/* 800F08 80240688 000210C0 */ sll $v0, $v0, 3
/* 800F0C 8024068C 0C046C04 */ jal get_model_list_index_from_tree_index
/* 800F10 80240690 00458021 */ addu $s0, $v0, $a1
/* 800F14 80240694 0C046B4C */ jal get_model_from_list_index
/* 800F18 80240698 0040202D */ daddu $a0, $v0, $zero
/* 800F1C 8024069C 27A30028 */ addiu $v1, $sp, 0x28
/* 800F20 802406A0 AFA30014 */ sw $v1, 0x14($sp)
/* 800F24 802406A4 27A3002C */ addiu $v1, $sp, 0x2c
/* 800F28 802406A8 AFA30018 */ sw $v1, 0x18($sp)
/* 800F2C 802406AC 27A30030 */ addiu $v1, $sp, 0x30
/* 800F30 802406B0 AFA3001C */ sw $v1, 0x1c($sp)
/* 800F34 802406B4 27A30034 */ addiu $v1, $sp, 0x34
/* 800F38 802406B8 3C013F80 */ lui $at, 0x3f80
/* 800F3C 802406BC 4481A000 */ mtc1 $at, $f20
/* 800F40 802406C0 0040A82D */ daddu $s5, $v0, $zero
/* 800F44 802406C4 AFA30020 */ sw $v1, 0x20($sp)
/* 800F48 802406C8 E7B40010 */ swc1 $f20, 0x10($sp)
/* 800F4C 802406CC 8EA50098 */ lw $a1, 0x98($s5)
/* 800F50 802406D0 8EA6009C */ lw $a2, 0x9c($s5)
/* 800F54 802406D4 8EA700A0 */ lw $a3, 0xa0($s5)
/* 800F58 802406D8 0C00A588 */ jal transform_point
/* 800F5C 802406DC 260400D4 */ addiu $a0, $s0, 0xd4
/* 800F60 802406E0 C7A40034 */ lwc1 $f4, 0x34($sp)
/* 800F64 802406E4 C7A00030 */ lwc1 $f0, 0x30($sp)
/* 800F68 802406E8 4604A103 */ div.s $f4, $f20, $f4
/* 800F6C 802406EC 46040002 */ mul.s $f0, $f0, $f4
/* 800F70 802406F0 00000000 */ nop
/* 800F74 802406F4 46140000 */ add.s $f0, $f0, $f20
/* 800F78 802406F8 3C013FE0 */ lui $at, 0x3fe0
/* 800F7C 802406FC 44811800 */ mtc1 $at, $f3
/* 800F80 80240700 44801000 */ mtc1 $zero, $f2
/* 800F84 80240704 46000021 */ cvt.d.s $f0, $f0
/* 800F88 80240708 46220002 */ mul.d $f0, $f0, $f2
/* 800F8C 8024070C 00000000 */ nop
/* 800F90 80240710 C7A20028 */ lwc1 $f2, 0x28($sp)
/* 800F94 80240714 46041282 */ mul.s $f10, $f2, $f4
/* 800F98 80240718 00000000 */ nop
/* 800F9C 8024071C C7A6002C */ lwc1 $f6, 0x2c($sp)
/* 800FA0 80240720 46002087 */ neg.s $f2, $f4
/* 800FA4 80240724 46023182 */ mul.s $f6, $f6, $f2
/* 800FA8 80240728 00000000 */ nop
/* 800FAC 8024072C 44804000 */ mtc1 $zero, $f8
/* 800FB0 80240730 E7A40034 */ swc1 $f4, 0x34($sp)
/* 800FB4 80240734 E7AA0028 */ swc1 $f10, 0x28($sp)
/* 800FB8 80240738 E7A6002C */ swc1 $f6, 0x2c($sp)
/* 800FBC 8024073C 46200020 */ cvt.s.d $f0, $f0
/* 800FC0 80240740 4600403C */ c.lt.s $f8, $f0
/* 800FC4 80240744 00000000 */ nop
/* 800FC8 80240748 450001BD */ bc1f .L80240E40
/* 800FCC 8024074C E7A00030 */ swc1 $f0, 0x30($sp)
/* 800FD0 80240750 8603000A */ lh $v1, 0xa($s0)
/* 800FD4 80240754 44831000 */ mtc1 $v1, $f2
/* 800FD8 80240758 00000000 */ nop
/* 800FDC 8024075C 468010A0 */ cvt.s.w $f2, $f2
/* 800FE0 80240760 46025002 */ mul.s $f0, $f10, $f2
/* 800FE4 80240764 00000000 */ nop
/* 800FE8 80240768 46020000 */ add.s $f0, $f0, $f2
/* 800FEC 8024076C 3C013F00 */ lui $at, 0x3f00
/* 800FF0 80240770 44812000 */ mtc1 $at, $f4
/* 800FF4 80240774 00000000 */ nop
/* 800FF8 80240778 46040502 */ mul.s $f20, $f0, $f4
/* 800FFC 8024077C 00000000 */ nop
/* 801000 80240780 8604000C */ lh $a0, 0xc($s0)
/* 801004 80240784 44841000 */ mtc1 $a0, $f2
/* 801008 80240788 00000000 */ nop
/* 80100C 8024078C 468010A0 */ cvt.s.w $f2, $f2
/* 801010 80240790 46023002 */ mul.s $f0, $f6, $f2
/* 801014 80240794 00000000 */ nop
/* 801018 80240798 46020000 */ add.s $f0, $f0, $f2
/* 80101C 8024079C 46040582 */ mul.s $f22, $f0, $f4
/* 801020 802407A0 00000000 */ nop
/* 801024 802407A4 4600A086 */ mov.s $f2, $f20
/* 801028 802407A8 4608A03C */ c.lt.s $f20, $f8
/* 80102C 802407AC 00000000 */ nop
/* 801030 802407B0 45000002 */ bc1f .L802407BC
/* 801034 802407B4 4600B106 */ mov.s $f4, $f22
/* 801038 802407B8 46004506 */ mov.s $f20, $f8
.L802407BC:
/* 80103C 802407BC 3C014080 */ lui $at, 0x4080
/* 801040 802407C0 44810000 */ mtc1 $at, $f0
/* 801044 802407C4 00000000 */ nop
/* 801048 802407C8 4600103C */ c.lt.s $f2, $f0
/* 80104C 802407CC 00000000 */ nop
/* 801050 802407D0 45030001 */ bc1tl .L802407D8
/* 801054 802407D4 46000086 */ mov.s $f2, $f0
.L802407D8:
/* 801058 802407D8 4608B03C */ c.lt.s $f22, $f8
/* 80105C 802407DC 00000000 */ nop
/* 801060 802407E0 45030001 */ bc1tl .L802407E8
/* 801064 802407E4 46004586 */ mov.s $f22, $f8
.L802407E8:
/* 801068 802407E8 4600203C */ c.lt.s $f4, $f0
/* 80106C 802407EC 00000000 */ nop
/* 801070 802407F0 45030001 */ bc1tl .L802407F8
/* 801074 802407F4 46000106 */ mov.s $f4, $f0
.L802407F8:
/* 801078 802407F8 2462FFFC */ addiu $v0, $v1, -4
/* 80107C 802407FC 44820000 */ mtc1 $v0, $f0
/* 801080 80240800 00000000 */ nop
/* 801084 80240804 46800020 */ cvt.s.w $f0, $f0
/* 801088 80240808 4614003E */ c.le.s $f0, $f20
/* 80108C 8024080C 00000000 */ nop
/* 801090 80240810 45000004 */ bc1f .L80240824
/* 801094 80240814 2462FFFB */ addiu $v0, $v1, -5
/* 801098 80240818 4482A000 */ mtc1 $v0, $f20
/* 80109C 8024081C 00000000 */ nop
/* 8010A0 80240820 4680A520 */ cvt.s.w $f20, $f20
.L80240824:
/* 8010A4 80240824 2482FFFC */ addiu $v0, $a0, -4
/* 8010A8 80240828 44820000 */ mtc1 $v0, $f0
/* 8010AC 8024082C 00000000 */ nop
/* 8010B0 80240830 46800020 */ cvt.s.w $f0, $f0
/* 8010B4 80240834 4616003E */ c.le.s $f0, $f22
/* 8010B8 80240838 00000000 */ nop
/* 8010BC 8024083C 45000004 */ bc1f .L80240850
/* 8010C0 80240840 2482FFFB */ addiu $v0, $a0, -5
/* 8010C4 80240844 4482B000 */ mtc1 $v0, $f22
/* 8010C8 80240848 00000000 */ nop
/* 8010CC 8024084C 4680B5A0 */ cvt.s.w $f22, $f22
.L80240850:
/* 8010D0 80240850 3C05E300 */ lui $a1, 0xe300
/* 8010D4 80240854 34A50A01 */ ori $a1, $a1, 0xa01
/* 8010D8 80240858 3C13E200 */ lui $s3, 0xe200
/* 8010DC 8024085C 3673001C */ ori $s3, $s3, 0x1c
/* 8010E0 80240860 3C060F0A */ lui $a2, 0xf0a
/* 8010E4 80240864 34C64010 */ ori $a2, $a2, 0x4010
/* 8010E8 80240868 3C12FF10 */ lui $s2, 0xff10
/* 8010EC 8024086C 3652013F */ ori $s2, $s2, 0x13f
/* 8010F0 80240870 3C17FCFF */ lui $s7, 0xfcff
/* 8010F4 80240874 36F7FFFF */ ori $s7, $s7, 0xffff
/* 8010F8 80240878 3C14800A */ lui $s4, %hi(gMasterGfxPos)
/* 8010FC 8024087C 2694A66C */ addiu $s4, $s4, %lo(gMasterGfxPos)
/* 801100 80240880 8E910000 */ lw $s1, ($s4)
/* 801104 80240884 8602000E */ lh $v0, 0xe($s0)
/* 801108 80240888 3C04800A */ lui $a0, %hi(nuGfxZBuffer)
/* 80110C 8024088C 8C84A5DC */ lw $a0, %lo(nuGfxZBuffer)($a0)
/* 801110 80240890 44820000 */ mtc1 $v0, $f0
/* 801114 80240894 00000000 */ nop
/* 801118 80240898 46800020 */ cvt.s.w $f0, $f0
/* 80111C 8024089C 0220182D */ daddu $v1, $s1, $zero
/* 801120 802408A0 26310008 */ addiu $s1, $s1, 8
/* 801124 802408A4 86020010 */ lh $v0, 0x10($s0)
/* 801128 802408A8 4600A500 */ add.s $f20, $f20, $f0
/* 80112C 802408AC AE910000 */ sw $s1, ($s4)
/* 801130 802408B0 AC650000 */ sw $a1, ($v1)
/* 801134 802408B4 AC600004 */ sw $zero, 4($v1)
/* 801138 802408B8 44820000 */ mtc1 $v0, $f0
/* 80113C 802408BC 00000000 */ nop
/* 801140 802408C0 46800020 */ cvt.s.w $f0, $f0
/* 801144 802408C4 26220008 */ addiu $v0, $s1, 8
/* 801148 802408C8 AE820000 */ sw $v0, ($s4)
/* 80114C 802408CC 26220010 */ addiu $v0, $s1, 0x10
/* 801150 802408D0 4600B580 */ add.s $f22, $f22, $f0
/* 801154 802408D4 AE330000 */ sw $s3, ($s1)
/* 801158 802408D8 AE260004 */ sw $a2, 4($s1)
/* 80115C 802408DC AE820000 */ sw $v0, ($s4)
/* 801160 802408E0 0C0187A4 */ jal osVirtualToPhysical
/* 801164 802408E4 AE320008 */ sw $s2, 8($s1)
/* 801168 802408E8 3C03FFFD */ lui $v1, 0xfffd
/* 80116C 802408EC 3463FEFF */ ori $v1, $v1, 0xfeff
/* 801170 802408F0 3C05F8F0 */ lui $a1, 0xf8f0
/* 801174 802408F4 3C1E800A */ lui $fp, %hi(nuGfxCfb_ptr)
/* 801178 802408F8 27DEA64C */ addiu $fp, $fp, %lo(nuGfxCfb_ptr)
/* 80117C 802408FC 34A5F000 */ ori $a1, $a1, 0xf000
/* 801180 80240900 8E900000 */ lw $s0, ($s4)
/* 801184 80240904 8FC40000 */ lw $a0, ($fp)
/* 801188 80240908 3C16E700 */ lui $s6, 0xe700
/* 80118C 8024090C AE22000C */ sw $v0, 0xc($s1)
/* 801190 80240910 0200102D */ daddu $v0, $s0, $zero
/* 801194 80240914 26100008 */ addiu $s0, $s0, 8
/* 801198 80240918 AE900000 */ sw $s0, ($s4)
/* 80119C 8024091C AC570000 */ sw $s7, ($v0)
/* 8011A0 80240920 AC430004 */ sw $v1, 4($v0)
/* 8011A4 80240924 26020008 */ addiu $v0, $s0, 8
/* 8011A8 80240928 AE820000 */ sw $v0, ($s4)
/* 8011AC 8024092C 3C02FA00 */ lui $v0, 0xfa00
/* 8011B0 80240930 AE020000 */ sw $v0, ($s0)
/* 8011B4 80240934 26020010 */ addiu $v0, $s0, 0x10
/* 8011B8 80240938 AE050004 */ sw $a1, 4($s0)
/* 8011BC 8024093C AE820000 */ sw $v0, ($s4)
/* 8011C0 80240940 3C02DE00 */ lui $v0, 0xde00
/* 8011C4 80240944 AE160008 */ sw $s6, 8($s0)
/* 8011C8 80240948 AE00000C */ sw $zero, 0xc($s0)
/* 8011CC 8024094C AE020010 */ sw $v0, 0x10($s0)
/* 8011D0 80240950 8EA30008 */ lw $v1, 8($s5)
/* 8011D4 80240954 26020018 */ addiu $v0, $s0, 0x18
/* 8011D8 80240958 AE820000 */ sw $v0, ($s4)
/* 8011DC 8024095C 8C630004 */ lw $v1, 4($v1)
/* 8011E0 80240960 26020020 */ addiu $v0, $s0, 0x20
/* 8011E4 80240964 AE820000 */ sw $v0, ($s4)
/* 8011E8 80240968 8C630000 */ lw $v1, ($v1)
/* 8011EC 8024096C 26020028 */ addiu $v0, $s0, 0x28
/* 8011F0 80240970 AE820000 */ sw $v0, ($s4)
/* 8011F4 80240974 AE160018 */ sw $s6, 0x18($s0)
/* 8011F8 80240978 AE00001C */ sw $zero, 0x1c($s0)
/* 8011FC 8024097C AE120020 */ sw $s2, 0x20($s0)
/* 801200 80240980 0C0187A4 */ jal osVirtualToPhysical
/* 801204 80240984 AE030014 */ sw $v1, 0x14($s0)
/* 801208 80240988 3C04E200 */ lui $a0, 0xe200
/* 80120C 8024098C 34841D00 */ ori $a0, $a0, 0x1d00
/* 801210 80240990 3C050055 */ lui $a1, 0x55
/* 801214 80240994 34A52E10 */ ori $a1, $a1, 0x2e10
/* 801218 80240998 3C06E300 */ lui $a2, 0xe300
/* 80121C 8024099C 34C61201 */ ori $a2, $a2, 0x1201
/* 801220 802409A0 3C07E300 */ lui $a3, 0xe300
/* 801224 802409A4 34E70C00 */ ori $a3, $a3, 0xc00
/* 801228 802409A8 3C08D700 */ lui $t0, 0xd700
/* 80122C 802409AC 35080002 */ ori $t0, $t0, 2
/* 801230 802409B0 3C09E300 */ lui $t1, 0xe300
/* 801234 802409B4 35291001 */ ori $t1, $t1, 0x1001
/* 801238 802409B8 3C0AE300 */ lui $t2, 0xe300
/* 80123C 802409BC 354A0D01 */ ori $t2, $t2, 0xd01
/* 801240 802409C0 3C0BE300 */ lui $t3, 0xe300
/* 801244 802409C4 8E910000 */ lw $s1, ($s4)
/* 801248 802409C8 356B0F00 */ ori $t3, $t3, 0xf00
/* 80124C 802409CC AE020024 */ sw $v0, 0x24($s0)
/* 801250 802409D0 24020004 */ addiu $v0, $zero, 4
/* 801254 802409D4 3C013D00 */ lui $at, 0x3d00
/* 801258 802409D8 44810000 */ mtc1 $at, $f0
/* 80125C 802409DC 3C014200 */ lui $at, 0x4200
/* 801260 802409E0 44811000 */ mtc1 $at, $f2
/* 801264 802409E4 0220182D */ daddu $v1, $s1, $zero
/* 801268 802409E8 26310008 */ addiu $s1, $s1, 8
/* 80126C 802409EC AE910000 */ sw $s1, ($s4)
/* 801270 802409F0 AC620004 */ sw $v0, 4($v1)
/* 801274 802409F4 26220008 */ addiu $v0, $s1, 8
/* 801278 802409F8 AC640000 */ sw $a0, ($v1)
/* 80127C 802409FC AE820000 */ sw $v0, ($s4)
/* 801280 80240A00 3C02EE00 */ lui $v0, 0xee00
/* 801284 80240A04 AE220000 */ sw $v0, ($s1)
/* 801288 80240A08 3C027FDE */ lui $v0, 0x7fde
/* 80128C 80240A0C AE220004 */ sw $v0, 4($s1)
/* 801290 80240A10 26220010 */ addiu $v0, $s1, 0x10
/* 801294 80240A14 AE820000 */ sw $v0, ($s4)
/* 801298 80240A18 26220018 */ addiu $v0, $s1, 0x18
/* 80129C 80240A1C AE330008 */ sw $s3, 8($s1)
/* 8012A0 80240A20 AE25000C */ sw $a1, 0xc($s1)
/* 8012A4 80240A24 AE820000 */ sw $v0, ($s4)
/* 8012A8 80240A28 26220020 */ addiu $v0, $s1, 0x20
/* 8012AC 80240A2C AE260010 */ sw $a2, 0x10($s1)
/* 8012B0 80240A30 AE200014 */ sw $zero, 0x14($s1)
/* 8012B4 80240A34 AE820000 */ sw $v0, ($s4)
/* 8012B8 80240A38 26220028 */ addiu $v0, $s1, 0x28
/* 8012BC 80240A3C 4600A102 */ mul.s $f4, $f20, $f0
/* 8012C0 80240A40 00000000 */ nop
/* 8012C4 80240A44 AE270018 */ sw $a3, 0x18($s1)
/* 8012C8 80240A48 AE20001C */ sw $zero, 0x1c($s1)
/* 8012CC 80240A4C AE820000 */ sw $v0, ($s4)
/* 8012D0 80240A50 2402FFFF */ addiu $v0, $zero, -1
/* 8012D4 80240A54 AE220024 */ sw $v0, 0x24($s1)
/* 8012D8 80240A58 26220030 */ addiu $v0, $s1, 0x30
/* 8012DC 80240A5C 4600B002 */ mul.s $f0, $f22, $f0
/* 8012E0 80240A60 00000000 */ nop
/* 8012E4 80240A64 AE280020 */ sw $t0, 0x20($s1)
/* 8012E8 80240A68 AE820000 */ sw $v0, ($s4)
/* 8012EC 80240A6C 26220038 */ addiu $v0, $s1, 0x38
/* 8012F0 80240A70 AE290028 */ sw $t1, 0x28($s1)
/* 8012F4 80240A74 AE20002C */ sw $zero, 0x2c($s1)
/* 8012F8 80240A78 AE820000 */ sw $v0, ($s4)
/* 8012FC 80240A7C 46022102 */ mul.s $f4, $f4, $f2
/* 801300 80240A80 00000000 */ nop
/* 801304 80240A84 26220040 */ addiu $v0, $s1, 0x40
/* 801308 80240A88 AE2A0030 */ sw $t2, 0x30($s1)
/* 80130C 80240A8C AE200034 */ sw $zero, 0x34($s1)
/* 801310 80240A90 AE820000 */ sw $v0, ($s4)
/* 801314 80240A94 46020002 */ mul.s $f0, $f0, $f2
/* 801318 80240A98 00000000 */ nop
/* 80131C 80240A9C 3C014100 */ lui $at, 0x4100
/* 801320 80240AA0 44811000 */ mtc1 $at, $f2
/* 801324 80240AA4 26220048 */ addiu $v0, $s1, 0x48
/* 801328 80240AA8 AE2B0038 */ sw $t3, 0x38($s1)
/* 80132C 80240AAC AE20003C */ sw $zero, 0x3c($s1)
/* 801330 80240AB0 46022101 */ sub.s $f4, $f4, $f2
/* 801334 80240AB4 AE820000 */ sw $v0, ($s4)
/* 801338 80240AB8 AE360040 */ sw $s6, 0x40($s1)
/* 80133C 80240ABC 46020001 */ sub.s $f0, $f0, $f2
/* 801340 80240AC0 4600230D */ trunc.w.s $f12, $f4
/* 801344 80240AC4 44106000 */ mfc1 $s0, $f12
/* 801348 80240AC8 4600030D */ trunc.w.s $f12, $f0
/* 80134C 80240ACC 44126000 */ mfc1 $s2, $f12
/* 801350 80240AD0 060000AF */ bltz $s0, .L80240D90
/* 801354 80240AD4 AE200044 */ sw $zero, 0x44($s1)
/* 801358 80240AD8 064000AD */ bltz $s2, .L80240D90
/* 80135C 80240ADC 26020028 */ addiu $v0, $s0, 0x28
/* 801360 80240AE0 28420140 */ slti $v0, $v0, 0x140
/* 801364 80240AE4 104000AA */ beqz $v0, .L80240D90
/* 801368 80240AE8 26420028 */ addiu $v0, $s2, 0x28
/* 80136C 80240AEC 284200F0 */ slti $v0, $v0, 0xf0
/* 801370 80240AF0 104000A7 */ beqz $v0, .L80240D90
/* 801374 80240AF4 3C03FD10 */ lui $v1, 0xfd10
/* 801378 80240AF8 3463013F */ ori $v1, $v1, 0x13f
/* 80137C 80240AFC 8FC40000 */ lw $a0, ($fp)
/* 801380 80240B00 26220050 */ addiu $v0, $s1, 0x50
/* 801384 80240B04 AE820000 */ sw $v0, ($s4)
/* 801388 80240B08 0C0187A4 */ jal osVirtualToPhysical
/* 80138C 80240B0C AE230048 */ sw $v1, 0x48($s1)
/* 801390 80240B10 3C08F510 */ lui $t0, 0xf510
/* 801394 80240B14 35081000 */ ori $t0, $t0, 0x1000
/* 801398 80240B18 3C040701 */ lui $a0, 0x701
/* 80139C 80240B1C 34844050 */ ori $a0, $a0, 0x4050
/* 8013A0 80240B20 3C090001 */ lui $t1, 1
/* 8013A4 80240B24 35294050 */ ori $t1, $t1, 0x4050
/* 8013A8 80240B28 3C0AFFFC */ lui $t2, 0xfffc
/* 8013AC 80240B2C 354AFE7F */ ori $t2, $t2, 0xfe7f
/* 8013B0 80240B30 00102880 */ sll $a1, $s0, 2
/* 8013B4 80240B34 30A50FFF */ andi $a1, $a1, 0xfff
/* 8013B8 80240B38 00052B00 */ sll $a1, $a1, 0xc
/* 8013BC 80240B3C 00123880 */ sll $a3, $s2, 2
/* 8013C0 80240B40 30E70FFF */ andi $a3, $a3, 0xfff
/* 8013C4 80240B44 2646001F */ addiu $a2, $s2, 0x1f
/* 8013C8 80240B48 00063080 */ sll $a2, $a2, 2
/* 8013CC 80240B4C 8E830000 */ lw $v1, ($s4)
/* 8013D0 80240B50 30C60FFF */ andi $a2, $a2, 0xfff
/* 8013D4 80240B54 AE22004C */ sw $v0, 0x4c($s1)
/* 8013D8 80240B58 0060102D */ daddu $v0, $v1, $zero
/* 8013DC 80240B5C 24630008 */ addiu $v1, $v1, 8
/* 8013E0 80240B60 AE830000 */ sw $v1, ($s4)
/* 8013E4 80240B64 AC480000 */ sw $t0, ($v0)
/* 8013E8 80240B68 AC440004 */ sw $a0, 4($v0)
/* 8013EC 80240B6C 24620008 */ addiu $v0, $v1, 8
/* 8013F0 80240B70 AE820000 */ sw $v0, ($s4)
/* 8013F4 80240B74 3C02E600 */ lui $v0, 0xe600
/* 8013F8 80240B78 AC620000 */ sw $v0, ($v1)
/* 8013FC 80240B7C 24620010 */ addiu $v0, $v1, 0x10
/* 801400 80240B80 AC600004 */ sw $zero, 4($v1)
/* 801404 80240B84 AE820000 */ sw $v0, ($s4)
/* 801408 80240B88 3C02F400 */ lui $v0, 0xf400
/* 80140C 80240B8C 00E21025 */ or $v0, $a3, $v0
/* 801410 80240B90 00A21025 */ or $v0, $a1, $v0
/* 801414 80240B94 2604001F */ addiu $a0, $s0, 0x1f
/* 801418 80240B98 00042080 */ sll $a0, $a0, 2
/* 80141C 80240B9C 30840FFF */ andi $a0, $a0, 0xfff
/* 801420 80240BA0 00042300 */ sll $a0, $a0, 0xc
/* 801424 80240BA4 AC620008 */ sw $v0, 8($v1)
/* 801428 80240BA8 3C020700 */ lui $v0, 0x700
/* 80142C 80240BAC 00C21025 */ or $v0, $a2, $v0
/* 801430 80240BB0 00821025 */ or $v0, $a0, $v0
/* 801434 80240BB4 AC62000C */ sw $v0, 0xc($v1)
/* 801438 80240BB8 24620018 */ addiu $v0, $v1, 0x18
/* 80143C 80240BBC AE820000 */ sw $v0, ($s4)
/* 801440 80240BC0 24620020 */ addiu $v0, $v1, 0x20
/* 801444 80240BC4 AC760010 */ sw $s6, 0x10($v1)
/* 801448 80240BC8 AC600014 */ sw $zero, 0x14($v1)
/* 80144C 80240BCC AE820000 */ sw $v0, ($s4)
/* 801450 80240BD0 24620028 */ addiu $v0, $v1, 0x28
/* 801454 80240BD4 AC680018 */ sw $t0, 0x18($v1)
/* 801458 80240BD8 AC69001C */ sw $t1, 0x1c($v1)
/* 80145C 80240BDC AE820000 */ sw $v0, ($s4)
/* 801460 80240BE0 3C02F200 */ lui $v0, 0xf200
/* 801464 80240BE4 00E23825 */ or $a3, $a3, $v0
/* 801468 80240BE8 00A72825 */ or $a1, $a1, $a3
/* 80146C 80240BEC 00862025 */ or $a0, $a0, $a2
/* 801470 80240BF0 24620030 */ addiu $v0, $v1, 0x30
/* 801474 80240BF4 AC650020 */ sw $a1, 0x20($v1)
/* 801478 80240BF8 AC640024 */ sw $a0, 0x24($v1)
/* 80147C 80240BFC AE820000 */ sw $v0, ($s4)
/* 801480 80240C00 AC770028 */ sw $s7, 0x28($v1)
/* 801484 80240C04 AC6A002C */ sw $t2, 0x2c($v1)
/* 801488 80240C08 24630038 */ addiu $v1, $v1, 0x38
/* 80148C 80240C0C 0040202D */ daddu $a0, $v0, $zero
/* 801490 80240C10 26020018 */ addiu $v0, $s0, 0x18
/* 801494 80240C14 00021480 */ sll $v0, $v0, 0x12
/* 801498 80240C18 00021403 */ sra $v0, $v0, 0x10
/* 80149C 80240C1C 18400006 */ blez $v0, .L80240C38
/* 8014A0 80240C20 AE830000 */ sw $v1, ($s4)
/* 8014A4 80240C24 30420FFF */ andi $v0, $v0, 0xfff
/* 8014A8 80240C28 00021300 */ sll $v0, $v0, 0xc
/* 8014AC 80240C2C 3C03E400 */ lui $v1, 0xe400
/* 8014B0 80240C30 0809030F */ j .L80240C3C
/* 8014B4 80240C34 00431825 */ or $v1, $v0, $v1
.L80240C38:
/* 8014B8 80240C38 3C03E400 */ lui $v1, 0xe400
.L80240C3C:
/* 8014BC 80240C3C 26420018 */ addiu $v0, $s2, 0x18
/* 8014C0 80240C40 00021480 */ sll $v0, $v0, 0x12
/* 8014C4 80240C44 00021403 */ sra $v0, $v0, 0x10
/* 8014C8 80240C48 18400004 */ blez $v0, .L80240C5C
/* 8014CC 80240C4C AC830000 */ sw $v1, ($a0)
/* 8014D0 80240C50 30420FFF */ andi $v0, $v0, 0xfff
/* 8014D4 80240C54 00621025 */ or $v0, $v1, $v0
/* 8014D8 80240C58 AC820000 */ sw $v0, ($a0)
.L80240C5C:
/* 8014DC 80240C5C 2602FFF8 */ addiu $v0, $s0, -8
/* 8014E0 80240C60 00021480 */ sll $v0, $v0, 0x12
/* 8014E4 80240C64 00021403 */ sra $v0, $v0, 0x10
/* 8014E8 80240C68 18400004 */ blez $v0, .L80240C7C
/* 8014EC 80240C6C 24840004 */ addiu $a0, $a0, 4
/* 8014F0 80240C70 30420FFF */ andi $v0, $v0, 0xfff
/* 8014F4 80240C74 08090320 */ j .L80240C80
/* 8014F8 80240C78 00021B00 */ sll $v1, $v0, 0xc
.L80240C7C:
/* 8014FC 80240C7C 0000182D */ daddu $v1, $zero, $zero
.L80240C80:
/* 801500 80240C80 2642FFF8 */ addiu $v0, $s2, -8
/* 801504 80240C84 00021480 */ sll $v0, $v0, 0x12
/* 801508 80240C88 00021403 */ sra $v0, $v0, 0x10
/* 80150C 80240C8C 18400004 */ blez $v0, .L80240CA0
/* 801510 80240C90 AC830000 */ sw $v1, ($a0)
/* 801514 80240C94 30420FFF */ andi $v0, $v0, 0xfff
/* 801518 80240C98 00621025 */ or $v0, $v1, $v0
/* 80151C 80240C9C AC820000 */ sw $v0, ($a0)
.L80240CA0:
/* 801520 80240CA0 3C03800A */ lui $v1, %hi(gMasterGfxPos)
/* 801524 80240CA4 2463A66C */ addiu $v1, $v1, %lo(gMasterGfxPos)
/* 801528 80240CA8 8C620000 */ lw $v0, ($v1)
/* 80152C 80240CAC 0040202D */ daddu $a0, $v0, $zero
/* 801530 80240CB0 24420008 */ addiu $v0, $v0, 8
/* 801534 80240CB4 AC620000 */ sw $v0, ($v1)
/* 801538 80240CB8 3C02E100 */ lui $v0, 0xe100
/* 80153C 80240CBC AC820000 */ sw $v0, ($a0)
/* 801540 80240CC0 3242001F */ andi $v0, $s2, 0x1f
/* 801544 80240CC4 00023140 */ sll $a2, $v0, 5
/* 801548 80240CC8 3202001F */ andi $v0, $s0, 0x1f
/* 80154C 80240CCC 00022940 */ sll $a1, $v0, 5
/* 801550 80240CD0 2602FFF8 */ addiu $v0, $s0, -8
/* 801554 80240CD4 00021480 */ sll $v0, $v0, 0x12
/* 801558 80240CD8 00021C03 */ sra $v1, $v0, 0x10
/* 80155C 80240CDC 0461000D */ bgez $v1, .L80240D14
/* 801560 80240CE0 24840004 */ addiu $a0, $a0, 4
/* 801564 80240CE4 00031040 */ sll $v0, $v1, 1
/* 801568 80240CE8 00431021 */ addu $v0, $v0, $v1
/* 80156C 80240CEC 00021080 */ sll $v0, $v0, 2
/* 801570 80240CF0 00431023 */ subu $v0, $v0, $v1
/* 801574 80240CF4 00021100 */ sll $v0, $v0, 4
/* 801578 80240CF8 00431023 */ subu $v0, $v0, $v1
/* 80157C 80240CFC 00021143 */ sra $v0, $v0, 5
/* 801580 80240D00 5C400001 */ bgtzl $v0, .L80240D08
/* 801584 80240D04 0000102D */ daddu $v0, $zero, $zero
.L80240D08:
/* 801588 80240D08 00A21023 */ subu $v0, $a1, $v0
/* 80158C 80240D0C 08090346 */ j .L80240D18
/* 801590 80240D10 00022C00 */ sll $a1, $v0, 0x10
.L80240D14:
/* 801594 80240D14 00052C00 */ sll $a1, $a1, 0x10
.L80240D18:
/* 801598 80240D18 2643FFF8 */ addiu $v1, $s2, -8
/* 80159C 80240D1C 00031080 */ sll $v0, $v1, 2
/* 8015A0 80240D20 0441000F */ bgez $v0, .L80240D60
/* 8015A4 80240D24 00A61025 */ or $v0, $a1, $a2
/* 8015A8 80240D28 00031C80 */ sll $v1, $v1, 0x12
/* 8015AC 80240D2C 00031C03 */ sra $v1, $v1, 0x10
/* 8015B0 80240D30 00031040 */ sll $v0, $v1, 1
/* 8015B4 80240D34 00431021 */ addu $v0, $v0, $v1
/* 8015B8 80240D38 00021080 */ sll $v0, $v0, 2
/* 8015BC 80240D3C 00431023 */ subu $v0, $v0, $v1
/* 8015C0 80240D40 00021100 */ sll $v0, $v0, 4
/* 8015C4 80240D44 00431023 */ subu $v0, $v0, $v1
/* 8015C8 80240D48 00021143 */ sra $v0, $v0, 5
/* 8015CC 80240D4C 5C400001 */ bgtzl $v0, .L80240D54
/* 8015D0 80240D50 0000102D */ daddu $v0, $zero, $zero
.L80240D54:
/* 8015D4 80240D54 00C21023 */ subu $v0, $a2, $v0
/* 8015D8 80240D58 3042FFFF */ andi $v0, $v0, 0xffff
/* 8015DC 80240D5C 00A21025 */ or $v0, $a1, $v0
.L80240D60:
/* 8015E0 80240D60 AC820000 */ sw $v0, ($a0)
/* 8015E4 80240D64 3C0502BC */ lui $a1, 0x2bc
/* 8015E8 80240D68 3C03800A */ lui $v1, %hi(gMasterGfxPos)
/* 8015EC 80240D6C 2463A66C */ addiu $v1, $v1, %lo(gMasterGfxPos)
/* 8015F0 80240D70 8C620000 */ lw $v0, ($v1)
/* 8015F4 80240D74 34A502BC */ ori $a1, $a1, 0x2bc
/* 8015F8 80240D78 0040202D */ daddu $a0, $v0, $zero
/* 8015FC 80240D7C 24420008 */ addiu $v0, $v0, 8
/* 801600 80240D80 AC620000 */ sw $v0, ($v1)
/* 801604 80240D84 3C02F100 */ lui $v0, 0xf100
/* 801608 80240D88 AC820000 */ sw $v0, ($a0)
/* 80160C 80240D8C AC850004 */ sw $a1, 4($a0)
.L80240D90:
/* 801610 80240D90 3C06E200 */ lui $a2, 0xe200
/* 801614 80240D94 34C61D00 */ ori $a2, $a2, 0x1d00
/* 801618 80240D98 3C09E200 */ lui $t1, 0xe200
/* 80161C 80240D9C 3529001C */ ori $t1, $t1, 0x1c
/* 801620 80240DA0 3C070050 */ lui $a3, 0x50
/* 801624 80240DA4 34E749D8 */ ori $a3, $a3, 0x49d8
/* 801628 80240DA8 3C0AFCFF */ lui $t2, 0xfcff
/* 80162C 80240DAC 354AFFFF */ ori $t2, $t2, 0xffff
/* 801630 80240DB0 3C08FFFE */ lui $t0, 0xfffe
/* 801634 80240DB4 3508793C */ ori $t0, $t0, 0x793c
/* 801638 80240DB8 3C0BE300 */ lui $t3, 0xe300
/* 80163C 80240DBC 3C04800A */ lui $a0, %hi(gMasterGfxPos)
/* 801640 80240DC0 2484A66C */ addiu $a0, $a0, %lo(gMasterGfxPos)
/* 801644 80240DC4 356B0C00 */ ori $t3, $t3, 0xc00
/* 801648 80240DC8 8C820000 */ lw $v0, ($a0)
/* 80164C 80240DCC 3C03E700 */ lui $v1, 0xe700
/* 801650 80240DD0 0040282D */ daddu $a1, $v0, $zero
/* 801654 80240DD4 24420008 */ addiu $v0, $v0, 8
/* 801658 80240DD8 AC820000 */ sw $v0, ($a0)
/* 80165C 80240DDC ACA30000 */ sw $v1, ($a1)
/* 801660 80240DE0 24430008 */ addiu $v1, $v0, 8
/* 801664 80240DE4 ACA00004 */ sw $zero, 4($a1)
/* 801668 80240DE8 AC830000 */ sw $v1, ($a0)
/* 80166C 80240DEC 24430010 */ addiu $v1, $v0, 0x10
/* 801670 80240DF0 AC460000 */ sw $a2, ($v0)
/* 801674 80240DF4 AC400004 */ sw $zero, 4($v0)
/* 801678 80240DF8 AC830000 */ sw $v1, ($a0)
/* 80167C 80240DFC 24430018 */ addiu $v1, $v0, 0x18
/* 801680 80240E00 AC490008 */ sw $t1, 8($v0)
/* 801684 80240E04 AC47000C */ sw $a3, 0xc($v0)
/* 801688 80240E08 AC830000 */ sw $v1, ($a0)
/* 80168C 80240E0C 24430020 */ addiu $v1, $v0, 0x20
/* 801690 80240E10 AC4A0010 */ sw $t2, 0x10($v0)
/* 801694 80240E14 AC480014 */ sw $t0, 0x14($v0)
/* 801698 80240E18 AC830000 */ sw $v1, ($a0)
/* 80169C 80240E1C 3C030008 */ lui $v1, 8
/* 8016A0 80240E20 AC43001C */ sw $v1, 0x1c($v0)
/* 8016A4 80240E24 24430028 */ addiu $v1, $v0, 0x28
/* 8016A8 80240E28 AC4B0018 */ sw $t3, 0x18($v0)
/* 8016AC 80240E2C AC830000 */ sw $v1, ($a0)
/* 8016B0 80240E30 3C03D700 */ lui $v1, 0xd700
/* 8016B4 80240E34 AC430020 */ sw $v1, 0x20($v0)
/* 8016B8 80240E38 2403FFFF */ addiu $v1, $zero, -1
/* 8016BC 80240E3C AC430024 */ sw $v1, 0x24($v0)
.L80240E40:
/* 8016C0 80240E40 8FBF005C */ lw $ra, 0x5c($sp)
/* 8016C4 80240E44 8FBE0058 */ lw $fp, 0x58($sp)
/* 8016C8 80240E48 8FB70054 */ lw $s7, 0x54($sp)
/* 8016CC 80240E4C 8FB60050 */ lw $s6, 0x50($sp)
/* 8016D0 80240E50 8FB5004C */ lw $s5, 0x4c($sp)
/* 8016D4 80240E54 8FB40048 */ lw $s4, 0x48($sp)
/* 8016D8 80240E58 8FB30044 */ lw $s3, 0x44($sp)
/* 8016DC 80240E5C 8FB20040 */ lw $s2, 0x40($sp)
/* 8016E0 80240E60 8FB1003C */ lw $s1, 0x3c($sp)
/* 8016E4 80240E64 8FB00038 */ lw $s0, 0x38($sp)
/* 8016E8 80240E68 D7B60068 */ ldc1 $f22, 0x68($sp)
/* 8016EC 80240E6C D7B40060 */ ldc1 $f20, 0x60($sp)
/* 8016F0 80240E70 03E00008 */ jr $ra
/* 8016F4 80240E74 27BD0070 */ addiu $sp, $sp, 0x70
/* 8016F8 80240E78 00000000 */ nop
/* 8016FC 80240E7C 00000000 */ nop

View File

@ -1,170 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.section .rodata
dlabel D_802529C8_864B38
.double 0.01
.section .text
glabel func_80243F0C_85607C
/* 85607C 80243F0C 27BDFFA8 */ addiu $sp, $sp, -0x58
/* 856080 80243F10 24040003 */ addiu $a0, $zero, 3
/* 856084 80243F14 27A6001C */ addiu $a2, $sp, 0x1c
/* 856088 80243F18 27A70020 */ addiu $a3, $sp, 0x20
/* 85608C 80243F1C AFBF003C */ sw $ra, 0x3c($sp)
/* 856090 80243F20 AFB20038 */ sw $s2, 0x38($sp)
/* 856094 80243F24 AFB10034 */ sw $s1, 0x34($sp)
/* 856098 80243F28 AFB00030 */ sw $s0, 0x30($sp)
/* 85609C 80243F2C F7B80050 */ sdc1 $f24, 0x50($sp)
/* 8560A0 80243F30 F7B60048 */ sdc1 $f22, 0x48($sp)
/* 8560A4 80243F34 F7B40040 */ sdc1 $f20, 0x40($sp)
/* 8560A8 80243F38 0C0470AC */ jal mdl_get_copied_vertices
/* 8560AC 80243F3C 27A50018 */ addiu $a1, $sp, 0x18
/* 8560B0 80243F40 8FA30020 */ lw $v1, 0x20($sp)
/* 8560B4 80243F44 1860005D */ blez $v1, .L802440BC
/* 8560B8 80243F48 0000882D */ daddu $s1, $zero, $zero
/* 8560BC 80243F4C 3C128000 */ lui $s2, 0x8000
/* 8560C0 80243F50 3C013FF0 */ lui $at, 0x3ff0
/* 8560C4 80243F54 4481B800 */ mtc1 $at, $f23
/* 8560C8 80243F58 4480B000 */ mtc1 $zero, $f22
/* 8560CC 80243F5C 3C01437F */ lui $at, 0x437f
/* 8560D0 80243F60 4481C000 */ mtc1 $at, $f24
/* 8560D4 80243F64 3C014F00 */ lui $at, 0x4f00
/* 8560D8 80243F68 4481A000 */ mtc1 $at, $f20
.L80243F6C:
/* 8560DC 80243F6C 44910000 */ mtc1 $s1, $f0
/* 8560E0 80243F70 00000000 */ nop
/* 8560E4 80243F74 46800020 */ cvt.s.w $f0, $f0
/* 8560E8 80243F78 44831000 */ mtc1 $v1, $f2
/* 8560EC 80243F7C 00000000 */ nop
/* 8560F0 80243F80 468010A0 */ cvt.s.w $f2, $f2
/* 8560F4 80243F84 46020003 */ div.s $f0, $f0, $f2
/* 8560F8 80243F88 00111900 */ sll $v1, $s1, 4
/* 8560FC 80243F8C 3C018025 */ lui $at, %hi(D_80252744_8648B4)
/* 856100 80243F90 C4242744 */ lwc1 $f4, %lo(D_80252744_8648B4)($at)
/* 856104 80243F94 8FA2001C */ lw $v0, 0x1c($sp)
/* 856108 80243F98 46002300 */ add.s $f12, $f4, $f0
/* 85610C 80243F9C 00431021 */ addu $v0, $v0, $v1
/* 856110 80243FA0 46006021 */ cvt.d.s $f0, $f12
/* 856114 80243FA4 4620B03C */ c.lt.d $f22, $f0
/* 856118 80243FA8 00000000 */ nop
/* 85611C 80243FAC 45000003 */ bc1f .L80243FBC
/* 856120 80243FB0 2450000C */ addiu $s0, $v0, 0xc
/* 856124 80243FB4 46360001 */ sub.d $f0, $f0, $f22
/* 856128 80243FB8 46200320 */ cvt.s.d $f12, $f0
.L80243FBC:
/* 85612C 80243FBC 27A70024 */ addiu $a3, $sp, 0x24
/* 856130 80243FC0 3C063F00 */ lui $a2, 0x3f00
/* 856134 80243FC4 3C013F80 */ lui $at, 0x3f80
/* 856138 80243FC8 44817000 */ mtc1 $at, $f14
/* 85613C 80243FCC 27A20028 */ addiu $v0, $sp, 0x28
/* 856140 80243FD0 AFA20010 */ sw $v0, 0x10($sp)
/* 856144 80243FD4 27A2002C */ addiu $v0, $sp, 0x2c
/* 856148 80243FD8 0C090F6C */ jal func_80243DB0_855F20
/* 85614C 80243FDC AFA20014 */ sw $v0, 0x14($sp)
/* 856150 80243FE0 C7A00024 */ lwc1 $f0, 0x24($sp)
/* 856154 80243FE4 46180002 */ mul.s $f0, $f0, $f24
/* 856158 80243FE8 00000000 */ nop
/* 85615C 80243FEC 4600A03E */ c.le.s $f20, $f0
/* 856160 80243FF0 00000000 */ nop
/* 856164 80243FF4 45030005 */ bc1tl .L8024400C
/* 856168 80243FF8 46140001 */ sub.s $f0, $f0, $f20
/* 85616C 80243FFC 4600018D */ trunc.w.s $f6, $f0
/* 856170 80244000 44023000 */ mfc1 $v0, $f6
/* 856174 80244004 08091008 */ j .L80244020
/* 856178 80244008 A2020000 */ sb $v0, ($s0)
.L8024400C:
/* 85617C 8024400C 4600018D */ trunc.w.s $f6, $f0
/* 856180 80244010 44023000 */ mfc1 $v0, $f6
/* 856184 80244014 00000000 */ nop
/* 856188 80244018 00521025 */ or $v0, $v0, $s2
/* 85618C 8024401C A2020000 */ sb $v0, ($s0)
.L80244020:
/* 856190 80244020 C7A00028 */ lwc1 $f0, 0x28($sp)
/* 856194 80244024 46180002 */ mul.s $f0, $f0, $f24
/* 856198 80244028 00000000 */ nop
/* 85619C 8024402C 4600A03E */ c.le.s $f20, $f0
/* 8561A0 80244030 00000000 */ nop
/* 8561A4 80244034 45010005 */ bc1t .L8024404C
/* 8561A8 80244038 26030001 */ addiu $v1, $s0, 1
/* 8561AC 8024403C 4600018D */ trunc.w.s $f6, $f0
/* 8561B0 80244040 44023000 */ mfc1 $v0, $f6
/* 8561B4 80244044 08091019 */ j .L80244064
/* 8561B8 80244048 A0620000 */ sb $v0, ($v1)
.L8024404C:
/* 8561BC 8024404C 46140001 */ sub.s $f0, $f0, $f20
/* 8561C0 80244050 4600018D */ trunc.w.s $f6, $f0
/* 8561C4 80244054 44023000 */ mfc1 $v0, $f6
/* 8561C8 80244058 00000000 */ nop
/* 8561CC 8024405C 00521025 */ or $v0, $v0, $s2
/* 8561D0 80244060 A0620000 */ sb $v0, ($v1)
.L80244064:
/* 8561D4 80244064 C7A0002C */ lwc1 $f0, 0x2c($sp)
/* 8561D8 80244068 46180002 */ mul.s $f0, $f0, $f24
/* 8561DC 8024406C 00000000 */ nop
/* 8561E0 80244070 4600A03E */ c.le.s $f20, $f0
/* 8561E4 80244074 00000000 */ nop
/* 8561E8 80244078 45010005 */ bc1t .L80244090
/* 8561EC 8024407C 26020002 */ addiu $v0, $s0, 2
/* 8561F0 80244080 4600018D */ trunc.w.s $f6, $f0
/* 8561F4 80244084 44033000 */ mfc1 $v1, $f6
/* 8561F8 80244088 0809102A */ j .L802440A8
/* 8561FC 8024408C A0430000 */ sb $v1, ($v0)
.L80244090:
/* 856200 80244090 46140001 */ sub.s $f0, $f0, $f20
/* 856204 80244094 4600018D */ trunc.w.s $f6, $f0
/* 856208 80244098 44033000 */ mfc1 $v1, $f6
/* 85620C 8024409C 00000000 */ nop
/* 856210 802440A0 00721825 */ or $v1, $v1, $s2
/* 856214 802440A4 A0430000 */ sb $v1, ($v0)
.L802440A8:
/* 856218 802440A8 8FA30020 */ lw $v1, 0x20($sp)
/* 85621C 802440AC 26310001 */ addiu $s1, $s1, 1
/* 856220 802440B0 0223102A */ slt $v0, $s1, $v1
/* 856224 802440B4 1440FFAD */ bnez $v0, .L80243F6C
/* 856228 802440B8 00000000 */ nop
.L802440BC:
/* 85622C 802440BC 3C03800A */ lui $v1, %hi(gMasterGfxPos)
/* 856230 802440C0 2463A66C */ addiu $v1, $v1, %lo(gMasterGfxPos)
/* 856234 802440C4 8C620000 */ lw $v0, ($v1)
/* 856238 802440C8 24040003 */ addiu $a0, $zero, 3
/* 85623C 802440CC 0040802D */ daddu $s0, $v0, $zero
/* 856240 802440D0 24420008 */ addiu $v0, $v0, 8
/* 856244 802440D4 AC620000 */ sw $v0, ($v1)
/* 856248 802440D8 3C02DE00 */ lui $v0, 0xde00
/* 85624C 802440DC 0C0470BB */ jal mdl_get_copied_gfx
/* 856250 802440E0 AE020000 */ sw $v0, ($s0)
/* 856254 802440E4 3C038025 */ lui $v1, %hi(D_80252744_8648B4)
/* 856258 802440E8 24632744 */ addiu $v1, $v1, %lo(D_80252744_8648B4)
/* 85625C 802440EC C4600000 */ lwc1 $f0, ($v1)
/* 856260 802440F0 3C018025 */ lui $at, %hi(D_802529C8_864B38)
/* 856264 802440F4 D42229C8 */ ldc1 $f2, %lo(D_802529C8_864B38)($at)
/* 856268 802440F8 46000021 */ cvt.d.s $f0, $f0
/* 85626C 802440FC 46220000 */ add.d $f0, $f0, $f2
/* 856270 80244100 AE020004 */ sw $v0, 4($s0)
/* 856274 80244104 3C013FF0 */ lui $at, 0x3ff0
/* 856278 80244108 44811800 */ mtc1 $at, $f3
/* 85627C 8024410C 44801000 */ mtc1 $zero, $f2
/* 856280 80244110 46200120 */ cvt.s.d $f4, $f0
/* 856284 80244114 46002021 */ cvt.d.s $f0, $f4
/* 856288 80244118 4620103C */ c.lt.d $f2, $f0
/* 85628C 8024411C 00000000 */ nop
/* 856290 80244120 45000006 */ bc1f .L8024413C
/* 856294 80244124 E4640000 */ swc1 $f4, ($v1)
/* 856298 80244128 3C013F80 */ lui $at, 0x3f80
/* 85629C 8024412C 44810000 */ mtc1 $at, $f0
/* 8562A0 80244130 00000000 */ nop
/* 8562A4 80244134 46002001 */ sub.s $f0, $f4, $f0
/* 8562A8 80244138 E4600000 */ swc1 $f0, ($v1)
.L8024413C:
/* 8562AC 8024413C 8FBF003C */ lw $ra, 0x3c($sp)
/* 8562B0 80244140 8FB20038 */ lw $s2, 0x38($sp)
/* 8562B4 80244144 8FB10034 */ lw $s1, 0x34($sp)
/* 8562B8 80244148 8FB00030 */ lw $s0, 0x30($sp)
/* 8562BC 8024414C D7B80050 */ ldc1 $f24, 0x50($sp)
/* 8562C0 80244150 D7B60048 */ ldc1 $f22, 0x48($sp)
/* 8562C4 80244154 D7B40040 */ ldc1 $f20, 0x40($sp)
/* 8562C8 80244158 03E00008 */ jr $ra
/* 8562CC 8024415C 27BD0058 */ addiu $sp, $sp, 0x58

View File

@ -1,103 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80240070_B9D9D0
/* B9D9D0 80240070 3C058024 */ lui $a1, %hi(D_80241530_B9EE90)
/* B9D9D4 80240074 24A51530 */ addiu $a1, $a1, %lo(D_80241530_B9EE90)
/* B9D9D8 80240078 8CA30000 */ lw $v1, ($a1)
/* B9D9DC 8024007C 24040002 */ addiu $a0, $zero, 2
/* B9D9E0 80240080 10640012 */ beq $v1, $a0, .L802400CC
/* B9D9E4 80240084 28620003 */ slti $v0, $v1, 3
/* B9D9E8 80240088 10400005 */ beqz $v0, .L802400A0
/* B9D9EC 8024008C 24020001 */ addiu $v0, $zero, 1
/* B9D9F0 80240090 1062000A */ beq $v1, $v0, .L802400BC
/* B9D9F4 80240094 3C02E300 */ lui $v0, 0xe300
/* B9D9F8 80240098 08090057 */ j .L8024015C
/* B9D9FC 8024009C 34420A01 */ ori $v0, $v0, 0xa01
.L802400A0:
/* B9DA00 802400A0 24020003 */ addiu $v0, $zero, 3
/* B9DA04 802400A4 10620019 */ beq $v1, $v0, .L8024010C
/* B9DA08 802400A8 24020004 */ addiu $v0, $zero, 4
/* B9DA0C 802400AC 10620021 */ beq $v1, $v0, .L80240134
/* B9DA10 802400B0 3C02E300 */ lui $v0, 0xe300
/* B9DA14 802400B4 08090057 */ j .L8024015C
/* B9DA18 802400B8 34420A01 */ ori $v0, $v0, 0xa01
.L802400BC:
/* B9DA1C 802400BC 3C018024 */ lui $at, %hi(D_80241538_B9EE98)
/* B9DA20 802400C0 AC201538 */ sw $zero, %lo(D_80241538_B9EE98)($at)
/* B9DA24 802400C4 08090055 */ j .L80240154
/* B9DA28 802400C8 ACA40000 */ sw $a0, ($a1)
.L802400CC:
/* B9DA2C 802400CC 3C038024 */ lui $v1, %hi(D_80241538_B9EE98)
/* B9DA30 802400D0 24631538 */ addiu $v1, $v1, %lo(D_80241538_B9EE98)
/* B9DA34 802400D4 8C620000 */ lw $v0, ($v1)
/* B9DA38 802400D8 2442000A */ addiu $v0, $v0, 0xa
/* B9DA3C 802400DC AC620000 */ sw $v0, ($v1)
/* B9DA40 802400E0 28420100 */ slti $v0, $v0, 0x100
/* B9DA44 802400E4 1440001C */ bnez $v0, .L80240158
/* B9DA48 802400E8 3C02E300 */ lui $v0, 0xe300
/* B9DA4C 802400EC 240200FF */ addiu $v0, $zero, 0xff
/* B9DA50 802400F0 AC620000 */ sw $v0, ($v1)
/* B9DA54 802400F4 24020014 */ addiu $v0, $zero, 0x14
/* B9DA58 802400F8 3C018024 */ lui $at, %hi(D_80241534_B9EE94)
/* B9DA5C 802400FC AC221534 */ sw $v0, %lo(D_80241534_B9EE94)($at)
/* B9DA60 80240100 24020003 */ addiu $v0, $zero, 3
/* B9DA64 80240104 08090055 */ j .L80240154
/* B9DA68 80240108 ACA20000 */ sw $v0, ($a1)
.L8024010C:
/* B9DA6C 8024010C 3C038024 */ lui $v1, %hi(D_80241534_B9EE94)
/* B9DA70 80240110 24631534 */ addiu $v1, $v1, %lo(D_80241534_B9EE94)
/* B9DA74 80240114 8C620000 */ lw $v0, ($v1)
/* B9DA78 80240118 2442FFFF */ addiu $v0, $v0, -1
/* B9DA7C 8024011C 0441000D */ bgez $v0, .L80240154
/* B9DA80 80240120 AC620000 */ sw $v0, ($v1)
/* B9DA84 80240124 24020004 */ addiu $v0, $zero, 4
/* B9DA88 80240128 AC600000 */ sw $zero, ($v1)
/* B9DA8C 8024012C 08090055 */ j .L80240154
/* B9DA90 80240130 ACA20000 */ sw $v0, ($a1)
.L80240134:
/* B9DA94 80240134 3C038024 */ lui $v1, %hi(D_80241538_B9EE98)
/* B9DA98 80240138 24631538 */ addiu $v1, $v1, %lo(D_80241538_B9EE98)
/* B9DA9C 8024013C 8C620000 */ lw $v0, ($v1)
/* B9DAA0 80240140 2442FFF6 */ addiu $v0, $v0, -0xa
/* B9DAA4 80240144 04410003 */ bgez $v0, .L80240154
/* B9DAA8 80240148 AC620000 */ sw $v0, ($v1)
/* B9DAAC 8024014C AC600000 */ sw $zero, ($v1)
/* B9DAB0 80240150 ACA00000 */ sw $zero, ($a1)
.L80240154:
/* B9DAB4 80240154 3C02E300 */ lui $v0, 0xe300
.L80240158:
/* B9DAB8 80240158 34420A01 */ ori $v0, $v0, 0xa01
.L8024015C:
/* B9DABC 8024015C 3C06FC12 */ lui $a2, 0xfc12
/* B9DAC0 80240160 34C6160A */ ori $a2, $a2, 0x160a
/* B9DAC4 80240164 3C08E200 */ lui $t0, 0xe200
/* B9DAC8 80240168 3508001C */ ori $t0, $t0, 0x1c
/* B9DACC 8024016C 3C07C810 */ lui $a3, 0xc810
/* B9DAD0 80240170 3C05800A */ lui $a1, %hi(gMasterGfxPos)
/* B9DAD4 80240174 24A5A66C */ addiu $a1, $a1, %lo(gMasterGfxPos)
/* B9DAD8 80240178 8CA30000 */ lw $v1, ($a1)
/* B9DADC 8024017C 34E74DD8 */ ori $a3, $a3, 0x4dd8
/* B9DAE0 80240180 0060202D */ daddu $a0, $v1, $zero
/* B9DAE4 80240184 24630008 */ addiu $v1, $v1, 8
/* B9DAE8 80240188 ACA30000 */ sw $v1, ($a1)
/* B9DAEC 8024018C AC820000 */ sw $v0, ($a0)
/* B9DAF0 80240190 3C020010 */ lui $v0, 0x10
/* B9DAF4 80240194 AC820004 */ sw $v0, 4($a0)
/* B9DAF8 80240198 24620008 */ addiu $v0, $v1, 8
/* B9DAFC 8024019C ACA20000 */ sw $v0, ($a1)
/* B9DB00 802401A0 3C048024 */ lui $a0, %hi(D_8024153B_B9EE9B)
/* B9DB04 802401A4 9084153B */ lbu $a0, %lo(D_8024153B_B9EE9B)($a0)
/* B9DB08 802401A8 3C02FA00 */ lui $v0, 0xfa00
/* B9DB0C 802401AC AC620000 */ sw $v0, ($v1)
/* B9DB10 802401B0 24620010 */ addiu $v0, $v1, 0x10
/* B9DB14 802401B4 AC640004 */ sw $a0, 4($v1)
/* B9DB18 802401B8 ACA20000 */ sw $v0, ($a1)
/* B9DB1C 802401BC 2402FFF8 */ addiu $v0, $zero, -8
/* B9DB20 802401C0 AC62000C */ sw $v0, 0xc($v1)
/* B9DB24 802401C4 24620018 */ addiu $v0, $v1, 0x18
/* B9DB28 802401C8 AC660008 */ sw $a2, 8($v1)
/* B9DB2C 802401CC ACA20000 */ sw $v0, ($a1)
/* B9DB30 802401D0 AC680010 */ sw $t0, 0x10($v1)
/* B9DB34 802401D4 03E00008 */ jr $ra
/* B9DB38 802401D8 AC670014 */ sw $a3, 0x14($v1)

View File

@ -1,103 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802400D8_BAA218
/* BAA218 802400D8 3C058024 */ lui $a1, %hi(D_80241680_BAB7C0)
/* BAA21C 802400DC 24A51680 */ addiu $a1, $a1, %lo(D_80241680_BAB7C0)
/* BAA220 802400E0 8CA30000 */ lw $v1, ($a1)
/* BAA224 802400E4 24040002 */ addiu $a0, $zero, 2
/* BAA228 802400E8 10640012 */ beq $v1, $a0, .L80240134
/* BAA22C 802400EC 28620003 */ slti $v0, $v1, 3
/* BAA230 802400F0 10400005 */ beqz $v0, .L80240108
/* BAA234 802400F4 24020001 */ addiu $v0, $zero, 1
/* BAA238 802400F8 1062000A */ beq $v1, $v0, .L80240124
/* BAA23C 802400FC 3C02E300 */ lui $v0, 0xe300
/* BAA240 80240100 08090071 */ j .L802401C4
/* BAA244 80240104 34420A01 */ ori $v0, $v0, 0xa01
.L80240108:
/* BAA248 80240108 24020003 */ addiu $v0, $zero, 3
/* BAA24C 8024010C 10620019 */ beq $v1, $v0, .L80240174
/* BAA250 80240110 24020004 */ addiu $v0, $zero, 4
/* BAA254 80240114 10620021 */ beq $v1, $v0, .L8024019C
/* BAA258 80240118 3C02E300 */ lui $v0, 0xe300
/* BAA25C 8024011C 08090071 */ j .L802401C4
/* BAA260 80240120 34420A01 */ ori $v0, $v0, 0xa01
.L80240124:
/* BAA264 80240124 3C018024 */ lui $at, %hi(D_80241688_BAB7C8)
/* BAA268 80240128 AC201688 */ sw $zero, %lo(D_80241688_BAB7C8)($at)
/* BAA26C 8024012C 0809006F */ j .L802401BC
/* BAA270 80240130 ACA40000 */ sw $a0, ($a1)
.L80240134:
/* BAA274 80240134 3C038024 */ lui $v1, %hi(D_80241688_BAB7C8)
/* BAA278 80240138 24631688 */ addiu $v1, $v1, %lo(D_80241688_BAB7C8)
/* BAA27C 8024013C 8C620000 */ lw $v0, ($v1)
/* BAA280 80240140 2442000A */ addiu $v0, $v0, 0xa
/* BAA284 80240144 AC620000 */ sw $v0, ($v1)
/* BAA288 80240148 28420100 */ slti $v0, $v0, 0x100
/* BAA28C 8024014C 1440001C */ bnez $v0, .L802401C0
/* BAA290 80240150 3C02E300 */ lui $v0, 0xe300
/* BAA294 80240154 240200FF */ addiu $v0, $zero, 0xff
/* BAA298 80240158 AC620000 */ sw $v0, ($v1)
/* BAA29C 8024015C 24020032 */ addiu $v0, $zero, 0x32
/* BAA2A0 80240160 3C018024 */ lui $at, %hi(D_80241684_BAB7C4)
/* BAA2A4 80240164 AC221684 */ sw $v0, %lo(D_80241684_BAB7C4)($at)
/* BAA2A8 80240168 24020003 */ addiu $v0, $zero, 3
/* BAA2AC 8024016C 0809006F */ j .L802401BC
/* BAA2B0 80240170 ACA20000 */ sw $v0, ($a1)
.L80240174:
/* BAA2B4 80240174 3C038024 */ lui $v1, %hi(D_80241684_BAB7C4)
/* BAA2B8 80240178 24631684 */ addiu $v1, $v1, %lo(D_80241684_BAB7C4)
/* BAA2BC 8024017C 8C620000 */ lw $v0, ($v1)
/* BAA2C0 80240180 2442FFFF */ addiu $v0, $v0, -1
/* BAA2C4 80240184 0441000D */ bgez $v0, .L802401BC
/* BAA2C8 80240188 AC620000 */ sw $v0, ($v1)
/* BAA2CC 8024018C 24020004 */ addiu $v0, $zero, 4
/* BAA2D0 80240190 AC600000 */ sw $zero, ($v1)
/* BAA2D4 80240194 0809006F */ j .L802401BC
/* BAA2D8 80240198 ACA20000 */ sw $v0, ($a1)
.L8024019C:
/* BAA2DC 8024019C 3C038024 */ lui $v1, %hi(D_80241688_BAB7C8)
/* BAA2E0 802401A0 24631688 */ addiu $v1, $v1, %lo(D_80241688_BAB7C8)
/* BAA2E4 802401A4 8C620000 */ lw $v0, ($v1)
/* BAA2E8 802401A8 2442FFF9 */ addiu $v0, $v0, -7
/* BAA2EC 802401AC 04410003 */ bgez $v0, .L802401BC
/* BAA2F0 802401B0 AC620000 */ sw $v0, ($v1)
/* BAA2F4 802401B4 AC600000 */ sw $zero, ($v1)
/* BAA2F8 802401B8 ACA00000 */ sw $zero, ($a1)
.L802401BC:
/* BAA2FC 802401BC 3C02E300 */ lui $v0, 0xe300
.L802401C0:
/* BAA300 802401C0 34420A01 */ ori $v0, $v0, 0xa01
.L802401C4:
/* BAA304 802401C4 3C06FC12 */ lui $a2, 0xfc12
/* BAA308 802401C8 34C6160A */ ori $a2, $a2, 0x160a
/* BAA30C 802401CC 3C08E200 */ lui $t0, 0xe200
/* BAA310 802401D0 3508001C */ ori $t0, $t0, 0x1c
/* BAA314 802401D4 3C07C810 */ lui $a3, 0xc810
/* BAA318 802401D8 3C05800A */ lui $a1, %hi(gMasterGfxPos)
/* BAA31C 802401DC 24A5A66C */ addiu $a1, $a1, %lo(gMasterGfxPos)
/* BAA320 802401E0 8CA30000 */ lw $v1, ($a1)
/* BAA324 802401E4 34E74DD8 */ ori $a3, $a3, 0x4dd8
/* BAA328 802401E8 0060202D */ daddu $a0, $v1, $zero
/* BAA32C 802401EC 24630008 */ addiu $v1, $v1, 8
/* BAA330 802401F0 ACA30000 */ sw $v1, ($a1)
/* BAA334 802401F4 AC820000 */ sw $v0, ($a0)
/* BAA338 802401F8 3C020010 */ lui $v0, 0x10
/* BAA33C 802401FC AC820004 */ sw $v0, 4($a0)
/* BAA340 80240200 24620008 */ addiu $v0, $v1, 8
/* BAA344 80240204 ACA20000 */ sw $v0, ($a1)
/* BAA348 80240208 3C048024 */ lui $a0, %hi(D_8024168B_BAB7CB)
/* BAA34C 8024020C 9084168B */ lbu $a0, %lo(D_8024168B_BAB7CB)($a0)
/* BAA350 80240210 3C02FA00 */ lui $v0, 0xfa00
/* BAA354 80240214 AC620000 */ sw $v0, ($v1)
/* BAA358 80240218 24620010 */ addiu $v0, $v1, 0x10
/* BAA35C 8024021C AC640004 */ sw $a0, 4($v1)
/* BAA360 80240220 ACA20000 */ sw $v0, ($a1)
/* BAA364 80240224 2402FFF8 */ addiu $v0, $zero, -8
/* BAA368 80240228 AC62000C */ sw $v0, 0xc($v1)
/* BAA36C 8024022C 24620018 */ addiu $v0, $v1, 0x18
/* BAA370 80240230 AC660008 */ sw $a2, 8($v1)
/* BAA374 80240234 ACA20000 */ sw $v0, ($a1)
/* BAA378 80240238 AC680010 */ sw $t0, 0x10($v1)
/* BAA37C 8024023C 03E00008 */ jr $ra
/* BAA380 80240240 AC670014 */ sw $a3, 0x14($v1)

View File

@ -1,422 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.section .rodata
dlabel D_80246E20_9F4A10
.double 0.2
dlabel D_80246E28_9F4A18
.double 0.92
dlabel D_80246E30_9F4A20
.double 0.92, 0.0
.section .text
glabel func_80240814_9EE404
/* 9EE404 80240814 27BDFF80 */ addiu $sp, $sp, -0x80
/* 9EE408 80240818 3C028024 */ lui $v0, %hi(D_802413F8_9EEFE8)
/* 9EE40C 8024081C 244213F8 */ addiu $v0, $v0, %lo(D_802413F8_9EEFE8)
/* 9EE410 80240820 AFBF0048 */ sw $ra, 0x48($sp)
/* 9EE414 80240824 AFB70044 */ sw $s7, 0x44($sp)
/* 9EE418 80240828 AFB60040 */ sw $s6, 0x40($sp)
/* 9EE41C 8024082C AFB5003C */ sw $s5, 0x3c($sp)
/* 9EE420 80240830 AFB40038 */ sw $s4, 0x38($sp)
/* 9EE424 80240834 AFB30034 */ sw $s3, 0x34($sp)
/* 9EE428 80240838 AFB20030 */ sw $s2, 0x30($sp)
/* 9EE42C 8024083C AFB1002C */ sw $s1, 0x2c($sp)
/* 9EE430 80240840 AFB00028 */ sw $s0, 0x28($sp)
/* 9EE434 80240844 F7BE0078 */ sdc1 $f30, 0x78($sp)
/* 9EE438 80240848 F7BC0070 */ sdc1 $f28, 0x70($sp)
/* 9EE43C 8024084C F7BA0068 */ sdc1 $f26, 0x68($sp)
/* 9EE440 80240850 F7B80060 */ sdc1 $f24, 0x60($sp)
/* 9EE444 80240854 F7B60058 */ sdc1 $f22, 0x58($sp)
/* 9EE448 80240858 F7B40050 */ sdc1 $f20, 0x50($sp)
/* 9EE44C 8024085C C44E0000 */ lwc1 $f14, ($v0)
/* 9EE450 80240860 3C018024 */ lui $at, %hi(D_80246E20_9F4A10)
/* 9EE454 80240864 D4226E20 */ ldc1 $f2, %lo(D_80246E20_9F4A10)($at)
/* 9EE458 80240868 44805000 */ mtc1 $zero, $f10
/* 9EE45C 8024086C E7AE0020 */ swc1 $f14, 0x20($sp)
/* 9EE460 80240870 C4400014 */ lwc1 $f0, 0x14($v0)
/* 9EE464 80240874 C4480030 */ lwc1 $f8, 0x30($v0)
/* 9EE468 80240878 46000021 */ cvt.d.s $f0, $f0
/* 9EE46C 8024087C 46220000 */ add.d $f0, $f0, $f2
/* 9EE470 80240880 C45E0004 */ lwc1 $f30, 4($v0)
/* 9EE474 80240884 C44E0008 */ lwc1 $f14, 8($v0)
/* 9EE478 80240888 460A4032 */ c.eq.s $f8, $f10
/* 9EE47C 8024088C 46200120 */ cvt.s.d $f4, $f0
/* 9EE480 80240890 E4440014 */ swc1 $f4, 0x14($v0)
/* 9EE484 80240894 4501002D */ bc1t .L8024094C
/* 9EE488 80240898 E7AE0024 */ swc1 $f14, 0x24($sp)
/* 9EE48C 8024089C C4420010 */ lwc1 $f2, 0x10($v0)
/* 9EE490 802408A0 C4400038 */ lwc1 $f0, 0x38($v0)
/* 9EE494 802408A4 46001080 */ add.s $f2, $f2, $f0
/* 9EE498 802408A8 C440000C */ lwc1 $f0, 0xc($v0)
/* 9EE49C 802408AC 4602003C */ c.lt.s $f0, $f2
/* 9EE4A0 802408B0 00000000 */ nop
/* 9EE4A4 802408B4 45000009 */ bc1f .L802408DC
/* 9EE4A8 802408B8 E4420010 */ swc1 $f2, 0x10($v0)
/* 9EE4AC 802408BC 46020001 */ sub.s $f0, $f0, $f2
/* 9EE4B0 802408C0 3C013F00 */ lui $at, 0x3f00
/* 9EE4B4 802408C4 44811000 */ mtc1 $at, $f2
/* 9EE4B8 802408C8 00000000 */ nop
/* 9EE4BC 802408CC 46020002 */ mul.s $f0, $f0, $f2
/* 9EE4C0 802408D0 00000000 */ nop
/* 9EE4C4 802408D4 46002000 */ add.s $f0, $f4, $f0
/* 9EE4C8 802408D8 E4400014 */ swc1 $f0, 0x14($v0)
.L802408DC:
/* 9EE4CC 802408DC C4420018 */ lwc1 $f2, 0x18($v0)
/* 9EE4D0 802408E0 C4460020 */ lwc1 $f6, 0x20($v0)
/* 9EE4D4 802408E4 46061081 */ sub.s $f2, $f2, $f6
/* 9EE4D8 802408E8 3C014120 */ lui $at, 0x4120
/* 9EE4DC 802408EC 44812000 */ mtc1 $at, $f4
/* 9EE4E0 802408F0 C440001C */ lwc1 $f0, 0x1c($v0)
/* 9EE4E4 802408F4 46041083 */ div.s $f2, $f2, $f4
/* 9EE4E8 802408F8 46020000 */ add.s $f0, $f0, $f2
/* 9EE4EC 802408FC 3C018024 */ lui $at, %hi(D_80246E28_9F4A18)
/* 9EE4F0 80240900 D4226E28 */ ldc1 $f2, %lo(D_80246E28_9F4A18)($at)
/* 9EE4F4 80240904 46000021 */ cvt.d.s $f0, $f0
/* 9EE4F8 80240908 46220002 */ mul.d $f0, $f0, $f2
/* 9EE4FC 8024090C 00000000 */ nop
/* 9EE500 80240910 C4440034 */ lwc1 $f4, 0x34($v0)
/* 9EE504 80240914 3C013F80 */ lui $at, 0x3f80
/* 9EE508 80240918 44811000 */ mtc1 $at, $f2
/* 9EE50C 8024091C 00000000 */ nop
/* 9EE510 80240920 46022100 */ add.s $f4, $f4, $f2
/* 9EE514 80240924 C442003C */ lwc1 $f2, 0x3c($v0)
/* 9EE518 80240928 46023180 */ add.s $f6, $f6, $f2
/* 9EE51C 8024092C 4604403E */ c.le.s $f8, $f4
/* 9EE520 80240930 E4440034 */ swc1 $f4, 0x34($v0)
/* 9EE524 80240934 E4460020 */ swc1 $f6, 0x20($v0)
/* 9EE528 80240938 46200020 */ cvt.s.d $f0, $f0
/* 9EE52C 8024093C 45000023 */ bc1f .L802409CC
/* 9EE530 80240940 E440001C */ swc1 $f0, 0x1c($v0)
/* 9EE534 80240944 08090273 */ j .L802409CC
/* 9EE538 80240948 E44A0030 */ swc1 $f10, 0x30($v0)
.L8024094C:
/* 9EE53C 8024094C C4400010 */ lwc1 $f0, 0x10($v0)
/* 9EE540 80240950 46040000 */ add.s $f0, $f0, $f4
/* 9EE544 80240954 C442000C */ lwc1 $f2, 0xc($v0)
/* 9EE548 80240958 4600103C */ c.lt.s $f2, $f0
/* 9EE54C 8024095C 00000000 */ nop
/* 9EE550 80240960 45000009 */ bc1f .L80240988
/* 9EE554 80240964 E4400010 */ swc1 $f0, 0x10($v0)
/* 9EE558 80240968 46001001 */ sub.s $f0, $f2, $f0
/* 9EE55C 8024096C 3C013F00 */ lui $at, 0x3f00
/* 9EE560 80240970 44811000 */ mtc1 $at, $f2
/* 9EE564 80240974 00000000 */ nop
/* 9EE568 80240978 46020002 */ mul.s $f0, $f0, $f2
/* 9EE56C 8024097C 00000000 */ nop
/* 9EE570 80240980 46002000 */ add.s $f0, $f4, $f0
/* 9EE574 80240984 E4400014 */ swc1 $f0, 0x14($v0)
.L80240988:
/* 9EE578 80240988 C4420018 */ lwc1 $f2, 0x18($v0)
/* 9EE57C 8024098C C4460020 */ lwc1 $f6, 0x20($v0)
/* 9EE580 80240990 46061081 */ sub.s $f2, $f2, $f6
/* 9EE584 80240994 3C014120 */ lui $at, 0x4120
/* 9EE588 80240998 44812000 */ mtc1 $at, $f4
/* 9EE58C 8024099C C440001C */ lwc1 $f0, 0x1c($v0)
/* 9EE590 802409A0 46041083 */ div.s $f2, $f2, $f4
/* 9EE594 802409A4 46020000 */ add.s $f0, $f0, $f2
/* 9EE598 802409A8 3C018024 */ lui $at, %hi(D_80246E30_9F4A20)
/* 9EE59C 802409AC D4226E30 */ ldc1 $f2, %lo(D_80246E30_9F4A20)($at)
/* 9EE5A0 802409B0 46000021 */ cvt.d.s $f0, $f0
/* 9EE5A4 802409B4 46220002 */ mul.d $f0, $f0, $f2
/* 9EE5A8 802409B8 00000000 */ nop
/* 9EE5AC 802409BC 46200020 */ cvt.s.d $f0, $f0
/* 9EE5B0 802409C0 46003180 */ add.s $f6, $f6, $f0
/* 9EE5B4 802409C4 E440001C */ swc1 $f0, 0x1c($v0)
/* 9EE5B8 802409C8 E4460020 */ swc1 $f6, 0x20($v0)
.L802409CC:
/* 9EE5BC 802409CC 3C108024 */ lui $s0, %hi(D_802413F8_9EEFE8)
/* 9EE5C0 802409D0 261013F8 */ addiu $s0, $s0, %lo(D_802413F8_9EEFE8)
/* 9EE5C4 802409D4 3C140001 */ lui $s4, 1
/* 9EE5C8 802409D8 C6000014 */ lwc1 $f0, 0x14($s0)
/* 9EE5CC 802409DC 3C013FE0 */ lui $at, 0x3fe0
/* 9EE5D0 802409E0 44811800 */ mtc1 $at, $f3
/* 9EE5D4 802409E4 44801000 */ mtc1 $zero, $f2
/* 9EE5D8 802409E8 46000021 */ cvt.d.s $f0, $f0
/* 9EE5DC 802409EC 46220002 */ mul.d $f0, $f0, $f2
/* 9EE5E0 802409F0 00000000 */ nop
/* 9EE5E4 802409F4 3C12800A */ lui $s2, %hi(gMasterGfxPos)
/* 9EE5E8 802409F8 2652A66C */ addiu $s2, $s2, %lo(gMasterGfxPos)
/* 9EE5EC 802409FC 36941630 */ ori $s4, $s4, 0x1630
/* 9EE5F0 80240A00 3C02DE00 */ lui $v0, 0xde00
/* 9EE5F4 80240A04 3C118007 */ lui $s1, %hi(gMatrixListPos)
/* 9EE5F8 80240A08 263141F0 */ addiu $s1, $s1, %lo(gMatrixListPos)
/* 9EE5FC 80240A0C 8E430000 */ lw $v1, ($s2)
/* 9EE600 80240A10 3C13800A */ lui $s3, %hi(gDisplayContext)
/* 9EE604 80240A14 2673A674 */ addiu $s3, $s3, %lo(gDisplayContext)
/* 9EE608 80240A18 0060202D */ daddu $a0, $v1, $zero
/* 9EE60C 80240A1C 46200020 */ cvt.s.d $f0, $f0
/* 9EE610 80240A20 E6000014 */ swc1 $f0, 0x14($s0)
/* 9EE614 80240A24 AC820000 */ sw $v0, ($a0)
/* 9EE618 80240A28 3C028024 */ lui $v0, %hi(D_80241768_9EF358)
/* 9EE61C 80240A2C 24421768 */ addiu $v0, $v0, %lo(D_80241768_9EF358)
/* 9EE620 80240A30 AC820004 */ sw $v0, 4($a0)
/* 9EE624 80240A34 8E050000 */ lw $a1, ($s0)
/* 9EE628 80240A38 8E060004 */ lw $a2, 4($s0)
/* 9EE62C 80240A3C 8E070008 */ lw $a3, 8($s0)
/* 9EE630 80240A40 96240000 */ lhu $a0, ($s1)
/* 9EE634 80240A44 8E620000 */ lw $v0, ($s3)
/* 9EE638 80240A48 24630008 */ addiu $v1, $v1, 8
/* 9EE63C 80240A4C AE430000 */ sw $v1, ($s2)
/* 9EE640 80240A50 00042180 */ sll $a0, $a0, 6
/* 9EE644 80240A54 00942021 */ addu $a0, $a0, $s4
/* 9EE648 80240A58 0C019E08 */ jal guTranslate
/* 9EE64C 80240A5C 00442021 */ addu $a0, $v0, $a0
/* 9EE650 80240A60 3C02DA38 */ lui $v0, 0xda38
/* 9EE654 80240A64 34420002 */ ori $v0, $v0, 2
/* 9EE658 80240A68 8E440000 */ lw $a0, ($s2)
/* 9EE65C 80240A6C 96250000 */ lhu $a1, ($s1)
/* 9EE660 80240A70 4480C000 */ mtc1 $zero, $f24
/* 9EE664 80240A74 0080302D */ daddu $a2, $a0, $zero
/* 9EE668 80240A78 ACC20000 */ sw $v0, ($a2)
/* 9EE66C 80240A7C 30A2FFFF */ andi $v0, $a1, 0xffff
/* 9EE670 80240A80 00021180 */ sll $v0, $v0, 6
/* 9EE674 80240A84 8E630000 */ lw $v1, ($s3)
/* 9EE678 80240A88 00541021 */ addu $v0, $v0, $s4
/* 9EE67C 80240A8C 00621821 */ addu $v1, $v1, $v0
/* 9EE680 80240A90 ACC30004 */ sw $v1, 4($a2)
/* 9EE684 80240A94 C61C0020 */ lwc1 $f28, 0x20($s0)
/* 9EE688 80240A98 4618E302 */ mul.s $f12, $f28, $f24
/* 9EE68C 80240A9C 00000000 */ nop
/* 9EE690 80240AA0 3C014334 */ lui $at, 0x4334
/* 9EE694 80240AA4 4481A000 */ mtc1 $at, $f20
/* 9EE698 80240AA8 3C014049 */ lui $at, 0x4049
/* 9EE69C 80240AAC 34210FD8 */ ori $at, $at, 0xfd8
/* 9EE6A0 80240AB0 4481B000 */ mtc1 $at, $f22
/* 9EE6A4 80240AB4 24840008 */ addiu $a0, $a0, 8
/* 9EE6A8 80240AB8 46146303 */ div.s $f12, $f12, $f20
/* 9EE6AC 80240ABC 46166302 */ mul.s $f12, $f12, $f22
/* 9EE6B0 80240AC0 00000000 */ nop
/* 9EE6B4 80240AC4 24A50001 */ addiu $a1, $a1, 1
/* 9EE6B8 80240AC8 AE440000 */ sw $a0, ($s2)
/* 9EE6BC 80240ACC A6250000 */ sh $a1, ($s1)
/* 9EE6C0 80240AD0 C61A0010 */ lwc1 $f26, 0x10($s0)
/* 9EE6C4 80240AD4 0C00A85B */ jal sin_rad
/* 9EE6C8 80240AD8 24150001 */ addiu $s5, $zero, 1
/* 9EE6CC 80240ADC C60C0020 */ lwc1 $f12, 0x20($s0)
/* 9EE6D0 80240AE0 46186302 */ mul.s $f12, $f12, $f24
/* 9EE6D4 80240AE4 00000000 */ nop
/* 9EE6D8 80240AE8 4600D002 */ mul.s $f0, $f26, $f0
/* 9EE6DC 80240AEC 00000000 */ nop
/* 9EE6E0 80240AF0 46146303 */ div.s $f12, $f12, $f20
/* 9EE6E4 80240AF4 46166302 */ mul.s $f12, $f12, $f22
/* 9EE6E8 80240AF8 00000000 */ nop
/* 9EE6EC 80240AFC 0200B02D */ daddu $s6, $s0, $zero
/* 9EE6F0 80240B00 C7AE0020 */ lwc1 $f14, 0x20($sp)
/* 9EE6F4 80240B04 3C178024 */ lui $s7, %hi(D_80241748_9EF338)
/* 9EE6F8 80240B08 26F71748 */ addiu $s7, $s7, %lo(D_80241748_9EF338)
/* 9EE6FC 80240B0C 46007380 */ add.s $f14, $f14, $f0
/* 9EE700 80240B10 3C100001 */ lui $s0, 1
/* 9EE704 80240B14 36101630 */ ori $s0, $s0, 0x1630
/* 9EE708 80240B18 0C00A874 */ jal cos_rad
/* 9EE70C 80240B1C E7AE0020 */ swc1 $f14, 0x20($sp)
/* 9EE710 80240B20 4600D587 */ neg.s $f22, $f26
/* 9EE714 80240B24 4405C000 */ mfc1 $a1, $f24
/* 9EE718 80240B28 4406C000 */ mfc1 $a2, $f24
/* 9EE71C 80240B2C 4407E000 */ mfc1 $a3, $f28
/* 9EE720 80240B30 96240000 */ lhu $a0, ($s1)
/* 9EE724 80240B34 4600B002 */ mul.s $f0, $f22, $f0
/* 9EE728 80240B38 00000000 */ nop
/* 9EE72C 80240B3C E7B80014 */ swc1 $f24, 0x14($sp)
/* 9EE730 80240B40 E7B60018 */ swc1 $f22, 0x18($sp)
/* 9EE734 80240B44 E7B8001C */ swc1 $f24, 0x1c($sp)
/* 9EE738 80240B48 8E620000 */ lw $v0, ($s3)
/* 9EE73C 80240B4C 3C013F80 */ lui $at, 0x3f80
/* 9EE740 80240B50 44811000 */ mtc1 $at, $f2
/* 9EE744 80240B54 00042180 */ sll $a0, $a0, 6
/* 9EE748 80240B58 00942021 */ addu $a0, $a0, $s4
/* 9EE74C 80240B5C 00442021 */ addu $a0, $v0, $a0
/* 9EE750 80240B60 E7A20010 */ swc1 $f2, 0x10($sp)
/* 9EE754 80240B64 0C01903A */ jal guPosition
/* 9EE758 80240B68 4600F780 */ add.s $f30, $f30, $f0
/* 9EE75C 80240B6C 3C04DA38 */ lui $a0, 0xda38
/* 9EE760 80240B70 00952025 */ or $a0, $a0, $s5
/* 9EE764 80240B74 8E430000 */ lw $v1, ($s2)
/* 9EE768 80240B78 96220000 */ lhu $v0, ($s1)
/* 9EE76C 80240B7C 0060282D */ daddu $a1, $v1, $zero
/* 9EE770 80240B80 24630008 */ addiu $v1, $v1, 8
/* 9EE774 80240B84 AE430000 */ sw $v1, ($s2)
/* 9EE778 80240B88 00551821 */ addu $v1, $v0, $s5
/* 9EE77C 80240B8C 3042FFFF */ andi $v0, $v0, 0xffff
/* 9EE780 80240B90 00021180 */ sll $v0, $v0, 6
/* 9EE784 80240B94 ACA40000 */ sw $a0, ($a1)
/* 9EE788 80240B98 A6230000 */ sh $v1, ($s1)
/* 9EE78C 80240B9C 8E630000 */ lw $v1, ($s3)
/* 9EE790 80240BA0 00541021 */ addu $v0, $v0, $s4
/* 9EE794 80240BA4 00621821 */ addu $v1, $v1, $v0
/* 9EE798 80240BA8 ACA30004 */ sw $v1, 4($a1)
.L80240BAC:
/* 9EE79C 80240BAC C6DC0020 */ lwc1 $f28, 0x20($s6)
/* 9EE7A0 80240BB0 4495A000 */ mtc1 $s5, $f20
/* 9EE7A4 80240BB4 00000000 */ nop
/* 9EE7A8 80240BB8 4680A520 */ cvt.s.w $f20, $f20
/* 9EE7AC 80240BBC 4614E302 */ mul.s $f12, $f28, $f20
/* 9EE7B0 80240BC0 00000000 */ nop
/* 9EE7B4 80240BC4 3C014334 */ lui $at, 0x4334
/* 9EE7B8 80240BC8 44817000 */ mtc1 $at, $f14
/* 9EE7BC 80240BCC 00000000 */ nop
/* 9EE7C0 80240BD0 460E6303 */ div.s $f12, $f12, $f14
/* 9EE7C4 80240BD4 3C014049 */ lui $at, 0x4049
/* 9EE7C8 80240BD8 34210FD8 */ ori $at, $at, 0xfd8
/* 9EE7CC 80240BDC 44817000 */ mtc1 $at, $f14
/* 9EE7D0 80240BE0 00000000 */ nop
/* 9EE7D4 80240BE4 460E6302 */ mul.s $f12, $f12, $f14
/* 9EE7D8 80240BE8 00000000 */ nop
/* 9EE7DC 80240BEC C6D60010 */ lwc1 $f22, 0x10($s6)
/* 9EE7E0 80240BF0 0C00A85B */ jal sin_rad
/* 9EE7E4 80240BF4 26B50001 */ addiu $s5, $s5, 1
/* 9EE7E8 80240BF8 C6CC0020 */ lwc1 $f12, 0x20($s6)
/* 9EE7EC 80240BFC 46146302 */ mul.s $f12, $f12, $f20
/* 9EE7F0 80240C00 00000000 */ nop
/* 9EE7F4 80240C04 4600B002 */ mul.s $f0, $f22, $f0
/* 9EE7F8 80240C08 00000000 */ nop
/* 9EE7FC 80240C0C 3C014334 */ lui $at, 0x4334
/* 9EE800 80240C10 44817000 */ mtc1 $at, $f14
/* 9EE804 80240C14 00000000 */ nop
/* 9EE808 80240C18 460E6303 */ div.s $f12, $f12, $f14
/* 9EE80C 80240C1C 3C014049 */ lui $at, 0x4049
/* 9EE810 80240C20 34210FD8 */ ori $at, $at, 0xfd8
/* 9EE814 80240C24 44817000 */ mtc1 $at, $f14
/* 9EE818 80240C28 00000000 */ nop
/* 9EE81C 80240C2C 460E6302 */ mul.s $f12, $f12, $f14
/* 9EE820 80240C30 00000000 */ nop
/* 9EE824 80240C34 C7AE0020 */ lwc1 $f14, 0x20($sp)
/* 9EE828 80240C38 46007380 */ add.s $f14, $f14, $f0
/* 9EE82C 80240C3C 4600B587 */ neg.s $f22, $f22
/* 9EE830 80240C40 0C00A874 */ jal cos_rad
/* 9EE834 80240C44 E7AE0020 */ swc1 $f14, 0x20($sp)
/* 9EE838 80240C48 3C090100 */ lui $t1, 0x100
/* 9EE83C 80240C4C 35292004 */ ori $t1, $t1, 0x2004
/* 9EE840 80240C50 4600B002 */ mul.s $f0, $f22, $f0
/* 9EE844 80240C54 00000000 */ nop
/* 9EE848 80240C58 8E430000 */ lw $v1, ($s2)
/* 9EE84C 80240C5C 4405C000 */ mfc1 $a1, $f24
/* 9EE850 80240C60 4406C000 */ mfc1 $a2, $f24
/* 9EE854 80240C64 4407E000 */ mfc1 $a3, $f28
/* 9EE858 80240C68 96240000 */ lhu $a0, ($s1)
/* 9EE85C 80240C6C 8E620000 */ lw $v0, ($s3)
/* 9EE860 80240C70 3C013F80 */ lui $at, 0x3f80
/* 9EE864 80240C74 44811000 */ mtc1 $at, $f2
/* 9EE868 80240C78 0060402D */ daddu $t0, $v1, $zero
/* 9EE86C 80240C7C 24630008 */ addiu $v1, $v1, 8
/* 9EE870 80240C80 00042180 */ sll $a0, $a0, 6
/* 9EE874 80240C84 00902021 */ addu $a0, $a0, $s0
/* 9EE878 80240C88 00442021 */ addu $a0, $v0, $a0
/* 9EE87C 80240C8C AE430000 */ sw $v1, ($s2)
/* 9EE880 80240C90 AD090000 */ sw $t1, ($t0)
/* 9EE884 80240C94 AD170004 */ sw $s7, 4($t0)
/* 9EE888 80240C98 E7A20010 */ swc1 $f2, 0x10($sp)
/* 9EE88C 80240C9C E7B80014 */ swc1 $f24, 0x14($sp)
/* 9EE890 80240CA0 E7B60018 */ swc1 $f22, 0x18($sp)
/* 9EE894 80240CA4 E7B8001C */ swc1 $f24, 0x1c($sp)
/* 9EE898 80240CA8 0C01903A */ jal guPosition
/* 9EE89C 80240CAC 4600F780 */ add.s $f30, $f30, $f0
/* 9EE8A0 80240CB0 3C02DA38 */ lui $v0, 0xda38
/* 9EE8A4 80240CB4 34420001 */ ori $v0, $v0, 1
/* 9EE8A8 80240CB8 3C060100 */ lui $a2, 0x100
/* 9EE8AC 80240CBC 34C62008 */ ori $a2, $a2, 0x2008
/* 9EE8B0 80240CC0 3C080600 */ lui $t0, 0x600
/* 9EE8B4 80240CC4 35080402 */ ori $t0, $t0, 0x402
/* 9EE8B8 80240CC8 3C070004 */ lui $a3, 4
/* 9EE8BC 80240CCC 34E70602 */ ori $a3, $a3, 0x602
/* 9EE8C0 80240CD0 8E440000 */ lw $a0, ($s2)
/* 9EE8C4 80240CD4 96230000 */ lhu $v1, ($s1)
/* 9EE8C8 80240CD8 0080282D */ daddu $a1, $a0, $zero
/* 9EE8CC 80240CDC 24840008 */ addiu $a0, $a0, 8
/* 9EE8D0 80240CE0 AE440000 */ sw $a0, ($s2)
/* 9EE8D4 80240CE4 ACA20000 */ sw $v0, ($a1)
/* 9EE8D8 80240CE8 24620001 */ addiu $v0, $v1, 1
/* 9EE8DC 80240CEC 3063FFFF */ andi $v1, $v1, 0xffff
/* 9EE8E0 80240CF0 00031980 */ sll $v1, $v1, 6
/* 9EE8E4 80240CF4 A6220000 */ sh $v0, ($s1)
/* 9EE8E8 80240CF8 8E620000 */ lw $v0, ($s3)
/* 9EE8EC 80240CFC 00701821 */ addu $v1, $v1, $s0
/* 9EE8F0 80240D00 00431021 */ addu $v0, $v0, $v1
/* 9EE8F4 80240D04 ACA20004 */ sw $v0, 4($a1)
/* 9EE8F8 80240D08 24820008 */ addiu $v0, $a0, 8
/* 9EE8FC 80240D0C AE420000 */ sw $v0, ($s2)
/* 9EE900 80240D10 24820010 */ addiu $v0, $a0, 0x10
/* 9EE904 80240D14 AC860000 */ sw $a2, ($a0)
/* 9EE908 80240D18 AC970004 */ sw $s7, 4($a0)
/* 9EE90C 80240D1C AE420000 */ sw $v0, ($s2)
/* 9EE910 80240D20 2AA20010 */ slti $v0, $s5, 0x10
/* 9EE914 80240D24 AC880008 */ sw $t0, 8($a0)
/* 9EE918 80240D28 1440FFA0 */ bnez $v0, .L80240BAC
/* 9EE91C 80240D2C AC87000C */ sw $a3, 0xc($a0)
/* 9EE920 80240D30 3C03D838 */ lui $v1, 0xd838
/* 9EE924 80240D34 3C05800A */ lui $a1, %hi(gMasterGfxPos)
/* 9EE928 80240D38 24A5A66C */ addiu $a1, $a1, %lo(gMasterGfxPos)
/* 9EE92C 80240D3C 8CA20000 */ lw $v0, ($a1)
/* 9EE930 80240D40 34630002 */ ori $v1, $v1, 2
/* 9EE934 80240D44 0040202D */ daddu $a0, $v0, $zero
/* 9EE938 80240D48 24420008 */ addiu $v0, $v0, 8
/* 9EE93C 80240D4C ACA20000 */ sw $v0, ($a1)
/* 9EE940 80240D50 AC830000 */ sw $v1, ($a0)
/* 9EE944 80240D54 24030040 */ addiu $v1, $zero, 0x40
/* 9EE948 80240D58 AC830004 */ sw $v1, 4($a0)
/* 9EE94C 80240D5C 3C03E700 */ lui $v1, 0xe700
/* 9EE950 80240D60 AC430000 */ sw $v1, ($v0)
/* 9EE954 80240D64 3C038024 */ lui $v1, %hi(D_802413F8_9EEFE8)
/* 9EE958 80240D68 246313F8 */ addiu $v1, $v1, %lo(D_802413F8_9EEFE8)
/* 9EE95C 80240D6C AC400004 */ sw $zero, 4($v0)
/* 9EE960 80240D70 8C640040 */ lw $a0, 0x40($v1)
/* 9EE964 80240D74 24420008 */ addiu $v0, $v0, 8
/* 9EE968 80240D78 ACA20000 */ sw $v0, ($a1)
/* 9EE96C 80240D7C C7AE0020 */ lwc1 $f14, 0x20($sp)
/* 9EE970 80240D80 E47E0028 */ swc1 $f30, 0x28($v1)
/* 9EE974 80240D84 E46E0024 */ swc1 $f14, 0x24($v1)
/* 9EE978 80240D88 C7AE0024 */ lwc1 $f14, 0x24($sp)
/* 9EE97C 80240D8C 1080000E */ beqz $a0, .L80240DC8
/* 9EE980 80240D90 E46E002C */ swc1 $f14, 0x2c($v1)
/* 9EE984 80240D94 3C014080 */ lui $at, 0x4080
/* 9EE988 80240D98 44811000 */ mtc1 $at, $f2
/* 9EE98C 80240D9C C7AE0020 */ lwc1 $f14, 0x20($sp)
/* 9EE990 80240DA0 3C0140C0 */ lui $at, 0x40c0
/* 9EE994 80240DA4 44810000 */ mtc1 $at, $f0
/* 9EE998 80240DA8 4602F081 */ sub.s $f2, $f30, $f2
/* 9EE99C 80240DAC E48E0038 */ swc1 $f14, 0x38($a0)
/* 9EE9A0 80240DB0 8C620040 */ lw $v0, 0x40($v1)
/* 9EE9A4 80240DB4 E442003C */ swc1 $f2, 0x3c($v0)
/* 9EE9A8 80240DB8 C7AE0024 */ lwc1 $f14, 0x24($sp)
/* 9EE9AC 80240DBC 46007000 */ add.s $f0, $f14, $f0
/* 9EE9B0 80240DC0 8C620040 */ lw $v0, 0x40($v1)
/* 9EE9B4 80240DC4 E4400040 */ swc1 $f0, 0x40($v0)
.L80240DC8:
/* 9EE9B8 80240DC8 8C620044 */ lw $v0, 0x44($v1)
/* 9EE9BC 80240DCC 1040000E */ beqz $v0, .L80240E08
/* 9EE9C0 80240DD0 00000000 */ nop
/* 9EE9C4 80240DD4 3C014080 */ lui $at, 0x4080
/* 9EE9C8 80240DD8 44811000 */ mtc1 $at, $f2
/* 9EE9CC 80240DDC C7AE0020 */ lwc1 $f14, 0x20($sp)
/* 9EE9D0 80240DE0 3C014040 */ lui $at, 0x4040
/* 9EE9D4 80240DE4 44810000 */ mtc1 $at, $f0
/* 9EE9D8 80240DE8 4602F081 */ sub.s $f2, $f30, $f2
/* 9EE9DC 80240DEC E44E0038 */ swc1 $f14, 0x38($v0)
/* 9EE9E0 80240DF0 8C620044 */ lw $v0, 0x44($v1)
/* 9EE9E4 80240DF4 E442003C */ swc1 $f2, 0x3c($v0)
/* 9EE9E8 80240DF8 C7AE0024 */ lwc1 $f14, 0x24($sp)
/* 9EE9EC 80240DFC 46007000 */ add.s $f0, $f14, $f0
/* 9EE9F0 80240E00 8C620044 */ lw $v0, 0x44($v1)
/* 9EE9F4 80240E04 E4400040 */ swc1 $f0, 0x40($v0)
.L80240E08:
/* 9EE9F8 80240E08 8FBF0048 */ lw $ra, 0x48($sp)
/* 9EE9FC 80240E0C 8FB70044 */ lw $s7, 0x44($sp)
/* 9EEA00 80240E10 8FB60040 */ lw $s6, 0x40($sp)
/* 9EEA04 80240E14 8FB5003C */ lw $s5, 0x3c($sp)
/* 9EEA08 80240E18 8FB40038 */ lw $s4, 0x38($sp)
/* 9EEA0C 80240E1C 8FB30034 */ lw $s3, 0x34($sp)
/* 9EEA10 80240E20 8FB20030 */ lw $s2, 0x30($sp)
/* 9EEA14 80240E24 8FB1002C */ lw $s1, 0x2c($sp)
/* 9EEA18 80240E28 8FB00028 */ lw $s0, 0x28($sp)
/* 9EEA1C 80240E2C D7BE0078 */ ldc1 $f30, 0x78($sp)
/* 9EEA20 80240E30 D7BC0070 */ ldc1 $f28, 0x70($sp)
/* 9EEA24 80240E34 D7BA0068 */ ldc1 $f26, 0x68($sp)
/* 9EEA28 80240E38 D7B80060 */ ldc1 $f24, 0x60($sp)
/* 9EEA2C 80240E3C D7B60058 */ ldc1 $f22, 0x58($sp)
/* 9EEA30 80240E40 D7B40050 */ ldc1 $f20, 0x50($sp)
/* 9EEA34 80240E44 03E00008 */ jr $ra
/* 9EEA38 80240E48 27BD0080 */ addiu $sp, $sp, 0x80

View File

@ -1,80 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802410B0_D7DC00
/* D7DC00 802410B0 27BDFFC0 */ addiu $sp, $sp, -0x40
/* D7DC04 802410B4 AFB00030 */ sw $s0, 0x30($sp)
/* D7DC08 802410B8 0080802D */ daddu $s0, $a0, $zero
/* D7DC0C 802410BC 0000202D */ daddu $a0, $zero, $zero
/* D7DC10 802410C0 3C05FD05 */ lui $a1, 0xfd05
/* D7DC14 802410C4 34A50F80 */ ori $a1, $a1, 0xf80
/* D7DC18 802410C8 AFBF003C */ sw $ra, 0x3c($sp)
/* D7DC1C 802410CC AFB20038 */ sw $s2, 0x38($sp)
/* D7DC20 802410D0 0C0B1EAF */ jal evt_get_variable
/* D7DC24 802410D4 AFB10034 */ sw $s1, 0x34($sp)
/* D7DC28 802410D8 0040902D */ daddu $s2, $v0, $zero
/* D7DC2C 802410DC 2A420100 */ slti $v0, $s2, 0x100
/* D7DC30 802410E0 10400017 */ beqz $v0, .L80241140
/* D7DC34 802410E4 00101040 */ sll $v0, $s0, 1
/* D7DC38 802410E8 00508821 */ addu $s1, $v0, $s0
/* D7DC3C 802410EC 0220202D */ daddu $a0, $s1, $zero
/* D7DC40 802410F0 27A50018 */ addiu $a1, $sp, 0x18
/* D7DC44 802410F4 27A6001C */ addiu $a2, $sp, 0x1c
/* D7DC48 802410F8 27B00020 */ addiu $s0, $sp, 0x20
/* D7DC4C 802410FC 0C0470AC */ jal mdl_get_copied_vertices
/* D7DC50 80241100 0200382D */ daddu $a3, $s0, $zero
/* D7DC54 80241104 26240001 */ addiu $a0, $s1, 1
/* D7DC58 80241108 27A50024 */ addiu $a1, $sp, 0x24
/* D7DC5C 8024110C 27A60028 */ addiu $a2, $sp, 0x28
/* D7DC60 80241110 0C0470AC */ jal mdl_get_copied_vertices
/* D7DC64 80241114 0200382D */ daddu $a3, $s0, $zero
/* D7DC68 80241118 8FA40024 */ lw $a0, 0x24($sp)
/* D7DC6C 8024111C 8FA50018 */ lw $a1, 0x18($sp)
/* D7DC70 80241120 8FA6001C */ lw $a2, 0x1c($sp)
/* D7DC74 80241124 8FA70020 */ lw $a3, 0x20($sp)
/* D7DC78 80241128 0C0903C8 */ jal func_80240F20_D7DA70
/* D7DC7C 8024112C AFB20010 */ sw $s2, 0x10($sp)
/* D7DC80 80241130 12400022 */ beqz $s2, .L802411BC
/* D7DC84 80241134 00000000 */ nop
/* D7DC88 80241138 08090464 */ j .L80241190
/* D7DC8C 8024113C 00000000 */ nop
.L80241140:
/* D7DC90 80241140 00108840 */ sll $s1, $s0, 1
/* D7DC94 80241144 02308821 */ addu $s1, $s1, $s0
/* D7DC98 80241148 0220202D */ daddu $a0, $s1, $zero
/* D7DC9C 8024114C 27A50018 */ addiu $a1, $sp, 0x18
/* D7DCA0 80241150 27A6001C */ addiu $a2, $sp, 0x1c
/* D7DCA4 80241154 27B00020 */ addiu $s0, $sp, 0x20
/* D7DCA8 80241158 0C0470AC */ jal mdl_get_copied_vertices
/* D7DCAC 8024115C 0200382D */ daddu $a3, $s0, $zero
/* D7DCB0 80241160 26240002 */ addiu $a0, $s1, 2
/* D7DCB4 80241164 27A50024 */ addiu $a1, $sp, 0x24
/* D7DCB8 80241168 27A60028 */ addiu $a2, $sp, 0x28
/* D7DCBC 8024116C 0C0470AC */ jal mdl_get_copied_vertices
/* D7DCC0 80241170 0200382D */ daddu $a3, $s0, $zero
/* D7DCC4 80241174 8FA40018 */ lw $a0, 0x18($sp)
/* D7DCC8 80241178 8FA50024 */ lw $a1, 0x24($sp)
/* D7DCCC 8024117C 8FA6001C */ lw $a2, 0x1c($sp)
/* D7DCD0 80241180 8FA70020 */ lw $a3, 0x20($sp)
/* D7DCD4 80241184 2642FF00 */ addiu $v0, $s2, -0x100
/* D7DCD8 80241188 0C0903C8 */ jal func_80240F20_D7DA70
/* D7DCDC 8024118C AFA20010 */ sw $v0, 0x10($sp)
.L80241190:
/* D7DCE0 80241190 3C03800A */ lui $v1, %hi(gMasterGfxPos)
/* D7DCE4 80241194 2463A66C */ addiu $v1, $v1, %lo(gMasterGfxPos)
/* D7DCE8 80241198 8C620000 */ lw $v0, ($v1)
/* D7DCEC 8024119C 0220202D */ daddu $a0, $s1, $zero
/* D7DCF0 802411A0 0040802D */ daddu $s0, $v0, $zero
/* D7DCF4 802411A4 24420008 */ addiu $v0, $v0, 8
/* D7DCF8 802411A8 AC620000 */ sw $v0, ($v1)
/* D7DCFC 802411AC 3C02DE00 */ lui $v0, 0xde00
/* D7DD00 802411B0 0C0470BB */ jal mdl_get_copied_gfx
/* D7DD04 802411B4 AE020000 */ sw $v0, ($s0)
/* D7DD08 802411B8 AE020004 */ sw $v0, 4($s0)
.L802411BC:
/* D7DD0C 802411BC 8FBF003C */ lw $ra, 0x3c($sp)
/* D7DD10 802411C0 8FB20038 */ lw $s2, 0x38($sp)
/* D7DD14 802411C4 8FB10034 */ lw $s1, 0x34($sp)
/* D7DD18 802411C8 8FB00030 */ lw $s0, 0x30($sp)
/* D7DD1C 802411CC 03E00008 */ jr $ra
/* D7DD20 802411D0 27BD0040 */ addiu $sp, $sp, 0x40

View File

@ -1,268 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80240310_9B1AA0
/* 9B1AA0 80240310 27BDFF10 */ addiu $sp, $sp, -0xf0
/* 9B1AA4 80240314 3C06E300 */ lui $a2, 0xe300
/* 9B1AA8 80240318 34C60A01 */ ori $a2, $a2, 0xa01
/* 9B1AAC 8024031C 3C07D9C0 */ lui $a3, 0xd9c0
/* 9B1AB0 80240320 34E7F9FB */ ori $a3, $a3, 0xf9fb
/* 9B1AB4 80240324 3C09D9FF */ lui $t1, 0xd9ff
/* 9B1AB8 80240328 3529FFFF */ ori $t1, $t1, 0xffff
/* 9B1ABC 8024032C 3C080020 */ lui $t0, 0x20
/* 9B1AC0 80240330 35080005 */ ori $t0, $t0, 5
/* 9B1AC4 80240334 3C0AD700 */ lui $t2, 0xd700
/* 9B1AC8 80240338 354A0002 */ ori $t2, $t2, 2
/* 9B1ACC 8024033C 3C0BE300 */ lui $t3, 0xe300
/* 9B1AD0 80240340 356B0F00 */ ori $t3, $t3, 0xf00
/* 9B1AD4 80240344 3C0CE300 */ lui $t4, 0xe300
/* 9B1AD8 80240348 358C0C00 */ ori $t4, $t4, 0xc00
/* 9B1ADC 8024034C 3C0DE300 */ lui $t5, 0xe300
/* 9B1AE0 80240350 35AD1201 */ ori $t5, $t5, 0x1201
/* 9B1AE4 80240354 3C0EE300 */ lui $t6, 0xe300
/* 9B1AE8 80240358 35CE1801 */ ori $t6, $t6, 0x1801
/* 9B1AEC 8024035C 3C0FE300 */ lui $t7, 0xe300
/* 9B1AF0 80240360 35EF0D01 */ ori $t7, $t7, 0xd01
/* 9B1AF4 80240364 AFB000C0 */ sw $s0, 0xc0($sp)
/* 9B1AF8 80240368 3C10E300 */ lui $s0, 0xe300
/* 9B1AFC 8024036C 36101402 */ ori $s0, $s0, 0x1402
/* 9B1B00 80240370 AFB300CC */ sw $s3, 0xcc($sp)
/* 9B1B04 80240374 3C13E300 */ lui $s3, 0xe300
/* 9B1B08 80240378 36731700 */ ori $s3, $s3, 0x1700
/* 9B1B0C 8024037C AFB400D0 */ sw $s4, 0xd0($sp)
/* 9B1B10 80240380 3C14E200 */ lui $s4, 0xe200
/* 9B1B14 80240384 36941E01 */ ori $s4, $s4, 0x1e01
/* 9B1B18 80240388 AFB200C8 */ sw $s2, 0xc8($sp)
/* 9B1B1C 8024038C 27B20040 */ addiu $s2, $sp, 0x40
/* 9B1B20 80240390 0240202D */ daddu $a0, $s2, $zero
/* 9B1B24 80240394 AFB500D4 */ sw $s5, 0xd4($sp)
/* 9B1B28 80240398 3C150001 */ lui $s5, 1
/* 9B1B2C 8024039C AFB100C4 */ sw $s1, 0xc4($sp)
/* 9B1B30 802403A0 3C11800A */ lui $s1, %hi(gMasterGfxPos)
/* 9B1B34 802403A4 2631A66C */ addiu $s1, $s1, %lo(gMasterGfxPos)
/* 9B1B38 802403A8 36B51630 */ ori $s5, $s5, 0x1630
/* 9B1B3C 802403AC AFBF00D8 */ sw $ra, 0xd8($sp)
/* 9B1B40 802403B0 F7B600E8 */ sdc1 $f22, 0xe8($sp)
/* 9B1B44 802403B4 F7B400E0 */ sdc1 $f20, 0xe0($sp)
/* 9B1B48 802403B8 8E220000 */ lw $v0, ($s1)
/* 9B1B4C 802403BC 3C03E700 */ lui $v1, 0xe700
/* 9B1B50 802403C0 0040282D */ daddu $a1, $v0, $zero
/* 9B1B54 802403C4 24420008 */ addiu $v0, $v0, 8
/* 9B1B58 802403C8 AE220000 */ sw $v0, ($s1)
/* 9B1B5C 802403CC ACA30000 */ sw $v1, ($a1)
/* 9B1B60 802403D0 24430008 */ addiu $v1, $v0, 8
/* 9B1B64 802403D4 ACA00004 */ sw $zero, 4($a1)
/* 9B1B68 802403D8 AE230000 */ sw $v1, ($s1)
/* 9B1B6C 802403DC 24430010 */ addiu $v1, $v0, 0x10
/* 9B1B70 802403E0 AC460000 */ sw $a2, ($v0)
/* 9B1B74 802403E4 AC400004 */ sw $zero, 4($v0)
/* 9B1B78 802403E8 AE230000 */ sw $v1, ($s1)
/* 9B1B7C 802403EC 24430018 */ addiu $v1, $v0, 0x18
/* 9B1B80 802403F0 AC470008 */ sw $a3, 8($v0)
/* 9B1B84 802403F4 AC40000C */ sw $zero, 0xc($v0)
/* 9B1B88 802403F8 AE230000 */ sw $v1, ($s1)
/* 9B1B8C 802403FC 24430020 */ addiu $v1, $v0, 0x20
/* 9B1B90 80240400 AC490010 */ sw $t1, 0x10($v0)
/* 9B1B94 80240404 AC480014 */ sw $t0, 0x14($v0)
/* 9B1B98 80240408 AE230000 */ sw $v1, ($s1)
/* 9B1B9C 8024040C 2403FFFF */ addiu $v1, $zero, -1
/* 9B1BA0 80240410 AC43001C */ sw $v1, 0x1c($v0)
/* 9B1BA4 80240414 24430028 */ addiu $v1, $v0, 0x28
/* 9B1BA8 80240418 AC4A0018 */ sw $t2, 0x18($v0)
/* 9B1BAC 8024041C AE230000 */ sw $v1, ($s1)
/* 9B1BB0 80240420 24430030 */ addiu $v1, $v0, 0x30
/* 9B1BB4 80240424 AC4B0020 */ sw $t3, 0x20($v0)
/* 9B1BB8 80240428 AC400024 */ sw $zero, 0x24($v0)
/* 9B1BBC 8024042C AE230000 */ sw $v1, ($s1)
/* 9B1BC0 80240430 3C030008 */ lui $v1, 8
/* 9B1BC4 80240434 AC43002C */ sw $v1, 0x2c($v0)
/* 9B1BC8 80240438 24430038 */ addiu $v1, $v0, 0x38
/* 9B1BCC 8024043C AC4C0028 */ sw $t4, 0x28($v0)
/* 9B1BD0 80240440 AE230000 */ sw $v1, ($s1)
/* 9B1BD4 80240444 24032000 */ addiu $v1, $zero, 0x2000
/* 9B1BD8 80240448 AC4D0030 */ sw $t5, 0x30($v0)
/* 9B1BDC 8024044C AC430034 */ sw $v1, 0x34($v0)
/* 9B1BE0 80240450 24430040 */ addiu $v1, $v0, 0x40
/* 9B1BE4 80240454 AE230000 */ sw $v1, ($s1)
/* 9B1BE8 80240458 240300C0 */ addiu $v1, $zero, 0xc0
/* 9B1BEC 8024045C AC43003C */ sw $v1, 0x3c($v0)
/* 9B1BF0 80240460 24430048 */ addiu $v1, $v0, 0x48
/* 9B1BF4 80240464 AC4E0038 */ sw $t6, 0x38($v0)
/* 9B1BF8 80240468 AE230000 */ sw $v1, ($s1)
/* 9B1BFC 8024046C 24430050 */ addiu $v1, $v0, 0x50
/* 9B1C00 80240470 AC4F0040 */ sw $t7, 0x40($v0)
/* 9B1C04 80240474 AC400044 */ sw $zero, 0x44($v0)
/* 9B1C08 80240478 AE230000 */ sw $v1, ($s1)
/* 9B1C0C 8024047C 24030C00 */ addiu $v1, $zero, 0xc00
/* 9B1C10 80240480 AC500048 */ sw $s0, 0x48($v0)
/* 9B1C14 80240484 AC43004C */ sw $v1, 0x4c($v0)
/* 9B1C18 80240488 AC530050 */ sw $s3, 0x50($v0)
/* 9B1C1C 8024048C 3C138024 */ lui $s3, %hi(D_802451F0)
/* 9B1C20 80240490 267351F0 */ addiu $s3, $s3, %lo(D_802451F0)
/* 9B1C24 80240494 24430058 */ addiu $v1, $v0, 0x58
/* 9B1C28 80240498 AC400054 */ sw $zero, 0x54($v0)
/* 9B1C2C 8024049C AC540058 */ sw $s4, 0x58($v0)
/* 9B1C30 802404A0 AC40005C */ sw $zero, 0x5c($v0)
/* 9B1C34 802404A4 8E650014 */ lw $a1, 0x14($s3)
/* 9B1C38 802404A8 8E660018 */ lw $a2, 0x18($s3)
/* 9B1C3C 802404AC 8E67001C */ lw $a3, 0x1c($s3)
/* 9B1C40 802404B0 24420060 */ addiu $v0, $v0, 0x60
/* 9B1C44 802404B4 AE230000 */ sw $v1, ($s1)
/* 9B1C48 802404B8 0C019E40 */ jal guTranslateF
/* 9B1C4C 802404BC AE220000 */ sw $v0, ($s1)
/* 9B1C50 802404C0 27B00080 */ addiu $s0, $sp, 0x80
/* 9B1C54 802404C4 8E650024 */ lw $a1, 0x24($s3)
/* 9B1C58 802404C8 4480A000 */ mtc1 $zero, $f20
/* 9B1C5C 802404CC 3C013F80 */ lui $at, 0x3f80
/* 9B1C60 802404D0 4481B000 */ mtc1 $at, $f22
/* 9B1C64 802404D4 4406A000 */ mfc1 $a2, $f20
/* 9B1C68 802404D8 4407B000 */ mfc1 $a3, $f22
/* 9B1C6C 802404DC 0200202D */ daddu $a0, $s0, $zero
/* 9B1C70 802404E0 0C019EC8 */ jal guRotateF
/* 9B1C74 802404E4 E7B40010 */ swc1 $f20, 0x10($sp)
/* 9B1C78 802404E8 0200202D */ daddu $a0, $s0, $zero
/* 9B1C7C 802404EC 0240282D */ daddu $a1, $s2, $zero
/* 9B1C80 802404F0 0C019D80 */ jal guMtxCatF
/* 9B1C84 802404F4 0240302D */ daddu $a2, $s2, $zero
/* 9B1C88 802404F8 8E650028 */ lw $a1, 0x28($s3)
/* 9B1C8C 802404FC 4406A000 */ mfc1 $a2, $f20
/* 9B1C90 80240500 4407A000 */ mfc1 $a3, $f20
/* 9B1C94 80240504 0200202D */ daddu $a0, $s0, $zero
/* 9B1C98 80240508 0C019EC8 */ jal guRotateF
/* 9B1C9C 8024050C E7B60010 */ swc1 $f22, 0x10($sp)
/* 9B1CA0 80240510 0200202D */ daddu $a0, $s0, $zero
/* 9B1CA4 80240514 0240282D */ daddu $a1, $s2, $zero
/* 9B1CA8 80240518 0C019D80 */ jal guMtxCatF
/* 9B1CAC 8024051C 0240302D */ daddu $a2, $s2, $zero
/* 9B1CB0 80240520 8E650020 */ lw $a1, 0x20($s3)
/* 9B1CB4 80240524 4406B000 */ mfc1 $a2, $f22
/* 9B1CB8 80240528 4407A000 */ mfc1 $a3, $f20
/* 9B1CBC 8024052C 0200202D */ daddu $a0, $s0, $zero
/* 9B1CC0 80240530 0C019EC8 */ jal guRotateF
/* 9B1CC4 80240534 AFA70010 */ sw $a3, 0x10($sp)
/* 9B1CC8 80240538 0200202D */ daddu $a0, $s0, $zero
/* 9B1CCC 8024053C 0240282D */ daddu $a1, $s2, $zero
/* 9B1CD0 80240540 0C019D80 */ jal guMtxCatF
/* 9B1CD4 80240544 0240302D */ daddu $a2, $s2, $zero
/* 9B1CD8 80240548 8E65002C */ lw $a1, 0x2c($s3)
/* 9B1CDC 8024054C 8E660030 */ lw $a2, 0x30($s3)
/* 9B1CE0 80240550 8E670034 */ lw $a3, 0x34($s3)
/* 9B1CE4 80240554 0C019DF0 */ jal guScaleF
/* 9B1CE8 80240558 0200202D */ daddu $a0, $s0, $zero
/* 9B1CEC 8024055C 0200202D */ daddu $a0, $s0, $zero
/* 9B1CF0 80240560 0240282D */ daddu $a1, $s2, $zero
/* 9B1CF4 80240564 0C019D80 */ jal guMtxCatF
/* 9B1CF8 80240568 0240302D */ daddu $a2, $s2, $zero
/* 9B1CFC 8024056C 0240202D */ daddu $a0, $s2, $zero
/* 9B1D00 80240570 3C108007 */ lui $s0, %hi(gMatrixListPos)
/* 9B1D04 80240574 261041F0 */ addiu $s0, $s0, %lo(gMatrixListPos)
/* 9B1D08 80240578 3C12800A */ lui $s2, %hi(gDisplayContext)
/* 9B1D0C 8024057C 2652A674 */ addiu $s2, $s2, %lo(gDisplayContext)
/* 9B1D10 80240580 96050000 */ lhu $a1, ($s0)
/* 9B1D14 80240584 8E420000 */ lw $v0, ($s2)
/* 9B1D18 80240588 00052980 */ sll $a1, $a1, 6
/* 9B1D1C 8024058C 00B52821 */ addu $a1, $a1, $s5
/* 9B1D20 80240590 0C019D40 */ jal guMtxF2L
/* 9B1D24 80240594 00452821 */ addu $a1, $v0, $a1
/* 9B1D28 80240598 3C03DA38 */ lui $v1, 0xda38
/* 9B1D2C 8024059C 34630002 */ ori $v1, $v1, 2
/* 9B1D30 802405A0 8E220000 */ lw $v0, ($s1)
/* 9B1D34 802405A4 96040000 */ lhu $a0, ($s0)
/* 9B1D38 802405A8 0040282D */ daddu $a1, $v0, $zero
/* 9B1D3C 802405AC 24420008 */ addiu $v0, $v0, 8
/* 9B1D40 802405B0 AE220000 */ sw $v0, ($s1)
/* 9B1D44 802405B4 3082FFFF */ andi $v0, $a0, 0xffff
/* 9B1D48 802405B8 00021180 */ sll $v0, $v0, 6
/* 9B1D4C 802405BC ACA30000 */ sw $v1, ($a1)
/* 9B1D50 802405C0 8E430000 */ lw $v1, ($s2)
/* 9B1D54 802405C4 00551021 */ addu $v0, $v0, $s5
/* 9B1D58 802405C8 00621821 */ addu $v1, $v1, $v0
/* 9B1D5C 802405CC 3C028000 */ lui $v0, 0x8000
/* 9B1D60 802405D0 00621821 */ addu $v1, $v1, $v0
/* 9B1D64 802405D4 ACA30004 */ sw $v1, 4($a1)
/* 9B1D68 802405D8 8E620000 */ lw $v0, ($s3)
/* 9B1D6C 802405DC 24840001 */ addiu $a0, $a0, 1
/* 9B1D70 802405E0 14400012 */ bnez $v0, .L8024062C
/* 9B1D74 802405E4 A6040000 */ sh $a0, ($s0)
/* 9B1D78 802405E8 3C028007 */ lui $v0, %hi(gGameStatusPtr)
/* 9B1D7C 802405EC 8C42419C */ lw $v0, %lo(gGameStatusPtr)($v0)
/* 9B1D80 802405F0 24030008 */ addiu $v1, $zero, 8
/* 9B1D84 802405F4 AE63000C */ sw $v1, 0xc($s3)
/* 9B1D88 802405F8 94420134 */ lhu $v0, 0x134($v0)
/* 9B1D8C 802405FC 30430003 */ andi $v1, $v0, 3
/* 9B1D90 80240600 14600003 */ bnez $v1, .L80240610
/* 9B1D94 80240604 2C620002 */ sltiu $v0, $v1, 2
/* 9B1D98 80240608 0809018A */ j .L80240628
/* 9B1D9C 8024060C 24020025 */ addiu $v0, $zero, 0x25
.L80240610:
/* 9B1DA0 80240610 14400005 */ bnez $v0, .L80240628
/* 9B1DA4 80240614 24020026 */ addiu $v0, $zero, 0x26
/* 9B1DA8 80240618 2C620003 */ sltiu $v0, $v1, 3
/* 9B1DAC 8024061C 14400002 */ bnez $v0, .L80240628
/* 9B1DB0 80240620 24020027 */ addiu $v0, $zero, 0x27
/* 9B1DB4 80240624 24020024 */ addiu $v0, $zero, 0x24
.L80240628:
/* 9B1DB8 80240628 AE620010 */ sw $v0, 0x10($s3)
.L8024062C:
/* 9B1DBC 8024062C 8E65000C */ lw $a1, 0xc($s3)
/* 9B1DC0 80240630 8E660010 */ lw $a2, 0x10($s3)
/* 9B1DC4 80240634 0C0B7811 */ jal spr_get_player_raster_info
/* 9B1DC8 80240638 27A40030 */ addiu $a0, $sp, 0x30
/* 9B1DCC 8024063C 27A50018 */ addiu $a1, $sp, 0x18
/* 9B1DD0 80240640 0000302D */ daddu $a2, $zero, $zero
/* 9B1DD4 80240644 8E640004 */ lw $a0, 4($s3)
/* 9B1DD8 80240648 8FA30030 */ lw $v1, 0x30($sp)
/* 9B1DDC 8024064C 8FA90034 */ lw $t1, 0x34($sp)
/* 9B1DE0 80240650 97A8003A */ lhu $t0, 0x3a($sp)
/* 9B1DE4 80240654 240200FF */ addiu $v0, $zero, 0xff
/* 9B1DE8 80240658 A3A20028 */ sb $v0, 0x28($sp)
/* 9B1DEC 8024065C A7A80020 */ sh $t0, 0x20($sp)
/* 9B1DF0 80240660 3108FFFF */ andi $t0, $t0, 0xffff
/* 9B1DF4 80240664 AFA30018 */ sw $v1, 0x18($sp)
/* 9B1DF8 80240668 97A3003E */ lhu $v1, 0x3e($sp)
/* 9B1DFC 8024066C 44880000 */ mtc1 $t0, $f0
/* 9B1E00 80240670 00000000 */ nop
/* 9B1E04 80240674 46800020 */ cvt.s.w $f0, $f0
/* 9B1E08 80240678 AFA9001C */ sw $t1, 0x1c($sp)
/* 9B1E0C 8024067C E6600038 */ swc1 $f0, 0x38($s3)
/* 9B1E10 80240680 8FA20038 */ lw $v0, 0x38($sp)
/* 9B1E14 80240684 27A70040 */ addiu $a3, $sp, 0x40
/* 9B1E18 80240688 A7A30022 */ sh $v1, 0x22($sp)
/* 9B1E1C 8024068C 3063FFFF */ andi $v1, $v1, 0xffff
/* 9B1E20 80240690 44830000 */ mtc1 $v1, $f0
/* 9B1E24 80240694 00000000 */ nop
/* 9B1E28 80240698 46800020 */ cvt.s.w $f0, $f0
/* 9B1E2C 8024069C 00021FC2 */ srl $v1, $v0, 0x1f
/* 9B1E30 802406A0 00431021 */ addu $v0, $v0, $v1
/* 9B1E34 802406A4 00021043 */ sra $v0, $v0, 1
/* 9B1E38 802406A8 E660003C */ swc1 $f0, 0x3c($s3)
/* 9B1E3C 802406AC 8FA3003C */ lw $v1, 0x3c($sp)
/* 9B1E40 802406B0 00021023 */ negu $v0, $v0
/* 9B1E44 802406B4 A7A20024 */ sh $v0, 0x24($sp)
/* 9B1E48 802406B8 000317C2 */ srl $v0, $v1, 0x1f
/* 9B1E4C 802406BC 00621821 */ addu $v1, $v1, $v0
/* 9B1E50 802406C0 00031843 */ sra $v1, $v1, 1
/* 9B1E54 802406C4 0C04EBDC */ jal fold_appendGfx_component
/* 9B1E58 802406C8 A7A30026 */ sh $v1, 0x26($sp)
/* 9B1E5C 802406CC 3C05D838 */ lui $a1, 0xd838
/* 9B1E60 802406D0 3C03800A */ lui $v1, %hi(gMasterGfxPos)
/* 9B1E64 802406D4 2463A66C */ addiu $v1, $v1, %lo(gMasterGfxPos)
/* 9B1E68 802406D8 8C620000 */ lw $v0, ($v1)
/* 9B1E6C 802406DC 34A50002 */ ori $a1, $a1, 2
/* 9B1E70 802406E0 0040202D */ daddu $a0, $v0, $zero
/* 9B1E74 802406E4 24420008 */ addiu $v0, $v0, 8
/* 9B1E78 802406E8 AC620000 */ sw $v0, ($v1)
/* 9B1E7C 802406EC 24020040 */ addiu $v0, $zero, 0x40
/* 9B1E80 802406F0 AC850000 */ sw $a1, ($a0)
/* 9B1E84 802406F4 AC820004 */ sw $v0, 4($a0)
/* 9B1E88 802406F8 8FBF00D8 */ lw $ra, 0xd8($sp)
/* 9B1E8C 802406FC 8FB500D4 */ lw $s5, 0xd4($sp)
/* 9B1E90 80240700 8FB400D0 */ lw $s4, 0xd0($sp)
/* 9B1E94 80240704 8FB300CC */ lw $s3, 0xcc($sp)
/* 9B1E98 80240708 8FB200C8 */ lw $s2, 0xc8($sp)
/* 9B1E9C 8024070C 8FB100C4 */ lw $s1, 0xc4($sp)
/* 9B1EA0 80240710 8FB000C0 */ lw $s0, 0xc0($sp)
/* 9B1EA4 80240714 D7B600E8 */ ldc1 $f22, 0xe8($sp)
/* 9B1EA8 80240718 D7B400E0 */ ldc1 $f20, 0xe0($sp)
/* 9B1EAC 8024071C 03E00008 */ jr $ra
/* 9B1EB0 80240720 27BD00F0 */ addiu $sp, $sp, 0xf0

View File

@ -838,6 +838,7 @@ kmr_02_Quizmo_AnswerResult = 0x80257F40;
kmr_02_Quizmo_StageEffect = 0x80257F48;
kmr_02_Quizmo_AudienceEffect = 0x80257F4C;
kmr_02_Quizmo_VannaTEffect = 0x80257F50;
kmr_21_802407F4 = 0x802407F4;
D_80257F58 = 0x80257F58;
D_8025811C = 0x8025811C;
D_80258120 = 0x80258120;
@ -857,6 +858,7 @@ D_80262A70 = 0x80262A70;
mac_01_LetterDelivery_SavedNpcAnim = 0x80262C34;
D_80262C38 = 0x80262C38;
D_80262F68 = 0x80262F68;
trd_06_802451F0 = 0x802451F0;
// more bss for 16c8e0's segment
gActionCommandStatus = 0x8029FBE0;