intro_state, evt and decoration tables (#718)

* matched appendGfx_intro_logos

* create 38F00.c

* 3 evt functions

* wip

* match func_80259AAC

* match 8 decoration funcs

* fix warnings

* fix merge issue

* cleaning up

* renamed data file

* PR suggestion
This commit is contained in:
Unnunu 2022-05-28 18:15:51 +03:00 committed by GitHub
parent c0694d26f1
commit b4ee2f8a75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
32 changed files with 1507 additions and 3664 deletions

View File

@ -132,7 +132,7 @@ typedef struct BlurBuffer {
/* 0xA4 */ f32 z[20];
} BlurBuffer; // size = 0xF4
typedef s16 Palette16[16]; // size = 0x20
typedef u16 Palette16[16]; // size = 0x20
typedef struct Npc {
/* 0x000 */ s32 flags;
@ -1649,7 +1649,7 @@ typedef struct ActorPart {
/* 0x7C */ s32 eventFlags;
/* 0x80 */ s32 partFlags3;
/* 0x84 */ s32 unk_84;
/* 0x88 */ s32 currentAnimation;
/* 0x88 */ u32 currentAnimation;
/* 0x8C */ s32 unk_8C;
/* 0x90 */ f32 animationRate;
/* 0x94 */ u32* idleAnimations;
@ -1729,15 +1729,18 @@ typedef struct DecorationUnk {
} DecorationUnk; // size = 0x10
typedef struct DecorationTable {
/* 0x000 */ char unk_00[0x6C0];
/* 0x000 */ Palette16 unk_00[54];
/* 0x6C0 */ s8 unk_6C0;
/* 0x6C1 */ s8 unk_6C1;
/* 0x6C2 */ s8 unk_6C2;
/* 0x6C3 */ char unk_6C3[10];
/* 0x6CD */ s8 unk_6CD;
/* 0x6CE */ char unk_6CE[6];
/* 0x6D4 */ s32* unk_6D4;
/* 0x6D8 */ char unk_6D8[0x68];
/* 0x6C3 */ char unk_6C3[5];
/* 0x6C8 */ s16 unk_6C8;
/* 0x6CA */ u16 unk_6CA;
/* 0x6CC */ s8 unk_6CC;
/* 0x6CD */ s8 numPalettes;
/* 0x6CE */ char unk_6CE[2];
/* 0x6D0 */ u16** palettes;
/* 0x6D4 */ u16* unk_6D4[27];
/* 0x740 */ s16 unk_740;
/* 0x742 */ s16 unk_742;
/* 0x744 */ s16 unk_744;

View File

@ -34,9 +34,15 @@ s32 dma_copy(Addr romStart, Addr romEnd, void* vramDest);
f32 rand_float(void);
void copy_matrix(Matrix4f src, Matrix4f dest);
s8 set_global_byte(s32 index, s32 value);
s32 get_global_byte(s32 index);
s32 set_global_flag(s32 index);
s32 clear_global_flag(s32 index);
s32 get_global_flag(s32 index);
s8 set_area_byte(s32 index, s32 value);
s32 get_area_byte(s32 index);
s32 set_area_flag(s32 index);
s32 clear_area_flag(s32 index);
s32 get_area_flag(s32 index);
Shadow* get_shadow_by_index(s32 index);
@ -130,7 +136,7 @@ f32 player_check_collision_below(f32, s32* colliderID);
s32 can_trigger_loading_zone(void);
void func_80266684(void);
void func_802667F0(s32, Actor*, f32, f32, f32);
void func_802591EC(s32, ActorPart*, s32, Matrix4f*, s32);
s32 func_802591EC(s32, ActorPart*, s32, Matrix4f, s32);
HeapNode* general_heap_create(void);
void* general_heap_malloc(s32 size);
@ -731,14 +737,11 @@ s32 mdl_get_next_texture_address(s32);
void draw_msg(s32 msgID, s32 posX, s32 posY, s32 opacity, s32 palette, u8 style);
void get_background_color_blend(u8* r, u8* g, u8* b, u8* a);
s8 set_global_byte(s32 index, s32 value);
s32 entity_base_block_idle(Entity* entity);
s32 recover_hp(s32 amt);
s32 recover_fp(s32 amt);
void entity_set_render_script(Entity* entity, u32* commandList);
s32 entity_can_collide_with_jumping_player(Entity* entity);
s32 set_global_flag(s32 index);
void entity_base_block_init(Entity* entity);
s32 entity_start_script(Entity* entity);
void remove_item_entity_by_index(s32 index);

View File

@ -166,9 +166,6 @@ extern s16 D_8009A6A2;
extern s16 D_8009A6A4;
extern s16 D_8009A6A6;
extern s32* D_800A0914;
extern s32* D_800A0918;
extern s32* D_800A091C;
extern s8 D_800A0920;
extern s32 D_800A0924;
extern s8 D_800A0921;

File diff suppressed because it is too large Load Diff

166
src/38F00.c Normal file
View File

@ -0,0 +1,166 @@
#include "common.h"
ApiStatus func_8005DB00(Evt* script, s32 isInitialCall);
ApiStatus func_8005DD54(Evt* script, s32 isInitialCall);
ApiStatus func_8005DDF0(Evt* script, s32 isInitialCall);
EvtScript D_800936C0 = {
EVT_CALL(func_8005DB00)
EVT_RETURN
EVT_END
};
EvtScript D_800936DC = {
EVT_CALL(SetNpcAnimation, NPC_SELF, LW(0))
EVT_CALL(GetNpcPos, NPC_SELF, LW(0), LW(3), LW(2))
EVT_SET(LW(1), LW(3))
EVT_ADD(LW(1), 1)
EVT_CALL(SetNpcPos, NPC_SELF, LW(0), LW(1), LW(2))
EVT_WAIT_FRAMES(1)
EVT_SET(LW(1), LW(3))
EVT_ADD(LW(1), 4)
EVT_CALL(SetNpcPos, NPC_SELF, LW(0), LW(1), LW(2))
EVT_WAIT_FRAMES(1)
EVT_SET(LW(1), LW(3))
EVT_ADD(LW(1), 16)
EVT_CALL(SetNpcPos, NPC_SELF, LW(0), LW(1), LW(2))
EVT_WAIT_FRAMES(1)
EVT_SET(LW(1), LW(3))
EVT_ADD(LW(1), 8)
EVT_CALL(SetNpcPos, NPC_SELF, LW(0), LW(1), LW(2))
EVT_WAIT_FRAMES(1)
EVT_SET(LW(1), LW(3))
EVT_ADD(LW(1), 20)
EVT_CALL(SetNpcPos, NPC_SELF, LW(0), LW(1), LW(2))
EVT_WAIT_FRAMES(1)
EVT_SET(LW(1), LW(3))
EVT_ADD(LW(1), 8)
EVT_CALL(SetNpcPos, NPC_SELF, LW(0), LW(1), LW(2))
EVT_WAIT_FRAMES(1)
EVT_SET(LW(1), LW(3))
EVT_ADD(LW(1), 12)
EVT_CALL(SetNpcPos, NPC_SELF, LW(0), LW(1), LW(2))
EVT_WAIT_FRAMES(1)
EVT_SET(LW(1), LW(3))
EVT_ADD(LW(1), 6)
EVT_CALL(SetNpcPos, NPC_SELF, LW(0), LW(1), LW(2))
EVT_WAIT_FRAMES(1)
EVT_SET(LW(1), LW(3))
EVT_ADD(LW(1), 0)
EVT_CALL(SetNpcPos, NPC_SELF, LW(0), LW(1), LW(2))
EVT_WAIT_FRAMES(1)
EVT_RETURN
EVT_END
};
EvtScript D_800939A4 = {
EVT_RETURN
EVT_END
};
EvtScript D_800939B4 = {
EVT_CALL(GetSelfVar, 0, LW(0))
EVT_IF_EQ(LW(0), 0)
EVT_CALL(SetSelfVar, 0, 1)
EVT_CALL(BindNpcAI, NPC_SELF, EVT_PTR(D_800939A4))
EVT_CALL(SetNpcFlagBits, NPC_SELF, NPC_FLAG_GRAVITY | NPC_FLAG_40000, TRUE)
EVT_CALL(SetNpcFlagBits, NPC_SELF, NPC_FLAG_ENABLE_HIT_SCRIPT | NPC_FLAG_JUMPING, FALSE)
EVT_CALL(SetNpcAnimation, NPC_SELF, LW(2))
EVT_SET(LW(0), 0)
EVT_LOOP(30)
EVT_CALL(SetNpcRotation, NPC_SELF, 0, LW(0), 0)
EVT_CALL(func_8005DD54)
EVT_CALL(func_802CFD30, NPC_SELF, 6, LW(2), LW(2), LW(2), 0)
EVT_ADD(LW(0), 30)
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetNpcRotation, NPC_SELF, 0, 0, 0)
EVT_CALL(func_802CFD30, NPC_SELF, 6, 255, 255, 255, 0)
EVT_CALL(SetNpcFlagBits, NPC_SELF, NPC_FLAG_40000, FALSE)
EVT_CALL(SetSelfVar, 0, 0)
EVT_CALL(func_8005DDF0)
EVT_CALL(BindNpcAI, NPC_SELF, LW(1))
EVT_END_IF
EVT_RETURN
EVT_END
};
ApiStatus func_8005DB00(Evt* script, s32 isInitialCall) {
Npc* npc;
f32 targetDir, npcYaw;
PlayerStatus* playerStatus;
PartnerActionStatus* partnerStatus;
npc = get_npc_unsafe(script->owner1.enemy->npcID);
playerStatus = &gPlayerStatus;
partnerStatus = &gPartnerActionStatus;
if (isInitialCall) {
script->functionTemp[0] = 0;
}
switch (script->functionTemp[0]) {
case 0:
npc->planarFlyDist = evt_get_float_variable(script, LW(0));
npc->duration = evt_get_variable(script, LW(1));
script->functionTemp[1] = evt_get_variable(script, LW(2));
script->functionTemp[2] = evt_get_variable(script, LW(3)) / 2;
npc->currentAnim.w = script->varTable[10];
script->functionTemp[0] = 1;
break;
case 1:
if (partnerStatus->actingPartner != PARTNER_BOW) {
if (npc->duration != 0 && npc->duration != script->functionTemp[0]) {
return ApiStatus_BLOCK;
}
if (npc->duration == 0) {
if (sqrtf(SQ((playerStatus->position.x - npc->pos.x)) +
SQ((playerStatus->position.y - npc->pos.y)) +
SQ((playerStatus->position.z - npc->pos.z))) <= npc->planarFlyDist) {
targetDir = atan2(npc->pos.x, npc->pos.z, playerStatus->position.x, playerStatus->position.z);
npcYaw = script->functionTemp[1] == -1 ? npc->yaw : script->functionTemp[1];
if (fabsf(get_clamped_angle_diff(npcYaw, targetDir)) < script->functionTemp[2]) {
script->varTable[0] = 1;
return ApiStatus_DONE2;
}
}
} else {
if (dist2D(npc->pos.x, npc->pos.z, playerStatus->position.x, playerStatus->position.z) <= npc->planarFlyDist) {
targetDir = atan2(npc->pos.x, npc->pos.z, playerStatus->position.x, playerStatus->position.z);
npcYaw = script->functionTemp[1] == -1 ? npc->yaw : script->functionTemp[1];
if (fabsf(get_clamped_angle_diff(npcYaw, targetDir)) < script->functionTemp[2]) {
script->varTable[0] = 1;
return ApiStatus_DONE2;
}
}
}
}
break;
}
return ApiStatus_BLOCK;
}
ApiStatus func_8005DD54(Evt* script, s32 isInitialCall) {
f32 angle = clamp_angle(script->varTable[0]);
script->varTable[0] = angle;
if (angle >= 180.0f) {
angle -= 180.0f;
}
if (angle >= 90.0f) {
angle = 180.0f - angle;
}
script->varTable[2] = (s32) (((90.0f - angle) * 95.0f) / 90.0f) + 160;
return ApiStatus_DONE2;
}
ApiStatus func_8005DDF0(Evt* script, s32 isInitialCall) {
if (~gCurrentEncounter.unk_08) {
return ApiStatus_DONE1;
} else {
return ApiStatus_BLOCK;
}
}

View File

@ -103,10 +103,10 @@ BSS s8 D_800A0900;
BSS s32 D_800A0904;
BSS s32 D_800A0908;
BSS char D_800A090C[0x4];
BSS s32 D_800A0910;
BSS s32 D_800A0914;
BSS s32 D_800A0918;
BSS s32 D_800A091C;
BSS s32 gLogosImages;
BSS s32 gLogosImage3;
BSS s32 gLogosImage1;
BSS s32 gLogosImage2;
BSS s8 D_800A0920;
BSS s8 D_800A0921;
BSS s16 D_800A0922;

View File

@ -1067,79 +1067,3 @@ s32 test_ray_entities(f32 startX, f32 startY, f32 startZ, f32 dirX, f32 dirY, f3
return entityIndex;
}
ApiStatus func_8005DB00(Evt* script, s32 isInitialCall) {
Npc* npc;
f32 targetDir, npcYaw;
PlayerStatus* playerStatus;
PartnerActionStatus* partnerStatus;
npc = get_npc_unsafe(script->owner1.enemy->npcID);
playerStatus = &gPlayerStatus;
partnerStatus = &gPartnerActionStatus;
if (isInitialCall) {
script->functionTemp[0] = 0;
}
switch(script->functionTemp[0]) {
case 0:
npc->planarFlyDist = evt_get_float_variable(script, LW(0));
npc->duration = evt_get_variable(script, LW(1));
script->functionTemp[1] = evt_get_variable(script, LW(2));
script->functionTemp[2] = evt_get_variable(script, LW(3)) / 2;
npc->currentAnim.w = script->varTable[10];
script->functionTemp[0] = 1;
break;
case 1:
if (partnerStatus->actingPartner != PARTNER_BOW) {
if (npc->duration != 0 && npc->duration != script->functionTemp[0])
return ApiStatus_BLOCK;
if (npc->duration == 0) {
if (sqrtf(SQ((playerStatus->position.x - npc->pos.x)) +
SQ((playerStatus->position.y - npc->pos.y)) +
SQ((playerStatus->position.z - npc->pos.z))) <= npc->planarFlyDist) {
targetDir = atan2(npc->pos.x, npc->pos.z, playerStatus->position.x, playerStatus->position.z);
npcYaw = script->functionTemp[1] == -1 ? npc->yaw : script->functionTemp[1];
if (fabsf(get_clamped_angle_diff(npcYaw, targetDir)) < script->functionTemp[2]) {
script->varTable[0] = 1;
return ApiStatus_DONE2;
}
}
} else {
if (dist2D(npc->pos.x, npc->pos.z, playerStatus->position.x, playerStatus->position.z) <= npc->planarFlyDist) {
targetDir = atan2(npc->pos.x, npc->pos.z, playerStatus->position.x, playerStatus->position.z);
npcYaw = script->functionTemp[1] == -1 ? npc->yaw : script->functionTemp[1];
if (fabsf(get_clamped_angle_diff(npcYaw, targetDir)) < script->functionTemp[2]) {
script->varTable[0] = 1;
return ApiStatus_DONE2;
}
}
}
}
break;
}
return ApiStatus_BLOCK;
}
ApiStatus func_8005DD54(Evt* script, s32 isInitialCall) {
f32 angle = clamp_angle(script->varTable[0]);
script->varTable[0] = angle;
if (angle >= 180.0f) {
angle -= 180.0f;
}
if (angle >= 90.0f) {
angle = 180.0f - angle;
}
script->varTable[2] = (s32) (((90.0f - angle) * 95.0f) / 90.0f) + 160;
return ApiStatus_DONE2;
}
s32 func_8005DDF0(void) {
return ~gCurrentEncounter.unk_08 != 0;
}

View File

@ -156,7 +156,7 @@ s32 get_area_flag(s32 index) {
return flag;
}
s8 set_area_byte(s32 index, s8 value) {
s8 set_area_byte(s32 index, s32 value) {
SaveData* saveFile = &gCurrentSaveFile;
s32 ret = saveFile->areaBytes[index];

View File

@ -1832,7 +1832,88 @@ s32 evt_get_variable_index_alt(s32 var) {
return var;
}
INCLUDE_ASM(s32, "evt/si", evt_set_variable, Evt* script, Bytecode var, s32 value);
s32 evt_set_variable(Evt* script, Bytecode var, s32 value) {
s32 temp;
s32 oldValue;
if (var <= -270000000) {
return value;
} else if (var <= -220000000) {
return evt_fixed_var_to_float(value);
} else if (var <= -200000000) {
var += 210000000;
temp = var % 32;
if (value) {
script->flagArray[var / 32] |= 1 << temp;
} else {
script->flagArray[var / 32] &= ~(1 << temp);
}
return value;
} else if (var <= -180000000) {
var += 190000000;
oldValue = script->array[var];
script->array[var] = value;
return oldValue;
} else if (var <= -160000000) {
var += 170000000;
oldValue = get_global_byte(var);
set_global_byte(var, value);
return oldValue;
} else if (var <= -140000000) {
var += 150000000;
oldValue = get_area_byte(var);
set_area_byte(var, value);
return oldValue;
} else if (var <= -120000000) {
var += 130000000;
oldValue = get_global_flag(var);
if (value) {
set_global_flag(var);
} else {
clear_global_flag(var);
}
return oldValue;
} else if (var <= -100000000) {
var += 110000000;
oldValue = get_area_flag(var);
if (value) {
set_area_flag(var);
} else {
clear_area_flag(var);
}
return oldValue;
} else if (var <= -80000000) {
var += 90000000;
temp = var % 32;
if (value) {
gMapFlags[var / 32] |= 1 << temp;
} else {
gMapFlags[var / 32] &= ~(1 << temp);
}
return value;
} else if (var <= -60000000) {
var += 70000000;
temp = var % 32;
if (value) {
script->varFlags[var / 32] |= 1 << temp;
} else {
script->varFlags[var / 32] &= ~(1 << temp);
}
return value;
} else if (var <= -40000000) {
var += 50000000;
oldValue = gMapVars[var];
gMapVars[var] = value;
return oldValue;
} else if (var <= -20000000) {
var += 30000000;
oldValue = script->varTable[var];
script->varTable[var] = value;
return oldValue;
} else {
return value;
}
}
f32 evt_get_float_variable(Evt* script, Bytecode var) {
s32 temp;
@ -1881,7 +1962,51 @@ f32 evt_get_float_variable(Evt* script, Bytecode var) {
}
}
INCLUDE_ASM(f32, "evt/si", evt_set_float_variable, Evt* script, Bytecode var, f32 value);
f32 evt_set_float_variable(Evt* script, Bytecode var, f32 value) {
s32 temp;
s32 oldValue;
if (var <= -270000000) {
return value;
} else if (var <= -220000000) {
return value;
} else if (var <= -180000000) {
var += 190000000;
oldValue = script->array[var];
script->array[var] = evt_float_to_fixed_var(value);
return evt_fixed_var_to_float(oldValue);
} else if (var <= -80000000) {
var += 90000000;
temp = var % 32;
if (value) {
gMapFlags[var / 32] |= 1 << temp;
} else {
gMapFlags[var / 32] &= ~(1 << temp);
}
return value;
} else if (var <= -60000000) {
var += 70000000;
temp = var % 32;
if (value) {
script->varFlags[var / 32] |= 1 << temp;
} else {
script->varFlags[var / 32] &= ~(1 << temp);
}
return value;
} else if (var <= -40000000) {
var += 50000000;
oldValue = gMapVars[var];
gMapVars[var] = evt_float_to_fixed_var(value);
return evt_fixed_var_to_float(oldValue);
} else if (var <= -20000000) {
var += 30000000;
oldValue = script->varTable[var];
script->varTable[var] = evt_float_to_fixed_var(value);
return evt_fixed_var_to_float(oldValue);
} else {
return value;
}
}
Bytecode* evt_find_label(Evt* script, s32 arg1) {
Bytecode* ret = script->ptrReadPos;
@ -1938,7 +2063,7 @@ Bytecode* evt_skip_if(Evt* script) {
}
break;
}
} while(1);
} while (TRUE);
}
Bytecode* evt_skip_else(Evt* script) {
@ -1986,10 +2111,36 @@ Bytecode* evt_skip_else(Evt* script) {
nestedIfDepth++;
break;
}
} while(1);
} while (TRUE);
}
INCLUDE_ASM(Bytecode*, "evt/si", evt_goto_end_case, Evt* script);
Bytecode* evt_goto_end_case(Evt* script) {
s32 switchDepth = 1;
Bytecode* pos = script->ptrNextLine;
s32* opcode;
s32* nargs;
do {
opcode = pos++;
nargs = pos++;
pos += *nargs;
switch (*opcode) {
case EVT_OP_END:
PANIC();
break;
case EVT_OP_SWITCH:
switchDepth++;
break;
case EVT_OP_END_SWITCH:
switchDepth--;
if (switchDepth == 0) {
return opcode;
}
break;
}
} while (TRUE);
}
Bytecode* evt_goto_next_case(Evt* script) {
s32 switchDepth = 1;
@ -2031,7 +2182,7 @@ Bytecode* evt_goto_next_case(Evt* script) {
}
break;
}
} while(1);
} while (TRUE);
}
Bytecode* evt_goto_end_loop(Evt* script) {
@ -2059,5 +2210,5 @@ Bytecode* evt_goto_end_loop(Evt* script) {
loopDepth++;
break;
}
} while(1);
} while (TRUE);
}

View File

@ -13,7 +13,7 @@ void intro_logos_set_fade_color(s16 color) {
s32 intro_logos_fade_in(s16 subtractAlpha) {
if (gGameStatusPtr->bootAlpha != 0) {
gGameStatusPtr->bootAlpha -= subtractAlpha;
if (gGameStatusPtr->bootAlpha << 16 < 0) {
if (gGameStatusPtr->bootAlpha < 0) {
gGameStatusPtr->bootAlpha = 0;
}
} else {

View File

@ -392,7 +392,7 @@ s32 spr_get_npc_raster_info(SpriteRasterInfo* out, s32 npcSpriteID, s32 rasterIn
return FALSE;
}
s32** spr_get_npc_palettes(s32 npcSpriteID) {
u16** spr_get_npc_palettes(s32 npcSpriteID) {
SpriteAnimData* sprite = spr_npcSprites[npcSpriteID];
if (sprite != NULL) {

View File

@ -180,7 +180,7 @@ s32 func_802DDFF8(s32, s32, s32, s32, s32, s32, u16);
void spr_get_player_raster_info(SpriteRasterInfo* out, s32 playerSpriteID, s32 rasterIndex);
s16** spr_get_player_palettes(s32 spriteIndex);
u16** spr_get_player_palettes(s32 spriteIndex);
/// @param animID - Set MSB for tail allocation (i.e. `0x80XXYYZZ`)
s32 spr_load_npc_sprite(s32 animID, s32* extraAnimList);
@ -203,7 +203,7 @@ s32 func_802DE894(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s3
s32 spr_get_npc_raster_info(SpriteRasterInfo* out, s32 npcSpriteID, s32 rasterIndex);
s32** spr_get_npc_palettes(s32 npcSpriteID);
u16** spr_get_npc_palettes(s32 npcSpriteID);
s32 spr_get_npc_color_variations(s32 npcSpriteID);

View File

@ -9,30 +9,7 @@ s32 D_800778A0[] = {
};
s32 D_800778AC[] = {
0x00000000, 0xFFFFFF00, 0xFFFFFF00, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
};
Gfx D_800778C8[] = {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_COPY),
gsDPSetTexturePersp(G_TP_NONE),
gsDPSetTextureLUT(G_TT_NONE),
gsDPSetCombineMode(G_CC_DECALRGB, G_CC_DECALRGB),
gsDPSetRenderMode(G_RM_NOOP, G_RM_NOOP2),
gsDPSetTextureFilter(G_TF_POINT),
gsSPEndDisplayList(),
};
// Should maybe be in state_logos.c but creates an 0x8 data split
Gfx D_80077908[] = {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetTexturePersp(G_TP_NONE),
gsDPSetTextureLUT(G_TT_NONE),
gsDPSetCombineMode(G_CC_DECALRGB, G_CC_DECALRGB),
gsDPSetRenderMode(G_RM_OPA_SURF, G_RM_OPA_SURF2),
gsDPSetTextureFilter(G_TF_POINT),
gsSPEndDisplayList(),
0x00000000, 0xFFFFFF00, 0xFFFFFF00, 0x00000000, 0x00000000
};
// BSS

View File

@ -3,17 +3,43 @@
#include "camera.h"
#include "hud_element.h"
#include "sprite.h"
#include "nu/nusys.h"
void appendGfx_intro_logos();
void appendGfx_intro_logos(void);
// bss?
extern s8* D_800A0910;
s32 D_800778C0[] = { 0, 0 };
Gfx D_800778C8[] = {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_COPY),
gsDPSetTexturePersp(G_TP_NONE),
gsDPSetTextureLUT(G_TT_NONE),
gsDPSetCombineMode(G_CC_DECALRGB, G_CC_DECALRGB),
gsDPSetRenderMode(G_RM_NOOP, G_RM_NOOP2),
gsDPSetTextureFilter(G_TF_POINT),
gsSPEndDisplayList(),
};
Gfx D_80077908[] = {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetTexturePersp(G_TP_NONE),
gsDPSetTextureLUT(G_TT_NONE),
gsDPSetCombineMode(G_CC_DECALRGB, G_CC_DECALRGB),
gsDPSetRenderMode(G_RM_OPA_SURF, G_RM_OPA_SURF2),
gsDPSetTextureFilter(G_TF_POINT),
gsSPEndDisplayList(),
};
// BSS
extern u8* gLogosImages;
extern u8* gLogosImage3;
extern u8* gLogosImage1;
extern u8* gLogosImage2;
void state_init_logos(void) {
s8* romStart;
s8* romEnd;
s32* logoRam;
s32* temp_800A0910;
general_heap_create();
gGameStatusPtr->introState = INTRO_STATE_0;
@ -24,17 +50,12 @@ void state_init_logos(void) {
romEnd = logos_ROM_END;
romStart = logos_ROM_START;
logoRam = heap_malloc(romEnd - romStart);
gLogosImages = heap_malloc(romEnd - romStart);
dma_copy(romStart, romEnd, gLogosImages);
temp_800A0910 = &D_800A0910;
D_800A0910 = logoRam;
dma_copy(romStart, romEnd, logoRam);
// TODO probably this is not ideal
D_800A0918 = D_800A0910 + 0x0;
D_800A0914 = D_800A0910 + 0x7000;
D_800A091C = D_800A0910 + 0x15000;
gLogosImage1 = gLogosImages + 0x0;
gLogosImage3 = gLogosImages + 0x7000;
gLogosImage2 = gLogosImages + 0x15000;
nuContRmbForceStop();
create_cameras_a();
@ -80,13 +101,19 @@ void state_init_logos(void) {
void state_step_logos(void) {
if (gGameStatusPtr->bSkipIntro) {
if (intro_logos_fade_out(0xA) != 0) {
if (intro_logos_fade_out(10)) {
set_curtain_scale(1.0f);
set_curtain_fade(0.0f);
set_game_mode(GAME_MODE_TITLE_SCREEN);
}
} else {
switch (gGameStatusPtr->introState) {
case INTRO_STATE_0:
if (intro_logos_fade_in(10)) {
gGameStatusPtr->introState++;
gGameStatusPtr->introCounter = 30;
}
break;
case INTRO_STATE_1:
if (gGameStatusPtr->introCounter == 0) {
intro_logos_set_fade_color(208);
@ -95,12 +122,12 @@ void state_step_logos(void) {
gGameStatusPtr->introCounter--;
break;
case INTRO_STATE_2:
if (intro_logos_fade_out(0xA)) {
if (intro_logos_fade_out(10)) {
gGameStatusPtr->introState++;
}
break;
case INTRO_STATE_3:
if (intro_logos_fade_in(0xA)) {
if (intro_logos_fade_in(10)) {
gGameStatusPtr->introState++;
gGameStatusPtr->introCounter = 40;
}
@ -113,13 +140,12 @@ void state_step_logos(void) {
gGameStatusPtr->introCounter--;
break;
case INTRO_STATE_5:
if (intro_logos_fade_out(0xA)) {
if (intro_logos_fade_out(10)) {
gGameStatusPtr->introState++;
}
break;
case INTRO_STATE_0:
case INTRO_STATE_6:
if (intro_logos_fade_in(0xA)) {
if (intro_logos_fade_in(10)) {
gGameStatusPtr->introState++;
gGameStatusPtr->introCounter = 30;
}
@ -143,7 +169,7 @@ void state_step_logos(void) {
}
break;
case INTRO_STATE_9:
if (intro_logos_fade_out(0xA) != 0) {
if (intro_logos_fade_out(10)) {
gGameStatusPtr->introCounter = 15;
gGameStatusPtr->introState++;
}
@ -156,9 +182,8 @@ void state_step_logos(void) {
}
break;
case INTRO_STATE_B:
heap_free(D_800A0910);
D_800A0910 = 0;
heap_free(gLogosImages);
gLogosImages = NULL;
intro_logos_set_fade_alpha(255);
gGameStatusPtr->creditsViewportMode = 0;
set_game_mode(GAME_MODE_INTRO);
@ -174,9 +199,6 @@ void state_drawUI_logos(void) {
appendGfx_intro_logos();
}
// all sorts of issues, but I think it's mostly with D_800A0918, 1C, and 14. Those need better types so they can have
// proper array accesses. the display list macros should mostly be good
#ifdef NON_EQUIVALENT
void appendGfx_intro_logos(void) {
s32 i;
@ -184,74 +206,47 @@ void appendGfx_intro_logos(void) {
gDPSetRenderMode(gMasterGfxPos++, G_RM_NOOP, G_RM_NOOP2);
gDPSetCombineMode(gMasterGfxPos++, G_CC_DECALRGB, G_CC_DECALRGB);
gDPSetCycleType(gMasterGfxPos++, G_CYC_FILL);
gDPSetFillColor(gMasterGfxPos++, 0xE739E739);
gDPFillRectangle(gMasterGfxPos++, 0, 0, 319, 239);
gDPSetFillColor(gMasterGfxPos++, PACK_FILL_COLOR(224, 224, 224, 1));
gDPFillRectangle(gMasterGfxPos++, 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1);
gDPPipeSync(gMasterGfxPos++);
switch (gGameStatusPtr->loadMenuState) {
case 0:
case 1:
case 2:
switch (gGameStatusPtr->introState) {
case INTRO_STATE_0:
case INTRO_STATE_1:
case INTRO_STATE_2:
gSPDisplayList(gMasterGfxPos++, D_80077908);
for (i = 0; i < 7; i++) {
gDPSetTextureImage(gMasterGfxPos++, G_IM_FMT_RGBA, G_IM_SIZ_16b, 128, D_800A0918 + (i << 0xC));
gDPSetTile(gMasterGfxPos++, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP,
G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD);
gDPLoadSync(gMasterGfxPos++);
gDPLoadTile(gMasterGfxPos++, G_TX_LOADTILE, 0, 0, 508, 60);
gDPPipeSync(gMasterGfxPos++);
gDPSetTile(gMasterGfxPos++, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 0x0000, G_TX_RENDERTILE, 0,
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK,
G_TX_NOLOD);
gDPSetTileSize(gMasterGfxPos++, G_TX_RENDERTILE, 0, 0, 508, 60);
gSPTextureRectangle(gMasterGfxPos++, 384, 256 + i * 64, 896, 320 + i * 64, G_TX_RENDERTILE, 0, 0, 1024, 1024);
gDPLoadTextureTile(gMasterGfxPos++, gLogosImage1 + i * 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 128, 112,
0, 0, 127, 15, 0,
G_TX_WRAP, G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
gSPTextureRectangle(gMasterGfxPos++, 96 * 4, (64 + i * 16) * 4, 224 * 4, (80 + i * 16) * 4, G_TX_RENDERTILE, 0, 0, 1024, 1024);
gDPPipeSync(gMasterGfxPos++);
}
break;
case 3:
case 4:
case 5:
case INTRO_STATE_3:
case INTRO_STATE_4:
case INTRO_STATE_5:
gSPDisplayList(gMasterGfxPos++, D_80077908);
for (i = 0; i < 6; i++) {
gDPSetTextureImage(gMasterGfxPos++, G_IM_FMT_RGBA, G_IM_SIZ_16b, 256, D_800A091C + (i << 0xC));
gDPSetTile(gMasterGfxPos++, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP,
G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD);
gDPLoadSync(gMasterGfxPos++);
gDPLoadTile(gMasterGfxPos++, G_TX_LOADTILE, 0, 0, 1020, 28);
gDPPipeSync(gMasterGfxPos++);
gDPSetTile(gMasterGfxPos++, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 0x0000, G_TX_RENDERTILE, 0,
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK,
G_TX_NOLOD);
gDPSetTileSize(gMasterGfxPos++, G_TX_RENDERTILE, 0, 0, 1020, 28);
gSPTextureRectangle(gMasterGfxPos++, 128, 356 + i * 32, 1152, 388 + i * 32, G_TX_RENDERTILE, 0, 0, 1024, 1024);
gDPLoadTextureTile(gMasterGfxPos++, gLogosImage2 + i * 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 256, 48,
0, 0, 255, 7, 0,
G_TX_WRAP, G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
gSPTextureRectangle(gMasterGfxPos++, 32 * 4, (89 + i * 8) * 4, 288 * 4, (97 + i * 8) * 4, G_TX_RENDERTILE, 0, 0, 1024, 1024);
gDPPipeSync(gMasterGfxPos++);
}
break;
case 6:
case 7:
case 8:
case 9:
case INTRO_STATE_6:
case INTRO_STATE_7:
case INTRO_STATE_8:
case INTRO_STATE_9:
gSPDisplayList(gMasterGfxPos++, D_80077908);
for (i = 0; i < 14; i++) {
gDPSetTextureImage(gMasterGfxPos++, G_IM_FMT_RGBA, G_IM_SIZ_16b, 256, D_800A0914[i] + (i << 0xC));
gDPSetTile(gMasterGfxPos++, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP,
G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD);
gDPLoadSync(gMasterGfxPos++);
gDPLoadTile(gMasterGfxPos++, G_TX_LOADTILE, 0, 0, 1020, 28);
gDPPipeSync(gMasterGfxPos++);
gDPSetTile(gMasterGfxPos++, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 0x0000, G_TX_RENDERTILE, 0,
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK,
G_TX_NOLOD);
gDPSetTileSize(gMasterGfxPos++, G_TX_RENDERTILE, 0, 0, 1020, 28);
gSPTextureRectangle(gMasterGfxPos++, 128, 236 + i * 32, 1152, 268 + i * 32, G_TX_RENDERTILE, 0, 0, 1024, 1024);
gDPLoadTextureTile(gMasterGfxPos++, gLogosImage3 + i * 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 256, 112,
0, 0, 255, 7, 0,
G_TX_WRAP, G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
gSPTextureRectangle(gMasterGfxPos++, 32 * 4, (59 + i * 8) * 4, 288 * 4, (67 + i * 8) * 4, G_TX_RENDERTILE, 0, 0, 1024, 1024);
gDPPipeSync(gMasterGfxPos++);
}
break;
}
}
#else
INCLUDE_ASM(void, "state_logos", appendGfx_intro_logos);
#endif

View File

@ -1,39 +0,0 @@
.include "macro.inc"
.section .data
dlabel D_800936C0
.word 0x00000043, 0x00000001, func_8005DB00, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000003, SetNpcAnimation, 0xFFFFFFFF, 0xFE363C80, 0x00000043, 0x00000005, GetNpcPos, 0xFFFFFFFF, 0xFE363C80, 0xFE363C83, 0xFE363C82, 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C83, 0x00000027, 0x00000002, 0xFE363C81, 0x00000001, 0x00000043, 0x00000005, SetNpcPos, 0xFFFFFFFF, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000008, 0x00000001, 0x00000001, 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C83, 0x00000027, 0x00000002, 0xFE363C81, 0x00000004, 0x00000043, 0x00000005, SetNpcPos, 0xFFFFFFFF, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000008, 0x00000001, 0x00000001, 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C83, 0x00000027, 0x00000002, 0xFE363C81, 0x00000010, 0x00000043, 0x00000005, SetNpcPos, 0xFFFFFFFF, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000008, 0x00000001, 0x00000001, 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C83, 0x00000027, 0x00000002, 0xFE363C81, 0x00000008, 0x00000043, 0x00000005, SetNpcPos, 0xFFFFFFFF, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000008, 0x00000001, 0x00000001, 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C83, 0x00000027, 0x00000002, 0xFE363C81, 0x00000014, 0x00000043, 0x00000005, SetNpcPos, 0xFFFFFFFF, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000008, 0x00000001, 0x00000001, 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C83, 0x00000027, 0x00000002, 0xFE363C81, 0x00000008, 0x00000043, 0x00000005, SetNpcPos, 0xFFFFFFFF, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000008, 0x00000001, 0x00000001, 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C83, 0x00000027, 0x00000002, 0xFE363C81, 0x0000000C, 0x00000043, 0x00000005, SetNpcPos, 0xFFFFFFFF, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000008, 0x00000001, 0x00000001, 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C83, 0x00000027, 0x00000002, 0xFE363C81, 0x00000006, 0x00000043, 0x00000005, SetNpcPos, 0xFFFFFFFF, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000008, 0x00000001, 0x00000001, 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C83, 0x00000027, 0x00000002, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, SetNpcPos, 0xFFFFFFFF, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000008, 0x00000001, 0x00000001, 0x00000002, 0x00000000, 0x00000001, 0x00000000
dlabel D_800939A4
.word 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000003, GetSelfVar, 0x00000000, 0xFE363C80, 0x0000000A, 0x00000002, 0xFE363C80, 0x00000000, 0x00000043, 0x00000003, SetSelfVar, 0x00000000, 0x00000001, 0x00000043, 0x00000003, BindNpcAI, 0xFFFFFFFF, D_800939A4, 0x00000043, 0x00000004, SetNpcFlagBits, 0xFFFFFFFF, 0x00040200, 0x00000001, 0x00000043, 0x00000004, SetNpcFlagBits, 0xFFFFFFFF, 0x00000808, 0x00000000, 0x00000043, 0x00000003, SetNpcAnimation, 0xFFFFFFFF, 0xFE363C82, 0x00000024, 0x00000002, 0xFE363C80, 0x00000000, 0x00000005, 0x00000001, 0x0000001E, 0x00000043, 0x00000005, SetNpcRotation, 0xFFFFFFFF, 0x00000000, 0xFE363C80, 0x00000000, 0x00000043, 0x00000001, func_8005DD54, 0x00000043, 0x00000007, func_802CFD30, 0xFFFFFFFF, 0x00000006, 0xFE363C82, 0xFE363C82, 0xFE363C82, 0x00000000, 0x00000027, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000008, 0x00000001, 0x00000001, 0x00000006, 0x00000000, 0x00000043, 0x00000005, SetNpcRotation, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000007, func_802CFD30, 0xFFFFFFFF, 0x00000006, 0x000000FF, 0x000000FF, 0x000000FF, 0x00000000, 0x00000043, 0x00000004, SetNpcFlagBits, 0xFFFFFFFF, 0x00040000, 0x00000000, 0x00000043, 0x00000003, SetSelfVar, 0x00000000, 0x00000000, 0x00000043, 0x00000001, func_8005DDF0, 0x00000043, 0x00000003, BindNpcAI, 0xFFFFFFFF, 0xFE363C81, 0x00000013, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000
dlabel D_80093B80
.word 0x00000000
dlabel D_80093B84
.word 0x4E755379, 0x7374656D, 0x322E3035, 0x00000000
dlabel D_80093B94
.word D_80093B84, 0x00000000, 0x00000000
dlabel nugfx_ucode
.word gspF3DEX2kawase_fifo_text_bin, gspF3DEX2kawase_fifo_data_bin
dlabel FrameBuf
.word D_8038F800, D_803B5000, heap_battleHead, 0x00000000
dlabel rdpstateinit_dl
.word 0xFB000000, 0x00000000, 0xFA000000, 0x00000000, 0xF9000000, 0x00000000, 0xF8000000, 0x00000000, 0xF7000000, 0x00000000, 0xEE000000, 0x00000000, 0xEC000000, 0x00000000, 0xEB000000, 0x00000000, 0xEA000000, 0x00000000, 0xFCFFFFFF, 0xFFFE793C, 0xED000000, 0x005003C0, 0xF5100000, 0x00000000, 0xF5100000, 0x01000000, 0xF5100000, 0x02000000, 0xF5100000, 0x03000000, 0xF5100000, 0x04000000, 0xF5100000, 0x05000000, 0xF5100000, 0x06000000, 0xF5100000, 0x07000000, 0xF2000000, 0x00000000, 0xF2000000, 0x01000000, 0xF2000000, 0x02000000, 0xF2000000, 0x03000000, 0xF2000000, 0x04000000, 0xF2000000, 0x05000000, 0xF2000000, 0x06000000, 0xF2000000, 0x07000000, 0xE7000000, 0x00000000, 0xDF000000, 0x00000000
dlabel nuContPakCompanyCode
.short 0x0000, 0x0000
dlabel nuContPakGameCode
.word 0x00000000
dlabel D_80093CA8
.word 0x00000000, contPakOpen, contPakFree, contPakFileOpen, contPakFileReadWrite, contPakFileDelete, contPakFileState, contPakFileNum, contPakRepairId, 0x00000000
dlabel nuContPakCallBack
.word 0x00000000, D_80093CA8, 0x02000000, 0x00000000

View File

@ -0,0 +1,33 @@
.include "macro.inc"
.section .data
dlabel D_80093B80
.word 0x00000000
dlabel D_80093B84
.word 0x4E755379, 0x7374656D, 0x322E3035, 0x00000000
dlabel D_80093B94
.word D_80093B84, 0x00000000, 0x00000000
dlabel nugfx_ucode
.word gspF3DEX2kawase_fifo_text_bin, gspF3DEX2kawase_fifo_data_bin
dlabel FrameBuf
.word D_8038F800, D_803B5000, heap_battleHead, 0x00000000
dlabel rdpstateinit_dl
.word 0xFB000000, 0x00000000, 0xFA000000, 0x00000000, 0xF9000000, 0x00000000, 0xF8000000, 0x00000000, 0xF7000000, 0x00000000, 0xEE000000, 0x00000000, 0xEC000000, 0x00000000, 0xEB000000, 0x00000000, 0xEA000000, 0x00000000, 0xFCFFFFFF, 0xFFFE793C, 0xED000000, 0x005003C0, 0xF5100000, 0x00000000, 0xF5100000, 0x01000000, 0xF5100000, 0x02000000, 0xF5100000, 0x03000000, 0xF5100000, 0x04000000, 0xF5100000, 0x05000000, 0xF5100000, 0x06000000, 0xF5100000, 0x07000000, 0xF2000000, 0x00000000, 0xF2000000, 0x01000000, 0xF2000000, 0x02000000, 0xF2000000, 0x03000000, 0xF2000000, 0x04000000, 0xF2000000, 0x05000000, 0xF2000000, 0x06000000, 0xF2000000, 0x07000000, 0xE7000000, 0x00000000, 0xDF000000, 0x00000000
dlabel nuContPakCompanyCode
.short 0x0000, 0x0000
dlabel nuContPakGameCode
.word 0x00000000
dlabel D_80093CA8
.word 0x00000000, contPakOpen, contPakFree, contPakFileOpen, contPakFileReadWrite, contPakFileDelete, contPakFileState, contPakFileNum, contPakRepairId, 0x00000000
dlabel nuContPakCallBack
.word 0x00000000, D_80093CA8, 0x02000000, 0x00000000

View File

@ -1,206 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.section .rodata
dlabel jtbl_8029D3A0
.word .L80259300_187BE0, .L80259484_187D64, .L80259484_187D64, .L8025931C_187BFC, .L80259338_187C18, .L80259354_187C34, .L80259370_187C50, .L8025938C_187C6C, .L802593A8_187C88, .L802593C4_187CA4, .L802593E0_187CC0, .L80259484_187D64, .L802593FC_187CDC, .L8025941C_187CFC, .L80259440_187D20, .L80259450_187D30, .L80259470_187D50, 0
.section .text
glabel func_802591EC
/* 187ACC 802591EC 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 187AD0 802591F0 00A0482D */ daddu $t1, $a1, $zero
/* 187AD4 802591F4 00C0502D */ daddu $t2, $a2, $zero
/* 187AD8 802591F8 AFBF0018 */ sw $ra, 0x18($sp)
/* 187ADC 802591FC 8D250000 */ lw $a1, ($t1)
/* 187AE0 80259200 8FA80030 */ lw $t0, 0x30($sp)
/* 187AE4 80259204 30A20002 */ andi $v0, $a1, 2
/* 187AE8 80259208 10400033 */ beqz $v0, .L802592D8
/* 187AEC 8025920C 00E0582D */ daddu $t3, $a3, $zero
/* 187AF0 80259210 240600FF */ addiu $a2, $zero, 0xff
/* 187AF4 80259214 85230098 */ lh $v1, 0x98($t1)
/* 187AF8 80259218 0066102A */ slt $v0, $v1, $a2
/* 187AFC 8025921C 10400003 */ beqz $v0, .L8025922C
/* 187B00 80259220 0000402D */ daddu $t0, $zero, $zero
/* 187B04 80259224 3C088000 */ lui $t0, 0x8000
/* 187B08 80259228 0060302D */ daddu $a2, $v1, $zero
.L8025922C:
/* 187B0C 8025922C 30A20100 */ andi $v0, $a1, 0x100
/* 187B10 80259230 1040000C */ beqz $v0, .L80259264
/* 187B14 80259234 3C038080 */ lui $v1, 0x8080
/* 187B18 80259238 34638081 */ ori $v1, $v1, 0x8081
/* 187B1C 8025923C 00061100 */ sll $v0, $a2, 4
/* 187B20 80259240 00461023 */ subu $v0, $v0, $a2
/* 187B24 80259244 000210C0 */ sll $v0, $v0, 3
/* 187B28 80259248 00430018 */ mult $v0, $v1
/* 187B2C 8025924C 3C088000 */ lui $t0, 0x8000
/* 187B30 80259250 00006010 */ mfhi $t4
/* 187B34 80259254 01821821 */ addu $v1, $t4, $v0
/* 187B38 80259258 000319C3 */ sra $v1, $v1, 7
/* 187B3C 8025925C 000217C3 */ sra $v0, $v0, 0x1f
/* 187B40 80259260 00623023 */ subu $a2, $v1, $v0
.L80259264:
/* 187B44 80259264 1480000D */ bnez $a0, .L8025929C
/* 187B48 80259268 240200FF */ addiu $v0, $zero, 0xff
/* 187B4C 8025926C 14C20005 */ bne $a2, $v0, .L80259284
/* 187B50 80259270 AFAB0010 */ sw $t3, 0x10($sp)
/* 187B54 80259274 0000202D */ daddu $a0, $zero, $zero
/* 187B58 80259278 0140282D */ daddu $a1, $t2, $zero
/* 187B5C 8025927C 080964A3 */ j .L8025928C
/* 187B60 80259280 0080302D */ daddu $a2, $a0, $zero
.L80259284:
/* 187B64 80259284 0100202D */ daddu $a0, $t0, $zero
/* 187B68 80259288 0140282D */ daddu $a1, $t2, $zero
.L8025928C:
/* 187B6C 8025928C 0C0B7710 */ jal spr_draw_player_sprite
/* 187B70 80259290 0000382D */ daddu $a3, $zero, $zero
/* 187B74 80259294 08096522 */ j .L80259488
/* 187B78 80259298 0000102D */ daddu $v0, $zero, $zero
.L8025929C:
/* 187B7C 8025929C 14C20006 */ bne $a2, $v0, .L802592B8
/* 187B80 802592A0 0140282D */ daddu $a1, $t2, $zero
/* 187B84 802592A4 0000302D */ daddu $a2, $zero, $zero
/* 187B88 802592A8 AFAB0010 */ sw $t3, 0x10($sp)
/* 187B8C 802592AC 8D240084 */ lw $a0, 0x84($t1)
/* 187B90 802592B0 080964B2 */ j .L802592C8
/* 187B94 802592B4 00C0382D */ daddu $a3, $a2, $zero
.L802592B8:
/* 187B98 802592B8 8D240084 */ lw $a0, 0x84($t1)
/* 187B9C 802592BC 0000382D */ daddu $a3, $zero, $zero
/* 187BA0 802592C0 AFAB0010 */ sw $t3, 0x10($sp)
/* 187BA4 802592C4 00882025 */ or $a0, $a0, $t0
.L802592C8:
/* 187BA8 802592C8 0C0B78F6 */ jal spr_draw_npc_sprite
/* 187BAC 802592CC 00000000 */ nop
/* 187BB0 802592D0 08096522 */ j .L80259488
/* 187BB4 802592D4 0000102D */ daddu $v0, $zero, $zero
.L802592D8:
/* 187BB8 802592D8 8D2200C0 */ lw $v0, 0xc0($t1)
/* 187BBC 802592DC 804306C0 */ lb $v1, 0x6c0($v0)
/* 187BC0 802592E0 2C620011 */ sltiu $v0, $v1, 0x11
/* 187BC4 802592E4 10400067 */ beqz $v0, .L80259484_187D64
/* 187BC8 802592E8 00031080 */ sll $v0, $v1, 2
/* 187BCC 802592EC 3C01802A */ lui $at, %hi(jtbl_8029D3A0)
/* 187BD0 802592F0 00220821 */ addu $at, $at, $v0
/* 187BD4 802592F4 8C22D3A0 */ lw $v0, %lo(jtbl_8029D3A0)($at)
/* 187BD8 802592F8 00400008 */ jr $v0
/* 187BDC 802592FC 00000000 */ nop
.L80259300_187BE0:
/* 187BE0 80259300 AFA80010 */ sw $t0, 0x10($sp)
/* 187BE4 80259304 0120282D */ daddu $a1, $t1, $zero
/* 187BE8 80259308 0140302D */ daddu $a2, $t2, $zero
/* 187BEC 8025930C 0C096692 */ jal func_80259A48
/* 187BF0 80259310 0160382D */ daddu $a3, $t3, $zero
/* 187BF4 80259314 08096522 */ j .L80259488
/* 187BF8 80259318 0000102D */ daddu $v0, $zero, $zero
.L8025931C_187BFC:
/* 187BFC 8025931C AFA80010 */ sw $t0, 0x10($sp)
/* 187C00 80259320 0120282D */ daddu $a1, $t1, $zero
/* 187C04 80259324 0140302D */ daddu $a2, $t2, $zero
/* 187C08 80259328 0C0966AB */ jal func_80259AAC
/* 187C0C 8025932C 0160382D */ daddu $a3, $t3, $zero
/* 187C10 80259330 08096522 */ j .L80259488
/* 187C14 80259334 0000102D */ daddu $v0, $zero, $zero
.L80259338_187C18:
/* 187C18 80259338 AFA80010 */ sw $t0, 0x10($sp)
/* 187C1C 8025933C 0120282D */ daddu $a1, $t1, $zero
/* 187C20 80259340 0140302D */ daddu $a2, $t2, $zero
/* 187C24 80259344 0C096767 */ jal func_80259D9C
/* 187C28 80259348 0160382D */ daddu $a3, $t3, $zero
/* 187C2C 8025934C 08096522 */ j .L80259488
/* 187C30 80259350 0000102D */ daddu $v0, $zero, $zero
.L80259354_187C34:
/* 187C34 80259354 AFA80010 */ sw $t0, 0x10($sp)
/* 187C38 80259358 0120282D */ daddu $a1, $t1, $zero
/* 187C3C 8025935C 0140302D */ daddu $a2, $t2, $zero
/* 187C40 80259360 0C0968B1 */ jal func_8025A2C4
/* 187C44 80259364 0160382D */ daddu $a3, $t3, $zero
/* 187C48 80259368 08096522 */ j .L80259488
/* 187C4C 8025936C 0000102D */ daddu $v0, $zero, $zero
.L80259370_187C50:
/* 187C50 80259370 AFA80010 */ sw $t0, 0x10($sp)
/* 187C54 80259374 0120282D */ daddu $a1, $t1, $zero
/* 187C58 80259378 0140302D */ daddu $a2, $t2, $zero
/* 187C5C 8025937C 0C096943 */ jal func_8025A50C
/* 187C60 80259380 0160382D */ daddu $a3, $t3, $zero
/* 187C64 80259384 08096522 */ j .L80259488
/* 187C68 80259388 0000102D */ daddu $v0, $zero, $zero
.L8025938C_187C6C:
/* 187C6C 8025938C AFA80010 */ sw $t0, 0x10($sp)
/* 187C70 80259390 0120282D */ daddu $a1, $t1, $zero
/* 187C74 80259394 0140302D */ daddu $a2, $t2, $zero
/* 187C78 80259398 0C0969D3 */ jal func_8025A74C
/* 187C7C 8025939C 0160382D */ daddu $a3, $t3, $zero
/* 187C80 802593A0 08096522 */ j .L80259488
/* 187C84 802593A4 0000102D */ daddu $v0, $zero, $zero
.L802593A8_187C88:
/* 187C88 802593A8 AFA80010 */ sw $t0, 0x10($sp)
/* 187C8C 802593AC 0120282D */ daddu $a1, $t1, $zero
/* 187C90 802593B0 0140302D */ daddu $a2, $t2, $zero
/* 187C94 802593B4 0C096AA0 */ jal func_8025AA80
/* 187C98 802593B8 0160382D */ daddu $a3, $t3, $zero
/* 187C9C 802593BC 08096522 */ j .L80259488
/* 187CA0 802593C0 0000102D */ daddu $v0, $zero, $zero
.L802593C4_187CA4:
/* 187CA4 802593C4 AFA80010 */ sw $t0, 0x10($sp)
/* 187CA8 802593C8 0120282D */ daddu $a1, $t1, $zero
/* 187CAC 802593CC 0140302D */ daddu $a2, $t2, $zero
/* 187CB0 802593D0 0C096B64 */ jal func_8025AD90
/* 187CB4 802593D4 0160382D */ daddu $a3, $t3, $zero
/* 187CB8 802593D8 08096522 */ j .L80259488
/* 187CBC 802593DC 0000102D */ daddu $v0, $zero, $zero
.L802593E0_187CC0:
/* 187CC0 802593E0 AFA80010 */ sw $t0, 0x10($sp)
/* 187CC4 802593E4 0120282D */ daddu $a1, $t1, $zero
/* 187CC8 802593E8 0140302D */ daddu $a2, $t2, $zero
/* 187CCC 802593EC 0C096C6A */ jal func_8025B1A8
/* 187CD0 802593F0 0160382D */ daddu $a3, $t3, $zero
/* 187CD4 802593F4 08096522 */ j .L80259488
/* 187CD8 802593F8 0000102D */ daddu $v0, $zero, $zero
.L802593FC_187CDC:
/* 187CDC 802593FC 0120282D */ daddu $a1, $t1, $zero
/* 187CE0 80259400 0140302D */ daddu $a2, $t2, $zero
/* 187CE4 80259404 0160382D */ daddu $a3, $t3, $zero
/* 187CE8 80259408 AFA80010 */ sw $t0, 0x10($sp)
/* 187CEC 8025940C 0C096D70 */ jal func_8025B5C0
/* 187CF0 80259410 AFA00014 */ sw $zero, 0x14($sp)
/* 187CF4 80259414 08096522 */ j .L80259488
/* 187CF8 80259418 0000102D */ daddu $v0, $zero, $zero
.L8025941C_187CFC:
/* 187CFC 8025941C 0120282D */ daddu $a1, $t1, $zero
/* 187D00 80259420 0140302D */ daddu $a2, $t2, $zero
/* 187D04 80259424 0160382D */ daddu $a3, $t3, $zero
/* 187D08 80259428 24020001 */ addiu $v0, $zero, 1
/* 187D0C 8025942C AFA80010 */ sw $t0, 0x10($sp)
/* 187D10 80259430 0C096D70 */ jal func_8025B5C0
/* 187D14 80259434 AFA20014 */ sw $v0, 0x14($sp)
/* 187D18 80259438 08096522 */ j .L80259488
/* 187D1C 8025943C 0000102D */ daddu $v0, $zero, $zero
.L80259440_187D20:
/* 187D20 80259440 0120282D */ daddu $a1, $t1, $zero
/* 187D24 80259444 0140302D */ daddu $a2, $t2, $zero
/* 187D28 80259448 08096517 */ j .L8025945C
/* 187D2C 8025944C 0000382D */ daddu $a3, $zero, $zero
.L80259450_187D30:
/* 187D30 80259450 0120282D */ daddu $a1, $t1, $zero
/* 187D34 80259454 0140302D */ daddu $a2, $t2, $zero
/* 187D38 80259458 24070001 */ addiu $a3, $zero, 1
.L8025945C:
/* 187D3C 8025945C AFAB0010 */ sw $t3, 0x10($sp)
/* 187D40 80259460 0C096EA8 */ jal func_8025BAA0
/* 187D44 80259464 AFA80014 */ sw $t0, 0x14($sp)
/* 187D48 80259468 08096522 */ j .L80259488
/* 187D4C 8025946C 0000102D */ daddu $v0, $zero, $zero
.L80259470_187D50:
/* 187D50 80259470 AFA80010 */ sw $t0, 0x10($sp)
/* 187D54 80259474 0120282D */ daddu $a1, $t1, $zero
/* 187D58 80259478 0140302D */ daddu $a2, $t2, $zero
/* 187D5C 8025947C 0C097048 */ jal func_8025C120
/* 187D60 80259480 0160382D */ daddu $a3, $t3, $zero
.L80259484_187D64:
/* 187D64 80259484 0000102D */ daddu $v0, $zero, $zero
.L80259488:
/* 187D68 80259488 8FBF0018 */ lw $ra, 0x18($sp)
/* 187D6C 8025948C 03E00008 */ jr $ra
/* 187D70 80259490 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,223 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.section .rodata
dlabel D_8029D3E8
.double 0.2
dlabel D_8029D3F0
.double 0.4
dlabel D_8029D3F8
.double 0.7
.section .text
glabel func_80259AAC
/* 18838C 80259AAC 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 188390 80259AB0 AFB20018 */ sw $s2, 0x18($sp)
/* 188394 80259AB4 0080902D */ daddu $s2, $a0, $zero
/* 188398 80259AB8 AFB10014 */ sw $s1, 0x14($sp)
/* 18839C 80259ABC 00A0882D */ daddu $s1, $a1, $zero
/* 1883A0 80259AC0 AFBF0024 */ sw $ra, 0x24($sp)
/* 1883A4 80259AC4 AFB40020 */ sw $s4, 0x20($sp)
/* 1883A8 80259AC8 AFB3001C */ sw $s3, 0x1c($sp)
/* 1883AC 80259ACC AFB00010 */ sw $s0, 0x10($sp)
/* 1883B0 80259AD0 8E3000C0 */ lw $s0, 0xc0($s1)
/* 1883B4 80259AD4 00C0982D */ daddu $s3, $a2, $zero
/* 1883B8 80259AD8 820206C1 */ lb $v0, 0x6c1($s0)
/* 1883BC 80259ADC 1040002E */ beqz $v0, .L80259B98
/* 1883C0 80259AE0 00E0A02D */ daddu $s4, $a3, $zero
/* 1883C4 80259AE4 16400016 */ bnez $s2, .L80259B40
/* 1883C8 80259AE8 00000000 */ nop
/* 1883CC 80259AEC 0C0B7830 */ jal spr_get_player_palettes
/* 1883D0 80259AF0 96240088 */ lhu $a0, 0x88($s1)
/* 1883D4 80259AF4 AE0206D0 */ sw $v0, 0x6d0($s0)
/* 1883D8 80259AF8 0040202D */ daddu $a0, $v0, $zero
/* 1883DC 80259AFC A20006CD */ sb $zero, 0x6cd($s0)
/* 1883E0 80259B00 8C830000 */ lw $v1, ($a0)
/* 1883E4 80259B04 2402FFFF */ addiu $v0, $zero, -1
/* 1883E8 80259B08 10620021 */ beq $v1, $v0, .L80259B90
/* 1883EC 80259B0C 0080182D */ daddu $v1, $a0, $zero
/* 1883F0 80259B10 0040202D */ daddu $a0, $v0, $zero
.L80259B14:
/* 1883F4 80259B14 920206CD */ lbu $v0, 0x6cd($s0)
/* 1883F8 80259B18 24420001 */ addiu $v0, $v0, 1
/* 1883FC 80259B1C A20206CD */ sb $v0, 0x6cd($s0)
/* 188400 80259B20 00021600 */ sll $v0, $v0, 0x18
/* 188404 80259B24 00021583 */ sra $v0, $v0, 0x16
/* 188408 80259B28 00431021 */ addu $v0, $v0, $v1
/* 18840C 80259B2C 8C420000 */ lw $v0, ($v0)
/* 188410 80259B30 1444FFF8 */ bne $v0, $a0, .L80259B14
/* 188414 80259B34 00000000 */ nop
/* 188418 80259B38 080966E5 */ j .L80259B94
/* 18841C 80259B3C A20006C2 */ sb $zero, 0x6c2($s0)
.L80259B40:
/* 188420 80259B40 96240088 */ lhu $a0, 0x88($s1)
/* 188424 80259B44 0C0B7A90 */ jal spr_get_npc_palettes
/* 188428 80259B48 00000000 */ nop
/* 18842C 80259B4C AE0206D0 */ sw $v0, 0x6d0($s0)
/* 188430 80259B50 0040202D */ daddu $a0, $v0, $zero
/* 188434 80259B54 A20006CD */ sb $zero, 0x6cd($s0)
/* 188438 80259B58 8C830000 */ lw $v1, ($a0)
/* 18843C 80259B5C 2402FFFF */ addiu $v0, $zero, -1
/* 188440 80259B60 1062000B */ beq $v1, $v0, .L80259B90
/* 188444 80259B64 0080182D */ daddu $v1, $a0, $zero
/* 188448 80259B68 0040202D */ daddu $a0, $v0, $zero
.L80259B6C:
/* 18844C 80259B6C 920206CD */ lbu $v0, 0x6cd($s0)
/* 188450 80259B70 24420001 */ addiu $v0, $v0, 1
/* 188454 80259B74 A20206CD */ sb $v0, 0x6cd($s0)
/* 188458 80259B78 00021600 */ sll $v0, $v0, 0x18
/* 18845C 80259B7C 00021583 */ sra $v0, $v0, 0x16
/* 188460 80259B80 00431021 */ addu $v0, $v0, $v1
/* 188464 80259B84 8C420000 */ lw $v0, ($v0)
/* 188468 80259B88 1444FFF8 */ bne $v0, $a0, .L80259B6C
/* 18846C 80259B8C 00000000 */ nop
.L80259B90:
/* 188470 80259B90 A20006C2 */ sb $zero, 0x6c2($s0)
.L80259B94:
/* 188474 80259B94 A20006C1 */ sb $zero, 0x6c1($s0)
.L80259B98:
/* 188478 80259B98 820206CD */ lb $v0, 0x6cd($s0)
/* 18847C 80259B9C 18400067 */ blez $v0, .L80259D3C
/* 188480 80259BA0 0000502D */ daddu $t2, $zero, $zero
/* 188484 80259BA4 3C0B8000 */ lui $t3, 0x8000
/* 188488 80259BA8 0200602D */ daddu $t4, $s0, $zero
/* 18848C 80259BAC 3C01802A */ lui $at, %hi(D_8029D3E8)
/* 188490 80259BB0 D428D3E8 */ ldc1 $f8, %lo(D_8029D3E8)($at)
/* 188494 80259BB4 3C0141E0 */ lui $at, 0x41e0
/* 188498 80259BB8 44811800 */ mtc1 $at, $f3
/* 18849C 80259BBC 44801000 */ mtc1 $zero, $f2
/* 1884A0 80259BC0 3C01802A */ lui $at, %hi(D_8029D3F0)
/* 1884A4 80259BC4 D426D3F0 */ ldc1 $f6, %lo(D_8029D3F0)($at)
/* 1884A8 80259BC8 3C01802A */ lui $at, %hi(D_8029D3F8)
/* 1884AC 80259BCC D424D3F8 */ ldc1 $f4, %lo(D_8029D3F8)($at)
.L80259BD0:
/* 1884B0 80259BD0 8E0206D0 */ lw $v0, 0x6d0($s0)
/* 1884B4 80259BD4 000A1880 */ sll $v1, $t2, 2
/* 1884B8 80259BD8 00621821 */ addu $v1, $v1, $v0
/* 1884BC 80259BDC 000A1140 */ sll $v0, $t2, 5
/* 1884C0 80259BE0 8C670000 */ lw $a3, ($v1)
/* 1884C4 80259BE4 02024021 */ addu $t0, $s0, $v0
/* 1884C8 80259BE8 10E0004F */ beqz $a3, .L80259D28
/* 1884CC 80259BEC AD8806D4 */ sw $t0, 0x6d4($t4)
/* 1884D0 80259BF0 0000482D */ daddu $t1, $zero, $zero
.L80259BF4:
/* 1884D4 80259BF4 94E30000 */ lhu $v1, ($a3)
/* 1884D8 80259BF8 000312C2 */ srl $v0, $v1, 0xb
/* 1884DC 80259BFC 44820000 */ mtc1 $v0, $f0
/* 1884E0 80259C00 00000000 */ nop
/* 1884E4 80259C04 46800021 */ cvt.d.w $f0, $f0
/* 1884E8 80259C08 46280002 */ mul.d $f0, $f0, $f8
/* 1884EC 80259C0C 00000000 */ nop
/* 1884F0 80259C10 90E40001 */ lbu $a0, 1($a3)
/* 1884F4 80259C14 24E70002 */ addiu $a3, $a3, 2
/* 1884F8 80259C18 00031182 */ srl $v0, $v1, 6
/* 1884FC 80259C1C 3042001F */ andi $v0, $v0, 0x1f
/* 188500 80259C20 00031842 */ srl $v1, $v1, 1
/* 188504 80259C24 3066001F */ andi $a2, $v1, 0x1f
/* 188508 80259C28 4620103E */ c.le.d $f2, $f0
/* 18850C 80259C2C 00000000 */ nop
/* 188510 80259C30 45010005 */ bc1t .L80259C48
/* 188514 80259C34 30840001 */ andi $a0, $a0, 1
/* 188518 80259C38 4620028D */ trunc.w.d $f10, $f0
/* 18851C 80259C3C 44035000 */ mfc1 $v1, $f10
/* 188520 80259C40 08096718 */ j .L80259C60
/* 188524 80259C44 304200FF */ andi $v0, $v0, 0xff
.L80259C48:
/* 188528 80259C48 46220001 */ sub.d $f0, $f0, $f2
/* 18852C 80259C4C 4620028D */ trunc.w.d $f10, $f0
/* 188530 80259C50 44035000 */ mfc1 $v1, $f10
/* 188534 80259C54 00000000 */ nop
/* 188538 80259C58 006B1825 */ or $v1, $v1, $t3
/* 18853C 80259C5C 304200FF */ andi $v0, $v0, 0xff
.L80259C60:
/* 188540 80259C60 44820000 */ mtc1 $v0, $f0
/* 188544 80259C64 00000000 */ nop
/* 188548 80259C68 46800021 */ cvt.d.w $f0, $f0
/* 18854C 80259C6C 46260002 */ mul.d $f0, $f0, $f6
/* 188550 80259C70 00000000 */ nop
/* 188554 80259C74 4620103E */ c.le.d $f2, $f0
/* 188558 80259C78 00000000 */ nop
/* 18855C 80259C7C 45030005 */ bc1tl .L80259C94
/* 188560 80259C80 46220001 */ sub.d $f0, $f0, $f2
/* 188564 80259C84 4620028D */ trunc.w.d $f10, $f0
/* 188568 80259C88 44055000 */ mfc1 $a1, $f10
/* 18856C 80259C8C 0809672A */ j .L80259CA8
/* 188570 80259C90 30C200FF */ andi $v0, $a2, 0xff
.L80259C94:
/* 188574 80259C94 4620028D */ trunc.w.d $f10, $f0
/* 188578 80259C98 44055000 */ mfc1 $a1, $f10
/* 18857C 80259C9C 00000000 */ nop
/* 188580 80259CA0 00AB2825 */ or $a1, $a1, $t3
/* 188584 80259CA4 30C200FF */ andi $v0, $a2, 0xff
.L80259CA8:
/* 188588 80259CA8 44820000 */ mtc1 $v0, $f0
/* 18858C 80259CAC 00000000 */ nop
/* 188590 80259CB0 46800021 */ cvt.d.w $f0, $f0
/* 188594 80259CB4 46240002 */ mul.d $f0, $f0, $f4
/* 188598 80259CB8 00000000 */ nop
/* 18859C 80259CBC 4620103E */ c.le.d $f2, $f0
/* 1885A0 80259CC0 00000000 */ nop
/* 1885A4 80259CC4 45010005 */ bc1t .L80259CDC
/* 1885A8 80259CC8 00A0102D */ daddu $v0, $a1, $zero
/* 1885AC 80259CCC 4620028D */ trunc.w.d $f10, $f0
/* 1885B0 80259CD0 44055000 */ mfc1 $a1, $f10
/* 1885B4 80259CD4 0809673D */ j .L80259CF4
/* 1885B8 80259CD8 306300FF */ andi $v1, $v1, 0xff
.L80259CDC:
/* 1885BC 80259CDC 46220001 */ sub.d $f0, $f0, $f2
/* 1885C0 80259CE0 4620028D */ trunc.w.d $f10, $f0
/* 1885C4 80259CE4 44055000 */ mfc1 $a1, $f10
/* 1885C8 80259CE8 00000000 */ nop
/* 1885CC 80259CEC 00AB2825 */ or $a1, $a1, $t3
/* 1885D0 80259CF0 306300FF */ andi $v1, $v1, 0xff
.L80259CF4:
/* 1885D4 80259CF4 00031AC0 */ sll $v1, $v1, 0xb
/* 1885D8 80259CF8 304200FF */ andi $v0, $v0, 0xff
/* 1885DC 80259CFC 00021180 */ sll $v0, $v0, 6
/* 1885E0 80259D00 00621825 */ or $v1, $v1, $v0
/* 1885E4 80259D04 30A200FF */ andi $v0, $a1, 0xff
/* 1885E8 80259D08 00021040 */ sll $v0, $v0, 1
/* 1885EC 80259D0C 00621825 */ or $v1, $v1, $v0
/* 1885F0 80259D10 00831825 */ or $v1, $a0, $v1
/* 1885F4 80259D14 A5030000 */ sh $v1, ($t0)
/* 1885F8 80259D18 25290001 */ addiu $t1, $t1, 1
/* 1885FC 80259D1C 29220010 */ slti $v0, $t1, 0x10
/* 188600 80259D20 1440FFB4 */ bnez $v0, .L80259BF4
/* 188604 80259D24 25080002 */ addiu $t0, $t0, 2
.L80259D28:
/* 188608 80259D28 820206CD */ lb $v0, 0x6cd($s0)
/* 18860C 80259D2C 254A0001 */ addiu $t2, $t2, 1
/* 188610 80259D30 0142102A */ slt $v0, $t2, $v0
/* 188614 80259D34 1440FFA6 */ bnez $v0, .L80259BD0
/* 188618 80259D38 258C0004 */ addiu $t4, $t4, 4
.L80259D3C:
/* 18861C 80259D3C 820306C2 */ lb $v1, 0x6c2($s0)
/* 188620 80259D40 28620002 */ slti $v0, $v1, 2
/* 188624 80259D44 1040000D */ beqz $v0, .L80259D7C
/* 188628 80259D48 00000000 */ nop
/* 18862C 80259D4C 0460000B */ bltz $v1, .L80259D7C
/* 188630 80259D50 00000000 */ nop
/* 188634 80259D54 16400006 */ bnez $s2, .L80259D70
/* 188638 80259D58 0220202D */ daddu $a0, $s1, $zero
/* 18863C 80259D5C 0260282D */ daddu $a1, $s3, $zero
/* 188640 80259D60 0C096657 */ jal func_8025995C
/* 188644 80259D64 0280302D */ daddu $a2, $s4, $zero
/* 188648 80259D68 0809675F */ j .L80259D7C
/* 18864C 80259D6C 00000000 */ nop
.L80259D70:
/* 188650 80259D70 0260282D */ daddu $a1, $s3, $zero
/* 188654 80259D74 0C0965B0 */ jal func_802596C0
/* 188658 80259D78 0280302D */ daddu $a2, $s4, $zero
.L80259D7C:
/* 18865C 80259D7C 8FBF0024 */ lw $ra, 0x24($sp)
/* 188660 80259D80 8FB40020 */ lw $s4, 0x20($sp)
/* 188664 80259D84 8FB3001C */ lw $s3, 0x1c($sp)
/* 188668 80259D88 8FB20018 */ lw $s2, 0x18($sp)
/* 18866C 80259D8C 8FB10014 */ lw $s1, 0x14($sp)
/* 188670 80259D90 8FB00010 */ lw $s0, 0x10($sp)
/* 188674 80259D94 03E00008 */ jr $ra
/* 188678 80259D98 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -1,381 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.section .rodata
dlabel D_8029D400
.double 0.1
.section .text
glabel func_80259D9C
/* 18867C 80259D9C 27BDFFD0 */ addiu $sp, $sp, -0x30
/* 188680 80259DA0 AFB20018 */ sw $s2, 0x18($sp)
/* 188684 80259DA4 0080902D */ daddu $s2, $a0, $zero
/* 188688 80259DA8 AFB10014 */ sw $s1, 0x14($sp)
/* 18868C 80259DAC 00A0882D */ daddu $s1, $a1, $zero
/* 188690 80259DB0 AFB3001C */ sw $s3, 0x1c($sp)
/* 188694 80259DB4 00C0982D */ daddu $s3, $a2, $zero
/* 188698 80259DB8 AFBF0028 */ sw $ra, 0x28($sp)
/* 18869C 80259DBC AFB50024 */ sw $s5, 0x24($sp)
/* 1886A0 80259DC0 AFB40020 */ sw $s4, 0x20($sp)
/* 1886A4 80259DC4 AFB00010 */ sw $s0, 0x10($sp)
/* 1886A8 80259DC8 8E3000C0 */ lw $s0, 0xc0($s1)
/* 1886AC 80259DCC 820206C1 */ lb $v0, 0x6c1($s0)
/* 1886B0 80259DD0 8FB50040 */ lw $s5, 0x40($sp)
/* 1886B4 80259DD4 1040004B */ beqz $v0, .L80259F04
/* 1886B8 80259DD8 00E0A02D */ daddu $s4, $a3, $zero
/* 1886BC 80259DDC 16400016 */ bnez $s2, .L80259E38
/* 1886C0 80259DE0 00000000 */ nop
/* 1886C4 80259DE4 0C0B7830 */ jal spr_get_player_palettes
/* 1886C8 80259DE8 96240088 */ lhu $a0, 0x88($s1)
/* 1886CC 80259DEC AE0206D0 */ sw $v0, 0x6d0($s0)
/* 1886D0 80259DF0 0040202D */ daddu $a0, $v0, $zero
/* 1886D4 80259DF4 A20006CD */ sb $zero, 0x6cd($s0)
/* 1886D8 80259DF8 8C830000 */ lw $v1, ($a0)
/* 1886DC 80259DFC 2402FFFF */ addiu $v0, $zero, -1
/* 1886E0 80259E00 1062000B */ beq $v1, $v0, .L80259E30
/* 1886E4 80259E04 0080182D */ daddu $v1, $a0, $zero
/* 1886E8 80259E08 0040202D */ daddu $a0, $v0, $zero
.L80259E0C:
/* 1886EC 80259E0C 920206CD */ lbu $v0, 0x6cd($s0)
/* 1886F0 80259E10 24420001 */ addiu $v0, $v0, 1
/* 1886F4 80259E14 A20206CD */ sb $v0, 0x6cd($s0)
/* 1886F8 80259E18 00021600 */ sll $v0, $v0, 0x18
/* 1886FC 80259E1C 00021583 */ sra $v0, $v0, 0x16
/* 188700 80259E20 00431021 */ addu $v0, $v0, $v1
/* 188704 80259E24 8C420000 */ lw $v0, ($v0)
/* 188708 80259E28 1444FFF8 */ bne $v0, $a0, .L80259E0C
/* 18870C 80259E2C 00000000 */ nop
.L80259E30:
/* 188710 80259E30 080967A4 */ j .L80259E90
/* 188714 80259E34 24020006 */ addiu $v0, $zero, 6
.L80259E38:
/* 188718 80259E38 96240088 */ lhu $a0, 0x88($s1)
/* 18871C 80259E3C 0C0B7A90 */ jal spr_get_npc_palettes
/* 188720 80259E40 00000000 */ nop
/* 188724 80259E44 AE0206D0 */ sw $v0, 0x6d0($s0)
/* 188728 80259E48 0040202D */ daddu $a0, $v0, $zero
/* 18872C 80259E4C A20006CD */ sb $zero, 0x6cd($s0)
/* 188730 80259E50 8C830000 */ lw $v1, ($a0)
/* 188734 80259E54 2402FFFF */ addiu $v0, $zero, -1
/* 188738 80259E58 1062000B */ beq $v1, $v0, .L80259E88
/* 18873C 80259E5C 0080182D */ daddu $v1, $a0, $zero
/* 188740 80259E60 0040202D */ daddu $a0, $v0, $zero
.L80259E64:
/* 188744 80259E64 920206CD */ lbu $v0, 0x6cd($s0)
/* 188748 80259E68 24420001 */ addiu $v0, $v0, 1
/* 18874C 80259E6C A20206CD */ sb $v0, 0x6cd($s0)
/* 188750 80259E70 00021600 */ sll $v0, $v0, 0x18
/* 188754 80259E74 00021583 */ sra $v0, $v0, 0x16
/* 188758 80259E78 00431021 */ addu $v0, $v0, $v1
/* 18875C 80259E7C 8C420000 */ lw $v0, ($v0)
/* 188760 80259E80 1444FFF8 */ bne $v0, $a0, .L80259E64
/* 188764 80259E84 00000000 */ nop
.L80259E88:
/* 188768 80259E88 0C0B7A9B */ jal spr_get_npc_color_variations
/* 18876C 80259E8C 96240088 */ lhu $a0, 0x88($s1)
.L80259E90:
/* 188770 80259E90 A20206CC */ sb $v0, 0x6cc($s0)
/* 188774 80259E94 820206CD */ lb $v0, 0x6cd($s0)
/* 188778 80259E98 18400015 */ blez $v0, .L80259EF0
/* 18877C 80259E9C 0000482D */ daddu $t1, $zero, $zero
.L80259EA0:
/* 188780 80259EA0 8E0206D0 */ lw $v0, 0x6d0($s0)
/* 188784 80259EA4 00091880 */ sll $v1, $t1, 2
/* 188788 80259EA8 00621821 */ addu $v1, $v1, $v0
/* 18878C 80259EAC 00091140 */ sll $v0, $t1, 5
/* 188790 80259EB0 8C660000 */ lw $a2, ($v1)
/* 188794 80259EB4 10C00009 */ beqz $a2, .L80259EDC
/* 188798 80259EB8 02024021 */ addu $t0, $s0, $v0
/* 18879C 80259EBC 0000382D */ daddu $a3, $zero, $zero
.L80259EC0:
/* 1887A0 80259EC0 94C20000 */ lhu $v0, ($a2)
/* 1887A4 80259EC4 24C60002 */ addiu $a2, $a2, 2
/* 1887A8 80259EC8 24E70001 */ addiu $a3, $a3, 1
/* 1887AC 80259ECC A5020000 */ sh $v0, ($t0)
/* 1887B0 80259ED0 28E20010 */ slti $v0, $a3, 0x10
/* 1887B4 80259ED4 1440FFFA */ bnez $v0, .L80259EC0
/* 1887B8 80259ED8 25080002 */ addiu $t0, $t0, 2
.L80259EDC:
/* 1887BC 80259EDC 820206CD */ lb $v0, 0x6cd($s0)
/* 1887C0 80259EE0 25290001 */ addiu $t1, $t1, 1
/* 1887C4 80259EE4 0122102A */ slt $v0, $t1, $v0
/* 1887C8 80259EE8 1440FFED */ bnez $v0, .L80259EA0
/* 1887CC 80259EEC 00000000 */ nop
.L80259EF0:
/* 1887D0 80259EF0 2402FFFE */ addiu $v0, $zero, -2
/* 1887D4 80259EF4 A20206C2 */ sb $v0, 0x6c2($s0)
/* 1887D8 80259EF8 A60006CA */ sh $zero, 0x6ca($s0)
/* 1887DC 80259EFC A20006C1 */ sb $zero, 0x6c1($s0)
/* 1887E0 80259F00 A60006C8 */ sh $zero, 0x6c8($s0)
.L80259F04:
/* 1887E4 80259F04 16A0001E */ bnez $s5, .L80259F80
/* 1887E8 80259F08 00000000 */ nop
/* 1887EC 80259F0C 860206C8 */ lh $v0, 0x6c8($s0)
/* 1887F0 80259F10 14400013 */ bnez $v0, .L80259F60
/* 1887F4 80259F14 00000000 */ nop
/* 1887F8 80259F18 920206C2 */ lbu $v0, 0x6c2($s0)
/* 1887FC 80259F1C 3C048028 */ lui $a0, %hi(D_80284080)
/* 188800 80259F20 24844080 */ addiu $a0, $a0, %lo(D_80284080)
/* 188804 80259F24 24420002 */ addiu $v0, $v0, 2
/* 188808 80259F28 A20206C2 */ sb $v0, 0x6c2($s0)
/* 18880C 80259F2C 00021600 */ sll $v0, $v0, 0x18
/* 188810 80259F30 00021603 */ sra $v0, $v0, 0x18
/* 188814 80259F34 3C038028 */ lui $v1, %hi(D_80284080)
/* 188818 80259F38 00621821 */ addu $v1, $v1, $v0
/* 18881C 80259F3C 90634080 */ lbu $v1, %lo(D_80284080)($v1)
/* 188820 80259F40 240200FF */ addiu $v0, $zero, 0xff
/* 188824 80259F44 50620001 */ beql $v1, $v0, .L80259F4C
/* 188828 80259F48 A20006C2 */ sb $zero, 0x6c2($s0)
.L80259F4C:
/* 18882C 80259F4C 820206C2 */ lb $v0, 0x6c2($s0)
/* 188830 80259F50 00441021 */ addu $v0, $v0, $a0
/* 188834 80259F54 90420001 */ lbu $v0, 1($v0)
/* 188838 80259F58 00021042 */ srl $v0, $v0, 1
/* 18883C 80259F5C A60206C8 */ sh $v0, 0x6c8($s0)
.L80259F60:
/* 188840 80259F60 820306C2 */ lb $v1, 0x6c2($s0)
/* 188844 80259F64 960206C8 */ lhu $v0, 0x6c8($s0)
/* 188848 80259F68 3C018028 */ lui $at, %hi(D_80284080)
/* 18884C 80259F6C 00230821 */ addu $at, $at, $v1
/* 188850 80259F70 90234080 */ lbu $v1, %lo(D_80284080)($at)
/* 188854 80259F74 2442FFFF */ addiu $v0, $v0, -1
/* 188858 80259F78 080967E4 */ j .L80259F90
/* 18885C 80259F7C A60206C8 */ sh $v0, 0x6c8($s0)
.L80259F80:
/* 188860 80259F80 820206C2 */ lb $v0, 0x6c2($s0)
/* 188864 80259F84 3C038028 */ lui $v1, %hi(D_80284080)
/* 188868 80259F88 00621821 */ addu $v1, $v1, $v0
/* 18886C 80259F8C 90634080 */ lbu $v1, %lo(D_80284080)($v1)
.L80259F90:
/* 188870 80259F90 24020001 */ addiu $v0, $zero, 1
/* 188874 80259F94 10620024 */ beq $v1, $v0, .L8025A028
/* 188878 80259F98 28620002 */ slti $v0, $v1, 2
/* 18887C 80259F9C 10400005 */ beqz $v0, .L80259FB4
/* 188880 80259FA0 24020002 */ addiu $v0, $zero, 2
/* 188884 80259FA4 10600007 */ beqz $v1, .L80259FC4
/* 188888 80259FA8 00000000 */ nop
/* 18888C 80259FAC 0809688D */ j .L8025A234
/* 188890 80259FB0 00000000 */ nop
.L80259FB4:
/* 188894 80259FB4 1062003C */ beq $v1, $v0, .L8025A0A8
/* 188898 80259FB8 00000000 */ nop
/* 18889C 80259FBC 0809688D */ j .L8025A234
/* 1888A0 80259FC0 00000000 */ nop
.L80259FC4:
/* 1888A4 80259FC4 820206CC */ lb $v0, 0x6cc($s0)
/* 1888A8 80259FC8 1840009A */ blez $v0, .L8025A234
/* 1888AC 80259FCC 0000482D */ daddu $t1, $zero, $zero
.L80259FD0:
/* 1888B0 80259FD0 8E0206D0 */ lw $v0, 0x6d0($s0)
/* 1888B4 80259FD4 00091880 */ sll $v1, $t1, 2
/* 1888B8 80259FD8 00621821 */ addu $v1, $v1, $v0
/* 1888BC 80259FDC 00091140 */ sll $v0, $t1, 5
/* 1888C0 80259FE0 8C660000 */ lw $a2, ($v1)
/* 1888C4 80259FE4 10C00009 */ beqz $a2, .L8025A00C
/* 1888C8 80259FE8 02024021 */ addu $t0, $s0, $v0
/* 1888CC 80259FEC 0000382D */ daddu $a3, $zero, $zero
.L80259FF0:
/* 1888D0 80259FF0 94C20000 */ lhu $v0, ($a2)
/* 1888D4 80259FF4 24C60002 */ addiu $a2, $a2, 2
/* 1888D8 80259FF8 24E70001 */ addiu $a3, $a3, 1
/* 1888DC 80259FFC A5020000 */ sh $v0, ($t0)
/* 1888E0 8025A000 28E20010 */ slti $v0, $a3, 0x10
/* 1888E4 8025A004 1440FFFA */ bnez $v0, .L80259FF0
/* 1888E8 8025A008 25080002 */ addiu $t0, $t0, 2
.L8025A00C:
/* 1888EC 8025A00C 820206CC */ lb $v0, 0x6cc($s0)
/* 1888F0 8025A010 25290001 */ addiu $t1, $t1, 1
/* 1888F4 8025A014 0122102A */ slt $v0, $t1, $v0
/* 1888F8 8025A018 10400086 */ beqz $v0, .L8025A234
/* 1888FC 8025A01C 00000000 */ nop
/* 188900 8025A020 080967F4 */ j .L80259FD0
/* 188904 8025A024 00000000 */ nop
.L8025A028:
/* 188908 8025A028 820206CC */ lb $v0, 0x6cc($s0)
/* 18890C 8025A02C 920306CC */ lbu $v1, 0x6cc($s0)
/* 188910 8025A030 18400080 */ blez $v0, .L8025A234
/* 188914 8025A034 0000482D */ daddu $t1, $zero, $zero
/* 188918 8025A038 00031E00 */ sll $v1, $v1, 0x18
.L8025A03C:
/* 18891C 8025A03C 00031E03 */ sra $v1, $v1, 0x18
/* 188920 8025A040 00031040 */ sll $v0, $v1, 1
/* 188924 8025A044 00431021 */ addu $v0, $v0, $v1
/* 188928 8025A048 00491021 */ addu $v0, $v0, $t1
/* 18892C 8025A04C 8E0306D0 */ lw $v1, 0x6d0($s0)
/* 188930 8025A050 00021080 */ sll $v0, $v0, 2
/* 188934 8025A054 00431021 */ addu $v0, $v0, $v1
/* 188938 8025A058 8C460000 */ lw $a2, ($v0)
/* 18893C 8025A05C 00091140 */ sll $v0, $t1, 5
/* 188940 8025A060 10C00009 */ beqz $a2, .L8025A088
/* 188944 8025A064 02024021 */ addu $t0, $s0, $v0
/* 188948 8025A068 0000382D */ daddu $a3, $zero, $zero
.L8025A06C:
/* 18894C 8025A06C 94C20000 */ lhu $v0, ($a2)
/* 188950 8025A070 24C60002 */ addiu $a2, $a2, 2
/* 188954 8025A074 24E70001 */ addiu $a3, $a3, 1
/* 188958 8025A078 A5020000 */ sh $v0, ($t0)
/* 18895C 8025A07C 28E20010 */ slti $v0, $a3, 0x10
/* 188960 8025A080 1440FFFA */ bnez $v0, .L8025A06C
/* 188964 8025A084 25080002 */ addiu $t0, $t0, 2
.L8025A088:
/* 188968 8025A088 25290001 */ addiu $t1, $t1, 1
/* 18896C 8025A08C 820206CC */ lb $v0, 0x6cc($s0)
/* 188970 8025A090 920306CC */ lbu $v1, 0x6cc($s0)
/* 188974 8025A094 0122102A */ slt $v0, $t1, $v0
/* 188978 8025A098 1440FFE8 */ bnez $v0, .L8025A03C
/* 18897C 8025A09C 00031E00 */ sll $v1, $v1, 0x18
/* 188980 8025A0A0 0809688D */ j .L8025A234
/* 188984 8025A0A4 00000000 */ nop
.L8025A0A8:
/* 188988 8025A0A8 820206CC */ lb $v0, 0x6cc($s0)
/* 18898C 8025A0AC 18400061 */ blez $v0, .L8025A234
/* 188990 8025A0B0 0000482D */ daddu $t1, $zero, $zero
/* 188994 8025A0B4 3C0B8000 */ lui $t3, 0x8000
/* 188998 8025A0B8 3C01802A */ lui $at, %hi(D_8029D400)
/* 18899C 8025A0BC D424D400 */ ldc1 $f4, %lo(D_8029D400)($at)
/* 1889A0 8025A0C0 3C0141E0 */ lui $at, 0x41e0
/* 1889A4 8025A0C4 44811800 */ mtc1 $at, $f3
/* 1889A8 8025A0C8 44801000 */ mtc1 $zero, $f2
.L8025A0CC:
/* 1889AC 8025A0CC 8E0206D0 */ lw $v0, 0x6d0($s0)
/* 1889B0 8025A0D0 00091880 */ sll $v1, $t1, 2
/* 1889B4 8025A0D4 00621821 */ addu $v1, $v1, $v0
/* 1889B8 8025A0D8 00091140 */ sll $v0, $t1, 5
/* 1889BC 8025A0DC 8C660000 */ lw $a2, ($v1)
/* 1889C0 8025A0E0 10C0004F */ beqz $a2, .L8025A220
/* 1889C4 8025A0E4 02024021 */ addu $t0, $s0, $v0
/* 1889C8 8025A0E8 0000382D */ daddu $a3, $zero, $zero
.L8025A0EC:
/* 1889CC 8025A0EC 94C30000 */ lhu $v1, ($a2)
/* 1889D0 8025A0F0 000312C2 */ srl $v0, $v1, 0xb
/* 1889D4 8025A0F4 44820000 */ mtc1 $v0, $f0
/* 1889D8 8025A0F8 00000000 */ nop
/* 1889DC 8025A0FC 46800021 */ cvt.d.w $f0, $f0
/* 1889E0 8025A100 46240002 */ mul.d $f0, $f0, $f4
/* 1889E4 8025A104 00000000 */ nop
/* 1889E8 8025A108 90C40001 */ lbu $a0, 1($a2)
/* 1889EC 8025A10C 24C60002 */ addiu $a2, $a2, 2
/* 1889F0 8025A110 00031182 */ srl $v0, $v1, 6
/* 1889F4 8025A114 3042001F */ andi $v0, $v0, 0x1f
/* 1889F8 8025A118 00031842 */ srl $v1, $v1, 1
/* 1889FC 8025A11C 306A001F */ andi $t2, $v1, 0x1f
/* 188A00 8025A120 4620103E */ c.le.d $f2, $f0
/* 188A04 8025A124 00000000 */ nop
/* 188A08 8025A128 45010005 */ bc1t .L8025A140
/* 188A0C 8025A12C 30840001 */ andi $a0, $a0, 1
/* 188A10 8025A130 4620018D */ trunc.w.d $f6, $f0
/* 188A14 8025A134 44033000 */ mfc1 $v1, $f6
/* 188A18 8025A138 08096856 */ j .L8025A158
/* 188A1C 8025A13C 304200FF */ andi $v0, $v0, 0xff
.L8025A140:
/* 188A20 8025A140 46220001 */ sub.d $f0, $f0, $f2
/* 188A24 8025A144 4620018D */ trunc.w.d $f6, $f0
/* 188A28 8025A148 44033000 */ mfc1 $v1, $f6
/* 188A2C 8025A14C 00000000 */ nop
/* 188A30 8025A150 006B1825 */ or $v1, $v1, $t3
/* 188A34 8025A154 304200FF */ andi $v0, $v0, 0xff
.L8025A158:
/* 188A38 8025A158 44820000 */ mtc1 $v0, $f0
/* 188A3C 8025A15C 00000000 */ nop
/* 188A40 8025A160 46800021 */ cvt.d.w $f0, $f0
/* 188A44 8025A164 46240002 */ mul.d $f0, $f0, $f4
/* 188A48 8025A168 00000000 */ nop
/* 188A4C 8025A16C 4620103E */ c.le.d $f2, $f0
/* 188A50 8025A170 00000000 */ nop
/* 188A54 8025A174 45030005 */ bc1tl .L8025A18C
/* 188A58 8025A178 46220001 */ sub.d $f0, $f0, $f2
/* 188A5C 8025A17C 4620018D */ trunc.w.d $f6, $f0
/* 188A60 8025A180 44053000 */ mfc1 $a1, $f6
/* 188A64 8025A184 08096868 */ j .L8025A1A0
/* 188A68 8025A188 314200FF */ andi $v0, $t2, 0xff
.L8025A18C:
/* 188A6C 8025A18C 4620018D */ trunc.w.d $f6, $f0
/* 188A70 8025A190 44053000 */ mfc1 $a1, $f6
/* 188A74 8025A194 00000000 */ nop
/* 188A78 8025A198 00AB2825 */ or $a1, $a1, $t3
/* 188A7C 8025A19C 314200FF */ andi $v0, $t2, 0xff
.L8025A1A0:
/* 188A80 8025A1A0 44820000 */ mtc1 $v0, $f0
/* 188A84 8025A1A4 00000000 */ nop
/* 188A88 8025A1A8 46800021 */ cvt.d.w $f0, $f0
/* 188A8C 8025A1AC 46240002 */ mul.d $f0, $f0, $f4
/* 188A90 8025A1B0 00000000 */ nop
/* 188A94 8025A1B4 4620103E */ c.le.d $f2, $f0
/* 188A98 8025A1B8 00000000 */ nop
/* 188A9C 8025A1BC 45010005 */ bc1t .L8025A1D4
/* 188AA0 8025A1C0 00A0102D */ daddu $v0, $a1, $zero
/* 188AA4 8025A1C4 4620018D */ trunc.w.d $f6, $f0
/* 188AA8 8025A1C8 44053000 */ mfc1 $a1, $f6
/* 188AAC 8025A1CC 0809687B */ j .L8025A1EC
/* 188AB0 8025A1D0 306300FF */ andi $v1, $v1, 0xff
.L8025A1D4:
/* 188AB4 8025A1D4 46220001 */ sub.d $f0, $f0, $f2
/* 188AB8 8025A1D8 4620018D */ trunc.w.d $f6, $f0
/* 188ABC 8025A1DC 44053000 */ mfc1 $a1, $f6
/* 188AC0 8025A1E0 00000000 */ nop
/* 188AC4 8025A1E4 00AB2825 */ or $a1, $a1, $t3
/* 188AC8 8025A1E8 306300FF */ andi $v1, $v1, 0xff
.L8025A1EC:
/* 188ACC 8025A1EC 00031AC0 */ sll $v1, $v1, 0xb
/* 188AD0 8025A1F0 304200FF */ andi $v0, $v0, 0xff
/* 188AD4 8025A1F4 00021180 */ sll $v0, $v0, 6
/* 188AD8 8025A1F8 00621825 */ or $v1, $v1, $v0
/* 188ADC 8025A1FC 30A200FF */ andi $v0, $a1, 0xff
/* 188AE0 8025A200 00021040 */ sll $v0, $v0, 1
/* 188AE4 8025A204 00621825 */ or $v1, $v1, $v0
/* 188AE8 8025A208 00831825 */ or $v1, $a0, $v1
/* 188AEC 8025A20C A5030000 */ sh $v1, ($t0)
/* 188AF0 8025A210 24E70001 */ addiu $a3, $a3, 1
/* 188AF4 8025A214 28E20010 */ slti $v0, $a3, 0x10
/* 188AF8 8025A218 1440FFB4 */ bnez $v0, .L8025A0EC
/* 188AFC 8025A21C 25080002 */ addiu $t0, $t0, 2
.L8025A220:
/* 188B00 8025A220 820206CC */ lb $v0, 0x6cc($s0)
/* 188B04 8025A224 25290001 */ addiu $t1, $t1, 1
/* 188B08 8025A228 0122102A */ slt $v0, $t1, $v0
/* 188B0C 8025A22C 1440FFA7 */ bnez $v0, .L8025A0CC
/* 188B10 8025A230 00000000 */ nop
.L8025A234:
/* 188B14 8025A234 820206CD */ lb $v0, 0x6cd($s0)
/* 188B18 8025A238 1840000A */ blez $v0, .L8025A264
/* 188B1C 8025A23C 0000482D */ daddu $t1, $zero, $zero
/* 188B20 8025A240 0200202D */ daddu $a0, $s0, $zero
/* 188B24 8025A244 0200182D */ daddu $v1, $s0, $zero
.L8025A248:
/* 188B28 8025A248 AC6406D4 */ sw $a0, 0x6d4($v1)
/* 188B2C 8025A24C 24840020 */ addiu $a0, $a0, 0x20
/* 188B30 8025A250 820206CD */ lb $v0, 0x6cd($s0)
/* 188B34 8025A254 25290001 */ addiu $t1, $t1, 1
/* 188B38 8025A258 0122102A */ slt $v0, $t1, $v0
/* 188B3C 8025A25C 1440FFFA */ bnez $v0, .L8025A248
/* 188B40 8025A260 24630004 */ addiu $v1, $v1, 4
.L8025A264:
/* 188B44 8025A264 16400006 */ bnez $s2, .L8025A280
/* 188B48 8025A268 0220202D */ daddu $a0, $s1, $zero
/* 188B4C 8025A26C 0260282D */ daddu $a1, $s3, $zero
/* 188B50 8025A270 0C096657 */ jal func_8025995C
/* 188B54 8025A274 0280302D */ daddu $a2, $s4, $zero
/* 188B58 8025A278 080968A3 */ j .L8025A28C
/* 188B5C 8025A27C 00000000 */ nop
.L8025A280:
/* 188B60 8025A280 0260282D */ daddu $a1, $s3, $zero
/* 188B64 8025A284 0C0965B0 */ jal func_802596C0
/* 188B68 8025A288 0280302D */ daddu $a2, $s4, $zero
.L8025A28C:
/* 188B6C 8025A28C 16A00004 */ bnez $s5, .L8025A2A0
/* 188B70 8025A290 00000000 */ nop
/* 188B74 8025A294 960206CA */ lhu $v0, 0x6ca($s0)
/* 188B78 8025A298 2442FFFF */ addiu $v0, $v0, -1
/* 188B7C 8025A29C A60206CA */ sh $v0, 0x6ca($s0)
.L8025A2A0:
/* 188B80 8025A2A0 8FBF0028 */ lw $ra, 0x28($sp)
/* 188B84 8025A2A4 8FB50024 */ lw $s5, 0x24($sp)
/* 188B88 8025A2A8 8FB40020 */ lw $s4, 0x20($sp)
/* 188B8C 8025A2AC 8FB3001C */ lw $s3, 0x1c($sp)
/* 188B90 8025A2B0 8FB20018 */ lw $s2, 0x18($sp)
/* 188B94 8025A2B4 8FB10014 */ lw $s1, 0x14($sp)
/* 188B98 8025A2B8 8FB00010 */ lw $s0, 0x10($sp)
/* 188B9C 8025A2BC 03E00008 */ jr $ra
/* 188BA0 8025A2C0 27BD0030 */ addiu $sp, $sp, 0x30

View File

@ -1,164 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8025A2C4
/* 188BA4 8025A2C4 27BDFFD0 */ addiu $sp, $sp, -0x30
/* 188BA8 8025A2C8 AFB20018 */ sw $s2, 0x18($sp)
/* 188BAC 8025A2CC 0080902D */ daddu $s2, $a0, $zero
/* 188BB0 8025A2D0 AFB10014 */ sw $s1, 0x14($sp)
/* 188BB4 8025A2D4 00A0882D */ daddu $s1, $a1, $zero
/* 188BB8 8025A2D8 AFB3001C */ sw $s3, 0x1c($sp)
/* 188BBC 8025A2DC 00C0982D */ daddu $s3, $a2, $zero
/* 188BC0 8025A2E0 AFBF0028 */ sw $ra, 0x28($sp)
/* 188BC4 8025A2E4 AFB50024 */ sw $s5, 0x24($sp)
/* 188BC8 8025A2E8 AFB40020 */ sw $s4, 0x20($sp)
/* 188BCC 8025A2EC AFB00010 */ sw $s0, 0x10($sp)
/* 188BD0 8025A2F0 8E3000C0 */ lw $s0, 0xc0($s1)
/* 188BD4 8025A2F4 820206C1 */ lb $v0, 0x6c1($s0)
/* 188BD8 8025A2F8 8FB50040 */ lw $s5, 0x40($sp)
/* 188BDC 8025A2FC 10400033 */ beqz $v0, .L8025A3CC
/* 188BE0 8025A300 00E0A02D */ daddu $s4, $a3, $zero
/* 188BE4 8025A304 16400018 */ bnez $s2, .L8025A368
/* 188BE8 8025A308 00000000 */ nop
/* 188BEC 8025A30C 0C0B7830 */ jal spr_get_player_palettes
/* 188BF0 8025A310 96240088 */ lhu $a0, 0x88($s1)
/* 188BF4 8025A314 AE0206D0 */ sw $v0, 0x6d0($s0)
/* 188BF8 8025A318 0040202D */ daddu $a0, $v0, $zero
/* 188BFC 8025A31C 24020002 */ addiu $v0, $zero, 2
/* 188C00 8025A320 A20206CD */ sb $v0, 0x6cd($s0)
/* 188C04 8025A324 8C830008 */ lw $v1, 8($a0)
/* 188C08 8025A328 2402FFFF */ addiu $v0, $zero, -1
/* 188C0C 8025A32C 50620024 */ beql $v1, $v0, .L8025A3C0
/* 188C10 8025A330 A20006C2 */ sb $zero, 0x6c2($s0)
/* 188C14 8025A334 0080182D */ daddu $v1, $a0, $zero
/* 188C18 8025A338 0040202D */ daddu $a0, $v0, $zero
.L8025A33C:
/* 188C1C 8025A33C 920206CD */ lbu $v0, 0x6cd($s0)
/* 188C20 8025A340 24420001 */ addiu $v0, $v0, 1
/* 188C24 8025A344 A20206CD */ sb $v0, 0x6cd($s0)
/* 188C28 8025A348 00021600 */ sll $v0, $v0, 0x18
/* 188C2C 8025A34C 00021583 */ sra $v0, $v0, 0x16
/* 188C30 8025A350 00431021 */ addu $v0, $v0, $v1
/* 188C34 8025A354 8C420000 */ lw $v0, ($v0)
/* 188C38 8025A358 1444FFF8 */ bne $v0, $a0, .L8025A33C
/* 188C3C 8025A35C 00000000 */ nop
/* 188C40 8025A360 080968F0 */ j .L8025A3C0
/* 188C44 8025A364 A20006C2 */ sb $zero, 0x6c2($s0)
.L8025A368:
/* 188C48 8025A368 96240088 */ lhu $a0, 0x88($s1)
/* 188C4C 8025A36C 0C0B7A90 */ jal spr_get_npc_palettes
/* 188C50 8025A370 00000000 */ nop
/* 188C54 8025A374 AE0206D0 */ sw $v0, 0x6d0($s0)
/* 188C58 8025A378 0040202D */ daddu $a0, $v0, $zero
/* 188C5C 8025A37C A20006CD */ sb $zero, 0x6cd($s0)
/* 188C60 8025A380 8C830000 */ lw $v1, ($a0)
/* 188C64 8025A384 2402FFFF */ addiu $v0, $zero, -1
/* 188C68 8025A388 5062000D */ beql $v1, $v0, .L8025A3C0
/* 188C6C 8025A38C A20006C2 */ sb $zero, 0x6c2($s0)
/* 188C70 8025A390 0080182D */ daddu $v1, $a0, $zero
/* 188C74 8025A394 0040202D */ daddu $a0, $v0, $zero
.L8025A398:
/* 188C78 8025A398 920206CD */ lbu $v0, 0x6cd($s0)
/* 188C7C 8025A39C 24420001 */ addiu $v0, $v0, 1
/* 188C80 8025A3A0 A20206CD */ sb $v0, 0x6cd($s0)
/* 188C84 8025A3A4 00021600 */ sll $v0, $v0, 0x18
/* 188C88 8025A3A8 00021583 */ sra $v0, $v0, 0x16
/* 188C8C 8025A3AC 00431021 */ addu $v0, $v0, $v1
/* 188C90 8025A3B0 8C420000 */ lw $v0, ($v0)
/* 188C94 8025A3B4 1444FFF8 */ bne $v0, $a0, .L8025A398
/* 188C98 8025A3B8 00000000 */ nop
/* 188C9C 8025A3BC A20006C2 */ sb $zero, 0x6c2($s0)
.L8025A3C0:
/* 188CA0 8025A3C0 A60006CA */ sh $zero, 0x6ca($s0)
/* 188CA4 8025A3C4 A60006C8 */ sh $zero, 0x6c8($s0)
/* 188CA8 8025A3C8 A20006C1 */ sb $zero, 0x6c1($s0)
.L8025A3CC:
/* 188CAC 8025A3CC 820206CD */ lb $v0, 0x6cd($s0)
/* 188CB0 8025A3D0 18400024 */ blez $v0, .L8025A464
/* 188CB4 8025A3D4 0000482D */ daddu $t1, $zero, $zero
/* 188CB8 8025A3D8 0200502D */ daddu $t2, $s0, $zero
.L8025A3DC:
/* 188CBC 8025A3DC 8E0206D0 */ lw $v0, 0x6d0($s0)
/* 188CC0 8025A3E0 00091880 */ sll $v1, $t1, 2
/* 188CC4 8025A3E4 00621821 */ addu $v1, $v1, $v0
/* 188CC8 8025A3E8 00091140 */ sll $v0, $t1, 5
/* 188CCC 8025A3EC 8C660000 */ lw $a2, ($v1)
/* 188CD0 8025A3F0 02023821 */ addu $a3, $s0, $v0
/* 188CD4 8025A3F4 10C00016 */ beqz $a2, .L8025A450
/* 188CD8 8025A3F8 AD4706D4 */ sw $a3, 0x6d4($t2)
/* 188CDC 8025A3FC 0000402D */ daddu $t0, $zero, $zero
.L8025A400:
/* 188CE0 8025A400 94C20000 */ lhu $v0, ($a2)
/* 188CE4 8025A404 90C50001 */ lbu $a1, 1($a2)
/* 188CE8 8025A408 24C60002 */ addiu $a2, $a2, 2
/* 188CEC 8025A40C 25080001 */ addiu $t0, $t0, 1
/* 188CF0 8025A410 000219C2 */ srl $v1, $v0, 7
/* 188CF4 8025A414 3063000F */ andi $v1, $v1, 0xf
/* 188CF8 8025A418 00022082 */ srl $a0, $v0, 2
/* 188CFC 8025A41C 3084000F */ andi $a0, $a0, 0xf
/* 188D00 8025A420 00021302 */ srl $v0, $v0, 0xc
/* 188D04 8025A424 30A50001 */ andi $a1, $a1, 1
/* 188D08 8025A428 000212C0 */ sll $v0, $v0, 0xb
/* 188D0C 8025A42C 00031980 */ sll $v1, $v1, 6
/* 188D10 8025A430 00431025 */ or $v0, $v0, $v1
/* 188D14 8025A434 00042040 */ sll $a0, $a0, 1
/* 188D18 8025A438 00441025 */ or $v0, $v0, $a0
/* 188D1C 8025A43C 00A22825 */ or $a1, $a1, $v0
/* 188D20 8025A440 A4E50000 */ sh $a1, ($a3)
/* 188D24 8025A444 29020010 */ slti $v0, $t0, 0x10
/* 188D28 8025A448 1440FFED */ bnez $v0, .L8025A400
/* 188D2C 8025A44C 24E70002 */ addiu $a3, $a3, 2
.L8025A450:
/* 188D30 8025A450 820206CD */ lb $v0, 0x6cd($s0)
/* 188D34 8025A454 25290001 */ addiu $t1, $t1, 1
/* 188D38 8025A458 0122102A */ slt $v0, $t1, $v0
/* 188D3C 8025A45C 1440FFDF */ bnez $v0, .L8025A3DC
/* 188D40 8025A460 254A0004 */ addiu $t2, $t2, 4
.L8025A464:
/* 188D44 8025A464 860206C8 */ lh $v0, 0x6c8($s0)
/* 188D48 8025A468 1C400010 */ bgtz $v0, .L8025A4AC
/* 188D4C 8025A46C 240300FF */ addiu $v1, $zero, 0xff
/* 188D50 8025A470 04420001 */ bltzl $v0, .L8025A478
/* 188D54 8025A474 00021023 */ negu $v0, $v0
.L8025A478:
/* 188D58 8025A478 00021040 */ sll $v0, $v0, 1
/* 188D5C 8025A47C 3C018028 */ lui $at, %hi(D_802840B4)
/* 188D60 8025A480 00220821 */ addu $at, $at, $v0
/* 188D64 8025A484 942240B4 */ lhu $v0, %lo(D_802840B4)($at)
/* 188D68 8025A488 A6220068 */ sh $v0, 0x68($s1)
/* 188D6C 8025A48C 00021400 */ sll $v0, $v0, 0x10
/* 188D70 8025A490 00021403 */ sra $v0, $v0, 0x10
/* 188D74 8025A494 14430005 */ bne $v0, $v1, .L8025A4AC
/* 188D78 8025A498 2404003C */ addiu $a0, $zero, 0x3c
/* 188D7C 8025A49C 0C00A67F */ jal rand_int
/* 188D80 8025A4A0 A6200068 */ sh $zero, 0x68($s1)
/* 188D84 8025A4A4 2442001E */ addiu $v0, $v0, 0x1e
/* 188D88 8025A4A8 A60206C8 */ sh $v0, 0x6c8($s0)
.L8025A4AC:
/* 188D8C 8025A4AC 16A00004 */ bnez $s5, .L8025A4C0
/* 188D90 8025A4B0 00000000 */ nop
/* 188D94 8025A4B4 960206C8 */ lhu $v0, 0x6c8($s0)
/* 188D98 8025A4B8 2442FFFF */ addiu $v0, $v0, -1
/* 188D9C 8025A4BC A60206C8 */ sh $v0, 0x6c8($s0)
.L8025A4C0:
/* 188DA0 8025A4C0 16400006 */ bnez $s2, .L8025A4DC
/* 188DA4 8025A4C4 0220202D */ daddu $a0, $s1, $zero
/* 188DA8 8025A4C8 0260282D */ daddu $a1, $s3, $zero
/* 188DAC 8025A4CC 0C096657 */ jal func_8025995C
/* 188DB0 8025A4D0 0280302D */ daddu $a2, $s4, $zero
/* 188DB4 8025A4D4 0809693A */ j .L8025A4E8
/* 188DB8 8025A4D8 00000000 */ nop
.L8025A4DC:
/* 188DBC 8025A4DC 0260282D */ daddu $a1, $s3, $zero
/* 188DC0 8025A4E0 0C0965B0 */ jal func_802596C0
/* 188DC4 8025A4E4 0280302D */ daddu $a2, $s4, $zero
.L8025A4E8:
/* 188DC8 8025A4E8 8FBF0028 */ lw $ra, 0x28($sp)
/* 188DCC 8025A4EC 8FB50024 */ lw $s5, 0x24($sp)
/* 188DD0 8025A4F0 8FB40020 */ lw $s4, 0x20($sp)
/* 188DD4 8025A4F4 8FB3001C */ lw $s3, 0x1c($sp)
/* 188DD8 8025A4F8 8FB20018 */ lw $s2, 0x18($sp)
/* 188DDC 8025A4FC 8FB10014 */ lw $s1, 0x14($sp)
/* 188DE0 8025A500 8FB00010 */ lw $s0, 0x10($sp)
/* 188DE4 8025A504 03E00008 */ jr $ra
/* 188DE8 8025A508 27BD0030 */ addiu $sp, $sp, 0x30

View File

@ -1,167 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8025A50C
/* 188DEC 8025A50C 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 188DF0 8025A510 AFB20018 */ sw $s2, 0x18($sp)
/* 188DF4 8025A514 0080902D */ daddu $s2, $a0, $zero
/* 188DF8 8025A518 AFB10014 */ sw $s1, 0x14($sp)
/* 188DFC 8025A51C 00A0882D */ daddu $s1, $a1, $zero
/* 188E00 8025A520 AFBF0024 */ sw $ra, 0x24($sp)
/* 188E04 8025A524 AFB40020 */ sw $s4, 0x20($sp)
/* 188E08 8025A528 AFB3001C */ sw $s3, 0x1c($sp)
/* 188E0C 8025A52C AFB00010 */ sw $s0, 0x10($sp)
/* 188E10 8025A530 8E3000C0 */ lw $s0, 0xc0($s1)
/* 188E14 8025A534 00C0982D */ daddu $s3, $a2, $zero
/* 188E18 8025A538 820206C1 */ lb $v0, 0x6c1($s0)
/* 188E1C 8025A53C 10400032 */ beqz $v0, .L8025A608
/* 188E20 8025A540 00E0A02D */ daddu $s4, $a3, $zero
/* 188E24 8025A544 16400016 */ bnez $s2, .L8025A5A0
/* 188E28 8025A548 00000000 */ nop
/* 188E2C 8025A54C 0C0B7830 */ jal spr_get_player_palettes
/* 188E30 8025A550 96240088 */ lhu $a0, 0x88($s1)
/* 188E34 8025A554 AE0206D0 */ sw $v0, 0x6d0($s0)
/* 188E38 8025A558 0040202D */ daddu $a0, $v0, $zero
/* 188E3C 8025A55C A20006CD */ sb $zero, 0x6cd($s0)
/* 188E40 8025A560 8C830000 */ lw $v1, ($a0)
/* 188E44 8025A564 2402FFFF */ addiu $v0, $zero, -1
/* 188E48 8025A568 1062000B */ beq $v1, $v0, .L8025A598
/* 188E4C 8025A56C 0080182D */ daddu $v1, $a0, $zero
/* 188E50 8025A570 0040202D */ daddu $a0, $v0, $zero
.L8025A574:
/* 188E54 8025A574 920206CD */ lbu $v0, 0x6cd($s0)
/* 188E58 8025A578 24420001 */ addiu $v0, $v0, 1
/* 188E5C 8025A57C A20206CD */ sb $v0, 0x6cd($s0)
/* 188E60 8025A580 00021600 */ sll $v0, $v0, 0x18
/* 188E64 8025A584 00021583 */ sra $v0, $v0, 0x16
/* 188E68 8025A588 00431021 */ addu $v0, $v0, $v1
/* 188E6C 8025A58C 8C420000 */ lw $v0, ($v0)
/* 188E70 8025A590 1444FFF8 */ bne $v0, $a0, .L8025A574
/* 188E74 8025A594 00000000 */ nop
.L8025A598:
/* 188E78 8025A598 0809697E */ j .L8025A5F8
/* 188E7C 8025A59C 24020006 */ addiu $v0, $zero, 6
.L8025A5A0:
/* 188E80 8025A5A0 96240088 */ lhu $a0, 0x88($s1)
/* 188E84 8025A5A4 0C0B7A90 */ jal spr_get_npc_palettes
/* 188E88 8025A5A8 00000000 */ nop
/* 188E8C 8025A5AC AE0206D0 */ sw $v0, 0x6d0($s0)
/* 188E90 8025A5B0 0040202D */ daddu $a0, $v0, $zero
/* 188E94 8025A5B4 A20006CD */ sb $zero, 0x6cd($s0)
/* 188E98 8025A5B8 8C830000 */ lw $v1, ($a0)
/* 188E9C 8025A5BC 2402FFFF */ addiu $v0, $zero, -1
/* 188EA0 8025A5C0 1062000B */ beq $v1, $v0, .L8025A5F0
/* 188EA4 8025A5C4 0080182D */ daddu $v1, $a0, $zero
/* 188EA8 8025A5C8 0040202D */ daddu $a0, $v0, $zero
.L8025A5CC:
/* 188EAC 8025A5CC 920206CD */ lbu $v0, 0x6cd($s0)
/* 188EB0 8025A5D0 24420001 */ addiu $v0, $v0, 1
/* 188EB4 8025A5D4 A20206CD */ sb $v0, 0x6cd($s0)
/* 188EB8 8025A5D8 00021600 */ sll $v0, $v0, 0x18
/* 188EBC 8025A5DC 00021583 */ sra $v0, $v0, 0x16
/* 188EC0 8025A5E0 00431021 */ addu $v0, $v0, $v1
/* 188EC4 8025A5E4 8C420000 */ lw $v0, ($v0)
/* 188EC8 8025A5E8 1444FFF8 */ bne $v0, $a0, .L8025A5CC
/* 188ECC 8025A5EC 00000000 */ nop
.L8025A5F0:
/* 188ED0 8025A5F0 0C0B7A9B */ jal spr_get_npc_color_variations
/* 188ED4 8025A5F4 96240088 */ lhu $a0, 0x88($s1)
.L8025A5F8:
/* 188ED8 8025A5F8 A20206CC */ sb $v0, 0x6cc($s0)
/* 188EDC 8025A5FC A20006C2 */ sb $zero, 0x6c2($s0)
/* 188EE0 8025A600 A60006CA */ sh $zero, 0x6ca($s0)
/* 188EE4 8025A604 A20006C1 */ sb $zero, 0x6c1($s0)
.L8025A608:
/* 188EE8 8025A608 820206CD */ lb $v0, 0x6cd($s0)
/* 188EEC 8025A60C 18400015 */ blez $v0, .L8025A664
/* 188EF0 8025A610 0000302D */ daddu $a2, $zero, $zero
.L8025A614:
/* 188EF4 8025A614 8E0206D0 */ lw $v0, 0x6d0($s0)
/* 188EF8 8025A618 00061880 */ sll $v1, $a2, 2
/* 188EFC 8025A61C 00621821 */ addu $v1, $v1, $v0
/* 188F00 8025A620 00061140 */ sll $v0, $a2, 5
/* 188F04 8025A624 8C630000 */ lw $v1, ($v1)
/* 188F08 8025A628 10600009 */ beqz $v1, .L8025A650
/* 188F0C 8025A62C 02022821 */ addu $a1, $s0, $v0
/* 188F10 8025A630 0000202D */ daddu $a0, $zero, $zero
.L8025A634:
/* 188F14 8025A634 94620000 */ lhu $v0, ($v1)
/* 188F18 8025A638 24630002 */ addiu $v1, $v1, 2
/* 188F1C 8025A63C 24840001 */ addiu $a0, $a0, 1
/* 188F20 8025A640 A4A20000 */ sh $v0, ($a1)
/* 188F24 8025A644 28820010 */ slti $v0, $a0, 0x10
/* 188F28 8025A648 1440FFFA */ bnez $v0, .L8025A634
/* 188F2C 8025A64C 24A50002 */ addiu $a1, $a1, 2
.L8025A650:
/* 188F30 8025A650 820206CD */ lb $v0, 0x6cd($s0)
/* 188F34 8025A654 24C60001 */ addiu $a2, $a2, 1
/* 188F38 8025A658 00C2102A */ slt $v0, $a2, $v0
/* 188F3C 8025A65C 1440FFED */ bnez $v0, .L8025A614
/* 188F40 8025A660 00000000 */ nop
.L8025A664:
/* 188F44 8025A664 820206CC */ lb $v0, 0x6cc($s0)
/* 188F48 8025A668 920306CC */ lbu $v1, 0x6cc($s0)
/* 188F4C 8025A66C 18400019 */ blez $v0, .L8025A6D4
/* 188F50 8025A670 0000302D */ daddu $a2, $zero, $zero
/* 188F54 8025A674 00031600 */ sll $v0, $v1, 0x18
.L8025A678:
/* 188F58 8025A678 00021603 */ sra $v0, $v0, 0x18
/* 188F5C 8025A67C 00461021 */ addu $v0, $v0, $a2
/* 188F60 8025A680 8E0306D0 */ lw $v1, 0x6d0($s0)
/* 188F64 8025A684 00021080 */ sll $v0, $v0, 2
/* 188F68 8025A688 00431021 */ addu $v0, $v0, $v1
/* 188F6C 8025A68C 8C430000 */ lw $v1, ($v0)
/* 188F70 8025A690 00061140 */ sll $v0, $a2, 5
/* 188F74 8025A694 10600009 */ beqz $v1, .L8025A6BC
/* 188F78 8025A698 02022821 */ addu $a1, $s0, $v0
/* 188F7C 8025A69C 0000202D */ daddu $a0, $zero, $zero
.L8025A6A0:
/* 188F80 8025A6A0 94620000 */ lhu $v0, ($v1)
/* 188F84 8025A6A4 24630002 */ addiu $v1, $v1, 2
/* 188F88 8025A6A8 24840001 */ addiu $a0, $a0, 1
/* 188F8C 8025A6AC A4A20000 */ sh $v0, ($a1)
/* 188F90 8025A6B0 28820010 */ slti $v0, $a0, 0x10
/* 188F94 8025A6B4 1440FFFA */ bnez $v0, .L8025A6A0
/* 188F98 8025A6B8 24A50002 */ addiu $a1, $a1, 2
.L8025A6BC:
/* 188F9C 8025A6BC 24C60001 */ addiu $a2, $a2, 1
/* 188FA0 8025A6C0 820206CC */ lb $v0, 0x6cc($s0)
/* 188FA4 8025A6C4 920306CC */ lbu $v1, 0x6cc($s0)
/* 188FA8 8025A6C8 00C2102A */ slt $v0, $a2, $v0
/* 188FAC 8025A6CC 1440FFEA */ bnez $v0, .L8025A678
/* 188FB0 8025A6D0 00031600 */ sll $v0, $v1, 0x18
.L8025A6D4:
/* 188FB4 8025A6D4 820206CD */ lb $v0, 0x6cd($s0)
/* 188FB8 8025A6D8 1840000A */ blez $v0, .L8025A704
/* 188FBC 8025A6DC 0000302D */ daddu $a2, $zero, $zero
/* 188FC0 8025A6E0 0200202D */ daddu $a0, $s0, $zero
/* 188FC4 8025A6E4 0200182D */ daddu $v1, $s0, $zero
.L8025A6E8:
/* 188FC8 8025A6E8 AC6406D4 */ sw $a0, 0x6d4($v1)
/* 188FCC 8025A6EC 24840020 */ addiu $a0, $a0, 0x20
/* 188FD0 8025A6F0 820206CD */ lb $v0, 0x6cd($s0)
/* 188FD4 8025A6F4 24C60001 */ addiu $a2, $a2, 1
/* 188FD8 8025A6F8 00C2102A */ slt $v0, $a2, $v0
/* 188FDC 8025A6FC 1440FFFA */ bnez $v0, .L8025A6E8
/* 188FE0 8025A700 24630004 */ addiu $v1, $v1, 4
.L8025A704:
/* 188FE4 8025A704 16400006 */ bnez $s2, .L8025A720
/* 188FE8 8025A708 0220202D */ daddu $a0, $s1, $zero
/* 188FEC 8025A70C 0260282D */ daddu $a1, $s3, $zero
/* 188FF0 8025A710 0C096657 */ jal func_8025995C
/* 188FF4 8025A714 0280302D */ daddu $a2, $s4, $zero
/* 188FF8 8025A718 080969CB */ j .L8025A72C
/* 188FFC 8025A71C 00000000 */ nop
.L8025A720:
/* 189000 8025A720 0260282D */ daddu $a1, $s3, $zero
/* 189004 8025A724 0C0965B0 */ jal func_802596C0
/* 189008 8025A728 0280302D */ daddu $a2, $s4, $zero
.L8025A72C:
/* 18900C 8025A72C 8FBF0024 */ lw $ra, 0x24($sp)
/* 189010 8025A730 8FB40020 */ lw $s4, 0x20($sp)
/* 189014 8025A734 8FB3001C */ lw $s3, 0x1c($sp)
/* 189018 8025A738 8FB20018 */ lw $s2, 0x18($sp)
/* 18901C 8025A73C 8FB10014 */ lw $s1, 0x14($sp)
/* 189020 8025A740 8FB00010 */ lw $s0, 0x10($sp)
/* 189024 8025A744 03E00008 */ jr $ra
/* 189028 8025A748 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -1,234 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8025A74C
/* 18902C 8025A74C 27BDFFD0 */ addiu $sp, $sp, -0x30
/* 189030 8025A750 AFB40020 */ sw $s4, 0x20($sp)
/* 189034 8025A754 0080A02D */ daddu $s4, $a0, $zero
/* 189038 8025A758 AFB10014 */ sw $s1, 0x14($sp)
/* 18903C 8025A75C 00A0882D */ daddu $s1, $a1, $zero
/* 189040 8025A760 AFB20018 */ sw $s2, 0x18($sp)
/* 189044 8025A764 00C0902D */ daddu $s2, $a2, $zero
/* 189048 8025A768 AFBF0028 */ sw $ra, 0x28($sp)
/* 18904C 8025A76C AFB50024 */ sw $s5, 0x24($sp)
/* 189050 8025A770 AFB3001C */ sw $s3, 0x1c($sp)
/* 189054 8025A774 AFB00010 */ sw $s0, 0x10($sp)
/* 189058 8025A778 8E3000C0 */ lw $s0, 0xc0($s1)
/* 18905C 8025A77C 820206C1 */ lb $v0, 0x6c1($s0)
/* 189060 8025A780 8FB50040 */ lw $s5, 0x40($sp)
/* 189064 8025A784 10400032 */ beqz $v0, .L8025A850
/* 189068 8025A788 00E0982D */ daddu $s3, $a3, $zero
/* 18906C 8025A78C 16800017 */ bnez $s4, .L8025A7EC
/* 189070 8025A790 00000000 */ nop
/* 189074 8025A794 0C0B7830 */ jal spr_get_player_palettes
/* 189078 8025A798 96240088 */ lhu $a0, 0x88($s1)
/* 18907C 8025A79C AE0206D0 */ sw $v0, 0x6d0($s0)
/* 189080 8025A7A0 0040202D */ daddu $a0, $v0, $zero
/* 189084 8025A7A4 A20006CD */ sb $zero, 0x6cd($s0)
/* 189088 8025A7A8 8C830000 */ lw $v1, ($a0)
/* 18908C 8025A7AC 2402FFFF */ addiu $v0, $zero, -1
/* 189090 8025A7B0 50620023 */ beql $v1, $v0, .L8025A840
/* 189094 8025A7B4 2402000A */ addiu $v0, $zero, 0xa
/* 189098 8025A7B8 0080182D */ daddu $v1, $a0, $zero
/* 18909C 8025A7BC 0040202D */ daddu $a0, $v0, $zero
.L8025A7C0:
/* 1890A0 8025A7C0 920206CD */ lbu $v0, 0x6cd($s0)
/* 1890A4 8025A7C4 24420001 */ addiu $v0, $v0, 1
/* 1890A8 8025A7C8 A20206CD */ sb $v0, 0x6cd($s0)
/* 1890AC 8025A7CC 00021600 */ sll $v0, $v0, 0x18
/* 1890B0 8025A7D0 00021583 */ sra $v0, $v0, 0x16
/* 1890B4 8025A7D4 00431021 */ addu $v0, $v0, $v1
/* 1890B8 8025A7D8 8C420000 */ lw $v0, ($v0)
/* 1890BC 8025A7DC 1444FFF8 */ bne $v0, $a0, .L8025A7C0
/* 1890C0 8025A7E0 2402000A */ addiu $v0, $zero, 0xa
/* 1890C4 8025A7E4 08096A11 */ j .L8025A844
/* 1890C8 8025A7E8 A20006C2 */ sb $zero, 0x6c2($s0)
.L8025A7EC:
/* 1890CC 8025A7EC 96240088 */ lhu $a0, 0x88($s1)
/* 1890D0 8025A7F0 0C0B7A90 */ jal spr_get_npc_palettes
/* 1890D4 8025A7F4 00000000 */ nop
/* 1890D8 8025A7F8 AE0206D0 */ sw $v0, 0x6d0($s0)
/* 1890DC 8025A7FC 0040202D */ daddu $a0, $v0, $zero
/* 1890E0 8025A800 A20006CD */ sb $zero, 0x6cd($s0)
/* 1890E4 8025A804 8C830000 */ lw $v1, ($a0)
/* 1890E8 8025A808 2402FFFF */ addiu $v0, $zero, -1
/* 1890EC 8025A80C 5062000C */ beql $v1, $v0, .L8025A840
/* 1890F0 8025A810 2402000A */ addiu $v0, $zero, 0xa
/* 1890F4 8025A814 0080182D */ daddu $v1, $a0, $zero
/* 1890F8 8025A818 0040202D */ daddu $a0, $v0, $zero
.L8025A81C:
/* 1890FC 8025A81C 920206CD */ lbu $v0, 0x6cd($s0)
/* 189100 8025A820 24420001 */ addiu $v0, $v0, 1
/* 189104 8025A824 A20206CD */ sb $v0, 0x6cd($s0)
/* 189108 8025A828 00021600 */ sll $v0, $v0, 0x18
/* 18910C 8025A82C 00021583 */ sra $v0, $v0, 0x16
/* 189110 8025A830 00431021 */ addu $v0, $v0, $v1
/* 189114 8025A834 8C420000 */ lw $v0, ($v0)
/* 189118 8025A838 1444FFF8 */ bne $v0, $a0, .L8025A81C
/* 18911C 8025A83C 2402000A */ addiu $v0, $zero, 0xa
.L8025A840:
/* 189120 8025A840 A20006C2 */ sb $zero, 0x6c2($s0)
.L8025A844:
/* 189124 8025A844 A60006C8 */ sh $zero, 0x6c8($s0)
/* 189128 8025A848 A60206CA */ sh $v0, 0x6ca($s0)
/* 18912C 8025A84C A20006C1 */ sb $zero, 0x6c1($s0)
.L8025A850:
/* 189130 8025A850 820206CD */ lb $v0, 0x6cd($s0)
/* 189134 8025A854 1840002F */ blez $v0, .L8025A914
/* 189138 8025A858 0000382D */ daddu $a3, $zero, $zero
.L8025A85C:
/* 18913C 8025A85C 8E0206D0 */ lw $v0, 0x6d0($s0)
/* 189140 8025A860 00071880 */ sll $v1, $a3, 2
/* 189144 8025A864 00621821 */ addu $v1, $v1, $v0
/* 189148 8025A868 00071140 */ sll $v0, $a3, 5
/* 18914C 8025A86C 8C660000 */ lw $a2, ($v1)
/* 189150 8025A870 10C00022 */ beqz $a2, .L8025A8FC
/* 189154 8025A874 02025021 */ addu $t2, $s0, $v0
/* 189158 8025A878 0000482D */ daddu $t1, $zero, $zero
.L8025A87C:
/* 18915C 8025A87C 94C30000 */ lhu $v1, ($a2)
/* 189160 8025A880 90C20001 */ lbu $v0, 1($a2)
/* 189164 8025A884 24C60002 */ addiu $a2, $a2, 2
/* 189168 8025A888 304B0001 */ andi $t3, $v0, 1
/* 18916C 8025A88C 000312C2 */ srl $v0, $v1, 0xb
/* 189170 8025A890 24450004 */ addiu $a1, $v0, 4
/* 189174 8025A894 00031182 */ srl $v0, $v1, 6
/* 189178 8025A898 3044001F */ andi $a0, $v0, 0x1f
/* 18917C 8025A89C 00031842 */ srl $v1, $v1, 1
/* 189180 8025A8A0 2CA20020 */ sltiu $v0, $a1, 0x20
/* 189184 8025A8A4 14400002 */ bnez $v0, .L8025A8B0
/* 189188 8025A8A8 3068001F */ andi $t0, $v1, 0x1f
/* 18918C 8025A8AC 2405001F */ addiu $a1, $zero, 0x1f
.L8025A8B0:
/* 189190 8025A8B0 24830004 */ addiu $v1, $a0, 4
/* 189194 8025A8B4 2C620020 */ sltiu $v0, $v1, 0x20
/* 189198 8025A8B8 50400001 */ beql $v0, $zero, .L8025A8C0
/* 18919C 8025A8BC 2403001F */ addiu $v1, $zero, 0x1f
.L8025A8C0:
/* 1891A0 8025A8C0 25040004 */ addiu $a0, $t0, 4
/* 1891A4 8025A8C4 2C820020 */ sltiu $v0, $a0, 0x20
/* 1891A8 8025A8C8 50400001 */ beql $v0, $zero, .L8025A8D0
/* 1891AC 8025A8CC 2404001F */ addiu $a0, $zero, 0x1f
.L8025A8D0:
/* 1891B0 8025A8D0 000512C0 */ sll $v0, $a1, 0xb
/* 1891B4 8025A8D4 00031980 */ sll $v1, $v1, 6
/* 1891B8 8025A8D8 00431025 */ or $v0, $v0, $v1
/* 1891BC 8025A8DC 00041840 */ sll $v1, $a0, 1
/* 1891C0 8025A8E0 00431025 */ or $v0, $v0, $v1
/* 1891C4 8025A8E4 01621025 */ or $v0, $t3, $v0
/* 1891C8 8025A8E8 A5420000 */ sh $v0, ($t2)
/* 1891CC 8025A8EC 25290001 */ addiu $t1, $t1, 1
/* 1891D0 8025A8F0 29220010 */ slti $v0, $t1, 0x10
/* 1891D4 8025A8F4 1440FFE1 */ bnez $v0, .L8025A87C
/* 1891D8 8025A8F8 254A0002 */ addiu $t2, $t2, 2
.L8025A8FC:
/* 1891DC 8025A8FC 820206CD */ lb $v0, 0x6cd($s0)
/* 1891E0 8025A900 24E70001 */ addiu $a3, $a3, 1
/* 1891E4 8025A904 00E2102A */ slt $v0, $a3, $v0
/* 1891E8 8025A908 1440FFD4 */ bnez $v0, .L8025A85C
/* 1891EC 8025A90C 00000000 */ nop
/* 1891F0 8025A910 820206CD */ lb $v0, 0x6cd($s0)
.L8025A914:
/* 1891F4 8025A914 1840000A */ blez $v0, .L8025A940
/* 1891F8 8025A918 0000382D */ daddu $a3, $zero, $zero
/* 1891FC 8025A91C 0200202D */ daddu $a0, $s0, $zero
/* 189200 8025A920 0200182D */ daddu $v1, $s0, $zero
.L8025A924:
/* 189204 8025A924 AC6406D4 */ sw $a0, 0x6d4($v1)
/* 189208 8025A928 24840020 */ addiu $a0, $a0, 0x20
/* 18920C 8025A92C 820206CD */ lb $v0, 0x6cd($s0)
/* 189210 8025A930 24E70001 */ addiu $a3, $a3, 1
/* 189214 8025A934 00E2102A */ slt $v0, $a3, $v0
/* 189218 8025A938 1440FFFA */ bnez $v0, .L8025A924
/* 18921C 8025A93C 24630004 */ addiu $v1, $v1, 4
.L8025A940:
/* 189220 8025A940 820306C2 */ lb $v1, 0x6c2($s0)
/* 189224 8025A944 28620002 */ slti $v0, $v1, 2
/* 189228 8025A948 10400044 */ beqz $v0, .L8025AA5C
/* 18922C 8025A94C 00000000 */ nop
/* 189230 8025A950 04600042 */ bltz $v1, .L8025AA5C
/* 189234 8025A954 00000000 */ nop
/* 189238 8025A958 860206C8 */ lh $v0, 0x6c8($s0)
/* 18923C 8025A95C 1C400010 */ bgtz $v0, .L8025A9A0
/* 189240 8025A960 240300FF */ addiu $v1, $zero, 0xff
/* 189244 8025A964 04420001 */ bltzl $v0, .L8025A96C
/* 189248 8025A968 00021023 */ negu $v0, $v0
.L8025A96C:
/* 18924C 8025A96C 00021040 */ sll $v0, $v0, 1
/* 189250 8025A970 3C018028 */ lui $at, %hi(D_802840DC)
/* 189254 8025A974 00220821 */ addu $at, $at, $v0
/* 189258 8025A978 942240DC */ lhu $v0, %lo(D_802840DC)($at)
/* 18925C 8025A97C A622006A */ sh $v0, 0x6a($s1)
/* 189260 8025A980 00021400 */ sll $v0, $v0, 0x10
/* 189264 8025A984 00021403 */ sra $v0, $v0, 0x10
/* 189268 8025A988 14430005 */ bne $v0, $v1, .L8025A9A0
/* 18926C 8025A98C 2404003C */ addiu $a0, $zero, 0x3c
/* 189270 8025A990 0C00A67F */ jal rand_int
/* 189274 8025A994 A620006A */ sh $zero, 0x6a($s1)
/* 189278 8025A998 2442001E */ addiu $v0, $v0, 0x1e
/* 18927C 8025A99C A60206C8 */ sh $v0, 0x6c8($s0)
.L8025A9A0:
/* 189280 8025A9A0 16A00004 */ bnez $s5, .L8025A9B4
/* 189284 8025A9A4 00000000 */ nop
/* 189288 8025A9A8 960206C8 */ lhu $v0, 0x6c8($s0)
/* 18928C 8025A9AC 2442FFFF */ addiu $v0, $v0, -1
/* 189290 8025A9B0 A60206C8 */ sh $v0, 0x6c8($s0)
.L8025A9B4:
/* 189294 8025A9B4 860306CA */ lh $v1, 0x6ca($s0)
/* 189298 8025A9B8 2402000C */ addiu $v0, $zero, 0xc
/* 18929C 8025A9BC 1062000C */ beq $v1, $v0, .L8025A9F0
/* 1892A0 8025A9C0 2862000D */ slti $v0, $v1, 0xd
/* 1892A4 8025A9C4 10400005 */ beqz $v0, .L8025A9DC
/* 1892A8 8025A9C8 2402000A */ addiu $v0, $zero, 0xa
/* 1892AC 8025A9CC 10620008 */ beq $v1, $v0, .L8025A9F0
/* 1892B0 8025A9D0 00000000 */ nop
/* 1892B4 8025A9D4 08096A88 */ j .L8025AA20
/* 1892B8 8025A9D8 00000000 */ nop
.L8025A9DC:
/* 1892BC 8025A9DC 2402000D */ addiu $v0, $zero, 0xd
/* 1892C0 8025A9E0 5062000F */ beql $v1, $v0, .L8025AA20
/* 1892C4 8025A9E4 A60006CA */ sh $zero, 0x6ca($s0)
/* 1892C8 8025A9E8 08096A88 */ j .L8025AA20
/* 1892CC 8025A9EC 00000000 */ nop
.L8025A9F0:
/* 1892D0 8025A9F0 16800006 */ bnez $s4, .L8025AA0C
/* 1892D4 8025A9F4 0220202D */ daddu $a0, $s1, $zero
/* 1892D8 8025A9F8 0240282D */ daddu $a1, $s2, $zero
/* 1892DC 8025A9FC 0C096657 */ jal func_8025995C
/* 1892E0 8025AA00 0260302D */ daddu $a2, $s3, $zero
/* 1892E4 8025AA04 08096A92 */ j .L8025AA48
/* 1892E8 8025AA08 00000000 */ nop
.L8025AA0C:
/* 1892EC 8025AA0C 0240282D */ daddu $a1, $s2, $zero
/* 1892F0 8025AA10 0C0965B0 */ jal func_802596C0
/* 1892F4 8025AA14 0260302D */ daddu $a2, $s3, $zero
/* 1892F8 8025AA18 08096A92 */ j .L8025AA48
/* 1892FC 8025AA1C 00000000 */ nop
.L8025AA20:
/* 189300 8025AA20 16800006 */ bnez $s4, .L8025AA3C
/* 189304 8025AA24 0220202D */ daddu $a0, $s1, $zero
/* 189308 8025AA28 0240282D */ daddu $a1, $s2, $zero
/* 18930C 8025AA2C 0C0965EC */ jal func_802597B0
/* 189310 8025AA30 0260302D */ daddu $a2, $s3, $zero
/* 189314 8025AA34 08096A92 */ j .L8025AA48
/* 189318 8025AA38 00000000 */ nop
.L8025AA3C:
/* 18931C 8025AA3C 0240282D */ daddu $a1, $s2, $zero
/* 189320 8025AA40 0C096543 */ jal func_8025950C
/* 189324 8025AA44 0260302D */ daddu $a2, $s3, $zero
.L8025AA48:
/* 189328 8025AA48 16A00004 */ bnez $s5, .L8025AA5C
/* 18932C 8025AA4C 00000000 */ nop
/* 189330 8025AA50 960206CA */ lhu $v0, 0x6ca($s0)
/* 189334 8025AA54 24420001 */ addiu $v0, $v0, 1
/* 189338 8025AA58 A60206CA */ sh $v0, 0x6ca($s0)
.L8025AA5C:
/* 18933C 8025AA5C 8FBF0028 */ lw $ra, 0x28($sp)
/* 189340 8025AA60 8FB50024 */ lw $s5, 0x24($sp)
/* 189344 8025AA64 8FB40020 */ lw $s4, 0x20($sp)
/* 189348 8025AA68 8FB3001C */ lw $s3, 0x1c($sp)
/* 18934C 8025AA6C 8FB20018 */ lw $s2, 0x18($sp)
/* 189350 8025AA70 8FB10014 */ lw $s1, 0x14($sp)
/* 189354 8025AA74 8FB00010 */ lw $s0, 0x10($sp)
/* 189358 8025AA78 03E00008 */ jr $ra
/* 18935C 8025AA7C 27BD0030 */ addiu $sp, $sp, 0x30

View File

@ -1,232 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.section .rodata
dlabel D_8029D408
.double 0.8
dlabel D_8029D410
.double 0.6
dlabel D_8029D418
.double 0.1
.section .text
glabel func_8025AA80
/* 189360 8025AA80 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 189364 8025AA84 AFB20018 */ sw $s2, 0x18($sp)
/* 189368 8025AA88 0080902D */ daddu $s2, $a0, $zero
/* 18936C 8025AA8C AFB10014 */ sw $s1, 0x14($sp)
/* 189370 8025AA90 00A0882D */ daddu $s1, $a1, $zero
/* 189374 8025AA94 AFBF0024 */ sw $ra, 0x24($sp)
/* 189378 8025AA98 AFB40020 */ sw $s4, 0x20($sp)
/* 18937C 8025AA9C AFB3001C */ sw $s3, 0x1c($sp)
/* 189380 8025AAA0 AFB00010 */ sw $s0, 0x10($sp)
/* 189384 8025AAA4 8E3000C0 */ lw $s0, 0xc0($s1)
/* 189388 8025AAA8 00C0982D */ daddu $s3, $a2, $zero
/* 18938C 8025AAAC 820206C1 */ lb $v0, 0x6c1($s0)
/* 189390 8025AAB0 10400032 */ beqz $v0, .L8025AB7C
/* 189394 8025AAB4 00E0A02D */ daddu $s4, $a3, $zero
/* 189398 8025AAB8 16400017 */ bnez $s2, .L8025AB18
/* 18939C 8025AABC 00000000 */ nop
/* 1893A0 8025AAC0 0C0B7830 */ jal spr_get_player_palettes
/* 1893A4 8025AAC4 96240088 */ lhu $a0, 0x88($s1)
/* 1893A8 8025AAC8 AE0206D0 */ sw $v0, 0x6d0($s0)
/* 1893AC 8025AACC 0040202D */ daddu $a0, $v0, $zero
/* 1893B0 8025AAD0 A20006CD */ sb $zero, 0x6cd($s0)
/* 1893B4 8025AAD4 8C830000 */ lw $v1, ($a0)
/* 1893B8 8025AAD8 2402FFFF */ addiu $v0, $zero, -1
/* 1893BC 8025AADC 50620024 */ beql $v1, $v0, .L8025AB70
/* 1893C0 8025AAE0 A20006C2 */ sb $zero, 0x6c2($s0)
/* 1893C4 8025AAE4 0080182D */ daddu $v1, $a0, $zero
/* 1893C8 8025AAE8 0040202D */ daddu $a0, $v0, $zero
.L8025AAEC:
/* 1893CC 8025AAEC 920206CD */ lbu $v0, 0x6cd($s0)
/* 1893D0 8025AAF0 24420001 */ addiu $v0, $v0, 1
/* 1893D4 8025AAF4 A20206CD */ sb $v0, 0x6cd($s0)
/* 1893D8 8025AAF8 00021600 */ sll $v0, $v0, 0x18
/* 1893DC 8025AAFC 00021583 */ sra $v0, $v0, 0x16
/* 1893E0 8025AB00 00431021 */ addu $v0, $v0, $v1
/* 1893E4 8025AB04 8C420000 */ lw $v0, ($v0)
/* 1893E8 8025AB08 1444FFF8 */ bne $v0, $a0, .L8025AAEC
/* 1893EC 8025AB0C 00000000 */ nop
/* 1893F0 8025AB10 08096ADC */ j .L8025AB70
/* 1893F4 8025AB14 A20006C2 */ sb $zero, 0x6c2($s0)
.L8025AB18:
/* 1893F8 8025AB18 96240088 */ lhu $a0, 0x88($s1)
/* 1893FC 8025AB1C 0C0B7A90 */ jal spr_get_npc_palettes
/* 189400 8025AB20 00000000 */ nop
/* 189404 8025AB24 AE0206D0 */ sw $v0, 0x6d0($s0)
/* 189408 8025AB28 0040202D */ daddu $a0, $v0, $zero
/* 18940C 8025AB2C A20006CD */ sb $zero, 0x6cd($s0)
/* 189410 8025AB30 8C830000 */ lw $v1, ($a0)
/* 189414 8025AB34 2402FFFF */ addiu $v0, $zero, -1
/* 189418 8025AB38 5062000D */ beql $v1, $v0, .L8025AB70
/* 18941C 8025AB3C A20006C2 */ sb $zero, 0x6c2($s0)
/* 189420 8025AB40 0080182D */ daddu $v1, $a0, $zero
/* 189424 8025AB44 0040202D */ daddu $a0, $v0, $zero
.L8025AB48:
/* 189428 8025AB48 920206CD */ lbu $v0, 0x6cd($s0)
/* 18942C 8025AB4C 24420001 */ addiu $v0, $v0, 1
/* 189430 8025AB50 A20206CD */ sb $v0, 0x6cd($s0)
/* 189434 8025AB54 00021600 */ sll $v0, $v0, 0x18
/* 189438 8025AB58 00021583 */ sra $v0, $v0, 0x16
/* 18943C 8025AB5C 00431021 */ addu $v0, $v0, $v1
/* 189440 8025AB60 8C420000 */ lw $v0, ($v0)
/* 189444 8025AB64 1444FFF8 */ bne $v0, $a0, .L8025AB48
/* 189448 8025AB68 00000000 */ nop
/* 18944C 8025AB6C A20006C2 */ sb $zero, 0x6c2($s0)
.L8025AB70:
/* 189450 8025AB70 A60006CA */ sh $zero, 0x6ca($s0)
/* 189454 8025AB74 A20006C2 */ sb $zero, 0x6c2($s0)
/* 189458 8025AB78 A20006C1 */ sb $zero, 0x6c1($s0)
.L8025AB7C:
/* 18945C 8025AB7C 820206CD */ lb $v0, 0x6cd($s0)
/* 189460 8025AB80 18400066 */ blez $v0, .L8025AD1C
/* 189464 8025AB84 0000402D */ daddu $t0, $zero, $zero
/* 189468 8025AB88 3C0B8000 */ lui $t3, 0x8000
/* 18946C 8025AB8C 3C01802A */ lui $at, %hi(D_8029D408)
/* 189470 8025AB90 D428D408 */ ldc1 $f8, %lo(D_8029D408)($at)
/* 189474 8025AB94 3C0141E0 */ lui $at, 0x41e0
/* 189478 8025AB98 44811800 */ mtc1 $at, $f3
/* 18947C 8025AB9C 44801000 */ mtc1 $zero, $f2
/* 189480 8025ABA0 3C01802A */ lui $at, %hi(D_8029D410)
/* 189484 8025ABA4 D426D410 */ ldc1 $f6, %lo(D_8029D410)($at)
/* 189488 8025ABA8 3C01802A */ lui $at, %hi(D_8029D418)
/* 18948C 8025ABAC D424D418 */ ldc1 $f4, %lo(D_8029D418)($at)
.L8025ABB0:
/* 189490 8025ABB0 8E0206D0 */ lw $v0, 0x6d0($s0)
/* 189494 8025ABB4 00081880 */ sll $v1, $t0, 2
/* 189498 8025ABB8 00621821 */ addu $v1, $v1, $v0
/* 18949C 8025ABBC 00081140 */ sll $v0, $t0, 5
/* 1894A0 8025ABC0 8C670000 */ lw $a3, ($v1)
/* 1894A4 8025ABC4 10E0004F */ beqz $a3, .L8025AD04
/* 1894A8 8025ABC8 02025021 */ addu $t2, $s0, $v0
/* 1894AC 8025ABCC 0000482D */ daddu $t1, $zero, $zero
.L8025ABD0:
/* 1894B0 8025ABD0 94E30000 */ lhu $v1, ($a3)
/* 1894B4 8025ABD4 000312C2 */ srl $v0, $v1, 0xb
/* 1894B8 8025ABD8 44820000 */ mtc1 $v0, $f0
/* 1894BC 8025ABDC 00000000 */ nop
/* 1894C0 8025ABE0 46800021 */ cvt.d.w $f0, $f0
/* 1894C4 8025ABE4 46280002 */ mul.d $f0, $f0, $f8
/* 1894C8 8025ABE8 00000000 */ nop
/* 1894CC 8025ABEC 90E40001 */ lbu $a0, 1($a3)
/* 1894D0 8025ABF0 24E70002 */ addiu $a3, $a3, 2
/* 1894D4 8025ABF4 00031182 */ srl $v0, $v1, 6
/* 1894D8 8025ABF8 3042001F */ andi $v0, $v0, 0x1f
/* 1894DC 8025ABFC 00031842 */ srl $v1, $v1, 1
/* 1894E0 8025AC00 3066001F */ andi $a2, $v1, 0x1f
/* 1894E4 8025AC04 4620103E */ c.le.d $f2, $f0
/* 1894E8 8025AC08 00000000 */ nop
/* 1894EC 8025AC0C 45010005 */ bc1t .L8025AC24
/* 1894F0 8025AC10 30840001 */ andi $a0, $a0, 1
/* 1894F4 8025AC14 4620028D */ trunc.w.d $f10, $f0
/* 1894F8 8025AC18 44035000 */ mfc1 $v1, $f10
/* 1894FC 8025AC1C 08096B0F */ j .L8025AC3C
/* 189500 8025AC20 304200FF */ andi $v0, $v0, 0xff
.L8025AC24:
/* 189504 8025AC24 46220001 */ sub.d $f0, $f0, $f2
/* 189508 8025AC28 4620028D */ trunc.w.d $f10, $f0
/* 18950C 8025AC2C 44035000 */ mfc1 $v1, $f10
/* 189510 8025AC30 00000000 */ nop
/* 189514 8025AC34 006B1825 */ or $v1, $v1, $t3
/* 189518 8025AC38 304200FF */ andi $v0, $v0, 0xff
.L8025AC3C:
/* 18951C 8025AC3C 44820000 */ mtc1 $v0, $f0
/* 189520 8025AC40 00000000 */ nop
/* 189524 8025AC44 46800021 */ cvt.d.w $f0, $f0
/* 189528 8025AC48 46260002 */ mul.d $f0, $f0, $f6
/* 18952C 8025AC4C 00000000 */ nop
/* 189530 8025AC50 4620103E */ c.le.d $f2, $f0
/* 189534 8025AC54 00000000 */ nop
/* 189538 8025AC58 45030005 */ bc1tl .L8025AC70
/* 18953C 8025AC5C 46220001 */ sub.d $f0, $f0, $f2
/* 189540 8025AC60 4620028D */ trunc.w.d $f10, $f0
/* 189544 8025AC64 44055000 */ mfc1 $a1, $f10
/* 189548 8025AC68 08096B21 */ j .L8025AC84
/* 18954C 8025AC6C 30C200FF */ andi $v0, $a2, 0xff
.L8025AC70:
/* 189550 8025AC70 4620028D */ trunc.w.d $f10, $f0
/* 189554 8025AC74 44055000 */ mfc1 $a1, $f10
/* 189558 8025AC78 00000000 */ nop
/* 18955C 8025AC7C 00AB2825 */ or $a1, $a1, $t3
/* 189560 8025AC80 30C200FF */ andi $v0, $a2, 0xff
.L8025AC84:
/* 189564 8025AC84 44820000 */ mtc1 $v0, $f0
/* 189568 8025AC88 00000000 */ nop
/* 18956C 8025AC8C 46800021 */ cvt.d.w $f0, $f0
/* 189570 8025AC90 46240002 */ mul.d $f0, $f0, $f4
/* 189574 8025AC94 00000000 */ nop
/* 189578 8025AC98 4620103E */ c.le.d $f2, $f0
/* 18957C 8025AC9C 00000000 */ nop
/* 189580 8025ACA0 45010005 */ bc1t .L8025ACB8
/* 189584 8025ACA4 00A0102D */ daddu $v0, $a1, $zero
/* 189588 8025ACA8 4620028D */ trunc.w.d $f10, $f0
/* 18958C 8025ACAC 44055000 */ mfc1 $a1, $f10
/* 189590 8025ACB0 08096B34 */ j .L8025ACD0
/* 189594 8025ACB4 306300FF */ andi $v1, $v1, 0xff
.L8025ACB8:
/* 189598 8025ACB8 46220001 */ sub.d $f0, $f0, $f2
/* 18959C 8025ACBC 4620028D */ trunc.w.d $f10, $f0
/* 1895A0 8025ACC0 44055000 */ mfc1 $a1, $f10
/* 1895A4 8025ACC4 00000000 */ nop
/* 1895A8 8025ACC8 00AB2825 */ or $a1, $a1, $t3
/* 1895AC 8025ACCC 306300FF */ andi $v1, $v1, 0xff
.L8025ACD0:
/* 1895B0 8025ACD0 00031AC0 */ sll $v1, $v1, 0xb
/* 1895B4 8025ACD4 304200FF */ andi $v0, $v0, 0xff
/* 1895B8 8025ACD8 00021180 */ sll $v0, $v0, 6
/* 1895BC 8025ACDC 00621825 */ or $v1, $v1, $v0
/* 1895C0 8025ACE0 30A200FF */ andi $v0, $a1, 0xff
/* 1895C4 8025ACE4 00021040 */ sll $v0, $v0, 1
/* 1895C8 8025ACE8 00621825 */ or $v1, $v1, $v0
/* 1895CC 8025ACEC 00831825 */ or $v1, $a0, $v1
/* 1895D0 8025ACF0 A5430000 */ sh $v1, ($t2)
/* 1895D4 8025ACF4 25290001 */ addiu $t1, $t1, 1
/* 1895D8 8025ACF8 29220010 */ slti $v0, $t1, 0x10
/* 1895DC 8025ACFC 1440FFB4 */ bnez $v0, .L8025ABD0
/* 1895E0 8025AD00 254A0002 */ addiu $t2, $t2, 2
.L8025AD04:
/* 1895E4 8025AD04 820206CD */ lb $v0, 0x6cd($s0)
/* 1895E8 8025AD08 25080001 */ addiu $t0, $t0, 1
/* 1895EC 8025AD0C 0102102A */ slt $v0, $t0, $v0
/* 1895F0 8025AD10 1440FFA7 */ bnez $v0, .L8025ABB0
/* 1895F4 8025AD14 00000000 */ nop
/* 1895F8 8025AD18 820206CD */ lb $v0, 0x6cd($s0)
.L8025AD1C:
/* 1895FC 8025AD1C 1840000A */ blez $v0, .L8025AD48
/* 189600 8025AD20 0000402D */ daddu $t0, $zero, $zero
/* 189604 8025AD24 0200202D */ daddu $a0, $s0, $zero
/* 189608 8025AD28 0200182D */ daddu $v1, $s0, $zero
.L8025AD2C:
/* 18960C 8025AD2C AC6406D4 */ sw $a0, 0x6d4($v1)
/* 189610 8025AD30 24840020 */ addiu $a0, $a0, 0x20
/* 189614 8025AD34 820206CD */ lb $v0, 0x6cd($s0)
/* 189618 8025AD38 25080001 */ addiu $t0, $t0, 1
/* 18961C 8025AD3C 0102102A */ slt $v0, $t0, $v0
/* 189620 8025AD40 1440FFFA */ bnez $v0, .L8025AD2C
/* 189624 8025AD44 24630004 */ addiu $v1, $v1, 4
.L8025AD48:
/* 189628 8025AD48 16400006 */ bnez $s2, .L8025AD64
/* 18962C 8025AD4C 0220202D */ daddu $a0, $s1, $zero
/* 189630 8025AD50 0260282D */ daddu $a1, $s3, $zero
/* 189634 8025AD54 0C096657 */ jal func_8025995C
/* 189638 8025AD58 0280302D */ daddu $a2, $s4, $zero
/* 18963C 8025AD5C 08096B5C */ j .L8025AD70
/* 189640 8025AD60 00000000 */ nop
.L8025AD64:
/* 189644 8025AD64 0260282D */ daddu $a1, $s3, $zero
/* 189648 8025AD68 0C0965B0 */ jal func_802596C0
/* 18964C 8025AD6C 0280302D */ daddu $a2, $s4, $zero
.L8025AD70:
/* 189650 8025AD70 8FBF0024 */ lw $ra, 0x24($sp)
/* 189654 8025AD74 8FB40020 */ lw $s4, 0x20($sp)
/* 189658 8025AD78 8FB3001C */ lw $s3, 0x1c($sp)
/* 18965C 8025AD7C 8FB20018 */ lw $s2, 0x18($sp)
/* 189660 8025AD80 8FB10014 */ lw $s1, 0x14($sp)
/* 189664 8025AD84 8FB00010 */ lw $s0, 0x10($sp)
/* 189668 8025AD88 03E00008 */ jr $ra
/* 18966C 8025AD8C 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -1,300 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8025AD90
/* 189670 8025AD90 27BDFFD0 */ addiu $sp, $sp, -0x30
/* 189674 8025AD94 AFB20018 */ sw $s2, 0x18($sp)
/* 189678 8025AD98 0080902D */ daddu $s2, $a0, $zero
/* 18967C 8025AD9C AFB10014 */ sw $s1, 0x14($sp)
/* 189680 8025ADA0 00A0882D */ daddu $s1, $a1, $zero
/* 189684 8025ADA4 AFB3001C */ sw $s3, 0x1c($sp)
/* 189688 8025ADA8 00C0982D */ daddu $s3, $a2, $zero
/* 18968C 8025ADAC AFBF0028 */ sw $ra, 0x28($sp)
/* 189690 8025ADB0 AFB50024 */ sw $s5, 0x24($sp)
/* 189694 8025ADB4 AFB40020 */ sw $s4, 0x20($sp)
/* 189698 8025ADB8 AFB00010 */ sw $s0, 0x10($sp)
/* 18969C 8025ADBC 8E3000C0 */ lw $s0, 0xc0($s1)
/* 1896A0 8025ADC0 820206C1 */ lb $v0, 0x6c1($s0)
/* 1896A4 8025ADC4 8FB50040 */ lw $s5, 0x40($sp)
/* 1896A8 8025ADC8 1040004B */ beqz $v0, .L8025AEF8
/* 1896AC 8025ADCC 00E0A02D */ daddu $s4, $a3, $zero
/* 1896B0 8025ADD0 16400016 */ bnez $s2, .L8025AE2C
/* 1896B4 8025ADD4 00000000 */ nop
/* 1896B8 8025ADD8 0C0B7830 */ jal spr_get_player_palettes
/* 1896BC 8025ADDC 96240088 */ lhu $a0, 0x88($s1)
/* 1896C0 8025ADE0 AE0206D0 */ sw $v0, 0x6d0($s0)
/* 1896C4 8025ADE4 0040202D */ daddu $a0, $v0, $zero
/* 1896C8 8025ADE8 A20006CD */ sb $zero, 0x6cd($s0)
/* 1896CC 8025ADEC 8C830000 */ lw $v1, ($a0)
/* 1896D0 8025ADF0 2402FFFF */ addiu $v0, $zero, -1
/* 1896D4 8025ADF4 1062000B */ beq $v1, $v0, .L8025AE24
/* 1896D8 8025ADF8 0080182D */ daddu $v1, $a0, $zero
/* 1896DC 8025ADFC 0040202D */ daddu $a0, $v0, $zero
.L8025AE00:
/* 1896E0 8025AE00 920206CD */ lbu $v0, 0x6cd($s0)
/* 1896E4 8025AE04 24420001 */ addiu $v0, $v0, 1
/* 1896E8 8025AE08 A20206CD */ sb $v0, 0x6cd($s0)
/* 1896EC 8025AE0C 00021600 */ sll $v0, $v0, 0x18
/* 1896F0 8025AE10 00021583 */ sra $v0, $v0, 0x16
/* 1896F4 8025AE14 00431021 */ addu $v0, $v0, $v1
/* 1896F8 8025AE18 8C420000 */ lw $v0, ($v0)
/* 1896FC 8025AE1C 1444FFF8 */ bne $v0, $a0, .L8025AE00
/* 189700 8025AE20 00000000 */ nop
.L8025AE24:
/* 189704 8025AE24 08096BA1 */ j .L8025AE84
/* 189708 8025AE28 24020006 */ addiu $v0, $zero, 6
.L8025AE2C:
/* 18970C 8025AE2C 96240088 */ lhu $a0, 0x88($s1)
/* 189710 8025AE30 0C0B7A90 */ jal spr_get_npc_palettes
/* 189714 8025AE34 00000000 */ nop
/* 189718 8025AE38 AE0206D0 */ sw $v0, 0x6d0($s0)
/* 18971C 8025AE3C 0040202D */ daddu $a0, $v0, $zero
/* 189720 8025AE40 A20006CD */ sb $zero, 0x6cd($s0)
/* 189724 8025AE44 8C830000 */ lw $v1, ($a0)
/* 189728 8025AE48 2402FFFF */ addiu $v0, $zero, -1
/* 18972C 8025AE4C 1062000B */ beq $v1, $v0, .L8025AE7C
/* 189730 8025AE50 0080182D */ daddu $v1, $a0, $zero
/* 189734 8025AE54 0040202D */ daddu $a0, $v0, $zero
.L8025AE58:
/* 189738 8025AE58 920206CD */ lbu $v0, 0x6cd($s0)
/* 18973C 8025AE5C 24420001 */ addiu $v0, $v0, 1
/* 189740 8025AE60 A20206CD */ sb $v0, 0x6cd($s0)
/* 189744 8025AE64 00021600 */ sll $v0, $v0, 0x18
/* 189748 8025AE68 00021583 */ sra $v0, $v0, 0x16
/* 18974C 8025AE6C 00431021 */ addu $v0, $v0, $v1
/* 189750 8025AE70 8C420000 */ lw $v0, ($v0)
/* 189754 8025AE74 1444FFF8 */ bne $v0, $a0, .L8025AE58
/* 189758 8025AE78 00000000 */ nop
.L8025AE7C:
/* 18975C 8025AE7C 0C0B7A9B */ jal spr_get_npc_color_variations
/* 189760 8025AE80 96240088 */ lhu $a0, 0x88($s1)
.L8025AE84:
/* 189764 8025AE84 A20206CC */ sb $v0, 0x6cc($s0)
/* 189768 8025AE88 820206CD */ lb $v0, 0x6cd($s0)
/* 18976C 8025AE8C 18400015 */ blez $v0, .L8025AEE4
/* 189770 8025AE90 0000302D */ daddu $a2, $zero, $zero
.L8025AE94:
/* 189774 8025AE94 8E0206D0 */ lw $v0, 0x6d0($s0)
/* 189778 8025AE98 00061880 */ sll $v1, $a2, 2
/* 18977C 8025AE9C 00621821 */ addu $v1, $v1, $v0
/* 189780 8025AEA0 00061140 */ sll $v0, $a2, 5
/* 189784 8025AEA4 8C630000 */ lw $v1, ($v1)
/* 189788 8025AEA8 10600009 */ beqz $v1, .L8025AED0
/* 18978C 8025AEAC 02022821 */ addu $a1, $s0, $v0
/* 189790 8025AEB0 0000202D */ daddu $a0, $zero, $zero
.L8025AEB4:
/* 189794 8025AEB4 94620000 */ lhu $v0, ($v1)
/* 189798 8025AEB8 24630002 */ addiu $v1, $v1, 2
/* 18979C 8025AEBC 24840001 */ addiu $a0, $a0, 1
/* 1897A0 8025AEC0 A4A20000 */ sh $v0, ($a1)
/* 1897A4 8025AEC4 28820010 */ slti $v0, $a0, 0x10
/* 1897A8 8025AEC8 1440FFFA */ bnez $v0, .L8025AEB4
/* 1897AC 8025AECC 24A50002 */ addiu $a1, $a1, 2
.L8025AED0:
/* 1897B0 8025AED0 820206CD */ lb $v0, 0x6cd($s0)
/* 1897B4 8025AED4 24C60001 */ addiu $a2, $a2, 1
/* 1897B8 8025AED8 00C2102A */ slt $v0, $a2, $v0
/* 1897BC 8025AEDC 1440FFED */ bnez $v0, .L8025AE94
/* 1897C0 8025AEE0 00000000 */ nop
.L8025AEE4:
/* 1897C4 8025AEE4 2402FFFE */ addiu $v0, $zero, -2
/* 1897C8 8025AEE8 A20206C2 */ sb $v0, 0x6c2($s0)
/* 1897CC 8025AEEC A60006CA */ sh $zero, 0x6ca($s0)
/* 1897D0 8025AEF0 A20006C1 */ sb $zero, 0x6c1($s0)
/* 1897D4 8025AEF4 A60006C8 */ sh $zero, 0x6c8($s0)
.L8025AEF8:
/* 1897D8 8025AEF8 16A0001E */ bnez $s5, .L8025AF74
/* 1897DC 8025AEFC 00000000 */ nop
/* 1897E0 8025AF00 860206C8 */ lh $v0, 0x6c8($s0)
/* 1897E4 8025AF04 14400013 */ bnez $v0, .L8025AF54
/* 1897E8 8025AF08 00000000 */ nop
/* 1897EC 8025AF0C 920206C2 */ lbu $v0, 0x6c2($s0)
/* 1897F0 8025AF10 3C048028 */ lui $a0, %hi(D_80284104)
/* 1897F4 8025AF14 24844104 */ addiu $a0, $a0, %lo(D_80284104)
/* 1897F8 8025AF18 24420002 */ addiu $v0, $v0, 2
/* 1897FC 8025AF1C A20206C2 */ sb $v0, 0x6c2($s0)
/* 189800 8025AF20 00021600 */ sll $v0, $v0, 0x18
/* 189804 8025AF24 00021603 */ sra $v0, $v0, 0x18
/* 189808 8025AF28 3C038028 */ lui $v1, %hi(D_80284104)
/* 18980C 8025AF2C 00621821 */ addu $v1, $v1, $v0
/* 189810 8025AF30 90634104 */ lbu $v1, %lo(D_80284104)($v1)
/* 189814 8025AF34 240200FF */ addiu $v0, $zero, 0xff
/* 189818 8025AF38 50620001 */ beql $v1, $v0, .L8025AF40
/* 18981C 8025AF3C A20006C2 */ sb $zero, 0x6c2($s0)
.L8025AF40:
/* 189820 8025AF40 820206C2 */ lb $v0, 0x6c2($s0)
/* 189824 8025AF44 00441021 */ addu $v0, $v0, $a0
/* 189828 8025AF48 90420001 */ lbu $v0, 1($v0)
/* 18982C 8025AF4C 00021042 */ srl $v0, $v0, 1
/* 189830 8025AF50 A60206C8 */ sh $v0, 0x6c8($s0)
.L8025AF54:
/* 189834 8025AF54 820306C2 */ lb $v1, 0x6c2($s0)
/* 189838 8025AF58 960206C8 */ lhu $v0, 0x6c8($s0)
/* 18983C 8025AF5C 3C018028 */ lui $at, %hi(D_80284104)
/* 189840 8025AF60 00230821 */ addu $at, $at, $v1
/* 189844 8025AF64 90234104 */ lbu $v1, %lo(D_80284104)($at)
/* 189848 8025AF68 2442FFFF */ addiu $v0, $v0, -1
/* 18984C 8025AF6C 08096BE1 */ j .L8025AF84
/* 189850 8025AF70 A60206C8 */ sh $v0, 0x6c8($s0)
.L8025AF74:
/* 189854 8025AF74 820206C2 */ lb $v0, 0x6c2($s0)
/* 189858 8025AF78 3C038028 */ lui $v1, %hi(D_80284104)
/* 18985C 8025AF7C 00621821 */ addu $v1, $v1, $v0
/* 189860 8025AF80 90634104 */ lbu $v1, %lo(D_80284104)($v1)
.L8025AF84:
/* 189864 8025AF84 24020001 */ addiu $v0, $zero, 1
/* 189868 8025AF88 10620024 */ beq $v1, $v0, .L8025B01C
/* 18986C 8025AF8C 28620002 */ slti $v0, $v1, 2
/* 189870 8025AF90 10400005 */ beqz $v0, .L8025AFA8
/* 189874 8025AF94 24020002 */ addiu $v0, $zero, 2
/* 189878 8025AF98 10600007 */ beqz $v1, .L8025AFB8
/* 18987C 8025AF9C 00000000 */ nop
/* 189880 8025AFA0 08096C46 */ j .L8025B118
/* 189884 8025AFA4 00000000 */ nop
.L8025AFA8:
/* 189888 8025AFA8 1062003C */ beq $v1, $v0, .L8025B09C
/* 18988C 8025AFAC 00000000 */ nop
/* 189890 8025AFB0 08096C46 */ j .L8025B118
/* 189894 8025AFB4 00000000 */ nop
.L8025AFB8:
/* 189898 8025AFB8 820206CC */ lb $v0, 0x6cc($s0)
/* 18989C 8025AFBC 18400056 */ blez $v0, .L8025B118
/* 1898A0 8025AFC0 0000302D */ daddu $a2, $zero, $zero
.L8025AFC4:
/* 1898A4 8025AFC4 8E0206D0 */ lw $v0, 0x6d0($s0)
/* 1898A8 8025AFC8 00061880 */ sll $v1, $a2, 2
/* 1898AC 8025AFCC 00621821 */ addu $v1, $v1, $v0
/* 1898B0 8025AFD0 00061140 */ sll $v0, $a2, 5
/* 1898B4 8025AFD4 8C630000 */ lw $v1, ($v1)
/* 1898B8 8025AFD8 10600009 */ beqz $v1, .L8025B000
/* 1898BC 8025AFDC 02022821 */ addu $a1, $s0, $v0
/* 1898C0 8025AFE0 0000202D */ daddu $a0, $zero, $zero
.L8025AFE4:
/* 1898C4 8025AFE4 94620000 */ lhu $v0, ($v1)
/* 1898C8 8025AFE8 24630002 */ addiu $v1, $v1, 2
/* 1898CC 8025AFEC 24840001 */ addiu $a0, $a0, 1
/* 1898D0 8025AFF0 A4A20000 */ sh $v0, ($a1)
/* 1898D4 8025AFF4 28820010 */ slti $v0, $a0, 0x10
/* 1898D8 8025AFF8 1440FFFA */ bnez $v0, .L8025AFE4
/* 1898DC 8025AFFC 24A50002 */ addiu $a1, $a1, 2
.L8025B000:
/* 1898E0 8025B000 820206CC */ lb $v0, 0x6cc($s0)
/* 1898E4 8025B004 24C60001 */ addiu $a2, $a2, 1
/* 1898E8 8025B008 00C2102A */ slt $v0, $a2, $v0
/* 1898EC 8025B00C 10400042 */ beqz $v0, .L8025B118
/* 1898F0 8025B010 00000000 */ nop
/* 1898F4 8025B014 08096BF1 */ j .L8025AFC4
/* 1898F8 8025B018 00000000 */ nop
.L8025B01C:
/* 1898FC 8025B01C 820206CC */ lb $v0, 0x6cc($s0)
/* 189900 8025B020 920306CC */ lbu $v1, 0x6cc($s0)
/* 189904 8025B024 1840003C */ blez $v0, .L8025B118
/* 189908 8025B028 0000302D */ daddu $a2, $zero, $zero
/* 18990C 8025B02C 00031E00 */ sll $v1, $v1, 0x18
.L8025B030:
/* 189910 8025B030 00031E03 */ sra $v1, $v1, 0x18
/* 189914 8025B034 00031080 */ sll $v0, $v1, 2
/* 189918 8025B038 00431021 */ addu $v0, $v0, $v1
/* 18991C 8025B03C 00461021 */ addu $v0, $v0, $a2
/* 189920 8025B040 8E0306D0 */ lw $v1, 0x6d0($s0)
/* 189924 8025B044 00021080 */ sll $v0, $v0, 2
/* 189928 8025B048 00431021 */ addu $v0, $v0, $v1
/* 18992C 8025B04C 8C430000 */ lw $v1, ($v0)
/* 189930 8025B050 00061140 */ sll $v0, $a2, 5
/* 189934 8025B054 10600009 */ beqz $v1, .L8025B07C
/* 189938 8025B058 02022821 */ addu $a1, $s0, $v0
/* 18993C 8025B05C 0000202D */ daddu $a0, $zero, $zero
.L8025B060:
/* 189940 8025B060 94620000 */ lhu $v0, ($v1)
/* 189944 8025B064 24630002 */ addiu $v1, $v1, 2
/* 189948 8025B068 24840001 */ addiu $a0, $a0, 1
/* 18994C 8025B06C A4A20000 */ sh $v0, ($a1)
/* 189950 8025B070 28820010 */ slti $v0, $a0, 0x10
/* 189954 8025B074 1440FFFA */ bnez $v0, .L8025B060
/* 189958 8025B078 24A50002 */ addiu $a1, $a1, 2
.L8025B07C:
/* 18995C 8025B07C 24C60001 */ addiu $a2, $a2, 1
/* 189960 8025B080 820206CC */ lb $v0, 0x6cc($s0)
/* 189964 8025B084 920306CC */ lbu $v1, 0x6cc($s0)
/* 189968 8025B088 00C2102A */ slt $v0, $a2, $v0
/* 18996C 8025B08C 5440FFE8 */ bnel $v0, $zero, .L8025B030
/* 189970 8025B090 00031E00 */ sll $v1, $v1, 0x18
/* 189974 8025B094 08096C46 */ j .L8025B118
/* 189978 8025B098 00000000 */ nop
.L8025B09C:
/* 18997C 8025B09C 820206CC */ lb $v0, 0x6cc($s0)
/* 189980 8025B0A0 920306CC */ lbu $v1, 0x6cc($s0)
/* 189984 8025B0A4 1840001C */ blez $v0, .L8025B118
/* 189988 8025B0A8 0000302D */ daddu $a2, $zero, $zero
/* 18998C 8025B0AC 00031E00 */ sll $v1, $v1, 0x18
.L8025B0B0:
/* 189990 8025B0B0 00031E03 */ sra $v1, $v1, 0x18
/* 189994 8025B0B4 00031040 */ sll $v0, $v1, 1
/* 189998 8025B0B8 00431021 */ addu $v0, $v0, $v1
/* 18999C 8025B0BC 00021040 */ sll $v0, $v0, 1
/* 1899A0 8025B0C0 00461021 */ addu $v0, $v0, $a2
/* 1899A4 8025B0C4 8E0306D0 */ lw $v1, 0x6d0($s0)
/* 1899A8 8025B0C8 00021080 */ sll $v0, $v0, 2
/* 1899AC 8025B0CC 00431021 */ addu $v0, $v0, $v1
/* 1899B0 8025B0D0 8C430000 */ lw $v1, ($v0)
/* 1899B4 8025B0D4 00061140 */ sll $v0, $a2, 5
/* 1899B8 8025B0D8 10600009 */ beqz $v1, .L8025B100
/* 1899BC 8025B0DC 02022821 */ addu $a1, $s0, $v0
/* 1899C0 8025B0E0 0000202D */ daddu $a0, $zero, $zero
.L8025B0E4:
/* 1899C4 8025B0E4 94620000 */ lhu $v0, ($v1)
/* 1899C8 8025B0E8 24630002 */ addiu $v1, $v1, 2
/* 1899CC 8025B0EC 24840001 */ addiu $a0, $a0, 1
/* 1899D0 8025B0F0 A4A20000 */ sh $v0, ($a1)
/* 1899D4 8025B0F4 28820010 */ slti $v0, $a0, 0x10
/* 1899D8 8025B0F8 1440FFFA */ bnez $v0, .L8025B0E4
/* 1899DC 8025B0FC 24A50002 */ addiu $a1, $a1, 2
.L8025B100:
/* 1899E0 8025B100 24C60001 */ addiu $a2, $a2, 1
/* 1899E4 8025B104 820206CC */ lb $v0, 0x6cc($s0)
/* 1899E8 8025B108 920306CC */ lbu $v1, 0x6cc($s0)
/* 1899EC 8025B10C 00C2102A */ slt $v0, $a2, $v0
/* 1899F0 8025B110 5440FFE7 */ bnel $v0, $zero, .L8025B0B0
/* 1899F4 8025B114 00031E00 */ sll $v1, $v1, 0x18
.L8025B118:
/* 1899F8 8025B118 820206CD */ lb $v0, 0x6cd($s0)
/* 1899FC 8025B11C 1840000A */ blez $v0, .L8025B148
/* 189A00 8025B120 0000302D */ daddu $a2, $zero, $zero
/* 189A04 8025B124 0200202D */ daddu $a0, $s0, $zero
/* 189A08 8025B128 0200182D */ daddu $v1, $s0, $zero
.L8025B12C:
/* 189A0C 8025B12C AC6406D4 */ sw $a0, 0x6d4($v1)
/* 189A10 8025B130 24840020 */ addiu $a0, $a0, 0x20
/* 189A14 8025B134 820206CD */ lb $v0, 0x6cd($s0)
/* 189A18 8025B138 24C60001 */ addiu $a2, $a2, 1
/* 189A1C 8025B13C 00C2102A */ slt $v0, $a2, $v0
/* 189A20 8025B140 1440FFFA */ bnez $v0, .L8025B12C
/* 189A24 8025B144 24630004 */ addiu $v1, $v1, 4
.L8025B148:
/* 189A28 8025B148 16400006 */ bnez $s2, .L8025B164
/* 189A2C 8025B14C 0220202D */ daddu $a0, $s1, $zero
/* 189A30 8025B150 0260282D */ daddu $a1, $s3, $zero
/* 189A34 8025B154 0C096657 */ jal func_8025995C
/* 189A38 8025B158 0280302D */ daddu $a2, $s4, $zero
/* 189A3C 8025B15C 08096C5C */ j .L8025B170
/* 189A40 8025B160 00000000 */ nop
.L8025B164:
/* 189A44 8025B164 0260282D */ daddu $a1, $s3, $zero
/* 189A48 8025B168 0C0965B0 */ jal func_802596C0
/* 189A4C 8025B16C 0280302D */ daddu $a2, $s4, $zero
.L8025B170:
/* 189A50 8025B170 16A00004 */ bnez $s5, .L8025B184
/* 189A54 8025B174 00000000 */ nop
/* 189A58 8025B178 960206CA */ lhu $v0, 0x6ca($s0)
/* 189A5C 8025B17C 2442FFFF */ addiu $v0, $v0, -1
/* 189A60 8025B180 A60206CA */ sh $v0, 0x6ca($s0)
.L8025B184:
/* 189A64 8025B184 8FBF0028 */ lw $ra, 0x28($sp)
/* 189A68 8025B188 8FB50024 */ lw $s5, 0x24($sp)
/* 189A6C 8025B18C 8FB40020 */ lw $s4, 0x20($sp)
/* 189A70 8025B190 8FB3001C */ lw $s3, 0x1c($sp)
/* 189A74 8025B194 8FB20018 */ lw $s2, 0x18($sp)
/* 189A78 8025B198 8FB10014 */ lw $s1, 0x14($sp)
/* 189A7C 8025B19C 8FB00010 */ lw $s0, 0x10($sp)
/* 189A80 8025B1A0 03E00008 */ jr $ra
/* 189A84 8025B1A4 27BD0030 */ addiu $sp, $sp, 0x30

View File

@ -1,300 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8025B1A8
/* 189A88 8025B1A8 27BDFFD0 */ addiu $sp, $sp, -0x30
/* 189A8C 8025B1AC AFB20018 */ sw $s2, 0x18($sp)
/* 189A90 8025B1B0 0080902D */ daddu $s2, $a0, $zero
/* 189A94 8025B1B4 AFB10014 */ sw $s1, 0x14($sp)
/* 189A98 8025B1B8 00A0882D */ daddu $s1, $a1, $zero
/* 189A9C 8025B1BC AFB3001C */ sw $s3, 0x1c($sp)
/* 189AA0 8025B1C0 00C0982D */ daddu $s3, $a2, $zero
/* 189AA4 8025B1C4 AFBF0028 */ sw $ra, 0x28($sp)
/* 189AA8 8025B1C8 AFB50024 */ sw $s5, 0x24($sp)
/* 189AAC 8025B1CC AFB40020 */ sw $s4, 0x20($sp)
/* 189AB0 8025B1D0 AFB00010 */ sw $s0, 0x10($sp)
/* 189AB4 8025B1D4 8E3000C0 */ lw $s0, 0xc0($s1)
/* 189AB8 8025B1D8 820206C1 */ lb $v0, 0x6c1($s0)
/* 189ABC 8025B1DC 8FB50040 */ lw $s5, 0x40($sp)
/* 189AC0 8025B1E0 1040004B */ beqz $v0, .L8025B310
/* 189AC4 8025B1E4 00E0A02D */ daddu $s4, $a3, $zero
/* 189AC8 8025B1E8 16400016 */ bnez $s2, .L8025B244
/* 189ACC 8025B1EC 00000000 */ nop
/* 189AD0 8025B1F0 0C0B7830 */ jal spr_get_player_palettes
/* 189AD4 8025B1F4 96240088 */ lhu $a0, 0x88($s1)
/* 189AD8 8025B1F8 AE0206D0 */ sw $v0, 0x6d0($s0)
/* 189ADC 8025B1FC 0040202D */ daddu $a0, $v0, $zero
/* 189AE0 8025B200 A20006CD */ sb $zero, 0x6cd($s0)
/* 189AE4 8025B204 8C830000 */ lw $v1, ($a0)
/* 189AE8 8025B208 2402FFFF */ addiu $v0, $zero, -1
/* 189AEC 8025B20C 1062000B */ beq $v1, $v0, .L8025B23C
/* 189AF0 8025B210 0080182D */ daddu $v1, $a0, $zero
/* 189AF4 8025B214 0040202D */ daddu $a0, $v0, $zero
.L8025B218:
/* 189AF8 8025B218 920206CD */ lbu $v0, 0x6cd($s0)
/* 189AFC 8025B21C 24420001 */ addiu $v0, $v0, 1
/* 189B00 8025B220 A20206CD */ sb $v0, 0x6cd($s0)
/* 189B04 8025B224 00021600 */ sll $v0, $v0, 0x18
/* 189B08 8025B228 00021583 */ sra $v0, $v0, 0x16
/* 189B0C 8025B22C 00431021 */ addu $v0, $v0, $v1
/* 189B10 8025B230 8C420000 */ lw $v0, ($v0)
/* 189B14 8025B234 1444FFF8 */ bne $v0, $a0, .L8025B218
/* 189B18 8025B238 00000000 */ nop
.L8025B23C:
/* 189B1C 8025B23C 08096CA7 */ j .L8025B29C
/* 189B20 8025B240 24020006 */ addiu $v0, $zero, 6
.L8025B244:
/* 189B24 8025B244 96240088 */ lhu $a0, 0x88($s1)
/* 189B28 8025B248 0C0B7A90 */ jal spr_get_npc_palettes
/* 189B2C 8025B24C 00000000 */ nop
/* 189B30 8025B250 AE0206D0 */ sw $v0, 0x6d0($s0)
/* 189B34 8025B254 0040202D */ daddu $a0, $v0, $zero
/* 189B38 8025B258 A20006CD */ sb $zero, 0x6cd($s0)
/* 189B3C 8025B25C 8C830000 */ lw $v1, ($a0)
/* 189B40 8025B260 2402FFFF */ addiu $v0, $zero, -1
/* 189B44 8025B264 1062000B */ beq $v1, $v0, .L8025B294
/* 189B48 8025B268 0080182D */ daddu $v1, $a0, $zero
/* 189B4C 8025B26C 0040202D */ daddu $a0, $v0, $zero
.L8025B270:
/* 189B50 8025B270 920206CD */ lbu $v0, 0x6cd($s0)
/* 189B54 8025B274 24420001 */ addiu $v0, $v0, 1
/* 189B58 8025B278 A20206CD */ sb $v0, 0x6cd($s0)
/* 189B5C 8025B27C 00021600 */ sll $v0, $v0, 0x18
/* 189B60 8025B280 00021583 */ sra $v0, $v0, 0x16
/* 189B64 8025B284 00431021 */ addu $v0, $v0, $v1
/* 189B68 8025B288 8C420000 */ lw $v0, ($v0)
/* 189B6C 8025B28C 1444FFF8 */ bne $v0, $a0, .L8025B270
/* 189B70 8025B290 00000000 */ nop
.L8025B294:
/* 189B74 8025B294 0C0B7A9B */ jal spr_get_npc_color_variations
/* 189B78 8025B298 96240088 */ lhu $a0, 0x88($s1)
.L8025B29C:
/* 189B7C 8025B29C A20206CC */ sb $v0, 0x6cc($s0)
/* 189B80 8025B2A0 820206CD */ lb $v0, 0x6cd($s0)
/* 189B84 8025B2A4 18400015 */ blez $v0, .L8025B2FC
/* 189B88 8025B2A8 0000302D */ daddu $a2, $zero, $zero
.L8025B2AC:
/* 189B8C 8025B2AC 8E0206D0 */ lw $v0, 0x6d0($s0)
/* 189B90 8025B2B0 00061880 */ sll $v1, $a2, 2
/* 189B94 8025B2B4 00621821 */ addu $v1, $v1, $v0
/* 189B98 8025B2B8 00061140 */ sll $v0, $a2, 5
/* 189B9C 8025B2BC 8C630000 */ lw $v1, ($v1)
/* 189BA0 8025B2C0 10600009 */ beqz $v1, .L8025B2E8
/* 189BA4 8025B2C4 02022821 */ addu $a1, $s0, $v0
/* 189BA8 8025B2C8 0000202D */ daddu $a0, $zero, $zero
.L8025B2CC:
/* 189BAC 8025B2CC 94620000 */ lhu $v0, ($v1)
/* 189BB0 8025B2D0 24630002 */ addiu $v1, $v1, 2
/* 189BB4 8025B2D4 24840001 */ addiu $a0, $a0, 1
/* 189BB8 8025B2D8 A4A20000 */ sh $v0, ($a1)
/* 189BBC 8025B2DC 28820010 */ slti $v0, $a0, 0x10
/* 189BC0 8025B2E0 1440FFFA */ bnez $v0, .L8025B2CC
/* 189BC4 8025B2E4 24A50002 */ addiu $a1, $a1, 2
.L8025B2E8:
/* 189BC8 8025B2E8 820206CD */ lb $v0, 0x6cd($s0)
/* 189BCC 8025B2EC 24C60001 */ addiu $a2, $a2, 1
/* 189BD0 8025B2F0 00C2102A */ slt $v0, $a2, $v0
/* 189BD4 8025B2F4 1440FFED */ bnez $v0, .L8025B2AC
/* 189BD8 8025B2F8 00000000 */ nop
.L8025B2FC:
/* 189BDC 8025B2FC 2402FFFE */ addiu $v0, $zero, -2
/* 189BE0 8025B300 A20206C2 */ sb $v0, 0x6c2($s0)
/* 189BE4 8025B304 A60006CA */ sh $zero, 0x6ca($s0)
/* 189BE8 8025B308 A20006C1 */ sb $zero, 0x6c1($s0)
/* 189BEC 8025B30C A60006C8 */ sh $zero, 0x6c8($s0)
.L8025B310:
/* 189BF0 8025B310 16A0001E */ bnez $s5, .L8025B38C
/* 189BF4 8025B314 00000000 */ nop
/* 189BF8 8025B318 860206C8 */ lh $v0, 0x6c8($s0)
/* 189BFC 8025B31C 14400013 */ bnez $v0, .L8025B36C
/* 189C00 8025B320 00000000 */ nop
/* 189C04 8025B324 920206C2 */ lbu $v0, 0x6c2($s0)
/* 189C08 8025B328 3C048028 */ lui $a0, %hi(D_80284120)
/* 189C0C 8025B32C 24844120 */ addiu $a0, $a0, %lo(D_80284120)
/* 189C10 8025B330 24420002 */ addiu $v0, $v0, 2
/* 189C14 8025B334 A20206C2 */ sb $v0, 0x6c2($s0)
/* 189C18 8025B338 00021600 */ sll $v0, $v0, 0x18
/* 189C1C 8025B33C 00021603 */ sra $v0, $v0, 0x18
/* 189C20 8025B340 3C038028 */ lui $v1, %hi(D_80284120)
/* 189C24 8025B344 00621821 */ addu $v1, $v1, $v0
/* 189C28 8025B348 90634120 */ lbu $v1, %lo(D_80284120)($v1)
/* 189C2C 8025B34C 240200FF */ addiu $v0, $zero, 0xff
/* 189C30 8025B350 50620001 */ beql $v1, $v0, .L8025B358
/* 189C34 8025B354 A20006C2 */ sb $zero, 0x6c2($s0)
.L8025B358:
/* 189C38 8025B358 820206C2 */ lb $v0, 0x6c2($s0)
/* 189C3C 8025B35C 00441021 */ addu $v0, $v0, $a0
/* 189C40 8025B360 90420001 */ lbu $v0, 1($v0)
/* 189C44 8025B364 00021042 */ srl $v0, $v0, 1
/* 189C48 8025B368 A60206C8 */ sh $v0, 0x6c8($s0)
.L8025B36C:
/* 189C4C 8025B36C 820306C2 */ lb $v1, 0x6c2($s0)
/* 189C50 8025B370 960206C8 */ lhu $v0, 0x6c8($s0)
/* 189C54 8025B374 3C018028 */ lui $at, %hi(D_80284120)
/* 189C58 8025B378 00230821 */ addu $at, $at, $v1
/* 189C5C 8025B37C 90234120 */ lbu $v1, %lo(D_80284120)($at)
/* 189C60 8025B380 2442FFFF */ addiu $v0, $v0, -1
/* 189C64 8025B384 08096CE7 */ j .L8025B39C
/* 189C68 8025B388 A60206C8 */ sh $v0, 0x6c8($s0)
.L8025B38C:
/* 189C6C 8025B38C 820206C2 */ lb $v0, 0x6c2($s0)
/* 189C70 8025B390 3C038028 */ lui $v1, %hi(D_80284120)
/* 189C74 8025B394 00621821 */ addu $v1, $v1, $v0
/* 189C78 8025B398 90634120 */ lbu $v1, %lo(D_80284120)($v1)
.L8025B39C:
/* 189C7C 8025B39C 24020001 */ addiu $v0, $zero, 1
/* 189C80 8025B3A0 10620024 */ beq $v1, $v0, .L8025B434
/* 189C84 8025B3A4 28620002 */ slti $v0, $v1, 2
/* 189C88 8025B3A8 10400005 */ beqz $v0, .L8025B3C0
/* 189C8C 8025B3AC 24020002 */ addiu $v0, $zero, 2
/* 189C90 8025B3B0 10600007 */ beqz $v1, .L8025B3D0
/* 189C94 8025B3B4 00000000 */ nop
/* 189C98 8025B3B8 08096D4C */ j .L8025B530
/* 189C9C 8025B3BC 00000000 */ nop
.L8025B3C0:
/* 189CA0 8025B3C0 1062003C */ beq $v1, $v0, .L8025B4B4
/* 189CA4 8025B3C4 00000000 */ nop
/* 189CA8 8025B3C8 08096D4C */ j .L8025B530
/* 189CAC 8025B3CC 00000000 */ nop
.L8025B3D0:
/* 189CB0 8025B3D0 820206CC */ lb $v0, 0x6cc($s0)
/* 189CB4 8025B3D4 18400056 */ blez $v0, .L8025B530
/* 189CB8 8025B3D8 0000302D */ daddu $a2, $zero, $zero
.L8025B3DC:
/* 189CBC 8025B3DC 8E0206D0 */ lw $v0, 0x6d0($s0)
/* 189CC0 8025B3E0 00061880 */ sll $v1, $a2, 2
/* 189CC4 8025B3E4 00621821 */ addu $v1, $v1, $v0
/* 189CC8 8025B3E8 00061140 */ sll $v0, $a2, 5
/* 189CCC 8025B3EC 8C630000 */ lw $v1, ($v1)
/* 189CD0 8025B3F0 10600009 */ beqz $v1, .L8025B418
/* 189CD4 8025B3F4 02022821 */ addu $a1, $s0, $v0
/* 189CD8 8025B3F8 0000202D */ daddu $a0, $zero, $zero
.L8025B3FC:
/* 189CDC 8025B3FC 94620000 */ lhu $v0, ($v1)
/* 189CE0 8025B400 24630002 */ addiu $v1, $v1, 2
/* 189CE4 8025B404 24840001 */ addiu $a0, $a0, 1
/* 189CE8 8025B408 A4A20000 */ sh $v0, ($a1)
/* 189CEC 8025B40C 28820010 */ slti $v0, $a0, 0x10
/* 189CF0 8025B410 1440FFFA */ bnez $v0, .L8025B3FC
/* 189CF4 8025B414 24A50002 */ addiu $a1, $a1, 2
.L8025B418:
/* 189CF8 8025B418 820206CC */ lb $v0, 0x6cc($s0)
/* 189CFC 8025B41C 24C60001 */ addiu $a2, $a2, 1
/* 189D00 8025B420 00C2102A */ slt $v0, $a2, $v0
/* 189D04 8025B424 10400042 */ beqz $v0, .L8025B530
/* 189D08 8025B428 00000000 */ nop
/* 189D0C 8025B42C 08096CF7 */ j .L8025B3DC
/* 189D10 8025B430 00000000 */ nop
.L8025B434:
/* 189D14 8025B434 820206CC */ lb $v0, 0x6cc($s0)
/* 189D18 8025B438 920306CC */ lbu $v1, 0x6cc($s0)
/* 189D1C 8025B43C 1840003C */ blez $v0, .L8025B530
/* 189D20 8025B440 0000302D */ daddu $a2, $zero, $zero
/* 189D24 8025B444 00031E00 */ sll $v1, $v1, 0x18
.L8025B448:
/* 189D28 8025B448 00031E03 */ sra $v1, $v1, 0x18
/* 189D2C 8025B44C 00031080 */ sll $v0, $v1, 2
/* 189D30 8025B450 00431021 */ addu $v0, $v0, $v1
/* 189D34 8025B454 00461021 */ addu $v0, $v0, $a2
/* 189D38 8025B458 8E0306D0 */ lw $v1, 0x6d0($s0)
/* 189D3C 8025B45C 00021080 */ sll $v0, $v0, 2
/* 189D40 8025B460 00431021 */ addu $v0, $v0, $v1
/* 189D44 8025B464 8C430000 */ lw $v1, ($v0)
/* 189D48 8025B468 00061140 */ sll $v0, $a2, 5
/* 189D4C 8025B46C 10600009 */ beqz $v1, .L8025B494
/* 189D50 8025B470 02022821 */ addu $a1, $s0, $v0
/* 189D54 8025B474 0000202D */ daddu $a0, $zero, $zero
.L8025B478:
/* 189D58 8025B478 94620000 */ lhu $v0, ($v1)
/* 189D5C 8025B47C 24630002 */ addiu $v1, $v1, 2
/* 189D60 8025B480 24840001 */ addiu $a0, $a0, 1
/* 189D64 8025B484 A4A20000 */ sh $v0, ($a1)
/* 189D68 8025B488 28820010 */ slti $v0, $a0, 0x10
/* 189D6C 8025B48C 1440FFFA */ bnez $v0, .L8025B478
/* 189D70 8025B490 24A50002 */ addiu $a1, $a1, 2
.L8025B494:
/* 189D74 8025B494 24C60001 */ addiu $a2, $a2, 1
/* 189D78 8025B498 820206CC */ lb $v0, 0x6cc($s0)
/* 189D7C 8025B49C 920306CC */ lbu $v1, 0x6cc($s0)
/* 189D80 8025B4A0 00C2102A */ slt $v0, $a2, $v0
/* 189D84 8025B4A4 5440FFE8 */ bnel $v0, $zero, .L8025B448
/* 189D88 8025B4A8 00031E00 */ sll $v1, $v1, 0x18
/* 189D8C 8025B4AC 08096D4C */ j .L8025B530
/* 189D90 8025B4B0 00000000 */ nop
.L8025B4B4:
/* 189D94 8025B4B4 820206CC */ lb $v0, 0x6cc($s0)
/* 189D98 8025B4B8 920306CC */ lbu $v1, 0x6cc($s0)
/* 189D9C 8025B4BC 1840001C */ blez $v0, .L8025B530
/* 189DA0 8025B4C0 0000302D */ daddu $a2, $zero, $zero
/* 189DA4 8025B4C4 00031E00 */ sll $v1, $v1, 0x18
.L8025B4C8:
/* 189DA8 8025B4C8 00031E03 */ sra $v1, $v1, 0x18
/* 189DAC 8025B4CC 00031040 */ sll $v0, $v1, 1
/* 189DB0 8025B4D0 00431021 */ addu $v0, $v0, $v1
/* 189DB4 8025B4D4 00021040 */ sll $v0, $v0, 1
/* 189DB8 8025B4D8 00461021 */ addu $v0, $v0, $a2
/* 189DBC 8025B4DC 8E0306D0 */ lw $v1, 0x6d0($s0)
/* 189DC0 8025B4E0 00021080 */ sll $v0, $v0, 2
/* 189DC4 8025B4E4 00431021 */ addu $v0, $v0, $v1
/* 189DC8 8025B4E8 8C430000 */ lw $v1, ($v0)
/* 189DCC 8025B4EC 00061140 */ sll $v0, $a2, 5
/* 189DD0 8025B4F0 10600009 */ beqz $v1, .L8025B518
/* 189DD4 8025B4F4 02022821 */ addu $a1, $s0, $v0
/* 189DD8 8025B4F8 0000202D */ daddu $a0, $zero, $zero
.L8025B4FC:
/* 189DDC 8025B4FC 94620000 */ lhu $v0, ($v1)
/* 189DE0 8025B500 24630002 */ addiu $v1, $v1, 2
/* 189DE4 8025B504 24840001 */ addiu $a0, $a0, 1
/* 189DE8 8025B508 A4A20000 */ sh $v0, ($a1)
/* 189DEC 8025B50C 28820010 */ slti $v0, $a0, 0x10
/* 189DF0 8025B510 1440FFFA */ bnez $v0, .L8025B4FC
/* 189DF4 8025B514 24A50002 */ addiu $a1, $a1, 2
.L8025B518:
/* 189DF8 8025B518 24C60001 */ addiu $a2, $a2, 1
/* 189DFC 8025B51C 820206CC */ lb $v0, 0x6cc($s0)
/* 189E00 8025B520 920306CC */ lbu $v1, 0x6cc($s0)
/* 189E04 8025B524 00C2102A */ slt $v0, $a2, $v0
/* 189E08 8025B528 5440FFE7 */ bnel $v0, $zero, .L8025B4C8
/* 189E0C 8025B52C 00031E00 */ sll $v1, $v1, 0x18
.L8025B530:
/* 189E10 8025B530 820206CD */ lb $v0, 0x6cd($s0)
/* 189E14 8025B534 1840000A */ blez $v0, .L8025B560
/* 189E18 8025B538 0000302D */ daddu $a2, $zero, $zero
/* 189E1C 8025B53C 0200202D */ daddu $a0, $s0, $zero
/* 189E20 8025B540 0200182D */ daddu $v1, $s0, $zero
.L8025B544:
/* 189E24 8025B544 AC6406D4 */ sw $a0, 0x6d4($v1)
/* 189E28 8025B548 24840020 */ addiu $a0, $a0, 0x20
/* 189E2C 8025B54C 820206CD */ lb $v0, 0x6cd($s0)
/* 189E30 8025B550 24C60001 */ addiu $a2, $a2, 1
/* 189E34 8025B554 00C2102A */ slt $v0, $a2, $v0
/* 189E38 8025B558 1440FFFA */ bnez $v0, .L8025B544
/* 189E3C 8025B55C 24630004 */ addiu $v1, $v1, 4
.L8025B560:
/* 189E40 8025B560 16400006 */ bnez $s2, .L8025B57C
/* 189E44 8025B564 0220202D */ daddu $a0, $s1, $zero
/* 189E48 8025B568 0260282D */ daddu $a1, $s3, $zero
/* 189E4C 8025B56C 0C096657 */ jal func_8025995C
/* 189E50 8025B570 0280302D */ daddu $a2, $s4, $zero
/* 189E54 8025B574 08096D62 */ j .L8025B588
/* 189E58 8025B578 00000000 */ nop
.L8025B57C:
/* 189E5C 8025B57C 0260282D */ daddu $a1, $s3, $zero
/* 189E60 8025B580 0C0965B0 */ jal func_802596C0
/* 189E64 8025B584 0280302D */ daddu $a2, $s4, $zero
.L8025B588:
/* 189E68 8025B588 16A00004 */ bnez $s5, .L8025B59C
/* 189E6C 8025B58C 00000000 */ nop
/* 189E70 8025B590 960206CA */ lhu $v0, 0x6ca($s0)
/* 189E74 8025B594 2442FFFF */ addiu $v0, $v0, -1
/* 189E78 8025B598 A60206CA */ sh $v0, 0x6ca($s0)
.L8025B59C:
/* 189E7C 8025B59C 8FBF0028 */ lw $ra, 0x28($sp)
/* 189E80 8025B5A0 8FB50024 */ lw $s5, 0x24($sp)
/* 189E84 8025B5A4 8FB40020 */ lw $s4, 0x20($sp)
/* 189E88 8025B5A8 8FB3001C */ lw $s3, 0x1c($sp)
/* 189E8C 8025B5AC 8FB20018 */ lw $s2, 0x18($sp)
/* 189E90 8025B5B0 8FB10014 */ lw $s1, 0x14($sp)
/* 189E94 8025B5B4 8FB00010 */ lw $s0, 0x10($sp)
/* 189E98 8025B5B8 03E00008 */ jr $ra
/* 189E9C 8025B5BC 27BD0030 */ addiu $sp, $sp, 0x30

View File

@ -1,345 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8025B5C0
/* 189EA0 8025B5C0 27BDFFC0 */ addiu $sp, $sp, -0x40
/* 189EA4 8025B5C4 AFB40028 */ sw $s4, 0x28($sp)
/* 189EA8 8025B5C8 0080A02D */ daddu $s4, $a0, $zero
/* 189EAC 8025B5CC AFB1001C */ sw $s1, 0x1c($sp)
/* 189EB0 8025B5D0 00A0882D */ daddu $s1, $a1, $zero
/* 189EB4 8025B5D4 AFB5002C */ sw $s5, 0x2c($sp)
/* 189EB8 8025B5D8 00C0A82D */ daddu $s5, $a2, $zero
/* 189EBC 8025B5DC AFB60030 */ sw $s6, 0x30($sp)
/* 189EC0 8025B5E0 AFBF0038 */ sw $ra, 0x38($sp)
/* 189EC4 8025B5E4 AFB70034 */ sw $s7, 0x34($sp)
/* 189EC8 8025B5E8 AFB30024 */ sw $s3, 0x24($sp)
/* 189ECC 8025B5EC AFB20020 */ sw $s2, 0x20($sp)
/* 189ED0 8025B5F0 AFB00018 */ sw $s0, 0x18($sp)
/* 189ED4 8025B5F4 8E3000C0 */ lw $s0, 0xc0($s1)
/* 189ED8 8025B5F8 8FB30050 */ lw $s3, 0x50($sp)
/* 189EDC 8025B5FC 820206C1 */ lb $v0, 0x6c1($s0)
/* 189EE0 8025B600 8FB20054 */ lw $s2, 0x54($sp)
/* 189EE4 8025B604 10400078 */ beqz $v0, .L8025B7E8
/* 189EE8 8025B608 00E0B02D */ daddu $s6, $a3, $zero
/* 189EEC 8025B60C 1680001B */ bnez $s4, .L8025B67C
/* 189EF0 8025B610 00000000 */ nop
/* 189EF4 8025B614 0C0B7830 */ jal spr_get_player_palettes
/* 189EF8 8025B618 96240088 */ lhu $a0, 0x88($s1)
/* 189EFC 8025B61C AE0206D0 */ sw $v0, 0x6d0($s0)
/* 189F00 8025B620 0040202D */ daddu $a0, $v0, $zero
/* 189F04 8025B624 A20006CD */ sb $zero, 0x6cd($s0)
/* 189F08 8025B628 8C830000 */ lw $v1, ($a0)
/* 189F0C 8025B62C 2402FFFF */ addiu $v0, $zero, -1
/* 189F10 8025B630 1062000B */ beq $v1, $v0, .L8025B660
/* 189F14 8025B634 0080182D */ daddu $v1, $a0, $zero
/* 189F18 8025B638 0040202D */ daddu $a0, $v0, $zero
.L8025B63C:
/* 189F1C 8025B63C 920206CD */ lbu $v0, 0x6cd($s0)
/* 189F20 8025B640 24420001 */ addiu $v0, $v0, 1
/* 189F24 8025B644 A20206CD */ sb $v0, 0x6cd($s0)
/* 189F28 8025B648 00021600 */ sll $v0, $v0, 0x18
/* 189F2C 8025B64C 00021583 */ sra $v0, $v0, 0x16
/* 189F30 8025B650 00431021 */ addu $v0, $v0, $v1
/* 189F34 8025B654 8C420000 */ lw $v0, ($v0)
/* 189F38 8025B658 1444FFF8 */ bne $v0, $a0, .L8025B63C
/* 189F3C 8025B65C 00000000 */ nop
.L8025B660:
/* 189F40 8025B660 3C02800E */ lui $v0, %hi(gBattleStatus+0x4)
/* 189F44 8025B664 8C42C074 */ lw $v0, %lo(gBattleStatus+0x4)($v0)
/* 189F48 8025B668 30420040 */ andi $v0, $v0, 0x40
/* 189F4C 8025B66C 14400019 */ bnez $v0, .L8025B6D4
/* 189F50 8025B670 24020004 */ addiu $v0, $zero, 4
/* 189F54 8025B674 08096DB5 */ j .L8025B6D4
/* 189F58 8025B678 24020006 */ addiu $v0, $zero, 6
.L8025B67C:
/* 189F5C 8025B67C 96240088 */ lhu $a0, 0x88($s1)
/* 189F60 8025B680 0C0B7A90 */ jal spr_get_npc_palettes
/* 189F64 8025B684 00000000 */ nop
/* 189F68 8025B688 AE0206D0 */ sw $v0, 0x6d0($s0)
/* 189F6C 8025B68C 0040202D */ daddu $a0, $v0, $zero
/* 189F70 8025B690 A20006CD */ sb $zero, 0x6cd($s0)
/* 189F74 8025B694 8C830000 */ lw $v1, ($a0)
/* 189F78 8025B698 2402FFFF */ addiu $v0, $zero, -1
/* 189F7C 8025B69C 1062000B */ beq $v1, $v0, .L8025B6CC
/* 189F80 8025B6A0 0080182D */ daddu $v1, $a0, $zero
/* 189F84 8025B6A4 0040202D */ daddu $a0, $v0, $zero
.L8025B6A8:
/* 189F88 8025B6A8 920206CD */ lbu $v0, 0x6cd($s0)
/* 189F8C 8025B6AC 24420001 */ addiu $v0, $v0, 1
/* 189F90 8025B6B0 A20206CD */ sb $v0, 0x6cd($s0)
/* 189F94 8025B6B4 00021600 */ sll $v0, $v0, 0x18
/* 189F98 8025B6B8 00021583 */ sra $v0, $v0, 0x16
/* 189F9C 8025B6BC 00431021 */ addu $v0, $v0, $v1
/* 189FA0 8025B6C0 8C420000 */ lw $v0, ($v0)
/* 189FA4 8025B6C4 1444FFF8 */ bne $v0, $a0, .L8025B6A8
/* 189FA8 8025B6C8 00000000 */ nop
.L8025B6CC:
/* 189FAC 8025B6CC 0C0B7A9B */ jal spr_get_npc_color_variations
/* 189FB0 8025B6D0 96240088 */ lhu $a0, 0x88($s1)
.L8025B6D4:
/* 189FB4 8025B6D4 A20206CC */ sb $v0, 0x6cc($s0)
/* 189FB8 8025B6D8 820306C1 */ lb $v1, 0x6c1($s0)
/* 189FBC 8025B6DC 24020001 */ addiu $v0, $zero, 1
/* 189FC0 8025B6E0 14620004 */ bne $v1, $v0, .L8025B6F4
/* 189FC4 8025B6E4 240200FF */ addiu $v0, $zero, 0xff
/* 189FC8 8025B6E8 A20006C2 */ sb $zero, 0x6c2($s0)
/* 189FCC 8025B6EC 08096DBF */ j .L8025B6FC
/* 189FD0 8025B6F0 A60006CA */ sh $zero, 0x6ca($s0)
.L8025B6F4:
/* 189FD4 8025B6F4 A20006C2 */ sb $zero, 0x6c2($s0)
/* 189FD8 8025B6F8 A60206CA */ sh $v0, 0x6ca($s0)
.L8025B6FC:
/* 189FDC 8025B6FC 820206CD */ lb $v0, 0x6cd($s0)
/* 189FE0 8025B700 18400017 */ blez $v0, .L8025B760
/* 189FE4 8025B704 0000502D */ daddu $t2, $zero, $zero
/* 189FE8 8025B708 0200202D */ daddu $a0, $s0, $zero
.L8025B70C:
/* 189FEC 8025B70C 8E0206D0 */ lw $v0, 0x6d0($s0)
/* 189FF0 8025B710 000A1880 */ sll $v1, $t2, 2
/* 189FF4 8025B714 00621821 */ addu $v1, $v1, $v0
/* 189FF8 8025B718 000A1140 */ sll $v0, $t2, 5
/* 189FFC 8025B71C 8C670000 */ lw $a3, ($v1)
/* 18A000 8025B720 02024821 */ addu $t1, $s0, $v0
/* 18A004 8025B724 10E00009 */ beqz $a3, .L8025B74C
/* 18A008 8025B728 AC8906D4 */ sw $t1, 0x6d4($a0)
/* 18A00C 8025B72C 0000402D */ daddu $t0, $zero, $zero
.L8025B730:
/* 18A010 8025B730 94E20000 */ lhu $v0, ($a3)
/* 18A014 8025B734 24E70002 */ addiu $a3, $a3, 2
/* 18A018 8025B738 25080001 */ addiu $t0, $t0, 1
/* 18A01C 8025B73C A5220000 */ sh $v0, ($t1)
/* 18A020 8025B740 29020010 */ slti $v0, $t0, 0x10
/* 18A024 8025B744 1440FFFA */ bnez $v0, .L8025B730
/* 18A028 8025B748 25290002 */ addiu $t1, $t1, 2
.L8025B74C:
/* 18A02C 8025B74C 820206CD */ lb $v0, 0x6cd($s0)
/* 18A030 8025B750 254A0001 */ addiu $t2, $t2, 1
/* 18A034 8025B754 0142102A */ slt $v0, $t2, $v0
/* 18A038 8025B758 1440FFEC */ bnez $v0, .L8025B70C
/* 18A03C 8025B75C 24840004 */ addiu $a0, $a0, 4
.L8025B760:
/* 18A040 8025B760 1240001D */ beqz $s2, .L8025B7D8
/* 18A044 8025B764 2402000A */ addiu $v0, $zero, 0xa
/* 18A048 8025B768 820206CC */ lb $v0, 0x6cc($s0)
/* 18A04C 8025B76C 920306CC */ lbu $v1, 0x6cc($s0)
/* 18A050 8025B770 18400018 */ blez $v0, .L8025B7D4
/* 18A054 8025B774 0000502D */ daddu $t2, $zero, $zero
/* 18A058 8025B778 000A1140 */ sll $v0, $t2, 5
.L8025B77C:
/* 18A05C 8025B77C 02025821 */ addu $t3, $s0, $v0
/* 18A060 8025B780 0000402D */ daddu $t0, $zero, $zero
/* 18A064 8025B784 00031600 */ sll $v0, $v1, 0x18
/* 18A068 8025B788 00021603 */ sra $v0, $v0, 0x18
/* 18A06C 8025B78C 004A1021 */ addu $v0, $v0, $t2
/* 18A070 8025B790 8E0306D0 */ lw $v1, 0x6d0($s0)
/* 18A074 8025B794 00021080 */ sll $v0, $v0, 2
/* 18A078 8025B798 00431021 */ addu $v0, $v0, $v1
/* 18A07C 8025B79C 8C470000 */ lw $a3, ($v0)
.L8025B7A0:
/* 18A080 8025B7A0 94E20000 */ lhu $v0, ($a3)
/* 18A084 8025B7A4 24E70002 */ addiu $a3, $a3, 2
/* 18A088 8025B7A8 25080001 */ addiu $t0, $t0, 1
/* 18A08C 8025B7AC A5620000 */ sh $v0, ($t3)
/* 18A090 8025B7B0 29020010 */ slti $v0, $t0, 0x10
/* 18A094 8025B7B4 1440FFFA */ bnez $v0, .L8025B7A0
/* 18A098 8025B7B8 256B0002 */ addiu $t3, $t3, 2
/* 18A09C 8025B7BC 254A0001 */ addiu $t2, $t2, 1
/* 18A0A0 8025B7C0 820206CC */ lb $v0, 0x6cc($s0)
/* 18A0A4 8025B7C4 920306CC */ lbu $v1, 0x6cc($s0)
/* 18A0A8 8025B7C8 0142102A */ slt $v0, $t2, $v0
/* 18A0AC 8025B7CC 1440FFEB */ bnez $v0, .L8025B77C
/* 18A0B0 8025B7D0 000A1140 */ sll $v0, $t2, 5
.L8025B7D4:
/* 18A0B4 8025B7D4 2402000A */ addiu $v0, $zero, 0xa
.L8025B7D8:
/* 18A0B8 8025B7D8 A60206C8 */ sh $v0, 0x6c8($s0)
/* 18A0BC 8025B7DC A60006CA */ sh $zero, 0x6ca($s0)
/* 18A0C0 8025B7E0 A20006C2 */ sb $zero, 0x6c2($s0)
/* 18A0C4 8025B7E4 A20006C1 */ sb $zero, 0x6c1($s0)
.L8025B7E8:
/* 18A0C8 8025B7E8 820206C2 */ lb $v0, 0x6c2($s0)
/* 18A0CC 8025B7EC 14400085 */ bnez $v0, .L8025BA04
/* 18A0D0 8025B7F0 00000000 */ nop
/* 18A0D4 8025B7F4 56600011 */ bnel $s3, $zero, .L8025B83C
/* 18A0D8 8025B7F8 3C0451EB */ lui $a0, 0x51eb
/* 18A0DC 8025B7FC 860206C8 */ lh $v0, 0x6c8($s0)
/* 18A0E0 8025B800 960306C8 */ lhu $v1, 0x6c8($s0)
/* 18A0E4 8025B804 10400003 */ beqz $v0, .L8025B814
/* 18A0E8 8025B808 2462FFFF */ addiu $v0, $v1, -1
/* 18A0EC 8025B80C 08096E81 */ j .L8025BA04
/* 18A0F0 8025B810 A60206C8 */ sh $v0, 0x6c8($s0)
.L8025B814:
/* 18A0F4 8025B814 960206CA */ lhu $v0, 0x6ca($s0)
/* 18A0F8 8025B818 24420A00 */ addiu $v0, $v0, 0xa00
/* 18A0FC 8025B81C A60206CA */ sh $v0, 0x6ca($s0)
/* 18A100 8025B820 00021400 */ sll $v0, $v0, 0x10
/* 18A104 8025B824 00021403 */ sra $v0, $v0, 0x10
/* 18A108 8025B828 2842639D */ slti $v0, $v0, 0x639d
/* 18A10C 8025B82C 14400003 */ bnez $v0, .L8025B83C
/* 18A110 8025B830 3C0451EB */ lui $a0, 0x51eb
/* 18A114 8025B834 2402639C */ addiu $v0, $zero, 0x639c
/* 18A118 8025B838 A60206CA */ sh $v0, 0x6ca($s0)
.L8025B83C:
/* 18A11C 8025B83C 960306CA */ lhu $v1, 0x6ca($s0)
/* 18A120 8025B840 3484851F */ ori $a0, $a0, 0x851f
/* 18A124 8025B844 00031C00 */ sll $v1, $v1, 0x10
/* 18A128 8025B848 00031403 */ sra $v0, $v1, 0x10
/* 18A12C 8025B84C 00440018 */ mult $v0, $a0
/* 18A130 8025B850 0000502D */ daddu $t2, $zero, $zero
/* 18A134 8025B854 00031FC3 */ sra $v1, $v1, 0x1f
/* 18A138 8025B858 820206CC */ lb $v0, 0x6cc($s0)
/* 18A13C 8025B85C 0000B810 */ mfhi $s7
/* 18A140 8025B860 00172143 */ sra $a0, $s7, 5
/* 18A144 8025B864 18400062 */ blez $v0, .L8025B9F0
/* 18A148 8025B868 0083C823 */ subu $t9, $a0, $v1
/* 18A14C 8025B86C 332E00FF */ andi $t6, $t9, 0xff
/* 18A150 8025B870 240200FF */ addiu $v0, $zero, 0xff
/* 18A154 8025B874 004EC023 */ subu $t8, $v0, $t6
/* 18A158 8025B878 3C0F8080 */ lui $t7, 0x8080
/* 18A15C 8025B87C 35EF8081 */ ori $t7, $t7, 0x8081
.L8025B880:
/* 18A160 8025B880 16400004 */ bnez $s2, .L8025B894
/* 18A164 8025B884 000A1080 */ sll $v0, $t2, 2
/* 18A168 8025B888 8E0306D0 */ lw $v1, 0x6d0($s0)
/* 18A16C 8025B88C 08096E2A */ j .L8025B8A8
/* 18A170 8025B890 00431021 */ addu $v0, $v0, $v1
.L8025B894:
/* 18A174 8025B894 820206CC */ lb $v0, 0x6cc($s0)
/* 18A178 8025B898 8E0306D0 */ lw $v1, 0x6d0($s0)
/* 18A17C 8025B89C 004A1021 */ addu $v0, $v0, $t2
/* 18A180 8025B8A0 00021080 */ sll $v0, $v0, 2
/* 18A184 8025B8A4 00431021 */ addu $v0, $v0, $v1
.L8025B8A8:
/* 18A188 8025B8A8 8C470000 */ lw $a3, ($v0)
/* 18A18C 8025B8AC 000A1140 */ sll $v0, $t2, 5
/* 18A190 8025B8B0 02025821 */ addu $t3, $s0, $v0
/* 18A194 8025B8B4 0000402D */ daddu $t0, $zero, $zero
/* 18A198 8025B8B8 820206CC */ lb $v0, 0x6cc($s0)
/* 18A19C 8025B8BC 8E0306D0 */ lw $v1, 0x6d0($s0)
/* 18A1A0 8025B8C0 00021040 */ sll $v0, $v0, 1
/* 18A1A4 8025B8C4 004A1021 */ addu $v0, $v0, $t2
/* 18A1A8 8025B8C8 00021080 */ sll $v0, $v0, 2
/* 18A1AC 8025B8CC 00431021 */ addu $v0, $v0, $v1
/* 18A1B0 8025B8D0 8C490000 */ lw $t1, ($v0)
.L8025B8D4:
/* 18A1B4 8025B8D4 94E30000 */ lhu $v1, ($a3)
/* 18A1B8 8025B8D8 000312C2 */ srl $v0, $v1, 0xb
/* 18A1BC 8025B8DC 00580018 */ mult $v0, $t8
/* 18A1C0 8025B8E0 95240000 */ lhu $a0, ($t1)
/* 18A1C4 8025B8E4 00002812 */ mflo $a1
/* 18A1C8 8025B8E8 000412C2 */ srl $v0, $a0, 0xb
/* 18A1CC 8025B8EC 00000000 */ nop
/* 18A1D0 8025B8F0 004E0018 */ mult $v0, $t6
/* 18A1D4 8025B8F4 00006012 */ mflo $t4
/* 18A1D8 8025B8F8 00AC2821 */ addu $a1, $a1, $t4
/* 18A1DC 8025B8FC 00000000 */ nop
/* 18A1E0 8025B900 00AF0018 */ mult $a1, $t7
/* 18A1E4 8025B904 00009810 */ mfhi $s3
/* 18A1E8 8025B908 00031182 */ srl $v0, $v1, 6
/* 18A1EC 8025B90C 3042001F */ andi $v0, $v0, 0x1f
/* 18A1F0 8025B910 00580018 */ mult $v0, $t8
/* 18A1F4 8025B914 00006812 */ mflo $t5
/* 18A1F8 8025B918 00041182 */ srl $v0, $a0, 6
/* 18A1FC 8025B91C 3042001F */ andi $v0, $v0, 0x1f
/* 18A200 8025B920 004E0018 */ mult $v0, $t6
/* 18A204 8025B924 00001012 */ mflo $v0
/* 18A208 8025B928 00031842 */ srl $v1, $v1, 1
/* 18A20C 8025B92C 3063001F */ andi $v1, $v1, 0x1f
/* 18A210 8025B930 00780018 */ mult $v1, $t8
/* 18A214 8025B934 24E70002 */ addiu $a3, $a3, 2
/* 18A218 8025B938 91260001 */ lbu $a2, 1($t1)
/* 18A21C 8025B93C 25290002 */ addiu $t1, $t1, 2
/* 18A220 8025B940 25080001 */ addiu $t0, $t0, 1
/* 18A224 8025B944 00006012 */ mflo $t4
/* 18A228 8025B948 00042042 */ srl $a0, $a0, 1
/* 18A22C 8025B94C 3084001F */ andi $a0, $a0, 0x1f
/* 18A230 8025B950 008E0018 */ mult $a0, $t6
/* 18A234 8025B954 30C60001 */ andi $a2, $a2, 1
/* 18A238 8025B958 01A21021 */ addu $v0, $t5, $v0
/* 18A23C 8025B95C 02652021 */ addu $a0, $s3, $a1
/* 18A240 8025B960 000421C3 */ sra $a0, $a0, 7
/* 18A244 8025B964 0000B812 */ mflo $s7
/* 18A248 8025B968 00052FC3 */ sra $a1, $a1, 0x1f
/* 18A24C 8025B96C 00852023 */ subu $a0, $a0, $a1
/* 18A250 8025B970 004F0018 */ mult $v0, $t7
/* 18A254 8025B974 308400FF */ andi $a0, $a0, 0xff
/* 18A258 8025B978 000422C0 */ sll $a0, $a0, 0xb
/* 18A25C 8025B97C AFB70010 */ sw $s7, 0x10($sp)
/* 18A260 8025B980 01972821 */ addu $a1, $t4, $s7
/* 18A264 8025B984 00001810 */ mfhi $v1
/* 18A268 8025B988 00621821 */ addu $v1, $v1, $v0
/* 18A26C 8025B98C 000319C3 */ sra $v1, $v1, 7
/* 18A270 8025B990 000217C3 */ sra $v0, $v0, 0x1f
/* 18A274 8025B994 00AF0018 */ mult $a1, $t7
/* 18A278 8025B998 00621823 */ subu $v1, $v1, $v0
/* 18A27C 8025B99C 306300FF */ andi $v1, $v1, 0xff
/* 18A280 8025B9A0 00031980 */ sll $v1, $v1, 6
/* 18A284 8025B9A4 00832025 */ or $a0, $a0, $v1
/* 18A288 8025B9A8 00006010 */ mfhi $t4
/* 18A28C 8025B9AC 01851021 */ addu $v0, $t4, $a1
/* 18A290 8025B9B0 000211C3 */ sra $v0, $v0, 7
/* 18A294 8025B9B4 00052FC3 */ sra $a1, $a1, 0x1f
/* 18A298 8025B9B8 00451023 */ subu $v0, $v0, $a1
/* 18A29C 8025B9BC 304200FF */ andi $v0, $v0, 0xff
/* 18A2A0 8025B9C0 00021040 */ sll $v0, $v0, 1
/* 18A2A4 8025B9C4 00822025 */ or $a0, $a0, $v0
/* 18A2A8 8025B9C8 00C43025 */ or $a2, $a2, $a0
/* 18A2AC 8025B9CC A5660000 */ sh $a2, ($t3)
/* 18A2B0 8025B9D0 29020010 */ slti $v0, $t0, 0x10
/* 18A2B4 8025B9D4 1440FFBF */ bnez $v0, .L8025B8D4
/* 18A2B8 8025B9D8 256B0002 */ addiu $t3, $t3, 2
/* 18A2BC 8025B9DC 820206CC */ lb $v0, 0x6cc($s0)
/* 18A2C0 8025B9E0 254A0001 */ addiu $t2, $t2, 1
/* 18A2C4 8025B9E4 0142102A */ slt $v0, $t2, $v0
/* 18A2C8 8025B9E8 1440FFA5 */ bnez $v0, .L8025B880
/* 18A2CC 8025B9EC 00000000 */ nop
.L8025B9F0:
/* 18A2D0 8025B9F0 332300FF */ andi $v1, $t9, 0xff
/* 18A2D4 8025B9F4 240200FF */ addiu $v0, $zero, 0xff
/* 18A2D8 8025B9F8 14620002 */ bne $v1, $v0, .L8025BA04
/* 18A2DC 8025B9FC 24020001 */ addiu $v0, $zero, 1
/* 18A2E0 8025BA00 A20206C2 */ sb $v0, 0x6c2($s0)
.L8025BA04:
/* 18A2E4 8025BA04 820206CD */ lb $v0, 0x6cd($s0)
/* 18A2E8 8025BA08 1840000A */ blez $v0, .L8025BA34
/* 18A2EC 8025BA0C 0000502D */ daddu $t2, $zero, $zero
/* 18A2F0 8025BA10 0200202D */ daddu $a0, $s0, $zero
/* 18A2F4 8025BA14 0200182D */ daddu $v1, $s0, $zero
.L8025BA18:
/* 18A2F8 8025BA18 AC6406D4 */ sw $a0, 0x6d4($v1)
/* 18A2FC 8025BA1C 24840020 */ addiu $a0, $a0, 0x20
/* 18A300 8025BA20 820206CD */ lb $v0, 0x6cd($s0)
/* 18A304 8025BA24 254A0001 */ addiu $t2, $t2, 1
/* 18A308 8025BA28 0142102A */ slt $v0, $t2, $v0
/* 18A30C 8025BA2C 1440FFFA */ bnez $v0, .L8025BA18
/* 18A310 8025BA30 24630004 */ addiu $v1, $v1, 4
.L8025BA34:
/* 18A314 8025BA34 820306C2 */ lb $v1, 0x6c2($s0)
/* 18A318 8025BA38 28620002 */ slti $v0, $v1, 2
/* 18A31C 8025BA3C 1040000D */ beqz $v0, .L8025BA74
/* 18A320 8025BA40 00000000 */ nop
/* 18A324 8025BA44 0460000B */ bltz $v1, .L8025BA74
/* 18A328 8025BA48 00000000 */ nop
/* 18A32C 8025BA4C 16800006 */ bnez $s4, .L8025BA68
/* 18A330 8025BA50 0220202D */ daddu $a0, $s1, $zero
/* 18A334 8025BA54 02A0282D */ daddu $a1, $s5, $zero
/* 18A338 8025BA58 0C096657 */ jal func_8025995C
/* 18A33C 8025BA5C 02C0302D */ daddu $a2, $s6, $zero
/* 18A340 8025BA60 08096E9D */ j .L8025BA74
/* 18A344 8025BA64 00000000 */ nop
.L8025BA68:
/* 18A348 8025BA68 02A0282D */ daddu $a1, $s5, $zero
/* 18A34C 8025BA6C 0C0965B0 */ jal func_802596C0
/* 18A350 8025BA70 02C0302D */ daddu $a2, $s6, $zero
.L8025BA74:
/* 18A354 8025BA74 8FBF0038 */ lw $ra, 0x38($sp)
/* 18A358 8025BA78 8FB70034 */ lw $s7, 0x34($sp)
/* 18A35C 8025BA7C 8FB60030 */ lw $s6, 0x30($sp)
/* 18A360 8025BA80 8FB5002C */ lw $s5, 0x2c($sp)
/* 18A364 8025BA84 8FB40028 */ lw $s4, 0x28($sp)
/* 18A368 8025BA88 8FB30024 */ lw $s3, 0x24($sp)
/* 18A36C 8025BA8C 8FB20020 */ lw $s2, 0x20($sp)
/* 18A370 8025BA90 8FB1001C */ lw $s1, 0x1c($sp)
/* 18A374 8025BA94 8FB00018 */ lw $s0, 0x18($sp)
/* 18A378 8025BA98 03E00008 */ jr $ra
/* 18A37C 8025BA9C 27BD0040 */ addiu $sp, $sp, 0x40

View File

@ -1,42 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel evt_goto_end_case
/* ED394 802C89E4 24050001 */ addiu $a1, $zero, 1
/* ED398 802C89E8 8C860008 */ lw $a2, 8($a0)
/* ED39C 802C89EC 24090014 */ addiu $t1, $zero, 0x14
/* ED3A0 802C89F0 00A0402D */ daddu $t0, $a1, $zero
/* ED3A4 802C89F4 24070023 */ addiu $a3, $zero, 0x23
.L802C89F8:
/* ED3A8 802C89F8 00C0202D */ daddu $a0, $a2, $zero
.L802C89FC:
/* ED3AC 802C89FC 24860008 */ addiu $a2, $a0, 8
.L802C8A00:
/* ED3B0 802C8A00 8C820004 */ lw $v0, 4($a0)
/* ED3B4 802C8A04 8C830000 */ lw $v1, ($a0)
/* ED3B8 802C8A08 00021080 */ sll $v0, $v0, 2
/* ED3BC 802C8A0C 1069000E */ beq $v1, $t1, .L802C8A48
/* ED3C0 802C8A10 00C23021 */ addu $a2, $a2, $v0
/* ED3C4 802C8A14 28620015 */ slti $v0, $v1, 0x15
/* ED3C8 802C8A18 10400005 */ beqz $v0, .L802C8A30
/* ED3CC 802C8A1C 00000000 */ nop
/* ED3D0 802C8A20 10680007 */ beq $v1, $t0, .L802C8A40
/* ED3D4 802C8A24 00C0202D */ daddu $a0, $a2, $zero
/* ED3D8 802C8A28 080B2280 */ j .L802C8A00
/* ED3DC 802C8A2C 24860008 */ addiu $a2, $a0, 8
.L802C8A30:
/* ED3E0 802C8A30 50670007 */ beql $v1, $a3, .L802C8A50
/* ED3E4 802C8A34 24A5FFFF */ addiu $a1, $a1, -1
/* ED3E8 802C8A38 080B227F */ j .L802C89FC
/* ED3EC 802C8A3C 00C0202D */ daddu $a0, $a2, $zero
.L802C8A40:
/* ED3F0 802C8A40 080B2290 */ j .L802C8A40
/* ED3F4 802C8A44 00000000 */ nop
.L802C8A48:
/* ED3F8 802C8A48 080B227E */ j .L802C89F8
/* ED3FC 802C8A4C 24A50001 */ addiu $a1, $a1, 1
.L802C8A50:
/* ED400 802C8A50 54A0FFEA */ bnel $a1, $zero, .L802C89FC
/* ED404 802C8A54 00C0202D */ daddu $a0, $a2, $zero
/* ED408 802C8A58 03E00008 */ jr $ra
/* ED40C 802C8A5C 0080102D */ daddu $v0, $a0, $zero

View File

@ -1,165 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel evt_set_float_variable
/* ECFF0 802C8640 27BDFFE0 */ addiu $sp, $sp, -0x20
/* ECFF4 802C8644 AFB10014 */ sw $s1, 0x14($sp)
/* ECFF8 802C8648 0080882D */ daddu $s1, $a0, $zero
/* ECFFC 802C864C 3C02EFE8 */ lui $v0, 0xefe8
/* ED000 802C8650 34422080 */ ori $v0, $v0, 0x2080
/* ED004 802C8654 44866000 */ mtc1 $a2, $f12
/* ED008 802C8658 0045102A */ slt $v0, $v0, $a1
/* ED00C 802C865C AFBF001C */ sw $ra, 0x1c($sp)
/* ED010 802C8660 AFB20018 */ sw $s2, 0x18($sp)
/* ED014 802C8664 1040003D */ beqz $v0, .L802C875C
/* ED018 802C8668 AFB00010 */ sw $s0, 0x10($sp)
/* ED01C 802C866C 3C02F2E3 */ lui $v0, 0xf2e3
/* ED020 802C8670 34421100 */ ori $v0, $v0, 0x1100
/* ED024 802C8674 0045102A */ slt $v0, $v0, $a1
/* ED028 802C8678 10400038 */ beqz $v0, .L802C875C
/* ED02C 802C867C 3C02F545 */ lui $v0, 0xf545
/* ED030 802C8680 34426B00 */ ori $v0, $v0, 0x6b00
/* ED034 802C8684 0045102A */ slt $v0, $v0, $a1
/* ED038 802C8688 1440000E */ bnez $v0, .L802C86C4
/* ED03C 802C868C 3C02FB3B */ lui $v0, 0xfb3b
/* ED040 802C8690 3C020B53 */ lui $v0, 0xb53
/* ED044 802C8694 34422B80 */ ori $v0, $v0, 0x2b80
/* ED048 802C8698 00A22821 */ addu $a1, $a1, $v0
/* ED04C 802C869C 8E22013C */ lw $v0, 0x13c($s1)
/* ED050 802C86A0 00058080 */ sll $s0, $a1, 2
/* ED054 802C86A4 02021021 */ addu $v0, $s0, $v0
/* ED058 802C86A8 0C0B125B */ jal evt_float_to_fixed_var
/* ED05C 802C86AC 8C520000 */ lw $s2, ($v0)
/* ED060 802C86B0 8E23013C */ lw $v1, 0x13c($s1)
/* ED064 802C86B4 0240202D */ daddu $a0, $s2, $zero
/* ED068 802C86B8 02038021 */ addu $s0, $s0, $v1
/* ED06C 802C86BC 080B221C */ j .L802C8870
/* ED070 802C86C0 AE020000 */ sw $v0, ($s0)
.L802C86C4:
/* ED074 802C86C4 34424C00 */ ori $v0, $v0, 0x4c00
/* ED078 802C86C8 0045102A */ slt $v0, $v0, $a1
/* ED07C 802C86CC 54400025 */ bnel $v0, $zero, .L802C8764
/* ED080 802C86D0 3C02FC6C */ lui $v0, 0xfc6c
/* ED084 802C86D4 3C02055D */ lui $v0, 0x55d
/* ED088 802C86D8 34424A80 */ ori $v0, $v0, 0x4a80
/* ED08C 802C86DC 00A22821 */ addu $a1, $a1, $v0
/* ED090 802C86E0 04A10002 */ bgez $a1, .L802C86EC
/* ED094 802C86E4 00A0102D */ daddu $v0, $a1, $zero
/* ED098 802C86E8 24A2001F */ addiu $v0, $a1, 0x1f
.L802C86EC:
/* ED09C 802C86EC 00023143 */ sra $a2, $v0, 5
/* ED0A0 802C86F0 00C0202D */ daddu $a0, $a2, $zero
/* ED0A4 802C86F4 00041140 */ sll $v0, $a0, 5
/* ED0A8 802C86F8 44800000 */ mtc1 $zero, $f0
/* ED0AC 802C86FC 00000000 */ nop
/* ED0B0 802C8700 46006032 */ c.eq.s $f12, $f0
/* ED0B4 802C8704 00000000 */ nop
/* ED0B8 802C8708 4501000A */ bc1t .L802C8734
/* ED0BC 802C870C 00A23023 */ subu $a2, $a1, $v0
/* ED0C0 802C8710 3C02802E */ lui $v0, %hi(gMapFlags)
/* ED0C4 802C8714 8C42A480 */ lw $v0, %lo(gMapFlags)($v0)
/* ED0C8 802C8718 00042080 */ sll $a0, $a0, 2
/* ED0CC 802C871C 00822021 */ addu $a0, $a0, $v0
/* ED0D0 802C8720 24020001 */ addiu $v0, $zero, 1
/* ED0D4 802C8724 8C830000 */ lw $v1, ($a0)
/* ED0D8 802C8728 00C21004 */ sllv $v0, $v0, $a2
/* ED0DC 802C872C 080B21D6 */ j .L802C8758
/* ED0E0 802C8730 00621825 */ or $v1, $v1, $v0
.L802C8734:
/* ED0E4 802C8734 3C02802E */ lui $v0, %hi(gMapFlags)
/* ED0E8 802C8738 8C42A480 */ lw $v0, %lo(gMapFlags)($v0)
/* ED0EC 802C873C 00042080 */ sll $a0, $a0, 2
/* ED0F0 802C8740 00822021 */ addu $a0, $a0, $v0
/* ED0F4 802C8744 24020001 */ addiu $v0, $zero, 1
/* ED0F8 802C8748 00C21004 */ sllv $v0, $v0, $a2
/* ED0FC 802C874C 8C830000 */ lw $v1, ($a0)
/* ED100 802C8750 00021027 */ nor $v0, $zero, $v0
/* ED104 802C8754 00621824 */ and $v1, $v1, $v0
.L802C8758:
/* ED108 802C8758 AC830000 */ sw $v1, ($a0)
.L802C875C:
/* ED10C 802C875C 080B221E */ j .L802C8878
/* ED110 802C8760 46006006 */ mov.s $f0, $f12
.L802C8764:
/* ED114 802C8764 34427900 */ ori $v0, $v0, 0x7900
/* ED118 802C8768 0045102A */ slt $v0, $v0, $a1
/* ED11C 802C876C 54400020 */ bnel $v0, $zero, .L802C87F0
/* ED120 802C8770 3C02FD9D */ lui $v0, 0xfd9d
/* ED124 802C8774 3C02042C */ lui $v0, 0x42c
/* ED128 802C8778 34421D80 */ ori $v0, $v0, 0x1d80
/* ED12C 802C877C 00A22821 */ addu $a1, $a1, $v0
/* ED130 802C8780 04A10002 */ bgez $a1, .L802C878C
/* ED134 802C8784 00A0102D */ daddu $v0, $a1, $zero
/* ED138 802C8788 24A2001F */ addiu $v0, $a1, 0x1f
.L802C878C:
/* ED13C 802C878C 00023143 */ sra $a2, $v0, 5
/* ED140 802C8790 00C0182D */ daddu $v1, $a2, $zero
/* ED144 802C8794 00031140 */ sll $v0, $v1, 5
/* ED148 802C8798 44800000 */ mtc1 $zero, $f0
/* ED14C 802C879C 00000000 */ nop
/* ED150 802C87A0 46006032 */ c.eq.s $f12, $f0
/* ED154 802C87A4 00000000 */ nop
/* ED158 802C87A8 45010008 */ bc1t .L802C87CC
/* ED15C 802C87AC 00A23023 */ subu $a2, $a1, $v0
/* ED160 802C87B0 00031080 */ sll $v0, $v1, 2
/* ED164 802C87B4 02221021 */ addu $v0, $s1, $v0
/* ED168 802C87B8 24030001 */ addiu $v1, $zero, 1
/* ED16C 802C87BC 8C4400C4 */ lw $a0, 0xc4($v0)
/* ED170 802C87C0 00C31804 */ sllv $v1, $v1, $a2
/* ED174 802C87C4 080B21FA */ j .L802C87E8
/* ED178 802C87C8 00832025 */ or $a0, $a0, $v1
.L802C87CC:
/* ED17C 802C87CC 00031080 */ sll $v0, $v1, 2
/* ED180 802C87D0 02221021 */ addu $v0, $s1, $v0
/* ED184 802C87D4 24030001 */ addiu $v1, $zero, 1
/* ED188 802C87D8 00C31804 */ sllv $v1, $v1, $a2
/* ED18C 802C87DC 8C4400C4 */ lw $a0, 0xc4($v0)
/* ED190 802C87E0 00031827 */ nor $v1, $zero, $v1
/* ED194 802C87E4 00832024 */ and $a0, $a0, $v1
.L802C87E8:
/* ED198 802C87E8 080B21D7 */ j .L802C875C
/* ED19C 802C87EC AC4400C4 */ sw $a0, 0xc4($v0)
.L802C87F0:
/* ED1A0 802C87F0 3442A600 */ ori $v0, $v0, 0xa600
/* ED1A4 802C87F4 0045102A */ slt $v0, $v0, $a1
/* ED1A8 802C87F8 14400010 */ bnez $v0, .L802C883C
/* ED1AC 802C87FC 3C02FECE */ lui $v0, 0xfece
/* ED1B0 802C8800 3C0202FA */ lui $v0, 0x2fa
/* ED1B4 802C8804 3442F080 */ ori $v0, $v0, 0xf080
/* ED1B8 802C8808 00A22821 */ addu $a1, $a1, $v0
/* ED1BC 802C880C 3C11802E */ lui $s1, %hi(gMapVars)
/* ED1C0 802C8810 2631A484 */ addiu $s1, $s1, %lo(gMapVars)
/* ED1C4 802C8814 8E220000 */ lw $v0, ($s1)
/* ED1C8 802C8818 00058080 */ sll $s0, $a1, 2
/* ED1CC 802C881C 02021021 */ addu $v0, $s0, $v0
/* ED1D0 802C8820 0C0B125B */ jal evt_float_to_fixed_var
/* ED1D4 802C8824 8C520000 */ lw $s2, ($v0)
/* ED1D8 802C8828 8E230000 */ lw $v1, ($s1)
/* ED1DC 802C882C 0240202D */ daddu $a0, $s2, $zero
/* ED1E0 802C8830 02038021 */ addu $s0, $s0, $v1
/* ED1E4 802C8834 080B221C */ j .L802C8870
/* ED1E8 802C8838 AE020000 */ sw $v0, ($s0)
.L802C883C:
/* ED1EC 802C883C 3442D300 */ ori $v0, $v0, 0xd300
/* ED1F0 802C8840 0045102A */ slt $v0, $v0, $a1
/* ED1F4 802C8844 1440000C */ bnez $v0, .L802C8878
/* ED1F8 802C8848 46006006 */ mov.s $f0, $f12
/* ED1FC 802C884C 3C0201C9 */ lui $v0, 0x1c9
/* ED200 802C8850 3442C380 */ ori $v0, $v0, 0xc380
/* ED204 802C8854 00A22821 */ addu $a1, $a1, $v0
/* ED208 802C8858 00058080 */ sll $s0, $a1, 2
/* ED20C 802C885C 02308021 */ addu $s0, $s1, $s0
/* ED210 802C8860 0C0B125B */ jal evt_float_to_fixed_var
/* ED214 802C8864 8E120084 */ lw $s2, 0x84($s0)
/* ED218 802C8868 AE020084 */ sw $v0, 0x84($s0)
/* ED21C 802C886C 0240202D */ daddu $a0, $s2, $zero
.L802C8870:
/* ED220 802C8870 0C0B1248 */ jal evt_fixed_var_to_float
/* ED224 802C8874 00000000 */ nop
.L802C8878:
/* ED228 802C8878 8FBF001C */ lw $ra, 0x1c($sp)
/* ED22C 802C887C 8FB20018 */ lw $s2, 0x18($sp)
/* ED230 802C8880 8FB10014 */ lw $s1, 0x14($sp)
/* ED234 802C8884 8FB00010 */ lw $s0, 0x10($sp)
/* ED238 802C8888 03E00008 */ jr $ra
/* ED23C 802C888C 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,257 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel evt_set_variable
/* ECA48 802C8098 27BDFFE0 */ addiu $sp, $sp, -0x20
/* ECA4C 802C809C 0080382D */ daddu $a3, $a0, $zero
/* ECA50 802C80A0 AFB00010 */ sw $s0, 0x10($sp)
/* ECA54 802C80A4 00A0802D */ daddu $s0, $a1, $zero
/* ECA58 802C80A8 AFB20018 */ sw $s2, 0x18($sp)
/* ECA5C 802C80AC 00C0902D */ daddu $s2, $a2, $zero
/* ECA60 802C80B0 3C02EFE8 */ lui $v0, 0xefe8
/* ECA64 802C80B4 34422080 */ ori $v0, $v0, 0x2080
/* ECA68 802C80B8 0050102A */ slt $v0, $v0, $s0
/* ECA6C 802C80BC AFBF001C */ sw $ra, 0x1c($sp)
/* ECA70 802C80C0 10400099 */ beqz $v0, .L802C8328
/* ECA74 802C80C4 AFB10014 */ sw $s1, 0x14($sp)
/* ECA78 802C80C8 3C02F2E3 */ lui $v0, 0xf2e3
/* ECA7C 802C80CC 34421100 */ ori $v0, $v0, 0x1100
/* ECA80 802C80D0 0050102A */ slt $v0, $v0, $s0
/* ECA84 802C80D4 14400007 */ bnez $v0, .L802C80F4
/* ECA88 802C80D8 3C02F414 */ lui $v0, 0xf414
/* ECA8C 802C80DC 0C0B1248 */ jal evt_fixed_var_to_float
/* ECA90 802C80E0 0240202D */ daddu $a0, $s2, $zero
/* ECA94 802C80E4 4600008D */ trunc.w.s $f2, $f0
/* ECA98 802C80E8 44021000 */ mfc1 $v0, $f2
/* ECA9C 802C80EC 080B2105 */ j .L802C8414
/* ECAA0 802C80F0 00000000 */ nop
.L802C80F4:
/* ECAA4 802C80F4 34423E00 */ ori $v0, $v0, 0x3e00
/* ECAA8 802C80F8 0050102A */ slt $v0, $v0, $s0
/* ECAAC 802C80FC 54400017 */ bnel $v0, $zero, .L802C815C
/* ECAB0 802C8100 3C02F545 */ lui $v0, 0xf545
/* ECAB4 802C8104 3C020C84 */ lui $v0, 0xc84
/* ECAB8 802C8108 34425880 */ ori $v0, $v0, 0x5880
/* ECABC 802C810C 02028021 */ addu $s0, $s0, $v0
/* ECAC0 802C8110 06010002 */ bgez $s0, .L802C811C
/* ECAC4 802C8114 0200102D */ daddu $v0, $s0, $zero
/* ECAC8 802C8118 2602001F */ addiu $v0, $s0, 0x1f
.L802C811C:
/* ECACC 802C811C 00022943 */ sra $a1, $v0, 5
/* ECAD0 802C8120 00A0202D */ daddu $a0, $a1, $zero
/* ECAD4 802C8124 00041140 */ sll $v0, $a0, 5
/* ECAD8 802C8128 12400009 */ beqz $s2, .L802C8150
/* ECADC 802C812C 02022823 */ subu $a1, $s0, $v0
/* ECAE0 802C8130 8CE20140 */ lw $v0, 0x140($a3)
/* ECAE4 802C8134 00042080 */ sll $a0, $a0, 2
/* ECAE8 802C8138 00822021 */ addu $a0, $a0, $v0
/* ECAEC 802C813C 24020001 */ addiu $v0, $zero, 1
/* ECAF0 802C8140 8C830000 */ lw $v1, ($a0)
/* ECAF4 802C8144 00A21004 */ sllv $v0, $v0, $a1
/* ECAF8 802C8148 080B20C9 */ j .L802C8324
/* ECAFC 802C814C 00621825 */ or $v1, $v1, $v0
.L802C8150:
/* ECB00 802C8150 8CE20140 */ lw $v0, 0x140($a3)
/* ECB04 802C8154 080B20C3 */ j .L802C830C
/* ECB08 802C8158 00042080 */ sll $a0, $a0, 2
.L802C815C:
/* ECB0C 802C815C 34426B00 */ ori $v0, $v0, 0x6b00
/* ECB10 802C8160 0050102A */ slt $v0, $v0, $s0
/* ECB14 802C8164 1440000A */ bnez $v0, .L802C8190
/* ECB18 802C8168 3C02F676 */ lui $v0, 0xf676
/* ECB1C 802C816C 3C020B53 */ lui $v0, 0xb53
/* ECB20 802C8170 34422B80 */ ori $v0, $v0, 0x2b80
/* ECB24 802C8174 02028021 */ addu $s0, $s0, $v0
/* ECB28 802C8178 8CE3013C */ lw $v1, 0x13c($a3)
/* ECB2C 802C817C 00101080 */ sll $v0, $s0, 2
/* ECB30 802C8180 00431021 */ addu $v0, $v0, $v1
/* ECB34 802C8184 8C510000 */ lw $s1, ($v0)
/* ECB38 802C8188 080B2104 */ j .L802C8410
/* ECB3C 802C818C AC520000 */ sw $s2, ($v0)
.L802C8190:
/* ECB40 802C8190 34429800 */ ori $v0, $v0, 0x9800
/* ECB44 802C8194 0050102A */ slt $v0, $v0, $s0
/* ECB48 802C8198 1440000C */ bnez $v0, .L802C81CC
/* ECB4C 802C819C 3C02F7A7 */ lui $v0, 0xf7a7
/* ECB50 802C81A0 3C020A21 */ lui $v0, 0xa21
/* ECB54 802C81A4 3442FE80 */ ori $v0, $v0, 0xfe80
/* ECB58 802C81A8 02028021 */ addu $s0, $s0, $v0
/* ECB5C 802C81AC 0C05154E */ jal get_global_byte
/* ECB60 802C81B0 0200202D */ daddu $a0, $s0, $zero
/* ECB64 802C81B4 0040882D */ daddu $s1, $v0, $zero
/* ECB68 802C81B8 0200202D */ daddu $a0, $s0, $zero
/* ECB6C 802C81BC 0C051548 */ jal set_global_byte
/* ECB70 802C81C0 0240282D */ daddu $a1, $s2, $zero
/* ECB74 802C81C4 080B2105 */ j .L802C8414
/* ECB78 802C81C8 0220102D */ daddu $v0, $s1, $zero
.L802C81CC:
/* ECB7C 802C81CC 3442C500 */ ori $v0, $v0, 0xc500
/* ECB80 802C81D0 0050102A */ slt $v0, $v0, $s0
/* ECB84 802C81D4 1440000C */ bnez $v0, .L802C8208
/* ECB88 802C81D8 3C02F8D8 */ lui $v0, 0xf8d8
/* ECB8C 802C81DC 3C0208F0 */ lui $v0, 0x8f0
/* ECB90 802C81E0 3442D180 */ ori $v0, $v0, 0xd180
/* ECB94 802C81E4 02028021 */ addu $s0, $s0, $v0
/* ECB98 802C81E8 0C051594 */ jal get_area_byte
/* ECB9C 802C81EC 0200202D */ daddu $a0, $s0, $zero
/* ECBA0 802C81F0 0040882D */ daddu $s1, $v0, $zero
/* ECBA4 802C81F4 0200202D */ daddu $a0, $s0, $zero
/* ECBA8 802C81F8 0C05158E */ jal set_area_byte
/* ECBAC 802C81FC 0240282D */ daddu $a1, $s2, $zero
/* ECBB0 802C8200 080B2105 */ j .L802C8414
/* ECBB4 802C8204 0220102D */ daddu $v0, $s1, $zero
.L802C8208:
/* ECBB8 802C8208 3442F200 */ ori $v0, $v0, 0xf200
/* ECBBC 802C820C 0050102A */ slt $v0, $v0, $s0
/* ECBC0 802C8210 14400010 */ bnez $v0, .L802C8254
/* ECBC4 802C8214 3C02FA0A */ lui $v0, 0xfa0a
/* ECBC8 802C8218 3C0207BF */ lui $v0, 0x7bf
/* ECBCC 802C821C 3442A480 */ ori $v0, $v0, 0xa480
/* ECBD0 802C8220 02028021 */ addu $s0, $s0, $v0
/* ECBD4 802C8224 0C05152F */ jal get_global_flag
/* ECBD8 802C8228 0200202D */ daddu $a0, $s0, $zero
/* ECBDC 802C822C 12400005 */ beqz $s2, .L802C8244
/* ECBE0 802C8230 0040882D */ daddu $s1, $v0, $zero
/* ECBE4 802C8234 0C051514 */ jal set_global_flag
/* ECBE8 802C8238 0200202D */ daddu $a0, $s0, $zero
/* ECBEC 802C823C 080B2105 */ j .L802C8414
/* ECBF0 802C8240 0220102D */ daddu $v0, $s1, $zero
.L802C8244:
/* ECBF4 802C8244 0C0514F8 */ jal clear_global_flag
/* ECBF8 802C8248 0200202D */ daddu $a0, $s0, $zero
/* ECBFC 802C824C 080B2105 */ j .L802C8414
/* ECC00 802C8250 0220102D */ daddu $v0, $s1, $zero
.L802C8254:
/* ECC04 802C8254 34421F00 */ ori $v0, $v0, 0x1f00
/* ECC08 802C8258 0050102A */ slt $v0, $v0, $s0
/* ECC0C 802C825C 14400010 */ bnez $v0, .L802C82A0
/* ECC10 802C8260 3C02FB3B */ lui $v0, 0xfb3b
/* ECC14 802C8264 3C02068E */ lui $v0, 0x68e
/* ECC18 802C8268 34427780 */ ori $v0, $v0, 0x7780
/* ECC1C 802C826C 02028021 */ addu $s0, $s0, $v0
/* ECC20 802C8270 0C05157C */ jal get_area_flag
/* ECC24 802C8274 0200202D */ daddu $a0, $s0, $zero
/* ECC28 802C8278 12400005 */ beqz $s2, .L802C8290
/* ECC2C 802C827C 0040882D */ daddu $s1, $v0, $zero
/* ECC30 802C8280 0C051568 */ jal set_area_flag
/* ECC34 802C8284 0200202D */ daddu $a0, $s0, $zero
/* ECC38 802C8288 080B2105 */ j .L802C8414
/* ECC3C 802C828C 0220102D */ daddu $v0, $s1, $zero
.L802C8290:
/* ECC40 802C8290 0C051553 */ jal clear_area_flag
/* ECC44 802C8294 0200202D */ daddu $a0, $s0, $zero
/* ECC48 802C8298 080B2105 */ j .L802C8414
/* ECC4C 802C829C 0220102D */ daddu $v0, $s1, $zero
.L802C82A0:
/* ECC50 802C82A0 34424C00 */ ori $v0, $v0, 0x4c00
/* ECC54 802C82A4 0050102A */ slt $v0, $v0, $s0
/* ECC58 802C82A8 54400021 */ bnel $v0, $zero, .L802C8330
/* ECC5C 802C82AC 3C02FC6C */ lui $v0, 0xfc6c
/* ECC60 802C82B0 3C02055D */ lui $v0, 0x55d
/* ECC64 802C82B4 34424A80 */ ori $v0, $v0, 0x4a80
/* ECC68 802C82B8 02028021 */ addu $s0, $s0, $v0
/* ECC6C 802C82BC 06010002 */ bgez $s0, .L802C82C8
/* ECC70 802C82C0 0200102D */ daddu $v0, $s0, $zero
/* ECC74 802C82C4 2602001F */ addiu $v0, $s0, 0x1f
.L802C82C8:
/* ECC78 802C82C8 00022943 */ sra $a1, $v0, 5
/* ECC7C 802C82CC 00A0202D */ daddu $a0, $a1, $zero
/* ECC80 802C82D0 00041140 */ sll $v0, $a0, 5
/* ECC84 802C82D4 1240000A */ beqz $s2, .L802C8300
/* ECC88 802C82D8 02022823 */ subu $a1, $s0, $v0
/* ECC8C 802C82DC 3C02802E */ lui $v0, %hi(gMapFlags)
/* ECC90 802C82E0 8C42A480 */ lw $v0, %lo(gMapFlags)($v0)
/* ECC94 802C82E4 00042080 */ sll $a0, $a0, 2
/* ECC98 802C82E8 00822021 */ addu $a0, $a0, $v0
/* ECC9C 802C82EC 24020001 */ addiu $v0, $zero, 1
/* ECCA0 802C82F0 8C830000 */ lw $v1, ($a0)
/* ECCA4 802C82F4 00A21004 */ sllv $v0, $v0, $a1
/* ECCA8 802C82F8 080B20C9 */ j .L802C8324
/* ECCAC 802C82FC 00621825 */ or $v1, $v1, $v0
.L802C8300:
/* ECCB0 802C8300 3C02802E */ lui $v0, %hi(gMapFlags)
/* ECCB4 802C8304 8C42A480 */ lw $v0, %lo(gMapFlags)($v0)
/* ECCB8 802C8308 00042080 */ sll $a0, $a0, 2
.L802C830C:
/* ECCBC 802C830C 00822021 */ addu $a0, $a0, $v0
/* ECCC0 802C8310 24020001 */ addiu $v0, $zero, 1
/* ECCC4 802C8314 00A21004 */ sllv $v0, $v0, $a1
/* ECCC8 802C8318 8C830000 */ lw $v1, ($a0)
/* ECCCC 802C831C 00021027 */ nor $v0, $zero, $v0
/* ECCD0 802C8320 00621824 */ and $v1, $v1, $v0
.L802C8324:
/* ECCD4 802C8324 AC830000 */ sw $v1, ($a0)
.L802C8328:
/* ECCD8 802C8328 080B2105 */ j .L802C8414
/* ECCDC 802C832C 0240102D */ daddu $v0, $s2, $zero
.L802C8330:
/* ECCE0 802C8330 34427900 */ ori $v0, $v0, 0x7900
/* ECCE4 802C8334 0050102A */ slt $v0, $v0, $s0
/* ECCE8 802C8338 5440001C */ bnel $v0, $zero, .L802C83AC
/* ECCEC 802C833C 3C02FD9D */ lui $v0, 0xfd9d
/* ECCF0 802C8340 3C02042C */ lui $v0, 0x42c
/* ECCF4 802C8344 34421D80 */ ori $v0, $v0, 0x1d80
/* ECCF8 802C8348 02028021 */ addu $s0, $s0, $v0
/* ECCFC 802C834C 06010002 */ bgez $s0, .L802C8358
/* ECD00 802C8350 0200102D */ daddu $v0, $s0, $zero
/* ECD04 802C8354 2602001F */ addiu $v0, $s0, 0x1f
.L802C8358:
/* ECD08 802C8358 00022943 */ sra $a1, $v0, 5
/* ECD0C 802C835C 00A0182D */ daddu $v1, $a1, $zero
/* ECD10 802C8360 00031140 */ sll $v0, $v1, 5
/* ECD14 802C8364 12400008 */ beqz $s2, .L802C8388
/* ECD18 802C8368 02022823 */ subu $a1, $s0, $v0
/* ECD1C 802C836C 00031080 */ sll $v0, $v1, 2
/* ECD20 802C8370 00E21021 */ addu $v0, $a3, $v0
/* ECD24 802C8374 24030001 */ addiu $v1, $zero, 1
/* ECD28 802C8378 8C4400C4 */ lw $a0, 0xc4($v0)
/* ECD2C 802C837C 00A31804 */ sllv $v1, $v1, $a1
/* ECD30 802C8380 080B20E9 */ j .L802C83A4
/* ECD34 802C8384 00832025 */ or $a0, $a0, $v1
.L802C8388:
/* ECD38 802C8388 00031080 */ sll $v0, $v1, 2
/* ECD3C 802C838C 00E21021 */ addu $v0, $a3, $v0
/* ECD40 802C8390 24030001 */ addiu $v1, $zero, 1
/* ECD44 802C8394 00A31804 */ sllv $v1, $v1, $a1
/* ECD48 802C8398 8C4400C4 */ lw $a0, 0xc4($v0)
/* ECD4C 802C839C 00031827 */ nor $v1, $zero, $v1
/* ECD50 802C83A0 00832024 */ and $a0, $a0, $v1
.L802C83A4:
/* ECD54 802C83A4 080B20CA */ j .L802C8328
/* ECD58 802C83A8 AC4400C4 */ sw $a0, 0xc4($v0)
.L802C83AC:
/* ECD5C 802C83AC 3442A600 */ ori $v0, $v0, 0xa600
/* ECD60 802C83B0 0050102A */ slt $v0, $v0, $s0
/* ECD64 802C83B4 1440000B */ bnez $v0, .L802C83E4
/* ECD68 802C83B8 3C02FECE */ lui $v0, 0xfece
/* ECD6C 802C83BC 3C0202FA */ lui $v0, 0x2fa
/* ECD70 802C83C0 3442F080 */ ori $v0, $v0, 0xf080
/* ECD74 802C83C4 02028021 */ addu $s0, $s0, $v0
/* ECD78 802C83C8 3C03802E */ lui $v1, %hi(gMapVars)
/* ECD7C 802C83CC 8C63A484 */ lw $v1, %lo(gMapVars)($v1)
/* ECD80 802C83D0 00101080 */ sll $v0, $s0, 2
/* ECD84 802C83D4 00431021 */ addu $v0, $v0, $v1
/* ECD88 802C83D8 8C510000 */ lw $s1, ($v0)
/* ECD8C 802C83DC 080B2104 */ j .L802C8410
/* ECD90 802C83E0 AC520000 */ sw $s2, ($v0)
.L802C83E4:
/* ECD94 802C83E4 3442D300 */ ori $v0, $v0, 0xd300
/* ECD98 802C83E8 0050102A */ slt $v0, $v0, $s0
/* ECD9C 802C83EC 14400009 */ bnez $v0, .L802C8414
/* ECDA0 802C83F0 0240102D */ daddu $v0, $s2, $zero
/* ECDA4 802C83F4 3C0201C9 */ lui $v0, 0x1c9
/* ECDA8 802C83F8 3442C380 */ ori $v0, $v0, 0xc380
/* ECDAC 802C83FC 02028021 */ addu $s0, $s0, $v0
/* ECDB0 802C8400 00101080 */ sll $v0, $s0, 2
/* ECDB4 802C8404 00E21021 */ addu $v0, $a3, $v0
/* ECDB8 802C8408 8C510084 */ lw $s1, 0x84($v0)
/* ECDBC 802C840C AC520084 */ sw $s2, 0x84($v0)
.L802C8410:
/* ECDC0 802C8410 0220102D */ daddu $v0, $s1, $zero
.L802C8414:
/* ECDC4 802C8414 8FBF001C */ lw $ra, 0x1c($sp)
/* ECDC8 802C8418 8FB20018 */ lw $s2, 0x18($sp)
/* ECDCC 802C841C 8FB10014 */ lw $s1, 0x14($sp)
/* ECDD0 802C8420 8FB00010 */ lw $s0, 0x10($sp)
/* ECDD4 802C8424 03E00008 */ jr $ra
/* ECDD8 802C8428 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,377 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.section .rodata
dlabel jtbl_800982C0
.word .L800344A8_F8A8, .L800344A8_F8A8, .L800344A8_F8A8, .L80034628_FA28, .L80034628_FA28, .L80034628_FA28, .L800347A8_FBA8, .L800347A8_FBA8, .L800347A8_FBA8, .L800347A8_FBA8
.section .text
glabel appendGfx_intro_logos
/* F7A4 800343A4 27BDFFE8 */ addiu $sp, $sp, -0x18
/* F7A8 800343A8 3C05E200 */ lui $a1, 0xe200
/* F7AC 800343AC 34A5001C */ ori $a1, $a1, 0x1c
/* F7B0 800343B0 3C08FCFF */ lui $t0, 0xfcff
/* F7B4 800343B4 3508FFFF */ ori $t0, $t0, 0xffff
/* F7B8 800343B8 3C07FFFC */ lui $a3, 0xfffc
/* F7BC 800343BC 34E7F87C */ ori $a3, $a3, 0xf87c
/* F7C0 800343C0 3C09E300 */ lui $t1, 0xe300
/* F7C4 800343C4 35290A01 */ ori $t1, $t1, 0xa01
/* F7C8 800343C8 3C0AE739 */ lui $t2, 0xe739
/* F7CC 800343CC 354AE739 */ ori $t2, $t2, 0xe739
/* F7D0 800343D0 3C0BF64F */ lui $t3, 0xf64f
/* F7D4 800343D4 3C04800A */ lui $a0, %hi(gMasterGfxPos)
/* F7D8 800343D8 2484A66C */ addiu $a0, $a0, %lo(gMasterGfxPos)
/* F7DC 800343DC 356BC3BC */ ori $t3, $t3, 0xc3bc
/* F7E0 800343E0 AFB50014 */ sw $s5, 0x14($sp)
/* F7E4 800343E4 AFB40010 */ sw $s4, 0x10($sp)
/* F7E8 800343E8 AFB3000C */ sw $s3, 0xc($sp)
/* F7EC 800343EC AFB20008 */ sw $s2, 8($sp)
/* F7F0 800343F0 AFB10004 */ sw $s1, 4($sp)
/* F7F4 800343F4 AFB00000 */ sw $s0, ($sp)
/* F7F8 800343F8 8C820000 */ lw $v0, ($a0)
/* F7FC 800343FC 3C06E700 */ lui $a2, 0xe700
/* F800 80034400 0040182D */ daddu $v1, $v0, $zero
/* F804 80034404 24420008 */ addiu $v0, $v0, 8
/* F808 80034408 AC820000 */ sw $v0, ($a0)
/* F80C 8003440C AC660000 */ sw $a2, ($v1)
/* F810 80034410 AC600004 */ sw $zero, 4($v1)
/* F814 80034414 24430008 */ addiu $v1, $v0, 8
/* F818 80034418 AC830000 */ sw $v1, ($a0)
/* F81C 8003441C 24430010 */ addiu $v1, $v0, 0x10
/* F820 80034420 AC450000 */ sw $a1, ($v0)
/* F824 80034424 AC400004 */ sw $zero, 4($v0)
/* F828 80034428 AC830000 */ sw $v1, ($a0)
/* F82C 8003442C 24430018 */ addiu $v1, $v0, 0x18
/* F830 80034430 AC480008 */ sw $t0, 8($v0)
/* F834 80034434 AC47000C */ sw $a3, 0xc($v0)
/* F838 80034438 AC830000 */ sw $v1, ($a0)
/* F83C 8003443C 3C030030 */ lui $v1, 0x30
/* F840 80034440 AC430014 */ sw $v1, 0x14($v0)
/* F844 80034444 24430020 */ addiu $v1, $v0, 0x20
/* F848 80034448 AC490010 */ sw $t1, 0x10($v0)
/* F84C 8003444C AC830000 */ sw $v1, ($a0)
/* F850 80034450 3C03F700 */ lui $v1, 0xf700
/* F854 80034454 AC430018 */ sw $v1, 0x18($v0)
/* F858 80034458 24430028 */ addiu $v1, $v0, 0x28
/* F85C 8003445C AC4A001C */ sw $t2, 0x1c($v0)
/* F860 80034460 AC830000 */ sw $v1, ($a0)
/* F864 80034464 3C058007 */ lui $a1, %hi(gGameStatusPtr)
/* F868 80034468 8CA5419C */ lw $a1, %lo(gGameStatusPtr)($a1)
/* F86C 8003446C 24430030 */ addiu $v1, $v0, 0x30
/* F870 80034470 AC4B0020 */ sw $t3, 0x20($v0)
/* F874 80034474 AC400024 */ sw $zero, 0x24($v0)
/* F878 80034478 AC830000 */ sw $v1, ($a0)
/* F87C 8003447C AC460028 */ sw $a2, 0x28($v0)
/* F880 80034480 AC40002C */ sw $zero, 0x2c($v0)
/* F884 80034484 80A300AC */ lb $v1, 0xac($a1)
/* F888 80034488 2C62000A */ sltiu $v0, $v1, 0xa
/* F88C 8003448C 10400124 */ beqz $v0, .L80034920
/* F890 80034490 00031080 */ sll $v0, $v1, 2
/* F894 80034494 3C01800A */ lui $at, %hi(jtbl_800982C0)
/* F898 80034498 00220821 */ addu $at, $at, $v0
/* F89C 8003449C 8C2282C0 */ lw $v0, %lo(jtbl_800982C0)($at)
/* F8A0 800344A0 00400008 */ jr $v0
/* F8A4 800344A4 00000000 */ nop
.L800344A8_F8A8:
/* F8A8 800344A8 0000502D */ daddu $t2, $zero, $zero
/* F8AC 800344AC 3C02800A */ lui $v0, %hi(gMasterGfxPos)
/* F8B0 800344B0 2442A66C */ addiu $v0, $v0, %lo(gMasterGfxPos)
/* F8B4 800344B4 0040482D */ daddu $t1, $v0, $zero
/* F8B8 800344B8 3C19FD10 */ lui $t9, 0xfd10
/* F8BC 800344BC 3739007F */ ori $t9, $t9, 0x7f
/* F8C0 800344C0 3C15800A */ lui $s5, %hi(D_800A0918)
/* F8C4 800344C4 26B50918 */ addiu $s5, $s5, %lo(D_800A0918)
/* F8C8 800344C8 3C0DF510 */ lui $t5, 0xf510
/* F8CC 800344CC 35AD4000 */ ori $t5, $t5, 0x4000
/* F8D0 800344D0 3C140700 */ lui $s4, 0x700
/* F8D4 800344D4 3C13E600 */ lui $s3, 0xe600
/* F8D8 800344D8 3C12F400 */ lui $s2, 0xf400
/* F8DC 800344DC 3C18071F */ lui $t8, 0x71f
/* F8E0 800344E0 3718C03C */ ori $t8, $t8, 0xc03c
/* F8E4 800344E4 3C0EE700 */ lui $t6, 0xe700
/* F8E8 800344E8 3C11F200 */ lui $s1, 0xf200
/* F8EC 800344EC 3C0F001F */ lui $t7, 0x1f
/* F8F0 800344F0 35EFC03C */ ori $t7, $t7, 0xc03c
/* F8F4 800344F4 3C10E438 */ lui $s0, 0xe438
/* F8F8 800344F8 240C0100 */ addiu $t4, $zero, 0x100
/* F8FC 800344FC 8D220000 */ lw $v0, ($t1)
/* F900 80034500 240B0140 */ addiu $t3, $zero, 0x140
/* F904 80034504 0040182D */ daddu $v1, $v0, $zero
/* F908 80034508 24420008 */ addiu $v0, $v0, 8
/* F90C 8003450C AD220000 */ sw $v0, ($t1)
/* F910 80034510 3C02DE00 */ lui $v0, 0xde00
/* F914 80034514 AC620000 */ sw $v0, ($v1)
/* F918 80034518 3C028007 */ lui $v0, %hi(D_80077908)
/* F91C 8003451C 24427908 */ addiu $v0, $v0, %lo(D_80077908)
/* F920 80034520 AC620004 */ sw $v0, 4($v1)
.L80034524:
/* F924 80034524 3C080400 */ lui $t0, 0x400
/* F928 80034528 35080400 */ ori $t0, $t0, 0x400
/* F92C 8003452C 31870FFF */ andi $a3, $t4, 0xfff
/* F930 80034530 258C0040 */ addiu $t4, $t4, 0x40
/* F934 80034534 31660FFF */ andi $a2, $t3, 0xfff
/* F938 80034538 256B0040 */ addiu $t3, $t3, 0x40
/* F93C 8003453C 000A2B00 */ sll $a1, $t2, 0xc
/* F940 80034540 254A0001 */ addiu $t2, $t2, 1
/* F944 80034544 00D03025 */ or $a2, $a2, $s0
/* F948 80034548 8D230000 */ lw $v1, ($t1)
/* F94C 8003454C 8EA20000 */ lw $v0, ($s5)
/* F950 80034550 0060202D */ daddu $a0, $v1, $zero
/* F954 80034554 24630008 */ addiu $v1, $v1, 8
/* F958 80034558 00451021 */ addu $v0, $v0, $a1
/* F95C 8003455C AD230000 */ sw $v1, ($t1)
/* F960 80034560 AC820004 */ sw $v0, 4($a0)
/* F964 80034564 24620008 */ addiu $v0, $v1, 8
/* F968 80034568 AC990000 */ sw $t9, ($a0)
/* F96C 8003456C AD220000 */ sw $v0, ($t1)
/* F970 80034570 24620010 */ addiu $v0, $v1, 0x10
/* F974 80034574 AC6D0000 */ sw $t5, ($v1)
/* F978 80034578 AC740004 */ sw $s4, 4($v1)
/* F97C 8003457C AD220000 */ sw $v0, ($t1)
/* F980 80034580 24620018 */ addiu $v0, $v1, 0x18
/* F984 80034584 AC730008 */ sw $s3, 8($v1)
/* F988 80034588 AC60000C */ sw $zero, 0xc($v1)
/* F98C 8003458C AD220000 */ sw $v0, ($t1)
/* F990 80034590 24620020 */ addiu $v0, $v1, 0x20
/* F994 80034594 AC720010 */ sw $s2, 0x10($v1)
/* F998 80034598 AC780014 */ sw $t8, 0x14($v1)
/* F99C 8003459C AD220000 */ sw $v0, ($t1)
/* F9A0 800345A0 24620028 */ addiu $v0, $v1, 0x28
/* F9A4 800345A4 AC6E0018 */ sw $t6, 0x18($v1)
/* F9A8 800345A8 AC60001C */ sw $zero, 0x1c($v1)
/* F9AC 800345AC AD220000 */ sw $v0, ($t1)
/* F9B0 800345B0 24620030 */ addiu $v0, $v1, 0x30
/* F9B4 800345B4 AC6D0020 */ sw $t5, 0x20($v1)
/* F9B8 800345B8 AC600024 */ sw $zero, 0x24($v1)
/* F9BC 800345BC AD220000 */ sw $v0, ($t1)
/* F9C0 800345C0 24620038 */ addiu $v0, $v1, 0x38
/* F9C4 800345C4 AC710028 */ sw $s1, 0x28($v1)
/* F9C8 800345C8 AC6F002C */ sw $t7, 0x2c($v1)
/* F9CC 800345CC AD220000 */ sw $v0, ($t1)
/* F9D0 800345D0 3C020018 */ lui $v0, 0x18
/* F9D4 800345D4 00E23825 */ or $a3, $a3, $v0
/* F9D8 800345D8 24620040 */ addiu $v0, $v1, 0x40
/* F9DC 800345DC AC660030 */ sw $a2, 0x30($v1)
/* F9E0 800345E0 AC670034 */ sw $a3, 0x34($v1)
/* F9E4 800345E4 AD220000 */ sw $v0, ($t1)
/* F9E8 800345E8 3C02E100 */ lui $v0, 0xe100
/* F9EC 800345EC AC620038 */ sw $v0, 0x38($v1)
/* F9F0 800345F0 24620048 */ addiu $v0, $v1, 0x48
/* F9F4 800345F4 AC60003C */ sw $zero, 0x3c($v1)
/* F9F8 800345F8 AD220000 */ sw $v0, ($t1)
/* F9FC 800345FC 3C02F100 */ lui $v0, 0xf100
/* FA00 80034600 AC620040 */ sw $v0, 0x40($v1)
/* FA04 80034604 24620050 */ addiu $v0, $v1, 0x50
/* FA08 80034608 AC680044 */ sw $t0, 0x44($v1)
/* FA0C 8003460C AD220000 */ sw $v0, ($t1)
/* FA10 80034610 29420007 */ slti $v0, $t2, 7
/* FA14 80034614 AC6E0048 */ sw $t6, 0x48($v1)
/* FA18 80034618 1440FFC2 */ bnez $v0, .L80034524
/* FA1C 8003461C AC60004C */ sw $zero, 0x4c($v1)
/* FA20 80034620 0800D248 */ j .L80034920
/* FA24 80034624 00000000 */ nop
.L80034628_FA28:
/* FA28 80034628 0000502D */ daddu $t2, $zero, $zero
/* FA2C 8003462C 3C02800A */ lui $v0, %hi(gMasterGfxPos)
/* FA30 80034630 2442A66C */ addiu $v0, $v0, %lo(gMasterGfxPos)
/* FA34 80034634 0040482D */ daddu $t1, $v0, $zero
/* FA38 80034638 3C19FD10 */ lui $t9, 0xfd10
/* FA3C 8003463C 373900FF */ ori $t9, $t9, 0xff
/* FA40 80034640 3C15800A */ lui $s5, %hi(D_800A091C)
/* FA44 80034644 26B5091C */ addiu $s5, $s5, %lo(D_800A091C)
/* FA48 80034648 3C0DF510 */ lui $t5, 0xf510
/* FA4C 8003464C 35AD8000 */ ori $t5, $t5, 0x8000
/* FA50 80034650 3C140700 */ lui $s4, 0x700
/* FA54 80034654 3C13E600 */ lui $s3, 0xe600
/* FA58 80034658 3C12F400 */ lui $s2, 0xf400
/* FA5C 8003465C 3C18073F */ lui $t8, 0x73f
/* FA60 80034660 3718C01C */ ori $t8, $t8, 0xc01c
/* FA64 80034664 3C0EE700 */ lui $t6, 0xe700
/* FA68 80034668 3C11F200 */ lui $s1, 0xf200
/* FA6C 8003466C 3C0F003F */ lui $t7, 0x3f
/* FA70 80034670 35EFC01C */ ori $t7, $t7, 0xc01c
/* FA74 80034674 3C10E448 */ lui $s0, 0xe448
/* FA78 80034678 240C0164 */ addiu $t4, $zero, 0x164
/* FA7C 8003467C 8D220000 */ lw $v0, ($t1)
/* FA80 80034680 240B0184 */ addiu $t3, $zero, 0x184
/* FA84 80034684 0040182D */ daddu $v1, $v0, $zero
/* FA88 80034688 24420008 */ addiu $v0, $v0, 8
/* FA8C 8003468C AD220000 */ sw $v0, ($t1)
/* FA90 80034690 3C02DE00 */ lui $v0, 0xde00
/* FA94 80034694 AC620000 */ sw $v0, ($v1)
/* FA98 80034698 3C028007 */ lui $v0, %hi(D_80077908)
/* FA9C 8003469C 24427908 */ addiu $v0, $v0, %lo(D_80077908)
/* FAA0 800346A0 AC620004 */ sw $v0, 4($v1)
.L800346A4:
/* FAA4 800346A4 3C080400 */ lui $t0, 0x400
/* FAA8 800346A8 35080400 */ ori $t0, $t0, 0x400
/* FAAC 800346AC 31870FFF */ andi $a3, $t4, 0xfff
/* FAB0 800346B0 258C0020 */ addiu $t4, $t4, 0x20
/* FAB4 800346B4 31660FFF */ andi $a2, $t3, 0xfff
/* FAB8 800346B8 256B0020 */ addiu $t3, $t3, 0x20
/* FABC 800346BC 000A2B00 */ sll $a1, $t2, 0xc
/* FAC0 800346C0 254A0001 */ addiu $t2, $t2, 1
/* FAC4 800346C4 00D03025 */ or $a2, $a2, $s0
/* FAC8 800346C8 8D230000 */ lw $v1, ($t1)
/* FACC 800346CC 8EA20000 */ lw $v0, ($s5)
/* FAD0 800346D0 0060202D */ daddu $a0, $v1, $zero
/* FAD4 800346D4 24630008 */ addiu $v1, $v1, 8
/* FAD8 800346D8 00451021 */ addu $v0, $v0, $a1
/* FADC 800346DC AD230000 */ sw $v1, ($t1)
/* FAE0 800346E0 AC820004 */ sw $v0, 4($a0)
/* FAE4 800346E4 24620008 */ addiu $v0, $v1, 8
/* FAE8 800346E8 AC990000 */ sw $t9, ($a0)
/* FAEC 800346EC AD220000 */ sw $v0, ($t1)
/* FAF0 800346F0 24620010 */ addiu $v0, $v1, 0x10
/* FAF4 800346F4 AC6D0000 */ sw $t5, ($v1)
/* FAF8 800346F8 AC740004 */ sw $s4, 4($v1)
/* FAFC 800346FC AD220000 */ sw $v0, ($t1)
/* FB00 80034700 24620018 */ addiu $v0, $v1, 0x18
/* FB04 80034704 AC730008 */ sw $s3, 8($v1)
/* FB08 80034708 AC60000C */ sw $zero, 0xc($v1)
/* FB0C 8003470C AD220000 */ sw $v0, ($t1)
/* FB10 80034710 24620020 */ addiu $v0, $v1, 0x20
/* FB14 80034714 AC720010 */ sw $s2, 0x10($v1)
/* FB18 80034718 AC780014 */ sw $t8, 0x14($v1)
/* FB1C 8003471C AD220000 */ sw $v0, ($t1)
/* FB20 80034720 24620028 */ addiu $v0, $v1, 0x28
/* FB24 80034724 AC6E0018 */ sw $t6, 0x18($v1)
/* FB28 80034728 AC60001C */ sw $zero, 0x1c($v1)
/* FB2C 8003472C AD220000 */ sw $v0, ($t1)
/* FB30 80034730 24620030 */ addiu $v0, $v1, 0x30
/* FB34 80034734 AC6D0020 */ sw $t5, 0x20($v1)
/* FB38 80034738 AC600024 */ sw $zero, 0x24($v1)
/* FB3C 8003473C AD220000 */ sw $v0, ($t1)
/* FB40 80034740 24620038 */ addiu $v0, $v1, 0x38
/* FB44 80034744 AC710028 */ sw $s1, 0x28($v1)
/* FB48 80034748 AC6F002C */ sw $t7, 0x2c($v1)
/* FB4C 8003474C AD220000 */ sw $v0, ($t1)
/* FB50 80034750 3C020008 */ lui $v0, 8
/* FB54 80034754 00E23825 */ or $a3, $a3, $v0
/* FB58 80034758 24620040 */ addiu $v0, $v1, 0x40
/* FB5C 8003475C AC660030 */ sw $a2, 0x30($v1)
/* FB60 80034760 AC670034 */ sw $a3, 0x34($v1)
/* FB64 80034764 AD220000 */ sw $v0, ($t1)
/* FB68 80034768 3C02E100 */ lui $v0, 0xe100
/* FB6C 8003476C AC620038 */ sw $v0, 0x38($v1)
/* FB70 80034770 24620048 */ addiu $v0, $v1, 0x48
/* FB74 80034774 AC60003C */ sw $zero, 0x3c($v1)
/* FB78 80034778 AD220000 */ sw $v0, ($t1)
/* FB7C 8003477C 3C02F100 */ lui $v0, 0xf100
/* FB80 80034780 AC620040 */ sw $v0, 0x40($v1)
/* FB84 80034784 24620050 */ addiu $v0, $v1, 0x50
/* FB88 80034788 AC680044 */ sw $t0, 0x44($v1)
/* FB8C 8003478C AD220000 */ sw $v0, ($t1)
/* FB90 80034790 29420006 */ slti $v0, $t2, 6
/* FB94 80034794 AC6E0048 */ sw $t6, 0x48($v1)
/* FB98 80034798 1440FFC2 */ bnez $v0, .L800346A4
/* FB9C 8003479C AC60004C */ sw $zero, 0x4c($v1)
/* FBA0 800347A0 0800D248 */ j .L80034920
/* FBA4 800347A4 00000000 */ nop
.L800347A8_FBA8:
/* FBA8 800347A8 0000502D */ daddu $t2, $zero, $zero
/* FBAC 800347AC 3C02800A */ lui $v0, %hi(gMasterGfxPos)
/* FBB0 800347B0 2442A66C */ addiu $v0, $v0, %lo(gMasterGfxPos)
/* FBB4 800347B4 0040482D */ daddu $t1, $v0, $zero
/* FBB8 800347B8 3C19FD10 */ lui $t9, 0xfd10
/* FBBC 800347BC 373900FF */ ori $t9, $t9, 0xff
/* FBC0 800347C0 3C15800A */ lui $s5, %hi(D_800A0914)
/* FBC4 800347C4 26B50914 */ addiu $s5, $s5, %lo(D_800A0914)
/* FBC8 800347C8 3C0DF510 */ lui $t5, 0xf510
/* FBCC 800347CC 35AD8000 */ ori $t5, $t5, 0x8000
/* FBD0 800347D0 3C140700 */ lui $s4, 0x700
/* FBD4 800347D4 3C13E600 */ lui $s3, 0xe600
/* FBD8 800347D8 3C12F400 */ lui $s2, 0xf400
/* FBDC 800347DC 3C18073F */ lui $t8, 0x73f
/* FBE0 800347E0 3718C01C */ ori $t8, $t8, 0xc01c
/* FBE4 800347E4 3C0EE700 */ lui $t6, 0xe700
/* FBE8 800347E8 3C11F200 */ lui $s1, 0xf200
/* FBEC 800347EC 3C0F003F */ lui $t7, 0x3f
/* FBF0 800347F0 35EFC01C */ ori $t7, $t7, 0xc01c
/* FBF4 800347F4 3C10E448 */ lui $s0, 0xe448
/* FBF8 800347F8 240C00EC */ addiu $t4, $zero, 0xec
/* FBFC 800347FC 8D220000 */ lw $v0, ($t1)
/* FC00 80034800 240B010C */ addiu $t3, $zero, 0x10c
/* FC04 80034804 0040182D */ daddu $v1, $v0, $zero
/* FC08 80034808 24420008 */ addiu $v0, $v0, 8
/* FC0C 8003480C AD220000 */ sw $v0, ($t1)
/* FC10 80034810 3C02DE00 */ lui $v0, 0xde00
/* FC14 80034814 AC620000 */ sw $v0, ($v1)
/* FC18 80034818 3C028007 */ lui $v0, %hi(D_80077908)
/* FC1C 8003481C 24427908 */ addiu $v0, $v0, %lo(D_80077908)
/* FC20 80034820 AC620004 */ sw $v0, 4($v1)
.L80034824:
/* FC24 80034824 3C080400 */ lui $t0, 0x400
/* FC28 80034828 35080400 */ ori $t0, $t0, 0x400
/* FC2C 8003482C 31870FFF */ andi $a3, $t4, 0xfff
/* FC30 80034830 258C0020 */ addiu $t4, $t4, 0x20
/* FC34 80034834 31660FFF */ andi $a2, $t3, 0xfff
/* FC38 80034838 256B0020 */ addiu $t3, $t3, 0x20
/* FC3C 8003483C 000A2B00 */ sll $a1, $t2, 0xc
/* FC40 80034840 254A0001 */ addiu $t2, $t2, 1
/* FC44 80034844 00D03025 */ or $a2, $a2, $s0
/* FC48 80034848 8D230000 */ lw $v1, ($t1)
/* FC4C 8003484C 8EA20000 */ lw $v0, ($s5)
/* FC50 80034850 0060202D */ daddu $a0, $v1, $zero
/* FC54 80034854 24630008 */ addiu $v1, $v1, 8
/* FC58 80034858 00451021 */ addu $v0, $v0, $a1
/* FC5C 8003485C AD230000 */ sw $v1, ($t1)
/* FC60 80034860 AC820004 */ sw $v0, 4($a0)
/* FC64 80034864 24620008 */ addiu $v0, $v1, 8
/* FC68 80034868 AC990000 */ sw $t9, ($a0)
/* FC6C 8003486C AD220000 */ sw $v0, ($t1)
/* FC70 80034870 24620010 */ addiu $v0, $v1, 0x10
/* FC74 80034874 AC6D0000 */ sw $t5, ($v1)
/* FC78 80034878 AC740004 */ sw $s4, 4($v1)
/* FC7C 8003487C AD220000 */ sw $v0, ($t1)
/* FC80 80034880 24620018 */ addiu $v0, $v1, 0x18
/* FC84 80034884 AC730008 */ sw $s3, 8($v1)
/* FC88 80034888 AC60000C */ sw $zero, 0xc($v1)
/* FC8C 8003488C AD220000 */ sw $v0, ($t1)
/* FC90 80034890 24620020 */ addiu $v0, $v1, 0x20
/* FC94 80034894 AC720010 */ sw $s2, 0x10($v1)
/* FC98 80034898 AC780014 */ sw $t8, 0x14($v1)
/* FC9C 8003489C AD220000 */ sw $v0, ($t1)
/* FCA0 800348A0 24620028 */ addiu $v0, $v1, 0x28
/* FCA4 800348A4 AC6E0018 */ sw $t6, 0x18($v1)
/* FCA8 800348A8 AC60001C */ sw $zero, 0x1c($v1)
/* FCAC 800348AC AD220000 */ sw $v0, ($t1)
/* FCB0 800348B0 24620030 */ addiu $v0, $v1, 0x30
/* FCB4 800348B4 AC6D0020 */ sw $t5, 0x20($v1)
/* FCB8 800348B8 AC600024 */ sw $zero, 0x24($v1)
/* FCBC 800348BC AD220000 */ sw $v0, ($t1)
/* FCC0 800348C0 24620038 */ addiu $v0, $v1, 0x38
/* FCC4 800348C4 AC710028 */ sw $s1, 0x28($v1)
/* FCC8 800348C8 AC6F002C */ sw $t7, 0x2c($v1)
/* FCCC 800348CC AD220000 */ sw $v0, ($t1)
/* FCD0 800348D0 3C020008 */ lui $v0, 8
/* FCD4 800348D4 00E23825 */ or $a3, $a3, $v0
/* FCD8 800348D8 24620040 */ addiu $v0, $v1, 0x40
/* FCDC 800348DC AC660030 */ sw $a2, 0x30($v1)
/* FCE0 800348E0 AC670034 */ sw $a3, 0x34($v1)
/* FCE4 800348E4 AD220000 */ sw $v0, ($t1)
/* FCE8 800348E8 3C02E100 */ lui $v0, 0xe100
/* FCEC 800348EC AC620038 */ sw $v0, 0x38($v1)
/* FCF0 800348F0 24620048 */ addiu $v0, $v1, 0x48
/* FCF4 800348F4 AC60003C */ sw $zero, 0x3c($v1)
/* FCF8 800348F8 AD220000 */ sw $v0, ($t1)
/* FCFC 800348FC 3C02F100 */ lui $v0, 0xf100
/* FD00 80034900 AC620040 */ sw $v0, 0x40($v1)
/* FD04 80034904 24620050 */ addiu $v0, $v1, 0x50
/* FD08 80034908 AC680044 */ sw $t0, 0x44($v1)
/* FD0C 8003490C AD220000 */ sw $v0, ($t1)
/* FD10 80034910 2942000E */ slti $v0, $t2, 0xe
/* FD14 80034914 AC6E0048 */ sw $t6, 0x48($v1)
/* FD18 80034918 1440FFC2 */ bnez $v0, .L80034824
/* FD1C 8003491C AC60004C */ sw $zero, 0x4c($v1)
.L80034920:
/* FD20 80034920 8FB50014 */ lw $s5, 0x14($sp)
/* FD24 80034924 8FB40010 */ lw $s4, 0x10($sp)
/* FD28 80034928 8FB3000C */ lw $s3, 0xc($sp)
/* FD2C 8003492C 8FB20008 */ lw $s2, 8($sp)
/* FD30 80034930 8FB10004 */ lw $s1, 4($sp)
/* FD34 80034934 8FB00000 */ lw $s0, ($sp)
/* FD38 80034938 03E00008 */ jr $ra
/* FD3C 8003493C 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -94,6 +94,7 @@ segments:
- [0x35080, c, effects]
- [0x35AC0, c, world/world]
- [0x362A0, c, collision]
- [0x38F00, c, 38F00]
- [0x39210, c, 39210_len_aa0]
- [0x39CB0, c, os/39cb0_len_100]
- [0x39DB0, c, os/nusys/nuSched]
@ -308,6 +309,7 @@ segments:
- [0x52810, .data, camera]
- [0x52820, .data, game_modes]
- [0x52CA0, .data, state_battle]
- [0x52CC0, .data, state_logos]
- [0x52D50, .data, state_pause]
- [0x52D80, .data, state_file_select]
- [0x52DC0, .data, state_title_screen]
@ -322,7 +324,8 @@ segments:
- [0x5A610, .data, effects]
- [0x5B320, .data, 5B320]
- [0x6B360, .data, world/world]
- [0x6EAC0, data] # has scripts
- [0x6EAC0, .data, 38F00]
- [0x6EF80, data, 6EF80]
- [0x6F0E0, .data, os/nusys/nuContRmbMgr]
- [0x6F110, .data, os/nusys/nuGfxFuncSet]
- [0x6F120, .data, os/nusys/nuContMgr]

View File

@ -2715,10 +2715,10 @@ D_800A0900 = 0x800A0900; // type:data rom:0x7BD00
D_800A0904 = 0x800A0904; // type:data rom:0x7BD04
D_800A0908 = 0x800A0908; // type:data rom:0x7BD08
D_800A090C = 0x800A090C; // type:data rom:0x7BD0C
D_800A0910 = 0x800A0910; // type:data rom:0x7BD10
D_800A0914 = 0x800A0914; // type:data rom:0x7BD14
D_800A0918 = 0x800A0918; // type:data rom:0x7BD18
D_800A091C = 0x800A091C; // type:data rom:0x7BD1C
gLogosImages = 0x800A0910; // type:data rom:0x7BD10
gLogosImage3 = 0x800A0914; // type:data rom:0x7BD14
gLogosImage1 = 0x800A0918; // type:data rom:0x7BD18
gLogosImage2 = 0x800A091C; // type:data rom:0x7BD1C
D_800A0920 = 0x800A0920; // type:data rom:0x7BD20
D_800A0921 = 0x800A0921; // type:data rom:0x7BD21
D_800A0922 = 0x800A0922; // type:data rom:0x7BD22