diff --git a/include/common_structs.h b/include/common_structs.h index 7c966dfe83e..dac0daf25d9 100644 --- a/include/common_structs.h +++ b/include/common_structs.h @@ -2092,7 +2092,8 @@ typedef struct SaveGlobals { /* 0x34 */ s32 crc2; /* 0x38 */ s32 useMonoSound; /* 0x3C */ u32 lastFileSelected; - /* 0x40 */ s8 reserved[64]; // unused + /* 0x40 */ u32 language; // only used for PAL + /* 0x44 */ s8 reserved[60]; // unused } SaveGlobals; // size = 0x80 typedef struct SaveMetadata { @@ -2253,7 +2254,7 @@ typedef struct { #if VERSION_JP #define DISPLAYCONTEXT_GFX_COUNT 0x2000 -#elif VERSION_IQUE +#elif VERSION_IQUE || VERSION_PAL #define DISPLAYCONTEXT_GFX_COUNT 0x2200 #else #define DISPLAYCONTEXT_GFX_COUNT 0x2080 @@ -2265,10 +2266,6 @@ typedef struct { /* 0x00030 */ Mtx camPerspMatrix[8]; // could only be length 4, unsure /* 0x00230 */ Gfx mainGfx[DISPLAYCONTEXT_GFX_COUNT]; /* 0x10630 */ Gfx backgroundGfx[0x200]; // used by gfx_task_background -#if VERSION_PAL - // TODO: find where this space belongs to - s32 pad[0x300]; -#endif /* 0x11630 */ Mtx matrixStack[0x200]; } DisplayContext; // size = 0x19630 diff --git a/include/enums.h b/include/enums.h index be51d6fbf27..3d8a199b30e 100644 --- a/include/enums.h +++ b/include/enums.h @@ -5352,31 +5352,43 @@ enum FileMenuMessages { /* 14 */ FILE_MESSAGE_YES, // Yes[End] /* 15 */ FILE_MESSAGE_NO, // No[End] /* 16 */ FILE_MESSAGE_DELETE, // Delete[End] +#if !VERSION_PAL /* 17 */ FILE_MESSAGE_OVERRIDE_TO_NEW_DATA, // Override to New Data[End] /* 18 */ FILE_MESSAGE_SAVE_OK, // Save OK?[End] +#endif /* 19 */ FILE_MESSAGE_FILE_NAME_IS, // File name is :[End] /* 20 */ FILE_MESSAGE_PERIOD_20, // .[End] /* 21 */ FILE_MESSAGE_OK, // OK?[End] /* 22 */ FILE_MESSAGE_FILE_22, // File[End] +#if VERSION_PAL + FILE_MESSAGE_PAL_FILE_20, // File[End] / Dat.[End] / Fich.[End] +#endif /* 23 */ FILE_MESSAGE_WILL_BE_DELETED, // will be deleted.[End] /* 24 */ FILE_MESSAGE_OK_TO_COPY_TO_THIS_FILE, // OK to copy to this file?[End] /* 25 */ FILE_MESSAGE_START_GAME_WITH, // Start game with[End] +#if VERSION_PAL + FILE_MESSAGE_PAL_QUESTION_24, // ?[End] / beginnen?[End] +#endif /* 26 */ FILE_MESSAGE_FILE_26, // File[End] /* 27 */ FILE_MESSAGE_HAS_BEEN_DELETED, // has been deleted.[End] /* 28 */ FILE_MESSAGE_28, // [End] /* 29 */ FILE_MESSAGE_COPY_FROM, // Copy from[End] /* 30 */ FILE_MESSAGE_TO, // to[End] +#if VERSION_PAL + FILE_MESSAGE_PAL_PERIOD_30, // .[End] / kopieren.[End] +#endif /* 31 */ FILE_MESSAGE_HAS_BEEN_CREATED, // has been created.[End] #if VERSION_PAL - // TODO: determine where these new entries should be placed - FILE_MESSAGE_PAL_UNK1, - FILE_MESSAGE_PAL_UNK2, + FILE_MESSAGE_PAL_ARTICLE, // [End] / Le[End] / El[End] #endif /* 32 */ FILE_MESSAGE_ENTER_A_FILE_NAME, // Enter a file name![End] /* 33 */ FILE_MESSAGE_QUESTION, // ?[End] /* 34 */ FILE_MESSAGE_PERIOD_34, // .[End] #if VERSION_PAL - FILE_MESSAGE_PAL_UNK3, + FILE_MESSAGE_PAL_FILENUM_1, + FILE_MESSAGE_PAL_FILENUM_2, + FILE_MESSAGE_PAL_FILENUM_3, + FILE_MESSAGE_PAL_FILENUM_4, #endif }; diff --git a/include/macros.h b/include/macros.h index 09fcd29ee1c..4e2cb9c016e 100644 --- a/include/macros.h +++ b/include/macros.h @@ -531,9 +531,9 @@ typedef s32 Difficulty2D[AC_DIFFICULTY_LEN][2]; #endif #if VERSION_PAL -#define DT (50.0f/60.0f) +#define DT (50.0/60.0) #else -#define DT (1.0f) +#define DT (1.0) #endif #define DMA_COPY_SEGMENT(segment) dma_copy(segment##_ROM_START, segment##_ROM_END, segment##_VRAM) diff --git a/include/nu/nusys.h b/include/nu/nusys.h index 95711811eac..9906d84c2ba 100644 --- a/include/nu/nusys.h +++ b/include/nu/nusys.h @@ -680,6 +680,8 @@ extern u32 nuGfxDisplay; /* Display on/off flag */ extern u32 nuGfxCfbCounter; /* For frame buffer swapping */ //extern OSMesgQueue nuGfxMesgQ; extern OSThread nuGfxThread; /* graphic thread */ +extern s32 nuGfxUcodeFifoSize; +extern u64* nuGfxUcodeFifoPtr; /*--------------------------------------*/ /* controller Manager variables */ @@ -791,6 +793,7 @@ extern void nuGfxPreNMIFuncSet(NUGfxPreNMIFunc func); extern void nuGfxSwapCfbFuncSet(NUGfxSwapCfbFunc func); extern void nuGfxSetCfb(u16** framebuf, u32 framebufnum); extern void nuGfxSwapCfb(void* framebuffer); +extern void nuGfxSetUcodeFifo(void* fifoBufPtr, s32 size); extern void nuGfxTaskEndFuncSet(NUGfxTaskEndFunc func); extern void nuGfxTaskAllEndWait(void); diff --git a/progress.py b/progress.py index 05015e7fa21..68718e73d1a 100755 --- a/progress.py +++ b/progress.py @@ -142,7 +142,7 @@ def main(args): sizes, vrams = get_func_info() total_size = sum(sizes.values()) # TODO hack for now since non-us roms aren't mapped out - if args.version not in ("us", "ique"): + if args.version not in ("us", "ique", "pal"): total_size = 3718612 all_funcs = set(sizes.keys()) diff --git a/src/8a860_len_3f30.c b/src/8a860_len_3f30.c index d5a458ed5f2..b8d517c33ab 100644 --- a/src/8a860_len_3f30.c +++ b/src/8a860_len_3f30.c @@ -343,10 +343,6 @@ void func_800F16CC(void) { gPopupState = POPUP_STATE_20; } -#if VERSION_PAL -s32 popup_menu_update(void); -INCLUDE_ASM(s32, "8a860_len_3f30", popup_menu_update); -#else s32 popup_menu_update(void) { s32 posX; s32 posY; @@ -359,10 +355,11 @@ s32 popup_menu_update(void) { s32 one; s32 i; + s32 var_s6 = 0; s32 var_s5 = 0; - s32 var_s6 = 0; // maybe 6 before 5 s32 msgWidth; s32 width2; + s32 height2; s32 posX2; switch (gPopupState) { @@ -371,7 +368,6 @@ s32 popup_menu_update(void) { D_8010D67C = 32; D_8010D67E = 72; D_8010D680 = 32; - PopupMenu_StarPieceCounterPosX = 32; #else D_8010D67C = 20; D_8010D67E = 72; @@ -380,9 +376,7 @@ s32 popup_menu_update(void) { D_8010D682 = 186; D_8010D684 = 16; D_8010D686 = 88; -#if !VERSION_JP PopupMenu_StarPieceCounterPosX = 32; -#endif PopupMenu_StarPieceCounterPosY = 164; if (PopupNotBattle) { #if VERSION_JP @@ -601,12 +595,14 @@ s32 popup_menu_update(void) { set_window_properties(WIN_POPUP_CONTENT, posX, posY, var_s6, (PopupMenu_DisplayedEntryCount * LINE_HEIGHT) + 26, WINDOW_PRIORITY_20, popup_menu_draw_menu_contents, NULL, -1); if (gPopupMenu->unk_338 == 0) { - set_window_properties(WIN_POPUP_TITLE_A, posX2, -6, width2, 16, WINDOW_PRIORITY_21, + posX = posX2; //! required to match + set_window_properties(WIN_POPUP_TITLE_A, posX, -6, width2, 16, WINDOW_PRIORITY_21, popup_menu_draw_title_contents, NULL, WIN_POPUP_CONTENT); set_window_update(WIN_POPUP_TITLE_A, 1); set_window_update(WIN_POPUP_TITLE_B, 2); } else { - set_window_properties(WIN_POPUP_TITLE_B, posX2, -6, width2, 16, WINDOW_PRIORITY_21, + posX = posX2; //! required to match + set_window_properties(WIN_POPUP_TITLE_B, posX, -6, width2, 16, WINDOW_PRIORITY_21, popup_menu_draw_title_contents, NULL, WIN_POPUP_CONTENT); set_window_update(WIN_POPUP_TITLE_A, 2); set_window_update(WIN_POPUP_TITLE_B, 1); @@ -804,11 +800,11 @@ s32 popup_menu_update(void) { posY = D_8010D686; #if VERSION_PAL - height = 32; + height2 = 32; if (get_msg_lines(gPopupMenu->unk_33C) == 2) { - height = 40; + height2 = 40; } - set_window_properties(WIN_POPUP_PROMPT, posX, posY, gPopupMenu->unk_340 + 144, height, WINDOW_PRIORITY_20, func_800F4944, NULL, -1); + set_window_properties(WIN_POPUP_PROMPT, posX, posY, gPopupMenu->unk_340 + 144, height2, WINDOW_PRIORITY_20, func_800F4944, NULL, -1); #else switch (gPopupMenu->popupType) { #if VERSION_JP @@ -1388,7 +1384,6 @@ s32 popup_menu_update(void) { gPopupMenu->result = POPUP_RESULT_CHOOSING; return 0; } -#endif void popup_menu_draw_menu_contents(s32* userData, s32 baseX, s32 baseY, s32 width, s32 height, s32 opacity, s32 darkening) { s32 x, y; diff --git a/src/audio.h b/src/audio.h index 451fd378f8c..77a696498d7 100644 --- a/src/audio.h +++ b/src/audio.h @@ -39,10 +39,18 @@ typedef u8* WaveData; #define ALIGN16_(val) (((val) + 0xF) & 0xFFF0) #define AU_FILE_RELATIVE(base,offset) ((void*)((s32)(offset) + (s32)(base))) -#define AUDIO_HEAP_SIZE 0x56000 - // NU_AU_AUDIO_SAMPLES ? #define AUDIO_SAMPLES 184 +#if VERSION_PAL +#define AUDIO_FRAMES_PER_SECOND 50 +#define AUDIO_HEAP_SIZE 0x5B000 +#define AUDIO_MAX_SAMPLES (AUDIO_SAMPLES * 2) +#define AUDIO_COMMAND_LIST_BUFFER_SIZE 0x5558 +#else +#define AUDIO_FRAMES_PER_SECOND 60 +#define AUDIO_HEAP_SIZE 0x56000 +#define AUDIO_MAX_SAMPLES AUDIO_SAMPLES #define AUDIO_COMMAND_LIST_BUFFER_SIZE 0x4000 +#endif #define ADPCMFBYTES 9 diff --git a/src/audio/25f00_len_940.c b/src/audio/25f00_len_940.c index 29e172413a9..a11bb4ec423 100644 --- a/src/audio/25f00_len_940.c +++ b/src/audio/25f00_len_940.c @@ -51,13 +51,13 @@ void create_audio_system(void) { config.num_pvoice = 24; config.num_bus = 4; outputRate = osAiSetFrequency(32000); - frameSize = (nusched.retraceCount * outputRate + 59) / 60; + frameSize = (nusched.retraceCount * outputRate + (AUDIO_FRAMES_PER_SECOND - 1)) / AUDIO_FRAMES_PER_SECOND; config.outputRate = outputRate; config.unk_0C = 0; config.heap = &nuAuHeap; config.dmaNew = nuAuDmaNew; AlFrameSize = ((frameSize / AUDIO_SAMPLES) + 1) * AUDIO_SAMPLES; - AlMinFrameSize = AlFrameSize - AUDIO_SAMPLES; + AlMinFrameSize = AlFrameSize - AUDIO_MAX_SAMPLES; for (i = 0; i < ARRAY_COUNT(AlCmdListBuffers); i++) { AlCmdListBuffers[i] = alHeapAlloc(config.heap, 1, AUDIO_COMMAND_LIST_BUFFER_SIZE); @@ -166,7 +166,7 @@ void nuAuMgr(void* arg) { cmdListBuf = AlCmdListBuffers[cmdListIndex]; bufferPtr = D_800A3628[bufferIndex]; } - if (sampleSize < AUDIO_SAMPLES || cond) { + if (sampleSize < AUDIO_MAX_SAMPLES || cond) { samples = AlFrameSize; cond = FALSE; } else { diff --git a/src/audio/2e230_len_2190.c b/src/audio/2e230_len_2190.c index c97e9f2afa0..d3049cee254 100644 --- a/src/audio/2e230_len_2190.c +++ b/src/audio/2e230_len_2190.c @@ -19,6 +19,8 @@ extern f32 AlTuneScaling[]; #define SBN_ROM_OFFSET (s32) audio_ROM_START #elif VERSION_JP #define SBN_ROM_OFFSET 0xFC0000 +#elif VERSION_PAL +#define SBN_ROM_OFFSET 0x13A0000 #else #define SBN_ROM_OFFSET 0xF00000 #endif diff --git a/src/battle/16C8E0.c b/src/battle/16C8E0.c index 678cc533d5a..0484dbc7e33 100644 --- a/src/battle/16C8E0.c +++ b/src/battle/16C8E0.c @@ -263,6 +263,7 @@ void btl_update(void) { s32 cond; if (battleStatus->inputBitmask != -1) { +#if !VERSION_PAL if ((battleStatus->flags1 & BS_FLAGS1_PARTNER_ACTING) && gGameStatusPtr->multiplayerEnabled) { s32 inputBitmask = battleStatus->inputBitmask; @@ -272,6 +273,7 @@ void btl_update(void) { battleStatus->stickX = gGameStatusPtr->stickX[1]; battleStatus->stickY = gGameStatusPtr->stickY[1]; } else { +#endif s32 inputBitmask2 = battleStatus->inputBitmask; battleStatus->curButtonsDown = gGameStatusPtr->curButtons[0] & inputBitmask2; @@ -279,7 +281,9 @@ void btl_update(void) { battleStatus->curButtonsHeld = gGameStatusPtr->heldButtons[0] & inputBitmask2; battleStatus->stickX = gGameStatusPtr->stickX[0]; battleStatus->stickY = gGameStatusPtr->stickY[0]; +#if !VERSION_PAL } +#endif } get_stick_input_radial(&outAngle, &outMagnitude); diff --git a/src/battle/190B20.c b/src/battle/190B20.c index a98acb4294b..95e85750ad0 100644 --- a/src/battle/190B20.c +++ b/src/battle/190B20.c @@ -87,6 +87,7 @@ void create_target_list(Actor* actor, b32 targetHomePos) { s32 sampleCol; s32 sampleRow; s32 removeTarget; + s8 *targetIndexIt; // a target has been manually selected if (battleStatus->curTargetListFlags & TARGET_FLAG_OVERRIDE) { @@ -247,9 +248,14 @@ void create_target_list(Actor* actor, b32 targetHomePos) { // ------------------------------------------------------------------------ // remove targets based on simple criteria (coarse pass) + // TODO find someway into removing this do-while loop hack +#if VERSION_PAL + actor->selectedTargetIndex = 0; +#else do { actor->selectedTargetIndex = 0; } while (0); +#endif actor->targetListLength = numTargets; /// @bug this should be % 4 @@ -494,11 +500,23 @@ void create_target_list(Actor* actor, b32 targetHomePos) { targetDataList = actor->targetData; +#if VERSION_PAL + targetIndexList = actor->targetIndexList; + numTargets = actor->targetListLength; + + i = ARRAY_COUNT(actor->targetIndexList) - 1; + targetIndexIt = &actor->targetIndexList[ARRAY_COUNT(actor->targetIndexList) - 1]; + + while (i >= 0) { + *targetIndexIt-- = i--; + } +#else numTargets = actor->targetListLength; targetIndexList = actor->targetIndexList; for (i = 0; i < numTargets; i++) { targetIndexList[i] = i; } +#endif // sort targets by priority for (i = 0; i < numTargets - 1; i++) { @@ -3156,6 +3174,7 @@ EvtScript EVS_BattleRumble_PlayerMin = { End }; +#if !VERSION_PAL EvtScript EVS_BattleRumble_PlayerLight = { Call(N(StartRumbleWithParams), 150, 20) Return @@ -3179,6 +3198,7 @@ EvtScript EVS_BattleRumble_PlayerMax = { Return End }; +#endif void start_rumble_type(u32 type) { if (bCurRumbleScript != 0) { diff --git a/src/battle/action_cmd/squirt.c b/src/battle/action_cmd/squirt.c index 59af59bfbd2..3e4af3cac67 100644 --- a/src/battle/action_cmd/squirt.c +++ b/src/battle/action_cmd/squirt.c @@ -14,8 +14,8 @@ enum { // how much to subtract from the meter per frame after overfilling it #define METER_DRAIN_RATE 250 -s32 N(DrainRateTable)[] = { 300, 300, 265, 220, 175, 175 }; -s32 N(FillRateTable)[] = { 300, 300, 265, 220, 175, 175 }; +s32 N(DrainRateTable)[] = { 300 / DT, 300 / DT, 265 / DT, 220 / DT, 175 / DT, 175 / DT }; +s32 N(FillRateTable)[] = { 300 / DT, 300 / DT, 265 / DT, 220 / DT, 175 / DT, 175 / DT }; // bug: the sixth entry is not accessible due to the way idx is calculated in these macros #define GET_DRAIN_RATE(pct) (N(DrainRateTable)[((pct) / (ONE_PCT_MASH / 5))]) diff --git a/src/battle/action_cmd/three_chances.c b/src/battle/action_cmd/three_chances.c index 7bea124a460..220287335eb 100644 --- a/src/battle/action_cmd/three_chances.c +++ b/src/battle/action_cmd/three_chances.c @@ -369,7 +369,7 @@ void N(update)(void) { && acs->threeChances.time >= -5 ) { s32 (*difficultyVec)[2] = (s32 (*)[2])battleStatus->actionCmdDifficultyTable; - window = difficultyVec[acs->difficulty][0] + difficultyVec[acs->difficulty][1] + ANTI_MASH_TIME; + window = difficultyVec[acs->difficulty][0] + difficultyVec[acs->difficulty][1] + (s32)(ANTI_MASH_TIME * DT); pos = battleStatus->inputBufferPos; pos -= window; if (pos < 0) { @@ -452,7 +452,7 @@ void N(update)(void) { && acs->threeChances.time >= -5 ) { s32 (*difficultyVec)[2] = (s32 (*)[2])battleStatus->actionCmdDifficultyTable; - window = difficultyVec[acs->difficulty][0] + difficultyVec[acs->difficulty][1] + ANTI_MASH_TIME - 1; + window = difficultyVec[acs->difficulty][0] + difficultyVec[acs->difficulty][1] + (s32)((ANTI_MASH_TIME - 1) * DT); if (window < 6) { window = 6; } @@ -540,7 +540,7 @@ void N(update)(void) { && acs->threeChances.time >= -5 ) { s32 (*difficultyVec)[2] = (s32 (*)[2])battleStatus->actionCmdDifficultyTable; - window = difficultyVec[acs->difficulty][0] + difficultyVec[acs->difficulty][1] + ANTI_MASH_TIME - 2; + window = difficultyVec[acs->difficulty][0] + difficultyVec[acs->difficulty][1] + (s32)((ANTI_MASH_TIME - 2) * DT); if (window < 6) { window = 6; } diff --git a/src/battle/btl_states_menus.c b/src/battle/btl_states_menus.c index 68ce8b2a422..3bd8f4052ca 100644 --- a/src/battle/btl_states_menus.c +++ b/src/battle/btl_states_menus.c @@ -111,6 +111,32 @@ extern HudScript HES_POWCostReducedTwice; extern HudScript HES_StatusFlower; extern HudScript HES_NotEnoughFP; extern HudScript HES_NotEnoughPOW; +#if VERSION_PAL +extern HudScript HES_FPCost_de; +extern HudScript HES_FPCost_fr; +extern HudScript HES_FPCost_es; +extern HudScript HES_FPCostReduced_de; +extern HudScript HES_FPCostReduced_fr; +extern HudScript HES_FPCostReduced_es; +extern HudScript HES_FPCostReducedTwice_de; +extern HudScript HES_FPCostReducedTwice_fr; +extern HudScript HES_FPCostReducedTwice_es; +extern HudScript HES_POWCost_de; +extern HudScript HES_POWCost_fr; +extern HudScript HES_POWCost_es; +extern HudScript HES_POWCostReduced_de; +extern HudScript HES_POWCostReduced_fr; +extern HudScript HES_POWCostReduced_es; +extern HudScript HES_POWCostReducedTwice_de; +extern HudScript HES_POWCostReducedTwice_fr; +extern HudScript HES_POWCostReducedTwice_es; +extern HudScript HES_NotEnoughFP_de; +extern HudScript HES_NotEnoughFP_fr; +extern HudScript HES_NotEnoughFP_es; +extern HudScript HES_NotEnoughPOW_de; +extern HudScript HES_NotEnoughPOW_fr; +extern HudScript HES_NotEnoughPOW_es; +#endif extern HudScript HES_ProjectorBeam; extern HudScript HES_ProjectorReel; extern HudScript HES_ProjectorSpot; @@ -127,6 +153,38 @@ s16 D_802AB340[] = { 28, 40 }; s16 D_802AB344[] = { 0, -2 }; #endif +#if VERSION_PAL +u8 D_PAL_802AB4C8[] = { 144, 158, 148, 144 }; +u8 D_PAL_802AB4CC[] = { 144, 160, 160, 160 }; +u8 D_PAL_802AB4D0[] = { 0, 20, 20, 20 }; +u8 D_PAL_802AB4D4[] = { 0, 16, 16, 16 }; +u8 D_PAL_802AB4D8[] = { 8, 24, 8, 16 }; +u8 D_PAL_802AB4DC[] = { 100, 81, 116, 98 }; +u8 D_PAL_802AB4E0[] = { 5, 16, 8, 16 }; +u8 D_PAL_802AB4E4[] = { 156, 158, 158, 158 }; +u8 D_PAL_802AB4E8[] = { 4, 6, 6, 6 }; +u8 D_PAL_802AB4EC[] = { 18, 14, 18, 14 }; +u8 D_PAL_802AB4F0[] = { 89, 101, 90, 101 }; +u8 D_PAL_802AB4F4[] = { 16, 10, 14, 10 }; +u8 D_PAL_802AB4F8[] = { 0, 2, 2, 2 }; + +HudScript* D_PAL_802AB4FC[][4] = { + { &HES_FPCost, &HES_FPCost_de, &HES_FPCost_fr, &HES_FPCost_es }, + { &HES_FPCostReduced, &HES_FPCostReduced_de, &HES_FPCostReduced_fr, &HES_FPCostReduced_es }, + { &HES_FPCostReducedTwice, &HES_FPCostReducedTwice_de, &HES_FPCostReducedTwice_fr, &HES_FPCostReducedTwice_es }, +}; + +HudScript* D_PAL_802AB52C[] = { &HES_NotEnoughFP, &HES_NotEnoughFP_de, &HES_NotEnoughFP_fr, &HES_NotEnoughFP_es }; + +HudScript* D_PAL_802AB53C[][4] = { + { &HES_POWCost, &HES_POWCost_de, &HES_POWCost_fr, &HES_POWCost_es }, + { &HES_POWCostReduced, &HES_POWCostReduced_de, &HES_POWCostReduced_fr, &HES_POWCostReduced_es }, + { &HES_POWCostReducedTwice, &HES_POWCostReducedTwice_de, &HES_POWCostReducedTwice_fr, &HES_POWCostReducedTwice_es }, +}; + +HudScript* D_PAL_802AB56C[] = { &HES_NotEnoughPOW, &HES_NotEnoughPOW_de, &HES_NotEnoughPOW_fr, &HES_NotEnoughPOW_es }; +#endif + IconHudScriptPair battle_menu_JumpHudScripts[] = { { &HES_MenuBoots1Disabled, &HES_MenuBoots1Disabled }, { &HES_MenuBoots1, &HES_MenuBoots1Disabled }, @@ -306,7 +364,9 @@ s32 PartnerNameMessages[] = { MSG_Menus_Party_Goombaria, MSG_Menus_Party_Twink, MSG_Menus_Party_Peach, +#if !VERSION_PAL MSG_NONE +#endif }; BSS s32 D_802ACC60; @@ -323,7 +383,7 @@ BSS s8 D_802AD004; BSS s16 D_802AD006; BSS s16 BattleMenuAlpha; BSS s16 D_802AD00A; -#if !VERSION_IQUE +#if !VERSION_IQUE && !VERSION_PAL BSS s16 D_802AD00C; // unused? #endif BSS s32 D_802AD010[6]; @@ -551,25 +611,38 @@ s32 btl_main_menu_update(void) { for (i = 0; i < BattleMenu_NumOptions; i++) { D_802AD010[i] = hid = hud_element_create(BattleMenu_HudScripts[i]); hud_element_set_render_depth(hid, 5); +#if VERSION_PAL + hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80 | HUD_ELEMENT_FLAG_FILTER_TEX | HUD_ELEMENT_FLAG_DISABLED); +#else hud_element_set_flags(hid, HUD_ELEMENT_FLAG_FILTER_TEX); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_DISABLED); +#endif hud_element_set_scale(hid, 0.75f); D_802AD028[i] = hid = hud_element_create(&HES_ProjectorSpot); hud_element_create_transform_B(hid); hud_element_set_render_depth(hid, 10); +#if VERSION_PAL + hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80 | HUD_ELEMENT_FLAG_FILTER_TEX | HUD_ELEMENT_FLAG_DISABLED); +#else hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_FILTER_TEX); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_DISABLED); +#endif + } D_802AD040 = hid = hud_element_create(&HES_ProjectorSpot); hud_element_create_transform_B(hid); hud_element_set_render_depth(hid, 7); +#if VERSION_PAL + hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80 | HUD_ELEMENT_FLAG_FILTER_TEX | HUD_ELEMENT_FLAG_DISABLED); +#else hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_FILTER_TEX); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_DISABLED); +#endif D_802AD044 = hid = hud_element_create(&HES_ProjectorReel); hud_element_create_transform_B(hid); @@ -599,9 +672,13 @@ s32 btl_main_menu_update(void) { hud_element_set_transform_rotation_pivot(hid, 0, 0); hud_element_set_transform_rotation(hid, 0.0f, 0.0f, -45.0f); hud_element_set_alpha(hid, 200); +#if VERSION_PAL + hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80 | HUD_ELEMENT_FLAG_FILTER_TEX | HUD_ELEMENT_FLAG_DISABLED); +#else hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_FILTER_TEX); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_DISABLED); +#endif D_802AD05C = hid = hud_element_create(&HES_SwapBackground); hud_element_set_render_depth(hid, 0); @@ -1083,23 +1160,38 @@ void func_802A2C58(void) { battle_menu_moveState = BTL_SUBMENU_MOVES_STATE_UNK_1E; } -#if VERSION_JP +#if VERSION_PAL +#define MOVES_OPTIONS_W D_PAL_802AB4E4[gCurrentLanguage] +#define MOVES_TITLE_X D_PAL_802AB4EC[gCurrentLanguage] +#define MOVES_TITLE_W D_PAL_802AB4F0[gCurrentLanguage] +#define MOVES_ICON_X 120 + D_PAL_802AB4F8[gCurrentLanguage] +#define STAR_SPIRITS_OPTIONS_W D_PAL_802AB4CC[gCurrentLanguage] +#define STAR_SPIRITS_TITLE_X D_PAL_802AB4D8[gCurrentLanguage] +#define STAR_SPIRITS_TITLE_W D_PAL_802AB4DC[gCurrentLanguage] +#define STAR_SPIRITS_ICON_X 110 + D_PAL_802AB4D4[gCurrentLanguage] +#define POS_X 20 +#define WIDTH_3 280 +#elif VERSION_JP +#define MOVES_OPTIONS_W 150 +#define MOVES_TITLE_X 10 +#define MOVES_TITLE_W 80 +#define MOVES_ICON_X 104 +#define STAR_SPIRITS_OPTIONS_W 144 +#define STAR_SPIRITS_TITLE_X 10 +#define STAR_SPIRITS_TITLE_W 80 +#define STAR_SPIRITS_ICON_X 104 #define POS_X 32 -#define OFFSET_X_1 10 -#define OFFSET_X_2 104 -#define OFFSET_X_3 104 -#define MOVE_X 32 -#define WIDTH_1 80 -#define WIDTH_2 80 #define WIDTH_3 242 #else +#define MOVES_OPTIONS_W 150 +#define MOVES_TITLE_X 16 +#define MOVES_TITLE_W 90 +#define MOVES_ICON_X 114 +#define STAR_SPIRITS_OPTIONS_W 144 +#define STAR_SPIRITS_TITLE_X 10 +#define STAR_SPIRITS_TITLE_W 100 +#define STAR_SPIRITS_ICON_X 110 #define POS_X 20 -#define OFFSET_X_1 16 -#define OFFSET_X_2 114 -#define OFFSET_X_3 110 -#define MOVE_X 20 -#define WIDTH_1 90 -#define WIDTH_2 100 #define WIDTH_3 280 #endif @@ -1190,6 +1282,21 @@ s32 btl_submenu_moves_update(void) { for (i = 0; i < BattleMenu_Moves_OptionCount; i++) { if (!BattleMenu_UsingSpiritsSubmenu) { +#if VERSION_PAL + switch (battle_menu_moveOptionDisplayCostReductionColors[i]) { + case 0: + hid = 0; + break; + case 1: + hid = 1; + break; + default: + hid = 2; + break; + } + hid = hud_element_create(D_PAL_802AB4FC[hid][gCurrentLanguage]); + BattleMenu_Moves_OptionCostUnitIDs[i] = hid; +#else switch (battle_menu_moveOptionDisplayCostReductionColors[i]) { case 0: hid = hud_element_create(&HES_FPCost); @@ -1204,7 +1311,23 @@ s32 btl_submenu_moves_update(void) { BattleMenu_Moves_OptionCostUnitIDs[i] = hid; break; } +#endif } else { +#if VERSION_PAL + switch (battle_menu_moveOptionDisplayCostReductionColors[i]) { + case 0: + hid = 0; + break; + case 1: + hid = 1; + break; + default: + hid = 2; + break; + } + hid = hud_element_create(D_PAL_802AB53C[hid][gCurrentLanguage]); + BattleMenu_Moves_OptionCostUnitIDs[i] = hid; +#else switch (battle_menu_moveOptionDisplayCostReductionColors[i]) { case 0: hid = hud_element_create(&HES_POWCost); @@ -1219,6 +1342,7 @@ s32 btl_submenu_moves_update(void) { BattleMenu_Moves_OptionCostUnitIDs[i] = hid; break; } +#endif } hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80); hud_element_set_render_pos(hid, BattleMenu_Moves_PosX + 56, BattleMenu_Moves_PosY); @@ -1233,22 +1357,22 @@ s32 btl_submenu_moves_update(void) { #endif if (!BattleMenu_UsingSpiritsSubmenu) { #if !VERSION_JP - set_window_properties(WIN_BTL_MOVES_MENU, moveX, moveY, 150, (D_802AD10E * 13) + 28, 0, btl_menu_moves_draw_content, NULL, -1); + set_window_properties(WIN_BTL_MOVES_MENU, moveX, moveY, MOVES_OPTIONS_W, (D_802AD10E * 13) + 28, 0, btl_menu_moves_draw_content, NULL, -1); #endif - set_window_properties(WIN_BTL_MOVES_TITLE, moveX + OFFSET_X_1, moveY - 6, WIDTH_1, 16, 1, btl_menu_moves_show_title, NULL, -1); - set_window_properties(WIN_BTL_MOVES_ICON, moveX + OFFSET_X_2, moveY - 12, 32, 32, 1, btl_menu_moves_show_icon, NULL, -1); + set_window_properties(WIN_BTL_MOVES_TITLE, moveX + MOVES_TITLE_X, moveY - 6, MOVES_TITLE_W, 16, 1, btl_menu_moves_show_title, NULL, -1); + set_window_properties(WIN_BTL_MOVES_ICON, moveX + MOVES_ICON_X, moveY - 12, 32, 32, 1, btl_menu_moves_show_icon, NULL, -1); } else { s16 new_var; #if !VERSION_JP - set_window_properties(WIN_BTL_MOVES_MENU, moveX, moveY, 144, (D_802AD10E * 13) + 28, 0, btl_menu_moves_draw_content, NULL, -1); + set_window_properties(WIN_BTL_MOVES_MENU, moveX, moveY, STAR_SPIRITS_OPTIONS_W, (D_802AD10E * 13) + 28, 0, btl_menu_moves_draw_content, NULL, -1); #endif new_var = moveY; // todo required to match - set_window_properties(WIN_BTL_SPIRITS_TITLE, moveX + 10, new_var - 6, WIDTH_2, 16, 1, btl_menu_moves_show_title, 0, -1); - set_window_properties(WIN_BTL_SPIRITS_ICON, moveX + OFFSET_X_3, new_var - 12, 32, 35, 1, btl_menu_moves_show_icon, 0, -1); + set_window_properties(WIN_BTL_SPIRITS_TITLE, moveX + STAR_SPIRITS_TITLE_X, new_var - 6, STAR_SPIRITS_TITLE_W, 16, 1, btl_menu_moves_show_title, 0, -1); + set_window_properties(WIN_BTL_SPIRITS_ICON, moveX + STAR_SPIRITS_ICON_X, new_var - 12, 32, 35, 1, btl_menu_moves_show_icon, 0, -1); } - moveX = MOVE_X; + moveX = POS_X; moveY = BattleMenu_Moves_PosY; set_window_properties(WIN_BTL_DESC_BOX, moveX, 186, WIDTH_3, 32, WINDOW_PRIORITY_20, btl_menu_moves_show_desc, NULL, -1); set_window_update(WIN_BTL_MOVES_MENU, WINDOW_UPDATE_SHOW); @@ -1498,23 +1622,42 @@ s32 btl_submenu_moves_update(void) { } #if VERSION_IQUE -#define Y_VAR1 2 +#define MOVE_TEXT_Y 2 #define X_VAR254 153 #define X_VAR255 31 -#define X_VAR1 104 -#define X_VAR2 89 +#define FP_COST_X 104 +#define SP_COST_X 89 +#define HUD_NOT_ENOUGH_FP &HES_NotEnoughFP +#define HUD_FP_COST_X 116 +#define HUD_NOT_ENOUGH_POW &HES_NotEnoughPOW +#define HUD_SP_COST_X 102 +#define X_VAR3 24 +#elif VERSION_PAL +#define MOVE_TEXT_Y 0 +#define X_VAR254 169 +#define X_VAR255 31 +#define FP_COST_X 108 + D_PAL_802AB4E8[gCurrentLanguage] +#define SP_COST_X 93 + D_PAL_802AB4D0[gCurrentLanguage] +#define HUD_NOT_ENOUGH_FP D_PAL_802AB52C[gCurrentLanguage] +#define HUD_FP_COST_X 116 + D_PAL_802AB4E8[gCurrentLanguage] +#define HUD_NOT_ENOUGH_POW D_PAL_802AB56C[gCurrentLanguage] +#define HUD_SP_COST_X 102 + D_PAL_802AB4D0[gCurrentLanguage] #define X_VAR3 24 #elif VERSION_JP -#define Y_VAR1 0 +#define MOVE_TEXT_Y 0 #define X_VAR254 139 #define X_VAR255 35 #define X_VAR3 26 #else -#define Y_VAR1 0 +#define MOVE_TEXT_Y 0 #define X_VAR254 153 #define X_VAR255 31 -#define X_VAR1 108 -#define X_VAR2 93 +#define FP_COST_X 108 +#define SP_COST_X 93 +#define HUD_NOT_ENOUGH_FP &HES_NotEnoughFP +#define HUD_FP_COST_X 116 +#define HUD_NOT_ENOUGH_POW &HES_NotEnoughPOW +#define HUD_SP_COST_X 102 #define X_VAR3 24 #endif @@ -1575,7 +1718,7 @@ void btl_menu_moves_draw_content(void* data, s32 x, s32 y) { if (battle_menu_moveOptionNames[BattleMenu_Moves_OptionIndexMap[idx]] >= 0) { draw_msg( battle_menu_moveOptionNames[BattleMenu_Moves_OptionIndexMap[idx]], - xPos, yPos - Y_VAR1, BattleMenu_Moves_TextAlpha, palette, 1 + xPos, yPos - MOVE_TEXT_Y, BattleMenu_Moves_TextAlpha, palette, 1 ); } @@ -1662,24 +1805,24 @@ void btl_menu_moves_draw_content(void* data, s32 x, s32 y) { if (!BattleMenu_UsingSpiritsSubmenu) { draw_number( - num, xPos + X_VAR1, yPos, DRAW_NUMBER_CHARSET_THIN, palette, BattleMenu_Moves_TextAlpha, + num, xPos + FP_COST_X, yPos, DRAW_NUMBER_CHARSET_THIN, palette, BattleMenu_Moves_TextAlpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT ); if (BattleMenu_Moves_OptionEnabled[BattleMenu_Moves_OptionIndexMap[idx]] <= 0) { - hud_element_set_script(id, &HES_NotEnoughFP); + hud_element_set_script(id, HUD_NOT_ENOUGH_FP); } yRenderPos = yPos + 7; - hud_element_set_render_pos(id, xPos + 116, yRenderPos); + hud_element_set_render_pos(id, xPos + HUD_FP_COST_X, yRenderPos); } else { draw_number( - num, xPos + X_VAR2, yPos, DRAW_NUMBER_CHARSET_THIN, palette, BattleMenu_Moves_TextAlpha, + num, xPos + SP_COST_X, yPos, DRAW_NUMBER_CHARSET_THIN, palette, BattleMenu_Moves_TextAlpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT ); if (BattleMenu_Moves_OptionEnabled[BattleMenu_Moves_OptionIndexMap[idx]] <= 0) { - hud_element_set_script(id, &HES_NotEnoughPOW); + hud_element_set_script(id, HUD_NOT_ENOUGH_POW); } yRenderPos = yPos + 7; - hud_element_set_render_pos(id, xPos + 102, yRenderPos); + hud_element_set_render_pos(id, xPos + HUD_SP_COST_X, yRenderPos); } #endif hud_element_set_alpha(id, BattleMenu_Moves_TextAlpha); @@ -1749,35 +1892,24 @@ void btl_menu_moves_draw_content(void* data, s32 x, s32 y) { } } -#if VERSION_JP -#define X_VAR4 28 -#define X_VAR5 24 + +#if VERSION_PAL +#define TEXT_ABILITIES_X D_PAL_802AB4F4[gCurrentLanguage] +#define TEXT_STAR_SPIRITS_X D_PAL_802AB4E0[gCurrentLanguage] +#elif VERSION_JP +#define TEXT_ABILITIES_X 28 +#define TEXT_STAR_SPIRITS_X 24 #else -#define X_VAR4 16 -#define X_VAR5 6 +#define TEXT_ABILITIES_X 16 +#define TEXT_STAR_SPIRITS_X 6 #endif void btl_menu_moves_show_title(void* data, s32 x, s32 y) { - s32 msgID; - s32 posX; - s32 posY; - s32 opacity; - s32 palette; - if (!BattleMenu_UsingSpiritsSubmenu) { - msgID = MSG_Menus_Abilities; - posX = x + X_VAR4; - posY = y + 2; - opacity = BattleMenu_Moves_TextAlpha; - palette = MSG_PAL_30; + draw_msg(MSG_Menus_Abilities, x + TEXT_ABILITIES_X, y + 2, BattleMenu_Moves_TextAlpha, MSG_PAL_30, DRAW_MSG_STYLE_MENU); } else { - msgID = MSG_Menus_StarSpirits; - posX = x + X_VAR5; - posY = y + 2; - opacity = BattleMenu_Moves_TextAlpha; - palette = MSG_PAL_31; + draw_msg(MSG_Menus_StarSpirits, x + TEXT_STAR_SPIRITS_X, y + 2, BattleMenu_Moves_TextAlpha, MSG_PAL_31, DRAW_MSG_STYLE_MENU); } - draw_msg(msgID, posX, posY, opacity, palette, DRAW_MSG_STYLE_MENU); } void btl_menu_moves_show_icon(void* data, s32 x, s32 y) { @@ -1984,7 +2116,9 @@ s32 btl_update_strats_menu(void) { D_802AD618 = hid = hud_element_create(&HES_AnimatedHandPointer); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_DROP_SHADOW | HUD_ELEMENT_FLAG_80); - hud_element_set_render_pos(hid, D_802AD63C, D_802AD63E); + x = D_802AD63C; //! required to match + y = D_802AD63E; + hud_element_set_render_pos(hid, x, y); HID_GreenArrowUp = hid = hud_element_create(&HES_GreenArrowUp); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_DROP_SHADOW | HUD_ELEMENT_FLAG_80); @@ -1997,8 +2131,16 @@ s32 btl_update_strats_menu(void) { D_802AD614 = MSG_PAL_STANDARD; x = D_802AD63C; y = D_802AD63E; +#if VERSION_PAL + width = get_msg_width(MSG_Menus_Strategies, 0) + 32; + set_window_properties(WIN_BTL_STRATS_MENU, x, y, D_PAL_802AB4C8[gCurrentLanguage], (StratsMenuLines * 13) + 26, + 0, btl_menu_strats_draw_content, NULL, -1); + set_window_properties(WIN_BTL_STRATS_TITLE, x + (D_PAL_802AB4C8[gCurrentLanguage] - width) / 2, y - 6, width, 16, + 1, btl_menu_strats_show_title, NULL, -1); +#else set_window_properties(WIN_BTL_STRATS_MENU, x, y, W_VAR1, (StratsMenuLines * 13) + 26, 0, btl_menu_strats_draw_content, NULL, -1); set_window_properties(WIN_BTL_STRATS_TITLE, x + X_VAR6, y - 6, W_VAR2, 16, 1, btl_menu_strats_show_title, NULL, -1); +#endif x = X_VAR7; y = 186; set_window_properties(WIN_BTL_DESC_BOX, x, y, W_VAR3, 32, WINDOW_PRIORITY_20, btl_menu_strats_show_desc, NULL, -1); @@ -2123,7 +2265,13 @@ s32 btl_update_strats_menu(void) { break; } width = get_msg_width(msgID, 0) + 23; - set_window_properties(WIN_BTL_POPUP, (SCREEN_WIDTH / 2) - (width / 2), 80, width, 28, 20, btl_menu_strats_show_error, NULL, -1); + x = (SCREEN_WIDTH / 2) - (width / 2); +#if VERSION_PAL + set_window_properties(WIN_BTL_POPUP, x, 80, width, D_802AB340[get_msg_lines(msgID) - 1], + 20, btl_menu_strats_show_error, NULL, -1); +#else + set_window_properties(WIN_BTL_POPUP, x, 80, width, 28, 20, btl_menu_strats_show_error, NULL, -1); +#endif set_window_update(WIN_BTL_POPUP, WINDOW_UPDATE_SHOW); D_802AD612 = 60; BattleSubmenuStratsState = BTL_SUBMENU_STRATS_STATE_ERROR_DONE; @@ -2147,14 +2295,17 @@ s32 btl_update_strats_menu(void) { } #if VERSION_IQUE -#define X_VAR8 142 -#define Y_VAR2 3 +#define STRATS_OPTION_Y 3 +#define STRATS_SUBMENU_WIDTH 142 +#elif VERSION_PAL +#define STRATS_OPTION_Y 0 +#define STRATS_SUBMENU_WIDTH 182 #elif VERSION_JP -#define X_VAR8 106 -#define Y_VAR2 0 +#define STRATS_OPTION_Y 0 +#define STRATS_SUBMENU_WIDTH 106 #else -#define X_VAR8 142 -#define Y_VAR2 0 +#define STRATS_OPTION_Y 0 +#define STRATS_SUBMENU_WIDTH 142 #endif void btl_menu_strats_draw_content(void* data, s32 x, s32 y) { @@ -2186,7 +2337,7 @@ void btl_menu_strats_draw_content(void* data, s32 x, s32 y) { xPos = x + 4; yPos = y + 18; var_t0 = yPos + 1 + (StratsMenuLines * 13); - gDPSetScissor(gMainGfxPos++, G_SC_NON_INTERLACE, xPos, yPos, x + X_VAR8, var_t0); + gDPSetScissor(gMainGfxPos++, G_SC_NON_INTERLACE, xPos, yPos, x + STRATS_SUBMENU_WIDTH, var_t0); xPos = x + 33; yPos = y + 19 + D_802AD60C; @@ -2201,7 +2352,7 @@ void btl_menu_strats_draw_content(void* data, s32 x, s32 y) { if (D_802AD690[idx] == 0) { palette = MSG_PAL_0B; } - draw_msg(D_802AD658[idx], xPos, yPos - Y_VAR2, D_802AD624, palette, DRAW_MSG_STYLE_MENU); + draw_msg(D_802AD658[idx], xPos, yPos - STRATS_OPTION_Y, D_802AD624, palette, DRAW_MSG_STYLE_MENU); yPos += 13; } @@ -2290,6 +2441,9 @@ void btl_menu_strats_show_error(void* data, s32 x, s32 y) { msgID = MSG_Menus_Battle_CantRunAway; break; } +#if VERSION_PAL + y += D_802AB344[get_msg_lines(msgID) - 1]; +#endif draw_msg(msgID, x, y, 255, MSG_PAL_0F, 0); } @@ -3988,6 +4142,9 @@ void btl_state_update_partner_menu(void) { return; case BTL_SUBSTATE_PARTNER_MENU_MAIN_MENU_1: set_actor_anim(ACTOR_PARTNER, 0, BattleMenu_PartnerThinkAnims[playerData->curPartner]); +#if VERSION_PAL + btl_init_menu_partner(); +#endif gBattleSubState = BTL_SUBSTATE_PARTNER_MENU_MAIN_MENU_2; case BTL_SUBSTATE_PARTNER_MENU_MAIN_MENU_2: entryIdx = btl_main_menu_update(); diff --git a/src/battle/level_up.c b/src/battle/level_up.c index 0c2ec375080..0c7b5d4af67 100644 --- a/src/battle/level_up.c +++ b/src/battle/level_up.c @@ -55,7 +55,9 @@ BSS HudElemID LevelUpSelectTextID; BSS s32 CelebrateSubstateTime; BSS s32 D_8029FB50; BSS s32 EndBattleRewardStep; +#if !VERSION_PAL BSS s32 D_8029FB58[2]; // unused? +#endif BSS s32 CantLevelUpStat[3]; BSS s32 EndBattleRewardTotal; BSS s32 EndBattleRewardIncrement; @@ -69,6 +71,14 @@ BSS s32 LevelUpSelectTextVelX; extern EntityModelScript EMS_starpoint_starpoint; extern EntityModelScript EMS_starpoint_starpoints; +#if VERSION_PAL +extern EntityModelScript EMS_starpoint_starpoint_de; +extern EntityModelScript EMS_starpoint_starpoint_fr; +extern EntityModelScript EMS_starpoint_starpoint_es; +extern EntityModelScript EMS_starpoint_starpoints_de; +extern EntityModelScript EMS_starpoint_starpoints_fr; +extern EntityModelScript EMS_starpoint_starpoints_es; +#endif extern EntityModelScript EMS_starpoint_digit_0; extern EntityModelScript EMS_starpoint_digit_1; extern EntityModelScript EMS_starpoint_digit_2; @@ -82,6 +92,11 @@ extern EntityModelScript EMS_starpoint_digit_9; extern EntityModelScript EMS_starpoint_dummy; extern EntityModelScript EMS_level_up; +#if VERSION_PAL +extern EntityModelScript EMS_level_up_en_de; +extern EntityModelScript EMS_level_up_fr; +extern EntityModelScript EMS_level_up_es; +#endif extern HudScript HES_level_up_flower; extern HudScript HES_level_up_leaves; @@ -92,6 +107,17 @@ extern HudScript HES_level_up_badge; extern HudScript HES_level_up_FP; extern HudScript HES_level_up_HP; extern HudScript HES_level_up_BP; +#if VERSION_PAL +extern HudScript HES_level_up_FP_de; +extern HudScript HES_level_up_FP_fr; +extern HudScript HES_level_up_FP_es; +extern HudScript HES_level_up_HP_de; +extern HudScript HES_level_up_HP_fr; +extern HudScript HES_level_up_HP_es; +extern HudScript HES_level_up_BP_de; +extern HudScript HES_level_up_BP_fr; +extern HudScript HES_level_up_BP_es; +#endif extern HudScript HES_level_up_green_digit_0; extern HudScript HES_level_up_green_digit_1; @@ -159,9 +185,64 @@ extern HudScript HES_level_up_small_blue_digit_9; extern HudScript HES_level_up_small_blue_arrow; extern HudScript HES_level_up_select_one_to_upgrade; +#if VERSION_PAL +extern HudScript HES_level_up_select_one_to_upgrade_de; +extern HudScript HES_level_up_select_one_to_upgrade_fr; +extern HudScript HES_level_up_select_one_to_upgrade_es; +#endif s32 bFadeToBlackAmt = 255; +#if VERSION_PAL +s16 D_PAL_80284614[] = { 28, 40 }; +s16 D_PAL_80284618[] = { 0, -2 }; + +u8* LevelUpLetters_RomStart[] = { + level_up_letters_en_de_ROM_START, + level_up_letters_en_de_ROM_START, + level_up_letters_fr_ROM_START, + level_up_letters_es_ROM_START, +}; +u8* LevelUpLetters_RomEnd[] = { + level_up_letters_en_de_ROM_END, + level_up_letters_en_de_ROM_END, + level_up_letters_fr_ROM_END, + level_up_letters_es_ROM_END, +}; +u8* LevelUpLetters_Vram[] = { + level_up_letters_en_de_VRAM, + level_up_letters_en_de_VRAM, + level_up_letters_fr_VRAM, + level_up_letters_es_VRAM, +}; + +u8* StarpointText_RomStart[] = { + starpoint_en_ROM_START, + starpoint_de_ROM_START, + starpoint_fr_ROM_START, + starpoint_es_ROM_START, +}; +u8* StarpointText_RomEnd[] = { + starpoint_en_ROM_END, + starpoint_de_ROM_END, + starpoint_fr_ROM_END, + starpoint_es_ROM_END, +}; +u8* StarpointText_Vram[] = { + starpoint_en_VRAM, + starpoint_de_VRAM, + starpoint_fr_VRAM, + starpoint_es_VRAM, +}; + +HudScript* HES_LevelUpUpgradeLanguages[] = { + &HES_level_up_select_one_to_upgrade, + &HES_level_up_select_one_to_upgrade_de, + &HES_level_up_select_one_to_upgrade_fr, + &HES_level_up_select_one_to_upgrade_es, +}; +#endif + s32 D_80284154[] = { [PARTNER_NONE] = 0, [PARTNER_GOOMBARIO] = ANIM_BattleGoombario_Walk, @@ -193,11 +274,34 @@ EntityModelScript* starpoint_digit_scripts[] = { EntityModelScript* starpoint_space_script = &EMS_starpoint_dummy; +#if VERSION_PAL +HudScript* levelup_stat_scripts[][4] = { + { + &HES_level_up_FP, + &HES_level_up_FP_de, + &HES_level_up_FP_fr, + &HES_level_up_FP_es, + }, + { + &HES_level_up_HP, + &HES_level_up_HP_de, + &HES_level_up_HP_fr, + &HES_level_up_HP_es, + }, + { + &HES_level_up_BP, + &HES_level_up_BP_de, + &HES_level_up_BP_fr, + &HES_level_up_BP_es, + }, +}; +#else HudScript* levelup_stat_scripts[3] = { &HES_level_up_FP, &HES_level_up_HP, &HES_level_up_BP, }; +#endif HudScript* HES_LevelUpDigits[3][10] = { { @@ -358,12 +462,38 @@ EvtScript EVS_ShowStarpoints = { Return EndIf IfLt(LVar0, 2) +#if VERSION_PAL + Call(GetLanguage, LVar1) + Switch(LVar1) + CaseEq(LANGUAGE_EN) + Call(CreateVirtualEntity, LVar6, Ref(EMS_starpoint_starpoint)) + CaseEq(LANGUAGE_DE) + Call(CreateVirtualEntity, LVar6, Ref(EMS_starpoint_starpoint_de)) + CaseEq(LANGUAGE_FR) + Call(CreateVirtualEntity, LVar6, Ref(EMS_starpoint_starpoint_fr)) + CaseEq(LANGUAGE_ES) + Call(CreateVirtualEntity, LVar6, Ref(EMS_starpoint_starpoint_es)) + EndSwitch +#else Call(CreateVirtualEntity, LVar6, Ref(EMS_starpoint_starpoint)) +#endif Call(SetVirtualEntityPosition, LVar6, -278, 68, 70) Call(SetVirtualEntityScale, LVar6, Float(0.5), Float(0.5), Float(0.5)) Else #if VERSION_JP Call(CreateVirtualEntity, LVar6, Ref(EMS_starpoint_starpoint)) +#elif VERSION_PAL + Call(GetLanguage, LVar1) + Switch(LVar1) + CaseEq(LANGUAGE_EN) + Call(CreateVirtualEntity, LVar6, Ref(EMS_starpoint_starpoints)) + CaseEq(LANGUAGE_DE) + Call(CreateVirtualEntity, LVar6, Ref(EMS_starpoint_starpoints_de)) + CaseEq(LANGUAGE_FR) + Call(CreateVirtualEntity, LVar6, Ref(EMS_starpoint_starpoints_fr)) + CaseEq(LANGUAGE_ES) + Call(CreateVirtualEntity, LVar6, Ref(EMS_starpoint_starpoints_es)) + EndSwitch #else Call(CreateVirtualEntity, LVar6, Ref(EMS_starpoint_starpoints)) #endif @@ -460,7 +590,21 @@ EvtScript EVS_ShowStarpoints = { }; EvtScript EVS_ShowLevelUp = { +#if VERSION_PAL + Call(GetLanguage, LVar0) + Switch(LVar0) + CaseEq(LANGUAGE_EN) + Call(CreateVirtualEntity, LVar9, Ref(EMS_level_up_en_de)) + CaseEq(LANGUAGE_DE) + Call(CreateVirtualEntity, LVar9, Ref(EMS_level_up_en_de)) + CaseEq(LANGUAGE_FR) + Call(CreateVirtualEntity, LVar9, Ref(EMS_level_up_fr)) + CaseEq(LANGUAGE_ES) + Call(CreateVirtualEntity, LVar9, Ref(EMS_level_up_es)) + EndSwitch +#else Call(CreateVirtualEntity, LVar9, Ref(EMS_level_up)) +#endif Call(SetVirtualEntityPosition, LVar9, 0, 210, 70) Call(InitLevelUpModelFlags) ChildThread @@ -512,6 +656,9 @@ void btl_state_update_celebration(void) { s32 i; s32 j; +#if VERSION_PAL + s32 numLines; +#endif HudScript* new_var; switch (gBattleSubState) { @@ -546,6 +693,9 @@ void btl_state_update_celebration(void) { CelebrateSubstateTime--; } else if (btl_cam_is_moving_done()) { DMA_COPY_SEGMENT(starpoint); +#if VERSION_PAL + dma_copy(StarpointText_RomStart[gCurrentLanguage], StarpointText_RomEnd[gCurrentLanguage], StarpointText_Vram[gCurrentLanguage]); +#endif script = start_script(&EVS_ShowStarpoints, EVT_PRIORITY_A, 0); EndBattleRewardsDone = FALSE; // divide reward into 20 increments @@ -631,6 +781,9 @@ void btl_state_update_celebration(void) { btl_cam_use_preset(BTL_CAM_DEFAULT); btl_cam_move(5); DMA_COPY_SEGMENT(level_up); +#if VERSION_PAL + dma_copy(LevelUpLetters_RomStart[gCurrentLanguage], LevelUpLetters_RomEnd[gCurrentLanguage], LevelUpLetters_Vram[gCurrentLanguage]); +#endif sfx_play_sound(SOUND_LOOP_CHEERING); CelebrateStateTime = 0; gBattleSubState = BTL_SUBSTATE_CELEBRATE_LEVEL_UP_BEGIN; @@ -686,7 +839,11 @@ void btl_state_update_celebration(void) { hud_element_set_render_pos(hid, 6, 140); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80); +#if VERSION_PAL + hid = hud_element_create(levelup_stat_scripts[0][gCurrentLanguage]); +#else hid = hud_element_create(levelup_stat_scripts[0]); +#endif LevelUpStatTextIDs[LVL_UP_FP][LVL_UP_TITLE] = hid; hud_element_set_render_pos(hid, 160, 317); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80); @@ -698,7 +855,11 @@ void btl_state_update_celebration(void) { hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80 | HUD_ELEMENT_FLAG_DISABLED); } +#if VERSION_PAL + hid = hud_element_create(levelup_stat_scripts[1][gCurrentLanguage]); +#else hid = hud_element_create(levelup_stat_scripts[1]); +#endif LevelUpStatTextIDs[LVL_UP_HP][LVL_UP_TITLE] = hid; hud_element_set_render_pos(hid, 312, 117); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80); @@ -710,7 +871,11 @@ void btl_state_update_celebration(void) { hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80 | HUD_ELEMENT_FLAG_DISABLED); } +#if VERSION_PAL + hid = hud_element_create(levelup_stat_scripts[2][gCurrentLanguage]); +#else hid = hud_element_create(levelup_stat_scripts[2]); +#endif LevelUpStatTextIDs[LVL_UP_BP][LVL_UP_TITLE] = hid; hud_element_set_render_pos(hid, 8, 117); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80); @@ -932,7 +1097,11 @@ void btl_state_update_celebration(void) { hud_element_set_alpha(hid, 200); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_FILTER_TEX | HUD_ELEMENT_FLAG_80); +#if VERSION_PAL + LevelUpSelectTextID = hid = hud_element_create(HES_LevelUpUpgradeLanguages[gCurrentLanguage]); +#else LevelUpSelectTextID = hid = hud_element_create(&HES_level_up_select_one_to_upgrade); +#endif hud_element_set_render_pos(hid, 0, 0); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80); battleStatus->curSubmenu = 1; @@ -1142,10 +1311,19 @@ void btl_state_update_celebration(void) { gBattleSubState = BTL_SUBSTATE_END_BATTLE_EXEC_STAGE_SCRIPT; break; case BTL_SUBSTATE_CELEBRATE_LEVEL_UP_INVALID: +#if VERSION_PAL + width = get_msg_width(MSG_Menus_CantIncrease, 0) + 32; + numLines = get_msg_lines(MSG_Menus_CantIncrease) - 1; + x = 160 - (width / 2); + y = 80; + set_window_properties(WIN_BTL_POPUP, x, y, width, D_PAL_80284614[numLines], + WINDOW_PRIORITY_10, draw_content_cant_increase_popup, NULL, -1); +#else width = get_msg_width(MSG_Menus_CantIncrease, 0) + 31; x = 160 - (width / 2); y = 80; set_window_properties(WIN_BTL_POPUP, x, y, width, 28, WINDOW_PRIORITY_10, draw_content_cant_increase_popup, NULL, -1); +#endif set_window_update(WIN_BTL_POPUP, WINDOW_UPDATE_SHOW); CelebrateSubstateTime = 60; gBattleSubState = BTL_SUBSTATE_CELEBRATE_LEVEL_UP_INVALID_DELAY; @@ -1516,5 +1694,9 @@ void draw_content_level_up_textbox(void* data, s32 posX, s32 posY) { } void draw_content_cant_increase_popup(void* data, s32 posX, s32 posY) { +#if VERSION_PAL + draw_msg(MSG_Menus_CantIncrease, posX + 16, posY + 6 + D_PAL_80284618[get_msg_lines(MSG_Menus_CantIncrease) - 1], 255, MSG_PAL_0F, 0); +#else draw_msg(MSG_Menus_CantIncrease, posX + 11, posY + 6, 255, MSG_PAL_0F, 0); +#endif } diff --git a/src/battle/player_events.c b/src/battle/player_events.c index 0cb960bc0a2..96b68e50ec8 100644 --- a/src/battle/player_events.c +++ b/src/battle/player_events.c @@ -11,6 +11,14 @@ extern HudScript HES_Happy; extern HudScript HES_HPDrain; +#if VERSION_PAL +extern HudScript HES_Happy_de; +extern HudScript HES_Happy_fr; +extern HudScript HES_Happy_es; +extern HudScript HES_HPDrain_de; +extern HudScript HES_HPDrain_fr; +extern HudScript HES_HPDrain_es; +#endif extern EvtScript EVS_Player_Celebrate; extern EvtScript EVS_Player_SimpleHit; @@ -49,6 +57,7 @@ void btl_set_player_idle_anims(void) { } } +#if !VERSION_PAL API_CALLABLE(IsPlayerImmobile) { BattleStatus* battleStatus = &gBattleStatus; Actor* playerActor = battleStatus->playerActor; @@ -66,6 +75,7 @@ API_CALLABLE(IsPlayerImmobile) { script->varTable[0] = isImmobile; return ApiStatus_DONE2; } +#endif API_CALLABLE(ActivateDefend) { ActorPart* actorPart = &gBattleStatus.playerActor->partsTable[0]; @@ -189,6 +199,7 @@ API_CALLABLE(GiveRefund) { f32 angle = 0.0f; s32 delayTime = 0; f32 posX, posY, posZ; + HudElemID hid; posY = player->curPos.y + player->size.y; if (player_team_is_ability_active(player, ABILITY_REFUND) && sellValue > 0) { @@ -213,8 +224,25 @@ API_CALLABLE(GiveRefund) { posY = player->curPos.y; posZ = player->curPos.z; get_screen_coords(gCurrentCameraID, posX, posY, posZ, &iconPosX, &iconPosY, &iconPosZ); - HID_Refund = hud_element_create(&HES_Refund); - hud_element_set_render_pos(HID_Refund, iconPosX + 36, iconPosY - 63); +#if VERSION_PAL + switch (gCurrentLanguage) { + case LANGUAGE_EN: + HID_Refund = hid = hud_element_create(&HES_Refund); + break; + case LANGUAGE_DE: + HID_Refund = hid = hud_element_create(&HES_Refund_de); + break; + case LANGUAGE_FR: + HID_Refund = hid = hud_element_create(&HES_Refund_fr); + break; + case LANGUAGE_ES: + HID_Refund = hid = hud_element_create(&HES_Refund_es); + break; + } +#else + HID_Refund = hid = hud_element_create(&HES_Refund); +#endif + hud_element_set_render_pos(hid, iconPosX + 36, iconPosY - 63); } script->varTable[0] = delayTime; @@ -489,6 +517,7 @@ API_CALLABLE(SpawnTurnEndFX) { s32 screenX; s32 screenY; s32 screenZ; + HudElemID hid; get_screen_coords(gCurrentCameraID, x, y, z, &screenX, &screenY, &screenZ); @@ -496,14 +525,48 @@ API_CALLABLE(SpawnTurnEndFX) { screenY -= 19; if (script->varTable[10] > 0) { - HID_HPDrain = hud_element_create(&HES_HPDrain); - hud_element_set_render_pos(HID_HPDrain, screenX, screenY); +#if VERSION_PAL + switch (gCurrentLanguage) { + case LANGUAGE_EN: + HID_HPDrain = hid = hud_element_create(&HES_HPDrain); + break; + case LANGUAGE_DE: + HID_HPDrain = hid = hud_element_create(&HES_HPDrain_de); + break; + case LANGUAGE_FR: + HID_HPDrain = hid = hud_element_create(&HES_HPDrain_fr); + break; + case LANGUAGE_ES: + HID_HPDrain = hid = hud_element_create(&HES_HPDrain_es); + break; + } +#else + HID_HPDrain = hid = hud_element_create(&HES_HPDrain); +#endif + hud_element_set_render_pos(hid, screenX, screenY); screenY += 9; } if (script->varTable[11] > 0 || script->varTable[12] > 0) { - HID_Happy = hud_element_create(&HES_Happy); - hud_element_set_render_pos(HID_Happy, screenX, screenY); +#if VERSION_PAL + switch (gCurrentLanguage) { + case LANGUAGE_EN: + HID_Happy = hid = hud_element_create(&HES_Happy); + break; + case LANGUAGE_DE: + HID_Happy = hid = hud_element_create(&HES_Happy_de); + break; + case LANGUAGE_FR: + HID_Happy = hid = hud_element_create(&HES_Happy_fr); + break; + case LANGUAGE_ES: + HID_Happy = hid = hud_element_create(&HES_Happy_es); + break; + } +#else + HID_Happy = hid = hud_element_create(&HES_Happy); +#endif + hud_element_set_render_pos(hid, screenX, screenY); } return ApiStatus_DONE2; } diff --git a/src/battle/popup_messages.c b/src/battle/popup_messages.c index 130082ddd37..15eca190109 100644 --- a/src/battle/popup_messages.c +++ b/src/battle/popup_messages.c @@ -39,6 +39,36 @@ s16 BattleMessage_TextOffsetsY[] = { 0, -2 }; s16 BattleMessage_BoxOffsetsY[] = { 0, -12 }; #endif +#if VERSION_PAL +s16 D_PAL_802839CC[] = { 0, -8 }; + +u16 TipAction_PressBeforeLanding_X[] = { 65, 71, 112, 67 }; +u16 TipAction_HoldLeftTimed_X1[] = { 55, 71, 92, 88 }; +u16 TipAction_HoldLeftTimed_X2[] = { 73, 86, 160, 224 }; +u16 TipAction_PressBeforeStrike_X[] = { 64, 71, 113, 67 }; +u16 TipAction_MashButton_X[] = { 67, 75, 114, 71 }; +u16 TipAction_MashLeft_X[] = { 56, 73, 70, 88 }; +u16 TipAction_HoldLeftAim_X1[] = { 65, 72, 93, 88 }; +u16 TipAction_HoldLeftAim_X2[] = { 146, 86, 137, 221 }; +u16 TipAction_PressButtonsShown_X2[] = { 64, 71, 112, 67 }; +u16 TipAction_PressButtonsShown_X1[] = { 86, 93, 134, 89 }; +u16 TipAction_PressButtonsShown_X3[] = { 108, 115, 156, 111 }; +u16 TipAction_PressWithTiming_X1[] = { 105, 129, 23, 140 }; +u16 TipAction_PressWithTiming_X2[] = { 65, 72, 112, 67 }; +u16 TipAction_PressWithTiming_Y1[] = { 13, 13, 31, 13 }; +u16 TipAction_MashBoth_X1[] = { 65, 73, 113, 68 }; +u16 TipAction_MashBoth_X2[] = { 86, 94, 134, 89 }; +u16 TipAction_HoldToTap_X[] = { 124, 64, 226, 87 }; +u16 TipAction_HoldToRelease_X2[] = { 53, 61, 93, 79 }; +u16 TipAction_HoldToRelease_X1[] = { 56, 56, 136, 72 }; +u16 TipAction_MoveToAim_X3[] = { 56, 73, 88, 90 }; +u16 TipAction_MoveToAim_X1[] = { 107, 118, 142, 134 }; +u16 TipAction_MoveToAim_X2[] = { 210, 48, 99, 47 }; +u16 TipAction_MoveToAim_Y2[] = { 15, 32, 32, 32 }; +u16 TipAction_BreakFree_X[] = { 64, 72, 112, 67 }; +u16 TipAction_ReduceDamage_X[] = { 64, 72, 185, 67 }; +#endif + //TODO Vec3f[] f32 D_802835DC[] = { 0.0f, 4.5f, 0.0f, @@ -1243,6 +1273,41 @@ void btl_update_message_popup(void* data) { #define TIP_Y_BF_RD 13 #define TIP_SCALE1 0.8f #define TIP_SCALE2 0.8f +#elif VERSION_PAL +#define TIP_X_PRL TipAction_PressBeforeLanding_X[gCurrentLanguage] +#define TIP_X_HLT1 TipAction_HoldLeftTimed_X1[gCurrentLanguage] +#define TIP_X_HLT2 TipAction_HoldLeftTimed_X2[gCurrentLanguage] +#define TIP_X_PBST TipAction_PressBeforeStrike_X[gCurrentLanguage] +#define TIP_X_MB TipAction_MashButton_X[gCurrentLanguage] +#define TIP_X_ML TipAction_MashLeft_X[gCurrentLanguage] +#define TIP_X_HLA1 TipAction_HoldLeftAim_X1[gCurrentLanguage] +#define TIP_X_HLA2 TipAction_HoldLeftAim_X2[gCurrentLanguage] +#define TIP_X_PBS1 TipAction_PressButtonsShown_X1[gCurrentLanguage] +#define TIP_X_PBS2 TipAction_PressButtonsShown_X2[gCurrentLanguage] +#define TIP_X_PBS3 TipAction_PressButtonsShown_X3[gCurrentLanguage] +#define TIP_X_PWT1 TipAction_PressWithTiming_X1[gCurrentLanguage] +#define TIP_X_PWT2 TipAction_PressWithTiming_X2[gCurrentLanguage] +#define TIP_X_MB1 TipAction_MashBoth_X1[gCurrentLanguage] +#define TIP_X_MB2 TipAction_MashBoth_X2[gCurrentLanguage] +#define TIP_X_HTT TipAction_HoldToTap_X[gCurrentLanguage] +#define TIP_X_HTR1 TipAction_HoldToRelease_X1[gCurrentLanguage] +#define TIP_X_HTR2 TipAction_HoldToRelease_X2[gCurrentLanguage] +#define TIP_X_MTA1 TipAction_MoveToAim_X1[gCurrentLanguage] +#define TIP_X_MTA2 TipAction_MoveToAim_X2[gCurrentLanguage] +#define TIP_X_MTA3 TipAction_MoveToAim_X3[gCurrentLanguage] +#define TIP_X_BF_RD TipAction_ReduceDamage_X[gCurrentLanguage] +#define TIP_Y_HLT2 31 +#define TIP_Y_HLA2 32 +#define TIP_Y_PBS1 13 +#define TIP_Y_PBS2 13 +#define TIP_Y_PBS3 13 +#define TIP_Y_PWT1 TipAction_PressWithTiming_Y1[gCurrentLanguage] +#define TIP_Y_HTR1 31 +#define TIP_Y_MTA1 13 +#define TIP_Y_MTA2 TipAction_MoveToAim_Y2[gCurrentLanguage] +#define TIP_Y_BF_RD 13 +#define TIP_SCALE1 0.8f +#define TIP_SCALE2 0.8f #else #define TIP_X_PRL 65 #define TIP_X_HLT1 55 @@ -1385,10 +1450,19 @@ void btl_message_popup_draw_content(void* data, s32 x, s32 y) { case BTL_MSG_JUMP_DISABLED_2: case BTL_MSG_JUMP_DISABLED_3: case BTL_MSG_ITEMS_DISABLED: +#if VERSION_PAL + hud_element_set_render_pos(HID_BattleMessage1, x + 13, y + 14); + hud_element_draw_clipped(HID_BattleMessage1); + messageID = BattleMessages[popup->messageIndex]; + msgLinesIdx = get_msg_lines(messageID) - 1; + y += D_PAL_802839CC[msgLinesIdx]; + draw_msg(messageID, x + 29, y + 6, 255, MSG_PAL_0F, 0); +#else messageID = BattleMessages[popup->messageIndex]; draw_msg(messageID, x + 29, y + 6, 255, MSG_PAL_0F, 0); hud_element_set_render_pos(HID_BattleMessage1, x + 13, y + 14); hud_element_draw_clipped(HID_BattleMessage1); +#endif break; case BTL_MSG_ACTION_TIP_PRESS_BEFORE_LANDING: case BTL_MSG_ACTION_TIP_HOLD_LEFT_TIMED: @@ -1610,6 +1684,13 @@ void btl_message_popup_draw_content(void* data, s32 x, s32 y) { break; #endif case BTL_MSG_ACTION_TIP_BREAK_FREE: +#if VERSION_PAL + hud_element_set_render_pos(HID_BattleMessage1, x + TipAction_BreakFree_X[gCurrentLanguage], y + TIP_Y_BF_RD); + hud_element_set_scale(HID_BattleMessage1, 0.5f); + hud_element_set_alpha(HID_BattleMessage1, opacity); + hud_element_draw_clipped(HID_BattleMessage1); + break; +#endif case BTL_MSG_ACTION_TIP_REDUCE_DAMAGE: hud_element_set_render_pos(HID_BattleMessage1, x + TIP_X_BF_RD, y + TIP_Y_BF_RD); hud_element_set_scale(HID_BattleMessage1, 0.5f); diff --git a/src/battle_ui_gfx.c b/src/battle_ui_gfx.c index e92f89ab1b7..264fad65320 100644 --- a/src/battle_ui_gfx.c +++ b/src/battle_ui_gfx.c @@ -224,27 +224,35 @@ INCLUDE_PAL("ui/battle/cmd/aim/target_1.pal", ui_battle_cmd_aim_target_1_pal); INCLUDE_IMG("ui/battle/solid_star.png", ui_battle_solid_star_png); INCLUDE_PAL("ui/battle/solid_star.pal", ui_battle_solid_star_pal); +#if !VERSION_PAL Gfx D_8028F860[] = { gsSPEndDisplayList(), }; +#endif INCLUDE_IMG("ui/battle/projector_spot.png", ui_battle_projector_spot_png); +#if !VERSION_PAL Gfx D_8028FC68[] = { gsSPEndDisplayList(), }; +#endif INCLUDE_IMG("ui/battle/projector_beam.png", ui_battle_projector_beam_png); +#if !VERSION_PAL Gfx D_80290C70[] = { gsSPEndDisplayList(), }; +#endif INCLUDE_IMG("ui/battle/projector_reel.png", ui_battle_projector_reel_png); +#if !VERSION_PAL Gfx D_80291C78[] = { gsSPEndDisplayList(), }; +#endif INCLUDE_IMG("ui/battle/swap_background.png", ui_battle_swap_background_png); diff --git a/src/boot/entry_point.s b/src/boot/entry_point.s index 29e3e9838a5..ddabc7b6619 100644 --- a/src/boot/entry_point.s +++ b/src/boot/entry_point.s @@ -19,8 +19,13 @@ glabel entry_point /* 101C 80025C1C 2129FFF8 */ addi $t1, $t1, -8 /* 1020 80025C20 1520FFFB */ bnez $t1, .L80025C10 /* 1024 80025C24 00000000 */ nop +#if VERSION_PAL +/* 1028 80025C28 3C1D800B */ lui $sp, %hi(nuMainStack + 0x2000) +/* 102C 80025C2C 27BD6590 */ addiu $sp, $sp, %lo(nuMainStack + 0x2000) +#else /* 1028 80025C28 3C1D800B */ lui $sp, %hi(nuBootStack + 0x2000) /* 102C 80025C2C 27BD6590 */ addiu $sp, $sp, %lo(nuBootStack + 0x2000) +#endif /* 1030 80025C30 3C0A8006 */ lui $t2, %hi(nuBoot) /* 1034 80025C34 254AE8B0 */ addiu $t2, $t2, %lo(nuBoot) /* 1038 80025C38 01400008 */ jr $t2 diff --git a/src/bss/engine2_post_bss.c b/src/bss/engine2_post_bss.c index 6de7124c47e..033e5967153 100644 --- a/src/bss/engine2_post_bss.c +++ b/src/bss/engine2_post_bss.c @@ -31,6 +31,8 @@ BSS PAL_BIN D_8015C7E0[0x10]; BSS char D_8015C800[0x3C80]; #elif VERSION_JP BSS char D_8015C800[0x2880]; +#elif VERSION_PAL +BSS char D_8015C800[0x57E0]; #else BSS char D_8015C800[0x7800]; #endif diff --git a/src/bss/main_post_bss.c b/src/bss/main_post_bss.c index 2d1b7aed54a..ab0c698595c 100644 --- a/src/bss/main_post_bss.c +++ b/src/bss/main_post_bss.c @@ -15,7 +15,7 @@ // main segment COMMON/.scommon symbols // -#if VERSION_IQUE +#if VERSION_IQUE || VERSION_PAL BSS OSIoMesg __osFlashMsg OSALIGNED(8); #endif BSS char wMapTexName[0x18]; @@ -27,7 +27,7 @@ BSS OSPiHandle __Dom2SpeedParam OSALIGNED(8); BSS OSContStatus nuContStatus[NU_CONT_MAXCONTROLLERS]; BSS OSThread D_800B1B90; BSS NUContRmbCtl nuContRmbCtl[NU_CONT_MAXCONTROLLERS]; -#if VERSION_IQUE +#if VERSION_IQUE || VERSION_PAL BSS u32 __osFlashID[4] OSALIGNED(8); #endif BSS OSContPad nuContData[NU_CONT_MAXCONTROLLERS]; @@ -40,12 +40,14 @@ BSS OSPiHandle __CartRomHandle OSALIGNED(8); BSS OSMesgQueue __osPiAccessQueue OSALIGNED(8); BSS EffectInstance* gEffectInstances[96] ALIGNED(8); BSS OSPiHandle __Dom1SpeedParam OSALIGNED(8); +#if !VERSION_PAL BSS u8 nuBootStack[0x2000] ALIGNED(8); +#endif BSS u64 nuMainStack[NU_SC_STACK_SIZE / sizeof(u64)]; BSS u8 nuYieldBuf[NU_GFX_YIELD_BUF_SIZE]; BSS AuSynDriver auSynDriver; BSS s32 D_800B91D0[NU_GFX_RDP_OUTPUTBUFF_SIZE / sizeof(u32)] ALIGNED(16); -#if VERSION_IQUE +#if VERSION_IQUE || VERSION_PAL BSS OSPiHandle __osFlashHandler OSALIGNED(8); #endif BSS CollisionData gZoneCollisionData ALIGNED(8); @@ -58,7 +60,7 @@ BSS OSMesgQueue nuSiMgrMesgQ; BSS OSTimer __osBaseTimer; BSS char wMapShapeName[0x18]; BSS ALHeap nuAuHeap; -#if VERSION_IQUE +#if VERSION_IQUE || VERSION_PAL BSS OSMesgQueue __osFlashMessageQ OSALIGNED(8); #endif BSS OSTimer __osEepromTimer; diff --git a/src/bss/main_pre_bss.c b/src/bss/main_pre_bss.c index 66f5235b480..41bc59ab9cf 100644 --- a/src/bss/main_pre_bss.c +++ b/src/bss/main_pre_bss.c @@ -15,7 +15,7 @@ BSS u8 nuScPreNMIFlag; BSS s32 D_8009A5B4; BSS s32 D_8009A5B8; BSS s32 D_8009A5BC; -#if VERSION_IQUE +#if VERSION_IQUE || VERSION_PAL BSS s32 __osFlashVersion; #endif BSS AuGlobals* gSoundGlobals; @@ -43,7 +43,7 @@ BSS BGMPlayer* gBGMPlayerB; BSS s32 gEncounterState; BSS s16 gNpcCount; BSS u8 __osMaxControllers; -#if VERSION_IQUE +#if VERSION_IQUE || VERSION_PAL BSS OSMesg __osFlashMsgBuf; #endif BSS OSTime __osCurrentTime; @@ -81,7 +81,7 @@ BSS s8 LastBattleStartedBySpin; BSS DisplayContext* gDisplayContext; BSS b32 EncounterStateChanged; BSS s32 D_8009A67C; -#if VERSION_IQUE +#if VERSION_IQUE || VERSION_PAL BSS s32 D_80099258[2]; #endif BSS u16* ResetFrameBufferArray; diff --git a/src/curtains.c b/src/curtains.c index 8eceb139846..6999ae3141c 100644 --- a/src/curtains.c +++ b/src/curtains.c @@ -173,7 +173,12 @@ Gfx TheaterInitGfx[] = { gsSPEndDisplayList(), }; +#if VERSION_PAL +BSS IMG_BIN noControllerImgBuf[0x1000] ALIGNED(16); +#define ui_no_controller_png noControllerImgBuf +#else INCLUDE_IMG("ui/no_controller.png", ui_no_controller_png); +#endif Gfx NoControllerSetupTexGfx[] = { gsDPPipeSync(), @@ -207,6 +212,10 @@ BSS f32 gCurtainScaleGoal; BSS f32 gCurtainFade; BSS f32 gCurtainFadeGoal; BSS UNK_FUN_PTR(gCurtainDrawCallback); +#if VERSION_PAL +BSS s32 D_PAL_8009A204; +BSS s32 D_PAL_8009A208; +#endif BSS Mtx D_8009BAA8[2]; void initialize_curtains(void) { @@ -215,11 +224,17 @@ void initialize_curtains(void) { gCurtainScaleGoal = 2.0f; gCurtainFade = 0.0f; gCurtainFadeGoal = 0.0f; +#if VERSION_PAL + D_PAL_8009A204 = 6; + D_PAL_8009A208 = 0; +#endif } void update_curtains(void) { } +#define UI_NO_CONTROLLER_SIZE (ui_no_controller_png_width * ui_no_controller_png_height) + void render_curtains(void) { if (gCurtainScaleGoal != gCurtainScale) { gCurtainScale += (gCurtainScaleGoal - gCurtainScale) * 0.1; @@ -274,10 +289,34 @@ void render_curtains(void) { alpha = 255; } - gSPDisplayList(gMainGfxPos++, &TheaterInitGfx); - gSPDisplayList(gMainGfxPos++, &NoControllerSetupTexGfx); - gDPSetPrimColor(gMainGfxPos++, 0, 0, 0xFF, 0x20, 0x10, alpha); - gSPDisplayList(gMainGfxPos++, &NoControllerGfx); +#if VERSION_PAL + if (alpha == 0) { + D_PAL_8009A204 = 6; + } + + if (D_PAL_8009A204 == 0) { +#endif + gSPDisplayList(gMainGfxPos++, &TheaterInitGfx); + gSPDisplayList(gMainGfxPos++, &NoControllerSetupTexGfx); + gDPSetPrimColor(gMainGfxPos++, 0, 0, 0xFF, 0x20, 0x10, alpha); + gSPDisplayList(gMainGfxPos++, &NoControllerGfx); +#if VERSION_PAL + } + + if (D_PAL_8009A204 == 3) { + u8* dmaStart = ui_no_controller_ROM_START + (D_PAL_8009A208 / 2) * UI_NO_CONTROLLER_SIZE; + u8* dmaEnd = ui_no_controller_ROM_START + (D_PAL_8009A208 / 2) * UI_NO_CONTROLLER_SIZE + UI_NO_CONTROLLER_SIZE; + dma_copy(dmaStart, dmaEnd, &noControllerImgBuf); + + D_PAL_8009A208++; + if (D_PAL_8009A208 >= 8) { + D_PAL_8009A208 = 0; + } + } + if (D_PAL_8009A204 != 0) { + D_PAL_8009A204--; + } +#endif } } } diff --git a/src/effects.c b/src/effects.c index 086d91e4cd8..8024cc3da7f 100644 --- a/src/effects.c +++ b/src/effects.c @@ -335,7 +335,41 @@ s32 load_effect(s32 effectIndex) { void* graphics = general_heap_malloc(effectEntry->graphicsDmaEnd - effectEntry->graphicsDmaStart); sharedData->graphics = graphics; ASSERT(graphics != NULL); - dma_copy(effectEntry->graphicsDmaStart, effectEntry->graphicsDmaEnd, sharedData->graphics); + +#if VERSION_PAL + if (effectEntry->graphicsDmaStart == effect_gfx_attack_result_text_ROM_START) { + switch (gCurrentLanguage) { + case LANGUAGE_EN: + dma_copy(effectEntry->graphicsDmaStart, effectEntry->graphicsDmaEnd, sharedData->graphics); + break; + case LANGUAGE_DE: + dma_copy(effect_gfx_attack_result_text_de_ROM_START, effect_gfx_attack_result_text_de_ROM_END, sharedData->graphics); + break; + case LANGUAGE_FR: + dma_copy(effect_gfx_attack_result_text_fr_ROM_START, effect_gfx_attack_result_text_fr_ROM_END, sharedData->graphics); + break; + default: + dma_copy(effect_gfx_attack_result_text_es_ROM_START, effect_gfx_attack_result_text_es_ROM_END, sharedData->graphics); + break; + } + } else if (effectEntry->graphicsDmaStart == effect_gfx_chapter_change_ROM_START) { + switch (gCurrentLanguage) { + case LANGUAGE_EN: + dma_copy(effectEntry->graphicsDmaStart, effectEntry->graphicsDmaEnd, sharedData->graphics); + break; + case LANGUAGE_DE: + dma_copy(effect_chapter_change_gfx_de_ROM_START, effect_chapter_change_gfx_de_ROM_END, sharedData->graphics); + break; + case LANGUAGE_FR: + dma_copy(effect_chapter_change_gfx_fr_ROM_START, effect_chapter_change_gfx_fr_ROM_END, sharedData->graphics); + break; + default: + dma_copy(effect_chapter_change_gfx_es_ROM_START, effect_chapter_change_gfx_es_ROM_END, sharedData->graphics); + break; + } + } else +#endif + dma_copy(effectEntry->graphicsDmaStart, effectEntry->graphicsDmaEnd, sharedData->graphics); } // Initialize the newly loaded effect data diff --git a/src/effects/gfx/attack_result_text_de.c b/src/effects/gfx/attack_result_text_de.c new file mode 100644 index 00000000000..814a5e7aae5 --- /dev/null +++ b/src/effects/gfx/attack_result_text_de.c @@ -0,0 +1,28 @@ +#include "include_asset.h" + +INCLUDE_IMG("effects/gfx/de/battle/lucky.png", D_PAL_09000000_3BAAF0); +INCLUDE_IMG("effects/gfx/de/battle/miss.png", D_PAL_09000400_3BAEF0); +INCLUDE_IMG("effects/gfx/de/battle/good.png", D_PAL_09000800_3BB2F0); +INCLUDE_IMG("effects/gfx/de/battle/nice.png", D_PAL_09000C00_3BB6F0); +INCLUDE_IMG("effects/gfx/de/battle/super.png", D_PAL_09001000_3BBAF0); +INCLUDE_IMG("effects/gfx/de/D_PAL_09001400_3BBEF0.png", D_PAL_09001400_3BBEF0); + +#include "effects/gfx/de/D_PAL_09001500_3BBFF0.gfx.inc.c" +#include "effects/gfx/de/D_PAL_090015A8_3BC098.gfx.inc.c" +#include "effects/gfx/de/D_PAL_09001610_3BC100.gfx.inc.c" +#include "effects/gfx/de/D_PAL_09001658_3BC148.gfx.inc.c" +#include "effects/gfx/de/D_PAL_090016A0_3BC190.gfx.inc.c" +#include "effects/gfx/de/D_PAL_090016E8_3BC1D8.gfx.inc.c" +#include "effects/gfx/de/D_PAL_09001730_3BC220.gfx.inc.c" + +#include "effects/gfx/de/D_PAL_09001778_3BC268.vtx.inc.c" +#include "effects/gfx/de/D_PAL_090017B8_3BC2A8.vtx.inc.c" +#include "effects/gfx/de/D_PAL_090017F8_3BC2E8.vtx.inc.c" +#include "effects/gfx/de/D_PAL_09001838_3BC328.vtx.inc.c" +#include "effects/gfx/de/D_PAL_09001878_3BC368.vtx.inc.c" + +#include "effects/gfx/de/D_PAL_090018B8_3BC3A8.gfx.inc.c" +#include "effects/gfx/de/D_PAL_090018D8_3BC3C8.gfx.inc.c" +#include "effects/gfx/de/D_PAL_090018F8_3BC3E8.gfx.inc.c" +#include "effects/gfx/de/D_PAL_09001918_3BC408.gfx.inc.c" +#include "effects/gfx/de/D_PAL_09001938_3BC428.gfx.inc.c" diff --git a/src/effects/gfx/attack_result_text_es.c b/src/effects/gfx/attack_result_text_es.c new file mode 100644 index 00000000000..14653272453 --- /dev/null +++ b/src/effects/gfx/attack_result_text_es.c @@ -0,0 +1,28 @@ +#include "include_asset.h" + +INCLUDE_IMG("effects/gfx/es/battle/lucky.png", D_PAL_09000000_3BDDB0); +INCLUDE_IMG("effects/gfx/es/battle/miss.png", D_PAL_09000400_3BE1B0); +INCLUDE_IMG("effects/gfx/es/battle/good.png", D_PAL_09000800_3BE5B0); +INCLUDE_IMG("effects/gfx/es/battle/nice.png", D_PAL_09000C00_3BE9B0); +INCLUDE_IMG("effects/gfx/es/battle/super.png", D_PAL_09001000_3BEDB0); +INCLUDE_IMG("effects/gfx/es/D_PAL_09001400_3BF1B0.png", D_PAL_09001400_3BF1B0); + +#include "effects/gfx/es/D_PAL_09001500_3BF2B0.gfx.inc.c" +#include "effects/gfx/es/D_PAL_090015A8_3BF358.gfx.inc.c" +#include "effects/gfx/es/D_PAL_09001610_3BF3C0.gfx.inc.c" +#include "effects/gfx/es/D_PAL_09001658_3BF408.gfx.inc.c" +#include "effects/gfx/es/D_PAL_090016A0_3BF450.gfx.inc.c" +#include "effects/gfx/es/D_PAL_090016E8_3BF498.gfx.inc.c" +#include "effects/gfx/es/D_PAL_09001730_3BF4E0.gfx.inc.c" + +#include "effects/gfx/es/D_PAL_09001778_3BF528.vtx.inc.c" +#include "effects/gfx/es/D_PAL_090017B8_3BF568.vtx.inc.c" +#include "effects/gfx/es/D_PAL_090017F8_3BF5A8.vtx.inc.c" +#include "effects/gfx/es/D_PAL_09001838_3BF5E8.vtx.inc.c" +#include "effects/gfx/es/D_PAL_09001878_3BF628.vtx.inc.c" + +#include "effects/gfx/es/D_PAL_090018B8_3BF668.gfx.inc.c" +#include "effects/gfx/es/D_PAL_090018D8_3BF688.gfx.inc.c" +#include "effects/gfx/es/D_PAL_090018F8_3BF6A8.gfx.inc.c" +#include "effects/gfx/es/D_PAL_09001918_3BF6C8.gfx.inc.c" +#include "effects/gfx/es/D_PAL_09001938_3BF6E8.gfx.inc.c" diff --git a/src/effects/gfx/attack_result_text_fr.c b/src/effects/gfx/attack_result_text_fr.c new file mode 100644 index 00000000000..32fbff4f52a --- /dev/null +++ b/src/effects/gfx/attack_result_text_fr.c @@ -0,0 +1,28 @@ +#include "include_asset.h" + +INCLUDE_IMG("effects/gfx/fr/battle/lucky.png", D_PAL_09000000_3BC450); +INCLUDE_IMG("effects/gfx/fr/battle/miss.png", D_PAL_09000400_3BC850); +INCLUDE_IMG("effects/gfx/fr/battle/good.png", D_PAL_09000800_3BCC50); +INCLUDE_IMG("effects/gfx/fr/battle/nice.png", D_PAL_09000C00_3BD050); +INCLUDE_IMG("effects/gfx/fr/battle/super.png", D_PAL_09001000_3BD450); +INCLUDE_IMG("effects/gfx/fr/D_PAL_09001400_3BD850.png", D_PAL_09001400_3BD850); + +#include "effects/gfx/fr/D_PAL_09001500_3BD950.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_090015A8_3BD9F8.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_09001610_3BDA60.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_09001658_3BDAA8.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_090016A0_3BDAF0.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_090016E8_3BDB38.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_09001730_3BDB80.gfx.inc.c" + +#include "effects/gfx/fr/D_PAL_09001778_3BDBC8.vtx.inc.c" +#include "effects/gfx/fr/D_PAL_090017B8_3BDC08.vtx.inc.c" +#include "effects/gfx/fr/D_PAL_090017F8_3BDC48.vtx.inc.c" +#include "effects/gfx/fr/D_PAL_09001838_3BDC88.vtx.inc.c" +#include "effects/gfx/fr/D_PAL_09001878_3BDCC8.vtx.inc.c" + +#include "effects/gfx/fr/D_PAL_090018B8_3BDD08.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_090018D8_3BDD28.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_090018F8_3BDD48.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_09001918_3BDD68.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_09001938_3BDD88.gfx.inc.c" diff --git a/src/effects/gfx/chapter_change_de.c b/src/effects/gfx/chapter_change_de.c new file mode 100644 index 00000000000..b375de985de --- /dev/null +++ b/src/effects/gfx/chapter_change_de.c @@ -0,0 +1,44 @@ +#include "include_asset.h" + +INCLUDE_IMG("effects/gfx/de/world/ch0.png", D_PAL_09000000_425E60); +INCLUDE_IMG("effects/gfx/de/D_PAL_09000B40_4269A0.png", D_PAL_09000B40_4269A0); +INCLUDE_IMG("effects/gfx/de/world/text_chapter.png", D_PAL_09001680_4274E0); +INCLUDE_IMG("effects/gfx/de/D_PAL_09001B80_4279E0.png", D_PAL_09001B80_4279E0); +INCLUDE_IMG("effects/gfx/de/D_PAL_09002080_427EE0.png", D_PAL_09002080_427EE0); +INCLUDE_IMG("effects/gfx/de/D_PAL_09002580_4283E0.png", D_PAL_09002580_4283E0); +INCLUDE_IMG("effects/gfx/de/world/text_end_of.png", D_PAL_09002A80_4288E0); +INCLUDE_IMG("effects/gfx/de/world/exclamation_point.png", D_PAL_09003AC0_429920); +INCLUDE_IMG("effects/gfx/de/world/ch1.png", D_PAL_09003D40_429BA0); +INCLUDE_IMG("effects/gfx/de/world/ch2.png", D_PAL_09004D40_42ABA0); +INCLUDE_IMG("effects/gfx/de/world/ch3.png", D_PAL_09005D40_42BBA0); +INCLUDE_IMG("effects/gfx/de/world/ch4.png", D_PAL_09006D40_42CBA0); +INCLUDE_IMG("effects/gfx/de/world/ch5.png", D_PAL_09007D40_42DBA0); +INCLUDE_IMG("effects/gfx/de/world/ch6.png", D_PAL_09008D40_42EBA0); +INCLUDE_IMG("effects/gfx/de/world/ch7.png", D_PAL_09009D40_42FBA0); +INCLUDE_IMG("effects/gfx/de/world/ch8.png", D_PAL_0900AD40_430BA0); +INCLUDE_IMG("effects/gfx/de/world/chapter_rainbow.png", D_PAL_0900BD40_431BA0); + +#include "effects/gfx/de/D_PAL_0900BE40_431CA0.gfx.inc.c" +#include "effects/gfx/de/D_PAL_0900BE88_431CE8.gfx.inc.c" +#include "effects/gfx/de/D_PAL_0900BED0_431D30.gfx.inc.c" +#include "effects/gfx/de/D_PAL_0900BF18_431D78.gfx.inc.c" +#include "effects/gfx/de/D_PAL_0900BF60_431DC0.gfx.inc.c" +#include "effects/gfx/de/D_PAL_0900BFA8_431E08.gfx.inc.c" +#include "effects/gfx/de/D_PAL_0900BFF0_431E50.gfx.inc.c" +#include "effects/gfx/de/D_PAL_0900C038_431E98.gfx.inc.c" +#include "effects/gfx/de/D_PAL_0900C080_431EE0.gfx.inc.c" +#include "effects/gfx/de/D_PAL_0900C168_431FC8.gfx.inc.c" +#include "effects/gfx/de/D_PAL_0900C1B0_432010.gfx.inc.c" +#include "effects/gfx/de/D_PAL_0900C1F8_432058.gfx.inc.c" +#include "effects/gfx/de/D_PAL_0900C240_4320A0.gfx.inc.c" + +//#include "effects/gfx/de/D_PAL_0900C328_432188.gfx.inc.c" +Gfx D_PAL_0900C328_432188[] = { + gsDPSetTextureLUT(G_TT_NONE), + gsDPLoadTextureTile(&D_PAL_09002A80_4288E0[0x820], G_IM_FMT_IA, G_IM_SIZ_8b, 104, 0, 0, 0, 103, 19, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 7, 6, G_TX_NOLOD, G_TX_NOLOD), + gsSPEndDisplayList(), +}; + +#include "effects/gfx/de/D_PAL_0900C370_4321D0.gfx.inc.c" +#include "effects/gfx/de/D_PAL_0900C458_4322B8.gfx.inc.c" +#include "effects/gfx/de/D_PAL_0900C540_4323A0.gfx.inc.c" diff --git a/src/effects/gfx/chapter_change_es.c b/src/effects/gfx/chapter_change_es.c new file mode 100644 index 00000000000..88bd57755c9 --- /dev/null +++ b/src/effects/gfx/chapter_change_es.c @@ -0,0 +1,44 @@ +#include "include_asset.h" + +INCLUDE_IMG("effects/gfx/es/world/ch0.png", D_PAL_09000000_43E980); +INCLUDE_IMG("effects/gfx/es/D_PAL_09000B40_43F4C0.png", D_PAL_09000B40_43F4C0); +INCLUDE_IMG("effects/gfx/es/world/text_chapter.png", D_PAL_09001680_440000); +INCLUDE_IMG("effects/gfx/es/D_PAL_09001B80_440500.png", D_PAL_09001B80_440500); +INCLUDE_IMG("effects/gfx/es/D_PAL_09002080_440A00.png", D_PAL_09002080_440A00); +INCLUDE_IMG("effects/gfx/es/D_PAL_09002580_440F00.png", D_PAL_09002580_440F00); +INCLUDE_IMG("effects/gfx/es/world/text_end_of.png", D_PAL_09002A80_441400); +INCLUDE_IMG("effects/gfx/es/world/exclamation_point.png", D_PAL_09003AC0_442440); +INCLUDE_IMG("effects/gfx/es/world/ch1.png", D_PAL_09003D40_4426C0); +INCLUDE_IMG("effects/gfx/es/world/ch2.png", D_PAL_09004D40_4436C0); +INCLUDE_IMG("effects/gfx/es/world/ch3.png", D_PAL_09005D40_4446C0); +INCLUDE_IMG("effects/gfx/es/world/ch4.png", D_PAL_09006D40_4456C0); +INCLUDE_IMG("effects/gfx/es/world/ch5.png", D_PAL_09007D40_4466C0); +INCLUDE_IMG("effects/gfx/es/world/ch6.png", D_PAL_09008D40_4476C0); +INCLUDE_IMG("effects/gfx/es/world/ch7.png", D_PAL_09009D40_4486C0); +INCLUDE_IMG("effects/gfx/es/world/ch8.png", D_PAL_0900AD40_4496C0); +INCLUDE_IMG("effects/gfx/es/world/chapter_rainbow.png", D_PAL_0900BD40_44A6C0); + +#include "effects/gfx/es/D_PAL_0900BE40_44A7C0.gfx.inc.c" +#include "effects/gfx/es/D_PAL_0900BE88_44A808.gfx.inc.c" +#include "effects/gfx/es/D_PAL_0900BED0_44A850.gfx.inc.c" +#include "effects/gfx/es/D_PAL_0900BF18_44A898.gfx.inc.c" +#include "effects/gfx/es/D_PAL_0900BF60_44A8E0.gfx.inc.c" +#include "effects/gfx/es/D_PAL_0900BFA8_44A928.gfx.inc.c" +#include "effects/gfx/es/D_PAL_0900BFF0_44A970.gfx.inc.c" +#include "effects/gfx/es/D_PAL_0900C038_44A9B8.gfx.inc.c" +#include "effects/gfx/es/D_PAL_0900C080_44AA00.gfx.inc.c" +#include "effects/gfx/es/D_PAL_0900C168_44AAE8.gfx.inc.c" +#include "effects/gfx/es/D_PAL_0900C1B0_44AB30.gfx.inc.c" +#include "effects/gfx/es/D_PAL_0900C1F8_44AB78.gfx.inc.c" +#include "effects/gfx/es/D_PAL_0900C240_44ABC0.gfx.inc.c" + +//#include "effects/gfx/es/D_PAL_0900C328_44ACA8.gfx.inc.c" +Gfx D_PAL_0900C328_44ACA8[] = { + gsDPSetTextureLUT(G_TT_NONE), + gsDPLoadTextureTile(&D_PAL_09002A80_441400[0x820], G_IM_FMT_IA, G_IM_SIZ_8b, 104, 0, 0, 0, 103, 19, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 7, 6, G_TX_NOLOD, G_TX_NOLOD), + gsSPEndDisplayList(), +}; + +#include "effects/gfx/es/D_PAL_0900C370_44ACF0.gfx.inc.c" +#include "effects/gfx/es/D_PAL_0900C458_44ADD8.gfx.inc.c" +#include "effects/gfx/es/D_PAL_0900C540_44AEC0.gfx.inc.c" diff --git a/src/effects/gfx/chapter_change_fr.c b/src/effects/gfx/chapter_change_fr.c new file mode 100644 index 00000000000..afc867f2874 --- /dev/null +++ b/src/effects/gfx/chapter_change_fr.c @@ -0,0 +1,44 @@ +#include "include_asset.h" + +INCLUDE_IMG("effects/gfx/fr/world/ch0.png", D_PAL_09000000_4323F0); +INCLUDE_IMG("effects/gfx/fr/D_PAL_09000B40_432F30.png", D_PAL_09000B40_432F30); +INCLUDE_IMG("effects/gfx/fr/world/text_chapter.png", D_PAL_09001680_433A70); +INCLUDE_IMG("effects/gfx/fr/D_PAL_09001B80_433F70.png", D_PAL_09001B80_433F70); +INCLUDE_IMG("effects/gfx/fr/D_PAL_09002080_434470.png", D_PAL_09002080_434470); +INCLUDE_IMG("effects/gfx/fr/D_PAL_09002580_434970.png", D_PAL_09002580_434970); +INCLUDE_IMG("effects/gfx/fr/world/text_end_of.png", D_PAL_09002A80_434E70); +INCLUDE_IMG("effects/gfx/fr/world/exclamation_point.png", D_PAL_09003AC0_435EB0); +INCLUDE_IMG("effects/gfx/fr/world/ch1.png", D_PAL_09003D40_436130); +INCLUDE_IMG("effects/gfx/fr/world/ch2.png", D_PAL_09004D40_437130); +INCLUDE_IMG("effects/gfx/fr/world/ch3.png", D_PAL_09005D40_438130); +INCLUDE_IMG("effects/gfx/fr/world/ch4.png", D_PAL_09006D40_439130); +INCLUDE_IMG("effects/gfx/fr/world/ch5.png", D_PAL_09007D40_43A130); +INCLUDE_IMG("effects/gfx/fr/world/ch6.png", D_PAL_09008D40_43B130); +INCLUDE_IMG("effects/gfx/fr/world/ch7.png", D_PAL_09009D40_43C130); +INCLUDE_IMG("effects/gfx/fr/world/ch8.png", D_PAL_0900AD40_43D130); +INCLUDE_IMG("effects/gfx/fr/world/chapter_rainbow.png", D_PAL_0900BD40_43E130); + +#include "effects/gfx/fr/D_PAL_0900BE40_43E230.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_0900BE88_43E278.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_0900BED0_43E2C0.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_0900BF18_43E308.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_0900BF60_43E350.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_0900BFA8_43E398.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_0900BFF0_43E3E0.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_0900C038_43E428.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_0900C080_43E470.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_0900C168_43E558.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_0900C1B0_43E5A0.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_0900C1F8_43E5E8.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_0900C240_43E630.gfx.inc.c" + +//#include "effects/gfx/fr/D_PAL_0900C328_43E718.gfx.inc.c" +Gfx D_PAL_0900C328_43E718[] = { + gsDPSetTextureLUT(G_TT_NONE), + gsDPLoadTextureTile(&D_PAL_09002A80_434E70[0x820], G_IM_FMT_IA, G_IM_SIZ_8b, 104, 0, 0, 0, 103, 19, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 7, 6, G_TX_NOLOD, G_TX_NOLOD), + gsSPEndDisplayList(), +}; + +#include "effects/gfx/fr/D_PAL_0900C370_43E760.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_0900C458_43E848.gfx.inc.c" +#include "effects/gfx/fr/D_PAL_0900C540_43E930.gfx.inc.c" diff --git a/src/encounter.c b/src/encounter.c index c6e2b7e380b..76d32d6ba22 100644 --- a/src/encounter.c +++ b/src/encounter.c @@ -1270,6 +1270,9 @@ void update_encounters_pre_battle(void) { switch (gEncounterSubState) { case ENCOUNTER_SUBSTATE_PRE_BATTLE_INIT: +#if VERSION_PAL + gPlayerStatusPtr->pitch = 0; +#endif currentEncounter->fadeOutAmount = 0; currentEncounter->substateDelay = 1; currentEncounter->fadeOutAccel = 1; diff --git a/src/encounter_api.c b/src/encounter_api.c index f737f4f1e0c..04501bf778d 100644 --- a/src/encounter_api.c +++ b/src/encounter_api.c @@ -368,7 +368,7 @@ API_CALLABLE(BindNpcAI) { } if (enemy->aiScript != NULL) { -#if VERSION_JP +#if VERSION_JP || VERSION_PAL groupFlags = enemy->aiScript->groupFlags; #endif kill_script_by_ID(enemy->aiScriptID); @@ -421,7 +421,7 @@ API_CALLABLE(RestartNpcAI) { } if (enemy->aiScript != NULL) { -#if VERSION_JP +#if VERSION_JP || VERSION_PAL groupFlags = enemy->aiScript->groupFlags; #endif kill_script_by_ID(enemy->aiScriptID); @@ -542,7 +542,7 @@ API_CALLABLE(RestartNpcAux) { } if (enemy->auxScript != NULL) { -#if VERSION_JP +#if VERSION_JP || VERSION_PAL groupFlags = enemy->auxScript->groupFlags; #endif kill_script_by_ID(enemy->auxScriptID); diff --git a/src/filemenu/filemenu_common.c b/src/filemenu/filemenu_common.c index 8d48a3d12eb..301c33b55bd 100644 --- a/src/filemenu/filemenu_common.c +++ b/src/filemenu/filemenu_common.c @@ -1022,8 +1022,6 @@ void filemenu_draw_contents_copy_arrow(MenuPanel* menu, s32 baseX, s32 baseY, s3 } -void func_PAL_8002B574(void); // TODO identify - // TODO bad match, look into void filemenu_init(s32 mode) { MenuPanel** panelIt; diff --git a/src/filemenu/filemenu_createfile.c b/src/filemenu/filemenu_createfile.c index 33552b7eb31..6f52f10f156 100644 --- a/src/filemenu/filemenu_createfile.c +++ b/src/filemenu/filemenu_createfile.c @@ -158,9 +158,6 @@ void filemenu_draw_contents_file_create_header( #endif } -#if VERSION_PAL -INCLUDE_ASM(void, "filemenu/filemenu_createfile", filemenu_draw_contents_choose_name); -#else s32 msg_get_print_char_width(s32 character, s32 charset, s32 variation, f32 msgScale, s32 overrideCharWidth, u8 flags); #if VERSION_PAL @@ -177,17 +174,16 @@ void filemenu_draw_contents_choose_name( s32 width, s32 height, s32 opacity, s32 darkening ) { + s32 layer; s32 changeLayoutOffset; s32 currentPage; s32 previousPage; s32 page; s32 row, col; s32 xOffset, yOffset; - s32 c, specialChar; - s32 layer; - s32 flags; + s32 c; s32 color; - s32 xNudge; + s32 flags; Window* window = &gWindows[WIN_FILES_INPUT_KEYBOARD]; if ((window->flags & WINDOW_FLAG_INITIAL_ANIMATION) && window->fpUpdate.func == filemenu_update_change_layout) { @@ -220,6 +216,8 @@ void filemenu_draw_contents_choose_name( for (col = 0; col < menu->numCols; col++) { c = menu->gridData[page * menu->numCols * menu->numRows + menu->numCols * row + col]; if (c != MSG_CHAR_READ_SPACE) { + s32 xNudge, specialChar; + if (col == menu->col && row == menu->row) { flags = 8; color = 0; @@ -280,6 +278,8 @@ void filemenu_draw_contents_choose_name( for (row = 0; row < menu->numRows; row++) { c = menu->gridData[menu->state * menu->numCols * menu->numRows + menu->numCols * row + col]; if (c != MSG_CHAR_READ_SPACE) { + s32 xNudge, specialChar; + if (col == menu->col && row == menu->row) { flags = 8; color = 0; @@ -341,7 +341,6 @@ void filemenu_draw_contents_choose_name( baseY + 13 + menu->row * FILEMENU_ROW_AMT); } } -#endif void filemenu_choose_name_init(MenuPanel* menu) { s32 i; diff --git a/src/filemenu/filemenu_info.c b/src/filemenu/filemenu_info.c index 035d90b3da5..352538474a0 100644 --- a/src/filemenu/filemenu_info.c +++ b/src/filemenu/filemenu_info.c @@ -87,16 +87,16 @@ void filemenu_info_draw_message_contents( xOffset += D_filemenu_802508FC[gCurrentLanguage]; draw_number(filemenu_iterFileIdx + 1, baseX + xOffset, baseY + 0x14, 0, 0, 255, 3); xOffset += D_filemenu_80250950[gCurrentLanguage]; - filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_HAS_BEEN_CREATED), baseX + xOffset, baseY + 18, 255, 0, 0); + filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_PAL_PERIOD_30), baseX + xOffset, baseY + 18, 255, 0, 0); break; case FM_MESSAGE_CREATED: - filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_PAL_UNK2), baseX + 10, baseY + 4, 255, 0, 0); + filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_PAL_ARTICLE), baseX + 10, baseY + 4, 255, 0, 0); xOffset = D_filemenu_80250968[gCurrentLanguage] + 10; filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_FILE_26), baseX + xOffset, baseY + 4, 255, 0, 0); xOffset += D_filemenu_802508FC[gCurrentLanguage]; draw_number(filemenu_menus[FILE_MENU_MAIN]->selected + 1, baseX + xOffset, baseY + 6, 0, 0, 255, 3); xOffset++; - filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_PAL_UNK1), baseX + xOffset, baseY + 4, 255, 0, 0); + filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_HAS_BEEN_CREATED), baseX + xOffset, baseY + 4, 255, 0, 0); break; } #else diff --git a/src/filemenu/filemenu_main.c b/src/filemenu/filemenu_main.c index 4ce11ea0787..1d6e7511acc 100644 --- a/src/filemenu/filemenu_main.c +++ b/src/filemenu/filemenu_main.c @@ -27,23 +27,36 @@ extern HudScript HES_OptionStereoOn; extern HudScript HES_OptionStereoOff; #if VERSION_PAL -extern u8 D_filemenu_802508D0[4]; -extern u8 D_filemenu_802508D4[4]; -extern u8 D_filemenu_802508D8[4]; -extern u8 D_filemenu_802508DC[4]; -extern u8 D_filemenu_802508E0[4]; -extern u8 D_filemenu_802508E4[4]; -extern u8 D_filemenu_802508E8[4]; -extern u8 D_filemenu_802508EC[4]; -extern u8 D_filemenu_802508F0[4]; -extern u8 D_filemenu_802508F4[4]; -extern u8 D_filemenu_80250938[4]; -extern u8 D_filemenu_8025093C[4]; -#define COPY_OFFSET_X (D_filemenu_8025093C[gCurrentLanguage]) -#define SAVE_OFFSET_X (D_filemenu_80250938[gCurrentLanguage]) +extern u8 D_filemenu_802508D0[4]; +extern u8 D_filemenu_802508D4[4]; +extern u8 D_filemenu_802508D8[4]; +extern u8 D_filemenu_802508DC[4]; +extern u8 D_filemenu_802508E0[4]; +extern u8 D_filemenu_802508E4[4]; +extern u8 D_filemenu_802508E8[4]; +extern u8 D_filemenu_802508EC[4]; +extern u8 D_filemenu_802508F0[4]; +extern u8 D_filemenu_802508F4[4]; +extern u16 D_filemenu_80250900[4]; +extern u8 D_filemenu_80250910[16]; +extern u8 D_filemenu_80250920[4]; +extern u8 D_filemenu_80250938[4]; +extern u8 D_filemenu_8025093C[4]; +extern u16 D_filemenu_80250940[4]; +extern u8 D_filemenu_80250954[4]; +#define COPY_OFFSET_X (D_filemenu_8025093C[gCurrentLanguage]) +#define SAVE_OFFSET_X (D_filemenu_80250938[gCurrentLanguage]) +#define SELECT_CONFIRM_PROMPT_WIDTH (D_filemenu_80250900[gCurrentLanguage]) +#define DELETE_CONFIRM_PROMPT_WIDTH (D_filemenu_80250920[gCurrentLanguage]) +#define FILE_COPIED_MESSAGE_WIDTH (D_filemenu_80250954[gCurrentLanguage]) +#define COPY_CONFIRM_PROMPT_WIDTH (D_filemenu_80250940[gCurrentLanguage]) #else -#define SAVE_OFFSET_X 25 -#define COPY_OFFSET_X 16 +#define SAVE_OFFSET_X 25 +#define COPY_OFFSET_X 16 +#define SELECT_CONFIRM_PROMPT_WIDTH 192 +#define DELETE_CONFIRM_PROMPT_WIDTH 118 +#define FILE_COPIED_MESSAGE_WIDTH 154 +#define COPY_CONFIRM_PROMPT_WIDTH 182 #endif BSS u8 filemenu_filename[8]; @@ -427,12 +440,14 @@ void filemenu_draw_contents_option_left( } filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_DELETE_FILE), baseX + offset + OFFSET_WIDTH, baseY + 2, 255, 0, 1); #else - if (menu->state != FM_MAIN_SELECT_LANG_DUMMY) { - if (menu->col == 0 && menu->row == 2) { - filemenu_set_cursor_goal_pos(WIN_FILES_OPTION_LEFT, baseX, baseY + 8); - } - filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_DELETE_FILE), baseX + 8 + OFFSET_WIDTH, baseY + 2, 255, 0, 1); + if (menu->state == FM_MAIN_SELECT_LANG_DUMMY) { + return; + } + + if (menu->col == 0 && menu->row == 2) { + filemenu_set_cursor_goal_pos(WIN_FILES_OPTION_LEFT, baseX, baseY + 8); } + filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_DELETE_FILE), baseX + 8 + OFFSET_WIDTH, baseY + 2, 255, 0, 1); #endif } @@ -623,15 +638,15 @@ void filemenu_draw_contents_file_title( filemenu_set_cursor_goal_pos(fileIdx + 60, baseX - 3, baseY + 8); } - filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_OK), baseX + FILE_X, baseY + 1, 255, 0, 1); + filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_PAL_FILE_20), baseX + FILE_X, baseY + 1, 255, 0, 1); if (!gSaveSlotHasData[fileIdx]) { - filemenu_draw_message(filemenu_get_menu_message(fileIdx + FILE_MESSAGE_PAL_UNK3), + filemenu_draw_message(filemenu_get_menu_message(fileIdx + FILE_MESSAGE_PAL_FILENUM_1), baseX + D_filemenu_802508D0[gCurrentLanguage], baseY + 1, 255, 0, 1); } else { s32 tmp = D_filemenu_802508D0[gCurrentLanguage]; - filemenu_draw_message(filemenu_get_menu_message(fileIdx + FILE_MESSAGE_PAL_UNK3), + filemenu_draw_message(filemenu_get_menu_message(fileIdx + FILE_MESSAGE_PAL_FILENUM_1), baseX + tmp, baseY + 1, 255, 0, 1); tmp += D_filemenu_802508D4[gCurrentLanguage]; @@ -783,9 +798,6 @@ void filemenu_main_init(MenuPanel* menu) { menu->initialized = TRUE; } -#if VERSION_PAL -INCLUDE_ASM(void, "filemenu/filemenu_main", filemenu_main_handle_input); -#else void filemenu_main_handle_input(MenuPanel* menu) { s32 originalSelected = menu->selected; s32 i; @@ -838,7 +850,8 @@ void filemenu_main_handle_input(MenuPanel* menu) { menu->col = 0; } break; - case FM_MAIN_SELECT_DELETE: // TODO required to duplicate cases 1-4 instead of using fallthrough + case FM_MAIN_SELECT_DELETE: +#if !VERSION_PAL // force selection to column 0 when navigating up from bottom row if (menu->col == 1 && (u8) menu->row < 2) { menu->col = 0; @@ -858,7 +871,9 @@ void filemenu_main_handle_input(MenuPanel* menu) { menu->col = 1; } break; +#endif case FM_MAIN_SELECT_COPY_FROM: +#if !VERSION_PAL // force selection to column 0 when navigating up from bottom row if (menu->col == 1 && (u8) menu->row < 2) { menu->col = 0; @@ -868,6 +883,7 @@ void filemenu_main_handle_input(MenuPanel* menu) { menu->col = 1; } break; +#endif case FM_MAIN_SELECT_COPY_TO: // force selection to column 0 when navigating up from bottom row if (menu->col == 1 && (u8) menu->row < 2) { @@ -1002,7 +1018,7 @@ void filemenu_main_handle_input(MenuPanel* menu) { gWindows[WIN_FILES_CONFIRM_OPTIONS].pos.x = CENTER_WINDOW_X(WIN_FILES_CONFIRM_OPTIONS); gWindows[WIN_FILES_CONFIRM_PROMPT].pos.y = -29; - gWindows[WIN_FILES_CONFIRM_PROMPT].width = 192; + gWindows[WIN_FILES_CONFIRM_PROMPT].width = SELECT_CONFIRM_PROMPT_WIDTH; gWindows[WIN_FILES_CONFIRM_PROMPT].height = 25; gWindows[WIN_FILES_CONFIRM_PROMPT].pos.x = CENTER_WINDOW_X(WIN_FILES_CONFIRM_PROMPT); @@ -1013,6 +1029,9 @@ void filemenu_main_handle_input(MenuPanel* menu) { } break; case FM_MAIN_SELECT_DELETE: +#if VERSION_PAL + gWindows[WIN_FILES_TITLE].width = 211; +#endif if (menu->selected == FM_MAIN_OPT_CANCEL) { // selected "Cancel" button sfx_play_sound(SOUND_MENU_NEXT); @@ -1036,7 +1055,7 @@ void filemenu_main_handle_input(MenuPanel* menu) { gWindows[WIN_FILES_CONFIRM_OPTIONS].pos.x = CENTER_WINDOW_X(WIN_FILES_CONFIRM_OPTIONS); gWindows[WIN_FILES_CONFIRM_PROMPT].pos.y = -29; - gWindows[WIN_FILES_CONFIRM_PROMPT].width = 118; + gWindows[WIN_FILES_CONFIRM_PROMPT].width = DELETE_CONFIRM_PROMPT_WIDTH; gWindows[WIN_FILES_CONFIRM_PROMPT].height = 25; gWindows[WIN_FILES_CONFIRM_PROMPT].pos.x = CENTER_WINDOW_X(WIN_FILES_CONFIRM_PROMPT); @@ -1086,17 +1105,25 @@ void filemenu_main_handle_input(MenuPanel* menu) { sfx_play_sound(SOUND_MENU_NEXT); filemenu_currentMenu = FILE_MENU_MESSAGE; filemenu_menus[filemenu_currentMenu]->state = FM_MESSAGE_COPIED; - gWindows[WIN_FILES_MESSAGE].width = 154; + gWindows[WIN_FILES_MESSAGE].width = FILE_COPIED_MESSAGE_WIDTH; gWindows[WIN_FILES_MESSAGE].height = 39; gWindows[WIN_FILES_MESSAGE].pos.x = CENTER_WINDOW_X(WIN_FILES_MESSAGE); gWindows[WIN_FILES_MESSAGE].pos.y = CENTER_WINDOW_Y(WIN_FILES_MESSAGE); set_window_update(WIN_FILES_MESSAGE, WINDOW_UPDATE_SHOW); set_window_update(WIN_FILES_CONFIRM_OPTIONS, WINDOW_UPDATE_HIDE); +#if VERSION_PAL + if (fio_load_game(filemenu_loadedFileIdx)) { + gSaveSlotMetadata[filemenu_iterFileIdx] = gSaveSlotMetadata[filemenu_loadedFileIdx]; + fio_save_game(filemenu_iterFileIdx); + gSaveSlotHasData[filemenu_iterFileIdx] = TRUE; + } +#else fio_load_game(filemenu_loadedFileIdx); gSaveSlotMetadata[filemenu_iterFileIdx] = gSaveSlotMetadata[filemenu_loadedFileIdx]; fio_save_game(filemenu_iterFileIdx); gSaveSlotHasData[filemenu_iterFileIdx] = TRUE; +#endif } else { MenuPanel* confirmMenu; @@ -1108,7 +1135,7 @@ void filemenu_main_handle_input(MenuPanel* menu) { gWindows[WIN_FILES_CONFIRM_OPTIONS].pos.x = CENTER_WINDOW_X(WIN_FILES_CONFIRM_OPTIONS); gWindows[WIN_FILES_CONFIRM_PROMPT].pos.y = -43; - gWindows[WIN_FILES_CONFIRM_PROMPT].width = 182; + gWindows[WIN_FILES_CONFIRM_PROMPT].width = COPY_CONFIRM_PROMPT_WIDTH; gWindows[WIN_FILES_CONFIRM_PROMPT].height = 39; gWindows[WIN_FILES_CONFIRM_PROMPT].pos.x = CENTER_WINDOW_X(WIN_FILES_CONFIRM_PROMPT); @@ -1120,6 +1147,7 @@ void filemenu_main_handle_input(MenuPanel* menu) { } } break; +#if !VERSION_PAL case FM_MAIN_SELECT_LANG_DUMMY: if (menu->selected == FM_MAIN_OPT_CANCEL) { // selected "Cancel" button @@ -1158,6 +1186,7 @@ void filemenu_main_handle_input(MenuPanel* menu) { } } break; +#endif } } @@ -1167,14 +1196,18 @@ void filemenu_main_handle_input(MenuPanel* menu) { filemenu_set_selected(menu, 2, 2); break; case FM_MAIN_SELECT_DELETE: +#if !VERSION_PAL filemenu_set_selected(menu, 1, 2); break; case FM_MAIN_SELECT_LANG_DUMMY: filemenu_set_selected(menu, 1, 2); break; +#endif case FM_MAIN_SELECT_COPY_FROM: +#if !VERSION_PAL filemenu_set_selected(menu, 1, 2); break; +#endif case FM_MAIN_SELECT_COPY_TO: filemenu_set_selected(menu, 1, 2); break; @@ -1218,14 +1251,20 @@ void filemenu_main_handle_input(MenuPanel* menu) { filemenu_set_selected(menu, (filemenu_loadedFileIdx % 2) * 2, filemenu_loadedFileIdx / 2); sfx_play_sound(SOUND_MENU_BACK); break; +#if !VERSION_PAL case FM_MAIN_SELECT_LANG_DUMMY: sfx_play_sound(SOUND_MENU_BACK); set_game_mode(GAME_MODE_END_LANGUAGE_SELECT); break; +#endif } } -} + +#if VERSION_PAL + gWindows[WIN_FILES_TITLE].width = D_filemenu_80250910[gCurrentLanguage + menu->state * 4]; + gWindows[WIN_FILES_TITLE].pos.x = CENTER_WINDOW_X(WIN_FILES_TITLE); #endif +} void filemenu_main_update(MenuPanel* menu) { // set default styles for all file slot panels diff --git a/src/filemenu/filemenu_msg.c b/src/filemenu/filemenu_msg.c index 64b4d355465..408faedfebf 100644 --- a/src/filemenu/filemenu_msg.c +++ b/src/filemenu/filemenu_msg.c @@ -151,127 +151,177 @@ u8 filemenu_msg_33[] = { 0x74, 0x08, 0xFD }; u8 filemenu_msg_34[] = { 0x75, 0x05, 0xFD }; #elif VERSION_PAL -u8 filemenu_msg_24[] = {0x1F, 0xFD}; +u8 filemenu_msg_pal_24[] = {0x1F, 0xFD}; // ?[End] // Select file to start u8 filemenu_msg_01[] = {0x33, 0x45, 0x4C, 0x45, 0x43, 0x54, 0xF7, 0x46, 0x49, 0x4C, 0x45, 0xF7, 0x54, 0x4F, 0xF7, 0x53, 0x54, 0x41, 0x52, 0x54, 0x1A, 0xFD}; u8 filemenu_msg_01_de[] = {0x37, 0x7A, 0x48, 0x4C, 0x45, 0xF7, 0x45, 0x49, 0x4E, 0x45, 0xF7, 0x24, 0x41, 0x54, 0x45, 0x49, 0x1A, 0xFD}; -u8 D_filemenu_8025099C[] = {0x23, 0x48, 0x4F, 0x49, 0x53, 0x49, 0x52, 0xF7, 0x46, 0x49, 0x43, 0x48, 0x49, 0x45, 0x52, 0x1A, 0xFD}; -u8 D_filemenu_802509B0[] = {0x25, 0x4C, 0x49, 0x47, 0x45, 0xF7, 0x46, 0x49, 0x43, 0x48, 0x45, 0x52, 0x4F, 0x1A, 0xFD}; +u8 filemenu_msg_01_fr[] = {0x23, 0x48, 0x4F, 0x49, 0x53, 0x49, 0x52, 0xF7, 0x46, 0x49, 0x43, 0x48, 0x49, 0x45, 0x52, 0x1A, 0xFD}; +u8 filemenu_msg_01_es[] = {0x25, 0x4C, 0x49, 0x47, 0x45, 0xF7, 0x46, 0x49, 0x43, 0x48, 0x45, 0x52, 0x4F, 0x1A, 0xFD}; // Select file to delete u8 filemenu_msg_02[] = {0x33, 0x45, 0x4C, 0x45, 0x43, 0x54, 0xF7, 0x46, 0x49, 0x4C, 0x45, 0xF7, 0x54, 0x4F, 0xF7, 0x44, 0x45, 0x4C, 0x45, 0x54, 0x45, 0x1A, 0xFD}; u8 filemenu_msg_02_de[] = {0x37, 0x7A, 0x48, 0x4C, 0x45, 0xF7, 0x5A, 0x55, 0xF7, 0x4C, 0x88, 0x53, 0x43, 0x48, 0x45, 0x4E, 0x44, 0x45, 0xF7, 0x24, 0x41, 0x54, 0x45, 0x49, 0x1A, 0xFD}; -u8 D_filemenu_802509F4[] = {0x23, 0x48, 0x4F, 0x49, 0x53, 0x49, 0x52, 0xF7, 0x46, 0x49, 0x43, 0x48, 0x49, 0x45, 0x52, 0xF7, 0x77, 0xF7, 0x45, 0x46, 0x46, 0x41, 0x43, 0x45, 0x52, 0x1A, 0xFD}; -u8 D_filemenu_80250A10[] = {0x25, 0x4C, 0x49, 0x47, 0x45, 0xF7, 0x45, 0x4C, 0xF7, 0x46, 0x49, 0x43, 0x48, 0x45, 0x52, 0x4F, 0xF7, 0x41, 0xF7, 0x42, 0x4F, 0x52, 0x52, 0x41, 0x52, 0x1A, 0xFD}; +u8 filemenu_msg_02_fr[] = {0x23, 0x48, 0x4F, 0x49, 0x53, 0x49, 0x52, 0xF7, 0x46, 0x49, 0x43, 0x48, 0x49, 0x45, 0x52, 0xF7, 0x77, 0xF7, 0x45, 0x46, 0x46, 0x41, 0x43, 0x45, 0x52, 0x1A, 0xFD}; +u8 filemenu_msg_02_es[] = {0x25, 0x4C, 0x49, 0x47, 0x45, 0xF7, 0x45, 0x4C, 0xF7, 0x46, 0x49, 0x43, 0x48, 0x45, 0x52, 0x4F, 0xF7, 0x41, 0xF7, 0x42, 0x4F, 0x52, 0x52, 0x41, 0x52, 0x1A, 0xFD}; // Copy which file -u8 filemenu_msg_03[] = {0x23, 0x4F, 0x50, 0x59, 0xF7, 0x57, 0x48, 0x49, 0x43, 0x48, 0xF7, 0x46, 0x49, 0x4C, 0x45, 0x1F, 0xFD}; -u8 filemenu_msg_03_de[] = {0x37, 0x45, 0x4C, 0x43, 0x48, 0x45, 0xF7, 0x24, 0x41, 0x54, 0x45, 0x49, 0xF7, 0x4B, 0x4F, 0x50, 0x49, 0x45, 0x52, 0x45, 0x4E, 0x1F, 0xFD}; -u8 D_filemenu_80250A58[] = {0x26, 0x49, 0x43, 0x48, 0x49, 0x45, 0x52, 0xF7, 0x53, 0x4F, 0x55, 0x52, 0x43, 0x45, 0x1F, 0xFD}; -u8 D_filemenu_80250A68[] = {0x8E, 0x31, 0x55, 0x7D, 0xF7, 0x46, 0x49, 0x43, 0x48, 0x45, 0x52, 0x4F, 0xF7, 0x43, 0x4F, 0x50, 0x49, 0x41, 0x53, 0x1F, 0xFD}; +u8 filemenu_msg_04[] = {0x23, 0x4F, 0x50, 0x59, 0xF7, 0x57, 0x48, 0x49, 0x43, 0x48, 0xF7, 0x46, 0x49, 0x4C, 0x45, 0x1F, 0xFD}; +u8 filemenu_msg_04_de[] = {0x37, 0x45, 0x4C, 0x43, 0x48, 0x45, 0xF7, 0x24, 0x41, 0x54, 0x45, 0x49, 0xF7, 0x4B, 0x4F, 0x50, 0x49, 0x45, 0x52, 0x45, 0x4E, 0x1F, 0xFD}; +u8 filemenu_msg_04_fr[] = {0x26, 0x49, 0x43, 0x48, 0x49, 0x45, 0x52, 0xF7, 0x53, 0x4F, 0x55, 0x52, 0x43, 0x45, 0x1F, 0xFD}; +u8 filemenu_msg_04_es[] = {0x8E, 0x31, 0x55, 0x7D, 0xF7, 0x46, 0x49, 0x43, 0x48, 0x45, 0x52, 0x4F, 0xF7, 0x43, 0x4F, 0x50, 0x49, 0x41, 0x53, 0x1F, 0xFD}; // Copy to which file -u8 filemenu_msg_04[] = {0x23, 0x4F, 0x50, 0x59, 0xF7, 0x54, 0x4F, 0xF7, 0x57, 0x48, 0x49, 0x43, 0x48, 0xF7, 0x46, 0x49, 0x4C, 0x45, 0x1F, 0xFD}; -u8 filemenu_msg_04_de[] = {0x29, 0x4E, 0xF7, 0x57, 0x45, 0x4C, 0x43, 0x48, 0x45, 0xF7, 0x24, 0x41, 0x54, 0x45, 0x49, 0xF7, 0x4B, 0x4F, 0x50, 0x49, 0x45, 0x52, 0x45, 0x4E, 0x1F, 0xFD}; -u8 D_filemenu_80250AB0[] = {0x26, 0x49, 0x43, 0x48, 0x49, 0x45, 0x52, 0xF7, 0x44, 0x45, 0x53, 0x54, 0x49, 0x4E, 0x41, 0x54, 0x49, 0x4F, 0x4E, 0x1F, 0xFD}; -u8 D_filemenu_80250AC8[] = {0x8E, 0x24, 0x86, 0x4E, 0x44, 0x45, 0xF7, 0x4C, 0x4F, 0xF7, 0x43, 0x4F, 0x50, 0x49, 0x41, 0x53, 0x1F, 0xFD}; - -u8 filemenu_msg_05[] = {0x2E, 0x25, 0x37, 0xFD}; -u8 filemenu_msg_05_de[] = {0x2E, 0x45, 0x55, 0xFD}; -u8 D_filemenu_80250AE4[] = {0x2E, 0x4F, 0x55, 0x56, 0x45, 0x41, 0x55, 0xFD}; -u8 D_filemenu_80250AEC[] = {0x2E, 0x55, 0x45, 0x56, 0x4F, 0xFD}; -u8 filemenu_msg_06[] = {0x2C, 0x45, 0x56, 0x45, 0x4C, 0xFD}; -u8 D_filemenu_80250AFC[] = {0x2E, 0x49, 0x56, 0x45, 0x41, 0x55, 0xFD}; -u8 D_filemenu_80250B04[] = {0x2E, 0x49, 0x56, 0x45, 0x4C, 0xFD}; -u8 filemenu_msg_07[] = {0x30, 0x4C, 0x41, 0x59, 0xF7, 0x34, 0x49, 0x4D, 0x45, 0xFD}; -u8 filemenu_msg_07_de[] = {0x33, 0x50, 0x49, 0x45, 0x4C, 0x5A, 0x45, 0x49, 0x54, 0xFD}; -u8 D_filemenu_80250B24[] = {0x34, 0x45, 0x4D, 0x50, 0x53, 0xFD}; -u8 D_filemenu_80250B2C[] = {0x34, 0x49, 0x45, 0x4D, 0x50, 0x4F, 0xFD}; -u8 filemenu_msg_08[] = {0x24, 0x45, 0x4C, 0x45, 0x54, 0x45, 0xF7, 0x26, 0x49, 0x4C, 0x45, 0xFD}; -u8 filemenu_msg_08_de[] = {0x2C, 0x88, 0x53, 0x43, 0x48, 0x45, 0x4E, 0xFD}; -u8 D_filemenu_80250B48[] = {0x25, 0x46, 0x46, 0x41, 0x43, 0x45, 0x52, 0xFD}; -u8 D_filemenu_80250B50[] = {0x22, 0x4F, 0x52, 0x52, 0x41, 0x52, 0xFD}; -u8 filemenu_msg_09[] = {0x23, 0x41, 0x4E, 0x43, 0x45, 0x4C, 0xFD}; -u8 filemenu_msg_09_de[] = {0x21, 0x42, 0x42, 0x52, 0x45, 0x43, 0x48, 0x45, 0x4E, 0xFD}; -u8 D_filemenu_80250B6C[] = {0x21, 0x4E, 0x4E, 0x55, 0x4C, 0x45, 0x52, 0xFD}; -u8 D_filemenu_80250B74[] = {0x33, 0x41, 0x4C, 0x49, 0x52, 0xFD}; -u8 filemenu_msg_10[] = {0x23, 0x4F, 0x50, 0x59, 0xF7, 0x26, 0x49, 0x4C, 0x45, 0xFD}; -u8 filemenu_msg_10_de[] = {0x2B, 0x4F, 0x50, 0x49, 0x45, 0x52, 0x45, 0x4E, 0xFD}; -u8 D_filemenu_80250B94[] = {0x23, 0x4F, 0x50, 0x49, 0x45, 0x52, 0xFD}; -u8 D_filemenu_80250B9C[] = {0x23, 0x4F, 0x50, 0x49, 0x41, 0x52, 0xFD}; -u8 filemenu_msg_11[] = {0x26, 0x49, 0x52, 0x53, 0x54, 0xF7, 0x30, 0x4C, 0x41, 0x59, 0xFD}; -u8 filemenu_msg_11_de[] = {0x2E, 0x45, 0x55, 0x45, 0x53, 0xF7, 0x33, 0x50, 0x49, 0x45, 0x4C, 0xFD}; -u8 D_filemenu_80250BBC[] = {0x30, 0x52, 0x45, 0x4D, 0x49, 0x7C, 0x52, 0x45, 0xF7, 0x50, 0x41, 0x52, 0x54, 0x49, 0x45, 0xFD}; -u8 D_filemenu_80250BCC[] = {0x30, 0x52, 0x49, 0x4D, 0x45, 0x52, 0x41, 0xF7, 0x36, 0x45, 0x5A, 0xFD}; -u8 filemenu_msg_12[] = {0x0E, 0xFD}; -u8 filemenu_msg_13[] = {0x39, 0x45, 0x53, 0xFD}; -u8 filemenu_msg_13_de[] = {0x2A, 0x41, 0xFD}; -u8 D_filemenu_80250BE4[] = {0x2F, 0x55, 0x49, 0xFD}; -u8 D_filemenu_80250BE8[] = {0x33, 0x81, 0xFD}; -u8 filemenu_msg_14[] = {0x2E, 0x4F, 0xFD}; -u8 filemenu_msg_14_de[] = {0x2E, 0x45, 0x49, 0x4E, 0xFD}; -u8 D_filemenu_80250BF8[] = {0x2E, 0x4F, 0x4E, 0xFD}; -u8 D_filemenu_80250BFC[] = {0x2E, 0x4F, 0xFD}; -u8 filemenu_msg_15[] = {0x24, 0x45, 0x4C, 0x45, 0x54, 0x45, 0xFD}; -u8 filemenu_msg_15_de[] = {0x4C, 0x88, 0x53, 0x43, 0x48, 0x45, 0x4E, 0xFD}; -u8 D_filemenu_80250C10[] = {0x25, 0x46, 0x46, 0x41, 0x43, 0x45, 0x52, 0xFD}; -u8 D_filemenu_80250C18[] = {0x8E, 0x22, 0x4F, 0x52, 0x52, 0x4F, 0xF7, 0x45, 0x4C, 0xFD}; -u8 filemenu_msg_16[] = {0x26, 0x49, 0x4C, 0x45, 0xF7, 0x4E, 0x41, 0x4D, 0x45, 0xF7, 0x49, 0x53, 0xF7, 0x1A, 0xFD}; -u8 filemenu_msg_16_de[] = {0x24, 0x45, 0x52, 0xF7, 0x2E, 0x41, 0x4D, 0x45, 0xF7, 0x4C, 0x41, 0x55, 0x54, 0x45, 0x54, 0xF7, 0x1A, 0xFD}; -u8 D_filemenu_80250C48[] = {0x2E, 0x4F, 0x4D, 0xF7, 0x44, 0x55, 0xF7, 0x46, 0x49, 0x43, 0x48, 0x49, 0x45, 0x52, 0xF7, 0x1A, 0xFD}; -u8 D_filemenu_80250C5C[] = {0x2E, 0x4F, 0x4D, 0x42, 0x52, 0x45, 0xF7, 0x44, 0x45, 0x4C, 0xF7, 0x46, 0x49, 0x43, 0x48, 0x45, 0x52, 0x4F, 0xF7, 0x1A, 0xFD}; -u8 filemenu_msg_18[] = {0x2F, 0x2B, 0x1F, 0xFD}; -u8 D_filemenu_80250C78[] = {0x8E, 0x36, 0x41, 0x4C, 0x45, 0x1F, 0xFD}; -u8 filemenu_msg_19[] = {0x26, 0x49, 0x4C, 0x45, 0xFD}; -u8 filemenu_msg_19_de[] = {0x24, 0x41, 0x54, 0x45, 0x49, 0xFD}; -u8 D_filemenu_80250C90[] = {0x26, 0x49, 0x43, 0x48, 0x49, 0x45, 0x52, 0xFD}; -u8 D_filemenu_80250C98[] = {0x26, 0x49, 0x43, 0x48, 0x45, 0x52, 0x4F, 0xFD}; -u8 filemenu_msg_20_de[] = {0x24, 0x41, 0x54, 0x0E, 0xFD}; -u8 D_filemenu_80250CA8[] = {0x26, 0x49, 0x43, 0x48, 0x0E, 0xFD}; -u8 filemenu_msg_21[] = {0x57, 0x49, 0x4C, 0x4C, 0xF7, 0x42, 0x45, 0xF7, 0x44, 0x45, 0x4C, 0x45, 0x54, 0x45, 0x44, 0x0E, 0xFD}; -u8 filemenu_msg_21_de[] = {0x57, 0x49, 0x52, 0x44, 0xF7, 0x47, 0x45, 0x4C, 0x88, 0x53, 0x43, 0x48, 0x54, 0x0E, 0xFD}; -u8 D_filemenu_80250CD4[] = {0x53, 0x45, 0x52, 0x41, 0xF7, 0x45, 0x46, 0x46, 0x41, 0x43, 0x7D, 0x0E, 0xFD}; -u8 D_filemenu_80250CE4[] = {0x53, 0x45, 0x52, 0x78, 0xF7, 0x42, 0x4F, 0x52, 0x52, 0x41, 0x44, 0x4F, 0x0E, 0xFD}; -u8 filemenu_msg_22[] = {0x2F, 0x2B, 0xF7, 0x54, 0x4F, 0xF7, 0x43, 0x4F, 0x50, 0x59, 0xF7, 0x54, 0x4F, 0xF7, 0x54, 0x48, 0x49, 0x53, 0xF7, 0x46, 0x49, 0x4C, 0x45, 0x1F, 0xFD}; -u8 D_filemenu_80250D10[] = {0x33, 0x4F, 0x4C, 0x4C, 0xF7, 0x41, 0x55, 0x46, 0xF7, 0x44, 0x49, 0x45, 0x53, 0x45, 0xF7, 0x24, 0x41, 0x54, 0x45, 0x49, 0xF7, 0x4B, 0x4F, 0x50, 0x49, 0x45, 0x52, 0x54, 0xF7, 0x57, 0x45, 0x52, 0x44, 0x45, 0x4E, 0x1F, 0xFD}; -u8 D_filemenu_80250D38[] = {0x23, 0x4F, 0x4E, 0x46, 0x49, 0x52, 0x4D, 0x45, 0x52, 0xF7, 0x4C, 0x41, 0xF7, 0x43, 0x4F, 0x50, 0x49, 0x45, 0x1F, 0xFD}; -u8 D_filemenu_80250D4C[] = {0x8E, 0x31, 0x55, 0x49, 0x45, 0x52, 0x45, 0x53, 0xF7, 0x43, 0x4F, 0x50, 0x49, 0x41, 0x52, 0x4C, 0x4F, 0xF7, 0x41, 0x51, 0x55, 0x81, 0xF7, 0x1F, 0xFD}; -u8 filemenu_msg_23[] = {0x33, 0x54, 0x41, 0x52, 0x54, 0xF7, 0x47, 0x41, 0x4D, 0x45, 0xF7, 0x57, 0x49, 0x54, 0x48, 0xFD}; -u8 D_filemenu_80250D78[] = {0x33, 0x50, 0x49, 0x45, 0x4C, 0xF7, 0x4D, 0x49, 0x54, 0xFD}; -u8 D_filemenu_80250D84[] = {0x23, 0x4F, 0x4D, 0x4D, 0x45, 0x4E, 0x43, 0x45, 0x52, 0xF7, 0x55, 0x4E, 0x45, 0xF7, 0x50, 0x41, 0x52, 0x54, 0x49, 0x45, 0xF7, 0x41, 0x56, 0x45, 0x43, 0xF7, 0x4C, 0x45, 0xFD}; -u8 D_filemenu_80250DA4[] = {0x8E, 0x31, 0x55, 0x49, 0x45, 0x52, 0x45, 0x53, 0xF7, 0x45, 0x53, 0x54, 0x45, 0xF7, 0x46, 0x49, 0x43, 0x48, 0x45, 0x52, 0x4F, 0x1F, 0xFD}; -u8 D_filemenu_80250DBC[] = {0x42, 0x45, 0x47, 0x49, 0x4E, 0x4E, 0x45, 0x4E, 0x1F, 0xFD}; -u8 filemenu_msg_26[] = {0x48, 0x41, 0x53, 0xF7, 0x42, 0x45, 0x45, 0x4E, 0xF7, 0x44, 0x45, 0x4C, 0x45, 0x54, 0x45, 0x44, 0x0E, 0xFD}; -u8 D_filemenu_80250DDC[] = {0x57, 0x55, 0x52, 0x44, 0x45, 0xF7, 0x47, 0x45, 0x4C, 0x88, 0x53, 0x43, 0x48, 0x54, 0x0E, 0xFD}; -u8 D_filemenu_80250DEC[] = {0x41, 0xF7, 0x7D, 0x54, 0x7D, 0xF7, 0x45, 0x46, 0x46, 0x41, 0x43, 0x7D, 0x0E, 0xFD}; -u8 D_filemenu_80250DFC[] = {0x48, 0x41, 0xF7, 0x53, 0x49, 0x44, 0x4F, 0xF7, 0x42, 0x4F, 0x52, 0x52, 0x41, 0x44, 0x4F, 0x0E, 0xFD}; -u8 filemenu_msg_27[] = {0xFD}; -u8 D_filemenu_80250E14[] = {0x2C, 0x45, 0xFD}; -u8 D_filemenu_80250E18[] = {0x25, 0x4C, 0xFD}; -u8 filemenu_msg_28[] = {0x23, 0x4F, 0x50, 0x59, 0xF7, 0x46, 0x52, 0x4F, 0x4D, 0xFD}; -u8 D_filemenu_80250E28[] = {0x36, 0x4F, 0x4E, 0xFD}; -u8 D_filemenu_80250E2C[] = {0x23, 0x4F, 0x50, 0x49, 0x45, 0x52, 0xF7, 0x44, 0x55, 0xFD}; -u8 D_filemenu_80250E38[] = {0x23, 0x4F, 0x50, 0x49, 0x41, 0xF7, 0x44, 0x45, 0x4C, 0xFD}; -u8 filemenu_msg_29[] = {0x54, 0x4F, 0xFD}; -u8 D_filemenu_80250E48[] = {0x4E, 0x41, 0x43, 0x48, 0xFD}; -u8 D_filemenu_80250E50[] = {0x41, 0x55, 0xFD}; -u8 D_filemenu_80250E54[] = {0x41, 0x4C, 0xFD}; -u8 D_filemenu_80250E58[] = {0x4B, 0x4F, 0x50, 0x49, 0x45, 0x52, 0x45, 0x4E, 0x0E, 0xFD}; +u8 filemenu_msg_05[] = {0x23, 0x4F, 0x50, 0x59, 0xF7, 0x54, 0x4F, 0xF7, 0x57, 0x48, 0x49, 0x43, 0x48, 0xF7, 0x46, 0x49, 0x4C, 0x45, 0x1F, 0xFD}; +u8 filemenu_msg_05_de[] = {0x29, 0x4E, 0xF7, 0x57, 0x45, 0x4C, 0x43, 0x48, 0x45, 0xF7, 0x24, 0x41, 0x54, 0x45, 0x49, 0xF7, 0x4B, 0x4F, 0x50, 0x49, 0x45, 0x52, 0x45, 0x4E, 0x1F, 0xFD}; +u8 filemenu_msg_05_fr[] = {0x26, 0x49, 0x43, 0x48, 0x49, 0x45, 0x52, 0xF7, 0x44, 0x45, 0x53, 0x54, 0x49, 0x4E, 0x41, 0x54, 0x49, 0x4F, 0x4E, 0x1F, 0xFD}; +u8 filemenu_msg_05_es[] = {0x8E, 0x24, 0x86, 0x4E, 0x44, 0x45, 0xF7, 0x4C, 0x4F, 0xF7, 0x43, 0x4F, 0x50, 0x49, 0x41, 0x53, 0x1F, 0xFD}; + +// NEW +u8 filemenu_msg_06[] = {0x2E, 0x25, 0x37, 0xFD}; +u8 filemenu_msg_06_de[] = {0x2E, 0x45, 0x55, 0xFD}; +u8 filemenu_msg_06_fr[] = {0x2E, 0x4F, 0x55, 0x56, 0x45, 0x41, 0x55, 0xFD}; +u8 filemenu_msg_06_es[] = {0x2E, 0x55, 0x45, 0x56, 0x4F, 0xFD}; + +// Level +u8 filemenu_msg_07[] = {0x2C, 0x45, 0x56, 0x45, 0x4C, 0xFD}; +u8 filemenu_msg_07_fr[] = {0x2E, 0x49, 0x56, 0x45, 0x41, 0x55, 0xFD}; +u8 filemenu_msg_07_es[] = {0x2E, 0x49, 0x56, 0x45, 0x4C, 0xFD}; + +// Play Time +u8 filemenu_msg_08[] = {0x30, 0x4C, 0x41, 0x59, 0xF7, 0x34, 0x49, 0x4D, 0x45, 0xFD}; +u8 filemenu_msg_08_de[] = {0x33, 0x50, 0x49, 0x45, 0x4C, 0x5A, 0x45, 0x49, 0x54, 0xFD}; +u8 filemenu_msg_08_fr[] = {0x34, 0x45, 0x4D, 0x50, 0x53, 0xFD}; +u8 filemenu_msg_08_es[] = {0x34, 0x49, 0x45, 0x4D, 0x50, 0x4F, 0xFD}; + +// Delete File +u8 filemenu_msg_09[] = {0x24, 0x45, 0x4C, 0x45, 0x54, 0x45, 0xF7, 0x26, 0x49, 0x4C, 0x45, 0xFD}; +u8 filemenu_msg_09_de[] = {0x2C, 0x88, 0x53, 0x43, 0x48, 0x45, 0x4E, 0xFD}; +u8 filemenu_msg_09_fr[] = {0x25, 0x46, 0x46, 0x41, 0x43, 0x45, 0x52, 0xFD}; +u8 filemenu_msg_09_es[] = {0x22, 0x4F, 0x52, 0x52, 0x41, 0x52, 0xFD}; + +// Cancel +u8 filemenu_msg_10[] = {0x23, 0x41, 0x4E, 0x43, 0x45, 0x4C, 0xFD}; +u8 filemenu_msg_10_de[] = {0x21, 0x42, 0x42, 0x52, 0x45, 0x43, 0x48, 0x45, 0x4E, 0xFD}; +u8 filemenu_msg_10_fr[] = {0x21, 0x4E, 0x4E, 0x55, 0x4C, 0x45, 0x52, 0xFD}; +u8 filemenu_msg_10_es[] = {0x33, 0x41, 0x4C, 0x49, 0x52, 0xFD}; + +// Copy File +u8 filemenu_msg_11[] = {0x23, 0x4F, 0x50, 0x59, 0xF7, 0x26, 0x49, 0x4C, 0x45, 0xFD}; +u8 filemenu_msg_11_de[] = {0x2B, 0x4F, 0x50, 0x49, 0x45, 0x52, 0x45, 0x4E, 0xFD}; +u8 filemenu_msg_11_fr[] = {0x23, 0x4F, 0x50, 0x49, 0x45, 0x52, 0xFD}; +u8 filemenu_msg_11_es[] = {0x23, 0x4F, 0x50, 0x49, 0x41, 0x52, 0xFD}; + +// First Play +u8 filemenu_msg_12[] = {0x26, 0x49, 0x52, 0x53, 0x54, 0xF7, 0x30, 0x4C, 0x41, 0x59, 0xFD}; +u8 filemenu_msg_12_de[] = {0x2E, 0x45, 0x55, 0x45, 0x53, 0xF7, 0x33, 0x50, 0x49, 0x45, 0x4C, 0xFD}; +u8 filemenu_msg_12_fr[] = {0x30, 0x52, 0x45, 0x4D, 0x49, 0x7C, 0x52, 0x45, 0xF7, 0x50, 0x41, 0x52, 0x54, 0x49, 0x45, 0xFD}; +u8 filemenu_msg_12_es[] = {0x30, 0x52, 0x49, 0x4D, 0x45, 0x52, 0x41, 0xF7, 0x36, 0x45, 0x5A, 0xFD}; + +u8 filemenu_msg_13[] = {0x0E, 0xFD}; // .[End] + +// Yes +u8 filemenu_msg_14[] = {0x39, 0x45, 0x53, 0xFD}; +u8 filemenu_msg_14_de[] = {0x2A, 0x41, 0xFD}; +u8 filemenu_msg_14_fr[] = {0x2F, 0x55, 0x49, 0xFD}; +u8 filemenu_msg_14_es[] = {0x33, 0x81, 0xFD}; + +// No +u8 filemenu_msg_15[] = {0x2E, 0x4F, 0xFD}; +u8 filemenu_msg_15_de[] = {0x2E, 0x45, 0x49, 0x4E, 0xFD}; +u8 filemenu_msg_15_fr[] = {0x2E, 0x4F, 0x4E, 0xFD}; +u8 filemenu_msg_15_es[] = {0x2E, 0x4F, 0xFD}; + +// Delete +u8 filemenu_msg_16[] = {0x24, 0x45, 0x4C, 0x45, 0x54, 0x45, 0xFD}; +u8 filemenu_msg_16_de[] = {0x4C, 0x88, 0x53, 0x43, 0x48, 0x45, 0x4E, 0xFD}; +u8 filemenu_msg_16_fr[] = {0x25, 0x46, 0x46, 0x41, 0x43, 0x45, 0x52, 0xFD}; +u8 filemenu_msg_16_es[] = {0x8E, 0x22, 0x4F, 0x52, 0x52, 0x4F, 0xF7, 0x45, 0x4C, 0xFD}; + +// File name is : +u8 filemenu_msg_19[] = {0x26, 0x49, 0x4C, 0x45, 0xF7, 0x4E, 0x41, 0x4D, 0x45, 0xF7, 0x49, 0x53, 0xF7, 0x1A, 0xFD}; +u8 filemenu_msg_19_de[] = {0x24, 0x45, 0x52, 0xF7, 0x2E, 0x41, 0x4D, 0x45, 0xF7, 0x4C, 0x41, 0x55, 0x54, 0x45, 0x54, 0xF7, 0x1A, 0xFD}; +u8 filemenu_msg_19_fr[] = {0x2E, 0x4F, 0x4D, 0xF7, 0x44, 0x55, 0xF7, 0x46, 0x49, 0x43, 0x48, 0x49, 0x45, 0x52, 0xF7, 0x1A, 0xFD}; +u8 filemenu_msg_19_es[] = {0x2E, 0x4F, 0x4D, 0x42, 0x52, 0x45, 0xF7, 0x44, 0x45, 0x4C, 0xF7, 0x46, 0x49, 0x43, 0x48, 0x45, 0x52, 0x4F, 0xF7, 0x1A, 0xFD}; + +// OK? +u8 filemenu_msg_21[] = {0x2F, 0x2B, 0x1F, 0xFD}; +u8 filemenu_msg_21_es[] = {0x8E, 0x36, 0x41, 0x4C, 0x45, 0x1F, 0xFD}; + +// File +u8 filemenu_msg_22[] = {0x26, 0x49, 0x4C, 0x45, 0xFD}; +u8 filemenu_msg_22_de[] = {0x24, 0x41, 0x54, 0x45, 0x49, 0xFD}; +u8 filemenu_msg_22_fr[] = {0x26, 0x49, 0x43, 0x48, 0x49, 0x45, 0x52, 0xFD}; +u8 filemenu_msg_22_es[] = {0x26, 0x49, 0x43, 0x48, 0x45, 0x52, 0x4F, 0xFD}; + +// Dat. / Fich. +u8 filemenu_msg_pal_20_de[] = {0x24, 0x41, 0x54, 0x0E, 0xFD}; +u8 filemenu_msg_pal_20_fr_es[] = {0x26, 0x49, 0x43, 0x48, 0x0E, 0xFD}; + +// will be deleted. +u8 filemenu_msg_23[] = {0x57, 0x49, 0x4C, 0x4C, 0xF7, 0x42, 0x45, 0xF7, 0x44, 0x45, 0x4C, 0x45, 0x54, 0x45, 0x44, 0x0E, 0xFD}; +u8 filemenu_msg_23_de[] = {0x57, 0x49, 0x52, 0x44, 0xF7, 0x47, 0x45, 0x4C, 0x88, 0x53, 0x43, 0x48, 0x54, 0x0E, 0xFD}; +u8 filemenu_msg_23_fr[] = {0x53, 0x45, 0x52, 0x41, 0xF7, 0x45, 0x46, 0x46, 0x41, 0x43, 0x7D, 0x0E, 0xFD}; +u8 filemenu_msg_23_es[] = {0x53, 0x45, 0x52, 0x78, 0xF7, 0x42, 0x4F, 0x52, 0x52, 0x41, 0x44, 0x4F, 0x0E, 0xFD}; + +// OK to copy to this file? +u8 filemenu_msg_24[] = {0x2F, 0x2B, 0xF7, 0x54, 0x4F, 0xF7, 0x43, 0x4F, 0x50, 0x59, 0xF7, 0x54, 0x4F, 0xF7, 0x54, 0x48, 0x49, 0x53, 0xF7, 0x46, 0x49, 0x4C, 0x45, 0x1F, 0xFD}; +u8 filemenu_msg_24_de[] = {0x33, 0x4F, 0x4C, 0x4C, 0xF7, 0x41, 0x55, 0x46, 0xF7, 0x44, 0x49, 0x45, 0x53, 0x45, 0xF7, 0x24, 0x41, 0x54, 0x45, 0x49, 0xF7, 0x4B, 0x4F, 0x50, 0x49, 0x45, 0x52, 0x54, 0xF7, 0x57, 0x45, 0x52, 0x44, 0x45, 0x4E, 0x1F, 0xFD}; +u8 filemenu_msg_24_fr[] = {0x23, 0x4F, 0x4E, 0x46, 0x49, 0x52, 0x4D, 0x45, 0x52, 0xF7, 0x4C, 0x41, 0xF7, 0x43, 0x4F, 0x50, 0x49, 0x45, 0x1F, 0xFD}; +u8 filemenu_msg_24_es[] = {0x8E, 0x31, 0x55, 0x49, 0x45, 0x52, 0x45, 0x53, 0xF7, 0x43, 0x4F, 0x50, 0x49, 0x41, 0x52, 0x4C, 0x4F, 0xF7, 0x41, 0x51, 0x55, 0x81, 0xF7, 0x1F, 0xFD}; + +// Start game with +u8 filemenu_msg_25[] = {0x33, 0x54, 0x41, 0x52, 0x54, 0xF7, 0x47, 0x41, 0x4D, 0x45, 0xF7, 0x57, 0x49, 0x54, 0x48, 0xFD}; +u8 filemenu_msg_25_de[] = {0x33, 0x50, 0x49, 0x45, 0x4C, 0xF7, 0x4D, 0x49, 0x54, 0xFD}; +u8 filemenu_msg_25_fr[] = {0x23, 0x4F, 0x4D, 0x4D, 0x45, 0x4E, 0x43, 0x45, 0x52, 0xF7, 0x55, 0x4E, 0x45, 0xF7, 0x50, 0x41, 0x52, 0x54, 0x49, 0x45, 0xF7, 0x41, 0x56, 0x45, 0x43, 0xF7, 0x4C, 0x45, 0xFD}; +u8 filemenu_msg_25_es[] = {0x8E, 0x31, 0x55, 0x49, 0x45, 0x52, 0x45, 0x53, 0xF7, 0x45, 0x53, 0x54, 0x45, 0xF7, 0x46, 0x49, 0x43, 0x48, 0x45, 0x52, 0x4F, 0x1F, 0xFD}; + +// beginnen? +u8 filemenu_msg_pal_24_de[] = {0x42, 0x45, 0x47, 0x49, 0x4E, 0x4E, 0x45, 0x4E, 0x1F, 0xFD}; + +// has been deleted. +u8 filemenu_msg_27[] = {0x48, 0x41, 0x53, 0xF7, 0x42, 0x45, 0x45, 0x4E, 0xF7, 0x44, 0x45, 0x4C, 0x45, 0x54, 0x45, 0x44, 0x0E, 0xFD}; +u8 filemenu_msg_27_de[] = {0x57, 0x55, 0x52, 0x44, 0x45, 0xF7, 0x47, 0x45, 0x4C, 0x88, 0x53, 0x43, 0x48, 0x54, 0x0E, 0xFD}; +u8 filemenu_msg_27_fr[] = {0x41, 0xF7, 0x7D, 0x54, 0x7D, 0xF7, 0x45, 0x46, 0x46, 0x41, 0x43, 0x7D, 0x0E, 0xFD}; +u8 filemenu_msg_27_es[] = {0x48, 0x41, 0xF7, 0x53, 0x49, 0x44, 0x4F, 0xF7, 0x42, 0x4F, 0x52, 0x52, 0x41, 0x44, 0x4F, 0x0E, 0xFD}; + +// / Le / El +u8 filemenu_msg_28[] = {0xFD}; +u8 filemenu_msg_28_fr[] = {0x2C, 0x45, 0xFD}; +u8 filemenu_msg_28_es[] = {0x25, 0x4C, 0xFD}; + +// Copy from +u8 filemenu_msg_29[] = {0x23, 0x4F, 0x50, 0x59, 0xF7, 0x46, 0x52, 0x4F, 0x4D, 0xFD}; +u8 filemenu_msg_29_de[] = {0x36, 0x4F, 0x4E, 0xFD}; +u8 filemenu_msg_29_fr[] = {0x23, 0x4F, 0x50, 0x49, 0x45, 0x52, 0xF7, 0x44, 0x55, 0xFD}; +u8 filemenu_msg_29_es[] = {0x23, 0x4F, 0x50, 0x49, 0x41, 0xF7, 0x44, 0x45, 0x4C, 0xFD}; + +// to +u8 filemenu_msg_30[] = {0x54, 0x4F, 0xFD}; +u8 filemenu_msg_30_de[] = {0x4E, 0x41, 0x43, 0x48, 0xFD}; +u8 filemenu_msg_30_fr[] = {0x41, 0x55, 0xFD}; +u8 filemenu_msg_30_es[] = {0x41, 0x4C, 0xFD}; + +// kopieren. +u8 filemenu_msg_pal_30_de[] = {0x4B, 0x4F, 0x50, 0x49, 0x45, 0x52, 0x45, 0x4E, 0x0E, 0xFD}; + +// has been created. u8 filemenu_msg_31[] = {0x48, 0x41, 0x53, 0xF7, 0x42, 0x45, 0x45, 0x4E, 0xF7, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x0E, 0xFD}; -u8 D_filemenu_80250E78[] = {0x57, 0x55, 0x52, 0x44, 0x45, 0xF7, 0x45, 0x52, 0x53, 0x54, 0x45, 0x4C, 0x4C, 0x54, 0x0E, 0xFD}; -u8 D_filemenu_80250E88[] = {0x41, 0xF7, 0x7D, 0x54, 0x7D, 0xF7, 0x43, 0x52, 0x7D, 0x7D, 0x0E, 0xFD}; -u8 D_filemenu_80250E94[] = {0x48, 0x41, 0xF7, 0x53, 0x49, 0x44, 0x4F, 0xF7, 0x43, 0x52, 0x45, 0x41, 0x44, 0x4F, 0x0E, 0xFD}; +u8 filemenu_msg_31_de[] = {0x57, 0x55, 0x52, 0x44, 0x45, 0xF7, 0x45, 0x52, 0x53, 0x54, 0x45, 0x4C, 0x4C, 0x54, 0x0E, 0xFD}; +u8 filemenu_msg_31_fr[] = {0x41, 0xF7, 0x7D, 0x54, 0x7D, 0xF7, 0x43, 0x52, 0x7D, 0x7D, 0x0E, 0xFD}; +u8 filemenu_msg_31_es[] = {0x48, 0x41, 0xF7, 0x53, 0x49, 0x44, 0x4F, 0xF7, 0x43, 0x52, 0x45, 0x41, 0x44, 0x4F, 0x0E, 0xFD}; // Enter a file name -u8 filemenu_msg_33[] = {0x25, 0x4E, 0x54, 0x45, 0x52, 0xF7, 0x41, 0xF7, 0x46, 0x49, 0x4C, 0x45, 0xF7, 0x4E, 0x41, 0x4D, 0x45, 0x01, 0xFD}; -u8 D_filemenu_80250EB8[] = {0x27, 0x49, 0x42, 0xF7, 0x45, 0x49, 0x4E, 0x45, 0x4E, 0xF7, 0x2E, 0x41, 0x4D, 0x45, 0x4E, 0xF7, 0x45, 0x49, 0x4E, 0x01, 0xFD}; -u8 D_filemenu_80250ED0[] = {0x25, 0x4E, 0x54, 0x52, 0x45, 0x52, 0xF7, 0x4C, 0x45, 0xF7, 0x4E, 0x4F, 0x4D, 0xF7, 0x44, 0x55, 0xF7, 0x26, 0x49, 0x43, 0x48, 0x49, 0x45, 0x52, 0x01, 0xFD}; -u8 D_filemenu_80250EEC[] = {0x8D, 0x29, 0x4E, 0x54, 0x52, 0x4F, 0x44, 0x55, 0x43, 0x45, 0xF7, 0x4E, 0x4F, 0x4D, 0x42, 0x52, 0x45, 0x01, 0xFD}; -u8 filemenu_msg_36[] = {0x11, 0xFD}; -u8 filemenu_msg_37[] = {0x12, 0xFD}; -u8 filemenu_msg_38[] = {0x13, 0xFD}; -u8 filemenu_msg_39[] = {0x14, 0xFD}; +u8 filemenu_msg_32[] = {0x25, 0x4E, 0x54, 0x45, 0x52, 0xF7, 0x41, 0xF7, 0x46, 0x49, 0x4C, 0x45, 0xF7, 0x4E, 0x41, 0x4D, 0x45, 0x01, 0xFD}; +u8 filemenu_msg_32_de[] = {0x27, 0x49, 0x42, 0xF7, 0x45, 0x49, 0x4E, 0x45, 0x4E, 0xF7, 0x2E, 0x41, 0x4D, 0x45, 0x4E, 0xF7, 0x45, 0x49, 0x4E, 0x01, 0xFD}; +u8 filemenu_msg_32_fr[] = {0x25, 0x4E, 0x54, 0x52, 0x45, 0x52, 0xF7, 0x4C, 0x45, 0xF7, 0x4E, 0x4F, 0x4D, 0xF7, 0x44, 0x55, 0xF7, 0x26, 0x49, 0x43, 0x48, 0x49, 0x45, 0x52, 0x01, 0xFD}; +u8 filemenu_msg_32_es[] = {0x8D, 0x29, 0x4E, 0x54, 0x52, 0x4F, 0x44, 0x55, 0x43, 0x45, 0xF7, 0x4E, 0x4F, 0x4D, 0x42, 0x52, 0x45, 0x01, 0xFD}; + +u8 filemenu_msg_36[] = {0x11, 0xFD}; // 1[End] +u8 filemenu_msg_37[] = {0x12, 0xFD}; // 2[End] +u8 filemenu_msg_38[] = {0x13, 0xFD}; // 3[End] +u8 filemenu_msg_39[] = {0x14, 0xFD}; // 4[End] + u8 filemenu_createfile_gridData[] = {0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x61, 0x66, 0x6A, 0x6D, 0x6F, 0x73, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x81, 0x82, 0x84, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x10, 0x0E, 0x0D, 0xF7, 0x00, 0x90, 0x91, 0x20, 0xF7, 0xF7, 0xF7, 0xC9, 0xF7, 0xF7, 0xCA, 0xF7, 0xF7}; #else @@ -329,163 +379,210 @@ u8 filemenu_msg_33[] = { 0x1F, 0xFD }; u8 filemenu_msg_34[] = { 0x0E, 0xFD }; #endif -#if VERSION_PAL u8 *gFileMenuMessages[] = { - 0, filemenu_msg_01, filemenu_msg_02, filemenu_msg_03, filemenu_msg_04, - filemenu_msg_05, filemenu_msg_06, filemenu_msg_07, filemenu_msg_08, filemenu_msg_09, - filemenu_msg_10, filemenu_msg_11, filemenu_msg_12, filemenu_msg_13, filemenu_msg_14, - filemenu_msg_15, filemenu_msg_16, filemenu_msg_12, filemenu_msg_18, filemenu_msg_19, - filemenu_msg_19, filemenu_msg_21, filemenu_msg_22, filemenu_msg_23, filemenu_msg_24, - filemenu_msg_19, filemenu_msg_26, filemenu_msg_27, filemenu_msg_28, filemenu_msg_29, - filemenu_msg_12, filemenu_msg_31, filemenu_msg_27, filemenu_msg_33, filemenu_msg_24, - filemenu_msg_12, filemenu_msg_36, filemenu_msg_37, filemenu_msg_38, filemenu_msg_39, -}; + [FILE_MESSAGE_NONE] NULL, + [FILE_MESSAGE_SELECT_FILE_TO_START] filemenu_msg_01, + [FILE_MESSAGE_SELECT_FILE_TO_DELETE] filemenu_msg_02, +#if !VERSION_PAL + [FILE_MESSAGE_SELECT_FILE_TO_SAVE] filemenu_msg_03, +#endif + [FILE_MESSAGE_COPY_WHICH_FILE] filemenu_msg_04, + [FILE_MESSAGE_COPY_TO_WHICH_FILE] filemenu_msg_05, + [FILE_MESSAGE_NEW] filemenu_msg_06, + [FILE_MESSAGE_LEVEL] filemenu_msg_07, + [FILE_MESSAGE_PLAY_TIME] filemenu_msg_08, + [FILE_MESSAGE_DELETE_FILE] filemenu_msg_09, + [FILE_MESSAGE_CANCEL] filemenu_msg_10, + [FILE_MESSAGE_COPY_FILE] filemenu_msg_11, + [FILE_MESSAGE_FIRST_PLAY] filemenu_msg_12, + [FILE_MESSAGE_PERIOD_13] filemenu_msg_13, + [FILE_MESSAGE_YES] filemenu_msg_14, + [FILE_MESSAGE_NO] filemenu_msg_15, + [FILE_MESSAGE_DELETE] filemenu_msg_16, +#if !VERSION_PAL + [FILE_MESSAGE_OVERRIDE_TO_NEW_DATA] filemenu_msg_17, + [FILE_MESSAGE_SAVE_OK] filemenu_msg_18, +#endif + [FILE_MESSAGE_FILE_NAME_IS] filemenu_msg_19, +#if VERSION_PAL + [FILE_MESSAGE_PERIOD_20] filemenu_msg_13, #else -s32 gFileMenuMessages[] = { - 0x00000000, (s32)filemenu_msg_01, (s32)filemenu_msg_02, (s32)filemenu_msg_03, (s32)filemenu_msg_04, - (s32)filemenu_msg_05, (s32)filemenu_msg_06, (s32)filemenu_msg_07, (s32)filemenu_msg_08, (s32)filemenu_msg_09, - (s32)filemenu_msg_10, (s32)filemenu_msg_11, (s32)filemenu_msg_12, (s32)filemenu_msg_13, (s32)filemenu_msg_14, - (s32)filemenu_msg_15, (s32)filemenu_msg_16, (s32)filemenu_msg_17, (s32)filemenu_msg_18, (s32)filemenu_msg_19, - (s32)filemenu_msg_20, (s32)filemenu_msg_21, (s32)filemenu_msg_22, (s32)filemenu_msg_23, (s32)filemenu_msg_24, - (s32)filemenu_msg_25, (s32)filemenu_msg_26, (s32)filemenu_msg_27, (s32)filemenu_msg_28, (s32)filemenu_msg_29, - (s32)filemenu_msg_30, (s32)filemenu_msg_31, (s32)filemenu_msg_32, (s32)filemenu_msg_33, (s32)filemenu_msg_34 -}; + [FILE_MESSAGE_PERIOD_20] filemenu_msg_20, +#endif + [FILE_MESSAGE_OK] filemenu_msg_21, + [FILE_MESSAGE_FILE_22] filemenu_msg_22, +#if VERSION_PAL + [FILE_MESSAGE_PAL_FILE_20] filemenu_msg_22, +#endif + [FILE_MESSAGE_WILL_BE_DELETED] filemenu_msg_23, + [FILE_MESSAGE_OK_TO_COPY_TO_THIS_FILE] filemenu_msg_24, + [FILE_MESSAGE_START_GAME_WITH] filemenu_msg_25, +#if VERSION_PAL + [FILE_MESSAGE_PAL_QUESTION_24] filemenu_msg_pal_24, + [FILE_MESSAGE_FILE_26] filemenu_msg_22, +#else + [FILE_MESSAGE_FILE_26] filemenu_msg_26, +#endif + [FILE_MESSAGE_HAS_BEEN_DELETED] filemenu_msg_27, + [FILE_MESSAGE_28] filemenu_msg_28, + [FILE_MESSAGE_COPY_FROM] filemenu_msg_29, + [FILE_MESSAGE_TO] filemenu_msg_30, +#if VERSION_PAL + [FILE_MESSAGE_PAL_PERIOD_30] filemenu_msg_13, +#endif + [FILE_MESSAGE_HAS_BEEN_CREATED] filemenu_msg_31, +#if VERSION_PAL + [FILE_MESSAGE_PAL_ARTICLE] filemenu_msg_28, #endif + [FILE_MESSAGE_ENTER_A_FILE_NAME] filemenu_msg_32, +#if VERSION_PAL + [FILE_MESSAGE_QUESTION] filemenu_msg_pal_24, + [FILE_MESSAGE_PERIOD_34] filemenu_msg_13, + [FILE_MESSAGE_PAL_FILENUM_1] filemenu_msg_36, + [FILE_MESSAGE_PAL_FILENUM_2] filemenu_msg_37, + [FILE_MESSAGE_PAL_FILENUM_3] filemenu_msg_38, + [FILE_MESSAGE_PAL_FILENUM_4] filemenu_msg_39, +#else + [FILE_MESSAGE_QUESTION] filemenu_msg_33, + [FILE_MESSAGE_PERIOD_34] filemenu_msg_34, +#endif +}; #if VERSION_PAL -u8* D_filemenu_80251018[] = { - 0, - filemenu_msg_01_de, - filemenu_msg_02_de, - filemenu_msg_03_de, - filemenu_msg_04_de, - filemenu_msg_05_de, - filemenu_msg_06, - filemenu_msg_07_de, - filemenu_msg_08_de, - filemenu_msg_09_de, - filemenu_msg_10_de, - filemenu_msg_11_de, - filemenu_msg_12, - filemenu_msg_13_de, - filemenu_msg_14_de, - filemenu_msg_15_de, - filemenu_msg_16_de, - filemenu_msg_12, - filemenu_msg_18, - filemenu_msg_19_de, - filemenu_msg_20_de, - filemenu_msg_21_de, - D_filemenu_80250D10, - D_filemenu_80250D78, - D_filemenu_80250DBC, - filemenu_msg_19_de, - D_filemenu_80250DDC, - filemenu_msg_27, - D_filemenu_80250E28, - D_filemenu_80250E48, - D_filemenu_80250E58, - D_filemenu_80250E78, - filemenu_msg_27, - D_filemenu_80250EB8, - filemenu_msg_24, - filemenu_msg_12, - filemenu_msg_36, - filemenu_msg_37, - filemenu_msg_38, - filemenu_msg_39, +u8* gFileMenuMessages_de[] = { + [FILE_MESSAGE_NONE] NULL, + [FILE_MESSAGE_SELECT_FILE_TO_START] filemenu_msg_01_de, + [FILE_MESSAGE_SELECT_FILE_TO_DELETE] filemenu_msg_02_de, + [FILE_MESSAGE_COPY_WHICH_FILE] filemenu_msg_04_de, + [FILE_MESSAGE_COPY_TO_WHICH_FILE] filemenu_msg_05_de, + [FILE_MESSAGE_NEW] filemenu_msg_06_de, + [FILE_MESSAGE_LEVEL] filemenu_msg_07, + [FILE_MESSAGE_PLAY_TIME] filemenu_msg_08_de, + [FILE_MESSAGE_DELETE_FILE] filemenu_msg_09_de, + [FILE_MESSAGE_CANCEL] filemenu_msg_10_de, + [FILE_MESSAGE_COPY_FILE] filemenu_msg_11_de, + [FILE_MESSAGE_FIRST_PLAY] filemenu_msg_12_de, + [FILE_MESSAGE_PERIOD_13] filemenu_msg_13, + [FILE_MESSAGE_YES] filemenu_msg_14_de, + [FILE_MESSAGE_NO] filemenu_msg_15_de, + [FILE_MESSAGE_DELETE] filemenu_msg_16_de, + [FILE_MESSAGE_FILE_NAME_IS] filemenu_msg_19_de, + [FILE_MESSAGE_PERIOD_20] filemenu_msg_13, + [FILE_MESSAGE_OK] filemenu_msg_21, + [FILE_MESSAGE_FILE_22] filemenu_msg_22_de, + [FILE_MESSAGE_PAL_FILE_20] filemenu_msg_pal_20_de, + [FILE_MESSAGE_WILL_BE_DELETED] filemenu_msg_23_de, + [FILE_MESSAGE_OK_TO_COPY_TO_THIS_FILE] filemenu_msg_24_de, + [FILE_MESSAGE_START_GAME_WITH] filemenu_msg_25_de, + [FILE_MESSAGE_PAL_QUESTION_24] filemenu_msg_pal_24_de, + [FILE_MESSAGE_FILE_26] filemenu_msg_22_de, + [FILE_MESSAGE_HAS_BEEN_DELETED] filemenu_msg_27_de, + [FILE_MESSAGE_28] filemenu_msg_28, + [FILE_MESSAGE_COPY_FROM] filemenu_msg_29_de, + [FILE_MESSAGE_TO] filemenu_msg_30_de, + [FILE_MESSAGE_PAL_PERIOD_30] filemenu_msg_pal_30_de, + [FILE_MESSAGE_HAS_BEEN_CREATED] filemenu_msg_31_de, + [FILE_MESSAGE_PAL_ARTICLE] filemenu_msg_28, + [FILE_MESSAGE_ENTER_A_FILE_NAME] filemenu_msg_32_de, + [FILE_MESSAGE_QUESTION] filemenu_msg_pal_24, + [FILE_MESSAGE_PERIOD_34] filemenu_msg_13, + [FILE_MESSAGE_PAL_FILENUM_1] filemenu_msg_36, + [FILE_MESSAGE_PAL_FILENUM_2] filemenu_msg_37, + [FILE_MESSAGE_PAL_FILENUM_3] filemenu_msg_38, + [FILE_MESSAGE_PAL_FILENUM_4] filemenu_msg_39, }; - u8* D_filemenu_802510B8[] = { - 0, - D_filemenu_8025099C, - D_filemenu_802509F4, - D_filemenu_80250A58, - D_filemenu_80250AB0, - D_filemenu_80250AE4, - D_filemenu_80250AFC, - D_filemenu_80250B24, - D_filemenu_80250B48, - D_filemenu_80250B6C, - D_filemenu_80250B94, - D_filemenu_80250BBC, - filemenu_msg_12, - D_filemenu_80250BE4, - D_filemenu_80250BF8, - D_filemenu_80250C10, - D_filemenu_80250C48, - filemenu_msg_12, - filemenu_msg_18, - D_filemenu_80250C90, - D_filemenu_80250CA8, - D_filemenu_80250CD4, - D_filemenu_80250D38, - D_filemenu_80250D84, - filemenu_msg_24, - D_filemenu_80250C90, - D_filemenu_80250DEC, - D_filemenu_80250E14, - D_filemenu_80250E2C, - D_filemenu_80250E50, - filemenu_msg_12, - D_filemenu_80250E88, - filemenu_msg_27, - D_filemenu_80250ED0, - filemenu_msg_24, - filemenu_msg_12, - filemenu_msg_36, - filemenu_msg_37, - filemenu_msg_38, - filemenu_msg_39, + +u8* gFileMenuMessages_fr[] = { + [FILE_MESSAGE_NONE] NULL, + [FILE_MESSAGE_SELECT_FILE_TO_START] filemenu_msg_01_fr, + [FILE_MESSAGE_SELECT_FILE_TO_DELETE] filemenu_msg_02_fr, + [FILE_MESSAGE_COPY_WHICH_FILE] filemenu_msg_04_fr, + [FILE_MESSAGE_COPY_TO_WHICH_FILE] filemenu_msg_05_fr, + [FILE_MESSAGE_NEW] filemenu_msg_06_fr, + [FILE_MESSAGE_LEVEL] filemenu_msg_07_fr, + [FILE_MESSAGE_PLAY_TIME] filemenu_msg_08_fr, + [FILE_MESSAGE_DELETE_FILE] filemenu_msg_09_fr, + [FILE_MESSAGE_CANCEL] filemenu_msg_10_fr, + [FILE_MESSAGE_COPY_FILE] filemenu_msg_11_fr, + [FILE_MESSAGE_FIRST_PLAY] filemenu_msg_12_fr, + [FILE_MESSAGE_PERIOD_13] filemenu_msg_13, + [FILE_MESSAGE_YES] filemenu_msg_14_fr, + [FILE_MESSAGE_NO] filemenu_msg_15_fr, + [FILE_MESSAGE_DELETE] filemenu_msg_16_fr, + [FILE_MESSAGE_FILE_NAME_IS] filemenu_msg_19_fr, + [FILE_MESSAGE_PERIOD_20] filemenu_msg_13, + [FILE_MESSAGE_OK] filemenu_msg_21, + [FILE_MESSAGE_FILE_22] filemenu_msg_22_fr, + [FILE_MESSAGE_PAL_FILE_20] filemenu_msg_pal_20_fr_es, + [FILE_MESSAGE_WILL_BE_DELETED] filemenu_msg_23_fr, + [FILE_MESSAGE_OK_TO_COPY_TO_THIS_FILE] filemenu_msg_24_fr, + [FILE_MESSAGE_START_GAME_WITH] filemenu_msg_25_fr, + [FILE_MESSAGE_PAL_QUESTION_24] filemenu_msg_pal_24, + [FILE_MESSAGE_FILE_26] filemenu_msg_22_fr, + [FILE_MESSAGE_HAS_BEEN_DELETED] filemenu_msg_27_fr, + [FILE_MESSAGE_28] filemenu_msg_28_fr, + [FILE_MESSAGE_COPY_FROM] filemenu_msg_29_fr, + [FILE_MESSAGE_TO] filemenu_msg_30_fr, + [FILE_MESSAGE_PAL_PERIOD_30] filemenu_msg_13, + [FILE_MESSAGE_HAS_BEEN_CREATED] filemenu_msg_31_fr, + [FILE_MESSAGE_PAL_ARTICLE] filemenu_msg_28, + [FILE_MESSAGE_ENTER_A_FILE_NAME] filemenu_msg_32_fr, + [FILE_MESSAGE_QUESTION] filemenu_msg_pal_24, + [FILE_MESSAGE_PERIOD_34] filemenu_msg_13, + [FILE_MESSAGE_PAL_FILENUM_1] filemenu_msg_36, + [FILE_MESSAGE_PAL_FILENUM_2] filemenu_msg_37, + [FILE_MESSAGE_PAL_FILENUM_3] filemenu_msg_38, + [FILE_MESSAGE_PAL_FILENUM_4] filemenu_msg_39, }; -u8* D_filemenu_80251158[] = { - 0, - D_filemenu_802509B0, - D_filemenu_80250A10, - D_filemenu_80250A68, - D_filemenu_80250AC8, - D_filemenu_80250AEC, - D_filemenu_80250B04, - D_filemenu_80250B2C, - D_filemenu_80250B50, - D_filemenu_80250B74, - D_filemenu_80250B9C, - D_filemenu_80250BCC, - filemenu_msg_12, - D_filemenu_80250BE8, - D_filemenu_80250BFC, - D_filemenu_80250C18, - D_filemenu_80250C5C, - filemenu_msg_12, - D_filemenu_80250C78, - D_filemenu_80250C98, - D_filemenu_80250CA8, - D_filemenu_80250CE4, - D_filemenu_80250D4C, - D_filemenu_80250DA4, - filemenu_msg_24, - D_filemenu_80250C98, - D_filemenu_80250DFC, - D_filemenu_80250E18, - D_filemenu_80250E38, - D_filemenu_80250E54, - filemenu_msg_12, - D_filemenu_80250E94, - D_filemenu_80250E18, - D_filemenu_80250EEC, - filemenu_msg_24, - filemenu_msg_12, - filemenu_msg_36, - filemenu_msg_37, - filemenu_msg_38, - filemenu_msg_39, +u8* gFileMenuMessages_es[] = { + [FILE_MESSAGE_NONE] NULL, + [FILE_MESSAGE_SELECT_FILE_TO_START] filemenu_msg_01_es, + [FILE_MESSAGE_SELECT_FILE_TO_DELETE] filemenu_msg_02_es, + [FILE_MESSAGE_COPY_WHICH_FILE] filemenu_msg_04_es, + [FILE_MESSAGE_COPY_TO_WHICH_FILE] filemenu_msg_05_es, + [FILE_MESSAGE_NEW] filemenu_msg_06_es, + [FILE_MESSAGE_LEVEL] filemenu_msg_07_es, + [FILE_MESSAGE_PLAY_TIME] filemenu_msg_08_es, + [FILE_MESSAGE_DELETE_FILE] filemenu_msg_09_es, + [FILE_MESSAGE_CANCEL] filemenu_msg_10_es, + [FILE_MESSAGE_COPY_FILE] filemenu_msg_11_es, + [FILE_MESSAGE_FIRST_PLAY] filemenu_msg_12_es, + [FILE_MESSAGE_PERIOD_13] filemenu_msg_13, + [FILE_MESSAGE_YES] filemenu_msg_14_es, + [FILE_MESSAGE_NO] filemenu_msg_15_es, + [FILE_MESSAGE_DELETE] filemenu_msg_16_es, + [FILE_MESSAGE_FILE_NAME_IS] filemenu_msg_19_es, + [FILE_MESSAGE_PERIOD_20] filemenu_msg_13, + [FILE_MESSAGE_OK] filemenu_msg_21_es, + [FILE_MESSAGE_FILE_22] filemenu_msg_22_es, + [FILE_MESSAGE_PAL_FILE_20] filemenu_msg_pal_20_fr_es, + [FILE_MESSAGE_WILL_BE_DELETED] filemenu_msg_23_es, + [FILE_MESSAGE_OK_TO_COPY_TO_THIS_FILE] filemenu_msg_24_es, + [FILE_MESSAGE_START_GAME_WITH] filemenu_msg_25_es, + [FILE_MESSAGE_PAL_QUESTION_24] filemenu_msg_pal_24, + [FILE_MESSAGE_FILE_26] filemenu_msg_22_es, + [FILE_MESSAGE_HAS_BEEN_DELETED] filemenu_msg_27_es, + [FILE_MESSAGE_28] filemenu_msg_28_es, + [FILE_MESSAGE_COPY_FROM] filemenu_msg_29_es, + [FILE_MESSAGE_TO] filemenu_msg_30_es, + [FILE_MESSAGE_PAL_PERIOD_30] filemenu_msg_13, + [FILE_MESSAGE_HAS_BEEN_CREATED] filemenu_msg_31_es, + [FILE_MESSAGE_PAL_ARTICLE] filemenu_msg_28_es, + [FILE_MESSAGE_ENTER_A_FILE_NAME] filemenu_msg_32_es, + [FILE_MESSAGE_QUESTION] filemenu_msg_pal_24, + [FILE_MESSAGE_PERIOD_34] filemenu_msg_13, + [FILE_MESSAGE_PAL_FILENUM_1] filemenu_msg_36, + [FILE_MESSAGE_PAL_FILENUM_2] filemenu_msg_37, + [FILE_MESSAGE_PAL_FILENUM_3] filemenu_msg_38, + [FILE_MESSAGE_PAL_FILENUM_4] filemenu_msg_39, }; u8 **gFileMenuMessages_intl[] = { gFileMenuMessages, - D_filemenu_80251018, - D_filemenu_802510B8, - D_filemenu_80251158, + gFileMenuMessages_de, + gFileMenuMessages_fr, + gFileMenuMessages_es, }; #endif @@ -661,7 +758,7 @@ u8* filemenu_get_menu_message(s32 idx) { #if VERSION_PAL return gFileMenuMessages_intl[gCurrentLanguage][idx]; #else - return (u8*)gFileMenuMessages[idx]; + return gFileMenuMessages[idx]; #endif } diff --git a/src/filemenu/filemenu_yesno.c b/src/filemenu/filemenu_yesno.c index 10133140721..f9308c6a7b7 100644 --- a/src/filemenu/filemenu_yesno.c +++ b/src/filemenu/filemenu_yesno.c @@ -6,27 +6,63 @@ #if VERSION_IQUE #define DELETE_FILE_DELETE_X 20 #define DELETE_FILE_FILE_X 50 -#define DELETE_FILE_NUMBER_X 93 -#define DELETE_FILE_QMARK_X 92 -#define COPY_FILE_NUMBER_X 49 +#define DELETE_FILE_NUMBER_X 43 +#define DELETE_FILE_QMARK_X (-1) +#define COPY_FILE_NUMBER_X 39 +#define CREATE_FILE_FILE_X 164 #define START_GAME_START_WITH_X 37 -#define START_GAME_FILE_X 100 -#define START_GAME_NUMBER_X 142 -#define START_GAME_QMARK_X 140 +#define START_GAME_FILE_X 63 +#define START_GAME_NUMBER_X 42 +#define START_GAME_QMARK_X (-2) #define NUMBER_OFFSET_Y 1 +#elif VERSION_PAL +extern u8 D_filemenu_80250924[4]; +extern u8 D_filemenu_80250928[4]; +extern u8 D_filemenu_802508FC[4]; +extern u8 D_filemenu_8025092C[4]; +extern u8 D_filemenu_80250934[4]; +extern u8 D_filemenu_80250960[4]; +extern u8 D_filemenu_80250908[4]; +extern u8 D_filemenu_802508F8[4]; +extern s8 D_filemenu_8025090C[4]; +#define DELETE_FILE_DELETE_X (D_filemenu_80250924[gCurrentLanguage]) +#define DELETE_FILE_FILE_X (D_filemenu_80250928[gCurrentLanguage]) +#define DELETE_FILE_NUMBER_X (D_filemenu_802508FC[gCurrentLanguage]) +#define DELETE_FILE_QMARK_X (D_filemenu_8025092C[gCurrentLanguage]) +#define COPY_FILE_NUMBER_X (D_filemenu_802508FC[gCurrentLanguage]) +#define CREATE_FILE_FILE_X (D_filemenu_80250960[gCurrentLanguage]) +#define START_GAME_START_WITH_X 10 +#define START_GAME_FILE_X (D_filemenu_80250908[gCurrentLanguage]) +#define START_GAME_NUMBER_X (D_filemenu_802508F8[gCurrentLanguage]) +#define START_GAME_QMARK_X (D_filemenu_8025090C[gCurrentLanguage]) +#define NUMBER_OFFSET_Y 0 #else #define DELETE_FILE_DELETE_X 10 #define DELETE_FILE_FILE_X 60 -#define DELETE_FILE_NUMBER_X 98 -#define DELETE_FILE_QMARK_X 99 -#define COPY_FILE_NUMBER_X 48 +#define DELETE_FILE_NUMBER_X 38 +#define DELETE_FILE_QMARK_X 1 +#define COPY_FILE_NUMBER_X 38 +#define CREATE_FILE_FILE_X 164 #define START_GAME_START_WITH_X 10 -#define START_GAME_FILE_X 127 -#define START_GAME_NUMBER_X 165 -#define START_GAME_QMARK_X 162 +#define START_GAME_FILE_X 117 +#define START_GAME_NUMBER_X 38 +#define START_GAME_QMARK_X (-3) #define NUMBER_OFFSET_Y 0 #endif +#if VERSION_PAL +extern u8 D_filemenu_80250930[4]; +extern u8 D_filemenu_80250954[4]; +extern u8 D_filemenu_80250964[4]; +#define DELETE_FILE_MESSAGE_WIDTH (D_filemenu_80250930[gCurrentLanguage]) +#define COPY_FILE_MESSAGE_WIDTH (D_filemenu_80250954[gCurrentLanguage]) +#define CREATE_FILE_MESSAGE_WIDTH (D_filemenu_80250964[gCurrentLanguage]) +#else +#define DELETE_FILE_MESSAGE_WIDTH 182 +#define COPY_FILE_MESSAGE_WIDTH 154 +#define CREATE_FILE_MESSAGE_WIDTH 184 +#endif + u8 filemenu_yesno_gridData[] = { 0, 1, #if !VERSION_PAL @@ -147,9 +183,6 @@ void filemenu_yesno_draw_options_contents( } } -#if VERSION_PAL -INCLUDE_ASM(void, "filemenu/filemenu_yesno", filemenu_yesno_draw_prompt_contents); -#else void filemenu_yesno_draw_prompt_contents( MenuPanel* menu, s32 baseX, s32 baseY, @@ -161,20 +194,36 @@ void filemenu_yesno_draw_prompt_contents( switch (menu->state) { case FM_CONFIRM_DELETE: - filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_DELETE), baseX + DELETE_FILE_DELETE_X, baseY + 4, 0xFF, 0, 0); - filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_FILE_22), baseX + DELETE_FILE_FILE_X, baseY + 4, 0xFF, 0, 0); - draw_number(filemenu_menus[FILE_MENU_MAIN]->selected + 1, baseX + DELETE_FILE_NUMBER_X, baseY + 6 + NUMBER_OFFSET_Y, DRAW_NUMBER_CHARSET_NORMAL, MSG_PAL_WHITE, 0xFF, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); - filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_QUESTION), baseX + DELETE_FILE_QMARK_X, baseY + 4, 0xFF, 0, 0); break; + xOffset = DELETE_FILE_DELETE_X; + filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_DELETE), baseX + xOffset, baseY + 4, 0xFF, 0, 0); + xOffset = DELETE_FILE_FILE_X; + filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_FILE_22), baseX + xOffset, baseY + 4, 0xFF, 0, 0); + xOffset += DELETE_FILE_NUMBER_X; + draw_number(filemenu_menus[FILE_MENU_MAIN]->selected + 1, baseX + xOffset, baseY + 6 + NUMBER_OFFSET_Y, DRAW_NUMBER_CHARSET_NORMAL, MSG_PAL_WHITE, 0xFF, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); + xOffset += DELETE_FILE_QMARK_X; + filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_QUESTION), baseX + xOffset, baseY + 4, 0xFF, 0, 0); + break; case FM_CONFIRM_COPY: - filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_FILE_22), baseX + 10, baseY + 4, 0xFF, 0, 0); - draw_number(filemenu_menus[FILE_MENU_MAIN]->selected + 1, baseX + COPY_FILE_NUMBER_X, baseY + 6 + NUMBER_OFFSET_Y, DRAW_NUMBER_CHARSET_NORMAL, MSG_PAL_WHITE, 0xFF, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); - filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_WILL_BE_DELETED), baseX + 49, baseY + 4, 0xFF, 0, 0); + xOffset = 10; +#if VERSION_PAL + filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_28), baseX + xOffset, baseY + 4, 0xFF, 0, 0); + xOffset += D_filemenu_80250934[gCurrentLanguage]; +#endif + filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_FILE_22), baseX + xOffset, baseY + 4, 0xFF, 0, 0); + xOffset += COPY_FILE_NUMBER_X; + draw_number(filemenu_menus[FILE_MENU_MAIN]->selected + 1, baseX + xOffset, baseY + 6 + NUMBER_OFFSET_Y, DRAW_NUMBER_CHARSET_NORMAL, MSG_PAL_WHITE, 0xFF, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); +#if !VERSION_IQUE + xOffset++; +#endif + filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_WILL_BE_DELETED), baseX + xOffset, baseY + 4, 0xFF, 0, 0); filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_OK_TO_COPY_TO_THIS_FILE), baseX + 10, baseY + 18, 0xFF, 0, 0); break; +#if !VERSION_PAL case FM_CONFIRM_DUMMY: filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_OVERRIDE_TO_NEW_DATA), baseX + 10, baseY + 4, 0xFF, 0, 0); filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_SAVE_OK), baseX + 10, baseY + 18, 0xFF, 0, 0); break; +#endif case FM_CONFIRM_CREATE: filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_FILE_NAME_IS), baseX + 10, baseY + 6, 0xFF, 0, 0); @@ -184,21 +233,33 @@ void filemenu_yesno_draw_prompt_contents( } } - xOffset = (147 - (i * 11)) / 2; + xOffset = ((CREATE_FILE_FILE_X - 17) - (i * 11)) / 2; filemenu_draw_file_name(filemenu_filename, i + 1, baseX + xOffset, baseY + 22, 0xFF, 0, 8, 0xB); xOffset += (i + 1) * 11; filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_PERIOD_20), baseX + xOffset, baseY + 22, 0xFF, 0, 0); filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_OK), baseX + 70, baseY + 38, 0xFF, 0, 0); break; case FM_CONFIRM_START: - filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_START_GAME_WITH), baseX + START_GAME_START_WITH_X, baseY + 4, 0xFF, 0, 0); - filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_FILE_22), baseX + START_GAME_FILE_X, baseY + 4, 0xFF, 0, 0); - draw_number(filemenu_menus[FILE_MENU_MAIN]->selected + 1, baseX + START_GAME_NUMBER_X, baseY + 6 + NUMBER_OFFSET_Y, DRAW_NUMBER_CHARSET_NORMAL, MSG_PAL_WHITE, 0xFF, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); - filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_QUESTION), baseX + START_GAME_QMARK_X, baseY + 4, 0xFF, 0, 0); + xOffset = START_GAME_START_WITH_X; + filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_START_GAME_WITH), baseX + xOffset, baseY + 4, 0xFF, 0, 0); +#if VERSION_PAL + if (gCurrentLanguage == LANGUAGE_ES) { + break; + } +#endif + xOffset += START_GAME_FILE_X; + filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_FILE_22), baseX + xOffset, baseY + 4, 0xFF, 0, 0); + xOffset += START_GAME_NUMBER_X; + draw_number(filemenu_menus[FILE_MENU_MAIN]->selected + 1, baseX + xOffset, baseY + 6 + NUMBER_OFFSET_Y, DRAW_NUMBER_CHARSET_NORMAL, MSG_PAL_WHITE, 0xFF, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); + xOffset += START_GAME_QMARK_X; +#if VERSION_PAL + filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_PAL_QUESTION_24), baseX + xOffset, baseY + 4, 0xFF, 0, 0); +#else + filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_QUESTION), baseX + xOffset, baseY + 4, 0xFF, 0, 0); +#endif break; } } -#endif void filemenu_yesno_init(MenuPanel* tab) { s32 i; @@ -211,9 +272,6 @@ void filemenu_yesno_init(MenuPanel* tab) { tab->initialized = TRUE; } -#if VERSION_PAL -INCLUDE_ASM(void, "filemenu/filemenu_yesno", filemenu_yesno_handle_input); -#else void filemenu_yesno_handle_input(MenuPanel* menu) { s32 oldSelected = menu->selected; @@ -257,7 +315,7 @@ void filemenu_yesno_handle_input(MenuPanel* menu) { case FM_CONFIRM_DELETE: filemenu_currentMenu = FILE_MENU_MESSAGE; filemenu_menus[FILE_MENU_MESSAGE]->state = FM_MESSAGE_DELETED; - gWindows[WIN_FILES_MESSAGE].width = 182; + gWindows[WIN_FILES_MESSAGE].width = DELETE_FILE_MESSAGE_WIDTH; gWindows[WIN_FILES_MESSAGE].height = 25; gWindows[WIN_FILES_MESSAGE].pos.x = CENTER_WINDOW_X(WIN_FILES_MESSAGE); gWindows[WIN_FILES_MESSAGE].pos.y = CENTER_WINDOW_Y(WIN_FILES_MESSAGE); @@ -277,17 +335,26 @@ void filemenu_yesno_handle_input(MenuPanel* menu) { case FM_CONFIRM_COPY: filemenu_currentMenu = FILE_MENU_MESSAGE; filemenu_menus[filemenu_currentMenu]->state = FM_MESSAGE_COPIED; - gWindows[WIN_FILES_MESSAGE].width = 154; + gWindows[WIN_FILES_MESSAGE].width = COPY_FILE_MESSAGE_WIDTH; gWindows[WIN_FILES_MESSAGE].height = 39; gWindows[WIN_FILES_MESSAGE].pos.x = CENTER_WINDOW_X(WIN_FILES_MESSAGE); gWindows[WIN_FILES_MESSAGE].pos.y = CENTER_WINDOW_Y(WIN_FILES_MESSAGE); set_window_update(WIN_FILES_MESSAGE, WINDOW_UPDATE_SHOW); set_window_update(WIN_FILES_CONFIRM_OPTIONS, (s32)filemenu_update_hidden_name_confirm); +#if VERSION_PAL + if (fio_load_game(filemenu_loadedFileIdx)) { + gSaveSlotMetadata[filemenu_iterFileIdx] = gSaveSlotMetadata[filemenu_loadedFileIdx]; + fio_save_game(filemenu_iterFileIdx); + gSaveSlotHasData[filemenu_iterFileIdx] = TRUE; + } +#else fio_load_game(filemenu_loadedFileIdx); gSaveSlotMetadata[filemenu_iterFileIdx] = gSaveSlotMetadata[filemenu_loadedFileIdx]; fio_save_game(filemenu_iterFileIdx); gSaveSlotHasData[filemenu_iterFileIdx] = TRUE; +#endif break; +#if !VERSION_PAL case FM_CONFIRM_DUMMY: filemenu_currentMenu = FILE_MENU_MESSAGE; filemenu_menus[filemenu_currentMenu]->state = FM_MESSAGE_DUMMY; @@ -301,6 +368,7 @@ void filemenu_yesno_handle_input(MenuPanel* menu) { fio_save_game(filemenu_menus[FILE_MENU_MAIN]->selected); gSaveSlotHasData[filemenu_menus[FILE_MENU_MAIN]->selected] = TRUE; break; +#endif case FM_CONFIRM_CREATE: clear_player_data(); clear_saved_variables(); @@ -330,8 +398,8 @@ void filemenu_yesno_handle_input(MenuPanel* menu) { set_window_update(WIN_FILES_SLOT4_BODY, (s32)filemenu_update_show_with_rotation); set_window_update(WIN_FILES_CONFIRM_OPTIONS, (s32)filemenu_update_hidden_name_confirm); filemenu_currentMenu = FILE_MENU_MESSAGE; - filemenu_menus[FILE_MENU_MESSAGE]->state = FM_MESSAGE_CREATED; - gWindows[WIN_FILES_MESSAGE].width = 184; + filemenu_menus[filemenu_currentMenu]->state = FM_MESSAGE_CREATED; + gWindows[WIN_FILES_MESSAGE].width = CREATE_FILE_MESSAGE_WIDTH; gWindows[WIN_FILES_MESSAGE].height = 25; gWindows[WIN_FILES_MESSAGE].pos.x = CENTER_WINDOW_X(WIN_FILES_MESSAGE); gWindows[WIN_FILES_MESSAGE].pos.y = CENTER_WINDOW_Y(WIN_FILES_MESSAGE); @@ -339,6 +407,35 @@ void filemenu_yesno_handle_input(MenuPanel* menu) { break; case FM_CONFIRM_START: slot3 = filemenu_menus[FILE_MENU_MAIN]->selected; +#if VERSION_PAL + if (gGameStatusPtr->soundOutputMode != 1 - gSaveGlobals.useMonoSound || + slot3 != (u8)gSaveGlobals.lastFileSelected || gCurrentLanguage != gSaveGlobals.language) + { + gSaveGlobals.useMonoSound = 1 - gGameStatusPtr->soundOutputMode; + gSaveGlobals.lastFileSelected = slot3; + gSaveGlobals.language = gCurrentLanguage; + fio_save_globals(); + } + if (fio_load_game(slot3)) { + set_game_mode(GAME_MODE_END_FILE_SELECT); + } else { + filemenu_currentMenu = FILE_MENU_MAIN; + slot4 = filemenu_menus[FILE_MENU_MAIN]->selected; + set_window_update(WIN_FILES_TITLE, (s32)filemenu_update_show_with_rotation); + set_window_update(WIN_FILES_STEREO, (s32)filemenu_update_show_with_rotation); + set_window_update(WIN_FILES_MONO, (s32)filemenu_update_show_with_rotation); + set_window_update(WIN_FILES_OPTION_LEFT, (s32)filemenu_update_show_with_rotation); + set_window_update(WIN_FILES_OPTION_CENTER, (s32)filemenu_update_show_with_rotation); + set_window_update(WIN_FILES_OPTION_RIGHT, (s32)filemenu_update_show_with_rotation); + set_window_update(WIN_FILES_OPTION_LEFT, (s32)filemenu_update_show_with_rotation); + set_window_update(WIN_FILES_SLOT1_BODY, (s32)filemenu_update_show_with_rotation); + set_window_update(WIN_FILES_SLOT2_BODY, (s32)filemenu_update_show_with_rotation); + set_window_update(WIN_FILES_SLOT3_BODY, (s32)filemenu_update_show_with_rotation); + set_window_update(WIN_FILES_SLOT4_BODY, (s32)filemenu_update_show_with_rotation); + set_window_update(slot4 + WIN_FILES_SLOT1_BODY, (s32)filemenu_update_deselect_file); + set_window_update(WIN_FILES_CONFIRM_OPTIONS, WINDOW_UPDATE_HIDE); + } +#else if (gGameStatusPtr->soundOutputMode != 1 - gSaveGlobals.useMonoSound || slot3 != (u8)gSaveGlobals.lastFileSelected) { @@ -348,13 +445,16 @@ void filemenu_yesno_handle_input(MenuPanel* menu) { } fio_load_game(slot3); set_game_mode(GAME_MODE_END_FILE_SELECT); +#endif break; } break; case 1: // NO switch (menu->state) { case FM_CONFIRM_DELETE: +#if !VERSION_PAL case FM_CONFIRM_DUMMY: +#endif case FM_CONFIRM_COPY: filemenu_currentMenu = FILE_MENU_MAIN; set_window_update(WIN_FILES_CONFIRM_OPTIONS, (s32)filemenu_update_hidden_name_confirm); @@ -393,7 +493,9 @@ void filemenu_yesno_handle_input(MenuPanel* menu) { switch (menu->state) { case FM_CONFIRM_DELETE: +#if !VERSION_PAL case FM_CONFIRM_DUMMY: +#endif case FM_CONFIRM_COPY: filemenu_currentMenu = FILE_MENU_MAIN; set_window_update(WIN_FILES_CONFIRM_OPTIONS, (s32)filemenu_update_hidden_name_confirm); @@ -422,7 +524,6 @@ void filemenu_yesno_handle_input(MenuPanel* menu) { } } } -#endif void filemenu_yesno_update(MenuPanel* menu) { } diff --git a/src/fio.c b/src/fio.c index f383dd7eb5d..4160c7029d8 100644 --- a/src/fio.c +++ b/src/fio.c @@ -11,6 +11,9 @@ typedef struct SaveInfo { #define GLOBALS_PAGE_2 7 BSS SaveData FetchSaveBuffer; +#if VERSION_PAL +BSS SaveData SaveCheckBuffer; +#endif BSS SaveInfo LogicalSaveInfo[4]; // 4 save slots presented to the player BSS SaveInfo PhysicalSaveInfo[6]; // 6 saves as represented on the EEPROM BSS s32 NextAvailablePhysicalSave; @@ -24,7 +27,37 @@ void fio_deserialize_state(void); void fio_serialize_state(void); b32 fio_read_flash(s32 pageNum, void* readBuffer, u32 numBytes); b32 fio_write_flash(s32 pageNum, s8* readBuffer, u32 numBytes); -void fio_erase_flash(s32 pageNum); +s32 fio_erase_flash(s32 pageNum); + +#if VERSION_PAL +b32 save_check_integrity(void) { + u32 i; + s32 *it = (s32*)&gCurrentSaveFile; + s32 *it2 = (s32*)&FetchSaveBuffer; + + for (i = 0; i < sizeof(gCurrentSaveFile) / sizeof(*it); i++, it++, it2++) { + if (*it != *it2) { + return TRUE; + } + } + + return FALSE; +} + +b32 check_fetch_save_integrity(void) { + u32 i; + s32 *it = (s32*)&FetchSaveBuffer; + s32 *it2 = (s32*)&SaveCheckBuffer; + + for (i = 0; i < sizeof(FetchSaveBuffer) / sizeof(*it); i++, it++, it2++) { + if (*it != *it2) { + return TRUE; + } + } + + return FALSE; +} +#endif s32 get_spirits_rescued(void) { s32 storyProgress = evt_get_variable(NULL, GB_StoryProgress); @@ -123,6 +156,9 @@ b32 fio_validate_file_checksum(SaveData* saveData) { b32 fio_fetch_saved_file_info(void) { SaveData* fetchBuf = &FetchSaveBuffer; // temps required to match +#if VERSION_PAL + SaveData* checkBuf = &SaveCheckBuffer; +#endif SaveData* validBuf = fetchBuf; s32 i, j, minSaveCount; @@ -132,6 +168,27 @@ b32 fio_fetch_saved_file_info(void) { } for (i = 0; i < ARRAY_COUNT(PhysicalSaveInfo); i++) { +#if VERSION_PAL + for (j = 0; j < 4; j++) { + fio_read_flash(i, fetchBuf, sizeof(SaveData)); + fio_read_flash(i, checkBuf, sizeof(SaveData)); + if (!check_fetch_save_integrity()) { + break; + } + } + if (fio_validate_file_checksum(fetchBuf) && j != 4) { + PhysicalSaveInfo[i].slot = validBuf->saveSlot; + PhysicalSaveInfo[i].count = validBuf->saveCount; + // logical saves only track the most recent physical save for each slot + if (LogicalSaveInfo[validBuf->saveSlot].count < validBuf->saveCount) { + LogicalSaveInfo[validBuf->saveSlot].slot = i; + LogicalSaveInfo[validBuf->saveSlot].count = validBuf->saveCount; + } + } else { + PhysicalSaveInfo[i].count = 0; + PhysicalSaveInfo[i].slot = 99; + } +#else fio_read_flash(i, fetchBuf, sizeof(SaveData)); if (fio_validate_file_checksum(fetchBuf)) { PhysicalSaveInfo[i].slot = validBuf->saveSlot; @@ -142,6 +199,7 @@ b32 fio_fetch_saved_file_info(void) { LogicalSaveInfo[validBuf->saveSlot].count = validBuf->saveCount; } } +#endif } minSaveCount = 0x7FFFFFFF; @@ -165,8 +223,34 @@ b32 fio_fetch_saved_file_info(void) { } b32 fio_load_game(s32 saveSlot) { +#if VERSION_PAL + int i; + SaveData *saveData = &gCurrentSaveFile; + SaveData *temp = saveData; +#endif + gGameStatusPtr->saveSlot = saveSlot; +#if VERSION_PAL + for (i = 0; i < 4; i++){ + fio_fetch_saved_file_info(); + if (LogicalSaveInfo[saveSlot].slot < 0) { + continue; + } + fio_read_flash(LogicalSaveInfo[saveSlot].slot, saveData, sizeof(SaveData)); + if (fio_validate_file_checksum(saveData)) { + break; + } + } + + if (i != 4) { + if (gGameStatusPtr->saveCount < temp->saveCount) { + gGameStatusPtr->saveCount = temp->saveCount; + } + fio_deserialize_state(); + return TRUE; + } +#else fio_fetch_saved_file_info(); fio_read_flash(LogicalSaveInfo[saveSlot].slot, &gCurrentSaveFile, sizeof(SaveData)); @@ -177,29 +261,47 @@ b32 fio_load_game(s32 saveSlot) { fio_deserialize_state(); return TRUE; } +#endif return FALSE; } void fio_save_game(s32 saveSlot) { + SaveData* saveData = &gCurrentSaveFile; +#if VERSION_PAL + int i; +#endif + fio_fetch_saved_file_info(); gGameStatusPtr->saveSlot = saveSlot; fio_serialize_state(); - strcpy(gCurrentSaveFile.magicString, MagicSaveString); + strcpy(saveData->magicString, MagicSaveString); - gCurrentSaveFile.saveSlot = saveSlot; + saveData->saveSlot = saveSlot; gGameStatusPtr->saveCount++; - gCurrentSaveFile.saveCount = gGameStatusPtr->saveCount; + saveData->saveCount = gGameStatusPtr->saveCount; + + saveData->crc1 = 0; + saveData->crc2 = ~saveData->crc1; + saveData->crc1 = fio_calc_file_checksum(saveData); + saveData->crc2 = ~saveData->crc1; - gCurrentSaveFile.crc1 = 0; - gCurrentSaveFile.crc2 = ~gCurrentSaveFile.crc1; - gCurrentSaveFile.crc1 = fio_calc_file_checksum(&gCurrentSaveFile); - gCurrentSaveFile.crc2 = ~gCurrentSaveFile.crc1; +#if VERSION_PAL + for (i = 0; i < 4; i++) { + fio_erase_flash(NextAvailablePhysicalSave); + fio_write_flash(NextAvailablePhysicalSave, (s8*)saveData, sizeof(SaveData)); + fio_read_flash(NextAvailablePhysicalSave, (s8*)&FetchSaveBuffer, sizeof(SaveData)); + if (!save_check_integrity()) { + break; + } + } +#else fio_erase_flash(NextAvailablePhysicalSave); - fio_write_flash(NextAvailablePhysicalSave, (s8*)&gCurrentSaveFile, sizeof(SaveData)); + fio_write_flash(NextAvailablePhysicalSave, (s8*)saveData, sizeof(SaveData)); +#endif } void fio_erase_game(s32 saveSlot) { @@ -214,6 +316,44 @@ void fio_erase_game(s32 saveSlot) { } } +#if VERSION_PAL +b32 func_PAL_8002B574(void) { + int i, j; + SaveData *saveData = &gCurrentSaveFile; + SaveData *temp = saveData; + + fio_fetch_saved_file_info(); + + for (i = 0; i < ARRAY_COUNT(LogicalSaveInfo); i++) { + s32 new_var = FALSE; // TODO this match doesn't satisfy me :( + if (LogicalSaveInfo[i].slot >= 0) { + for (j = 0; j < 4; j++) { + fio_read_flash(LogicalSaveInfo[i].slot, temp, sizeof(SaveData)); + if (fio_validate_file_checksum(temp)) { + break; + } + } + if (j != 4) { + goto SLOT_HAS_DATA; + } + } + gSaveSlotHasData[i] = new_var; + continue; + +SLOT_HAS_DATA: + do { + gSaveSlotMetadata[i] = gCurrentSaveFile.metadata; + gSaveSlotHasData[i] = TRUE; + if (gGameStatusPtr->saveCount < saveData->saveCount) { + gGameStatusPtr->saveCount = saveData->saveCount; + } + } while(0); + } + + return TRUE; +} +#endif + void fio_deserialize_state(void) { SaveData* saveData = &gCurrentSaveFile; s32 i, j; @@ -337,6 +477,21 @@ b32 fio_write_flash(s32 pageNum, s8* readBuffer, u32 numBytes) { return TRUE; } -void fio_erase_flash(s32 pageNum) { +s32 fio_erase_flash(s32 pageNum) { +#if VERSION_PAL + int i; + s32 success; + + for (i = 0; i < 4; i++) { + success = osFlashSectorErase(pageNum * sizeof(SaveGlobals)); + + if (!success) { + break; + } + } + + return success; +#else osFlashSectorErase(pageNum * sizeof(SaveGlobals)); +#endif } diff --git a/src/fio.h b/src/fio.h index 78319d94118..7cf1bcc2616 100644 --- a/src/fio.h +++ b/src/fio.h @@ -8,6 +8,9 @@ b32 fio_save_globals(void); b32 fio_load_game(s32 saveSlot); void fio_save_game(s32 saveSlot); void fio_erase_game(s32 saveSlot); +#if VERSION_PAL +b32 func_PAL_8002B574(void); +#endif extern SaveMetadata gSaveSlotMetadata[4]; extern u8 gSaveSlotHasData[4]; diff --git a/src/heaps.c b/src/heaps.c index d7359af0fc1..695ae2cbd2a 100644 --- a/src/heaps.c +++ b/src/heaps.c @@ -7,7 +7,9 @@ typedef TlbEntry TlbMappablePage[15]; BSS TlbMappablePage gEffectDataBuffer ALIGNED(0x1000); BSS u8 gEffectGlobals[0x1000] ALIGNED(0x1000); +#if !VERSION_PAL BSS u8 BattleEntityHeapBottom[0x3000] ALIGNED(0x1000); +#endif BSS u8 AuHeapBase[AUDIO_HEAP_SIZE] ALIGNED(0x1000); BSS u8 D_80200000[0x4000] ALIGNED(0x1000); BSS u8 D_80204000[0x3000] ALIGNED(0x1000); diff --git a/src/heaps4.c b/src/heaps4.c new file mode 100644 index 00000000000..40d2a9f4bf4 --- /dev/null +++ b/src/heaps4.c @@ -0,0 +1,5 @@ +#include "common.h" + +#if VERSION_PAL +BSS u8 BattleEntityHeapBottom[0x3000] ALIGNED(0x1000); +#endif diff --git a/src/is_debug.c b/src/is_debug.c index e23e9bc3c87..7c729690e3e 100644 --- a/src/is_debug.c +++ b/src/is_debug.c @@ -15,11 +15,13 @@ typedef struct { char* is_debug_print(char* arg0, const char* str, size_t count); +#if !VERSION_PAL void is_debug_init(void) { osEPiWriteIo(nuPiCartHandle, (u32) &gISVDbgPrnAdrs->put, 0); osEPiWriteIo(nuPiCartHandle, (u32) &gISVDbgPrnAdrs->get, 0); osEPiWriteIo(nuPiCartHandle, (u32) &gISVDbgPrnAdrs->magic, ASCII_TO_U32('I', 'S', '6', '4')); } +#endif void printf(const char* fmt, ...) { va_list args; diff --git a/src/item_table_pal.yaml b/src/item_table_pal.yaml new file mode 100644 index 00000000000..1debf0d9fcc --- /dev/null +++ b/src/item_table_pal.yaml @@ -0,0 +1,5459 @@ +- None: + category: NONE + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: Present + itemEntity: Placeholder + icon: key/Gift + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Boots: + category: GEAR + nameMsg: MSG_ItemName_Boots + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: GearBoots1 + itemEntity: GearBoots1 + icon: gear/boots_1 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_GEAR, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- SuperBoots: + category: GEAR + nameMsg: MSG_ItemName_SuperBoots + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: GearBoots2 + itemEntity: GearBoots2 + icon: gear/boots_2 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2 ] + typeFlags: [ ITEM_TYPE_FLAG_GEAR, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- UltraBoots: + category: GEAR + nameMsg: MSG_ItemName_UltraBoots + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: GearBoots3 + itemEntity: GearBoots3 + icon: gear/boots_3 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE ] + typeFlags: [ ITEM_TYPE_FLAG_GEAR, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Hammer: + category: GEAR + nameMsg: MSG_ItemName_Hammer + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: GearHammer1 + itemEntity: GearHammer1 + icon: gear/hammer_1 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_GEAR, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- SuperHammer: + category: GEAR + nameMsg: MSG_ItemName_SuperHammer + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: GearHammer2 + itemEntity: GearHammer2 + icon: gear/hammer_2 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE ] + typeFlags: [ ITEM_TYPE_FLAG_GEAR, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- UltraHammer: + category: GEAR + nameMsg: MSG_ItemName_UltraHammer + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: GearHammer3 + itemEntity: GearHammer3 + icon: gear/hammer_3 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2 ] + typeFlags: [ ITEM_TYPE_FLAG_GEAR, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LuckyStar: + category: QUEST + nameMsg: MSG_ItemName_LuckyStar + fullDescMsg: MSG_ItemFullDesc_LuckyStar + shortDescMsg: MSG_ItemShortDesc_LuckyStar + hudElement: LuckyStar + itemEntity: LuckyStar + icon: gear/lucky_star + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2 ] + typeFlags: [ ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Map: + category: QUEST + nameMsg: MSG_ItemName_Map + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: Present + itemEntity: Placeholder + icon: key/Gift + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2 ] + typeFlags: [ ITEM_TYPE_FLAG_GEAR, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- BigMap: + category: QUEST + nameMsg: MSG_ItemName_BigMap + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: Present + itemEntity: Placeholder + icon: key/Gift + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2 ] + typeFlags: [ ITEM_TYPE_FLAG_GEAR, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- FirstDegreeCard: + category: QUEST + nameMsg: MSG_ItemName_FirstDegreeCard + fullDescMsg: MSG_ItemFullDesc_FirstDegreeCard + shortDescMsg: MSG_ItemShortDesc_FirstDegreeCard + hudElement: DojoCard1 + itemEntity: DojoCard1 + icon: key/dojo_card_1 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2 ] + typeFlags: [ ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- SecondDegreeCard: + category: QUEST + nameMsg: MSG_ItemName_SecondDegreeCard + fullDescMsg: MSG_ItemFullDesc_SecondDegreeCard + shortDescMsg: MSG_ItemShortDesc_SecondDegreeCard + hudElement: DojoCard2 + itemEntity: DojoCard2 + icon: key/dojo_card_2 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2 ] + typeFlags: [ ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- ThirdDegreeCard: + category: QUEST + nameMsg: MSG_ItemName_ThirdDegreeCard + fullDescMsg: MSG_ItemFullDesc_ThirdDegreeCard + shortDescMsg: MSG_ItemShortDesc_ThirdDegreeCard + hudElement: DojoCard3 + itemEntity: DojoCard3 + icon: key/dojo_card_3 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2 ] + typeFlags: [ ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- FourthDegreeCard: + category: QUEST + nameMsg: MSG_ItemName_FourthDegreeCard + fullDescMsg: MSG_ItemFullDesc_FourthDegreeCard + shortDescMsg: MSG_ItemShortDesc_FourthDegreeCard + hudElement: DojoCard4 + itemEntity: DojoCard4 + icon: key/dojo_card_4 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2 ] + typeFlags: [ ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Diploma: + category: QUEST + nameMsg: MSG_ItemName_Diploma + fullDescMsg: MSG_ItemFullDesc_Diploma + shortDescMsg: MSG_ItemShortDesc_Diploma + hudElement: DojoCard5 + itemEntity: DojoCard5 + icon: key/dojo_card_5 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2 ] + typeFlags: [ ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- UltraStone: + category: QUEST + nameMsg: MSG_ItemName_UltraStone + fullDescMsg: MSG_ItemFullDesc_UltraStone + shortDescMsg: MSG_ItemShortDesc_UltraStone + hudElement: UltraStone + itemEntity: UltraStone + icon: key/ultra_stone + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2 ] + typeFlags: [ ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- KoopaFortressKey: + category: KEY + nameMsg: MSG_ItemName_KoopaFortressKey + fullDescMsg: MSG_ItemFullDesc_KoopaFortressKey + shortDescMsg: MSG_ItemShortDesc_KoopaFortressKey + hudElement: KoopaFortressKey + itemEntity: KoopaFortressKey + icon: key/key_koopa_fortress + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- RuinsKey: + category: KEY + nameMsg: MSG_ItemName_RuinsKey + fullDescMsg: MSG_ItemFullDesc_RuinsKey + shortDescMsg: MSG_ItemShortDesc_RuinsKey + hudElement: RuinsKey + itemEntity: RuinsKey + icon: key/key_ruins + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- PulseStone: + category: KEY + nameMsg: MSG_ItemName_PulseStone + fullDescMsg: MSG_ItemFullDesc_PulseStone + shortDescMsg: MSG_ItemShortDesc_PulseStone + hudElement: PulseStone + itemEntity: PulseStone + icon: key/pulse_stone + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- TubbaCastleKey: + category: KEY + nameMsg: MSG_ItemName_TubbaCastleKey + fullDescMsg: MSG_ItemFullDesc_TubbaCastleKey + shortDescMsg: MSG_ItemShortDesc_TubbaCastleKey + hudElement: TubbaCastleKey + itemEntity: TubbaCastleKey + icon: key/key_tubba_castle + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- CrystalPalaceKey: + category: KEY + nameMsg: MSG_ItemName_CrystalPalaceKey + fullDescMsg: MSG_ItemFullDesc_CrystalPalaceKey + shortDescMsg: MSG_ItemShortDesc_CrystalPalaceKey + hudElement: IcePalaceKey + itemEntity: IcePalaceKey + icon: key/key_ice_palace + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LunarStone: + category: KEY + nameMsg: MSG_ItemName_LunarStone + fullDescMsg: MSG_ItemFullDesc_LunarStone + shortDescMsg: MSG_ItemShortDesc_LunarStone + hudElement: RuinsStoneMoon + itemEntity: RuinsStoneMoon + icon: key/ruins_stone_moon + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- PyramidStone: + category: KEY + nameMsg: MSG_ItemName_PyramidStone + fullDescMsg: MSG_ItemFullDesc_PyramidStone + shortDescMsg: MSG_ItemShortDesc_PyramidStone + hudElement: RuinsStonePyramid + itemEntity: RuinsStonePyramid + icon: key/ruins_stone_pyramid + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- DiamondStone: + category: KEY + nameMsg: MSG_ItemName_DiamondStone + fullDescMsg: MSG_ItemFullDesc_DiamondStone + shortDescMsg: MSG_ItemShortDesc_DiamondStone + hudElement: RuinsStoneStar + itemEntity: RuinsStoneStar + icon: key/ruins_stone_star + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- GoldenJar: + category: KEY + nameMsg: MSG_ItemName_GoldenJar + fullDescMsg: MSG_ItemFullDesc_GoldenJar + shortDescMsg: MSG_ItemShortDesc_GoldenJar + hudElement: AncientVase + itemEntity: AncientVase + icon: key/vase + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- KooperShell: + category: KEY + nameMsg: MSG_ItemName_KooperShell + fullDescMsg: MSG_ItemFullDesc_KooperShell + shortDescMsg: MSG_ItemShortDesc_KooperShell + hudElement: KooperShell + itemEntity: KooperShell + icon: key/kooper_shell + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- BowserCastleKey: + category: KEY + nameMsg: MSG_ItemName_BowserCastleKey + fullDescMsg: MSG_ItemFullDesc_BowserCastleKey + shortDescMsg: MSG_ItemShortDesc_BowserCastleKey + hudElement: BowserCastleKey + itemEntity: BowserCastleKey + icon: key/key_bowser_castle + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- ForestPass: + category: KEY + nameMsg: MSG_ItemName_ForestPass + fullDescMsg: MSG_ItemFullDesc_ForestPass + shortDescMsg: MSG_ItemShortDesc_ForestPass + hudElement: ForestPass + itemEntity: ForestPass + icon: key/forest_pass + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- BooWeight: + category: KEY + nameMsg: MSG_ItemName_BooWeight + fullDescMsg: MSG_ItemFullDesc_BooWeight + shortDescMsg: MSG_ItemShortDesc_BooWeight + hudElement: BooWeight + itemEntity: BooWeight + icon: key/boo_weight + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- BooPortrait: + category: KEY + nameMsg: MSG_ItemName_BooPortrait + fullDescMsg: MSG_ItemFullDesc_BooPortrait + shortDescMsg: MSG_ItemShortDesc_BooPortrait + hudElement: BooPortrait + itemEntity: BoosPortrait + icon: key/boo_portrait + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- CrystalBerry: + category: KEY + nameMsg: MSG_ItemName_CrystalBerry + fullDescMsg: MSG_ItemFullDesc_CrystalBerry + shortDescMsg: MSG_ItemShortDesc_CrystalBerry + hudElement: CrystalBerry + itemEntity: CrystalBerry + icon: key/crystal_berry + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- MysticalKey: + category: KEY + nameMsg: MSG_ItemName_MysticalKey + fullDescMsg: MSG_ItemFullDesc_MysticalKey + shortDescMsg: MSG_ItemShortDesc_MysticalKey + hudElement: MysticKey + itemEntity: MysticKey + icon: key/mystic_key + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- StoreroomKey: + category: KEY + nameMsg: MSG_ItemName_StoreroomKey + fullDescMsg: MSG_ItemFullDesc_StoreroomKey + shortDescMsg: MSG_ItemShortDesc_StoreroomKey + hudElement: IronKey + itemEntity: StoreroomKey + icon: key/key_storeroom + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- ToyTrain: + category: KEY + nameMsg: MSG_ItemName_ToyTrain + fullDescMsg: MSG_ItemFullDesc_ToyTrain + shortDescMsg: MSG_ItemShortDesc_ToyTrain + hudElement: ToyboxTrain + itemEntity: ToyTrain + icon: key/toybox_train + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- BooRecord: + category: KEY + nameMsg: MSG_ItemName_BooRecord + fullDescMsg: MSG_ItemFullDesc_BooRecord + shortDescMsg: MSG_ItemShortDesc_BooRecord + hudElement: BooRecord + itemEntity: BooRecord + icon: key/boo_record + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- FryingPan: + category: KEY + nameMsg: MSG_ItemName_FryingPan + fullDescMsg: MSG_ItemFullDesc_FryingPan + shortDescMsg: MSG_ItemShortDesc_FryingPan + hudElement: FryingPan + itemEntity: FryingPan + icon: key/frying_pan + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Dictionary: + category: KEY + nameMsg: MSG_ItemName_Dictionary + fullDescMsg: MSG_ItemFullDesc_Dictionary + shortDescMsg: MSG_ItemShortDesc_Dictionary + hudElement: Dictionary + itemEntity: Dictionary + icon: key/dictionary + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- MysteryNote: + category: KEY + nameMsg: MSG_ItemName_MysteryNote + fullDescMsg: MSG_ItemFullDesc_MysteryNote + shortDescMsg: MSG_ItemShortDesc_MysteryNote + hudElement: MysteryNote + itemEntity: MysteryNote + icon: key/mystery_note + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- SuspiciousNote: + category: KEY + nameMsg: MSG_ItemName_SuspiciousNote + fullDescMsg: MSG_ItemFullDesc_SuspiciousNote + shortDescMsg: MSG_ItemShortDesc_SuspiciousNote + hudElement: SuspiciousNote + itemEntity: SuspiciousNote + icon: key/suspicious_note + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- CrystalBall: + category: KEY + nameMsg: MSG_ItemName_CrystalBall + fullDescMsg: MSG_ItemFullDesc_CrystalBall + shortDescMsg: MSG_ItemShortDesc_CrystalBall + hudElement: CrystalBall + itemEntity: CrystalBall + icon: key/crystal_ball + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Screwdriver: + category: KEY + nameMsg: MSG_ItemName_Screwdriver + fullDescMsg: MSG_ItemFullDesc_Screwdriver + shortDescMsg: MSG_ItemShortDesc_Screwdriver + hudElement: Screwdriver + itemEntity: Screwdriver + icon: key/screwdriver + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Cookbook: + category: KEY + nameMsg: MSG_ItemName_Cookbook + fullDescMsg: MSG_ItemFullDesc_Cookbook + shortDescMsg: MSG_ItemShortDesc_Cookbook + hudElement: CookBook + itemEntity: Cookbook + icon: key/book_cook + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- JadeRaven: + category: KEY + nameMsg: MSG_ItemName_JadeRaven + fullDescMsg: MSG_ItemFullDesc_JadeRaven + shortDescMsg: MSG_ItemShortDesc_JadeRaven + hudElement: JadeRaven + itemEntity: JadeRaven + icon: key/jade_raven + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- MagicalSeed1: + category: KEY + nameMsg: MSG_ItemName_MagicalSeed1 + fullDescMsg: MSG_ItemFullDesc_MagicalSeed1 + shortDescMsg: MSG_ItemShortDesc_MagicalSeed1 + hudElement: MagicalSeed1 + itemEntity: MagicalSeed1 + icon: key/seed_1 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- MagicalSeed2: + category: KEY + nameMsg: MSG_ItemName_MagicalSeed2 + fullDescMsg: MSG_ItemFullDesc_MagicalSeed2 + shortDescMsg: MSG_ItemShortDesc_MagicalSeed2 + hudElement: MagicalSeed2 + itemEntity: MagicalSeed2 + icon: key/seed_2 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- MagicalSeed3: + category: KEY + nameMsg: MSG_ItemName_MagicalSeed3 + fullDescMsg: MSG_ItemFullDesc_MagicalSeed3 + shortDescMsg: MSG_ItemShortDesc_MagicalSeed3 + hudElement: MagicalSeed3 + itemEntity: MagicalSeed3 + icon: key/seed_3 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- MagicalSeed4: + category: KEY + nameMsg: MSG_ItemName_MagicalSeed4 + fullDescMsg: MSG_ItemFullDesc_MagicalSeed4 + shortDescMsg: MSG_ItemShortDesc_MagicalSeed4 + hudElement: MagicalSeed4 + itemEntity: MagicalSeed4 + icon: key/seed_4 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- ToadDoll: + category: KEY + nameMsg: MSG_ItemName_ToadDoll + fullDescMsg: MSG_ItemFullDesc_ToadDoll + shortDescMsg: MSG_ItemShortDesc_ToadDoll + hudElement: ToadDoll + itemEntity: ToadDoll + icon: key/toad_doll + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Calculator: + category: KEY + nameMsg: MSG_ItemName_Calculator + fullDescMsg: MSG_ItemFullDesc_Calculator + shortDescMsg: MSG_ItemShortDesc_Calculator + hudElement: Calculator + itemEntity: Calculator + icon: key/calculator + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- SnowmanBucket: + category: KEY + nameMsg: MSG_ItemName_SnowmanBucket + fullDescMsg: MSG_ItemFullDesc_SnowmanBucket + shortDescMsg: MSG_ItemShortDesc_SnowmanBucket + hudElement: SnowmanBucket + itemEntity: SnowmanBucket + icon: key/snowman_bucket + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- SnowmanScarf: + category: KEY + nameMsg: MSG_ItemName_SnowmanScarf + fullDescMsg: MSG_ItemFullDesc_SnowmanScarf + shortDescMsg: MSG_ItemShortDesc_SnowmanScarf + hudElement: SnowmanScarf + itemEntity: SnowmanScarf + icon: key/snowman_scarf + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- RedKey: + category: KEY + nameMsg: MSG_ItemName_RedKey + fullDescMsg: MSG_ItemFullDesc_RedKey + shortDescMsg: MSG_ItemShortDesc_RedKey + hudElement: RedKey + itemEntity: RedKey + icon: key/key_red + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- BlueKey: + category: KEY + nameMsg: MSG_ItemName_BlueKey + fullDescMsg: MSG_ItemFullDesc_BlueKey + shortDescMsg: MSG_ItemShortDesc_BlueKey + hudElement: BlueKey + itemEntity: BlueKey + icon: key/key_blue + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- UnusedLetter_1: + category: KEY + nameMsg: MSG_ItemName_UnusedLetter + fullDescMsg: MSG_ItemFullDesc_UnusedLetter + shortDescMsg: MSG_ItemShortDesc_UnusedLetter + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterToMerlon: + category: KEY + nameMsg: MSG_ItemName_Letter01 + fullDescMsg: MSG_ItemFullDesc_Letter01 + shortDescMsg: MSG_ItemShortDesc_Letter01 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterToGoompa: + category: KEY + nameMsg: MSG_ItemName_Letter02 + fullDescMsg: MSG_ItemFullDesc_Letter02 + shortDescMsg: MSG_ItemShortDesc_Letter02 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterToMortT: + category: KEY + nameMsg: MSG_ItemName_Letter03 + fullDescMsg: MSG_ItemFullDesc_Letter03 + shortDescMsg: MSG_ItemShortDesc_Letter03 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterToRussT: + category: KEY + nameMsg: MSG_ItemName_Letter04 + fullDescMsg: MSG_ItemFullDesc_Letter04 + shortDescMsg: MSG_ItemShortDesc_Letter04 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterToMayorPenguin: + category: KEY + nameMsg: MSG_ItemName_Letter05 + fullDescMsg: MSG_ItemFullDesc_Letter05 + shortDescMsg: MSG_ItemShortDesc_Letter05 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterToMerlow: + category: KEY + nameMsg: MSG_ItemName_Letter06 + fullDescMsg: MSG_ItemFullDesc_Letter06 + shortDescMsg: MSG_ItemShortDesc_Letter06 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterToFiceT: + category: KEY + nameMsg: MSG_ItemName_Letter07 + fullDescMsg: MSG_ItemFullDesc_Letter07 + shortDescMsg: MSG_ItemShortDesc_Letter07 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterToNomadimouse: + category: KEY + nameMsg: MSG_ItemName_Letter08 + fullDescMsg: MSG_ItemFullDesc_Letter08 + shortDescMsg: MSG_ItemShortDesc_Letter08 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterToMinhT: + category: KEY + nameMsg: MSG_ItemName_Letter09 + fullDescMsg: MSG_ItemFullDesc_Letter09 + shortDescMsg: MSG_ItemShortDesc_Letter09 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- UnusedLetter_2: + category: KEY + nameMsg: MSG_ItemName_UnusedLetter02 + fullDescMsg: MSG_ItemFullDesc_UnusedLetter02 + shortDescMsg: MSG_ItemShortDesc_UnusedLetter02 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterChainGoompapa_1: + category: KEY + nameMsg: MSG_ItemName_Letter10 + fullDescMsg: MSG_ItemFullDesc_Letter10 + shortDescMsg: MSG_ItemShortDesc_Letter10 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterToIgor: + category: KEY + nameMsg: MSG_ItemName_Letter11 + fullDescMsg: MSG_ItemFullDesc_Letter11 + shortDescMsg: MSG_ItemShortDesc_Letter11 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- UnusedLetter_3: + category: KEY + nameMsg: MSG_ItemName_UnusedLetter03 + fullDescMsg: MSG_ItemFullDesc_UnusedLetter03 + shortDescMsg: MSG_ItemShortDesc_UnusedLetter03 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- UnusedLetter_4: + category: KEY + nameMsg: MSG_ItemName_UnusedLetter04 + fullDescMsg: MSG_ItemFullDesc_UnusedLetter04 + shortDescMsg: MSG_ItemShortDesc_UnusedLetter04 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- UnusedLetter_5: + category: KEY + nameMsg: MSG_ItemName_UnusedLetter05 + fullDescMsg: MSG_ItemFullDesc_UnusedLetter05 + shortDescMsg: MSG_ItemShortDesc_UnusedLetter05 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterChainFranky: + category: KEY + nameMsg: MSG_ItemName_Letter12 + fullDescMsg: MSG_ItemFullDesc_Letter12 + shortDescMsg: MSG_ItemShortDesc_Letter12 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterChainMussT: + category: KEY + nameMsg: MSG_ItemName_Letter13 + fullDescMsg: MSG_ItemFullDesc_Letter13 + shortDescMsg: MSG_ItemShortDesc_Letter13 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterChainKoover_1: + category: KEY + nameMsg: MSG_ItemName_Letter14 + fullDescMsg: MSG_ItemFullDesc_Letter14 + shortDescMsg: MSG_ItemShortDesc_Letter14 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterChainFishmael: + category: KEY + nameMsg: MSG_ItemName_Letter15 + fullDescMsg: MSG_ItemFullDesc_Letter15 + shortDescMsg: MSG_ItemShortDesc_Letter15 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterChainKoover_2: + category: KEY + nameMsg: MSG_ItemName_Letter16 + fullDescMsg: MSG_ItemFullDesc_Letter16 + shortDescMsg: MSG_ItemShortDesc_Letter16 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterChainMrE: + category: KEY + nameMsg: MSG_ItemName_Letter17 + fullDescMsg: MSG_ItemFullDesc_Letter17 + shortDescMsg: MSG_ItemShortDesc_Letter17 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterChainMissT: + category: KEY + nameMsg: MSG_ItemName_Letter18 + fullDescMsg: MSG_ItemFullDesc_Letter18 + shortDescMsg: MSG_ItemShortDesc_Letter18 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterChainLittleMouser: + category: KEY + nameMsg: MSG_ItemName_Letter19 + fullDescMsg: MSG_ItemFullDesc_Letter19 + shortDescMsg: MSG_ItemShortDesc_Letter19 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- UnusedLetter_6: + category: KEY + nameMsg: MSG_ItemName_UnusedLetter06 + fullDescMsg: MSG_ItemFullDesc_UnusedLetter06 + shortDescMsg: MSG_ItemShortDesc_UnusedLetter06 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterChainDaneT_1: + category: KEY + nameMsg: MSG_ItemName_Letter20 + fullDescMsg: MSG_ItemFullDesc_Letter20 + shortDescMsg: MSG_ItemShortDesc_Letter20 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterChainYoshiKid: + category: KEY + nameMsg: MSG_ItemName_Letter21 + fullDescMsg: MSG_ItemFullDesc_Letter21 + shortDescMsg: MSG_ItemShortDesc_Letter21 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterChainDaneT_2: + category: KEY + nameMsg: MSG_ItemName_Letter22 + fullDescMsg: MSG_ItemFullDesc_Letter22 + shortDescMsg: MSG_ItemShortDesc_Letter22 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterChainFrostT: + category: KEY + nameMsg: MSG_ItemName_Letter23 + fullDescMsg: MSG_ItemFullDesc_Letter23 + shortDescMsg: MSG_ItemShortDesc_Letter23 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterChainGoompapa_2: + category: KEY + nameMsg: MSG_ItemName_Letter24 + fullDescMsg: MSG_ItemFullDesc_Letter24 + shortDescMsg: MSG_ItemShortDesc_Letter24 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Artifact: + category: KEY + nameMsg: MSG_ItemName_Artifact + fullDescMsg: MSG_ItemFullDesc_Artifact + shortDescMsg: MSG_ItemShortDesc_Artifact + hudElement: Artifact + itemEntity: Artifact + icon: key/artifact + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- LetterToKolorado: + category: KEY + nameMsg: MSG_ItemName_Letter25 + fullDescMsg: MSG_ItemFullDesc_Letter25 + shortDescMsg: MSG_ItemShortDesc_Letter25 + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- UnusedLetter_7: + category: KEY + nameMsg: MSG_ItemName_UnusedLetter + fullDescMsg: MSG_ItemFullDesc_UnusedLetter + shortDescMsg: MSG_ItemShortDesc_UnusedLetter + hudElement: Letter + itemEntity: Letter + icon: key/Letter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Dolly: + category: KEY + nameMsg: MSG_ItemName_Dolly + fullDescMsg: MSG_ItemFullDesc_Dolly + shortDescMsg: MSG_ItemShortDesc_Dolly + hudElement: Dolly + itemEntity: Dolly + icon: key/dolly + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- WaterStone: + category: KEY + nameMsg: MSG_ItemName_WaterStone + fullDescMsg: MSG_ItemFullDesc_WaterStone + shortDescMsg: MSG_ItemShortDesc_WaterStone + hudElement: WaterStone + itemEntity: WaterStone + icon: key/water_stone + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- MagicalBean: + category: KEY + nameMsg: MSG_ItemName_MagicalBean + fullDescMsg: MSG_ItemFullDesc_MagicalBean + shortDescMsg: MSG_ItemShortDesc_MagicalBean + hudElement: MagicBean + itemEntity: MagicalBean + icon: key/magic_bean + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- FertileSoil: + category: KEY + nameMsg: MSG_ItemName_FertileSoil + fullDescMsg: MSG_ItemFullDesc_FertileSoil + shortDescMsg: MSG_ItemShortDesc_FertileSoil + hudElement: FertileSoil + itemEntity: FertileSoil + icon: key/fertile_soil + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- MiracleWater: + category: KEY + nameMsg: MSG_ItemName_MiracleWater + fullDescMsg: MSG_ItemFullDesc_MiracleWater + shortDescMsg: MSG_ItemShortDesc_MiracleWater + hudElement: MiracleWater + itemEntity: MiracleWater + icon: key/miracle_water + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- VolcanoVase: + category: KEY + nameMsg: MSG_ItemName_VolcanoVase + fullDescMsg: MSG_ItemFullDesc_VolcanoVase + shortDescMsg: MSG_ItemShortDesc_VolcanoVase + hudElement: AncientVase + itemEntity: AncientVase + icon: key/vase + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- KootTheTape: + category: KEY + nameMsg: MSG_ItemName_KootTheTape + fullDescMsg: MSG_ItemFullDesc_KootTheTape + shortDescMsg: MSG_ItemShortDesc_KootTheTape + hudElement: KootTheTape + itemEntity: KootTheTape + icon: key/koot_the_tape + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- BakingSugar: + category: KEY + nameMsg: MSG_ItemName_BakingSugar + fullDescMsg: MSG_ItemFullDesc_BakingSugar + shortDescMsg: MSG_ItemShortDesc_BakingSugar + hudElement: BakingSugar + itemEntity: BakingSugar + icon: peach/BakingSugar + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- BakingSalt: + category: KEY + nameMsg: MSG_ItemName_BakingSalt + fullDescMsg: MSG_ItemFullDesc_BakingSalt + shortDescMsg: MSG_ItemShortDesc_BakingSalt + hudElement: BakingSalt + itemEntity: BakingSalt + icon: peach/BakingSalt + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- BakingEgg: + category: KEY + nameMsg: MSG_ItemName_BakingEgg + fullDescMsg: MSG_ItemFullDesc_BakingEgg + shortDescMsg: MSG_ItemShortDesc_BakingEgg + hudElement: BakingEgg + itemEntity: BakingEgg + icon: peach/BakingEgg + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- BakingCream: + category: KEY + nameMsg: MSG_ItemName_BakingCream + fullDescMsg: MSG_ItemFullDesc_BakingCream + shortDescMsg: MSG_ItemShortDesc_BakingCream + hudElement: BakingCream + itemEntity: BakingCream + icon: peach/BakingCream + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- BakingStrawberry: + category: KEY + nameMsg: MSG_ItemName_BakingStrawberry + fullDescMsg: MSG_ItemFullDesc_BakingStrawberry + shortDescMsg: MSG_ItemShortDesc_BakingStrawberry + hudElement: BakingStrawberry + itemEntity: BakingStrawberry + icon: peach/BakingStrawberry + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- BakingButter: + category: KEY + nameMsg: MSG_ItemName_BakingButter + fullDescMsg: MSG_ItemFullDesc_BakingButter + shortDescMsg: MSG_ItemShortDesc_BakingButter + hudElement: BakingButter + itemEntity: BakingButter + icon: peach/BakingButter + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- BakingCleanser: + category: KEY + nameMsg: MSG_ItemName_BakingCleanser + fullDescMsg: MSG_ItemFullDesc_BakingCleanser + shortDescMsg: MSG_ItemShortDesc_BakingCleanser + hudElement: BakingCleanser + itemEntity: BakingCleanser + icon: peach/BakingCleanser + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- BakingWater: + category: KEY + nameMsg: MSG_ItemName_BakingWater + fullDescMsg: MSG_ItemFullDesc_BakingWater + shortDescMsg: MSG_ItemShortDesc_BakingWater + hudElement: BakingWater + itemEntity: BakingWater + icon: peach/BakingWater + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- BakingFlour: + category: KEY + nameMsg: MSG_ItemName_BakingFlour + fullDescMsg: MSG_ItemFullDesc_BakingFlour + shortDescMsg: MSG_ItemShortDesc_BakingFlour + hudElement: BakingFlour + itemEntity: BakingFlour + icon: peach/BakingFlour + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- BakingMilk: + category: KEY + nameMsg: MSG_ItemName_BakingMilk + fullDescMsg: MSG_ItemFullDesc_BakingMilk + shortDescMsg: MSG_ItemShortDesc_BakingMilk + hudElement: BakingMilk + itemEntity: BakingMilk + icon: peach/BakingMilk + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Lyrics: + category: KEY + nameMsg: MSG_ItemName_Lyrics + fullDescMsg: MSG_ItemFullDesc_Lyrics + shortDescMsg: MSG_ItemShortDesc_Lyrics + hudElement: Lyrics + itemEntity: Lyrics + icon: key/book_lyrics + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Melody: + category: KEY + nameMsg: MSG_ItemName_Melody + fullDescMsg: MSG_ItemFullDesc_Melody + shortDescMsg: MSG_ItemShortDesc_Melody + hudElement: Melody + itemEntity: Melody + icon: key/book_melody + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Mailbag: + category: KEY + nameMsg: MSG_ItemName_Mailbag + fullDescMsg: MSG_ItemFullDesc_Mailbag + shortDescMsg: MSG_ItemShortDesc_Mailbag + hudElement: Mailbag + itemEntity: Mailbag + icon: key/mailbag + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- PeachKey: + category: KEY + nameMsg: MSG_ItemName_PeachKey + fullDescMsg: MSG_ItemFullDesc_PeachKey + shortDescMsg: MSG_ItemShortDesc_PeachKey + hudElement: PeachKey + itemEntity: PeachKey + icon: key/key_peach + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- OddKey: + category: KEY + nameMsg: MSG_ItemName_OddKey + fullDescMsg: MSG_ItemFullDesc_OddKey + shortDescMsg: MSG_ItemShortDesc_OddKey + hudElement: IronKey + itemEntity: StoreroomKey + icon: key/key_storeroom + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- StarStone: + category: KEY + nameMsg: MSG_ItemName_StarStone + fullDescMsg: MSG_ItemFullDesc_StarStone + shortDescMsg: MSG_ItemShortDesc_StarStone + hudElement: StarStone + itemEntity: StarStone + icon: key/star_stone + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- SneakyParasol: + category: KEY + nameMsg: MSG_ItemName_SneakyParasol + fullDescMsg: MSG_ItemFullDesc_SneakyParasol + shortDescMsg: MSG_ItemShortDesc_SneakyParasol + hudElement: SneakyParasol + itemEntity: SneakyParasol + icon: peach/sneaky_parasol + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- KootKoopaLegends: + category: KEY + nameMsg: MSG_ItemName_KootKoopaLegends + fullDescMsg: MSG_ItemFullDesc_KootKoopaLegends + shortDescMsg: MSG_ItemShortDesc_KootKoopaLegends + hudElement: KootBook + itemEntity: KootBook + icon: key/koot_book + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- KootLuigiAutograph: + category: KEY + nameMsg: MSG_ItemName_KootLuigiAutograph + fullDescMsg: MSG_ItemFullDesc_KootLuigiAutograph + shortDescMsg: MSG_ItemShortDesc_KootLuigiAutograph + hudElement: KootLuigiAutograph + itemEntity: KootAutographMerluvlee + icon: key/koot_autograph_luigi + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- KootEmptyWallet: + category: KEY + nameMsg: MSG_ItemName_KootEmptyWallet + fullDescMsg: MSG_ItemFullDesc_KootEmptyWallet + shortDescMsg: MSG_ItemShortDesc_KootEmptyWallet + hudElement: KootEmptyWallet + itemEntity: KootEmptyWallet + icon: key/koot_empty_wallet + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- KootMerluvleeAutograph: + category: KEY + nameMsg: MSG_ItemName_KootMerluvleeAutograph + fullDescMsg: MSG_ItemFullDesc_KootMerluvleeAutograph + shortDescMsg: MSG_ItemShortDesc_KootMerluvleeAutograph + hudElement: KootMerluvleeAutograph + itemEntity: KootAutographLuigi + icon: key/koot_autograph_merluvlee + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- KootShell: + category: KEY + nameMsg: MSG_ItemName_KootShell + fullDescMsg: MSG_ItemFullDesc_KootShell + shortDescMsg: MSG_ItemShortDesc_KootShell + hudElement: KootShell + itemEntity: KootKoopaShell + icon: key/koot_shell + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- KootOldPhoto: + category: KEY + nameMsg: MSG_ItemName_KootOldPhoto + fullDescMsg: MSG_ItemFullDesc_KootOldPhoto + shortDescMsg: MSG_ItemShortDesc_KootOldPhoto + hudElement: KootPhoto + itemEntity: KootOldPhoto + icon: key/koot_photo + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- KootGlasses: + category: KEY + nameMsg: MSG_ItemName_KootGlasses + fullDescMsg: MSG_ItemFullDesc_KootGlasses + shortDescMsg: MSG_ItemShortDesc_KootGlasses + hudElement: KootGlasses + itemEntity: KootGlasses + icon: key/koot_glasses + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- KootAltPhoto: + category: KEY + nameMsg: MSG_ItemName_KootAltPhoto + fullDescMsg: MSG_ItemFullDesc_KootAltPhoto + shortDescMsg: MSG_ItemShortDesc_KootAltPhoto + hudElement: KootPhoto + itemEntity: KootOldPhoto + icon: key/koot_photo + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- KootPackage: + category: KEY + nameMsg: MSG_ItemName_KootPackage + fullDescMsg: MSG_ItemFullDesc_KootPackage + shortDescMsg: MSG_ItemShortDesc_KootPackage + hudElement: KootPackage + itemEntity: KootPackage + icon: key/koot_package + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- KootRedJar: + category: KEY + nameMsg: MSG_ItemName_KootRedJar + fullDescMsg: MSG_ItemFullDesc_KootRedJar + shortDescMsg: MSG_ItemShortDesc_KootRedJar + hudElement: KootRedJar + itemEntity: KootRedJar + icon: key/koot_red_jar + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- UnusedPeachKey: + category: KEY + nameMsg: MSG_ItemName_PeachKey + fullDescMsg: MSG_ItemFullDesc_PeachKey + shortDescMsg: MSG_ItemShortDesc_PeachKey + hudElement: PeachKey + itemEntity: PeachKey + icon: key/key_peach + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- WarehouseKey: + category: KEY + nameMsg: MSG_ItemName_WarehouseKey + fullDescMsg: MSG_ItemFullDesc_WarehouseKey + shortDescMsg: MSG_ItemShortDesc_WarehouseKey + hudElement: IronKey + itemEntity: StoreroomKey + icon: key/key_storeroom + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- PrisonKey: + category: KEY + nameMsg: MSG_ItemName_PrisonKey + fullDescMsg: MSG_ItemFullDesc_PrisonKey + shortDescMsg: MSG_ItemShortDesc_PrisonKey + hudElement: IronKey + itemEntity: StoreroomKey + icon: key/key_storeroom + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- SilverCredit: + category: KEY + nameMsg: MSG_ItemName_SilverCredit + fullDescMsg: MSG_ItemFullDesc_SilverCredit + shortDescMsg: MSG_ItemShortDesc_SilverCredit + hudElement: SilverCard + itemEntity: SilverCard + icon: key/card_silver + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- GoldCredit: + category: KEY + nameMsg: MSG_ItemName_GoldCredit + fullDescMsg: MSG_ItemFullDesc_GoldCredit + shortDescMsg: MSG_ItemShortDesc_GoldCredit + hudElement: GoldCard + itemEntity: GoldCard + icon: key/card_gold + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- UnusedPrisonKey1: + category: KEY + nameMsg: MSG_ItemName_PrisonKey + fullDescMsg: MSG_ItemFullDesc_PrisonKey + shortDescMsg: MSG_ItemShortDesc_PrisonKey + hudElement: PeachKey + itemEntity: Placeholder + icon: key/Gift + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- UnusedPrisonKey2: + category: KEY + nameMsg: MSG_ItemName_PrisonKey + fullDescMsg: MSG_ItemFullDesc_PrisonKey + shortDescMsg: MSG_ItemShortDesc_PrisonKey + hudElement: PeachKey + itemEntity: Placeholder + icon: key/Gift + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- UnusedPrisonKey3: + category: KEY + nameMsg: MSG_ItemName_PrisonKey + fullDescMsg: MSG_ItemFullDesc_PrisonKey + shortDescMsg: MSG_ItemShortDesc_PrisonKey + hudElement: PeachKey + itemEntity: Placeholder + icon: key/Gift + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_KEY, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- FireFlower: + category: CONSUMABLE + nameMsg: MSG_ItemName_FireFlower + fullDescMsg: MSG_ItemFullDesc_FireFlower + shortDescMsg: MSG_ItemShortDesc_FireFlower + hudElement: FireFlower + itemEntity: FireFlower + icon: battle/FireFlower + sellValue: 4 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2, TARGET_FLAG_PRIMARY_ONLY ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 3 + potencyB: 0 +- SnowmanDoll: + category: CONSUMABLE + nameMsg: MSG_ItemName_SnowmanDoll + fullDescMsg: MSG_ItemFullDesc_SnowmanDoll + shortDescMsg: MSG_ItemShortDesc_SnowmanDoll + hudElement: SnowmanDoll + itemEntity: SnowmanDoll + icon: battle/SnowmanDoll + sellValue: 6 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2, TARGET_FLAG_PRIMARY_ONLY ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 4 + potencyB: 0 +- ThunderRage: + category: CONSUMABLE + nameMsg: MSG_ItemName_ThunderRage + fullDescMsg: MSG_ItemFullDesc_ThunderRage + shortDescMsg: MSG_ItemShortDesc_ThunderRage + hudElement: ThunderRage + itemEntity: ThunderRage + icon: battle/ThunderRage + sellValue: 8 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2, TARGET_FLAG_PRIMARY_ONLY ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 0 +- ShootingStar: + category: CONSUMABLE + nameMsg: MSG_ItemName_ShootingStar + fullDescMsg: MSG_ItemFullDesc_ShootingStar + shortDescMsg: MSG_ItemShortDesc_ShootingStar + hudElement: ShootingStar + itemEntity: ShootingStar + icon: battle/ShootingStar + sellValue: 15 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2, TARGET_FLAG_PRIMARY_ONLY ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 6 + potencyB: 0 +- ThunderBolt: + category: CONSUMABLE + nameMsg: MSG_ItemName_ThunderBolt + fullDescMsg: MSG_ItemFullDesc_ThunderBolt + shortDescMsg: MSG_ItemShortDesc_ThunderBolt + hudElement: ThunderBolt + itemEntity: ThunderBolt + icon: battle/ThunderBolt + sellValue: 4 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_2, TARGET_FLAG_PRIMARY_ONLY ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 0 +- Pebble: + category: CONSUMABLE + nameMsg: MSG_ItemName_Pebble + fullDescMsg: MSG_ItemFullDesc_Pebble + shortDescMsg: MSG_ItemShortDesc_Pebble + hudElement: Pebble + itemEntity: Pebble + icon: battle/Pebble + sellValue: 1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_2, TARGET_FLAG_PRIMARY_ONLY ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 1 + potencyB: 0 +- DustyHammer: + category: CONSUMABLE + nameMsg: MSG_ItemName_DustyHammer + fullDescMsg: MSG_ItemFullDesc_DustyHammer + shortDescMsg: MSG_ItemShortDesc_DustyHammer + hudElement: DustyHammer + itemEntity: DustyHammer + icon: battle/DustyHammer + sellValue: 1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_2, TARGET_FLAG_PRIMARY_ONLY ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 1 + potencyB: 0 +- InsecticideHerb: + category: CONSUMABLE + nameMsg: MSG_ItemName_InsecticideHerb + fullDescMsg: MSG_ItemFullDesc_InsecticideHerb + shortDescMsg: MSG_ItemShortDesc_InsecticideHerb + hudElement: InsecticideHerb + itemEntity: InsecticideHerb + icon: battle/InsecticideHerb + sellValue: 1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_2, TARGET_FLAG_PRIMARY_ONLY ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- StoneCap: + category: CONSUMABLE + nameMsg: MSG_ItemName_StoneCap + fullDescMsg: MSG_ItemFullDesc_StoneCap + shortDescMsg: MSG_ItemShortDesc_StoneCap + hudElement: StoneCap + itemEntity: StoneCap + icon: battle/StoneCap + sellValue: 15 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 3 + potencyB: 0 +- TastyTonic: + category: CONSUMABLE + nameMsg: MSG_ItemName_TastyTonic + fullDescMsg: MSG_ItemFullDesc_TastyTonic + shortDescMsg: MSG_ItemShortDesc_TastyTonic + hudElement: TastyTonic + itemEntity: TastyTonic + icon: food/TastyTonic + sellValue: 1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_USE_DRINK_ANIMATION, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Mushroom: + category: CONSUMABLE + nameMsg: MSG_ItemName_Mushroom + fullDescMsg: MSG_ItemFullDesc_Mushroom + shortDescMsg: MSG_ItemShortDesc_Mushroom + hudElement: Mushroom + itemEntity: Mushroom + icon: food/Mushroom + sellValue: 2 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 0 +- VoltShroom: + category: CONSUMABLE + nameMsg: MSG_ItemName_VoltShroom + fullDescMsg: MSG_ItemFullDesc_VoltShroom + shortDescMsg: MSG_ItemShortDesc_VoltShroom + hudElement: VoltShroom + itemEntity: VoltShroom + icon: battle/VoltShroom + sellValue: 7 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 4 + potencyB: 0 +- SuperShroom: + category: CONSUMABLE + nameMsg: MSG_ItemName_SuperShroom + fullDescMsg: MSG_ItemFullDesc_SuperShroom + shortDescMsg: MSG_ItemShortDesc_SuperShroom + hudElement: SuperShroom + itemEntity: SuperShroom + icon: food/SuperShroom + sellValue: 7 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 10 + potencyB: 0 +- DriedShroom: + category: CONSUMABLE + nameMsg: MSG_ItemName_DriedShroom + fullDescMsg: MSG_ItemFullDesc_DriedShroom + shortDescMsg: MSG_ItemShortDesc_DriedShroom + hudElement: DriedShroom + itemEntity: DriedShroom + icon: food/DriedShroom + sellValue: 1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 1 + potencyB: 0 +- UltraShroom: + category: CONSUMABLE + nameMsg: MSG_ItemName_UltraShroom + fullDescMsg: MSG_ItemFullDesc_UltraShroom + shortDescMsg: MSG_ItemShortDesc_UltraShroom + hudElement: UltraShroom + itemEntity: UltraShroom + icon: food/UltraShroom + sellValue: 50 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 50 + potencyB: 0 +- SleepySheep: + category: CONSUMABLE + nameMsg: MSG_ItemName_SleepySheep + fullDescMsg: MSG_ItemFullDesc_SleepySheep + shortDescMsg: MSG_ItemShortDesc_SleepySheep + hudElement: SleepySheep + itemEntity: SleepySheep + icon: battle/SleepySheep + sellValue: 4 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2, TARGET_FLAG_PRIMARY_ONLY ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 3 + potencyB: 0 +- POWBlock: + category: CONSUMABLE + nameMsg: MSG_ItemName_POWBlock + fullDescMsg: MSG_ItemFullDesc_POWBlock + shortDescMsg: MSG_ItemShortDesc_POWBlock + hudElement: POWBlock + itemEntity: POWBlock + icon: battle/POWBlock + sellValue: 3 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2, TARGET_FLAG_PRIMARY_ONLY ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 2 + potencyB: 0 +- HustleDrink: + category: CONSUMABLE + nameMsg: MSG_ItemName_HustleDrink + fullDescMsg: MSG_ItemFullDesc_HustleDrink + shortDescMsg: MSG_ItemShortDesc_HustleDrink + hudElement: HustleDrink + itemEntity: HustleDrink + icon: battle/HustleDrink + sellValue: 10 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_USE_DRINK_ANIMATION, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 2 + potencyB: 0 +- StopWatch: + category: CONSUMABLE + nameMsg: MSG_ItemName_StopWatch + fullDescMsg: MSG_ItemFullDesc_StopWatch + shortDescMsg: MSG_ItemShortDesc_StopWatch + hudElement: StopWatch + itemEntity: StopWatch + icon: battle/StopWatch + sellValue: 10 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2, TARGET_FLAG_PRIMARY_ONLY ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 4 + potencyB: 0 +- WhackasBump: + category: CONSUMABLE + nameMsg: MSG_ItemName_WhackasBump + fullDescMsg: MSG_ItemFullDesc_WhackasBump + shortDescMsg: MSG_ItemShortDesc_WhackasBump + hudElement: WhackasBump + itemEntity: WhackasBump + icon: food/WhackasBump + sellValue: 30 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 25 + potencyB: 25 +- Apple: + category: CONSUMABLE + nameMsg: MSG_ItemName_Apple + fullDescMsg: MSG_ItemFullDesc_Apple + shortDescMsg: MSG_ItemShortDesc_Apple + hudElement: Apple + itemEntity: Apple + icon: food/Apple + sellValue: 2 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 0 +- LifeShroom: + category: CONSUMABLE + nameMsg: MSG_ItemName_LifeShroom + fullDescMsg: MSG_ItemFullDesc_LifeShroom + shortDescMsg: MSG_ItemShortDesc_LifeShroom + hudElement: LifeShroom + itemEntity: LifeShroom + icon: food/LifeShroom + sellValue: 20 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 10 + potencyB: 0 +- Mystery: + category: CONSUMABLE + nameMsg: MSG_ItemName_Mystery + fullDescMsg: MSG_ItemFullDesc_Mystery + shortDescMsg: MSG_ItemShortDesc_Mystery + hudElement: Mystery + itemEntity: Mystery + icon: battle/Mystery + sellValue: 1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- RepelGel: + category: CONSUMABLE + nameMsg: MSG_ItemName_RepelGel + fullDescMsg: MSG_ItemFullDesc_RepelGel + shortDescMsg: MSG_ItemShortDesc_RepelGel + hudElement: RepelGel + itemEntity: RepelGel + icon: battle/RepelGel + sellValue: 15 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 2 + potencyB: 0 +- FrightJar: + category: CONSUMABLE + nameMsg: MSG_ItemName_FrightJar + fullDescMsg: MSG_ItemFullDesc_FrightJar + shortDescMsg: MSG_ItemShortDesc_FrightJar + hudElement: FrightJar + itemEntity: FrightJar + icon: battle/FrightJar + sellValue: 3 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2, TARGET_FLAG_PRIMARY_ONLY ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- PleaseComeBack: + category: CONSUMABLE + nameMsg: MSG_ItemName_PleaseComeBack + fullDescMsg: MSG_ItemFullDesc_PleaseComeBack + shortDescMsg: MSG_ItemShortDesc_PleaseComeBack + hudElement: PleaseComeBack + itemEntity: PleaseComeBack + icon: battle/PleaseComeBack + sellValue: 5 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- DizzyDial: + category: CONSUMABLE + nameMsg: MSG_ItemName_DizzyDial + fullDescMsg: MSG_ItemFullDesc_DizzyDial + shortDescMsg: MSG_ItemShortDesc_DizzyDial + hudElement: DizzyDial + itemEntity: DizzyDial + icon: battle/DizzyDial + sellValue: 6 + sortValue: 0 + targetFlags: [ TARGET_FLAG_2, TARGET_FLAG_PRIMARY_ONLY ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 3 + potencyB: 0 +- SuperSoda: + category: CONSUMABLE + nameMsg: MSG_ItemName_SuperSoda + fullDescMsg: MSG_ItemFullDesc_SuperSoda + shortDescMsg: MSG_ItemShortDesc_SuperSoda + hudElement: SuperSoda + itemEntity: SuperSoda + icon: food/SuperSoda + sellValue: 3 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_USE_DRINK_ANIMATION, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 5 +- Lemon: + category: CONSUMABLE + nameMsg: MSG_ItemName_Lemon + fullDescMsg: MSG_ItemFullDesc_Lemon + shortDescMsg: MSG_ItemShortDesc_Lemon + hudElement: Lemon + itemEntity: Lemon + icon: food/Lemon + sellValue: 1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 1 + potencyB: 2 +- Lime: + category: CONSUMABLE + nameMsg: MSG_ItemName_Lime + fullDescMsg: MSG_ItemFullDesc_Lime + shortDescMsg: MSG_ItemShortDesc_Lime + hudElement: Lime + itemEntity: Lime + icon: food/Lime + sellValue: 1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 3 +- BlueBerry: + category: CONSUMABLE + nameMsg: MSG_ItemName_BlueBerry + fullDescMsg: MSG_ItemFullDesc_BlueBerry + shortDescMsg: MSG_ItemShortDesc_BlueBerry + hudElement: BlueBerry + itemEntity: BlueBerry + icon: food/BlueBerry + sellValue: 2 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 5 +- RedBerry: + category: CONSUMABLE + nameMsg: MSG_ItemName_RedBerry + fullDescMsg: MSG_ItemFullDesc_RedBerry + shortDescMsg: MSG_ItemShortDesc_RedBerry + hudElement: RedBerry + itemEntity: RedBerry + icon: food/RedBerry + sellValue: 2 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 0 +- YellowBerry: + category: CONSUMABLE + nameMsg: MSG_ItemName_YellowBerry + fullDescMsg: MSG_ItemFullDesc_YellowBerry + shortDescMsg: MSG_ItemShortDesc_YellowBerry + hudElement: YellowBerry + itemEntity: YellowBerry + icon: food/YellowBerry + sellValue: 2 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 3 + potencyB: 3 +- BubbleBerry: + category: CONSUMABLE + nameMsg: MSG_ItemName_BubbleBerry + fullDescMsg: MSG_ItemFullDesc_BubbleBerry + shortDescMsg: MSG_ItemShortDesc_BubbleBerry + hudElement: BubbleBerry + itemEntity: BubbleBerry + icon: food/BubbleBerry + sellValue: 3 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 0 +- JamminJelly: + category: CONSUMABLE + nameMsg: MSG_ItemName_JamminJelly + fullDescMsg: MSG_ItemFullDesc_JamminJelly + shortDescMsg: MSG_ItemShortDesc_JamminJelly + hudElement: JamminJelly + itemEntity: JamminJelly + icon: food/JamminJelly + sellValue: 50 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 50 +- MapleSyrup: + category: CONSUMABLE + nameMsg: MSG_ItemName_MapleSyrup + fullDescMsg: MSG_ItemFullDesc_MapleSyrup + shortDescMsg: MSG_ItemShortDesc_MapleSyrup + hudElement: MapleSyrup + itemEntity: MapleSyrup + icon: food/MapleSyrup + sellValue: 10 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_USE_DRINK_ANIMATION, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 10 +- HoneySyrup: + category: CONSUMABLE + nameMsg: MSG_ItemName_HoneySyrup + fullDescMsg: MSG_ItemFullDesc_HoneySyrup + shortDescMsg: MSG_ItemShortDesc_HoneySyrup + hudElement: HoneySyrup + itemEntity: HoneySyrup + icon: food/HoneySyrup + sellValue: 3 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_USE_DRINK_ANIMATION, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 5 +- Goomnut: + category: CONSUMABLE + nameMsg: MSG_ItemName_Goomnut + fullDescMsg: MSG_ItemFullDesc_Goomnut + shortDescMsg: MSG_ItemShortDesc_Goomnut + hudElement: Goomnut + itemEntity: Goomnut + icon: food/Goomnut + sellValue: 2 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 3 +- KoopaLeaf: + category: CONSUMABLE + nameMsg: MSG_ItemName_KoopaLeaf + fullDescMsg: MSG_ItemFullDesc_KoopaLeaf + shortDescMsg: MSG_ItemShortDesc_KoopaLeaf + hudElement: KoopaLeaf + itemEntity: KoopaLeaf + icon: food/KoopaLeaf + sellValue: 1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 3 +- DriedPasta: + category: CONSUMABLE + nameMsg: MSG_ItemName_DriedPasta + fullDescMsg: MSG_ItemFullDesc_DriedPasta + shortDescMsg: MSG_ItemShortDesc_DriedPasta + hudElement: DriedPasta + itemEntity: DriedPasta + icon: food/DriedPasta + sellValue: 4 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 3 + potencyB: 2 +- DriedFruit: + category: CONSUMABLE + nameMsg: MSG_ItemName_DriedFruit + fullDescMsg: MSG_ItemFullDesc_DriedFruit + shortDescMsg: MSG_ItemShortDesc_DriedFruit + hudElement: DriedFruit + itemEntity: DriedFruit + icon: food/DriedFruit + sellValue: 5 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 15 + potencyB: 0 +- StrangeLeaf: + category: CONSUMABLE + nameMsg: MSG_ItemName_StrangeLeaf + fullDescMsg: MSG_ItemFullDesc_StrangeLeaf + shortDescMsg: MSG_ItemShortDesc_StrangeLeaf + hudElement: StrangeLeaf + itemEntity: StrangeLeaf + icon: food/StrangeLeaf + sellValue: 2 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 5 +- CakeMix: + category: CONSUMABLE + nameMsg: MSG_ItemName_CakeMix + fullDescMsg: MSG_ItemFullDesc_CakeMix + shortDescMsg: MSG_ItemShortDesc_CakeMix + hudElement: CakeMix + itemEntity: CakeMix + icon: food/CakeMix + sellValue: 3 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 1 +- Egg: + category: CONSUMABLE + nameMsg: MSG_ItemName_Egg + fullDescMsg: MSG_ItemFullDesc_Egg + shortDescMsg: MSG_ItemShortDesc_Egg + hudElement: Egg + itemEntity: Egg + icon: food/Egg + sellValue: 2 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 0 +- Coconut: + category: CONSUMABLE + nameMsg: MSG_ItemName_Coconut + fullDescMsg: MSG_ItemFullDesc_Coconut + shortDescMsg: MSG_ItemShortDesc_Coconut + hudElement: Coconut + itemEntity: Coconut + icon: food/Coconut + sellValue: 1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_2, TARGET_FLAG_PRIMARY_ONLY ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 3 + potencyB: 0 +- Melon: + category: CONSUMABLE + nameMsg: MSG_ItemName_Melon + fullDescMsg: MSG_ItemFullDesc_Melon + shortDescMsg: MSG_ItemShortDesc_Melon + hudElement: Melon + itemEntity: Melon + icon: food/Melon + sellValue: 7 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 15 + potencyB: 0 +- StinkyHerb: + category: CONSUMABLE + nameMsg: MSG_ItemName_StinkyHerb + fullDescMsg: MSG_ItemFullDesc_StinkyHerb + shortDescMsg: MSG_ItemShortDesc_StinkyHerb + hudElement: StinkyHerb + itemEntity: StinkyHerb + icon: food/StinkyHerb + sellValue: 1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 5 +- IcedPotato: + category: CONSUMABLE + nameMsg: MSG_ItemName_IcedPotato + fullDescMsg: MSG_ItemFullDesc_IcedPotato + shortDescMsg: MSG_ItemShortDesc_IcedPotato + hudElement: IcedPotato + itemEntity: IcedPotato + icon: food/IcedPotato + sellValue: 3 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 0 +- SpicySoup: + category: CONSUMABLE + nameMsg: MSG_ItemName_SpicySoup + fullDescMsg: MSG_ItemFullDesc_SpicySoup + shortDescMsg: MSG_ItemShortDesc_SpicySoup + hudElement: SpicySoup + itemEntity: SpicySoup + icon: food/SpicySoup + sellValue: 10 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_USE_DRINK_ANIMATION, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 4 + potencyB: 4 +- ApplePie: + category: CONSUMABLE + nameMsg: MSG_ItemName_ApplePie + fullDescMsg: MSG_ItemFullDesc_ApplePie + shortDescMsg: MSG_ItemShortDesc_ApplePie + hudElement: ApplePie + itemEntity: ApplePie + icon: food/ApplePie + sellValue: 10 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 15 +- HoneyUltra: + category: CONSUMABLE + nameMsg: MSG_ItemName_HoneyUltra + fullDescMsg: MSG_ItemFullDesc_HoneyUltra + shortDescMsg: MSG_ItemShortDesc_HoneyUltra + hudElement: HoneyUltra + itemEntity: HoneyUltra + icon: food/HoneyUltra + sellValue: 75 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 50 + potencyB: 5 +- MapleUltra: + category: CONSUMABLE + nameMsg: MSG_ItemName_MapleUltra + fullDescMsg: MSG_ItemFullDesc_MapleUltra + shortDescMsg: MSG_ItemShortDesc_MapleUltra + hudElement: MapleUltra + itemEntity: MapleUltra + icon: food/MapleUltra + sellValue: 100 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 50 + potencyB: 10 +- JellyUltra: + category: CONSUMABLE + nameMsg: MSG_ItemName_JellyUltra + fullDescMsg: MSG_ItemFullDesc_JellyUltra + shortDescMsg: MSG_ItemShortDesc_JellyUltra + hudElement: JellyUltra + itemEntity: JellyUltra + icon: food/JellyUltra + sellValue: 150 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 50 + potencyB: 50 +- Koopasta: + category: CONSUMABLE + nameMsg: MSG_ItemName_Koopasta + fullDescMsg: MSG_ItemFullDesc_Koopasta + shortDescMsg: MSG_ItemShortDesc_Koopasta + hudElement: Koopasta + itemEntity: Koopasta + icon: food/Koopasta + sellValue: 10 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 7 + potencyB: 7 +- FriedShroom: + category: CONSUMABLE + nameMsg: MSG_ItemName_FriedShroom + fullDescMsg: MSG_ItemFullDesc_FriedShroom + shortDescMsg: MSG_ItemShortDesc_FriedShroom + hudElement: FriedShroom + itemEntity: FriedShroom + icon: food/FriedShroom + sellValue: 5 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 6 + potencyB: 2 +- ShroomCake: + category: CONSUMABLE + nameMsg: MSG_ItemName_ShroomCake + fullDescMsg: MSG_ItemFullDesc_ShroomCake + shortDescMsg: MSG_ItemShortDesc_ShroomCake + hudElement: ShroomCake + itemEntity: ShroomCake + icon: food/ShroomCake + sellValue: 20 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 10 + potencyB: 10 +- ShroomSteak: + category: CONSUMABLE + nameMsg: MSG_ItemName_ShroomSteak + fullDescMsg: MSG_ItemFullDesc_ShroomSteak + shortDescMsg: MSG_ItemShortDesc_ShroomSteak + hudElement: ShroomSteak + itemEntity: ShroomSteak + icon: food/ShroomSteak + sellValue: 45 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 30 + potencyB: 10 +- HotShroom: + category: CONSUMABLE + nameMsg: MSG_ItemName_HotShroom + fullDescMsg: MSG_ItemFullDesc_HotShroom + shortDescMsg: MSG_ItemShortDesc_HotShroom + hudElement: HotShroom + itemEntity: HotShroom + icon: food/HotShroom + sellValue: 15 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 15 + potencyB: 5 +- SweetShroom: + category: CONSUMABLE + nameMsg: MSG_ItemName_SweetShroom + fullDescMsg: MSG_ItemFullDesc_SweetShroom + shortDescMsg: MSG_ItemShortDesc_SweetShroom + hudElement: SweetShroom + itemEntity: SweetShroom + icon: food/SweetShroom + sellValue: 50 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 30 + potencyB: 20 +- YummyMeal: + category: CONSUMABLE + nameMsg: MSG_ItemName_YummyMeal + fullDescMsg: MSG_ItemFullDesc_YummyMeal + shortDescMsg: MSG_ItemShortDesc_YummyMeal + hudElement: YummyMeal + itemEntity: YummyMeal + icon: food/YummyMeal + sellValue: 15 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 20 + potencyB: 20 +- HealthyJuice: + category: CONSUMABLE + nameMsg: MSG_ItemName_HealthyJuice + fullDescMsg: MSG_ItemFullDesc_HealthyJuice + shortDescMsg: MSG_ItemShortDesc_HealthyJuice + hudElement: HealthyJuice + itemEntity: HealthyJuice + icon: food/HealthyJuice + sellValue: 25 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_USE_DRINK_ANIMATION, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 40 +- BlandMeal: + category: CONSUMABLE + nameMsg: MSG_ItemName_BlandMeal + fullDescMsg: MSG_ItemFullDesc_BlandMeal + shortDescMsg: MSG_ItemShortDesc_BlandMeal + hudElement: BlandMeal + itemEntity: BlandMeal + icon: food/BlandMeal + sellValue: 10 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 10 + potencyB: 10 +- DeluxeFeast: + category: CONSUMABLE + nameMsg: MSG_ItemName_DeluxeFeast + fullDescMsg: MSG_ItemFullDesc_DeluxeFeast + shortDescMsg: MSG_ItemShortDesc_DeluxeFeast + hudElement: DeluxeFeast + itemEntity: DeluxeFeast + icon: food/DeluxeFeast + sellValue: 60 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 40 + potencyB: 40 +- SpecialShake: + category: CONSUMABLE + nameMsg: MSG_ItemName_SpecialShake + fullDescMsg: MSG_ItemFullDesc_SpecialShake + shortDescMsg: MSG_ItemShortDesc_SpecialShake + hudElement: SpecialShake + itemEntity: SpecialShake + icon: food/SpecialShake + sellValue: 10 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_USE_DRINK_ANIMATION, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 20 +- BigCookie: + category: CONSUMABLE + nameMsg: MSG_ItemName_BigCookie + fullDescMsg: MSG_ItemFullDesc_BigCookie + shortDescMsg: MSG_ItemShortDesc_BigCookie + hudElement: BigCookie + itemEntity: BigCookie + icon: food/BigCookie + sellValue: 10 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 20 +- Cake: + category: CONSUMABLE + nameMsg: MSG_ItemName_Cake + fullDescMsg: MSG_ItemFullDesc_Cake + shortDescMsg: MSG_ItemShortDesc_Cake + hudElement: Cake + itemEntity: Cake + icon: food/Cake + sellValue: 10 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 15 +- Mistake: + category: CONSUMABLE + nameMsg: MSG_ItemName_Mistake + fullDescMsg: MSG_ItemFullDesc_Mistake + shortDescMsg: MSG_ItemShortDesc_Mistake + hudElement: Mistake + itemEntity: Mistake + icon: food/Mistake + sellValue: 1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 1 + potencyB: 1 +- KoopaTea: + category: CONSUMABLE + nameMsg: MSG_ItemName_KoopaTea + fullDescMsg: MSG_ItemFullDesc_KoopaTea + shortDescMsg: MSG_ItemShortDesc_KoopaTea + hudElement: KoopaTea + itemEntity: KoopaTea + icon: food/KoopaTea + sellValue: 3 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_USE_DRINK_ANIMATION, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 7 +- HoneySuper: + category: CONSUMABLE + nameMsg: MSG_ItemName_HoneySuper + fullDescMsg: MSG_ItemFullDesc_HoneySuper + shortDescMsg: MSG_ItemShortDesc_HoneySuper + hudElement: HoneySuper + itemEntity: HoneySuper + icon: food/HoneySuper + sellValue: 20 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 10 + potencyB: 5 +- MapleSuper: + category: CONSUMABLE + nameMsg: MSG_ItemName_MapleSuper + fullDescMsg: MSG_ItemFullDesc_MapleSuper + shortDescMsg: MSG_ItemShortDesc_MapleSuper + hudElement: MapleSuper + itemEntity: MapleSuper + icon: food/MapleSuper + sellValue: 35 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 10 + potencyB: 10 +- JellySuper: + category: CONSUMABLE + nameMsg: MSG_ItemName_JellySuper + fullDescMsg: MSG_ItemFullDesc_JellySuper + shortDescMsg: MSG_ItemShortDesc_JellySuper + hudElement: JellySuper + itemEntity: JellySuper + icon: food/JellySuper + sellValue: 100 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 10 + potencyB: 50 +- Spaghetti: + category: CONSUMABLE + nameMsg: MSG_ItemName_Spaghetti + fullDescMsg: MSG_ItemFullDesc_Spaghetti + shortDescMsg: MSG_ItemShortDesc_Spaghetti + hudElement: Spaghetti + itemEntity: Spaghetti + icon: food/Spaghetti + sellValue: 7 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 6 + potencyB: 4 +- EggMissile: + category: CONSUMABLE + nameMsg: MSG_ItemName_EggMissile + fullDescMsg: MSG_ItemFullDesc_EggMissile + shortDescMsg: MSG_ItemShortDesc_EggMissile + hudElement: EggMissile + itemEntity: EggMissile + icon: food/EggMissile + sellValue: 10 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_2, TARGET_FLAG_PRIMARY_ONLY ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 6 + potencyB: 0 +- FriedEgg: + category: CONSUMABLE + nameMsg: MSG_ItemName_FriedEgg + fullDescMsg: MSG_ItemFullDesc_FriedEgg + shortDescMsg: MSG_ItemShortDesc_FriedEgg + hudElement: FriedEgg + itemEntity: FriedEgg + icon: food/FriedEgg + sellValue: 7 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 10 + potencyB: 0 +- HoneyShroom: + category: CONSUMABLE + nameMsg: MSG_ItemName_HoneyShroom + fullDescMsg: MSG_ItemFullDesc_HoneyShroom + shortDescMsg: MSG_ItemShortDesc_HoneyShroom + hudElement: HoneyShroom + itemEntity: HoneyShroom + icon: food/HoneyShroom + sellValue: 10 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 5 +- HoneyCandy: + category: CONSUMABLE + nameMsg: MSG_ItemName_HoneyCandy + fullDescMsg: MSG_ItemFullDesc_HoneyCandy + shortDescMsg: MSG_ItemShortDesc_HoneyCandy + hudElement: HoneyCandy + itemEntity: HoneyCandy + icon: food/HoneyCandy + sellValue: 15 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 20 +- ElectroPop: + category: CONSUMABLE + nameMsg: MSG_ItemName_ElectroPop + fullDescMsg: MSG_ItemFullDesc_ElectroPop + shortDescMsg: MSG_ItemShortDesc_ElectroPop + hudElement: ElectroPop + itemEntity: ElectroPop + icon: food/ElectroPop + sellValue: 25 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 15 +- FirePop: + category: CONSUMABLE + nameMsg: MSG_ItemName_FirePop + fullDescMsg: MSG_ItemFullDesc_FirePop + shortDescMsg: MSG_ItemShortDesc_FirePop + hudElement: FirePop + itemEntity: FirePop + icon: food/FirePop + sellValue: 20 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: -1 + potencyB: 20 +- LimeCandy: + category: CONSUMABLE + nameMsg: MSG_ItemName_LimeCandy + fullDescMsg: MSG_ItemFullDesc_LimeCandy + shortDescMsg: MSG_ItemShortDesc_LimeCandy + hudElement: LimeCandy + itemEntity: LimeCandy + icon: food/LimeCandy + sellValue: 15 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 20 +- CocoPop: + category: CONSUMABLE + nameMsg: MSG_ItemName_CocoPop + fullDescMsg: MSG_ItemFullDesc_CocoPop + shortDescMsg: MSG_ItemShortDesc_CocoPop + hudElement: CocoPop + itemEntity: CocoPop + icon: food/CocoPop + sellValue: 12 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 3 + potencyB: 15 +- LemonCandy: + category: CONSUMABLE + nameMsg: MSG_ItemName_LemonCandy + fullDescMsg: MSG_ItemFullDesc_LemonCandy + shortDescMsg: MSG_ItemShortDesc_LemonCandy + hudElement: LemonCandy + itemEntity: LemonCandy + icon: food/LemonCandy + sellValue: 15 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 15 +- JellyPop: + category: CONSUMABLE + nameMsg: MSG_ItemName_JellyPop + fullDescMsg: MSG_ItemFullDesc_JellyPop + shortDescMsg: MSG_ItemShortDesc_JellyPop + hudElement: JellyPop + itemEntity: JellyPop + icon: food/JellyPop + sellValue: 100 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 64 +- StrangeCake: + category: CONSUMABLE + nameMsg: MSG_ItemName_StrangeCake + fullDescMsg: MSG_ItemFullDesc_StrangeCake + shortDescMsg: MSG_ItemShortDesc_StrangeCake + hudElement: StrangeCake + itemEntity: StrangeCake + icon: food/StrangeCake + sellValue: 10 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- KookyCookie: + category: CONSUMABLE + nameMsg: MSG_ItemName_KookyCookie + fullDescMsg: MSG_ItemFullDesc_KookyCookie + shortDescMsg: MSG_ItemShortDesc_KookyCookie + hudElement: KookyCookie + itemEntity: KookyCookie + icon: food/KookyCookie + sellValue: 12 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 15 +- FrozenFries: + category: CONSUMABLE + nameMsg: MSG_ItemName_FrozenFries + fullDescMsg: MSG_ItemFullDesc_FrozenFries + shortDescMsg: MSG_ItemShortDesc_FrozenFries + hudElement: FrozenFries + itemEntity: FrozenFries + icon: food/FrozenFries + sellValue: 15 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 15 + potencyB: 0 +- PotatoSalad: + category: CONSUMABLE + nameMsg: MSG_ItemName_PotatoSalad + fullDescMsg: MSG_ItemFullDesc_PotatoSalad + shortDescMsg: MSG_ItemShortDesc_PotatoSalad + hudElement: PotatoSalad + itemEntity: PotatoSalad + icon: food/PotatoSalad + sellValue: 6 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 10 + potencyB: 0 +- NuttyCake: + category: CONSUMABLE + nameMsg: MSG_ItemName_NuttyCake + fullDescMsg: MSG_ItemFullDesc_NuttyCake + shortDescMsg: MSG_ItemShortDesc_NuttyCake + hudElement: NuttyCake + itemEntity: NuttyCake + icon: food/NuttyCake + sellValue: 6 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 10 +- MapleShroom: + category: CONSUMABLE + nameMsg: MSG_ItemName_MapleShroom + fullDescMsg: MSG_ItemFullDesc_MapleShroom + shortDescMsg: MSG_ItemShortDesc_MapleShroom + hudElement: MapleShroom + itemEntity: MapleShroom + icon: food/MapleShroom + sellValue: 25 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 10 +- BoiledEgg: + category: CONSUMABLE + nameMsg: MSG_ItemName_BoiledEgg + fullDescMsg: MSG_ItemFullDesc_BoiledEgg + shortDescMsg: MSG_ItemShortDesc_BoiledEgg + hudElement: BoiledEgg + itemEntity: BoiledEgg + icon: food/BoiledEgg + sellValue: 10 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 8 + potencyB: 8 +- YoshiCookie: + category: CONSUMABLE + nameMsg: MSG_ItemName_YoshiCookie + fullDescMsg: MSG_ItemFullDesc_YoshiCookie + shortDescMsg: MSG_ItemShortDesc_YoshiCookie + hudElement: YoshiCookie + itemEntity: YoshiCookie + icon: food/YoshiCookie + sellValue: 20 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 15 + potencyB: 15 +- JellyShroom: + category: CONSUMABLE + nameMsg: MSG_ItemName_JellyShroom + fullDescMsg: MSG_ItemFullDesc_JellyShroom + shortDescMsg: MSG_ItemShortDesc_JellyShroom + hudElement: JellyShroom + itemEntity: JellyShroom + icon: food/JellyShroom + sellValue: 75 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 50 +- UnusedJellyShroom1: + category: UNUSED + nameMsg: MSG_ItemName_JellyShroom + fullDescMsg: MSG_ItemFullDesc_JellyShroom + shortDescMsg: MSG_ItemShortDesc_JellyShroom + hudElement: JellyShroom + itemEntity: Placeholder + icon: key/Gift + sellValue: 75 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 50 +- UnusedJellyShroom2: + category: UNUSED + nameMsg: MSG_ItemName_JellyShroom + fullDescMsg: MSG_ItemFullDesc_JellyShroom + shortDescMsg: MSG_ItemShortDesc_JellyShroom + hudElement: JellyShroom + itemEntity: Placeholder + icon: key/Gift + sellValue: 75 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 50 +- UnusedJellyShroom3: + category: UNUSED + nameMsg: MSG_ItemName_JellyShroom + fullDescMsg: MSG_ItemFullDesc_JellyShroom + shortDescMsg: MSG_ItemShortDesc_JellyShroom + hudElement: JellyShroom + itemEntity: Placeholder + icon: key/Gift + sellValue: 75 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 50 +- UnusedJellyShroom4: + category: UNUSED + nameMsg: MSG_ItemName_JellyShroom + fullDescMsg: MSG_ItemFullDesc_JellyShroom + shortDescMsg: MSG_ItemShortDesc_JellyShroom + hudElement: JellyShroom + itemEntity: Placeholder + icon: key/Gift + sellValue: 75 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 50 +- UnusedJellyShroom5: + category: UNUSED + nameMsg: MSG_ItemName_JellyShroom + fullDescMsg: MSG_ItemFullDesc_JellyShroom + shortDescMsg: MSG_ItemShortDesc_JellyShroom + hudElement: JellyShroom + itemEntity: Placeholder + icon: key/Gift + sellValue: 75 + sortValue: 0 + targetFlags: [ TARGET_FLAG_SELECT_ONE, TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_WORLD_USABLE, ITEM_TYPE_FLAG_BATTLE_USABLE, ITEM_TYPE_FLAG_CONSUMABLE, ITEM_TYPE_FLAG_FOOD_OR_DRINK, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 5 + potencyB: 50 +- SpinSmash: + category: BADGE + nameMsg: MSG_ItemName_SpinSmash + fullDescMsg: MSG_ItemFullDesc_SpinSmash + shortDescMsg: MSG_ItemShortDesc_SpinSmash + hudElement: SpinSmash + itemEntity: SpinSmash + icon: badge/SpinSmash + sellValue: 75 + sortValue: 23 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_SPIN_SMASH + potencyA: 0 + potencyB: 0 +- Multibounce: + category: BADGE + nameMsg: MSG_ItemName_Multibounce + fullDescMsg: MSG_ItemFullDesc_Multibounce + shortDescMsg: MSG_ItemShortDesc_Multibounce + hudElement: Multibounce + itemEntity: Multibounce + icon: badge/Multibounce + sellValue: 75 + sortValue: 4 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_MULTIBOUNCE + potencyA: 0 + potencyB: 0 +- PowerPlusA: + category: BADGE + nameMsg: MSG_ItemName_PowerPlus + fullDescMsg: MSG_ItemFullDesc_PowerPlus + shortDescMsg: MSG_ItemShortDesc_PowerPlus + hudElement: PowerPlus + itemEntity: PowerPlus + icon: badge/PowerPlus + sellValue: 250 + sortValue: 67 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_POWER_PLUS + potencyA: 0 + potencyB: 0 +- DodgeMaster: + category: BADGE + nameMsg: MSG_ItemName_DodgeMaster + fullDescMsg: MSG_ItemFullDesc_DodgeMaster + shortDescMsg: MSG_ItemShortDesc_DodgeMaster + hudElement: DodgeMaster + itemEntity: DodgeMaster + icon: badge/DodgeMaster + sellValue: 100 + sortValue: 40 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_DODGE_MASTER + potencyA: 0 + potencyB: 0 +- PowerBounce: + category: BADGE + nameMsg: MSG_ItemName_PowerBounce + fullDescMsg: MSG_ItemFullDesc_PowerBounce + shortDescMsg: MSG_ItemShortDesc_PowerBounce + hudElement: PowerBounce + itemEntity: PowerBounce + icon: badge/PowerBounce + sellValue: 100 + sortValue: 13 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_POWER_BOUNCE + potencyA: 0 + potencyB: 0 +- SpikeShield: + category: BADGE + nameMsg: MSG_ItemName_SpikeShield + fullDescMsg: MSG_ItemFullDesc_SpikeShield + shortDescMsg: MSG_ItemShortDesc_SpikeShield + hudElement: SpikeShield + itemEntity: SpikeShield + icon: badge/SpikeShield + sellValue: 100 + sortValue: 92 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_SPIKE_SHIELD + potencyA: 0 + potencyB: 0 +- FirstAttack: + category: BADGE + nameMsg: MSG_ItemName_FirstAttack + fullDescMsg: MSG_ItemFullDesc_FirstAttack + shortDescMsg: MSG_ItemShortDesc_FirstAttack + hudElement: FirstAttack + itemEntity: FirstAttack + icon: badge/FirstAttack + sellValue: 100 + sortValue: 109 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_FIRST_ATTACK + potencyA: 0 + potencyB: 0 +- HPPlusA: + category: BADGE + nameMsg: MSG_ItemName_HPPlus + fullDescMsg: MSG_ItemFullDesc_HPPlus + shortDescMsg: MSG_ItemShortDesc_HPPlus + hudElement: HPPlus + itemEntity: HPPlus + icon: badge/HPPlus + sellValue: 150 + sortValue: 53 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_HP_PLUS + potencyA: 0 + potencyB: 0 +- QuakeHammer: + category: BADGE + nameMsg: MSG_ItemName_QuakeHammer + fullDescMsg: MSG_ItemFullDesc_QuakeHammer + shortDescMsg: MSG_ItemShortDesc_QuakeHammer + hudElement: QuakeHammer + itemEntity: QuakeHammer + icon: badge/QuakeHammer + sellValue: 100 + sortValue: 24 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_QUAKE_HAMMER + potencyA: 0 + potencyB: 0 +- DoubleDip: + category: BADGE + nameMsg: MSG_ItemName_DoubleDip + fullDescMsg: MSG_ItemFullDesc_DoubleDip + shortDescMsg: MSG_ItemShortDesc_DoubleDip + hudElement: DoubleDip + itemEntity: DoubleDip + icon: badge/DoubleDip + sellValue: 100 + sortValue: 33 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_DOUBLE_DIP + potencyA: 0 + potencyB: 0 +- MysteryScroll: + category: BADGE + nameMsg: MSG_ItemName_MysteryScroll + fullDescMsg: MSG_ItemFullDesc_MysteryScroll + shortDescMsg: MSG_ItemShortDesc_MysteryScroll + hudElement: Present + itemEntity: Placeholder + icon: key/Gift + sellValue: 100 + sortValue: 0 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_MYSTERY_SCROLL + potencyA: 0 + potencyB: 0 +- SleepStomp: + category: BADGE + nameMsg: MSG_ItemName_SleepStomp + fullDescMsg: MSG_ItemFullDesc_SleepStomp + shortDescMsg: MSG_ItemShortDesc_SleepStomp + hudElement: SleepStomp + itemEntity: SleepStomp + icon: badge/SleepStomp + sellValue: 75 + sortValue: 9 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_SLEEP_STOMP + potencyA: 0 + potencyB: 0 +- FireShield: + category: BADGE + nameMsg: MSG_ItemName_FireShield + fullDescMsg: MSG_ItemFullDesc_FireShield + shortDescMsg: MSG_ItemShortDesc_FireShield + hudElement: FireShield + itemEntity: FireShield + icon: badge/FireShield + sellValue: 75 + sortValue: 91 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_FIRE_SHIELD + potencyA: 0 + potencyB: 0 +- QuickChange: + category: BADGE + nameMsg: MSG_ItemName_QuickChange + fullDescMsg: MSG_ItemFullDesc_QuickChange + shortDescMsg: MSG_ItemShortDesc_QuickChange + hudElement: QuickChange + itemEntity: QuickChange + icon: badge/QuickChange + sellValue: 200 + sortValue: 36 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_QUICK_CHANGE + potencyA: 0 + potencyB: 0 +- DDownPound: + category: BADGE + nameMsg: MSG_ItemName_DDownPound + fullDescMsg: MSG_ItemFullDesc_DDownPound + shortDescMsg: MSG_ItemShortDesc_DDownPound + hudElement: DDownPound + itemEntity: DDownPound + icon: badge/DDownPound + sellValue: 75 + sortValue: 29 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_D_DOWN_POUND + potencyA: 0 + potencyB: 0 +- DizzyStomp: + category: BADGE + nameMsg: MSG_ItemName_DizzyStomp + fullDescMsg: MSG_ItemFullDesc_DizzyStomp + shortDescMsg: MSG_ItemShortDesc_DizzyStomp + hudElement: DizzyStomp + itemEntity: DizzyStomp + icon: badge/DizzyStomp + sellValue: 75 + sortValue: 10 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_DIZZY_STOMP + potencyA: 0 + potencyB: 0 +- SmashCharge0: + category: BADGE + nameMsg: MSG_ItemName_SmashCharge0 + fullDescMsg: MSG_ItemFullDesc_SmashCharge0 + shortDescMsg: MSG_ItemShortDesc_SmashCharge0 + hudElement: SmashCharge0 + itemEntity: SmashCharge0 + icon: badge/SmashCharge0 + sellValue: 30 + sortValue: 20 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_SMASH_CHARGE0 + potencyA: 0 + potencyB: 0 +- PrettyLucky: + category: BADGE + nameMsg: MSG_ItemName_PrettyLucky + fullDescMsg: MSG_ItemFullDesc_PrettyLucky + shortDescMsg: MSG_ItemShortDesc_PrettyLucky + hudElement: PrettyLucky + itemEntity: PrettyLucky + icon: badge/PrettyLucky + sellValue: 100 + sortValue: 85 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_PRETTY_LUCKY + potencyA: 0 + potencyB: 0 +- FeelingFine: + category: BADGE + nameMsg: MSG_ItemName_FeelingFine + fullDescMsg: MSG_ItemFullDesc_FeelingFine + shortDescMsg: MSG_ItemShortDesc_FeelingFine + hudElement: FeelingFine + itemEntity: FeelingFine + icon: badge/FeelingFine + sellValue: 100 + sortValue: 94 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_FEELING_FINE + potencyA: 0 + potencyB: 0 +- AttackFX_A: + category: BADGE + nameMsg: MSG_ItemName_AttackFXA + fullDescMsg: MSG_ItemFullDesc_AttackFXA + shortDescMsg: MSG_ItemShortDesc_AttackFXA + hudElement: AttackFXA + itemEntity: AttackFXA + icon: badge/AttackFXA + sellValue: 30 + sortValue: 112 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_ATTACK_FX_A + potencyA: 0 + potencyB: 0 +- AllorNothing: + category: BADGE + nameMsg: MSG_ItemName_AllorNothing + fullDescMsg: MSG_ItemFullDesc_AllorNothing + shortDescMsg: MSG_ItemShortDesc_AllorNothing + hudElement: AllorNothing + itemEntity: AllorNothing + icon: badge/AllorNothing + sellValue: 100 + sortValue: 80 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_ALLOR_NOTHING + potencyA: 0 + potencyB: 0 +- HPDrain: + category: BADGE + nameMsg: MSG_ItemName_HPDrain + fullDescMsg: MSG_ItemFullDesc_HPDrain + shortDescMsg: MSG_ItemShortDesc_HPDrain + hudElement: HPDrain + itemEntity: HPDrain + icon: badge/HPDrain + sellValue: 50 + sortValue: 79 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_HP_DRAIN + potencyA: 0 + potencyB: 0 +- JumpCharge0: + category: BADGE + nameMsg: MSG_ItemName_JumpCharge0 + fullDescMsg: MSG_ItemFullDesc_JumpCharge0 + shortDescMsg: MSG_ItemShortDesc_JumpCharge0 + hudElement: JumpCharge0 + itemEntity: JumpCharge0 + icon: badge/JumpCharge0 + sellValue: 30 + sortValue: 4 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_JUMP_CHARGE0 + potencyA: 0 + potencyB: 0 +- SlowGo: + category: BADGE + nameMsg: MSG_ItemName_SlowGo + fullDescMsg: MSG_ItemFullDesc_SlowGo + shortDescMsg: MSG_ItemShortDesc_SlowGo + hudElement: SlowGo + itemEntity: SlowGo + icon: badge/SlowGo + sellValue: 10 + sortValue: 111 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_SLOW_GO + potencyA: 0 + potencyB: 0 +- FPPlusA: + category: BADGE + nameMsg: MSG_ItemName_FPPlus + fullDescMsg: MSG_ItemFullDesc_FPPlus + shortDescMsg: MSG_ItemShortDesc_FPPlus + hudElement: FPPlus + itemEntity: FPPlus + icon: badge/FPPlus + sellValue: 150 + sortValue: 58 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_FP_PLUS + potencyA: 0 + potencyB: 0 +- MegaRush: + category: BADGE + nameMsg: MSG_ItemName_MegaRush + fullDescMsg: MSG_ItemFullDesc_MegaRush + shortDescMsg: MSG_ItemShortDesc_MegaRush + hudElement: MegaRush + itemEntity: MegaRush + icon: badge/MegaRush + sellValue: 50 + sortValue: 81 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_MEGA_RUSH + potencyA: 0 + potencyB: 0 +- IcePower: + category: BADGE + nameMsg: MSG_ItemName_IcePower + fullDescMsg: MSG_ItemFullDesc_IcePower + shortDescMsg: MSG_ItemShortDesc_IcePower + hudElement: IcePower + itemEntity: IcePower + icon: badge/IcePower + sellValue: 75 + sortValue: 90 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_ICE_POWER + potencyA: 0 + potencyB: 0 +- DefendPlusA: + category: BADGE + nameMsg: MSG_ItemName_DefendPlus + fullDescMsg: MSG_ItemFullDesc_DefendPlus + shortDescMsg: MSG_ItemShortDesc_DefendPlus + hudElement: DefendPlus + itemEntity: DefendPlus + icon: badge/DefendPlus + sellValue: 250 + sortValue: 70 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_DEFEND_PLUS + potencyA: 0 + potencyB: 0 +- PayOff: + category: BADGE + nameMsg: MSG_ItemName_PayOff + fullDescMsg: MSG_ItemFullDesc_PayOff + shortDescMsg: MSG_ItemShortDesc_PayOff + hudElement: PayOff + itemEntity: PayOff + icon: badge/PayOff + sellValue: 50 + sortValue: 101 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_PAY_OFF + potencyA: 0 + potencyB: 0 +- MoneyMoney: + category: BADGE + nameMsg: MSG_ItemName_MoneyMoney + fullDescMsg: MSG_ItemFullDesc_MoneyMoney + shortDescMsg: MSG_ItemShortDesc_MoneyMoney + hudElement: MoneyMoney + itemEntity: MoneyMoney + icon: badge/MoneyMoney + sellValue: 200 + sortValue: 101 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_MONEY_MONEY + potencyA: 0 + potencyB: 0 +- ChillOut: + category: BADGE + nameMsg: MSG_ItemName_ChillOut + fullDescMsg: MSG_ItemFullDesc_ChillOut + shortDescMsg: MSG_ItemShortDesc_ChillOut + hudElement: ChillOut + itemEntity: ChillOut + icon: badge/ChillOut + sellValue: 50 + sortValue: 105 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_CHILL_OUT_BADGE + potencyA: 0 + potencyB: 0 +- HappyHeartA: + category: BADGE + nameMsg: MSG_ItemName_HappyHeart + fullDescMsg: MSG_ItemFullDesc_HappyHeart + shortDescMsg: MSG_ItemShortDesc_HappyHeart + hudElement: HappyHeart + itemEntity: HappyHeart + icon: badge/HappyHeart + sellValue: 100 + sortValue: 42 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_HAPPY_HEART + potencyA: 0 + potencyB: 0 +- ZapTap: + category: BADGE + nameMsg: MSG_ItemName_ZapTap + fullDescMsg: MSG_ItemFullDesc_ZapTap + shortDescMsg: MSG_ItemShortDesc_ZapTap + hudElement: ZapTap + itemEntity: ZapTap + icon: badge/ZapTap + sellValue: 100 + sortValue: 95 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_ZAP_TAP + potencyA: 0 + potencyB: 0 +- Berserker: + category: BADGE + nameMsg: MSG_ItemName_Berserker + fullDescMsg: MSG_ItemFullDesc_Berserker + shortDescMsg: MSG_ItemShortDesc_Berserker + hudElement: Berserker + itemEntity: Berserker + icon: badge/Berserker + sellValue: 300 + sortValue: 88 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_BERSERKER + potencyA: 0 + potencyB: 0 +- RightOn: + category: BADGE + nameMsg: MSG_ItemName_RightOn + fullDescMsg: MSG_ItemFullDesc_RightOn + shortDescMsg: MSG_ItemShortDesc_RightOn + hudElement: RightOn + itemEntity: RightOn + icon: badge/RightOn + sellValue: 300 + sortValue: 41 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_RIGHT_ON + potencyA: 0 + potencyB: 0 +- RunawayPay: + category: BADGE + nameMsg: MSG_ItemName_RunawayPay + fullDescMsg: MSG_ItemFullDesc_RunawayPay + shortDescMsg: MSG_ItemShortDesc_RunawayPay + hudElement: RunawayPay + itemEntity: RunawayPay + icon: badge/RunawayPay + sellValue: 50 + sortValue: 99 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_RUNAWAY_PAY + potencyA: 0 + potencyB: 0 +- Refund: + category: BADGE + nameMsg: MSG_ItemName_Refund + fullDescMsg: MSG_ItemFullDesc_Refund + shortDescMsg: MSG_ItemShortDesc_Refund + hudElement: Refund + itemEntity: Refund + icon: badge/Refund + sellValue: 50 + sortValue: 100 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_REFUND + potencyA: 0 + potencyB: 0 +- FlowerSaverA: + category: BADGE + nameMsg: MSG_ItemName_FlowerSaver + fullDescMsg: MSG_ItemFullDesc_FlowerSaver + shortDescMsg: MSG_ItemShortDesc_FlowerSaver + hudElement: FlowerSaver + itemEntity: FlowerSaver + icon: badge/FlowerSaver + sellValue: 250 + sortValue: 63 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_FLOWER_SAVER + potencyA: 0 + potencyB: 0 +- TripleDip: + category: BADGE + nameMsg: MSG_ItemName_TripleDip + fullDescMsg: MSG_ItemFullDesc_TripleDip + shortDescMsg: MSG_ItemShortDesc_TripleDip + hudElement: TripleDip + itemEntity: TripleDip + icon: badge/TripleDip + sellValue: 200 + sortValue: 34 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_TRIPLE_DIP + potencyA: 0 + potencyB: 0 +- HammerThrow: + category: BADGE + nameMsg: MSG_ItemName_HammerThrow + fullDescMsg: MSG_ItemFullDesc_HammerThrow + shortDescMsg: MSG_ItemShortDesc_HammerThrow + hudElement: HammerThrow + itemEntity: HammerThrow + icon: badge/HammerThrow + sellValue: 75 + sortValue: 28 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_HAMMER_THROW + potencyA: 0 + potencyB: 0 +- MegaQuake: + category: BADGE + nameMsg: MSG_ItemName_MegaQuake + fullDescMsg: MSG_ItemFullDesc_MegaQuake + shortDescMsg: MSG_ItemShortDesc_MegaQuake + hudElement: MegaQuake + itemEntity: MegaQuake + icon: badge/MegaQuake + sellValue: 200 + sortValue: 26 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_MEGA_QUAKE + potencyA: 0 + potencyB: 0 +- SmashCharge: + category: BADGE + nameMsg: MSG_ItemName_SmashCharge + fullDescMsg: MSG_ItemFullDesc_SmashCharge + shortDescMsg: MSG_ItemShortDesc_SmashCharge + hudElement: SmashCharge + itemEntity: SmashCharge + icon: badge/SmashCharge + sellValue: 50 + sortValue: 21 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_SMASH_CHARGE + potencyA: 0 + potencyB: 0 +- JumpCharge: + category: BADGE + nameMsg: MSG_ItemName_JumpCharge + fullDescMsg: MSG_ItemFullDesc_JumpCharge + shortDescMsg: MSG_ItemShortDesc_JumpCharge + hudElement: JumpCharge + itemEntity: JumpCharge + icon: badge/JumpCharge + sellValue: 50 + sortValue: 5 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_JUMP_CHARGE + potencyA: 0 + potencyB: 0 +- SSmashChg: + category: BADGE + nameMsg: MSG_ItemName_SSmashChg + fullDescMsg: MSG_ItemFullDesc_SSmashChg + shortDescMsg: MSG_ItemShortDesc_SSmashChg + hudElement: SSmashChg + itemEntity: SSmashChg + icon: badge/SSmashChg + sellValue: 100 + sortValue: 22 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_SUPER_SMASH_CHARGE + potencyA: 0 + potencyB: 0 +- SJumpChg: + category: BADGE + nameMsg: MSG_ItemName_SJumpChg + fullDescMsg: MSG_ItemFullDesc_SJumpChg + shortDescMsg: MSG_ItemShortDesc_SJumpChg + hudElement: SJumpChg + itemEntity: SJumpChg + icon: badge/SJumpChg + sellValue: 100 + sortValue: 6 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_SUPER_JUMP_CHARGE + potencyA: 0 + potencyB: 0 +- PowerRush: + category: BADGE + nameMsg: MSG_ItemName_PowerRush + fullDescMsg: MSG_ItemFullDesc_PowerRush + shortDescMsg: MSG_ItemShortDesc_PowerRush + hudElement: PowerRush + itemEntity: PowerRush + icon: badge/PowerRush + sellValue: 50 + sortValue: 83 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_POWER_RUSH + potencyA: 0 + potencyB: 0 +- AutoJump: + category: BADGE + nameMsg: MSG_ItemName_AutoJump + fullDescMsg: MSG_ItemFullDesc_AutoJump + shortDescMsg: MSG_ItemShortDesc_AutoJump + hudElement: AutoJump + itemEntity: AutoJump + icon: badge/AutoJump + sellValue: 50 + sortValue: 15 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_AUTO_JUMP + potencyA: 0 + potencyB: 0 +- AutoSmash: + category: BADGE + nameMsg: MSG_ItemName_AutoSmash + fullDescMsg: MSG_ItemFullDesc_AutoSmash + shortDescMsg: MSG_ItemShortDesc_AutoSmash + hudElement: AutoSmash + itemEntity: AutoSmash + icon: badge/AutoSmash + sellValue: 50 + sortValue: 31 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_AUTO_SMASH + potencyA: 0 + potencyB: 0 +- CrazyHeart: + category: BADGE + nameMsg: MSG_ItemName_CrazyHeart + fullDescMsg: MSG_ItemFullDesc_CrazyHeart + shortDescMsg: MSG_ItemShortDesc_CrazyHeart + hudElement: CrazyHeart + itemEntity: CrazyHeart + icon: badge/CrazyHeart + sellValue: 300 + sortValue: 45 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_CRAZY_HEART + potencyA: 0 + potencyB: 0 +- LastStand: + category: BADGE + nameMsg: MSG_ItemName_LastStand + fullDescMsg: MSG_ItemFullDesc_LastStand + shortDescMsg: MSG_ItemShortDesc_LastStand + hudElement: LastStand + itemEntity: LastStand + icon: badge/LastStand + sellValue: 50 + sortValue: 82 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_LAST_STAND + potencyA: 0 + potencyB: 0 +- CloseCall: + category: BADGE + nameMsg: MSG_ItemName_CloseCall + fullDescMsg: MSG_ItemFullDesc_CloseCall + shortDescMsg: MSG_ItemShortDesc_CloseCall + hudElement: CloseCall + itemEntity: CloseCall + icon: badge/CloseCall + sellValue: 50 + sortValue: 84 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_CLOSE_CALL + potencyA: 0 + potencyB: 0 +- PUpDDown: + category: BADGE + nameMsg: MSG_ItemName_PUpDDown + fullDescMsg: MSG_ItemFullDesc_PUpDDown + shortDescMsg: MSG_ItemShortDesc_PUpDDown + hudElement: PUpDDown + itemEntity: PUpDDown + icon: badge/PUpDDown + sellValue: 100 + sortValue: 78 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_P_UP_D_DOWN + potencyA: 0 + potencyB: 0 +- LuckyDay: + category: BADGE + nameMsg: MSG_ItemName_LuckyDay + fullDescMsg: MSG_ItemFullDesc_LuckyDay + shortDescMsg: MSG_ItemShortDesc_LuckyDay + hudElement: LuckyDay + itemEntity: LuckyDay + icon: badge/LuckyDay + sellValue: 300 + sortValue: 86 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_LUCKY_DAY + potencyA: 0 + potencyB: 0 +- MegaHPDrain: + category: BADGE + nameMsg: MSG_ItemName_MegaHPDrain + fullDescMsg: MSG_ItemFullDesc_MegaHPDrain + shortDescMsg: MSG_ItemShortDesc_MegaHPDrain + hudElement: MegaHPDrain + itemEntity: MegaHPDrain + icon: badge/MegaHPDrain + sellValue: 100 + sortValue: 87 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_MEGA_HP_DRAIN + potencyA: 0 + potencyB: 0 +- PDownDUp: + category: BADGE + nameMsg: MSG_ItemName_PDownDUp + fullDescMsg: MSG_ItemFullDesc_PDownDUp + shortDescMsg: MSG_ItemShortDesc_PDownDUp + hudElement: PDownDUp + itemEntity: PDownDUp + icon: badge/PDownDUp + sellValue: 100 + sortValue: 77 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_P_DOWN_D_UP + potencyA: 0 + potencyB: 0 +- PowerQuake: + category: BADGE + nameMsg: MSG_ItemName_PowerQuake + fullDescMsg: MSG_ItemFullDesc_PowerQuake + shortDescMsg: MSG_ItemShortDesc_PowerQuake + hudElement: PowerQuake + itemEntity: PowerQuake + icon: badge/PowerQuake + sellValue: 150 + sortValue: 25 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_POWER_QUAKE + potencyA: 0 + potencyB: 0 +- AutoMultibounce: + category: BADGE + nameMsg: MSG_ItemName_AutoMultibounce + fullDescMsg: MSG_ItemFullDesc_AutoMultibounce + shortDescMsg: MSG_ItemShortDesc_AutoMultibounce + hudElement: AutoMultibounce + itemEntity: AutoMultibounce + icon: badge/AutoMultibounce + sellValue: 75 + sortValue: 14 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_AUTO_MULTIBOUNCE + potencyA: 0 + potencyB: 0 +- FlowerFanatic: + category: BADGE + nameMsg: MSG_ItemName_FlowerFanatic + fullDescMsg: MSG_ItemFullDesc_FlowerFanatic + shortDescMsg: MSG_ItemShortDesc_FlowerFanatic + hudElement: FlowerFanatic + itemEntity: FlowerFanatic + icon: badge/FlowerFanatic + sellValue: 300 + sortValue: 66 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_FLOWER_FANATIC + potencyA: 0 + potencyB: 0 +- HeartFinder: + category: BADGE + nameMsg: MSG_ItemName_HeartFinder + fullDescMsg: MSG_ItemFullDesc_HeartFinder + shortDescMsg: MSG_ItemShortDesc_HeartFinder + hudElement: HeartFinder + itemEntity: HeartFinder + icon: badge/HeartFinder + sellValue: 75 + sortValue: 97 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_HEART_FINDER + potencyA: 0 + potencyB: 0 +- FlowerFinder: + category: BADGE + nameMsg: MSG_ItemName_FlowerFinder + fullDescMsg: MSG_ItemFullDesc_FlowerFinder + shortDescMsg: MSG_ItemShortDesc_FlowerFinder + hudElement: FlowerFinder + itemEntity: FlowerFinder + icon: badge/FlowerFinder + sellValue: 75 + sortValue: 98 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_FLOWER_FINDER + potencyA: 0 + potencyB: 0 +- SpinAttack: + category: BADGE + nameMsg: MSG_ItemName_SpinAttack + fullDescMsg: MSG_ItemFullDesc_SpinAttack + shortDescMsg: MSG_ItemShortDesc_SpinAttack + hudElement: SpinAttack + itemEntity: SpinAttack + icon: badge/SpinAttack + sellValue: 150 + sortValue: 108 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_SPIN_ATTACK + potencyA: 0 + potencyB: 0 +- DizzyAttack: + category: BADGE + nameMsg: MSG_ItemName_DizzyAttack + fullDescMsg: MSG_ItemFullDesc_DizzyAttack + shortDescMsg: MSG_ItemShortDesc_DizzyAttack + hudElement: DizzyAttack + itemEntity: DizzyAttack + icon: badge/DizzyAttack + sellValue: 100 + sortValue: 107 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_DIZZY_ATTACK + potencyA: 0 + potencyB: 0 +- ISpy: + category: BADGE + nameMsg: MSG_ItemName_ISpy + fullDescMsg: MSG_ItemFullDesc_ISpy + shortDescMsg: MSG_ItemShortDesc_ISpy + hudElement: ISpy + itemEntity: ISpy + icon: badge/ISpy + sellValue: 200 + sortValue: 104 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_I_SPY + potencyA: 0 + potencyB: 0 +- SpeedySpin: + category: BADGE + nameMsg: MSG_ItemName_SpeedySpin + fullDescMsg: MSG_ItemFullDesc_SpeedySpin + shortDescMsg: MSG_ItemShortDesc_SpeedySpin + hudElement: SpeedySpin + itemEntity: SpeedySpin + icon: badge/SpeedySpin + sellValue: 50 + sortValue: 106 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_SPEEDY_SPIN + potencyA: 0 + potencyB: 0 +- BumpAttack: + category: BADGE + nameMsg: MSG_ItemName_BumpAttack + fullDescMsg: MSG_ItemFullDesc_BumpAttack + shortDescMsg: MSG_ItemShortDesc_BumpAttack + hudElement: BumpAttack + itemEntity: BumpAttack + icon: badge/BumpAttack + sellValue: 200 + sortValue: 110 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_BUMP_ATTACK + potencyA: 0 + potencyB: 0 +- PowerJump: + category: BADGE + nameMsg: MSG_ItemName_PowerJump + fullDescMsg: MSG_ItemFullDesc_PowerJump + shortDescMsg: MSG_ItemShortDesc_PowerJump + hudElement: PowerJump + itemEntity: PowerJump + icon: badge/PowerJump + sellValue: 50 + sortValue: 1 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_POWER_JUMP + potencyA: 0 + potencyB: 0 +- SuperJump: + category: BADGE + nameMsg: MSG_ItemName_SuperJump + fullDescMsg: MSG_ItemFullDesc_SuperJump + shortDescMsg: MSG_ItemShortDesc_SuperJump + hudElement: SuperJump + itemEntity: SuperJump + icon: badge/SuperJump + sellValue: 100 + sortValue: 2 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_SUPER_JUMP + potencyA: 0 + potencyB: 0 +- MegaJump: + category: BADGE + nameMsg: MSG_ItemName_MegaJump + fullDescMsg: MSG_ItemFullDesc_MegaJump + shortDescMsg: MSG_ItemShortDesc_MegaJump + hudElement: MegaJump + itemEntity: MegaJump + icon: badge/MegaJump + sellValue: 200 + sortValue: 3 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_MEGA_JUMP + potencyA: 0 + potencyB: 0 +- PowerSmash: + category: BADGE + nameMsg: MSG_ItemName_PowerSmash + fullDescMsg: MSG_ItemFullDesc_PowerSmash + shortDescMsg: MSG_ItemShortDesc_PowerSmash + hudElement: PowerSmash1 + itemEntity: PowerSmash + icon: badge/PowerSmash + sellValue: 50 + sortValue: 17 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_POWER_SMASH + potencyA: 0 + potencyB: 0 +- SuperSmash: + category: BADGE + nameMsg: MSG_ItemName_SuperSmash + fullDescMsg: MSG_ItemFullDesc_SuperSmash + shortDescMsg: MSG_ItemShortDesc_SuperSmash + hudElement: SuperSmash + itemEntity: SuperSmash + icon: badge/SuperSmash + sellValue: 100 + sortValue: 18 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_SUPER_SMASH + potencyA: 0 + potencyB: 0 +- MegaSmash: + category: BADGE + nameMsg: MSG_ItemName_MegaSmash + fullDescMsg: MSG_ItemFullDesc_MegaSmash + shortDescMsg: MSG_ItemShortDesc_MegaSmash + hudElement: MegaSmash + itemEntity: MegaSmash + icon: badge/MegaSmash + sellValue: 200 + sortValue: 19 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_MEGA_SMASH + potencyA: 0 + potencyB: 0 +- UnusedPowerSmash1: + category: BADGE + nameMsg: MSG_ItemName_PowerSmash + fullDescMsg: MSG_ItemFullDesc_PowerSmash + shortDescMsg: MSG_ItemShortDesc_PowerSmash + hudElement: Present + itemEntity: Placeholder + icon: key/Gift + sellValue: 50 + sortValue: 17 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_MEGA_SMASH + potencyA: 0 + potencyB: 0 +- UnusedPowerSmash2: + category: BADGE + nameMsg: MSG_ItemName_PowerSmash + fullDescMsg: MSG_ItemFullDesc_PowerSmash + shortDescMsg: MSG_ItemShortDesc_PowerSmash + hudElement: Present + itemEntity: Placeholder + icon: key/Gift + sellValue: 50 + sortValue: 17 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_MEGA_SMASH + potencyA: 0 + potencyB: 0 +- DeepFocusA: + category: BADGE + nameMsg: MSG_ItemName_DeepFocus + fullDescMsg: MSG_ItemFullDesc_DeepFocus + shortDescMsg: MSG_ItemShortDesc_DeepFocus + hudElement: DeepFocus + itemEntity: DeepFocus + icon: badge/DeepFocus + sellValue: 50 + sortValue: 49 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_DEEP_FOCUS + potencyA: 0 + potencyB: 0 +- SuperFocus: + category: BADGE + nameMsg: MSG_ItemName_SuperFocus + fullDescMsg: MSG_ItemFullDesc_SuperFocus + shortDescMsg: MSG_ItemShortDesc_SuperFocus + hudElement: SuperFocus + itemEntity: SuperFocus + icon: badge/SuperFocus + sellValue: 100 + sortValue: 52 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_SUPER_FOCUS + potencyA: 0 + potencyB: 0 +- ShrinkSmash: + category: BADGE + nameMsg: MSG_ItemName_ShrinkSmash + fullDescMsg: MSG_ItemFullDesc_ShrinkSmash + shortDescMsg: MSG_ItemShortDesc_ShrinkSmash + hudElement: ShrinkSmash + itemEntity: ShrinkSmash + icon: badge/ShrinkSmash + sellValue: 75 + sortValue: 27 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_SHRINK_SMASH + potencyA: 0 + potencyB: 0 +- ShellCrack: + category: BADGE + nameMsg: MSG_ItemName_ShellCrack + fullDescMsg: MSG_ItemFullDesc_ShellCrack + shortDescMsg: MSG_ItemShortDesc_ShellCrack + hudElement: Present + itemEntity: Placeholder + icon: key/Gift + sellValue: 100 + sortValue: 30 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_SHELL_CRACK + potencyA: 0 + potencyB: 0 +- Kaiden: + category: BADGE + nameMsg: MSG_ItemName_Kaiden + fullDescMsg: MSG_ItemFullDesc_Kaiden + shortDescMsg: MSG_ItemShortDesc_Kaiden + hudElement: Kaiden + itemEntity: Kaiden + icon: badge/Kaiden + sellValue: 300 + sortValue: 39 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_KAIDEN + potencyA: 0 + potencyB: 0 +- DDownJump: + category: BADGE + nameMsg: MSG_ItemName_DDownJump + fullDescMsg: MSG_ItemFullDesc_DDownJump + shortDescMsg: MSG_ItemShortDesc_DDownJump + hudElement: DDownJump + itemEntity: DDownJump + icon: badge/DDownJump + sellValue: 100 + sortValue: 12 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_D_DOWN_JUMP + potencyA: 0 + potencyB: 0 +- ShrinkStomp: + category: BADGE + nameMsg: MSG_ItemName_ShrinkStomp + fullDescMsg: MSG_ItemFullDesc_ShrinkStomp + shortDescMsg: MSG_ItemShortDesc_ShrinkStomp + hudElement: ShrinkStomp + itemEntity: ShrinkStomp + icon: badge/ShrinkStomp + sellValue: 75 + sortValue: 8 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_SHRINK_STOMP + potencyA: 0 + potencyB: 0 +- DamageDodgeA: + category: BADGE + nameMsg: MSG_ItemName_DamageDodge + fullDescMsg: MSG_ItemFullDesc_DamageDodge + shortDescMsg: MSG_ItemShortDesc_DamageDodge + hudElement: DamageDodge + itemEntity: DamageDodge + icon: badge/DamageDodge + sellValue: 150 + sortValue: 73 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_DAMAGE_DODGE + potencyA: 0 + potencyB: 0 +- EarthquakeJump: + category: BADGE + nameMsg: MSG_ItemName_EarthquakeJump + fullDescMsg: MSG_ItemFullDesc_EarthquakeJump + shortDescMsg: MSG_ItemShortDesc_EarthquakeJump + hudElement: EarthquakeJump + itemEntity: EarthquakeJump + icon: badge/EarthquakeJump + sellValue: 100 + sortValue: 11 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_EARTHQUAKE_JUMP + potencyA: 0 + potencyB: 0 +- DeepFocusB: + category: BADGE + nameMsg: MSG_ItemName_DeepFocus + fullDescMsg: MSG_ItemFullDesc_DeepFocus + shortDescMsg: MSG_ItemShortDesc_DeepFocus + hudElement: DeepFocus + itemEntity: DeepFocus + icon: badge/DeepFocus + sellValue: 50 + sortValue: 49 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_DEEP_FOCUS + potencyA: 0 + potencyB: 0 +- DeepFocusC: + category: BADGE + nameMsg: MSG_ItemName_DeepFocus + fullDescMsg: MSG_ItemFullDesc_DeepFocus + shortDescMsg: MSG_ItemShortDesc_DeepFocus + hudElement: DeepFocus + itemEntity: DeepFocus # fixed in PAL version + icon: badge/SuperFocus + sellValue: 50 + sortValue: 49 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_DEEP_FOCUS + potencyA: 0 + potencyB: 0 +- HPPlusB: + category: BADGE + nameMsg: MSG_ItemName_HPPlus + fullDescMsg: MSG_ItemFullDesc_HPPlus + shortDescMsg: MSG_ItemShortDesc_HPPlus + hudElement: HPPlus + itemEntity: HPPlus + icon: badge/HPPlus + sellValue: 150 + sortValue: 53 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_HP_PLUS + potencyA: 0 + potencyB: 0 +- FPPlusB: + category: BADGE + nameMsg: MSG_ItemName_FPPlus + fullDescMsg: MSG_ItemFullDesc_FPPlus + shortDescMsg: MSG_ItemShortDesc_FPPlus + hudElement: FPPlus + itemEntity: FPPlus + icon: badge/FPPlus + sellValue: 150 + sortValue: 58 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_FP_PLUS + potencyA: 0 + potencyB: 0 +- HappyHeartB: + category: BADGE + nameMsg: MSG_ItemName_HappyHeart + fullDescMsg: MSG_ItemFullDesc_HappyHeart + shortDescMsg: MSG_ItemShortDesc_HappyHeart + hudElement: HappyHeart + itemEntity: HappyHeart + icon: badge/HappyHeart + sellValue: 100 + sortValue: 42 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_HAPPY_HEART + potencyA: 0 + potencyB: 0 +- HappyHeartX: + category: BADGE + nameMsg: MSG_ItemName_HappyHeart + fullDescMsg: MSG_ItemFullDesc_HappyHeart + shortDescMsg: MSG_ItemShortDesc_HappyHeart + hudElement: HappyHeart + itemEntity: HappyHeart + icon: badge/HappyHeart + sellValue: 100 + sortValue: 42 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_HAPPY_HEART + potencyA: 0 + potencyB: 0 +- FlowerSaverB: + category: BADGE + nameMsg: MSG_ItemName_FlowerSaver + fullDescMsg: MSG_ItemFullDesc_FlowerSaver + shortDescMsg: MSG_ItemShortDesc_FlowerSaver + hudElement: FlowerSaver + itemEntity: FlowerSaver + icon: badge/FlowerSaver + sellValue: 250 + sortValue: 63 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_FLOWER_SAVER + potencyA: 0 + potencyB: 0 +- FlowerSaverX: + category: BADGE + nameMsg: MSG_ItemName_FlowerSaver + fullDescMsg: MSG_ItemFullDesc_FlowerSaver + shortDescMsg: MSG_ItemShortDesc_FlowerSaver + hudElement: FlowerSaver + itemEntity: FlowerSaver + icon: badge/FlowerSaver + sellValue: 250 + sortValue: 63 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_FLOWER_SAVER + potencyA: 0 + potencyB: 0 +- DamageDodgeB: + category: BADGE + nameMsg: MSG_ItemName_DamageDodge + fullDescMsg: MSG_ItemFullDesc_DamageDodge + shortDescMsg: MSG_ItemShortDesc_DamageDodge + hudElement: DamageDodge + itemEntity: DamageDodge + icon: badge/DamageDodge + sellValue: 150 + sortValue: 73 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_DAMAGE_DODGE + potencyA: 0 + potencyB: 0 +- DamageDodgeX: + category: BADGE + nameMsg: MSG_ItemName_DamageDodge + fullDescMsg: MSG_ItemFullDesc_DamageDodge + shortDescMsg: MSG_ItemShortDesc_DamageDodge + hudElement: DamageDodge + itemEntity: DamageDodge + icon: badge/DamageDodge + sellValue: 150 + sortValue: 73 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_DAMAGE_DODGE + potencyA: 0 + potencyB: 0 +- PowerPlusB: + category: BADGE + nameMsg: MSG_ItemName_PowerPlus + fullDescMsg: MSG_ItemFullDesc_PowerPlus + shortDescMsg: MSG_ItemShortDesc_PowerPlus + hudElement: PowerPlus + itemEntity: PowerPlus + icon: badge/PowerPlus + sellValue: 250 + sortValue: 67 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_POWER_PLUS + potencyA: 0 + potencyB: 0 +- PowerPlusX: + category: BADGE + nameMsg: MSG_ItemName_PowerPlus + fullDescMsg: MSG_ItemFullDesc_PowerPlus + shortDescMsg: MSG_ItemShortDesc_PowerPlus + hudElement: PowerPlus + itemEntity: PowerPlus + icon: badge/PowerPlus + sellValue: 250 + sortValue: 67 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_POWER_PLUS + potencyA: 0 + potencyB: 0 +- DefendPlusX: + category: BADGE + nameMsg: MSG_ItemName_DefendPlus + fullDescMsg: MSG_ItemFullDesc_DefendPlus + shortDescMsg: MSG_ItemShortDesc_DefendPlus + hudElement: DefendPlus + itemEntity: DefendPlus + icon: badge/DefendPlus + sellValue: 250 + sortValue: 70 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_DEFEND_PLUS + potencyA: 0 + potencyB: 0 +- DefendPlusY: + category: BADGE + nameMsg: MSG_ItemName_DefendPlus + fullDescMsg: MSG_ItemFullDesc_DefendPlus + shortDescMsg: MSG_ItemShortDesc_DefendPlus + hudElement: DefendPlus + itemEntity: DefendPlus + icon: badge/DefendPlus + sellValue: 250 + sortValue: 70 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_DEFEND_PLUS + potencyA: 0 + potencyB: 0 +- HappyFlowerA: + category: BADGE + nameMsg: MSG_ItemName_HappyFlower + fullDescMsg: MSG_ItemFullDesc_HappyFlower + shortDescMsg: MSG_ItemShortDesc_HappyFlower + hudElement: HappyFlower + itemEntity: HappyFlower + icon: badge/HappyFlower + sellValue: 100 + sortValue: 46 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_HAPPY_FLOWER + potencyA: 0 + potencyB: 0 +- HappyFlowerB: + category: BADGE + nameMsg: MSG_ItemName_HappyFlower + fullDescMsg: MSG_ItemFullDesc_HappyFlower + shortDescMsg: MSG_ItemShortDesc_HappyFlower + hudElement: HappyFlower + itemEntity: HappyFlower + icon: badge/HappyFlower + sellValue: 100 + sortValue: 46 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_HAPPY_FLOWER + potencyA: 0 + potencyB: 0 +- HappyFlowerX: + category: BADGE + nameMsg: MSG_ItemName_HappyFlower + fullDescMsg: MSG_ItemFullDesc_HappyFlower + shortDescMsg: MSG_ItemShortDesc_HappyFlower + hudElement: HappyFlower + itemEntity: HappyFlower + icon: badge/HappyFlower + sellValue: 100 + sortValue: 46 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_HAPPY_FLOWER + potencyA: 0 + potencyB: 0 +- GroupFocus: + category: BADGE + nameMsg: MSG_ItemName_GroupFocus + fullDescMsg: MSG_ItemFullDesc_GroupFocus + shortDescMsg: MSG_ItemShortDesc_GroupFocus + hudElement: GroupFocus + itemEntity: GroupFocus + icon: badge/GroupFocus + sellValue: 100 + sortValue: 35 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_GROUP_FOCUS + potencyA: 0 + potencyB: 0 +- Peekaboo: + category: BADGE + nameMsg: MSG_ItemName_Peekaboo + fullDescMsg: MSG_ItemFullDesc_Peekaboo + shortDescMsg: MSG_ItemShortDesc_Peekaboo + hudElement: Peekaboo + itemEntity: Peekaboo + icon: badge/Peekaboo + sellValue: 100 + sortValue: 37 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_PEEKABOO + potencyA: 0 + potencyB: 0 +- AttackFX_D: + category: BADGE + nameMsg: MSG_ItemName_AttackFXD + fullDescMsg: MSG_ItemFullDesc_AttackFXD + shortDescMsg: MSG_ItemShortDesc_AttackFXD + hudElement: AttackFXD + itemEntity: AttackFXD + icon: badge/AttackFXD + sellValue: 30 + sortValue: 115 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_ATTACK_FX_D + potencyA: 0 + potencyB: 0 +- AttackFX_B: + category: BADGE + nameMsg: MSG_ItemName_AttackFXB + fullDescMsg: MSG_ItemFullDesc_AttackFXB + shortDescMsg: MSG_ItemShortDesc_AttackFXB + hudElement: AttackFXB + itemEntity: AttackFXB + icon: badge/AttackFXB + sellValue: 30 + sortValue: 113 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_ATTACK_FX_B + potencyA: 0 + potencyB: 0 +- AttackFX_E: + category: BADGE + nameMsg: MSG_ItemName_AttackFXE + fullDescMsg: MSG_ItemFullDesc_AttackFXE + shortDescMsg: MSG_ItemShortDesc_AttackFXE + hudElement: AttackFXE + itemEntity: AttackFXE + icon: badge/AttackFXE + sellValue: 30 + sortValue: 116 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_ATTACK_FX_E + potencyA: 0 + potencyB: 0 +- AttackFX_C: + category: BADGE + nameMsg: MSG_ItemName_AttackFXC + fullDescMsg: MSG_ItemFullDesc_AttackFXC + shortDescMsg: MSG_ItemShortDesc_AttackFXC + hudElement: AttackFXC + itemEntity: AttackFXC + icon: badge/AttackFXC + sellValue: 30 + sortValue: 114 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_ATTACK_FX_C + potencyA: 0 + potencyB: 0 +- AttackFX_F: + category: BADGE + nameMsg: MSG_ItemName_AttackFXF + fullDescMsg: MSG_ItemFullDesc_AttackFXF + shortDescMsg: MSG_ItemShortDesc_AttackFXF + hudElement: AttackFXF + itemEntity: AttackFXF + icon: badge/AttackFXF + sellValue: 30 + sortValue: 117 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_ATTACK_FX_F + potencyA: 0 + potencyB: 0 +- HPPlusC: + category: BADGE + nameMsg: MSG_ItemName_HPPlus + fullDescMsg: MSG_ItemFullDesc_HPPlus + shortDescMsg: MSG_ItemShortDesc_HPPlus + hudElement: HPPlus + itemEntity: HPPlus + icon: badge/HPPlus + sellValue: 150 + sortValue: 53 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_HP_PLUS + potencyA: 0 + potencyB: 0 +- HPPlusX: + category: BADGE + nameMsg: MSG_ItemName_HPPlus + fullDescMsg: MSG_ItemFullDesc_HPPlus + shortDescMsg: MSG_ItemShortDesc_HPPlus + hudElement: HPPlus + itemEntity: HPPlus + icon: badge/HPPlus + sellValue: 150 + sortValue: 53 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_HP_PLUS + potencyA: 0 + potencyB: 0 +- HPPlusY: + category: BADGE + nameMsg: MSG_ItemName_HPPlus + fullDescMsg: MSG_ItemFullDesc_HPPlus + shortDescMsg: MSG_ItemShortDesc_HPPlus + hudElement: HPPlus + itemEntity: HPPlus + icon: badge/HPPlus + sellValue: 150 + sortValue: 53 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_HP_PLUS + potencyA: 0 + potencyB: 0 +- FPPlusC: + category: BADGE + nameMsg: MSG_ItemName_FPPlus + fullDescMsg: MSG_ItemFullDesc_FPPlus + shortDescMsg: MSG_ItemShortDesc_FPPlus + hudElement: FPPlus + itemEntity: FPPlus + icon: badge/FPPlus + sellValue: 150 + sortValue: 58 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_FP_PLUS + potencyA: 0 + potencyB: 0 +- FPPlusX: + category: BADGE + nameMsg: MSG_ItemName_FPPlus + fullDescMsg: MSG_ItemFullDesc_FPPlus + shortDescMsg: MSG_ItemShortDesc_FPPlus + hudElement: FPPlus + itemEntity: FPPlus + icon: badge/FPPlus + sellValue: 150 + sortValue: 58 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_FP_PLUS + potencyA: 0 + potencyB: 0 +- FPPlusY: + category: BADGE + nameMsg: MSG_ItemName_FPPlus + fullDescMsg: MSG_ItemFullDesc_FPPlus + shortDescMsg: MSG_ItemShortDesc_FPPlus + hudElement: FPPlus + itemEntity: FPPlus + icon: badge/FPPlus + sellValue: 150 + sortValue: 58 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_FP_PLUS + potencyA: 0 + potencyB: 0 +- HealthyHealthy: + category: BADGE + nameMsg: MSG_ItemName_HealthyHealthy + fullDescMsg: MSG_ItemFullDesc_HealthyHealthy + shortDescMsg: MSG_ItemShortDesc_HealthyHealthy + hudElement: HealthyHealthy + itemEntity: HealthyHealthy + icon: badge/HealthyHealthy + sellValue: 100 + sortValue: 93 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_HEALTHY_HEALTHY + potencyA: 0 + potencyB: 0 +- UnusedAttackFX_1: + category: BADGE + nameMsg: MSG_ItemName_AttackFXF + fullDescMsg: MSG_ItemFullDesc_AttackFXF + shortDescMsg: MSG_ItemShortDesc_AttackFXF + hudElement: AttackFXF + itemEntity: Placeholder + icon: key/Gift + sellValue: 30 + sortValue: 117 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_ATTACK_FX_F + potencyA: 0 + potencyB: 0 +- UnusedAttackFX_2: + category: BADGE + nameMsg: MSG_ItemName_AttackFXF + fullDescMsg: MSG_ItemFullDesc_AttackFXF + shortDescMsg: MSG_ItemShortDesc_AttackFXF + hudElement: AttackFXF + itemEntity: Placeholder + icon: key/Gift + sellValue: 30 + sortValue: 117 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_ATTACK_FX_F + potencyA: 0 + potencyB: 0 +- UnusedAttackFX_3: + category: BADGE + nameMsg: MSG_ItemName_AttackFXF + fullDescMsg: MSG_ItemFullDesc_AttackFXF + shortDescMsg: MSG_ItemShortDesc_AttackFXF + hudElement: AttackFXF + itemEntity: Placeholder + icon: key/Gift + sellValue: 30 + sortValue: 117 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_ATTACK_FX_F + potencyA: 0 + potencyB: 0 +- UnusedAttackFX_4: + category: BADGE + nameMsg: MSG_ItemName_AttackFXF + fullDescMsg: MSG_ItemFullDesc_AttackFXF + shortDescMsg: MSG_ItemShortDesc_AttackFXF + hudElement: AttackFXF + itemEntity: Placeholder + icon: key/Gift + sellValue: 30 + sortValue: 117 + targetFlags: [] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_ATTACK_FX_F + potencyA: 0 + potencyB: 0 +- PartnerAttack: + category: UTILITY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: HES_MoveDiamond + itemEntity: Placeholder + icon: key/Gift + sellValue: 1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_BADGE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Heart: + category: UTILITY + nameMsg: MSG_ItemName_Heart + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: Heart + itemEntity: Heart + icon: anim/heart_0 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Coin: + category: UTILITY + nameMsg: MSG_ItemName_Coin + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: Coin + itemEntity: Coin + icon: anim/coin_0 + sellValue: 1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_COLLECTABLE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- HeartPiece: + category: UTILITY + nameMsg: MSG_ItemName_HeartPiece + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: HeartPiece + itemEntity: HeartPiece + icon: anim/heart_piece + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_COLLECTABLE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- StarPoint: + category: UTILITY + nameMsg: MSG_ItemName_StarPoint + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: StarPoint + itemEntity: StarPoint + icon: anim/sp_0 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_COLLECTABLE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- HeartPoint: + category: UTILITY + nameMsg: MSG_ItemName_HeartPoint + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: HeartPoint + itemEntity: HeartPoint + icon: anim/hp_0 + sellValue: -1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_COLLECTABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- FlowerPoint: + category: UTILITY + nameMsg: MSG_ItemName_FlowerPoint + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: FlowerPoint + itemEntity: FlowerPoint + icon: anim/fp_0 + sellValue: 1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_COLLECTABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- StarPiece: + category: UTILITY + nameMsg: MSG_ItemName_StarPiece + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: StarPiece + itemEntity: StarPiece + icon: anim/star_piece_0 + sellValue: 1 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_COLLECTABLE, ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- Present: + category: DUMMY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: Present + itemEntity: Present + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- CakeDone: + category: DUMMY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: CakeDone + itemEntity: CakeDone + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- CakeBare: + category: DUMMY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: CakeBare + itemEntity: CakeBare + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- CakePan: + category: DUMMY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: CakePan + itemEntity: CakePan + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- CakeBatter: + category: DUMMY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: CakeBatter + itemEntity: CakeBatter + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- CakeBowl: + category: DUMMY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: CakeBowl + itemEntity: CakeBowl + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- CakeMixed: + category: DUMMY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: CakeMixed + itemEntity: CakeMixed + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- CakeWithIcing: + category: DUMMY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: CakeWithIcing + itemEntity: CakeWithIcing + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- CakeWithBerries: + category: DUMMY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: CakeWithBerries + itemEntity: CakeWithBerries + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- MenuHammer1: + category: DUMMY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: MenuHammer1 + itemEntity: MenuHammer1 + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- MenuHammer2: + category: DUMMY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: MenuHammer2 + itemEntity: MenuHammer2 + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- MenuHammer3: + category: DUMMY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: MenuHammer3 + itemEntity: MenuHammer3 + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- MenuBoots1: + category: DUMMY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: MenuBoots1 + itemEntity: MenuBoots1 + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- MenuBoots2: + category: DUMMY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: MenuBoots2 + itemEntity: MenuBoots2 + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- MenuBoots3: + category: DUMMY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: MenuBoots3 + itemEntity: MenuBoots3 + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 +- MenuItems: + category: DUMMY + nameMsg: MSG_NONE + fullDescMsg: MSG_NONE + shortDescMsg: MSG_NONE + hudElement: MenuItems + itemEntity: MenuItems + sellValue: 0 + sortValue: 0 + targetFlags: [ TARGET_FLAG_PLAYER ] + typeFlags: [ ITEM_TYPE_FLAG_ENTITY_FULLSIZE ] + moveID: MOVE_NONE + potencyA: 0 + potencyB: 0 diff --git a/src/level_up.c b/src/level_up.c index 657876feedc..4299ca9ca0c 100644 --- a/src/level_up.c +++ b/src/level_up.c @@ -3,6 +3,7 @@ #include "entity.h" #include "include_asset.h" +#if !VERSION_PAL Lights1 level_up_lights = gdSPDefLights1(0, 0, 0, 0, 0, 0, 0, 0, 0); #if VERSION_JP @@ -256,6 +257,7 @@ Gfx D_802A7A88_7A59C8[] = { gsSPDisplayList(D_802A7A28_7A5968), gsSPEndDisplayList(), }; +#endif INCLUDE_IMG("level_up/heart.png", level_up_heart_png); INCLUDE_PAL("level_up/heart.pal", level_up_heart_pal); @@ -272,6 +274,27 @@ INCLUDE_PAL("level_up/BP.pal", level_up_BP_pal); INCLUDE_IMG("level_up/HP.png", level_up_HP_png); INCLUDE_PAL("level_up/HP.pal", level_up_HP_pal); +#if VERSION_PAL +INCLUDE_IMG("de/level_up/FP.png", level_up_FP_de_png); +INCLUDE_PAL("de/level_up/FP.pal", level_up_FP_de_pal); +INCLUDE_IMG("de/level_up/BP.png", level_up_BP_de_png); +INCLUDE_PAL("de/level_up/BP.pal", level_up_BP_de_pal); +INCLUDE_IMG("de/level_up/HP.png", level_up_HP_de_png); +INCLUDE_PAL("de/level_up/HP.pal", level_up_HP_de_pal); +INCLUDE_IMG("fr/level_up/FP.png", level_up_FP_fr_png); +INCLUDE_PAL("fr/level_up/FP.pal", level_up_FP_fr_pal); +INCLUDE_IMG("fr/level_up/BP.png", level_up_BP_fr_png); +INCLUDE_PAL("fr/level_up/BP.pal", level_up_BP_fr_pal); +INCLUDE_IMG("fr/level_up/HP.png", level_up_HP_fr_png); +INCLUDE_PAL("fr/level_up/HP.pal", level_up_HP_fr_pal); +INCLUDE_IMG("es/level_up/FP.png", level_up_FP_es_png); +INCLUDE_PAL("es/level_up/FP.pal", level_up_FP_es_pal); +INCLUDE_IMG("es/level_up/BP.png", level_up_BP_es_png); +INCLUDE_PAL("es/level_up/BP.pal", level_up_BP_es_pal); +INCLUDE_IMG("es/level_up/HP.png", level_up_HP_es_png); +INCLUDE_PAL("es/level_up/HP.pal", level_up_HP_es_pal); +#endif + INCLUDE_IMG("level_up/digit_0.png", level_up_digit_0_png); INCLUDE_PAL("level_up/digit_0.pal", level_up_digit_0_pal); INCLUDE_IMG("level_up/digit_1.png", level_up_digit_1_png); @@ -407,7 +430,18 @@ INCLUDE_PAL("level_up/small_arrow.blue.pal", level_up_small_arrow_blue_pal); INCLUDE_IMG("level_up/select_one_to_upgrade.png", level_up_select_one_to_upgrade_png); INCLUDE_PAL("level_up/select_one_to_upgrade.pal", level_up_select_one_to_upgrade_pal); +#if VERSION_PAL +INCLUDE_IMG("de/level_up/select_one_to_upgrade.png", level_up_select_one_to_upgrade_de_png); +INCLUDE_PAL("de/level_up/select_one_to_upgrade.pal", level_up_select_one_to_upgrade_de_pal); +INCLUDE_IMG("fr/level_up/select_one_to_upgrade.png", level_up_select_one_to_upgrade_fr_png); +INCLUDE_PAL("fr/level_up/select_one_to_upgrade.pal", level_up_select_one_to_upgrade_fr_pal); +INCLUDE_IMG("es/level_up/select_one_to_upgrade.png", level_up_select_one_to_upgrade_es_png); +INCLUDE_PAL("es/level_up/select_one_to_upgrade.pal", level_up_select_one_to_upgrade_es_pal); +#endif + +#if !VERSION_PAL EntityModelScript EMS_level_up = STANDARD_ENTITY_MODEL_SCRIPT(D_802A7A88_7A59C8, RENDER_MODE_CLOUD_NO_ZCMP); +#endif HudScript HES_level_up_heart = HES_TEMPLATE_CI_ENUM_SIZE(level_up_heart, 40, 40); HudScript HES_level_up_heart_copy = HES_TEMPLATE_CI_ENUM_SIZE(level_up_heart, 40, 40); @@ -416,6 +450,11 @@ HudScript HES_level_up_leaves = HES_TEMPLATE_CI_ENUM_SIZE(level_up_leaves, 40, 4 HudScript HES_level_up_badge = HES_TEMPLATE_CI_ENUM_SIZE(level_up_badge, 40, 40); HudScript HES_level_up_FP = HES_TEMPLATE_CI_CUSTOM_SIZE(level_up_FP, 32, 24); +#if VERSION_PAL +HudScript HES_level_up_FP_de = HES_TEMPLATE_CI_CUSTOM_SIZE(level_up_FP_de, 32, 24); +HudScript HES_level_up_FP_fr = HES_TEMPLATE_CI_CUSTOM_SIZE(level_up_FP_fr, 32, 24); +HudScript HES_level_up_FP_es = HES_TEMPLATE_CI_CUSTOM_SIZE(level_up_FP_es, 32, 24); +#endif HudScript HES_level_up_green_digit_0 = HES_TEMPLATE_CI_ENUM_SIZE(level_up_digit_0, 8, 16); HudScript HES_level_up_green_digit_1 = HES_TEMPLATE_CI_ENUM_SIZE(level_up_digit_1, 8, 16); HudScript HES_level_up_green_digit_2 = HES_TEMPLATE_CI_ENUM_SIZE(level_up_digit_2, 8, 16); @@ -439,6 +478,11 @@ HudScript HES_level_up_small_green_digit_9 = HES_TEMPLATE_CI_ENUM_SIZE(level_up_ HudScript HES_level_up_small_green_arrow = HES_TEMPLATE_CI_ENUM_SIZE(level_up_small_arrow, 8, 8); HudScript HES_level_up_HP = HES_TEMPLATE_CI_CUSTOM_SIZE(level_up_HP, 32, 24); +#if VERSION_PAL +HudScript HES_level_up_HP_de = HES_TEMPLATE_CI_CUSTOM_SIZE(level_up_HP_de, 32, 24); +HudScript HES_level_up_HP_fr = HES_TEMPLATE_CI_CUSTOM_SIZE(level_up_HP_fr, 32, 24); +HudScript HES_level_up_HP_es = HES_TEMPLATE_CI_CUSTOM_SIZE(level_up_HP_es, 32, 24); +#endif HudScript HES_level_up_red_digit_0 = HES_TEMPLATE_CI_ENUM_SIZE(level_up_digit_0_red, 8, 16); HudScript HES_level_up_red_digit_1 = HES_TEMPLATE_CI_ENUM_SIZE(level_up_digit_1_red, 8, 16); HudScript HES_level_up_red_digit_2 = HES_TEMPLATE_CI_ENUM_SIZE(level_up_digit_2_red, 8, 16); @@ -462,6 +506,11 @@ HudScript HES_level_up_small_red_digit_9 = HES_TEMPLATE_CI_ENUM_SIZE(level_up_sm HudScript HES_level_up_small_red_arrow = HES_TEMPLATE_CI_ENUM_SIZE(level_up_small_arrow_red, 8, 8); HudScript HES_level_up_BP = HES_TEMPLATE_CI_CUSTOM_SIZE(level_up_BP, 32, 24); +#if VERSION_PAL +HudScript HES_level_up_BP_de = HES_TEMPLATE_CI_CUSTOM_SIZE(level_up_BP_de, 32, 24); +HudScript HES_level_up_BP_fr = HES_TEMPLATE_CI_CUSTOM_SIZE(level_up_BP_fr, 32, 24); +HudScript HES_level_up_BP_es = HES_TEMPLATE_CI_CUSTOM_SIZE(level_up_BP_es, 32, 24); +#endif HudScript HES_level_up_blue_digit_0 = HES_TEMPLATE_CI_ENUM_SIZE(level_up_digit_0_blue, 8, 16); HudScript HES_level_up_blue_digit_1 = HES_TEMPLATE_CI_ENUM_SIZE(level_up_digit_1_blue, 8, 16); HudScript HES_level_up_blue_digit_2 = HES_TEMPLATE_CI_ENUM_SIZE(level_up_digit_2_blue, 8, 16); @@ -485,3 +534,8 @@ HudScript HES_level_up_small_blue_digit_9 = HES_TEMPLATE_CI_ENUM_SIZE(level_up_s HudScript HES_level_up_small_blue_arrow = HES_TEMPLATE_CI_ENUM_SIZE(level_up_small_arrow_blue, 8, 8); HudScript HES_level_up_select_one_to_upgrade = HES_TEMPLATE_CI_CUSTOM_SIZE(level_up_select_one_to_upgrade, 208, 16); +#if VERSION_PAL +HudScript HES_level_up_select_one_to_upgrade_de = HES_TEMPLATE_CI_CUSTOM_SIZE(level_up_select_one_to_upgrade_de, 208, 16); +HudScript HES_level_up_select_one_to_upgrade_fr = HES_TEMPLATE_CI_CUSTOM_SIZE(level_up_select_one_to_upgrade_fr, 208, 16); +HudScript HES_level_up_select_one_to_upgrade_es = HES_TEMPLATE_CI_CUSTOM_SIZE(level_up_select_one_to_upgrade_es, 208, 16); +#endif diff --git a/src/level_up_letters_en_de.c b/src/level_up_letters_en_de.c new file mode 100644 index 00000000000..e6268ff319b --- /dev/null +++ b/src/level_up_letters_en_de.c @@ -0,0 +1,160 @@ +#include "common.h" +#include "entity.h" +#include "include_asset.h" + +Lights1 level_up_letters_en_de_lights = gdSPDefLights1(0, 0, 0, 0, 0, 0, 0, 0, 0); + +#include "level_up/draw_second_E.vtx.inc.c" +#include "level_up/draw_V.vtx.inc.c" +#include "level_up/draw_E.vtx.inc.c" +#include "level_up/draw_second_L.vtx.inc.c" +#include "level_up/draw_L.vtx.inc.c" +#include "level_up/draw_P.vtx.inc.c" +#include "level_up/draw_U.vtx.inc.c" +#include "level_up/draw_exclamation_mark.vtx.inc.c" + +INCLUDE_IMG("level_up/big_V.png", D_PAL_802A6838_7F8418); +#include "level_up/big_V.gfx.inc.c" +INCLUDE_IMG("level_up/big_P.png", D_PAL_802A78B0_7F9490); +#include "level_up/big_P.gfx.inc.c" +INCLUDE_IMG("level_up/big_exclamation_mark.png", D_PAL_802A8928_7FA508); +#include "level_up/big_exclamation_mark.gfx.inc.c" +INCLUDE_IMG("level_up/big_U.png", D_PAL_802A99A0_7FB580); +#include "level_up/big_U.gfx.inc.c" +INCLUDE_IMG("level_up/big_L.png", D_PAL_802AAA18_7FC5F8); +#include "level_up/big_L.gfx.inc.c" +INCLUDE_IMG("level_up/big_E.png", D_PAL_802ABA90_7FD670); +#include "level_up/big_E.gfx.inc.c" + +Gfx D_PAL_802ACB08_7FE6E8[] = { + gsSPSetLights1(level_up_letters_en_de_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802A9928_7FB508), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A67B8_7F8398[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ACB70_7FE750[] = { + gsSPSetLights1(level_up_letters_en_de_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802AA9A0_7FC580), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A6738_7F8318[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ACBD8_7FE7B8[] = { + gsSPSetLights1(level_up_letters_en_de_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802A88B0_7FA490), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A66B8_7F8298[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ACC40_7FE820[] = { + gsSPSetLights1(level_up_letters_en_de_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802ABA18_7FD5F8), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A6638_7F8218[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ACCA8_7FE888[] = { + gsSPSetLights1(level_up_letters_en_de_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802ABA18_7FD5F8), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A65B8_7F8198[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ACD10_7FE8F0[] = { + gsSPSetLights1(level_up_letters_en_de_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802ACA90_7FE670), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A6538_7F8118[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ACD78_7FE958[] = { + gsSPSetLights1(level_up_letters_en_de_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802A7838_7F9418), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A64B8_7F8098[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ACDE0_7FE9C0[] = { + gsSPSetLights1(level_up_letters_en_de_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802ACA90_7FE670), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A6438_7F8018[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ACE48_7FEA28[] = { + gsSPSetLights1(level_up_letters_en_de_lights), + gsSPDisplayList(D_PAL_802ACDE0_7FE9C0), + gsSPDisplayList(D_PAL_802ACD78_7FE958), + gsSPDisplayList(D_PAL_802ACD10_7FE8F0), + gsSPDisplayList(D_PAL_802ACCA8_7FE888), + gsSPDisplayList(D_PAL_802ACC40_7FE820), + gsSPDisplayList(D_PAL_802ACBD8_7FE7B8), + gsSPDisplayList(D_PAL_802ACB70_7FE750), + gsSPDisplayList(D_PAL_802ACB08_7FE6E8), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ACEA8_7FEA88[] = { + gsSPSetLights1(level_up_letters_en_de_lights), + gsSPDisplayList(D_PAL_802ACE48_7FEA28), + gsSPEndDisplayList(), +}; + +EntityModelScript EMS_level_up_en_de = STANDARD_ENTITY_MODEL_SCRIPT(D_PAL_802ACEA8_7FEA88, RENDER_MODE_CLOUD_NO_ZCMP); diff --git a/src/level_up_letters_es.c b/src/level_up_letters_es.c new file mode 100644 index 00000000000..b5e27307457 --- /dev/null +++ b/src/level_up_letters_es.c @@ -0,0 +1,146 @@ +#include "common.h" +#include "entity.h" +#include "include_asset.h" + +Lights1 level_up_letters_es_lights = gdSPDefLights1(0, 0, 0, 0, 0, 0, 0, 0, 0); + +#include "es/level_up/draw_UB.vtx.inc.c" +#include "es/level_up/draw_ES.vtx.inc.c" +#include "es/level_up/draw_UN.vtx.inc.c" +#include "es/level_up/draw_inverted_excl_mark_S.vtx.inc.c" +#include "es/level_up/draw_NI.vtx.inc.c" +#include "es/level_up/draw_L_exclamation_mark.vtx.inc.c" +#include "es/level_up/draw_VE.vtx.inc.c" + +INCLUDE_IMG("es/level_up/big_inverted_excl_mark_S.png", D_PAL_802A67B8_8069A8); +#include "es/level_up/big_inverted_excl_mark_S.gfx.inc.c" +INCLUDE_IMG("es/level_up/big_UB.png", D_PAL_802A7830_807A20); +#include "es/level_up/big_UB.gfx.inc.c" +INCLUDE_IMG("es/level_up/big_ES.png", D_PAL_802A88A8_808A98); +#include "es/level_up/big_ES.gfx.inc.c" +INCLUDE_IMG("es/level_up/big_UN.png", D_PAL_802A9920_809B10); +#include "es/level_up/big_UN.gfx.inc.c" +INCLUDE_IMG("es/level_up/big_NI.png", D_PAL_802AA998_80AB88); +#include "es/level_up/big_NI.gfx.inc.c" +INCLUDE_IMG("es/level_up/big_VE.png", D_PAL_802ABA10_80BC00); +#include "es/level_up/big_VE.gfx.inc.c" +INCLUDE_IMG("es/level_up/big_L_exclamation_mark.png", D_PAL_802ACA88_80CC78); +#include "es/level_up/big_L_exclamation_mark.gfx.inc.c" + +Gfx D_PAL_802ADB00_80DCF0[] = { + gsSPSetLights1(level_up_letters_es_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802ACA10_80CC00), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A6738_806928[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADB68_80DD58[] = { + gsSPSetLights1(level_up_letters_es_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802ADA88_80DC78), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A66B8_8068A8[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADBD0_80DDC0[] = { + gsSPSetLights1(level_up_letters_es_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802AB998_80BB88), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A6638_806828[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADC38_80DE28[] = { + gsSPSetLights1(level_up_letters_es_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802A77B8_8079A8), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A65B8_8067A8[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADCA0_80DE90[] = { + gsSPSetLights1(level_up_letters_es_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802AA920_80AB10), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A6538_806728[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADD08_80DEF8[] = { + gsSPSetLights1(level_up_letters_es_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802A98A8_809A98), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A64B8_8066A8[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADD70_80DF60[] = { + gsSPSetLights1(level_up_letters_es_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802A8830_808A20), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A6438_806628[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADDD8_80DFC8[] = { + gsSPSetLights1(level_up_letters_es_lights), + gsSPDisplayList(D_PAL_802ADD70_80DF60), + gsSPDisplayList(D_PAL_802ADD08_80DEF8), + gsSPDisplayList(D_PAL_802ADCA0_80DE90), + gsSPDisplayList(D_PAL_802ADC38_80DE28), + gsSPDisplayList(D_PAL_802ADBD0_80DDC0), + gsSPDisplayList(D_PAL_802ADB68_80DD58), + gsSPDisplayList(D_PAL_802ADB00_80DCF0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADE30_80E020[] = { + gsSPSetLights1(level_up_letters_es_lights), + gsSPDisplayList(D_PAL_802ADDD8_80DFC8), + gsSPEndDisplayList(), +}; + +EntityModelScript EMS_level_up_es = STANDARD_ENTITY_MODEL_SCRIPT(D_PAL_802ADE30_80E020, RENDER_MODE_CLOUD_NO_ZCMP); diff --git a/src/level_up_letters_fr.c b/src/level_up_letters_fr.c new file mode 100644 index 00000000000..551d99dc695 --- /dev/null +++ b/src/level_up_letters_fr.c @@ -0,0 +1,163 @@ +#include "common.h" +#include "entity.h" +#include "include_asset.h" + +Lights1 level_up_letters_fr_lights = gdSPDefLights1(0, 0, 0, 0, 0, 0, 0, 0, 0); + +#include "fr/level_up/draw_NI.vtx.inc.c" +#include "fr/level_up/draw_VE.vtx.inc.c" +#include "fr/level_up/draw_AU.vtx.inc.c" +#include "fr/level_up/draw_SU.vtx.inc.c" +#include "fr/level_up/draw_PE.vtx.inc.c" +#include "fr/level_up/draw_RI.vtx.inc.c" +#include "fr/level_up/draw_EU.vtx.inc.c" +#include "fr/level_up/draw_R_exclamation_mark.vtx.inc.c" +INCLUDE_IMG("fr/level_up/big_NI.png", D_PAL_802A6838_7FEEE8); +INCLUDE_IMG("fr/level_up/big_VE.png", D_PAL_802A75B8_7FFC68); +INCLUDE_IMG("fr/level_up/big_AU.png", D_PAL_802A82B8_800968); +INCLUDE_IMG("fr/level_up/big_SU.png", D_PAL_802A9078_801728); +INCLUDE_IMG("fr/level_up/big_RI.png", D_PAL_802A9E38_8024E8); +INCLUDE_IMG("fr/level_up/big_EU.png", D_PAL_802AABF8_8032A8); +INCLUDE_IMG("fr/level_up/big_R_exclamation_mark.png", D_PAL_802AB9B8_804068); +INCLUDE_IMG("fr/level_up/big_PE.png", D_PAL_802AC7B8_804E68); +#include "fr/level_up/big_NI.gfx.inc.c" +#include "fr/level_up/big_VE.gfx.inc.c" +#include "fr/level_up/big_AU.gfx.inc.c" +#include "fr/level_up/big_SU.gfx.inc.c" +#include "fr/level_up/big_PE.gfx.inc.c" +#include "fr/level_up/big_RI.gfx.inc.c" +#include "fr/level_up/big_EU.gfx.inc.c" +#include "fr/level_up/big_R_exclamation_mark.gfx.inc.c" + +Gfx D_PAL_802ADB78_806228[] = { + gsSPSetLights1(level_up_letters_fr_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802ADB00_8061B0), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A67B8_7FEE68[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADBE0_806290[] = { + gsSPSetLights1(level_up_letters_fr_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802ADA88_806138), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A6738_7FEDE8[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADC48_8062F8[] = { + gsSPSetLights1(level_up_letters_fr_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802ADA10_8060C0), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A66B8_7FED68[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADCB0_806360[] = { + gsSPSetLights1(level_up_letters_fr_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802AD998_806048), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A6638_7FECE8[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADD18_8063C8[] = { + gsSPSetLights1(level_up_letters_fr_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802AD920_805FD0), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A65B8_7FEC68[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADD80_806430[] = { + gsSPSetLights1(level_up_letters_fr_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802AD8A8_805F58), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A6538_7FEBE8[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADDE8_806498[] = { + gsSPSetLights1(level_up_letters_fr_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802AD830_805EE0), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A64B8_7FEB68[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADE50_806500[] = { + gsSPSetLights1(level_up_letters_fr_lights), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802AD7B8_805E68), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802A6438_7FEAE8[0], 8, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADEB8_806568[] = { + gsSPSetLights1(level_up_letters_fr_lights), + gsSPDisplayList(D_PAL_802ADE50_806500), + gsSPDisplayList(D_PAL_802ADDE8_806498), + gsSPDisplayList(D_PAL_802ADD80_806430), + gsSPDisplayList(D_PAL_802ADD18_8063C8), + gsSPDisplayList(D_PAL_802ADCB0_806360), + gsSPDisplayList(D_PAL_802ADC48_8062F8), + gsSPDisplayList(D_PAL_802ADBE0_806290), + gsSPDisplayList(D_PAL_802ADB78_806228), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADF18_8065C8[] = { + gsSPSetLights1(level_up_letters_fr_lights), + gsSPDisplayList(D_PAL_802ADEB8_806568), + gsSPEndDisplayList(), +}; + +EntityModelScript EMS_level_up_fr = STANDARD_ENTITY_MODEL_SCRIPT(D_PAL_802ADF18_8065C8, RENDER_MODE_CLOUD_NO_ZCMP); diff --git a/src/main.c b/src/main.c index d623211f860..e23cdd4caa1 100644 --- a/src/main.c +++ b/src/main.c @@ -4,7 +4,9 @@ // TODO move these somewhere else... u8 nuYieldBuf[NU_GFX_YIELD_BUF_SIZE]; OSThread __osThreadSave; +#if !VERSION_PAL u8 nuBootStack[0x2000] ALIGNED(8); +#endif // used in effects/gfx/flame.c unsigned char D_800B32E0[0x800] ALIGNED(16); @@ -53,6 +55,16 @@ void boot_main(void* data) { } else { PANIC(); } +#elif VERSION_PAL + if (osTvType == OS_TV_PAL) { + osViSetMode(&osViModeFpalLpn1); + osViSetYScale(0.833f); + osViSetSpecialFeatures(OS_VI_GAMMA_OFF | OS_VI_GAMMA_DITHER_OFF | OS_VI_DIVOT_ON | OS_VI_DITHER_FILTER_ON); + } else { + PANIC(); + } + + nuGfxDisplayOff(); #else // not VERSION_JP if (osTvType == OS_TV_NTSC) { osViSetMode(&osViModeNtscLan1); @@ -68,7 +80,7 @@ void boot_main(void* data) { crash_screen_init(); #endif -#if !VERSION_IQUE +#if !VERSION_IQUE && !VERSION_PAL is_debug_init(); #endif nuGfxInit(); diff --git a/src/msg.c b/src/msg.c index 21f0a3ebc87..75ad40f31ed 100644 --- a/src/msg.c +++ b/src/msg.c @@ -636,9 +636,6 @@ extern IMG_PTR MsgLetterRasterOffsets[]; extern PAL_PTR MsgLetterPaletteOffsets[]; extern MsgVoice MsgVoices[]; -#if VERSION_PAL -INCLUDE_ASM(s32, "msg", msg_copy_to_print_buffer); -#else void msg_copy_to_print_buffer(MessagePrintState* printer, s32 arg1, s32 arg2) { u8 arg; u8 argQ; @@ -778,6 +775,11 @@ void msg_copy_to_print_buffer(MessagePrintState* printer, s32 arg1, s32 arg2) { printer->windowBasePos.y = *srcBuf++; printer->windowSize.x = *srcBuf++; printer->windowSize.y = *srcBuf++; +#if VERSION_PAL + if (printer->windowSize.x == 255) { + printer->windowSize.x = 276; + } +#endif sfx_play_sound_with_params(SOUND_APPROVE, 0, 0, 0); printer->windowState = MSG_WINDOW_STATE_OPENING; printer->delayFlags |= MSG_DELAY_FLAG_1; @@ -1304,7 +1306,6 @@ void msg_copy_to_print_buffer(MessagePrintState* printer, s32 arg1, s32 arg2) { printer->srcBufferPos = (u16)(s32)(srcBuf - (s32)printer->srcBuffer); *printBuf = MSG_CHAR_PRINT_END; } -#endif void initialize_printer(MessagePrintState* printer, s32 arg1, s32 arg2) { s32 i; diff --git a/src/msg_data.c b/src/msg_data.c index 96a9b4a18dd..b20ea5d5b61 100644 --- a/src/msg_data.c +++ b/src/msg_data.c @@ -694,9 +694,15 @@ u8 MsgCharWidthNormal[] = { [MSG_CHAR_LOWER_E_ACUTE] 8, [MSG_CHAR_LOWER_E_CIRCUMFLEX] 8, [MSG_CHAR_LOWER_E_UMLAUT] 8, +#if VERSION_PAL + [MSG_CHAR_LOWER_I_GRAVE] 4, + [MSG_CHAR_LOWER_I_ACUTE] 4, + [MSG_CHAR_LOWER_I_CIRCUMFLEX] 5, +#else [MSG_CHAR_LOWER_I_GRAVE] 6, [MSG_CHAR_LOWER_I_ACUTE] 6, [MSG_CHAR_LOWER_I_CIRCUMFLEX] 6, +#endif [MSG_CHAR_LOWER_I_UMLAUT] 7, [MSG_CHAR_LOWER_N_TILDE] 9, [MSG_CHAR_LOWER_O_GRAVE] 7, diff --git a/src/msg_draw.c b/src/msg_draw.c index 4c677f7bc98..a2eef7118ec 100644 --- a/src/msg_draw.c +++ b/src/msg_draw.c @@ -203,8 +203,13 @@ void draw_message_window(MessagePrintState* printer) { #endif #if VERSION_PAL -INCLUDE_ASM(s32, "msg_draw", appendGfx_message); +#define MSG_FADE_IN_DURATION 6 +#define MSG_FADE_OUT_DURATION 4 #else +#define MSG_FADE_IN_DURATION 7 +#define MSG_FADE_OUT_DURATION 5 +#endif + void appendGfx_message(MessagePrintState* printer, s16 posX, s16 posY, u16 additionalOffsetX, u16 additionalOffsetY, u16 flag, u8 alpha) { SpriteRasterInfo sprRasterInfo; @@ -508,24 +513,24 @@ void appendGfx_message(MessagePrintState* printer, s16 posX, s16 posY, u16 addit } if (printer->windowState == MSG_WINDOW_STATE_OPENING) { - windowScaleX = update_lerp(EASING_LINEAR, 0.07f, 1.0f, printer->fadeInCounter, 7); - windowScaleY = update_lerp(EASING_LINEAR, 0.3f, 1.0f, printer->fadeInCounter, 7); - temp_f28 = update_lerp(EASING_LINEAR, 96.0f, 200.0f, printer->fadeInCounter, 7); - temp_f20 = update_lerp(EASING_SIN_OUT, temp_s5, temp_s3, printer->fadeInCounter, 7); - temp_f24 = update_lerp(EASING_SIN_OUT, temp_s6, temp_s4, printer->fadeInCounter, 7); + windowScaleX = update_lerp(EASING_LINEAR, 0.07f, 1.0f, printer->fadeInCounter, MSG_FADE_IN_DURATION); + windowScaleY = update_lerp(EASING_LINEAR, 0.3f, 1.0f, printer->fadeInCounter, MSG_FADE_IN_DURATION); + temp_f28 = update_lerp(EASING_LINEAR, 96.0f, 200.0f, printer->fadeInCounter, MSG_FADE_IN_DURATION); + temp_f20 = update_lerp(EASING_SIN_OUT, temp_s5, temp_s3, printer->fadeInCounter, MSG_FADE_IN_DURATION); + temp_f24 = update_lerp(EASING_SIN_OUT, temp_s6, temp_s4, printer->fadeInCounter, MSG_FADE_IN_DURATION); temp_f2_2 = printer->windowSize.x * windowScaleX; temp_f0_2 = printer->windowSize.y * windowScaleY; bubbleX = (temp_f24 - temp_f2_2 * 0.5) + 0.5; bubbleY = (temp_f20 - temp_f0_2 * 0.5) + 0.5; msg_draw_speech_bubble(printer, bubbleX, bubbleY, straightWidth, curveWidth, height, windowScaleX, windowScaleY, temp_f28, 1); printer->fadeInCounter++; - if (printer->fadeInCounter == 7) { + if (printer->fadeInCounter == MSG_FADE_IN_DURATION) { printer->windowState = MSG_WINDOW_STATE_PRINTING; } } else if (printer->windowState == MSG_WINDOW_STATE_CLOSING) { printer->fadeOutCounter++; - windowScaleX = update_lerp(EASING_LINEAR, 1.0f, 0.6f, printer->fadeOutCounter, 5); - windowScaleY = update_lerp(EASING_LINEAR, 1.0f, 0.8f, printer->fadeOutCounter, 5); + windowScaleX = update_lerp(EASING_LINEAR, 1.0f, 0.6f, printer->fadeOutCounter, MSG_FADE_OUT_DURATION); + windowScaleY = update_lerp(EASING_LINEAR, 1.0f, 0.8f, printer->fadeOutCounter, MSG_FADE_OUT_DURATION); temp_f2 = (printer->windowSize.x * windowScaleX); temp_f0 = (printer->windowSize.y * windowScaleY); temp_f24 = temp_s4; @@ -534,7 +539,7 @@ void appendGfx_message(MessagePrintState* printer, s16 posX, s16 posY, u16 addit bubbleY = (temp_f20 - temp_f0 * 0.5) + 0.5; temp_f22_2 = (temp_f24 + temp_f2 * 0.5) - 0.5; temp_f20_3 = (temp_f20 + temp_f0 * 0.5) - 0.5; - temp_f28 = update_lerp(EASING_LINEAR, 255.0f, 64.0f, printer->fadeOutCounter, 5); + temp_f28 = update_lerp(EASING_LINEAR, 255.0f, 64.0f, printer->fadeOutCounter, MSG_FADE_OUT_DURATION); sp8E = temp_f28 * 0.35; spAE = temp_f28; msg_drawState->clipX[0] = bubbleX + msg_drawState->textStartPos[0]; @@ -542,7 +547,7 @@ void appendGfx_message(MessagePrintState* printer, s16 posX, s16 posY, u16 addit msg_drawState->clipX[1] = temp_f22_2 - msg_drawState->textStartPos[0]; msg_drawState->clipY[1] = temp_f20_3 - msg_drawState->textStartPos[1]; msg_draw_speech_bubble(printer, bubbleX, bubbleY, straightWidth, curveWidth, height, windowScaleX, windowScaleY, temp_f28, 1); - if (printer->fadeOutCounter >= 5) { + if (printer->fadeOutCounter >= MSG_FADE_OUT_DURATION) { printer->stateFlags |= MSG_STATE_FLAG_1; } } else { @@ -578,11 +583,11 @@ void appendGfx_message(MessagePrintState* printer, s16 posX, s16 posY, u16 addit if (printer->windowState == MSG_WINDOW_STATE_OPENING) { printer->fadeInCounter++; - if (printer->fadeInCounter == 6) { + if (printer->fadeInCounter == MSG_FADE_IN_DURATION - 1) { printer->windowState = MSG_WINDOW_STATE_PRINTING; } - temp_f10 = ((f32) printer->fadeInCounter * (2.0 / 15.0)) + 0.2; + temp_f10 = ((f32) printer->fadeInCounter * ((2.0 / 15.0) / DT)) + 0.2; z1 = printer->windowBasePos.x + (windowSizeX / 2); z2 = printer->windowBasePos.y + (windowSizeY / 2); @@ -603,10 +608,14 @@ void appendGfx_message(MessagePrintState* printer, s16 posX, s16 posY, u16 addit sp8E = (u8)(temp_f10 * 255.0) * 0.6; } else if (printer->windowState == MSG_WINDOW_STATE_CLOSING) { printer->fadeOutCounter++; - if (printer->fadeOutCounter >= 5) { + if (printer->fadeOutCounter >= MSG_FADE_OUT_DURATION) { printer->stateFlags |= MSG_STATE_FLAG_1; } +#if VERSION_PAL + frameAlpha = -(printer->fadeOutCounter * 57) - 1; +#else frameAlpha = -(printer->fadeOutCounter * 46) - 1; +#endif sp8E = ((u8)frameAlpha) * 0.6; frameFading = 1; if (sp8E >= 32) { @@ -657,7 +666,7 @@ void appendGfx_message(MessagePrintState* printer, s16 posX, s16 posY, u16 addit sp8E = (phi_s0_5 & 0xFF) - 0x30; printer->fadeInCounter++; fading = 1; - if ((s16)printer->fadeInCounter == 4) { // TODO why is this cast needed + if (printer->fadeInCounter == 4) { printer->windowState = MSG_WINDOW_STATE_PRINTING; } } else if (printer->windowState == MSG_WINDOW_STATE_CLOSING) { @@ -1304,17 +1313,34 @@ void appendGfx_message(MessagePrintState* printer, s16 posX, s16 posY, u16 addit charPosY += rand_int(10000) % 2; } if (msg_drawState->effectFlags & MSG_FX_FLAG_WAVE) { - temp_f2_3 = msg_drawState->msgScale.x - 1.0; - temp_s0_7 = (printer->effectFrameCounter * (s32)(20.0 - (temp_f2_3 * 5.0))) - (msg_drawState->visiblePrintedCount * - (s32)(45.0 - (temp_f2_3 * 15.0))); - charPosX += cosine(temp_s0_7) * ((msg_drawState->msgScale.x - 1.0) + 1.6); - charPosY += cosine((temp_s0_7 + 180.0 + 90.0)) * (msg_drawState->msgScale.y - 1.0 + 1.6); +#if VERSION_PAL + f32 waveFreqX = 20.0 - (msg_drawState->msgScale.x - 1.0) * 5.0; + f32 waveFreqY = 45.0 - (msg_drawState->msgScale.x - 1.0) * 15.0; + f32 wavePhaseX = printer->effectFrameCounter * waveFreqX * 1.2f; + f32 charOffset = (u32) msg_drawState->visiblePrintedCount * waveFreqY; +#else + s32 waveFreqX = 20.0 - (msg_drawState->msgScale.x - 1.0) * 5.0; + s32 waveFreqY = 45.0 - (msg_drawState->msgScale.x - 1.0) * 15.0; + s32 wavePhaseX = printer->effectFrameCounter * waveFreqX; + s32 charOffset = msg_drawState->visiblePrintedCount * waveFreqY; +#endif + + charPosX += cosine(wavePhaseX - charOffset) * (msg_drawState->msgScale.x - 1.0 + 1.6); + charPosY += cosine(wavePhaseX - charOffset + 180.0 + 90.0) * (msg_drawState->msgScale.y - 1.0 + 1.6); } if (msg_drawState->effectFlags & MSG_FX_FLAG_GLOBAL_WAVE) { - temp_s0_8 = (gMsgGlobalWaveCounter * (s32)(20.0 - ((msg_drawState->msgScale.x - 1.0) * 5.0))) - - (msg_drawState->visiblePrintedCount * 45); - charPosX += cosine(temp_s0_8) * ((msg_drawState->msgScale.x - 1.0) + 1.6); - charPosY += cosine((temp_s0_8 + 180.0 + 90.0)) * ((msg_drawState->msgScale.y - 1.0) + 1.6); +#if VERSION_PAL + f32 waveFreqX = 20.0 - (msg_drawState->msgScale.x - 1.0) * 5.0; + f32 wavePhaseX = gMsgGlobalWaveCounter * waveFreqX * 1.2f; + f32 charOffset = (u32) msg_drawState->visiblePrintedCount * 45; +#else + s32 waveFreqX = 20.0 - (msg_drawState->msgScale.x - 1.0) * 5.0; + s32 wavePhaseX = gMsgGlobalWaveCounter * waveFreqX; + s32 charOffset = msg_drawState->visiblePrintedCount * 45; +#endif + + charPosX += cosine(wavePhaseX - charOffset) * (msg_drawState->msgScale.x - 1.0 + 1.6); + charPosY += cosine(wavePhaseX - charOffset + 180.0 + 90.0) * (msg_drawState->msgScale.y - 1.0 + 1.6); } if (msg_drawState->effectFlags & MSG_FX_FLAG_RAINBOW) { palette = abs(msg_drawState->visiblePrintedCount - (u16)(printer->effectFrameCounter / 3)) % 10; @@ -1632,7 +1658,7 @@ void appendGfx_message(MessagePrintState* printer, s16 posX, s16 posY, u16 addit gDPPipeSync(gMainGfxPos++); D_80151338 = gMainGfxPos; } -#endif + void msg_reset_gfx_state(void) { gDPPipeSync(gMainGfxPos++); diff --git a/src/os/epirawdma.c b/src/os/epirawdma.c index 2441c82c755..fdc697b6969 100644 --- a/src/os/epirawdma.c +++ b/src/os/epirawdma.c @@ -3,12 +3,10 @@ #include "PR/bcp.h" s32 __osEPiRawStartDma(OSPiHandle* pihandle, s32 direction, u32 devAddr, void* dramAddr, u32 size) { -#ifdef BBPLAYER - u64 dummybuf[2]; -#endif u32 stat; u32 domain; -#ifdef BBPLAYER +#if defined(BBPLAYER) || VERSION_PAL + u64 dummybuf[2]; u32 buffer; u32 pgsize; u16* adr; @@ -17,7 +15,7 @@ s32 __osEPiRawStartDma(OSPiHandle* pihandle, s32 direction, u32 devAddr, void* d EPI_SYNC(pihandle, stat, domain); -#ifdef BBPLAYER +#if defined(BBPLAYER) || VERSION_PAL if (direction == OS_READ) { pgsize = 1; @@ -29,7 +27,8 @@ s32 __osEPiRawStartDma(OSPiHandle* pihandle, s32 direction, u32 devAddr, void* d __osEPiRawReadIo(pihandle, devAddr - 2, &buffer); adr = (u16*)PHYS_TO_K1(dramAddr); - *(adr++) = (u16)buffer; + *adr = (u16)buffer; + adr++; devAddr += 2; dramAddr = adr; @@ -40,7 +39,8 @@ s32 __osEPiRawStartDma(OSPiHandle* pihandle, s32 direction, u32 devAddr, void* d adr = (u16*)dramAddr; *(adr++) = buffer >> 16; - *(adr++) = (u16)buffer; + *adr = (u16)buffer; + adr++; devAddr += 4; dramAddr = adr; @@ -50,7 +50,8 @@ s32 __osEPiRawStartDma(OSPiHandle* pihandle, s32 direction, u32 devAddr, void* d __osEPiRawReadIo(pihandle, devAddr, &buffer); adr = (u16*)PHYS_TO_K1(dramAddr); - *(adr++) = buffer >> 16; + *adr = buffer >> 16; + adr++; devAddr += 2; dramAddr = adr; diff --git a/src/os/flashclearstatus.c b/src/os/flashclearstatus.c new file mode 100644 index 00000000000..86165d66823 --- /dev/null +++ b/src/os/flashclearstatus.c @@ -0,0 +1,10 @@ +#include "ultra64.h" +#include "PR/os_internal_flash.h" + +void osFlashClearStatus(void) { + // select status mode + osEPiWriteIo(&__osFlashHandler, __osFlashHandler.baseAddress | FLASH_CMD_REG, FLASH_CMD_STATUS); + // clear status + osEPiWriteIo(&__osFlashHandler, __osFlashHandler.baseAddress, 0); + return; +} diff --git a/src/os/flashgetaddr.c b/src/os/flashgetaddr.c new file mode 100644 index 00000000000..a530947c083 --- /dev/null +++ b/src/os/flashgetaddr.c @@ -0,0 +1,15 @@ +#include "ultra64.h" +#include "PR/os_internal_flash.h" + +u32 __osFlashGetAddr(u32 page_num) { + u32 devAddr; + + if (__osFlashVersion == OLD_FLASH) { + // Account for hardware bug in old flash where the address bits are shifted 1-off where they should be + devAddr = page_num * (FLASH_BLOCK_SIZE >> 1); + } else { + devAddr = page_num * FLASH_BLOCK_SIZE; + } + + return devAddr; +} diff --git a/src/os/flashreadarray.c b/src/os/flashreadarray.c index 755fe664d23..c6171708700 100644 --- a/src/os/flashreadarray.c +++ b/src/os/flashreadarray.c @@ -40,7 +40,7 @@ s32 osFlashReadArray(OSIoMesg* mb, s32 priority, u32 page_num, void* dramAddr, u osEPiStartDma(&__osFlashHandler, mb, OS_READ); osRecvMesg(mq, NULL, OS_MESG_BLOCK); page_num = (page_num + 256) & 0xF00; - mb->dramAddr = (u32)mb->dramAddr + mb->size; + mb->dramAddr = (void*)((u32)mb->dramAddr + mb->size); } while (n_pages > 256) { @@ -51,7 +51,7 @@ s32 osFlashReadArray(OSIoMesg* mb, s32 priority, u32 page_num, void* dramAddr, u osEPiStartDma(&__osFlashHandler, mb, OS_READ); osRecvMesg(mq, NULL, OS_MESG_BLOCK); page_num += 256; - mb->dramAddr = (u32)mb->dramAddr + mb->size; + mb->dramAddr = (void*)((u32)mb->dramAddr + mb->size); } mb->size = n_pages * FLASH_BLOCK_SIZE; diff --git a/src/os/flashreadid.c b/src/os/flashreadid.c new file mode 100644 index 00000000000..3112d746c7a --- /dev/null +++ b/src/os/flashreadid.c @@ -0,0 +1,27 @@ +#include "ultra64.h" +#include "PR/os_internal_flash.h" + +void osFlashReadId(u32* flash_type, u32* flash_maker) { + u8 tmp; + + // why read status ? + osFlashReadStatus(&tmp); + + // select silicon id read mode + osEPiWriteIo(&__osFlashHandler, __osFlashHandler.baseAddress | FLASH_CMD_REG, FLASH_CMD_ID); + + // read silicon id using DMA + __osFlashMsg.hdr.pri = OS_MESG_PRI_NORMAL; + __osFlashMsg.hdr.retQueue = &__osFlashMessageQ; + __osFlashMsg.dramAddr = __osFlashID; + __osFlashMsg.devAddr = 0; + __osFlashMsg.size = 2 * sizeof(u32); + + osInvalDCache(__osFlashID, sizeof(__osFlashID)); + osEPiStartDma(&__osFlashHandler, &__osFlashMsg, OS_READ); + osRecvMesg(&__osFlashMessageQ, NULL, OS_MESG_BLOCK); + + *flash_type = __osFlashID[0]; + *flash_maker = __osFlashID[1]; + return; +} diff --git a/src/os/flashreadstatus.c b/src/os/flashreadstatus.c new file mode 100644 index 00000000000..6ff5560b10f --- /dev/null +++ b/src/os/flashreadstatus.c @@ -0,0 +1,17 @@ +#include "ultra64.h" +#include "PR/os_internal_flash.h" + +void osFlashReadStatus(u8* flash_status) { + u32 status; + + osEPiWriteIo(&__osFlashHandler, __osFlashHandler.baseAddress | FLASH_CMD_REG, FLASH_CMD_STATUS); + // read status + osEPiReadIo(&__osFlashHandler, __osFlashHandler.baseAddress, &status); + + // why twice ? + osEPiWriteIo(&__osFlashHandler, __osFlashHandler.baseAddress | FLASH_CMD_REG, FLASH_CMD_STATUS); + osEPiReadIo(&__osFlashHandler, __osFlashHandler.baseAddress, &status); + + *flash_status = status & 0xFF; + return; +} diff --git a/src/os/nusys/nuboot.c b/src/os/nusys/nuboot.c index 8220035dbe7..19a94f4dda5 100644 --- a/src/os/nusys/nuboot.c +++ b/src/os/nusys/nuboot.c @@ -3,7 +3,9 @@ #include "functions.h" #include "variables.h" +#if !VERSION_PAL NOP_FIX +#endif u64 nuMainStack[NU_SC_STACK_SIZE / sizeof(u64)]; static OSThread IdleThread; // idle thread, id 1 @@ -11,9 +13,13 @@ static OSThread MainThread; // id 3 static u64 IdleStack[NU_SC_STACK_SIZE / sizeof(u64)]; void (*nuIdleFunc)(void); +void __osInitialize_autodetect(void); void nuBoot(void) { osInitialize(); +#if VERSION_PAL + __osInitialize_autodetect(); +#endif osCreateThread(&IdleThread, NU_IDLE_THREAD_ID, boot_idle, NULL, &IdleStack[NU_SC_STACK_SIZE / sizeof(u64)], 10); osStartThread(&IdleThread); } diff --git a/src/os/nusys/nucontmgr.c b/src/os/nusys/nucontmgr.c index 176cefea6bc..e555cb669e2 100644 --- a/src/os/nusys/nucontmgr.c +++ b/src/os/nusys/nucontmgr.c @@ -1,8 +1,6 @@ #include "common.h" #include "nu/nusys.h" -NOP_FIX - OSMesgQueue nuContWaitMesgQ; static OSMesg nuContWaitMesgBuf; OSMesgQueue nuContDataMutexQ; @@ -17,7 +15,6 @@ OSPfs nuContPfs[NU_CONT_MAXCONTROLLERS]; static s32 contRetrace(NUSiCommonMesg* mesg); static s32 contRead(NUSiCommonMesg* mesg); static s32 contReadNW(NUSiCommonMesg* mesg); -static inline s32 contReadData(OSContPad* pad, u32 lockflag); static s32 contQuery(NUSiCommonMesg* mesg); NUContReadFunc nuContReadFunc = NULL; @@ -47,7 +44,11 @@ u8 nuContMgrInit(void) { bitmask = 1; pattern = 0; - for (i = 0; i < NU_CONT_MAXCONTROLLERS; i++) { + for (i = 0; i < NU_CONT_MAXCONTROLLERS; +#if VERSION_PAL + bitmask <<= 1, +#endif + i++) { if (nuContStatus[i].errno != 0) { continue; } @@ -56,7 +57,9 @@ u8 nuContMgrInit(void) { nuContNum++; pattern |= bitmask; } +#if !VERSION_PAL bitmask <<= 1; +#endif } return pattern; @@ -74,19 +77,7 @@ void nuContDataOpen(void) { osRecvMesg(&nuContDataMutexQ, NULL, OS_MESG_BLOCK); } -//copy of nuContDataClose -static inline void nuContDataClose_inline(void) { - osSendMesg(&nuContDataMutexQ, NULL, OS_MESG_BLOCK); -} - -//copy of nuContDataOpen -static inline void nuContDataOpen_inline(void) { - osRecvMesg(&nuContDataMutexQ, NULL, OS_MESG_BLOCK); -} - -NOP_UNFIX - -static inline s32 contReadData(OSContPad* pad, u32 lockflag) { +static s32 contReadData(OSContPad* pad, u32 lockflag) { s32 rtn; rtn = osContStartReadData(&nuSiMesgQ); @@ -100,15 +91,26 @@ static inline s32 contReadData(OSContPad* pad, u32 lockflag) { return rtn; } - nuContDataClose_inline(); - NOP_FIX + nuContDataClose(); osContGetReadData(pad); - NOP_UNFIX - nuContDataOpen_inline(); + nuContDataOpen(); return rtn; } +static s32 contQuery(NUSiCommonMesg* mesg) { + s32 ret = osContStartQuery(&nuSiMesgQ); + + if (ret != 0) { + return ret; + } + + osRecvMesg(&nuSiMesgQ, NULL, OS_MESG_BLOCK); + osContGetQuery(nuContStatus); + + return ret; +} + static s32 contRetrace(NUSiCommonMesg* mesg) { if(nuContDataLockKey) { return NU_SI_CALLBACK_CONTINUE; @@ -147,18 +149,3 @@ static s32 contReadNW(NUSiCommonMesg* mesg) { return rtn; } - -NOP_FIX - -static s32 contQuery(NUSiCommonMesg* mesg) { - s32 ret = osContStartQuery(&nuSiMesgQ); - - if (ret != 0) { - return ret; - } - - osRecvMesg(&nuSiMesgQ, NULL, OS_MESG_BLOCK); - osContGetQuery(nuContStatus); - - return ret; -} diff --git a/src/os/nusys/nucontpakmgr.c b/src/os/nusys/nucontpakmgr.c index a492e75957c..f6949b1b057 100644 --- a/src/os/nusys/nucontpakmgr.c +++ b/src/os/nusys/nucontpakmgr.c @@ -14,15 +14,23 @@ u16 nuContPakCompanyCode = 0; u32 nuContPakGameCode = 0; s32 (*D_80093CA8[])(NUSiCommonMesg*) = { - NULL, contPakOpen, contPakFree, contPakFileOpen, contPakFileReadWrite, contPakFileDelete, contPakFileState, - contPakFileNum, contPakRepairId, NULL + NULL, + contPakOpen, + contPakFree, + contPakFileOpen, + contPakFileReadWrite, + contPakFileDelete, + contPakFileState, + contPakFileNum, + contPakRepairId, + NULL }; NUCallBackList nuContPakCallBack = { - NULL, - D_80093CA8, - 0x200, - 0 + .next = NULL, + .func = D_80093CA8, + .majorNo = NU_SI_MAJOR_NO_PAK, + .funcNum = 0 }; void nuContPakMgrInit(void) { diff --git a/src/os/nusys/nucontrmbmgr.c b/src/os/nusys/nucontrmbmgr.c index c0b0169c53a..6b89f396502 100644 --- a/src/os/nusys/nucontrmbmgr.c +++ b/src/os/nusys/nucontrmbmgr.c @@ -12,11 +12,37 @@ s32 contRmbForceStopMesg(NUSiCommonMesg* mesg); s32 contRmbForceStopEndMesg(NUSiCommonMesg* mesg); s32 (*D_80093CE4[])(NUSiCommonMesg*) = { - contRmbRetrace, contRmbCheckMesg, contRmbStartMesg, contRmbStopMesg, contRmbForceStopMesg, contRmbForceStopEndMesg, + contRmbRetrace, + contRmbCheckMesg, + contRmbStartMesg, + contRmbStopMesg, + contRmbForceStopMesg, + contRmbForceStopEndMesg, NULL }; -NUCallBackList nuContRmbCallBack = {.next = NULL, .func = D_80093CE4, .majorNo = 0x300, .funcNum = 0}; +NUCallBackList nuContRmbCallBack = { + .next = NULL, + .func = D_80093CE4, + .majorNo = NU_SI_MAJOR_NO_RMB, + .funcNum = 0 +}; + +void nuContRmbMgrInit(void) { + u32 i; + + for (i = 0; i < NU_CONT_MAXCONTROLLERS; i++) { + nuContRmbCtl[i].state = NU_CONT_RMB_STATE_STOPPED; + nuContRmbCtl[i].mode = NU_CONT_RMB_MODE_DISABLE; + nuContRmbCtl[i].counter = i; + } + + nuSiCallBackAdd(&nuContRmbCallBack); +} + +void nuContRmbMgrRemove(void) { + nuSiCallBackRemove(&nuContRmbCallBack); +} s32 contRmbControl(NUContRmbCtl* rmbCtl, u32 contNo) { s32 ret = 0; @@ -104,26 +130,31 @@ s32 contRmbRetrace(NUSiCommonMesg* mesg) { return 0; } -void nuContRmbMgrInit(void) { +s32 contRmbCheckMesg(NUSiCommonMesg* mesg) { + NUContRmbMesg* rmbMesg = (NUContRmbMesg*) mesg->dataPtr; + + return osMotorInit(&nuSiMesgQ, &nuContPfs[rmbMesg->contNo], rmbMesg->contNo); +} + +s32 contRmbForceStopMesg(NUSiCommonMesg* mesg) { u32 i; for (i = 0; i < NU_CONT_MAXCONTROLLERS; i++) { - nuContRmbCtl[i].state = NU_CONT_RMB_STATE_STOPPED; - nuContRmbCtl[i].mode = NU_CONT_RMB_MODE_DISABLE; - nuContRmbCtl[i].counter = i; + nuContRmbCtl[i].state = NU_CONT_RMB_STATE_FORCESTOP; + nuContRmbCtl[i].mode |= NU_CONT_RMB_MODE_PAUSE; } - nuSiCallBackAdd(&nuContRmbCallBack); + return 0; } -void nuContRmbMgrRemove(void) { - nuSiCallBackRemove(&nuContRmbCallBack); -} +s32 contRmbForceStopEndMesg(NUSiCommonMesg* mesg) { + u32 i; -s32 contRmbCheckMesg(NUSiCommonMesg* mesg) { - NUContRmbMesg* rmbMesg = (NUContRmbMesg*) mesg->dataPtr; + for (i = 0; i < NU_CONT_MAXCONTROLLERS; i++) { + nuContRmbCtl[i].mode &= ~NU_CONT_RMB_MODE_PAUSE; + } - return osMotorInit(&nuSiMesgQ, &nuContPfs[rmbMesg->contNo], rmbMesg->contNo); + return 0; } s32 contRmbStartMesg(NUSiCommonMesg* mesg) { @@ -144,24 +175,3 @@ s32 contRmbStopMesg(NUSiCommonMesg* mesg) { return 0; } - -s32 contRmbForceStopMesg(NUSiCommonMesg* mesg) { - u32 i; - - for (i = 0; i < NU_CONT_MAXCONTROLLERS; i++) { - nuContRmbCtl[i].state = NU_CONT_RMB_STATE_FORCESTOP; - nuContRmbCtl[i].mode |= NU_CONT_RMB_MODE_PAUSE; - } - - return 0; -} - -s32 contRmbForceStopEndMesg(NUSiCommonMesg* mesg) { - u32 i; - - for (i = 0; i < NU_CONT_MAXCONTROLLERS; i++) { - nuContRmbCtl[i].mode &= ~NU_CONT_RMB_MODE_PAUSE; - } - - return 0; -} diff --git a/src/os/nusys/nugfxinit.c b/src/os/nusys/nugfxinit.c index 995bcd40532..97906abee15 100644 --- a/src/os/nusys/nugfxinit.c +++ b/src/os/nusys/nugfxinit.c @@ -15,6 +15,8 @@ u16* FrameBuf[] = { gFrameBuf0, gFrameBuf1, gFrameBuf2 }; +extern s32 D_800B91D0[]; + Gfx rdpstateinit_dl[] = { gsDPSetEnvColor(0, 0, 0, 0), gsDPSetPrimColor(0, 0, 0, 0, 0, 0), @@ -63,6 +65,9 @@ void nuGfxInitEX2(void) { nuGfxSetCfb(FrameBuf, NU_GFX_FRAMEBUFFER_NUM); nuGfxSetZBuffer((u16*) NU_GFX_ZBUFFER_ADDR); nuGfxSwapCfbFuncSet(nuGfxSwapCfb); +#if VERSION_PAL + nuGfxSetUcodeFifo(D_800B91D0, NU_GFX_RDP_OUTPUTBUFF_SIZE); +#endif nuGfxUcode = &nugfx_ucode; nuGfxTaskMgrInit(); diff --git a/src/os/nusys/nugfxsetucodefifo.c b/src/os/nusys/nugfxsetucodefifo.c new file mode 100644 index 00000000000..1ffee08f16c --- /dev/null +++ b/src/os/nusys/nugfxsetucodefifo.c @@ -0,0 +1,7 @@ +#include "common.h" +#include "nu/nusys.h" + +void nuGfxSetUcodeFifo(void* fifoBufPtr, s32 size) { + nuGfxUcodeFifoPtr = (u64*)fifoBufPtr; + nuGfxUcodeFifoSize = size; +} diff --git a/src/os/nusys/nugfxtaskmgr.c b/src/os/nusys/nugfxtaskmgr.c index 16e3284ed65..aab104ca327 100644 --- a/src/os/nusys/nugfxtaskmgr.c +++ b/src/os/nusys/nugfxtaskmgr.c @@ -2,6 +2,10 @@ #include "nu/nusys.h" u32 nuGfxCfbNum = 1; +#if VERSION_PAL +s32 nuGfxUcodeFifoSize = -1; +u64* nuGfxUcodeFifoPtr = NULL; +#endif NUGfxSwapCfbFunc nuGfxSwapCfbFunc = NULL; NUGfxTaskEndFunc nuGfxTaskEndFunc = NULL; u16 beforeFlag = 0; @@ -88,8 +92,10 @@ void nuGfxTaskMgrInit(void) { nuGfxTask[i].list.t.ucode_data_size = SP_UCODE_DATA_SIZE; nuGfxTask[i].list.t.dram_stack = (u64*) &D_800DA040; nuGfxTask[i].list.t.dram_stack_size = SP_DRAM_STACK_SIZE8; +#if !VERSION_PAL nuGfxTask[i].list.t.output_buff = (u64*) &D_800B91D0; nuGfxTask[i].list.t.output_buff_size = (u64*) &D_800B91D0[NU_GFX_RDP_OUTPUTBUFF_SIZE / sizeof(u32)]; +#endif nuGfxTask[i].list.t.yield_data_ptr = (u64*) &nuYieldBuf; nuGfxTask[i].list.t.yield_data_size = NU_GFX_YIELD_BUF_SIZE; } @@ -106,6 +112,10 @@ void nuGfxTaskStart(Gfx* gfxList_ptr, u32 gfxListSize, u32 ucode, u32 flag) { nuGfxTask_ptr->list.t.flags = flag >> 16; nuGfxTask_ptr->list.t.ucode = nuGfxUcode[ucode].ucode; nuGfxTask_ptr->list.t.ucode_data = nuGfxUcode[ucode].ucode_data; +#if VERSION_PAL + nuGfxTask_ptr->list.t.output_buff = nuGfxUcodeFifoPtr; + nuGfxTask_ptr->list.t.output_buff_size = &nuGfxUcodeFifoPtr[nuGfxUcodeFifoSize/sizeof(u64)]; +#endif nuGfxTask_ptr->flags = flag & 0xFFFF; nuGfxTask_ptr->framebuffer = nuGfxCfb_ptr; diff --git a/src/os/nusys/nugfxthread.c b/src/os/nusys/nugfxthread.c index dbc5dac5dfa..2a599fac5b3 100644 --- a/src/os/nusys/nugfxthread.c +++ b/src/os/nusys/nugfxthread.c @@ -1,8 +1,6 @@ #include "common.h" #include "nu/nusys.h" -void gfxThread(void*); - NUGfxFunc nuGfxFunc = NULL; NUGfxPreNMIFunc nuGfxPreNMIFunc = NULL; OSMesgQueue nuGfxMesgQ; @@ -11,12 +9,7 @@ static char GfxStack[NU_GFX_STACK_SIZE]; OSThread D_800B1B90; -void nuGfxThreadStart(void) { - osCreateThread(&D_800B1B90, 4, gfxThread, NULL, &GfxStack[NU_GFX_STACK_SIZE], NU_GFX_THREAD_PRI); - osStartThread(&D_800B1B90); -} - -void gfxThread(void* data) { +static void gfxThread(void* data) { NUScClient gfxClient; NUScMsg* mesgType; @@ -40,3 +33,8 @@ void gfxThread(void* data) { } } } + +void nuGfxThreadStart(void) { + osCreateThread(&D_800B1B90, 4, gfxThread, NULL, &GfxStack[NU_GFX_STACK_SIZE], NU_GFX_THREAD_PRI); + osStartThread(&D_800B1B90); +} diff --git a/src/os/nusys/nupireadrom.c b/src/os/nusys/nupireadrom.c index 2125feea97e..9be0a0a9390 100644 --- a/src/os/nusys/nupireadrom.c +++ b/src/os/nusys/nupireadrom.c @@ -12,7 +12,9 @@ void nuPiReadRom(u32 rom_addr, void* buf_ptr, u32 size) { ioMesg.hdr.pri = OS_MESG_PRI_NORMAL; ioMesg.hdr.retQueue = &queue; osInvalDCache(buf_ptr, size); +#if !VERSION_PAL osInvalICache(buf_ptr, size); +#endif while (size != 0) { mesgSize = size; diff --git a/src/os/nusys/nusched.c b/src/os/nusys/nusched.c index 991bafa2350..54c99cbce94 100644 --- a/src/os/nusys/nusched.c +++ b/src/os/nusys/nusched.c @@ -1,13 +1,15 @@ #include "common.h" #include "nu/nusys.h" -NOP_FIX - NUSched nusched; NUScPreNMIFunc nuScPreNMIFunc = NULL; u8 nuScPreNMIFlag; +#if VERSION_PAL +char nusys_version[] = "NuSystem2.07"; +#else char nusys_version[] = "NuSystem2.05"; +#endif u32 nuScRetraceCounter = (u32) nusys_version; @@ -69,6 +71,114 @@ void nuScCreateScheduler(u8 videoMode, u8 numFields) { osStartThread(&nusched.graphicsThread); } +OSMesgQueue* nuScGetAudioMQ(void) { + return &nusched.audioRequestMQ; +} + +OSMesgQueue* nuScGetGfxMQ(void) { + return &nusched.graphicsRequestMQ; +} + +void nuScEventHandler(void) { + OSMesg msg; + s32 beforeResetFrame; + + nuScRetraceCounter = 0; + + while (TRUE) { + osRecvMesg(&nusched.retraceMQ, &msg, OS_MESG_BLOCK); + + switch ((s32) msg) { + case 666: + nuScRetraceCounter++; + + nuScEventBroadcast(&nusched.retraceMsg); + + if (nuScPreNMIFlag){ + if (beforeResetFrame){ + beforeResetFrame--; + } else { + nuScPreNMIFlag |= NU_SC_BEFORE_RESET; + osAfterPreNMI(); + osViSetYScale(1.0); + osViBlack(TRUE); + } + } + break; + case 669: + nuScPreNMIFlag = NU_SC_PRENMI_GET; + nuScEventBroadcast(&nusched.prenmiMsg); + + if (nuScPreNMIFunc != NULL){ + (*nuScPreNMIFunc)(); + } + + beforeResetFrame = (nusched.frameRate / 2) / nusched.retraceCount - 3; + break; + default: + break; + } + } +} + +void nuScAddClient(NUScClient* c, OSMesgQueue* mq, NUScMsg msgType) { + s32 mask; + + mask = osSetIntMask(OS_IM_NONE); + + c->msgQ = mq; + c->next = nusched.clientList; + c->msgType = msgType; + + nusched.clientList = c; + + if ((msgType & NU_SC_PRENMI_MSG) && nuScPreNMIFlag) { + osSendMesg(mq, &nusched.prenmiMsg, OS_MESG_NOBLOCK); + } + + osSetIntMask(mask); +} + +void nuScResetClientMesgType(NUScClient* client, NUScMsg msgType) { + s32 mask; + + mask = osSetIntMask(OS_IM_NONE); + client->msgType = msgType; + osSetIntMask(mask); +} + +void nuScRemoveClient(NUScClient* client) { + s32 mask = osSetIntMask(OS_IM_NONE); + NUScClient* clientList = nusched.clientList; + NUScClient* prev = NULL; + + while (clientList != NULL) { + if (clientList == client) { + if (prev != NULL) { + prev->next = clientList->next; + } else { + nusched.clientList = clientList->next; + } + break; + } + prev = clientList; + clientList = clientList->next; + } + + osSetIntMask(mask); +} + +void nuScEventBroadcast(NUScMsg* msg) { + NUScClient* clientList = nusched.clientList; + + while (clientList != NULL) { + if (clientList->msgType & *msg) { + osSendMesg(clientList->msgQ, msg, OS_MESG_NOBLOCK); + } + clientList = clientList->next; + } +} + void nuScExecuteAudio(void) { NUScTask* gfxTask; NUScTask* audioTask; @@ -160,59 +270,19 @@ void nuScExecuteGraphics(void) { } } -void nuScAddClient(NUScClient* c, OSMesgQueue* mq, NUScMsg msgType) { - s32 mask; - - mask = osSetIntMask(OS_IM_NONE); - - c->msgQ = mq; - c->next = nusched.clientList; - c->msgType = msgType; - - nusched.clientList = c; +void nuScWaitTaskReady(NUScTask* task) { + NUScClient client; + void* fb = task->framebuffer; - if ((msgType & NU_SC_PRENMI_MSG) && nuScPreNMIFlag) { - osSendMesg(mq, &nusched.prenmiMsg, OS_MESG_NOBLOCK); + if(nusched.frameBufferNum == 1) { + return; } - osSetIntMask(mask); -} - -void nuScRemoveClient(NUScClient* client) { - s32 mask = osSetIntMask(OS_IM_NONE); - NUScClient* clientList = nusched.clientList; - NUScClient* prev = NULL; - - while (clientList != NULL) { - if (clientList == client) { - if (prev != NULL) { - prev->next = clientList->next; - } else { - nusched.clientList = clientList->next; - } - break; - } - prev = clientList; - clientList = clientList->next; + while (osViGetCurrentFramebuffer() == fb || osViGetNextFramebuffer() == fb) { + nuScAddClient(&client, &nusched.waitMQ, NU_SC_RETRACE_MSG); + osRecvMesg(&nusched.waitMQ, NULL, OS_MESG_BLOCK); + nuScRemoveClient(&client); } - - osSetIntMask(mask); -} - -void nuScResetClientMesgType(NUScClient* client, NUScMsg msgType) { - s32 mask; - - mask = osSetIntMask(OS_IM_NONE); - client->msgType = msgType; - osSetIntMask(mask); -} - -OSMesgQueue* nuScGetGfxMQ(void) { - return &nusched.graphicsRequestMQ; -} - -OSMesgQueue* nuScGetAudioMQ(void) { - return &nusched.audioRequestMQ; } void nuScSetFrameBufferNum(u8 frameBufferNum) { @@ -222,113 +292,3 @@ void nuScSetFrameBufferNum(u8 frameBufferNum) { s32 nuScGetFrameRate(void) { return nusched.frameRate; } - -void nuScEventHandler(void) { - OSMesg msg; - s32 beforeResetFrame; - - nuScRetraceCounter = 0; - - while (TRUE) { - osRecvMesg(&nusched.retraceMQ, &msg, OS_MESG_BLOCK); - - switch ((s32) msg) { - case 666: - nuScRetraceCounter++; - - nuScEventBroadcast(&nusched.retraceMsg); - - if (nuScPreNMIFlag){ - if (beforeResetFrame){ - beforeResetFrame--; - } else { - nuScPreNMIFlag |= NU_SC_BEFORE_RESET; - osAfterPreNMI(); - osViSetYScale(1.0); - osViBlack(TRUE); - } - } - break; - case 669: - nuScPreNMIFlag = NU_SC_PRENMI_GET; - nuScEventBroadcast(&nusched.prenmiMsg); - - if (nuScPreNMIFunc != NULL){ - (*nuScPreNMIFunc)(); - } - - beforeResetFrame = (nusched.frameRate / 2) / nusched.retraceCount - 3; - break; - default: - break; - } - } -} - -void nuScEventBroadcast(NUScMsg* msg) { - NUScClient* clientList = nusched.clientList; - - while (clientList != NULL) { - if (clientList->msgType & *msg) { - osSendMesg(clientList->msgQ, msg, OS_MESG_NOBLOCK); - } - clientList = clientList->next; - } -} - -// copy of nuScAddClient -static inline void nuScAddClient_inline(NUScClient* c, OSMesgQueue* mq, NUScMsg msgType) { - s32 mask; - - mask = osSetIntMask(OS_IM_NONE); - - c->msgQ = mq; - c->next = nusched.clientList; - c->msgType = msgType; - - nusched.clientList = c; - - if ((msgType & NU_SC_PRENMI_MSG) && nuScPreNMIFlag) { - osSendMesg(mq, &nusched.prenmiMsg, OS_MESG_NOBLOCK); - } - - osSetIntMask(mask); -} - -// copy of nuScRemoveClient -static inline void nuScRemoveClient_inline(NUScClient* client) { - s32 mask = osSetIntMask(OS_IM_NONE); - NUScClient* clientList = nusched.clientList; - NUScClient* prev = NULL; - - while (clientList != NULL) { - if (clientList == client) { - if (prev != NULL) { - prev->next = clientList->next; - } else { - nusched.clientList = clientList->next; - } - break; - } - prev = clientList; - clientList = clientList->next; - } - - osSetIntMask(mask); -} - -// TODO: investigate why nuScAddClient and nuScRemoveClient were inlined -void nuScWaitTaskReady(NUScTask* task) { - NUScClient client; - void* fb = task->framebuffer; - - if(nusched.frameBufferNum == 1) { - return; - } - - while (osViGetCurrentFramebuffer() == fb || osViGetNextFramebuffer() == fb) { - nuScAddClient_inline(&client, &nusched.waitMQ, NU_SC_RETRACE_MSG); - osRecvMesg(&nusched.waitMQ, NULL, OS_MESG_BLOCK); - nuScRemoveClient_inline(&client); - } -} diff --git a/src/os/vimodefpallpn1.c b/src/os/vimodefpallpn1.c new file mode 100644 index 00000000000..332e1536e4e --- /dev/null +++ b/src/os/vimodefpallpn1.c @@ -0,0 +1,47 @@ +/** + * @file vimodefpallpn1.c + * + * FPAL LPN1 Video Mode + * + * L = Low Resolution + * P = Point Sampled + * N = Non-Interlaced + * 1 = 16-bit Framebuffer + */ +#include "PR/os.h" +#include "PR/rcp.h" +#include "PR/viint.h" + +OSViMode osViModeFpalLpn1 = { + OS_VI_FPAL_LPN1, // type + { + // comRegs + VI_CTRL_TYPE_16 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_ANTIALIAS_MODE_2 | + VI_CTRL_PIXEL_ADV_3, // ctrl + WIDTH(320), // width + BURST(58, 30, 4, 69), // burst + VSYNC(625), // vSync + HSYNC(3177, 23), // hSync + LEAP(3183, 3181), // leap + HSTART(128, 768), // hStart + SCALE(2, 0), // xScale + VCURRENT(0), // vCurrent + }, + { // fldRegs + { + // [0] + ORIGIN(640), // origin + SCALE(1, 0), // yScale + HSTART(47, 617), // vStart + BURST(107, 2, 9, 0), // vBurst + VINTR(2), // vIntr + }, + { + // [1] + ORIGIN(640), // origin + SCALE(1, 0), // yScale + HSTART(47, 617), // vStart + BURST(107, 2, 9, 0), // vBurst + VINTR(2), // vIntr + } }, +}; diff --git a/src/pause/pause_gfx_de.c b/src/pause/pause_gfx_de.c new file mode 100644 index 00000000000..c4416850d6f --- /dev/null +++ b/src/pause/pause_gfx_de.c @@ -0,0 +1,17 @@ +#include "include_asset.h" +INCLUDE_IMG("pause/de/banner_hp.png", pause_banner_hp_de_png); +INCLUDE_PAL("pause/de/banner_hp.pal", pause_banner_hp_de_pal); +INCLUDE_IMG("pause/de/banner_fp.png", pause_banner_fp_de_png); +INCLUDE_PAL("pause/de/banner_fp.pal", pause_banner_fp_de_pal); +INCLUDE_IMG("pause/de/banner_bp.png", pause_banner_bp_de_png); +INCLUDE_PAL("pause/de/banner_bp.pal", pause_banner_bp_de_pal); +INCLUDE_IMG("pause/de/banner_boots.png", pause_banner_boots_de_png); +INCLUDE_PAL("pause/de/banner_boots.pal", pause_banner_boots_de_pal); +INCLUDE_IMG("pause/de/banner_hammer.png", pause_banner_hammer_de_png); +INCLUDE_PAL("pause/de/banner_hammer.pal", pause_banner_hammer_de_pal); +INCLUDE_IMG("pause/de/banner_star_energy.png", pause_banner_star_energy_de_png); +INCLUDE_PAL("pause/de/banner_star_energy.pal", pause_banner_star_energy_de_pal); +INCLUDE_IMG("pause/de/available.png", pause_available_de_png); +INCLUDE_PAL("pause/de/available.pal", pause_available_de_pal); +INCLUDE_IMG("pause/de/prompt_check_abilities.png", pause_prompt_check_abilities_de_png); +INCLUDE_PAL("pause/de/prompt_check_abilities.pal", pause_prompt_check_abilities_de_pal); diff --git a/src/pause/pause_gfx_es.c b/src/pause/pause_gfx_es.c new file mode 100644 index 00000000000..de5cc9e8593 --- /dev/null +++ b/src/pause/pause_gfx_es.c @@ -0,0 +1,17 @@ +#include "include_asset.h" +INCLUDE_IMG("pause/es/banner_hp.png", pause_banner_hp_es_png); +INCLUDE_PAL("pause/es/banner_hp.pal", pause_banner_hp_es_pal); +INCLUDE_IMG("pause/es/banner_fp.png", pause_banner_fp_es_png); +INCLUDE_PAL("pause/es/banner_fp.pal", pause_banner_fp_es_pal); +INCLUDE_IMG("pause/es/banner_bp.png", pause_banner_bp_es_png); +INCLUDE_PAL("pause/es/banner_bp.pal", pause_banner_bp_es_pal); +INCLUDE_IMG("pause/es/banner_boots.png", pause_banner_boots_es_png); +INCLUDE_PAL("pause/es/banner_boots.pal", pause_banner_boots_es_pal); +INCLUDE_IMG("pause/es/banner_hammer.png", pause_banner_hammer_es_png); +INCLUDE_PAL("pause/es/banner_hammer.pal", pause_banner_hammer_es_pal); +INCLUDE_IMG("pause/es/banner_star_energy.png", pause_banner_star_energy_es_png); +INCLUDE_PAL("pause/es/banner_star_energy.pal", pause_banner_star_energy_es_pal); +INCLUDE_IMG("pause/es/available.png", pause_available_es_png); +INCLUDE_PAL("pause/es/available.pal", pause_available_es_pal); +INCLUDE_IMG("pause/es/prompt_check_abilities.png", pause_prompt_check_abilities_es_png); +INCLUDE_PAL("pause/es/prompt_check_abilities.pal", pause_prompt_check_abilities_es_pal); diff --git a/src/pause/pause_gfx_fr.c b/src/pause/pause_gfx_fr.c new file mode 100644 index 00000000000..4972c258aa8 --- /dev/null +++ b/src/pause/pause_gfx_fr.c @@ -0,0 +1,17 @@ +#include "include_asset.h" +INCLUDE_IMG("pause/fr/banner_hp.png", pause_banner_hp_fr_png); +INCLUDE_PAL("pause/fr/banner_hp.pal", pause_banner_hp_fr_pal); +INCLUDE_IMG("pause/fr/banner_fp.png", pause_banner_fp_fr_png); +INCLUDE_PAL("pause/fr/banner_fp.pal", pause_banner_fp_fr_pal); +INCLUDE_IMG("pause/fr/banner_bp.png", pause_banner_bp_fr_png); +INCLUDE_PAL("pause/fr/banner_bp.pal", pause_banner_bp_fr_pal); +INCLUDE_IMG("pause/fr/banner_boots.png", pause_banner_boots_fr_png); +INCLUDE_PAL("pause/fr/banner_boots.pal", pause_banner_boots_fr_pal); +INCLUDE_IMG("pause/fr/banner_hammer.png", pause_banner_hammer_fr_png); +INCLUDE_PAL("pause/fr/banner_hammer.pal", pause_banner_hammer_fr_pal); +INCLUDE_IMG("pause/fr/banner_star_energy.png", pause_banner_star_energy_fr_png); +INCLUDE_PAL("pause/fr/banner_star_energy.pal", pause_banner_star_energy_fr_pal); +INCLUDE_IMG("pause/fr/available.png", pause_available_fr_png); +INCLUDE_PAL("pause/fr/available.pal", pause_available_fr_pal); +INCLUDE_IMG("pause/fr/prompt_check_abilities.png", pause_prompt_check_abilities_fr_png); +INCLUDE_PAL("pause/fr/prompt_check_abilities.pal", pause_prompt_check_abilities_fr_pal); diff --git a/src/pause/pause_items.c b/src/pause/pause_items.c index 9b90a42d163..7d58b43075a 100644 --- a/src/pause/pause_items.c +++ b/src/pause/pause_items.c @@ -1,6 +1,11 @@ #include "pause_common.h" #include "message_ids.h" +#if VERSION_PAL +extern u8 D_PAL_80271B30[4]; +extern u8 D_PAL_80271B34[4]; +#endif + void pause_items_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, s32 height, s32 opacity, s32 darkening); void pause_items_init(MenuPanel* panel); void pause_items_handle_input(MenuPanel* panel); @@ -127,7 +132,6 @@ s32 pause_items_scroll_offset_x(s32 beforeX) { #define X_VAR3 9 #define X_VAR4 18 #define X_VAR5 18 -#define X_VAR6 27 #define X_VAR7 77 #define Y_VAR3 23 #define Y_VAR4 28 @@ -140,8 +144,11 @@ s32 pause_items_scroll_offset_x(s32 beforeX) { #define X_VAR2 105 #define X_VAR3 12 #define X_VAR4 21 +#if VERSION_PAL +#define X_VAR5 D_PAL_80271B34[gCurrentLanguage] +#else #define X_VAR5 25 -#define X_VAR6 34 +#endif #define X_VAR7 85 #define Y_VAR3 17 #define Y_VAR4 23 @@ -151,9 +158,6 @@ s32 pause_items_scroll_offset_x(s32 beforeX) { #define W_VAR2 91 #endif -#if VERSION_PAL -INCLUDE_ASM(void, "pause/pause_items", pause_items_draw_contents); -#else void pause_items_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, s32 height, s32 opacity, s32 darkening) { s32 i, pageIndex, itemIndex; s32 totalItemIndex; @@ -175,6 +179,7 @@ void pause_items_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, s32 msg, msgX, msgY, opacity1; s32 selectedPosX, selectedPosY; s32 cursorOffsetX, cursorOffsetY; + s32 msg2; style = DRAW_MSG_STYLE_MENU; palette = MSG_PAL_STANDARD; @@ -347,6 +352,10 @@ void pause_items_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, W_VAR1, 34, 255, gPauseItemsCurrentTab == 1 ? 128 : 0, 0, 0, 0, 0, 0, 0, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0); +#if VERSION_PAL + if (gCurrentLanguage == LANGUAGE_EN) { +#endif + msg = pause_get_menu_msg(PAUSE_MSG_KEY_ITEMS); msgX = baseX + X_VAR3; if (gPauseItemsCurrentTab == 0) { @@ -357,8 +366,38 @@ void pause_items_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, if (gPauseItemsCurrentTab == 1) { opacity1 = 191; } + draw_msg(msg, msgX, msgY, opacity1, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); +#if VERSION_PAL + } else { + msg = pause_get_menu_msg(PAUSE_MSG_KEY_ITEMS); + msgX = baseX + 12; + if (gPauseItemsCurrentTab == 0) { + msgX = baseX + 21; + } + opacity1 = 255; + msgY = baseY + 12; + if (gPauseItemsCurrentTab == 1) { + opacity1 = 191; + } + + draw_msg(msg, msgX, msgY, opacity1, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); + msg2 = pause_get_menu_msg(PAUSE_MSG_PAL_4B); + msgX = baseX + D_PAL_80271B30[gCurrentLanguage]; + if (gPauseItemsCurrentTab == 0) { + msgX = baseX + D_PAL_80271B30[gCurrentLanguage] + 9; + } + opacity1 = 255; + msgY = baseY + 22; + if (gPauseItemsCurrentTab == 1) { + opacity1 = 191; + } + + draw_msg(msg2, msgX, msgY, opacity1, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); + } +#endif + draw_box(DRAW_FLAG_NO_CLIP, &gPauseWS_17, gPauseItemsCurrentTab == 1 ? baseX + 9 : baseX, baseY + 39, 0, W_VAR2, 34, 255, gPauseItemsCurrentTab == 0 ? 128 : 0, 0, 0, 0, 0, 0, 0, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0); @@ -366,7 +405,7 @@ void pause_items_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, msg = pause_get_menu_msg(PAUSE_MSG_CONSUMABLES); msgX = baseX + X_VAR5; if (gPauseItemsCurrentTab == 1) { - msgX = baseX + X_VAR6; + msgX = baseX + X_VAR5 + 9; } opacity1 = 255; msgY = baseY + 49; @@ -397,7 +436,6 @@ void pause_items_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, } } } -#endif #if VERSION_JP #define ROWS_COUNT 5 diff --git a/src/pause/pause_stats.c b/src/pause/pause_stats.c index d378bf29a9c..cc96b8a2957 100644 --- a/src/pause/pause_stats.c +++ b/src/pause/pause_stats.c @@ -1,5 +1,15 @@ #include "pause_common.h" +#if VERSION_PAL +extern u8 D_PAL_80271B20[4]; +extern u8 D_PAL_80271B14[4]; +extern u8 D_PAL_80271B1C[4]; +extern u8 D_PAL_80271B18[4]; +extern u8 D_PAL_80271B10[4]; +extern u8 D_PAL_80271B24[4]; +extern u8 D_PAL_80271B28[4]; +#endif + void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, s32 height, s32 opacity, s32 darkening); void pause_stats_init(MenuPanel* panel); void pause_stats_handle_input(MenuPanel* panel); @@ -18,6 +28,27 @@ static s32 gPauseStatsIconIDs[12]; #define COL_C_X 110 #define POS_1_X 60 #define POS_2_X 100 +#define POS_3_X 61 +#define POS_4_X 16 +#define PAUSE_BOX_WIDTH 113 +#define X_VAR1 143 +#define X_VAR2 155 +#elif VERSION_PAL +#define NUMBER_OFFSET_Y 0 +#define ROW_1_Y 51 +#define ROW_2_Y 51 +#define ROW_3_Y 85 +#define ROW_4_Y 119 +#define COL_A_X 25 +#define COL_B_X 78 +#define COL_C_X 105 +#define POS_1_X D_PAL_80271B20[gCurrentLanguage] +#define POS_2_X D_PAL_80271B14[gCurrentLanguage] +#define POS_3_X D_PAL_80271B1C[gCurrentLanguage] +#define POS_4_X D_PAL_80271B18[gCurrentLanguage] +#define PAUSE_BOX_WIDTH D_PAL_80271B10[gCurrentLanguage] +#define X_VAR1 D_PAL_80271B24[gCurrentLanguage] +#define X_VAR2 D_PAL_80271B28[gCurrentLanguage] #elif VERSION_JP #define NUMBER_OFFSET_Y 0 #define ROW_1_Y 51 @@ -29,6 +60,11 @@ static s32 gPauseStatsIconIDs[12]; #define COL_C_X 105 #define POS_1_X 62 #define POS_2_X 92 +#define POS_3_X 53 +#define POS_4_X 16 +#define PAUSE_BOX_WIDTH 102 +#define X_VAR1 151 +#define X_VAR2 163 #else #define NUMBER_OFFSET_Y 0 #define ROW_1_Y 51 @@ -40,6 +76,39 @@ static s32 gPauseStatsIconIDs[12]; #define COL_C_X 105 #define POS_1_X 67 #define POS_2_X 106 +#define POS_3_X 61 +#define POS_4_X 16 +#define PAUSE_BOX_WIDTH 113 +#define X_VAR1 143 +#define X_VAR2 155 +#endif + +#if VERSION_JP +#define X_VAR3 239 +#define X_VAR4 233 +#define COUNT_DRAW_STYLE DRAW_NUMBER_STYLE_MONOSPACE +#define X_VAR5 239 +#define X_VAR6 248 +#define X_VAR7 127 +#define X_VAR8 151 +#define X_VAR9 164 +#define X_VAR10 128 +#define X_VAR11 128 +#define X_VAR12 138 +#define X_VAR13 150 +#else +#define X_VAR3 281 +#define X_VAR4 248 +#define COUNT_DRAW_STYLE DRAW_NUMBER_STYLE_MONOSPACE_RIGHT +#define X_VAR5 237 +#define X_VAR6 246 +#define X_VAR7 137 +#define X_VAR8 163 +#define X_VAR9 176 +#define X_VAR10 130 +#define X_VAR11 138 +#define X_VAR12 140 +#define X_VAR13 152 #endif // Probably only used here, but could theoretically be used in the main menu too @@ -182,9 +251,6 @@ MenuPanel gPausePanelStats = { .fpCleanup = &pause_stats_cleanup }; -#if VERSION_PAL -INCLUDE_ASM(void, "pause/pause_stats", pause_stats_draw_contents); -#else void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, s32 height, s32 opacity, s32 darkening) { StatsEntryData* statsEntryData; PlayerData* playerData; @@ -201,56 +267,30 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, s32 frameCount; s32 powFullBars; -#if VERSION_JP // draw coin count - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_COIN], baseX + 151, baseY + 109); + hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_COIN], baseX + X_VAR1, baseY + 109); hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_COIN]); - draw_msg(pause_get_menu_msg(PAUSE_MSG_LBL_COINS), baseX + 163, baseY + 101, 255, MSG_PAL_STANDARD, 1); - draw_number(gPlayerData.coins, baseX + 239, baseY + 101 + NUMBER_OFFSET_Y, 1, MSG_PAL_STANDARD, 255, 2); - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_TIMES], baseX + 233, baseY + 108); + draw_msg(pause_get_menu_msg(PAUSE_MSG_LBL_COINS), baseX + X_VAR2, baseY + 101, 255, MSG_PAL_STANDARD, 1); + draw_number(gPlayerData.coins, baseX + X_VAR3, baseY + 101 + NUMBER_OFFSET_Y, 1, MSG_PAL_STANDARD, 255, COUNT_DRAW_STYLE); + hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_TIMES], baseX + X_VAR4, baseY + 108); hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_TIMES]); // draw star point count - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_STAR_POINT], baseX + 151, baseY + 94); + hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_STAR_POINT], baseX + X_VAR1, baseY + 94); hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_STAR_POINT]); - draw_msg(pause_get_menu_msg(PAUSE_MSG_LBL_STAR_POINTS), baseX + 163, baseY + 86, 255, MSG_PAL_STANDARD, 1); - draw_number(gPlayerData.starPoints, baseX + 239, baseY + 86 + NUMBER_OFFSET_Y, 1, MSG_PAL_STANDARD, 255, 2); - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_TIMES], baseX + 233, baseY + 93); + draw_msg(pause_get_menu_msg(PAUSE_MSG_LBL_STAR_POINTS), baseX + X_VAR2, baseY + 86, 255, MSG_PAL_STANDARD, 1); + draw_number(gPlayerData.starPoints, baseX + X_VAR3, baseY + 86 + NUMBER_OFFSET_Y, 1, MSG_PAL_STANDARD, 255, COUNT_DRAW_STYLE); + hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_TIMES], baseX + X_VAR4, baseY + 93); hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_TIMES]); // draw star piece count - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_STAR_PIECE], baseX + 151, baseY + 123); + hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_STAR_PIECE], baseX + X_VAR1, baseY + 123); hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_STAR_PIECE]); - draw_msg(pause_get_menu_msg(PAUSE_MSG_LBL_STAR_PIECES), baseX + 163, baseY + 116, 255, MSG_PAL_STANDARD, 1); - draw_number(gPlayerData.starPieces, baseX + 239, baseY + 116 + NUMBER_OFFSET_Y, 1, MSG_PAL_STANDARD, 255, 2); - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_TIMES], baseX + 233, baseY + 123); - hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_TIMES]); -#else - // draw coin count - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_COIN], baseX + 143, baseY + 109); - hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_COIN]); - draw_msg(pause_get_menu_msg(PAUSE_MSG_LBL_COINS), baseX + 155, baseY + 101, 255, MSG_PAL_STANDARD, 1); - draw_number(gPlayerData.coins, baseX + 281, baseY + 101 + NUMBER_OFFSET_Y, 1, MSG_PAL_STANDARD, 255, 3); - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_TIMES], baseX + 248, baseY + 108); + draw_msg(pause_get_menu_msg(PAUSE_MSG_LBL_STAR_PIECES), baseX + X_VAR2, baseY + 116, 255, MSG_PAL_STANDARD, 1); + draw_number(gPlayerData.starPieces, baseX + X_VAR3, baseY + 116 + NUMBER_OFFSET_Y, 1, MSG_PAL_STANDARD, 255, COUNT_DRAW_STYLE); + hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_TIMES], baseX + X_VAR4, baseY + 123); hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_TIMES]); - // draw star point count - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_STAR_POINT], baseX + 143, baseY + 94); - hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_STAR_POINT]); - draw_msg(pause_get_menu_msg(PAUSE_MSG_LBL_STAR_POINTS), baseX + 155, baseY + 86, 255, MSG_PAL_STANDARD, 1); - draw_number(gPlayerData.starPoints, baseX + 281, baseY + 86 + NUMBER_OFFSET_Y, 1, MSG_PAL_STANDARD, 255, 3); - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_TIMES], baseX + 248, baseY + 93); - hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_TIMES]); - - // draw star piece count - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_STAR_PIECE], baseX + 143, baseY + 123); - hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_STAR_PIECE]); - draw_msg(pause_get_menu_msg(PAUSE_MSG_LBL_STAR_PIECES), baseX + 155, baseY + 116, 255, MSG_PAL_STANDARD, 1); - draw_number(gPlayerData.starPieces, baseX + 281, baseY + 116 + NUMBER_OFFSET_Y, 1, MSG_PAL_STANDARD, 255, 3); - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_TIMES], baseX + 248, baseY + 123); - hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_TIMES]); -#endif - // draw HP count pause_draw_menu_label(PAUSE_LBL_HP, baseX + 21, baseY + 35); hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_HP], baseX + 52, baseY + 57); @@ -280,27 +320,16 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, #define HOUR (MINUTE * 60) // draw play time -#if VERSION_JP - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_CLOCK], baseX + 151, baseY + 140); + hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_CLOCK], baseX + X_VAR1, baseY + 140); hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_CLOCK]); - draw_msg(pause_get_menu_msg(PAUSE_MSG_LBL_TIME), baseX + 163, baseY + 133, 255, MSG_PAL_STANDARD, 1); -#else - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_CLOCK], baseX + 143, baseY + 140); - hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_CLOCK]); - draw_msg(pause_get_menu_msg(PAUSE_MSG_LBL_TIME), baseX + 155, baseY + 133, 255, MSG_PAL_STANDARD, 1); -#endif + draw_msg(pause_get_menu_msg(PAUSE_MSG_LBL_TIME), baseX + X_VAR2, baseY + 133, 255, MSG_PAL_STANDARD, 1); frameCount = gPlayerData.frameCounter; if (frameCount >= (100 * HOUR)) { frameCount = (100 * HOUR) - 1; } // draw hours -#if VERSION_JP - draw_number((frameCount / (10 * HOUR)) % 10, baseX + 239, baseY + 133 + NUMBER_OFFSET_Y, 1, MSG_PAL_STANDARD, 255, 2); - draw_number((frameCount / HOUR) % 10, baseX + 248, baseY + 133 + NUMBER_OFFSET_Y, 1, MSG_PAL_STANDARD, 255, 2); -#else - draw_number((frameCount / (10 * HOUR)) % 10, baseX + 237, baseY + 133 + NUMBER_OFFSET_Y, 1, MSG_PAL_STANDARD, 255, 2); - draw_number((frameCount / HOUR) % 10, baseX + 246, baseY + 133 + NUMBER_OFFSET_Y, 1, MSG_PAL_STANDARD, 255, 2); -#endif + draw_number((frameCount / (10 * HOUR)) % 10, baseX + X_VAR5, baseY + 133 + NUMBER_OFFSET_Y, 1, MSG_PAL_STANDARD, 255, 2); + draw_number((frameCount / HOUR) % 10, baseX + X_VAR6, baseY + 133 + NUMBER_OFFSET_Y, 1, MSG_PAL_STANDARD, 255, 2); draw_msg(pause_get_menu_msg(PAUSE_MSG_DOT), baseX + 257, baseY + 132, 255, MSG_PAL_STANDARD, 1); draw_msg(pause_get_menu_msg(PAUSE_MSG_DOT), baseX + 257, baseY + 127, 255, MSG_PAL_STANDARD, 1); // draw minutes @@ -310,21 +339,15 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, bootsLevel = gPlayerData.bootsLevel; hammerLevel = gPlayerData.hammerLevel; level = gPlayerData.level; -#if VERSION_JP - draw_box(4, &gPauseWS_10, baseX + 7, baseY + 12, 0, level >= 10 ? 110 : 102, 17, 255, 0, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, NULL, NULL, NULL, SCREEN_WIDTH, SCREEN_HEIGHT, NULL); -#else - draw_box(4, &gPauseWS_10, baseX + 7, baseY + 12, 0, level >= 10 ? 121 : 113, 17, 255, 0, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, NULL, NULL, NULL, SCREEN_WIDTH, SCREEN_HEIGHT, NULL); -#endif + draw_box(4, &gPauseWS_10, baseX + 7, baseY + 12, 0, PAUSE_BOX_WIDTH + (level >= 10 ? 8 : 0), 17, 255, 0, + 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, NULL, NULL, NULL, SCREEN_WIDTH, SCREEN_HEIGHT, NULL); // draw level -#if VERSION_JP - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_MARIO], baseX + 53, baseY + 21); - hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_MARIO]); -#elif VERSION_US || VERSION_PAL - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_MARIO], baseX + 61, baseY + 21); +#if !VERSION_IQUE + hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_MARIO], baseX + POS_3_X, baseY + 21); hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_MARIO]); #endif - draw_msg(pause_get_menu_msg(PAUSE_MSG_MARIO), baseX + 16, baseY + 14, 255, MSG_PAL_WHITE, 1); + draw_msg(pause_get_menu_msg(PAUSE_MSG_MARIO), baseX + POS_4_X, baseY + 14, 255, MSG_PAL_WHITE, 1); draw_msg(pause_get_menu_msg(PAUSE_MSG_LEVEL), baseX + POS_1_X, baseY + 14, 255, MSG_PAL_WHITE, 1); draw_number(level, baseX + POS_2_X, baseY + 14 + NUMBER_OFFSET_Y, 1, MSG_PAL_WHITE, 255, 2); @@ -344,45 +367,24 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, hammerLevel = 3; } -#if VERSION_JP - pause_draw_menu_label(PAUSE_LBL_BOOTS, baseX + 127, baseY + 10); - pause_draw_menu_label(PAUSE_LBL_HAMMER, baseX + 127, baseY + 35); - - // draw boots - hud_element_set_script(gPauseStatsIconIDs[STAT_ICON_BOOTS], gStatsBootsElements[bootsLevel]); - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_BOOTS], baseX + 151, baseY + 29); - hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_BOOTS]); - draw_msg(pause_get_menu_msg(gPauseStatsBootsMessages[bootsLevel]), baseX + 164, baseY + 23, 255, MSG_PAL_WHITE, 1); - - // draw hammer - hud_element_set_script(gPauseStatsIconIDs[STAT_ICON_HAMMER], gStatsHammerElements[hammerLevel]); - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_HAMMER], baseX + 151, baseY + 54); - hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_HAMMER]); - draw_msg(pause_get_menu_msg(gPauseStatsHammerMessages[hammerLevel]), baseX + 164, baseY + 48, 255, MSG_PAL_WHITE, 1); - - // draw star power bar - pause_draw_menu_label(PAUSE_LBL_STATS, baseX + 128, baseY + 69); - pause_draw_menu_label(PAUSE_LBL_ENERGY, baseX + 128, baseY + 60); -#else - pause_draw_menu_label(PAUSE_LBL_BOOTS, baseX + 137, baseY + 10); - pause_draw_menu_label(PAUSE_LBL_HAMMER, baseX + 137, baseY + 35); + pause_draw_menu_label(PAUSE_LBL_BOOTS, baseX + X_VAR7, baseY + 10); + pause_draw_menu_label(PAUSE_LBL_HAMMER, baseX + X_VAR7, baseY + 35); // draw boots hud_element_set_script(gPauseStatsIconIDs[STAT_ICON_BOOTS], gStatsBootsElements[bootsLevel]); - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_BOOTS], baseX + 163, baseY + 29); + hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_BOOTS], baseX + X_VAR8, baseY + 29); hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_BOOTS]); - draw_msg(pause_get_menu_msg(gPauseStatsBootsMessages[bootsLevel]), baseX + 176, baseY + 23, 255, MSG_PAL_WHITE, 1); + draw_msg(pause_get_menu_msg(gPauseStatsBootsMessages[bootsLevel]), baseX + X_VAR9, baseY + 23, 255, MSG_PAL_WHITE, 1); // draw hammer hud_element_set_script(gPauseStatsIconIDs[STAT_ICON_HAMMER], gStatsHammerElements[hammerLevel]); - hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_HAMMER], baseX + 163, baseY + 54); + hud_element_set_render_pos(gPauseStatsIconIDs[STAT_ICON_HAMMER], baseX + X_VAR8, baseY + 54); hud_element_draw_without_clipping(gPauseStatsIconIDs[STAT_ICON_HAMMER]); - draw_msg(pause_get_menu_msg(gPauseStatsHammerMessages[hammerLevel]), baseX + 176, baseY + 48, 255, MSG_PAL_WHITE, 1); + draw_msg(pause_get_menu_msg(gPauseStatsHammerMessages[hammerLevel]), baseX + X_VAR9, baseY + 48, 255, MSG_PAL_WHITE, 1); // draw star power bar - pause_draw_menu_label(PAUSE_LBL_STATS, baseX + 130, baseY + 69); - pause_draw_menu_label(PAUSE_LBL_ENERGY, baseX + 138, baseY + 60); -#endif + pause_draw_menu_label(PAUSE_LBL_STATS, baseX + X_VAR10, baseY + 69); + pause_draw_menu_label(PAUSE_LBL_ENERGY, baseX + X_VAR11, baseY + 60); drawingFirst = TRUE; curIncrement = 0; @@ -405,11 +407,7 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, curIncrement++; hud_element_set_script(powHudElemID, gPauseStatsSPIncElements[powBarIdx]); -#if VERSION_JP - hud_element_set_render_pos(powHudElemID, baseX + 138 + (powBarIdx * 20) + D_8024F46C[0], baseY + 75); -#else - hud_element_set_render_pos(powHudElemID, baseX + 140 + (powBarIdx * 20) + D_8024F46C[0], baseY + 75); -#endif + hud_element_set_render_pos(powHudElemID, baseX + X_VAR12 + (powBarIdx * 20) + D_8024F46C[0], baseY + 75); if (drawingFirst) { hud_element_draw_without_clipping(powHudElemID); drawingFirst = FALSE; @@ -424,11 +422,7 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, curIncrement++; hud_element_set_script(powHudElemID, gPauseStatsSPIncElements[powBarIdx]); -#if VERSION_JP - hud_element_set_render_pos(powHudElemID, baseX + 138 + (powBarIdx * 20) + D_8024F46C[1], baseY + 75); -#else - hud_element_set_render_pos(powHudElemID, baseX + 140 + (powBarIdx * 20) + D_8024F46C[1], baseY + 75); -#endif + hud_element_set_render_pos(powHudElemID, baseX + X_VAR12 + (powBarIdx * 20) + D_8024F46C[1], baseY + 75); if (drawingFirst) { hud_element_draw_without_clipping(powHudElemID); drawingFirst = FALSE; @@ -443,11 +437,7 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, curIncrement++; hud_element_set_script(powHudElemID, gPauseStatsSPIncElements[powBarIdx]); -#if VERSION_JP - hud_element_set_render_pos(powHudElemID, baseX + 138 + (powBarIdx * 20) + D_8024F46C[2], baseY + 75); -#else - hud_element_set_render_pos(powHudElemID, baseX + 140 + (powBarIdx * 20) + D_8024F46C[2], baseY + 75); -#endif + hud_element_set_render_pos(powHudElemID, baseX + X_VAR12 + (powBarIdx * 20) + D_8024F46C[2], baseY + 75); if (drawingFirst) { hud_element_draw_without_clipping(powHudElemID); drawingFirst = FALSE; @@ -462,11 +452,7 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, curIncrement++; hud_element_set_script(powHudElemID, gPauseStatsSPIncElements[powBarIdx]); -#if VERSION_JP - hud_element_set_render_pos(powHudElemID, baseX + 138 + (powBarIdx * 20) + D_8024F46C[3], baseY + 75); -#else - hud_element_set_render_pos(powHudElemID, baseX + 140 + (powBarIdx * 20) + D_8024F46C[3], baseY + 75); -#endif + hud_element_set_render_pos(powHudElemID, baseX + X_VAR12 + (powBarIdx * 20) + D_8024F46C[3], baseY + 75); if (drawingFirst) { hud_element_draw_without_clipping(powHudElemID); drawingFirst = FALSE; @@ -481,11 +467,7 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, curIncrement++; hud_element_set_script(powHudElemID, gPauseStatsSPIncElements[powBarIdx]); -#if VERSION_JP - hud_element_set_render_pos(powHudElemID, baseX + 138 + (powBarIdx * 20) + D_8024F46C[4], baseY + 75); -#else - hud_element_set_render_pos(powHudElemID, baseX + 140 + (powBarIdx * 20) + D_8024F46C[4], baseY + 75); -#endif + hud_element_set_render_pos(powHudElemID, baseX + X_VAR12 + (powBarIdx * 20) + D_8024F46C[4], baseY + 75); if (drawingFirst) { hud_element_draw_without_clipping(powHudElemID); drawingFirst = FALSE; @@ -500,11 +482,7 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, curIncrement++; hud_element_set_script(powHudElemID, gPauseStatsSPIncElements[powBarIdx]); -#if VERSION_JP - hud_element_set_render_pos(powHudElemID, baseX + 138 + (powBarIdx * 20) + D_8024F46C[5], baseY + 75); -#else - hud_element_set_render_pos(powHudElemID, baseX + 140 + (powBarIdx * 20) + D_8024F46C[5], baseY + 75); -#endif + hud_element_set_render_pos(powHudElemID, baseX + X_VAR12 + (powBarIdx * 20) + D_8024F46C[5], baseY + 75); if (drawingFirst) { hud_element_draw_without_clipping(powHudElemID); drawingFirst = FALSE; @@ -519,11 +497,7 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, curIncrement++; hud_element_set_script(powHudElemID, gPauseStatsSPIncElements[powBarIdx]); -#if VERSION_JP - hud_element_set_render_pos(powHudElemID, baseX + 138 + (powBarIdx * 20) + D_8024F46C[6], baseY + 75); -#else - hud_element_set_render_pos(powHudElemID, baseX + 140 + (powBarIdx * 20) + D_8024F46C[6], baseY + 75); -#endif + hud_element_set_render_pos(powHudElemID, baseX + X_VAR12 + (powBarIdx * 20) + D_8024F46C[6], baseY + 75); if (drawingFirst) { hud_element_draw_without_clipping(powHudElemID); drawingFirst = FALSE; @@ -538,11 +512,7 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, curIncrement++; hud_element_set_script(powHudElemID, gPauseStatsStarElements[powBarIdx]); -#if VERSION_JP - hud_element_set_render_pos(powHudElemID, baseX + 150 + (powBarIdx * 20), baseY + 77); -#else - hud_element_set_render_pos(powHudElemID, baseX + 152 + (powBarIdx * 20), baseY + 77); -#endif + hud_element_set_render_pos(powHudElemID, baseX + X_VAR13 + (powBarIdx * 20), baseY + 77); if (drawingFirst) { hud_element_draw_without_clipping(powHudElemID); drawingFirst = FALSE; @@ -571,11 +541,7 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, if (powIncIdx == 0) { curIncrement++; hud_element_set_script(powHudElemID, &HES_StatusSPEmptyIncrement); -#if VERSION_JP - hud_element_set_render_pos(powHudElemID, baseX + 138 + (powBarIdx * 20) + D_8024F46C[0], baseY + 75); -#else - hud_element_set_render_pos(powHudElemID, baseX + 140 + (powBarIdx * 20) + D_8024F46C[0], baseY + 75); -#endif + hud_element_set_render_pos(powHudElemID, baseX + X_VAR12 + (powBarIdx * 20) + D_8024F46C[0], baseY + 75); if (drawingFirst) { hud_element_draw_without_clipping(powHudElemID); drawingFirst = FALSE; @@ -591,11 +557,7 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, if (powIncIdx == 1) { curIncrement++; hud_element_set_script(powHudElemID, &HES_StatusSPEmptyIncrement); -#if VERSION_JP - hud_element_set_render_pos(powHudElemID, baseX + 138 + (powBarIdx * 20) + D_8024F46C[1], baseY + 75); -#else - hud_element_set_render_pos(powHudElemID, baseX + 140 + (powBarIdx * 20) + D_8024F46C[1], baseY + 75); -#endif + hud_element_set_render_pos(powHudElemID, baseX + X_VAR12 + (powBarIdx * 20) + D_8024F46C[1], baseY + 75); if (drawingFirst) { hud_element_draw_without_clipping(powHudElemID); drawingFirst = FALSE; @@ -612,11 +574,7 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, if (powIncIdx == 2) { curIncrement++; hud_element_set_script(powHudElemID, &HES_StatusSPEmptyIncrement); -#if VERSION_JP - hud_element_set_render_pos(powHudElemID, baseX + 138 + (powBarIdx * 20) + D_8024F46C[2], baseY + 75); -#else - hud_element_set_render_pos(powHudElemID, baseX + 140 + (powBarIdx * 20) + D_8024F46C[2], baseY + 75); -#endif + hud_element_set_render_pos(powHudElemID, baseX + X_VAR12 + (powBarIdx * 20) + D_8024F46C[2], baseY + 75); if (drawingFirst) { hud_element_draw_without_clipping(powHudElemID); drawingFirst = FALSE; @@ -633,11 +591,7 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, if (powIncIdx == 3) { curIncrement++; hud_element_set_script(powHudElemID, &HES_StatusSPEmptyIncrement); -#if VERSION_JP - hud_element_set_render_pos(powHudElemID, baseX + 138 + (powBarIdx * 20) + D_8024F46C[3], baseY + 75); -#else - hud_element_set_render_pos(powHudElemID, baseX + 140 + (powBarIdx * 20) + D_8024F46C[3], baseY + 75); -#endif + hud_element_set_render_pos(powHudElemID, baseX + X_VAR12 + (powBarIdx * 20) + D_8024F46C[3], baseY + 75); if (drawingFirst) { hud_element_draw_without_clipping(powHudElemID); drawingFirst = FALSE; @@ -654,11 +608,7 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, if (powIncIdx == 4) { curIncrement++; hud_element_set_script(powHudElemID, &HES_StatusSPEmptyIncrement); -#if VERSION_JP - hud_element_set_render_pos(powHudElemID, baseX + 138 + (powBarIdx * 20) + D_8024F46C[4], baseY + 75); -#else - hud_element_set_render_pos(powHudElemID, baseX + 140 + (powBarIdx * 20) + D_8024F46C[4], baseY + 75); -#endif + hud_element_set_render_pos(powHudElemID, baseX + X_VAR12 + (powBarIdx * 20) + D_8024F46C[4], baseY + 75); if (drawingFirst) { hud_element_draw_without_clipping(powHudElemID); drawingFirst = FALSE; @@ -675,11 +625,7 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, if (powIncIdx == 5) { curIncrement++; hud_element_set_script(powHudElemID, &HES_StatusSPEmptyIncrement); -#if VERSION_JP - hud_element_set_render_pos(powHudElemID, baseX + 138 + (powBarIdx * 20) + D_8024F46C[5], baseY + 75); -#else - hud_element_set_render_pos(powHudElemID, baseX + 140 + (powBarIdx * 20) + D_8024F46C[5], baseY + 75); -#endif + hud_element_set_render_pos(powHudElemID, baseX + X_VAR12 + (powBarIdx * 20) + D_8024F46C[5], baseY + 75); if (drawingFirst) { hud_element_draw_without_clipping(powHudElemID); drawingFirst = FALSE; @@ -696,11 +642,7 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, if (powIncIdx == 6) { curIncrement++; hud_element_set_script(powHudElemID, &HES_StatusSPEmptyIncrement); -#if VERSION_JP - hud_element_set_render_pos(powHudElemID, baseX + 138 + (powBarIdx * 20) + D_8024F46C[6], baseY + 75); -#else - hud_element_set_render_pos(powHudElemID, baseX + 140 + (powBarIdx * 20) + D_8024F46C[6], baseY + 75); -#endif + hud_element_set_render_pos(powHudElemID, baseX + X_VAR12 + (powBarIdx * 20) + D_8024F46C[6], baseY + 75); if (drawingFirst) { hud_element_draw_without_clipping(powHudElemID); drawingFirst = FALSE; @@ -717,11 +659,7 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, if (powIncIdx == 7) { curIncrement++; hud_element_set_script(powHudElemID, &HES_StatusStarEmpty); -#if VERSION_JP - hud_element_set_render_pos(powHudElemID, baseX + 150 + (powBarIdx * 20), baseY + 77); -#else - hud_element_set_render_pos(powHudElemID, baseX + 152 + (powBarIdx * 20), baseY + 77); -#endif + hud_element_set_render_pos(powHudElemID, baseX + X_VAR13 + (powBarIdx * 20), baseY + 77); if (drawingFirst) { hud_element_draw_without_clipping(powHudElemID); drawingFirst = FALSE; @@ -739,12 +677,18 @@ void pause_stats_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width, } if (gPauseMenuCurrentTab == 1) { +#if VERSION_PAL + s32 palOffsetX = menu->selected >= 7 ? D_pause_80253814[gCurrentLanguage] : 0; + StatsEntryData* entry = &gStatsMenuEntries[menu->selected]; + + pause_set_cursor_pos(WIN_PAUSE_STATS, baseX + entry->cursorX + palOffsetX, baseY + entry->cursorY); +#else StatsEntryData* entry = &gStatsMenuEntries[menu->selected]; pause_set_cursor_pos(WIN_PAUSE_STATS, baseX + entry->cursorX, baseY + entry->cursorY); +#endif } } -#endif void pause_stats_init(MenuPanel* panel) { s32 i; diff --git a/src/rumble.c b/src/rumble.c index d813af32ab1..c51f912ebb5 100644 --- a/src/rumble.c +++ b/src/rumble.c @@ -45,6 +45,8 @@ void update_max_rumble_duration(void) { void reset_max_rumble_duration(void) { #if VERSION_JP rumbleMaxDuration = 600; +#elif VERSION_PAL + rumbleMaxDuration = 360; #else rumbleMaxDuration = 300; #endif diff --git a/src/starpoint.c b/src/starpoint.c index adf01e9bc0e..32447f27e90 100644 --- a/src/starpoint.c +++ b/src/starpoint.c @@ -2,6 +2,8 @@ #include "entity.h" #include "include_asset.h" +#if !VERSION_PAL + Lights1 starpoint_lights1 = gdSPDefLights1(0, 0, 0, 0, 0, 0, 0, 0, 0); #if VERSION_JP @@ -119,6 +121,8 @@ Gfx D_802A32D8_7AAC78[] = { }; #endif +#endif + #include "starpoint/digit_0.vtx.inc.c" INCLUDE_IMG("starpoint/digit_0.png", D_802A3340_7AACE0); #include "starpoint/load_digit_0.gfx.inc.c" @@ -189,6 +193,7 @@ INCLUDE_IMG("starpoint/digit_9.png", D_802ACD60_7B4700); #include "starpoint/_render_digit_9.gfx.inc.c" #include "starpoint/render_digit_9.gfx.inc.c" +#if !VERSION_PAL #if VERSION_JP EntityModelScript EMS_starpoint_starpoint = STANDARD_ENTITY_MODEL_SCRIPT(D_802A2B98_7B2608, RENDER_MODE_CLOUD_NO_ZCMP); EntityModelScript EMS_starpoint_starpoints = STANDARD_ENTITY_MODEL_SCRIPT(D_802A2B98_7B2608, RENDER_MODE_CLOUD_NO_ZCMP); @@ -196,6 +201,7 @@ EntityModelScript EMS_starpoint_starpoints = STANDARD_ENTITY_MODEL_SCRIPT(D_802A EntityModelScript EMS_starpoint_starpoint = STANDARD_ENTITY_MODEL_SCRIPT(D_802A2158_7A9AF8, RENDER_MODE_CLOUD_NO_ZCMP); EntityModelScript EMS_starpoint_starpoints = STANDARD_ENTITY_MODEL_SCRIPT(D_802A32D8_7AAC78, RENDER_MODE_CLOUD_NO_ZCMP); #endif +#endif EntityModelScript EMS_starpoint_digit_0 = STANDARD_ENTITY_MODEL_SCRIPT(D_802A4410_7ABDB0, RENDER_MODE_CLOUD_NO_ZCMP); EntityModelScript EMS_starpoint_digit_1 = STANDARD_ENTITY_MODEL_SCRIPT(D_802A5530_7ACED0, RENDER_MODE_CLOUD_NO_ZCMP); EntityModelScript EMS_starpoint_digit_2 = STANDARD_ENTITY_MODEL_SCRIPT(D_802A6650_7ADFF0, RENDER_MODE_CLOUD_NO_ZCMP); diff --git a/src/starpoint_de.c b/src/starpoint_de.c new file mode 100644 index 00000000000..146120f24f8 --- /dev/null +++ b/src/starpoint_de.c @@ -0,0 +1,69 @@ +#include "common.h" +#include "entity.h" +#include "include_asset.h" + +Lights1 starpoint_lights1_de = gdSPDefLights1(0, 0, 0, 0, 0, 0, 0, 0, 0); + +INCLUDE_IMG("de/starpoint/starpoint.png", D_PAL_802ABC98_81B048); +#include "de/starpoint/load_starpoint.gfx.inc.c" +#include "de/starpoint/starpoint.vtx.inc.c" + +Gfx D_PAL_802ACD50_81C100[] = { + gsSPSetLights1(starpoint_lights1_de), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802ACC98_81C048), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802ACD10_81C0C0[0], 4, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ACDB0_81C160[] = { + gsSPSetLights1(starpoint_lights1_de), + gsSPDisplayList(D_PAL_802ACD50_81C100), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ACDD8_81C188[] = { + gsSPSetLights1(starpoint_lights1_de), + gsSPDisplayList(D_PAL_802ACDB0_81C160), + gsSPEndDisplayList(), +}; + +Lights1 starpoint_lights2_de = gdSPDefLights1(0, 0, 0, 0, 0, 0, 0, 0, 0); + +INCLUDE_IMG("de/starpoint/starpoints.png", D_PAL_802ACE18_81C1C8); +#include "de/starpoint/load_starpoints.gfx.inc.c" +#include "de/starpoint/starpoints.vtx.inc.c" + +Gfx D_PAL_802ADED0_81D280[] = { + gsSPSetLights1(starpoint_lights2_de), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802ADE18_81D1C8), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802ADE90_81D240[0], 4, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADF30_81D2E0[] = { + gsSPSetLights1(starpoint_lights2_de), + gsSPDisplayList(D_PAL_802ADED0_81D280), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADF58_81D308[] = { + gsSPSetLights1(starpoint_lights2_de), + gsSPDisplayList(D_PAL_802ADF30_81D2E0), + gsSPEndDisplayList(), +}; + + +EntityModelScript EMS_starpoint_starpoint_de = STANDARD_ENTITY_MODEL_SCRIPT(D_PAL_802ACDD8_81C188, RENDER_MODE_CLOUD_NO_ZCMP); +EntityModelScript EMS_starpoint_starpoints_de = STANDARD_ENTITY_MODEL_SCRIPT(D_PAL_802ADF58_81D308, RENDER_MODE_CLOUD_NO_ZCMP); diff --git a/src/starpoint_en.c b/src/starpoint_en.c new file mode 100644 index 00000000000..0170f1b8542 --- /dev/null +++ b/src/starpoint_en.c @@ -0,0 +1,62 @@ +#include "common.h" +#include "entity.h" +#include "include_asset.h" + +Lights1 starpoint_lights1 = gdSPDefLights1(0, 0, 0, 0, 0, 0, 0, 0, 0); + +INCLUDE_IMG("starpoint/starpoint.png", D_802A1018_7A89B8); +#include "starpoint/load_starpoint.gfx.inc.c" +#include "starpoint/starpoint.vtx.inc.c" +Gfx D_802A20D0_7A9A70[] = { + gsSPSetLights1(starpoint_lights1), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_802A2018_7A99B8), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(D_802A2090_7A9A30, 4, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSPEndDisplayList(), +}; +Gfx D_802A2130_7A9AD0[] = { + gsSPSetLights1(starpoint_lights1), + gsSPDisplayList(D_802A20D0_7A9A70), + gsSPEndDisplayList(), +}; +Gfx D_802A2158_7A9AF8[] = { + gsSPSetLights1(starpoint_lights1), + gsSPDisplayList(D_802A2130_7A9AD0), + gsSPEndDisplayList(), +}; + +Lights1 starpoint_lights2 = gdSPDefLights1(0, 0, 0, 0, 0, 0, 0, 0, 0); +#include "starpoint/starpoints.vtx.inc.c" +INCLUDE_IMG("starpoint/starpoints.png", D_802A21D8_7A9B78); +#include "starpoint/load_starpoints.gfx.inc.c" + +Gfx D_802A3250_7AABF0[] = { + gsSPSetLights1(starpoint_lights2), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_802A31D8_7AAB78), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(D_802A2198_7A9B38, 4, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSPEndDisplayList(), +}; +Gfx D_802A32B0_7AAC50[] = { + gsSPSetLights1(starpoint_lights2), + gsSPDisplayList(D_802A3250_7AABF0), + gsSPEndDisplayList(), +}; +Gfx D_802A32D8_7AAC78[] = { + gsSPSetLights1(starpoint_lights2), + gsSPDisplayList(D_802A32B0_7AAC50), + gsSPEndDisplayList(), +}; + +EntityModelScript EMS_starpoint_starpoint = STANDARD_ENTITY_MODEL_SCRIPT(D_802A2158_7A9AF8, RENDER_MODE_CLOUD_NO_ZCMP); +EntityModelScript EMS_starpoint_starpoints = STANDARD_ENTITY_MODEL_SCRIPT(D_802A32D8_7AAC78, RENDER_MODE_CLOUD_NO_ZCMP); diff --git a/src/starpoint_es.c b/src/starpoint_es.c new file mode 100644 index 00000000000..21b0e84b4eb --- /dev/null +++ b/src/starpoint_es.c @@ -0,0 +1,68 @@ +#include "common.h" +#include "entity.h" +#include "include_asset.h" + +Lights1 starpoint_lights1_es = gdSPDefLights1(0, 0, 0, 0, 0, 0, 0, 0, 0); + +INCLUDE_IMG("es/starpoint/starpoint.png", D_PAL_802ABC98_81F6C8); +#include "es/starpoint/load_starpoint.gfx.inc.c" +#include "es/starpoint/starpoint.vtx.inc.c" + +Gfx D_PAL_802ACD50_820780[] = { + gsSPSetLights1(starpoint_lights1_es), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802ACC98_8206C8), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802ACD10_820740[0], 4, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ACDB0_8207E0[] = { + gsSPSetLights1(starpoint_lights1_es), + gsSPDisplayList(D_PAL_802ACD50_820780), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ACDD8_820808[] = { + gsSPSetLights1(starpoint_lights1_es), + gsSPDisplayList(D_PAL_802ACDB0_8207E0), + gsSPEndDisplayList(), +}; + +Lights1 starpoint_lights2_es = gdSPDefLights1(0, 0, 0, 0, 0, 0, 0, 0, 0); + +INCLUDE_IMG("es/starpoint/starpoints.png", D_PAL_802ACE18_820848); +#include "es/starpoint/load_starpoints.gfx.inc.c" +#include "es/starpoint/starpoints.vtx.inc.c" + +Gfx D_PAL_802ADED0_821900[] = { + gsSPSetLights1(starpoint_lights2_es), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802ADE18_821848), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802ADE90_8218C0[0], 4, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADF30_821960[] = { + gsSPSetLights1(starpoint_lights2_es), + gsSPDisplayList(D_PAL_802ADED0_821900), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADF58_821988[] = { + gsSPSetLights1(starpoint_lights2_es), + gsSPDisplayList(D_PAL_802ADF30_821960), + gsSPEndDisplayList(), +}; + +EntityModelScript EMS_starpoint_starpoint_es = STANDARD_ENTITY_MODEL_SCRIPT(D_PAL_802ACDD8_820808, RENDER_MODE_CLOUD_NO_ZCMP); +EntityModelScript EMS_starpoint_starpoints_es = STANDARD_ENTITY_MODEL_SCRIPT(D_PAL_802ADF58_821988, RENDER_MODE_CLOUD_NO_ZCMP); diff --git a/src/starpoint_fr.c b/src/starpoint_fr.c new file mode 100644 index 00000000000..5b903ef410c --- /dev/null +++ b/src/starpoint_fr.c @@ -0,0 +1,68 @@ +#include "common.h" +#include "entity.h" +#include "include_asset.h" + +Lights1 starpoint_lights1_fr = gdSPDefLights1(0, 0, 0, 0, 0, 0, 0, 0, 0); + +INCLUDE_IMG("fr/starpoint/starpoint.png", D_PAL_802ABC98_81D388); +#include "fr/starpoint/load_starpoint.gfx.inc.c" +#include "fr/starpoint/starpoint.vtx.inc.c" + +Gfx D_PAL_802ACD50_81E440[] = { + gsSPSetLights1(starpoint_lights1_fr), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802ACC98_81E388), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802ACD10_81E400[0], 4, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ACDB0_81E4A0[] = { + gsSPSetLights1(starpoint_lights1_fr), + gsSPDisplayList(D_PAL_802ACD50_81E440), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ACDD8_81E4C8[] = { + gsSPSetLights1(starpoint_lights1_fr), + gsSPDisplayList(D_PAL_802ACDB0_81E4A0), + gsSPEndDisplayList(), +}; + +Lights1 starpoint_lights2_fr = gdSPDefLights1(0, 0, 0, 0, 0, 0, 0, 0, 0); + +INCLUDE_IMG("fr/starpoint/starpoints.png", D_PAL_802ACE18_81E508); +#include "fr/starpoint/load_starpoints.gfx.inc.c" +#include "fr/starpoint/starpoints.vtx.inc.c" + +Gfx D_PAL_802ADED0_81F5C0[] = { + gsSPSetLights1(starpoint_lights2_fr), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2), + gsSPDisplayList(D_PAL_802ADE18_81F508), + gsSPClearGeometryMode(G_LIGHTING), + gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH), + gsSPVertex(&D_PAL_802ADE90_81F580[0], 4, 0), + gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADF30_81F620[] = { + gsSPSetLights1(starpoint_lights2_fr), + gsSPDisplayList(D_PAL_802ADED0_81F5C0), + gsSPEndDisplayList(), +}; + +Gfx D_PAL_802ADF58_81F648[] = { + gsSPSetLights1(starpoint_lights2_fr), + gsSPDisplayList(D_PAL_802ADF30_81F620), + gsSPEndDisplayList(), +}; + +EntityModelScript EMS_starpoint_starpoint_fr = STANDARD_ENTITY_MODEL_SCRIPT(D_PAL_802ACDD8_81E4C8, RENDER_MODE_CLOUD_NO_ZCMP); +EntityModelScript EMS_starpoint_starpoints_fr = STANDARD_ENTITY_MODEL_SCRIPT(D_PAL_802ADF58_81F648, RENDER_MODE_CLOUD_NO_ZCMP); diff --git a/src/state_battle.c b/src/state_battle.c index cb7293554af..bdab1ce29aa 100644 --- a/src/state_battle.c +++ b/src/state_battle.c @@ -15,9 +15,11 @@ u16* bFrameBuffers[] = { gFrameBuf0, gFrameBuf1, gFrameBuf2 }; +#if !VERSION_PAL s32 D_800778AC[] = { 0x00000000, 0xFFFFFF00, 0xFFFFFF00, 0x00000000, 0x00000000 }; +#endif BSS s8 D_800A0900; BSS s32 D_800A0904; diff --git a/src/state_demo.c b/src/state_demo.c index d0db4c3d4d2..506f8d9dddf 100644 --- a/src/state_demo.c +++ b/src/state_demo.c @@ -279,10 +279,15 @@ void state_drawUI_demo(void) { char versionString[] = "Prg Ver.00/07/06 22:22"; #elif VERSION_US char versionString[] = "Prg Ver.00/12/05 16:54"; +#elif VERSION_PAL +char versionString[] = "Prg Ver.01/06/08 21:14"; #elif VERSION_IQUE char versionString[] = "Prg Ver.04/05/18 10:52"; #else char versionString[] = "Prg Ver.??/??/?? ??:??"; #endif -static const f32 pad[] = {0.0f, 0.0f}; +static const f32 pad1 = 0.0f; +#if !VERSION_PAL +static const f32 pad2 = 0.0f; +#endif diff --git a/src/state_file_select.c b/src/state_file_select.c index 187c8de65c6..be4d2c0b7a9 100644 --- a/src/state_file_select.c +++ b/src/state_file_select.c @@ -44,19 +44,51 @@ extern ShapeFile gMapShapeData; BSS s8 D_800A0930; BSS s8 D_800A0931; -static s16 D_800A0932[1]; // TODO any possible workaround to make this visible? +static s16 D_800A0932; // TODO any possible workaround to make this visible? void state_init_language_select(void) { D_800A0931 = 0; - D_800A0932[0] = 0; + D_800A0932 = 0; disable_player_input(); set_time_freeze_mode(TIME_FREEZE_FULL); - set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932[0]); +#if VERSION_PAL + general_heap_create(); + hud_element_set_aux_cache(0, 0); + hud_element_clear_cache(); + mdl_load_all_textures(NULL, 0, 0); + gCameras[CAM_DEFAULT].updateMode = CAM_UPDATE_NO_INTERP; + gCameras[CAM_DEFAULT].needsInit = TRUE; + gCameras[CAM_DEFAULT].nearClip = 16; + gCameras[CAM_DEFAULT].farClip = 4096; + gCameras[CAM_DEFAULT].flags |= CAMERA_FLAG_DISABLED; + gCurrentCameraID = CAM_DEFAULT; + gCameras[CAM_BATTLE].flags |= CAMERA_FLAG_DISABLED; + gCameras[CAM_TATTLE].flags |= CAMERA_FLAG_DISABLED; + gCameras[CAM_HUD].flags |= CAMERA_FLAG_DISABLED; + gCameras[CAM_DEFAULT].vfov = 25.0f; + set_cam_viewport(CAM_DEFAULT, 12, 28, 296, 184); + gCameras[CAM_DEFAULT].params.basic.dist = 40; + gCameras[CAM_DEFAULT].lookAt_eye.x = 500.0f; + gCameras[CAM_DEFAULT].lookAt_eye.y = 1000.0f; + gCameras[CAM_DEFAULT].lookAt_eye.z = 1500.0f; + gCameras[CAM_DEFAULT].lookAt_obj_target.z = 150.0f; + gCameras[CAM_DEFAULT].bgColor[0] = 0; + gCameras[CAM_DEFAULT].bgColor[1] = 0; + gCameras[CAM_DEFAULT].bgColor[2] = 0; + gCameras[CAM_DEFAULT].lookAt_obj_target.x = 25.0f; + gCameras[CAM_DEFAULT].lookAt_obj_target.y = 25.0f; + gCameras[CAM_DEFAULT].params.basic.skipRecalc = FALSE; + gCameras[CAM_DEFAULT].params.basic.fovScale = 100; + gCameras[CAM_DEFAULT].params.basic.pitch = 0; + gOverrideFlags |= GLOBAL_OVERRIDES_WINDOWS_OVER_CURTAINS; +#else + set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932); +#endif } void state_init_file_select(void) { D_800A0931 = 0; - D_800A0932[0] = 0; + D_800A0932 = 0; disable_player_input(); set_time_freeze_mode(TIME_FREEZE_FULL); general_heap_create(); @@ -91,6 +123,34 @@ void state_init_file_select(void) { } void state_step_language_select(void) { +#if VERSION_PAL + switch (D_800A0931) { + case 0: + D_800A0931 = 1; + break; + case 1: + set_windows_visible(WINDOW_GROUP_FILES); + D_800A0930 = 1; + D_800A0931 = 2; + break; + case 2: + if (D_800A0930 >= 0) { + D_800A0930--; + if (D_800A0930 == 0) { + D_800A0930 = -1; + battle_heap_create(); + nuPiReadRomOverlay(&D_8007798C); + filemenu_init(2); + } + if (D_800A0930 >= 0) { + break; + } + } + + filemenu_update(); + break; + } +#else switch (D_800A0931) { case 0: update_player(); @@ -98,14 +158,14 @@ void state_step_language_select(void) { update_encounters(); update_effects(); - if (D_800A0932[0] < 255) { - D_800A0932[0] += 20; + if (D_800A0932 < 255) { + D_800A0932 += 20; - if (D_800A0932[0] > 255) { - D_800A0932[0] = 255; + if (D_800A0932 > 255) { + D_800A0932 = 255; } - set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932[0]); - if (D_800A0932[0] == 255) { + set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932); + if (D_800A0932 == 255) { D_800A0931 = 1; } @@ -169,13 +229,14 @@ void state_step_language_select(void) { } filemenu_update(); - D_800A0932[0] -= 20; - if (D_800A0932[0] < 0) { - D_800A0932[0] = 0; + D_800A0932 -= 20; + if (D_800A0932 < 0) { + D_800A0932 = 0; } - set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932[0]); + set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932); break; } +#endif } void state_step_file_select(void) { @@ -216,20 +277,27 @@ void state_drawUI_file_select(void) { } void state_init_exit_language_select(void) { - if (D_800A0932[0] > 0) { +#if VERSION_PAL + D_800A0931 = 0; + D_800A0932 = 0; + D_800A0930 = 0; + set_map_transition_effect(TRANSITION_SLOW_FADE_TO_WHITE); +#else + if (D_800A0932 > 0) { D_800A0931 = 0; - set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932[0]); + set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932); } else { D_800A0931 = 1; - set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932[0]); + set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932); } D_800A0930 = 1; +#endif gOverrideFlags &= ~GLOBAL_OVERRIDES_40; } void state_init_exit_file_select(void) { D_800A0931 = 0; - D_800A0932[0] = 0; + D_800A0932 = 0; D_800A0930 = 0; if (filemenu_get_exit_mode() == 0) { @@ -243,15 +311,47 @@ void state_init_exit_file_select(void) { } void state_step_exit_language_select(void) { +#if VERSION_PAL + s32 flagSum; + int i; + + filemenu_get_exit_mode(); switch (D_800A0931) { case 0: - if (D_800A0932[0] != 0) { - D_800A0932[0] -= 20; - if (D_800A0932[0] < 0) { - D_800A0932[0] = 0; + flagSum = 0; + for (i = 44; i < ARRAY_COUNT(gWindows); i++) { + Window *window = &gWindows[i]; + + if (window->parent == WIN_FILES_MAIN || window->parent == -1) { + flagSum += window->flags & WINDOW_FLAG_INITIAL_ANIMATION; + } + } + + if (flagSum == 0) { + D_800A0931 = 2; + } + break; + case 2: + filemenu_cleanup(); + set_windows_visible(WINDOW_GROUP_ALL); + D_800A0931 = 3; + /* fallthrough */ + case 3: + set_time_freeze_mode(TIME_FREEZE_NONE); + set_game_mode(GAME_MODE_TITLE_SCREEN); + gOverrideFlags &= ~GLOBAL_OVERRIDES_WINDOWS_OVER_CURTAINS; + break; + } +#else + switch (D_800A0931) { + case 0: + if (D_800A0932 != 0) { + D_800A0932 -= 20; + if (D_800A0932 < 0) { + D_800A0932 = 0; } - set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932[0]); - if (D_800A0932[0] == 0) { + set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932); + if (D_800A0932 == 0) { D_800A0931 = 1; } } else { @@ -259,13 +359,13 @@ void state_step_exit_language_select(void) { } break; case 1: - if (D_800A0932[0] != 255) { - D_800A0932[0] += 20; - if (D_800A0932[0] > 255) { - D_800A0932[0] = 255; + if (D_800A0932 != 255) { + D_800A0932 += 20; + if (D_800A0932 > 255) { + D_800A0932 = 255; } - set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932[0]); - if (D_800A0932[0] == 255) { + set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932); + if (D_800A0932 == 255) { D_800A0931 = 2; } } else { @@ -340,11 +440,11 @@ void state_step_exit_language_select(void) { update_encounters(); update_effects(); - D_800A0932[0] -= 20; - if (D_800A0932[0] < 0) { - D_800A0932[0] = 0; + D_800A0932 -= 20; + if (D_800A0932 < 0) { + D_800A0932 = 0; } - set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932[0]); + set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932); } break; case 3: @@ -353,14 +453,14 @@ void state_step_exit_language_select(void) { update_encounters(); update_effects(); - if (D_800A0932[0] == 0) { + if (D_800A0932 == 0) { D_800A0931 = 4; } else { - D_800A0932[0] -= 20; - if (D_800A0932[0] < 0) { - D_800A0932[0] = 0; + D_800A0932 -= 20; + if (D_800A0932 < 0) { + D_800A0932 = 0; } - set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932[0]); + set_screen_overlay_params_front(OVERLAY_SCREEN_COLOR, D_800A0932); } break; case 4: @@ -373,7 +473,8 @@ void state_step_exit_language_select(void) { set_game_mode(GAME_MODE_WORLD); set_screen_overlay_params_front(OVERLAY_NONE, -1.0f); break; - } + } +#endif } void state_step_exit_file_select(void) { @@ -398,7 +499,7 @@ void state_step_exit_file_select(void) { } break; case 1: - if (exitMode == 0 || update_exit_map_screen_overlay(D_800A0932) != 0) { + if (exitMode == 0 || update_exit_map_screen_overlay(&D_800A0932) != 0) { D_800A0931 = 2; } break; diff --git a/src/state_intro.c b/src/state_intro.c index b5025939319..e21a80a60f8 100644 --- a/src/state_intro.c +++ b/src/state_intro.c @@ -53,7 +53,11 @@ void state_init_intro(void) { startup_set_fade_screen_alpha(0); IntroOverlayAlpha = 0; +#if VERSION_PAL + IntroFrontFadeAlpha = 14; +#else IntroFrontFadeAlpha = 12; +#endif IntroOverlayDelta = 4; IntroOverlayType = OVERLAY_VIEWPORT_COLOR; IntroFadeColorR = 0; diff --git a/src/state_logos.c b/src/state_logos.c index 7ef125bcf4f..7bfe01284a5 100644 --- a/src/state_logos.c +++ b/src/state_logos.c @@ -33,6 +33,7 @@ enum LogoStates { LOGOS_STATE_CLEANUP = 0x0000000B, }; +#if !VERSION_PAL s32 D_800778C0[] = { 0, 0 }; Gfx D_800778C8[] = { @@ -45,6 +46,7 @@ Gfx D_800778C8[] = { gsDPSetTextureFilter(G_TF_POINT), gsSPEndDisplayList(), }; +#endif Gfx D_80077908[] = { gsDPPipeSync(), diff --git a/src/state_pause.c b/src/state_pause.c index e88f8a47d23..08e4ef2fa86 100644 --- a/src/state_pause.c +++ b/src/state_pause.c @@ -26,6 +26,56 @@ NUPiOverlaySegment PauseOverlaySegment = { .bssEnd = pause_BSS_END, }; +#if VERSION_PAL +NUPiOverlaySegment PauseGfxOverlaySegment_en = { + .romStart = pause_gfx_en_ROM_START, + .romEnd = pause_gfx_en_ROM_END, + .ramStart = pause_gfx_en_VRAM, + .textStart = pause_gfx_en_TEXT_START, + .textEnd = pause_gfx_en_TEXT_END, + .dataStart = pause_gfx_en_DATA_START, + .dataEnd = pause_gfx_en_RODATA_END, + .bssStart = pause_gfx_en_BSS_START, + .bssEnd = pause_gfx_en_BSS_END, +}; + +NUPiOverlaySegment PauseGfxOverlaySegment_de = { + .romStart = pause_gfx_de_ROM_START, + .romEnd = pause_gfx_de_ROM_END, + .ramStart = pause_gfx_de_VRAM, + .textStart = pause_gfx_de_TEXT_START, + .textEnd = pause_gfx_de_TEXT_END, + .dataStart = pause_gfx_de_DATA_START, + .dataEnd = pause_gfx_de_RODATA_END, + .bssStart = pause_gfx_de_BSS_START, + .bssEnd = pause_gfx_de_BSS_END, +}; + +NUPiOverlaySegment PauseGfxOverlaySegment_fr = { + .romStart = pause_gfx_fr_ROM_START, + .romEnd = pause_gfx_fr_ROM_END, + .ramStart = pause_gfx_fr_VRAM, + .textStart = pause_gfx_fr_TEXT_START, + .textEnd = pause_gfx_fr_TEXT_END, + .dataStart = pause_gfx_fr_DATA_START, + .dataEnd = pause_gfx_fr_RODATA_END, + .bssStart = pause_gfx_fr_BSS_START, + .bssEnd = pause_gfx_fr_BSS_END, +}; + +NUPiOverlaySegment PauseGfxOverlaySegment_es = { + .romStart = pause_gfx_es_ROM_START, + .romEnd = pause_gfx_es_ROM_END, + .ramStart = pause_gfx_es_VRAM, + .textStart = pause_gfx_es_TEXT_START, + .textEnd = pause_gfx_es_TEXT_END, + .dataStart = pause_gfx_es_DATA_START, + .dataEnd = pause_gfx_es_RODATA_END, + .bssStart = pause_gfx_es_BSS_START, + .bssEnd = pause_gfx_es_BSS_END, +}; +#endif + BSS s8 StepPauseDelay; BSS s8 StepPauseState; BSS s16 StepPauseAlpha; // effectively unused, always zero @@ -93,6 +143,22 @@ void state_step_pause(void) { sfx_set_reverb_mode(0); bgm_quiet_max_volume(); nuPiReadRomOverlay(&PauseOverlaySegment); +#if VERSION_PAL + switch (gCurrentLanguage) { + case LANGUAGE_EN: + nuPiReadRomOverlay(&PauseGfxOverlaySegment_en); + break; + case LANGUAGE_DE: + nuPiReadRomOverlay(&PauseGfxOverlaySegment_de); + break; + case LANGUAGE_FR: + nuPiReadRomOverlay(&PauseGfxOverlaySegment_fr); + break; + case LANGUAGE_ES: + nuPiReadRomOverlay(&PauseGfxOverlaySegment_es); + break; + } +#endif pause_init(); gOverrideFlags &= ~GLOBAL_OVERRIDES_DISABLE_DRAW_FRAME; } diff --git a/src/state_startup.c b/src/state_startup.c index b9d4e7aa5ec..8fc0ed22ed5 100644 --- a/src/state_startup.c +++ b/src/state_startup.c @@ -80,6 +80,13 @@ void state_step_startup(void) { audio_set_mono(); } +#if VERSION_PAL + if (gSaveGlobals.language >= 4) { + gSaveGlobals.language = LANGUAGE_DEFAULT; + } + gCurrentLanguage = gSaveGlobals.language; +#endif + gOverrideFlags &= ~GLOBAL_OVERRIDES_DISABLE_DRAW_FRAME; set_game_mode(GAME_MODE_LOGOS); } diff --git a/src/state_title_screen.c b/src/state_title_screen.c index 022bf12e08b..7a8e4ce236a 100644 --- a/src/state_title_screen.c +++ b/src/state_title_screen.c @@ -3,6 +3,7 @@ #include "hud_element.h" #include "sprite.h" #include "game_modes.h" +#include "ld_addrs.h" #if VERSION_JP #define TITLE_WIDTH 272 @@ -24,6 +25,15 @@ #define TITLE_NUM_TILES (TITLE_HEIGHT / TITLE_TILE_HEIGHT) // Number of tiles in the texture #define TITLE_TILE_PIXELS (TITLE_WIDTH * TITLE_TILE_HEIGHT) // Number of pixels in a single tile of the texture +#if VERSION_PAL +#define TITLE_LOGO_YOFFSET -110 +#define TITLE_START_TIME 400 +#else +#define TITLE_LOGO_YOFFSET -100 +#define TITLE_START_TIME 480 +#endif + + enum TitleScreenStates { TITLE_STATE_INIT = 0x00000000, TITLE_STATE_APPEAR = 0x00000001, @@ -41,6 +51,14 @@ enum { NEXT_STATE_NONE = 0, // used only for the initial value }; +enum TitleMenuVisibilityStates { + TITLEMENU_STATE_FADE_IN, +#if VERSION_PAL + TITLEMENU_STATE_VISIBLE, +#endif + TITLEMENU_STATE_FADE_OUT, +}; + s16 TitleScreenNextState = NEXT_STATE_NONE; SaveMetadata gSaveSlotMetadata[4] = { @@ -52,15 +70,20 @@ SaveMetadata gSaveSlotMetadata[4] = { u8 gSaveSlotHasData[4] = { TRUE, TRUE, TRUE, TRUE }; -s32 PressStart_Alpha = 0; // the opacity of "PRESS START" text -b32 PressStart_IsVisible = FALSE; // toggles the visibility of "PRESS START" -s32 PressStart_BlinkCounter = 0; // counts to 16, then toggles PressStart_IsVisible +s32 TitleMenu_Alpha = 0; // the opacity of "PRESS START" text +s32 TitleMenu_Visibility = TITLEMENU_STATE_FADE_IN; // toggles the visibility of "PRESS START" +s32 TitleMenu_BlinkCounter = 0; // counts to 16, then toggles TitleMenu_Visibility // controls whether the intro story or the demo will player after TITLE_STATE_HOLD is done // since this state is reached for the first time after the intro has already played once or was skipped, // this is initially false and the demo is will play first. s32 PlayIntroNext = FALSE; +#if VERSION_PAL +b32 LanguageSelectedPrev = FALSE; +b32 LanguageSelected = FALSE; +#endif + Lights1 D_80077A38 = gdSPDefLights1(255, 255, 255, 0, 0, 0, 0, 0, 0); Gfx TitleSetupGfx[] = { @@ -84,6 +107,13 @@ Gfx TitleSetupGfx[] = { gsSPEndDisplayList(), }; +#if VERSION_PAL +s32 StartGame_Width[] = { 96, 88, 144, 120 }; +s32 Languages_Width[] = { 88, 80, 64, 64 }; +s32 StartGame_PosX[] = { 116, 120, 88, 106 }; +s32 Languages_PosX[] = { 121, 124, 130, 132 }; +#endif + typedef struct TitleDataStruct { /* 0x0 */ s32 logo; /* 0x4 */ s32 copyright; @@ -91,6 +121,11 @@ typedef struct TitleDataStruct { /* 0xC */ s32 copyrightPalette; } TitleDataStruct; // size = 0x10 +typedef struct TitleMenuDataStruct { + /* 0x0 */ IMG_BIN *startGame; + /* 0x4 */ IMG_BIN *languages; +} TitleMenuDataStruct; // size = 0x8 + #if VERSION_JP #define COPYRIGHT_WIDTH 128 #else @@ -102,14 +137,23 @@ BSS TitleDataStruct* TitleScreen_ImgList; BSS s32* TitleScreen_ImgList_Logo; BSS u8 (*TitleScreen_ImgList_Copyright)[COPYRIGHT_WIDTH]; BSS s32* TitleScreen_ImgList_PressStart; +#if VERSION_PAL +BSS TitleMenuDataStruct* TitleMenu_ImgList; +BSS u8 *TitleMenu_ImgList_StartGame; +BSS u8 *TitleMenu_ImgList_Languages; +BSS s16 TitleScreen_TimeLeft; +BSS s32 StartGame_Alpha; +BSS s32 Languages_Alpha; +#else BSS s32* TitleScreen_ImgList_CopyrightPalette; BSS s16 TitleScreen_TimeLeft; +#endif void appendGfx_title_screen(void); void draw_title_screen_NOP(void); void title_screen_draw_images(f32, f32); void title_screen_draw_logo(f32); -void title_screen_draw_press_start(void); +void title_screen_draw_menu(void); void title_screen_draw_copyright(f32); void state_init_title_screen(void) { @@ -139,6 +183,12 @@ void state_init_title_screen(void) { #if VERSION_JP TitleScreen_ImgList_CopyrightPalette = (s32*)(TitleScreen_ImgList->copyrightPalette + (s32) TitleScreen_ImgList); #endif +#if VERSION_PAL + TitleMenu_ImgList = heap_malloc((s32)titlemenu_DATA_SIZE); + dma_copy(titlemenu_ROM_START, titlemenu_ROM_END, TitleMenu_ImgList); + TitleMenu_ImgList_StartGame = (u8*)(TitleMenu_ImgList[gCurrentLanguage].startGame + (s32) TitleMenu_ImgList); + TitleMenu_ImgList_Languages = (u8*)(TitleMenu_ImgList[gCurrentLanguage].languages + (s32) TitleMenu_ImgList); +#endif create_cameras(); gCameras[CAM_DEFAULT].updateMode = CAM_UPDATE_NO_INTERP; @@ -183,7 +233,7 @@ void state_init_title_screen(void) { load_map_bg("title_bg"); set_background(&gBackgroundImage); bgm_set_song(0, SONG_MAIN_THEME, 0, 500, 8); - TitleScreen_TimeLeft = 480; + TitleScreen_TimeLeft = TITLE_START_TIME; } void state_step_title_screen(void) { @@ -222,6 +272,23 @@ void state_step_title_screen(void) { startup_fade_screen_update(); break; case TITLE_STATE_HOLD: +#if VERSION_PAL + if(gGameStatusPtr->pressedButtons[0] & BUTTON_STICK_DOWN) { + LanguageSelected = TRUE; + } + + if(gGameStatusPtr->pressedButtons[0] & BUTTON_STICK_UP) { + LanguageSelected = FALSE; + } + + if(LanguageSelectedPrev != LanguageSelected) { + LanguageSelectedPrev = LanguageSelected; + sfx_play_sound(SOUND_MENU_CHANGE_TAB); + if(TitleScreen_TimeLeft < 125) { + TitleScreen_TimeLeft = 125; + } + } +#endif if (PlayIntroNext && TitleScreen_TimeLeft == 120) { bgm_set_song(0, -1, 0, 3900, 8); } @@ -311,7 +378,15 @@ void state_step_title_screen(void) { gGameStatusPtr->areaID = AREA_KMR; gGameStatusPtr->mapID = 0xB; //TODO hardcoded map IDs gGameStatusPtr->entryID = 0; +#if VERSION_PAL + if(LanguageSelected) { + set_game_mode(GAME_MODE_LANGUAGE_SELECT); + } else { + set_game_mode(GAME_MODE_FILE_SELECT); + } +#else set_game_mode(GAME_MODE_FILE_SELECT); +#endif break; } return; @@ -326,21 +401,35 @@ void state_step_title_screen(void) { void state_drawUI_title_screen(void) { switch (gGameStatusPtr->startupState) { case TITLE_STATE_INIT: - PressStart_Alpha = 0; - PressStart_IsVisible = FALSE; - PressStart_BlinkCounter = 0; + TitleMenu_Alpha = 0; + TitleMenu_Visibility = TITLEMENU_STATE_FADE_IN; + TitleMenu_BlinkCounter = 0; +#if VERSION_PAL + StartGame_Alpha = 0; + Languages_Alpha = 0; +#endif draw_title_screen_NOP(); break; case TITLE_STATE_HOLD: draw_title_screen_NOP(); if (gGameStatusPtr->contBitPattern & 1) { - title_screen_draw_press_start(); + title_screen_draw_menu(); } case TITLE_STATE_UNUSED: break; case TITLE_STATE_APPEAR: +#if VERSION_PAL + draw_title_screen_NOP(); + break; +#endif case TITLE_STATE_BEGIN_DISMISS: case TITLE_STATE_DISMISS: +#if VERSION_PAL + if (gGameStatusPtr->contBitPattern & 1) { + TitleMenu_Visibility = TITLEMENU_STATE_FADE_OUT; + } + title_screen_draw_menu(); +#endif draw_title_screen_NOP(); break; } @@ -412,7 +501,7 @@ void title_screen_draw_logo(f32 moveAlpha) { gSPDisplayList(gMainGfxPos++, TitleSetupGfx); gDPPipeSync(gMainGfxPos++); - yOffset = -100 * moveAlpha; + yOffset = TITLE_LOGO_YOFFSET * moveAlpha; for (i = 0; i < TITLE_NUM_TILES; i++) { // Load a tile from the logo texture @@ -443,41 +532,113 @@ void title_screen_draw_logo(f32 moveAlpha) { #define VAR_2 676 #endif -void title_screen_draw_press_start(void) { - switch (PressStart_IsVisible) { - case FALSE: - PressStart_Alpha -= 128; - if (PressStart_Alpha < 0) { - PressStart_Alpha = 0; +void title_screen_draw_menu(void) { +#if VERSION_PAL + switch (TitleMenu_Visibility) { + case TITLEMENU_STATE_FADE_IN: + TitleMenu_Alpha += 80; + if (TitleMenu_Alpha > 255) { + TitleMenu_Alpha = 255; + TitleMenu_Visibility = TITLEMENU_STATE_VISIBLE; + } + /* fallthrough */ + case TITLEMENU_STATE_VISIBLE: + if (!LanguageSelected) { + StartGame_Alpha += 64; + Languages_Alpha -= 64; + if (StartGame_Alpha > TitleMenu_Alpha) { + StartGame_Alpha = TitleMenu_Alpha; + } + if (Languages_Alpha < TitleMenu_Alpha / 2.0f) { + Languages_Alpha = TitleMenu_Alpha / 2.0f; + } + } else { + Languages_Alpha += 64; + StartGame_Alpha -= 64; + if (Languages_Alpha > TitleMenu_Alpha) { + Languages_Alpha = TitleMenu_Alpha; + } + if (StartGame_Alpha < TitleMenu_Alpha / 2.0f) { + StartGame_Alpha = TitleMenu_Alpha / 2.0f; + } } - PressStart_BlinkCounter++; - if (PressStart_BlinkCounter >= 16) { - PressStart_BlinkCounter = 0; - PressStart_IsVisible = TRUE; + break; + case TITLEMENU_STATE_FADE_OUT: + TitleMenu_Alpha -= 64; + if (TitleMenu_Alpha < 0) { + TitleMenu_Alpha = 0; } break; - case TRUE: - PressStart_Alpha += 128; - if (PressStart_Alpha > 255) { - PressStart_Alpha = 255; + } + if (TitleMenu_Visibility != TITLEMENU_STATE_VISIBLE) { + if (!LanguageSelected) { + StartGame_Alpha = TitleMenu_Alpha; + Languages_Alpha = TitleMenu_Alpha / 2.0f; + } else { + Languages_Alpha = TitleMenu_Alpha; + StartGame_Alpha = TitleMenu_Alpha / 2.0f; + } + } +#else + switch (TitleMenu_Visibility) { + case TITLEMENU_STATE_FADE_IN: + TitleMenu_Alpha -= 128; + if (TitleMenu_Alpha < 0) { + TitleMenu_Alpha = 0; } - PressStart_BlinkCounter++; - if (PressStart_BlinkCounter >= 16) { - PressStart_BlinkCounter = 0; - PressStart_IsVisible = FALSE; + TitleMenu_BlinkCounter++; + if (TitleMenu_BlinkCounter >= 16) { + TitleMenu_BlinkCounter = 0; + TitleMenu_Visibility = TITLEMENU_STATE_FADE_OUT; + } + break; + case TITLEMENU_STATE_FADE_OUT: + TitleMenu_Alpha += 128; + if (TitleMenu_Alpha > 255) { + TitleMenu_Alpha = 255; + } + + TitleMenu_BlinkCounter++; + if (TitleMenu_BlinkCounter >= 16) { + TitleMenu_BlinkCounter = 0; + TitleMenu_Visibility = TITLEMENU_STATE_FADE_IN; } } +#endif gSPDisplayList(gMainGfxPos++, TitleSetupGfx); gDPSetCombineMode(gMainGfxPos++, G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM); - gDPSetPrimColor(gMainGfxPos++, 0, 0, 248, 240, 152, PressStart_Alpha); +#if VERSION_PAL + gDPSetPrimColor(gMainGfxPos++, 0, 0, 248, 240, 152, (u8)StartGame_Alpha); + gDPPipeSync(gMainGfxPos++); + + gDPLoadTextureBlock(gMainGfxPos++, TitleMenu_ImgList_StartGame, G_IM_FMT_IA, G_IM_SIZ_8b, + StartGame_Width[gCurrentLanguage], 16, 0, + G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, + G_TX_NOLOD); + gSPTextureRectangle(gMainGfxPos++, StartGame_PosX[gCurrentLanguage] * 4, 149 * 4, + (StartGame_PosX[gCurrentLanguage] + StartGame_Width[gCurrentLanguage]) * 4, (149 + 16) * 4, + G_TX_RENDERTILE, 0, 0, 0x0400, 0x0400); + gDPSetPrimColor(gMainGfxPos++, 0, 0, 248, 240, 152, (u8)Languages_Alpha); + gDPPipeSync(gMainGfxPos++); + + gDPLoadTextureBlock(gMainGfxPos++, TitleMenu_ImgList_Languages, G_IM_FMT_IA, G_IM_SIZ_8b, + Languages_Width[gCurrentLanguage], 16, 0, + G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, + G_TX_NOLOD); + gSPTextureRectangle(gMainGfxPos++, Languages_PosX[gCurrentLanguage] * 4, 169 * 4, + (Languages_PosX[gCurrentLanguage] + Languages_Width[gCurrentLanguage]) * 4, (169 + 16) * 4, + G_TX_RENDERTILE, 0, 0, 0x0400, 0x0400); +#else + gDPSetPrimColor(gMainGfxPos++, 0, 0, 248, 240, 152, TitleMenu_Alpha); gDPPipeSync(gMainGfxPos++); gDPLoadTextureBlock(gMainGfxPos++, TitleScreen_ImgList_PressStart, G_IM_FMT_IA, G_IM_SIZ_8b, 128, VAR_1, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD); gSPTextureRectangle(gMainGfxPos++, 384, 548, 896, VAR_2, G_TX_RENDERTILE, 0, 0, 0x0400, 0x0400); +#endif gDPPipeSync(gMainGfxPos++); } diff --git a/src/status_icons.c b/src/status_icons.c index 6064fcc68e1..04ff446b460 100644 --- a/src/status_icons.c +++ b/src/status_icons.c @@ -114,6 +114,14 @@ extern HudScript HES_BoostPartner; extern HudScript HES_Surprise; extern HudScript HES_Peril; extern HudScript HES_Danger; +#if VERSION_PAL +extern HudScript HES_Peril_de; +extern HudScript HES_Danger_de; +extern HudScript HES_Peril_fr; +extern HudScript HES_Danger_fr; +extern HudScript HES_Peril_es; +extern HudScript HES_Danger_es; +#endif void update_merlee_message(void* popup); void draw_merlee_message(void* popup); @@ -1299,7 +1307,24 @@ void create_status_icon_peril(s32 iconID) { statusIcon->flags &= ~STATUS_ICON_FLAG_PERIL; if (!statusIcon->peril.active) { statusIcon->peril.active = TRUE; +#if VERSION_PAL + switch (gCurrentLanguage) { + case LANGUAGE_EN: + hid = hud_element_create(&HES_Peril); + break; + case LANGUAGE_DE: + hid = hud_element_create(&HES_Peril_de); + break; + case LANGUAGE_FR: + hid = hud_element_create(&HES_Peril_fr); + break; + case LANGUAGE_ES: + hid = hud_element_create(&HES_Peril_es); + break; + } +#else hid = hud_element_create(&HES_Peril); +#endif hud_element_set_flags(hid, HUD_ELEMENT_FLAG_DISABLED); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80); statusIcon->peril.activeElementID = hid; @@ -1328,7 +1353,24 @@ void create_status_icon_danger(s32 iconID) { statusIcon->flags &= ~STATUS_ICON_FLAG_DANGER; if (!statusIcon->danger.active) { statusIcon->danger.active = TRUE; +#if VERSION_PAL + switch (gCurrentLanguage) { + case LANGUAGE_EN: + hid = hud_element_create(&HES_Danger); + break; + case LANGUAGE_DE: + hid = hud_element_create(&HES_Danger_de); + break; + case LANGUAGE_FR: + hid = hud_element_create(&HES_Danger_fr); + break; + case LANGUAGE_ES: + hid = hud_element_create(&HES_Danger_es); + break; + } +#else hid = hud_element_create(&HES_Danger); +#endif hud_element_set_flags(hid, HUD_ELEMENT_FLAG_DISABLED); hud_element_set_flags(hid, HUD_ELEMENT_FLAG_80); statusIcon->danger.activeElementID = hid; diff --git a/src/titlemenu.c b/src/titlemenu.c new file mode 100644 index 00000000000..dc2a5d3cc57 --- /dev/null +++ b/src/titlemenu.c @@ -0,0 +1,57 @@ +#include "common.h" +#include "include_asset.h" + +// TODO should move this in a header +typedef struct TitleMenuDataStruct { + /* 0x0 */ IMG_BIN* startGame; + /* 0x4 */ IMG_BIN* languages; +} TitleMenuDataStruct; // size = 0x8 + +extern IMG_BIN title_start_game_png[]; +extern IMG_BIN title_languages_png[]; +extern IMG_BIN title_start_game_de_png[]; +extern IMG_BIN title_languages_de_png[]; +extern IMG_BIN title_start_game_fr_png[]; +extern IMG_BIN title_languages_fr_png[]; +extern IMG_BIN title_start_game_es_png[]; +extern IMG_BIN title_languages_es_png[]; + +TitleMenuDataStruct TitleMenuOffsets[] = { + { + .startGame = title_start_game_png, + .languages = title_languages_png, + }, + { + .startGame = title_start_game_de_png, + .languages = title_languages_de_png, + }, + { + .startGame = title_start_game_fr_png, + .languages = title_languages_fr_png, + }, + { + .startGame = title_start_game_es_png, + .languages = title_languages_es_png, + }, +}; + +Gfx titlemenu_pad_2596C0[] = { gsSPEndDisplayList(), }; +INCLUDE_IMG("title/start_game.png", title_start_game_png); +Gfx titlemenu_pad_259CE8[] = { gsSPEndDisplayList(), }; +INCLUDE_IMG("title/languages.png", title_languages_png); + +Gfx titlemenu_pad_25A270[] = { gsSPEndDisplayList(), }; +INCLUDE_IMG("de/title/start_game.png", title_start_game_de_png); +Gfx titlemenu_pad_25A7F8[] = { gsSPEndDisplayList(), }; +INCLUDE_IMG("de/title/languages.png", title_languages_de_png); + +Gfx titlemenu_pad_25AD00[] = { gsSPEndDisplayList(), }; +INCLUDE_IMG("fr/title/start_game.png", title_start_game_fr_png); +Gfx titlemenu_pad_25B608[] = { gsSPEndDisplayList(), }; +INCLUDE_IMG("fr/title/languages.png", title_languages_fr_png); + +Gfx titlemenu_pad_25BA10[] = { gsSPEndDisplayList(), }; +INCLUDE_IMG("es/title/start_game.png", title_start_game_es_png); +Gfx titlemenu_pad_25C198[] = { gsSPEndDisplayList(), }; +INCLUDE_IMG("es/title/languages.png", title_languages_es_png); + diff --git a/src/world/area_end/end_00/parade_setup.c b/src/world/area_end/end_00/parade_setup.c index 57b4a908801..4568fda10fc 100644 --- a/src/world/area_end/end_00/parade_setup.c +++ b/src/world/area_end/end_00/parade_setup.c @@ -71,7 +71,7 @@ API_CALLABLE(N(UpdateCameraScroll)) { Camera* camera = &gCameras[gCurrentCameraID]; camera->panActive = TRUE; - camera->movePos.x += PARADE_SCROLL_RATE / DT; + camera->movePos.x += PARADE_SCROLL_RATE / (f32) DT; return ApiStatus_DONE2; } @@ -92,7 +92,7 @@ API_CALLABLE(N(AddScrollToNpcPos)) { *npc = get_npc_unsafe(evt_get_variable(script, *args++)); } - (*npc)->pos.x += PARADE_SCROLL_RATE / DT; + (*npc)->pos.x += PARADE_SCROLL_RATE / (f32) DT; return ApiStatus_BLOCK; } diff --git a/src/world/area_end/end_01/parade_setup.c b/src/world/area_end/end_01/parade_setup.c index 1ef08bdef4e..e1f55850bcd 100644 --- a/src/world/area_end/end_01/parade_setup.c +++ b/src/world/area_end/end_01/parade_setup.c @@ -67,7 +67,7 @@ API_CALLABLE(N(UpdateCameraScroll)) { Camera* camera = &gCameras[gCurrentCameraID]; camera->panActive = TRUE; - camera->movePos.x += PARADE_SCROLL_RATE / DT; + camera->movePos.x += PARADE_SCROLL_RATE / (f32) DT; return ApiStatus_DONE2; } @@ -79,7 +79,7 @@ API_CALLABLE(N(AddScrollToNpcPos)) { *npc = get_npc_unsafe(evt_get_variable(script, *args++)); } - (*npc)->pos.x += PARADE_SCROLL_RATE / DT; + (*npc)->pos.x += PARADE_SCROLL_RATE / (f32) DT; return ApiStatus_BLOCK; } diff --git a/src/world/area_kmr/kmr_00/revival.c b/src/world/area_kmr/kmr_00/revival.c index 33d947ca5d9..af00151af74 100644 --- a/src/world/area_kmr/kmr_00/revival.c +++ b/src/world/area_kmr/kmr_00/revival.c @@ -140,8 +140,8 @@ API_CALLABLE(N(func_802405F0_8AC580)) { npc->moveToPos.y = 3.0f; if (script->VAR_1 >= script->varTable[15]) { npc->pos.y = 100.0f; - add_vec2D_polar(&npc->pos.x, &npc->pos.z, 70.0f / DT, npc->moveToPos.x + (script->functionTemp[2] * 51) + 153.0f); - npc->pos.y += (-npc->pos.z + -50.0f + 70.0f / DT) * 0.15f; + add_vec2D_polar(&npc->pos.x, &npc->pos.z, 70.0f / (f32) DT, npc->moveToPos.x + (script->functionTemp[2] * 51) + 153.0f); + npc->pos.y += (-npc->pos.z + -50.0f + 70.0f / (f32) DT) * 0.15f; sfx_play_sound_at_position(SOUND_SEQ_STAR_SPIRIT_APPEAR, SOUND_SPACE_DEFAULT, npc->pos.x, npc->pos.y, npc->pos.z); fx_sparkles(FX_SPARKLES_0, npc->pos.x, npc->pos.y + 20.0f, npc->pos.z, 20.0f); script->functionTemp[0] = FUNC_STATE_1; @@ -151,8 +151,8 @@ API_CALLABLE(N(func_802405F0_8AC580)) { npc->pos.x = 0.0f; npc->pos.z = -50.0f; npc->pos.y = 100.0f; - add_vec2D_polar(&npc->pos.x, &npc->pos.z, 70.0f / DT, npc->moveToPos.x + (script->functionTemp[2] * 51) + 153.0f); - npc->pos.y += (-npc->pos.z + -50.0f + 70.0f / DT) * 0.15f; + add_vec2D_polar(&npc->pos.x, &npc->pos.z, 70.0f / (f32) DT, npc->moveToPos.x + (script->functionTemp[2] * 51) + 153.0f); + npc->pos.y += (-npc->pos.z + -50.0f + 70.0f / (f32) DT) * 0.15f; if ((script->VAR_1 + script->functionTemp[2]) % 13 == 0) { fx_sparkles(FX_SPARKLES_3, npc->pos.x, npc->pos.y + 10.0f, npc->pos.z, 10.0f); } @@ -165,8 +165,8 @@ API_CALLABLE(N(func_802405F0_8AC580)) { npc->pos.x = 0.0f; npc->pos.z = -50.0f; npc->pos.y = 100.0f - (script->VAR_2 * 0.3f); - add_vec2D_polar(&npc->pos.x, &npc->pos.z, 70.0f / DT, npc->moveToPos.x + (script->functionTemp[2] * 51) + 153.0f); - npc->pos.y += (-npc->pos.z + -50.0f + 70.0f / DT) * 0.15f; + add_vec2D_polar(&npc->pos.x, &npc->pos.z, 70.0f / (f32) DT, npc->moveToPos.x + (script->functionTemp[2] * 51) + 153.0f); + npc->pos.y += (-npc->pos.z + -50.0f + 70.0f / (f32) DT) * 0.15f; if ((script->VAR_1 + script->functionTemp[2]) % 13 == 0) { fx_sparkles(FX_SPARKLES_3, npc->pos.x, npc->pos.y + 10.0f, npc->pos.z, 10.0f); } @@ -185,8 +185,8 @@ API_CALLABLE(N(func_802405F0_8AC580)) { npc->pos.x = 0.0f; npc->pos.z = -50.0f; npc->pos.y = 45.999996f; - add_vec2D_polar(&npc->pos.x, &npc->pos.z, 70.0f / DT, npc->moveToPos.x + (script->functionTemp[2] * 51) + 153.0f); - npc->pos.y += (-npc->pos.z + -50.0f + 70.0f / DT) * 0.15f; + add_vec2D_polar(&npc->pos.x, &npc->pos.z, 70.0f / (f32) DT, npc->moveToPos.x + (script->functionTemp[2] * 51) + 153.0f); + npc->pos.y += (-npc->pos.z + -50.0f + 70.0f / (f32) DT) * 0.15f; if ((script->VAR_1 + script->functionTemp[2]) % 13 == 0) { fx_sparkles(FX_SPARKLES_3, npc->pos.x, npc->pos.y + 10.0f, npc->pos.z, 10.0f); } diff --git a/src/world/area_mgm/mgm_00/scoreboard.c b/src/world/area_mgm/mgm_00/scoreboard.c index af694d05d27..a4b44745e88 100644 --- a/src/world/area_mgm/mgm_00/scoreboard.c +++ b/src/world/area_mgm/mgm_00/scoreboard.c @@ -30,11 +30,11 @@ EvtScript N(D_80243C40_E123E0) = { }; #if VERSION_PAL -s32 N(pal_unkdata)[] = { +s32 N(RecordBox_Widths)[] = { 230, 238, 234, 246, }; -s32 N(pal_unkdata_2)[] = { +s32 N(RecordBox_OffsetsX)[] = { 45, 41, 43, 37 }; #endif @@ -65,62 +65,106 @@ Gfx N(Gfx_RecordDisplay_Init)[] = { }; #if VERSION_PAL -void N(draw_record_display)(RecordDisplayData* data, s32 alpha); -INCLUDE_ASM(void, "world/area_mgm/mgm_00/mgm_00_3_scoreboard", mgm_00_draw_record_display); +#define RECORD_BOX_POSX N(RecordBox_OffsetsX)[gCurrentLanguage] +#define RECORD_BOX_WIDTH N(RecordBox_Widths)[gCurrentLanguage] +#define MSG_RESULT_JUMP_WIDTH get_msg_width(MSG_MGM_001C, 0) +#define MSG_RESULT_SMASH_WIDTH get_msg_width(MSG_MGM_001D, 0) +#define NUMBER_X_OFFSET(x) (x + 174) +#elif VERSION_JP +#define RECORD_BOX_POSX 65 +#define RECORD_BOX_WIDTH 190 +#define MSG_RESULT_JUMP_WIDTH 164 +#define MSG_RESULT_SMASH_WIDTH 164 +#define RESULT_COL1_X 87 +#define RESULT_COL2_X 211 +#define NUMBER_X_OFFSET(x) 144 #else +#define RECORD_BOX_POSX 45 +#define RECORD_BOX_WIDTH 230 +#define MSG_RESULT_JUMP_WIDTH 188 +#define MSG_RESULT_SMASH_WIDTH 192 +#define RESULT_COL1_X (RECORD_BOX_POSX + 13) +#define RESULT_COL2_X (RECORD_BOX_POSX + 178) +#define NUMBER_X_OFFSET(x) 174 +#endif + void N(draw_record_display)(RecordDisplayData* data, s32 alpha) { +#if VERSION_PAL + s32 var_fp; + s32 GamePlaysMsg; + s32 GameTotalMsg; + s32 GameRecordMsg; +#endif + if (alpha > 0) { gSPDisplayList(gMainGfxPos++, N(Gfx_RecordDisplay_Init)); +#if VERSION_PAL + var_fp = gCurrentLanguage == LANGUAGE_FR ? 36 : 0; + gDPSetPrimColor(gMainGfxPos++, 0, 0, 255, 0, 0, 0); + gDPFillRectangle(gMainGfxPos++, RECORD_BOX_POSX - 1, 49, RECORD_BOX_POSX + RECORD_BOX_WIDTH + 1, 51); + gDPFillRectangle(gMainGfxPos++, RECORD_BOX_POSX - 1, 49, RECORD_BOX_POSX + 1, 133); + gDPFillRectangle(gMainGfxPos++, RECORD_BOX_POSX + RECORD_BOX_WIDTH, 49, RECORD_BOX_POSX + RECORD_BOX_WIDTH + 1, 133); + gDPFillRectangle(gMainGfxPos++, RECORD_BOX_POSX - 1, 132, RECORD_BOX_POSX + RECORD_BOX_WIDTH + 1, 133); +#endif gDPPipeSync(gMainGfxPos++); gDPSetPrimColor(gMainGfxPos++, 0, 0, 16, 120, 24, alpha * 0.65); -#if VERSION_JP - gDPFillRectangle(gMainGfxPos++, 68, 53, 252, 129); + gDPFillRectangle(gMainGfxPos++, RECORD_BOX_POSX + 3, 53, RECORD_BOX_POSX + RECORD_BOX_WIDTH - 3, 129); gDPPipeSync(gMainGfxPos++); - msg_draw_frame(65, 50, 190, 82, MSG_STYLE_INSPECT, 0, 1, (s32)(alpha * 0.55), alpha); // cast needed if signature isn't present + msg_draw_frame(RECORD_BOX_POSX, 50, RECORD_BOX_WIDTH, 82, MSG_STYLE_INSPECT, 0, 1, (s32)(alpha * 0.55), alpha); // cast needed if signature isn't present if (data->gameType == MINIGAME_TYPE_JUMP) { - draw_msg(MSG_MGM_001C, 78, 57, alpha, MSG_PAL_TEAL, 0); - draw_number(gPlayerData.jumpGamePlays, 209, 78, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); - draw_number(gPlayerData.jumpGameTotal, 209, 93, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); - draw_number(gPlayerData.jumpGameRecord, 209, 108, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); - } else { - draw_msg(MSG_MGM_001D, 78, 57, alpha, MSG_PAL_TEAL, 0); - draw_number(gPlayerData.smashGamePlays, 209, 78, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); - draw_number(gPlayerData.smashGameTotal, 209, 93, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); - draw_number(gPlayerData.smashGameRecord, 209, 108, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); - } + s32 posX = NUMBER_X_OFFSET(var_fp); //! required to match - draw_msg(MSG_MGM_001E, 87, 78, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); - draw_msg(MSG_MGM_0023, 211, 78, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); - draw_msg(MSG_MGM_001F, 87, 93, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); - draw_msg(MSG_MGM_0021, 211, 93, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); - draw_msg(MSG_MGM_0020, 87, 108, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); - draw_msg(MSG_MGM_0021, 211, 108, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); -#else - gDPFillRectangle(gMainGfxPos++, 48, 53, 272, 129); - gDPPipeSync(gMainGfxPos++); - msg_draw_frame(45, 50, 230, 82, MSG_STYLE_INSPECT, 0, 1, (s32)(alpha * 0.55), alpha); // cast needed if signature isn't present - if (data->gameType == MINIGAME_TYPE_JUMP) { - draw_msg(MSG_MGM_001C, 66, 57, alpha, MSG_PAL_TEAL, 0); - draw_number(gPlayerData.jumpGamePlays, 219, 78, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); - draw_number(gPlayerData.jumpGameTotal, 219, 93, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); - draw_number(gPlayerData.jumpGameRecord, 219, 108, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); + draw_msg(MSG_MGM_001C, RECORD_BOX_POSX + (RECORD_BOX_WIDTH - MSG_RESULT_JUMP_WIDTH) / 2, 57, alpha, MSG_PAL_TEAL, 0); + draw_number(gPlayerData.jumpGamePlays, RECORD_BOX_POSX + posX, 78, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); + draw_number(gPlayerData.jumpGameTotal, RECORD_BOX_POSX + posX, 93, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); + draw_number(gPlayerData.jumpGameRecord, RECORD_BOX_POSX + posX, 108, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); + +#if VERSION_PAL + GamePlaysMsg = gPlayerData.jumpGamePlays == 1 ? MSG_PAL_MGM_0024 : MSG_MGM_0023; + GameTotalMsg = gPlayerData.jumpGameTotal == 1 ? MSG_PAL_MGM_0021 : MSG_MGM_0021; + GameRecordMsg = gPlayerData.jumpGameRecord == 1 ? MSG_PAL_MGM_0021 : MSG_MGM_0021; +#endif } else { - draw_msg(MSG_MGM_001D, 64, 57, alpha, MSG_PAL_TEAL, 0); - draw_number(gPlayerData.smashGamePlays, 219, 78, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); - draw_number(gPlayerData.smashGameTotal, 219, 93, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); - draw_number(gPlayerData.smashGameRecord, 219, 108, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); + s32 posX = NUMBER_X_OFFSET(var_fp); //! required, cannot be merged to the same var above + + draw_msg(MSG_MGM_001D, RECORD_BOX_POSX + (RECORD_BOX_WIDTH - MSG_RESULT_SMASH_WIDTH) / 2, 57, alpha, MSG_PAL_TEAL, 0); + draw_number(gPlayerData.smashGamePlays, RECORD_BOX_POSX + posX, 78, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); + draw_number(gPlayerData.smashGameTotal, RECORD_BOX_POSX + posX, 93, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); + draw_number(gPlayerData.smashGameRecord, RECORD_BOX_POSX + posX, 108, DRAW_NUMBER_CHARSET_THIN, MSG_PAL_WHITE, alpha, DRAW_NUMBER_STYLE_MONOSPACE | DRAW_NUMBER_STYLE_ALIGN_RIGHT); + +#if VERSION_PAL + GamePlaysMsg = gPlayerData.smashGamePlays == 1 ? MSG_PAL_MGM_0024 : MSG_MGM_0023; + GameTotalMsg = gPlayerData.smashGameTotal == 1 ? MSG_PAL_MGM_0021 : MSG_MGM_0021; + GameRecordMsg = gPlayerData.smashGameRecord == 1 ? MSG_PAL_MGM_0021 : MSG_MGM_0021; +#endif } - draw_msg(MSG_MGM_001E, 58, 78, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); - draw_msg(MSG_MGM_0023, 223, 78, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); - draw_msg(MSG_MGM_001F, 58, 93, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); - draw_msg(MSG_MGM_0021, 223, 93, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); - draw_msg(MSG_MGM_0020, 58, 108, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); - draw_msg(MSG_MGM_0021, 223, 108, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); +#if VERSION_PAL + draw_msg(MSG_MGM_001E, RECORD_BOX_POSX + 13, 78, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); + if (gCurrentLanguage != LANGUAGE_FR) { + s32 width2 = var_fp + 178; //! required to match and can't be merged with the same two below + draw_msg(GamePlaysMsg, RECORD_BOX_POSX + width2, 78, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); + } + draw_msg(MSG_MGM_001F, RECORD_BOX_POSX + 13, 93, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); + if (gCurrentLanguage != LANGUAGE_FR) { + s32 width2 = var_fp + 178; + draw_msg(GameTotalMsg, RECORD_BOX_POSX + width2, 93, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); + } + draw_msg(MSG_MGM_0020, RECORD_BOX_POSX + 13, 108, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); + if (gCurrentLanguage != LANGUAGE_FR) { + s32 width2 = var_fp + 178; + draw_msg(GameRecordMsg,RECORD_BOX_POSX + width2, 108, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); + } +#else + draw_msg(MSG_MGM_001E, RESULT_COL1_X, 78, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); + draw_msg(MSG_MGM_0023, RESULT_COL2_X, 78, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); + draw_msg(MSG_MGM_001F, RESULT_COL1_X, 93, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); + draw_msg(MSG_MGM_0021, RESULT_COL2_X, 93, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); + draw_msg(MSG_MGM_0020, RESULT_COL1_X, 108, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); + draw_msg(MSG_MGM_0021, RESULT_COL2_X, 108, alpha, MSG_PAL_WHITE, DRAW_MSG_STYLE_MENU); #endif } } -#endif void N(animate_and_draw_record)(void* renderData) { RecordDisplayData* data = (RecordDisplayData*)evt_get_variable(NULL, MV_RecordDisplayData); diff --git a/src/world/area_mgm/mgm_02/npc.c b/src/world/area_mgm/mgm_02/npc.c index c83ea5d3321..6fac8b4e698 100644 --- a/src/world/area_mgm/mgm_02/npc.c +++ b/src/world/area_mgm/mgm_02/npc.c @@ -289,10 +289,6 @@ API_CALLABLE(N(OnHitBox)) { return ApiStatus_DONE2; } -#if VERSION_PAL -API_CALLABLE(N(SetBoxContents)); -INCLUDE_ASM(ApiResult, "world/area_mgm/mgm_02/mgm_02_2_npc", mgm_02_SetBoxContents); -#else API_CALLABLE(N(SetBoxContents)) { s32 initialConfiguration; s32 configuration[NUM_BOXES]; @@ -302,9 +298,14 @@ API_CALLABLE(N(SetBoxContents)) { Enemy* enemy; Npc* npc; - SmashGameData* data = get_enemy(SCOREKEEPER_ENEMY_IDX)->varTablePtr[SMASH_DATA_VAR_IDX]; + SmashGameData* data; + +#if VERSION_PAL + N(pal_variable) = 1; +#endif + data = get_enemy(SCOREKEEPER_ENEMY_IDX)->varTablePtr[SMASH_DATA_VAR_IDX]; data->found = 0; - data->timeLeft = PLAY_TIME + 10; + data->timeLeft = PLAY_TIME + (s32)(10 * DT); data->curScore = 0; data->mashProgress = 0; data->stunFlags = 0; @@ -415,12 +416,7 @@ API_CALLABLE(N(SetBoxContents)) { } return ApiStatus_DONE2; } -#endif -#if VERSION_PAL -API_CALLABLE(N(RunMinigame)); -INCLUDE_ASM(ApiResult, "world/area_mgm/mgm_02/mgm_02_2_npc", mgm_02_RunMinigame); -#else API_CALLABLE(N(RunMinigame)) { SmashGameData* data; Enemy* enemy; @@ -771,31 +767,31 @@ API_CALLABLE(N(RunMinigame)) { if (data->timeLeft > 0) { if (data->found < NUM_PANELS) { data->timeLeft--; - if (data->timeLeft == 750) { + if (data->timeLeft == (s32)(750 * DT)) { sfx_play_sound(SOUND_OMO_BOX_CHIME_1); - } else if (data->timeLeft == 600) { + } else if (data->timeLeft == (s32)(600 * DT)) { sfx_play_sound(SOUND_OMO_BOX_CHIME_1); - } else if (data->timeLeft == 450) { + } else if (data->timeLeft == (s32)(450 * DT)) { sfx_play_sound(SOUND_OMO_BOX_CHIME_1); - } else if (data->timeLeft == 300) { + } else if (data->timeLeft == (s32)(300 * DT)) { sfx_play_sound(SOUND_OMO_BOX_CHIME_2); - } else if (data->timeLeft == 270) { + } else if (data->timeLeft == (s32)(270 * DT)) { sfx_play_sound(SOUND_OMO_BOX_CHIME_2); - } else if (data->timeLeft == 240) { + } else if (data->timeLeft == (s32)(240 * DT)) { sfx_play_sound(SOUND_OMO_BOX_CHIME_2); - } else if (data->timeLeft == 210) { + } else if (data->timeLeft == (s32)(210 * DT)) { sfx_play_sound(SOUND_OMO_BOX_CHIME_2); - } else if (data->timeLeft == 180) { + } else if (data->timeLeft == (s32)(180 * DT)) { sfx_play_sound(SOUND_OMO_BOX_CHIME_2); - } else if (data->timeLeft == 150) { + } else if (data->timeLeft == (s32)(150 * DT)) { sfx_play_sound(SOUND_OMO_BOX_CHIME_3); - } else if (data->timeLeft == 120) { + } else if (data->timeLeft == (s32)(120 * DT)) { sfx_play_sound(SOUND_OMO_BOX_CHIME_3); - } else if (data->timeLeft == 90) { + } else if (data->timeLeft == (s32)(90 * DT)) { sfx_play_sound(SOUND_OMO_BOX_CHIME_3); - } else if (data->timeLeft == 60) { + } else if (data->timeLeft == (s32)(60 * DT)) { sfx_play_sound(SOUND_OMO_BOX_CHIME_3); - } else if (data->timeLeft == 30) { + } else if (data->timeLeft == (s32)(30 * DT)) { sfx_play_sound(SOUND_OMO_BOX_CHIME_3); } } @@ -825,6 +821,9 @@ API_CALLABLE(N(RunMinigame)) { gameFinished = TRUE; } if (gameFinished) { +#if VERSION_PAL + N(pal_variable) = 0; +#endif if (data->stunFlags & STUN_FLAG_STUNNED) { enable_player_input(); partner_enable_input(); @@ -845,7 +844,6 @@ API_CALLABLE(N(RunMinigame)) { return ApiStatus_BLOCK; } -#endif API_CALLABLE(N(UpdateRecords)) { PlayerData* playerData = &gPlayerData; diff --git a/src/world/script_api/shops.c b/src/world/script_api/shops.c index 711ee4da413..03c93e33c88 100644 --- a/src/world/script_api/shops.c +++ b/src/world/script_api/shops.c @@ -8,6 +8,9 @@ extern u8 MessagePlural[]; extern u8 MessageSingular[]; #endif +#if VERSION_PAL +extern u8 MessagePlural_de[]; +#endif extern HudScript HES_Item_Coin; s32 shop_get_sell_price(s32 itemID); @@ -102,11 +105,23 @@ s32 shop_owner_buy_dialog(s32 messageIndex, s32 itemName, s32 coinCost, s32 bpCo set_message_int_var(bpCost, 2); #if !VERSION_JP } else { +#if VERSION_PAL + if (gCurrentLanguage == 1) { + suffix = MessagePlural_de; + } else { + suffix = MessagePlural; + } + + if (coinCost == 1) { + suffix = MessageSingular; + } +#else if (coinCost == 1) { suffix = MessageSingular; } else { suffix = MessagePlural; } +#endif set_message_text_var((s32) suffix, 2); #endif } diff --git a/src/world/world.c b/src/world/world.c index d65d0574922..fc7ba4d6323 100644 --- a/src/world/world.c +++ b/src/world/world.c @@ -37,6 +37,8 @@ s32 pad_map_table[] = { 0, 0 }; #define ASSET_TABLE_ROM_START (s32) mapfs_ROM_START #elif VERSION_JP #define ASSET_TABLE_ROM_START 0x1E00000 +#elif VERSION_PAL +#define ASSET_TABLE_ROM_START 0x2600000 #else #define ASSET_TABLE_ROM_START 0x1E40000 #endif diff --git a/tools/build/configure.py b/tools/build/configure.py index d6b067e1690..f08886c05d2 100755 --- a/tools/build/configure.py +++ b/tools/build/configure.py @@ -284,6 +284,12 @@ def write_ninja_rules( command=f"$python {BUILD_TOOLS}/msg/combine.py $out $in", ) + ninja.rule( + "msg_combine_noheader", + description="msg_combine $out", + command=f"$python {BUILD_TOOLS}/msg/combine.py --no-header $out $in", + ) + ninja.rule( "mapfs", description="mapfs $out", @@ -607,13 +613,17 @@ def build( "move_data", ) + item_table_data = Path("src/item_table.yaml") + if version == "pal": + item_table_data = Path("src/item_table_pal.yaml") + build( [ self.build_path() / "include/item_data.inc.c", self.build_path() / "include/item_enum.h", ], [ - Path("src/item_table.yaml"), + item_table_data, Path("src/item_entity_scripts.yaml"), Path("src/item_hud_scripts.yaml"), ], @@ -989,14 +999,21 @@ def build( msg_bins.append(bin_path) build(bin_path, [msg_path], "msg") - build( - [ - entry.object_path.with_suffix(".bin"), - self.build_path() / "include" / "message_ids.h", - ], - msg_bins, - "msg_combine", - ) + if seg.generate_header: + build( + [ + entry.object_path.with_suffix(".bin"), + self.build_path() / "include" / "message_ids.h", + ], + msg_bins, + "msg_combine", + ) + else: + build( + [entry.object_path.with_suffix(".bin")], + msg_bins, + "msg_combine_noheader", + ) build(entry.object_path, [entry.object_path.with_suffix(".bin")], "bin") elif seg.type == "pm_icons": diff --git a/tools/build/msg/combine.py b/tools/build/msg/combine.py index b28f1e8d43a..fb04c44cef0 100755 --- a/tools/build/msg/combine.py +++ b/tools/build/msg/combine.py @@ -18,10 +18,14 @@ def __init__(self, d: dict, header_file_index: int): if __name__ == "__main__": if len(argv) < 3: - print("usage: combine.py [out.bin] [out.h] [compiled...]") + print("usage: combine.py { [out.bin] [out.h] | --no-header [out.bin] } [compiled...]") exit(1) - _, outfile, header_file, *infiles = argv + if argv[1] == "--no-header": + _, _, outfile, *infiles = argv + header_file = None + else: + _, outfile, header_file, *infiles = argv messages = [] # header_files = [] @@ -106,11 +110,12 @@ def __init__(self, d: dict, header_file_index: int): f.write(offset.to_bytes(4, byteorder="big")) f.write(b"\0\0\0\0") - with open(header_file, "w") as f: - f.write(f"#ifndef _MESSAGE_IDS_H_\n" f"#define _MESSAGE_IDS_H_\n" "\n" '#include "messages.h"\n' "\n") + if header_file is not None: + with open(header_file, "w") as f: + f.write(f"#ifndef _MESSAGE_IDS_H_\n" f"#define _MESSAGE_IDS_H_\n" "\n" '#include "messages.h"\n' "\n") - for message in messages: - if message.name: - f.write(f"#define MSG_{message.name} MESSAGE_ID(0x{message.section:02X}, 0x{message.index:03X})\n") + for message in messages: + if message.name: + f.write(f"#define MSG_{message.name} MESSAGE_ID(0x{message.section:02X}, 0x{message.index:03X})\n") - f.write("\n#endif\n") + f.write("\n#endif\n") diff --git a/tools/build/msg/parse_compile.py b/tools/build/msg/parse_compile.py index b6a8406f79c..51ba8803953 100755 --- a/tools/build/msg/parse_compile.py +++ b/tools/build/msg/parse_compile.py @@ -3486,6 +3486,9 @@ def replacer(match): elif arg_charset == 3: charset = CHARSET_BUTTONS + elif command == "variant0": + message.bytes += [0xF3] + elif command == "inputoff": message.bytes += [0xFF, 0x07] elif command == "inputon": diff --git a/tools/splat_ext/msg_pal_en.yaml b/tools/splat_ext/msg_pal.yaml similarity index 100% rename from tools/splat_ext/msg_pal_en.yaml rename to tools/splat_ext/msg_pal.yaml diff --git a/tools/splat_ext/pm_msg.py b/tools/splat_ext/pm_msg.py index 952f960e3e8..0499f9df5fb 100644 --- a/tools/splat_ext/pm_msg.py +++ b/tools/splat_ext/pm_msg.py @@ -3295,12 +3295,14 @@ def __init__( ) self.files = yaml.get("files", []) if isinstance(yaml, dict) else [] + self.generate_header = yaml.get("generate_header", True) + toc_file = yaml.get("toc", self.name) + ".yaml" - with (Path(__file__).parent / f"{self.name}.yaml").open("r") as f: + with (Path(__file__).parent / toc_file).open("r") as f: self.msg_names = yaml_loader.load(f.read(), Loader=yaml_loader.SafeLoader) def split(self, rom_bytes): - data = rom_bytes[self.rom_start : self.rom_end] + data = bytearray(rom_bytes[self.rom_start : self.rom_end]) section_offsets = [] pos = 0 diff --git a/ver/ique/splat.yaml b/ver/ique/splat.yaml index e3627e03096..7fc4afadb1f 100644 --- a/ver/ique/splat.yaml +++ b/ver/ique/splat.yaml @@ -103,7 +103,7 @@ segments: - [auto, c, 38F00] - [auto, c, npc_follow] - [auto, c, os/nusys/nuboot] - - [auto, c, os/nusys/nusched] + - [auto, c, os/nusys/nusched, -finline-functions] - [auto, c, os/nusys/nugfxfuncset] - [auto, c, os/nusys/nugfxprenmifuncset] - [auto, c, os/nusys/nugfxtaskallendwait] @@ -116,21 +116,21 @@ segments: - [auto, c, os/nusys/nucontinit] - [auto, c, os/nusys/nucontdataget] - [auto, c, os/nusys/nucontpakmgr] - - [auto, c, os/nusys/nucontrmbmgr] + - [auto, c, os/nusys/nucontrmbmgr, -finline-functions] - [auto, c, os/nusys/nucontrmbstart] - [auto, c, os/nusys/nucontrmbcheck] - [auto, c, os/nusys/nucontrmbmodeset] - [auto, c, os/nusys/nucontrmbforcestop] - [auto, c, os/nusys/nucontrmbforcestopend] - [auto, c, os/nusys/nupireadromoverlay] - - [auto, c, os/nusys/nugfxthread] + - [auto, c, os/nusys/nugfxthread, -finline-functions] - [auto, c, os/nusys/nugfxswapcfbfuncset] - [auto, c, os/nusys/nugfxswapcfb] - [auto, c, os/nusys/nugfxretracewait] - [auto, c, os/nusys/nusimgr] - [auto, c, os/nusys/nusicallbackadd] - [auto, c, os/nusys/nusicallbackremove] - - [auto, c, os/nusys/nucontmgr] + - [auto, c, os/nusys/nucontmgr, -finline-functions] - [auto, c, os/nusys/nucontdatalock] - [auto, c, os/nusys/nucontqueryread] - [auto, c, os/aigetlength, egcs -O2 -mips2] diff --git a/ver/jp/splat.yaml b/ver/jp/splat.yaml index 5c09f618ae3..8416d5b57e9 100644 --- a/ver/jp/splat.yaml +++ b/ver/jp/splat.yaml @@ -111,7 +111,7 @@ segments: - [auto, c, npc_follow] - [auto, c, os/nusys/nuboot] - - [auto, c, os/nusys/nusched] + - [auto, c, os/nusys/nusched, -finline-functions] - [auto, c, os/nusys/nugfxfuncset] - [auto, c, os/nusys/nugfxprenmifuncset] - [auto, c, os/nusys/nugfxtaskallendwait] @@ -124,21 +124,21 @@ segments: - [auto, c, os/nusys/nucontinit] - [auto, c, os/nusys/nucontdataget] - [auto, c, os/nusys/nucontpakmgr] - - [auto, c, os/nusys/nucontrmbmgr] + - [auto, c, os/nusys/nucontrmbmgr, -finline-functions] - [auto, c, os/nusys/nucontrmbstart] - [auto, c, os/nusys/nucontrmbcheck] - [auto, c, os/nusys/nucontrmbmodeset] - [auto, c, os/nusys/nucontrmbforcestop] - [auto, c, os/nusys/nucontrmbforcestopend] - [auto, c, os/nusys/nupireadromoverlay] - - [auto, c, os/nusys/nugfxthread] + - [auto, c, os/nusys/nugfxthread, -finline-functions] - [auto, c, os/nusys/nugfxswapcfbfuncset] - [auto, c, os/nusys/nugfxswapcfb] - [auto, c, os/nusys/nugfxretracewait] - [auto, c, os/nusys/nusimgr] - [auto, c, os/nusys/nusicallbackadd] - [auto, c, os/nusys/nusicallbackremove] - - [auto, c, os/nusys/nucontmgr] + - [auto, c, os/nusys/nucontmgr, -finline-functions] - [auto, c, os/nusys/nucontdatalock] - [auto, c, os/nusys/nucontqueryread] diff --git a/ver/pal/asm/nonmatchings/8a860_len_3f30/popup_menu_update.s b/ver/pal/asm/nonmatchings/8a860_len_3f30/popup_menu_update.s deleted file mode 100755 index 3eae3cd53cf..00000000000 --- a/ver/pal/asm/nonmatchings/8a860_len_3f30/popup_menu_update.s +++ /dev/null @@ -1,2117 +0,0 @@ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ - -.section .rodata -.align 3 -glabel jtbl_PAL_8010AFB0 -/* A40C0 8010AFB0 800EF5D8 */ .word .LPAL_800EF5D8 -/* A40C4 8010AFB4 800EF5C0 */ .word .LPAL_800EF5C0 -/* A40C8 8010AFB8 800EF5D8 */ .word .LPAL_800EF5D8 -/* A40CC 8010AFBC 800EF594 */ .word .LPAL_800EF594 -/* A40D0 8010AFC0 800EF500 */ .word .LPAL_800EF500 -/* A40D4 8010AFC4 800EF4E0 */ .word .LPAL_800EF4E0 -/* A40D8 8010AFC8 800EF33C */ .word .LPAL_800EF33C -/* A40DC 8010AFCC 800EE2B8 */ .word .LPAL_800EE2B8 -/* A40E0 8010AFD0 800EEEDC */ .word .LPAL_800EEEDC -/* A40E4 8010AFD4 800EFD18 */ .word .LPAL_800EFD18 -/* A40E8 8010AFD8 800EFD18 */ .word .LPAL_800EFD18 -/* A40EC 8010AFDC 800EFD18 */ .word .LPAL_800EFD18 -/* A40F0 8010AFE0 800EFD18 */ .word .LPAL_800EFD18 -/* A40F4 8010AFE4 800EFD18 */ .word .LPAL_800EFD18 -/* A40F8 8010AFE8 800EFD18 */ .word .LPAL_800EFD18 -/* A40FC 8010AFEC 800EFD18 */ .word .LPAL_800EFD18 -/* A4100 8010AFF0 800EFD18 */ .word .LPAL_800EFD18 -/* A4104 8010AFF4 800EF5F0 */ .word .LPAL_800EF5F0 -/* A4108 8010AFF8 800EFD18 */ .word .LPAL_800EFD18 -/* A410C 8010AFFC 800EFD18 */ .word .LPAL_800EFD18 -/* A4110 8010B000 800EFD18 */ .word .LPAL_800EFD18 -/* A4114 8010B004 800EFD18 */ .word .LPAL_800EFD18 -/* A4118 8010B008 800EFD18 */ .word .LPAL_800EFD18 -/* A411C 8010B00C 800EFD18 */ .word .LPAL_800EFD18 -/* A4120 8010B010 800EFD18 */ .word .LPAL_800EFD18 -/* A4124 8010B014 800EFD18 */ .word .LPAL_800EFD18 -/* A4128 8010B018 800EFD18 */ .word .LPAL_800EFD18 -/* A412C 8010B01C 800EF634 */ .word .LPAL_800EF634 -/* A4130 8010B020 800EFD18 */ .word .LPAL_800EFD18 -/* A4134 8010B024 800EFD18 */ .word .LPAL_800EFD18 -/* A4138 8010B028 800EFD18 */ .word .LPAL_800EFD18 -/* A413C 8010B02C 800EFD18 */ .word .LPAL_800EFD18 -/* A4140 8010B030 800EFD18 */ .word .LPAL_800EFD18 -/* A4144 8010B034 800EFD18 */ .word .LPAL_800EFD18 -/* A4148 8010B038 800EFD18 */ .word .LPAL_800EFD18 -/* A414C 8010B03C 800EFD18 */ .word .LPAL_800EFD18 -/* A4150 8010B040 800EFD18 */ .word .LPAL_800EFD18 -/* A4154 8010B044 800EF68C */ .word .LPAL_800EF68C -/* A4158 8010B048 800EF6B0 */ .word .LPAL_800EF6B0 -/* A415C 8010B04C 800EF78C */ .word .LPAL_800EF78C -/* A4160 8010B050 800EFD18 */ .word .LPAL_800EFD18 -/* A4164 8010B054 800EFD18 */ .word .LPAL_800EFD18 -/* A4168 8010B058 800EFD18 */ .word .LPAL_800EFD18 -/* A416C 8010B05C 800EFD18 */ .word .LPAL_800EFD18 -/* A4170 8010B060 800EFD18 */ .word .LPAL_800EFD18 -/* A4174 8010B064 800EFD18 */ .word .LPAL_800EFD18 -/* A4178 8010B068 800EFD18 */ .word .LPAL_800EFD18 -/* A417C 8010B06C 800EFD18 */ .word .LPAL_800EFD18 -/* A4180 8010B070 800EFD18 */ .word .LPAL_800EFD18 -/* A4184 8010B074 800EFD18 */ .word .LPAL_800EFD18 -/* A4188 8010B078 800EFD18 */ .word .LPAL_800EFD18 -/* A418C 8010B07C 800EFD18 */ .word .LPAL_800EFD18 -/* A4190 8010B080 800EFD18 */ .word .LPAL_800EFD18 -/* A4194 8010B084 800EFD18 */ .word .LPAL_800EFD18 -/* A4198 8010B088 800EFD18 */ .word .LPAL_800EFD18 -/* A419C 8010B08C 800EFD18 */ .word .LPAL_800EFD18 -/* A41A0 8010B090 800EFD18 */ .word .LPAL_800EFD18 -/* A41A4 8010B094 800EFD18 */ .word .LPAL_800EFD18 -/* A41A8 8010B098 800EFD18 */ .word .LPAL_800EFD18 -/* A41AC 8010B09C 800EFD18 */ .word .LPAL_800EFD18 -/* A41B0 8010B0A0 800EFD18 */ .word .LPAL_800EFD18 -/* A41B4 8010B0A4 800EFD18 */ .word .LPAL_800EFD18 -/* A41B8 8010B0A8 800EFD18 */ .word .LPAL_800EFD18 -/* A41BC 8010B0AC 800EFD18 */ .word .LPAL_800EFD18 -/* A41C0 8010B0B0 800EFD18 */ .word .LPAL_800EFD18 -/* A41C4 8010B0B4 800EFD18 */ .word .LPAL_800EFD18 -/* A41C8 8010B0B8 800EFD18 */ .word .LPAL_800EFD18 -/* A41CC 8010B0BC 800EFD18 */ .word .LPAL_800EFD18 -/* A41D0 8010B0C0 800EFD18 */ .word .LPAL_800EFD18 -/* A41D4 8010B0C4 800EFD18 */ .word .LPAL_800EFD18 -/* A41D8 8010B0C8 800EFD18 */ .word .LPAL_800EFD18 -/* A41DC 8010B0CC 800EFD18 */ .word .LPAL_800EFD18 -/* A41E0 8010B0D0 800EFD18 */ .word .LPAL_800EFD18 -/* A41E4 8010B0D4 800EFD18 */ .word .LPAL_800EFD18 -/* A41E8 8010B0D8 800EFD18 */ .word .LPAL_800EFD18 -/* A41EC 8010B0DC 800EFD18 */ .word .LPAL_800EFD18 -/* A41F0 8010B0E0 800EFD18 */ .word .LPAL_800EFD18 -/* A41F4 8010B0E4 800EFD18 */ .word .LPAL_800EFD18 -/* A41F8 8010B0E8 800EFD18 */ .word .LPAL_800EFD18 -/* A41FC 8010B0EC 800EFD18 */ .word .LPAL_800EFD18 -/* A4200 8010B0F0 800EFD18 */ .word .LPAL_800EFD18 -/* A4204 8010B0F4 800EFD18 */ .word .LPAL_800EFD18 -/* A4208 8010B0F8 800EFD18 */ .word .LPAL_800EFD18 -/* A420C 8010B0FC 800EFD18 */ .word .LPAL_800EFD18 -/* A4210 8010B100 800EFD18 */ .word .LPAL_800EFD18 -/* A4214 8010B104 800EFD18 */ .word .LPAL_800EFD18 -/* A4218 8010B108 800EFD18 */ .word .LPAL_800EFD18 -/* A421C 8010B10C 800EFD18 */ .word .LPAL_800EFD18 -/* A4220 8010B110 800EFD18 */ .word .LPAL_800EFD18 -/* A4224 8010B114 800EFD18 */ .word .LPAL_800EFD18 -/* A4228 8010B118 800EFD18 */ .word .LPAL_800EFD18 -/* A422C 8010B11C 800EFD18 */ .word .LPAL_800EFD18 -/* A4230 8010B120 800EFD18 */ .word .LPAL_800EFD18 -/* A4234 8010B124 800EFD18 */ .word .LPAL_800EFD18 -/* A4238 8010B128 800EFD18 */ .word .LPAL_800EFD18 -/* A423C 8010B12C 800EFD18 */ .word .LPAL_800EFD18 -/* A4240 8010B130 800EFD18 */ .word .LPAL_800EFD18 -/* A4244 8010B134 800EFD18 */ .word .LPAL_800EFD18 -/* A4248 8010B138 800EFD18 */ .word .LPAL_800EFD18 -/* A424C 8010B13C 800EFD18 */ .word .LPAL_800EFD18 -/* A4250 8010B140 800EFD18 */ .word .LPAL_800EFD18 -/* A4254 8010B144 800EFD18 */ .word .LPAL_800EFD18 -/* A4258 8010B148 800EFD18 */ .word .LPAL_800EFD18 -/* A425C 8010B14C 800EFD18 */ .word .LPAL_800EFD18 -/* A4260 8010B150 800EFD18 */ .word .LPAL_800EFD18 -/* A4264 8010B154 800EFD18 */ .word .LPAL_800EFD18 -/* A4268 8010B158 800EFD18 */ .word .LPAL_800EFD18 -/* A426C 8010B15C 800EF824 */ .word .LPAL_800EF824 -/* A4270 8010B160 800EFAE0 */ .word .LPAL_800EFAE0 -/* A4274 8010B164 800EFB20 */ .word .LPAL_800EFB20 -/* A4278 8010B168 800EFB28 */ .word .LPAL_800EFB28 -/* A427C 8010B16C 00000000 */ .word 0x00000000 - -.align 3 -glabel jtbl_PAL_8010B170 -/* A4280 8010B170 800EE6A8 */ .word .LPAL_800EE6A8 -/* A4284 8010B174 800EE79C */ .word .LPAL_800EE79C -/* A4288 8010B178 800EE710 */ .word .LPAL_800EE710 -/* A428C 8010B17C 800EE7C0 */ .word .LPAL_800EE7C0 -/* A4290 8010B180 800EE7DC */ .word .LPAL_800EE7DC -/* A4294 8010B184 800EE818 */ .word .LPAL_800EE818 -/* A4298 8010B188 800EE730 */ .word .LPAL_800EE730 -/* A429C 8010B18C 800EE750 */ .word .LPAL_800EE750 -/* A42A0 8010B190 800EE840 */ .word .LPAL_800EE840 -/* A42A4 8010B194 800EE868 */ .word .LPAL_800EE868 -/* A42A8 8010B198 800EE894 */ .word .LPAL_800EE894 -/* A42AC 8010B19C 800EE8B0 */ .word .LPAL_800EE8B0 -/* A42B0 8010B1A0 800EE770 */ .word .LPAL_800EE770 -/* A42B4 8010B1A4 800EE8E4 */ .word .LPAL_800EE8E4 - -.align 3 -glabel jtbl_PAL_8010B1A8 -/* A42B8 8010B1A8 800EED88 */ .word .LPAL_800EED88 -/* A42BC 8010B1AC 800EED9C */ .word .LPAL_800EED9C -/* A42C0 8010B1B0 800EED88 */ .word .LPAL_800EED88 -/* A42C4 8010B1B4 800EED88 */ .word .LPAL_800EED88 -/* A42C8 8010B1B8 800EED9C */ .word .LPAL_800EED9C -/* A42CC 8010B1BC 800EED88 */ .word .LPAL_800EED88 -/* A42D0 8010B1C0 800EED88 */ .word .LPAL_800EED88 -/* A42D4 8010B1C4 800EED88 */ .word .LPAL_800EED88 -/* A42D8 8010B1C8 800EED88 */ .word .LPAL_800EED88 -/* A42DC 8010B1CC 800EED88 */ .word .LPAL_800EED88 -/* A42E0 8010B1D0 800EEDB0 */ .word .LPAL_800EEDB0 -/* A42E4 8010B1D4 800EEDB0 */ .word .LPAL_800EEDB0 -/* A42E8 8010B1D8 800EED88 */ .word .LPAL_800EED88 -/* A42EC 8010B1DC 800EEDB0 */ .word .LPAL_800EEDB0 - -.align 3 -glabel jtbl_PAL_8010B1E0 -/* A42F0 8010B1E0 800EEDE0 */ .word .LPAL_800EEDE0 -/* A42F4 8010B1E4 800EEDFC */ .word .LPAL_800EEDFC -/* A42F8 8010B1E8 800EEDE0 */ .word .LPAL_800EEDE0 -/* A42FC 8010B1EC 800EEDE0 */ .word .LPAL_800EEDE0 -/* A4300 8010B1F0 800EEDFC */ .word .LPAL_800EEDFC -/* A4304 8010B1F4 800EEDE0 */ .word .LPAL_800EEDE0 -/* A4308 8010B1F8 800EEDE0 */ .word .LPAL_800EEDE0 -/* A430C 8010B1FC 800EEDE0 */ .word .LPAL_800EEDE0 -/* A4310 8010B200 800EEDE0 */ .word .LPAL_800EEDE0 -/* A4314 8010B204 800EEDE0 */ .word .LPAL_800EEDE0 -/* A4318 8010B208 800EEE30 */ .word .LPAL_800EEE30 -/* A431C 8010B20C 800EEE30 */ .word .LPAL_800EEE30 -/* A4320 8010B210 800EEDE0 */ .word .LPAL_800EEDE0 -/* A4324 8010B214 800EEE30 */ .word .LPAL_800EEE30 - -.align 3 -glabel jtbl_PAL_8010B218 -/* A4328 8010B218 800EF238 */ .word .LPAL_800EF238 -/* A432C 8010B21C 800EF250 */ .word .LPAL_800EF250 -/* A4330 8010B220 800EF238 */ .word .LPAL_800EF238 -/* A4334 8010B224 800EF238 */ .word .LPAL_800EF238 -/* A4338 8010B228 800EF250 */ .word .LPAL_800EF250 -/* A433C 8010B22C 800EF238 */ .word .LPAL_800EF238 -/* A4340 8010B230 800EF238 */ .word .LPAL_800EF238 -/* A4344 8010B234 800EF238 */ .word .LPAL_800EF238 -/* A4348 8010B238 800EF268 */ .word .LPAL_800EF268 -/* A434C 8010B23C 800EF268 */ .word .LPAL_800EF268 -/* A4350 8010B240 800EF268 */ .word .LPAL_800EF268 -/* A4354 8010B244 800EF268 */ .word .LPAL_800EF268 -/* A4358 8010B248 800EF238 */ .word .LPAL_800EF238 -/* A435C 8010B24C 800EF268 */ .word .LPAL_800EF268 - -.align 3 -glabel jtbl_PAL_8010B250 -/* A4360 8010B250 800EF52C */ .word .LPAL_800EF52C -/* A4364 8010B254 800EF540 */ .word .LPAL_800EF540 -/* A4368 8010B258 800EF52C */ .word .LPAL_800EF52C -/* A436C 8010B25C 800EF52C */ .word .LPAL_800EF52C -/* A4370 8010B260 800EF540 */ .word .LPAL_800EF540 -/* A4374 8010B264 800EF52C */ .word .LPAL_800EF52C -/* A4378 8010B268 800EF52C */ .word .LPAL_800EF52C -/* A437C 8010B26C 800EF52C */ .word .LPAL_800EF52C -/* A4380 8010B270 800EF52C */ .word .LPAL_800EF52C -/* A4384 8010B274 800EF52C */ .word .LPAL_800EF52C -/* A4388 8010B278 800EF554 */ .word .LPAL_800EF554 -/* A438C 8010B27C 800EF554 */ .word .LPAL_800EF554 -/* A4390 8010B280 800EF52C */ .word .LPAL_800EF52C -/* A4394 8010B284 800EF554 */ .word .LPAL_800EF554 - -.align 3 -glabel jtbl_PAL_8010B288 -/* A4398 8010B288 800EF9C8 */ .word .LPAL_800EF9C8 -/* A439C 8010B28C 800EF9DC */ .word .LPAL_800EF9DC -/* A43A0 8010B290 800EF9C8 */ .word .LPAL_800EF9C8 -/* A43A4 8010B294 800EF9C8 */ .word .LPAL_800EF9C8 -/* A43A8 8010B298 800EF9DC */ .word .LPAL_800EF9DC -/* A43AC 8010B29C 800EF9C8 */ .word .LPAL_800EF9C8 -/* A43B0 8010B2A0 800EF9C8 */ .word .LPAL_800EF9C8 -/* A43B4 8010B2A4 800EF9C8 */ .word .LPAL_800EF9C8 -/* A43B8 8010B2A8 800EF9C8 */ .word .LPAL_800EF9C8 -/* A43BC 8010B2AC 800EF9C8 */ .word .LPAL_800EF9C8 -/* A43C0 8010B2B0 800EF9F0 */ .word .LPAL_800EF9F0 -/* A43C4 8010B2B4 800EF9F0 */ .word .LPAL_800EF9F0 -/* A43C8 8010B2B8 800EF9C8 */ .word .LPAL_800EF9C8 -/* A43CC 8010B2BC 800EF9F0 */ .word .LPAL_800EF9F0 - -.align 3 -glabel jtbl_PAL_8010B2C0 -/* A43D0 8010B2C0 800EFCCC */ .word .LPAL_800EFCCC -/* A43D4 8010B2C4 800EFCE0 */ .word .LPAL_800EFCE0 -/* A43D8 8010B2C8 800EFCCC */ .word .LPAL_800EFCCC -/* A43DC 8010B2CC 800EFCCC */ .word .LPAL_800EFCCC -/* A43E0 8010B2D0 800EFCE0 */ .word .LPAL_800EFCE0 -/* A43E4 8010B2D4 800EFCCC */ .word .LPAL_800EFCCC -/* A43E8 8010B2D8 800EFCCC */ .word .LPAL_800EFCCC -/* A43EC 8010B2DC 800EFCCC */ .word .LPAL_800EFCCC -/* A43F0 8010B2E0 800EFCCC */ .word .LPAL_800EFCCC -/* A43F4 8010B2E4 800EFCCC */ .word .LPAL_800EFCCC -/* A43F8 8010B2E8 800EFCF4 */ .word .LPAL_800EFCF4 -/* A43FC 8010B2EC 800EFCF4 */ .word .LPAL_800EFCF4 -/* A4400 8010B2F0 800EFCCC */ .word .LPAL_800EFCCC -/* A4404 8010B2F4 800EFCF4 */ .word .LPAL_800EFCF4 - - -.section .text -/* Generated by spimdisasm 1.11.1 */ - -glabel popup_menu_update -/* 87370 800EE260 3C028011 */ lui $v0, %hi(gPopupState) -/* 87374 800EE264 8C42C140 */ lw $v0, %lo(gPopupState)($v0) -/* 87378 800EE268 27BDFFB8 */ addiu $sp, $sp, -0x48 -/* 8737C 800EE26C AFB60040 */ sw $s6, 0x40($sp) -/* 87380 800EE270 0000B02D */ daddu $s6, $zero, $zero -/* 87384 800EE274 AFB5003C */ sw $s5, 0x3C($sp) -/* 87388 800EE278 02C0A82D */ daddu $s5, $s6, $zero -/* 8738C 800EE27C AFBF0044 */ sw $ra, 0x44($sp) -/* 87390 800EE280 AFB40038 */ sw $s4, 0x38($sp) -/* 87394 800EE284 AFB30034 */ sw $s3, 0x34($sp) -/* 87398 800EE288 AFB20030 */ sw $s2, 0x30($sp) -/* 8739C 800EE28C AFB1002C */ sw $s1, 0x2C($sp) -/* 873A0 800EE290 24430007 */ addiu $v1, $v0, 0x7 -/* 873A4 800EE294 2C62006F */ sltiu $v0, $v1, 0x6F -/* 873A8 800EE298 1040069F */ beqz $v0, .LPAL_800EFD18 -/* 873AC 800EE29C AFB00028 */ sw $s0, 0x28($sp) -/* 873B0 800EE2A0 00031080 */ sll $v0, $v1, 2 -/* 873B4 800EE2A4 3C018011 */ lui $at, %hi(jtbl_PAL_8010AFB0) -/* 873B8 800EE2A8 00220821 */ addu $at, $at, $v0 -/* 873BC 800EE2AC 8C22AFB0 */ lw $v0, %lo(jtbl_PAL_8010AFB0)($at) -/* 873C0 800EE2B0 00400008 */ jr $v0 -/* 873C4 800EE2B4 00000000 */ nop -.LPAL_800EE2B8: -/* 873C8 800EE2B8 3C048011 */ lui $a0, %hi(D_8010D67C) -/* 873CC 800EE2BC 2484C17C */ addiu $a0, $a0, %lo(D_8010D67C) -/* 873D0 800EE2C0 24030014 */ addiu $v1, $zero, 0x14 -/* 873D4 800EE2C4 3C058011 */ lui $a1, %hi(D_8010D67E) -/* 873D8 800EE2C8 24A5C17E */ addiu $a1, $a1, %lo(D_8010D67E) -/* 873DC 800EE2CC 24020048 */ addiu $v0, $zero, 0x48 -/* 873E0 800EE2D0 A4830000 */ sh $v1, 0x0($a0) -/* 873E4 800EE2D4 A4A20000 */ sh $v0, 0x0($a1) -/* 873E8 800EE2D8 3C018011 */ lui $at, %hi(D_8010D680) -/* 873EC 800EE2DC A423C180 */ sh $v1, %lo(D_8010D680)($at) -/* 873F0 800EE2E0 3C038011 */ lui $v1, %hi(PopupNotBattle) -/* 873F4 800EE2E4 8063C18E */ lb $v1, %lo(PopupNotBattle)($v1) -/* 873F8 800EE2E8 240200BA */ addiu $v0, $zero, 0xBA -/* 873FC 800EE2EC 3C018011 */ lui $at, %hi(D_8010D682) -/* 87400 800EE2F0 A422C182 */ sh $v0, %lo(D_8010D682)($at) -/* 87404 800EE2F4 24020010 */ addiu $v0, $zero, 0x10 -/* 87408 800EE2F8 3C018011 */ lui $at, %hi(D_8010D684) -/* 8740C 800EE2FC A422C184 */ sh $v0, %lo(D_8010D684)($at) -/* 87410 800EE300 24020058 */ addiu $v0, $zero, 0x58 -/* 87414 800EE304 3C018011 */ lui $at, %hi(D_8010D686) -/* 87418 800EE308 A422C186 */ sh $v0, %lo(D_8010D686)($at) -/* 8741C 800EE30C 24020020 */ addiu $v0, $zero, 0x20 -/* 87420 800EE310 3C018011 */ lui $at, %hi(PopupMenu_StarPieceCounterPosX) -/* 87424 800EE314 A422C188 */ sh $v0, %lo(PopupMenu_StarPieceCounterPosX)($at) -/* 87428 800EE318 240200A4 */ addiu $v0, $zero, 0xA4 -/* 8742C 800EE31C 3C018011 */ lui $at, %hi(PopupMenu_StarPieceCounterPosY) -/* 87430 800EE320 A422C18A */ sh $v0, %lo(PopupMenu_StarPieceCounterPosY)($at) -/* 87434 800EE324 1060000A */ beqz $v1, .LPAL_800EE350 -/* 87438 800EE328 00000000 */ nop -/* 8743C 800EE32C 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 87440 800EE330 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 87444 800EE334 8C420318 */ lw $v0, 0x318($v0) -/* 87448 800EE338 00021040 */ sll $v0, $v0, 1 -/* 8744C 800EE33C 3C018011 */ lui $at, %hi(PopupWorldStartX) -/* 87450 800EE340 00220821 */ addu $at, $at, $v0 -/* 87454 800EE344 94228440 */ lhu $v0, %lo(PopupWorldStartX)($at) -/* 87458 800EE348 24420014 */ addiu $v0, $v0, 0x14 -/* 8745C 800EE34C A4820000 */ sh $v0, 0x0($a0) -.LPAL_800EE350: -/* 87460 800EE350 3C028011 */ lui $v0, %hi(PopupMenu_MaxDisplayableEntryCount) -/* 87464 800EE354 8042C18F */ lb $v0, %lo(PopupMenu_MaxDisplayableEntryCount)($v0) -/* 87468 800EE358 28420007 */ slti $v0, $v0, 0x7 -/* 8746C 800EE35C 14400002 */ bnez $v0, .LPAL_800EE368 -/* 87470 800EE360 2402003E */ addiu $v0, $zero, 0x3E -/* 87474 800EE364 A4A20000 */ sh $v0, 0x0($a1) -.LPAL_800EE368: -/* 87478 800EE368 3C048010 */ lui $a0, %hi(HES_EmptyBar) -/* 8747C 800EE36C 2484601C */ addiu $a0, $a0, %lo(HES_EmptyBar) -/* 87480 800EE370 3C018011 */ lui $at, %hi(D_8010D68C) -/* 87484 800EE374 A420C18C */ sh $zero, %lo(D_8010D68C)($at) -/* 87488 800EE378 0C050015 */ jal hud_element_create -/* 8748C 800EE37C 00000000 */ nop -/* 87490 800EE380 0040802D */ daddu $s0, $v0, $zero -/* 87494 800EE384 0200202D */ daddu $a0, $s0, $zero -/* 87498 800EE388 3C018011 */ lui $at, %hi(PopupMenu_EmptybarHID) -/* 8749C 800EE38C AC30C15C */ sw $s0, %lo(PopupMenu_EmptybarHID)($at) -/* 874A0 800EE390 0C050D6C */ jal hud_element_set_flags -/* 874A4 800EE394 24050080 */ addiu $a1, $zero, 0x80 -/* 874A8 800EE398 0200202D */ daddu $a0, $s0, $zero -/* 874AC 800EE39C 240500FF */ addiu $a1, $zero, 0xFF -/* 874B0 800EE3A0 00A0302D */ daddu $a2, $a1, $zero -/* 874B4 800EE3A4 0C050EAB */ jal hud_element_set_tint -/* 874B8 800EE3A8 00A0382D */ daddu $a3, $a1, $zero -/* 874BC 800EE3AC 3C118011 */ lui $s1, %hi(gPopupMenu) -/* 874C0 800EE3B0 2631C19C */ addiu $s1, $s1, %lo(gPopupMenu) -/* 874C4 800EE3B4 8E220000 */ lw $v0, 0x0($s1) -/* 874C8 800EE3B8 8C430318 */ lw $v1, 0x318($v0) -/* 874CC 800EE3BC 24020002 */ addiu $v0, $zero, 0x2 -/* 874D0 800EE3C0 10620004 */ beq $v1, $v0, .LPAL_800EE3D4 -/* 874D4 800EE3C4 00000000 */ nop -/* 874D8 800EE3C8 0200202D */ daddu $a0, $s0, $zero -/* 874DC 800EE3CC 0C050D6C */ jal hud_element_set_flags -/* 874E0 800EE3D0 0040282D */ daddu $a1, $v0, $zero -.LPAL_800EE3D4: -/* 874E4 800EE3D4 8E220000 */ lw $v0, 0x0($s1) -/* 874E8 800EE3D8 8C440000 */ lw $a0, 0x0($v0) -/* 874EC 800EE3DC 0C050015 */ jal hud_element_create -/* 874F0 800EE3E0 24130001 */ addiu $s3, $zero, 0x1 -/* 874F4 800EE3E4 0040802D */ daddu $s0, $v0, $zero -/* 874F8 800EE3E8 3C053EE6 */ lui $a1, (0x3EE66666 >> 16) -/* 874FC 800EE3EC 34A56666 */ ori $a1, $a1, (0x3EE66666 & 0xFFFF) -/* 87500 800EE3F0 3C018011 */ lui $at, %hi(PopupMenu_EntryIconHID) -/* 87504 800EE3F4 AC30C178 */ sw $s0, %lo(PopupMenu_EntryIconHID)($at) -/* 87508 800EE3F8 0C050DF4 */ jal hud_element_set_scale -/* 8750C 800EE3FC 0200202D */ daddu $a0, $s0, $zero -/* 87510 800EE400 0200202D */ daddu $a0, $s0, $zero -/* 87514 800EE404 0C050D6C */ jal hud_element_set_flags -/* 87518 800EE408 34058080 */ ori $a1, $zero, 0x8080 -/* 8751C 800EE40C 3C048010 */ lui $a0, %hi(HES_AnimatedHandPointer) -/* 87520 800EE410 24842D18 */ addiu $a0, $a0, %lo(HES_AnimatedHandPointer) -/* 87524 800EE414 0C050015 */ jal hud_element_create -/* 87528 800EE418 00000000 */ nop -/* 8752C 800EE41C 0040802D */ daddu $s0, $v0, $zero -/* 87530 800EE420 0200202D */ daddu $a0, $s0, $zero -/* 87534 800EE424 3C052000 */ lui $a1, (0x20000080 >> 16) -/* 87538 800EE428 3C018011 */ lui $at, %hi(PopupMenu_CursorHID) -/* 8753C 800EE42C AC24C16C */ sw $a0, %lo(PopupMenu_CursorHID)($at) -/* 87540 800EE430 0C050D6C */ jal hud_element_set_flags -/* 87544 800EE434 34A50080 */ ori $a1, $a1, (0x20000080 & 0xFFFF) -/* 87548 800EE438 3C048010 */ lui $a0, %hi(HES_GreenArrowUp) -/* 8754C 800EE43C 24845EF4 */ addiu $a0, $a0, %lo(HES_GreenArrowUp) -/* 87550 800EE440 0C050015 */ jal hud_element_create -/* 87554 800EE444 00000000 */ nop -/* 87558 800EE448 0040802D */ daddu $s0, $v0, $zero -/* 8755C 800EE44C 0200202D */ daddu $a0, $s0, $zero -/* 87560 800EE450 3C052000 */ lui $a1, (0x20000080 >> 16) -/* 87564 800EE454 3C018011 */ lui $at, %hi(PopupMenu_UpArrowHID) -/* 87568 800EE458 AC24C170 */ sw $a0, %lo(PopupMenu_UpArrowHID)($at) -/* 8756C 800EE45C 0C050D6C */ jal hud_element_set_flags -/* 87570 800EE460 34A50080 */ ori $a1, $a1, (0x20000080 & 0xFFFF) -/* 87574 800EE464 3C048010 */ lui $a0, %hi(HES_GreenArrowDown) -/* 87578 800EE468 24845EA8 */ addiu $a0, $a0, %lo(HES_GreenArrowDown) -/* 8757C 800EE46C 0C050015 */ jal hud_element_create -/* 87580 800EE470 00000000 */ nop -/* 87584 800EE474 0040802D */ daddu $s0, $v0, $zero -/* 87588 800EE478 0200202D */ daddu $a0, $s0, $zero -/* 8758C 800EE47C 3C052000 */ lui $a1, (0x20000080 >> 16) -/* 87590 800EE480 3C018011 */ lui $at, %hi(PopupMenu_DownArrowHID) -/* 87594 800EE484 AC24C174 */ sw $a0, %lo(PopupMenu_DownArrowHID)($at) -/* 87598 800EE488 0C050D6C */ jal hud_element_set_flags -/* 8759C 800EE48C 34A50080 */ ori $a1, $a1, (0x20000080 & 0xFFFF) -/* 875A0 800EE490 8E220000 */ lw $v0, 0x0($s1) -/* 875A4 800EE494 8C430318 */ lw $v1, 0x318($v0) -/* 875A8 800EE498 24020003 */ addiu $v0, $zero, 0x3 -/* 875AC 800EE49C 14620010 */ bne $v1, $v0, .LPAL_800EE4E0 -/* 875B0 800EE4A0 00000000 */ nop -/* 875B4 800EE4A4 3C048010 */ lui $a0, %hi(HES_StatusStarPiece) -/* 875B8 800EE4A8 24842F00 */ addiu $a0, $a0, %lo(HES_StatusStarPiece) -/* 875BC 800EE4AC 0C050015 */ jal hud_element_create -/* 875C0 800EE4B0 00000000 */ nop -/* 875C4 800EE4B4 3C018011 */ lui $at, %hi(PopupMenu_TitleIconHID) -/* 875C8 800EE4B8 AC22C160 */ sw $v0, %lo(PopupMenu_TitleIconHID)($at) -/* 875CC 800EE4BC 0040802D */ daddu $s0, $v0, $zero -/* 875D0 800EE4C0 0040202D */ daddu $a0, $v0, $zero -/* 875D4 800EE4C4 0C050D6C */ jal hud_element_set_flags -/* 875D8 800EE4C8 24050080 */ addiu $a1, $zero, 0x80 -/* 875DC 800EE4CC 0200202D */ daddu $a0, $s0, $zero -/* 875E0 800EE4D0 240500FF */ addiu $a1, $zero, 0xFF -/* 875E4 800EE4D4 00A0302D */ daddu $a2, $a1, $zero -/* 875E8 800EE4D8 0C050EAB */ jal hud_element_set_tint -/* 875EC 800EE4DC 00A0382D */ daddu $a3, $a1, $zero -.LPAL_800EE4E0: -/* 875F0 800EE4E0 8E220000 */ lw $v0, 0x0($s1) -/* 875F4 800EE4E4 8C420318 */ lw $v0, 0x318($v0) -/* 875F8 800EE4E8 24120004 */ addiu $s2, $zero, 0x4 -/* 875FC 800EE4EC 14520010 */ bne $v0, $s2, .LPAL_800EE530 -/* 87600 800EE4F0 00000000 */ nop -/* 87604 800EE4F4 3C048010 */ lui $a0, %hi(HES_StatusStarPiece) -/* 87608 800EE4F8 24842F00 */ addiu $a0, $a0, %lo(HES_StatusStarPiece) -/* 8760C 800EE4FC 0C050015 */ jal hud_element_create -/* 87610 800EE500 00000000 */ nop -/* 87614 800EE504 3C018011 */ lui $at, %hi(PopupMenu_TitleIconHID) -/* 87618 800EE508 AC22C160 */ sw $v0, %lo(PopupMenu_TitleIconHID)($at) -/* 8761C 800EE50C 0040802D */ daddu $s0, $v0, $zero -/* 87620 800EE510 0040202D */ daddu $a0, $v0, $zero -/* 87624 800EE514 0C050D6C */ jal hud_element_set_flags -/* 87628 800EE518 34058080 */ ori $a1, $zero, 0x8080 -/* 8762C 800EE51C 0200202D */ daddu $a0, $s0, $zero -/* 87630 800EE520 240500FF */ addiu $a1, $zero, 0xFF -/* 87634 800EE524 00A0302D */ daddu $a2, $a1, $zero -/* 87638 800EE528 0C050EAB */ jal hud_element_set_tint -/* 8763C 800EE52C 00A0382D */ daddu $a3, $a1, $zero -.LPAL_800EE530: -/* 87640 800EE530 8E220000 */ lw $v0, 0x0($s1) -/* 87644 800EE534 8C430318 */ lw $v1, 0x318($v0) -/* 87648 800EE538 24020005 */ addiu $v0, $zero, 0x5 -/* 8764C 800EE53C 14620010 */ bne $v1, $v0, .LPAL_800EE580 -/* 87650 800EE540 00000000 */ nop -/* 87654 800EE544 3C048010 */ lui $a0, %hi(HES_StatusCoin) -/* 87658 800EE548 24846D58 */ addiu $a0, $a0, %lo(HES_StatusCoin) -/* 8765C 800EE54C 0C050015 */ jal hud_element_create -/* 87660 800EE550 00000000 */ nop -/* 87664 800EE554 3C018011 */ lui $at, %hi(PopupMenu_TitleIconHID) -/* 87668 800EE558 AC22C160 */ sw $v0, %lo(PopupMenu_TitleIconHID)($at) -/* 8766C 800EE55C 0040802D */ daddu $s0, $v0, $zero -/* 87670 800EE560 0040202D */ daddu $a0, $v0, $zero -/* 87674 800EE564 0C050D6C */ jal hud_element_set_flags -/* 87678 800EE568 24050080 */ addiu $a1, $zero, 0x80 -/* 8767C 800EE56C 0200202D */ daddu $a0, $s0, $zero -/* 87680 800EE570 240500FF */ addiu $a1, $zero, 0xFF -/* 87684 800EE574 00A0302D */ daddu $a2, $a1, $zero -/* 87688 800EE578 0C050EAB */ jal hud_element_set_tint -/* 8768C 800EE57C 00A0382D */ daddu $a3, $a1, $zero -.LPAL_800EE580: -/* 87690 800EE580 8E220000 */ lw $v0, 0x0($s1) -/* 87694 800EE584 8C420318 */ lw $v0, 0x318($v0) -/* 87698 800EE588 2442FFFD */ addiu $v0, $v0, -0x3 -/* 8769C 800EE58C 2C420002 */ sltiu $v0, $v0, 0x2 -/* 876A0 800EE590 10400010 */ beqz $v0, .LPAL_800EE5D4 -/* 876A4 800EE594 00000000 */ nop -/* 876A8 800EE598 3C048010 */ lui $a0, %hi(HES_MenuTimes) -/* 876AC 800EE59C 24847E18 */ addiu $a0, $a0, %lo(HES_MenuTimes) -/* 876B0 800EE5A0 0C050015 */ jal hud_element_create -/* 876B4 800EE5A4 00000000 */ nop -/* 876B8 800EE5A8 3C018011 */ lui $at, %hi(PopupMenu_TimesHID) -/* 876BC 800EE5AC AC22C164 */ sw $v0, %lo(PopupMenu_TimesHID)($at) -/* 876C0 800EE5B0 0040802D */ daddu $s0, $v0, $zero -/* 876C4 800EE5B4 0040202D */ daddu $a0, $v0, $zero -/* 876C8 800EE5B8 0C050D6C */ jal hud_element_set_flags -/* 876CC 800EE5BC 24050080 */ addiu $a1, $zero, 0x80 -/* 876D0 800EE5C0 0200202D */ daddu $a0, $s0, $zero -/* 876D4 800EE5C4 240500FF */ addiu $a1, $zero, 0xFF -/* 876D8 800EE5C8 00A0302D */ daddu $a2, $a1, $zero -/* 876DC 800EE5CC 0C050EAB */ jal hud_element_set_tint -/* 876E0 800EE5D0 00A0382D */ daddu $a3, $a1, $zero -.LPAL_800EE5D4: -/* 876E4 800EE5D4 8E220000 */ lw $v0, 0x0($s1) -/* 876E8 800EE5D8 8C420318 */ lw $v0, 0x318($v0) -/* 876EC 800EE5DC 10530003 */ beq $v0, $s3, .LPAL_800EE5EC -/* 876F0 800EE5E0 00000000 */ nop -/* 876F4 800EE5E4 14520010 */ bne $v0, $s2, .LPAL_800EE628 -/* 876F8 800EE5E8 2402FF38 */ addiu $v0, $zero, -0xC8 -.LPAL_800EE5EC: -/* 876FC 800EE5EC 3C048011 */ lui $a0, %hi(D_80109890) -/* 87700 800EE5F0 0C050015 */ jal hud_element_create -/* 87704 800EE5F4 8C848430 */ lw $a0, %lo(D_80109890)($a0) -/* 87708 800EE5F8 0040802D */ daddu $s0, $v0, $zero -/* 8770C 800EE5FC 0200202D */ daddu $a0, $s0, $zero -/* 87710 800EE600 3C018011 */ lui $at, %hi(PopupMenu_PartnerLevelHID) -/* 87714 800EE604 AC30C168 */ sw $s0, %lo(PopupMenu_PartnerLevelHID)($at) -/* 87718 800EE608 0C050D6C */ jal hud_element_set_flags -/* 8771C 800EE60C 24050080 */ addiu $a1, $zero, 0x80 -/* 87720 800EE610 0200202D */ daddu $a0, $s0, $zero -/* 87724 800EE614 240500FF */ addiu $a1, $zero, 0xFF -/* 87728 800EE618 00A0302D */ daddu $a2, $a1, $zero -/* 8772C 800EE61C 0C050EAB */ jal hud_element_set_tint -/* 87730 800EE620 00A0382D */ daddu $a3, $a1, $zero -/* 87734 800EE624 2402FF38 */ addiu $v0, $zero, -0xC8 -.LPAL_800EE628: -/* 87738 800EE628 3C018011 */ lui $at, %hi(D_8010D65A) -/* 8773C 800EE62C A422C15A */ sh $v0, %lo(D_8010D65A)($at) -/* 87740 800EE630 3C028011 */ lui $v0, %hi(D_8010D691) -/* 87744 800EE634 8042C191 */ lb $v0, %lo(D_8010D691)($v0) -/* 87748 800EE638 3C038011 */ lui $v1, %hi(PopupNotBattle) -/* 8774C 800EE63C 8063C18E */ lb $v1, %lo(PopupNotBattle)($v1) -/* 87750 800EE640 3C048011 */ lui $a0, %hi(D_8010D644) -/* 87754 800EE644 2484C144 */ addiu $a0, $a0, %lo(D_8010D644) -/* 87758 800EE648 14600003 */ bnez $v1, .LPAL_800EE658 -/* 8775C 800EE64C AC820000 */ sw $v0, 0x0($a0) -/* 87760 800EE650 24020001 */ addiu $v0, $zero, 0x1 -/* 87764 800EE654 AC820000 */ sw $v0, 0x0($a0) -.LPAL_800EE658: -/* 87768 800EE658 3C148011 */ lui $s4, %hi(D_8010D67C) -/* 8776C 800EE65C 8694C17C */ lh $s4, %lo(D_8010D67C)($s4) -/* 87770 800EE660 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 87774 800EE664 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 87778 800EE668 3C138011 */ lui $s3, %hi(D_8010D67E) -/* 8777C 800EE66C 8673C17E */ lh $s3, %lo(D_8010D67E)($s3) -/* 87780 800EE670 8C440318 */ lw $a0, 0x318($v0) -/* 87784 800EE674 2403000A */ addiu $v1, $zero, 0xA -/* 87788 800EE678 3C018011 */ lui $at, %hi(D_8010D690) -/* 8778C 800EE67C A023C190 */ sb $v1, %lo(D_8010D690)($at) -/* 87790 800EE680 AC400338 */ sw $zero, 0x338($v0) -/* 87794 800EE684 AC400340 */ sw $zero, 0x340($v0) -/* 87798 800EE688 2C82000E */ sltiu $v0, $a0, 0xE -/* 8779C 800EE68C 104000A1 */ beqz $v0, .LPAL_800EE914 -/* 877A0 800EE690 00041080 */ sll $v0, $a0, 2 -/* 877A4 800EE694 3C018011 */ lui $at, %hi(jtbl_PAL_8010B170) -/* 877A8 800EE698 00220821 */ addu $at, $at, $v0 -/* 877AC 800EE69C 8C22B170 */ lw $v0, %lo(jtbl_PAL_8010B170)($at) -/* 877B0 800EE6A0 00400008 */ jr $v0 -/* 877B4 800EE6A4 00000000 */ nop -.LPAL_800EE6A8: -/* 877B8 800EE6A8 3C048011 */ lui $a0, %hi(gPopupMenu) -/* 877BC 800EE6AC 8C84C19C */ lw $a0, %lo(gPopupMenu)($a0) -/* 877C0 800EE6B0 3C02001D */ lui $v0, (0x1D0061 >> 16) -/* 877C4 800EE6B4 8C83031C */ lw $v1, 0x31C($a0) -/* 877C8 800EE6B8 34420061 */ ori $v0, $v0, (0x1D0061 & 0xFFFF) -/* 877CC 800EE6BC AC82033C */ sw $v0, 0x33C($a0) -/* 877D0 800EE6C0 24020001 */ addiu $v0, $zero, 0x1 -/* 877D4 800EE6C4 1062000E */ beq $v1, $v0, .LPAL_800EE700 -/* 877D8 800EE6C8 3C02001D */ lui $v0, (0x1D0041 >> 16) -/* 877DC 800EE6CC 28620002 */ slti $v0, $v1, 0x2 -/* 877E0 800EE6D0 50400005 */ beql $v0, $zero, .LPAL_800EE6E8 -/* 877E4 800EE6D4 24020002 */ addiu $v0, $zero, 0x2 -/* 877E8 800EE6D8 10600007 */ beqz $v1, .LPAL_800EE6F8 -/* 877EC 800EE6DC 3C02001D */ lui $v0, (0x1D003F >> 16) -/* 877F0 800EE6E0 0803B9C5 */ j .LPAL_800EE714 -/* 877F4 800EE6E4 3C04001D */ lui $a0, (0x1D003F >> 16) -.LPAL_800EE6E8: -/* 877F8 800EE6E8 10620007 */ beq $v1, $v0, .LPAL_800EE708 -/* 877FC 800EE6EC 3C02001D */ lui $v0, (0x1D0042 >> 16) -/* 87800 800EE6F0 0803B9C5 */ j .LPAL_800EE714 -/* 87804 800EE6F4 3C04001D */ lui $a0, (0x1D003F >> 16) -.LPAL_800EE6F8: -/* 87808 800EE6F8 0803B9C3 */ j .LPAL_800EE70C -/* 8780C 800EE6FC 3442003F */ ori $v0, $v0, (0x1D003F & 0xFFFF) -.LPAL_800EE700: -/* 87810 800EE700 0803B9C3 */ j .LPAL_800EE70C -/* 87814 800EE704 34420041 */ ori $v0, $v0, (0x1D0041 & 0xFFFF) -.LPAL_800EE708: -/* 87818 800EE708 34420042 */ ori $v0, $v0, (0x1D0042 & 0xFFFF) -.LPAL_800EE70C: -/* 8781C 800EE70C AC820330 */ sw $v0, 0x330($a0) -.LPAL_800EE710: -/* 87820 800EE710 3C04001D */ lui $a0, (0x1D003F >> 16) -.LPAL_800EE714: -/* 87824 800EE714 3484003F */ ori $a0, $a0, (0x1D003F & 0xFFFF) -/* 87828 800EE718 3C03001D */ lui $v1, (0x1D0064 >> 16) -/* 8782C 800EE71C 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 87830 800EE720 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 87834 800EE724 34630064 */ ori $v1, $v1, (0x1D0064 & 0xFFFF) -/* 87838 800EE728 AC440330 */ sw $a0, 0x330($v0) -/* 8783C 800EE72C AC43033C */ sw $v1, 0x33C($v0) -.LPAL_800EE730: -/* 87840 800EE730 3C04001D */ lui $a0, (0x1D003F >> 16) -/* 87844 800EE734 3484003F */ ori $a0, $a0, (0x1D003F & 0xFFFF) -/* 87848 800EE738 3C03001D */ lui $v1, (0x1D0066 >> 16) -/* 8784C 800EE73C 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 87850 800EE740 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 87854 800EE744 34630066 */ ori $v1, $v1, (0x1D0066 & 0xFFFF) -/* 87858 800EE748 AC440330 */ sw $a0, 0x330($v0) -/* 8785C 800EE74C AC43033C */ sw $v1, 0x33C($v0) -.LPAL_800EE750: -/* 87860 800EE750 3C04001D */ lui $a0, (0x1D003F >> 16) -/* 87864 800EE754 3484003F */ ori $a0, $a0, (0x1D003F & 0xFFFF) -/* 87868 800EE758 3C03001D */ lui $v1, (0x1D0067 >> 16) -/* 8786C 800EE75C 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 87870 800EE760 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 87874 800EE764 34630067 */ ori $v1, $v1, (0x1D0067 & 0xFFFF) -/* 87878 800EE768 AC440330 */ sw $a0, 0x330($v0) -/* 8787C 800EE76C AC43033C */ sw $v1, 0x33C($v0) -.LPAL_800EE770: -/* 87880 800EE770 24160091 */ addiu $s6, $zero, 0x91 -/* 87884 800EE774 02C0A82D */ daddu $s5, $s6, $zero -/* 87888 800EE778 3C04001D */ lui $a0, (0x1D0062 >> 16) -/* 8788C 800EE77C 34840062 */ ori $a0, $a0, (0x1D0062 & 0xFFFF) -/* 87890 800EE780 3C03001D */ lui $v1, (0x1D003F >> 16) -/* 87894 800EE784 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 87898 800EE788 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 8789C 800EE78C 3463003F */ ori $v1, $v1, (0x1D003F & 0xFFFF) -/* 878A0 800EE790 AC44033C */ sw $a0, 0x33C($v0) -/* 878A4 800EE794 0803BA45 */ j .LPAL_800EE914 -/* 878A8 800EE798 AC430330 */ sw $v1, 0x330($v0) -.LPAL_800EE79C: -/* 878AC 800EE79C 2416008B */ addiu $s6, $zero, 0x8B -/* 878B0 800EE7A0 02C0A82D */ daddu $s5, $s6, $zero -/* 878B4 800EE7A4 3C02001D */ lui $v0, (0x1D003D >> 16) -/* 878B8 800EE7A8 3442003D */ ori $v0, $v0, (0x1D003D & 0xFFFF) -/* 878BC 800EE7AC 3C04001D */ lui $a0, (0x1D0063 >> 16) -/* 878C0 800EE7B0 3C038011 */ lui $v1, %hi(gPopupMenu) -/* 878C4 800EE7B4 8C63C19C */ lw $v1, %lo(gPopupMenu)($v1) -/* 878C8 800EE7B8 0803BA41 */ j .LPAL_800EE904 -/* 878CC 800EE7BC 34840063 */ ori $a0, $a0, (0x1D0063 & 0xFFFF) -.LPAL_800EE7C0: -/* 878D0 800EE7C0 241600A2 */ addiu $s6, $zero, 0xA2 -/* 878D4 800EE7C4 2415008C */ addiu $s5, $zero, 0x8C -/* 878D8 800EE7C8 3C05001F */ lui $a1, (0x1F0032 >> 16) -/* 878DC 800EE7CC 34A50032 */ ori $a1, $a1, (0x1F0032 & 0xFFFF) -/* 878E0 800EE7D0 3C04001D */ lui $a0, (0x1D0070 >> 16) -/* 878E4 800EE7D4 0803BA32 */ j .LPAL_800EE8C8 -/* 878E8 800EE7D8 34840070 */ ori $a0, $a0, (0x1D0070 & 0xFFFF) -.LPAL_800EE7DC: -/* 878EC 800EE7DC 24160092 */ addiu $s6, $zero, 0x92 -/* 878F0 800EE7E0 2415008C */ addiu $s5, $zero, 0x8C -/* 878F4 800EE7E4 3C04001D */ lui $a0, (0x1D003D >> 16) -/* 878F8 800EE7E8 3484003D */ ori $a0, $a0, (0x1D003D & 0xFFFF) -/* 878FC 800EE7EC 3C05001D */ lui $a1, (0x1D006A >> 16) -/* 87900 800EE7F0 34A5006A */ ori $a1, $a1, (0x1D006A & 0xFFFF) -/* 87904 800EE7F4 3C038011 */ lui $v1, %hi(gPopupMenu) -/* 87908 800EE7F8 8C63C19C */ lw $v1, %lo(gPopupMenu)($v1) -/* 8790C 800EE7FC 2402FFF8 */ addiu $v0, $zero, -0x8 -/* 87910 800EE800 AC620340 */ sw $v0, 0x340($v1) -/* 87914 800EE804 24020001 */ addiu $v0, $zero, 0x1 -/* 87918 800EE808 AC640330 */ sw $a0, 0x330($v1) -/* 8791C 800EE80C AC620338 */ sw $v0, 0x338($v1) -/* 87920 800EE810 0803BA45 */ j .LPAL_800EE914 -/* 87924 800EE814 AC65033C */ sw $a1, 0x33C($v1) -.LPAL_800EE818: -/* 87928 800EE818 241600A7 */ addiu $s6, $zero, 0xA7 -/* 8792C 800EE81C 24150091 */ addiu $s5, $zero, 0x91 -/* 87930 800EE820 3C05001D */ lui $a1, (0x1D003F >> 16) -/* 87934 800EE824 34A5003F */ ori $a1, $a1, (0x1D003F & 0xFFFF) -/* 87938 800EE828 3C04001D */ lui $a0, (0x1D0065 >> 16) -/* 8793C 800EE82C 34840065 */ ori $a0, $a0, (0x1D0065 & 0xFFFF) -/* 87940 800EE830 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 87944 800EE834 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 87948 800EE838 0803BA35 */ j .LPAL_800EE8D4 -/* 8794C 800EE83C 2403FFE8 */ addiu $v1, $zero, -0x18 -.LPAL_800EE840: -/* 87950 800EE840 241600AA */ addiu $s6, $zero, 0xAA -/* 87954 800EE844 02C0A82D */ daddu $s5, $s6, $zero -/* 87958 800EE848 3C05001F */ lui $a1, (0x1F0033 >> 16) -/* 8795C 800EE84C 34A50033 */ ori $a1, $a1, (0x1F0033 & 0xFFFF) -/* 87960 800EE850 3C04001D */ lui $a0, (0x1D006D >> 16) -/* 87964 800EE854 3484006D */ ori $a0, $a0, (0x1D006D & 0xFFFF) -/* 87968 800EE858 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 8796C 800EE85C 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 87970 800EE860 0803BA35 */ j .LPAL_800EE8D4 -/* 87974 800EE864 2403FFE0 */ addiu $v1, $zero, -0x20 -.LPAL_800EE868: -/* 87978 800EE868 24160091 */ addiu $s6, $zero, 0x91 -/* 8797C 800EE86C 02C0A82D */ daddu $s5, $s6, $zero -/* 87980 800EE870 3C04001D */ lui $a0, (0x1D00D7 >> 16) -/* 87984 800EE874 348400D7 */ ori $a0, $a0, (0x1D00D7 & 0xFFFF) -/* 87988 800EE878 3C03001D */ lui $v1, (0x1D00D6 >> 16) -/* 8798C 800EE87C 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 87990 800EE880 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 87994 800EE884 346300D6 */ ori $v1, $v1, (0x1D00D6 & 0xFFFF) -/* 87998 800EE888 AC440330 */ sw $a0, 0x330($v0) -/* 8799C 800EE88C 0803BA45 */ j .LPAL_800EE914 -/* 879A0 800EE890 AC43033C */ sw $v1, 0x33C($v0) -.LPAL_800EE894: -/* 879A4 800EE894 2416008C */ addiu $s6, $zero, 0x8C -/* 879A8 800EE898 02C0A82D */ daddu $s5, $s6, $zero -/* 879AC 800EE89C 3C05001D */ lui $a1, (0x1D00CE >> 16) -/* 879B0 800EE8A0 34A500CE */ ori $a1, $a1, (0x1D00CE & 0xFFFF) -/* 879B4 800EE8A4 3C04001D */ lui $a0, (0x1D006C >> 16) -/* 879B8 800EE8A8 0803BA32 */ j .LPAL_800EE8C8 -/* 879BC 800EE8AC 3484006C */ ori $a0, $a0, (0x1D006C & 0xFFFF) -.LPAL_800EE8B0: -/* 879C0 800EE8B0 24160095 */ addiu $s6, $zero, 0x95 -/* 879C4 800EE8B4 02C0A82D */ daddu $s5, $s6, $zero -/* 879C8 800EE8B8 3C05001D */ lui $a1, (0x1D00D0 >> 16) -/* 879CC 800EE8BC 34A500D0 */ ori $a1, $a1, (0x1D00D0 & 0xFFFF) -/* 879D0 800EE8C0 3C04001D */ lui $a0, (0x1D006D >> 16) -/* 879D4 800EE8C4 3484006D */ ori $a0, $a0, (0x1D006D & 0xFFFF) -.LPAL_800EE8C8: -/* 879D8 800EE8C8 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 879DC 800EE8CC 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 879E0 800EE8D0 2403FFF0 */ addiu $v1, $zero, -0x10 -.LPAL_800EE8D4: -/* 879E4 800EE8D4 AC430340 */ sw $v1, 0x340($v0) -/* 879E8 800EE8D8 AC450330 */ sw $a1, 0x330($v0) -/* 879EC 800EE8DC 0803BA45 */ j .LPAL_800EE914 -/* 879F0 800EE8E0 AC44033C */ sw $a0, 0x33C($v0) -.LPAL_800EE8E4: -/* 879F4 800EE8E4 24160083 */ addiu $s6, $zero, 0x83 -/* 879F8 800EE8E8 02C0A82D */ daddu $s5, $s6, $zero -/* 879FC 800EE8EC 3C02001D */ lui $v0, (0x1D003D >> 16) -/* 87A00 800EE8F0 3442003D */ ori $v0, $v0, (0x1D003D & 0xFFFF) -/* 87A04 800EE8F4 3C04001D */ lui $a0, (0x1D006F >> 16) -/* 87A08 800EE8F8 3C038011 */ lui $v1, %hi(gPopupMenu) -/* 87A0C 800EE8FC 8C63C19C */ lw $v1, %lo(gPopupMenu)($v1) -/* 87A10 800EE900 3484006F */ ori $a0, $a0, (0x1D006F & 0xFFFF) -.LPAL_800EE904: -/* 87A14 800EE904 AC620330 */ sw $v0, 0x330($v1) -/* 87A18 800EE908 24020001 */ addiu $v0, $zero, 0x1 -/* 87A1C 800EE90C AC620338 */ sw $v0, 0x338($v1) -/* 87A20 800EE910 AC64033C */ sw $a0, 0x33C($v1) -.LPAL_800EE914: -/* 87A24 800EE914 3C108011 */ lui $s0, %hi(gPopupMenu) -/* 87A28 800EE918 2610C19C */ addiu $s0, $s0, %lo(gPopupMenu) -/* 87A2C 800EE91C 8E020000 */ lw $v0, 0x0($s0) -/* 87A30 800EE920 8C440330 */ lw $a0, 0x330($v0) -/* 87A34 800EE924 0C0493E5 */ jal get_msg_width -/* 87A38 800EE928 0000282D */ daddu $a1, $zero, $zero -/* 87A3C 800EE92C 3C036666 */ lui $v1, (0x66666667 >> 16) -/* 87A40 800EE930 34636667 */ ori $v1, $v1, (0x66666667 & 0xFFFF) -/* 87A44 800EE934 0040202D */ daddu $a0, $v0, $zero -/* 87A48 800EE938 02A41023 */ subu $v0, $s5, $a0 -/* 87A4C 800EE93C 00021040 */ sll $v0, $v0, 1 -/* 87A50 800EE940 00430018 */ mult $v0, $v1 -/* 87A54 800EE944 000217C3 */ sra $v0, $v0, 31 -/* 87A58 800EE948 8E100000 */ lw $s0, 0x0($s0) -/* 87A5C 800EE94C 00006010 */ mfhi $t4 -/* 87A60 800EE950 000C1843 */ sra $v1, $t4, 1 -/* 87A64 800EE954 00621823 */ subu $v1, $v1, $v0 -/* 87A68 800EE958 00838821 */ addu $s1, $a0, $v1 -/* 87A6C 800EE95C 02B11023 */ subu $v0, $s5, $s1 -/* 87A70 800EE960 00021FC2 */ srl $v1, $v0, 31 -/* 87A74 800EE964 00431021 */ addu $v0, $v0, $v1 -/* 87A78 800EE968 00029043 */ sra $s2, $v0, 1 -/* 87A7C 800EE96C 02241023 */ subu $v0, $s1, $a0 -/* 87A80 800EE970 00021FC2 */ srl $v1, $v0, 31 -/* 87A84 800EE974 00431021 */ addu $v0, $v0, $v1 -/* 87A88 800EE978 8E030318 */ lw $v1, 0x318($s0) -/* 87A8C 800EE97C 00021043 */ sra $v0, $v0, 1 -/* 87A90 800EE980 1460000E */ bnez $v1, .LPAL_800EE9BC -/* 87A94 800EE984 AE020334 */ sw $v0, 0x334($s0) -/* 87A98 800EE988 8E02031C */ lw $v0, 0x31C($s0) -/* 87A9C 800EE98C 1040000B */ beqz $v0, .LPAL_800EE9BC -/* 87AA0 800EE990 26A2FF83 */ addiu $v0, $s5, -0x7D -/* 87AA4 800EE994 2411007D */ addiu $s1, $zero, 0x7D -/* 87AA8 800EE998 00021FC2 */ srl $v1, $v0, 31 -/* 87AAC 800EE99C 00431021 */ addu $v0, $v0, $v1 -/* 87AB0 800EE9A0 00029043 */ sra $s2, $v0, 1 -/* 87AB4 800EE9A4 24020050 */ addiu $v0, $zero, 0x50 -/* 87AB8 800EE9A8 00441023 */ subu $v0, $v0, $a0 -/* 87ABC 800EE9AC 00021FC2 */ srl $v1, $v0, 31 -/* 87AC0 800EE9B0 00431021 */ addu $v0, $v0, $v1 -/* 87AC4 800EE9B4 00021043 */ sra $v0, $v0, 1 -/* 87AC8 800EE9B8 AE020334 */ sw $v0, 0x334($s0) -.LPAL_800EE9BC: -/* 87ACC 800EE9BC 2404000E */ addiu $a0, $zero, 0xE -/* 87AD0 800EE9C0 0280282D */ daddu $a1, $s4, $zero -/* 87AD4 800EE9C4 0260302D */ daddu $a2, $s3, $zero -/* 87AD8 800EE9C8 02C0382D */ daddu $a3, $s6, $zero -/* 87ADC 800EE9CC 3C038011 */ lui $v1, %hi(PopupMenu_DisplayedEntryCount) -/* 87AE0 800EE9D0 8063C156 */ lb $v1, %lo(PopupMenu_DisplayedEntryCount)($v1) -/* 87AE4 800EE9D4 24020014 */ addiu $v0, $zero, 0x14 -/* 87AE8 800EE9D8 AFA20014 */ sw $v0, 0x14($sp) -/* 87AEC 800EE9DC 3C02800F */ lui $v0, %hi(popup_menu_draw_menu_contents) -/* 87AF0 800EE9E0 2442FD50 */ addiu $v0, $v0, %lo(popup_menu_draw_menu_contents) -/* 87AF4 800EE9E4 AFA20018 */ sw $v0, 0x18($sp) -/* 87AF8 800EE9E8 2402FFFF */ addiu $v0, $zero, -0x1 -/* 87AFC 800EE9EC AFA0001C */ sw $zero, 0x1C($sp) -/* 87B00 800EE9F0 AFA20020 */ sw $v0, 0x20($sp) -/* 87B04 800EE9F4 00031040 */ sll $v0, $v1, 1 -/* 87B08 800EE9F8 00431021 */ addu $v0, $v0, $v1 -/* 87B0C 800EE9FC 00021080 */ sll $v0, $v0, 2 -/* 87B10 800EEA00 00431021 */ addu $v0, $v0, $v1 -/* 87B14 800EEA04 2442001A */ addiu $v0, $v0, 0x1A -/* 87B18 800EEA08 0C051A1E */ jal set_window_properties -/* 87B1C 800EEA0C AFA20010 */ sw $v0, 0x10($sp) -/* 87B20 800EEA10 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 87B24 800EEA14 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 87B28 800EEA18 8C420338 */ lw $v0, 0x338($v0) -/* 87B2C 800EEA1C 14400016 */ bnez $v0, .LPAL_800EEA78 -/* 87B30 800EEA20 24040011 */ addiu $a0, $zero, 0x11 -/* 87B34 800EEA24 2404000F */ addiu $a0, $zero, 0xF -/* 87B38 800EEA28 0240282D */ daddu $a1, $s2, $zero -/* 87B3C 800EEA2C 2406FFFA */ addiu $a2, $zero, -0x6 -/* 87B40 800EEA30 0220382D */ daddu $a3, $s1, $zero -/* 87B44 800EEA34 24020010 */ addiu $v0, $zero, 0x10 -/* 87B48 800EEA38 AFA20010 */ sw $v0, 0x10($sp) -/* 87B4C 800EEA3C 24020015 */ addiu $v0, $zero, 0x15 -/* 87B50 800EEA40 AFA20014 */ sw $v0, 0x14($sp) -/* 87B54 800EEA44 3C02800F */ lui $v0, %hi(popup_menu_draw_title_contents) -/* 87B58 800EEA48 24420D18 */ addiu $v0, $v0, %lo(popup_menu_draw_title_contents) -/* 87B5C 800EEA4C AFA20018 */ sw $v0, 0x18($sp) -/* 87B60 800EEA50 2402000E */ addiu $v0, $zero, 0xE -/* 87B64 800EEA54 AFA0001C */ sw $zero, 0x1C($sp) -/* 87B68 800EEA58 0C051A1E */ jal set_window_properties -/* 87B6C 800EEA5C AFA20020 */ sw $v0, 0x20($sp) -/* 87B70 800EEA60 2404000F */ addiu $a0, $zero, 0xF -/* 87B74 800EEA64 0C051A8B */ jal set_window_update -/* 87B78 800EEA68 24050001 */ addiu $a1, $zero, 0x1 -/* 87B7C 800EEA6C 24040011 */ addiu $a0, $zero, 0x11 -/* 87B80 800EEA70 0803BAB1 */ j .LPAL_800EEAC4 -/* 87B84 800EEA74 24050002 */ addiu $a1, $zero, 0x2 -.LPAL_800EEA78: -/* 87B88 800EEA78 0240282D */ daddu $a1, $s2, $zero -/* 87B8C 800EEA7C 2406FFFA */ addiu $a2, $zero, -0x6 -/* 87B90 800EEA80 0220382D */ daddu $a3, $s1, $zero -/* 87B94 800EEA84 24020010 */ addiu $v0, $zero, 0x10 -/* 87B98 800EEA88 AFA20010 */ sw $v0, 0x10($sp) -/* 87B9C 800EEA8C 24020015 */ addiu $v0, $zero, 0x15 -/* 87BA0 800EEA90 AFA20014 */ sw $v0, 0x14($sp) -/* 87BA4 800EEA94 3C02800F */ lui $v0, %hi(popup_menu_draw_title_contents) -/* 87BA8 800EEA98 24420D18 */ addiu $v0, $v0, %lo(popup_menu_draw_title_contents) -/* 87BAC 800EEA9C AFA20018 */ sw $v0, 0x18($sp) -/* 87BB0 800EEAA0 2402000E */ addiu $v0, $zero, 0xE -/* 87BB4 800EEAA4 AFA0001C */ sw $zero, 0x1C($sp) -/* 87BB8 800EEAA8 0C051A1E */ jal set_window_properties -/* 87BBC 800EEAAC AFA20020 */ sw $v0, 0x20($sp) -/* 87BC0 800EEAB0 2404000F */ addiu $a0, $zero, 0xF -/* 87BC4 800EEAB4 0C051A8B */ jal set_window_update -/* 87BC8 800EEAB8 24050002 */ addiu $a1, $zero, 0x2 -/* 87BCC 800EEABC 24040011 */ addiu $a0, $zero, 0x11 -/* 87BD0 800EEAC0 24050001 */ addiu $a1, $zero, 0x1 -.LPAL_800EEAC4: -/* 87BD4 800EEAC4 0C051A8B */ jal set_window_update -/* 87BD8 800EEAC8 00000000 */ nop -/* 87BDC 800EEACC 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 87BE0 800EEAD0 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 87BE4 800EEAD4 8C430318 */ lw $v1, 0x318($v0) -/* 87BE8 800EEAD8 24020003 */ addiu $v0, $zero, 0x3 -/* 87BEC 800EEADC 10620005 */ beq $v1, $v0, .LPAL_800EEAF4 -/* 87BF0 800EEAE0 24020005 */ addiu $v0, $zero, 0x5 -/* 87BF4 800EEAE4 10620006 */ beq $v1, $v0, .LPAL_800EEB00 -/* 87BF8 800EEAE8 24040010 */ addiu $a0, $zero, 0x10 -/* 87BFC 800EEAEC 0803BACE */ j .LPAL_800EEB38 -/* 87C00 800EEAF0 00000000 */ nop -.LPAL_800EEAF4: -/* 87C04 800EEAF4 24040010 */ addiu $a0, $zero, 0x10 -/* 87C08 800EEAF8 0803BAC1 */ j .LPAL_800EEB04 -/* 87C0C 800EEAFC 2405007E */ addiu $a1, $zero, 0x7E -.LPAL_800EEB00: -/* 87C10 800EEB00 24050083 */ addiu $a1, $zero, 0x83 -.LPAL_800EEB04: -/* 87C14 800EEB04 2406FFF2 */ addiu $a2, $zero, -0xE -/* 87C18 800EEB08 24070020 */ addiu $a3, $zero, 0x20 -/* 87C1C 800EEB0C 00E0102D */ daddu $v0, $a3, $zero -/* 87C20 800EEB10 AFA20010 */ sw $v0, 0x10($sp) -/* 87C24 800EEB14 24020015 */ addiu $v0, $zero, 0x15 -/* 87C28 800EEB18 AFA20014 */ sw $v0, 0x14($sp) -/* 87C2C 800EEB1C 3C02800F */ lui $v0, %hi(popup_draw_cost_icon) -/* 87C30 800EEB20 2442109C */ addiu $v0, $v0, %lo(popup_draw_cost_icon) -/* 87C34 800EEB24 AFA20018 */ sw $v0, 0x18($sp) -/* 87C38 800EEB28 2402000E */ addiu $v0, $zero, 0xE -/* 87C3C 800EEB2C AFA0001C */ sw $zero, 0x1C($sp) -/* 87C40 800EEB30 0C051A1E */ jal set_window_properties -/* 87C44 800EEB34 AFA20020 */ sw $v0, 0x20($sp) -.LPAL_800EEB38: -/* 87C48 800EEB38 3C108011 */ lui $s0, %hi(gPopupMenu) -/* 87C4C 800EEB3C 2610C19C */ addiu $s0, $s0, %lo(gPopupMenu) -/* 87C50 800EEB40 8E020000 */ lw $v0, 0x0($s0) -/* 87C54 800EEB44 8C430318 */ lw $v1, 0x318($v0) -/* 87C58 800EEB48 24020003 */ addiu $v0, $zero, 0x3 -/* 87C5C 800EEB4C 14620013 */ bne $v1, $v0, .LPAL_800EEB9C -/* 87C60 800EEB50 24040014 */ addiu $a0, $zero, 0x14 -/* 87C64 800EEB54 24070040 */ addiu $a3, $zero, 0x40 -/* 87C68 800EEB58 3C148011 */ lui $s4, %hi(PopupMenu_StarPieceCounterPosX) -/* 87C6C 800EEB5C 8694C188 */ lh $s4, %lo(PopupMenu_StarPieceCounterPosX)($s4) -/* 87C70 800EEB60 3C138011 */ lui $s3, %hi(PopupMenu_StarPieceCounterPosY) -/* 87C74 800EEB64 8673C18A */ lh $s3, %lo(PopupMenu_StarPieceCounterPosY)($s3) -/* 87C78 800EEB68 0080102D */ daddu $v0, $a0, $zero -/* 87C7C 800EEB6C AFA20010 */ sw $v0, 0x10($sp) -/* 87C80 800EEB70 24020015 */ addiu $v0, $zero, 0x15 -/* 87C84 800EEB74 AFA20014 */ sw $v0, 0x14($sp) -/* 87C88 800EEB78 3C02800F */ lui $v0, %hi(func_800F4D28) -/* 87C8C 800EEB7C 24421158 */ addiu $v0, $v0, %lo(func_800F4D28) -/* 87C90 800EEB80 AFA20018 */ sw $v0, 0x18($sp) -/* 87C94 800EEB84 2402FFFF */ addiu $v0, $zero, -0x1 -/* 87C98 800EEB88 AFA0001C */ sw $zero, 0x1C($sp) -/* 87C9C 800EEB8C AFA20020 */ sw $v0, 0x20($sp) -/* 87CA0 800EEB90 0280282D */ daddu $a1, $s4, $zero -/* 87CA4 800EEB94 0C051A1E */ jal set_window_properties -/* 87CA8 800EEB98 0260302D */ daddu $a2, $s3, $zero -.LPAL_800EEB9C: -/* 87CAC 800EEB9C 3C078011 */ lui $a3, %hi(PopupMenu_FirstDisplayIndex) -/* 87CB0 800EEBA0 24E7C154 */ addiu $a3, $a3, %lo(PopupMenu_FirstDisplayIndex) -/* 87CB4 800EEBA4 0200582D */ daddu $t3, $s0, $zero -/* 87CB8 800EEBA8 3C0A8011 */ lui $t2, %hi(PopupMenu_MaxDisplayableEntryCount) -/* 87CBC 800EEBAC 254AC18F */ addiu $t2, $t2, %lo(PopupMenu_MaxDisplayableEntryCount) -/* 87CC0 800EEBB0 3C098011 */ lui $t1, %hi(PopupMenu_LastDisplayIndex) -/* 87CC4 800EEBB4 8129C155 */ lb $t1, %lo(PopupMenu_LastDisplayIndex)($t1) -/* 87CC8 800EEBB8 3C088011 */ lui $t0, %hi(PopupMenu_SelectedIndex) -/* 87CCC 800EEBBC 8D08C148 */ lw $t0, %lo(PopupMenu_SelectedIndex)($t0) -.LPAL_800EEBC0: -/* 87CD0 800EEBC0 80E20000 */ lb $v0, 0x0($a3) -/* 87CD4 800EEBC4 90E30000 */ lbu $v1, 0x0($a3) -/* 87CD8 800EEBC8 00491021 */ addu $v0, $v0, $t1 -/* 87CDC 800EEBCC 2442FFFF */ addiu $v0, $v0, -0x1 -/* 87CE0 800EEBD0 0102102A */ slt $v0, $t0, $v0 -/* 87CE4 800EEBD4 14400013 */ bnez $v0, .LPAL_800EEC24 -/* 87CE8 800EEBD8 0000302D */ daddu $a2, $zero, $zero -/* 87CEC 800EEBDC 24620001 */ addiu $v0, $v1, 0x1 -/* 87CF0 800EEBE0 A0E20000 */ sb $v0, 0x0($a3) -/* 87CF4 800EEBE4 00021600 */ sll $v0, $v0, 24 -/* 87CF8 800EEBE8 8D650000 */ lw $a1, 0x0($t3) -/* 87CFC 800EEBEC 81440000 */ lb $a0, 0x0($t2) -/* 87D00 800EEBF0 8CA30324 */ lw $v1, 0x324($a1) -/* 87D04 800EEBF4 00021603 */ sra $v0, $v0, 24 -/* 87D08 800EEBF8 00641823 */ subu $v1, $v1, $a0 -/* 87D0C 800EEBFC 0062182A */ slt $v1, $v1, $v0 -/* 87D10 800EEC00 91440000 */ lbu $a0, 0x0($t2) -/* 87D14 800EEC04 50600007 */ beql $v1, $zero, .LPAL_800EEC24 -/* 87D18 800EEC08 24060001 */ addiu $a2, $zero, 0x1 -/* 87D1C 800EEC0C 90A20327 */ lbu $v0, 0x327($a1) -/* 87D20 800EEC10 00441023 */ subu $v0, $v0, $a0 -/* 87D24 800EEC14 A0E20000 */ sb $v0, 0x0($a3) -/* 87D28 800EEC18 00021600 */ sll $v0, $v0, 24 -/* 87D2C 800EEC1C 04420001 */ bltzl $v0, .LPAL_800EEC24 -/* 87D30 800EEC20 A0E00000 */ sb $zero, 0x0($a3) -.LPAL_800EEC24: -/* 87D34 800EEC24 14C0FFE6 */ bnez $a2, .LPAL_800EEBC0 -/* 87D38 800EEC28 00000000 */ nop -/* 87D3C 800EEC2C 3C038011 */ lui $v1, %hi(PopupMenu_FirstDisplayIndex) -/* 87D40 800EEC30 9063C154 */ lbu $v1, %lo(PopupMenu_FirstDisplayIndex)($v1) -/* 87D44 800EEC34 3C028011 */ lui $v0, %hi(PopupMenu_MaxDisplayableEntryCount) -/* 87D48 800EEC38 9042C18F */ lbu $v0, %lo(PopupMenu_MaxDisplayableEntryCount)($v0) -/* 87D4C 800EEC3C 3C048011 */ lui $a0, %hi(gPopupMenu) -/* 87D50 800EEC40 8C84C19C */ lw $a0, %lo(gPopupMenu)($a0) -/* 87D54 800EEC44 00621021 */ addu $v0, $v1, $v0 -/* 87D58 800EEC48 00031E00 */ sll $v1, $v1, 24 -/* 87D5C 800EEC4C 00031E03 */ sra $v1, $v1, 24 -/* 87D60 800EEC50 00031823 */ negu $v1, $v1 -/* 87D64 800EEC54 3C018011 */ lui $at, %hi(PopupMenu_LastDisplayIndex) -/* 87D68 800EEC58 A022C155 */ sb $v0, %lo(PopupMenu_LastDisplayIndex)($at) -/* 87D6C 800EEC5C 00031040 */ sll $v0, $v1, 1 -/* 87D70 800EEC60 00431021 */ addu $v0, $v0, $v1 -/* 87D74 800EEC64 00021080 */ sll $v0, $v0, 2 -/* 87D78 800EEC68 8C840318 */ lw $a0, 0x318($a0) -/* 87D7C 800EEC6C 00431021 */ addu $v0, $v0, $v1 -/* 87D80 800EEC70 3C018011 */ lui $at, %hi(D_8010D658) -/* 87D84 800EEC74 A422C158 */ sh $v0, %lo(D_8010D658)($at) -/* 87D88 800EEC78 04800018 */ bltz $a0, .LPAL_800EECDC -/* 87D8C 800EEC7C 2882000A */ slti $v0, $a0, 0xA -/* 87D90 800EEC80 54400004 */ bnel $v0, $zero, .LPAL_800EEC94 -/* 87D94 800EEC84 24040013 */ addiu $a0, $zero, 0x13 -/* 87D98 800EEC88 2402000C */ addiu $v0, $zero, 0xC -/* 87D9C 800EEC8C 14820013 */ bne $a0, $v0, .LPAL_800EECDC -/* 87DA0 800EEC90 24040013 */ addiu $a0, $zero, 0x13 -.LPAL_800EEC94: -/* 87DA4 800EEC94 24070118 */ addiu $a3, $zero, 0x118 -/* 87DA8 800EEC98 3C148011 */ lui $s4, %hi(D_8010D680) -/* 87DAC 800EEC9C 8694C180 */ lh $s4, %lo(D_8010D680)($s4) -/* 87DB0 800EECA0 3C138011 */ lui $s3, %hi(D_8010D682) -/* 87DB4 800EECA4 8673C182 */ lh $s3, %lo(D_8010D682)($s3) -/* 87DB8 800EECA8 24020020 */ addiu $v0, $zero, 0x20 -/* 87DBC 800EECAC AFA20010 */ sw $v0, 0x10($sp) -/* 87DC0 800EECB0 24020014 */ addiu $v0, $zero, 0x14 -/* 87DC4 800EECB4 AFA20014 */ sw $v0, 0x14($sp) -/* 87DC8 800EECB8 3C02800F */ lui $v0, %hi(func_800F48F4) -/* 87DCC 800EECBC 24420EE0 */ addiu $v0, $v0, %lo(func_800F48F4) -/* 87DD0 800EECC0 AFA20018 */ sw $v0, 0x18($sp) -/* 87DD4 800EECC4 2402FFFF */ addiu $v0, $zero, -0x1 -/* 87DD8 800EECC8 AFA0001C */ sw $zero, 0x1C($sp) -/* 87DDC 800EECCC AFA20020 */ sw $v0, 0x20($sp) -/* 87DE0 800EECD0 0280282D */ daddu $a1, $s4, $zero -/* 87DE4 800EECD4 0C051A1E */ jal set_window_properties -/* 87DE8 800EECD8 0260302D */ daddu $a2, $s3, $zero -.LPAL_800EECDC: -/* 87DEC 800EECDC 3C118011 */ lui $s1, %hi(gPopupMenu) -/* 87DF0 800EECE0 2631C19C */ addiu $s1, $s1, %lo(gPopupMenu) -/* 87DF4 800EECE4 8E220000 */ lw $v0, 0x0($s1) -/* 87DF8 800EECE8 3C148011 */ lui $s4, %hi(D_8010D684) -/* 87DFC 800EECEC 8694C184 */ lh $s4, %lo(D_8010D684)($s4) -/* 87E00 800EECF0 8C44033C */ lw $a0, 0x33C($v0) -/* 87E04 800EECF4 3C138011 */ lui $s3, %hi(D_8010D686) -/* 87E08 800EECF8 8673C186 */ lh $s3, %lo(D_8010D686)($s3) -/* 87E0C 800EECFC 0C0493F4 */ jal get_msg_lines -/* 87E10 800EED00 24100020 */ addiu $s0, $zero, 0x20 -/* 87E14 800EED04 24030002 */ addiu $v1, $zero, 0x2 -/* 87E18 800EED08 50430001 */ beql $v0, $v1, .LPAL_800EED10 -/* 87E1C 800EED0C 24100028 */ addiu $s0, $zero, 0x28 -.LPAL_800EED10: -/* 87E20 800EED10 24040015 */ addiu $a0, $zero, 0x15 -/* 87E24 800EED14 0280282D */ daddu $a1, $s4, $zero -/* 87E28 800EED18 8E220000 */ lw $v0, 0x0($s1) -/* 87E2C 800EED1C 0260302D */ daddu $a2, $s3, $zero -/* 87E30 800EED20 8C470340 */ lw $a3, 0x340($v0) -/* 87E34 800EED24 24020014 */ addiu $v0, $zero, 0x14 -/* 87E38 800EED28 AFA20014 */ sw $v0, 0x14($sp) -/* 87E3C 800EED2C 3C02800F */ lui $v0, %hi(func_800F4944) -/* 87E40 800EED30 24420F30 */ addiu $v0, $v0, %lo(func_800F4944) -/* 87E44 800EED34 AFA20018 */ sw $v0, 0x18($sp) -/* 87E48 800EED38 2402FFFF */ addiu $v0, $zero, -0x1 -/* 87E4C 800EED3C AFB00010 */ sw $s0, 0x10($sp) -/* 87E50 800EED40 AFA0001C */ sw $zero, 0x1C($sp) -/* 87E54 800EED44 AFA20020 */ sw $v0, 0x20($sp) -/* 87E58 800EED48 0C051A1E */ jal set_window_properties -/* 87E5C 800EED4C 24E70090 */ addiu $a3, $a3, 0x90 -/* 87E60 800EED50 3C028011 */ lui $v0, %hi(PopupNotBattle) -/* 87E64 800EED54 8042C18E */ lb $v0, %lo(PopupNotBattle)($v0) -/* 87E68 800EED58 14400017 */ bnez $v0, .LPAL_800EEDB8 -/* 87E6C 800EED5C 00000000 */ nop -/* 87E70 800EED60 8E220000 */ lw $v0, 0x0($s1) -/* 87E74 800EED64 8C430318 */ lw $v1, 0x318($v0) -/* 87E78 800EED68 2C62000E */ sltiu $v0, $v1, 0xE -/* 87E7C 800EED6C 10400039 */ beqz $v0, .LPAL_800EEE54 -/* 87E80 800EED70 00031080 */ sll $v0, $v1, 2 -/* 87E84 800EED74 3C018011 */ lui $at, %hi(jtbl_PAL_8010B1A8) -/* 87E88 800EED78 00220821 */ addu $at, $at, $v0 -/* 87E8C 800EED7C 8C22B1A8 */ lw $v0, %lo(jtbl_PAL_8010B1A8)($at) -/* 87E90 800EED80 00400008 */ jr $v0 -/* 87E94 800EED84 00000000 */ nop -.LPAL_800EED88: -/* 87E98 800EED88 2404000E */ addiu $a0, $zero, 0xE -/* 87E9C 800EED8C 0C051A8B */ jal set_window_update -/* 87EA0 800EED90 24050001 */ addiu $a1, $zero, 0x1 -/* 87EA4 800EED94 0803BB93 */ j .LPAL_800EEE4C -/* 87EA8 800EED98 24040013 */ addiu $a0, $zero, 0x13 -.LPAL_800EED9C: -/* 87EAC 800EED9C 2404000E */ addiu $a0, $zero, 0xE -/* 87EB0 800EEDA0 0C051A8B */ jal set_window_update -/* 87EB4 800EEDA4 24050001 */ addiu $a1, $zero, 0x1 -/* 87EB8 800EEDA8 0803BB93 */ j .LPAL_800EEE4C -/* 87EBC 800EEDAC 24040013 */ addiu $a0, $zero, 0x13 -.LPAL_800EEDB0: -/* 87EC0 800EEDB0 0803BB93 */ j .LPAL_800EEE4C -/* 87EC4 800EEDB4 2404000E */ addiu $a0, $zero, 0xE -.LPAL_800EEDB8: -/* 87EC8 800EEDB8 8E220000 */ lw $v0, 0x0($s1) -/* 87ECC 800EEDBC 8C430318 */ lw $v1, 0x318($v0) -/* 87ED0 800EEDC0 2C62000E */ sltiu $v0, $v1, 0xE -/* 87ED4 800EEDC4 10400020 */ beqz $v0, .LPAL_800EEE48 -/* 87ED8 800EEDC8 00031080 */ sll $v0, $v1, 2 -/* 87EDC 800EEDCC 3C018011 */ lui $at, %hi(jtbl_PAL_8010B1E0) -/* 87EE0 800EEDD0 00220821 */ addu $at, $at, $v0 -/* 87EE4 800EEDD4 8C22B1E0 */ lw $v0, %lo(jtbl_PAL_8010B1E0)($at) -/* 87EE8 800EEDD8 00400008 */ jr $v0 -/* 87EEC 800EEDDC 00000000 */ nop -.LPAL_800EEDE0: -/* 87EF0 800EEDE0 2404000E */ addiu $a0, $zero, 0xE -/* 87EF4 800EEDE4 3C108014 */ lui $s0, %hi(basic_window_update) -/* 87EF8 800EEDE8 26106024 */ addiu $s0, $s0, %lo(basic_window_update) -/* 87EFC 800EEDEC 0C051A8B */ jal set_window_update -/* 87F00 800EEDF0 0200282D */ daddu $a1, $s0, $zero -/* 87F04 800EEDF4 0803BB85 */ j .LPAL_800EEE14 -/* 87F08 800EEDF8 24040001 */ addiu $a0, $zero, 0x1 -.LPAL_800EEDFC: -/* 87F0C 800EEDFC 2404000E */ addiu $a0, $zero, 0xE -/* 87F10 800EEE00 3C108014 */ lui $s0, %hi(basic_window_update) -/* 87F14 800EEE04 26106024 */ addiu $s0, $s0, %lo(basic_window_update) -/* 87F18 800EEE08 0C051A8B */ jal set_window_update -/* 87F1C 800EEE0C 0200282D */ daddu $a1, $s0, $zero -/* 87F20 800EEE10 24040002 */ addiu $a0, $zero, 0x2 -.LPAL_800EEE14: -/* 87F24 800EEE14 0C052219 */ jal sfx_play_sound -/* 87F28 800EEE18 00000000 */ nop -/* 87F2C 800EEE1C 24040013 */ addiu $a0, $zero, 0x13 -/* 87F30 800EEE20 0C051A8B */ jal set_window_update -/* 87F34 800EEE24 0200282D */ daddu $a1, $s0, $zero -/* 87F38 800EEE28 0803BB93 */ j .LPAL_800EEE4C -/* 87F3C 800EEE2C 24040015 */ addiu $a0, $zero, 0x15 -.LPAL_800EEE30: -/* 87F40 800EEE30 3C058014 */ lui $a1, %hi(basic_window_update) -/* 87F44 800EEE34 24A56024 */ addiu $a1, $a1, %lo(basic_window_update) -/* 87F48 800EEE38 0C051A8B */ jal set_window_update -/* 87F4C 800EEE3C 2404000E */ addiu $a0, $zero, 0xE -/* 87F50 800EEE40 0C052219 */ jal sfx_play_sound -/* 87F54 800EEE44 24040001 */ addiu $a0, $zero, 0x1 -.LPAL_800EEE48: -/* 87F58 800EEE48 24040015 */ addiu $a0, $zero, 0x15 -.LPAL_800EEE4C: -/* 87F5C 800EEE4C 0C051A8B */ jal set_window_update -/* 87F60 800EEE50 24050001 */ addiu $a1, $zero, 0x1 -.LPAL_800EEE54: -/* 87F64 800EEE54 3C118011 */ lui $s1, %hi(gPopupMenu) -/* 87F68 800EEE58 2631C19C */ addiu $s1, $s1, %lo(gPopupMenu) -/* 87F6C 800EEE5C 8E220000 */ lw $v0, 0x0($s1) -/* 87F70 800EEE60 8C430318 */ lw $v1, 0x318($v0) -/* 87F74 800EEE64 24020003 */ addiu $v0, $zero, 0x3 -/* 87F78 800EEE68 14620008 */ bne $v1, $v0, .LPAL_800EEE8C -/* 87F7C 800EEE6C 24040010 */ addiu $a0, $zero, 0x10 -/* 87F80 800EEE70 3C108014 */ lui $s0, %hi(basic_window_update) -/* 87F84 800EEE74 26106024 */ addiu $s0, $s0, %lo(basic_window_update) -/* 87F88 800EEE78 0C051A8B */ jal set_window_update -/* 87F8C 800EEE7C 0200282D */ daddu $a1, $s0, $zero -/* 87F90 800EEE80 24040014 */ addiu $a0, $zero, 0x14 -/* 87F94 800EEE84 0C051A8B */ jal set_window_update -/* 87F98 800EEE88 0200282D */ daddu $a1, $s0, $zero -.LPAL_800EEE8C: -/* 87F9C 800EEE8C 8E220000 */ lw $v0, 0x0($s1) -/* 87FA0 800EEE90 8C430318 */ lw $v1, 0x318($v0) -/* 87FA4 800EEE94 24020004 */ addiu $v0, $zero, 0x4 -/* 87FA8 800EEE98 14620005 */ bne $v1, $v0, .LPAL_800EEEB0 -/* 87FAC 800EEE9C 00000000 */ nop -/* 87FB0 800EEEA0 3C058014 */ lui $a1, %hi(basic_window_update) -/* 87FB4 800EEEA4 24A56024 */ addiu $a1, $a1, %lo(basic_window_update) -/* 87FB8 800EEEA8 0C051A8B */ jal set_window_update -/* 87FBC 800EEEAC 24040012 */ addiu $a0, $zero, 0x12 -.LPAL_800EEEB0: -/* 87FC0 800EEEB0 8E220000 */ lw $v0, 0x0($s1) -/* 87FC4 800EEEB4 8C430318 */ lw $v1, 0x318($v0) -/* 87FC8 800EEEB8 24020005 */ addiu $v0, $zero, 0x5 -/* 87FCC 800EEEBC 14620394 */ bne $v1, $v0, .LPAL_800EFD10 -/* 87FD0 800EEEC0 24020001 */ addiu $v0, $zero, 0x1 -/* 87FD4 800EEEC4 3C058014 */ lui $a1, %hi(basic_window_update) -/* 87FD8 800EEEC8 24A56024 */ addiu $a1, $a1, %lo(basic_window_update) -/* 87FDC 800EEECC 0C051A8B */ jal set_window_update -/* 87FE0 800EEED0 24040010 */ addiu $a0, $zero, 0x10 -/* 87FE4 800EEED4 0803BF44 */ j .LPAL_800EFD10 -/* 87FE8 800EEED8 24020001 */ addiu $v0, $zero, 0x1 -.LPAL_800EEEDC: -/* 87FEC 800EEEDC 3C038011 */ lui $v1, %hi(D_8010D644) -/* 87FF0 800EEEE0 2463C144 */ addiu $v1, $v1, %lo(D_8010D644) -/* 87FF4 800EEEE4 8C620000 */ lw $v0, 0x0($v1) -/* 87FF8 800EEEE8 10400003 */ beqz $v0, .LPAL_800EEEF8 -/* 87FFC 800EEEEC 2442FFFF */ addiu $v0, $v0, -0x1 -/* 88000 800EEEF0 0803BF46 */ j .LPAL_800EFD18 -/* 88004 800EEEF4 AC620000 */ sw $v0, 0x0($v1) -.LPAL_800EEEF8: -/* 88008 800EEEF8 3C060001 */ lui $a2, (0x12000 >> 16) -/* 8800C 800EEEFC 3C058011 */ lui $a1, %hi(PopupMenu_SelectedIndex) -/* 88010 800EEF00 24A5C148 */ addiu $a1, $a1, %lo(PopupMenu_SelectedIndex) -/* 88014 800EEF04 3C048007 */ lui $a0, %hi(gGameStatusPtr) -/* 88018 800EEF08 8C8414AC */ lw $a0, %lo(gGameStatusPtr)($a0) -/* 8801C 800EEF0C 8CA30000 */ lw $v1, 0x0($a1) -/* 88020 800EEF10 8C820020 */ lw $v0, 0x20($a0) -/* 88024 800EEF14 34C62000 */ ori $a2, $a2, (0x12000 & 0xFFFF) -/* 88028 800EEF18 3C018011 */ lui $at, %hi(PopupMenu_PrevSelectedIndex) -/* 8802C 800EEF1C AC23C14C */ sw $v1, %lo(PopupMenu_PrevSelectedIndex)($at) -/* 88030 800EEF20 00461024 */ and $v0, $v0, $a2 -/* 88034 800EEF24 10400008 */ beqz $v0, .LPAL_800EEF48 -/* 88038 800EEF28 00000000 */ nop -/* 8803C 800EEF2C 1C600005 */ bgtz $v1, .LPAL_800EEF44 -/* 88040 800EEF30 2462FFFF */ addiu $v0, $v1, -0x1 -/* 88044 800EEF34 8C820010 */ lw $v0, 0x10($a0) -/* 88048 800EEF38 00461024 */ and $v0, $v0, $a2 -/* 8804C 800EEF3C 10400002 */ beqz $v0, .LPAL_800EEF48 -/* 88050 800EEF40 2462FFFF */ addiu $v0, $v1, -0x1 -.LPAL_800EEF44: -/* 88054 800EEF44 ACA20000 */ sw $v0, 0x0($a1) -.LPAL_800EEF48: -/* 88058 800EEF48 3C058007 */ lui $a1, %hi(gGameStatusPtr) -/* 8805C 800EEF4C 8CA514AC */ lw $a1, %lo(gGameStatusPtr)($a1) -/* 88060 800EEF50 3C060002 */ lui $a2, (0x20010 >> 16) -/* 88064 800EEF54 8CA20020 */ lw $v0, 0x20($a1) -/* 88068 800EEF58 34C60010 */ ori $a2, $a2, (0x20010 & 0xFFFF) -/* 8806C 800EEF5C 00461024 */ and $v0, $v0, $a2 -/* 88070 800EEF60 10400010 */ beqz $v0, .LPAL_800EEFA4 -/* 88074 800EEF64 00000000 */ nop -/* 88078 800EEF68 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 8807C 800EEF6C 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 88080 800EEF70 3C048011 */ lui $a0, %hi(PopupMenu_SelectedIndex) -/* 88084 800EEF74 2484C148 */ addiu $a0, $a0, %lo(PopupMenu_SelectedIndex) -/* 88088 800EEF78 8C420324 */ lw $v0, 0x324($v0) -/* 8808C 800EEF7C 8C830000 */ lw $v1, 0x0($a0) -/* 88090 800EEF80 2442FFFF */ addiu $v0, $v0, -0x1 -/* 88094 800EEF84 0062102A */ slt $v0, $v1, $v0 -/* 88098 800EEF88 14400005 */ bnez $v0, .LPAL_800EEFA0 -/* 8809C 800EEF8C 24620001 */ addiu $v0, $v1, 0x1 -/* 880A0 800EEF90 8CA20010 */ lw $v0, 0x10($a1) -/* 880A4 800EEF94 00461024 */ and $v0, $v0, $a2 -/* 880A8 800EEF98 10400002 */ beqz $v0, .LPAL_800EEFA4 -/* 880AC 800EEF9C 24620001 */ addiu $v0, $v1, 0x1 -.LPAL_800EEFA0: -/* 880B0 800EEFA0 AC820000 */ sw $v0, 0x0($a0) -.LPAL_800EEFA4: -/* 880B4 800EEFA4 3C108011 */ lui $s0, %hi(PopupMenu_SelectedIndex) -/* 880B8 800EEFA8 2610C148 */ addiu $s0, $s0, %lo(PopupMenu_SelectedIndex) -/* 880BC 800EEFAC 8E020000 */ lw $v0, 0x0($s0) -/* 880C0 800EEFB0 04410006 */ bgez $v0, .LPAL_800EEFCC -/* 880C4 800EEFB4 00000000 */ nop -/* 880C8 800EEFB8 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 880CC 800EEFBC 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 880D0 800EEFC0 8C420324 */ lw $v0, 0x324($v0) -/* 880D4 800EEFC4 2442FFFF */ addiu $v0, $v0, -0x1 -/* 880D8 800EEFC8 AE020000 */ sw $v0, 0x0($s0) -.LPAL_800EEFCC: -/* 880DC 800EEFCC 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 880E0 800EEFD0 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 880E4 800EEFD4 8C420324 */ lw $v0, 0x324($v0) -/* 880E8 800EEFD8 8E030000 */ lw $v1, 0x0($s0) -/* 880EC 800EEFDC 2442FFFF */ addiu $v0, $v0, -0x1 -/* 880F0 800EEFE0 0043102A */ slt $v0, $v0, $v1 -/* 880F4 800EEFE4 54400001 */ bnel $v0, $zero, .LPAL_800EEFEC -/* 880F8 800EEFE8 AE000000 */ sw $zero, 0x0($s0) -.LPAL_800EEFEC: -/* 880FC 800EEFEC 3C038011 */ lui $v1, %hi(PopupMenu_PrevSelectedIndex) -/* 88100 800EEFF0 8C63C14C */ lw $v1, %lo(PopupMenu_PrevSelectedIndex)($v1) -/* 88104 800EEFF4 8E020000 */ lw $v0, 0x0($s0) -/* 88108 800EEFF8 10620004 */ beq $v1, $v0, .LPAL_800EF00C -/* 8810C 800EEFFC 0000302D */ daddu $a2, $zero, $zero -/* 88110 800EF000 0C052219 */ jal sfx_play_sound -/* 88114 800EF004 240400C7 */ addiu $a0, $zero, 0xC7 -/* 88118 800EF008 0000302D */ daddu $a2, $zero, $zero -.LPAL_800EF00C: -/* 8811C 800EF00C 3C058011 */ lui $a1, %hi(PopupMenu_FirstDisplayIndex) -/* 88120 800EF010 24A5C154 */ addiu $a1, $a1, %lo(PopupMenu_FirstDisplayIndex) -/* 88124 800EF014 8E030000 */ lw $v1, 0x0($s0) -.LPAL_800EF018: -/* 88128 800EF018 80A20000 */ lb $v0, 0x0($a1) -/* 8812C 800EF01C 90A40000 */ lbu $a0, 0x0($a1) -/* 88130 800EF020 24420001 */ addiu $v0, $v0, 0x1 -/* 88134 800EF024 0062102A */ slt $v0, $v1, $v0 -/* 88138 800EF028 50400007 */ beql $v0, $zero, .LPAL_800EF048 -/* 8813C 800EF02C 24C60001 */ addiu $a2, $a2, 0x1 -/* 88140 800EF030 2482FFFF */ addiu $v0, $a0, -0x1 -/* 88144 800EF034 A0A20000 */ sb $v0, 0x0($a1) -/* 88148 800EF038 00021600 */ sll $v0, $v0, 24 -/* 8814C 800EF03C 04420001 */ bltzl $v0, .LPAL_800EF044 -/* 88150 800EF040 A0A00000 */ sb $zero, 0x0($a1) -.LPAL_800EF044: -/* 88154 800EF044 24C60001 */ addiu $a2, $a2, 0x1 -.LPAL_800EF048: -/* 88158 800EF048 28C20004 */ slti $v0, $a2, 0x4 -/* 8815C 800EF04C 1440FFF2 */ bnez $v0, .LPAL_800EF018 -/* 88160 800EF050 00000000 */ nop -/* 88164 800EF054 0000302D */ daddu $a2, $zero, $zero -/* 88168 800EF058 3C098011 */ lui $t1, %hi(PopupMenu_LastDisplayIndex) -/* 8816C 800EF05C 2529C155 */ addiu $t1, $t1, %lo(PopupMenu_LastDisplayIndex) -/* 88170 800EF060 3C0A8011 */ lui $t2, %hi(PopupMenu_SelectedIndex) -/* 88174 800EF064 8D4AC148 */ lw $t2, %lo(PopupMenu_SelectedIndex)($t2) -/* 88178 800EF068 3C078011 */ lui $a3, %hi(PopupMenu_FirstDisplayIndex) -/* 8817C 800EF06C 24E7C154 */ addiu $a3, $a3, %lo(PopupMenu_FirstDisplayIndex) -/* 88180 800EF070 3C0B8011 */ lui $t3, %hi(gPopupMenu) -/* 88184 800EF074 256BC19C */ addiu $t3, $t3, %lo(gPopupMenu) -/* 88188 800EF078 3C088011 */ lui $t0, %hi(PopupMenu_MaxDisplayableEntryCount) -/* 8818C 800EF07C 2508C18F */ addiu $t0, $t0, %lo(PopupMenu_MaxDisplayableEntryCount) -.LPAL_800EF080: -/* 88190 800EF080 81220000 */ lb $v0, 0x0($t1) -/* 88194 800EF084 2442FFFF */ addiu $v0, $v0, -0x1 -/* 88198 800EF088 0142102A */ slt $v0, $t2, $v0 -/* 8819C 800EF08C 14400013 */ bnez $v0, .LPAL_800EF0DC -/* 881A0 800EF090 00000000 */ nop -/* 881A4 800EF094 90E20000 */ lbu $v0, 0x0($a3) -/* 881A8 800EF098 24420001 */ addiu $v0, $v0, 0x1 -/* 881AC 800EF09C A0E20000 */ sb $v0, 0x0($a3) -/* 881B0 800EF0A0 00021600 */ sll $v0, $v0, 24 -/* 881B4 800EF0A4 8D650000 */ lw $a1, 0x0($t3) -/* 881B8 800EF0A8 81040000 */ lb $a0, 0x0($t0) -/* 881BC 800EF0AC 8CA30324 */ lw $v1, 0x324($a1) -/* 881C0 800EF0B0 00021603 */ sra $v0, $v0, 24 -/* 881C4 800EF0B4 00641823 */ subu $v1, $v1, $a0 -/* 881C8 800EF0B8 0062182A */ slt $v1, $v1, $v0 -/* 881CC 800EF0BC 10600007 */ beqz $v1, .LPAL_800EF0DC -/* 881D0 800EF0C0 91040000 */ lbu $a0, 0x0($t0) -/* 881D4 800EF0C4 90A20327 */ lbu $v0, 0x327($a1) -/* 881D8 800EF0C8 00441023 */ subu $v0, $v0, $a0 -/* 881DC 800EF0CC A0E20000 */ sb $v0, 0x0($a3) -/* 881E0 800EF0D0 00021600 */ sll $v0, $v0, 24 -/* 881E4 800EF0D4 04420001 */ bltzl $v0, .LPAL_800EF0DC -/* 881E8 800EF0D8 A0E00000 */ sb $zero, 0x0($a3) -.LPAL_800EF0DC: -/* 881EC 800EF0DC 90E20000 */ lbu $v0, 0x0($a3) -/* 881F0 800EF0E0 91030000 */ lbu $v1, 0x0($t0) -/* 881F4 800EF0E4 24C60001 */ addiu $a2, $a2, 0x1 -/* 881F8 800EF0E8 00431021 */ addu $v0, $v0, $v1 -/* 881FC 800EF0EC A1220000 */ sb $v0, 0x0($t1) -/* 88200 800EF0F0 28C20004 */ slti $v0, $a2, 0x4 -/* 88204 800EF0F4 1440FFE2 */ bnez $v0, .LPAL_800EF080 -/* 88208 800EF0F8 00000000 */ nop -/* 8820C 800EF0FC 3C028007 */ lui $v0, %hi(gGameStatusPtr) -/* 88210 800EF100 8C4214AC */ lw $v0, %lo(gGameStatusPtr)($v0) -/* 88214 800EF104 8C420010 */ lw $v0, 0x10($v0) -/* 88218 800EF108 30428000 */ andi $v0, $v0, 0x8000 -/* 8821C 800EF10C 1040003F */ beqz $v0, .LPAL_800EF20C -/* 88220 800EF110 00000000 */ nop -/* 88224 800EF114 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 88228 800EF118 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 8822C 800EF11C 8C430318 */ lw $v1, 0x318($v0) -/* 88230 800EF120 24020008 */ addiu $v0, $zero, 0x8 -/* 88234 800EF124 10620005 */ beq $v1, $v0, .LPAL_800EF13C -/* 88238 800EF128 2402000D */ addiu $v0, $zero, 0xD -/* 8823C 800EF12C 1062000B */ beq $v1, $v0, .LPAL_800EF15C -/* 88240 800EF130 00000000 */ nop -/* 88244 800EF134 0803BC5F */ j .LPAL_800EF17C -/* 88248 800EF138 00000000 */ nop -.LPAL_800EF13C: -/* 8824C 800EF13C 0C052219 */ jal sfx_play_sound -/* 88250 800EF140 240400C9 */ addiu $a0, $zero, 0xC9 -/* 88254 800EF144 3C028011 */ lui $v0, %hi(PopupNotBattle) -/* 88258 800EF148 8042C18E */ lb $v0, %lo(PopupNotBattle)($v0) -/* 8825C 800EF14C 144002F0 */ bnez $v0, .LPAL_800EFD10 -/* 88260 800EF150 2402FFFE */ addiu $v0, $zero, -0x2 -/* 88264 800EF154 0803BF44 */ j .LPAL_800EFD10 -/* 88268 800EF158 2402FFFF */ addiu $v0, $zero, -0x1 -.LPAL_800EF15C: -/* 8826C 800EF15C 0C052219 */ jal sfx_play_sound -/* 88270 800EF160 240400C9 */ addiu $a0, $zero, 0xC9 -/* 88274 800EF164 3C028011 */ lui $v0, %hi(PopupNotBattle) -/* 88278 800EF168 8042C18E */ lb $v0, %lo(PopupNotBattle)($v0) -/* 8827C 800EF16C 144002E8 */ bnez $v0, .LPAL_800EFD10 -/* 88280 800EF170 2402FFFE */ addiu $v0, $zero, -0x2 -/* 88284 800EF174 0803BF44 */ j .LPAL_800EFD10 -/* 88288 800EF178 2402FFFF */ addiu $v0, $zero, -0x1 -.LPAL_800EF17C: -/* 8828C 800EF17C 3C028011 */ lui $v0, %hi(PopupMenu_SelectedIndex) -/* 88290 800EF180 8C42C148 */ lw $v0, %lo(PopupMenu_SelectedIndex)($v0) -/* 88294 800EF184 3C038011 */ lui $v1, %hi(gPopupMenu) -/* 88298 800EF188 8C63C19C */ lw $v1, %lo(gPopupMenu)($v1) -/* 8829C 800EF18C 00021080 */ sll $v0, $v0, 2 -/* 882A0 800EF190 00621021 */ addu $v0, $v1, $v0 -/* 882A4 800EF194 8C42018C */ lw $v0, 0x18C($v0) -/* 882A8 800EF198 10400009 */ beqz $v0, .LPAL_800EF1C0 -/* 882AC 800EF19C 24020001 */ addiu $v0, $zero, 0x1 -/* 882B0 800EF1A0 0C052219 */ jal sfx_play_sound -/* 882B4 800EF1A4 240400C9 */ addiu $a0, $zero, 0xC9 -/* 882B8 800EF1A8 3C028011 */ lui $v0, %hi(PopupNotBattle) -/* 882BC 800EF1AC 8042C18E */ lb $v0, %lo(PopupNotBattle)($v0) -/* 882C0 800EF1B0 144002D7 */ bnez $v0, .LPAL_800EFD10 -/* 882C4 800EF1B4 2402FFFE */ addiu $v0, $zero, -0x2 -/* 882C8 800EF1B8 0803BF44 */ j .LPAL_800EFD10 -/* 882CC 800EF1BC 2402FFFF */ addiu $v0, $zero, -0x1 -.LPAL_800EF1C0: -/* 882D0 800EF1C0 8C630318 */ lw $v1, 0x318($v1) -/* 882D4 800EF1C4 14620005 */ bne $v1, $v0, .LPAL_800EF1DC -/* 882D8 800EF1C8 00000000 */ nop -/* 882DC 800EF1CC 0C052219 */ jal sfx_play_sound -/* 882E0 800EF1D0 2404021D */ addiu $a0, $zero, 0x21D -/* 882E4 800EF1D4 0803BF44 */ j .LPAL_800EFD10 -/* 882E8 800EF1D8 2402001E */ addiu $v0, $zero, 0x1E -.LPAL_800EF1DC: -/* 882EC 800EF1DC 3C028011 */ lui $v0, %hi(PopupNotBattle) -/* 882F0 800EF1E0 8042C18E */ lb $v0, %lo(PopupNotBattle)($v0) -/* 882F4 800EF1E4 104002CC */ beqz $v0, .LPAL_800EFD18 -/* 882F8 800EF1E8 00000000 */ nop -/* 882FC 800EF1EC 10600003 */ beqz $v1, .LPAL_800EF1FC -/* 88300 800EF1F0 24020003 */ addiu $v0, $zero, 0x3 -/* 88304 800EF1F4 146202C8 */ bne $v1, $v0, .LPAL_800EFD18 -/* 88308 800EF1F8 00000000 */ nop -.LPAL_800EF1FC: -/* 8830C 800EF1FC 0C052219 */ jal sfx_play_sound -/* 88310 800EF200 2404021D */ addiu $a0, $zero, 0x21D -/* 88314 800EF204 0803BF46 */ j .LPAL_800EFD18 -/* 88318 800EF208 00000000 */ nop -.LPAL_800EF20C: -/* 8831C 800EF20C 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 88320 800EF210 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 88324 800EF214 8C430318 */ lw $v1, 0x318($v0) -/* 88328 800EF218 2C62000E */ sltiu $v0, $v1, 0xE -/* 8832C 800EF21C 10400014 */ beqz $v0, .LPAL_800EF270 -/* 88330 800EF220 00031080 */ sll $v0, $v1, 2 -/* 88334 800EF224 3C018011 */ lui $at, %hi(jtbl_PAL_8010B218) -/* 88338 800EF228 00220821 */ addu $at, $at, $v0 -/* 8833C 800EF22C 8C22B218 */ lw $v0, %lo(jtbl_PAL_8010B218)($at) -/* 88340 800EF230 00400008 */ jr $v0 -/* 88344 800EF234 00000000 */ nop -.LPAL_800EF238: -/* 88348 800EF238 3C028011 */ lui $v0, %hi(PopupNotBattle) -/* 8834C 800EF23C 8042C18E */ lb $v0, %lo(PopupNotBattle)($v0) -/* 88350 800EF240 1040000C */ beqz $v0, .LPAL_800EF274 -/* 88354 800EF244 24034000 */ addiu $v1, $zero, 0x4000 -/* 88358 800EF248 0803BC9D */ j .LPAL_800EF274 -/* 8835C 800EF24C 24034002 */ addiu $v1, $zero, 0x4002 -.LPAL_800EF250: -/* 88360 800EF250 3C028011 */ lui $v0, %hi(PopupNotBattle) -/* 88364 800EF254 8042C18E */ lb $v0, %lo(PopupNotBattle)($v0) -/* 88368 800EF258 10400006 */ beqz $v0, .LPAL_800EF274 -/* 8836C 800EF25C 24034000 */ addiu $v1, $zero, 0x4000 -/* 88370 800EF260 0803BC9D */ j .LPAL_800EF274 -/* 88374 800EF264 24034001 */ addiu $v1, $zero, 0x4001 -.LPAL_800EF268: -/* 88378 800EF268 0803BC9D */ j .LPAL_800EF274 -/* 8837C 800EF26C 24034000 */ addiu $v1, $zero, 0x4000 -.LPAL_800EF270: -/* 88380 800EF270 0000182D */ daddu $v1, $zero, $zero -.LPAL_800EF274: -/* 88384 800EF274 3C028007 */ lui $v0, %hi(gGameStatusPtr) -/* 88388 800EF278 8C4214AC */ lw $v0, %lo(gGameStatusPtr)($v0) -/* 8838C 800EF27C 8C420010 */ lw $v0, 0x10($v0) -/* 88390 800EF280 00431024 */ and $v0, $v0, $v1 -/* 88394 800EF284 10400013 */ beqz $v0, .LPAL_800EF2D4 -/* 88398 800EF288 00000000 */ nop -/* 8839C 800EF28C 0C052219 */ jal sfx_play_sound -/* 883A0 800EF290 240400CA */ addiu $a0, $zero, 0xCA -/* 883A4 800EF294 3C028011 */ lui $v0, %hi(PopupNotDipping) -/* 883A8 800EF298 8042C198 */ lb $v0, %lo(PopupNotDipping)($v0) -/* 883AC 800EF29C 10400007 */ beqz $v0, .LPAL_800EF2BC -/* 883B0 800EF2A0 00000000 */ nop -/* 883B4 800EF2A4 3C028011 */ lui $v0, %hi(PopupNotBattle) -/* 883B8 800EF2A8 8042C18E */ lb $v0, %lo(PopupNotBattle)($v0) -/* 883BC 800EF2AC 14400298 */ bnez $v0, .LPAL_800EFD10 -/* 883C0 800EF2B0 2402FFF9 */ addiu $v0, $zero, -0x7 -/* 883C4 800EF2B4 0803BF44 */ j .LPAL_800EFD10 -/* 883C8 800EF2B8 2402FFFD */ addiu $v0, $zero, -0x3 -.LPAL_800EF2BC: -/* 883CC 800EF2BC 3C028011 */ lui $v0, %hi(PopupDipMode) -/* 883D0 800EF2C0 8042C199 */ lb $v0, %lo(PopupDipMode)($v0) -/* 883D4 800EF2C4 14400292 */ bnez $v0, .LPAL_800EFD10 -/* 883D8 800EF2C8 24020064 */ addiu $v0, $zero, 0x64 -/* 883DC 800EF2CC 0803BF44 */ j .LPAL_800EFD10 -/* 883E0 800EF2D0 2402001E */ addiu $v0, $zero, 0x1E -.LPAL_800EF2D4: -/* 883E4 800EF2D4 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 883E8 800EF2D8 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 883EC 800EF2DC 8C430318 */ lw $v1, 0x318($v0) -/* 883F0 800EF2E0 10600005 */ beqz $v1, .LPAL_800EF2F8 -/* 883F4 800EF2E4 24020001 */ addiu $v0, $zero, 0x1 -/* 883F8 800EF2E8 10620005 */ beq $v1, $v0, .LPAL_800EF300 -/* 883FC 800EF2EC 0000182D */ daddu $v1, $zero, $zero -/* 88400 800EF2F0 0803BCC1 */ j .LPAL_800EF304 -/* 88404 800EF2F4 00000000 */ nop -.LPAL_800EF2F8: -/* 88408 800EF2F8 0803BCC1 */ j .LPAL_800EF304 -/* 8840C 800EF2FC 24030001 */ addiu $v1, $zero, 0x1 -.LPAL_800EF300: -/* 88410 800EF300 24030002 */ addiu $v1, $zero, 0x2 -.LPAL_800EF304: -/* 88414 800EF304 3C028011 */ lui $v0, %hi(PopupNotBattle) -/* 88418 800EF308 8042C18E */ lb $v0, %lo(PopupNotBattle)($v0) -/* 8841C 800EF30C 10400282 */ beqz $v0, .LPAL_800EFD18 -/* 88420 800EF310 00000000 */ nop -/* 88424 800EF314 3C028007 */ lui $v0, %hi(gGameStatusPtr) -/* 88428 800EF318 8C4214AC */ lw $v0, %lo(gGameStatusPtr)($v0) -/* 8842C 800EF31C 8C420010 */ lw $v0, 0x10($v0) -/* 88430 800EF320 00431024 */ and $v0, $v0, $v1 -/* 88434 800EF324 1040027C */ beqz $v0, .LPAL_800EFD18 -/* 88438 800EF328 00000000 */ nop -/* 8843C 800EF32C 0C052219 */ jal sfx_play_sound -/* 88440 800EF330 240400CA */ addiu $a0, $zero, 0xCA -/* 88444 800EF334 0803BF44 */ j .LPAL_800EFD10 -/* 88448 800EF338 2402FFFA */ addiu $v0, $zero, -0x6 -.LPAL_800EF33C: -/* 8844C 800EF33C 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88450 800EF340 00A0302D */ daddu $a2, $a1, $zero -/* 88454 800EF344 3C048011 */ lui $a0, %hi(PopupMenu_EmptybarHID) -/* 88458 800EF348 8C84C15C */ lw $a0, %lo(PopupMenu_EmptybarHID)($a0) -/* 8845C 800EF34C 0C050EAB */ jal hud_element_set_tint -/* 88460 800EF350 00A0382D */ daddu $a3, $a1, $zero -/* 88464 800EF354 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88468 800EF358 00A0302D */ daddu $a2, $a1, $zero -/* 8846C 800EF35C 3C048011 */ lui $a0, %hi(PopupMenu_EntryIconHID) -/* 88470 800EF360 8C84C178 */ lw $a0, %lo(PopupMenu_EntryIconHID)($a0) -/* 88474 800EF364 0C050EAB */ jal hud_element_set_tint -/* 88478 800EF368 00A0382D */ daddu $a3, $a1, $zero -/* 8847C 800EF36C 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88480 800EF370 00A0302D */ daddu $a2, $a1, $zero -/* 88484 800EF374 3C108011 */ lui $s0, %hi(PopupMenu_CursorHID) -/* 88488 800EF378 2610C16C */ addiu $s0, $s0, %lo(PopupMenu_CursorHID) -/* 8848C 800EF37C 8E040000 */ lw $a0, 0x0($s0) -/* 88490 800EF380 0C050EAB */ jal hud_element_set_tint -/* 88494 800EF384 00A0382D */ daddu $a3, $a1, $zero -/* 88498 800EF388 240500A0 */ addiu $a1, $zero, 0xA0 -/* 8849C 800EF38C 00A0302D */ daddu $a2, $a1, $zero -/* 884A0 800EF390 3C048011 */ lui $a0, %hi(PopupMenu_UpArrowHID) -/* 884A4 800EF394 8C84C170 */ lw $a0, %lo(PopupMenu_UpArrowHID)($a0) -/* 884A8 800EF398 0C050EAB */ jal hud_element_set_tint -/* 884AC 800EF39C 00A0382D */ daddu $a3, $a1, $zero -/* 884B0 800EF3A0 240500A0 */ addiu $a1, $zero, 0xA0 -/* 884B4 800EF3A4 00A0302D */ daddu $a2, $a1, $zero -/* 884B8 800EF3A8 3C048011 */ lui $a0, %hi(PopupMenu_DownArrowHID) -/* 884BC 800EF3AC 8C84C174 */ lw $a0, %lo(PopupMenu_DownArrowHID)($a0) -/* 884C0 800EF3B0 0C050EAB */ jal hud_element_set_tint -/* 884C4 800EF3B4 00A0382D */ daddu $a3, $a1, $zero -/* 884C8 800EF3B8 8E040000 */ lw $a0, 0x0($s0) -/* 884CC 800EF3BC 3C058010 */ lui $a1, %hi(HES_HandPointer) -/* 884D0 800EF3C0 24A52CF0 */ addiu $a1, $a1, %lo(HES_HandPointer) -/* 884D4 800EF3C4 0C050CEB */ jal hud_element_set_script -/* 884D8 800EF3C8 00000000 */ nop -/* 884DC 800EF3CC 3C108011 */ lui $s0, %hi(gPopupMenu) -/* 884E0 800EF3D0 2610C19C */ addiu $s0, $s0, %lo(gPopupMenu) -/* 884E4 800EF3D4 8E020000 */ lw $v0, 0x0($s0) -/* 884E8 800EF3D8 8C430318 */ lw $v1, 0x318($v0) -/* 884EC 800EF3DC 24020003 */ addiu $v0, $zero, 0x3 -/* 884F0 800EF3E0 1462000C */ bne $v1, $v0, .LPAL_800EF414 -/* 884F4 800EF3E4 240500A0 */ addiu $a1, $zero, 0xA0 -/* 884F8 800EF3E8 00A0302D */ daddu $a2, $a1, $zero -/* 884FC 800EF3EC 3C048011 */ lui $a0, %hi(PopupMenu_TitleIconHID) -/* 88500 800EF3F0 8C84C160 */ lw $a0, %lo(PopupMenu_TitleIconHID)($a0) -/* 88504 800EF3F4 0C050EAB */ jal hud_element_set_tint -/* 88508 800EF3F8 00A0382D */ daddu $a3, $a1, $zero -/* 8850C 800EF3FC 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88510 800EF400 00A0302D */ daddu $a2, $a1, $zero -/* 88514 800EF404 3C048011 */ lui $a0, %hi(PopupMenu_TimesHID) -/* 88518 800EF408 8C84C164 */ lw $a0, %lo(PopupMenu_TimesHID)($a0) -/* 8851C 800EF40C 0C050EAB */ jal hud_element_set_tint -/* 88520 800EF410 00A0382D */ daddu $a3, $a1, $zero -.LPAL_800EF414: -/* 88524 800EF414 8E020000 */ lw $v0, 0x0($s0) -/* 88528 800EF418 8C420318 */ lw $v0, 0x318($v0) -/* 8852C 800EF41C 24110004 */ addiu $s1, $zero, 0x4 -/* 88530 800EF420 1451000C */ bne $v0, $s1, .LPAL_800EF454 -/* 88534 800EF424 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88538 800EF428 00A0302D */ daddu $a2, $a1, $zero -/* 8853C 800EF42C 3C048011 */ lui $a0, %hi(PopupMenu_TitleIconHID) -/* 88540 800EF430 8C84C160 */ lw $a0, %lo(PopupMenu_TitleIconHID)($a0) -/* 88544 800EF434 0C050EAB */ jal hud_element_set_tint -/* 88548 800EF438 00A0382D */ daddu $a3, $a1, $zero -/* 8854C 800EF43C 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88550 800EF440 00A0302D */ daddu $a2, $a1, $zero -/* 88554 800EF444 3C048011 */ lui $a0, %hi(PopupMenu_TimesHID) -/* 88558 800EF448 8C84C164 */ lw $a0, %lo(PopupMenu_TimesHID)($a0) -/* 8855C 800EF44C 0C050EAB */ jal hud_element_set_tint -/* 88560 800EF450 00A0382D */ daddu $a3, $a1, $zero -.LPAL_800EF454: -/* 88564 800EF454 8E020000 */ lw $v0, 0x0($s0) -/* 88568 800EF458 8C430318 */ lw $v1, 0x318($v0) -/* 8856C 800EF45C 24020001 */ addiu $v0, $zero, 0x1 -/* 88570 800EF460 10620003 */ beq $v1, $v0, .LPAL_800EF470 -/* 88574 800EF464 00000000 */ nop -/* 88578 800EF468 14710007 */ bne $v1, $s1, .LPAL_800EF488 -/* 8857C 800EF46C 00000000 */ nop -.LPAL_800EF470: -/* 88580 800EF470 3C048011 */ lui $a0, %hi(PopupMenu_PartnerLevelHID) -/* 88584 800EF474 8C84C168 */ lw $a0, %lo(PopupMenu_PartnerLevelHID)($a0) -/* 88588 800EF478 240500A0 */ addiu $a1, $zero, 0xA0 -/* 8858C 800EF47C 00A0302D */ daddu $a2, $a1, $zero -/* 88590 800EF480 0C050EAB */ jal hud_element_set_tint -/* 88594 800EF484 00A0382D */ daddu $a3, $a1, $zero -.LPAL_800EF488: -/* 88598 800EF488 3C108011 */ lui $s0, %hi(gPopupMenu) -/* 8859C 800EF48C 2610C19C */ addiu $s0, $s0, %lo(gPopupMenu) -/* 885A0 800EF490 8E020000 */ lw $v0, 0x0($s0) -/* 885A4 800EF494 8C430318 */ lw $v1, 0x318($v0) -/* 885A8 800EF498 24020005 */ addiu $v0, $zero, 0x5 -/* 885AC 800EF49C 14620006 */ bne $v1, $v0, .LPAL_800EF4B8 -/* 885B0 800EF4A0 240500A0 */ addiu $a1, $zero, 0xA0 -/* 885B4 800EF4A4 3C048011 */ lui $a0, %hi(PopupMenu_TitleIconHID) -/* 885B8 800EF4A8 8C84C160 */ lw $a0, %lo(PopupMenu_TitleIconHID)($a0) -/* 885BC 800EF4AC 00A0302D */ daddu $a2, $a1, $zero -/* 885C0 800EF4B0 0C050EAB */ jal hud_element_set_tint -/* 885C4 800EF4B4 00A0382D */ daddu $a3, $a1, $zero -.LPAL_800EF4B8: -/* 885C8 800EF4B8 3C048011 */ lui $a0, %hi(PopupMenu_SelectedIndex) -/* 885CC 800EF4BC 2484C148 */ addiu $a0, $a0, %lo(PopupMenu_SelectedIndex) -/* 885D0 800EF4C0 8C820000 */ lw $v0, 0x0($a0) -/* 885D4 800EF4C4 2403000D */ addiu $v1, $zero, 0xD -/* 885D8 800EF4C8 3C018011 */ lui $at, %hi(D_8010D690) -/* 885DC 800EF4CC A023C190 */ sb $v1, %lo(D_8010D690)($at) -/* 885E0 800EF4D0 94830002 */ lhu $v1, 0x2($a0) -/* 885E4 800EF4D4 8E040000 */ lw $a0, 0x0($s0) -/* 885E8 800EF4D8 0803BDA0 */ j .LPAL_800EF680 -/* 885EC 800EF4DC 24420001 */ addiu $v0, $v0, 0x1 -.LPAL_800EF4E0: -/* 885F0 800EF4E0 3C038011 */ lui $v1, %hi(PopupMenu_SelectedIndex) -/* 885F4 800EF4E4 2463C148 */ addiu $v1, $v1, %lo(PopupMenu_SelectedIndex) -/* 885F8 800EF4E8 8C620000 */ lw $v0, 0x0($v1) -/* 885FC 800EF4EC 94630002 */ lhu $v1, 0x2($v1) -/* 88600 800EF4F0 3C048011 */ lui $a0, %hi(gPopupMenu) -/* 88604 800EF4F4 8C84C19C */ lw $a0, %lo(gPopupMenu)($a0) -/* 88608 800EF4F8 0803BDA0 */ j .LPAL_800EF680 -/* 8860C 800EF4FC 24420001 */ addiu $v0, $v0, 0x1 -.LPAL_800EF500: -/* 88610 800EF500 3C028011 */ lui $v0, %hi(gPopupMenu) -/* 88614 800EF504 8C42C19C */ lw $v0, %lo(gPopupMenu)($v0) -/* 88618 800EF508 8C430318 */ lw $v1, 0x318($v0) -/* 8861C 800EF50C 2C62000E */ sltiu $v0, $v1, 0xE -/* 88620 800EF510 10400013 */ beqz $v0, .LPAL_800EF560 -/* 88624 800EF514 00031080 */ sll $v0, $v1, 2 -/* 88628 800EF518 3C018011 */ lui $at, %hi(jtbl_PAL_8010B250) -/* 8862C 800EF51C 00220821 */ addu $at, $at, $v0 -/* 88630 800EF520 8C22B250 */ lw $v0, %lo(jtbl_PAL_8010B250)($at) -/* 88634 800EF524 00400008 */ jr $v0 -/* 88638 800EF528 00000000 */ nop -.LPAL_800EF52C: -/* 8863C 800EF52C 2404000E */ addiu $a0, $zero, 0xE -/* 88640 800EF530 0C051A8B */ jal set_window_update -/* 88644 800EF534 24050002 */ addiu $a1, $zero, 0x2 -/* 88648 800EF538 0803BD56 */ j .LPAL_800EF558 -/* 8864C 800EF53C 24040013 */ addiu $a0, $zero, 0x13 -.LPAL_800EF540: -/* 88650 800EF540 2404000E */ addiu $a0, $zero, 0xE -/* 88654 800EF544 0C051A8B */ jal set_window_update -/* 88658 800EF548 24050002 */ addiu $a1, $zero, 0x2 -/* 8865C 800EF54C 0803BD56 */ j .LPAL_800EF558 -/* 88660 800EF550 24040013 */ addiu $a0, $zero, 0x13 -.LPAL_800EF554: -/* 88664 800EF554 2404000E */ addiu $a0, $zero, 0xE -.LPAL_800EF558: -/* 88668 800EF558 0C051A8B */ jal set_window_update -/* 8866C 800EF55C 24050002 */ addiu $a1, $zero, 0x2 -.LPAL_800EF560: -/* 88670 800EF560 0C03B762 */ jal destroy_popup_menu -/* 88674 800EF564 00000000 */ nop -/* 88678 800EF568 3C048011 */ lui $a0, %hi(gPopupWorker) -/* 8867C 800EF56C 8C84C194 */ lw $a0, %lo(gPopupWorker)($a0) -/* 88680 800EF570 0C048830 */ jal free_worker -/* 88684 800EF574 00000000 */ nop -/* 88688 800EF578 3C048011 */ lui $a0, %hi(gPopupMenu) -/* 8868C 800EF57C 8C84C19C */ lw $a0, %lo(gPopupMenu)($a0) -/* 88690 800EF580 2403FFFB */ addiu $v1, $zero, -0x5 -/* 88694 800EF584 3C018011 */ lui $at, %hi(gPopupState) -/* 88698 800EF588 AC23C140 */ sw $v1, %lo(gPopupState)($at) -/* 8869C 800EF58C 0803BD79 */ j .LPAL_800EF5E4 -/* 886A0 800EF590 240200FF */ addiu $v0, $zero, 0xFF -.LPAL_800EF594: -/* 886A4 800EF594 3C048011 */ lui $a0, %hi(gPopupWorker) -/* 886A8 800EF598 8C84C194 */ lw $a0, %lo(gPopupWorker)($a0) -/* 886AC 800EF59C 0C048830 */ jal free_worker -/* 886B0 800EF5A0 00000000 */ nop -/* 886B4 800EF5A4 3C048011 */ lui $a0, %hi(gPopupMenu) -/* 886B8 800EF5A8 8C84C19C */ lw $a0, %lo(gPopupMenu)($a0) -/* 886BC 800EF5AC 2403FFFB */ addiu $v1, $zero, -0x5 -/* 886C0 800EF5B0 3C018011 */ lui $at, %hi(gPopupState) -/* 886C4 800EF5B4 AC23C140 */ sw $v1, %lo(gPopupState)($at) -/* 886C8 800EF5B8 0803BD79 */ j .LPAL_800EF5E4 -/* 886CC 800EF5BC 240200FF */ addiu $v0, $zero, 0xFF -.LPAL_800EF5C0: -/* 886D0 800EF5C0 240200FF */ addiu $v0, $zero, 0xFF -/* 886D4 800EF5C4 3C048011 */ lui $a0, %hi(gPopupMenu) -/* 886D8 800EF5C8 8C84C19C */ lw $a0, %lo(gPopupMenu)($a0) -/* 886DC 800EF5CC 2403FFFE */ addiu $v1, $zero, -0x2 -/* 886E0 800EF5D0 0803BF4A */ j .LPAL_800EFD28 -/* 886E4 800EF5D4 A483032C */ sh $v1, 0x32C($a0) -.LPAL_800EF5D8: -/* 886E8 800EF5D8 240200FF */ addiu $v0, $zero, 0xFF -/* 886EC 800EF5DC 3C048011 */ lui $a0, %hi(gPopupMenu) -/* 886F0 800EF5E0 8C84C19C */ lw $a0, %lo(gPopupMenu)($a0) -.LPAL_800EF5E4: -/* 886F4 800EF5E4 0040182D */ daddu $v1, $v0, $zero -/* 886F8 800EF5E8 0803BF4A */ j .LPAL_800EFD28 -/* 886FC 800EF5EC A483032C */ sh $v1, 0x32C($a0) -.LPAL_800EF5F0: -/* 88700 800EF5F0 3C038011 */ lui $v1, %hi(D_8010D644) -/* 88704 800EF5F4 2463C144 */ addiu $v1, $v1, %lo(D_8010D644) -/* 88708 800EF5F8 8C620000 */ lw $v0, 0x0($v1) -/* 8870C 800EF5FC 2442FFFF */ addiu $v0, $v0, -0x1 -/* 88710 800EF600 144001C5 */ bnez $v0, .LPAL_800EFD18 -/* 88714 800EF604 AC620000 */ sw $v0, 0x0($v1) -/* 88718 800EF608 3C048011 */ lui $a0, %hi(PopupMenu_SelectedIndex) -/* 8871C 800EF60C 2484C148 */ addiu $a0, $a0, %lo(PopupMenu_SelectedIndex) -/* 88720 800EF610 8C820000 */ lw $v0, 0x0($a0) -/* 88724 800EF614 2403000B */ addiu $v1, $zero, 0xB -/* 88728 800EF618 3C018011 */ lui $at, %hi(gPopupState) -/* 8872C 800EF61C AC23C140 */ sw $v1, %lo(gPopupState)($at) -/* 88730 800EF620 94830002 */ lhu $v1, 0x2($a0) -/* 88734 800EF624 3C048011 */ lui $a0, %hi(gPopupMenu) -/* 88738 800EF628 8C84C19C */ lw $a0, %lo(gPopupMenu)($a0) -/* 8873C 800EF62C 0803BDA0 */ j .LPAL_800EF680 -/* 88740 800EF630 24420001 */ addiu $v0, $v0, 0x1 -.LPAL_800EF634: -/* 88744 800EF634 3C028011 */ lui $v0, %hi(D_8010D644) -/* 88748 800EF638 2442C144 */ addiu $v0, $v0, %lo(D_8010D644) -/* 8874C 800EF63C 8C430000 */ lw $v1, 0x0($v0) -/* 88750 800EF640 3C048011 */ lui $a0, %hi(D_8010D692) -/* 88754 800EF644 8084C192 */ lb $a0, %lo(D_8010D692)($a0) -/* 88758 800EF648 24630001 */ addiu $v1, $v1, 0x1 -/* 8875C 800EF64C AC430000 */ sw $v1, 0x0($v0) -/* 88760 800EF650 0064182A */ slt $v1, $v1, $a0 -/* 88764 800EF654 146001B0 */ bnez $v1, .LPAL_800EFD18 -/* 88768 800EF658 24030001 */ addiu $v1, $zero, 0x1 -/* 8876C 800EF65C 3C048011 */ lui $a0, %hi(PopupMenu_SelectedIndex) -/* 88770 800EF660 2484C148 */ addiu $a0, $a0, %lo(PopupMenu_SelectedIndex) -/* 88774 800EF664 8C820000 */ lw $v0, 0x0($a0) -/* 88778 800EF668 3C018011 */ lui $at, %hi(gPopupState) -/* 8877C 800EF66C AC23C140 */ sw $v1, %lo(gPopupState)($at) -/* 88780 800EF670 00431021 */ addu $v0, $v0, $v1 -/* 88784 800EF674 94830002 */ lhu $v1, 0x2($a0) -/* 88788 800EF678 3C048011 */ lui $a0, %hi(gPopupMenu) -/* 8878C 800EF67C 8C84C19C */ lw $a0, %lo(gPopupMenu)($a0) -.LPAL_800EF680: -/* 88790 800EF680 24630001 */ addiu $v1, $v1, 0x1 -/* 88794 800EF684 0803BF4A */ j .LPAL_800EFD28 -/* 88798 800EF688 A483032C */ sh $v1, 0x32C($a0) -.LPAL_800EF68C: -/* 8879C 800EF68C 0000102D */ daddu $v0, $zero, $zero -/* 887A0 800EF690 3C048011 */ lui $a0, %hi(gPopupMenu) -/* 887A4 800EF694 8C84C19C */ lw $a0, %lo(gPopupMenu)($a0) -/* 887A8 800EF698 2403001F */ addiu $v1, $zero, 0x1F -/* 887AC 800EF69C 3C018011 */ lui $at, %hi(gPopupState) -/* 887B0 800EF6A0 AC23C140 */ sw $v1, %lo(gPopupState)($at) -/* 887B4 800EF6A4 2403FFFF */ addiu $v1, $zero, -0x1 -/* 887B8 800EF6A8 0803BF4A */ j .LPAL_800EFD28 -/* 887BC 800EF6AC A483032C */ sh $v1, 0x32C($a0) -.LPAL_800EF6B0: -/* 887C0 800EF6B0 2404000E */ addiu $a0, $zero, 0xE -/* 887C4 800EF6B4 0C051A8B */ jal set_window_update -/* 887C8 800EF6B8 24050002 */ addiu $a1, $zero, 0x2 -/* 887CC 800EF6BC 24040013 */ addiu $a0, $zero, 0x13 -/* 887D0 800EF6C0 0C051A8B */ jal set_window_update -/* 887D4 800EF6C4 24050002 */ addiu $a1, $zero, 0x2 -/* 887D8 800EF6C8 3C028011 */ lui $v0, %hi(PopupNotBattle) -/* 887DC 800EF6CC 8042C18E */ lb $v0, %lo(PopupNotBattle)($v0) -/* 887E0 800EF6D0 50400005 */ beql $v0, $zero, .LPAL_800EF6E8 -/* 887E4 800EF6D4 3C04001D */ lui $a0, (0x1D006B >> 16) -/* 887E8 800EF6D8 24040015 */ addiu $a0, $zero, 0x15 -/* 887EC 800EF6DC 0C051A8B */ jal set_window_update -/* 887F0 800EF6E0 24050002 */ addiu $a1, $zero, 0x2 -/* 887F4 800EF6E4 3C04001D */ lui $a0, (0x1D006B >> 16) -.LPAL_800EF6E8: -/* 887F8 800EF6E8 3484006B */ ori $a0, $a0, (0x1D006B & 0xFFFF) -/* 887FC 800EF6EC 0C0493E5 */ jal get_msg_width -/* 88800 800EF6F0 0000282D */ daddu $a1, $zero, $zero -/* 88804 800EF6F4 24500020 */ addiu $s0, $v0, 0x20 -/* 88808 800EF6F8 3C04001D */ lui $a0, (0x1D006B >> 16) -/* 8880C 800EF6FC 0C0493F4 */ jal get_msg_lines -/* 88810 800EF700 3484006B */ ori $a0, $a0, (0x1D006B & 0xFFFF) -/* 88814 800EF704 24030001 */ addiu $v1, $zero, 0x1 -/* 88818 800EF708 14430002 */ bne $v0, $v1, .LPAL_800EF714 -/* 8881C 800EF70C 24130048 */ addiu $s3, $zero, 0x48 -/* 88820 800EF710 2413004C */ addiu $s3, $zero, 0x4C -.LPAL_800EF714: -/* 88824 800EF714 24040009 */ addiu $a0, $zero, 0x9 -/* 88828 800EF718 00102FC2 */ srl $a1, $s0, 31 -/* 8882C 800EF71C 02052821 */ addu $a1, $s0, $a1 -/* 88830 800EF720 00052843 */ sra $a1, $a1, 1 -/* 88834 800EF724 240200A0 */ addiu $v0, $zero, 0xA0 -/* 88838 800EF728 00452823 */ subu $a1, $v0, $a1 -/* 8883C 800EF72C 0260302D */ daddu $a2, $s3, $zero -/* 88840 800EF730 0200382D */ daddu $a3, $s0, $zero -/* 88844 800EF734 24020028 */ addiu $v0, $zero, 0x28 -/* 88848 800EF738 AFA20010 */ sw $v0, 0x10($sp) -/* 8884C 800EF73C 24020014 */ addiu $v0, $zero, 0x14 -/* 88850 800EF740 AFA20014 */ sw $v0, 0x14($sp) -/* 88854 800EF744 3C02800F */ lui $v0, %hi(popup_draw_already_have_partner) -/* 88858 800EF748 24421120 */ addiu $v0, $v0, %lo(popup_draw_already_have_partner) -/* 8885C 800EF74C AFA20018 */ sw $v0, 0x18($sp) -/* 88860 800EF750 2402FFFF */ addiu $v0, $zero, -0x1 -/* 88864 800EF754 AFA0001C */ sw $zero, 0x1C($sp) -/* 88868 800EF758 0C051A1E */ jal set_window_properties -/* 8886C 800EF75C AFA20020 */ sw $v0, 0x20($sp) -/* 88870 800EF760 24040009 */ addiu $a0, $zero, 0x9 -/* 88874 800EF764 0C051A8B */ jal set_window_update -/* 88878 800EF768 24050001 */ addiu $a1, $zero, 0x1 -/* 8887C 800EF76C 2403003C */ addiu $v1, $zero, 0x3C -/* 88880 800EF770 3C018011 */ lui $at, %hi(D_8010D644) -/* 88884 800EF774 AC23C144 */ sw $v1, %lo(D_8010D644)($at) -/* 88888 800EF778 24030020 */ addiu $v1, $zero, 0x20 -/* 8888C 800EF77C 3C018011 */ lui $at, %hi(gPopupState) -/* 88890 800EF780 AC23C140 */ sw $v1, %lo(gPopupState)($at) -/* 88894 800EF784 0803BF4A */ j .LPAL_800EFD28 -/* 88898 800EF788 0000102D */ daddu $v0, $zero, $zero -.LPAL_800EF78C: -/* 8889C 800EF78C 3C028007 */ lui $v0, %hi(gGameStatusPtr) -/* 888A0 800EF790 8C4214AC */ lw $v0, %lo(gGameStatusPtr)($v0) -/* 888A4 800EF794 8C420010 */ lw $v0, 0x10($v0) -/* 888A8 800EF798 3042C001 */ andi $v0, $v0, 0xC001 -/* 888AC 800EF79C 10400003 */ beqz $v0, .LPAL_800EF7AC -/* 888B0 800EF7A0 00000000 */ nop -/* 888B4 800EF7A4 3C018011 */ lui $at, %hi(D_8010D644) -/* 888B8 800EF7A8 AC20C144 */ sw $zero, %lo(D_8010D644)($at) -.LPAL_800EF7AC: -/* 888BC 800EF7AC 3C038011 */ lui $v1, %hi(D_8010D644) -/* 888C0 800EF7B0 2463C144 */ addiu $v1, $v1, %lo(D_8010D644) -/* 888C4 800EF7B4 8C620000 */ lw $v0, 0x0($v1) -/* 888C8 800EF7B8 10400004 */ beqz $v0, .LPAL_800EF7CC -/* 888CC 800EF7BC 2442FFFF */ addiu $v0, $v0, -0x1 -/* 888D0 800EF7C0 AC620000 */ sw $v0, 0x0($v1) -/* 888D4 800EF7C4 0803BF4A */ j .LPAL_800EFD28 -/* 888D8 800EF7C8 0000102D */ daddu $v0, $zero, $zero -.LPAL_800EF7CC: -/* 888DC 800EF7CC 24040009 */ addiu $a0, $zero, 0x9 -/* 888E0 800EF7D0 0C051A8B */ jal set_window_update -/* 888E4 800EF7D4 24050002 */ addiu $a1, $zero, 0x2 -/* 888E8 800EF7D8 2404000E */ addiu $a0, $zero, 0xE -/* 888EC 800EF7DC 0C051A8B */ jal set_window_update -/* 888F0 800EF7E0 24050001 */ addiu $a1, $zero, 0x1 -/* 888F4 800EF7E4 24040013 */ addiu $a0, $zero, 0x13 -/* 888F8 800EF7E8 0C051A8B */ jal set_window_update -/* 888FC 800EF7EC 24050001 */ addiu $a1, $zero, 0x1 -/* 88900 800EF7F0 3C028011 */ lui $v0, %hi(PopupNotBattle) -/* 88904 800EF7F4 8042C18E */ lb $v0, %lo(PopupNotBattle)($v0) -/* 88908 800EF7F8 10400003 */ beqz $v0, .LPAL_800EF808 -/* 8890C 800EF7FC 24040015 */ addiu $a0, $zero, 0x15 -/* 88910 800EF800 0C051A8B */ jal set_window_update -/* 88914 800EF804 24050001 */ addiu $a1, $zero, 0x1 -.LPAL_800EF808: -/* 88918 800EF808 3C038011 */ lui $v1, %hi(gPopupMenu) -/* 8891C 800EF80C 8C63C19C */ lw $v1, %lo(gPopupMenu)($v1) -/* 88920 800EF810 24020001 */ addiu $v0, $zero, 0x1 -/* 88924 800EF814 3C018011 */ lui $at, %hi(gPopupState) -/* 88928 800EF818 AC22C140 */ sw $v0, %lo(gPopupState)($at) -/* 8892C 800EF81C 0803BF46 */ j .LPAL_800EFD18 -/* 88930 800EF820 A460032C */ sh $zero, 0x32C($v1) -.LPAL_800EF824: -/* 88934 800EF824 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88938 800EF828 00A0302D */ daddu $a2, $a1, $zero -/* 8893C 800EF82C 3C048011 */ lui $a0, %hi(PopupMenu_EmptybarHID) -/* 88940 800EF830 8C84C15C */ lw $a0, %lo(PopupMenu_EmptybarHID)($a0) -/* 88944 800EF834 0C050EAB */ jal hud_element_set_tint -/* 88948 800EF838 00A0382D */ daddu $a3, $a1, $zero -/* 8894C 800EF83C 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88950 800EF840 00A0302D */ daddu $a2, $a1, $zero -/* 88954 800EF844 3C048011 */ lui $a0, %hi(PopupMenu_EntryIconHID) -/* 88958 800EF848 8C84C178 */ lw $a0, %lo(PopupMenu_EntryIconHID)($a0) -/* 8895C 800EF84C 0C050EAB */ jal hud_element_set_tint -/* 88960 800EF850 00A0382D */ daddu $a3, $a1, $zero -/* 88964 800EF854 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88968 800EF858 00A0302D */ daddu $a2, $a1, $zero -/* 8896C 800EF85C 3C108011 */ lui $s0, %hi(PopupMenu_CursorHID) -/* 88970 800EF860 2610C16C */ addiu $s0, $s0, %lo(PopupMenu_CursorHID) -/* 88974 800EF864 8E040000 */ lw $a0, 0x0($s0) -/* 88978 800EF868 0C050EAB */ jal hud_element_set_tint -/* 8897C 800EF86C 00A0382D */ daddu $a3, $a1, $zero -/* 88980 800EF870 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88984 800EF874 00A0302D */ daddu $a2, $a1, $zero -/* 88988 800EF878 3C048011 */ lui $a0, %hi(PopupMenu_UpArrowHID) -/* 8898C 800EF87C 8C84C170 */ lw $a0, %lo(PopupMenu_UpArrowHID)($a0) -/* 88990 800EF880 0C050EAB */ jal hud_element_set_tint -/* 88994 800EF884 00A0382D */ daddu $a3, $a1, $zero -/* 88998 800EF888 240500A0 */ addiu $a1, $zero, 0xA0 -/* 8899C 800EF88C 00A0302D */ daddu $a2, $a1, $zero -/* 889A0 800EF890 3C048011 */ lui $a0, %hi(PopupMenu_DownArrowHID) -/* 889A4 800EF894 8C84C174 */ lw $a0, %lo(PopupMenu_DownArrowHID)($a0) -/* 889A8 800EF898 0C050EAB */ jal hud_element_set_tint -/* 889AC 800EF89C 00A0382D */ daddu $a3, $a1, $zero -/* 889B0 800EF8A0 8E040000 */ lw $a0, 0x0($s0) -/* 889B4 800EF8A4 3C058010 */ lui $a1, %hi(HES_HandPointer) -/* 889B8 800EF8A8 24A52CF0 */ addiu $a1, $a1, %lo(HES_HandPointer) -/* 889BC 800EF8AC 0C050CEB */ jal hud_element_set_script -/* 889C0 800EF8B0 00000000 */ nop -/* 889C4 800EF8B4 3C108011 */ lui $s0, %hi(gPopupMenu) -/* 889C8 800EF8B8 2610C19C */ addiu $s0, $s0, %lo(gPopupMenu) -/* 889CC 800EF8BC 8E020000 */ lw $v0, 0x0($s0) -/* 889D0 800EF8C0 8C430318 */ lw $v1, 0x318($v0) -/* 889D4 800EF8C4 24020003 */ addiu $v0, $zero, 0x3 -/* 889D8 800EF8C8 1462000C */ bne $v1, $v0, .LPAL_800EF8FC -/* 889DC 800EF8CC 240500A0 */ addiu $a1, $zero, 0xA0 -/* 889E0 800EF8D0 00A0302D */ daddu $a2, $a1, $zero -/* 889E4 800EF8D4 3C048011 */ lui $a0, %hi(PopupMenu_TitleIconHID) -/* 889E8 800EF8D8 8C84C160 */ lw $a0, %lo(PopupMenu_TitleIconHID)($a0) -/* 889EC 800EF8DC 0C050EAB */ jal hud_element_set_tint -/* 889F0 800EF8E0 00A0382D */ daddu $a3, $a1, $zero -/* 889F4 800EF8E4 240500A0 */ addiu $a1, $zero, 0xA0 -/* 889F8 800EF8E8 00A0302D */ daddu $a2, $a1, $zero -/* 889FC 800EF8EC 3C048011 */ lui $a0, %hi(PopupMenu_TimesHID) -/* 88A00 800EF8F0 8C84C164 */ lw $a0, %lo(PopupMenu_TimesHID)($a0) -/* 88A04 800EF8F4 0C050EAB */ jal hud_element_set_tint -/* 88A08 800EF8F8 00A0382D */ daddu $a3, $a1, $zero -.LPAL_800EF8FC: -/* 88A0C 800EF8FC 8E020000 */ lw $v0, 0x0($s0) -/* 88A10 800EF900 8C420318 */ lw $v0, 0x318($v0) -/* 88A14 800EF904 24110004 */ addiu $s1, $zero, 0x4 -/* 88A18 800EF908 1451000C */ bne $v0, $s1, .LPAL_800EF93C -/* 88A1C 800EF90C 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88A20 800EF910 00A0302D */ daddu $a2, $a1, $zero -/* 88A24 800EF914 3C048011 */ lui $a0, %hi(PopupMenu_TitleIconHID) -/* 88A28 800EF918 8C84C160 */ lw $a0, %lo(PopupMenu_TitleIconHID)($a0) -/* 88A2C 800EF91C 0C050EAB */ jal hud_element_set_tint -/* 88A30 800EF920 00A0382D */ daddu $a3, $a1, $zero -/* 88A34 800EF924 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88A38 800EF928 00A0302D */ daddu $a2, $a1, $zero -/* 88A3C 800EF92C 3C048011 */ lui $a0, %hi(PopupMenu_TimesHID) -/* 88A40 800EF930 8C84C164 */ lw $a0, %lo(PopupMenu_TimesHID)($a0) -/* 88A44 800EF934 0C050EAB */ jal hud_element_set_tint -/* 88A48 800EF938 00A0382D */ daddu $a3, $a1, $zero -.LPAL_800EF93C: -/* 88A4C 800EF93C 8E020000 */ lw $v0, 0x0($s0) -/* 88A50 800EF940 8C430318 */ lw $v1, 0x318($v0) -/* 88A54 800EF944 24020001 */ addiu $v0, $zero, 0x1 -/* 88A58 800EF948 10620003 */ beq $v1, $v0, .LPAL_800EF958 -/* 88A5C 800EF94C 00000000 */ nop -/* 88A60 800EF950 14710007 */ bne $v1, $s1, .LPAL_800EF970 -/* 88A64 800EF954 00000000 */ nop -.LPAL_800EF958: -/* 88A68 800EF958 3C048011 */ lui $a0, %hi(PopupMenu_PartnerLevelHID) -/* 88A6C 800EF95C 8C84C168 */ lw $a0, %lo(PopupMenu_PartnerLevelHID)($a0) -/* 88A70 800EF960 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88A74 800EF964 00A0302D */ daddu $a2, $a1, $zero -/* 88A78 800EF968 0C050EAB */ jal hud_element_set_tint -/* 88A7C 800EF96C 00A0382D */ daddu $a3, $a1, $zero -.LPAL_800EF970: -/* 88A80 800EF970 3C108011 */ lui $s0, %hi(gPopupMenu) -/* 88A84 800EF974 2610C19C */ addiu $s0, $s0, %lo(gPopupMenu) -/* 88A88 800EF978 8E020000 */ lw $v0, 0x0($s0) -/* 88A8C 800EF97C 8C430318 */ lw $v1, 0x318($v0) -/* 88A90 800EF980 24020005 */ addiu $v0, $zero, 0x5 -/* 88A94 800EF984 14620006 */ bne $v1, $v0, .LPAL_800EF9A0 -/* 88A98 800EF988 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88A9C 800EF98C 3C048011 */ lui $a0, %hi(PopupMenu_TitleIconHID) -/* 88AA0 800EF990 8C84C160 */ lw $a0, %lo(PopupMenu_TitleIconHID)($a0) -/* 88AA4 800EF994 00A0302D */ daddu $a2, $a1, $zero -/* 88AA8 800EF998 0C050EAB */ jal hud_element_set_tint -/* 88AAC 800EF99C 00A0382D */ daddu $a3, $a1, $zero -.LPAL_800EF9A0: -/* 88AB0 800EF9A0 8E020000 */ lw $v0, 0x0($s0) -/* 88AB4 800EF9A4 8C430318 */ lw $v1, 0x318($v0) -/* 88AB8 800EF9A8 2C62000E */ sltiu $v0, $v1, 0xE -/* 88ABC 800EF9AC 10400013 */ beqz $v0, .LPAL_800EF9FC -/* 88AC0 800EF9B0 00031080 */ sll $v0, $v1, 2 -/* 88AC4 800EF9B4 3C018011 */ lui $at, %hi(jtbl_PAL_8010B288) -/* 88AC8 800EF9B8 00220821 */ addu $at, $at, $v0 -/* 88ACC 800EF9BC 8C22B288 */ lw $v0, %lo(jtbl_PAL_8010B288)($at) -/* 88AD0 800EF9C0 00400008 */ jr $v0 -/* 88AD4 800EF9C4 00000000 */ nop -.LPAL_800EF9C8: -/* 88AD8 800EF9C8 2404000E */ addiu $a0, $zero, 0xE -/* 88ADC 800EF9CC 0C051A8B */ jal set_window_update -/* 88AE0 800EF9D0 24050002 */ addiu $a1, $zero, 0x2 -/* 88AE4 800EF9D4 0803BE7D */ j .LPAL_800EF9F4 -/* 88AE8 800EF9D8 24040013 */ addiu $a0, $zero, 0x13 -.LPAL_800EF9DC: -/* 88AEC 800EF9DC 2404000E */ addiu $a0, $zero, 0xE -/* 88AF0 800EF9E0 0C051A8B */ jal set_window_update -/* 88AF4 800EF9E4 24050002 */ addiu $a1, $zero, 0x2 -/* 88AF8 800EF9E8 0803BE7D */ j .LPAL_800EF9F4 -/* 88AFC 800EF9EC 24040013 */ addiu $a0, $zero, 0x13 -.LPAL_800EF9F0: -/* 88B00 800EF9F0 2404000E */ addiu $a0, $zero, 0xE -.LPAL_800EF9F4: -/* 88B04 800EF9F4 0C051A8B */ jal set_window_update -/* 88B08 800EF9F8 24050002 */ addiu $a1, $zero, 0x2 -.LPAL_800EF9FC: -/* 88B0C 800EF9FC 3C11001D */ lui $s1, (0x1D0069 >> 16) -/* 88B10 800EFA00 2402000D */ addiu $v0, $zero, 0xD -/* 88B14 800EFA04 3C018011 */ lui $at, %hi(D_8010D690) -/* 88B18 800EFA08 A022C190 */ sb $v0, %lo(D_8010D690)($at) -/* 88B1C 800EFA0C 3C028011 */ lui $v0, %hi(PopupDipMode) -/* 88B20 800EFA10 8042C199 */ lb $v0, %lo(PopupDipMode)($v0) -/* 88B24 800EFA14 24120001 */ addiu $s2, $zero, 0x1 -/* 88B28 800EFA18 14520003 */ bne $v0, $s2, .LPAL_800EFA28 -/* 88B2C 800EFA1C 36310069 */ ori $s1, $s1, (0x1D0069 & 0xFFFF) -/* 88B30 800EFA20 3C11001D */ lui $s1, (0x1D0068 >> 16) -/* 88B34 800EFA24 36310068 */ ori $s1, $s1, (0x1D0068 & 0xFFFF) -.LPAL_800EFA28: -/* 88B38 800EFA28 0220202D */ daddu $a0, $s1, $zero -/* 88B3C 800EFA2C 0C0493E5 */ jal get_msg_width -/* 88B40 800EFA30 0000282D */ daddu $a1, $zero, $zero -/* 88B44 800EFA34 24500020 */ addiu $s0, $v0, 0x20 -/* 88B48 800EFA38 0C0493F4 */ jal get_msg_lines -/* 88B4C 800EFA3C 0220202D */ daddu $a0, $s1, $zero -/* 88B50 800EFA40 14520004 */ bne $v0, $s2, .LPAL_800EFA54 -/* 88B54 800EFA44 24030028 */ addiu $v1, $zero, 0x28 -/* 88B58 800EFA48 24030020 */ addiu $v1, $zero, 0x20 -/* 88B5C 800EFA4C 0803BE96 */ j .LPAL_800EFA58 -/* 88B60 800EFA50 2413004C */ addiu $s3, $zero, 0x4C -.LPAL_800EFA54: -/* 88B64 800EFA54 24130048 */ addiu $s3, $zero, 0x48 -.LPAL_800EFA58: -/* 88B68 800EFA58 24040015 */ addiu $a0, $zero, 0x15 -/* 88B6C 800EFA5C 00102FC2 */ srl $a1, $s0, 31 -/* 88B70 800EFA60 02052821 */ addu $a1, $s0, $a1 -/* 88B74 800EFA64 00052843 */ sra $a1, $a1, 1 -/* 88B78 800EFA68 240200A0 */ addiu $v0, $zero, 0xA0 -/* 88B7C 800EFA6C 00452823 */ subu $a1, $v0, $a1 -/* 88B80 800EFA70 0260302D */ daddu $a2, $s3, $zero -/* 88B84 800EFA74 0200382D */ daddu $a3, $s0, $zero -/* 88B88 800EFA78 24020013 */ addiu $v0, $zero, 0x13 -/* 88B8C 800EFA7C AFA20014 */ sw $v0, 0x14($sp) -/* 88B90 800EFA80 3C02800F */ lui $v0, %hi(func_800F4C1C) -/* 88B94 800EFA84 24421004 */ addiu $v0, $v0, %lo(func_800F4C1C) -/* 88B98 800EFA88 AFA20018 */ sw $v0, 0x18($sp) -/* 88B9C 800EFA8C 2402FFFF */ addiu $v0, $zero, -0x1 -/* 88BA0 800EFA90 AFA30010 */ sw $v1, 0x10($sp) -/* 88BA4 800EFA94 AFA0001C */ sw $zero, 0x1C($sp) -/* 88BA8 800EFA98 0C051A1E */ jal set_window_properties -/* 88BAC 800EFA9C AFA20020 */ sw $v0, 0x20($sp) -/* 88BB0 800EFAA0 24040015 */ addiu $a0, $zero, 0x15 -/* 88BB4 800EFAA4 0C051A8B */ jal set_window_update -/* 88BB8 800EFAA8 24050001 */ addiu $a1, $zero, 0x1 -/* 88BBC 800EFAAC 3C04001E */ lui $a0, (0x1E001D >> 16) -/* 88BC0 800EFAB0 3C058011 */ lui $a1, %hi(D_8010D6A4) -/* 88BC4 800EFAB4 24A5C1A4 */ addiu $a1, $a1, %lo(D_8010D6A4) -/* 88BC8 800EFAB8 0C049108 */ jal msg_get_printer_for_msg -/* 88BCC 800EFABC 3484001D */ ori $a0, $a0, (0x1E001D & 0xFFFF) -/* 88BD0 800EFAC0 0040202D */ daddu $a0, $v0, $zero -/* 88BD4 800EFAC4 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88BD8 800EFAC8 3C018011 */ lui $at, %hi(D_8010D6A0) -/* 88BDC 800EFACC AC24C1A0 */ sw $a0, %lo(D_8010D6A0)($at) -/* 88BE0 800EFAD0 0C049176 */ jal msg_printer_set_origin_pos -/* 88BE4 800EFAD4 24060090 */ addiu $a2, $zero, 0x90 -/* 88BE8 800EFAD8 0803BF44 */ j .LPAL_800EFD10 -/* 88BEC 800EFADC 24020065 */ addiu $v0, $zero, 0x65 -.LPAL_800EFAE0: -/* 88BF0 800EFAE0 3C108011 */ lui $s0, %hi(D_8010D6A4) -/* 88BF4 800EFAE4 8E10C1A4 */ lw $s0, %lo(D_8010D6A4)($s0) -/* 88BF8 800EFAE8 24020001 */ addiu $v0, $zero, 0x1 -/* 88BFC 800EFAEC 1602008A */ bne $s0, $v0, .LPAL_800EFD18 -/* 88C00 800EFAF0 24040015 */ addiu $a0, $zero, 0x15 -/* 88C04 800EFAF4 0C051A8B */ jal set_window_update -/* 88C08 800EFAF8 24050002 */ addiu $a1, $zero, 0x2 -/* 88C0C 800EFAFC 3C028011 */ lui $v0, %hi(D_8010D6A0) -/* 88C10 800EFB00 8C42C1A0 */ lw $v0, %lo(D_8010D6A0)($v0) -/* 88C14 800EFB04 904204E8 */ lbu $v0, 0x4E8($v0) -/* 88C18 800EFB08 50400081 */ beql $v0, $zero, .LPAL_800EFD10 -/* 88C1C 800EFB0C 24020066 */ addiu $v0, $zero, 0x66 -/* 88C20 800EFB10 1050007F */ beq $v0, $s0, .LPAL_800EFD10 -/* 88C24 800EFB14 24020067 */ addiu $v0, $zero, 0x67 -/* 88C28 800EFB18 0803BF46 */ j .LPAL_800EFD18 -/* 88C2C 800EFB1C 00000000 */ nop -.LPAL_800EFB20: -/* 88C30 800EFB20 0803BF44 */ j .LPAL_800EFD10 -/* 88C34 800EFB24 2402FFFD */ addiu $v0, $zero, -0x3 -.LPAL_800EFB28: -/* 88C38 800EFB28 240500FF */ addiu $a1, $zero, 0xFF -/* 88C3C 800EFB2C 00A0302D */ daddu $a2, $a1, $zero -/* 88C40 800EFB30 3C048011 */ lui $a0, %hi(PopupMenu_EmptybarHID) -/* 88C44 800EFB34 8C84C15C */ lw $a0, %lo(PopupMenu_EmptybarHID)($a0) -/* 88C48 800EFB38 0C050EAB */ jal hud_element_set_tint -/* 88C4C 800EFB3C 00A0382D */ daddu $a3, $a1, $zero -/* 88C50 800EFB40 240500FF */ addiu $a1, $zero, 0xFF -/* 88C54 800EFB44 00A0302D */ daddu $a2, $a1, $zero -/* 88C58 800EFB48 3C048011 */ lui $a0, %hi(PopupMenu_EntryIconHID) -/* 88C5C 800EFB4C 8C84C178 */ lw $a0, %lo(PopupMenu_EntryIconHID)($a0) -/* 88C60 800EFB50 0C050EAB */ jal hud_element_set_tint -/* 88C64 800EFB54 00A0382D */ daddu $a3, $a1, $zero -/* 88C68 800EFB58 240500FF */ addiu $a1, $zero, 0xFF -/* 88C6C 800EFB5C 00A0302D */ daddu $a2, $a1, $zero -/* 88C70 800EFB60 3C048011 */ lui $a0, %hi(PopupMenu_CursorHID) -/* 88C74 800EFB64 8C84C16C */ lw $a0, %lo(PopupMenu_CursorHID)($a0) -/* 88C78 800EFB68 0C050EAB */ jal hud_element_set_tint -/* 88C7C 800EFB6C 00A0382D */ daddu $a3, $a1, $zero -/* 88C80 800EFB70 240500FF */ addiu $a1, $zero, 0xFF -/* 88C84 800EFB74 00A0302D */ daddu $a2, $a1, $zero -/* 88C88 800EFB78 3C048011 */ lui $a0, %hi(PopupMenu_UpArrowHID) -/* 88C8C 800EFB7C 8C84C170 */ lw $a0, %lo(PopupMenu_UpArrowHID)($a0) -/* 88C90 800EFB80 0C050EAB */ jal hud_element_set_tint -/* 88C94 800EFB84 00A0382D */ daddu $a3, $a1, $zero -/* 88C98 800EFB88 240500FF */ addiu $a1, $zero, 0xFF -/* 88C9C 800EFB8C 00A0302D */ daddu $a2, $a1, $zero -/* 88CA0 800EFB90 3C048011 */ lui $a0, %hi(PopupMenu_DownArrowHID) -/* 88CA4 800EFB94 8C84C174 */ lw $a0, %lo(PopupMenu_DownArrowHID)($a0) -/* 88CA8 800EFB98 0C050EAB */ jal hud_element_set_tint -/* 88CAC 800EFB9C 00A0382D */ daddu $a3, $a1, $zero -/* 88CB0 800EFBA0 3C108011 */ lui $s0, %hi(gPopupMenu) -/* 88CB4 800EFBA4 2610C19C */ addiu $s0, $s0, %lo(gPopupMenu) -/* 88CB8 800EFBA8 8E020000 */ lw $v0, 0x0($s0) -/* 88CBC 800EFBAC 8C430318 */ lw $v1, 0x318($v0) -/* 88CC0 800EFBB0 24020003 */ addiu $v0, $zero, 0x3 -/* 88CC4 800EFBB4 1462000C */ bne $v1, $v0, .LPAL_800EFBE8 -/* 88CC8 800EFBB8 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88CCC 800EFBBC 00A0302D */ daddu $a2, $a1, $zero -/* 88CD0 800EFBC0 3C048011 */ lui $a0, %hi(PopupMenu_TitleIconHID) -/* 88CD4 800EFBC4 8C84C160 */ lw $a0, %lo(PopupMenu_TitleIconHID)($a0) -/* 88CD8 800EFBC8 0C050EAB */ jal hud_element_set_tint -/* 88CDC 800EFBCC 00A0382D */ daddu $a3, $a1, $zero -/* 88CE0 800EFBD0 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88CE4 800EFBD4 00A0302D */ daddu $a2, $a1, $zero -/* 88CE8 800EFBD8 3C048011 */ lui $a0, %hi(PopupMenu_TimesHID) -/* 88CEC 800EFBDC 8C84C164 */ lw $a0, %lo(PopupMenu_TimesHID)($a0) -/* 88CF0 800EFBE0 0C050EAB */ jal hud_element_set_tint -/* 88CF4 800EFBE4 00A0382D */ daddu $a3, $a1, $zero -.LPAL_800EFBE8: -/* 88CF8 800EFBE8 8E020000 */ lw $v0, 0x0($s0) -/* 88CFC 800EFBEC 8C420318 */ lw $v0, 0x318($v0) -/* 88D00 800EFBF0 24110004 */ addiu $s1, $zero, 0x4 -/* 88D04 800EFBF4 1451000C */ bne $v0, $s1, .LPAL_800EFC28 -/* 88D08 800EFBF8 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88D0C 800EFBFC 00A0302D */ daddu $a2, $a1, $zero -/* 88D10 800EFC00 3C048011 */ lui $a0, %hi(PopupMenu_TitleIconHID) -/* 88D14 800EFC04 8C84C160 */ lw $a0, %lo(PopupMenu_TitleIconHID)($a0) -/* 88D18 800EFC08 0C050EAB */ jal hud_element_set_tint -/* 88D1C 800EFC0C 00A0382D */ daddu $a3, $a1, $zero -/* 88D20 800EFC10 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88D24 800EFC14 00A0302D */ daddu $a2, $a1, $zero -/* 88D28 800EFC18 3C048011 */ lui $a0, %hi(PopupMenu_TimesHID) -/* 88D2C 800EFC1C 8C84C164 */ lw $a0, %lo(PopupMenu_TimesHID)($a0) -/* 88D30 800EFC20 0C050EAB */ jal hud_element_set_tint -/* 88D34 800EFC24 00A0382D */ daddu $a3, $a1, $zero -.LPAL_800EFC28: -/* 88D38 800EFC28 8E020000 */ lw $v0, 0x0($s0) -/* 88D3C 800EFC2C 8C430318 */ lw $v1, 0x318($v0) -/* 88D40 800EFC30 24020001 */ addiu $v0, $zero, 0x1 -/* 88D44 800EFC34 10620003 */ beq $v1, $v0, .LPAL_800EFC44 -/* 88D48 800EFC38 00000000 */ nop -/* 88D4C 800EFC3C 14710007 */ bne $v1, $s1, .LPAL_800EFC5C -/* 88D50 800EFC40 00000000 */ nop -.LPAL_800EFC44: -/* 88D54 800EFC44 3C048011 */ lui $a0, %hi(PopupMenu_PartnerLevelHID) -/* 88D58 800EFC48 8C84C168 */ lw $a0, %lo(PopupMenu_PartnerLevelHID)($a0) -/* 88D5C 800EFC4C 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88D60 800EFC50 00A0302D */ daddu $a2, $a1, $zero -/* 88D64 800EFC54 0C050EAB */ jal hud_element_set_tint -/* 88D68 800EFC58 00A0382D */ daddu $a3, $a1, $zero -.LPAL_800EFC5C: -/* 88D6C 800EFC5C 3C108011 */ lui $s0, %hi(gPopupMenu) -/* 88D70 800EFC60 2610C19C */ addiu $s0, $s0, %lo(gPopupMenu) -/* 88D74 800EFC64 8E020000 */ lw $v0, 0x0($s0) -/* 88D78 800EFC68 8C430318 */ lw $v1, 0x318($v0) -/* 88D7C 800EFC6C 24020005 */ addiu $v0, $zero, 0x5 -/* 88D80 800EFC70 14620006 */ bne $v1, $v0, .LPAL_800EFC8C -/* 88D84 800EFC74 240500A0 */ addiu $a1, $zero, 0xA0 -/* 88D88 800EFC78 3C048011 */ lui $a0, %hi(PopupMenu_TitleIconHID) -/* 88D8C 800EFC7C 8C84C160 */ lw $a0, %lo(PopupMenu_TitleIconHID)($a0) -/* 88D90 800EFC80 00A0302D */ daddu $a2, $a1, $zero -/* 88D94 800EFC84 0C050EAB */ jal hud_element_set_tint -/* 88D98 800EFC88 00A0382D */ daddu $a3, $a1, $zero -.LPAL_800EFC8C: -/* 88D9C 800EFC8C 3C048011 */ lui $a0, %hi(PopupMenu_CursorHID) -/* 88DA0 800EFC90 8C84C16C */ lw $a0, %lo(PopupMenu_CursorHID)($a0) -/* 88DA4 800EFC94 3C058010 */ lui $a1, %hi(HES_HandPointer) -/* 88DA8 800EFC98 24A52CF0 */ addiu $a1, $a1, %lo(HES_HandPointer) -/* 88DAC 800EFC9C 0C050CEB */ jal hud_element_set_script -/* 88DB0 800EFCA0 00000000 */ nop -/* 88DB4 800EFCA4 8E020000 */ lw $v0, 0x0($s0) -/* 88DB8 800EFCA8 8C430318 */ lw $v1, 0x318($v0) -/* 88DBC 800EFCAC 2C62000E */ sltiu $v0, $v1, 0xE -/* 88DC0 800EFCB0 10400013 */ beqz $v0, .LPAL_800EFD00 -/* 88DC4 800EFCB4 00031080 */ sll $v0, $v1, 2 -/* 88DC8 800EFCB8 3C018011 */ lui $at, %hi(jtbl_PAL_8010B2C0) -/* 88DCC 800EFCBC 00220821 */ addu $at, $at, $v0 -/* 88DD0 800EFCC0 8C22B2C0 */ lw $v0, %lo(jtbl_PAL_8010B2C0)($at) -/* 88DD4 800EFCC4 00400008 */ jr $v0 -/* 88DD8 800EFCC8 00000000 */ nop -.LPAL_800EFCCC: -/* 88DDC 800EFCCC 2404000E */ addiu $a0, $zero, 0xE -/* 88DE0 800EFCD0 0C051A8B */ jal set_window_update -/* 88DE4 800EFCD4 24050001 */ addiu $a1, $zero, 0x1 -/* 88DE8 800EFCD8 0803BF3E */ j .LPAL_800EFCF8 -/* 88DEC 800EFCDC 24040013 */ addiu $a0, $zero, 0x13 -.LPAL_800EFCE0: -/* 88DF0 800EFCE0 2404000E */ addiu $a0, $zero, 0xE -/* 88DF4 800EFCE4 0C051A8B */ jal set_window_update -/* 88DF8 800EFCE8 24050001 */ addiu $a1, $zero, 0x1 -/* 88DFC 800EFCEC 0803BF3E */ j .LPAL_800EFCF8 -/* 88E00 800EFCF0 24040013 */ addiu $a0, $zero, 0x13 -.LPAL_800EFCF4: -/* 88E04 800EFCF4 2404000E */ addiu $a0, $zero, 0xE -.LPAL_800EFCF8: -/* 88E08 800EFCF8 0C051A8B */ jal set_window_update -/* 88E0C 800EFCFC 24050001 */ addiu $a1, $zero, 0x1 -.LPAL_800EFD00: -/* 88E10 800EFD00 2402000A */ addiu $v0, $zero, 0xA -/* 88E14 800EFD04 3C018011 */ lui $at, %hi(D_8010D690) -/* 88E18 800EFD08 A022C190 */ sb $v0, %lo(D_8010D690)($at) -/* 88E1C 800EFD0C 24020001 */ addiu $v0, $zero, 0x1 -.LPAL_800EFD10: -/* 88E20 800EFD10 3C018011 */ lui $at, %hi(gPopupState) -/* 88E24 800EFD14 AC22C140 */ sw $v0, %lo(gPopupState)($at) -.LPAL_800EFD18: -/* 88E28 800EFD18 3C038011 */ lui $v1, %hi(gPopupMenu) -/* 88E2C 800EFD1C 8C63C19C */ lw $v1, %lo(gPopupMenu)($v1) -/* 88E30 800EFD20 0000102D */ daddu $v0, $zero, $zero -/* 88E34 800EFD24 A460032C */ sh $zero, 0x32C($v1) -.LPAL_800EFD28: -/* 88E38 800EFD28 8FBF0044 */ lw $ra, 0x44($sp) -/* 88E3C 800EFD2C 8FB60040 */ lw $s6, 0x40($sp) -/* 88E40 800EFD30 8FB5003C */ lw $s5, 0x3C($sp) -/* 88E44 800EFD34 8FB40038 */ lw $s4, 0x38($sp) -/* 88E48 800EFD38 8FB30034 */ lw $s3, 0x34($sp) -/* 88E4C 800EFD3C 8FB20030 */ lw $s2, 0x30($sp) -/* 88E50 800EFD40 8FB1002C */ lw $s1, 0x2C($sp) -/* 88E54 800EFD44 8FB00028 */ lw $s0, 0x28($sp) -/* 88E58 800EFD48 03E00008 */ jr $ra -/* 88E5C 800EFD4C 27BD0048 */ addiu $sp, $sp, 0x48 diff --git a/ver/pal/asm/nonmatchings/filemenu/filemenu_createfile/filemenu_draw_contents_choose_name.s b/ver/pal/asm/nonmatchings/filemenu/filemenu_createfile/filemenu_draw_contents_choose_name.s deleted file mode 100644 index 2cd1bfa1a7b..00000000000 --- a/ver/pal/asm/nonmatchings/filemenu/filemenu_createfile/filemenu_draw_contents_choose_name.s +++ /dev/null @@ -1,569 +0,0 @@ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ - -/* Generated by spimdisasm 1.11.1 */ - -glabel filemenu_draw_contents_choose_name -/* 174F1C 8024C4FC 27BDFF80 */ addiu $sp, $sp, -0x80 -/* 174F20 8024C500 0080402D */ daddu $t0, $a0, $zero -/* 174F24 8024C504 3C048016 */ lui $a0, %hi(gWindows+0x620) -/* 174F28 8024C508 24848F30 */ addiu $a0, $a0, %lo(gWindows+0x620) -/* 174F2C 8024C50C AFBF0074 */ sw $ra, 0x74($sp) -/* 174F30 8024C510 AFBE0070 */ sw $fp, 0x70($sp) -/* 174F34 8024C514 AFB7006C */ sw $s7, 0x6C($sp) -/* 174F38 8024C518 AFB60068 */ sw $s6, 0x68($sp) -/* 174F3C 8024C51C AFB50064 */ sw $s5, 0x64($sp) -/* 174F40 8024C520 AFB40060 */ sw $s4, 0x60($sp) -/* 174F44 8024C524 AFB3005C */ sw $s3, 0x5C($sp) -/* 174F48 8024C528 AFB20058 */ sw $s2, 0x58($sp) -/* 174F4C 8024C52C AFB10054 */ sw $s1, 0x54($sp) -/* 174F50 8024C530 AFB00050 */ sw $s0, 0x50($sp) -/* 174F54 8024C534 F7B40078 */ sdc1 $f20, 0x78($sp) -/* 174F58 8024C538 AFA50084 */ sw $a1, 0x84($sp) -/* 174F5C 8024C53C AFA60088 */ sw $a2, 0x88($sp) -/* 174F60 8024C540 AFA7008C */ sw $a3, 0x8C($sp) -/* 174F64 8024C544 90820000 */ lbu $v0, 0x0($a0) -/* 174F68 8024C548 30420008 */ andi $v0, $v0, 0x8 -/* 174F6C 8024C54C 10400147 */ beqz $v0, .Lfilemenu_8024CA6C -/* 174F70 8024C550 00000000 */ nop -/* 174F74 8024C554 8C830004 */ lw $v1, 0x4($a0) -/* 174F78 8024C558 3C028025 */ lui $v0, %hi(filemenu_update_change_layout) -/* 174F7C 8024C55C 2442C330 */ addiu $v0, $v0, %lo(filemenu_update_change_layout) -/* 174F80 8024C560 14620142 */ bne $v1, $v0, .Lfilemenu_8024CA6C -/* 174F84 8024C564 00000000 */ nop -/* 174F88 8024C568 9082001C */ lbu $v0, 0x1C($a0) -/* 174F8C 8024C56C 81090004 */ lb $t1, 0x4($t0) -/* 174F90 8024C570 00021040 */ sll $v0, $v0, 1 -/* 174F94 8024C574 AFA2001C */ sw $v0, 0x1C($sp) -/* 174F98 8024C578 39220001 */ xori $v0, $t1, 0x1 -/* 174F9C 8024C57C 8FAA001C */ lw $t2, 0x1C($sp) -/* 174FA0 8024C580 0002102B */ sltu $v0, $zero, $v0 -/* 174FA4 8024C584 AFA90020 */ sw $t1, 0x20($sp) -/* 174FA8 8024C588 AFA20024 */ sw $v0, 0x24($sp) -/* 174FAC 8024C58C 29420011 */ slti $v0, $t2, 0x11 -/* 174FB0 8024C590 14400002 */ bnez $v0, .Lfilemenu_8024C59C -/* 174FB4 8024C594 24090010 */ addiu $t1, $zero, 0x10 -/* 174FB8 8024C598 AFA9001C */ sw $t1, 0x1C($sp) -.Lfilemenu_8024C59C: -/* 174FBC 8024C59C 81020006 */ lb $v0, 0x6($t0) -/* 174FC0 8024C5A0 184000F9 */ blez $v0, .Lfilemenu_8024C988 -/* 174FC4 8024C5A4 0000F02D */ daddu $fp, $zero, $zero -/* 174FC8 8024C5A8 3C014080 */ lui $at, (0x40800000 >> 16) -/* 174FCC 8024C5AC 4481A000 */ mtc1 $at, $f20 -/* 174FD0 8024C5B0 AFA00040 */ sw $zero, 0x40($sp) -.Lfilemenu_8024C5B4: -/* 174FD4 8024C5B4 8FAA0040 */ lw $t2, 0x40($sp) -/* 174FD8 8024C5B8 AFA00018 */ sw $zero, 0x18($sp) -/* 174FDC 8024C5BC AFAA002C */ sw $t2, 0x2C($sp) -.Lfilemenu_8024C5C0: -/* 174FE0 8024C5C0 8FA9002C */ lw $t1, 0x2C($sp) -/* 174FE4 8024C5C4 8FAA0018 */ lw $t2, 0x18($sp) -/* 174FE8 8024C5C8 1540002F */ bnez $t2, .Lfilemenu_8024C688 -/* 174FEC 8024C5CC 25330004 */ addiu $s3, $t1, 0x4 -/* 174FF0 8024C5D0 C7A20084 */ lwc1 $f2, 0x84($sp) -/* 174FF4 8024C5D4 468010A0 */ cvt.s.w $f2, $f2 -/* 174FF8 8024C5D8 46141082 */ mul.s $f2, $f2, $f20 -/* 174FFC 8024C5DC 00000000 */ nop -/* 175000 8024C5E0 8FA90020 */ lw $t1, 0x20($sp) -/* 175004 8024C5E4 3C028009 */ lui $v0, %hi(gMainGfxPos) -/* 175008 8024C5E8 8C426A44 */ lw $v0, %lo(gMainGfxPos)($v0) -/* 17500C 8024C5EC 8FAA0088 */ lw $t2, 0x88($sp) -/* 175010 8024C5F0 0040302D */ daddu $a2, $v0, $zero -/* 175014 8024C5F4 24420008 */ addiu $v0, $v0, 0x8 -/* 175018 8024C5F8 01532821 */ addu $a1, $t2, $s3 -/* 17501C 8024C5FC 44850000 */ mtc1 $a1, $f0 -/* 175020 8024C600 00000000 */ nop -/* 175024 8024C604 46800020 */ cvt.s.w $f0, $f0 -/* 175028 8024C608 8FAA0084 */ lw $t2, 0x84($sp) -/* 17502C 8024C60C 46140002 */ mul.s $f0, $f0, $f20 -/* 175030 8024C610 00000000 */ nop -/* 175034 8024C614 AFA90028 */ sw $t1, 0x28($sp) -/* 175038 8024C618 3C018009 */ lui $at, %hi(gMainGfxPos) -/* 17503C 8024C61C AC226A44 */ sw $v0, %lo(gMainGfxPos)($at) -/* 175040 8024C620 4600118D */ trunc.w.s $f6, $f2 -/* 175044 8024C624 44043000 */ mfc1 $a0, $f6 -/* 175048 8024C628 00000000 */ nop -/* 17504C 8024C62C 30840FFF */ andi $a0, $a0, 0xFFF -/* 175050 8024C630 00042300 */ sll $a0, $a0, 12 -/* 175054 8024C634 4600018D */ trunc.w.s $f6, $f0 -/* 175058 8024C638 44023000 */ mfc1 $v0, $f6 -/* 17505C 8024C63C 8FA9008C */ lw $t1, 0x8C($sp) -/* 175060 8024C640 30420FFF */ andi $v0, $v0, 0xFFF -/* 175064 8024C644 01491821 */ addu $v1, $t2, $t1 -/* 175068 8024C648 44831000 */ mtc1 $v1, $f2 -/* 17506C 8024C64C 00000000 */ nop -/* 175070 8024C650 468010A0 */ cvt.s.w $f2, $f2 -/* 175074 8024C654 3C0AED00 */ lui $t2, (0xED000000 >> 16) -/* 175078 8024C658 004A1025 */ or $v0, $v0, $t2 -/* 17507C 8024C65C 46141082 */ mul.s $f2, $f2, $f20 -/* 175080 8024C660 00000000 */ nop -/* 175084 8024C664 8FA9001C */ lw $t1, 0x1C($sp) -/* 175088 8024C668 00A92821 */ addu $a1, $a1, $t1 -/* 17508C 8024C66C 44850000 */ mtc1 $a1, $f0 -/* 175090 8024C670 00000000 */ nop -/* 175094 8024C674 46800020 */ cvt.s.w $f0, $f0 -/* 175098 8024C678 46140002 */ mul.s $f0, $f0, $f20 -/* 17509C 8024C67C 00000000 */ nop -/* 1750A0 8024C680 080931D0 */ j .Lfilemenu_8024C740 -/* 1750A4 8024C684 00822025 */ or $a0, $a0, $v0 -.Lfilemenu_8024C688: -/* 1750A8 8024C688 C7A20084 */ lwc1 $f2, 0x84($sp) -/* 1750AC 8024C68C 468010A0 */ cvt.s.w $f2, $f2 -/* 1750B0 8024C690 46141082 */ mul.s $f2, $f2, $f20 -/* 1750B4 8024C694 00000000 */ nop -/* 1750B8 8024C698 3C038009 */ lui $v1, %hi(gMainGfxPos) -/* 1750BC 8024C69C 8C636A44 */ lw $v1, %lo(gMainGfxPos)($v1) -/* 1750C0 8024C6A0 8FAA0024 */ lw $t2, 0x24($sp) -/* 1750C4 8024C6A4 8FA90088 */ lw $t1, 0x88($sp) -/* 1750C8 8024C6A8 0060302D */ daddu $a2, $v1, $zero -/* 1750CC 8024C6AC 24630008 */ addiu $v1, $v1, 0x8 -/* 1750D0 8024C6B0 AFAA0028 */ sw $t2, 0x28($sp) -/* 1750D4 8024C6B4 8FAA001C */ lw $t2, 0x1C($sp) -/* 1750D8 8024C6B8 01332821 */ addu $a1, $t1, $s3 -/* 1750DC 8024C6BC 3C018009 */ lui $at, %hi(gMainGfxPos) -/* 1750E0 8024C6C0 AC236A44 */ sw $v1, %lo(gMainGfxPos)($at) -/* 1750E4 8024C6C4 00AA1021 */ addu $v0, $a1, $t2 -/* 1750E8 8024C6C8 44820000 */ mtc1 $v0, $f0 -/* 1750EC 8024C6CC 00000000 */ nop -/* 1750F0 8024C6D0 46800020 */ cvt.s.w $f0, $f0 -/* 1750F4 8024C6D4 24A50010 */ addiu $a1, $a1, 0x10 -/* 1750F8 8024C6D8 46140002 */ mul.s $f0, $f0, $f20 -/* 1750FC 8024C6DC 00000000 */ nop -/* 175100 8024C6E0 8FAA0084 */ lw $t2, 0x84($sp) -/* 175104 8024C6E4 4600118D */ trunc.w.s $f6, $f2 -/* 175108 8024C6E8 44043000 */ mfc1 $a0, $f6 -/* 17510C 8024C6EC 00000000 */ nop -/* 175110 8024C6F0 30840FFF */ andi $a0, $a0, 0xFFF -/* 175114 8024C6F4 00042300 */ sll $a0, $a0, 12 -/* 175118 8024C6F8 4600018D */ trunc.w.s $f6, $f0 -/* 17511C 8024C6FC 44023000 */ mfc1 $v0, $f6 -/* 175120 8024C700 44850000 */ mtc1 $a1, $f0 -/* 175124 8024C704 00000000 */ nop -/* 175128 8024C708 46800020 */ cvt.s.w $f0, $f0 -/* 17512C 8024C70C 46140002 */ mul.s $f0, $f0, $f20 -/* 175130 8024C710 00000000 */ nop -/* 175134 8024C714 8FA9008C */ lw $t1, 0x8C($sp) -/* 175138 8024C718 30420FFF */ andi $v0, $v0, 0xFFF -/* 17513C 8024C71C 01491821 */ addu $v1, $t2, $t1 -/* 175140 8024C720 44831000 */ mtc1 $v1, $f2 -/* 175144 8024C724 00000000 */ nop -/* 175148 8024C728 468010A0 */ cvt.s.w $f2, $f2 -/* 17514C 8024C72C 46141082 */ mul.s $f2, $f2, $f20 -/* 175150 8024C730 00000000 */ nop -/* 175154 8024C734 3C0AED00 */ lui $t2, (0xED000000 >> 16) -/* 175158 8024C738 004A1025 */ or $v0, $v0, $t2 -/* 17515C 8024C73C 00822025 */ or $a0, $a0, $v0 -.Lfilemenu_8024C740: -/* 175160 8024C740 ACC40000 */ sw $a0, 0x0($a2) -/* 175164 8024C744 4600118D */ trunc.w.s $f6, $f2 -/* 175168 8024C748 44033000 */ mfc1 $v1, $f6 -/* 17516C 8024C74C 00000000 */ nop -/* 175170 8024C750 30630FFF */ andi $v1, $v1, 0xFFF -/* 175174 8024C754 00031B00 */ sll $v1, $v1, 12 -/* 175178 8024C758 4600018D */ trunc.w.s $f6, $f0 -/* 17517C 8024C75C 44023000 */ mfc1 $v0, $f6 -/* 175180 8024C760 00000000 */ nop -/* 175184 8024C764 30420FFF */ andi $v0, $v0, 0xFFF -/* 175188 8024C768 00621825 */ or $v1, $v1, $v0 -/* 17518C 8024C76C ACC30004 */ sw $v1, 0x4($a2) -/* 175190 8024C770 81020005 */ lb $v0, 0x5($t0) -/* 175194 8024C774 91030005 */ lbu $v1, 0x5($t0) -/* 175198 8024C778 18400076 */ blez $v0, .Lfilemenu_8024C954 -/* 17519C 8024C77C 0000B02D */ daddu $s6, $zero, $zero -/* 1751A0 8024C780 AFA0003C */ sw $zero, 0x3C($sp) -/* 1751A4 8024C784 00031E00 */ sll $v1, $v1, 24 -.Lfilemenu_8024C788: -/* 1751A8 8024C788 8FA90028 */ lw $t1, 0x28($sp) -/* 1751AC 8024C78C 00031E03 */ sra $v1, $v1, 24 -/* 1751B0 8024C790 01230018 */ mult $t1, $v1 -/* 1751B4 8024C794 00005812 */ mflo $t3 -/* 1751B8 8024C798 81020006 */ lb $v0, 0x6($t0) -/* 1751BC 8024C79C 00000000 */ nop -/* 1751C0 8024C7A0 01620018 */ mult $t3, $v0 -/* 1751C4 8024C7A4 00001012 */ mflo $v0 -/* 1751C8 8024C7A8 00000000 */ nop -/* 1751CC 8024C7AC 00000000 */ nop -/* 1751D0 8024C7B0 007E0018 */ mult $v1, $fp -/* 1751D4 8024C7B4 00001812 */ mflo $v1 -/* 1751D8 8024C7B8 00431021 */ addu $v0, $v0, $v1 -/* 1751DC 8024C7BC 8D030008 */ lw $v1, 0x8($t0) -/* 1751E0 8024C7C0 00561021 */ addu $v0, $v0, $s6 -/* 1751E4 8024C7C4 00621821 */ addu $v1, $v1, $v0 -/* 1751E8 8024C7C8 90720000 */ lbu $s2, 0x0($v1) -/* 1751EC 8024C7CC 240200F7 */ addiu $v0, $zero, 0xF7 -/* 1751F0 8024C7D0 12420057 */ beq $s2, $v0, .Lfilemenu_8024C930 -/* 1751F4 8024C7D4 00000000 */ nop -/* 1751F8 8024C7D8 81020001 */ lb $v0, 0x1($t0) -/* 1751FC 8024C7DC 16C20007 */ bne $s6, $v0, .Lfilemenu_8024C7FC -/* 175200 8024C7E0 0000A02D */ daddu $s4, $zero, $zero -/* 175204 8024C7E4 81020002 */ lb $v0, 0x2($t0) -/* 175208 8024C7E8 17C20005 */ bne $fp, $v0, .Lfilemenu_8024C800 -/* 17520C 8024C7EC 2417000A */ addiu $s7, $zero, 0xA -/* 175210 8024C7F0 24140008 */ addiu $s4, $zero, 0x8 -/* 175214 8024C7F4 08093200 */ j .Lfilemenu_8024C800 -/* 175218 8024C7F8 0000B82D */ daddu $s7, $zero, $zero -.Lfilemenu_8024C7FC: -/* 17521C 8024C7FC 2417000A */ addiu $s7, $zero, 0xA -.Lfilemenu_8024C800: -/* 175220 8024C800 0240202D */ daddu $a0, $s2, $zero -/* 175224 8024C804 0000282D */ daddu $a1, $zero, $zero -/* 175228 8024C808 8FA9003C */ lw $t1, 0x3C($sp) -/* 17522C 8024C80C 8FAA002C */ lw $t2, 0x2C($sp) -/* 175230 8024C810 3C073F80 */ lui $a3, (0x3F800000 >> 16) -/* 175234 8024C814 00A0302D */ daddu $a2, $a1, $zero -/* 175238 8024C818 AFA00010 */ sw $zero, 0x10($sp) -/* 17523C 8024C81C AFA80048 */ sw $t0, 0x48($sp) -/* 175240 8024C820 2530000C */ addiu $s0, $t1, 0xC -/* 175244 8024C824 25530005 */ addiu $s3, $t2, 0x5 -/* 175248 8024C828 24090001 */ addiu $t1, $zero, 0x1 -/* 17524C 8024C82C 0C0491E9 */ jal msg_get_print_char_width -/* 175250 8024C830 AFA90014 */ sw $t1, 0x14($sp) -/* 175254 8024C834 0040A82D */ daddu $s5, $v0, $zero -/* 175258 8024C838 2642FF5E */ addiu $v0, $s2, -0xA2 -/* 17525C 8024C83C 2C42004E */ sltiu $v0, $v0, 0x4E -/* 175260 8024C840 8FA80048 */ lw $t0, 0x48($sp) -/* 175264 8024C844 10400012 */ beqz $v0, .Lfilemenu_8024C890 -/* 175268 8024C848 0240882D */ daddu $s1, $s2, $zero -/* 17526C 8024C84C 2A4200C6 */ slti $v0, $s2, 0xC6 -/* 175270 8024C850 14400010 */ bnez $v0, .Lfilemenu_8024C894 -/* 175274 8024C854 240A00C6 */ addiu $t2, $zero, 0xC6 -/* 175278 8024C858 8FAA0084 */ lw $t2, 0x84($sp) -/* 17527C 8024C85C 3C048025 */ lui $a0, %hi(filemenu_createfile_HIDs+0x8) -/* 175280 8024C860 8C8417C8 */ lw $a0, %lo(filemenu_createfile_HIDs+0x8)($a0) -/* 175284 8024C864 8FA90088 */ lw $t1, 0x88($sp) -/* 175288 8024C868 01502821 */ addu $a1, $t2, $s0 -/* 17528C 8024C86C 24A50016 */ addiu $a1, $a1, 0x16 -/* 175290 8024C870 01333021 */ addu $a2, $t1, $s3 -/* 175294 8024C874 0C050D4D */ jal hud_element_set_render_pos -/* 175298 8024C878 24C60008 */ addiu $a2, $a2, 0x8 -/* 17529C 8024C87C 3C048025 */ lui $a0, %hi(filemenu_createfile_HIDs+0x8) -/* 1752A0 8024C880 8C8417C8 */ lw $a0, %lo(filemenu_createfile_HIDs+0x8)($a0) -/* 1752A4 8024C884 0C050CE4 */ jal hud_element_draw_without_clipping -/* 1752A8 8024C888 0000A02D */ daddu $s4, $zero, $zero -/* 1752AC 8024C88C 8FA80048 */ lw $t0, 0x48($sp) -.Lfilemenu_8024C890: -/* 1752B0 8024C890 240A00C6 */ addiu $t2, $zero, 0xC6 -.Lfilemenu_8024C894: -/* 1752B4 8024C894 522A0001 */ beql $s1, $t2, .Lfilemenu_8024C89C -/* 1752B8 8024C898 2610FFFF */ addiu $s0, $s0, -0x1 -.Lfilemenu_8024C89C: -/* 1752BC 8024C89C 240900C9 */ addiu $t1, $zero, 0xC9 -/* 1752C0 8024C8A0 52290001 */ beql $s1, $t1, .Lfilemenu_8024C8A8 -/* 1752C4 8024C8A4 26100010 */ addiu $s0, $s0, 0x10 -.Lfilemenu_8024C8A8: -/* 1752C8 8024C8A8 240A00CA */ addiu $t2, $zero, 0xCA -/* 1752CC 8024C8AC 162A0007 */ bne $s1, $t2, .Lfilemenu_8024C8CC -/* 1752D0 8024C8B0 240A00C6 */ addiu $t2, $zero, 0xC6 -/* 1752D4 8024C8B4 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 1752D8 8024C8B8 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 1752DC 8024C8BC 24090001 */ addiu $t1, $zero, 0x1 -/* 1752E0 8024C8C0 54490002 */ bnel $v0, $t1, .Lfilemenu_8024C8CC -/* 1752E4 8024C8C4 26100008 */ addiu $s0, $s0, 0x8 -/* 1752E8 8024C8C8 26100004 */ addiu $s0, $s0, 0x4 -.Lfilemenu_8024C8CC: -/* 1752EC 8024C8CC 122A0005 */ beq $s1, $t2, .Lfilemenu_8024C8E4 -/* 1752F0 8024C8D0 240900CA */ addiu $t1, $zero, 0xCA -/* 1752F4 8024C8D4 12290003 */ beq $s1, $t1, .Lfilemenu_8024C8E4 -/* 1752F8 8024C8D8 240A00C9 */ addiu $t2, $zero, 0xC9 -/* 1752FC 8024C8DC 162A0004 */ bne $s1, $t2, .Lfilemenu_8024C8F0 -/* 175300 8024C8E0 0240202D */ daddu $a0, $s2, $zero -.Lfilemenu_8024C8E4: -/* 175304 8024C8E4 2673FFFF */ addiu $s3, $s3, -0x1 -/* 175308 8024C8E8 24150009 */ addiu $s5, $zero, 0x9 -/* 17530C 8024C8EC 0240202D */ daddu $a0, $s2, $zero -.Lfilemenu_8024C8F0: -/* 175310 8024C8F0 24050008 */ addiu $a1, $zero, 0x8 -/* 175314 8024C8F4 00B52823 */ subu $a1, $a1, $s5 -/* 175318 8024C8F8 00051FC2 */ srl $v1, $a1, 31 -/* 17531C 8024C8FC 00A32821 */ addu $a1, $a1, $v1 -/* 175320 8024C900 00052843 */ sra $a1, $a1, 1 -/* 175324 8024C904 8FA90084 */ lw $t1, 0x84($sp) -/* 175328 8024C908 8FAA0088 */ lw $t2, 0x88($sp) -/* 17532C 8024C90C 240700FF */ addiu $a3, $zero, 0xFF -/* 175330 8024C910 AFB70010 */ sw $s7, 0x10($sp) -/* 175334 8024C914 AFB40014 */ sw $s4, 0x14($sp) -/* 175338 8024C918 AFA80048 */ sw $t0, 0x48($sp) -/* 17533C 8024C91C 01301021 */ addu $v0, $t1, $s0 -/* 175340 8024C920 00452821 */ addu $a1, $v0, $a1 -/* 175344 8024C924 0C0939C7 */ jal filemenu_draw_message -/* 175348 8024C928 01533021 */ addu $a2, $t2, $s3 -/* 17534C 8024C92C 8FA80048 */ lw $t0, 0x48($sp) -.Lfilemenu_8024C930: -/* 175350 8024C930 8FA9003C */ lw $t1, 0x3C($sp) -/* 175354 8024C934 26D60001 */ addiu $s6, $s6, 0x1 -/* 175358 8024C938 25290013 */ addiu $t1, $t1, 0x13 -/* 17535C 8024C93C AFA9003C */ sw $t1, 0x3C($sp) -/* 175360 8024C940 81020005 */ lb $v0, 0x5($t0) -/* 175364 8024C944 91030005 */ lbu $v1, 0x5($t0) -/* 175368 8024C948 02C2102A */ slt $v0, $s6, $v0 -/* 17536C 8024C94C 5440FF8E */ bnel $v0, $zero, .Lfilemenu_8024C788 -/* 175370 8024C950 00031E00 */ sll $v1, $v1, 24 -.Lfilemenu_8024C954: -/* 175374 8024C954 8FAA0018 */ lw $t2, 0x18($sp) -/* 175378 8024C958 254A0001 */ addiu $t2, $t2, 0x1 -/* 17537C 8024C95C 29420002 */ slti $v0, $t2, 0x2 -/* 175380 8024C960 1440FF17 */ bnez $v0, .Lfilemenu_8024C5C0 -/* 175384 8024C964 AFAA0018 */ sw $t2, 0x18($sp) -/* 175388 8024C968 8FA90040 */ lw $t1, 0x40($sp) -/* 17538C 8024C96C 2529000F */ addiu $t1, $t1, 0xF -/* 175390 8024C970 AFA90040 */ sw $t1, 0x40($sp) -/* 175394 8024C974 81020006 */ lb $v0, 0x6($t0) -/* 175398 8024C978 27DE0001 */ addiu $fp, $fp, 0x1 -/* 17539C 8024C97C 03C2102A */ slt $v0, $fp, $v0 -/* 1753A0 8024C980 1440FF0C */ bnez $v0, .Lfilemenu_8024C5B4 -/* 1753A4 8024C984 00000000 */ nop -.Lfilemenu_8024C988: -/* 1753A8 8024C988 3C038009 */ lui $v1, %hi(gMainGfxPos) -/* 1753AC 8024C98C 24636A44 */ addiu $v1, $v1, %lo(gMainGfxPos) -/* 1753B0 8024C990 C7A20084 */ lwc1 $f2, 0x84($sp) -/* 1753B4 8024C994 468010A0 */ cvt.s.w $f2, $f2 -/* 1753B8 8024C998 3C014080 */ lui $at, (0x40800000 >> 16) -/* 1753BC 8024C99C 44812000 */ mtc1 $at, $f4 -/* 1753C0 8024C9A0 C7A00088 */ lwc1 $f0, 0x88($sp) -/* 1753C4 8024C9A4 46800020 */ cvt.s.w $f0, $f0 -/* 1753C8 8024C9A8 46041082 */ mul.s $f2, $f2, $f4 -/* 1753CC 8024C9AC 00000000 */ nop -/* 1753D0 8024C9B0 8C620000 */ lw $v0, 0x0($v1) -/* 1753D4 8024C9B4 3C05ED00 */ lui $a1, (0xED000000 >> 16) -/* 1753D8 8024C9B8 0040302D */ daddu $a2, $v0, $zero -/* 1753DC 8024C9BC 24420008 */ addiu $v0, $v0, 0x8 -/* 1753E0 8024C9C0 46040002 */ mul.s $f0, $f0, $f4 -/* 1753E4 8024C9C4 00000000 */ nop -/* 1753E8 8024C9C8 AC620000 */ sw $v0, 0x0($v1) -/* 1753EC 8024C9CC 8FAA0084 */ lw $t2, 0x84($sp) -/* 1753F0 8024C9D0 4600118D */ trunc.w.s $f6, $f2 -/* 1753F4 8024C9D4 44043000 */ mfc1 $a0, $f6 -/* 1753F8 8024C9D8 00000000 */ nop -/* 1753FC 8024C9DC 30840FFF */ andi $a0, $a0, 0xFFF -/* 175400 8024C9E0 00042300 */ sll $a0, $a0, 12 -/* 175404 8024C9E4 4600018D */ trunc.w.s $f6, $f0 -/* 175408 8024C9E8 44033000 */ mfc1 $v1, $f6 -/* 17540C 8024C9EC 00000000 */ nop -/* 175410 8024C9F0 30630FFF */ andi $v1, $v1, 0xFFF -/* 175414 8024C9F4 8FA9008C */ lw $t1, 0x8C($sp) -/* 175418 8024C9F8 00651825 */ or $v1, $v1, $a1 -/* 17541C 8024C9FC 01491021 */ addu $v0, $t2, $t1 -/* 175420 8024CA00 44821000 */ mtc1 $v0, $f2 -/* 175424 8024CA04 00000000 */ nop -/* 175428 8024CA08 468010A0 */ cvt.s.w $f2, $f2 -/* 17542C 8024CA0C 46041082 */ mul.s $f2, $f2, $f4 -/* 175430 8024CA10 00000000 */ nop -/* 175434 8024CA14 8FA20090 */ lw $v0, 0x90($sp) -/* 175438 8024CA18 8FAA0088 */ lw $t2, 0x88($sp) -/* 17543C 8024CA1C 00832025 */ or $a0, $a0, $v1 -/* 175440 8024CA20 01421021 */ addu $v0, $t2, $v0 -/* 175444 8024CA24 44820000 */ mtc1 $v0, $f0 -/* 175448 8024CA28 00000000 */ nop -/* 17544C 8024CA2C 46800020 */ cvt.s.w $f0, $f0 -/* 175450 8024CA30 46040002 */ mul.s $f0, $f0, $f4 -/* 175454 8024CA34 00000000 */ nop -/* 175458 8024CA38 ACC40000 */ sw $a0, 0x0($a2) -/* 17545C 8024CA3C 4600118D */ trunc.w.s $f6, $f2 -/* 175460 8024CA40 44023000 */ mfc1 $v0, $f6 -/* 175464 8024CA44 00000000 */ nop -/* 175468 8024CA48 30420FFF */ andi $v0, $v0, 0xFFF -/* 17546C 8024CA4C 00021300 */ sll $v0, $v0, 12 -/* 175470 8024CA50 4600018D */ trunc.w.s $f6, $f0 -/* 175474 8024CA54 44033000 */ mfc1 $v1, $f6 -/* 175478 8024CA58 00000000 */ nop -/* 17547C 8024CA5C 30630FFF */ andi $v1, $v1, 0xFFF -/* 175480 8024CA60 00431025 */ or $v0, $v0, $v1 -/* 175484 8024CA64 08093321 */ j .Lfilemenu_8024CC84 -/* 175488 8024CA68 ACC20004 */ sw $v0, 0x4($a2) -.Lfilemenu_8024CA6C: -/* 17548C 8024CA6C 81020005 */ lb $v0, 0x5($t0) -/* 175490 8024CA70 18400084 */ blez $v0, .Lfilemenu_8024CC84 -/* 175494 8024CA74 0000B02D */ daddu $s6, $zero, $zero -/* 175498 8024CA78 AFA00038 */ sw $zero, 0x38($sp) -.Lfilemenu_8024CA7C: -/* 17549C 8024CA7C 81020006 */ lb $v0, 0x6($t0) -/* 1754A0 8024CA80 91040006 */ lbu $a0, 0x6($t0) -/* 1754A4 8024CA84 18400077 */ blez $v0, .Lfilemenu_8024CC64 -/* 1754A8 8024CA88 0000F02D */ daddu $fp, $zero, $zero -/* 1754AC 8024CA8C 8FAA0038 */ lw $t2, 0x38($sp) -/* 1754B0 8024CA90 AFA00034 */ sw $zero, 0x34($sp) -/* 1754B4 8024CA94 AFAA0030 */ sw $t2, 0x30($sp) -.Lfilemenu_8024CA98: -/* 1754B8 8024CA98 81020004 */ lb $v0, 0x4($t0) -/* 1754BC 8024CA9C 81030005 */ lb $v1, 0x5($t0) -/* 1754C0 8024CAA0 00430018 */ mult $v0, $v1 -/* 1754C4 8024CAA4 00005812 */ mflo $t3 -/* 1754C8 8024CAA8 00041600 */ sll $v0, $a0, 24 -/* 1754CC 8024CAAC 00021603 */ sra $v0, $v0, 24 -/* 1754D0 8024CAB0 01620018 */ mult $t3, $v0 -/* 1754D4 8024CAB4 00001012 */ mflo $v0 -/* 1754D8 8024CAB8 00000000 */ nop -/* 1754DC 8024CABC 00000000 */ nop -/* 1754E0 8024CAC0 007E0018 */ mult $v1, $fp -/* 1754E4 8024CAC4 00001812 */ mflo $v1 -/* 1754E8 8024CAC8 00431021 */ addu $v0, $v0, $v1 -/* 1754EC 8024CACC 8D030008 */ lw $v1, 0x8($t0) -/* 1754F0 8024CAD0 00561021 */ addu $v0, $v0, $s6 -/* 1754F4 8024CAD4 00621821 */ addu $v1, $v1, $v0 -/* 1754F8 8024CAD8 90720000 */ lbu $s2, 0x0($v1) -/* 1754FC 8024CADC 240200F7 */ addiu $v0, $zero, 0xF7 -/* 175500 8024CAE0 12420057 */ beq $s2, $v0, .Lfilemenu_8024CC40 -/* 175504 8024CAE4 00000000 */ nop -/* 175508 8024CAE8 81020001 */ lb $v0, 0x1($t0) -/* 17550C 8024CAEC 16C20007 */ bne $s6, $v0, .Lfilemenu_8024CB0C -/* 175510 8024CAF0 0000A02D */ daddu $s4, $zero, $zero -/* 175514 8024CAF4 81020002 */ lb $v0, 0x2($t0) -/* 175518 8024CAF8 17C20005 */ bne $fp, $v0, .Lfilemenu_8024CB10 -/* 17551C 8024CAFC 2417000A */ addiu $s7, $zero, 0xA -/* 175520 8024CB00 24140008 */ addiu $s4, $zero, 0x8 -/* 175524 8024CB04 080932C4 */ j .Lfilemenu_8024CB10 -/* 175528 8024CB08 0000B82D */ daddu $s7, $zero, $zero -.Lfilemenu_8024CB0C: -/* 17552C 8024CB0C 2417000A */ addiu $s7, $zero, 0xA -.Lfilemenu_8024CB10: -/* 175530 8024CB10 0240202D */ daddu $a0, $s2, $zero -/* 175534 8024CB14 0000282D */ daddu $a1, $zero, $zero -/* 175538 8024CB18 8FA90030 */ lw $t1, 0x30($sp) -/* 17553C 8024CB1C 8FAA0034 */ lw $t2, 0x34($sp) -/* 175540 8024CB20 3C073F80 */ lui $a3, (0x3F800000 >> 16) -/* 175544 8024CB24 00A0302D */ daddu $a2, $a1, $zero -/* 175548 8024CB28 AFA00010 */ sw $zero, 0x10($sp) -/* 17554C 8024CB2C AFA80048 */ sw $t0, 0x48($sp) -/* 175550 8024CB30 2530000C */ addiu $s0, $t1, 0xC -/* 175554 8024CB34 25530005 */ addiu $s3, $t2, 0x5 -/* 175558 8024CB38 24090001 */ addiu $t1, $zero, 0x1 -/* 17555C 8024CB3C 0C0491E9 */ jal msg_get_print_char_width -/* 175560 8024CB40 AFA90014 */ sw $t1, 0x14($sp) -/* 175564 8024CB44 0040A82D */ daddu $s5, $v0, $zero -/* 175568 8024CB48 2642FF5E */ addiu $v0, $s2, -0xA2 -/* 17556C 8024CB4C 2C42004E */ sltiu $v0, $v0, 0x4E -/* 175570 8024CB50 8FA80048 */ lw $t0, 0x48($sp) -/* 175574 8024CB54 10400012 */ beqz $v0, .Lfilemenu_8024CBA0 -/* 175578 8024CB58 0240882D */ daddu $s1, $s2, $zero -/* 17557C 8024CB5C 2A4200C6 */ slti $v0, $s2, 0xC6 -/* 175580 8024CB60 14400010 */ bnez $v0, .Lfilemenu_8024CBA4 -/* 175584 8024CB64 240A00C6 */ addiu $t2, $zero, 0xC6 -/* 175588 8024CB68 8FAA0084 */ lw $t2, 0x84($sp) -/* 17558C 8024CB6C 3C048025 */ lui $a0, %hi(filemenu_createfile_HIDs+0x8) -/* 175590 8024CB70 8C8417C8 */ lw $a0, %lo(filemenu_createfile_HIDs+0x8)($a0) -/* 175594 8024CB74 8FA90088 */ lw $t1, 0x88($sp) -/* 175598 8024CB78 01502821 */ addu $a1, $t2, $s0 -/* 17559C 8024CB7C 24A50016 */ addiu $a1, $a1, 0x16 -/* 1755A0 8024CB80 01333021 */ addu $a2, $t1, $s3 -/* 1755A4 8024CB84 0C050D4D */ jal hud_element_set_render_pos -/* 1755A8 8024CB88 24C60008 */ addiu $a2, $a2, 0x8 -/* 1755AC 8024CB8C 3C048025 */ lui $a0, %hi(filemenu_createfile_HIDs+0x8) -/* 1755B0 8024CB90 8C8417C8 */ lw $a0, %lo(filemenu_createfile_HIDs+0x8)($a0) -/* 1755B4 8024CB94 0C050CE4 */ jal hud_element_draw_without_clipping -/* 1755B8 8024CB98 0000A02D */ daddu $s4, $zero, $zero -/* 1755BC 8024CB9C 8FA80048 */ lw $t0, 0x48($sp) -.Lfilemenu_8024CBA0: -/* 1755C0 8024CBA0 240A00C6 */ addiu $t2, $zero, 0xC6 -.Lfilemenu_8024CBA4: -/* 1755C4 8024CBA4 522A0001 */ beql $s1, $t2, .Lfilemenu_8024CBAC -/* 1755C8 8024CBA8 2610FFFF */ addiu $s0, $s0, -0x1 -.Lfilemenu_8024CBAC: -/* 1755CC 8024CBAC 240900C9 */ addiu $t1, $zero, 0xC9 -/* 1755D0 8024CBB0 52290001 */ beql $s1, $t1, .Lfilemenu_8024CBB8 -/* 1755D4 8024CBB4 26100010 */ addiu $s0, $s0, 0x10 -.Lfilemenu_8024CBB8: -/* 1755D8 8024CBB8 240A00CA */ addiu $t2, $zero, 0xCA -/* 1755DC 8024CBBC 162A0007 */ bne $s1, $t2, .Lfilemenu_8024CBDC -/* 1755E0 8024CBC0 240A00C6 */ addiu $t2, $zero, 0xC6 -/* 1755E4 8024CBC4 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 1755E8 8024CBC8 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 1755EC 8024CBCC 24090001 */ addiu $t1, $zero, 0x1 -/* 1755F0 8024CBD0 54490002 */ bnel $v0, $t1, .Lfilemenu_8024CBDC -/* 1755F4 8024CBD4 26100008 */ addiu $s0, $s0, 0x8 -/* 1755F8 8024CBD8 26100004 */ addiu $s0, $s0, 0x4 -.Lfilemenu_8024CBDC: -/* 1755FC 8024CBDC 122A0005 */ beq $s1, $t2, .Lfilemenu_8024CBF4 -/* 175600 8024CBE0 240900CA */ addiu $t1, $zero, 0xCA -/* 175604 8024CBE4 12290003 */ beq $s1, $t1, .Lfilemenu_8024CBF4 -/* 175608 8024CBE8 240A00C9 */ addiu $t2, $zero, 0xC9 -/* 17560C 8024CBEC 162A0004 */ bne $s1, $t2, .Lfilemenu_8024CC00 -/* 175610 8024CBF0 0240202D */ daddu $a0, $s2, $zero -.Lfilemenu_8024CBF4: -/* 175614 8024CBF4 2673FFFF */ addiu $s3, $s3, -0x1 -/* 175618 8024CBF8 24150009 */ addiu $s5, $zero, 0x9 -/* 17561C 8024CBFC 0240202D */ daddu $a0, $s2, $zero -.Lfilemenu_8024CC00: -/* 175620 8024CC00 24050008 */ addiu $a1, $zero, 0x8 -/* 175624 8024CC04 00B52823 */ subu $a1, $a1, $s5 -/* 175628 8024CC08 00051FC2 */ srl $v1, $a1, 31 -/* 17562C 8024CC0C 00A32821 */ addu $a1, $a1, $v1 -/* 175630 8024CC10 00052843 */ sra $a1, $a1, 1 -/* 175634 8024CC14 8FA90084 */ lw $t1, 0x84($sp) -/* 175638 8024CC18 8FAA0088 */ lw $t2, 0x88($sp) -/* 17563C 8024CC1C 240700FF */ addiu $a3, $zero, 0xFF -/* 175640 8024CC20 AFB70010 */ sw $s7, 0x10($sp) -/* 175644 8024CC24 AFB40014 */ sw $s4, 0x14($sp) -/* 175648 8024CC28 AFA80048 */ sw $t0, 0x48($sp) -/* 17564C 8024CC2C 01301021 */ addu $v0, $t1, $s0 -/* 175650 8024CC30 00452821 */ addu $a1, $v0, $a1 -/* 175654 8024CC34 0C0939C7 */ jal filemenu_draw_message -/* 175658 8024CC38 01533021 */ addu $a2, $t2, $s3 -/* 17565C 8024CC3C 8FA80048 */ lw $t0, 0x48($sp) -.Lfilemenu_8024CC40: -/* 175660 8024CC40 8FA90034 */ lw $t1, 0x34($sp) -/* 175664 8024CC44 27DE0001 */ addiu $fp, $fp, 0x1 -/* 175668 8024CC48 2529000F */ addiu $t1, $t1, 0xF -/* 17566C 8024CC4C AFA90034 */ sw $t1, 0x34($sp) -/* 175670 8024CC50 81020006 */ lb $v0, 0x6($t0) -/* 175674 8024CC54 91040006 */ lbu $a0, 0x6($t0) -/* 175678 8024CC58 03C2102A */ slt $v0, $fp, $v0 -/* 17567C 8024CC5C 1440FF8E */ bnez $v0, .Lfilemenu_8024CA98 -/* 175680 8024CC60 00000000 */ nop -.Lfilemenu_8024CC64: -/* 175684 8024CC64 8FAA0038 */ lw $t2, 0x38($sp) -/* 175688 8024CC68 254A0013 */ addiu $t2, $t2, 0x13 -/* 17568C 8024CC6C AFAA0038 */ sw $t2, 0x38($sp) -/* 175690 8024CC70 81020005 */ lb $v0, 0x5($t0) -/* 175694 8024CC74 26D60001 */ addiu $s6, $s6, 0x1 -/* 175698 8024CC78 02C2102A */ slt $v0, $s6, $v0 -/* 17569C 8024CC7C 1440FF7F */ bnez $v0, .Lfilemenu_8024CA7C -/* 1756A0 8024CC80 00000000 */ nop -.Lfilemenu_8024CC84: -/* 1756A4 8024CC84 3C038025 */ lui $v1, %hi(filemenu_currentMenu) -/* 1756A8 8024CC88 80631758 */ lb $v1, %lo(filemenu_currentMenu)($v1) -/* 1756AC 8024CC8C 24020003 */ addiu $v0, $zero, 0x3 -/* 1756B0 8024CC90 1462001D */ bne $v1, $v0, .Lfilemenu_8024CD08 -/* 1756B4 8024CC94 3C03000F */ lui $v1, (0xF0000 >> 16) -/* 1756B8 8024CC98 3C028025 */ lui $v0, %hi(filemenu_heldButtons) -/* 1756BC 8024CC9C 8C42174C */ lw $v0, %lo(filemenu_heldButtons)($v0) -/* 1756C0 8024CCA0 00431024 */ and $v0, $v0, $v1 -/* 1756C4 8024CCA4 10400003 */ beqz $v0, .Lfilemenu_8024CCB4 -/* 1756C8 8024CCA8 2402FFFC */ addiu $v0, $zero, -0x4 -/* 1756CC 8024CCAC 3C018025 */ lui $at, %hi(D_8024A18C) -/* 1756D0 8024CCB0 AC22F0AC */ sw $v0, %lo(D_8024A18C)($at) -.Lfilemenu_8024CCB4: -/* 1756D4 8024CCB4 3C038025 */ lui $v1, %hi(D_8024A18C) -/* 1756D8 8024CCB8 2463F0AC */ addiu $v1, $v1, %lo(D_8024A18C) -/* 1756DC 8024CCBC 8C620000 */ lw $v0, 0x0($v1) -/* 1756E0 8024CCC0 24040031 */ addiu $a0, $zero, 0x31 -/* 1756E4 8024CCC4 24420001 */ addiu $v0, $v0, 0x1 -/* 1756E8 8024CCC8 AC620000 */ sw $v0, 0x0($v1) -/* 1756EC 8024CCCC 81020001 */ lb $v0, 0x1($t0) -/* 1756F0 8024CCD0 8FA90084 */ lw $t1, 0x84($sp) -/* 1756F4 8024CCD4 8FAA0088 */ lw $t2, 0x88($sp) -/* 1756F8 8024CCD8 00022880 */ sll $a1, $v0, 2 -/* 1756FC 8024CCDC 00A22821 */ addu $a1, $a1, $v0 -/* 175700 8024CCE0 00052880 */ sll $a1, $a1, 2 -/* 175704 8024CCE4 00A22823 */ subu $a1, $a1, $v0 -/* 175708 8024CCE8 24A50002 */ addiu $a1, $a1, 0x2 -/* 17570C 8024CCEC 81020002 */ lb $v0, 0x2($t0) -/* 175710 8024CCF0 01252821 */ addu $a1, $t1, $a1 -/* 175714 8024CCF4 00023100 */ sll $a2, $v0, 4 -/* 175718 8024CCF8 00C23023 */ subu $a2, $a2, $v0 -/* 17571C 8024CCFC 24C6000D */ addiu $a2, $a2, 0xD -/* 175720 8024CD00 0C091B44 */ jal filemenu_set_cursor_goal_pos -/* 175724 8024CD04 01463021 */ addu $a2, $t2, $a2 -.Lfilemenu_8024CD08: -/* 175728 8024CD08 8FBF0074 */ lw $ra, 0x74($sp) -/* 17572C 8024CD0C 8FBE0070 */ lw $fp, 0x70($sp) -/* 175730 8024CD10 8FB7006C */ lw $s7, 0x6C($sp) -/* 175734 8024CD14 8FB60068 */ lw $s6, 0x68($sp) -/* 175738 8024CD18 8FB50064 */ lw $s5, 0x64($sp) -/* 17573C 8024CD1C 8FB40060 */ lw $s4, 0x60($sp) -/* 175740 8024CD20 8FB3005C */ lw $s3, 0x5C($sp) -/* 175744 8024CD24 8FB20058 */ lw $s2, 0x58($sp) -/* 175748 8024CD28 8FB10054 */ lw $s1, 0x54($sp) -/* 17574C 8024CD2C 8FB00050 */ lw $s0, 0x50($sp) -/* 175750 8024CD30 D7B40078 */ ldc1 $f20, 0x78($sp) -/* 175754 8024CD34 03E00008 */ jr $ra -/* 175758 8024CD38 27BD0080 */ addiu $sp, $sp, 0x80 diff --git a/ver/pal/asm/nonmatchings/filemenu/filemenu_main/filemenu_main_handle_input.s b/ver/pal/asm/nonmatchings/filemenu/filemenu_main/filemenu_main_handle_input.s deleted file mode 100644 index e6b47c2725a..00000000000 --- a/ver/pal/asm/nonmatchings/filemenu/filemenu_main/filemenu_main_handle_input.s +++ /dev/null @@ -1,1106 +0,0 @@ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ - -/* Generated by spimdisasm 1.11.1 */ - -glabel filemenu_main_handle_input -/* 1725D4 80249BB4 27BDFFD8 */ addiu $sp, $sp, -0x28 -/* 1725D8 80249BB8 AFB3001C */ sw $s3, 0x1C($sp) -/* 1725DC 80249BBC 0080982D */ daddu $s3, $a0, $zero -/* 1725E0 80249BC0 3C028025 */ lui $v0, %hi(filemenu_heldButtons) -/* 1725E4 80249BC4 8C42174C */ lw $v0, %lo(filemenu_heldButtons)($v0) -/* 1725E8 80249BC8 3C030004 */ lui $v1, (0x40000 >> 16) -/* 1725EC 80249BCC AFBF0020 */ sw $ra, 0x20($sp) -/* 1725F0 80249BD0 AFB20018 */ sw $s2, 0x18($sp) -/* 1725F4 80249BD4 AFB10014 */ sw $s1, 0x14($sp) -/* 1725F8 80249BD8 AFB00010 */ sw $s0, 0x10($sp) -/* 1725FC 80249BDC 92670003 */ lbu $a3, 0x3($s3) -/* 172600 80249BE0 00431024 */ and $v0, $v0, $v1 -/* 172604 80249BE4 1040001C */ beqz $v0, .Lfilemenu_80249C58 -/* 172608 80249BE8 00000000 */ nop -.Lfilemenu_80249BEC: -/* 17260C 80249BEC 92620001 */ lbu $v0, 0x1($s3) -/* 172610 80249BF0 2442FFFF */ addiu $v0, $v0, -0x1 -/* 172614 80249BF4 A2620001 */ sb $v0, 0x1($s3) -/* 172618 80249BF8 00021600 */ sll $v0, $v0, 24 -/* 17261C 80249BFC 00022E03 */ sra $a1, $v0, 24 -/* 172620 80249C00 04A20015 */ bltzl $a1, .Lfilemenu_80249C58 -/* 172624 80249C04 A2600001 */ sb $zero, 0x1($s3) -/* 172628 80249C08 82620004 */ lb $v0, 0x4($s3) -/* 17262C 80249C0C 82630005 */ lb $v1, 0x5($s3) -/* 172630 80249C10 00430018 */ mult $v0, $v1 -/* 172634 80249C14 00006012 */ mflo $t4 -/* 172638 80249C18 82620006 */ lb $v0, 0x6($s3) -/* 17263C 80249C1C 00000000 */ nop -/* 172640 80249C20 01820018 */ mult $t4, $v0 -/* 172644 80249C24 00002012 */ mflo $a0 -/* 172648 80249C28 82620002 */ lb $v0, 0x2($s3) -/* 17264C 80249C2C 00000000 */ nop -/* 172650 80249C30 00620018 */ mult $v1, $v0 -/* 172654 80249C34 00001812 */ mflo $v1 -/* 172658 80249C38 00831021 */ addu $v0, $a0, $v1 -/* 17265C 80249C3C 00451021 */ addu $v0, $v0, $a1 -/* 172660 80249C40 8E630008 */ lw $v1, 0x8($s3) -/* 172664 80249C44 92640003 */ lbu $a0, 0x3($s3) -/* 172668 80249C48 00621821 */ addu $v1, $v1, $v0 -/* 17266C 80249C4C 90620000 */ lbu $v0, 0x0($v1) -/* 172670 80249C50 1082FFE6 */ beq $a0, $v0, .Lfilemenu_80249BEC -/* 172674 80249C54 00000000 */ nop -.Lfilemenu_80249C58: -/* 172678 80249C58 3C028025 */ lui $v0, %hi(filemenu_heldButtons) -/* 17267C 80249C5C 8C42174C */ lw $v0, %lo(filemenu_heldButtons)($v0) -/* 172680 80249C60 3C030008 */ lui $v1, (0x80000 >> 16) -/* 172684 80249C64 00431024 */ and $v0, $v0, $v1 -/* 172688 80249C68 1040001E */ beqz $v0, .Lfilemenu_80249CE4 -/* 17268C 80249C6C 00000000 */ nop -/* 172690 80249C70 92660005 */ lbu $a2, 0x5($s3) -/* 172694 80249C74 82650005 */ lb $a1, 0x5($s3) -.Lfilemenu_80249C78: -/* 172698 80249C78 92620001 */ lbu $v0, 0x1($s3) -/* 17269C 80249C7C 24420001 */ addiu $v0, $v0, 0x1 -/* 1726A0 80249C80 A2620001 */ sb $v0, 0x1($s3) -/* 1726A4 80249C84 00021600 */ sll $v0, $v0, 24 -/* 1726A8 80249C88 00022603 */ sra $a0, $v0, 24 -/* 1726AC 80249C8C 0085102A */ slt $v0, $a0, $a1 -/* 1726B0 80249C90 1040003E */ beqz $v0, .Lfilemenu_80249D8C -/* 1726B4 80249C94 24C2FFFF */ addiu $v0, $a2, -0x1 -/* 1726B8 80249C98 82620004 */ lb $v0, 0x4($s3) -/* 1726BC 80249C9C 00450018 */ mult $v0, $a1 -/* 1726C0 80249CA0 00001812 */ mflo $v1 -/* 1726C4 80249CA4 82620006 */ lb $v0, 0x6($s3) -/* 1726C8 80249CA8 00000000 */ nop -/* 1726CC 80249CAC 00620018 */ mult $v1, $v0 -/* 1726D0 80249CB0 00001812 */ mflo $v1 -/* 1726D4 80249CB4 82620002 */ lb $v0, 0x2($s3) -/* 1726D8 80249CB8 00000000 */ nop -/* 1726DC 80249CBC 00A20018 */ mult $a1, $v0 -/* 1726E0 80249CC0 00006012 */ mflo $t4 -/* 1726E4 80249CC4 006C1021 */ addu $v0, $v1, $t4 -/* 1726E8 80249CC8 00441021 */ addu $v0, $v0, $a0 -/* 1726EC 80249CCC 8E630008 */ lw $v1, 0x8($s3) -/* 1726F0 80249CD0 92640003 */ lbu $a0, 0x3($s3) -/* 1726F4 80249CD4 00621821 */ addu $v1, $v1, $v0 -/* 1726F8 80249CD8 90620000 */ lbu $v0, 0x0($v1) -/* 1726FC 80249CDC 1082FFE6 */ beq $a0, $v0, .Lfilemenu_80249C78 -/* 172700 80249CE0 00000000 */ nop -.Lfilemenu_80249CE4: -/* 172704 80249CE4 3C028025 */ lui $v0, %hi(filemenu_heldButtons) -/* 172708 80249CE8 8C42174C */ lw $v0, %lo(filemenu_heldButtons)($v0) -/* 17270C 80249CEC 3C030001 */ lui $v1, (0x10000 >> 16) -/* 172710 80249CF0 00431024 */ and $v0, $v0, $v1 -/* 172714 80249CF4 10400007 */ beqz $v0, .Lfilemenu_80249D14 -/* 172718 80249CF8 00000000 */ nop -/* 17271C 80249CFC 92620002 */ lbu $v0, 0x2($s3) -/* 172720 80249D00 2442FFFF */ addiu $v0, $v0, -0x1 -/* 172724 80249D04 A2620002 */ sb $v0, 0x2($s3) -/* 172728 80249D08 00021600 */ sll $v0, $v0, 24 -/* 17272C 80249D0C 04420001 */ bltzl $v0, .Lfilemenu_80249D14 -/* 172730 80249D10 A2600002 */ sb $zero, 0x2($s3) -.Lfilemenu_80249D14: -/* 172734 80249D14 3C028025 */ lui $v0, %hi(filemenu_heldButtons) -/* 172738 80249D18 8C42174C */ lw $v0, %lo(filemenu_heldButtons)($v0) -/* 17273C 80249D1C 3C030002 */ lui $v1, (0x20000 >> 16) -/* 172740 80249D20 00431024 */ and $v0, $v0, $v1 -/* 172744 80249D24 1040000C */ beqz $v0, .Lfilemenu_80249D58 -/* 172748 80249D28 00000000 */ nop -/* 17274C 80249D2C 92620002 */ lbu $v0, 0x2($s3) -/* 172750 80249D30 82630006 */ lb $v1, 0x6($s3) -/* 172754 80249D34 24420001 */ addiu $v0, $v0, 0x1 -/* 172758 80249D38 A2620002 */ sb $v0, 0x2($s3) -/* 17275C 80249D3C 00021600 */ sll $v0, $v0, 24 -/* 172760 80249D40 00021603 */ sra $v0, $v0, 24 -/* 172764 80249D44 0043102A */ slt $v0, $v0, $v1 -/* 172768 80249D48 92630006 */ lbu $v1, 0x6($s3) -/* 17276C 80249D4C 14400002 */ bnez $v0, .Lfilemenu_80249D58 -/* 172770 80249D50 2462FFFF */ addiu $v0, $v1, -0x1 -/* 172774 80249D54 A2620002 */ sb $v0, 0x2($s3) -.Lfilemenu_80249D58: -/* 172778 80249D58 82620004 */ lb $v0, 0x4($s3) -/* 17277C 80249D5C 1440000D */ bnez $v0, .Lfilemenu_80249D94 -/* 172780 80249D60 00000000 */ nop -/* 172784 80249D64 82630001 */ lb $v1, 0x1($s3) -/* 172788 80249D68 24020001 */ addiu $v0, $zero, 0x1 -/* 17278C 80249D6C 14620019 */ bne $v1, $v0, .Lfilemenu_80249DD4 -/* 172790 80249D70 00000000 */ nop -/* 172794 80249D74 92620002 */ lbu $v0, 0x2($s3) -/* 172798 80249D78 2C420002 */ sltiu $v0, $v0, 0x2 -/* 17279C 80249D7C 54400015 */ bnel $v0, $zero, .Lfilemenu_80249DD4 -/* 1727A0 80249D80 A2600001 */ sb $zero, 0x1($s3) -/* 1727A4 80249D84 08092775 */ j .Lfilemenu_80249DD4 -/* 1727A8 80249D88 00000000 */ nop -.Lfilemenu_80249D8C: -/* 1727AC 80249D8C 08092739 */ j .Lfilemenu_80249CE4 -/* 1727B0 80249D90 A2620001 */ sb $v0, 0x1($s3) -.Lfilemenu_80249D94: -/* 1727B4 80249D94 0440000F */ bltz $v0, .Lfilemenu_80249DD4 -/* 1727B8 80249D98 28420004 */ slti $v0, $v0, 0x4 -/* 1727BC 80249D9C 1040000D */ beqz $v0, .Lfilemenu_80249DD4 -/* 1727C0 80249DA0 24020001 */ addiu $v0, $zero, 0x1 -/* 1727C4 80249DA4 82630001 */ lb $v1, 0x1($s3) -/* 1727C8 80249DA8 14620005 */ bne $v1, $v0, .Lfilemenu_80249DC0 -/* 1727CC 80249DAC 00000000 */ nop -/* 1727D0 80249DB0 92620002 */ lbu $v0, 0x2($s3) -/* 1727D4 80249DB4 2C420002 */ sltiu $v0, $v0, 0x2 -/* 1727D8 80249DB8 54400001 */ bnel $v0, $zero, .Lfilemenu_80249DC0 -/* 1727DC 80249DBC A2600001 */ sb $zero, 0x1($s3) -.Lfilemenu_80249DC0: -/* 1727E0 80249DC0 82630002 */ lb $v1, 0x2($s3) -/* 1727E4 80249DC4 24020002 */ addiu $v0, $zero, 0x2 -/* 1727E8 80249DC8 14620002 */ bne $v1, $v0, .Lfilemenu_80249DD4 -/* 1727EC 80249DCC 24020001 */ addiu $v0, $zero, 0x1 -/* 1727F0 80249DD0 A2620001 */ sb $v0, 0x1($s3) -.Lfilemenu_80249DD4: -/* 1727F4 80249DD4 82620004 */ lb $v0, 0x4($s3) -/* 1727F8 80249DD8 82630005 */ lb $v1, 0x5($s3) -/* 1727FC 80249DDC 00430018 */ mult $v0, $v1 -/* 172800 80249DE0 00006012 */ mflo $t4 -/* 172804 80249DE4 82620006 */ lb $v0, 0x6($s3) -/* 172808 80249DE8 00000000 */ nop -/* 17280C 80249DEC 01820018 */ mult $t4, $v0 -/* 172810 80249DF0 00002012 */ mflo $a0 -/* 172814 80249DF4 82620002 */ lb $v0, 0x2($s3) -/* 172818 80249DF8 00000000 */ nop -/* 17281C 80249DFC 00620018 */ mult $v1, $v0 -/* 172820 80249E00 00001812 */ mflo $v1 -/* 172824 80249E04 00831821 */ addu $v1, $a0, $v1 -/* 172828 80249E08 82640001 */ lb $a0, 0x1($s3) -/* 17282C 80249E0C 8E620008 */ lw $v0, 0x8($s3) -/* 172830 80249E10 00641821 */ addu $v1, $v1, $a0 -/* 172834 80249E14 00431021 */ addu $v0, $v0, $v1 -/* 172838 80249E18 90420000 */ lbu $v0, 0x0($v0) -/* 17283C 80249E1C A2620003 */ sb $v0, 0x3($s3) -/* 172840 80249E20 304200FF */ andi $v0, $v0, 0xFF -/* 172844 80249E24 10E20003 */ beq $a3, $v0, .Lfilemenu_80249E34 -/* 172848 80249E28 00000000 */ nop -/* 17284C 80249E2C 0C052219 */ jal sfx_play_sound -/* 172850 80249E30 24042101 */ addiu $a0, $zero, 0x2101 -.Lfilemenu_80249E34: -/* 172854 80249E34 82620004 */ lb $v0, 0x4($s3) -/* 172858 80249E38 14400022 */ bnez $v0, .Lfilemenu_80249EC4 -/* 17285C 80249E3C 00000000 */ nop -/* 172860 80249E40 3C108007 */ lui $s0, %hi(gGameStatusPtr) -/* 172864 80249E44 261014AC */ addiu $s0, $s0, %lo(gGameStatusPtr) -/* 172868 80249E48 3C058025 */ lui $a1, %hi(filemenu_pressedButtons) -/* 17286C 80249E4C 24A51744 */ addiu $a1, $a1, %lo(filemenu_pressedButtons) -/* 172870 80249E50 8CA20000 */ lw $v0, 0x0($a1) -/* 172874 80249E54 8E030000 */ lw $v1, 0x0($s0) -/* 172878 80249E58 30422000 */ andi $v0, $v0, 0x2000 -/* 17287C 80249E5C 906400AB */ lbu $a0, 0xAB($v1) -/* 172880 80249E60 10400002 */ beqz $v0, .Lfilemenu_80249E6C -/* 172884 80249E64 24020001 */ addiu $v0, $zero, 0x1 -/* 172888 80249E68 A06200AB */ sb $v0, 0xAB($v1) -.Lfilemenu_80249E6C: -/* 17288C 80249E6C 8CA20000 */ lw $v0, 0x0($a1) -/* 172890 80249E70 30420010 */ andi $v0, $v0, 0x10 -/* 172894 80249E74 10400003 */ beqz $v0, .Lfilemenu_80249E84 -/* 172898 80249E78 00000000 */ nop -/* 17289C 80249E7C 8E020000 */ lw $v0, 0x0($s0) -/* 1728A0 80249E80 A04000AB */ sb $zero, 0xAB($v0) -.Lfilemenu_80249E84: -/* 1728A4 80249E84 8E020000 */ lw $v0, 0x0($s0) -/* 1728A8 80249E88 904200AB */ lbu $v0, 0xAB($v0) -/* 1728AC 80249E8C 1082000D */ beq $a0, $v0, .Lfilemenu_80249EC4 -/* 1728B0 80249E90 00000000 */ nop -/* 1728B4 80249E94 0C052219 */ jal sfx_play_sound -/* 1728B8 80249E98 240400C8 */ addiu $a0, $zero, 0xC8 -/* 1728BC 80249E9C 8E020000 */ lw $v0, 0x0($s0) -/* 1728C0 80249EA0 904200AB */ lbu $v0, 0xAB($v0) -/* 1728C4 80249EA4 10400005 */ beqz $v0, .Lfilemenu_80249EBC -/* 1728C8 80249EA8 00000000 */ nop -/* 1728CC 80249EAC 0C0159CF */ jal audio_set_stereo -/* 1728D0 80249EB0 00000000 */ nop -/* 1728D4 80249EB4 080927B1 */ j .Lfilemenu_80249EC4 -/* 1728D8 80249EB8 00000000 */ nop -.Lfilemenu_80249EBC: -/* 1728DC 80249EBC 0C0159D8 */ jal audio_set_mono -/* 1728E0 80249EC0 00000000 */ nop -.Lfilemenu_80249EC4: -/* 1728E4 80249EC4 3C038025 */ lui $v1, %hi(filemenu_pressedButtons) -/* 1728E8 80249EC8 24631744 */ addiu $v1, $v1, %lo(filemenu_pressedButtons) -/* 1728EC 80249ECC 8C620000 */ lw $v0, 0x0($v1) -/* 1728F0 80249ED0 30421000 */ andi $v0, $v0, 0x1000 -/* 1728F4 80249ED4 10400009 */ beqz $v0, .Lfilemenu_80249EFC -/* 1728F8 80249ED8 00000000 */ nop -/* 1728FC 80249EDC 82620004 */ lb $v0, 0x4($s3) -/* 172900 80249EE0 14400006 */ bnez $v0, .Lfilemenu_80249EFC -/* 172904 80249EE4 00000000 */ nop -/* 172908 80249EE8 92620003 */ lbu $v0, 0x3($s3) -/* 17290C 80249EEC 2C420004 */ sltiu $v0, $v0, 0x4 -/* 172910 80249EF0 10400002 */ beqz $v0, .Lfilemenu_80249EFC -/* 172914 80249EF4 34028000 */ ori $v0, $zero, 0x8000 -/* 172918 80249EF8 AC620000 */ sw $v0, 0x0($v1) -.Lfilemenu_80249EFC: -/* 17291C 80249EFC 3C028025 */ lui $v0, %hi(filemenu_pressedButtons) -/* 172920 80249F00 8C421744 */ lw $v0, %lo(filemenu_pressedButtons)($v0) -/* 172924 80249F04 30428000 */ andi $v0, $v0, 0x8000 -/* 172928 80249F08 1040028C */ beqz $v0, .Lfilemenu_8024A93C -/* 17292C 80249F0C 24110001 */ addiu $s1, $zero, 0x1 -/* 172930 80249F10 82630004 */ lb $v1, 0x4($s3) -/* 172934 80249F14 1071011F */ beq $v1, $s1, .Lfilemenu_8024A394 -/* 172938 80249F18 0000202D */ daddu $a0, $zero, $zero -/* 17293C 80249F1C 28620002 */ slti $v0, $v1, 0x2 -/* 172940 80249F20 10400005 */ beqz $v0, .Lfilemenu_80249F38 -/* 172944 80249F24 24100002 */ addiu $s0, $zero, 0x2 -/* 172948 80249F28 10600009 */ beqz $v1, .Lfilemenu_80249F50 -/* 17294C 80249F2C 00000000 */ nop -/* 172950 80249F30 08092A4F */ j .Lfilemenu_8024A93C -/* 172954 80249F34 00000000 */ nop -.Lfilemenu_80249F38: -/* 172958 80249F38 10700180 */ beq $v1, $s0, .Lfilemenu_8024A53C -/* 17295C 80249F3C 24020003 */ addiu $v0, $zero, 0x3 -/* 172960 80249F40 106201AA */ beq $v1, $v0, .Lfilemenu_8024A5EC -/* 172964 80249F44 24020006 */ addiu $v0, $zero, 0x6 -/* 172968 80249F48 08092A4F */ j .Lfilemenu_8024A93C -/* 17296C 80249F4C 00000000 */ nop -.Lfilemenu_80249F50: -/* 172970 80249F50 92620003 */ lbu $v0, 0x3($s3) -/* 172974 80249F54 2C420004 */ sltiu $v0, $v0, 0x4 -/* 172978 80249F58 10400007 */ beqz $v0, .Lfilemenu_80249F78 -/* 17297C 80249F5C 00000000 */ nop -/* 172980 80249F60 92620003 */ lbu $v0, 0x3($s3) -/* 172984 80249F64 3C018007 */ lui $at, %hi(gSaveSlotHasData) -/* 172988 80249F68 00220821 */ addu $at, $at, $v0 -/* 17298C 80249F6C 90223D74 */ lbu $v0, %lo(gSaveSlotHasData)($at) -/* 172990 80249F70 50400001 */ beql $v0, $zero, .Lfilemenu_80249F78 -/* 172994 80249F74 24040001 */ addiu $a0, $zero, 0x1 -.Lfilemenu_80249F78: -/* 172998 80249F78 10800040 */ beqz $a0, .Lfilemenu_8024A07C -/* 17299C 80249F7C 240400F7 */ addiu $a0, $zero, 0xF7 -/* 1729A0 80249F80 24030007 */ addiu $v1, $zero, 0x7 -/* 1729A4 80249F84 3C028025 */ lui $v0, %hi(filemenu_filename+0x7) -/* 1729A8 80249F88 244227E7 */ addiu $v0, $v0, %lo(filemenu_filename+0x7) -.Lfilemenu_80249F8C: -/* 1729AC 80249F8C A0440000 */ sb $a0, 0x0($v0) -/* 1729B0 80249F90 2463FFFF */ addiu $v1, $v1, -0x1 -/* 1729B4 80249F94 0461FFFD */ bgez $v1, .Lfilemenu_80249F8C -/* 1729B8 80249F98 2442FFFF */ addiu $v0, $v0, -0x1 -/* 1729BC 80249F9C 24040030 */ addiu $a0, $zero, 0x30 -/* 1729C0 80249FA0 3C108024 */ lui $s0, %hi(filemenu_update_show_name_input) -/* 1729C4 80249FA4 26107290 */ addiu $s0, $s0, %lo(filemenu_update_show_name_input) -/* 1729C8 80249FA8 3C018025 */ lui $at, %hi(filemenu_filename_pos) -/* 1729CC 80249FAC A0201750 */ sb $zero, %lo(filemenu_filename_pos)($at) -/* 1729D0 80249FB0 0C051A8B */ jal set_window_update -/* 1729D4 80249FB4 0200282D */ daddu $a1, $s0, $zero -/* 1729D8 80249FB8 24040031 */ addiu $a0, $zero, 0x31 -/* 1729DC 80249FBC 0C051A8B */ jal set_window_update -/* 1729E0 80249FC0 0200282D */ daddu $a1, $s0, $zero -/* 1729E4 80249FC4 2404002D */ addiu $a0, $zero, 0x2D -/* 1729E8 80249FC8 3C108024 */ lui $s0, %hi(filemenu_update_hidden_with_rotation) -/* 1729EC 80249FCC 261077A8 */ addiu $s0, $s0, %lo(filemenu_update_hidden_with_rotation) -/* 1729F0 80249FD0 0C051A8B */ jal set_window_update -/* 1729F4 80249FD4 0200282D */ daddu $a1, $s0, $zero -/* 1729F8 80249FD8 24040033 */ addiu $a0, $zero, 0x33 -/* 1729FC 80249FDC 0C051A8B */ jal set_window_update -/* 172A00 80249FE0 0200282D */ daddu $a1, $s0, $zero -/* 172A04 80249FE4 24040034 */ addiu $a0, $zero, 0x34 -/* 172A08 80249FE8 0C051A8B */ jal set_window_update -/* 172A0C 80249FEC 0200282D */ daddu $a1, $s0, $zero -/* 172A10 80249FF0 24040035 */ addiu $a0, $zero, 0x35 -/* 172A14 80249FF4 0C051A8B */ jal set_window_update -/* 172A18 80249FF8 0200282D */ daddu $a1, $s0, $zero -/* 172A1C 80249FFC 24040036 */ addiu $a0, $zero, 0x36 -/* 172A20 8024A000 0C051A8B */ jal set_window_update -/* 172A24 8024A004 0200282D */ daddu $a1, $s0, $zero -/* 172A28 8024A008 24040037 */ addiu $a0, $zero, 0x37 -/* 172A2C 8024A00C 0C051A8B */ jal set_window_update -/* 172A30 8024A010 0200282D */ daddu $a1, $s0, $zero -/* 172A34 8024A014 24040035 */ addiu $a0, $zero, 0x35 -/* 172A38 8024A018 0C051A8B */ jal set_window_update -/* 172A3C 8024A01C 0200282D */ daddu $a1, $s0, $zero -/* 172A40 8024A020 24040038 */ addiu $a0, $zero, 0x38 -/* 172A44 8024A024 0C051A8B */ jal set_window_update -/* 172A48 8024A028 0200282D */ daddu $a1, $s0, $zero -/* 172A4C 8024A02C 24040039 */ addiu $a0, $zero, 0x39 -/* 172A50 8024A030 0C051A8B */ jal set_window_update -/* 172A54 8024A034 0200282D */ daddu $a1, $s0, $zero -/* 172A58 8024A038 2404003A */ addiu $a0, $zero, 0x3A -/* 172A5C 8024A03C 0C051A8B */ jal set_window_update -/* 172A60 8024A040 0200282D */ daddu $a1, $s0, $zero -/* 172A64 8024A044 2404003B */ addiu $a0, $zero, 0x3B -/* 172A68 8024A048 0C051A8B */ jal set_window_update -/* 172A6C 8024A04C 0200282D */ daddu $a1, $s0, $zero -/* 172A70 8024A050 0C052219 */ jal sfx_play_sound -/* 172A74 8024A054 240400C9 */ addiu $a0, $zero, 0xC9 -/* 172A78 8024A058 0000282D */ daddu $a1, $zero, $zero -/* 172A7C 8024A05C 00A0302D */ daddu $a2, $a1, $zero -/* 172A80 8024A060 3C048025 */ lui $a0, %hi(filemenu_menus+0xC) -/* 172A84 8024A064 8C84E990 */ lw $a0, %lo(filemenu_menus+0xC)($a0) -/* 172A88 8024A068 24020003 */ addiu $v0, $zero, 0x3 -/* 172A8C 8024A06C 3C018025 */ lui $at, %hi(filemenu_currentMenu) -/* 172A90 8024A070 A0221758 */ sb $v0, %lo(filemenu_currentMenu)($at) -/* 172A94 8024A074 08092A4D */ j .Lfilemenu_8024A934 -/* 172A98 8024A078 A0800004 */ sb $zero, 0x4($a0) -.Lfilemenu_8024A07C: -/* 172A9C 8024A07C 92630003 */ lbu $v1, 0x3($s3) -/* 172AA0 8024A080 24020006 */ addiu $v0, $zero, 0x6 -/* 172AA4 8024A084 1462002C */ bne $v1, $v0, .Lfilemenu_8024A138 -/* 172AA8 8024A088 24020004 */ addiu $v0, $zero, 0x4 -/* 172AAC 8024A08C 24040033 */ addiu $a0, $zero, 0x33 -/* 172AB0 8024A090 3C128024 */ lui $s2, %hi(filemenu_update_hidden_options_left) -/* 172AB4 8024A094 2652759C */ addiu $s2, $s2, %lo(filemenu_update_hidden_options_left) -/* 172AB8 8024A098 0C051A8B */ jal set_window_update -/* 172ABC 8024A09C 0240282D */ daddu $a1, $s2, $zero -/* 172AC0 8024A0A0 24040034 */ addiu $a0, $zero, 0x34 -/* 172AC4 8024A0A4 3C118024 */ lui $s1, %hi(filemenu_update_hidden_options_right) -/* 172AC8 8024A0A8 26317600 */ addiu $s1, $s1, %lo(filemenu_update_hidden_options_right) -/* 172ACC 8024A0AC 0C051A8B */ jal set_window_update -/* 172AD0 8024A0B0 0220282D */ daddu $a1, $s1, $zero -/* 172AD4 8024A0B4 24040035 */ addiu $a0, $zero, 0x35 -/* 172AD8 8024A0B8 3C108024 */ lui $s0, %hi(filemenu_update_hidden_options_bottom) -/* 172ADC 8024A0BC 261076C8 */ addiu $s0, $s0, %lo(filemenu_update_hidden_options_bottom) -/* 172AE0 8024A0C0 0C051A8B */ jal set_window_update -/* 172AE4 8024A0C4 0200282D */ daddu $a1, $s0, $zero -/* 172AE8 8024A0C8 24040036 */ addiu $a0, $zero, 0x36 -/* 172AEC 8024A0CC 0C051A8B */ jal set_window_update -/* 172AF0 8024A0D0 0200282D */ daddu $a1, $s0, $zero -/* 172AF4 8024A0D4 24040037 */ addiu $a0, $zero, 0x37 -/* 172AF8 8024A0D8 0C051A8B */ jal set_window_update -/* 172AFC 8024A0DC 0200282D */ daddu $a1, $s0, $zero -/* 172B00 8024A0E0 24040038 */ addiu $a0, $zero, 0x38 -/* 172B04 8024A0E4 0C051A8B */ jal set_window_update -/* 172B08 8024A0E8 0240282D */ daddu $a1, $s2, $zero -/* 172B0C 8024A0EC 24040039 */ addiu $a0, $zero, 0x39 -/* 172B10 8024A0F0 0C051A8B */ jal set_window_update -/* 172B14 8024A0F4 0220282D */ daddu $a1, $s1, $zero -/* 172B18 8024A0F8 2404003A */ addiu $a0, $zero, 0x3A -/* 172B1C 8024A0FC 0C051A8B */ jal set_window_update -/* 172B20 8024A100 0240282D */ daddu $a1, $s2, $zero -/* 172B24 8024A104 2404003B */ addiu $a0, $zero, 0x3B -/* 172B28 8024A108 0C051A8B */ jal set_window_update -/* 172B2C 8024A10C 0220282D */ daddu $a1, $s1, $zero -/* 172B30 8024A110 3C058024 */ lui $a1, %hi(filemenu_update_hidden_title) -/* 172B34 8024A114 24A57664 */ addiu $a1, $a1, %lo(filemenu_update_hidden_title) -/* 172B38 8024A118 0C051A8B */ jal set_window_update -/* 172B3C 8024A11C 2404002D */ addiu $a0, $zero, 0x2D -/* 172B40 8024A120 0C052219 */ jal sfx_play_sound -/* 172B44 8024A124 240400D6 */ addiu $a0, $zero, 0xD6 -/* 172B48 8024A128 0C00CE04 */ jal set_game_mode -/* 172B4C 8024A12C 2404000F */ addiu $a0, $zero, 0xF -/* 172B50 8024A130 08092A4F */ j .Lfilemenu_8024A93C -/* 172B54 8024A134 00000000 */ nop -.Lfilemenu_8024A138: -/* 172B58 8024A138 14620005 */ bne $v1, $v0, .Lfilemenu_8024A150 -/* 172B5C 8024A13C 24020005 */ addiu $v0, $zero, 0x5 -/* 172B60 8024A140 0C052219 */ jal sfx_play_sound -/* 172B64 8024A144 240400C9 */ addiu $a0, $zero, 0xC9 -/* 172B68 8024A148 08092859 */ j .Lfilemenu_8024A164 -/* 172B6C 8024A14C 24020001 */ addiu $v0, $zero, 0x1 -.Lfilemenu_8024A150: -/* 172B70 8024A150 1462001B */ bne $v1, $v0, .Lfilemenu_8024A1C0 -/* 172B74 8024A154 2C620004 */ sltiu $v0, $v1, 0x4 -/* 172B78 8024A158 0C052219 */ jal sfx_play_sound -/* 172B7C 8024A15C 240400C9 */ addiu $a0, $zero, 0xC9 -/* 172B80 8024A160 24020002 */ addiu $v0, $zero, 0x2 -.Lfilemenu_8024A164: -/* 172B84 8024A164 A2620004 */ sb $v0, 0x4($s3) -/* 172B88 8024A168 0260202D */ daddu $a0, $s3, $zero -/* 172B8C 8024A16C 24050001 */ addiu $a1, $zero, 0x1 -/* 172B90 8024A170 0C091B29 */ jal filemenu_set_selected -/* 172B94 8024A174 24060002 */ addiu $a2, $zero, 0x2 -/* 172B98 8024A178 3C058024 */ lui $a1, %hi(filemenu_update_hidden_options_left) -/* 172B9C 8024A17C 24A5759C */ addiu $a1, $a1, %lo(filemenu_update_hidden_options_left) -/* 172BA0 8024A180 0C051A8B */ jal set_window_update -/* 172BA4 8024A184 24040033 */ addiu $a0, $zero, 0x33 -/* 172BA8 8024A188 3C058024 */ lui $a1, %hi(filemenu_update_hidden_options_right) -/* 172BAC 8024A18C 24A57600 */ addiu $a1, $a1, %lo(filemenu_update_hidden_options_right) -/* 172BB0 8024A190 0C051A8B */ jal set_window_update -/* 172BB4 8024A194 24040034 */ addiu $a0, $zero, 0x34 -/* 172BB8 8024A198 24040035 */ addiu $a0, $zero, 0x35 -/* 172BBC 8024A19C 3C108024 */ lui $s0, %hi(filemenu_update_hidden_options_bottom) -/* 172BC0 8024A1A0 261076C8 */ addiu $s0, $s0, %lo(filemenu_update_hidden_options_bottom) -/* 172BC4 8024A1A4 0C051A8B */ jal set_window_update -/* 172BC8 8024A1A8 0200282D */ daddu $a1, $s0, $zero -/* 172BCC 8024A1AC 24040037 */ addiu $a0, $zero, 0x37 -/* 172BD0 8024A1B0 0C051A8B */ jal set_window_update -/* 172BD4 8024A1B4 0200282D */ daddu $a1, $s0, $zero -/* 172BD8 8024A1B8 08092A4F */ j .Lfilemenu_8024A93C -/* 172BDC 8024A1BC 00000000 */ nop -.Lfilemenu_8024A1C0: -/* 172BE0 8024A1C0 104001DE */ beqz $v0, .Lfilemenu_8024A93C -/* 172BE4 8024A1C4 00000000 */ nop -/* 172BE8 8024A1C8 0C052219 */ jal sfx_play_sound -/* 172BEC 8024A1CC 240400C9 */ addiu $a0, $zero, 0xC9 -/* 172BF0 8024A1D0 2404002D */ addiu $a0, $zero, 0x2D -/* 172BF4 8024A1D4 3C108024 */ lui $s0, %hi(filemenu_update_hidden_with_rotation) -/* 172BF8 8024A1D8 261077A8 */ addiu $s0, $s0, %lo(filemenu_update_hidden_with_rotation) -/* 172BFC 8024A1DC 0C051A8B */ jal set_window_update -/* 172C00 8024A1E0 0200282D */ daddu $a1, $s0, $zero -/* 172C04 8024A1E4 24040033 */ addiu $a0, $zero, 0x33 -/* 172C08 8024A1E8 0C051A8B */ jal set_window_update -/* 172C0C 8024A1EC 0200282D */ daddu $a1, $s0, $zero -/* 172C10 8024A1F0 24040034 */ addiu $a0, $zero, 0x34 -/* 172C14 8024A1F4 0C051A8B */ jal set_window_update -/* 172C18 8024A1F8 0200282D */ daddu $a1, $s0, $zero -/* 172C1C 8024A1FC 24040035 */ addiu $a0, $zero, 0x35 -/* 172C20 8024A200 0C051A8B */ jal set_window_update -/* 172C24 8024A204 0200282D */ daddu $a1, $s0, $zero -/* 172C28 8024A208 24040036 */ addiu $a0, $zero, 0x36 -/* 172C2C 8024A20C 0C051A8B */ jal set_window_update -/* 172C30 8024A210 0200282D */ daddu $a1, $s0, $zero -/* 172C34 8024A214 24040037 */ addiu $a0, $zero, 0x37 -/* 172C38 8024A218 0C051A8B */ jal set_window_update -/* 172C3C 8024A21C 0200282D */ daddu $a1, $s0, $zero -/* 172C40 8024A220 24040035 */ addiu $a0, $zero, 0x35 -/* 172C44 8024A224 0C051A8B */ jal set_window_update -/* 172C48 8024A228 0200282D */ daddu $a1, $s0, $zero -/* 172C4C 8024A22C 24040038 */ addiu $a0, $zero, 0x38 -/* 172C50 8024A230 0C051A8B */ jal set_window_update -/* 172C54 8024A234 0200282D */ daddu $a1, $s0, $zero -/* 172C58 8024A238 24040039 */ addiu $a0, $zero, 0x39 -/* 172C5C 8024A23C 0C051A8B */ jal set_window_update -/* 172C60 8024A240 0200282D */ daddu $a1, $s0, $zero -/* 172C64 8024A244 2404003A */ addiu $a0, $zero, 0x3A -/* 172C68 8024A248 0C051A8B */ jal set_window_update -/* 172C6C 8024A24C 0200282D */ daddu $a1, $s0, $zero -/* 172C70 8024A250 2404003B */ addiu $a0, $zero, 0x3B -/* 172C74 8024A254 0C051A8B */ jal set_window_update -/* 172C78 8024A258 0200282D */ daddu $a1, $s0, $zero -/* 172C7C 8024A25C 92640003 */ lbu $a0, 0x3($s3) -/* 172C80 8024A260 3C058024 */ lui $a1, %hi(filemenu_update_select_file) -/* 172C84 8024A264 24A57818 */ addiu $a1, $a1, %lo(filemenu_update_select_file) -/* 172C88 8024A268 0C051A8B */ jal set_window_update -/* 172C8C 8024A26C 24840038 */ addiu $a0, $a0, 0x38 -/* 172C90 8024A270 0C052219 */ jal sfx_play_sound -/* 172C94 8024A274 240400C9 */ addiu $a0, $zero, 0xC9 -/* 172C98 8024A278 24040032 */ addiu $a0, $zero, 0x32 -/* 172C9C 8024A27C 0C051A8B */ jal set_window_update -/* 172CA0 8024A280 24050001 */ addiu $a1, $zero, 0x1 -/* 172CA4 8024A284 3C048016 */ lui $a0, %hi(gWindows) -/* 172CA8 8024A288 24848910 */ addiu $a0, $a0, %lo(gWindows) -/* 172CAC 8024A28C 2402008F */ addiu $v0, $zero, 0x8F -/* 172CB0 8024A290 A482064E */ sh $v0, 0x64E($a0) -/* 172CB4 8024A294 24020045 */ addiu $v0, $zero, 0x45 -/* 172CB8 8024A298 A4820650 */ sh $v0, 0x650($a0) -/* 172CBC 8024A29C 2402002C */ addiu $v0, $zero, 0x2C -/* 172CC0 8024A2A0 80830643 */ lb $v1, 0x643($a0) -/* 172CC4 8024A2A4 A4820652 */ sh $v0, 0x652($a0) -/* 172CC8 8024A2A8 2402FFFF */ addiu $v0, $zero, -0x1 -/* 172CCC 8024A2AC 1062000B */ beq $v1, $v0, .Lfilemenu_8024A2DC -/* 172CD0 8024A2B0 2485064C */ addiu $a1, $a0, 0x64C -/* 172CD4 8024A2B4 00031140 */ sll $v0, $v1, 5 -/* 172CD8 8024A2B8 00441021 */ addu $v0, $v0, $a0 -/* 172CDC 8024A2BC 94420010 */ lhu $v0, 0x10($v0) -/* 172CE0 8024A2C0 00021400 */ sll $v0, $v0, 16 -/* 172CE4 8024A2C4 00021C03 */ sra $v1, $v0, 16 -/* 172CE8 8024A2C8 000217C2 */ srl $v0, $v0, 31 -/* 172CEC 8024A2CC 00621821 */ addu $v1, $v1, $v0 -/* 172CF0 8024A2D0 00031843 */ sra $v1, $v1, 1 -/* 172CF4 8024A2D4 080928B8 */ j .Lfilemenu_8024A2E0 -/* 172CF8 8024A2D8 2463FFDE */ addiu $v1, $v1, -0x22 -.Lfilemenu_8024A2DC: -/* 172CFC 8024A2DC 2403007E */ addiu $v1, $zero, 0x7E -.Lfilemenu_8024A2E0: -/* 172D00 8024A2E0 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 172D04 8024A2E4 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 172D08 8024A2E8 3C048016 */ lui $a0, %hi(gWindows) -/* 172D0C 8024A2EC 24848910 */ addiu $a0, $a0, %lo(gWindows) -/* 172D10 8024A2F0 A4A30000 */ sh $v1, 0x0($a1) -/* 172D14 8024A2F4 2403FFE3 */ addiu $v1, $zero, -0x1D -/* 172D18 8024A2F8 A48305CE */ sh $v1, 0x5CE($a0) -/* 172D1C 8024A2FC 24030019 */ addiu $v1, $zero, 0x19 -/* 172D20 8024A300 00021040 */ sll $v0, $v0, 1 -/* 172D24 8024A304 3C018025 */ lui $at, %hi(D_filemenu_80250900) -/* 172D28 8024A308 00220821 */ addu $at, $at, $v0 -/* 172D2C 8024A30C 94220900 */ lhu $v0, %lo(D_filemenu_80250900)($at) -/* 172D30 8024A310 A48305D2 */ sh $v1, 0x5D2($a0) -/* 172D34 8024A314 A48205D0 */ sh $v0, 0x5D0($a0) -/* 172D38 8024A318 00021400 */ sll $v0, $v0, 16 -/* 172D3C 8024A31C 00021C03 */ sra $v1, $v0, 16 -/* 172D40 8024A320 000217C2 */ srl $v0, $v0, 31 -/* 172D44 8024A324 00621821 */ addu $v1, $v1, $v0 -/* 172D48 8024A328 00032843 */ sra $a1, $v1, 1 -/* 172D4C 8024A32C 808305C3 */ lb $v1, 0x5C3($a0) -/* 172D50 8024A330 2402FFFF */ addiu $v0, $zero, -0x1 -/* 172D54 8024A334 1062000B */ beq $v1, $v0, .Lfilemenu_8024A364 -/* 172D58 8024A338 248705CC */ addiu $a3, $a0, 0x5CC -/* 172D5C 8024A33C 00031140 */ sll $v0, $v1, 5 -/* 172D60 8024A340 00441021 */ addu $v0, $v0, $a0 -/* 172D64 8024A344 94420010 */ lhu $v0, 0x10($v0) -/* 172D68 8024A348 00021400 */ sll $v0, $v0, 16 -/* 172D6C 8024A34C 00021C03 */ sra $v1, $v0, 16 -/* 172D70 8024A350 000217C2 */ srl $v0, $v0, 31 -/* 172D74 8024A354 00621821 */ addu $v1, $v1, $v0 -/* 172D78 8024A358 00031843 */ sra $v1, $v1, 1 -/* 172D7C 8024A35C 080928DB */ j .Lfilemenu_8024A36C -/* 172D80 8024A360 00651023 */ subu $v0, $v1, $a1 -.Lfilemenu_8024A364: -/* 172D84 8024A364 240200A0 */ addiu $v0, $zero, 0xA0 -/* 172D88 8024A368 00451023 */ subu $v0, $v0, $a1 -.Lfilemenu_8024A36C: -/* 172D8C 8024A36C 0000282D */ daddu $a1, $zero, $zero -/* 172D90 8024A370 00A0302D */ daddu $a2, $a1, $zero -/* 172D94 8024A374 A4E20000 */ sh $v0, 0x0($a3) -/* 172D98 8024A378 3C048025 */ lui $a0, %hi(filemenu_menus+0x4) -/* 172D9C 8024A37C 8C84E988 */ lw $a0, %lo(filemenu_menus+0x4)($a0) -/* 172DA0 8024A380 24020001 */ addiu $v0, $zero, 0x1 -/* 172DA4 8024A384 3C018025 */ lui $at, %hi(filemenu_currentMenu) -/* 172DA8 8024A388 A0221758 */ sb $v0, %lo(filemenu_currentMenu)($at) -/* 172DAC 8024A38C 08092A4C */ j .Lfilemenu_8024A930 -/* 172DB0 8024A390 24020003 */ addiu $v0, $zero, 0x3 -.Lfilemenu_8024A394: -/* 172DB4 8024A394 3C108016 */ lui $s0, %hi(gWindows) -/* 172DB8 8024A398 26108910 */ addiu $s0, $s0, %lo(gWindows) -/* 172DBC 8024A39C 240200D3 */ addiu $v0, $zero, 0xD3 -/* 172DC0 8024A3A0 A60205B0 */ sh $v0, 0x5B0($s0) -/* 172DC4 8024A3A4 92630003 */ lbu $v1, 0x3($s3) -/* 172DC8 8024A3A8 24020006 */ addiu $v0, $zero, 0x6 -/* 172DCC 8024A3AC 14620018 */ bne $v1, $v0, .Lfilemenu_8024A410 -/* 172DD0 8024A3B0 2C620004 */ sltiu $v0, $v1, 0x4 -/* 172DD4 8024A3B4 0C052219 */ jal sfx_play_sound -/* 172DD8 8024A3B8 240400C9 */ addiu $a0, $zero, 0xC9 -/* 172DDC 8024A3BC A2600004 */ sb $zero, 0x4($s3) -/* 172DE0 8024A3C0 3C058024 */ lui $a1, %hi(filemenu_update_show_options_left) -/* 172DE4 8024A3C4 24A57304 */ addiu $a1, $a1, %lo(filemenu_update_show_options_left) -/* 172DE8 8024A3C8 0C051A8B */ jal set_window_update -/* 172DEC 8024A3CC 24040033 */ addiu $a0, $zero, 0x33 -/* 172DF0 8024A3D0 3C058024 */ lui $a1, %hi(filemenu_update_show_options_right) -/* 172DF4 8024A3D4 24A57378 */ addiu $a1, $a1, %lo(filemenu_update_show_options_right) -/* 172DF8 8024A3D8 0C051A8B */ jal set_window_update -/* 172DFC 8024A3DC 24040034 */ addiu $a0, $zero, 0x34 -/* 172E00 8024A3E0 24040035 */ addiu $a0, $zero, 0x35 -/* 172E04 8024A3E4 3C108024 */ lui $s0, %hi(filemenu_update_show_options_bottom) -/* 172E08 8024A3E8 261073EC */ addiu $s0, $s0, %lo(filemenu_update_show_options_bottom) -/* 172E0C 8024A3EC 0C051A8B */ jal set_window_update -/* 172E10 8024A3F0 0200282D */ daddu $a1, $s0, $zero -/* 172E14 8024A3F4 24040037 */ addiu $a0, $zero, 0x37 -/* 172E18 8024A3F8 0C051A8B */ jal set_window_update -/* 172E1C 8024A3FC 0200282D */ daddu $a1, $s0, $zero -/* 172E20 8024A400 0260202D */ daddu $a0, $s3, $zero -/* 172E24 8024A404 0000282D */ daddu $a1, $zero, $zero -/* 172E28 8024A408 08092A4D */ j .Lfilemenu_8024A934 -/* 172E2C 8024A40C 24060002 */ addiu $a2, $zero, 0x2 -.Lfilemenu_8024A410: -/* 172E30 8024A410 1040014A */ beqz $v0, .Lfilemenu_8024A93C -/* 172E34 8024A414 00000000 */ nop -/* 172E38 8024A418 92620003 */ lbu $v0, 0x3($s3) -/* 172E3C 8024A41C 3C018007 */ lui $at, %hi(gSaveSlotHasData) -/* 172E40 8024A420 00220821 */ addu $at, $at, $v0 -/* 172E44 8024A424 90223D74 */ lbu $v0, %lo(gSaveSlotHasData)($at) -/* 172E48 8024A428 10400081 */ beqz $v0, .Lfilemenu_8024A630 -/* 172E4C 8024A42C 00000000 */ nop -/* 172E50 8024A430 0C052219 */ jal sfx_play_sound -/* 172E54 8024A434 240400C9 */ addiu $a0, $zero, 0xC9 -/* 172E58 8024A438 3C058024 */ lui $a1, %hi(filemenu_update_show_name_confirm) -/* 172E5C 8024A43C 24A57BDC */ addiu $a1, $a1, %lo(filemenu_update_show_name_confirm) -/* 172E60 8024A440 0C051A8B */ jal set_window_update -/* 172E64 8024A444 24040032 */ addiu $a0, $zero, 0x32 -/* 172E68 8024A448 24020079 */ addiu $v0, $zero, 0x79 -/* 172E6C 8024A44C A602064E */ sh $v0, 0x64E($s0) -/* 172E70 8024A450 24020045 */ addiu $v0, $zero, 0x45 -/* 172E74 8024A454 A6020650 */ sh $v0, 0x650($s0) -/* 172E78 8024A458 2402002C */ addiu $v0, $zero, 0x2C -/* 172E7C 8024A45C 82030643 */ lb $v1, 0x643($s0) -/* 172E80 8024A460 A6020652 */ sh $v0, 0x652($s0) -/* 172E84 8024A464 2402FFFF */ addiu $v0, $zero, -0x1 -/* 172E88 8024A468 1062000B */ beq $v1, $v0, .Lfilemenu_8024A498 -/* 172E8C 8024A46C 2604064C */ addiu $a0, $s0, 0x64C -/* 172E90 8024A470 00031140 */ sll $v0, $v1, 5 -/* 172E94 8024A474 00501021 */ addu $v0, $v0, $s0 -/* 172E98 8024A478 94420010 */ lhu $v0, 0x10($v0) -/* 172E9C 8024A47C 00021400 */ sll $v0, $v0, 16 -/* 172EA0 8024A480 00021C03 */ sra $v1, $v0, 16 -/* 172EA4 8024A484 000217C2 */ srl $v0, $v0, 31 -/* 172EA8 8024A488 00621821 */ addu $v1, $v1, $v0 -/* 172EAC 8024A48C 00031843 */ sra $v1, $v1, 1 -/* 172EB0 8024A490 08092927 */ j .Lfilemenu_8024A49C -/* 172EB4 8024A494 2463FFDE */ addiu $v1, $v1, -0x22 -.Lfilemenu_8024A498: -/* 172EB8 8024A498 2403007E */ addiu $v1, $zero, 0x7E -.Lfilemenu_8024A49C: -/* 172EBC 8024A49C A4830000 */ sh $v1, 0x0($a0) -/* 172EC0 8024A4A0 3C048016 */ lui $a0, %hi(gWindows) -/* 172EC4 8024A4A4 24848910 */ addiu $a0, $a0, %lo(gWindows) -/* 172EC8 8024A4A8 3C038015 */ lui $v1, %hi(gCurrentLanguage) -/* 172ECC 8024A4AC 8C63AE4C */ lw $v1, %lo(gCurrentLanguage)($v1) -/* 172ED0 8024A4B0 2402FFE3 */ addiu $v0, $zero, -0x1D -/* 172ED4 8024A4B4 A48205CE */ sh $v0, 0x5CE($a0) -/* 172ED8 8024A4B8 24020019 */ addiu $v0, $zero, 0x19 -/* 172EDC 8024A4BC 3C018025 */ lui $at, %hi(D_filemenu_80250920) -/* 172EE0 8024A4C0 00230821 */ addu $at, $at, $v1 -/* 172EE4 8024A4C4 90230920 */ lbu $v1, %lo(D_filemenu_80250920)($at) -/* 172EE8 8024A4C8 A48205D2 */ sh $v0, 0x5D2($a0) -/* 172EEC 8024A4CC 00032842 */ srl $a1, $v1, 1 -/* 172EF0 8024A4D0 A48305D0 */ sh $v1, 0x5D0($a0) -/* 172EF4 8024A4D4 808305C3 */ lb $v1, 0x5C3($a0) -/* 172EF8 8024A4D8 2402FFFF */ addiu $v0, $zero, -0x1 -/* 172EFC 8024A4DC 1062000B */ beq $v1, $v0, .Lfilemenu_8024A50C -/* 172F00 8024A4E0 248705CC */ addiu $a3, $a0, 0x5CC -/* 172F04 8024A4E4 00031140 */ sll $v0, $v1, 5 -/* 172F08 8024A4E8 00441021 */ addu $v0, $v0, $a0 -/* 172F0C 8024A4EC 94420010 */ lhu $v0, 0x10($v0) -/* 172F10 8024A4F0 00021400 */ sll $v0, $v0, 16 -/* 172F14 8024A4F4 00021C03 */ sra $v1, $v0, 16 -/* 172F18 8024A4F8 000217C2 */ srl $v0, $v0, 31 -/* 172F1C 8024A4FC 00621821 */ addu $v1, $v1, $v0 -/* 172F20 8024A500 00031843 */ sra $v1, $v1, 1 -/* 172F24 8024A504 08092945 */ j .Lfilemenu_8024A514 -/* 172F28 8024A508 00651023 */ subu $v0, $v1, $a1 -.Lfilemenu_8024A50C: -/* 172F2C 8024A50C 240200A0 */ addiu $v0, $zero, 0xA0 -/* 172F30 8024A510 00451023 */ subu $v0, $v0, $a1 -.Lfilemenu_8024A514: -/* 172F34 8024A514 0000282D */ daddu $a1, $zero, $zero -/* 172F38 8024A518 24060001 */ addiu $a2, $zero, 0x1 -/* 172F3C 8024A51C A4E20000 */ sh $v0, 0x0($a3) -/* 172F40 8024A520 3C048025 */ lui $a0, %hi(filemenu_menus+0x4) -/* 172F44 8024A524 8C84E988 */ lw $a0, %lo(filemenu_menus+0x4)($a0) -/* 172F48 8024A528 00C0102D */ daddu $v0, $a2, $zero -/* 172F4C 8024A52C 3C018025 */ lui $at, %hi(filemenu_currentMenu) -/* 172F50 8024A530 A0221758 */ sb $v0, %lo(filemenu_currentMenu)($at) -/* 172F54 8024A534 08092A4D */ j .Lfilemenu_8024A934 -/* 172F58 8024A538 A0800004 */ sb $zero, 0x4($a0) -.Lfilemenu_8024A53C: -/* 172F5C 8024A53C 92630003 */ lbu $v1, 0x3($s3) -/* 172F60 8024A540 24020006 */ addiu $v0, $zero, 0x6 -/* 172F64 8024A544 14620018 */ bne $v1, $v0, .Lfilemenu_8024A5A8 -/* 172F68 8024A548 2C620004 */ sltiu $v0, $v1, 0x4 -/* 172F6C 8024A54C 0C052219 */ jal sfx_play_sound -/* 172F70 8024A550 240400C9 */ addiu $a0, $zero, 0xC9 -/* 172F74 8024A554 A2600004 */ sb $zero, 0x4($s3) -/* 172F78 8024A558 3C058024 */ lui $a1, %hi(filemenu_update_show_options_left) -/* 172F7C 8024A55C 24A57304 */ addiu $a1, $a1, %lo(filemenu_update_show_options_left) -/* 172F80 8024A560 0C051A8B */ jal set_window_update -/* 172F84 8024A564 24040033 */ addiu $a0, $zero, 0x33 -/* 172F88 8024A568 3C058024 */ lui $a1, %hi(filemenu_update_show_options_right) -/* 172F8C 8024A56C 24A57378 */ addiu $a1, $a1, %lo(filemenu_update_show_options_right) -/* 172F90 8024A570 0C051A8B */ jal set_window_update -/* 172F94 8024A574 24040034 */ addiu $a0, $zero, 0x34 -/* 172F98 8024A578 24040035 */ addiu $a0, $zero, 0x35 -/* 172F9C 8024A57C 3C108024 */ lui $s0, %hi(filemenu_update_show_options_bottom) -/* 172FA0 8024A580 261073EC */ addiu $s0, $s0, %lo(filemenu_update_show_options_bottom) -/* 172FA4 8024A584 0C051A8B */ jal set_window_update -/* 172FA8 8024A588 0200282D */ daddu $a1, $s0, $zero -/* 172FAC 8024A58C 24040037 */ addiu $a0, $zero, 0x37 -/* 172FB0 8024A590 0C051A8B */ jal set_window_update -/* 172FB4 8024A594 0200282D */ daddu $a1, $s0, $zero -/* 172FB8 8024A598 0260202D */ daddu $a0, $s3, $zero -/* 172FBC 8024A59C 0000282D */ daddu $a1, $zero, $zero -/* 172FC0 8024A5A0 08092A4D */ j .Lfilemenu_8024A934 -/* 172FC4 8024A5A4 24060001 */ addiu $a2, $zero, 0x1 -.Lfilemenu_8024A5A8: -/* 172FC8 8024A5A8 104000E4 */ beqz $v0, .Lfilemenu_8024A93C -/* 172FCC 8024A5AC 00000000 */ nop -/* 172FD0 8024A5B0 92620003 */ lbu $v0, 0x3($s3) -/* 172FD4 8024A5B4 3C018007 */ lui $at, %hi(gSaveSlotHasData) -/* 172FD8 8024A5B8 00220821 */ addu $at, $at, $v0 -/* 172FDC 8024A5BC 90223D74 */ lbu $v0, %lo(gSaveSlotHasData)($at) -/* 172FE0 8024A5C0 1040001B */ beqz $v0, .Lfilemenu_8024A630 -/* 172FE4 8024A5C4 00000000 */ nop -/* 172FE8 8024A5C8 0C052219 */ jal sfx_play_sound -/* 172FEC 8024A5CC 240400C9 */ addiu $a0, $zero, 0xC9 -/* 172FF0 8024A5D0 92630003 */ lbu $v1, 0x3($s3) -/* 172FF4 8024A5D4 24020003 */ addiu $v0, $zero, 0x3 -/* 172FF8 8024A5D8 A2620004 */ sb $v0, 0x4($s3) -/* 172FFC 8024A5DC 3C018025 */ lui $at, %hi(filemenu_loadedFileIdx) -/* 173000 8024A5E0 AC231754 */ sw $v1, %lo(filemenu_loadedFileIdx)($at) -/* 173004 8024A5E4 08092A4F */ j .Lfilemenu_8024A93C -/* 173008 8024A5E8 00000000 */ nop -.Lfilemenu_8024A5EC: -/* 17300C 8024A5EC 92630003 */ lbu $v1, 0x3($s3) -/* 173010 8024A5F0 14620008 */ bne $v1, $v0, .Lfilemenu_8024A614 -/* 173014 8024A5F4 2C620004 */ sltiu $v0, $v1, 0x4 -/* 173018 8024A5F8 0C052219 */ jal sfx_play_sound -/* 17301C 8024A5FC 240400C9 */ addiu $a0, $zero, 0xC9 -/* 173020 8024A600 A2700004 */ sb $s0, 0x4($s3) -/* 173024 8024A604 0260202D */ daddu $a0, $s3, $zero -/* 173028 8024A608 0000282D */ daddu $a1, $zero, $zero -/* 17302C 8024A60C 08092A4D */ j .Lfilemenu_8024A934 -/* 173030 8024A610 24060002 */ addiu $a2, $zero, 0x2 -.Lfilemenu_8024A614: -/* 173034 8024A614 104000C9 */ beqz $v0, .Lfilemenu_8024A93C -/* 173038 8024A618 00000000 */ nop -/* 17303C 8024A61C 92630003 */ lbu $v1, 0x3($s3) -/* 173040 8024A620 3C028025 */ lui $v0, %hi(filemenu_loadedFileIdx) -/* 173044 8024A624 8C421754 */ lw $v0, %lo(filemenu_loadedFileIdx)($v0) -/* 173048 8024A628 14430005 */ bne $v0, $v1, .Lfilemenu_8024A640 -/* 17304C 8024A62C 00000000 */ nop -.Lfilemenu_8024A630: -/* 173050 8024A630 0C052219 */ jal sfx_play_sound -/* 173054 8024A634 2404021D */ addiu $a0, $zero, 0x21D -/* 173058 8024A638 08092A4F */ j .Lfilemenu_8024A93C -/* 17305C 8024A63C 00000000 */ nop -.Lfilemenu_8024A640: -/* 173060 8024A640 3C018025 */ lui $at, 0x8025 -/* 173064 8024A644 AC231740 */ sw $v1, (0x80251740 & 0xFFFF)($at) -/* 173068 8024A648 92620003 */ lbu $v0, 0x3($s3) -/* 17306C 8024A64C 3C018007 */ lui $at, %hi(gSaveSlotHasData) -/* 173070 8024A650 00220821 */ addu $at, $at, $v0 -/* 173074 8024A654 90223D74 */ lbu $v0, %lo(gSaveSlotHasData)($at) -/* 173078 8024A658 1440006C */ bnez $v0, .Lfilemenu_8024A80C -/* 17307C 8024A65C 00000000 */ nop -/* 173080 8024A660 0C052219 */ jal sfx_play_sound -/* 173084 8024A664 240400C9 */ addiu $a0, $zero, 0xC9 -/* 173088 8024A668 3C028025 */ lui $v0, %hi(filemenu_menus+0x8) -/* 17308C 8024A66C 8C42E98C */ lw $v0, %lo(filemenu_menus+0x8)($v0) -/* 173090 8024A670 3C048016 */ lui $a0, %hi(gWindows) -/* 173094 8024A674 24848910 */ addiu $a0, $a0, %lo(gWindows) -/* 173098 8024A678 3C018025 */ lui $at, %hi(filemenu_currentMenu) -/* 17309C 8024A67C A0301758 */ sb $s0, %lo(filemenu_currentMenu)($at) -/* 1730A0 8024A680 A0510004 */ sb $s1, 0x4($v0) -/* 1730A4 8024A684 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 1730A8 8024A688 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 1730AC 8024A68C 3C038025 */ lui $v1, %hi(D_filemenu_80250954) -/* 1730B0 8024A690 00621821 */ addu $v1, $v1, $v0 -/* 1730B4 8024A694 90630954 */ lbu $v1, %lo(D_filemenu_80250954)($v1) -/* 1730B8 8024A698 24020027 */ addiu $v0, $zero, 0x27 -/* 1730BC 8024A69C A48205F2 */ sh $v0, 0x5F2($a0) -/* 1730C0 8024A6A0 00032842 */ srl $a1, $v1, 1 -/* 1730C4 8024A6A4 A48305F0 */ sh $v1, 0x5F0($a0) -/* 1730C8 8024A6A8 808305E3 */ lb $v1, 0x5E3($a0) -/* 1730CC 8024A6AC 2402FFFF */ addiu $v0, $zero, -0x1 -/* 1730D0 8024A6B0 1062000B */ beq $v1, $v0, .Lfilemenu_8024A6E0 -/* 1730D4 8024A6B4 248605EC */ addiu $a2, $a0, 0x5EC -/* 1730D8 8024A6B8 00031140 */ sll $v0, $v1, 5 -/* 1730DC 8024A6BC 00441021 */ addu $v0, $v0, $a0 -/* 1730E0 8024A6C0 94420010 */ lhu $v0, 0x10($v0) -/* 1730E4 8024A6C4 00021400 */ sll $v0, $v0, 16 -/* 1730E8 8024A6C8 00021C03 */ sra $v1, $v0, 16 -/* 1730EC 8024A6CC 000217C2 */ srl $v0, $v0, 31 -/* 1730F0 8024A6D0 00621821 */ addu $v1, $v1, $v0 -/* 1730F4 8024A6D4 00031843 */ sra $v1, $v1, 1 -/* 1730F8 8024A6D8 080929BC */ j .Lfilemenu_8024A6F0 -/* 1730FC 8024A6DC 00651023 */ subu $v0, $v1, $a1 -.Lfilemenu_8024A6E0: -/* 173100 8024A6E0 240200A0 */ addiu $v0, $zero, 0xA0 -/* 173104 8024A6E4 00451023 */ subu $v0, $v0, $a1 -/* 173108 8024A6E8 3C048016 */ lui $a0, %hi(gWindows) -/* 17310C 8024A6EC 24848910 */ addiu $a0, $a0, %lo(gWindows) -.Lfilemenu_8024A6F0: -/* 173110 8024A6F0 A4C20000 */ sh $v0, 0x0($a2) -/* 173114 8024A6F4 948205F2 */ lhu $v0, 0x5F2($a0) -/* 173118 8024A6F8 00021400 */ sll $v0, $v0, 16 -/* 17311C 8024A6FC 00021C03 */ sra $v1, $v0, 16 -/* 173120 8024A700 000217C2 */ srl $v0, $v0, 31 -/* 173124 8024A704 00621821 */ addu $v1, $v1, $v0 -/* 173128 8024A708 00032843 */ sra $a1, $v1, 1 -/* 17312C 8024A70C 808305E3 */ lb $v1, 0x5E3($a0) -/* 173130 8024A710 2402FFFF */ addiu $v0, $zero, -0x1 -/* 173134 8024A714 1062000B */ beq $v1, $v0, .Lfilemenu_8024A744 -/* 173138 8024A718 248605EE */ addiu $a2, $a0, 0x5EE -/* 17313C 8024A71C 00031140 */ sll $v0, $v1, 5 -/* 173140 8024A720 00441021 */ addu $v0, $v0, $a0 -/* 173144 8024A724 94420012 */ lhu $v0, 0x12($v0) -/* 173148 8024A728 00021400 */ sll $v0, $v0, 16 -/* 17314C 8024A72C 00021C03 */ sra $v1, $v0, 16 -/* 173150 8024A730 000217C2 */ srl $v0, $v0, 31 -/* 173154 8024A734 00621821 */ addu $v1, $v1, $v0 -/* 173158 8024A738 00031843 */ sra $v1, $v1, 1 -/* 17315C 8024A73C 080929D3 */ j .Lfilemenu_8024A74C -/* 173160 8024A740 00651023 */ subu $v0, $v1, $a1 -.Lfilemenu_8024A744: -/* 173164 8024A744 24020078 */ addiu $v0, $zero, 0x78 -/* 173168 8024A748 00451023 */ subu $v0, $v0, $a1 -.Lfilemenu_8024A74C: -/* 17316C 8024A74C 2404002F */ addiu $a0, $zero, 0x2F -/* 173170 8024A750 24050001 */ addiu $a1, $zero, 0x1 -/* 173174 8024A754 0C051A8B */ jal set_window_update -/* 173178 8024A758 A4C20000 */ sh $v0, 0x0($a2) -/* 17317C 8024A75C 24040032 */ addiu $a0, $zero, 0x32 -/* 173180 8024A760 0C051A8B */ jal set_window_update -/* 173184 8024A764 24050002 */ addiu $a1, $zero, 0x2 -/* 173188 8024A768 3C118025 */ lui $s1, %hi(filemenu_loadedFileIdx) -/* 17318C 8024A76C 26311754 */ addiu $s1, $s1, %lo(filemenu_loadedFileIdx) -/* 173190 8024A770 0C00ACD3 */ jal fio_load_game -/* 173194 8024A774 8E240000 */ lw $a0, 0x0($s1) -/* 173198 8024A778 10400070 */ beqz $v0, .Lfilemenu_8024A93C -/* 17319C 8024A77C 00000000 */ nop -/* 1731A0 8024A780 3C108025 */ lui $s0, 0x8025 -/* 1731A4 8024A784 26101740 */ addiu $s0, $s0, (0x80251740 & 0xFFFF) -/* 1731A8 8024A788 3C068007 */ lui $a2, %hi(gSaveSlotMetadata) -/* 1731AC 8024A78C 24C63D14 */ addiu $a2, $a2, %lo(gSaveSlotMetadata) -/* 1731B0 8024A790 8E040000 */ lw $a0, 0x0($s0) -/* 1731B4 8024A794 8E250000 */ lw $a1, 0x0($s1) -/* 1731B8 8024A798 0080102D */ daddu $v0, $a0, $zero -/* 1731BC 8024A79C 00041840 */ sll $v1, $a0, 1 -/* 1731C0 8024A7A0 00621821 */ addu $v1, $v1, $v0 -/* 1731C4 8024A7A4 000318C0 */ sll $v1, $v1, 3 -/* 1731C8 8024A7A8 00661821 */ addu $v1, $v1, $a2 -/* 1731CC 8024A7AC 00051040 */ sll $v0, $a1, 1 -/* 1731D0 8024A7B0 00451021 */ addu $v0, $v0, $a1 -/* 1731D4 8024A7B4 000210C0 */ sll $v0, $v0, 3 -/* 1731D8 8024A7B8 00461021 */ addu $v0, $v0, $a2 -/* 1731DC 8024A7BC 8C480000 */ lw $t0, 0x0($v0) -/* 1731E0 8024A7C0 8C490004 */ lw $t1, 0x4($v0) -/* 1731E4 8024A7C4 8C4A0008 */ lw $t2, 0x8($v0) -/* 1731E8 8024A7C8 8C4B000C */ lw $t3, 0xC($v0) -/* 1731EC 8024A7CC AC680000 */ sw $t0, 0x0($v1) -/* 1731F0 8024A7D0 AC690004 */ sw $t1, 0x4($v1) -/* 1731F4 8024A7D4 AC6A0008 */ sw $t2, 0x8($v1) -/* 1731F8 8024A7D8 AC6B000C */ sw $t3, 0xC($v1) -/* 1731FC 8024A7DC 8C480010 */ lw $t0, 0x10($v0) -/* 173200 8024A7E0 8C490014 */ lw $t1, 0x14($v0) -/* 173204 8024A7E4 AC680010 */ sw $t0, 0x10($v1) -/* 173208 8024A7E8 0C00AD07 */ jal fio_save_game -/* 17320C 8024A7EC AC690014 */ sw $t1, 0x14($v1) -/* 173210 8024A7F0 8E030000 */ lw $v1, 0x0($s0) -/* 173214 8024A7F4 24020001 */ addiu $v0, $zero, 0x1 -/* 173218 8024A7F8 3C018007 */ lui $at, %hi(gSaveSlotHasData) -/* 17321C 8024A7FC 00230821 */ addu $at, $at, $v1 -/* 173220 8024A800 A0223D74 */ sb $v0, %lo(gSaveSlotHasData)($at) -/* 173224 8024A804 08092A4F */ j .Lfilemenu_8024A93C -/* 173228 8024A808 00000000 */ nop -.Lfilemenu_8024A80C: -/* 17322C 8024A80C 0C052219 */ jal sfx_play_sound -/* 173230 8024A810 240400C9 */ addiu $a0, $zero, 0xC9 -/* 173234 8024A814 3C058024 */ lui $a1, %hi(filemenu_update_show_name_confirm) -/* 173238 8024A818 24A57BDC */ addiu $a1, $a1, %lo(filemenu_update_show_name_confirm) -/* 17323C 8024A81C 0C051A8B */ jal set_window_update -/* 173240 8024A820 24040032 */ addiu $a0, $zero, 0x32 -/* 173244 8024A824 3C048016 */ lui $a0, %hi(gWindows) -/* 173248 8024A828 24848910 */ addiu $a0, $a0, %lo(gWindows) -/* 17324C 8024A82C 24020079 */ addiu $v0, $zero, 0x79 -/* 173250 8024A830 A482064E */ sh $v0, 0x64E($a0) -/* 173254 8024A834 24020045 */ addiu $v0, $zero, 0x45 -/* 173258 8024A838 A4820650 */ sh $v0, 0x650($a0) -/* 17325C 8024A83C 2402002C */ addiu $v0, $zero, 0x2C -/* 173260 8024A840 80830643 */ lb $v1, 0x643($a0) -/* 173264 8024A844 A4820652 */ sh $v0, 0x652($a0) -/* 173268 8024A848 2402FFFF */ addiu $v0, $zero, -0x1 -/* 17326C 8024A84C 1062000B */ beq $v1, $v0, .Lfilemenu_8024A87C -/* 173270 8024A850 2485064C */ addiu $a1, $a0, 0x64C -/* 173274 8024A854 00031140 */ sll $v0, $v1, 5 -/* 173278 8024A858 00441021 */ addu $v0, $v0, $a0 -/* 17327C 8024A85C 94420010 */ lhu $v0, 0x10($v0) -/* 173280 8024A860 00021400 */ sll $v0, $v0, 16 -/* 173284 8024A864 00021C03 */ sra $v1, $v0, 16 -/* 173288 8024A868 000217C2 */ srl $v0, $v0, 31 -/* 17328C 8024A86C 00621821 */ addu $v1, $v1, $v0 -/* 173290 8024A870 00031843 */ sra $v1, $v1, 1 -/* 173294 8024A874 08092A20 */ j .Lfilemenu_8024A880 -/* 173298 8024A878 2463FFDE */ addiu $v1, $v1, -0x22 -.Lfilemenu_8024A87C: -/* 17329C 8024A87C 2403007E */ addiu $v1, $zero, 0x7E -.Lfilemenu_8024A880: -/* 1732A0 8024A880 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 1732A4 8024A884 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 1732A8 8024A888 3C048016 */ lui $a0, %hi(gWindows) -/* 1732AC 8024A88C 24848910 */ addiu $a0, $a0, %lo(gWindows) -/* 1732B0 8024A890 A4A30000 */ sh $v1, 0x0($a1) -/* 1732B4 8024A894 2403FFD5 */ addiu $v1, $zero, -0x2B -/* 1732B8 8024A898 A48305CE */ sh $v1, 0x5CE($a0) -/* 1732BC 8024A89C 24030027 */ addiu $v1, $zero, 0x27 -/* 1732C0 8024A8A0 00021040 */ sll $v0, $v0, 1 -/* 1732C4 8024A8A4 3C018025 */ lui $at, %hi(D_filemenu_80250940) -/* 1732C8 8024A8A8 00220821 */ addu $at, $at, $v0 -/* 1732CC 8024A8AC 94220940 */ lhu $v0, %lo(D_filemenu_80250940)($at) -/* 1732D0 8024A8B0 A48305D2 */ sh $v1, 0x5D2($a0) -/* 1732D4 8024A8B4 A48205D0 */ sh $v0, 0x5D0($a0) -/* 1732D8 8024A8B8 00021400 */ sll $v0, $v0, 16 -/* 1732DC 8024A8BC 00021C03 */ sra $v1, $v0, 16 -/* 1732E0 8024A8C0 000217C2 */ srl $v0, $v0, 31 -/* 1732E4 8024A8C4 00621821 */ addu $v1, $v1, $v0 -/* 1732E8 8024A8C8 00032843 */ sra $a1, $v1, 1 -/* 1732EC 8024A8CC 808305C3 */ lb $v1, 0x5C3($a0) -/* 1732F0 8024A8D0 2402FFFF */ addiu $v0, $zero, -0x1 -/* 1732F4 8024A8D4 1062000B */ beq $v1, $v0, .Lfilemenu_8024A904 -/* 1732F8 8024A8D8 248705CC */ addiu $a3, $a0, 0x5CC -/* 1732FC 8024A8DC 00031140 */ sll $v0, $v1, 5 -/* 173300 8024A8E0 00441021 */ addu $v0, $v0, $a0 -/* 173304 8024A8E4 94420010 */ lhu $v0, 0x10($v0) -/* 173308 8024A8E8 00021400 */ sll $v0, $v0, 16 -/* 17330C 8024A8EC 00021C03 */ sra $v1, $v0, 16 -/* 173310 8024A8F0 000217C2 */ srl $v0, $v0, 31 -/* 173314 8024A8F4 00621821 */ addu $v1, $v1, $v0 -/* 173318 8024A8F8 00031843 */ sra $v1, $v1, 1 -/* 17331C 8024A8FC 08092A43 */ j .Lfilemenu_8024A90C -/* 173320 8024A900 00651023 */ subu $v0, $v1, $a1 -.Lfilemenu_8024A904: -/* 173324 8024A904 240200A0 */ addiu $v0, $zero, 0xA0 -/* 173328 8024A908 00451023 */ subu $v0, $v0, $a1 -.Lfilemenu_8024A90C: -/* 17332C 8024A90C 0000282D */ daddu $a1, $zero, $zero -/* 173330 8024A910 24060001 */ addiu $a2, $zero, 0x1 -/* 173334 8024A914 A4E20000 */ sh $v0, 0x0($a3) -/* 173338 8024A918 3C048025 */ lui $a0, %hi(filemenu_menus+0x4) -/* 17333C 8024A91C 8C84E988 */ lw $a0, %lo(filemenu_menus+0x4)($a0) -/* 173340 8024A920 00C0102D */ daddu $v0, $a2, $zero -/* 173344 8024A924 3C018025 */ lui $at, %hi(filemenu_currentMenu) -/* 173348 8024A928 A0221758 */ sb $v0, %lo(filemenu_currentMenu)($at) -/* 17334C 8024A92C 24020002 */ addiu $v0, $zero, 0x2 -.Lfilemenu_8024A930: -/* 173350 8024A930 A0820004 */ sb $v0, 0x4($a0) -.Lfilemenu_8024A934: -/* 173354 8024A934 0C091B29 */ jal filemenu_set_selected -/* 173358 8024A938 00000000 */ nop -.Lfilemenu_8024A93C: -/* 17335C 8024A93C 3C028025 */ lui $v0, %hi(filemenu_pressedButtons) -/* 173360 8024A940 8C421744 */ lw $v0, %lo(filemenu_pressedButtons)($v0) -/* 173364 8024A944 30424000 */ andi $v0, $v0, 0x4000 -/* 173368 8024A948 10400081 */ beqz $v0, .Lfilemenu_8024AB50 -/* 17336C 8024A94C 00000000 */ nop -/* 173370 8024A950 82620004 */ lb $v0, 0x4($s3) -/* 173374 8024A954 14400003 */ bnez $v0, .Lfilemenu_8024A964 -/* 173378 8024A958 0260202D */ daddu $a0, $s3, $zero -/* 17337C 8024A95C 08092A5E */ j .Lfilemenu_8024A978 -/* 173380 8024A960 24050002 */ addiu $a1, $zero, 0x2 -.Lfilemenu_8024A964: -/* 173384 8024A964 04400006 */ bltz $v0, .Lfilemenu_8024A980 -/* 173388 8024A968 28420004 */ slti $v0, $v0, 0x4 -/* 17338C 8024A96C 10400004 */ beqz $v0, .Lfilemenu_8024A980 -/* 173390 8024A970 0260202D */ daddu $a0, $s3, $zero -/* 173394 8024A974 24050001 */ addiu $a1, $zero, 0x1 -.Lfilemenu_8024A978: -/* 173398 8024A978 0C091B29 */ jal filemenu_set_selected -/* 17339C 8024A97C 24060002 */ addiu $a2, $zero, 0x2 -.Lfilemenu_8024A980: -/* 1733A0 8024A980 82630004 */ lb $v1, 0x4($s3) -/* 1733A4 8024A984 24020001 */ addiu $v0, $zero, 0x1 -/* 1733A8 8024A988 10620037 */ beq $v1, $v0, .Lfilemenu_8024AA68 -/* 1733AC 8024A98C 28620002 */ slti $v0, $v1, 0x2 -/* 1733B0 8024A990 10400005 */ beqz $v0, .Lfilemenu_8024A9A8 -/* 1733B4 8024A994 24040002 */ addiu $a0, $zero, 0x2 -/* 1733B8 8024A998 10600009 */ beqz $v1, .Lfilemenu_8024A9C0 -/* 1733BC 8024A99C 24040033 */ addiu $a0, $zero, 0x33 -/* 1733C0 8024A9A0 08092AD4 */ j .Lfilemenu_8024AB50 -/* 1733C4 8024A9A4 00000000 */ nop -.Lfilemenu_8024A9A8: -/* 1733C8 8024A9A8 10640046 */ beq $v1, $a0, .Lfilemenu_8024AAC4 -/* 1733CC 8024A9AC 24020003 */ addiu $v0, $zero, 0x3 -/* 1733D0 8024A9B0 5062005B */ beql $v1, $v0, .Lfilemenu_8024AB20 -/* 1733D4 8024A9B4 A2640004 */ sb $a0, 0x4($s3) -/* 1733D8 8024A9B8 08092AD4 */ j .Lfilemenu_8024AB50 -/* 1733DC 8024A9BC 00000000 */ nop -.Lfilemenu_8024A9C0: -/* 1733E0 8024A9C0 3C128024 */ lui $s2, %hi(filemenu_update_hidden_options_left) -/* 1733E4 8024A9C4 2652759C */ addiu $s2, $s2, %lo(filemenu_update_hidden_options_left) -/* 1733E8 8024A9C8 0C051A8B */ jal set_window_update -/* 1733EC 8024A9CC 0240282D */ daddu $a1, $s2, $zero -/* 1733F0 8024A9D0 24040034 */ addiu $a0, $zero, 0x34 -/* 1733F4 8024A9D4 3C118024 */ lui $s1, %hi(filemenu_update_hidden_options_right) -/* 1733F8 8024A9D8 26317600 */ addiu $s1, $s1, %lo(filemenu_update_hidden_options_right) -/* 1733FC 8024A9DC 0C051A8B */ jal set_window_update -/* 173400 8024A9E0 0220282D */ daddu $a1, $s1, $zero -/* 173404 8024A9E4 24040035 */ addiu $a0, $zero, 0x35 -/* 173408 8024A9E8 3C108024 */ lui $s0, %hi(filemenu_update_hidden_options_bottom) -/* 17340C 8024A9EC 261076C8 */ addiu $s0, $s0, %lo(filemenu_update_hidden_options_bottom) -/* 173410 8024A9F0 0C051A8B */ jal set_window_update -/* 173414 8024A9F4 0200282D */ daddu $a1, $s0, $zero -/* 173418 8024A9F8 24040036 */ addiu $a0, $zero, 0x36 -/* 17341C 8024A9FC 0C051A8B */ jal set_window_update -/* 173420 8024AA00 0200282D */ daddu $a1, $s0, $zero -/* 173424 8024AA04 24040037 */ addiu $a0, $zero, 0x37 -/* 173428 8024AA08 0C051A8B */ jal set_window_update -/* 17342C 8024AA0C 0200282D */ daddu $a1, $s0, $zero -/* 173430 8024AA10 24040038 */ addiu $a0, $zero, 0x38 -/* 173434 8024AA14 0C051A8B */ jal set_window_update -/* 173438 8024AA18 0240282D */ daddu $a1, $s2, $zero -/* 17343C 8024AA1C 24040039 */ addiu $a0, $zero, 0x39 -/* 173440 8024AA20 0C051A8B */ jal set_window_update -/* 173444 8024AA24 0220282D */ daddu $a1, $s1, $zero -/* 173448 8024AA28 2404003A */ addiu $a0, $zero, 0x3A -/* 17344C 8024AA2C 0C051A8B */ jal set_window_update -/* 173450 8024AA30 0240282D */ daddu $a1, $s2, $zero -/* 173454 8024AA34 2404003B */ addiu $a0, $zero, 0x3B -/* 173458 8024AA38 0C051A8B */ jal set_window_update -/* 17345C 8024AA3C 0220282D */ daddu $a1, $s1, $zero -/* 173460 8024AA40 3C058024 */ lui $a1, %hi(filemenu_update_hidden_title) -/* 173464 8024AA44 24A57664 */ addiu $a1, $a1, %lo(filemenu_update_hidden_title) -/* 173468 8024AA48 0C051A8B */ jal set_window_update -/* 17346C 8024AA4C 2404002D */ addiu $a0, $zero, 0x2D -/* 173470 8024AA50 0C052219 */ jal sfx_play_sound -/* 173474 8024AA54 240400D6 */ addiu $a0, $zero, 0xD6 -/* 173478 8024AA58 0C00CE04 */ jal set_game_mode -/* 17347C 8024AA5C 2404000F */ addiu $a0, $zero, 0xF -/* 173480 8024AA60 08092AD4 */ j .Lfilemenu_8024AB50 -/* 173484 8024AA64 00000000 */ nop -.Lfilemenu_8024AA68: -/* 173488 8024AA68 A2600004 */ sb $zero, 0x4($s3) -/* 17348C 8024AA6C 0260202D */ daddu $a0, $s3, $zero -/* 173490 8024AA70 0000282D */ daddu $a1, $zero, $zero -/* 173494 8024AA74 0C091B29 */ jal filemenu_set_selected -/* 173498 8024AA78 24060002 */ addiu $a2, $zero, 0x2 -/* 17349C 8024AA7C 3C058024 */ lui $a1, %hi(filemenu_update_show_options_left) -/* 1734A0 8024AA80 24A57304 */ addiu $a1, $a1, %lo(filemenu_update_show_options_left) -/* 1734A4 8024AA84 0C051A8B */ jal set_window_update -/* 1734A8 8024AA88 24040033 */ addiu $a0, $zero, 0x33 -/* 1734AC 8024AA8C 3C058024 */ lui $a1, %hi(filemenu_update_show_options_right) -/* 1734B0 8024AA90 24A57378 */ addiu $a1, $a1, %lo(filemenu_update_show_options_right) -/* 1734B4 8024AA94 0C051A8B */ jal set_window_update -/* 1734B8 8024AA98 24040034 */ addiu $a0, $zero, 0x34 -/* 1734BC 8024AA9C 24040035 */ addiu $a0, $zero, 0x35 -/* 1734C0 8024AAA0 3C108024 */ lui $s0, %hi(filemenu_update_show_options_bottom) -/* 1734C4 8024AAA4 261073EC */ addiu $s0, $s0, %lo(filemenu_update_show_options_bottom) -/* 1734C8 8024AAA8 0C051A8B */ jal set_window_update -/* 1734CC 8024AAAC 0200282D */ daddu $a1, $s0, $zero -/* 1734D0 8024AAB0 24040037 */ addiu $a0, $zero, 0x37 -/* 1734D4 8024AAB4 0C051A8B */ jal set_window_update -/* 1734D8 8024AAB8 0200282D */ daddu $a1, $s0, $zero -/* 1734DC 8024AABC 08092AD2 */ j .Lfilemenu_8024AB48 -/* 1734E0 8024AAC0 00000000 */ nop -.Lfilemenu_8024AAC4: -/* 1734E4 8024AAC4 A2600004 */ sb $zero, 0x4($s3) -/* 1734E8 8024AAC8 0260202D */ daddu $a0, $s3, $zero -/* 1734EC 8024AACC 24050001 */ addiu $a1, $zero, 0x1 -/* 1734F0 8024AAD0 0C091B29 */ jal filemenu_set_selected -/* 1734F4 8024AAD4 24060002 */ addiu $a2, $zero, 0x2 -/* 1734F8 8024AAD8 3C058024 */ lui $a1, %hi(filemenu_update_show_options_left) -/* 1734FC 8024AADC 24A57304 */ addiu $a1, $a1, %lo(filemenu_update_show_options_left) -/* 173500 8024AAE0 0C051A8B */ jal set_window_update -/* 173504 8024AAE4 24040033 */ addiu $a0, $zero, 0x33 -/* 173508 8024AAE8 3C058024 */ lui $a1, %hi(filemenu_update_show_options_right) -/* 17350C 8024AAEC 24A57378 */ addiu $a1, $a1, %lo(filemenu_update_show_options_right) -/* 173510 8024AAF0 0C051A8B */ jal set_window_update -/* 173514 8024AAF4 24040034 */ addiu $a0, $zero, 0x34 -/* 173518 8024AAF8 24040035 */ addiu $a0, $zero, 0x35 -/* 17351C 8024AAFC 3C108024 */ lui $s0, %hi(filemenu_update_show_options_bottom) -/* 173520 8024AB00 261073EC */ addiu $s0, $s0, %lo(filemenu_update_show_options_bottom) -/* 173524 8024AB04 0C051A8B */ jal set_window_update -/* 173528 8024AB08 0200282D */ daddu $a1, $s0, $zero -/* 17352C 8024AB0C 24040037 */ addiu $a0, $zero, 0x37 -/* 173530 8024AB10 0C051A8B */ jal set_window_update -/* 173534 8024AB14 0200282D */ daddu $a1, $s0, $zero -/* 173538 8024AB18 08092AD2 */ j .Lfilemenu_8024AB48 -/* 17353C 8024AB1C 00000000 */ nop -.Lfilemenu_8024AB20: -/* 173540 8024AB20 3C058025 */ lui $a1, %hi(filemenu_loadedFileIdx) -/* 173544 8024AB24 8CA51754 */ lw $a1, %lo(filemenu_loadedFileIdx)($a1) -/* 173548 8024AB28 0260202D */ daddu $a0, $s3, $zero -/* 17354C 8024AB2C 000537C2 */ srl $a2, $a1, 31 -/* 173550 8024AB30 00A63021 */ addu $a2, $a1, $a2 -/* 173554 8024AB34 00063043 */ sra $a2, $a2, 1 -/* 173558 8024AB38 00061040 */ sll $v0, $a2, 1 -/* 17355C 8024AB3C 00A22823 */ subu $a1, $a1, $v0 -/* 173560 8024AB40 0C091B29 */ jal filemenu_set_selected -/* 173564 8024AB44 00052840 */ sll $a1, $a1, 1 -.Lfilemenu_8024AB48: -/* 173568 8024AB48 0C052219 */ jal sfx_play_sound -/* 17356C 8024AB4C 240400CA */ addiu $a0, $zero, 0xCA -.Lfilemenu_8024AB50: -/* 173570 8024AB50 3C048016 */ lui $a0, %hi(gWindows) -/* 173574 8024AB54 24848910 */ addiu $a0, $a0, %lo(gWindows) -/* 173578 8024AB58 82620004 */ lb $v0, 0x4($s3) -/* 17357C 8024AB5C 3C038015 */ lui $v1, %hi(gCurrentLanguage) -/* 173580 8024AB60 8C63AE4C */ lw $v1, %lo(gCurrentLanguage)($v1) -/* 173584 8024AB64 00021080 */ sll $v0, $v0, 2 -/* 173588 8024AB68 00621821 */ addu $v1, $v1, $v0 -/* 17358C 8024AB6C 3C028025 */ lui $v0, %hi(D_filemenu_80250910) -/* 173590 8024AB70 00431021 */ addu $v0, $v0, $v1 -/* 173594 8024AB74 90420910 */ lbu $v0, %lo(D_filemenu_80250910)($v0) -/* 173598 8024AB78 808305A3 */ lb $v1, 0x5A3($a0) -/* 17359C 8024AB7C 00022842 */ srl $a1, $v0, 1 -/* 1735A0 8024AB80 A48205B0 */ sh $v0, 0x5B0($a0) -/* 1735A4 8024AB84 2402FFFF */ addiu $v0, $zero, -0x1 -/* 1735A8 8024AB88 1062000B */ beq $v1, $v0, .Lfilemenu_8024ABB8 -/* 1735AC 8024AB8C 248605AC */ addiu $a2, $a0, 0x5AC -/* 1735B0 8024AB90 00031140 */ sll $v0, $v1, 5 -/* 1735B4 8024AB94 00441021 */ addu $v0, $v0, $a0 -/* 1735B8 8024AB98 94420010 */ lhu $v0, 0x10($v0) -/* 1735BC 8024AB9C 00021400 */ sll $v0, $v0, 16 -/* 1735C0 8024ABA0 00021C03 */ sra $v1, $v0, 16 -/* 1735C4 8024ABA4 000217C2 */ srl $v0, $v0, 31 -/* 1735C8 8024ABA8 00621821 */ addu $v1, $v1, $v0 -/* 1735CC 8024ABAC 00031843 */ sra $v1, $v1, 1 -/* 1735D0 8024ABB0 08092AF0 */ j .Lfilemenu_8024ABC0 -/* 1735D4 8024ABB4 00651023 */ subu $v0, $v1, $a1 -.Lfilemenu_8024ABB8: -/* 1735D8 8024ABB8 240200A0 */ addiu $v0, $zero, 0xA0 -/* 1735DC 8024ABBC 00451023 */ subu $v0, $v0, $a1 -.Lfilemenu_8024ABC0: -/* 1735E0 8024ABC0 A4C20000 */ sh $v0, 0x0($a2) -/* 1735E4 8024ABC4 8FBF0020 */ lw $ra, 0x20($sp) -/* 1735E8 8024ABC8 8FB3001C */ lw $s3, 0x1C($sp) -/* 1735EC 8024ABCC 8FB20018 */ lw $s2, 0x18($sp) -/* 1735F0 8024ABD0 8FB10014 */ lw $s1, 0x14($sp) -/* 1735F4 8024ABD4 8FB00010 */ lw $s0, 0x10($sp) -/* 1735F8 8024ABD8 03E00008 */ jr $ra -/* 1735FC 8024ABDC 27BD0028 */ addiu $sp, $sp, 0x28 diff --git a/ver/pal/asm/nonmatchings/filemenu/filemenu_yesno/filemenu_yesno_draw_prompt_contents.s b/ver/pal/asm/nonmatchings/filemenu/filemenu_yesno/filemenu_yesno_draw_prompt_contents.s deleted file mode 100644 index c6da54212f2..00000000000 --- a/ver/pal/asm/nonmatchings/filemenu/filemenu_yesno/filemenu_yesno_draw_prompt_contents.s +++ /dev/null @@ -1,290 +0,0 @@ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ - -/* Generated by spimdisasm 1.11.1 */ - -glabel filemenu_yesno_draw_prompt_contents -/* 173908 8024AEE8 27BDFFC0 */ addiu $sp, $sp, -0x40 -/* 17390C 8024AEEC AFB40030 */ sw $s4, 0x30($sp) -/* 173910 8024AEF0 00A0A02D */ daddu $s4, $a1, $zero -/* 173914 8024AEF4 AFB50034 */ sw $s5, 0x34($sp) -/* 173918 8024AEF8 AFBF0038 */ sw $ra, 0x38($sp) -/* 17391C 8024AEFC AFB3002C */ sw $s3, 0x2C($sp) -/* 173920 8024AF00 AFB20028 */ sw $s2, 0x28($sp) -/* 173924 8024AF04 AFB10024 */ sw $s1, 0x24($sp) -/* 173928 8024AF08 AFB00020 */ sw $s0, 0x20($sp) -/* 17392C 8024AF0C 80900004 */ lb $s0, 0x4($a0) -/* 173930 8024AF10 24020001 */ addiu $v0, $zero, 0x1 -/* 173934 8024AF14 12020080 */ beq $s0, $v0, .Lfilemenu_8024B118 -/* 173938 8024AF18 00C0A82D */ daddu $s5, $a2, $zero -/* 17393C 8024AF1C 2A020002 */ slti $v0, $s0, 0x2 -/* 173940 8024AF20 50400005 */ beql $v0, $zero, .Lfilemenu_8024AF38 -/* 173944 8024AF24 24020002 */ addiu $v0, $zero, 0x2 -/* 173948 8024AF28 12000009 */ beqz $s0, .Lfilemenu_8024AF50 -/* 17394C 8024AF2C 00000000 */ nop -/* 173950 8024AF30 08092CC3 */ j .Lfilemenu_8024B30C -/* 173954 8024AF34 00000000 */ nop -.Lfilemenu_8024AF38: -/* 173958 8024AF38 1202003A */ beq $s0, $v0, .Lfilemenu_8024B024 -/* 17395C 8024AF3C 24020003 */ addiu $v0, $zero, 0x3 -/* 173960 8024AF40 120200B8 */ beq $s0, $v0, .Lfilemenu_8024B224 -/* 173964 8024AF44 00000000 */ nop -/* 173968 8024AF48 08092CC3 */ j .Lfilemenu_8024B30C -/* 17396C 8024AF4C 00000000 */ nop -.Lfilemenu_8024AF50: -/* 173970 8024AF50 3C108015 */ lui $s0, %hi(gCurrentLanguage) -/* 173974 8024AF54 2610AE4C */ addiu $s0, $s0, %lo(gCurrentLanguage) -/* 173978 8024AF58 8E020000 */ lw $v0, 0x0($s0) -/* 17397C 8024AF5C 3C138025 */ lui $s3, %hi(D_filemenu_80250924) -/* 173980 8024AF60 02629821 */ addu $s3, $s3, $v0 -/* 173984 8024AF64 92730924 */ lbu $s3, %lo(D_filemenu_80250924)($s3) -/* 173988 8024AF68 0C093A16 */ jal filemenu_get_menu_message -/* 17398C 8024AF6C 2404000F */ addiu $a0, $zero, 0xF -/* 173990 8024AF70 0040202D */ daddu $a0, $v0, $zero -/* 173994 8024AF74 26B10004 */ addiu $s1, $s5, 0x4 -/* 173998 8024AF78 0220302D */ daddu $a2, $s1, $zero -/* 17399C 8024AF7C 240700FF */ addiu $a3, $zero, 0xFF -/* 1739A0 8024AF80 AFA00010 */ sw $zero, 0x10($sp) -/* 1739A4 8024AF84 AFA00014 */ sw $zero, 0x14($sp) -/* 1739A8 8024AF88 0C0939C7 */ jal filemenu_draw_message -/* 1739AC 8024AF8C 02932821 */ addu $a1, $s4, $s3 -/* 1739B0 8024AF90 8E020000 */ lw $v0, 0x0($s0) -/* 1739B4 8024AF94 3C138025 */ lui $s3, %hi(D_filemenu_80250928) -/* 1739B8 8024AF98 02629821 */ addu $s3, $s3, $v0 -/* 1739BC 8024AF9C 92730928 */ lbu $s3, %lo(D_filemenu_80250928)($s3) -/* 1739C0 8024AFA0 0C093A16 */ jal filemenu_get_menu_message -/* 1739C4 8024AFA4 24040013 */ addiu $a0, $zero, 0x13 -/* 1739C8 8024AFA8 0040202D */ daddu $a0, $v0, $zero -/* 1739CC 8024AFAC 0220302D */ daddu $a2, $s1, $zero -/* 1739D0 8024AFB0 240700FF */ addiu $a3, $zero, 0xFF -/* 1739D4 8024AFB4 AFA00010 */ sw $zero, 0x10($sp) -/* 1739D8 8024AFB8 AFA00014 */ sw $zero, 0x14($sp) -/* 1739DC 8024AFBC 0C0939C7 */ jal filemenu_draw_message -/* 1739E0 8024AFC0 02932821 */ addu $a1, $s4, $s3 -/* 1739E4 8024AFC4 26A60006 */ addiu $a2, $s5, 0x6 -/* 1739E8 8024AFC8 0000382D */ daddu $a3, $zero, $zero -/* 1739EC 8024AFCC 8E020000 */ lw $v0, 0x0($s0) -/* 1739F0 8024AFD0 3C038025 */ lui $v1, %hi(filemenu_menus) -/* 1739F4 8024AFD4 8C63E984 */ lw $v1, %lo(filemenu_menus)($v1) -/* 1739F8 8024AFD8 3C058025 */ lui $a1, %hi(D_filemenu_802508FC) -/* 1739FC 8024AFDC 00A22821 */ addu $a1, $a1, $v0 -/* 173A00 8024AFE0 90A508FC */ lbu $a1, %lo(D_filemenu_802508FC)($a1) -/* 173A04 8024AFE4 90640003 */ lbu $a0, 0x3($v1) -/* 173A08 8024AFE8 240200FF */ addiu $v0, $zero, 0xFF -/* 173A0C 8024AFEC AFA20014 */ sw $v0, 0x14($sp) -/* 173A10 8024AFF0 24020003 */ addiu $v0, $zero, 0x3 -/* 173A14 8024AFF4 AFA00010 */ sw $zero, 0x10($sp) -/* 173A18 8024AFF8 AFA20018 */ sw $v0, 0x18($sp) -/* 173A1C 8024AFFC 02659821 */ addu $s3, $s3, $a1 -/* 173A20 8024B000 24840001 */ addiu $a0, $a0, 0x1 -/* 173A24 8024B004 0C04986F */ jal draw_number -/* 173A28 8024B008 02932821 */ addu $a1, $s4, $s3 -/* 173A2C 8024B00C 8E020000 */ lw $v0, 0x0($s0) -/* 173A30 8024B010 3C018025 */ lui $at, %hi(D_filemenu_8025092C) -/* 173A34 8024B014 00220821 */ addu $at, $at, $v0 -/* 173A38 8024B018 9022092C */ lbu $v0, %lo(D_filemenu_8025092C)($at) -/* 173A3C 8024B01C 08092CBA */ j .Lfilemenu_8024B2E8 -/* 173A40 8024B020 24040022 */ addiu $a0, $zero, 0x22 -.Lfilemenu_8024B024: -/* 173A44 8024B024 0C093A16 */ jal filemenu_get_menu_message -/* 173A48 8024B028 2404001B */ addiu $a0, $zero, 0x1B -/* 173A4C 8024B02C 0040202D */ daddu $a0, $v0, $zero -/* 173A50 8024B030 2692000A */ addiu $s2, $s4, 0xA -/* 173A54 8024B034 0240282D */ daddu $a1, $s2, $zero -/* 173A58 8024B038 26B10004 */ addiu $s1, $s5, 0x4 -/* 173A5C 8024B03C 0220302D */ daddu $a2, $s1, $zero -/* 173A60 8024B040 240700FF */ addiu $a3, $zero, 0xFF -/* 173A64 8024B044 AFA00010 */ sw $zero, 0x10($sp) -/* 173A68 8024B048 0C0939C7 */ jal filemenu_draw_message -/* 173A6C 8024B04C AFA00014 */ sw $zero, 0x14($sp) -/* 173A70 8024B050 3C108015 */ lui $s0, %hi(gCurrentLanguage) -/* 173A74 8024B054 2610AE4C */ addiu $s0, $s0, %lo(gCurrentLanguage) -/* 173A78 8024B058 8E020000 */ lw $v0, 0x0($s0) -/* 173A7C 8024B05C 3C018025 */ lui $at, %hi(D_filemenu_80250934) -/* 173A80 8024B060 00220821 */ addu $at, $at, $v0 -/* 173A84 8024B064 90220934 */ lbu $v0, %lo(D_filemenu_80250934)($at) -/* 173A88 8024B068 24040013 */ addiu $a0, $zero, 0x13 -/* 173A8C 8024B06C 0C093A16 */ jal filemenu_get_menu_message -/* 173A90 8024B070 2453000A */ addiu $s3, $v0, 0xA -/* 173A94 8024B074 0040202D */ daddu $a0, $v0, $zero -/* 173A98 8024B078 02932821 */ addu $a1, $s4, $s3 -/* 173A9C 8024B07C 0220302D */ daddu $a2, $s1, $zero -/* 173AA0 8024B080 240700FF */ addiu $a3, $zero, 0xFF -/* 173AA4 8024B084 AFA00010 */ sw $zero, 0x10($sp) -/* 173AA8 8024B088 0C0939C7 */ jal filemenu_draw_message -/* 173AAC 8024B08C AFA00014 */ sw $zero, 0x14($sp) -/* 173AB0 8024B090 26A60006 */ addiu $a2, $s5, 0x6 -/* 173AB4 8024B094 0000382D */ daddu $a3, $zero, $zero -/* 173AB8 8024B098 8E020000 */ lw $v0, 0x0($s0) -/* 173ABC 8024B09C 3C038025 */ lui $v1, %hi(filemenu_menus) -/* 173AC0 8024B0A0 8C63E984 */ lw $v1, %lo(filemenu_menus)($v1) -/* 173AC4 8024B0A4 3C058025 */ lui $a1, %hi(D_filemenu_802508FC) -/* 173AC8 8024B0A8 00A22821 */ addu $a1, $a1, $v0 -/* 173ACC 8024B0AC 90A508FC */ lbu $a1, %lo(D_filemenu_802508FC)($a1) -/* 173AD0 8024B0B0 90640003 */ lbu $a0, 0x3($v1) -/* 173AD4 8024B0B4 240200FF */ addiu $v0, $zero, 0xFF -/* 173AD8 8024B0B8 AFA20014 */ sw $v0, 0x14($sp) -/* 173ADC 8024B0BC 24020003 */ addiu $v0, $zero, 0x3 -/* 173AE0 8024B0C0 AFA00010 */ sw $zero, 0x10($sp) -/* 173AE4 8024B0C4 AFA20018 */ sw $v0, 0x18($sp) -/* 173AE8 8024B0C8 02659821 */ addu $s3, $s3, $a1 -/* 173AEC 8024B0CC 24840001 */ addiu $a0, $a0, 0x1 -/* 173AF0 8024B0D0 0C04986F */ jal draw_number -/* 173AF4 8024B0D4 02932821 */ addu $a1, $s4, $s3 -/* 173AF8 8024B0D8 26730001 */ addiu $s3, $s3, 0x1 -/* 173AFC 8024B0DC 0C093A16 */ jal filemenu_get_menu_message -/* 173B00 8024B0E0 24040015 */ addiu $a0, $zero, 0x15 -/* 173B04 8024B0E4 0040202D */ daddu $a0, $v0, $zero -/* 173B08 8024B0E8 02932821 */ addu $a1, $s4, $s3 -/* 173B0C 8024B0EC 0220302D */ daddu $a2, $s1, $zero -/* 173B10 8024B0F0 240700FF */ addiu $a3, $zero, 0xFF -/* 173B14 8024B0F4 AFA00010 */ sw $zero, 0x10($sp) -/* 173B18 8024B0F8 0C0939C7 */ jal filemenu_draw_message -/* 173B1C 8024B0FC AFA00014 */ sw $zero, 0x14($sp) -/* 173B20 8024B100 0C093A16 */ jal filemenu_get_menu_message -/* 173B24 8024B104 24040016 */ addiu $a0, $zero, 0x16 -/* 173B28 8024B108 0040202D */ daddu $a0, $v0, $zero -/* 173B2C 8024B10C 0240282D */ daddu $a1, $s2, $zero -/* 173B30 8024B110 08092CBF */ j .Lfilemenu_8024B2FC -/* 173B34 8024B114 26A60012 */ addiu $a2, $s5, 0x12 -.Lfilemenu_8024B118: -/* 173B38 8024B118 0C093A16 */ jal filemenu_get_menu_message -/* 173B3C 8024B11C 24040010 */ addiu $a0, $zero, 0x10 -/* 173B40 8024B120 0040202D */ daddu $a0, $v0, $zero -/* 173B44 8024B124 2685000A */ addiu $a1, $s4, 0xA -/* 173B48 8024B128 26A60006 */ addiu $a2, $s5, 0x6 -/* 173B4C 8024B12C 240700FF */ addiu $a3, $zero, 0xFF -/* 173B50 8024B130 AFA00010 */ sw $zero, 0x10($sp) -/* 173B54 8024B134 0C0939C7 */ jal filemenu_draw_message -/* 173B58 8024B138 AFA00014 */ sw $zero, 0x14($sp) -/* 173B5C 8024B13C 24060007 */ addiu $a2, $zero, 0x7 -/* 173B60 8024B140 3C048025 */ lui $a0, %hi(filemenu_filename) -/* 173B64 8024B144 248427E0 */ addiu $a0, $a0, %lo(filemenu_filename) -/* 173B68 8024B148 240300F7 */ addiu $v1, $zero, 0xF7 -/* 173B6C 8024B14C 00C41021 */ addu $v0, $a2, $a0 -.Lfilemenu_8024B150: -/* 173B70 8024B150 90420000 */ lbu $v0, 0x0($v0) -/* 173B74 8024B154 14430005 */ bne $v0, $v1, .Lfilemenu_8024B16C -/* 173B78 8024B158 24D00001 */ addiu $s0, $a2, 0x1 -/* 173B7C 8024B15C 24C6FFFF */ addiu $a2, $a2, -0x1 -/* 173B80 8024B160 04C1FFFB */ bgez $a2, .Lfilemenu_8024B150 -/* 173B84 8024B164 00C41021 */ addu $v0, $a2, $a0 -/* 173B88 8024B168 24D00001 */ addiu $s0, $a2, 0x1 -.Lfilemenu_8024B16C: -/* 173B8C 8024B16C 0200282D */ daddu $a1, $s0, $zero -/* 173B90 8024B170 26B10016 */ addiu $s1, $s5, 0x16 -/* 173B94 8024B174 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 173B98 8024B178 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 173B9C 8024B17C 0220382D */ daddu $a3, $s1, $zero -/* 173BA0 8024B180 3C038025 */ lui $v1, %hi(D_filemenu_80250960) -/* 173BA4 8024B184 00621821 */ addu $v1, $v1, $v0 -/* 173BA8 8024B188 90630960 */ lbu $v1, %lo(D_filemenu_80250960)($v1) -/* 173BAC 8024B18C 240200FF */ addiu $v0, $zero, 0xFF -/* 173BB0 8024B190 AFA20010 */ sw $v0, 0x10($sp) -/* 173BB4 8024B194 24020008 */ addiu $v0, $zero, 0x8 -/* 173BB8 8024B198 AFA20018 */ sw $v0, 0x18($sp) -/* 173BBC 8024B19C 2402000B */ addiu $v0, $zero, 0xB -/* 173BC0 8024B1A0 AFA2001C */ sw $v0, 0x1C($sp) -/* 173BC4 8024B1A4 00061040 */ sll $v0, $a2, 1 -/* 173BC8 8024B1A8 00461021 */ addu $v0, $v0, $a2 -/* 173BCC 8024B1AC 00021080 */ sll $v0, $v0, 2 -/* 173BD0 8024B1B0 00461023 */ subu $v0, $v0, $a2 -/* 173BD4 8024B1B4 24420011 */ addiu $v0, $v0, 0x11 -/* 173BD8 8024B1B8 AFA00014 */ sw $zero, 0x14($sp) -/* 173BDC 8024B1BC 00621823 */ subu $v1, $v1, $v0 -/* 173BE0 8024B1C0 000317C2 */ srl $v0, $v1, 31 -/* 173BE4 8024B1C4 00621821 */ addu $v1, $v1, $v0 -/* 173BE8 8024B1C8 00039843 */ sra $s3, $v1, 1 -/* 173BEC 8024B1CC 0C093A20 */ jal filemenu_draw_file_name -/* 173BF0 8024B1D0 02933021 */ addu $a2, $s4, $s3 -/* 173BF4 8024B1D4 00101040 */ sll $v0, $s0, 1 -/* 173BF8 8024B1D8 00501021 */ addu $v0, $v0, $s0 -/* 173BFC 8024B1DC 00021080 */ sll $v0, $v0, 2 -/* 173C00 8024B1E0 00501023 */ subu $v0, $v0, $s0 -/* 173C04 8024B1E4 02629821 */ addu $s3, $s3, $v0 -/* 173C08 8024B1E8 0C093A16 */ jal filemenu_get_menu_message -/* 173C0C 8024B1EC 24040011 */ addiu $a0, $zero, 0x11 -/* 173C10 8024B1F0 0040202D */ daddu $a0, $v0, $zero -/* 173C14 8024B1F4 02932821 */ addu $a1, $s4, $s3 -/* 173C18 8024B1F8 0220302D */ daddu $a2, $s1, $zero -/* 173C1C 8024B1FC 240700FF */ addiu $a3, $zero, 0xFF -/* 173C20 8024B200 AFA00010 */ sw $zero, 0x10($sp) -/* 173C24 8024B204 0C0939C7 */ jal filemenu_draw_message -/* 173C28 8024B208 AFA00014 */ sw $zero, 0x14($sp) -/* 173C2C 8024B20C 0C093A16 */ jal filemenu_get_menu_message -/* 173C30 8024B210 24040012 */ addiu $a0, $zero, 0x12 -/* 173C34 8024B214 0040202D */ daddu $a0, $v0, $zero -/* 173C38 8024B218 26850046 */ addiu $a1, $s4, 0x46 -/* 173C3C 8024B21C 08092CBF */ j .Lfilemenu_8024B2FC -/* 173C40 8024B220 26A60026 */ addiu $a2, $s5, 0x26 -.Lfilemenu_8024B224: -/* 173C44 8024B224 0C093A16 */ jal filemenu_get_menu_message -/* 173C48 8024B228 24040017 */ addiu $a0, $zero, 0x17 -/* 173C4C 8024B22C 0040202D */ daddu $a0, $v0, $zero -/* 173C50 8024B230 2685000A */ addiu $a1, $s4, 0xA -/* 173C54 8024B234 26B10004 */ addiu $s1, $s5, 0x4 -/* 173C58 8024B238 0220302D */ daddu $a2, $s1, $zero -/* 173C5C 8024B23C 240700FF */ addiu $a3, $zero, 0xFF -/* 173C60 8024B240 AFA00010 */ sw $zero, 0x10($sp) -/* 173C64 8024B244 0C0939C7 */ jal filemenu_draw_message -/* 173C68 8024B248 AFA00014 */ sw $zero, 0x14($sp) -/* 173C6C 8024B24C 3C128015 */ lui $s2, %hi(gCurrentLanguage) -/* 173C70 8024B250 2652AE4C */ addiu $s2, $s2, %lo(gCurrentLanguage) -/* 173C74 8024B254 8E420000 */ lw $v0, 0x0($s2) -/* 173C78 8024B258 1050002C */ beq $v0, $s0, .Lfilemenu_8024B30C -/* 173C7C 8024B25C 24040013 */ addiu $a0, $zero, 0x13 -/* 173C80 8024B260 3C018025 */ lui $at, %hi(D_filemenu_80250908) -/* 173C84 8024B264 00220821 */ addu $at, $at, $v0 -/* 173C88 8024B268 90220908 */ lbu $v0, %lo(D_filemenu_80250908)($at) -/* 173C8C 8024B26C 0C093A16 */ jal filemenu_get_menu_message -/* 173C90 8024B270 2453000A */ addiu $s3, $v0, 0xA -/* 173C94 8024B274 0040202D */ daddu $a0, $v0, $zero -/* 173C98 8024B278 02932821 */ addu $a1, $s4, $s3 -/* 173C9C 8024B27C 0220302D */ daddu $a2, $s1, $zero -/* 173CA0 8024B280 240700FF */ addiu $a3, $zero, 0xFF -/* 173CA4 8024B284 AFA00010 */ sw $zero, 0x10($sp) -/* 173CA8 8024B288 0C0939C7 */ jal filemenu_draw_message -/* 173CAC 8024B28C AFA00014 */ sw $zero, 0x14($sp) -/* 173CB0 8024B290 26A60006 */ addiu $a2, $s5, 0x6 -/* 173CB4 8024B294 0000382D */ daddu $a3, $zero, $zero -/* 173CB8 8024B298 8E420000 */ lw $v0, 0x0($s2) -/* 173CBC 8024B29C 3C038025 */ lui $v1, %hi(filemenu_menus) -/* 173CC0 8024B2A0 8C63E984 */ lw $v1, %lo(filemenu_menus)($v1) -/* 173CC4 8024B2A4 3C058025 */ lui $a1, %hi(D_filemenu_802508F8) -/* 173CC8 8024B2A8 00A22821 */ addu $a1, $a1, $v0 -/* 173CCC 8024B2AC 90A508F8 */ lbu $a1, %lo(D_filemenu_802508F8)($a1) -/* 173CD0 8024B2B0 90640003 */ lbu $a0, 0x3($v1) -/* 173CD4 8024B2B4 240200FF */ addiu $v0, $zero, 0xFF -/* 173CD8 8024B2B8 AFA00010 */ sw $zero, 0x10($sp) -/* 173CDC 8024B2BC AFA20014 */ sw $v0, 0x14($sp) -/* 173CE0 8024B2C0 AFB00018 */ sw $s0, 0x18($sp) -/* 173CE4 8024B2C4 02659821 */ addu $s3, $s3, $a1 -/* 173CE8 8024B2C8 24840001 */ addiu $a0, $a0, 0x1 -/* 173CEC 8024B2CC 0C04986F */ jal draw_number -/* 173CF0 8024B2D0 02932821 */ addu $a1, $s4, $s3 -/* 173CF4 8024B2D4 8E420000 */ lw $v0, 0x0($s2) -/* 173CF8 8024B2D8 3C018025 */ lui $at, %hi(D_filemenu_8025090C) -/* 173CFC 8024B2DC 00220821 */ addu $at, $at, $v0 -/* 173D00 8024B2E0 8022090C */ lb $v0, %lo(D_filemenu_8025090C)($at) -/* 173D04 8024B2E4 24040018 */ addiu $a0, $zero, 0x18 -.Lfilemenu_8024B2E8: -/* 173D08 8024B2E8 0C093A16 */ jal filemenu_get_menu_message -/* 173D0C 8024B2EC 02629821 */ addu $s3, $s3, $v0 -/* 173D10 8024B2F0 0040202D */ daddu $a0, $v0, $zero -/* 173D14 8024B2F4 02932821 */ addu $a1, $s4, $s3 -/* 173D18 8024B2F8 0220302D */ daddu $a2, $s1, $zero -.Lfilemenu_8024B2FC: -/* 173D1C 8024B2FC 240700FF */ addiu $a3, $zero, 0xFF -/* 173D20 8024B300 AFA00010 */ sw $zero, 0x10($sp) -/* 173D24 8024B304 0C0939C7 */ jal filemenu_draw_message -/* 173D28 8024B308 AFA00014 */ sw $zero, 0x14($sp) -.Lfilemenu_8024B30C: -/* 173D2C 8024B30C 8FBF0038 */ lw $ra, 0x38($sp) -/* 173D30 8024B310 8FB50034 */ lw $s5, 0x34($sp) -/* 173D34 8024B314 8FB40030 */ lw $s4, 0x30($sp) -/* 173D38 8024B318 8FB3002C */ lw $s3, 0x2C($sp) -/* 173D3C 8024B31C 8FB20028 */ lw $s2, 0x28($sp) -/* 173D40 8024B320 8FB10024 */ lw $s1, 0x24($sp) -/* 173D44 8024B324 8FB00020 */ lw $s0, 0x20($sp) -/* 173D48 8024B328 03E00008 */ jr $ra -/* 173D4C 8024B32C 27BD0040 */ addiu $sp, $sp, 0x40 diff --git a/ver/pal/asm/nonmatchings/filemenu/filemenu_yesno/filemenu_yesno_handle_input.s b/ver/pal/asm/nonmatchings/filemenu/filemenu_yesno/filemenu_yesno_handle_input.s deleted file mode 100644 index 04cfc6ad19a..00000000000 --- a/ver/pal/asm/nonmatchings/filemenu/filemenu_yesno/filemenu_yesno_handle_input.s +++ /dev/null @@ -1,712 +0,0 @@ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ - -/* Generated by spimdisasm 1.11.1 */ - -glabel filemenu_yesno_handle_input -/* 173DA4 8024B384 27BDFFE0 */ addiu $sp, $sp, -0x20 -/* 173DA8 8024B388 AFB20018 */ sw $s2, 0x18($sp) -/* 173DAC 8024B38C 0080902D */ daddu $s2, $a0, $zero -/* 173DB0 8024B390 3C028025 */ lui $v0, %hi(filemenu_heldButtons) -/* 173DB4 8024B394 8C42174C */ lw $v0, %lo(filemenu_heldButtons)($v0) -/* 173DB8 8024B398 3C030001 */ lui $v1, (0x10000 >> 16) -/* 173DBC 8024B39C AFBF001C */ sw $ra, 0x1C($sp) -/* 173DC0 8024B3A0 AFB10014 */ sw $s1, 0x14($sp) -/* 173DC4 8024B3A4 AFB00010 */ sw $s0, 0x10($sp) -/* 173DC8 8024B3A8 92450003 */ lbu $a1, 0x3($s2) -/* 173DCC 8024B3AC 00431024 */ and $v0, $v0, $v1 -/* 173DD0 8024B3B0 10400007 */ beqz $v0, .Lfilemenu_8024B3D0 -/* 173DD4 8024B3B4 00000000 */ nop -/* 173DD8 8024B3B8 92420002 */ lbu $v0, 0x2($s2) -/* 173DDC 8024B3BC 2442FFFF */ addiu $v0, $v0, -0x1 -/* 173DE0 8024B3C0 A2420002 */ sb $v0, 0x2($s2) -/* 173DE4 8024B3C4 00021600 */ sll $v0, $v0, 24 -/* 173DE8 8024B3C8 04420001 */ bltzl $v0, .Lfilemenu_8024B3D0 -/* 173DEC 8024B3CC A2400002 */ sb $zero, 0x2($s2) -.Lfilemenu_8024B3D0: -/* 173DF0 8024B3D0 3C028025 */ lui $v0, %hi(filemenu_heldButtons) -/* 173DF4 8024B3D4 8C42174C */ lw $v0, %lo(filemenu_heldButtons)($v0) -/* 173DF8 8024B3D8 3C030002 */ lui $v1, (0x20000 >> 16) -/* 173DFC 8024B3DC 00431024 */ and $v0, $v0, $v1 -/* 173E00 8024B3E0 1040000C */ beqz $v0, .Lfilemenu_8024B414 -/* 173E04 8024B3E4 00000000 */ nop -/* 173E08 8024B3E8 92420002 */ lbu $v0, 0x2($s2) -/* 173E0C 8024B3EC 82430006 */ lb $v1, 0x6($s2) -/* 173E10 8024B3F0 24420001 */ addiu $v0, $v0, 0x1 -/* 173E14 8024B3F4 A2420002 */ sb $v0, 0x2($s2) -/* 173E18 8024B3F8 00021600 */ sll $v0, $v0, 24 -/* 173E1C 8024B3FC 00021603 */ sra $v0, $v0, 24 -/* 173E20 8024B400 0043102A */ slt $v0, $v0, $v1 -/* 173E24 8024B404 92430006 */ lbu $v1, 0x6($s2) -/* 173E28 8024B408 14400002 */ bnez $v0, .Lfilemenu_8024B414 -/* 173E2C 8024B40C 2462FFFF */ addiu $v0, $v1, -0x1 -/* 173E30 8024B410 A2420002 */ sb $v0, 0x2($s2) -.Lfilemenu_8024B414: -/* 173E34 8024B414 82420004 */ lb $v0, 0x4($s2) -/* 173E38 8024B418 82430005 */ lb $v1, 0x5($s2) -/* 173E3C 8024B41C 00430018 */ mult $v0, $v1 -/* 173E40 8024B420 00003812 */ mflo $a3 -/* 173E44 8024B424 82420006 */ lb $v0, 0x6($s2) -/* 173E48 8024B428 00000000 */ nop -/* 173E4C 8024B42C 00E20018 */ mult $a3, $v0 -/* 173E50 8024B430 00002012 */ mflo $a0 -/* 173E54 8024B434 82420002 */ lb $v0, 0x2($s2) -/* 173E58 8024B438 00000000 */ nop -/* 173E5C 8024B43C 00620018 */ mult $v1, $v0 -/* 173E60 8024B440 00001812 */ mflo $v1 -/* 173E64 8024B444 00831821 */ addu $v1, $a0, $v1 -/* 173E68 8024B448 82440001 */ lb $a0, 0x1($s2) -/* 173E6C 8024B44C 8E420008 */ lw $v0, 0x8($s2) -/* 173E70 8024B450 00641821 */ addu $v1, $v1, $a0 -/* 173E74 8024B454 00431021 */ addu $v0, $v0, $v1 -/* 173E78 8024B458 90420000 */ lbu $v0, 0x0($v0) -/* 173E7C 8024B45C A2420003 */ sb $v0, 0x3($s2) -/* 173E80 8024B460 304200FF */ andi $v0, $v0, 0xFF -/* 173E84 8024B464 10A20003 */ beq $a1, $v0, .Lfilemenu_8024B474 -/* 173E88 8024B468 00000000 */ nop -/* 173E8C 8024B46C 0C052219 */ jal sfx_play_sound -/* 173E90 8024B470 240400C7 */ addiu $a0, $zero, 0xC7 -.Lfilemenu_8024B474: -/* 173E94 8024B474 3C108025 */ lui $s0, %hi(filemenu_pressedButtons) -/* 173E98 8024B478 26101744 */ addiu $s0, $s0, %lo(filemenu_pressedButtons) -/* 173E9C 8024B47C 8E020000 */ lw $v0, 0x0($s0) -/* 173EA0 8024B480 30421000 */ andi $v0, $v0, 0x1000 -/* 173EA4 8024B484 10400009 */ beqz $v0, .Lfilemenu_8024B4AC -/* 173EA8 8024B488 24020003 */ addiu $v0, $zero, 0x3 -/* 173EAC 8024B48C 82430004 */ lb $v1, 0x4($s2) -/* 173EB0 8024B490 14620006 */ bne $v1, $v0, .Lfilemenu_8024B4AC -/* 173EB4 8024B494 0240202D */ daddu $a0, $s2, $zero -/* 173EB8 8024B498 0000282D */ daddu $a1, $zero, $zero -/* 173EBC 8024B49C 0C091B29 */ jal filemenu_set_selected -/* 173EC0 8024B4A0 00A0302D */ daddu $a2, $a1, $zero -/* 173EC4 8024B4A4 34028000 */ ori $v0, $zero, 0x8000 -/* 173EC8 8024B4A8 AE020000 */ sw $v0, 0x0($s0) -.Lfilemenu_8024B4AC: -/* 173ECC 8024B4AC 3C028025 */ lui $v0, %hi(filemenu_pressedButtons) -/* 173ED0 8024B4B0 8C421744 */ lw $v0, %lo(filemenu_pressedButtons)($v0) -/* 173ED4 8024B4B4 30428000 */ andi $v0, $v0, 0x8000 -/* 173ED8 8024B4B8 104001F0 */ beqz $v0, .Lfilemenu_8024BC7C -/* 173EDC 8024B4BC 00000000 */ nop -/* 173EE0 8024B4C0 0C052219 */ jal sfx_play_sound -/* 173EE4 8024B4C4 240400C9 */ addiu $a0, $zero, 0xC9 -/* 173EE8 8024B4C8 92440003 */ lbu $a0, 0x3($s2) -/* 173EEC 8024B4CC 10800005 */ beqz $a0, .Lfilemenu_8024B4E4 -/* 173EF0 8024B4D0 24020001 */ addiu $v0, $zero, 0x1 -/* 173EF4 8024B4D4 1082019E */ beq $a0, $v0, .Lfilemenu_8024BB50 -/* 173EF8 8024B4D8 00000000 */ nop -/* 173EFC 8024B4DC 08092F1F */ j .Lfilemenu_8024BC7C -/* 173F00 8024B4E0 00000000 */ nop -.Lfilemenu_8024B4E4: -/* 173F04 8024B4E4 82430004 */ lb $v1, 0x4($s2) -/* 173F08 8024B4E8 24040001 */ addiu $a0, $zero, 0x1 -/* 173F0C 8024B4EC 106400D9 */ beq $v1, $a0, .Lfilemenu_8024B854 -/* 173F10 8024B4F0 28620002 */ slti $v0, $v1, 0x2 -/* 173F14 8024B4F4 10400005 */ beqz $v0, .Lfilemenu_8024B50C -/* 173F18 8024B4F8 24020002 */ addiu $v0, $zero, 0x2 -/* 173F1C 8024B4FC 10600009 */ beqz $v1, .Lfilemenu_8024B524 -/* 173F20 8024B500 24020002 */ addiu $v0, $zero, 0x2 -/* 173F24 8024B504 08092F1F */ j .Lfilemenu_8024BC7C -/* 173F28 8024B508 00000000 */ nop -.Lfilemenu_8024B50C: -/* 173F2C 8024B50C 10620067 */ beq $v1, $v0, .Lfilemenu_8024B6AC -/* 173F30 8024B510 24020003 */ addiu $v0, $zero, 0x3 -/* 173F34 8024B514 10620166 */ beq $v1, $v0, .Lfilemenu_8024BAB0 -/* 173F38 8024B518 00000000 */ nop -/* 173F3C 8024B51C 08092F1F */ j .Lfilemenu_8024BC7C -/* 173F40 8024B520 00000000 */ nop -.Lfilemenu_8024B524: -/* 173F44 8024B524 3C038025 */ lui $v1, %hi(filemenu_menus+0x8) -/* 173F48 8024B528 8C63E98C */ lw $v1, %lo(filemenu_menus+0x8)($v1) -/* 173F4C 8024B52C 3C048016 */ lui $a0, %hi(gWindows) -/* 173F50 8024B530 24848910 */ addiu $a0, $a0, %lo(gWindows) -/* 173F54 8024B534 3C018025 */ lui $at, %hi(filemenu_currentMenu) -/* 173F58 8024B538 A0221758 */ sb $v0, %lo(filemenu_currentMenu)($at) -/* 173F5C 8024B53C A0600004 */ sb $zero, 0x4($v1) -/* 173F60 8024B540 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 173F64 8024B544 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 173F68 8024B548 3C038025 */ lui $v1, %hi(D_filemenu_80250930) -/* 173F6C 8024B54C 00621821 */ addu $v1, $v1, $v0 -/* 173F70 8024B550 90630930 */ lbu $v1, %lo(D_filemenu_80250930)($v1) -/* 173F74 8024B554 24020019 */ addiu $v0, $zero, 0x19 -/* 173F78 8024B558 A48205F2 */ sh $v0, 0x5F2($a0) -/* 173F7C 8024B55C 00032842 */ srl $a1, $v1, 1 -/* 173F80 8024B560 A48305F0 */ sh $v1, 0x5F0($a0) -/* 173F84 8024B564 808305E3 */ lb $v1, 0x5E3($a0) -/* 173F88 8024B568 2402FFFF */ addiu $v0, $zero, -0x1 -/* 173F8C 8024B56C 1062000B */ beq $v1, $v0, .Lfilemenu_8024B59C -/* 173F90 8024B570 248605EC */ addiu $a2, $a0, 0x5EC -/* 173F94 8024B574 00031140 */ sll $v0, $v1, 5 -/* 173F98 8024B578 00441021 */ addu $v0, $v0, $a0 -/* 173F9C 8024B57C 94420010 */ lhu $v0, 0x10($v0) -/* 173FA0 8024B580 00021400 */ sll $v0, $v0, 16 -/* 173FA4 8024B584 00021C03 */ sra $v1, $v0, 16 -/* 173FA8 8024B588 000217C2 */ srl $v0, $v0, 31 -/* 173FAC 8024B58C 00621821 */ addu $v1, $v1, $v0 -/* 173FB0 8024B590 00031843 */ sra $v1, $v1, 1 -/* 173FB4 8024B594 08092D6B */ j .Lfilemenu_8024B5AC -/* 173FB8 8024B598 00651023 */ subu $v0, $v1, $a1 -.Lfilemenu_8024B59C: -/* 173FBC 8024B59C 240200A0 */ addiu $v0, $zero, 0xA0 -/* 173FC0 8024B5A0 00451023 */ subu $v0, $v0, $a1 -/* 173FC4 8024B5A4 3C048016 */ lui $a0, %hi(gWindows) -/* 173FC8 8024B5A8 24848910 */ addiu $a0, $a0, %lo(gWindows) -.Lfilemenu_8024B5AC: -/* 173FCC 8024B5AC A4C20000 */ sh $v0, 0x0($a2) -/* 173FD0 8024B5B0 948205F2 */ lhu $v0, 0x5F2($a0) -/* 173FD4 8024B5B4 00021400 */ sll $v0, $v0, 16 -/* 173FD8 8024B5B8 00021C03 */ sra $v1, $v0, 16 -/* 173FDC 8024B5BC 000217C2 */ srl $v0, $v0, 31 -/* 173FE0 8024B5C0 00621821 */ addu $v1, $v1, $v0 -/* 173FE4 8024B5C4 00032843 */ sra $a1, $v1, 1 -/* 173FE8 8024B5C8 808305E3 */ lb $v1, 0x5E3($a0) -/* 173FEC 8024B5CC 2402FFFF */ addiu $v0, $zero, -0x1 -/* 173FF0 8024B5D0 1062000B */ beq $v1, $v0, .Lfilemenu_8024B600 -/* 173FF4 8024B5D4 248605EE */ addiu $a2, $a0, 0x5EE -/* 173FF8 8024B5D8 00031140 */ sll $v0, $v1, 5 -/* 173FFC 8024B5DC 00441021 */ addu $v0, $v0, $a0 -/* 174000 8024B5E0 94420012 */ lhu $v0, 0x12($v0) -/* 174004 8024B5E4 00021400 */ sll $v0, $v0, 16 -/* 174008 8024B5E8 00021C03 */ sra $v1, $v0, 16 -/* 17400C 8024B5EC 000217C2 */ srl $v0, $v0, 31 -/* 174010 8024B5F0 00621821 */ addu $v1, $v1, $v0 -/* 174014 8024B5F4 00031843 */ sra $v1, $v1, 1 -/* 174018 8024B5F8 08092D82 */ j .Lfilemenu_8024B608 -/* 17401C 8024B5FC 00651023 */ subu $v0, $v1, $a1 -.Lfilemenu_8024B600: -/* 174020 8024B600 24020078 */ addiu $v0, $zero, 0x78 -/* 174024 8024B604 00451023 */ subu $v0, $v0, $a1 -.Lfilemenu_8024B608: -/* 174028 8024B608 2404002F */ addiu $a0, $zero, 0x2F -/* 17402C 8024B60C 24050001 */ addiu $a1, $zero, 0x1 -/* 174030 8024B610 0C051A8B */ jal set_window_update -/* 174034 8024B614 A4C20000 */ sh $v0, 0x0($a2) -/* 174038 8024B618 3C058024 */ lui $a1, %hi(filemenu_update_hidden_name_confirm) -/* 17403C 8024B61C 24A57DFC */ addiu $a1, $a1, %lo(filemenu_update_hidden_name_confirm) -/* 174040 8024B620 0C051A8B */ jal set_window_update -/* 174044 8024B624 24040032 */ addiu $a0, $zero, 0x32 -/* 174048 8024B628 0000202D */ daddu $a0, $zero, $zero -/* 17404C 8024B62C 3C028025 */ lui $v0, %hi(filemenu_menus) -/* 174050 8024B630 8C42E984 */ lw $v0, %lo(filemenu_menus)($v0) -/* 174054 8024B634 3C068007 */ lui $a2, %hi(gSaveSlotMetadata) -/* 174058 8024B638 24C63D14 */ addiu $a2, $a2, %lo(gSaveSlotMetadata) -/* 17405C 8024B63C 90500003 */ lbu $s0, 0x3($v0) -/* 174060 8024B640 240500F7 */ addiu $a1, $zero, 0xF7 -/* 174064 8024B644 00101040 */ sll $v0, $s0, 1 -/* 174068 8024B648 00501021 */ addu $v0, $v0, $s0 -/* 17406C 8024B64C 000218C0 */ sll $v1, $v0, 3 -/* 174070 8024B650 00831021 */ addu $v0, $a0, $v1 -.Lfilemenu_8024B654: -/* 174074 8024B654 00461021 */ addu $v0, $v0, $a2 -/* 174078 8024B658 A0450007 */ sb $a1, 0x7($v0) -/* 17407C 8024B65C 24840001 */ addiu $a0, $a0, 0x1 -/* 174080 8024B660 28820008 */ slti $v0, $a0, 0x8 -/* 174084 8024B664 1440FFFB */ bnez $v0, .Lfilemenu_8024B654 -/* 174088 8024B668 00831021 */ addu $v0, $a0, $v1 -/* 17408C 8024B66C 0200202D */ daddu $a0, $s0, $zero -/* 174090 8024B670 3C038007 */ lui $v1, %hi(gSaveSlotMetadata) -/* 174094 8024B674 24633D14 */ addiu $v1, $v1, %lo(gSaveSlotMetadata) -/* 174098 8024B678 00101040 */ sll $v0, $s0, 1 -/* 17409C 8024B67C 00501021 */ addu $v0, $v0, $s0 -/* 1740A0 8024B680 000210C0 */ sll $v0, $v0, 3 -/* 1740A4 8024B684 00431021 */ addu $v0, $v0, $v1 -/* 1740A8 8024B688 A0400006 */ sb $zero, 0x6($v0) -/* 1740AC 8024B68C AC400000 */ sw $zero, 0x0($v0) -/* 1740B0 8024B690 0C00AD44 */ jal fio_erase_game -/* 1740B4 8024B694 A0400004 */ sb $zero, 0x4($v0) -/* 1740B8 8024B698 3C018007 */ lui $at, %hi(gSaveSlotHasData) -/* 1740BC 8024B69C 00300821 */ addu $at, $at, $s0 -/* 1740C0 8024B6A0 A0203D74 */ sb $zero, %lo(gSaveSlotHasData)($at) -/* 1740C4 8024B6A4 08092F1F */ j .Lfilemenu_8024BC7C -/* 1740C8 8024B6A8 00000000 */ nop -.Lfilemenu_8024B6AC: -/* 1740CC 8024B6AC 3C028025 */ lui $v0, %hi(filemenu_menus+0x8) -/* 1740D0 8024B6B0 8C42E98C */ lw $v0, %lo(filemenu_menus+0x8)($v0) -/* 1740D4 8024B6B4 3C018025 */ lui $at, %hi(filemenu_currentMenu) -/* 1740D8 8024B6B8 A0231758 */ sb $v1, %lo(filemenu_currentMenu)($at) -/* 1740DC 8024B6BC A0440004 */ sb $a0, 0x4($v0) -/* 1740E0 8024B6C0 3C048016 */ lui $a0, %hi(gWindows) -/* 1740E4 8024B6C4 24848910 */ addiu $a0, $a0, %lo(gWindows) -/* 1740E8 8024B6C8 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 1740EC 8024B6CC 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 1740F0 8024B6D0 3C038025 */ lui $v1, %hi(D_filemenu_80250954) -/* 1740F4 8024B6D4 00621821 */ addu $v1, $v1, $v0 -/* 1740F8 8024B6D8 90630954 */ lbu $v1, %lo(D_filemenu_80250954)($v1) -/* 1740FC 8024B6DC 24020027 */ addiu $v0, $zero, 0x27 -/* 174100 8024B6E0 A48205F2 */ sh $v0, 0x5F2($a0) -/* 174104 8024B6E4 00032842 */ srl $a1, $v1, 1 -/* 174108 8024B6E8 A48305F0 */ sh $v1, 0x5F0($a0) -/* 17410C 8024B6EC 808305E3 */ lb $v1, 0x5E3($a0) -/* 174110 8024B6F0 2402FFFF */ addiu $v0, $zero, -0x1 -/* 174114 8024B6F4 1062000B */ beq $v1, $v0, .Lfilemenu_8024B724 -/* 174118 8024B6F8 248605EC */ addiu $a2, $a0, 0x5EC -/* 17411C 8024B6FC 00031140 */ sll $v0, $v1, 5 -/* 174120 8024B700 00441021 */ addu $v0, $v0, $a0 -/* 174124 8024B704 94420010 */ lhu $v0, 0x10($v0) -/* 174128 8024B708 00021400 */ sll $v0, $v0, 16 -/* 17412C 8024B70C 00021C03 */ sra $v1, $v0, 16 -/* 174130 8024B710 000217C2 */ srl $v0, $v0, 31 -/* 174134 8024B714 00621821 */ addu $v1, $v1, $v0 -/* 174138 8024B718 00031843 */ sra $v1, $v1, 1 -/* 17413C 8024B71C 08092DCD */ j .Lfilemenu_8024B734 -/* 174140 8024B720 00651023 */ subu $v0, $v1, $a1 -.Lfilemenu_8024B724: -/* 174144 8024B724 240200A0 */ addiu $v0, $zero, 0xA0 -/* 174148 8024B728 00451023 */ subu $v0, $v0, $a1 -/* 17414C 8024B72C 3C048016 */ lui $a0, %hi(gWindows) -/* 174150 8024B730 24848910 */ addiu $a0, $a0, %lo(gWindows) -.Lfilemenu_8024B734: -/* 174154 8024B734 A4C20000 */ sh $v0, 0x0($a2) -/* 174158 8024B738 948205F2 */ lhu $v0, 0x5F2($a0) -/* 17415C 8024B73C 00021400 */ sll $v0, $v0, 16 -/* 174160 8024B740 00021C03 */ sra $v1, $v0, 16 -/* 174164 8024B744 000217C2 */ srl $v0, $v0, 31 -/* 174168 8024B748 00621821 */ addu $v1, $v1, $v0 -/* 17416C 8024B74C 00032843 */ sra $a1, $v1, 1 -/* 174170 8024B750 808305E3 */ lb $v1, 0x5E3($a0) -/* 174174 8024B754 2402FFFF */ addiu $v0, $zero, -0x1 -/* 174178 8024B758 1062000B */ beq $v1, $v0, .Lfilemenu_8024B788 -/* 17417C 8024B75C 248605EE */ addiu $a2, $a0, 0x5EE -/* 174180 8024B760 00031140 */ sll $v0, $v1, 5 -/* 174184 8024B764 00441021 */ addu $v0, $v0, $a0 -/* 174188 8024B768 94420012 */ lhu $v0, 0x12($v0) -/* 17418C 8024B76C 00021400 */ sll $v0, $v0, 16 -/* 174190 8024B770 00021C03 */ sra $v1, $v0, 16 -/* 174194 8024B774 000217C2 */ srl $v0, $v0, 31 -/* 174198 8024B778 00621821 */ addu $v1, $v1, $v0 -/* 17419C 8024B77C 00031843 */ sra $v1, $v1, 1 -/* 1741A0 8024B780 08092DE4 */ j .Lfilemenu_8024B790 -/* 1741A4 8024B784 00651023 */ subu $v0, $v1, $a1 -.Lfilemenu_8024B788: -/* 1741A8 8024B788 24020078 */ addiu $v0, $zero, 0x78 -/* 1741AC 8024B78C 00451023 */ subu $v0, $v0, $a1 -.Lfilemenu_8024B790: -/* 1741B0 8024B790 2404002F */ addiu $a0, $zero, 0x2F -/* 1741B4 8024B794 24050001 */ addiu $a1, $zero, 0x1 -/* 1741B8 8024B798 0C051A8B */ jal set_window_update -/* 1741BC 8024B79C A4C20000 */ sh $v0, 0x0($a2) -/* 1741C0 8024B7A0 3C058024 */ lui $a1, %hi(filemenu_update_hidden_name_confirm) -/* 1741C4 8024B7A4 24A57DFC */ addiu $a1, $a1, %lo(filemenu_update_hidden_name_confirm) -/* 1741C8 8024B7A8 0C051A8B */ jal set_window_update -/* 1741CC 8024B7AC 24040032 */ addiu $a0, $zero, 0x32 -/* 1741D0 8024B7B0 3C118025 */ lui $s1, %hi(filemenu_loadedFileIdx) -/* 1741D4 8024B7B4 26311754 */ addiu $s1, $s1, %lo(filemenu_loadedFileIdx) -/* 1741D8 8024B7B8 0C00ACD3 */ jal fio_load_game -/* 1741DC 8024B7BC 8E240000 */ lw $a0, 0x0($s1) -/* 1741E0 8024B7C0 1040012E */ beqz $v0, .Lfilemenu_8024BC7C -/* 1741E4 8024B7C4 00000000 */ nop -/* 1741E8 8024B7C8 3C108025 */ lui $s0, 0x8025 -/* 1741EC 8024B7CC 26101740 */ addiu $s0, $s0, (0x80251740 & 0xFFFF) -/* 1741F0 8024B7D0 3C068007 */ lui $a2, %hi(gSaveSlotMetadata) -/* 1741F4 8024B7D4 24C63D14 */ addiu $a2, $a2, %lo(gSaveSlotMetadata) -/* 1741F8 8024B7D8 8E040000 */ lw $a0, 0x0($s0) -/* 1741FC 8024B7DC 8E250000 */ lw $a1, 0x0($s1) -/* 174200 8024B7E0 0080102D */ daddu $v0, $a0, $zero -/* 174204 8024B7E4 00041840 */ sll $v1, $a0, 1 -/* 174208 8024B7E8 00621821 */ addu $v1, $v1, $v0 -/* 17420C 8024B7EC 000318C0 */ sll $v1, $v1, 3 -/* 174210 8024B7F0 00661821 */ addu $v1, $v1, $a2 -/* 174214 8024B7F4 00051040 */ sll $v0, $a1, 1 -/* 174218 8024B7F8 00451021 */ addu $v0, $v0, $a1 -/* 17421C 8024B7FC 000210C0 */ sll $v0, $v0, 3 -/* 174220 8024B800 00461021 */ addu $v0, $v0, $a2 -/* 174224 8024B804 8C480000 */ lw $t0, 0x0($v0) -/* 174228 8024B808 8C490004 */ lw $t1, 0x4($v0) -/* 17422C 8024B80C 8C4A0008 */ lw $t2, 0x8($v0) -/* 174230 8024B810 8C4B000C */ lw $t3, 0xC($v0) -/* 174234 8024B814 AC680000 */ sw $t0, 0x0($v1) -/* 174238 8024B818 AC690004 */ sw $t1, 0x4($v1) -/* 17423C 8024B81C AC6A0008 */ sw $t2, 0x8($v1) -/* 174240 8024B820 AC6B000C */ sw $t3, 0xC($v1) -/* 174244 8024B824 8C480010 */ lw $t0, 0x10($v0) -/* 174248 8024B828 8C490014 */ lw $t1, 0x14($v0) -/* 17424C 8024B82C AC680010 */ sw $t0, 0x10($v1) -/* 174250 8024B830 0C00AD07 */ jal fio_save_game -/* 174254 8024B834 AC690014 */ sw $t1, 0x14($v1) -/* 174258 8024B838 8E030000 */ lw $v1, 0x0($s0) -/* 17425C 8024B83C 24020001 */ addiu $v0, $zero, 0x1 -/* 174260 8024B840 3C018007 */ lui $at, %hi(gSaveSlotHasData) -/* 174264 8024B844 00230821 */ addu $at, $at, $v1 -/* 174268 8024B848 A0223D74 */ sb $v0, %lo(gSaveSlotHasData)($at) -/* 17426C 8024B84C 08092F1F */ j .Lfilemenu_8024BC7C -/* 174270 8024B850 00000000 */ nop -.Lfilemenu_8024B854: -/* 174274 8024B854 0C038EC4 */ jal clear_player_data -/* 174278 8024B858 00000000 */ nop -/* 17427C 8024B85C 0C050FB4 */ jal clear_saved_variables -/* 174280 8024B860 00000000 */ nop -/* 174284 8024B864 0000202D */ daddu $a0, $zero, $zero -/* 174288 8024B868 3C05F5DE */ lui $a1, (0xF5DE0180 >> 16) -/* 17428C 8024B86C 34A50180 */ ori $a1, $a1, (0xF5DE0180 & 0xFFFF) -/* 174290 8024B870 2406FF80 */ addiu $a2, $zero, -0x80 -/* 174294 8024B874 3C038007 */ lui $v1, %hi(gGameStatusPtr) -/* 174298 8024B878 8C6314AC */ lw $v1, %lo(gGameStatusPtr)($v1) -/* 17429C 8024B87C 2402000B */ addiu $v0, $zero, 0xB -/* 1742A0 8024B880 A4600086 */ sh $zero, 0x86($v1) -/* 1742A4 8024B884 A462008C */ sh $v0, 0x8C($v1) -/* 1742A8 8024B888 0C0B2C26 */ jal evt_set_variable -/* 1742AC 8024B88C A460008E */ sh $zero, 0x8E($v1) -/* 1742B0 8024B890 0000202D */ daddu $a0, $zero, $zero -/* 1742B4 8024B894 3C028025 */ lui $v0, %hi(filemenu_menus) -/* 1742B8 8024B898 8C42E984 */ lw $v0, %lo(filemenu_menus)($v0) -/* 1742BC 8024B89C 3C078007 */ lui $a3, %hi(gSaveSlotMetadata) -/* 1742C0 8024B8A0 24E73D14 */ addiu $a3, $a3, %lo(gSaveSlotMetadata) -/* 1742C4 8024B8A4 90510003 */ lbu $s1, 0x3($v0) -/* 1742C8 8024B8A8 3C068025 */ lui $a2, %hi(filemenu_filename) -/* 1742CC 8024B8AC 24C627E0 */ addiu $a2, $a2, %lo(filemenu_filename) -/* 1742D0 8024B8B0 00111040 */ sll $v0, $s1, 1 -/* 1742D4 8024B8B4 00511021 */ addu $v0, $v0, $s1 -/* 1742D8 8024B8B8 000228C0 */ sll $a1, $v0, 3 -/* 1742DC 8024B8BC 00851021 */ addu $v0, $a0, $a1 -.Lfilemenu_8024B8C0: -/* 1742E0 8024B8C0 00861821 */ addu $v1, $a0, $a2 -/* 1742E4 8024B8C4 24840001 */ addiu $a0, $a0, 0x1 -/* 1742E8 8024B8C8 90630000 */ lbu $v1, 0x0($v1) -/* 1742EC 8024B8CC 00471021 */ addu $v0, $v0, $a3 -/* 1742F0 8024B8D0 A0430007 */ sb $v1, 0x7($v0) -/* 1742F4 8024B8D4 28820008 */ slti $v0, $a0, 0x8 -/* 1742F8 8024B8D8 1440FFF9 */ bnez $v0, .Lfilemenu_8024B8C0 -/* 1742FC 8024B8DC 00851021 */ addu $v0, $a0, $a1 -/* 174300 8024B8E0 0C00AD07 */ jal fio_save_game -/* 174304 8024B8E4 0220202D */ daddu $a0, $s1, $zero -/* 174308 8024B8E8 24040030 */ addiu $a0, $zero, 0x30 -/* 17430C 8024B8EC 3C108024 */ lui $s0, %hi(filemenu_update_hidden_name_input) -/* 174310 8024B8F0 26107538 */ addiu $s0, $s0, %lo(filemenu_update_hidden_name_input) -/* 174314 8024B8F4 24020001 */ addiu $v0, $zero, 0x1 -/* 174318 8024B8F8 3C018007 */ lui $at, %hi(gSaveSlotHasData) -/* 17431C 8024B8FC 00310821 */ addu $at, $at, $s1 -/* 174320 8024B900 A0223D74 */ sb $v0, %lo(gSaveSlotHasData)($at) -/* 174324 8024B904 0C051A8B */ jal set_window_update -/* 174328 8024B908 0200282D */ daddu $a1, $s0, $zero -/* 17432C 8024B90C 24040031 */ addiu $a0, $zero, 0x31 -/* 174330 8024B910 0C051A8B */ jal set_window_update -/* 174334 8024B914 0200282D */ daddu $a1, $s0, $zero -/* 174338 8024B918 2404002D */ addiu $a0, $zero, 0x2D -/* 17433C 8024B91C 3C108024 */ lui $s0, %hi(filemenu_update_show_with_rotation) -/* 174340 8024B920 2610772C */ addiu $s0, $s0, %lo(filemenu_update_show_with_rotation) -/* 174344 8024B924 0C051A8B */ jal set_window_update -/* 174348 8024B928 0200282D */ daddu $a1, $s0, $zero -/* 17434C 8024B92C 24040033 */ addiu $a0, $zero, 0x33 -/* 174350 8024B930 0C051A8B */ jal set_window_update -/* 174354 8024B934 0200282D */ daddu $a1, $s0, $zero -/* 174358 8024B938 24040034 */ addiu $a0, $zero, 0x34 -/* 17435C 8024B93C 0C051A8B */ jal set_window_update -/* 174360 8024B940 0200282D */ daddu $a1, $s0, $zero -/* 174364 8024B944 24040035 */ addiu $a0, $zero, 0x35 -/* 174368 8024B948 0C051A8B */ jal set_window_update -/* 17436C 8024B94C 0200282D */ daddu $a1, $s0, $zero -/* 174370 8024B950 24040036 */ addiu $a0, $zero, 0x36 -/* 174374 8024B954 0C051A8B */ jal set_window_update -/* 174378 8024B958 0200282D */ daddu $a1, $s0, $zero -/* 17437C 8024B95C 24040037 */ addiu $a0, $zero, 0x37 -/* 174380 8024B960 0C051A8B */ jal set_window_update -/* 174384 8024B964 0200282D */ daddu $a1, $s0, $zero -/* 174388 8024B968 24040035 */ addiu $a0, $zero, 0x35 -/* 17438C 8024B96C 0C051A8B */ jal set_window_update -/* 174390 8024B970 0200282D */ daddu $a1, $s0, $zero -/* 174394 8024B974 24040038 */ addiu $a0, $zero, 0x38 -/* 174398 8024B978 0C051A8B */ jal set_window_update -/* 17439C 8024B97C 0200282D */ daddu $a1, $s0, $zero -/* 1743A0 8024B980 24040039 */ addiu $a0, $zero, 0x39 -/* 1743A4 8024B984 0C051A8B */ jal set_window_update -/* 1743A8 8024B988 0200282D */ daddu $a1, $s0, $zero -/* 1743AC 8024B98C 2404003A */ addiu $a0, $zero, 0x3A -/* 1743B0 8024B990 0C051A8B */ jal set_window_update -/* 1743B4 8024B994 0200282D */ daddu $a1, $s0, $zero -/* 1743B8 8024B998 2404003B */ addiu $a0, $zero, 0x3B -/* 1743BC 8024B99C 0C051A8B */ jal set_window_update -/* 1743C0 8024B9A0 0200282D */ daddu $a1, $s0, $zero -/* 1743C4 8024B9A4 3C058024 */ lui $a1, %hi(filemenu_update_hidden_name_confirm) -/* 1743C8 8024B9A8 24A57DFC */ addiu $a1, $a1, %lo(filemenu_update_hidden_name_confirm) -/* 1743CC 8024B9AC 0C051A8B */ jal set_window_update -/* 1743D0 8024B9B0 24040032 */ addiu $a0, $zero, 0x32 -/* 1743D4 8024B9B4 24020002 */ addiu $v0, $zero, 0x2 -/* 1743D8 8024B9B8 3C018025 */ lui $at, %hi(filemenu_currentMenu) -/* 1743DC 8024B9BC A0221758 */ sb $v0, %lo(filemenu_currentMenu)($at) -/* 1743E0 8024B9C0 24020002 */ addiu $v0, $zero, 0x2 -/* 1743E4 8024B9C4 3C038025 */ lui $v1, %hi(filemenu_menus+0x8) -/* 1743E8 8024B9C8 8C63E98C */ lw $v1, %lo(filemenu_menus+0x8)($v1) -/* 1743EC 8024B9CC 3C048016 */ lui $a0, %hi(gWindows) -/* 1743F0 8024B9D0 24848910 */ addiu $a0, $a0, %lo(gWindows) -/* 1743F4 8024B9D4 A0620004 */ sb $v0, 0x4($v1) -/* 1743F8 8024B9D8 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 1743FC 8024B9DC 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 174400 8024B9E0 3C038025 */ lui $v1, %hi(D_filemenu_80250964) -/* 174404 8024B9E4 00621821 */ addu $v1, $v1, $v0 -/* 174408 8024B9E8 90630964 */ lbu $v1, %lo(D_filemenu_80250964)($v1) -/* 17440C 8024B9EC 24020019 */ addiu $v0, $zero, 0x19 -/* 174410 8024B9F0 A48205F2 */ sh $v0, 0x5F2($a0) -/* 174414 8024B9F4 00032842 */ srl $a1, $v1, 1 -/* 174418 8024B9F8 A48305F0 */ sh $v1, 0x5F0($a0) -/* 17441C 8024B9FC 808305E3 */ lb $v1, 0x5E3($a0) -/* 174420 8024BA00 2402FFFF */ addiu $v0, $zero, -0x1 -/* 174424 8024BA04 1062000B */ beq $v1, $v0, .Lfilemenu_8024BA34 -/* 174428 8024BA08 248605EC */ addiu $a2, $a0, 0x5EC -/* 17442C 8024BA0C 00031140 */ sll $v0, $v1, 5 -/* 174430 8024BA10 00441021 */ addu $v0, $v0, $a0 -/* 174434 8024BA14 94420010 */ lhu $v0, 0x10($v0) -/* 174438 8024BA18 00021400 */ sll $v0, $v0, 16 -/* 17443C 8024BA1C 00021C03 */ sra $v1, $v0, 16 -/* 174440 8024BA20 000217C2 */ srl $v0, $v0, 31 -/* 174444 8024BA24 00621821 */ addu $v1, $v1, $v0 -/* 174448 8024BA28 00031843 */ sra $v1, $v1, 1 -/* 17444C 8024BA2C 08092E91 */ j .Lfilemenu_8024BA44 -/* 174450 8024BA30 00651023 */ subu $v0, $v1, $a1 -.Lfilemenu_8024BA34: -/* 174454 8024BA34 240200A0 */ addiu $v0, $zero, 0xA0 -/* 174458 8024BA38 00451023 */ subu $v0, $v0, $a1 -/* 17445C 8024BA3C 3C048016 */ lui $a0, %hi(gWindows) -/* 174460 8024BA40 24848910 */ addiu $a0, $a0, %lo(gWindows) -.Lfilemenu_8024BA44: -/* 174464 8024BA44 A4C20000 */ sh $v0, 0x0($a2) -/* 174468 8024BA48 948205F2 */ lhu $v0, 0x5F2($a0) -/* 17446C 8024BA4C 00021400 */ sll $v0, $v0, 16 -/* 174470 8024BA50 00021C03 */ sra $v1, $v0, 16 -/* 174474 8024BA54 000217C2 */ srl $v0, $v0, 31 -/* 174478 8024BA58 00621821 */ addu $v1, $v1, $v0 -/* 17447C 8024BA5C 00032843 */ sra $a1, $v1, 1 -/* 174480 8024BA60 808305E3 */ lb $v1, 0x5E3($a0) -/* 174484 8024BA64 2402FFFF */ addiu $v0, $zero, -0x1 -/* 174488 8024BA68 1062000B */ beq $v1, $v0, .Lfilemenu_8024BA98 -/* 17448C 8024BA6C 248605EE */ addiu $a2, $a0, 0x5EE -/* 174490 8024BA70 00031140 */ sll $v0, $v1, 5 -/* 174494 8024BA74 00441021 */ addu $v0, $v0, $a0 -/* 174498 8024BA78 94420012 */ lhu $v0, 0x12($v0) -/* 17449C 8024BA7C 00021400 */ sll $v0, $v0, 16 -/* 1744A0 8024BA80 00021C03 */ sra $v1, $v0, 16 -/* 1744A4 8024BA84 000217C2 */ srl $v0, $v0, 31 -/* 1744A8 8024BA88 00621821 */ addu $v1, $v1, $v0 -/* 1744AC 8024BA8C 00031843 */ sra $v1, $v1, 1 -/* 1744B0 8024BA90 08092EA8 */ j .Lfilemenu_8024BAA0 -/* 1744B4 8024BA94 00651023 */ subu $v0, $v1, $a1 -.Lfilemenu_8024BA98: -/* 1744B8 8024BA98 24020078 */ addiu $v0, $zero, 0x78 -/* 1744BC 8024BA9C 00451023 */ subu $v0, $v0, $a1 -.Lfilemenu_8024BAA0: -/* 1744C0 8024BAA0 A4C20000 */ sh $v0, 0x0($a2) -/* 1744C4 8024BAA4 2404002F */ addiu $a0, $zero, 0x2F -/* 1744C8 8024BAA8 08092F1D */ j .Lfilemenu_8024BC74 -/* 1744CC 8024BAAC 24050001 */ addiu $a1, $zero, 0x1 -.Lfilemenu_8024BAB0: -/* 1744D0 8024BAB0 3C05800D */ lui $a1, %hi(gSaveGlobals) -/* 1744D4 8024BAB4 24A55D58 */ addiu $a1, $a1, %lo(gSaveGlobals) -/* 1744D8 8024BAB8 8CA20038 */ lw $v0, 0x38($a1) -/* 1744DC 8024BABC 3C038007 */ lui $v1, %hi(gGameStatusPtr) -/* 1744E0 8024BAC0 8C6314AC */ lw $v1, %lo(gGameStatusPtr)($v1) -/* 1744E4 8024BAC4 00821023 */ subu $v0, $a0, $v0 -/* 1744E8 8024BAC8 3C048025 */ lui $a0, %hi(filemenu_menus) -/* 1744EC 8024BACC 8C84E984 */ lw $a0, %lo(filemenu_menus)($a0) -/* 1744F0 8024BAD0 906300AB */ lbu $v1, 0xAB($v1) -/* 1744F4 8024BAD4 14620009 */ bne $v1, $v0, .Lfilemenu_8024BAFC -/* 1744F8 8024BAD8 90900003 */ lbu $s0, 0x3($a0) -/* 1744FC 8024BADC 90A2003F */ lbu $v0, 0x3F($a1) -/* 174500 8024BAE0 16020006 */ bne $s0, $v0, .Lfilemenu_8024BAFC -/* 174504 8024BAE4 00000000 */ nop -/* 174508 8024BAE8 3C038015 */ lui $v1, %hi(gCurrentLanguage) -/* 17450C 8024BAEC 8C63AE4C */ lw $v1, %lo(gCurrentLanguage)($v1) -/* 174510 8024BAF0 8CA20040 */ lw $v0, 0x40($a1) -/* 174514 8024BAF4 1062000E */ beq $v1, $v0, .Lfilemenu_8024BB30 -/* 174518 8024BAF8 00000000 */ nop -.Lfilemenu_8024BAFC: -/* 17451C 8024BAFC 3C028007 */ lui $v0, %hi(gGameStatusPtr) -/* 174520 8024BB00 8C4214AC */ lw $v0, %lo(gGameStatusPtr)($v0) -/* 174524 8024BB04 904400AB */ lbu $a0, 0xAB($v0) -/* 174528 8024BB08 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 17452C 8024BB0C 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 174530 8024BB10 3C03800D */ lui $v1, %hi(gSaveGlobals) -/* 174534 8024BB14 24635D58 */ addiu $v1, $v1, %lo(gSaveGlobals) -/* 174538 8024BB18 AC70003C */ sw $s0, 0x3C($v1) -/* 17453C 8024BB1C AC620040 */ sw $v0, 0x40($v1) -/* 174540 8024BB20 24020001 */ addiu $v0, $zero, 0x1 -/* 174544 8024BB24 00441023 */ subu $v0, $v0, $a0 -/* 174548 8024BB28 0C00AC15 */ jal fio_save_globals -/* 17454C 8024BB2C AC620038 */ sw $v0, 0x38($v1) -.Lfilemenu_8024BB30: -/* 174550 8024BB30 0C00ACD3 */ jal fio_load_game -/* 174554 8024BB34 0200202D */ daddu $a0, $s0, $zero -/* 174558 8024BB38 10400021 */ beqz $v0, .Lfilemenu_8024BBC0 -/* 17455C 8024BB3C 2404002D */ addiu $a0, $zero, 0x2D -/* 174560 8024BB40 0C00CE04 */ jal set_game_mode -/* 174564 8024BB44 2404000F */ addiu $a0, $zero, 0xF -/* 174568 8024BB48 08092F1F */ j .Lfilemenu_8024BC7C -/* 17456C 8024BB4C 00000000 */ nop -.Lfilemenu_8024BB50: -/* 174570 8024BB50 82430004 */ lb $v1, 0x4($s2) -/* 174574 8024BB54 10640013 */ beq $v1, $a0, .Lfilemenu_8024BBA4 -/* 174578 8024BB58 28620002 */ slti $v0, $v1, 0x2 -/* 17457C 8024BB5C 10400005 */ beqz $v0, .Lfilemenu_8024BB74 -/* 174580 8024BB60 24020002 */ addiu $v0, $zero, 0x2 -/* 174584 8024BB64 10600009 */ beqz $v1, .Lfilemenu_8024BB8C -/* 174588 8024BB68 00000000 */ nop -/* 17458C 8024BB6C 08092F1F */ j .Lfilemenu_8024BC7C -/* 174590 8024BB70 00000000 */ nop -.Lfilemenu_8024BB74: -/* 174594 8024BB74 10620005 */ beq $v1, $v0, .Lfilemenu_8024BB8C -/* 174598 8024BB78 24020003 */ addiu $v0, $zero, 0x3 -/* 17459C 8024BB7C 10620010 */ beq $v1, $v0, .Lfilemenu_8024BBC0 -/* 1745A0 8024BB80 2404002D */ addiu $a0, $zero, 0x2D -/* 1745A4 8024BB84 08092F1F */ j .Lfilemenu_8024BC7C -/* 1745A8 8024BB88 00000000 */ nop -.Lfilemenu_8024BB8C: -/* 1745AC 8024BB8C 3C018025 */ lui $at, %hi(filemenu_currentMenu) -/* 1745B0 8024BB90 A0201758 */ sb $zero, %lo(filemenu_currentMenu)($at) -/* 1745B4 8024BB94 3C058024 */ lui $a1, %hi(filemenu_update_hidden_name_confirm) -/* 1745B8 8024BB98 24A57DFC */ addiu $a1, $a1, %lo(filemenu_update_hidden_name_confirm) -/* 1745BC 8024BB9C 08092F1D */ j .Lfilemenu_8024BC74 -/* 1745C0 8024BBA0 24040032 */ addiu $a0, $zero, 0x32 -.Lfilemenu_8024BBA4: -/* 1745C4 8024BBA4 24020003 */ addiu $v0, $zero, 0x3 -/* 1745C8 8024BBA8 3C018025 */ lui $at, %hi(filemenu_currentMenu) -/* 1745CC 8024BBAC A0221758 */ sb $v0, %lo(filemenu_currentMenu)($at) -/* 1745D0 8024BBB0 3C058024 */ lui $a1, %hi(filemenu_update_hidden_name_confirm) -/* 1745D4 8024BBB4 24A57DFC */ addiu $a1, $a1, %lo(filemenu_update_hidden_name_confirm) -/* 1745D8 8024BBB8 08092F1D */ j .Lfilemenu_8024BC74 -/* 1745DC 8024BBBC 24040032 */ addiu $a0, $zero, 0x32 -.Lfilemenu_8024BBC0: -/* 1745E0 8024BBC0 3C108024 */ lui $s0, %hi(filemenu_update_show_with_rotation) -/* 1745E4 8024BBC4 2610772C */ addiu $s0, $s0, %lo(filemenu_update_show_with_rotation) -/* 1745E8 8024BBC8 3C028025 */ lui $v0, %hi(filemenu_menus) -/* 1745EC 8024BBCC 8C42E984 */ lw $v0, %lo(filemenu_menus)($v0) -/* 1745F0 8024BBD0 3C018025 */ lui $at, %hi(filemenu_currentMenu) -/* 1745F4 8024BBD4 A0201758 */ sb $zero, %lo(filemenu_currentMenu)($at) -/* 1745F8 8024BBD8 90510003 */ lbu $s1, 0x3($v0) -/* 1745FC 8024BBDC 0C051A8B */ jal set_window_update -/* 174600 8024BBE0 0200282D */ daddu $a1, $s0, $zero -/* 174604 8024BBE4 24040033 */ addiu $a0, $zero, 0x33 -/* 174608 8024BBE8 0C051A8B */ jal set_window_update -/* 17460C 8024BBEC 0200282D */ daddu $a1, $s0, $zero -/* 174610 8024BBF0 24040034 */ addiu $a0, $zero, 0x34 -/* 174614 8024BBF4 0C051A8B */ jal set_window_update -/* 174618 8024BBF8 0200282D */ daddu $a1, $s0, $zero -/* 17461C 8024BBFC 24040035 */ addiu $a0, $zero, 0x35 -/* 174620 8024BC00 0C051A8B */ jal set_window_update -/* 174624 8024BC04 0200282D */ daddu $a1, $s0, $zero -/* 174628 8024BC08 24040036 */ addiu $a0, $zero, 0x36 -/* 17462C 8024BC0C 0C051A8B */ jal set_window_update -/* 174630 8024BC10 0200282D */ daddu $a1, $s0, $zero -/* 174634 8024BC14 24040037 */ addiu $a0, $zero, 0x37 -/* 174638 8024BC18 0C051A8B */ jal set_window_update -/* 17463C 8024BC1C 0200282D */ daddu $a1, $s0, $zero -/* 174640 8024BC20 24040035 */ addiu $a0, $zero, 0x35 -/* 174644 8024BC24 0C051A8B */ jal set_window_update -/* 174648 8024BC28 0200282D */ daddu $a1, $s0, $zero -/* 17464C 8024BC2C 24040038 */ addiu $a0, $zero, 0x38 -/* 174650 8024BC30 0C051A8B */ jal set_window_update -/* 174654 8024BC34 0200282D */ daddu $a1, $s0, $zero -/* 174658 8024BC38 24040039 */ addiu $a0, $zero, 0x39 -/* 17465C 8024BC3C 0C051A8B */ jal set_window_update -/* 174660 8024BC40 0200282D */ daddu $a1, $s0, $zero -/* 174664 8024BC44 2404003A */ addiu $a0, $zero, 0x3A -/* 174668 8024BC48 0C051A8B */ jal set_window_update -/* 17466C 8024BC4C 0200282D */ daddu $a1, $s0, $zero -/* 174670 8024BC50 2404003B */ addiu $a0, $zero, 0x3B -/* 174674 8024BC54 0C051A8B */ jal set_window_update -/* 174678 8024BC58 0200282D */ daddu $a1, $s0, $zero -/* 17467C 8024BC5C 3C058024 */ lui $a1, %hi(filemenu_update_deselect_file) -/* 174680 8024BC60 24A57A20 */ addiu $a1, $a1, %lo(filemenu_update_deselect_file) -/* 174684 8024BC64 0C051A8B */ jal set_window_update -/* 174688 8024BC68 26240038 */ addiu $a0, $s1, 0x38 -/* 17468C 8024BC6C 24040032 */ addiu $a0, $zero, 0x32 -/* 174690 8024BC70 24050002 */ addiu $a1, $zero, 0x2 -.Lfilemenu_8024BC74: -/* 174694 8024BC74 0C051A8B */ jal set_window_update -/* 174698 8024BC78 00000000 */ nop -.Lfilemenu_8024BC7C: -/* 17469C 8024BC7C 3C028025 */ lui $v0, %hi(filemenu_pressedButtons) -/* 1746A0 8024BC80 8C421744 */ lw $v0, %lo(filemenu_pressedButtons)($v0) -/* 1746A4 8024BC84 30424000 */ andi $v0, $v0, 0x4000 -/* 1746A8 8024BC88 10400053 */ beqz $v0, .Lfilemenu_8024BDD8 -/* 1746AC 8024BC8C 00000000 */ nop -/* 1746B0 8024BC90 0C052219 */ jal sfx_play_sound -/* 1746B4 8024BC94 240400CA */ addiu $a0, $zero, 0xCA -/* 1746B8 8024BC98 0240202D */ daddu $a0, $s2, $zero -/* 1746BC 8024BC9C 0000282D */ daddu $a1, $zero, $zero -/* 1746C0 8024BCA0 0C091B29 */ jal filemenu_set_selected -/* 1746C4 8024BCA4 24060001 */ addiu $a2, $zero, 0x1 -/* 1746C8 8024BCA8 82440004 */ lb $a0, 0x4($s2) -/* 1746CC 8024BCAC 24020001 */ addiu $v0, $zero, 0x1 -/* 1746D0 8024BCB0 10820013 */ beq $a0, $v0, .Lfilemenu_8024BD00 -/* 1746D4 8024BCB4 28820002 */ slti $v0, $a0, 0x2 -/* 1746D8 8024BCB8 50400005 */ beql $v0, $zero, .Lfilemenu_8024BCD0 -/* 1746DC 8024BCBC 24020002 */ addiu $v0, $zero, 0x2 -/* 1746E0 8024BCC0 10800009 */ beqz $a0, .Lfilemenu_8024BCE8 -/* 1746E4 8024BCC4 00000000 */ nop -/* 1746E8 8024BCC8 08092F76 */ j .Lfilemenu_8024BDD8 -/* 1746EC 8024BCCC 00000000 */ nop -.Lfilemenu_8024BCD0: -/* 1746F0 8024BCD0 10820005 */ beq $a0, $v0, .Lfilemenu_8024BCE8 -/* 1746F4 8024BCD4 24020003 */ addiu $v0, $zero, 0x3 -/* 1746F8 8024BCD8 10820010 */ beq $a0, $v0, .Lfilemenu_8024BD1C -/* 1746FC 8024BCDC 2404002D */ addiu $a0, $zero, 0x2D -/* 174700 8024BCE0 08092F76 */ j .Lfilemenu_8024BDD8 -/* 174704 8024BCE4 00000000 */ nop -.Lfilemenu_8024BCE8: -/* 174708 8024BCE8 3C018025 */ lui $at, %hi(filemenu_currentMenu) -/* 17470C 8024BCEC A0201758 */ sb $zero, %lo(filemenu_currentMenu)($at) -/* 174710 8024BCF0 3C058024 */ lui $a1, %hi(filemenu_update_hidden_name_confirm) -/* 174714 8024BCF4 24A57DFC */ addiu $a1, $a1, %lo(filemenu_update_hidden_name_confirm) -/* 174718 8024BCF8 08092F74 */ j .Lfilemenu_8024BDD0 -/* 17471C 8024BCFC 24040032 */ addiu $a0, $zero, 0x32 -.Lfilemenu_8024BD00: -/* 174720 8024BD00 24020003 */ addiu $v0, $zero, 0x3 -/* 174724 8024BD04 3C018025 */ lui $at, %hi(filemenu_currentMenu) -/* 174728 8024BD08 A0221758 */ sb $v0, %lo(filemenu_currentMenu)($at) -/* 17472C 8024BD0C 3C058024 */ lui $a1, %hi(filemenu_update_hidden_name_confirm) -/* 174730 8024BD10 24A57DFC */ addiu $a1, $a1, %lo(filemenu_update_hidden_name_confirm) -/* 174734 8024BD14 08092F74 */ j .Lfilemenu_8024BDD0 -/* 174738 8024BD18 24040032 */ addiu $a0, $zero, 0x32 -.Lfilemenu_8024BD1C: -/* 17473C 8024BD1C 3C108024 */ lui $s0, %hi(filemenu_update_show_with_rotation) -/* 174740 8024BD20 2610772C */ addiu $s0, $s0, %lo(filemenu_update_show_with_rotation) -/* 174744 8024BD24 3C028025 */ lui $v0, %hi(filemenu_menus) -/* 174748 8024BD28 8C42E984 */ lw $v0, %lo(filemenu_menus)($v0) -/* 17474C 8024BD2C 3C018025 */ lui $at, %hi(filemenu_currentMenu) -/* 174750 8024BD30 A0201758 */ sb $zero, %lo(filemenu_currentMenu)($at) -/* 174754 8024BD34 90510003 */ lbu $s1, 0x3($v0) -/* 174758 8024BD38 0C051A8B */ jal set_window_update -/* 17475C 8024BD3C 0200282D */ daddu $a1, $s0, $zero -/* 174760 8024BD40 24040033 */ addiu $a0, $zero, 0x33 -/* 174764 8024BD44 0C051A8B */ jal set_window_update -/* 174768 8024BD48 0200282D */ daddu $a1, $s0, $zero -/* 17476C 8024BD4C 24040034 */ addiu $a0, $zero, 0x34 -/* 174770 8024BD50 0C051A8B */ jal set_window_update -/* 174774 8024BD54 0200282D */ daddu $a1, $s0, $zero -/* 174778 8024BD58 24040035 */ addiu $a0, $zero, 0x35 -/* 17477C 8024BD5C 0C051A8B */ jal set_window_update -/* 174780 8024BD60 0200282D */ daddu $a1, $s0, $zero -/* 174784 8024BD64 24040036 */ addiu $a0, $zero, 0x36 -/* 174788 8024BD68 0C051A8B */ jal set_window_update -/* 17478C 8024BD6C 0200282D */ daddu $a1, $s0, $zero -/* 174790 8024BD70 24040037 */ addiu $a0, $zero, 0x37 -/* 174794 8024BD74 0C051A8B */ jal set_window_update -/* 174798 8024BD78 0200282D */ daddu $a1, $s0, $zero -/* 17479C 8024BD7C 24040035 */ addiu $a0, $zero, 0x35 -/* 1747A0 8024BD80 0C051A8B */ jal set_window_update -/* 1747A4 8024BD84 0200282D */ daddu $a1, $s0, $zero -/* 1747A8 8024BD88 24040038 */ addiu $a0, $zero, 0x38 -/* 1747AC 8024BD8C 0C051A8B */ jal set_window_update -/* 1747B0 8024BD90 0200282D */ daddu $a1, $s0, $zero -/* 1747B4 8024BD94 24040039 */ addiu $a0, $zero, 0x39 -/* 1747B8 8024BD98 0C051A8B */ jal set_window_update -/* 1747BC 8024BD9C 0200282D */ daddu $a1, $s0, $zero -/* 1747C0 8024BDA0 2404003A */ addiu $a0, $zero, 0x3A -/* 1747C4 8024BDA4 0C051A8B */ jal set_window_update -/* 1747C8 8024BDA8 0200282D */ daddu $a1, $s0, $zero -/* 1747CC 8024BDAC 2404003B */ addiu $a0, $zero, 0x3B -/* 1747D0 8024BDB0 0C051A8B */ jal set_window_update -/* 1747D4 8024BDB4 0200282D */ daddu $a1, $s0, $zero -/* 1747D8 8024BDB8 3C058024 */ lui $a1, %hi(filemenu_update_deselect_file) -/* 1747DC 8024BDBC 24A57A20 */ addiu $a1, $a1, %lo(filemenu_update_deselect_file) -/* 1747E0 8024BDC0 0C051A8B */ jal set_window_update -/* 1747E4 8024BDC4 26240038 */ addiu $a0, $s1, 0x38 -/* 1747E8 8024BDC8 24040032 */ addiu $a0, $zero, 0x32 -/* 1747EC 8024BDCC 24050002 */ addiu $a1, $zero, 0x2 -.Lfilemenu_8024BDD0: -/* 1747F0 8024BDD0 0C051A8B */ jal set_window_update -/* 1747F4 8024BDD4 00000000 */ nop -.Lfilemenu_8024BDD8: -/* 1747F8 8024BDD8 8FBF001C */ lw $ra, 0x1C($sp) -/* 1747FC 8024BDDC 8FB20018 */ lw $s2, 0x18($sp) -/* 174800 8024BDE0 8FB10014 */ lw $s1, 0x14($sp) -/* 174804 8024BDE4 8FB00010 */ lw $s0, 0x10($sp) -/* 174808 8024BDE8 03E00008 */ jr $ra -/* 17480C 8024BDEC 27BD0020 */ addiu $sp, $sp, 0x20 diff --git a/ver/pal/asm/nonmatchings/msg/msg_copy_to_print_buffer.s b/ver/pal/asm/nonmatchings/msg/msg_copy_to_print_buffer.s deleted file mode 100644 index 0cdf1ae11e4..00000000000 --- a/ver/pal/asm/nonmatchings/msg/msg_copy_to_print_buffer.s +++ /dev/null @@ -1,1359 +0,0 @@ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ - -.section .rodata -.align 3 -glabel jtbl_PAL_8014EF88 -/* E52D8 8014EF88 80123100 */ .word .LPAL_80123100 -/* E52DC 8014EF8C 80123164 */ .word .LPAL_80123164 -/* E52E0 8014EF90 801231C4 */ .word .LPAL_801231C4 -/* E52E4 8014EF94 801231EC */ .word .LPAL_801231EC -/* E52E8 8014EF98 801231EC */ .word .LPAL_801231EC -/* E52EC 8014EF9C 801231EC */ .word .LPAL_801231EC -/* E52F0 8014EFA0 801231EC */ .word .LPAL_801231EC -/* E52F4 8014EFA4 80123204 */ .word .LPAL_80123204 -/* E52F8 8014EFA8 8012320C */ .word .LPAL_8012320C -/* E52FC 8014EFAC 80123214 */ .word .LPAL_80123214 -/* E5300 8014EFB0 8012321C */ .word .LPAL_8012321C -/* E5304 8014EFB4 80123230 */ .word .LPAL_80123230 -/* E5308 8014EFB8 801232CC */ .word .LPAL_801232CC -/* E530C 8014EFBC 80123618 */ .word .LPAL_80123618 -/* E5310 8014EFC0 801240B4 */ .word .LPAL_801240B4 -/* E5314 8014EFC4 8012368C */ .word .LPAL_8012368C - -.align 3 -glabel jtbl_PAL_8014EFC8 -/* E5318 8014EFC8 80123318 */ .word .LPAL_80123318 -/* E531C 8014EFCC 80123318 */ .word .LPAL_80123318 -/* E5320 8014EFD0 80123318 */ .word .LPAL_80123318 -/* E5324 8014EFD4 80123318 */ .word .LPAL_80123318 -/* E5328 8014EFD8 80123378 */ .word .LPAL_80123378 -/* E532C 8014EFDC 801233BC */ .word .LPAL_801233BC -/* E5330 8014EFE0 801234A0 */ .word .LPAL_801234A0 -/* E5334 8014EFE4 80123494 */ .word .LPAL_80123494 -/* E5338 8014EFE8 801234C8 */ .word .LPAL_801234C8 -/* E533C 8014EFEC 801235B4 */ .word .LPAL_801235B4 -/* E5340 8014EFF0 801235B4 */ .word .LPAL_801235B4 -/* E5344 8014EFF4 80123420 */ .word .LPAL_80123420 -/* E5348 8014EFF8 801233BC */ .word .LPAL_801233BC -/* E534C 8014EFFC 801235F8 */ .word .LPAL_801235F8 -/* E5350 8014F000 801233BC */ .word .LPAL_801233BC -/* E5354 8014F004 00000000 */ .word 0x00000000 - -.align 3 -glabel jtbl_PAL_8014F008 -/* E5358 8014F008 801236B4 */ .word .LPAL_801236B4 -/* E535C 8014F00C 801236D4 */ .word .LPAL_801236D4 -/* E5360 8014F010 80124110 */ .word .LPAL_80124110 -/* E5364 8014F014 80123C48 */ .word .LPAL_80123C48 -/* E5368 8014F018 80123C58 */ .word .LPAL_80123C58 -/* E536C 8014F01C 801236F8 */ .word .LPAL_801236F8 -/* E5370 8014F020 80123708 */ .word .LPAL_80123708 -/* E5374 8014F024 80123714 */ .word .LPAL_80123714 -/* E5378 8014F028 80123728 */ .word .LPAL_80123728 -/* E537C 8014F02C 80123748 */ .word .LPAL_80123748 -/* E5380 8014F030 80123758 */ .word .LPAL_80123758 -/* E5384 8014F034 80123738 */ .word .LPAL_80123738 -/* E5388 8014F038 80123764 */ .word .LPAL_80123764 -/* E538C 8014F03C 801237F8 */ .word .LPAL_801237F8 -/* E5390 8014F040 80123864 */ .word .LPAL_80123864 -/* E5394 8014F044 80123888 */ .word .LPAL_80123888 -/* E5398 8014F048 801238A4 */ .word .LPAL_801238A4 -/* E539C 8014F04C 801238C4 */ .word .LPAL_801238C4 -/* E53A0 8014F050 801238D4 */ .word .LPAL_801238D4 -/* E53A4 8014F054 801238E4 */ .word .LPAL_801238E4 -/* E53A8 8014F058 801238F4 */ .word .LPAL_801238F4 -/* E53AC 8014F05C 80123904 */ .word .LPAL_80123904 -/* E53B0 8014F060 80123938 */ .word .LPAL_80123938 -/* E53B4 8014F064 8012398C */ .word .LPAL_8012398C -/* E53B8 8014F068 80123A28 */ .word .LPAL_80123A28 -/* E53BC 8014F06C 80123AB8 */ .word .LPAL_80123AB8 -/* E53C0 8014F070 80123ADC */ .word .LPAL_80123ADC -/* E53C4 8014F074 80123B30 */ .word .LPAL_80123B30 -/* E53C8 8014F078 80123B50 */ .word .LPAL_80123B50 -/* E53CC 8014F07C 80123B94 */ .word .LPAL_80123B94 -/* E53D0 8014F080 80123BD4 */ .word .LPAL_80123BD4 -/* E53D4 8014F084 80123BE4 */ .word .LPAL_80123BE4 -/* E53D8 8014F088 80123C28 */ .word .LPAL_80123C28 -/* E53DC 8014F08C 80123C38 */ .word .LPAL_80123C38 -/* E53E0 8014F090 80123C94 */ .word .LPAL_80123C94 -/* E53E4 8014F094 80123CA4 */ .word .LPAL_80123CA4 -/* E53E8 8014F098 80123CB4 */ .word .LPAL_80123CB4 -/* E53EC 8014F09C 80123CC4 */ .word .LPAL_80123CC4 -/* E53F0 8014F0A0 80123CD4 */ .word .LPAL_80123CD4 -/* E53F4 8014F0A4 80123D28 */ .word .LPAL_80123D28 -/* E53F8 8014F0A8 80123D54 */ .word .LPAL_80123D54 -/* E53FC 8014F0AC 8012404C */ .word .LPAL_8012404C -/* E5400 8014F0B0 80124074 */ .word .LPAL_80124074 -/* E5404 8014F0B4 801240A4 */ .word .LPAL_801240A4 -/* E5408 8014F0B8 80123FD0 */ .word .LPAL_80123FD0 -/* E540C 8014F0BC 80124110 */ .word .LPAL_80124110 -/* E5410 8014F0C0 80123FC0 */ .word .LPAL_80123FC0 -/* E5414 8014F0C4 80123F7C */ .word .LPAL_80123F7C - -.align 3 -glabel jtbl_PAL_8014F0C8 -/* E5418 8014F0C8 80123D14 */ .word .LPAL_80123D14 -/* E541C 8014F0CC 80123D14 */ .word .LPAL_80123D14 -/* E5420 8014F0D0 80123D14 */ .word .LPAL_80123D14 -/* E5424 8014F0D4 80123D20 */ .word .LPAL_80123D20 -/* E5428 8014F0D8 80124110 */ .word .LPAL_80124110 -/* E542C 8014F0DC 80123D20 */ .word .LPAL_80123D20 -/* E5430 8014F0E0 80123D14 */ .word .LPAL_80123D14 -/* E5434 8014F0E4 80123D20 */ .word .LPAL_80123D20 -/* E5438 8014F0E8 80123D14 */ .word .LPAL_80123D14 -/* E543C 8014F0EC 80123D14 */ .word .LPAL_80123D14 -/* E5440 8014F0F0 80123D14 */ .word .LPAL_80123D14 -/* E5444 8014F0F4 80123D14 */ .word .LPAL_80123D14 -/* E5448 8014F0F8 80123D14 */ .word .LPAL_80123D14 -/* E544C 8014F0FC 80123D14 */ .word .LPAL_80123D14 -/* E5450 8014F100 80123D14 */ .word .LPAL_80123D14 -/* E5454 8014F104 00000000 */ .word 0x00000000 - -.align 3 -glabel jtbl_PAL_8014F108 -/* E5458 8014F108 80123DDC */ .word .LPAL_80123DDC -/* E545C 8014F10C 80123EE4 */ .word .LPAL_80123EE4 -/* E5460 8014F110 80123EE4 */ .word .LPAL_80123EE4 -/* E5464 8014F114 80123E10 */ .word .LPAL_80123E10 -/* E5468 8014F118 80123E10 */ .word .LPAL_80123E10 -/* E546C 8014F11C 80123E10 */ .word .LPAL_80123E10 -/* E5470 8014F120 80123E10 */ .word .LPAL_80123E10 -/* E5474 8014F124 80123E24 */ .word .LPAL_80123E24 -/* E5478 8014F128 80123EE4 */ .word .LPAL_80123EE4 -/* E547C 8014F12C 80123EE4 */ .word .LPAL_80123EE4 -/* E5480 8014F130 80123EE4 */ .word .LPAL_80123EE4 -/* E5484 8014F134 80123EE4 */ .word .LPAL_80123EE4 -/* E5488 8014F138 80123EE4 */ .word .LPAL_80123EE4 -/* E548C 8014F13C 80123EE4 */ .word .LPAL_80123EE4 -/* E5490 8014F140 80123EE4 */ .word .LPAL_80123EE4 -/* E5494 8014F144 80123E30 */ .word .LPAL_80123E30 - - -.section .text -/* Generated by spimdisasm 1.11.1 */ - -glabel msg_copy_to_print_buffer -/* B93C0 80123070 27BDFFB8 */ addiu $sp, $sp, -0x48 -/* B93C4 80123074 AFB40030 */ sw $s4, 0x30($sp) -/* B93C8 80123078 0080A02D */ daddu $s4, $a0, $zero -/* B93CC 8012307C AFB50034 */ sw $s5, 0x34($sp) -/* B93D0 80123080 00A0A82D */ daddu $s5, $a1, $zero -/* B93D4 80123084 26880468 */ addiu $t0, $s4, 0x468 -/* B93D8 80123088 AFB7003C */ sw $s7, 0x3C($sp) -/* B93DC 8012308C 24170002 */ addiu $s7, $zero, 0x2 -/* B93E0 80123090 AFBE0040 */ sw $fp, 0x40($sp) -/* B93E4 80123094 30DE0001 */ andi $fp, $a2, 0x1 -/* B93E8 80123098 AFB60038 */ sw $s6, 0x38($sp) -/* B93EC 8012309C 241600FF */ addiu $s6, $zero, 0xFF -/* B93F0 801230A0 AFBF0044 */ sw $ra, 0x44($sp) -/* B93F4 801230A4 AFB3002C */ sw $s3, 0x2C($sp) -/* B93F8 801230A8 AFB20028 */ sw $s2, 0x28($sp) -/* B93FC 801230AC AFB10024 */ sw $s1, 0x24($sp) -/* B9400 801230B0 AFB00020 */ sw $s0, 0x20($sp) -/* B9404 801230B4 AFA80018 */ sw $t0, 0x18($sp) -/* B9408 801230B8 96820004 */ lhu $v0, 0x4($s4) -/* B940C 801230BC 9684000C */ lhu $a0, 0xC($s4) -/* B9410 801230C0 8E830000 */ lw $v1, 0x0($s4) -/* B9414 801230C4 24420010 */ addiu $v0, $v0, 0x10 -/* B9418 801230C8 02829021 */ addu $s2, $s4, $v0 -/* B941C 801230CC 00649821 */ addu $s3, $v1, $a0 -.LPAL_801230D0: -/* B9420 801230D0 92650000 */ lbu $a1, 0x0($s3) -/* B9424 801230D4 26730001 */ addiu $s3, $s3, 0x1 -/* B9428 801230D8 92660000 */ lbu $a2, 0x0($s3) -/* B942C 801230DC 24A3FF10 */ addiu $v1, $a1, -0xF0 -/* B9430 801230E0 2C620010 */ sltiu $v0, $v1, 0x10 -/* B9434 801230E4 104003F3 */ beqz $v0, .LPAL_801240B4 -/* B9438 801230E8 00031080 */ sll $v0, $v1, 2 -/* B943C 801230EC 3C018015 */ lui $at, %hi(jtbl_PAL_8014EF88) -/* B9440 801230F0 00220821 */ addu $at, $at, $v0 -/* B9444 801230F4 8C22EF88 */ lw $v0, %lo(jtbl_PAL_8014EF88)($at) -/* B9448 801230F8 00400008 */ jr $v0 -/* B944C 801230FC 00000000 */ nop -.LPAL_80123100: -/* B9450 80123100 240200F0 */ addiu $v0, $zero, 0xF0 -/* B9454 80123104 A2420000 */ sb $v0, 0x0($s2) -/* B9458 80123108 C6800540 */ lwc1 $f0, 0x540($s4) -/* B945C 8012310C 3C014F00 */ lui $at, (0x4F000000 >> 16) -/* B9460 80123110 44811000 */ mtc1 $at, $f2 -/* B9464 80123114 00000000 */ nop -/* B9468 80123118 4600103E */ c.le.s $f2, $f0 -/* B946C 8012311C 00000000 */ nop -/* B9470 80123120 45010005 */ bc1t .LPAL_80123138 -/* B9474 80123124 26520001 */ addiu $s2, $s2, 0x1 -/* B9478 80123128 4600010D */ trunc.w.s $f4, $f0 -/* B947C 8012312C 44032000 */ mfc1 $v1, $f4 -/* B9480 80123130 08048C54 */ j .LPAL_80123150 -/* B9484 80123134 00000000 */ nop -.LPAL_80123138: -/* B9488 80123138 46020001 */ sub.s $f0, $f0, $f2 -/* B948C 8012313C 3C028000 */ lui $v0, (0x80000000 >> 16) -/* B9490 80123140 4600010D */ trunc.w.s $f4, $f0 -/* B9494 80123144 44032000 */ mfc1 $v1, $f4 -/* B9498 80123148 00000000 */ nop -/* B949C 8012314C 00621825 */ or $v1, $v1, $v0 -.LPAL_80123150: -/* B94A0 80123150 8FA80018 */ lw $t0, 0x18($sp) -/* B94A4 80123154 91020000 */ lbu $v0, 0x0($t0) -/* B94A8 80123158 00431021 */ addu $v0, $v0, $v1 -/* B94AC 8012315C 08049044 */ j .LPAL_80124110 -/* B94B0 80123160 A1020000 */ sb $v0, 0x0($t0) -.LPAL_80123164: -/* B94B4 80123164 96830500 */ lhu $v1, 0x500($s4) -/* B94B8 80123168 24020005 */ addiu $v0, $zero, 0x5 -/* B94BC 8012316C A28204F8 */ sb $v0, 0x4F8($s4) -/* B94C0 80123170 34630001 */ ori $v1, $v1, 0x1 -/* B94C4 80123174 3063FFFD */ andi $v1, $v1, 0xFFFD -/* B94C8 80123178 A6830500 */ sh $v1, 0x500($s4) -/* B94CC 8012317C 8E8304FC */ lw $v1, 0x4FC($s4) -/* B94D0 80123180 2402FF7F */ addiu $v0, $zero, -0x81 -/* B94D4 80123184 A280047C */ sb $zero, 0x47C($s4) -/* B94D8 80123188 A680047E */ sh $zero, 0x47E($s4) -/* B94DC 8012318C 00621824 */ and $v1, $v1, $v0 -/* B94E0 80123190 2402FEFF */ addiu $v0, $zero, -0x101 -/* B94E4 80123194 00621824 */ and $v1, $v1, $v0 -/* B94E8 80123198 AE8304FC */ sw $v1, 0x4FC($s4) -/* B94EC 8012319C 92830508 */ lbu $v1, 0x508($s4) -/* B94F0 801231A0 2402000F */ addiu $v0, $zero, 0xF -/* B94F4 801231A4 106203DA */ beq $v1, $v0, .LPAL_80124110 -/* B94F8 801231A8 240400CB */ addiu $a0, $zero, 0xCB -/* B94FC 801231AC 0000282D */ daddu $a1, $zero, $zero -/* B9500 801231B0 00A0302D */ daddu $a2, $a1, $zero -/* B9504 801231B4 0C05219A */ jal sfx_play_sound_with_params -/* B9508 801231B8 00A0382D */ daddu $a3, $a1, $zero -/* B950C 801231BC 08049044 */ j .LPAL_80124110 -/* B9510 801231C0 00000000 */ nop -.LPAL_801231C4: -/* B9514 801231C4 96820500 */ lhu $v0, 0x500($s4) -/* B9518 801231C8 92630000 */ lbu $v1, 0x0($s3) -/* B951C 801231CC 34420001 */ ori $v0, $v0, 0x1 -/* B9520 801231D0 A6820500 */ sh $v0, 0x500($s4) -/* B9524 801231D4 8E8204FC */ lw $v0, 0x4FC($s4) -/* B9528 801231D8 26730001 */ addiu $s3, $s3, 0x1 -/* B952C 801231DC A683000E */ sh $v1, 0xE($s4) -/* B9530 801231E0 2403FF7F */ addiu $v1, $zero, -0x81 -/* B9534 801231E4 08049043 */ j .LPAL_8012410C -/* B9538 801231E8 00431024 */ and $v0, $v0, $v1 -.LPAL_801231EC: -/* B953C 801231EC 24A200FE */ addiu $v0, $a1, 0xFE -/* B9540 801231F0 A2420000 */ sb $v0, 0x0($s2) -/* B9544 801231F4 26520001 */ addiu $s2, $s2, 0x1 -/* B9548 801231F8 24A2000D */ addiu $v0, $a1, 0xD -/* B954C 801231FC 08049044 */ j .LPAL_80124110 -/* B9550 80123200 A2820455 */ sb $v0, 0x455($s4) -.LPAL_80123204: -/* B9554 80123204 0804901A */ j .LPAL_80124068 -/* B9558 80123208 240200F5 */ addiu $v0, $zero, 0xF5 -.LPAL_8012320C: -/* B955C 8012320C 0804901A */ j .LPAL_80124068 -/* B9560 80123210 240200F6 */ addiu $v0, $zero, 0xF6 -.LPAL_80123214: -/* B9564 80123214 0804901A */ j .LPAL_80124068 -/* B9568 80123218 240200F7 */ addiu $v0, $zero, 0xF7 -.LPAL_8012321C: -/* B956C 8012321C 240200F9 */ addiu $v0, $zero, 0xF9 -/* B9570 80123220 A2420000 */ sb $v0, 0x0($s2) -/* B9574 80123224 26520001 */ addiu $s2, $s2, 0x1 -/* B9578 80123228 08049044 */ j .LPAL_80124110 -/* B957C 8012322C 26B5FFFF */ addiu $s5, $s5, -0x1 -.LPAL_80123230: -/* B9580 80123230 92820468 */ lbu $v0, 0x468($s4) -/* B9584 80123234 504003B6 */ beql $v0, $zero, .LPAL_80124110 -/* B9588 80123238 A2800468 */ sb $zero, 0x468($s4) -/* B958C 8012323C 92820486 */ lbu $v0, 0x486($s4) -/* B9590 80123240 96830462 */ lhu $v1, 0x462($s4) -/* B9594 80123244 00021040 */ sll $v0, $v0, 1 -/* B9598 80123248 02821021 */ addu $v0, $s4, $v0 -/* B959C 8012324C A4430488 */ sh $v1, 0x488($v0) -/* B95A0 80123250 92820486 */ lbu $v0, 0x486($s4) -/* B95A4 80123254 24420001 */ addiu $v0, $v0, 0x1 -/* B95A8 80123258 A2820486 */ sb $v0, 0x486($s4) -/* B95AC 8012325C 240200FA */ addiu $v0, $zero, 0xFA -/* B95B0 80123260 A2420000 */ sb $v0, 0x0($s2) -/* B95B4 80123264 26520001 */ addiu $s2, $s2, 0x1 -/* B95B8 80123268 92820454 */ lbu $v0, 0x454($s4) -/* B95BC 8012326C 92830508 */ lbu $v1, 0x508($s4) -/* B95C0 80123270 00021080 */ sll $v0, $v0, 2 -/* B95C4 80123274 00031840 */ sll $v1, $v1, 1 -/* B95C8 80123278 3C01802F */ lui $at, %hi(MsgCharsets) -/* B95CC 8012327C 00220821 */ addu $at, $at, $v0 -/* B95D0 80123280 8C2218A8 */ lw $v0, %lo(MsgCharsets)($at) -/* B95D4 80123284 3C01802F */ lui $at, %hi(D_802EB644) -/* B95D8 80123288 00230821 */ addu $at, $at, $v1 -/* B95DC 8012328C 84231944 */ lh $v1, %lo(D_802EB644)($at) -/* B95E0 80123290 90440003 */ lbu $a0, 0x3($v0) -/* B95E4 80123294 24020006 */ addiu $v0, $zero, 0x6 -/* B95E8 80123298 A28204F8 */ sb $v0, 0x4F8($s4) -/* B95EC 8012329C 92820468 */ lbu $v0, 0x468($s4) -/* B95F0 801232A0 00832021 */ addu $a0, $a0, $v1 -/* B95F4 801232A4 00820018 */ mult $a0, $v0 -/* B95F8 801232A8 96820500 */ lhu $v0, 0x500($s4) -/* B95FC 801232AC 96830462 */ lhu $v1, 0x462($s4) -/* B9600 801232B0 34420001 */ ori $v0, $v0, 0x1 -/* B9604 801232B4 A6820500 */ sh $v0, 0x500($s4) -/* B9608 801232B8 00004012 */ mflo $t0 -/* B960C 801232BC 00681821 */ addu $v1, $v1, $t0 -/* B9610 801232C0 A6830466 */ sh $v1, 0x466($s4) -/* B9614 801232C4 08049044 */ j .LPAL_80124110 -/* B9618 801232C8 A2800468 */ sb $zero, 0x468($s4) -.LPAL_801232CC: -/* B961C 801232CC 240200F8 */ addiu $v0, $zero, 0xF8 -/* B9620 801232D0 A2420000 */ sb $v0, 0x0($s2) -/* B9624 801232D4 26520001 */ addiu $s2, $s2, 0x1 -/* B9628 801232D8 92700000 */ lbu $s0, 0x0($s3) -/* B962C 801232DC 26730001 */ addiu $s3, $s3, 0x1 -/* B9630 801232E0 A2900508 */ sb $s0, 0x508($s4) -/* B9634 801232E4 A2500000 */ sb $s0, 0x0($s2) -/* B9638 801232E8 26520001 */ addiu $s2, $s2, 0x1 -/* B963C 801232EC 320200FF */ andi $v0, $s0, 0xFF -/* B9640 801232F0 2443FFFF */ addiu $v1, $v0, -0x1 -/* B9644 801232F4 2C62000F */ sltiu $v0, $v1, 0xF -/* B9648 801232F8 104000C1 */ beqz $v0, .LPAL_80123600 -/* B964C 801232FC A2800509 */ sb $zero, 0x509($s4) -/* B9650 80123300 00031080 */ sll $v0, $v1, 2 -/* B9654 80123304 3C018015 */ lui $at, %hi(jtbl_PAL_8014EFC8) -/* B9658 80123308 00220821 */ addu $at, $at, $v0 -/* B965C 8012330C 8C22EFC8 */ lw $v0, %lo(jtbl_PAL_8014EFC8)($at) -/* B9660 80123310 00400008 */ jr $v0 -/* B9664 80123314 00000000 */ nop -.LPAL_80123318: -/* B9668 80123318 2602FFFF */ addiu $v0, $s0, -0x1 -/* B966C 8012331C 2C420003 */ sltiu $v0, $v0, 0x3 -/* B9670 80123320 10400002 */ beqz $v0, .LPAL_8012332C -/* B9674 80123324 24020003 */ addiu $v0, $zero, 0x3 -/* B9678 80123328 A282053C */ sb $v0, 0x53C($s4) -.LPAL_8012332C: -/* B967C 8012332C 3C040080 */ lui $a0, (0x800800 >> 16) -/* B9680 80123330 34840800 */ ori $a0, $a0, (0x800800 & 0xFFFF) -/* B9684 80123334 96820500 */ lhu $v0, 0x500($s4) -/* B9688 80123338 8E8304FC */ lw $v1, 0x4FC($s4) -/* B968C 8012333C 34420001 */ ori $v0, $v0, 0x1 -/* B9690 80123340 00642025 */ or $a0, $v1, $a0 -/* B9694 80123344 30C300FF */ andi $v1, $a2, 0xFF -/* B9698 80123348 A6820500 */ sh $v0, 0x500($s4) -/* B969C 8012334C 240200C3 */ addiu $v0, $zero, 0xC3 -/* B96A0 80123350 10620003 */ beq $v1, $v0, .LPAL_80123360 -/* B96A4 80123354 AE8404FC */ sw $a0, 0x4FC($s4) -/* B96A8 80123358 34820080 */ ori $v0, $a0, 0x80 -/* B96AC 8012335C AE8204FC */ sw $v0, 0x4FC($s4) -.LPAL_80123360: -/* B96B0 80123360 24020011 */ addiu $v0, $zero, 0x11 -/* B96B4 80123364 AE820520 */ sw $v0, 0x520($s4) -/* B96B8 80123368 24020012 */ addiu $v0, $zero, 0x12 -/* B96BC 8012336C AE820524 */ sw $v0, 0x524($s4) -/* B96C0 80123370 08048D80 */ j .LPAL_80123600 -/* B96C4 80123374 A29704F8 */ sb $s7, 0x4F8($s4) -.LPAL_80123378: -/* B96C8 80123378 92620000 */ lbu $v0, 0x0($s3) -/* B96CC 8012337C 26730001 */ addiu $s3, $s3, 0x1 -/* B96D0 80123380 A682045A */ sh $v0, 0x45A($s4) -/* B96D4 80123384 92620000 */ lbu $v0, 0x0($s3) -/* B96D8 80123388 26730001 */ addiu $s3, $s3, 0x1 -/* B96DC 8012338C A682045C */ sh $v0, 0x45C($s4) -/* B96E0 80123390 92620000 */ lbu $v0, 0x0($s3) -/* B96E4 80123394 26730001 */ addiu $s3, $s3, 0x1 -/* B96E8 80123398 A6820514 */ sh $v0, 0x514($s4) -/* B96EC 8012339C 92630000 */ lbu $v1, 0x0($s3) -/* B96F0 801233A0 8E8204FC */ lw $v0, 0x4FC($s4) -/* B96F4 801233A4 26730001 */ addiu $s3, $s3, 0x1 -/* B96F8 801233A8 A29704F8 */ sb $s7, 0x4F8($s4) -/* B96FC 801233AC 34420800 */ ori $v0, $v0, 0x800 -/* B9700 801233B0 AE8204FC */ sw $v0, 0x4FC($s4) -/* B9704 801233B4 08048D80 */ j .LPAL_80123600 -/* B9708 801233B8 A6830516 */ sh $v1, 0x516($s4) -.LPAL_801233BC: -/* B970C 801233BC 17C00090 */ bnez $fp, .LPAL_80123600 -/* B9710 801233C0 24020014 */ addiu $v0, $zero, 0x14 -/* B9714 801233C4 A682045A */ sh $v0, 0x45A($s4) -/* B9718 801233C8 2402001C */ addiu $v0, $zero, 0x1C -/* B971C 801233CC A682045C */ sh $v0, 0x45C($s4) -/* B9720 801233D0 2402003A */ addiu $v0, $zero, 0x3A -/* B9724 801233D4 A6820516 */ sh $v0, 0x516($s4) -/* B9728 801233D8 24020118 */ addiu $v0, $zero, 0x118 -/* B972C 801233DC A6820514 */ sh $v0, 0x514($s4) -/* B9730 801233E0 8E8204FC */ lw $v0, 0x4FC($s4) -/* B9734 801233E4 96830500 */ lhu $v1, 0x500($s4) -/* B9738 801233E8 A29704F8 */ sb $s7, 0x4F8($s4) -/* B973C 801233EC 34420800 */ ori $v0, $v0, 0x800 -/* B9740 801233F0 34630001 */ ori $v1, $v1, 0x1 -/* B9744 801233F4 AE8204FC */ sw $v0, 0x4FC($s4) -/* B9748 801233F8 24020006 */ addiu $v0, $zero, 0x6 -/* B974C 801233FC 16020080 */ bne $s0, $v0, .LPAL_80123600 -/* B9750 80123400 A6830500 */ sh $v1, 0x500($s4) -/* B9754 80123404 2404021C */ addiu $a0, $zero, 0x21C -/* B9758 80123408 0000282D */ daddu $a1, $zero, $zero -/* B975C 8012340C 00A0302D */ daddu $a2, $a1, $zero -/* B9760 80123410 0C05219A */ jal sfx_play_sound_with_params -/* B9764 80123414 00A0382D */ daddu $a3, $a1, $zero -/* B9768 80123418 08048D80 */ j .LPAL_80123600 -/* B976C 8012341C 00000000 */ nop -.LPAL_80123420: -/* B9770 80123420 92620000 */ lbu $v0, 0x0($s3) -/* B9774 80123424 26730001 */ addiu $s3, $s3, 0x1 -/* B9778 80123428 A682045A */ sh $v0, 0x45A($s4) -/* B977C 8012342C 92620000 */ lbu $v0, 0x0($s3) -/* B9780 80123430 26730001 */ addiu $s3, $s3, 0x1 -/* B9784 80123434 A682045C */ sh $v0, 0x45C($s4) -/* B9788 80123438 92620000 */ lbu $v0, 0x0($s3) -/* B978C 8012343C 26730001 */ addiu $s3, $s3, 0x1 -/* B9790 80123440 A6820514 */ sh $v0, 0x514($s4) -/* B9794 80123444 92620000 */ lbu $v0, 0x0($s3) -/* B9798 80123448 96830514 */ lhu $v1, 0x514($s4) -/* B979C 8012344C 26730001 */ addiu $s3, $s3, 0x1 -/* B97A0 80123450 14760003 */ bne $v1, $s6, .LPAL_80123460 -/* B97A4 80123454 A6820516 */ sh $v0, 0x516($s4) -/* B97A8 80123458 24020114 */ addiu $v0, $zero, 0x114 -/* B97AC 8012345C A6820514 */ sh $v0, 0x514($s4) -.LPAL_80123460: -/* B97B0 80123460 2404021C */ addiu $a0, $zero, 0x21C -/* B97B4 80123464 0000282D */ daddu $a1, $zero, $zero -/* B97B8 80123468 00A0302D */ daddu $a2, $a1, $zero -/* B97BC 8012346C 0C05219A */ jal sfx_play_sound_with_params -/* B97C0 80123470 00A0382D */ daddu $a3, $a1, $zero -/* B97C4 80123474 96820500 */ lhu $v0, 0x500($s4) -/* B97C8 80123478 8E8304FC */ lw $v1, 0x4FC($s4) -/* B97CC 8012347C A29704F8 */ sb $s7, 0x4F8($s4) -/* B97D0 80123480 34420001 */ ori $v0, $v0, 0x1 -/* B97D4 80123484 34630800 */ ori $v1, $v1, 0x800 -/* B97D8 80123488 A6820500 */ sh $v0, 0x500($s4) -/* B97DC 8012348C 08048D80 */ j .LPAL_80123600 -/* B97E0 80123490 AE8304FC */ sw $v1, 0x4FC($s4) -.LPAL_80123494: -/* B97E4 80123494 92620000 */ lbu $v0, 0x0($s3) -/* B97E8 80123498 26730001 */ addiu $s3, $s3, 0x1 -/* B97EC 8012349C A6820516 */ sh $v0, 0x516($s4) -.LPAL_801234A0: -/* B97F0 801234A0 17C00057 */ bnez $fp, .LPAL_80123600 -/* B97F4 801234A4 00000000 */ nop -/* B97F8 801234A8 8E8204FC */ lw $v0, 0x4FC($s4) -/* B97FC 801234AC 96830500 */ lhu $v1, 0x500($s4) -/* B9800 801234B0 A29704F8 */ sb $s7, 0x4F8($s4) -/* B9804 801234B4 34420800 */ ori $v0, $v0, 0x800 -/* B9808 801234B8 34630001 */ ori $v1, $v1, 0x1 -/* B980C 801234BC AE8204FC */ sw $v0, 0x4FC($s4) -/* B9810 801234C0 08048D80 */ j .LPAL_80123600 -/* B9814 801234C4 A6830500 */ sh $v1, 0x500($s4) -.LPAL_801234C8: -/* B9818 801234C8 92700000 */ lbu $s0, 0x0($s3) -/* B981C 801234CC 26730001 */ addiu $s3, $s3, 0x1 -/* B9820 801234D0 8E8204FC */ lw $v0, 0x4FC($s4) -/* B9824 801234D4 96830500 */ lhu $v1, 0x500($s4) -/* B9828 801234D8 24041EC3 */ addiu $a0, $zero, 0x1EC3 -/* B982C 801234DC A29704F8 */ sb $s7, 0x4F8($s4) -/* B9830 801234E0 34420800 */ ori $v0, $v0, 0x800 -/* B9834 801234E4 34630001 */ ori $v1, $v1, 0x1 -/* B9838 801234E8 AE8204FC */ sw $v0, 0x4FC($s4) -/* B983C 801234EC 0C00AB19 */ jal heap_malloc -/* B9840 801234F0 A6830500 */ sh $v1, 0x500($s4) -/* B9844 801234F4 3C030001 */ lui $v1, %hi(charset_postcard_OFFSET) -/* B9848 801234F8 2463B290 */ addiu $v1, $v1, %lo(charset_postcard_OFFSET) -/* B984C 801234FC 3C080011 */ lui $t0, %hi(charset_ROM_START) -/* B9850 80123500 25080CB0 */ addiu $t0, $t0, %lo(charset_ROM_START) -/* B9854 80123504 01032021 */ addu $a0, $t0, $v1 -/* B9858 80123508 24851EC3 */ addiu $a1, $a0, 0x1EC3 -/* B985C 8012350C 0040302D */ daddu $a2, $v0, $zero -/* B9860 80123510 0C00A5AF */ jal dma_copy -/* B9864 80123514 AE860544 */ sw $a2, 0x544($s4) -/* B9868 80123518 0C00AB19 */ jal heap_malloc -/* B986C 8012351C 24040020 */ addiu $a0, $zero, 0x20 -/* B9870 80123520 3C030001 */ lui $v1, %hi(D_D158) -/* B9874 80123524 2463D158 */ addiu $v1, $v1, %lo(D_D158) -/* B9878 80123528 3C080011 */ lui $t0, %hi(charset_ROM_START) -/* B987C 8012352C 25080CB0 */ addiu $t0, $t0, %lo(charset_ROM_START) -/* B9880 80123530 01032021 */ addu $a0, $t0, $v1 -/* B9884 80123534 24850020 */ addiu $a1, $a0, 0x20 -/* B9888 80123538 0040302D */ daddu $a2, $v0, $zero -/* B988C 8012353C 0C00A5AF */ jal dma_copy -/* B9890 80123540 AE860548 */ sw $a2, 0x548($s4) -/* B9894 80123544 0C00AB19 */ jal heap_malloc -/* B9898 80123548 240419FA */ addiu $a0, $zero, 0x19FA -/* B989C 8012354C 321000FF */ andi $s0, $s0, 0xFF -/* B98A0 80123550 00108080 */ sll $s0, $s0, 2 -/* B98A4 80123554 0040302D */ daddu $a2, $v0, $zero -/* B98A8 80123558 AE82054C */ sw $v0, 0x54C($s4) -/* B98AC 8012355C 3C03802F */ lui $v1, %hi(D_802EB5C0) -/* B98B0 80123560 00701821 */ addu $v1, $v1, $s0 -/* B98B4 80123564 8C6318C0 */ lw $v1, %lo(D_802EB5C0)($v1) -/* B98B8 80123568 3C080011 */ lui $t0, %hi(charset_ROM_START) -/* B98BC 8012356C 25080CB0 */ addiu $t0, $t0, %lo(charset_ROM_START) -/* B98C0 80123570 00682021 */ addu $a0, $v1, $t0 -/* B98C4 80123574 0C00A5AF */ jal dma_copy -/* B98C8 80123578 248519FA */ addiu $a1, $a0, 0x19FA -/* B98CC 8012357C 0C00AB19 */ jal heap_malloc -/* B98D0 80123580 24040200 */ addiu $a0, $zero, 0x200 -/* B98D4 80123584 0040302D */ daddu $a2, $v0, $zero -/* B98D8 80123588 AE820550 */ sw $v0, 0x550($s4) -/* B98DC 8012358C 3C03802F */ lui $v1, %hi(D_802EB5F0) -/* B98E0 80123590 00701821 */ addu $v1, $v1, $s0 -/* B98E4 80123594 8C6318F0 */ lw $v1, %lo(D_802EB5F0)($v1) -/* B98E8 80123598 3C080011 */ lui $t0, %hi(charset_ROM_START) -/* B98EC 8012359C 25080CB0 */ addiu $t0, $t0, %lo(charset_ROM_START) -/* B98F0 801235A0 00682021 */ addu $a0, $v1, $t0 -/* B98F4 801235A4 0C00A5AF */ jal dma_copy -/* B98F8 801235A8 24850200 */ addiu $a1, $a0, 0x200 -/* B98FC 801235AC 08048D80 */ j .LPAL_80123600 -/* B9900 801235B0 00000000 */ nop -.LPAL_801235B4: -/* B9904 801235B4 24020028 */ addiu $v0, $zero, 0x28 -/* B9908 801235B8 A6820516 */ sh $v0, 0x516($s4) -/* B990C 801235BC 96820538 */ lhu $v0, 0x538($s4) -/* B9910 801235C0 8E8304FC */ lw $v1, 0x4FC($s4) -/* B9914 801235C4 24420020 */ addiu $v0, $v0, 0x20 -/* B9918 801235C8 A6820514 */ sh $v0, 0x514($s4) -/* B991C 801235CC 34628000 */ ori $v0, $v1, 0x8000 -/* B9920 801235D0 17C0000B */ bnez $fp, .LPAL_80123600 -/* B9924 801235D4 AE8204FC */ sw $v0, 0x4FC($s4) -/* B9928 801235D8 34628800 */ ori $v0, $v1, 0x8800 -/* B992C 801235DC 96830500 */ lhu $v1, 0x500($s4) -/* B9930 801235E0 AE8204FC */ sw $v0, 0x4FC($s4) -/* B9934 801235E4 2402000D */ addiu $v0, $zero, 0xD -/* B9938 801235E8 A28204F8 */ sb $v0, 0x4F8($s4) -/* B993C 801235EC 34630001 */ ori $v1, $v1, 0x1 -/* B9940 801235F0 08048D80 */ j .LPAL_80123600 -/* B9944 801235F4 A6830500 */ sh $v1, 0x500($s4) -.LPAL_801235F8: -/* B9948 801235F8 24020004 */ addiu $v0, $zero, 0x4 -/* B994C 801235FC A28204F8 */ sb $v0, 0x4F8($s4) -.LPAL_80123600: -/* B9950 80123600 96830500 */ lhu $v1, 0x500($s4) -/* B9954 80123604 30620001 */ andi $v0, $v1, 0x1 -/* B9958 80123608 104002C1 */ beqz $v0, .LPAL_80124110 -/* B995C 8012360C 30620006 */ andi $v0, $v1, 0x6 -/* B9960 80123610 08048EAA */ j .LPAL_80123AA8 -/* B9964 80123614 00000000 */ nop -.LPAL_80123618: -/* B9968 80123618 240200FB */ addiu $v0, $zero, 0xFB -/* B996C 8012361C A2420000 */ sb $v0, 0x0($s2) -/* B9970 80123620 8E8304FC */ lw $v1, 0x4FC($s4) -/* B9974 80123624 30620800 */ andi $v0, $v1, 0x800 -/* B9978 80123628 10400011 */ beqz $v0, .LPAL_80123670 -/* B997C 8012362C 26520001 */ addiu $s2, $s2, 0x1 -/* B9980 80123630 30621000 */ andi $v0, $v1, 0x1000 -/* B9984 80123634 10400005 */ beqz $v0, .LPAL_8012364C -/* B9988 80123638 00000000 */ nop -/* B998C 8012363C 8E830504 */ lw $v1, 0x504($s4) -/* B9990 80123640 10600002 */ beqz $v1, .LPAL_8012364C -/* B9994 80123644 24020001 */ addiu $v0, $zero, 0x1 -/* B9998 80123648 AC620000 */ sw $v0, 0x0($v1) -.LPAL_8012364C: -/* B999C 8012364C 92820508 */ lbu $v0, 0x508($s4) -/* B99A0 80123650 2442FFF6 */ addiu $v0, $v0, -0xA -/* B99A4 80123654 2C420002 */ sltiu $v0, $v0, 0x2 -/* B99A8 80123658 14400002 */ bnez $v0, .LPAL_80123664 -/* B99AC 8012365C 2402000E */ addiu $v0, $zero, 0xE -/* B99B0 80123660 24020003 */ addiu $v0, $zero, 0x3 -.LPAL_80123664: -/* B99B4 80123664 A28204F8 */ sb $v0, 0x4F8($s4) -/* B99B8 80123668 08048D9E */ j .LPAL_80123678 -/* B99BC 8012366C A2800512 */ sb $zero, 0x512($s4) -.LPAL_80123670: -/* B99C0 80123670 34620001 */ ori $v0, $v1, 0x1 -/* B99C4 80123674 AE8204FC */ sw $v0, 0x4FC($s4) -.LPAL_80123678: -/* B99C8 80123678 96820500 */ lhu $v0, 0x500($s4) -/* B99CC 8012367C 34420001 */ ori $v0, $v0, 0x1 -/* B99D0 80123680 3042FFFD */ andi $v0, $v0, 0xFFFD -/* B99D4 80123684 08049044 */ j .LPAL_80124110 -/* B99D8 80123688 A6820500 */ sh $v0, 0x500($s4) -.LPAL_8012368C: -/* B99DC 8012368C 92630000 */ lbu $v1, 0x0($s3) -/* B99E0 80123690 2C620030 */ sltiu $v0, $v1, 0x30 -/* B99E4 80123694 1040029E */ beqz $v0, .LPAL_80124110 -/* B99E8 80123698 26730001 */ addiu $s3, $s3, 0x1 -/* B99EC 8012369C 00031080 */ sll $v0, $v1, 2 -/* B99F0 801236A0 3C018015 */ lui $at, %hi(jtbl_PAL_8014F008) -/* B99F4 801236A4 00220821 */ addu $at, $at, $v0 -/* B99F8 801236A8 8C22F008 */ lw $v0, %lo(jtbl_PAL_8014F008)($at) -/* B99FC 801236AC 00400008 */ jr $v0 -/* B9A00 801236B0 00000000 */ nop -.LPAL_801236B4: -/* B9A04 801236B4 A2560000 */ sb $s6, 0x0($s2) -/* B9A08 801236B8 26520001 */ addiu $s2, $s2, 0x1 -/* B9A0C 801236BC A2400000 */ sb $zero, 0x0($s2) -/* B9A10 801236C0 26520001 */ addiu $s2, $s2, 0x1 -/* B9A14 801236C4 92620000 */ lbu $v0, 0x0($s3) -/* B9A18 801236C8 26730001 */ addiu $s3, $s3, 0x1 -/* B9A1C 801236CC 0804901A */ j .LPAL_80124068 -/* B9A20 801236D0 A2820454 */ sb $v0, 0x454($s4) -.LPAL_801236D4: -/* B9A24 801236D4 A2560000 */ sb $s6, 0x0($s2) -/* B9A28 801236D8 26520001 */ addiu $s2, $s2, 0x1 -/* B9A2C 801236DC 24020001 */ addiu $v0, $zero, 0x1 -/* B9A30 801236E0 A2420000 */ sb $v0, 0x0($s2) -/* B9A34 801236E4 26520001 */ addiu $s2, $s2, 0x1 -/* B9A38 801236E8 92620000 */ lbu $v0, 0x0($s3) -/* B9A3C 801236EC 26730001 */ addiu $s3, $s3, 0x1 -/* B9A40 801236F0 0804901A */ j .LPAL_80124068 -/* B9A44 801236F4 A2820455 */ sb $v0, 0x455($s4) -.LPAL_801236F8: -/* B9A48 801236F8 A2560000 */ sb $s6, 0x0($s2) -/* B9A4C 801236FC 26520001 */ addiu $s2, $s2, 0x1 -/* B9A50 80123700 08049016 */ j .LPAL_80124058 -/* B9A54 80123704 24020004 */ addiu $v0, $zero, 0x4 -.LPAL_80123708: -/* B9A58 80123708 8E8204FC */ lw $v0, 0x4FC($s4) -/* B9A5C 8012370C 08049043 */ j .LPAL_8012410C -/* B9A60 80123710 34420010 */ ori $v0, $v0, 0x10 -.LPAL_80123714: -/* B9A64 80123714 8E8204FC */ lw $v0, 0x4FC($s4) -/* B9A68 80123718 2403FEFF */ addiu $v1, $zero, -0x101 -/* B9A6C 8012371C 34420020 */ ori $v0, $v0, 0x20 -/* B9A70 80123720 08049043 */ j .LPAL_8012410C -/* B9A74 80123724 00431024 */ and $v0, $v0, $v1 -.LPAL_80123728: -/* B9A78 80123728 8E8204FC */ lw $v0, 0x4FC($s4) -/* B9A7C 8012372C 2403FFDF */ addiu $v1, $zero, -0x21 -/* B9A80 80123730 08049043 */ j .LPAL_8012410C -/* B9A84 80123734 00431024 */ and $v0, $v0, $v1 -.LPAL_80123738: -/* B9A88 80123738 A2560000 */ sb $s6, 0x0($s2) -/* B9A8C 8012373C 26520001 */ addiu $s2, $s2, 0x1 -/* B9A90 80123740 08049016 */ j .LPAL_80124058 -/* B9A94 80123744 24020005 */ addiu $v0, $zero, 0x5 -.LPAL_80123748: -/* B9A98 80123748 96820500 */ lhu $v0, 0x500($s4) -/* B9A9C 8012374C 34420002 */ ori $v0, $v0, 0x2 -/* B9AA0 80123750 08049044 */ j .LPAL_80124110 -/* B9AA4 80123754 A6820500 */ sh $v0, 0x500($s4) -.LPAL_80123758: -/* B9AA8 80123758 96820500 */ lhu $v0, 0x500($s4) -/* B9AAC 8012375C 08048EE2 */ j .LPAL_80123B88 -/* B9AB0 80123760 3042FFFD */ andi $v0, $v0, 0xFFFD -.LPAL_80123764: -/* B9AB4 80123764 92820486 */ lbu $v0, 0x486($s4) -/* B9AB8 80123768 96830462 */ lhu $v1, 0x462($s4) -/* B9ABC 8012376C 00021040 */ sll $v0, $v0, 1 -/* B9AC0 80123770 02821021 */ addu $v0, $s4, $v0 -/* B9AC4 80123774 A4430488 */ sh $v1, 0x488($v0) -/* B9AC8 80123778 92820486 */ lbu $v0, 0x486($s4) -/* B9ACC 8012377C 24420001 */ addiu $v0, $v0, 0x1 -/* B9AD0 80123780 A2820486 */ sb $v0, 0x486($s4) -/* B9AD4 80123784 240200FA */ addiu $v0, $zero, 0xFA -/* B9AD8 80123788 A2420000 */ sb $v0, 0x0($s2) -/* B9ADC 8012378C 26520001 */ addiu $s2, $s2, 0x1 -/* B9AE0 80123790 92700000 */ lbu $s0, 0x0($s3) -/* B9AE4 80123794 26730001 */ addiu $s3, $s3, 0x1 -/* B9AE8 80123798 92820454 */ lbu $v0, 0x454($s4) -/* B9AEC 8012379C 92830508 */ lbu $v1, 0x508($s4) -/* B9AF0 801237A0 00021080 */ sll $v0, $v0, 2 -/* B9AF4 801237A4 00031840 */ sll $v1, $v1, 1 -/* B9AF8 801237A8 3C01802F */ lui $at, %hi(MsgCharsets) -/* B9AFC 801237AC 00220821 */ addu $at, $at, $v0 -/* B9B00 801237B0 8C2218A8 */ lw $v0, %lo(MsgCharsets)($at) -/* B9B04 801237B4 3C01802F */ lui $at, %hi(D_802EB644) -/* B9B08 801237B8 00230821 */ addu $at, $at, $v1 -/* B9B0C 801237BC 84231944 */ lh $v1, %lo(D_802EB644)($at) -/* B9B10 801237C0 90440003 */ lbu $a0, 0x3($v0) -/* B9B14 801237C4 24020006 */ addiu $v0, $zero, 0x6 -/* B9B18 801237C8 A28204F8 */ sb $v0, 0x4F8($s4) -/* B9B1C 801237CC 96820500 */ lhu $v0, 0x500($s4) -/* B9B20 801237D0 00832021 */ addu $a0, $a0, $v1 -/* B9B24 801237D4 02040018 */ mult $s0, $a0 -/* B9B28 801237D8 A2800468 */ sb $zero, 0x468($s4) -/* B9B2C 801237DC 96830462 */ lhu $v1, 0x462($s4) -/* B9B30 801237E0 34420001 */ ori $v0, $v0, 0x1 -/* B9B34 801237E4 A6820500 */ sh $v0, 0x500($s4) -/* B9B38 801237E8 00004012 */ mflo $t0 -/* B9B3C 801237EC 00681821 */ addu $v1, $v1, $t0 -/* B9B40 801237F0 08049044 */ j .LPAL_80124110 -/* B9B44 801237F4 A6830466 */ sh $v1, 0x466($s4) -.LPAL_801237F8: -/* B9B48 801237F8 A2560000 */ sb $s6, 0x0($s2) -/* B9B4C 801237FC 26520001 */ addiu $s2, $s2, 0x1 -/* B9B50 80123800 24020006 */ addiu $v0, $zero, 0x6 -/* B9B54 80123804 A2420000 */ sb $v0, 0x0($s2) -/* B9B58 80123808 26520001 */ addiu $s2, $s2, 0x1 -/* B9B5C 8012380C 92620000 */ lbu $v0, 0x0($s3) -/* B9B60 80123810 3C013D80 */ lui $at, (0x3D800000 >> 16) -/* B9B64 80123814 44810000 */ mtc1 $at, $f0 -/* B9B68 80123818 26730001 */ addiu $s3, $s3, 0x1 -/* B9B6C 8012381C A2420000 */ sb $v0, 0x0($s2) -/* B9B70 80123820 92700000 */ lbu $s0, 0x0($s3) -/* B9B74 80123824 26520001 */ addiu $s2, $s2, 0x1 -/* B9B78 80123828 3202000F */ andi $v0, $s0, 0xF -/* B9B7C 8012382C 44821000 */ mtc1 $v0, $f2 -/* B9B80 80123830 00000000 */ nop -/* B9B84 80123834 468010A0 */ cvt.s.w $f2, $f2 -/* B9B88 80123838 46001082 */ mul.s $f2, $f2, $f0 -/* B9B8C 8012383C 00000000 */ nop -/* B9B90 80123840 26730001 */ addiu $s3, $s3, 0x1 -/* B9B94 80123844 320200FF */ andi $v0, $s0, 0xFF -/* B9B98 80123848 00021102 */ srl $v0, $v0, 4 -/* B9B9C 8012384C 44820000 */ mtc1 $v0, $f0 -/* B9BA0 80123850 00000000 */ nop -/* B9BA4 80123854 46800020 */ cvt.s.w $f0, $f0 -/* B9BA8 80123858 46020000 */ add.s $f0, $f0, $f2 -/* B9BAC 8012385C 08048E1F */ j .LPAL_8012387C -/* B9BB0 80123860 A2500000 */ sb $s0, 0x0($s2) -.LPAL_80123864: -/* B9BB4 80123864 A2560000 */ sb $s6, 0x0($s2) -/* B9BB8 80123868 26520001 */ addiu $s2, $s2, 0x1 -/* B9BBC 8012386C 3C013F80 */ lui $at, (0x3F800000 >> 16) -/* B9BC0 80123870 44810000 */ mtc1 $at, $f0 -/* B9BC4 80123874 24020007 */ addiu $v0, $zero, 0x7 -/* B9BC8 80123878 A2420000 */ sb $v0, 0x0($s2) -.LPAL_8012387C: -/* B9BCC 8012387C 26520001 */ addiu $s2, $s2, 0x1 -/* B9BD0 80123880 08049044 */ j .LPAL_80124110 -/* B9BD4 80123884 E6800540 */ swc1 $f0, 0x540($s4) -.LPAL_80123888: -/* B9BD8 80123888 92620000 */ lbu $v0, 0x0($s3) -/* B9BDC 8012388C 26730001 */ addiu $s3, $s3, 0x1 -/* B9BE0 80123890 A282045E */ sb $v0, 0x45E($s4) -/* B9BE4 80123894 92620000 */ lbu $v0, 0x0($s3) -/* B9BE8 80123898 26730001 */ addiu $s3, $s3, 0x1 -/* B9BEC 8012389C 08049044 */ j .LPAL_80124110 -/* B9BF0 801238A0 A282045F */ sb $v0, 0x45F($s4) -.LPAL_801238A4: -/* B9BF4 801238A4 A2560000 */ sb $s6, 0x0($s2) -/* B9BF8 801238A8 26520001 */ addiu $s2, $s2, 0x1 -/* B9BFC 801238AC 24020008 */ addiu $v0, $zero, 0x8 -/* B9C00 801238B0 A2420000 */ sb $v0, 0x0($s2) -/* B9C04 801238B4 26520001 */ addiu $s2, $s2, 0x1 -/* B9C08 801238B8 92620000 */ lbu $v0, 0x0($s3) -/* B9C0C 801238BC 08049016 */ j .LPAL_80124058 -/* B9C10 801238C0 26730001 */ addiu $s3, $s3, 0x1 -.LPAL_801238C4: -/* B9C14 801238C4 A2560000 */ sb $s6, 0x0($s2) -/* B9C18 801238C8 26520001 */ addiu $s2, $s2, 0x1 -/* B9C1C 801238CC 08049016 */ j .LPAL_80124058 -/* B9C20 801238D0 24020009 */ addiu $v0, $zero, 0x9 -.LPAL_801238D4: -/* B9C24 801238D4 A2560000 */ sb $s6, 0x0($s2) -/* B9C28 801238D8 26520001 */ addiu $s2, $s2, 0x1 -/* B9C2C 801238DC 08049016 */ j .LPAL_80124058 -/* B9C30 801238E0 2402000A */ addiu $v0, $zero, 0xA -.LPAL_801238E4: -/* B9C34 801238E4 A2560000 */ sb $s6, 0x0($s2) -/* B9C38 801238E8 26520001 */ addiu $s2, $s2, 0x1 -/* B9C3C 801238EC 08049016 */ j .LPAL_80124058 -/* B9C40 801238F0 2402000B */ addiu $v0, $zero, 0xB -.LPAL_801238F4: -/* B9C44 801238F4 A2560000 */ sb $s6, 0x0($s2) -/* B9C48 801238F8 26520001 */ addiu $s2, $s2, 0x1 -/* B9C4C 801238FC 08049016 */ j .LPAL_80124058 -/* B9C50 80123900 2402000C */ addiu $v0, $zero, 0xC -.LPAL_80123904: -/* B9C54 80123904 A2560000 */ sb $s6, 0x0($s2) -/* B9C58 80123908 26520001 */ addiu $s2, $s2, 0x1 -/* B9C5C 8012390C 2402000E */ addiu $v0, $zero, 0xE -/* B9C60 80123910 A2420000 */ sb $v0, 0x0($s2) -/* B9C64 80123914 26520001 */ addiu $s2, $s2, 0x1 -/* B9C68 80123918 92620000 */ lbu $v0, 0x0($s3) -/* B9C6C 8012391C 26730001 */ addiu $s3, $s3, 0x1 -/* B9C70 80123920 26B5FFFF */ addiu $s5, $s5, -0x1 -/* B9C74 80123924 A2420000 */ sb $v0, 0x0($s2) -/* B9C78 80123928 9282045E */ lbu $v0, 0x45E($s4) -/* B9C7C 8012392C 26520001 */ addiu $s2, $s2, 0x1 -/* B9C80 80123930 08048EA3 */ j .LPAL_80123A8C -/* B9C84 80123934 A682000E */ sh $v0, 0xE($s4) -.LPAL_80123938: -/* B9C88 80123938 A2560000 */ sb $s6, 0x0($s2) -/* B9C8C 8012393C 26520001 */ addiu $s2, $s2, 0x1 -/* B9C90 80123940 2402000F */ addiu $v0, $zero, 0xF -/* B9C94 80123944 A2420000 */ sb $v0, 0x0($s2) -/* B9C98 80123948 26520001 */ addiu $s2, $s2, 0x1 -/* B9C9C 8012394C 92620000 */ lbu $v0, 0x0($s3) -/* B9CA0 80123950 26730001 */ addiu $s3, $s3, 0x1 -/* B9CA4 80123954 26B5FFFF */ addiu $s5, $s5, -0x1 -/* B9CA8 80123958 A2420000 */ sb $v0, 0x0($s2) -/* B9CAC 8012395C 26520001 */ addiu $s2, $s2, 0x1 -/* B9CB0 80123960 92620000 */ lbu $v0, 0x0($s3) -/* B9CB4 80123964 26730001 */ addiu $s3, $s3, 0x1 -/* B9CB8 80123968 A2420000 */ sb $v0, 0x0($s2) -/* B9CBC 8012396C 26520001 */ addiu $s2, $s2, 0x1 -/* B9CC0 80123970 92620000 */ lbu $v0, 0x0($s3) -/* B9CC4 80123974 26730001 */ addiu $s3, $s3, 0x1 -/* B9CC8 80123978 A2420000 */ sb $v0, 0x0($s2) -/* B9CCC 8012397C 9282045E */ lbu $v0, 0x45E($s4) -/* B9CD0 80123980 26520001 */ addiu $s2, $s2, 0x1 -/* B9CD4 80123984 08048EA3 */ j .LPAL_80123A8C -/* B9CD8 80123988 A682000E */ sh $v0, 0xE($s4) -.LPAL_8012398C: -/* B9CDC 8012398C A2560000 */ sb $s6, 0x0($s2) -/* B9CE0 80123990 26520001 */ addiu $s2, $s2, 0x1 -/* B9CE4 80123994 24020010 */ addiu $v0, $zero, 0x10 -/* B9CE8 80123998 A2420000 */ sb $v0, 0x0($s2) -/* B9CEC 8012399C 26520001 */ addiu $s2, $s2, 0x1 -/* B9CF0 801239A0 92700000 */ lbu $s0, 0x0($s3) -/* B9CF4 801239A4 26730001 */ addiu $s3, $s3, 0x1 -/* B9CF8 801239A8 92650000 */ lbu $a1, 0x0($s3) -/* B9CFC 801239AC 26730001 */ addiu $s3, $s3, 0x1 -/* B9D00 801239B0 3C068016 */ lui $a2, %hi(D_80158710) -/* B9D04 801239B4 24C68710 */ addiu $a2, $a2, %lo(D_80158710) -/* B9D08 801239B8 3C11001E */ lui $s1, %hi(icon_ROM_START) -/* B9D0C 801239BC 2631A1E0 */ addiu $s1, $s1, %lo(icon_ROM_START) -/* B9D10 801239C0 3C018015 */ lui $at, %hi(D_8014FEEC) -/* B9D14 801239C4 AC26FEEC */ sw $a2, %lo(D_8014FEEC)($at) -/* B9D18 801239C8 00108200 */ sll $s0, $s0, 8 -/* B9D1C 801239CC 00B08025 */ or $s0, $a1, $s0 -/* B9D20 801239D0 00108400 */ sll $s0, $s0, 16 -/* B9D24 801239D4 00108383 */ sra $s0, $s0, 14 -/* B9D28 801239D8 3C028009 */ lui $v0, %hi(gItemIconRasterOffsets) -/* B9D2C 801239DC 00501021 */ addu $v0, $v0, $s0 -/* B9D30 801239E0 8C42A778 */ lw $v0, %lo(gItemIconRasterOffsets)($v0) -/* B9D34 801239E4 26250200 */ addiu $a1, $s1, 0x200 -/* B9D38 801239E8 00512021 */ addu $a0, $v0, $s1 -/* B9D3C 801239EC 0C00A5AF */ jal dma_copy -/* B9D40 801239F0 00452821 */ addu $a1, $v0, $a1 -/* B9D44 801239F4 3C058009 */ lui $a1, %hi(gItemIconPaletteOffsets) -/* B9D48 801239F8 00B02821 */ addu $a1, $a1, $s0 -/* B9D4C 801239FC 8CA5ACEC */ lw $a1, %lo(gItemIconPaletteOffsets)($a1) -/* B9D50 80123A00 3C068016 */ lui $a2, %hi(D_8015B3A0) -/* B9D54 80123A04 24C6B3A0 */ addiu $a2, $a2, %lo(D_8015B3A0) -/* B9D58 80123A08 00B12021 */ addu $a0, $a1, $s1 -/* B9D5C 80123A0C 26310020 */ addiu $s1, $s1, 0x20 -/* B9D60 80123A10 0C00A5AF */ jal dma_copy -/* B9D64 80123A14 00B12821 */ addu $a1, $a1, $s1 -/* B9D68 80123A18 9282045E */ lbu $v0, 0x45E($s4) -/* B9D6C 80123A1C 26B5FFFF */ addiu $s5, $s5, -0x1 -/* B9D70 80123A20 08048EA3 */ j .LPAL_80123A8C -/* B9D74 80123A24 A682000E */ sh $v0, 0xE($s4) -.LPAL_80123A28: -/* B9D78 80123A28 92620000 */ lbu $v0, 0x0($s3) -/* B9D7C 80123A2C 26730001 */ addiu $s3, $s3, 0x1 -/* B9D80 80123A30 26B5FFFF */ addiu $s5, $s5, -0x1 -/* B9D84 80123A34 A282052B */ sb $v0, 0x52B($s4) -/* B9D88 80123A38 92700000 */ lbu $s0, 0x0($s3) -/* B9D8C 80123A3C 26730001 */ addiu $s3, $s3, 0x1 -/* B9D90 80123A40 92650000 */ lbu $a1, 0x0($s3) -/* B9D94 80123A44 26730001 */ addiu $s3, $s3, 0x1 -/* B9D98 80123A48 00101200 */ sll $v0, $s0, 8 -/* B9D9C 80123A4C 00A21025 */ or $v0, $a1, $v0 -/* B9DA0 80123A50 A682052C */ sh $v0, 0x52C($s4) -/* B9DA4 80123A54 92620000 */ lbu $v0, 0x0($s3) -/* B9DA8 80123A58 26730001 */ addiu $s3, $s3, 0x1 -/* B9DAC 80123A5C A682052E */ sh $v0, 0x52E($s4) -/* B9DB0 80123A60 92620000 */ lbu $v0, 0x0($s3) -/* B9DB4 80123A64 26730001 */ addiu $s3, $s3, 0x1 -/* B9DB8 80123A68 A2820530 */ sb $v0, 0x530($s4) -/* B9DBC 80123A6C 92620000 */ lbu $v0, 0x0($s3) -/* B9DC0 80123A70 26730001 */ addiu $s3, $s3, 0x1 -/* B9DC4 80123A74 A2820531 */ sb $v0, 0x531($s4) -/* B9DC8 80123A78 92620000 */ lbu $v0, 0x0($s3) -/* B9DCC 80123A7C 26730001 */ addiu $s3, $s3, 0x1 -/* B9DD0 80123A80 A2800533 */ sb $zero, 0x533($s4) -/* B9DD4 80123A84 A6800534 */ sh $zero, 0x534($s4) -/* B9DD8 80123A88 A2820532 */ sb $v0, 0x532($s4) -.LPAL_80123A8C: -/* B9DDC 80123A8C 1EA00004 */ bgtz $s5, .LPAL_80123AA0 -/* B9DE0 80123A90 00000000 */ nop -/* B9DE4 80123A94 96820500 */ lhu $v0, 0x500($s4) -/* B9DE8 80123A98 34420001 */ ori $v0, $v0, 0x1 -/* B9DEC 80123A9C A6820500 */ sh $v0, 0x500($s4) -.LPAL_80123AA0: -/* B9DF0 80123AA0 96830500 */ lhu $v1, 0x500($s4) -/* B9DF4 80123AA4 30620006 */ andi $v0, $v1, 0x6 -.LPAL_80123AA8: -/* B9DF8 80123AA8 1040019D */ beqz $v0, .LPAL_80124120 -/* B9DFC 80123AAC 3062FFFE */ andi $v0, $v1, 0xFFFE -/* B9E00 80123AB0 08049044 */ j .LPAL_80124110 -/* B9E04 80123AB4 A6820500 */ sh $v0, 0x500($s4) -.LPAL_80123AB8: -/* B9E08 80123AB8 92700000 */ lbu $s0, 0x0($s3) -/* B9E0C 80123ABC 12000005 */ beqz $s0, .LPAL_80123AD4 -/* B9E10 80123AC0 26730001 */ addiu $s3, $s3, 0x1 -/* B9E14 80123AC4 A2970533 */ sb $s7, 0x533($s4) -/* B9E18 80123AC8 A2900532 */ sb $s0, 0x532($s4) -/* B9E1C 80123ACC 08049044 */ j .LPAL_80124110 -/* B9E20 80123AD0 A6800534 */ sh $zero, 0x534($s4) -.LPAL_80123AD4: -/* B9E24 80123AD4 08049044 */ j .LPAL_80124110 -/* B9E28 80123AD8 A680052C */ sh $zero, 0x52C($s4) -.LPAL_80123ADC: -/* B9E2C 80123ADC A2560000 */ sb $s6, 0x0($s2) -/* B9E30 80123AE0 26520001 */ addiu $s2, $s2, 0x1 -/* B9E34 80123AE4 24020011 */ addiu $v0, $zero, 0x11 -/* B9E38 80123AE8 A2420000 */ sb $v0, 0x0($s2) -/* B9E3C 80123AEC 26520001 */ addiu $s2, $s2, 0x1 -/* B9E40 80123AF0 92620000 */ lbu $v0, 0x0($s3) -/* B9E44 80123AF4 26730001 */ addiu $s3, $s3, 0x1 -/* B9E48 80123AF8 A2420000 */ sb $v0, 0x0($s2) -/* B9E4C 80123AFC 26520001 */ addiu $s2, $s2, 0x1 -/* B9E50 80123B00 92620000 */ lbu $v0, 0x0($s3) -/* B9E54 80123B04 26730001 */ addiu $s3, $s3, 0x1 -/* B9E58 80123B08 A2420000 */ sb $v0, 0x0($s2) -/* B9E5C 80123B0C 26520001 */ addiu $s2, $s2, 0x1 -/* B9E60 80123B10 92620000 */ lbu $v0, 0x0($s3) -/* B9E64 80123B14 26730001 */ addiu $s3, $s3, 0x1 -/* B9E68 80123B18 A2420000 */ sb $v0, 0x0($s2) -/* B9E6C 80123B1C 96820500 */ lhu $v0, 0x500($s4) -/* B9E70 80123B20 26520001 */ addiu $s2, $s2, 0x1 -/* B9E74 80123B24 34420004 */ ori $v0, $v0, 0x4 -/* B9E78 80123B28 08049044 */ j .LPAL_80124110 -/* B9E7C 80123B2C A6820500 */ sh $v0, 0x500($s4) -.LPAL_80123B30: -/* B9E80 80123B30 A2560000 */ sb $s6, 0x0($s2) -/* B9E84 80123B34 26520001 */ addiu $s2, $s2, 0x1 -/* B9E88 80123B38 24020012 */ addiu $v0, $zero, 0x12 -/* B9E8C 80123B3C A2420000 */ sb $v0, 0x0($s2) -/* B9E90 80123B40 26520001 */ addiu $s2, $s2, 0x1 -/* B9E94 80123B44 92620000 */ lbu $v0, 0x0($s3) -/* B9E98 80123B48 08049016 */ j .LPAL_80124058 -/* B9E9C 80123B4C 26730001 */ addiu $s3, $s3, 0x1 -.LPAL_80123B50: -/* B9EA0 80123B50 A2560000 */ sb $s6, 0x0($s2) -/* B9EA4 80123B54 26520001 */ addiu $s2, $s2, 0x1 -/* B9EA8 80123B58 24020013 */ addiu $v0, $zero, 0x13 -/* B9EAC 80123B5C A2420000 */ sb $v0, 0x0($s2) -/* B9EB0 80123B60 26520001 */ addiu $s2, $s2, 0x1 -/* B9EB4 80123B64 92620000 */ lbu $v0, 0x0($s3) -/* B9EB8 80123B68 26730001 */ addiu $s3, $s3, 0x1 -/* B9EBC 80123B6C 26B5FFFF */ addiu $s5, $s5, -0x1 -/* B9EC0 80123B70 A2420000 */ sb $v0, 0x0($s2) -/* B9EC4 80123B74 96820500 */ lhu $v0, 0x500($s4) -/* B9EC8 80123B78 26520001 */ addiu $s2, $s2, 0x1 -/* B9ECC 80123B7C 3042FFFB */ andi $v0, $v0, 0xFFFB -/* B9ED0 80123B80 1EA00163 */ bgtz $s5, .LPAL_80124110 -/* B9ED4 80123B84 A6820500 */ sh $v0, 0x500($s4) -.LPAL_80123B88: -/* B9ED8 80123B88 34420001 */ ori $v0, $v0, 0x1 -/* B9EDC 80123B8C 08049044 */ j .LPAL_80124110 -/* B9EE0 80123B90 A6820500 */ sh $v0, 0x500($s4) -.LPAL_80123B94: -/* B9EE4 80123B94 92700000 */ lbu $s0, 0x0($s3) -/* B9EE8 80123B98 26730001 */ addiu $s3, $s3, 0x1 -/* B9EEC 80123B9C 92650000 */ lbu $a1, 0x0($s3) -/* B9EF0 80123BA0 26730001 */ addiu $s3, $s3, 0x1 -/* B9EF4 80123BA4 92640000 */ lbu $a0, 0x0($s3) -/* B9EF8 80123BA8 26730001 */ addiu $s3, $s3, 0x1 -/* B9EFC 80123BAC 92660000 */ lbu $a2, 0x0($s3) -/* B9F00 80123BB0 26730001 */ addiu $s3, $s3, 0x1 -/* B9F04 80123BB4 00101040 */ sll $v0, $s0, 1 -/* B9F08 80123BB8 02821021 */ addu $v0, $s4, $v0 -/* B9F0C 80123BBC 00051A00 */ sll $v1, $a1, 8 -/* B9F10 80123BC0 00831825 */ or $v1, $a0, $v1 -/* B9F14 80123BC4 A44304D0 */ sh $v1, 0x4D0($v0) -/* B9F18 80123BC8 30C300FF */ andi $v1, $a2, 0xFF -/* B9F1C 80123BCC 08049044 */ j .LPAL_80124110 -/* B9F20 80123BD0 A44304DC */ sh $v1, 0x4DC($v0) -.LPAL_80123BD4: -/* B9F24 80123BD4 A2560000 */ sb $s6, 0x0($s2) -/* B9F28 80123BD8 26520001 */ addiu $s2, $s2, 0x1 -/* B9F2C 80123BDC 08049016 */ j .LPAL_80124058 -/* B9F30 80123BE0 24020014 */ addiu $v0, $zero, 0x14 -.LPAL_80123BE4: -/* B9F34 80123BE4 24040009 */ addiu $a0, $zero, 0x9 -/* B9F38 80123BE8 0000282D */ daddu $a1, $zero, $zero -/* B9F3C 80123BEC 00A0302D */ daddu $a2, $a1, $zero -/* B9F40 80123BF0 0C05219A */ jal sfx_play_sound_with_params -/* B9F44 80123BF4 00A0382D */ daddu $a3, $a1, $zero -/* B9F48 80123BF8 92640000 */ lbu $a0, 0x0($s3) -/* B9F4C 80123BFC 26730001 */ addiu $s3, $s3, 0x1 -/* B9F50 80123C00 96830500 */ lhu $v1, 0x500($s4) -/* B9F54 80123C04 24020007 */ addiu $v0, $zero, 0x7 -/* B9F58 80123C08 A28004E9 */ sb $zero, 0x4E9($s4) -/* B9F5C 80123C0C A28004E8 */ sb $zero, 0x4E8($s4) -/* B9F60 80123C10 A28004EE */ sb $zero, 0x4EE($s4) -/* B9F64 80123C14 A28204F8 */ sb $v0, 0x4F8($s4) -/* B9F68 80123C18 34630001 */ ori $v1, $v1, 0x1 -/* B9F6C 80123C1C A28404CE */ sb $a0, 0x4CE($s4) -/* B9F70 80123C20 08049044 */ j .LPAL_80124110 -/* B9F74 80123C24 A6830500 */ sh $v1, 0x500($s4) -.LPAL_80123C28: -/* B9F78 80123C28 92620000 */ lbu $v0, 0x0($s3) -/* B9F7C 80123C2C 26730001 */ addiu $s3, $s3, 0x1 -/* B9F80 80123C30 08049044 */ j .LPAL_80124110 -/* B9F84 80123C34 A28204EA */ sb $v0, 0x4EA($s4) -.LPAL_80123C38: -/* B9F88 80123C38 A2560000 */ sb $s6, 0x0($s2) -/* B9F8C 80123C3C 26520001 */ addiu $s2, $s2, 0x1 -/* B9F90 80123C40 08049016 */ j .LPAL_80124058 -/* B9F94 80123C44 24020015 */ addiu $v0, $zero, 0x15 -.LPAL_80123C48: -/* B9F98 80123C48 A2560000 */ sb $s6, 0x0($s2) -/* B9F9C 80123C4C 26520001 */ addiu $s2, $s2, 0x1 -/* B9FA0 80123C50 0804901A */ j .LPAL_80124068 -/* B9FA4 80123C54 24020017 */ addiu $v0, $zero, 0x17 -.LPAL_80123C58: -/* B9FA8 80123C58 3C040010 */ lui $a0, (0x100040 >> 16) -/* B9FAC 80123C5C 34840040 */ ori $a0, $a0, (0x100040 & 0xFFFF) -/* B9FB0 80123C60 8E8204FC */ lw $v0, 0x4FC($s4) -/* B9FB4 80123C64 96830500 */ lhu $v1, 0x500($s4) -/* B9FB8 80123C68 00441025 */ or $v0, $v0, $a0 -/* B9FBC 80123C6C 34630001 */ ori $v1, $v1, 0x1 -/* B9FC0 80123C70 AE8204FC */ sw $v0, 0x4FC($s4) -/* B9FC4 80123C74 A6830500 */ sh $v1, 0x500($s4) -/* B9FC8 80123C78 0040182D */ daddu $v1, $v0, $zero -/* B9FCC 80123C7C 2402FF7F */ addiu $v0, $zero, -0x81 -/* B9FD0 80123C80 00621824 */ and $v1, $v1, $v0 -/* B9FD4 80123C84 2402FEFF */ addiu $v0, $zero, -0x101 -/* B9FD8 80123C88 00621824 */ and $v1, $v1, $v0 -/* B9FDC 80123C8C 08049044 */ j .LPAL_80124110 -/* B9FE0 80123C90 AE8304FC */ sw $v1, 0x4FC($s4) -.LPAL_80123C94: -/* B9FE4 80123C94 A2560000 */ sb $s6, 0x0($s2) -/* B9FE8 80123C98 26520001 */ addiu $s2, $s2, 0x1 -/* B9FEC 80123C9C 0804901A */ j .LPAL_80124068 -/* B9FF0 80123CA0 24020018 */ addiu $v0, $zero, 0x18 -.LPAL_80123CA4: -/* B9FF4 80123CA4 A2560000 */ sb $s6, 0x0($s2) -/* B9FF8 80123CA8 26520001 */ addiu $s2, $s2, 0x1 -/* B9FFC 80123CAC 0804901A */ j .LPAL_80124068 -/* BA000 80123CB0 24020019 */ addiu $v0, $zero, 0x19 -.LPAL_80123CB4: -/* BA004 80123CB4 A2560000 */ sb $s6, 0x0($s2) -/* BA008 80123CB8 26520001 */ addiu $s2, $s2, 0x1 -/* BA00C 80123CBC 0804901A */ j .LPAL_80124068 -/* BA010 80123CC0 2402001A */ addiu $v0, $zero, 0x1A -.LPAL_80123CC4: -/* BA014 80123CC4 A2560000 */ sb $s6, 0x0($s2) -/* BA018 80123CC8 26520001 */ addiu $s2, $s2, 0x1 -/* BA01C 80123CCC 0804901A */ j .LPAL_80124068 -/* BA020 80123CD0 2402001B */ addiu $v0, $zero, 0x1B -.LPAL_80123CD4: -/* BA024 80123CD4 A2560000 */ sb $s6, 0x0($s2) -/* BA028 80123CD8 26520001 */ addiu $s2, $s2, 0x1 -/* BA02C 80123CDC 2402001C */ addiu $v0, $zero, 0x1C -/* BA030 80123CE0 A2420000 */ sb $v0, 0x0($s2) -/* BA034 80123CE4 26520001 */ addiu $s2, $s2, 0x1 -/* BA038 80123CE8 92700000 */ lbu $s0, 0x0($s3) -/* BA03C 80123CEC 320300FF */ andi $v1, $s0, 0xFF -/* BA040 80123CF0 2C62000F */ sltiu $v0, $v1, 0xF -/* BA044 80123CF4 10400106 */ beqz $v0, .LPAL_80124110 -/* BA048 80123CF8 26730001 */ addiu $s3, $s3, 0x1 -/* BA04C 80123CFC 00031080 */ sll $v0, $v1, 2 -/* BA050 80123D00 3C018015 */ lui $at, %hi(jtbl_PAL_8014F0C8) -/* BA054 80123D04 00220821 */ addu $at, $at, $v0 -/* BA058 80123D08 8C22F0C8 */ lw $v0, %lo(jtbl_PAL_8014F0C8)($at) -/* BA05C 80123D0C 00400008 */ jr $v0 -/* BA060 80123D10 00000000 */ nop -.LPAL_80123D14: -/* BA064 80123D14 A2500000 */ sb $s0, 0x0($s2) -/* BA068 80123D18 08049044 */ j .LPAL_80124110 -/* BA06C 80123D1C 26520001 */ addiu $s2, $s2, 0x1 -.LPAL_80123D20: -/* BA070 80123D20 08049017 */ j .LPAL_8012405C -/* BA074 80123D24 A2500000 */ sb $s0, 0x0($s2) -.LPAL_80123D28: -/* BA078 80123D28 A2560000 */ sb $s6, 0x0($s2) -/* BA07C 80123D2C 26520001 */ addiu $s2, $s2, 0x1 -/* BA080 80123D30 08049016 */ j .LPAL_80124058 -/* BA084 80123D34 2402001D */ addiu $v0, $zero, 0x1D -.LPAL_80123D38: -/* BA088 80123D38 9282052A */ lbu $v0, 0x52A($s4) -/* BA08C 80123D3C A6800528 */ sh $zero, 0x528($s4) -/* BA090 80123D40 A2820455 */ sb $v0, 0x455($s4) -/* BA094 80123D44 244200F1 */ addiu $v0, $v0, 0xF1 -/* BA098 80123D48 A2420000 */ sb $v0, 0x0($s2) -/* BA09C 80123D4C 08048FD3 */ j .LPAL_80123F4C -/* BA0A0 80123D50 26520001 */ addiu $s2, $s2, 0x1 -.LPAL_80123D54: -/* BA0A4 80123D54 92700000 */ lbu $s0, 0x0($s3) -/* BA0A8 80123D58 96820528 */ lhu $v0, 0x528($s4) -/* BA0AC 80123D5C 14400006 */ bnez $v0, .LPAL_80123D78 -/* BA0B0 80123D60 2673FFFE */ addiu $s3, $s3, -0x2 -/* BA0B4 80123D64 92820455 */ lbu $v0, 0x455($s4) -/* BA0B8 80123D68 A282052A */ sb $v0, 0x52A($s4) -/* BA0BC 80123D6C 240200F1 */ addiu $v0, $zero, 0xF1 -/* BA0C0 80123D70 A2420000 */ sb $v0, 0x0($s2) -/* BA0C4 80123D74 26520001 */ addiu $s2, $s2, 0x1 -.LPAL_80123D78: -/* BA0C8 80123D78 00108140 */ sll $s0, $s0, 5 -/* BA0CC 80123D7C 27A60010 */ addiu $a2, $sp, 0x10 -.LPAL_80123D80: -/* BA0D0 80123D80 96820528 */ lhu $v0, 0x528($s4) -/* BA0D4 80123D84 3C088015 */ lui $t0, %hi(D_801547F8) -/* BA0D8 80123D88 250847F8 */ addiu $t0, $t0, %lo(D_801547F8) -/* BA0DC 80123D8C 24430001 */ addiu $v1, $v0, 0x1 -/* BA0E0 80123D90 3042FFFF */ andi $v0, $v0, 0xFFFF -/* BA0E4 80123D94 00501021 */ addu $v0, $v0, $s0 -/* BA0E8 80123D98 00481021 */ addu $v0, $v0, $t0 -/* BA0EC 80123D9C A6830528 */ sh $v1, 0x528($s4) -/* BA0F0 80123DA0 90450000 */ lbu $a1, 0x0($v0) -/* BA0F4 80123DA4 30A300FF */ andi $v1, $a1, 0xFF -/* BA0F8 80123DA8 2C6200F0 */ sltiu $v0, $v1, 0xF0 -/* BA0FC 80123DAC 1440004C */ bnez $v0, .LPAL_80123EE0 -/* BA100 80123DB0 24040001 */ addiu $a0, $zero, 0x1 -/* BA104 80123DB4 2463FF10 */ addiu $v1, $v1, -0xF0 -/* BA108 80123DB8 2C620010 */ sltiu $v0, $v1, 0x10 -/* BA10C 80123DBC 10400049 */ beqz $v0, .LPAL_80123EE4 -/* BA110 80123DC0 00031080 */ sll $v0, $v1, 2 -/* BA114 80123DC4 3C088015 */ lui $t0, %hi(jtbl_PAL_8014F108) -/* BA118 80123DC8 2508F108 */ addiu $t0, $t0, %lo(jtbl_PAL_8014F108) -/* BA11C 80123DCC 00481021 */ addu $v0, $v0, $t0 -/* BA120 80123DD0 8C420000 */ lw $v0, 0x0($v0) -/* BA124 80123DD4 00400008 */ jr $v0 -/* BA128 80123DD8 00000000 */ nop -.LPAL_80123DDC: -/* BA12C 80123DDC 96820528 */ lhu $v0, 0x528($s4) -/* BA130 80123DE0 3C088015 */ lui $t0, %hi(D_801547F8) -/* BA134 80123DE4 250847F8 */ addiu $t0, $t0, %lo(D_801547F8) -/* BA138 80123DE8 00501021 */ addu $v0, $v0, $s0 -/* BA13C 80123DEC 00481021 */ addu $v0, $v0, $t0 -/* BA140 80123DF0 90420000 */ lbu $v0, 0x0($v0) -/* BA144 80123DF4 240800FD */ addiu $t0, $zero, 0xFD -/* BA148 80123DF8 10480003 */ beq $v0, $t0, .LPAL_80123E08 -/* BA14C 80123DFC 240200F0 */ addiu $v0, $zero, 0xF0 -/* BA150 80123E00 08048FB9 */ j .LPAL_80123EE4 -/* BA154 80123E04 A3A20010 */ sb $v0, 0x10($sp) -.LPAL_80123E08: -/* BA158 80123E08 08048FB9 */ j .LPAL_80123EE4 -/* BA15C 80123E0C 0000202D */ daddu $a0, $zero, $zero -.LPAL_80123E10: -/* BA160 80123E10 24A200FE */ addiu $v0, $a1, 0xFE -/* BA164 80123E14 A3A20010 */ sb $v0, 0x10($sp) -/* BA168 80123E18 24A2010D */ addiu $v0, $a1, 0x10D -/* BA16C 80123E1C 08048FB9 */ j .LPAL_80123EE4 -/* BA170 80123E20 A2820455 */ sb $v0, 0x455($s4) -.LPAL_80123E24: -/* BA174 80123E24 240200F5 */ addiu $v0, $zero, 0xF5 -/* BA178 80123E28 08048FB9 */ j .LPAL_80123EE4 -/* BA17C 80123E2C A3A20010 */ sb $v0, 0x10($sp) -.LPAL_80123E30: -/* BA180 80123E30 A3B60010 */ sb $s6, 0x10($sp) -/* BA184 80123E34 96820528 */ lhu $v0, 0x528($s4) -/* BA188 80123E38 3C088015 */ lui $t0, %hi(D_801547F8) -/* BA18C 80123E3C 250847F8 */ addiu $t0, $t0, %lo(D_801547F8) -/* BA190 80123E40 24430001 */ addiu $v1, $v0, 0x1 -/* BA194 80123E44 3042FFFF */ andi $v0, $v0, 0xFFFF -/* BA198 80123E48 00501021 */ addu $v0, $v0, $s0 -/* BA19C 80123E4C 00481021 */ addu $v0, $v0, $t0 -/* BA1A0 80123E50 A6830528 */ sh $v1, 0x528($s4) -/* BA1A4 80123E54 90430000 */ lbu $v1, 0x0($v0) -/* BA1A8 80123E58 24020024 */ addiu $v0, $zero, 0x24 -/* BA1AC 80123E5C 1062001A */ beq $v1, $v0, .LPAL_80123EC8 -/* BA1B0 80123E60 28620025 */ slti $v0, $v1, 0x25 -/* BA1B4 80123E64 10400005 */ beqz $v0, .LPAL_80123E7C -/* BA1B8 80123E68 24020005 */ addiu $v0, $zero, 0x5 -/* BA1BC 80123E6C 10620008 */ beq $v1, $v0, .LPAL_80123E90 -/* BA1C0 80123E70 0000182D */ daddu $v1, $zero, $zero -/* BA1C4 80123E74 08048FBA */ j .LPAL_80123EE8 -/* BA1C8 80123E78 00000000 */ nop -.LPAL_80123E7C: -/* BA1CC 80123E7C 24020025 */ addiu $v0, $zero, 0x25 -/* BA1D0 80123E80 10620013 */ beq $v1, $v0, .LPAL_80123ED0 -/* BA1D4 80123E84 0000182D */ daddu $v1, $zero, $zero -/* BA1D8 80123E88 08048FBA */ j .LPAL_80123EE8 -/* BA1DC 80123E8C 00000000 */ nop -.LPAL_80123E90: -/* BA1E0 80123E90 24020004 */ addiu $v0, $zero, 0x4 -/* BA1E4 80123E94 A3A20011 */ sb $v0, 0x11($sp) -/* BA1E8 80123E98 96820528 */ lhu $v0, 0x528($s4) -/* BA1EC 80123E9C 3C088015 */ lui $t0, %hi(D_801547F8) -/* BA1F0 80123EA0 250847F8 */ addiu $t0, $t0, %lo(D_801547F8) -/* BA1F4 80123EA4 24430001 */ addiu $v1, $v0, 0x1 -/* BA1F8 80123EA8 3042FFFF */ andi $v0, $v0, 0xFFFF -/* BA1FC 80123EAC 00501021 */ addu $v0, $v0, $s0 -/* BA200 80123EB0 00481021 */ addu $v0, $v0, $t0 -/* BA204 80123EB4 A6830528 */ sh $v1, 0x528($s4) -/* BA208 80123EB8 90420000 */ lbu $v0, 0x0($v0) -/* BA20C 80123EBC 24040003 */ addiu $a0, $zero, 0x3 -/* BA210 80123EC0 08048FB9 */ j .LPAL_80123EE4 -/* BA214 80123EC4 A3A20012 */ sb $v0, 0x12($sp) -.LPAL_80123EC8: -/* BA218 80123EC8 08048FB5 */ j .LPAL_80123ED4 -/* BA21C 80123ECC 2402001A */ addiu $v0, $zero, 0x1A -.LPAL_80123ED0: -/* BA220 80123ED0 2402001B */ addiu $v0, $zero, 0x1B -.LPAL_80123ED4: -/* BA224 80123ED4 A3A20011 */ sb $v0, 0x11($sp) -/* BA228 80123ED8 08048FB9 */ j .LPAL_80123EE4 -/* BA22C 80123EDC 24040002 */ addiu $a0, $zero, 0x2 -.LPAL_80123EE0: -/* BA230 80123EE0 A3A50010 */ sb $a1, 0x10($sp) -.LPAL_80123EE4: -/* BA234 80123EE4 0000182D */ daddu $v1, $zero, $zero -.LPAL_80123EE8: -/* BA238 80123EE8 10800009 */ beqz $a0, .LPAL_80123F10 -/* BA23C 80123EEC 00000000 */ nop -.LPAL_80123EF0: -/* BA240 80123EF0 26B5FFFF */ addiu $s5, $s5, -0x1 -/* BA244 80123EF4 00C31021 */ addu $v0, $a2, $v1 -/* BA248 80123EF8 90420000 */ lbu $v0, 0x0($v0) -/* BA24C 80123EFC 24630001 */ addiu $v1, $v1, 0x1 -/* BA250 80123F00 A2420000 */ sb $v0, 0x0($s2) -/* BA254 80123F04 0064102A */ slt $v0, $v1, $a0 -/* BA258 80123F08 1440FFF9 */ bnez $v0, .LPAL_80123EF0 -/* BA25C 80123F0C 26520001 */ addiu $s2, $s2, 0x1 -.LPAL_80123F10: -/* BA260 80123F10 96820528 */ lhu $v0, 0x528($s4) -/* BA264 80123F14 3C088015 */ lui $t0, %hi(D_801547F8) -/* BA268 80123F18 250847F8 */ addiu $t0, $t0, %lo(D_801547F8) -/* BA26C 80123F1C 00501021 */ addu $v0, $v0, $s0 -/* BA270 80123F20 00481021 */ addu $v0, $v0, $t0 -/* BA274 80123F24 90420000 */ lbu $v0, 0x0($v0) -/* BA278 80123F28 240800FD */ addiu $t0, $zero, 0xFD -/* BA27C 80123F2C 5048FF82 */ beql $v0, $t0, .LPAL_80123D38 -/* BA280 80123F30 26730003 */ addiu $s3, $s3, 0x3 -/* BA284 80123F34 96820500 */ lhu $v0, 0x500($s4) -/* BA288 80123F38 30420006 */ andi $v0, $v0, 0x6 -/* BA28C 80123F3C 1440FF90 */ bnez $v0, .LPAL_80123D80 -/* BA290 80123F40 00000000 */ nop -/* BA294 80123F44 1EA0FF8E */ bgtz $s5, .LPAL_80123D80 -/* BA298 80123F48 00000000 */ nop -.LPAL_80123F4C: -/* BA29C 80123F4C 96840500 */ lhu $a0, 0x500($s4) -/* BA2A0 80123F50 30820006 */ andi $v0, $a0, 0x6 -/* BA2A4 80123F54 54400066 */ bnel $v0, $zero, .LPAL_801240F0 -/* BA2A8 80123F58 0280202D */ daddu $a0, $s4, $zero -/* BA2AC 80123F5C 5EA00064 */ bgtzl $s5, .LPAL_801240F0 -/* BA2B0 80123F60 0280202D */ daddu $a0, $s4, $zero -/* BA2B4 80123F64 9283045E */ lbu $v1, 0x45E($s4) -/* BA2B8 80123F68 34820001 */ ori $v0, $a0, 0x1 -/* BA2BC 80123F6C A6820500 */ sh $v0, 0x500($s4) -/* BA2C0 80123F70 A683000E */ sh $v1, 0xE($s4) -/* BA2C4 80123F74 0804903C */ j .LPAL_801240F0 -/* BA2C8 80123F78 0280202D */ daddu $a0, $s4, $zero -.LPAL_80123F7C: -/* BA2CC 80123F7C 92700000 */ lbu $s0, 0x0($s3) -/* BA2D0 80123F80 3C04802F */ lui $a0, %hi(D_802EB620) -/* BA2D4 80123F84 24841920 */ addiu $a0, $a0, %lo(D_802EB620) -/* BA2D8 80123F88 320300FF */ andi $v1, $s0, 0xFF -/* BA2DC 80123F8C 00031040 */ sll $v0, $v1, 1 -/* BA2E0 80123F90 00431021 */ addu $v0, $v0, $v1 -/* BA2E4 80123F94 00021080 */ sll $v0, $v0, 2 -/* BA2E8 80123F98 00441021 */ addu $v0, $v0, $a0 -/* BA2EC 80123F9C A2900518 */ sb $s0, 0x518($s4) -/* BA2F0 80123FA0 8C430000 */ lw $v1, 0x0($v0) -/* BA2F4 80123FA4 AE830520 */ sw $v1, 0x520($s4) -/* BA2F8 80123FA8 8C430004 */ lw $v1, 0x4($v0) -/* BA2FC 80123FAC AE830524 */ sw $v1, 0x524($s4) -/* BA300 80123FB0 9442000A */ lhu $v0, 0xA($v0) -/* BA304 80123FB4 26730001 */ addiu $s3, $s3, 0x1 -/* BA308 80123FB8 08049044 */ j .LPAL_80124110 -/* BA30C 80123FBC A682051C */ sh $v0, 0x51C($s4) -.LPAL_80123FC0: -/* BA310 80123FC0 92620000 */ lbu $v0, 0x0($s3) -/* BA314 80123FC4 26730001 */ addiu $s3, $s3, 0x1 -/* BA318 80123FC8 08049044 */ j .LPAL_80124110 -/* BA31C 80123FCC A2820519 */ sb $v0, 0x519($s4) -.LPAL_80123FD0: -/* BA320 80123FD0 92700000 */ lbu $s0, 0x0($s3) -/* BA324 80123FD4 26730001 */ addiu $s3, $s3, 0x1 -/* BA328 80123FD8 92650000 */ lbu $a1, 0x0($s3) -/* BA32C 80123FDC 26730001 */ addiu $s3, $s3, 0x1 -/* BA330 80123FE0 92640000 */ lbu $a0, 0x0($s3) -/* BA334 80123FE4 26730001 */ addiu $s3, $s3, 0x1 -/* BA338 80123FE8 92660000 */ lbu $a2, 0x0($s3) -/* BA33C 80123FEC 26730001 */ addiu $s3, $s3, 0x1 -/* BA340 80123FF0 00101600 */ sll $v0, $s0, 24 -/* BA344 80123FF4 00051C00 */ sll $v1, $a1, 16 -/* BA348 80123FF8 00431021 */ addu $v0, $v0, $v1 -/* BA34C 80123FFC 00041A00 */ sll $v1, $a0, 8 -/* BA350 80124000 00431021 */ addu $v0, $v0, $v1 -/* BA354 80124004 00C21025 */ or $v0, $a2, $v0 -/* BA358 80124008 AE820520 */ sw $v0, 0x520($s4) -/* BA35C 8012400C 92700000 */ lbu $s0, 0x0($s3) -/* BA360 80124010 26730001 */ addiu $s3, $s3, 0x1 -/* BA364 80124014 92650000 */ lbu $a1, 0x0($s3) -/* BA368 80124018 26730001 */ addiu $s3, $s3, 0x1 -/* BA36C 8012401C 92640000 */ lbu $a0, 0x0($s3) -/* BA370 80124020 26730001 */ addiu $s3, $s3, 0x1 -/* BA374 80124024 92660000 */ lbu $a2, 0x0($s3) -/* BA378 80124028 26730001 */ addiu $s3, $s3, 0x1 -/* BA37C 8012402C 00101600 */ sll $v0, $s0, 24 -/* BA380 80124030 00051C00 */ sll $v1, $a1, 16 -/* BA384 80124034 00431021 */ addu $v0, $v0, $v1 -/* BA388 80124038 00041A00 */ sll $v1, $a0, 8 -/* BA38C 8012403C 00431021 */ addu $v0, $v0, $v1 -/* BA390 80124040 00C21025 */ or $v0, $a2, $v0 -/* BA394 80124044 08049044 */ j .LPAL_80124110 -/* BA398 80124048 AE820524 */ sw $v0, 0x524($s4) -.LPAL_8012404C: -/* BA39C 8012404C A2560000 */ sb $s6, 0x0($s2) -/* BA3A0 80124050 26520001 */ addiu $s2, $s2, 0x1 -/* BA3A4 80124054 2402001E */ addiu $v0, $zero, 0x1E -.LPAL_80124058: -/* BA3A8 80124058 A2420000 */ sb $v0, 0x0($s2) -.LPAL_8012405C: -/* BA3AC 8012405C 26520001 */ addiu $s2, $s2, 0x1 -/* BA3B0 80124060 92620000 */ lbu $v0, 0x0($s3) -/* BA3B4 80124064 26730001 */ addiu $s3, $s3, 0x1 -.LPAL_80124068: -/* BA3B8 80124068 A2420000 */ sb $v0, 0x0($s2) -/* BA3BC 8012406C 08049044 */ j .LPAL_80124110 -/* BA3C0 80124070 26520001 */ addiu $s2, $s2, 0x1 -.LPAL_80124074: -/* BA3C4 80124074 92620000 */ lbu $v0, 0x0($s3) -/* BA3C8 80124078 10400005 */ beqz $v0, .LPAL_80124090 -/* BA3CC 8012407C 26730001 */ addiu $s3, $s3, 0x1 -/* BA3D0 80124080 8E8204FC */ lw $v0, 0x4FC($s4) -/* BA3D4 80124084 3C030004 */ lui $v1, (0x40000 >> 16) -/* BA3D8 80124088 08049043 */ j .LPAL_8012410C -/* BA3DC 8012408C 00431025 */ or $v0, $v0, $v1 -.LPAL_80124090: -/* BA3E0 80124090 3C03FFFB */ lui $v1, (0xFFFBFFFF >> 16) -/* BA3E4 80124094 8E8204FC */ lw $v0, 0x4FC($s4) -/* BA3E8 80124098 3463FFFF */ ori $v1, $v1, (0xFFFBFFFF & 0xFFFF) -/* BA3EC 8012409C 08049043 */ j .LPAL_8012410C -/* BA3F0 801240A0 00431024 */ and $v0, $v0, $v1 -.LPAL_801240A4: -/* BA3F4 801240A4 8E8204FC */ lw $v0, 0x4FC($s4) -/* BA3F8 801240A8 3C030008 */ lui $v1, (0x80000 >> 16) -/* BA3FC 801240AC 08049043 */ j .LPAL_8012410C -/* BA400 801240B0 00431025 */ or $v0, $v0, $v1 -.LPAL_801240B4: -/* BA404 801240B4 A2450000 */ sb $a1, 0x0($s2) -/* BA408 801240B8 26520001 */ addiu $s2, $s2, 0x1 -/* BA40C 801240BC 92820455 */ lbu $v0, 0x455($s4) -/* BA410 801240C0 14400009 */ bnez $v0, .LPAL_801240E8 -/* BA414 801240C4 26B5FFFF */ addiu $s5, $s5, -0x1 -/* BA418 801240C8 30A300FF */ andi $v1, $a1, 0xFF -/* BA41C 801240CC 240200C3 */ addiu $v0, $zero, 0xC3 -/* BA420 801240D0 14620006 */ bne $v1, $v0, .LPAL_801240EC -/* BA424 801240D4 0280202D */ daddu $a0, $s4, $zero -/* BA428 801240D8 8E8204FC */ lw $v0, 0x4FC($s4) -/* BA42C 801240DC 2403FF7F */ addiu $v1, $zero, -0x81 -/* BA430 801240E0 08049043 */ j .LPAL_8012410C -/* BA434 801240E4 00431024 */ and $v0, $v0, $v1 -.LPAL_801240E8: -/* BA438 801240E8 0280202D */ daddu $a0, $s4, $zero -.LPAL_801240EC: -/* BA43C 801240EC 30A500FF */ andi $a1, $a1, 0xFF -.LPAL_801240F0: -/* BA440 801240F0 0C048BCD */ jal msg_play_speech_sound -/* BA444 801240F4 00000000 */ nop -/* BA448 801240F8 8E8304FC */ lw $v1, 0x4FC($s4) -/* BA44C 801240FC 3C020080 */ lui $v0, (0x800000 >> 16) -/* BA450 80124100 00621024 */ and $v0, $v1, $v0 -/* BA454 80124104 10400002 */ beqz $v0, .LPAL_80124110 -/* BA458 80124108 34620080 */ ori $v0, $v1, 0x80 -.LPAL_8012410C: -/* BA45C 8012410C AE8204FC */ sw $v0, 0x4FC($s4) -.LPAL_80124110: -/* BA460 80124110 96820500 */ lhu $v0, 0x500($s4) -/* BA464 80124114 30420006 */ andi $v0, $v0, 0x6 -/* BA468 80124118 14400008 */ bnez $v0, .LPAL_8012413C -/* BA46C 8012411C 00000000 */ nop -.LPAL_80124120: -/* BA470 80124120 1EA00006 */ bgtz $s5, .LPAL_8012413C -/* BA474 80124124 00000000 */ nop -/* BA478 80124128 96820500 */ lhu $v0, 0x500($s4) -/* BA47C 8012412C 9283045E */ lbu $v1, 0x45E($s4) -/* BA480 80124130 34420001 */ ori $v0, $v0, 0x1 -/* BA484 80124134 A6820500 */ sh $v0, 0x500($s4) -/* BA488 80124138 A683000E */ sh $v1, 0xE($s4) -.LPAL_8012413C: -/* BA48C 8012413C 96820500 */ lhu $v0, 0x500($s4) -/* BA490 80124140 30420001 */ andi $v0, $v0, 0x1 -/* BA494 80124144 1040FBE2 */ beqz $v0, .LPAL_801230D0 -/* BA498 80124148 00000000 */ nop -/* BA49C 8012414C 13C00004 */ beqz $fp, .LPAL_80124160 -/* BA4A0 80124150 240800FD */ addiu $t0, $zero, 0xFD -/* BA4A4 80124154 9262FFFF */ lbu $v0, -0x1($s3) -/* BA4A8 80124158 1448FBDD */ bne $v0, $t0, .LPAL_801230D0 -/* BA4AC 8012415C 24152710 */ addiu $s5, $zero, 0x2710 -.LPAL_80124160: -/* BA4B0 80124160 2642FFF0 */ addiu $v0, $s2, -0x10 -/* BA4B4 80124164 8E830000 */ lw $v1, 0x0($s4) -/* BA4B8 80124168 00541023 */ subu $v0, $v0, $s4 -/* BA4BC 8012416C A6820004 */ sh $v0, 0x4($s4) -/* BA4C0 80124170 240200FB */ addiu $v0, $zero, 0xFB -/* BA4C4 80124174 A6800500 */ sh $zero, 0x500($s4) -/* BA4C8 80124178 02631823 */ subu $v1, $s3, $v1 -/* BA4CC 8012417C A683000C */ sh $v1, 0xC($s4) -/* BA4D0 80124180 A2420000 */ sb $v0, 0x0($s2) -/* BA4D4 80124184 8FBF0044 */ lw $ra, 0x44($sp) -/* BA4D8 80124188 8FBE0040 */ lw $fp, 0x40($sp) -/* BA4DC 8012418C 8FB7003C */ lw $s7, 0x3C($sp) -/* BA4E0 80124190 8FB60038 */ lw $s6, 0x38($sp) -/* BA4E4 80124194 8FB50034 */ lw $s5, 0x34($sp) -/* BA4E8 80124198 8FB40030 */ lw $s4, 0x30($sp) -/* BA4EC 8012419C 8FB3002C */ lw $s3, 0x2C($sp) -/* BA4F0 801241A0 8FB20028 */ lw $s2, 0x28($sp) -/* BA4F4 801241A4 8FB10024 */ lw $s1, 0x24($sp) -/* BA4F8 801241A8 8FB00020 */ lw $s0, 0x20($sp) -/* BA4FC 801241AC 03E00008 */ jr $ra -/* BA500 801241B0 27BD0048 */ addiu $sp, $sp, 0x48 diff --git a/ver/pal/asm/nonmatchings/msg_draw/appendGfx_message.s b/ver/pal/asm/nonmatchings/msg_draw/appendGfx_message.s deleted file mode 100644 index def3191f3c4..00000000000 --- a/ver/pal/asm/nonmatchings/msg_draw/appendGfx_message.s +++ /dev/null @@ -1,4932 +0,0 @@ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ - -.section .rodata -.align 3 -glabel jtbl_PAL_8014F300 -/* E5650 8014F300 80126ACC */ .word .LPAL_80126ACC -/* E5654 8014F304 80126B5C */ .word .LPAL_80126B5C -/* E5658 8014F308 80126B5C */ .word .LPAL_80126B5C -/* E565C 8014F30C 80126B5C */ .word .LPAL_80126B5C -/* E5660 8014F310 80126B5C */ .word .LPAL_80126B5C -/* E5664 8014F314 80126B88 */ .word .LPAL_80126B88 -/* E5668 8014F318 80126B88 */ .word .LPAL_80126B88 -/* E566C 8014F31C 80126B88 */ .word .LPAL_80126B88 -/* E5670 8014F320 80126BC0 */ .word .LPAL_80126BC0 -/* E5674 8014F324 801291E4 */ .word .LPAL_801291E4 -/* E5678 8014F328 801285FC */ .word .LPAL_801285FC -/* E567C 8014F32C 80128718 */ .word .LPAL_80128718 -/* E5680 8014F330 8012967C */ .word .LPAL_8012967C -/* E5684 8014F334 8012967C */ .word .LPAL_8012967C -/* E5688 8014F338 8012967C */ .word .LPAL_8012967C -/* E568C 8014F33C 80128724 */ .word .LPAL_80128724 - -.align 3 -glabel jtbl_PAL_8014F340 -/* E5690 8014F340 80126BFC */ .word .LPAL_80126BFC -/* E5694 8014F344 80126BFC */ .word .LPAL_80126BFC -/* E5698 8014F348 80126BFC */ .word .LPAL_80126BFC -/* E569C 8014F34C 80126BFC */ .word .LPAL_80126BFC -/* E56A0 8014F350 8012749C */ .word .LPAL_8012749C -/* E56A4 8014F354 80127844 */ .word .LPAL_80127844 -/* E56A8 8014F358 80127A54 */ .word .LPAL_80127A54 -/* E56AC 8014F35C 80127A54 */ .word .LPAL_80127A54 -/* E56B0 8014F360 8012820C */ .word .LPAL_8012820C -/* E56B4 8014F364 80128478 */ .word .LPAL_80128478 -/* E56B8 8014F368 80128478 */ .word .LPAL_80128478 -/* E56BC 8014F36C 80127844 */ .word .LPAL_80127844 -/* E56C0 8014F370 80127844 */ .word .LPAL_80127844 -/* E56C4 8014F374 80128560 */ .word .LPAL_80128560 -/* E56C8 8014F378 80127844 */ .word .LPAL_80127844 -/* E56CC 8014F37C 00000000 */ .word 0x00000000 - -glabel D_PAL_8014F380 -/* E56D0 8014F380 3FD6666666666666 */ .double 0.349999999999999978 - -glabel D_PAL_8014F388 -/* E56D8 8014F388 3FC47AE147AE147B */ .double 0.160000000000000003 - -glabel D_PAL_8014F390 -/* E56E0 8014F390 3FC999999999999A */ .double 0.200000000000000011 - -glabel D_PAL_8014F398 -/* E56E8 8014F398 406FE00000000000 */ .double 255 - -glabel D_PAL_8014F3A0 -/* E56F0 8014F3A0 3FE3333333333333 */ .double 0.599999999999999978 - -glabel D_PAL_8014F3A8 -/* E56F8 8014F3A8 3FE3333333333333 */ .double 0.599999999999999978 - -.align 3 -glabel jtbl_PAL_8014F3B0 -/* E5700 8014F3B0 80128764 */ .word .LPAL_80128764 -/* E5704 8014F3B4 8012879C */ .word .LPAL_8012879C -/* E5708 8014F3B8 8012AB10 */ .word .LPAL_8012AB10 -/* E570C 8014F3BC 8012AB10 */ .word .LPAL_8012AB10 -/* E5710 8014F3C0 801287C8 */ .word .LPAL_801287C8 -/* E5714 8014F3C4 80128800 */ .word .LPAL_80128800 -/* E5718 8014F3C8 80128820 */ .word .LPAL_80128820 -/* E571C 8014F3CC 80128958 */ .word .LPAL_80128958 -/* E5720 8014F3D0 801289A4 */ .word .LPAL_801289A4 -/* E5724 8014F3D4 801289DC */ .word .LPAL_801289DC -/* E5728 8014F3D8 80128A00 */ .word .LPAL_80128A00 -/* E572C 8014F3DC 80128A34 */ .word .LPAL_80128A34 -/* E5730 8014F3E0 80128A60 */ .word .LPAL_80128A60 -/* E5734 8014F3E4 8012AB10 */ .word .LPAL_8012AB10 -/* E5738 8014F3E8 80128A94 */ .word .LPAL_80128A94 -/* E573C 8014F3EC 80128BE8 */ .word .LPAL_80128BE8 -/* E5740 8014F3F0 80128D3C */ .word .LPAL_80128D3C -/* E5744 8014F3F4 80128E70 */ .word .LPAL_80128E70 -/* E5748 8014F3F8 8012906C */ .word .LPAL_8012906C -/* E574C 8014F3FC 80129664 */ .word .LPAL_80129664 -/* E5750 8014F400 80129084 */ .word .LPAL_80129084 -/* E5754 8014F404 80129100 */ .word .LPAL_80129100 -/* E5758 8014F408 80129154 */ .word .LPAL_80129154 -/* E575C 8014F40C 80129174 */ .word .LPAL_80129174 -/* E5760 8014F410 80129184 */ .word .LPAL_80129184 -/* E5764 8014F414 801291AC */ .word .LPAL_801291AC -/* E5768 8014F418 801291D4 */ .word .LPAL_801291D4 -/* E576C 8014F41C 801291FC */ .word .LPAL_801291FC -/* E5770 8014F420 8012921C */ .word .LPAL_8012921C -/* E5774 8014F424 80129480 */ .word .LPAL_80129480 -/* E5778 8014F428 801295F8 */ .word .LPAL_801295F8 -/* E577C 8014F42C 00000000 */ .word 0x00000000 - -glabel D_PAL_8014F430 -/* E5780 8014F430 3FE6666666666666 */ .double 0.699999999999999956 - -glabel D_PAL_8014F438 -/* E5788 8014F438 3FE6666666666666 */ .double 0.699999999999999956 - -glabel D_PAL_8014F440 -/* E5790 8014F440 3FE6666666666666 */ .double 0.699999999999999956 - -.align 3 -glabel jtbl_PAL_8014F448 -/* E5798 8014F448 80129254 */ .word .LPAL_80129254 -/* E579C 8014F44C 8012926C */ .word .LPAL_8012926C -/* E57A0 8014F450 80129284 */ .word .LPAL_80129284 -/* E57A4 8014F454 801292CC */ .word .LPAL_801292CC -/* E57A8 8014F458 8012AB10 */ .word .LPAL_8012AB10 -/* E57AC 8014F45C 80129354 */ .word .LPAL_80129354 -/* E57B0 8014F460 80129384 */ .word .LPAL_80129384 -/* E57B4 8014F464 8012939C */ .word .LPAL_8012939C -/* E57B8 8014F468 801293CC */ .word .LPAL_801293CC -/* E57BC 8014F46C 801293E4 */ .word .LPAL_801293E4 -/* E57C0 8014F470 801293FC */ .word .LPAL_801293FC -/* E57C4 8014F474 80129414 */ .word .LPAL_80129414 -/* E57C8 8014F478 8012942C */ .word .LPAL_8012942C -/* E57CC 8014F47C 80129444 */ .word .LPAL_80129444 -/* E57D0 8014F480 8012945C */ .word .LPAL_8012945C -/* E57D4 8014F484 00000000 */ .word 0x00000000 - -.align 3 -glabel jtbl_PAL_8014F488 -/* E57D8 8014F488 801294B8 */ .word .LPAL_801294B8 -/* E57DC 8014F48C 801294CC */ .word .LPAL_801294CC -/* E57E0 8014F490 801294E0 */ .word .LPAL_801294E0 -/* E57E4 8014F494 801294F4 */ .word .LPAL_801294F4 -/* E57E8 8014F498 80129664 */ .word .LPAL_80129664 -/* E57EC 8014F49C 8012950C */ .word .LPAL_8012950C -/* E57F0 8014F4A0 80129520 */ .word .LPAL_80129520 -/* E57F4 8014F4A4 80129530 */ .word .LPAL_80129530 -/* E57F8 8014F4A8 80129544 */ .word .LPAL_80129544 -/* E57FC 8014F4AC 80129558 */ .word .LPAL_80129558 -/* E5800 8014F4B0 80129580 */ .word .LPAL_80129580 -/* E5804 8014F4B4 80129594 */ .word .LPAL_80129594 -/* E5808 8014F4B8 801295A8 */ .word .LPAL_801295A8 -/* E580C 8014F4BC 801295BC */ .word .LPAL_801295BC -/* E5810 8014F4C0 801295D8 */ .word .LPAL_801295D8 -/* E5814 8014F4C4 00000000 */ .word 0x00000000 - -glabel D_PAL_8014F4C8 -/* E5818 8014F4C8 3FD6666666666666 */ .double 0.349999999999999978 - -glabel D_PAL_8014F4D0 -/* E5820 8014F4D0 4046800000000000 */ .double 45 - -glabel D_PAL_8014F4D8 -/* E5828 8014F4D8 3FF999999999999A */ .double 1.60000000000000009 - -glabel D_PAL_8014F4E0 -/* E5830 8014F4E0 4066800000000000 */ .double 180 - -glabel D_PAL_8014F4E8 -/* E5838 8014F4E8 4056800000000000 */ .double 90 - -glabel D_PAL_8014F4F0 -/* E5840 8014F4F0 3FF999999999999A */ .double 1.60000000000000009 - -glabel D_PAL_8014F4F8 -/* E5848 8014F4F8 4066800000000000 */ .double 180 - -glabel D_PAL_8014F500 -/* E5850 8014F500 4056800000000000 */ .double 90 - -glabel D_PAL_8014F508 -/* E5858 8014F508 406FE00000000000 */ .double 255 - -glabel D_PAL_8014F510 -/* E5860 8014F510 3FFB333333333333 */ .double 1.69999999999999996 - -glabel D_PAL_8014F518 -/* E5868 8014F518 3FF6666666666666 */ .double 1.39999999999999991 - -glabel D_PAL_8014F520 -/* E5870 8014F520 3FF3333333333333 */ .double 1.19999999999999996 - -glabel D_PAL_8014F528 -/* E5878 8014F528 3FD3333333333333 */ .double 0.299999999999999989 - -.align 3 -glabel jtbl_PAL_8014F530 -/* E5880 8014F530 8012A80C */ .word .LPAL_8012A80C -/* E5884 8014F534 8012A804 */ .word .LPAL_8012A804 -/* E5888 8014F538 8012A804 */ .word .LPAL_8012A804 -/* E588C 8014F53C 8012A804 */ .word .LPAL_8012A804 -/* E5890 8014F540 8012A804 */ .word .LPAL_8012A804 -/* E5894 8014F544 8012A804 */ .word .LPAL_8012A804 -/* E5898 8014F548 8012A804 */ .word .LPAL_8012A804 -/* E589C 8014F54C 8012A80C */ .word .LPAL_8012A80C -/* E58A0 8014F550 8012A804 */ .word .LPAL_8012A804 -/* E58A4 8014F554 8012A804 */ .word .LPAL_8012A804 -/* E58A8 8014F558 8012A7D0 */ .word .LPAL_8012A7D0 -/* E58AC 8014F55C 8012A804 */ .word .LPAL_8012A804 -/* E58B0 8014F560 8012A804 */ .word .LPAL_8012A804 -/* E58B4 8014F564 8012A804 */ .word .LPAL_8012A804 -/* E58B8 8014F568 8012A804 */ .word .LPAL_8012A804 -/* E58BC 8014F56C 8012A804 */ .word .LPAL_8012A804 -/* E58C0 8014F570 8012A80C */ .word .LPAL_8012A80C -/* E58C4 8014F574 8012A80C */ .word .LPAL_8012A80C -/* E58C8 8014F578 8012A80C */ .word .LPAL_8012A80C -/* E58CC 8014F57C 8012A80C */ .word .LPAL_8012A80C -/* E58D0 8014F580 8012A80C */ .word .LPAL_8012A80C -/* E58D4 8014F584 8012A804 */ .word .LPAL_8012A804 -/* E58D8 8014F588 8012A804 */ .word .LPAL_8012A804 -/* E58DC 8014F58C 8012A804 */ .word .LPAL_8012A804 -/* E58E0 8014F590 8012A804 */ .word .LPAL_8012A804 -/* E58E4 8014F594 8012A804 */ .word .LPAL_8012A804 -/* E58E8 8014F598 8012A804 */ .word .LPAL_8012A804 -/* E58EC 8014F59C 8012A804 */ .word .LPAL_8012A804 -/* E58F0 8014F5A0 8012A804 */ .word .LPAL_8012A804 -/* E58F4 8014F5A4 8012A804 */ .word .LPAL_8012A804 -/* E58F8 8014F5A8 8012A804 */ .word .LPAL_8012A804 -/* E58FC 8014F5AC 8012A804 */ .word .LPAL_8012A804 -/* E5900 8014F5B0 8012A7DC */ .word .LPAL_8012A7DC -/* E5904 8014F5B4 8012A804 */ .word .LPAL_8012A804 -/* E5908 8014F5B8 8012A7E4 */ .word .LPAL_8012A7E4 -/* E590C 8014F5BC 8012A7F0 */ .word .LPAL_8012A7F0 -/* E5910 8014F5C0 8012A804 */ .word .LPAL_8012A804 -/* E5914 8014F5C4 8012A7F8 */ .word .LPAL_8012A7F8 - -glabel D_PAL_8014F5C8 -/* E5918 8014F5C8 406FE00000000000 */ .double 255 - -glabel D_PAL_8014F5D0 -/* E5920 8014F5D0 406FE00000000000 */ .double 255 - - -.section .text -/* Generated by spimdisasm 1.11.1 */ - -glabel appendGfx_message -/* BCC00 801268B0 27BDFEC0 */ addiu $sp, $sp, -0x140 -/* BCC04 801268B4 AFBE0108 */ sw $fp, 0x108($sp) -/* BCC08 801268B8 0080F02D */ daddu $fp, $a0, $zero -/* BCC0C 801268BC AFB000E8 */ sw $s0, 0xE8($sp) -/* BCC10 801268C0 3C108015 */ lui $s0, %hi(D_80154934) -/* BCC14 801268C4 26104934 */ addiu $s0, $s0, %lo(D_80154934) -/* BCC18 801268C8 AFB100EC */ sw $s1, 0xEC($sp) -/* BCC1C 801268CC 8FB10154 */ lw $s1, 0x154($sp) -/* BCC20 801268D0 97B80152 */ lhu $t8, 0x152($sp) -/* BCC24 801268D4 3C028015 */ lui $v0, %hi(D_801548E0) -/* BCC28 801268D8 244248E0 */ addiu $v0, $v0, %lo(D_801548E0) -/* BCC2C 801268DC AFB200F0 */ sw $s2, 0xF0($sp) -/* BCC30 801268E0 93B2015B */ lbu $s2, 0x15B($sp) -/* BCC34 801268E4 27C30010 */ addiu $v1, $fp, 0x10 -/* BCC38 801268E8 AFB300F4 */ sw $s3, 0xF4($sp) -/* BCC3C 801268EC 3C138009 */ lui $s3, %hi(gMainGfxPos) -/* BCC40 801268F0 26736A44 */ addiu $s3, $s3, %lo(gMainGfxPos) -/* BCC44 801268F4 AFBF010C */ sw $ra, 0x10C($sp) -/* BCC48 801268F8 AFB70104 */ sw $s7, 0x104($sp) -/* BCC4C 801268FC AFB60100 */ sw $s6, 0x100($sp) -/* BCC50 80126900 AFB500FC */ sw $s5, 0xFC($sp) -/* BCC54 80126904 AFB400F8 */ sw $s4, 0xF8($sp) -/* BCC58 80126908 F7BE0138 */ sdc1 $f30, 0x138($sp) -/* BCC5C 8012690C F7BC0130 */ sdc1 $f28, 0x130($sp) -/* BCC60 80126910 F7BA0128 */ sdc1 $f26, 0x128($sp) -/* BCC64 80126914 F7B80120 */ sdc1 $f24, 0x120($sp) -/* BCC68 80126918 F7B60118 */ sdc1 $f22, 0x118($sp) -/* BCC6C 8012691C F7B40110 */ sdc1 $f20, 0x110($sp) -/* BCC70 80126920 A7B8007E */ sh $t8, 0x7E($sp) -/* BCC74 80126924 AE020000 */ sw $v0, 0x0($s0) -/* BCC78 80126928 AC43004C */ sw $v1, 0x4C($v0) -/* BCC7C 8012692C A4400034 */ sh $zero, 0x34($v0) -/* BCC80 80126930 A7A50066 */ sh $a1, 0x66($sp) -/* BCC84 80126934 A7A6006E */ sh $a2, 0x6E($sp) -/* BCC88 80126938 8E630000 */ lw $v1, 0x0($s3) -/* BCC8C 8012693C 3C028015 */ lui $v0, %hi(D_8014FF08) -/* BCC90 80126940 8C42FF08 */ lw $v0, %lo(D_8014FF08)($v0) -/* BCC94 80126944 10620003 */ beq $v1, $v0, .LPAL_80126954 -/* BCC98 80126948 A7A70076 */ sh $a3, 0x76($sp) -/* BCC9C 8012694C 0C04ABA0 */ jal msg_reset_gfx_state -/* BCCA0 80126950 00000000 */ nop -.LPAL_80126954: -/* BCCA4 80126954 8E040000 */ lw $a0, 0x0($s0) -/* BCCA8 80126958 94820034 */ lhu $v0, 0x34($a0) -/* BCCAC 8012695C 241900FF */ addiu $t9, $zero, 0xFF -/* BCCB0 80126960 A7B9008E */ sh $t9, 0x8E($sp) -/* BCCB4 80126964 34420101 */ ori $v0, $v0, 0x101 -/* BCCB8 80126968 A4820034 */ sh $v0, 0x34($a0) -/* BCCBC 8012696C 32220001 */ andi $v0, $s1, 0x1 -/* BCCC0 80126970 10400003 */ beqz $v0, .LPAL_80126980 -/* BCCC4 80126974 00000000 */ nop -/* BCCC8 80126978 325200FF */ andi $s2, $s2, 0xFF -/* BCCCC 8012697C A7B2008E */ sh $s2, 0x8E($sp) -.LPAL_80126980: -/* BCCD0 80126980 3C013F80 */ lui $at, (0x3F800000 >> 16) -/* BCCD4 80126984 44810000 */ mtc1 $at, $f0 -/* BCCD8 80126988 2402013F */ addiu $v0, $zero, 0x13F -/* BCCDC 8012698C A4800046 */ sh $zero, 0x46($a0) -/* BCCE0 80126990 A4800048 */ sh $zero, 0x48($a0) -/* BCCE4 80126994 AC800000 */ sw $zero, 0x0($a0) -/* BCCE8 80126998 AC800008 */ sw $zero, 0x8($a0) -/* BCCEC 8012699C AC820004 */ sw $v0, 0x4($a0) -/* BCCF0 801269A0 A0800029 */ sb $zero, 0x29($a0) -/* BCCF4 801269A4 8E030000 */ lw $v1, 0x0($s0) -/* BCCF8 801269A8 240200EF */ addiu $v0, $zero, 0xEF -/* BCCFC 801269AC AC82000C */ sw $v0, 0xC($a0) -/* BCD00 801269B0 E4800010 */ swc1 $f0, 0x10($a0) -/* BCD04 801269B4 E4800014 */ swc1 $f0, 0x14($a0) -/* BCD08 801269B8 A060002B */ sb $zero, 0x2B($v1) -/* BCD0C 801269BC 8E020000 */ lw $v0, 0x0($s0) -/* BCD10 801269C0 241800FF */ addiu $t8, $zero, 0xFF -/* BCD14 801269C4 A7B80096 */ sh $t8, 0x96($sp) -/* BCD18 801269C8 A040002C */ sb $zero, 0x2C($v0) -/* BCD1C 801269CC 8E020000 */ lw $v0, 0x0($s0) -/* BCD20 801269D0 0300C82D */ daddu $t9, $t8, $zero -/* BCD24 801269D4 A7B900AE */ sh $t9, 0xAE($sp) -/* BCD28 801269D8 A040002E */ sb $zero, 0x2E($v0) -/* BCD2C 801269DC 8E030000 */ lw $v1, 0x0($s0) -/* BCD30 801269E0 A7A000B6 */ sh $zero, 0xB6($sp) -/* BCD34 801269E4 AC400030 */ sw $zero, 0x30($v0) -/* BCD38 801269E8 A0600040 */ sb $zero, 0x40($v1) -/* BCD3C 801269EC 8E020000 */ lw $v0, 0x0($s0) -/* BCD40 801269F0 A3A000B8 */ sb $zero, 0xB8($sp) -/* BCD44 801269F4 A460003E */ sh $zero, 0x3E($v1) -/* BCD48 801269F8 A0400050 */ sb $zero, 0x50($v0) -/* BCD4C 801269FC 8E030000 */ lw $v1, 0x0($s0) -/* BCD50 80126A00 2418FFFF */ addiu $t8, $zero, -0x1 -/* BCD54 80126A04 A7B8009E */ sh $t8, 0x9E($sp) -/* BCD58 80126A08 A4400042 */ sh $zero, 0x42($v0) -/* BCD5C 80126A0C A4400044 */ sh $zero, 0x44($v0) -/* BCD60 80126A10 A440003C */ sh $zero, 0x3C($v0) -/* BCD64 80126A14 AC400038 */ sw $zero, 0x38($v0) -/* BCD68 80126A18 32220002 */ andi $v0, $s1, 0x2 -/* BCD6C 80126A1C 10400003 */ beqz $v0, .LPAL_80126A2C -/* BCD70 80126A20 A460004A */ sh $zero, 0x4A($v1) -/* BCD74 80126A24 24020001 */ addiu $v0, $zero, 0x1 -/* BCD78 80126A28 A462003C */ sh $v0, 0x3C($v1) -.LPAL_80126A2C: -/* BCD7C 80126A2C 32220004 */ andi $v0, $s1, 0x4 -/* BCD80 80126A30 10400009 */ beqz $v0, .LPAL_80126A58 -/* BCD84 80126A34 3C04004F */ lui $a0, (0x4FC3BC >> 16) -/* BCD88 80126A38 8E620000 */ lw $v0, 0x0($s3) -/* BCD8C 80126A3C 3484C3BC */ ori $a0, $a0, (0x4FC3BC & 0xFFFF) -/* BCD90 80126A40 0040182D */ daddu $v1, $v0, $zero -/* BCD94 80126A44 24420008 */ addiu $v0, $v0, 0x8 -/* BCD98 80126A48 AE620000 */ sw $v0, 0x0($s3) -/* BCD9C 80126A4C 3C02ED00 */ lui $v0, (0xED000000 >> 16) -/* BCDA0 80126A50 AC620000 */ sw $v0, 0x0($v1) -/* BCDA4 80126A54 AC640004 */ sw $a0, 0x4($v1) -.LPAL_80126A58: -/* BCDA8 80126A58 0260B82D */ daddu $s7, $s3, $zero -/* BCDAC 80126A5C 3C19FD48 */ lui $t9, (0xFD48000F >> 16) -/* BCDB0 80126A60 3739000F */ ori $t9, $t9, (0xFD48000F & 0xFFFF) -/* BCDB4 80126A64 3C18F548 */ lui $t8, (0xF5480400 >> 16) -/* BCDB8 80126A68 37180400 */ ori $t8, $t8, (0xF5480400 & 0xFFFF) -/* BCDBC 80126A6C AFB900C4 */ sw $t9, 0xC4($sp) -/* BCDC0 80126A70 3C190701 */ lui $t9, (0x7010050 >> 16) -/* BCDC4 80126A74 3C028015 */ lui $v0, %hi(D_80154934) -/* BCDC8 80126A78 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BCDCC 80126A7C 37390050 */ ori $t9, $t9, (0x7010050 & 0xFFFF) -/* BCDD0 80126A80 A7A00080 */ sh $zero, 0x80($sp) -/* BCDD4 80126A84 AFB800C8 */ sw $t8, 0xC8($sp) -/* BCDD8 80126A88 AFB900CC */ sw $t9, 0xCC($sp) -/* BCDDC 80126A8C AC400020 */ sw $zero, 0x20($v0) -.LPAL_80126A90: -/* BCDE0 80126A90 3C038015 */ lui $v1, %hi(D_80154934) -/* BCDE4 80126A94 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BCDE8 80126A98 8C62004C */ lw $v0, 0x4C($v1) -/* BCDEC 80126A9C 8C630020 */ lw $v1, 0x20($v1) -/* BCDF0 80126AA0 00431021 */ addu $v0, $v0, $v1 -/* BCDF4 80126AA4 90420000 */ lbu $v0, 0x0($v0) -/* BCDF8 80126AA8 2443FF10 */ addiu $v1, $v0, -0xF0 -/* BCDFC 80126AAC 2C620010 */ sltiu $v0, $v1, 0x10 -/* BCE00 80126AB0 10400AF2 */ beqz $v0, .LPAL_8012967C -/* BCE04 80126AB4 00031080 */ sll $v0, $v1, 2 -/* BCE08 80126AB8 3C018015 */ lui $at, %hi(jtbl_PAL_8014F300) -/* BCE0C 80126ABC 00220821 */ addu $at, $at, $v0 -/* BCE10 80126AC0 8C22F300 */ lw $v0, %lo(jtbl_PAL_8014F300)($at) -/* BCE14 80126AC4 00400008 */ jr $v0 -/* BCE18 80126AC8 00000000 */ nop -.LPAL_80126ACC: -/* BCE1C 80126ACC 3C048015 */ lui $a0, %hi(D_80154934) -/* BCE20 80126AD0 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BCE24 80126AD4 9482003C */ lhu $v0, 0x3C($a0) -/* BCE28 80126AD8 A4800042 */ sh $zero, 0x42($a0) -/* BCE2C 80126ADC 00021080 */ sll $v0, $v0, 2 -/* BCE30 80126AE0 3C01802F */ lui $at, %hi(MsgCharsets) -/* BCE34 80126AE4 00220821 */ addu $at, $at, $v0 -/* BCE38 80126AE8 8C2218A8 */ lw $v0, %lo(MsgCharsets)($at) -/* BCE3C 80126AEC 90420003 */ lbu $v0, 0x3($v0) -/* BCE40 80126AF0 C4820014 */ lwc1 $f2, 0x14($a0) -/* BCE44 80126AF4 44820000 */ mtc1 $v0, $f0 -/* BCE48 80126AF8 00000000 */ nop -/* BCE4C 80126AFC 46800020 */ cvt.s.w $f0, $f0 -/* BCE50 80126B00 93C20508 */ lbu $v0, 0x508($fp) -/* BCE54 80126B04 46001082 */ mul.s $f2, $f2, $f0 -/* BCE58 80126B08 00000000 */ nop -/* BCE5C 80126B0C 00021040 */ sll $v0, $v0, 1 -/* BCE60 80126B10 3C01802F */ lui $at, %hi(D_802EB644) -/* BCE64 80126B14 00220821 */ addu $at, $at, $v0 -/* BCE68 80126B18 84221944 */ lh $v0, %lo(D_802EB644)($at) -/* BCE6C 80126B1C 44820000 */ mtc1 $v0, $f0 -/* BCE70 80126B20 00000000 */ nop -/* BCE74 80126B24 46800020 */ cvt.s.w $f0, $f0 -/* BCE78 80126B28 46001080 */ add.s $f2, $f2, $f0 -/* BCE7C 80126B2C 94850034 */ lhu $a1, 0x34($a0) -/* BCE80 80126B30 94820044 */ lhu $v0, 0x44($a0) -/* BCE84 80126B34 4600130D */ trunc.w.s $f12, $f2 -/* BCE88 80126B38 44036000 */ mfc1 $v1, $f12 -/* BCE8C 80126B3C 00000000 */ nop -/* BCE90 80126B40 00431021 */ addu $v0, $v0, $v1 -/* BCE94 80126B44 A4820044 */ sh $v0, 0x44($a0) -/* BCE98 80126B48 30A20040 */ andi $v0, $a1, 0x40 -/* BCE9C 80126B4C 104009A5 */ beqz $v0, .LPAL_801291E4 -/* BCEA0 80126B50 34A20080 */ ori $v0, $a1, 0x80 -/* BCEA4 80126B54 0804A479 */ j .LPAL_801291E4 -/* BCEA8 80126B58 A4820034 */ sh $v0, 0x34($a0) -.LPAL_80126B5C: -/* BCEAC 80126B5C 3C048015 */ lui $a0, %hi(D_80154934) -/* BCEB0 80126B60 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BCEB4 80126B64 8C83004C */ lw $v1, 0x4C($a0) -/* BCEB8 80126B68 8C820020 */ lw $v0, 0x20($a0) -/* BCEBC 80126B6C 00621821 */ addu $v1, $v1, $v0 -/* BCEC0 80126B70 90630000 */ lbu $v1, 0x0($v1) -/* BCEC4 80126B74 24420001 */ addiu $v0, $v0, 0x1 -/* BCEC8 80126B78 AC820020 */ sw $v0, 0x20($a0) -/* BCECC 80126B7C 2463FF0F */ addiu $v1, $v1, -0xF1 -/* BCED0 80126B80 0804AAC4 */ j .LPAL_8012AB10 -/* BCED4 80126B84 A483003E */ sh $v1, 0x3E($a0) -.LPAL_80126B88: -/* BCED8 80126B88 3C078015 */ lui $a3, %hi(D_80154934) -/* BCEDC 80126B8C 8CE74934 */ lw $a3, %lo(D_80154934)($a3) -/* BCEE0 80126B90 8CE2004C */ lw $v0, 0x4C($a3) -/* BCEE4 80126B94 8CE30020 */ lw $v1, 0x20($a3) -/* BCEE8 80126B98 94E5003C */ lhu $a1, 0x3C($a3) -/* BCEEC 80126B9C 94E6003E */ lhu $a2, 0x3E($a3) -/* BCEF0 80126BA0 00431021 */ addu $v0, $v0, $v1 -/* BCEF4 80126BA4 90440000 */ lbu $a0, 0x0($v0) -/* BCEF8 80126BA8 90E20040 */ lbu $v0, 0x40($a3) -/* BCEFC 80126BAC AFA20010 */ sw $v0, 0x10($sp) -/* BCF00 80126BB0 94E20034 */ lhu $v0, 0x34($a3) -/* BCF04 80126BB4 AFA20014 */ sw $v0, 0x14($sp) -/* BCF08 80126BB8 0804AABA */ j .LPAL_8012AAE8 -/* BCF0C 80126BBC 8CE70010 */ lw $a3, 0x10($a3) -.LPAL_80126BC0: -/* BCF10 80126BC0 3C038015 */ lui $v1, %hi(D_80154934) -/* BCF14 80126BC4 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BCF18 80126BC8 8C620020 */ lw $v0, 0x20($v1) -/* BCF1C 80126BCC 8C63004C */ lw $v1, 0x4C($v1) -/* BCF20 80126BD0 00431021 */ addu $v0, $v0, $v1 -/* BCF24 80126BD4 90420001 */ lbu $v0, 0x1($v0) -/* BCF28 80126BD8 2443FFFF */ addiu $v1, $v0, -0x1 -/* BCF2C 80126BDC 2C62000F */ sltiu $v0, $v1, 0xF -/* BCF30 80126BE0 10400FCB */ beqz $v0, .LPAL_8012AB10 -/* BCF34 80126BE4 00031080 */ sll $v0, $v1, 2 -/* BCF38 80126BE8 3C018015 */ lui $at, %hi(jtbl_PAL_8014F340) -/* BCF3C 80126BEC 00220821 */ addu $at, $at, $v0 -/* BCF40 80126BF0 8C22F340 */ lw $v0, %lo(jtbl_PAL_8014F340)($at) -/* BCF44 80126BF4 00400008 */ jr $v0 -/* BCF48 80126BF8 00000000 */ nop -.LPAL_80126BFC: -/* BCF4C 80126BFC 93C204F8 */ lbu $v0, 0x4F8($fp) -/* BCF50 80126C00 24190002 */ addiu $t9, $zero, 0x2 -/* BCF54 80126C04 14590008 */ bne $v0, $t9, .LPAL_80126C28 -/* BCF58 80126C08 00000000 */ nop -/* BCF5C 80126C0C 93C20509 */ lbu $v0, 0x509($fp) -/* BCF60 80126C10 14400005 */ bnez $v0, .LPAL_80126C28 -/* BCF64 80126C14 00000000 */ nop -/* BCF68 80126C18 97C2050A */ lhu $v0, 0x50A($fp) -/* BCF6C 80126C1C 97C3050C */ lhu $v1, 0x50C($fp) -/* BCF70 80126C20 A7C2050E */ sh $v0, 0x50E($fp) -/* BCF74 80126C24 A7C30510 */ sh $v1, 0x510($fp) -.LPAL_80126C28: -/* BCF78 80126C28 97C20514 */ lhu $v0, 0x514($fp) -/* BCF7C 80126C2C 3C013FE0 */ lui $at, (0x3FE00000 >> 16) -/* BCF80 80126C30 44816800 */ mtc1 $at, $f13 -/* BCF84 80126C34 44806000 */ mtc1 $zero, $f12 -/* BCF88 80126C38 97D6050E */ lhu $s6, 0x50E($fp) -/* BCF8C 80126C3C 44820000 */ mtc1 $v0, $f0 -/* BCF90 80126C40 00000000 */ nop -/* BCF94 80126C44 46800020 */ cvt.s.w $f0, $f0 -/* BCF98 80126C48 46000021 */ cvt.d.s $f0, $f0 -/* BCF9C 80126C4C 462C0002 */ mul.d $f0, $f0, $f12 -/* BCFA0 80126C50 00000000 */ nop -/* BCFA4 80126C54 97D50510 */ lhu $s5, 0x510($fp) -/* BCFA8 80126C58 3C058015 */ lui $a1, %hi(D_80154934) -/* BCFAC 80126C5C 8CA54934 */ lw $a1, %lo(D_80154934)($a1) -/* BCFB0 80126C60 87C3045A */ lh $v1, 0x45A($fp) -/* BCFB4 80126C64 97C20516 */ lhu $v0, 0x516($fp) -/* BCFB8 80126C68 87C4045C */ lh $a0, 0x45C($fp) -/* BCFBC 80126C6C 44822000 */ mtc1 $v0, $f4 -/* BCFC0 80126C70 00000000 */ nop -/* BCFC4 80126C74 46802120 */ cvt.s.w $f4, $f4 -/* BCFC8 80126C78 46002121 */ cvt.d.s $f4, $f4 -/* BCFCC 80126C7C 462C2102 */ mul.d $f4, $f4, $f12 -/* BCFD0 80126C80 00000000 */ nop -/* BCFD4 80126C84 2418000A */ addiu $t8, $zero, 0xA -/* BCFD8 80126C88 94A20034 */ lhu $v0, 0x34($a1) -/* BCFDC 80126C8C 44831000 */ mtc1 $v1, $f2 -/* BCFE0 80126C90 00000000 */ nop -/* BCFE4 80126C94 468010A1 */ cvt.d.w $f2, $f2 -/* BCFE8 80126C98 A4B8004A */ sh $t8, 0x4A($a1) -/* BCFEC 80126C9C 34420010 */ ori $v0, $v0, 0x10 -/* BCFF0 80126CA0 A4A20034 */ sh $v0, 0x34($a1) -/* BCFF4 80126CA4 93C20508 */ lbu $v0, 0x508($fp) -/* BCFF8 80126CA8 46201080 */ add.d $f2, $f2, $f0 -/* BCFFC 80126CAC 2442FFFF */ addiu $v0, $v0, -0x1 -/* BD000 80126CB0 44840000 */ mtc1 $a0, $f0 -/* BD004 80126CB4 00000000 */ nop -/* BD008 80126CB8 46800021 */ cvt.d.w $f0, $f0 -/* BD00C 80126CBC 46240000 */ add.d $f0, $f0, $f4 -/* BD010 80126CC0 2C420003 */ sltiu $v0, $v0, 0x3 -/* BD014 80126CC4 4620130D */ trunc.w.d $f12, $f2 -/* BD018 80126CC8 44146000 */ mfc1 $s4, $f12 -/* BD01C 80126CCC 4620030D */ trunc.w.d $f12, $f0 -/* BD020 80126CD0 44136000 */ mfc1 $s3, $f12 -/* BD024 80126CD4 10400013 */ beqz $v0, .LPAL_80126D24 -/* BD028 80126CD8 241000DA */ addiu $s0, $zero, 0xDA -/* BD02C 80126CDC 24120020 */ addiu $s2, $zero, 0x20 -/* BD030 80126CE0 24110044 */ addiu $s1, $zero, 0x44 -/* BD034 80126CE4 24020016 */ addiu $v0, $zero, 0x16 -/* BD038 80126CE8 A7C2045A */ sh $v0, 0x45A($fp) -/* BD03C 80126CEC 2402000D */ addiu $v0, $zero, 0xD -/* BD040 80126CF0 A7C2045C */ sh $v0, 0x45C($fp) -/* BD044 80126CF4 24020128 */ addiu $v0, $zero, 0x128 -/* BD048 80126CF8 A7C20514 */ sh $v0, 0x514($fp) -/* BD04C 80126CFC 0220102D */ daddu $v0, $s1, $zero -/* BD050 80126D00 A7C20516 */ sh $v0, 0x516($fp) -/* BD054 80126D04 2402001A */ addiu $v0, $zero, 0x1A -/* BD058 80126D08 A4A20046 */ sh $v0, 0x46($a1) -/* BD05C 80126D0C 24020006 */ addiu $v0, $zero, 0x6 -/* BD060 80126D10 A4A20048 */ sh $v0, 0x48($a1) -/* BD064 80126D14 24020114 */ addiu $v0, $zero, 0x114 -/* BD068 80126D18 A7C20482 */ sh $v0, 0x482($fp) -/* BD06C 80126D1C 08049BA7 */ j .LPAL_80126E9C -/* BD070 80126D20 24020039 */ addiu $v0, $zero, 0x39 -.LPAL_80126D24: -/* BD074 80126D24 93C3053C */ lbu $v1, 0x53C($fp) -/* BD078 80126D28 24190002 */ addiu $t9, $zero, 0x2 -/* BD07C 80126D2C 10790012 */ beq $v1, $t9, .LPAL_80126D78 -/* BD080 80126D30 28620003 */ slti $v0, $v1, 0x3 -/* BD084 80126D34 10400005 */ beqz $v0, .LPAL_80126D4C -/* BD088 80126D38 24180001 */ addiu $t8, $zero, 0x1 -/* BD08C 80126D3C 10780008 */ beq $v1, $t8, .LPAL_80126D60 -/* BD090 80126D40 24120020 */ addiu $s2, $zero, 0x20 -/* BD094 80126D44 08049B69 */ j .LPAL_80126DA4 -/* BD098 80126D48 00000000 */ nop -.LPAL_80126D4C: -/* BD09C 80126D4C 24190003 */ addiu $t9, $zero, 0x3 -/* BD0A0 80126D50 1079000F */ beq $v1, $t9, .LPAL_80126D90 -/* BD0A4 80126D54 24120020 */ addiu $s2, $zero, 0x20 -/* BD0A8 80126D58 08049B69 */ j .LPAL_80126DA4 -/* BD0AC 80126D5C 00000000 */ nop -.LPAL_80126D60: -/* BD0B0 80126D60 24120018 */ addiu $s2, $zero, 0x18 -/* BD0B4 80126D64 24020012 */ addiu $v0, $zero, 0x12 -/* BD0B8 80126D68 2418000A */ addiu $t8, $zero, 0xA -/* BD0BC 80126D6C A4A20046 */ sh $v0, 0x46($a1) -/* BD0C0 80126D70 08049B6F */ j .LPAL_80126DBC -/* BD0C4 80126D74 A4B80048 */ sh $t8, 0x48($a1) -.LPAL_80126D78: -/* BD0C8 80126D78 2412001C */ addiu $s2, $zero, 0x1C -/* BD0CC 80126D7C 24020016 */ addiu $v0, $zero, 0x16 -/* BD0D0 80126D80 A4A20046 */ sh $v0, 0x46($a1) -/* BD0D4 80126D84 24020006 */ addiu $v0, $zero, 0x6 -/* BD0D8 80126D88 08049B6F */ j .LPAL_80126DBC -/* BD0DC 80126D8C A4A20048 */ sh $v0, 0x48($a1) -.LPAL_80126D90: -/* BD0E0 80126D90 2402001A */ addiu $v0, $zero, 0x1A -/* BD0E4 80126D94 A4A20046 */ sh $v0, 0x46($a1) -/* BD0E8 80126D98 24020008 */ addiu $v0, $zero, 0x8 -/* BD0EC 80126D9C 08049B6F */ j .LPAL_80126DBC -/* BD0F0 80126DA0 A4A20048 */ sh $v0, 0x48($a1) -.LPAL_80126DA4: -/* BD0F4 80126DA4 3C028015 */ lui $v0, %hi(D_80154934) -/* BD0F8 80126DA8 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BD0FC 80126DAC 2403001A */ addiu $v1, $zero, 0x1A -/* BD100 80126DB0 A4430046 */ sh $v1, 0x46($v0) -/* BD104 80126DB4 24030006 */ addiu $v1, $zero, 0x6 -/* BD108 80126DB8 A4430048 */ sh $v1, 0x48($v0) -.LPAL_80126DBC: -/* BD10C 80126DBC 97D00538 */ lhu $s0, 0x538($fp) -/* BD110 80126DC0 2A020101 */ slti $v0, $s0, 0x101 -/* BD114 80126DC4 50400001 */ beql $v0, $zero, .LPAL_80126DCC -/* BD118 80126DC8 24100100 */ addiu $s0, $zero, 0x100 -.LPAL_80126DCC: -/* BD11C 80126DCC 2A020046 */ slti $v0, $s0, 0x46 -/* BD120 80126DD0 54400001 */ bnel $v0, $zero, .LPAL_80126DD8 -/* BD124 80126DD4 24100046 */ addiu $s0, $zero, 0x46 -.LPAL_80126DD8: -/* BD128 80126DD8 2610FFF4 */ addiu $s0, $s0, -0xC -/* BD12C 80126DDC 00121040 */ sll $v0, $s2, 1 -/* BD130 80126DE0 93C3053C */ lbu $v1, 0x53C($fp) -/* BD134 80126DE4 02021021 */ addu $v0, $s0, $v0 -/* BD138 80126DE8 A7C20514 */ sh $v0, 0x514($fp) -/* BD13C 80126DEC 000310C0 */ sll $v0, $v1, 3 -/* BD140 80126DF0 00431023 */ subu $v0, $v0, $v1 -/* BD144 80126DF4 00021040 */ sll $v0, $v0, 1 -/* BD148 80126DF8 24510010 */ addiu $s1, $v0, 0x10 -/* BD14C 80126DFC 2A220045 */ slti $v0, $s1, 0x45 -/* BD150 80126E00 50400001 */ beql $v0, $zero, .LPAL_80126E08 -/* BD154 80126E04 24110044 */ addiu $s1, $zero, 0x44 -.LPAL_80126E08: -/* BD158 80126E08 2A220024 */ slti $v0, $s1, 0x24 -/* BD15C 80126E0C 54400001 */ bnel $v0, $zero, .LPAL_80126E14 -/* BD160 80126E10 24110024 */ addiu $s1, $zero, 0x24 -.LPAL_80126E14: -/* BD164 80126E14 97C40514 */ lhu $a0, 0x514($fp) -/* BD168 80126E18 97C2050E */ lhu $v0, 0x50E($fp) -/* BD16C 80126E1C 00041842 */ srl $v1, $a0, 1 -/* BD170 80126E20 00433023 */ subu $a2, $v0, $v1 -/* BD174 80126E24 28C20012 */ slti $v0, $a2, 0x12 -/* BD178 80126E28 10400002 */ beqz $v0, .LPAL_80126E34 -/* BD17C 80126E2C A7D10516 */ sh $s1, 0x516($fp) -/* BD180 80126E30 24060012 */ addiu $a2, $zero, 0x12 -.LPAL_80126E34: -/* BD184 80126E34 00C41021 */ addu $v0, $a2, $a0 -/* BD188 80126E38 2842012F */ slti $v0, $v0, 0x12F -/* BD18C 80126E3C 14400002 */ bnez $v0, .LPAL_80126E48 -/* BD190 80126E40 2402012E */ addiu $v0, $zero, 0x12E -/* BD194 80126E44 00443023 */ subu $a2, $v0, $a0 -.LPAL_80126E48: -/* BD198 80126E48 97C50516 */ lhu $a1, 0x516($fp) -/* BD19C 80126E4C 97C20510 */ lhu $v0, 0x510($fp) -/* BD1A0 80126E50 24A30026 */ addiu $v1, $a1, 0x26 -/* BD1A4 80126E54 00432023 */ subu $a0, $v0, $v1 -/* BD1A8 80126E58 28820014 */ slti $v0, $a0, 0x14 -/* BD1AC 80126E5C 54400001 */ bnel $v0, $zero, .LPAL_80126E64 -/* BD1B0 80126E60 24040014 */ addiu $a0, $zero, 0x14 -.LPAL_80126E64: -/* BD1B4 80126E64 00851021 */ addu $v0, $a0, $a1 -/* BD1B8 80126E68 284200AB */ slti $v0, $v0, 0xAB -/* BD1BC 80126E6C 14400002 */ bnez $v0, .LPAL_80126E78 -/* BD1C0 80126E70 240200AA */ addiu $v0, $zero, 0xAA -/* BD1C4 80126E74 00452023 */ subu $a0, $v0, $a1 -.LPAL_80126E78: -/* BD1C8 80126E78 97C30514 */ lhu $v1, 0x514($fp) -/* BD1CC 80126E7C 97C20516 */ lhu $v0, 0x516($fp) -/* BD1D0 80126E80 A7C6045A */ sh $a2, 0x45A($fp) -/* BD1D4 80126E84 A7C4045C */ sh $a0, 0x45C($fp) -/* BD1D8 80126E88 00661821 */ addu $v1, $v1, $a2 -/* BD1DC 80126E8C 2463FFE2 */ addiu $v1, $v1, -0x1E -/* BD1E0 80126E90 00441021 */ addu $v0, $v0, $a0 -/* BD1E4 80126E94 2442FFEE */ addiu $v0, $v0, -0x12 -/* BD1E8 80126E98 A7C30482 */ sh $v1, 0x482($fp) -.LPAL_80126E9C: -/* BD1EC 80126E9C A7C20484 */ sh $v0, 0x484($fp) -/* BD1F0 80126EA0 93C204F8 */ lbu $v0, 0x4F8($fp) -/* BD1F4 80126EA4 2442FFF5 */ addiu $v0, $v0, -0xB -/* BD1F8 80126EA8 2C420002 */ sltiu $v0, $v0, 0x2 -/* BD1FC 80126EAC 10400004 */ beqz $v0, .LPAL_80126EC0 -/* BD200 80126EB0 24190001 */ addiu $t9, $zero, 0x1 -/* BD204 80126EB4 3C028015 */ lui $v0, %hi(D_80154934) -/* BD208 80126EB8 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BD20C 80126EBC A059002B */ sb $t9, 0x2B($v0) -.LPAL_80126EC0: -/* BD210 80126EC0 93C204F8 */ lbu $v0, 0x4F8($fp) -/* BD214 80126EC4 24180002 */ addiu $t8, $zero, 0x2 -/* BD218 80126EC8 1458008A */ bne $v0, $t8, .LPAL_801270F4 -/* BD21C 80126ECC 24190003 */ addiu $t9, $zero, 0x3 -/* BD220 80126ED0 0000202D */ daddu $a0, $zero, $zero -/* BD224 80126ED4 3C053D8F */ lui $a1, (0x3D8F5C29 >> 16) -/* BD228 80126ED8 34A55C29 */ ori $a1, $a1, (0x3D8F5C29 & 0xFFFF) -/* BD22C 80126EDC 3C063F80 */ lui $a2, (0x3F800000 >> 16) -/* BD230 80126EE0 93C70509 */ lbu $a3, 0x509($fp) -/* BD234 80126EE4 24190006 */ addiu $t9, $zero, 0x6 -/* BD238 80126EE8 0C00A8CD */ jal update_lerp -/* BD23C 80126EEC AFB90010 */ sw $t9, 0x10($sp) -/* BD240 80126EF0 3C053E99 */ lui $a1, (0x3E99999A >> 16) -/* BD244 80126EF4 34A5999A */ ori $a1, $a1, (0x3E99999A & 0xFFFF) -/* BD248 80126EF8 3C063F80 */ lui $a2, (0x3F800000 >> 16) -/* BD24C 80126EFC 0000202D */ daddu $a0, $zero, $zero -/* BD250 80126F00 E7A000BC */ swc1 $f0, 0xBC($sp) -/* BD254 80126F04 93C70509 */ lbu $a3, 0x509($fp) -/* BD258 80126F08 24180006 */ addiu $t8, $zero, 0x6 -/* BD25C 80126F0C 0C00A8CD */ jal update_lerp -/* BD260 80126F10 AFB80010 */ sw $t8, 0x10($sp) -/* BD264 80126F14 46000786 */ mov.s $f30, $f0 -/* BD268 80126F18 0000202D */ daddu $a0, $zero, $zero -/* BD26C 80126F1C 3C0542C0 */ lui $a1, (0x42C00000 >> 16) -/* BD270 80126F20 3C064348 */ lui $a2, (0x43480000 >> 16) -/* BD274 80126F24 93C70509 */ lbu $a3, 0x509($fp) -/* BD278 80126F28 24190006 */ addiu $t9, $zero, 0x6 -/* BD27C 80126F2C 0C00A8CD */ jal update_lerp -/* BD280 80126F30 AFB90010 */ sw $t9, 0x10($sp) -/* BD284 80126F34 46000706 */ mov.s $f28, $f0 -/* BD288 80126F38 2404000B */ addiu $a0, $zero, 0xB -/* BD28C 80126F3C 00151400 */ sll $v0, $s5, 16 -/* BD290 80126F40 00021403 */ sra $v0, $v0, 16 -/* BD294 80126F44 44826000 */ mtc1 $v0, $f12 -/* BD298 80126F48 00000000 */ nop -/* BD29C 80126F4C 46806320 */ cvt.s.w $f12, $f12 -/* BD2A0 80126F50 00131400 */ sll $v0, $s3, 16 -/* BD2A4 80126F54 00021403 */ sra $v0, $v0, 16 -/* BD2A8 80126F58 44056000 */ mfc1 $a1, $f12 -/* BD2AC 80126F5C 44826000 */ mtc1 $v0, $f12 -/* BD2B0 80126F60 00000000 */ nop -/* BD2B4 80126F64 46806320 */ cvt.s.w $f12, $f12 -/* BD2B8 80126F68 93C70509 */ lbu $a3, 0x509($fp) -/* BD2BC 80126F6C 44066000 */ mfc1 $a2, $f12 -/* BD2C0 80126F70 24180006 */ addiu $t8, $zero, 0x6 -/* BD2C4 80126F74 0C00A8CD */ jal update_lerp -/* BD2C8 80126F78 AFB80010 */ sw $t8, 0x10($sp) -/* BD2CC 80126F7C 46000506 */ mov.s $f20, $f0 -/* BD2D0 80126F80 2404000B */ addiu $a0, $zero, 0xB -/* BD2D4 80126F84 00161400 */ sll $v0, $s6, 16 -/* BD2D8 80126F88 00021403 */ sra $v0, $v0, 16 -/* BD2DC 80126F8C 44826000 */ mtc1 $v0, $f12 -/* BD2E0 80126F90 00000000 */ nop -/* BD2E4 80126F94 46806320 */ cvt.s.w $f12, $f12 -/* BD2E8 80126F98 00141400 */ sll $v0, $s4, 16 -/* BD2EC 80126F9C 00021403 */ sra $v0, $v0, 16 -/* BD2F0 80126FA0 44056000 */ mfc1 $a1, $f12 -/* BD2F4 80126FA4 44826000 */ mtc1 $v0, $f12 -/* BD2F8 80126FA8 00000000 */ nop -/* BD2FC 80126FAC 46806320 */ cvt.s.w $f12, $f12 -/* BD300 80126FB0 93C70509 */ lbu $a3, 0x509($fp) -/* BD304 80126FB4 44066000 */ mfc1 $a2, $f12 -/* BD308 80126FB8 24180006 */ addiu $t8, $zero, 0x6 -/* BD30C 80126FBC 0C00A8CD */ jal update_lerp -/* BD310 80126FC0 AFB80010 */ sw $t8, 0x10($sp) -/* BD314 80126FC4 97C20514 */ lhu $v0, 0x514($fp) -/* BD318 80126FC8 C7AC00BC */ lwc1 $f12, 0xBC($sp) -/* BD31C 80126FCC 44822000 */ mtc1 $v0, $f4 -/* BD320 80126FD0 00000000 */ nop -/* BD324 80126FD4 46802120 */ cvt.s.w $f4, $f4 -/* BD328 80126FD8 460C2102 */ mul.s $f4, $f4, $f12 -/* BD32C 80126FDC 00000000 */ nop -/* BD330 80126FE0 3C013FE0 */ lui $at, (0x3FE00000 >> 16) -/* BD334 80126FE4 44816800 */ mtc1 $at, $f13 -/* BD338 80126FE8 44806000 */ mtc1 $zero, $f12 -/* BD33C 80126FEC 46002121 */ cvt.d.s $f4, $f4 -/* BD340 80126FF0 462C2102 */ mul.d $f4, $f4, $f12 -/* BD344 80126FF4 00000000 */ nop -/* BD348 80126FF8 97C20516 */ lhu $v0, 0x516($fp) -/* BD34C 80126FFC 44821000 */ mtc1 $v0, $f2 -/* BD350 80127000 00000000 */ nop -/* BD354 80127004 468010A0 */ cvt.s.w $f2, $f2 -/* BD358 80127008 461E1082 */ mul.s $f2, $f2, $f30 -/* BD35C 8012700C 00000000 */ nop -/* BD360 80127010 460010A1 */ cvt.d.s $f2, $f2 -/* BD364 80127014 462C1082 */ mul.d $f2, $f2, $f12 -/* BD368 80127018 00000000 */ nop -/* BD36C 8012701C 46000021 */ cvt.d.s $f0, $f0 -/* BD370 80127020 46240001 */ sub.d $f0, $f0, $f4 -/* BD374 80127024 4600A121 */ cvt.d.s $f4, $f20 -/* BD378 80127028 46222101 */ sub.d $f4, $f4, $f2 -/* BD37C 8012702C AFB20010 */ sw $s2, 0x10($sp) -/* BD380 80127030 3C014F00 */ lui $at, (0x4F000000 >> 16) -/* BD384 80127034 44811000 */ mtc1 $at, $f2 -/* BD388 80127038 462C0000 */ add.d $f0, $f0, $f12 -/* BD38C 8012703C AFB10014 */ sw $s1, 0x14($sp) -/* BD390 80127040 E7BE001C */ swc1 $f30, 0x1C($sp) -/* BD394 80127044 461C103E */ c.le.s $f2, $f28 -/* BD398 80127048 462C2100 */ add.d $f4, $f4, $f12 -/* BD39C 8012704C C7AC00BC */ lwc1 $f12, 0xBC($sp) -/* BD3A0 80127050 46200620 */ cvt.s.d $f24, $f0 -/* BD3A4 80127054 E7AC0018 */ swc1 $f12, 0x18($sp) -/* BD3A8 80127058 4600C30D */ trunc.w.s $f12, $f24 -/* BD3AC 8012705C 44026000 */ mfc1 $v0, $f12 -/* BD3B0 80127060 00000000 */ nop -/* BD3B4 80127064 00021400 */ sll $v0, $v0, 16 -/* BD3B8 80127068 00022C03 */ sra $a1, $v0, 16 -/* BD3BC 8012706C 462026A0 */ cvt.s.d $f26, $f4 -/* BD3C0 80127070 4600D30D */ trunc.w.s $f12, $f26 -/* BD3C4 80127074 44026000 */ mfc1 $v0, $f12 -/* BD3C8 80127078 00000000 */ nop -/* BD3CC 8012707C 00021400 */ sll $v0, $v0, 16 -/* BD3D0 80127080 00023403 */ sra $a2, $v0, 16 -/* BD3D4 80127084 00101400 */ sll $v0, $s0, 16 -/* BD3D8 80127088 45010005 */ bc1t .LPAL_801270A0 -/* BD3DC 8012708C 00023C03 */ sra $a3, $v0, 16 -/* BD3E0 80127090 4600E30D */ trunc.w.s $f12, $f28 -/* BD3E4 80127094 44036000 */ mfc1 $v1, $f12 -/* BD3E8 80127098 08049C2F */ j .LPAL_801270BC -/* BD3EC 8012709C 03C0202D */ daddu $a0, $fp, $zero -.LPAL_801270A0: -/* BD3F0 801270A0 4602E001 */ sub.s $f0, $f28, $f2 -/* BD3F4 801270A4 3C028000 */ lui $v0, (0x80000000 >> 16) -/* BD3F8 801270A8 4600030D */ trunc.w.s $f12, $f0 -/* BD3FC 801270AC 44036000 */ mfc1 $v1, $f12 -/* BD400 801270B0 00000000 */ nop -/* BD404 801270B4 00621825 */ or $v1, $v1, $v0 -/* BD408 801270B8 03C0202D */ daddu $a0, $fp, $zero -.LPAL_801270BC: -/* BD40C 801270BC 306200FF */ andi $v0, $v1, 0xFF -/* BD410 801270C0 24190001 */ addiu $t9, $zero, 0x1 -/* BD414 801270C4 AFA20020 */ sw $v0, 0x20($sp) -/* BD418 801270C8 0C04ADEA */ jal msg_draw_speech_bubble -/* BD41C 801270CC AFB90024 */ sw $t9, 0x24($sp) -/* BD420 801270D0 93C20509 */ lbu $v0, 0x509($fp) -/* BD424 801270D4 24180006 */ addiu $t8, $zero, 0x6 -/* BD428 801270D8 24420001 */ addiu $v0, $v0, 0x1 -/* BD42C 801270DC A3C20509 */ sb $v0, 0x509($fp) -/* BD430 801270E0 304200FF */ andi $v0, $v0, 0xFF -/* BD434 801270E4 145800D8 */ bne $v0, $t8, .LPAL_80127448 -/* BD438 801270E8 24020004 */ addiu $v0, $zero, 0x4 -/* BD43C 801270EC 08049D12 */ j .LPAL_80127448 -/* BD440 801270F0 A3C204F8 */ sb $v0, 0x4F8($fp) -.LPAL_801270F4: -/* BD444 801270F4 145900A2 */ bne $v0, $t9, .LPAL_80127380 -/* BD448 801270F8 03C0202D */ daddu $a0, $fp, $zero -/* BD44C 801270FC 0000202D */ daddu $a0, $zero, $zero -/* BD450 80127100 3C053F80 */ lui $a1, (0x3F800000 >> 16) -/* BD454 80127104 93C20512 */ lbu $v0, 0x512($fp) -/* BD458 80127108 3C063F19 */ lui $a2, (0x3F19999A >> 16) -/* BD45C 8012710C 34C6999A */ ori $a2, $a2, (0x3F19999A & 0xFFFF) -/* BD460 80127110 24420001 */ addiu $v0, $v0, 0x1 -/* BD464 80127114 A3C20512 */ sb $v0, 0x512($fp) -/* BD468 80127118 304700FF */ andi $a3, $v0, 0xFF -/* BD46C 8012711C 24180004 */ addiu $t8, $zero, 0x4 -/* BD470 80127120 0C00A8CD */ jal update_lerp -/* BD474 80127124 AFB80010 */ sw $t8, 0x10($sp) -/* BD478 80127128 3C053F80 */ lui $a1, (0x3F800000 >> 16) -/* BD47C 8012712C 3C063F4C */ lui $a2, (0x3F4CCCCD >> 16) -/* BD480 80127130 34C6CCCD */ ori $a2, $a2, (0x3F4CCCCD & 0xFFFF) -/* BD484 80127134 0000202D */ daddu $a0, $zero, $zero -/* BD488 80127138 E7A000BC */ swc1 $f0, 0xBC($sp) -/* BD48C 8012713C 93C70512 */ lbu $a3, 0x512($fp) -/* BD490 80127140 24190004 */ addiu $t9, $zero, 0x4 -/* BD494 80127144 0C00A8CD */ jal update_lerp -/* BD498 80127148 AFB90010 */ sw $t9, 0x10($sp) -/* BD49C 8012714C 97C20514 */ lhu $v0, 0x514($fp) -/* BD4A0 80127150 C7AC00BC */ lwc1 $f12, 0xBC($sp) -/* BD4A4 80127154 44821000 */ mtc1 $v0, $f2 -/* BD4A8 80127158 00000000 */ nop -/* BD4AC 8012715C 468010A0 */ cvt.s.w $f2, $f2 -/* BD4B0 80127160 460C1082 */ mul.s $f2, $f2, $f12 -/* BD4B4 80127164 00000000 */ nop -/* BD4B8 80127168 3C013FE0 */ lui $at, (0x3FE00000 >> 16) -/* BD4BC 8012716C 44816800 */ mtc1 $at, $f13 -/* BD4C0 80127170 44806000 */ mtc1 $zero, $f12 -/* BD4C4 80127174 460010A1 */ cvt.d.s $f2, $f2 -/* BD4C8 80127178 462C1082 */ mul.d $f2, $f2, $f12 -/* BD4CC 8012717C 00000000 */ nop -/* BD4D0 80127180 97C20516 */ lhu $v0, 0x516($fp) -/* BD4D4 80127184 46000786 */ mov.s $f30, $f0 -/* BD4D8 80127188 44820000 */ mtc1 $v0, $f0 -/* BD4DC 8012718C 00000000 */ nop -/* BD4E0 80127190 46800020 */ cvt.s.w $f0, $f0 -/* BD4E4 80127194 461E0002 */ mul.s $f0, $f0, $f30 -/* BD4E8 80127198 00000000 */ nop -/* BD4EC 8012719C 46000021 */ cvt.d.s $f0, $f0 -/* BD4F0 801271A0 462C0002 */ mul.d $f0, $f0, $f12 -/* BD4F4 801271A4 00000000 */ nop -/* BD4F8 801271A8 00141400 */ sll $v0, $s4, 16 -/* BD4FC 801271AC 00021403 */ sra $v0, $v0, 16 -/* BD500 801271B0 4482B000 */ mtc1 $v0, $f22 -/* BD504 801271B4 00000000 */ nop -/* BD508 801271B8 4680B5A0 */ cvt.s.w $f22, $f22 -/* BD50C 801271BC 4600B5A1 */ cvt.d.s $f22, $f22 -/* BD510 801271C0 4622B181 */ sub.d $f6, $f22, $f2 -/* BD514 801271C4 00131400 */ sll $v0, $s3, 16 -/* BD518 801271C8 00021403 */ sra $v0, $v0, 16 -/* BD51C 801271CC 4622B580 */ add.d $f22, $f22, $f2 -/* BD520 801271D0 4482A000 */ mtc1 $v0, $f20 -/* BD524 801271D4 00000000 */ nop -/* BD528 801271D8 4680A520 */ cvt.s.w $f20, $f20 -/* BD52C 801271DC 4600A521 */ cvt.d.s $f20, $f20 -/* BD530 801271E0 4620A101 */ sub.d $f4, $f20, $f0 -/* BD534 801271E4 4620A500 */ add.d $f20, $f20, $f0 -/* BD538 801271E8 462C3180 */ add.d $f6, $f6, $f12 -/* BD53C 801271EC 0000202D */ daddu $a0, $zero, $zero -/* BD540 801271F0 3C05437F */ lui $a1, (0x437F0000 >> 16) -/* BD544 801271F4 462CB581 */ sub.d $f22, $f22, $f12 -/* BD548 801271F8 3C064280 */ lui $a2, (0x42800000 >> 16) -/* BD54C 801271FC 93C70512 */ lbu $a3, 0x512($fp) -/* BD550 80127200 462C2100 */ add.d $f4, $f4, $f12 -/* BD554 80127204 24180004 */ addiu $t8, $zero, 0x4 -/* BD558 80127208 AFB80010 */ sw $t8, 0x10($sp) -/* BD55C 8012720C 462CA501 */ sub.d $f20, $f20, $f12 -/* BD560 80127210 46203620 */ cvt.s.d $f24, $f6 -/* BD564 80127214 4620B5A0 */ cvt.s.d $f22, $f22 -/* BD568 80127218 462026A0 */ cvt.s.d $f26, $f4 -/* BD56C 8012721C 0C00A8CD */ jal update_lerp -/* BD570 80127220 4620A520 */ cvt.s.d $f20, $f20 -/* BD574 80127224 46000706 */ mov.s $f28, $f0 -/* BD578 80127228 3C018015 */ lui $at, %hi(D_PAL_8014F380) -/* BD57C 8012722C D420F380 */ ldc1 $f0, %lo(D_PAL_8014F380)($at) -/* BD580 80127230 4600E1A1 */ cvt.d.s $f6, $f28 -/* BD584 80127234 46203182 */ mul.d $f6, $f6, $f0 -/* BD588 80127238 00000000 */ nop -/* BD58C 8012723C 3C028015 */ lui $v0, %hi(D_80154934) -/* BD590 80127240 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BD594 80127244 4600E30D */ trunc.w.s $f12, $f28 -/* BD598 80127248 44046000 */ mfc1 $a0, $f12 -/* BD59C 8012724C 00000000 */ nop -/* BD5A0 80127250 A7A400AE */ sh $a0, 0xAE($sp) -/* BD5A4 80127254 84430046 */ lh $v1, 0x46($v0) -/* BD5A8 80127258 3C014F00 */ lui $at, (0x4F000000 >> 16) -/* BD5AC 8012725C 44814000 */ mtc1 $at, $f8 -/* BD5B0 80127260 44831000 */ mtc1 $v1, $f2 -/* BD5B4 80127264 00000000 */ nop -/* BD5B8 80127268 468010A0 */ cvt.s.w $f2, $f2 -/* BD5BC 8012726C 84430048 */ lh $v1, 0x48($v0) -/* BD5C0 80127270 4602C080 */ add.s $f2, $f24, $f2 -/* BD5C4 80127274 44832000 */ mtc1 $v1, $f4 -/* BD5C8 80127278 00000000 */ nop -/* BD5CC 8012727C 46802120 */ cvt.s.w $f4, $f4 -/* BD5D0 80127280 84430046 */ lh $v1, 0x46($v0) -/* BD5D4 80127284 4604D100 */ add.s $f4, $f26, $f4 -/* BD5D8 80127288 44830000 */ mtc1 $v1, $f0 -/* BD5DC 8012728C 00000000 */ nop -/* BD5E0 80127290 46800020 */ cvt.s.w $f0, $f0 -/* BD5E4 80127294 84430048 */ lh $v1, 0x48($v0) -/* BD5E8 80127298 4600B581 */ sub.s $f22, $f22, $f0 -/* BD5EC 8012729C 4600130D */ trunc.w.s $f12, $f2 -/* BD5F0 801272A0 E44C0000 */ swc1 $f12, 0x0($v0) -/* BD5F4 801272A4 44830000 */ mtc1 $v1, $f0 -/* BD5F8 801272A8 00000000 */ nop -/* BD5FC 801272AC 46800020 */ cvt.s.w $f0, $f0 -/* BD600 801272B0 4600A501 */ sub.s $f20, $f20, $f0 -/* BD604 801272B4 4600230D */ trunc.w.s $f12, $f4 -/* BD608 801272B8 E44C0008 */ swc1 $f12, 0x8($v0) -/* BD60C 801272BC 4600B30D */ trunc.w.s $f12, $f22 -/* BD610 801272C0 E44C0004 */ swc1 $f12, 0x4($v0) -/* BD614 801272C4 4600A30D */ trunc.w.s $f12, $f20 -/* BD618 801272C8 E44C000C */ swc1 $f12, 0xC($v0) -/* BD61C 801272CC C7AC00BC */ lwc1 $f12, 0xBC($sp) -/* BD620 801272D0 461C403E */ c.le.s $f8, $f28 -/* BD624 801272D4 AFB20010 */ sw $s2, 0x10($sp) -/* BD628 801272D8 AFB10014 */ sw $s1, 0x14($sp) -/* BD62C 801272DC E7BE001C */ swc1 $f30, 0x1C($sp) -/* BD630 801272E0 E7AC0018 */ swc1 $f12, 0x18($sp) -/* BD634 801272E4 4620330D */ trunc.w.d $f12, $f6 -/* BD638 801272E8 44186000 */ mfc1 $t8, $f12 -/* BD63C 801272EC 00000000 */ nop -/* BD640 801272F0 A7B8008E */ sh $t8, 0x8E($sp) -/* BD644 801272F4 4600C30D */ trunc.w.s $f12, $f24 -/* BD648 801272F8 44026000 */ mfc1 $v0, $f12 -/* BD64C 801272FC 00000000 */ nop -/* BD650 80127300 00021400 */ sll $v0, $v0, 16 -/* BD654 80127304 00022C03 */ sra $a1, $v0, 16 -/* BD658 80127308 4600D30D */ trunc.w.s $f12, $f26 -/* BD65C 8012730C 44026000 */ mfc1 $v0, $f12 -/* BD660 80127310 00000000 */ nop -/* BD664 80127314 00021400 */ sll $v0, $v0, 16 -/* BD668 80127318 00023403 */ sra $a2, $v0, 16 -/* BD66C 8012731C 00101400 */ sll $v0, $s0, 16 -/* BD670 80127320 45010003 */ bc1t .LPAL_80127330 -/* BD674 80127324 00023C03 */ sra $a3, $v0, 16 -/* BD678 80127328 08049CD2 */ j .LPAL_80127348 -/* BD67C 8012732C 0080182D */ daddu $v1, $a0, $zero -.LPAL_80127330: -/* BD680 80127330 4608E001 */ sub.s $f0, $f28, $f8 -/* BD684 80127334 3C028000 */ lui $v0, (0x80000000 >> 16) -/* BD688 80127338 4600030D */ trunc.w.s $f12, $f0 -/* BD68C 8012733C 44036000 */ mfc1 $v1, $f12 -/* BD690 80127340 00000000 */ nop -/* BD694 80127344 00621825 */ or $v1, $v1, $v0 -.LPAL_80127348: -/* BD698 80127348 03C0202D */ daddu $a0, $fp, $zero -/* BD69C 8012734C 306200FF */ andi $v0, $v1, 0xFF -/* BD6A0 80127350 24190001 */ addiu $t9, $zero, 0x1 -/* BD6A4 80127354 AFA20020 */ sw $v0, 0x20($sp) -/* BD6A8 80127358 0C04ADEA */ jal msg_draw_speech_bubble -/* BD6AC 8012735C AFB90024 */ sw $t9, 0x24($sp) -/* BD6B0 80127360 93C20512 */ lbu $v0, 0x512($fp) -/* BD6B4 80127364 2C420004 */ sltiu $v0, $v0, 0x4 -/* BD6B8 80127368 14400037 */ bnez $v0, .LPAL_80127448 -/* BD6BC 8012736C 00000000 */ nop -/* BD6C0 80127370 8FC204FC */ lw $v0, 0x4FC($fp) -/* BD6C4 80127374 34420001 */ ori $v0, $v0, 0x1 -/* BD6C8 80127378 08049D12 */ j .LPAL_80127448 -/* BD6CC 8012737C AFC204FC */ sw $v0, 0x4FC($fp) -.LPAL_80127380: -/* BD6D0 80127380 00103C00 */ sll $a3, $s0, 16 -/* BD6D4 80127384 87C3045A */ lh $v1, 0x45A($fp) -/* BD6D8 80127388 87C5045C */ lh $a1, 0x45C($fp) -/* BD6DC 8012738C 3C013F80 */ lui $at, (0x3F800000 >> 16) -/* BD6E0 80127390 44816000 */ mtc1 $at, $f12 -/* BD6E4 80127394 241800FF */ addiu $t8, $zero, 0xFF -/* BD6E8 80127398 AFB80020 */ sw $t8, 0x20($sp) -/* BD6EC 8012739C 97B80066 */ lhu $t8, 0x66($sp) -/* BD6F0 801273A0 24190001 */ addiu $t9, $zero, 0x1 -/* BD6F4 801273A4 AFB90024 */ sw $t9, 0x24($sp) -/* BD6F8 801273A8 97B9006E */ lhu $t9, 0x6E($sp) -/* BD6FC 801273AC 00073C03 */ sra $a3, $a3, 16 -/* BD700 801273B0 AFB20010 */ sw $s2, 0x10($sp) -/* BD704 801273B4 AFB10014 */ sw $s1, 0x14($sp) -/* BD708 801273B8 00181400 */ sll $v0, $t8, 16 -/* BD70C 801273BC 00021403 */ sra $v0, $v0, 16 -/* BD710 801273C0 00431021 */ addu $v0, $v0, $v1 -/* BD714 801273C4 4482C000 */ mtc1 $v0, $f24 -/* BD718 801273C8 00000000 */ nop -/* BD71C 801273CC 4680C620 */ cvt.s.w $f24, $f24 -/* BD720 801273D0 00191400 */ sll $v0, $t9, 16 -/* BD724 801273D4 00021403 */ sra $v0, $v0, 16 -/* BD728 801273D8 00451021 */ addu $v0, $v0, $a1 -/* BD72C 801273DC 4482D000 */ mtc1 $v0, $f26 -/* BD730 801273E0 00000000 */ nop -/* BD734 801273E4 4680D6A0 */ cvt.s.w $f26, $f26 -/* BD738 801273E8 E7AC0018 */ swc1 $f12, 0x18($sp) -/* BD73C 801273EC E7AC001C */ swc1 $f12, 0x1C($sp) -/* BD740 801273F0 4600C30D */ trunc.w.s $f12, $f24 -/* BD744 801273F4 44056000 */ mfc1 $a1, $f12 -/* BD748 801273F8 00000000 */ nop -/* BD74C 801273FC 00052C00 */ sll $a1, $a1, 16 -/* BD750 80127400 00052C03 */ sra $a1, $a1, 16 -/* BD754 80127404 4600D30D */ trunc.w.s $f12, $f26 -/* BD758 80127408 44066000 */ mfc1 $a2, $f12 -/* BD75C 8012740C 00000000 */ nop -/* BD760 80127410 00063400 */ sll $a2, $a2, 16 -/* BD764 80127414 0C04ADEA */ jal msg_draw_speech_bubble -/* BD768 80127418 00063403 */ sra $a2, $a2, 16 -/* BD76C 8012741C 97C2050E */ lhu $v0, 0x50E($fp) -/* BD770 80127420 2442FFEC */ addiu $v0, $v0, -0x14 -/* BD774 80127424 2C420119 */ sltiu $v0, $v0, 0x119 -/* BD778 80127428 10400007 */ beqz $v0, .LPAL_80127448 -/* BD77C 8012742C 00000000 */ nop -/* BD780 80127430 97C20510 */ lhu $v0, 0x510($fp) -/* BD784 80127434 2C4200DD */ sltiu $v0, $v0, 0xDD -/* BD788 80127438 10400003 */ beqz $v0, .LPAL_80127448 -/* BD78C 8012743C 00000000 */ nop -/* BD790 80127440 0C04AFDF */ jal msg_draw_speech_arrow -/* BD794 80127444 03C0202D */ daddu $a0, $fp, $zero -.LPAL_80127448: -/* BD798 80127448 93C204F8 */ lbu $v0, 0x4F8($fp) -/* BD79C 8012744C 24190003 */ addiu $t9, $zero, 0x3 -/* BD7A0 80127450 10590466 */ beq $v0, $t9, .LPAL_801285EC -/* BD7A4 80127454 24020014 */ addiu $v0, $zero, 0x14 -/* BD7A8 80127458 3C048015 */ lui $a0, %hi(D_80154934) -/* BD7AC 8012745C 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BD7B0 80127460 AC820000 */ sw $v0, 0x0($a0) -/* BD7B4 80127464 87C30458 */ lh $v1, 0x458($fp) -/* BD7B8 80127468 87C5045C */ lh $a1, 0x45C($fp) -/* BD7BC 8012746C 2402012C */ addiu $v0, $zero, 0x12C -/* BD7C0 80127470 AC820004 */ sw $v0, 0x4($a0) -/* BD7C4 80127474 84820048 */ lh $v0, 0x48($a0) -/* BD7C8 80127478 00651821 */ addu $v1, $v1, $a1 -/* BD7CC 8012747C 00621821 */ addu $v1, $v1, $v0 -/* BD7D0 80127480 AC830008 */ sw $v1, 0x8($a0) -/* BD7D4 80127484 97C30516 */ lhu $v1, 0x516($fp) -/* BD7D8 80127488 8C820008 */ lw $v0, 0x8($a0) -/* BD7DC 8012748C 00431021 */ addu $v0, $v0, $v1 -/* BD7E0 80127490 2442FFF0 */ addiu $v0, $v0, -0x10 -/* BD7E4 80127494 0804A17B */ j .LPAL_801285EC -/* BD7E8 80127498 AC82000C */ sw $v0, 0xC($a0) -.LPAL_8012749C: -/* BD7EC 8012749C 0000A82D */ daddu $s5, $zero, $zero -/* BD7F0 801274A0 97D20514 */ lhu $s2, 0x514($fp) -/* BD7F4 801274A4 97D30516 */ lhu $s3, 0x516($fp) -/* BD7F8 801274A8 3C028015 */ lui $v0, %hi(D_80154934) -/* BD7FC 801274AC 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BD800 801274B0 A040002B */ sb $zero, 0x2B($v0) -/* BD804 801274B4 3C038015 */ lui $v1, %hi(D_80154934) -/* BD808 801274B8 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BD80C 801274BC 2402000C */ addiu $v0, $zero, 0xC -/* BD810 801274C0 A4620046 */ sh $v0, 0x46($v1) -/* BD814 801274C4 24020006 */ addiu $v0, $zero, 0x6 -/* BD818 801274C8 A4620048 */ sh $v0, 0x48($v1) -/* BD81C 801274CC 93C204F8 */ lbu $v0, 0x4F8($fp) -/* BD820 801274D0 24180002 */ addiu $t8, $zero, 0x2 -/* BD824 801274D4 14580078 */ bne $v0, $t8, .LPAL_801276B8 -/* BD828 801274D8 241400FF */ addiu $s4, $zero, 0xFF -/* BD82C 801274DC 93C20509 */ lbu $v0, 0x509($fp) -/* BD830 801274E0 24030005 */ addiu $v1, $zero, 0x5 -/* BD834 801274E4 24420001 */ addiu $v0, $v0, 0x1 -/* BD838 801274E8 A3C20509 */ sb $v0, 0x509($fp) -/* BD83C 801274EC 304200FF */ andi $v0, $v0, 0xFF -/* BD840 801274F0 14430002 */ bne $v0, $v1, .LPAL_801274FC -/* BD844 801274F4 24020004 */ addiu $v0, $zero, 0x4 -/* BD848 801274F8 A3C204F8 */ sb $v0, 0x4F8($fp) -.LPAL_801274FC: -/* BD84C 801274FC 93C20509 */ lbu $v0, 0x509($fp) -/* BD850 80127500 3C018015 */ lui $at, %hi(D_PAL_8014F388) -/* BD854 80127504 D422F388 */ ldc1 $f2, %lo(D_PAL_8014F388)($at) -/* BD858 80127508 44820000 */ mtc1 $v0, $f0 -/* BD85C 8012750C 00000000 */ nop -/* BD860 80127510 46800020 */ cvt.s.w $f0, $f0 -/* BD864 80127514 46000021 */ cvt.d.s $f0, $f0 -/* BD868 80127518 46220002 */ mul.d $f0, $f0, $f2 -/* BD86C 8012751C 00000000 */ nop -/* BD870 80127520 3C018015 */ lui $at, %hi(D_PAL_8014F390) -/* BD874 80127524 D422F390 */ ldc1 $f2, %lo(D_PAL_8014F390)($at) -/* BD878 80127528 46220000 */ add.d $f0, $f0, $f2 -/* BD87C 8012752C 44922000 */ mtc1 $s2, $f4 -/* BD880 80127530 00000000 */ nop -/* BD884 80127534 46802120 */ cvt.s.w $f4, $f4 -/* BD888 80127538 462002A0 */ cvt.s.d $f10, $f0 -/* BD88C 8012753C 460A2102 */ mul.s $f4, $f4, $f10 -/* BD890 80127540 00000000 */ nop -/* BD894 80127544 3C013FE0 */ lui $at, (0x3FE00000 >> 16) -/* BD898 80127548 44816800 */ mtc1 $at, $f13 -/* BD89C 8012754C 44806000 */ mtc1 $zero, $f12 -/* BD8A0 80127550 46002121 */ cvt.d.s $f4, $f4 -/* BD8A4 80127554 462C2002 */ mul.d $f0, $f4, $f12 -/* BD8A8 80127558 00000000 */ nop -/* BD8AC 8012755C 44933000 */ mtc1 $s3, $f6 -/* BD8B0 80127560 00000000 */ nop -/* BD8B4 80127564 468031A0 */ cvt.s.w $f6, $f6 -/* BD8B8 80127568 460A3182 */ mul.s $f6, $f6, $f10 -/* BD8BC 8012756C 00000000 */ nop -/* BD8C0 80127570 87C3045A */ lh $v1, 0x45A($fp) -/* BD8C4 80127574 001217C2 */ srl $v0, $s2, 31 -/* BD8C8 80127578 02421021 */ addu $v0, $s2, $v0 -/* BD8CC 8012757C 460031A1 */ cvt.d.s $f6, $f6 -/* BD8D0 80127580 462C3202 */ mul.d $f8, $f6, $f12 -/* BD8D4 80127584 00000000 */ nop -/* BD8D8 80127588 00021043 */ sra $v0, $v0, 1 -/* BD8DC 8012758C 00621821 */ addu $v1, $v1, $v0 -/* BD8E0 80127590 001317C2 */ srl $v0, $s3, 31 -/* BD8E4 80127594 02621021 */ addu $v0, $s3, $v0 -/* BD8E8 80127598 00021043 */ sra $v0, $v0, 1 -/* BD8EC 8012759C 44831000 */ mtc1 $v1, $f2 -/* BD8F0 801275A0 00000000 */ nop -/* BD8F4 801275A4 468010A0 */ cvt.s.w $f2, $f2 -/* BD8F8 801275A8 87C3045C */ lh $v1, 0x45C($fp) -/* BD8FC 801275AC 462C2100 */ add.d $f4, $f4, $f12 -/* BD900 801275B0 460010A1 */ cvt.d.s $f2, $f2 -/* BD904 801275B4 00621821 */ addu $v1, $v1, $v0 -/* BD908 801275B8 46201081 */ sub.d $f2, $f2, $f0 -/* BD90C 801275BC 44830000 */ mtc1 $v1, $f0 -/* BD910 801275C0 00000000 */ nop -/* BD914 801275C4 46800020 */ cvt.s.w $f0, $f0 -/* BD918 801275C8 46000021 */ cvt.d.s $f0, $f0 -/* BD91C 801275CC 46280001 */ sub.d $f0, $f0, $f8 -/* BD920 801275D0 462010A0 */ cvt.s.d $f2, $f2 -/* BD924 801275D4 460010A1 */ cvt.d.s $f2, $f2 -/* BD928 801275D8 462C1080 */ add.d $f2, $f2, $f12 -/* BD92C 801275DC 4620230D */ trunc.w.d $f12, $f4 -/* BD930 801275E0 44126000 */ mfc1 $s2, $f12 -/* BD934 801275E4 3C013FE0 */ lui $at, (0x3FE00000 >> 16) -/* BD938 801275E8 44816800 */ mtc1 $at, $f13 -/* BD93C 801275EC 44806000 */ mtc1 $zero, $f12 -/* BD940 801275F0 46200020 */ cvt.s.d $f0, $f0 -/* BD944 801275F4 462C3180 */ add.d $f6, $f6, $f12 -/* BD948 801275F8 46000021 */ cvt.d.s $f0, $f0 -/* BD94C 801275FC 2A420018 */ slti $v0, $s2, 0x18 -/* BD950 80127600 462C0000 */ add.d $f0, $f0, $f12 -/* BD954 80127604 4620330D */ trunc.w.d $f12, $f6 -/* BD958 80127608 44136000 */ mfc1 $s3, $f12 -/* BD95C 8012760C 4620130D */ trunc.w.d $f12, $f2 -/* BD960 80127610 44116000 */ mfc1 $s1, $f12 -/* BD964 80127614 4620030D */ trunc.w.d $f12, $f0 -/* BD968 80127618 44106000 */ mfc1 $s0, $f12 -/* BD96C 8012761C 54400001 */ bnel $v0, $zero, .LPAL_80127624 -/* BD970 80127620 24120018 */ addiu $s2, $zero, 0x18 -.LPAL_80127624: -/* BD974 80127624 2A620018 */ slti $v0, $s3, 0x18 -/* BD978 80127628 54400001 */ bnel $v0, $zero, .LPAL_80127630 -/* BD97C 8012762C 24130018 */ addiu $s3, $zero, 0x18 -.LPAL_80127630: -/* BD980 80127630 3C018015 */ lui $at, %hi(D_PAL_8014F398) -/* BD984 80127634 D422F398 */ ldc1 $f2, %lo(D_PAL_8014F398)($at) -/* BD988 80127638 46005021 */ cvt.d.s $f0, $f10 -/* BD98C 8012763C 46220002 */ mul.d $f0, $f0, $f2 -/* BD990 80127640 00000000 */ nop -/* BD994 80127644 3C0141E0 */ lui $at, (0x41E00000 >> 16) -/* BD998 80127648 44811800 */ mtc1 $at, $f3 -/* BD99C 8012764C 44801000 */ mtc1 $zero, $f2 -/* BD9A0 80127650 00000000 */ nop -/* BD9A4 80127654 4620103E */ c.le.d $f2, $f0 -/* BD9A8 80127658 00000000 */ nop -/* BD9AC 8012765C 45030005 */ bc1tl .LPAL_80127674 -/* BD9B0 80127660 46220001 */ sub.d $f0, $f0, $f2 -/* BD9B4 80127664 4620030D */ trunc.w.d $f12, $f0 -/* BD9B8 80127668 44036000 */ mfc1 $v1, $f12 -/* BD9BC 8012766C 08049DA3 */ j .LPAL_8012768C -/* BD9C0 80127670 306200FF */ andi $v0, $v1, 0xFF -.LPAL_80127674: -/* BD9C4 80127674 3C028000 */ lui $v0, (0x80000000 >> 16) -/* BD9C8 80127678 4620030D */ trunc.w.d $f12, $f0 -/* BD9CC 8012767C 44036000 */ mfc1 $v1, $f12 -/* BD9D0 80127680 00000000 */ nop -/* BD9D4 80127684 00621825 */ or $v1, $v1, $v0 -/* BD9D8 80127688 306200FF */ andi $v0, $v1, 0xFF -.LPAL_8012768C: -/* BD9DC 8012768C 3C018015 */ lui $at, %hi(D_PAL_8014F3A0) -/* BD9E0 80127690 D422F3A0 */ ldc1 $f2, %lo(D_PAL_8014F3A0)($at) -/* BD9E4 80127694 44820000 */ mtc1 $v0, $f0 -/* BD9E8 80127698 00000000 */ nop -/* BD9EC 8012769C 46800021 */ cvt.d.w $f0, $f0 -/* BD9F0 801276A0 46220002 */ mul.d $f0, $f0, $f2 -/* BD9F4 801276A4 00000000 */ nop -/* BD9F8 801276A8 4620030D */ trunc.w.d $f12, $f0 -/* BD9FC 801276AC 44186000 */ mfc1 $t8, $f12 -/* BDA00 801276B0 08049DEA */ j .LPAL_801277A8 -/* BDA04 801276B4 A7B8008E */ sh $t8, 0x8E($sp) -.LPAL_801276B8: -/* BDA08 801276B8 24180003 */ addiu $t8, $zero, 0x3 -/* BDA0C 801276BC 14580028 */ bne $v0, $t8, .LPAL_80127760 -/* BDA10 801276C0 240400FF */ addiu $a0, $zero, 0xFF -/* BDA14 801276C4 93C20512 */ lbu $v0, 0x512($fp) -/* BDA18 801276C8 24420001 */ addiu $v0, $v0, 0x1 -/* BDA1C 801276CC A3C20512 */ sb $v0, 0x512($fp) -/* BDA20 801276D0 304200FF */ andi $v0, $v0, 0xFF -/* BDA24 801276D4 2C420004 */ sltiu $v0, $v0, 0x4 -/* BDA28 801276D8 14400004 */ bnez $v0, .LPAL_801276EC -/* BDA2C 801276DC 00000000 */ nop -/* BDA30 801276E0 8FC204FC */ lw $v0, 0x4FC($fp) -/* BDA34 801276E4 34420001 */ ori $v0, $v0, 0x1 -/* BDA38 801276E8 AFC204FC */ sw $v0, 0x4FC($fp) -.LPAL_801276EC: -/* BDA3C 801276EC 93C30512 */ lbu $v1, 0x512($fp) -/* BDA40 801276F0 3C018015 */ lui $at, %hi(D_PAL_8014F3A8) -/* BDA44 801276F4 D422F3A8 */ ldc1 $f2, %lo(D_PAL_8014F3A8)($at) -/* BDA48 801276F8 000310C0 */ sll $v0, $v1, 3 -/* BDA4C 801276FC 00431023 */ subu $v0, $v0, $v1 -/* BDA50 80127700 000210C0 */ sll $v0, $v0, 3 -/* BDA54 80127704 00431021 */ addu $v0, $v0, $v1 -/* BDA58 80127708 0002A027 */ nor $s4, $zero, $v0 -/* BDA5C 8012770C 328200FF */ andi $v0, $s4, 0xFF -/* BDA60 80127710 44820000 */ mtc1 $v0, $f0 -/* BDA64 80127714 00000000 */ nop -/* BDA68 80127718 46800021 */ cvt.d.w $f0, $f0 -/* BDA6C 8012771C 46220002 */ mul.d $f0, $f0, $f2 -/* BDA70 80127720 00000000 */ nop -/* BDA74 80127724 24150001 */ addiu $s5, $zero, 0x1 -/* BDA78 80127728 4620030D */ trunc.w.d $f12, $f0 -/* BDA7C 8012772C 44036000 */ mfc1 $v1, $f12 -/* BDA80 80127730 00000000 */ nop -/* BDA84 80127734 00031400 */ sll $v0, $v1, 16 -/* BDA88 80127738 00021403 */ sra $v0, $v0, 16 -/* BDA8C 8012773C 28420020 */ slti $v0, $v0, 0x20 -/* BDA90 80127740 14400003 */ bnez $v0, .LPAL_80127750 -/* BDA94 80127744 A7A3008E */ sh $v1, 0x8E($sp) -/* BDA98 80127748 2463FFE0 */ addiu $v1, $v1, -0x20 -/* BDA9C 8012774C A7A3008E */ sh $v1, 0x8E($sp) -.LPAL_80127750: -/* BDAA0 80127750 87D1045A */ lh $s1, 0x45A($fp) -/* BDAA4 80127754 87D0045C */ lh $s0, 0x45C($fp) -/* BDAA8 80127758 08049DEB */ j .LPAL_801277AC -/* BDAAC 8012775C 0220202D */ daddu $a0, $s1, $zero -.LPAL_80127760: -/* BDAB0 80127760 24050020 */ addiu $a1, $zero, 0x20 -/* BDAB4 80127764 00A0302D */ daddu $a2, $a1, $zero -/* BDAB8 80127768 0000382D */ daddu $a3, $zero, $zero -/* BDABC 8012776C 26420002 */ addiu $v0, $s2, 0x2 -/* BDAC0 80127770 87D1045A */ lh $s1, 0x45A($fp) -/* BDAC4 80127774 87D0045C */ lh $s0, 0x45C($fp) -/* BDAC8 80127778 3042FFFF */ andi $v0, $v0, 0xFFFF -/* BDACC 8012777C AFA20018 */ sw $v0, 0x18($sp) -/* BDAD0 80127780 26620002 */ addiu $v0, $s3, 0x2 -/* BDAD4 80127784 3042FFFF */ andi $v0, $v0, 0xFFFF -/* BDAD8 80127788 AFA2001C */ sw $v0, 0x1C($sp) -/* BDADC 8012778C 2622FFFF */ addiu $v0, $s1, -0x1 -/* BDAE0 80127790 3042FFFF */ andi $v0, $v0, 0xFFFF -/* BDAE4 80127794 AFA20010 */ sw $v0, 0x10($sp) -/* BDAE8 80127798 2602FFFF */ addiu $v0, $s0, -0x1 -/* BDAEC 8012779C 3042FFFF */ andi $v0, $v0, 0xFFFF -/* BDAF0 801277A0 0C04AD52 */ jal msg_draw_prim_rect -/* BDAF4 801277A4 AFA20014 */ sw $v0, 0x14($sp) -.LPAL_801277A8: -/* BDAF8 801277A8 0220202D */ daddu $a0, $s1, $zero -.LPAL_801277AC: -/* BDAFC 801277AC 0200282D */ daddu $a1, $s0, $zero -/* BDB00 801277B0 0240302D */ daddu $a2, $s2, $zero -/* BDB04 801277B4 24820002 */ addiu $v0, $a0, 0x2 -/* BDB08 801277B8 3C038015 */ lui $v1, %hi(D_80154934) -/* BDB0C 801277BC 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BDB10 801277C0 0260382D */ daddu $a3, $s3, $zero -/* BDB14 801277C4 AC620000 */ sw $v0, 0x0($v1) -/* BDB18 801277C8 24A20002 */ addiu $v0, $a1, 0x2 -/* BDB1C 801277CC AC620008 */ sw $v0, 0x8($v1) -/* BDB20 801277D0 00861021 */ addu $v0, $a0, $a2 -/* BDB24 801277D4 2442FFFE */ addiu $v0, $v0, -0x2 -/* BDB28 801277D8 AC620004 */ sw $v0, 0x4($v1) -/* BDB2C 801277DC 00B31021 */ addu $v0, $a1, $s3 -/* BDB30 801277E0 2442FFFE */ addiu $v0, $v0, -0x2 -/* BDB34 801277E4 AC62000C */ sw $v0, 0xC($v1) -/* BDB38 801277E8 24020005 */ addiu $v0, $zero, 0x5 -/* BDB3C 801277EC AFA20010 */ sw $v0, 0x10($sp) -/* BDB40 801277F0 9063002B */ lbu $v1, 0x2B($v1) -/* BDB44 801277F4 328200FF */ andi $v0, $s4, 0xFF -/* BDB48 801277F8 AFB50018 */ sw $s5, 0x18($sp) -/* BDB4C 801277FC AFA2001C */ sw $v0, 0x1C($sp) -/* BDB50 80127800 AFA20020 */ sw $v0, 0x20($sp) -/* BDB54 80127804 0C04B1BE */ jal msg_draw_frame -/* BDB58 80127808 AFA30014 */ sw $v1, 0x14($sp) -/* BDB5C 8012780C 0C04ABA0 */ jal msg_reset_gfx_state -/* BDB60 80127810 329400FF */ andi $s4, $s4, 0xFF -/* BDB64 80127814 3C048015 */ lui $a0, %hi(D_80154934) -/* BDB68 80127818 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BDB6C 8012781C A7B400AE */ sh $s4, 0xAE($sp) -/* BDB70 80127820 8C820020 */ lw $v0, 0x20($a0) -/* BDB74 80127824 94830034 */ lhu $v1, 0x34($a0) -/* BDB78 80127828 2419000A */ addiu $t9, $zero, 0xA -/* BDB7C 8012782C A499004A */ sh $t9, 0x4A($a0) -/* BDB80 80127830 24420002 */ addiu $v0, $v0, 0x2 -/* BDB84 80127834 34630010 */ ori $v1, $v1, 0x10 -/* BDB88 80127838 AC820020 */ sw $v0, 0x20($a0) -/* BDB8C 8012783C 0804AAC4 */ j .LPAL_8012AB10 -/* BDB90 80127840 A4830034 */ sh $v1, 0x34($a0) -.LPAL_80127844: -/* BDB94 80127844 3C058015 */ lui $a1, %hi(D_80154934) -/* BDB98 80127848 8CA54934 */ lw $a1, %lo(D_80154934)($a1) -/* BDB9C 8012784C 24020010 */ addiu $v0, $zero, 0x10 -/* BDBA0 80127850 24180003 */ addiu $t8, $zero, 0x3 -/* BDBA4 80127854 A4A20046 */ sh $v0, 0x46($a1) -/* BDBA8 80127858 A4B80048 */ sh $t8, 0x48($a1) -/* BDBAC 8012785C 87C2045A */ lh $v0, 0x45A($fp) -/* BDBB0 80127860 24420005 */ addiu $v0, $v0, 0x5 -/* BDBB4 80127864 ACA20000 */ sw $v0, 0x0($a1) -/* BDBB8 80127868 87C2045C */ lh $v0, 0x45C($fp) -/* BDBBC 8012786C 24420004 */ addiu $v0, $v0, 0x4 -/* BDBC0 80127870 ACA20008 */ sw $v0, 0x8($a1) -/* BDBC4 80127874 87C2045A */ lh $v0, 0x45A($fp) -/* BDBC8 80127878 97C30514 */ lhu $v1, 0x514($fp) -/* BDBCC 8012787C 0000882D */ daddu $s1, $zero, $zero -/* BDBD0 80127880 00431021 */ addu $v0, $v0, $v1 -/* BDBD4 80127884 2442FFF8 */ addiu $v0, $v0, -0x8 -/* BDBD8 80127888 ACA20004 */ sw $v0, 0x4($a1) -/* BDBDC 8012788C 87C2045C */ lh $v0, 0x45C($fp) -/* BDBE0 80127890 97C30516 */ lhu $v1, 0x516($fp) -/* BDBE4 80127894 240400FF */ addiu $a0, $zero, 0xFF -/* BDBE8 80127898 00431021 */ addu $v0, $v0, $v1 -/* BDBEC 8012789C 94A30006 */ lhu $v1, 0x6($a1) -/* BDBF0 801278A0 2442FFFB */ addiu $v0, $v0, -0x5 -/* BDBF4 801278A4 ACA2000C */ sw $v0, 0xC($a1) -/* BDBF8 801278A8 2463FFEF */ addiu $v1, $v1, -0x11 -/* BDBFC 801278AC A7C30482 */ sh $v1, 0x482($fp) -/* BDC00 801278B0 94A2000E */ lhu $v0, 0xE($a1) -/* BDC04 801278B4 0000382D */ daddu $a3, $zero, $zero -/* BDC08 801278B8 2442FFEF */ addiu $v0, $v0, -0x11 -/* BDC0C 801278BC A7C20484 */ sh $v0, 0x484($fp) -/* BDC10 801278C0 A4A0004A */ sh $zero, 0x4A($a1) -/* BDC14 801278C4 97C2045A */ lhu $v0, 0x45A($fp) -/* BDC18 801278C8 24050020 */ addiu $a1, $zero, 0x20 -/* BDC1C 801278CC 24420003 */ addiu $v0, $v0, 0x3 -/* BDC20 801278D0 3042FFFF */ andi $v0, $v0, 0xFFFF -/* BDC24 801278D4 AFA20010 */ sw $v0, 0x10($sp) -/* BDC28 801278D8 97C2045C */ lhu $v0, 0x45C($fp) -/* BDC2C 801278DC 00A0302D */ daddu $a2, $a1, $zero -/* BDC30 801278E0 2442FFFF */ addiu $v0, $v0, -0x1 -/* BDC34 801278E4 3042FFFF */ andi $v0, $v0, 0xFFFF -/* BDC38 801278E8 AFA20014 */ sw $v0, 0x14($sp) -/* BDC3C 801278EC 97C20514 */ lhu $v0, 0x514($fp) -/* BDC40 801278F0 24190001 */ addiu $t9, $zero, 0x1 -/* BDC44 801278F4 AFB9001C */ sw $t9, 0x1C($sp) -/* BDC48 801278F8 2442FFFA */ addiu $v0, $v0, -0x6 -/* BDC4C 801278FC 3042FFFF */ andi $v0, $v0, 0xFFFF -/* BDC50 80127900 0C04AD52 */ jal msg_draw_prim_rect -/* BDC54 80127904 AFA20018 */ sw $v0, 0x18($sp) -/* BDC58 80127908 24040020 */ addiu $a0, $zero, 0x20 -/* BDC5C 8012790C 240500FF */ addiu $a1, $zero, 0xFF -/* BDC60 80127910 97C2045A */ lhu $v0, 0x45A($fp) -/* BDC64 80127914 0080302D */ daddu $a2, $a0, $zero -/* BDC68 80127918 24420003 */ addiu $v0, $v0, 0x3 -/* BDC6C 8012791C 3042FFFF */ andi $v0, $v0, 0xFFFF -/* BDC70 80127920 AFA20010 */ sw $v0, 0x10($sp) -/* BDC74 80127924 97C2045C */ lhu $v0, 0x45C($fp) -/* BDC78 80127928 97C30516 */ lhu $v1, 0x516($fp) -/* BDC7C 8012792C 0000382D */ daddu $a3, $zero, $zero -/* BDC80 80127930 00431021 */ addu $v0, $v0, $v1 -/* BDC84 80127934 3042FFFF */ andi $v0, $v0, 0xFFFF -/* BDC88 80127938 AFA20014 */ sw $v0, 0x14($sp) -/* BDC8C 8012793C 97C20514 */ lhu $v0, 0x514($fp) -/* BDC90 80127940 24180001 */ addiu $t8, $zero, 0x1 -/* BDC94 80127944 AFB8001C */ sw $t8, 0x1C($sp) -/* BDC98 80127948 2442FFFA */ addiu $v0, $v0, -0x6 -/* BDC9C 8012794C 3042FFFF */ andi $v0, $v0, 0xFFFF -/* BDCA0 80127950 0C04AD52 */ jal msg_draw_prim_rect -/* BDCA4 80127954 AFA20018 */ sw $v0, 0x18($sp) -/* BDCA8 80127958 93C204F8 */ lbu $v0, 0x4F8($fp) -/* BDCAC 8012795C 24190002 */ addiu $t9, $zero, 0x2 -/* BDCB0 80127960 14590012 */ bne $v0, $t9, .LPAL_801279AC -/* BDCB4 80127964 241000FF */ addiu $s0, $zero, 0xFF -/* BDCB8 80127968 93C20509 */ lbu $v0, 0x509($fp) -/* BDCBC 8012796C 24180004 */ addiu $t8, $zero, 0x4 -/* BDCC0 80127970 00021840 */ sll $v1, $v0, 1 -/* BDCC4 80127974 00621821 */ addu $v1, $v1, $v0 -/* BDCC8 80127978 00031900 */ sll $v1, $v1, 4 -/* BDCCC 8012797C 24700050 */ addiu $s0, $v1, 0x50 -/* BDCD0 80127980 320300FF */ andi $v1, $s0, 0xFF -/* BDCD4 80127984 2463FFD0 */ addiu $v1, $v1, -0x30 -/* BDCD8 80127988 24420001 */ addiu $v0, $v0, 0x1 -/* BDCDC 8012798C A7A3008E */ sh $v1, 0x8E($sp) -/* BDCE0 80127990 A3C20509 */ sb $v0, 0x509($fp) -/* BDCE4 80127994 304200FF */ andi $v0, $v0, 0xFF -/* BDCE8 80127998 14580018 */ bne $v0, $t8, .LPAL_801279FC -/* BDCEC 8012799C 24110001 */ addiu $s1, $zero, 0x1 -/* BDCF0 801279A0 0300C82D */ daddu $t9, $t8, $zero -/* BDCF4 801279A4 08049E7F */ j .LPAL_801279FC -/* BDCF8 801279A8 A3D904F8 */ sb $t9, 0x4F8($fp) -.LPAL_801279AC: -/* BDCFC 801279AC 24180003 */ addiu $t8, $zero, 0x3 -/* BDD00 801279B0 14580012 */ bne $v0, $t8, .LPAL_801279FC -/* BDD04 801279B4 2403FFD0 */ addiu $v1, $zero, -0x30 -/* BDD08 801279B8 93C40512 */ lbu $a0, 0x512($fp) -/* BDD0C 801279BC 24190004 */ addiu $t9, $zero, 0x4 -/* BDD10 801279C0 00041080 */ sll $v0, $a0, 2 -/* BDD14 801279C4 00441021 */ addu $v0, $v0, $a0 -/* BDD18 801279C8 03021004 */ sllv $v0, $v0, $t8 -/* BDD1C 801279CC 00628023 */ subu $s0, $v1, $v0 -/* BDD20 801279D0 320200FF */ andi $v0, $s0, 0xFF -/* BDD24 801279D4 00431021 */ addu $v0, $v0, $v1 -/* BDD28 801279D8 24840001 */ addiu $a0, $a0, 0x1 -/* BDD2C 801279DC A7A2008E */ sh $v0, 0x8E($sp) -/* BDD30 801279E0 A3C40512 */ sb $a0, 0x512($fp) -/* BDD34 801279E4 308400FF */ andi $a0, $a0, 0xFF -/* BDD38 801279E8 14990004 */ bne $a0, $t9, .LPAL_801279FC -/* BDD3C 801279EC 24110001 */ addiu $s1, $zero, 0x1 -/* BDD40 801279F0 8FC204FC */ lw $v0, 0x4FC($fp) -/* BDD44 801279F4 34420001 */ ori $v0, $v0, 0x1 -/* BDD48 801279F8 AFC204FC */ sw $v0, 0x4FC($fp) -.LPAL_801279FC: -/* BDD4C 801279FC 87C4045A */ lh $a0, 0x45A($fp) -/* BDD50 80127A00 87C5045C */ lh $a1, 0x45C($fp) -/* BDD54 80127A04 97C60514 */ lhu $a2, 0x514($fp) -/* BDD58 80127A08 97C70516 */ lhu $a3, 0x516($fp) -/* BDD5C 80127A0C 3C028015 */ lui $v0, %hi(D_80154934) -/* BDD60 80127A10 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BDD64 80127A14 24180006 */ addiu $t8, $zero, 0x6 -/* BDD68 80127A18 AFB80010 */ sw $t8, 0x10($sp) -/* BDD6C 80127A1C 9043002B */ lbu $v1, 0x2B($v0) -/* BDD70 80127A20 320200FF */ andi $v0, $s0, 0xFF -/* BDD74 80127A24 AFB10018 */ sw $s1, 0x18($sp) -/* BDD78 80127A28 AFA2001C */ sw $v0, 0x1C($sp) -/* BDD7C 80127A2C AFA20020 */ sw $v0, 0x20($sp) -/* BDD80 80127A30 0C04B1BE */ jal msg_draw_frame -/* BDD84 80127A34 AFA30014 */ sw $v1, 0x14($sp) -/* BDD88 80127A38 0C04ABA0 */ jal msg_reset_gfx_state -/* BDD8C 80127A3C 321000FF */ andi $s0, $s0, 0xFF -/* BDD90 80127A40 3C038015 */ lui $v1, %hi(D_80154934) -/* BDD94 80127A44 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BDD98 80127A48 8C620020 */ lw $v0, 0x20($v1) -/* BDD9C 80127A4C 0804A59C */ j .LPAL_80129670 -/* BDDA0 80127A50 A7B000AE */ sh $s0, 0xAE($sp) -.LPAL_80127A54: -/* BDDA4 80127A54 24020012 */ addiu $v0, $zero, 0x12 -/* BDDA8 80127A58 3C038015 */ lui $v1, %hi(D_80154934) -/* BDDAC 80127A5C 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BDDB0 80127A60 2404001C */ addiu $a0, $zero, 0x1C -/* BDDB4 80127A64 A4620046 */ sh $v0, 0x46($v1) -/* BDDB8 80127A68 2402000B */ addiu $v0, $zero, 0xB -/* BDDBC 80127A6C A4620048 */ sh $v0, 0x48($v1) -/* BDDC0 80127A70 24020014 */ addiu $v0, $zero, 0x14 -/* BDDC4 80127A74 A7C2045A */ sh $v0, 0x45A($fp) -/* BDDC8 80127A78 24020118 */ addiu $v0, $zero, 0x118 -/* BDDCC 80127A7C A7C20514 */ sh $v0, 0x514($fp) -/* BDDD0 80127A80 2402000F */ addiu $v0, $zero, 0xF -/* BDDD4 80127A84 A7C4045C */ sh $a0, 0x45C($fp) -/* BDDD8 80127A88 A062002B */ sb $v0, 0x2B($v1) -/* BDDDC 80127A8C 93C30508 */ lbu $v1, 0x508($fp) -/* BDDE0 80127A90 24020007 */ addiu $v0, $zero, 0x7 -/* BDDE4 80127A94 1462000D */ bne $v1, $v0, .LPAL_80127ACC -/* BDDE8 80127A98 241100FF */ addiu $s1, $zero, 0xFF -/* BDDEC 80127A9C 3C19802F */ lui $t9, %hi(ui_msg_sign_corner_bottomright_png) -/* BDDF0 80127AA0 27392A70 */ addiu $t9, $t9, %lo(ui_msg_sign_corner_bottomright_png) -/* BDDF4 80127AA4 3C16802F */ lui $s6, %hi(ui_msg_sign_pal) -/* BDDF8 80127AA8 26D63010 */ addiu $s6, $s6, %lo(ui_msg_sign_pal) -/* BDDFC 80127AAC 3C038015 */ lui $v1, %hi(D_80154934) -/* BDE00 80127AB0 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BDE04 80127AB4 24020048 */ addiu $v0, $zero, 0x48 -/* BDE08 80127AB8 AFB900C0 */ sw $t9, 0xC0($sp) -/* BDE0C 80127ABC A7C20516 */ sh $v0, 0x516($fp) -/* BDE10 80127AC0 24020018 */ addiu $v0, $zero, 0x18 -/* BDE14 80127AC4 08049EBB */ j .LPAL_80127AEC -/* BDE18 80127AC8 A462004A */ sh $v0, 0x4A($v1) -.LPAL_80127ACC: -/* BDE1C 80127ACC 3C18802F */ lui $t8, %hi(ui_msg_lamppost_corner_bottomright_png) -/* BDE20 80127AD0 27182AF0 */ addiu $t8, $t8, %lo(ui_msg_lamppost_corner_bottomright_png) -/* BDE24 80127AD4 3C028015 */ lui $v0, %hi(D_80154934) -/* BDE28 80127AD8 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BDE2C 80127ADC 3C16802F */ lui $s6, %hi(ui_msg_lamppost_pal) -/* BDE30 80127AE0 26D63030 */ addiu $s6, $s6, %lo(ui_msg_lamppost_pal) -/* BDE34 80127AE4 AFB800C0 */ sw $t8, 0xC0($sp) -/* BDE38 80127AE8 A444004A */ sh $a0, 0x4A($v0) -.LPAL_80127AEC: -/* BDE3C 80127AEC 24020022 */ addiu $v0, $zero, 0x22 -/* BDE40 80127AF0 3C048015 */ lui $a0, %hi(D_80154934) -/* BDE44 80127AF4 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BDE48 80127AF8 24190002 */ addiu $t9, $zero, 0x2 -/* BDE4C 80127AFC AC820000 */ sw $v0, 0x0($a0) -/* BDE50 80127B00 24020028 */ addiu $v0, $zero, 0x28 -/* BDE54 80127B04 AC820008 */ sw $v0, 0x8($a0) -/* BDE58 80127B08 2402011B */ addiu $v0, $zero, 0x11B -/* BDE5C 80127B0C AC820004 */ sw $v0, 0x4($a0) -/* BDE60 80127B10 97C20516 */ lhu $v0, 0x516($fp) -/* BDE64 80127B14 94830006 */ lhu $v1, 0x6($a0) -/* BDE68 80127B18 24420011 */ addiu $v0, $v0, 0x11 -/* BDE6C 80127B1C 2463FFF0 */ addiu $v1, $v1, -0x10 -/* BDE70 80127B20 AC82000C */ sw $v0, 0xC($a0) -/* BDE74 80127B24 A7C30482 */ sh $v1, 0x482($fp) -/* BDE78 80127B28 9482000E */ lhu $v0, 0xE($a0) -/* BDE7C 80127B2C 93C304F8 */ lbu $v1, 0x4F8($fp) -/* BDE80 80127B30 2442FFF7 */ addiu $v0, $v0, -0x9 -/* BDE84 80127B34 14790010 */ bne $v1, $t9, .LPAL_80127B78 -/* BDE88 80127B38 A7C20484 */ sh $v0, 0x484($fp) -/* BDE8C 80127B3C 93C20509 */ lbu $v0, 0x509($fp) -/* BDE90 80127B40 24180003 */ addiu $t8, $zero, 0x3 -/* BDE94 80127B44 00021980 */ sll $v1, $v0, 6 -/* BDE98 80127B48 24710050 */ addiu $s1, $v1, 0x50 -/* BDE9C 80127B4C 322300FF */ andi $v1, $s1, 0xFF -/* BDEA0 80127B50 2463FFD0 */ addiu $v1, $v1, -0x30 -/* BDEA4 80127B54 24420001 */ addiu $v0, $v0, 0x1 -/* BDEA8 80127B58 A7A3008E */ sh $v1, 0x8E($sp) -/* BDEAC 80127B5C A3C20509 */ sb $v0, 0x509($fp) -/* BDEB0 80127B60 304200FF */ andi $v0, $v0, 0xFF -/* BDEB4 80127B64 14580018 */ bne $v0, $t8, .LPAL_80127BC8 -/* BDEB8 80127B68 323800FF */ andi $t8, $s1, 0xFF -/* BDEBC 80127B6C 24020004 */ addiu $v0, $zero, 0x4 -/* BDEC0 80127B70 08049EF2 */ j .LPAL_80127BC8 -/* BDEC4 80127B74 A3C204F8 */ sb $v0, 0x4F8($fp) -.LPAL_80127B78: -/* BDEC8 80127B78 24190003 */ addiu $t9, $zero, 0x3 -/* BDECC 80127B7C 14790012 */ bne $v1, $t9, .LPAL_80127BC8 -/* BDED0 80127B80 323800FF */ andi $t8, $s1, 0xFF -/* BDED4 80127B84 93C40512 */ lbu $a0, 0x512($fp) -/* BDED8 80127B88 2403FFD0 */ addiu $v1, $zero, -0x30 -/* BDEDC 80127B8C 00041040 */ sll $v0, $a0, 1 -/* BDEE0 80127B90 00441021 */ addu $v0, $v0, $a0 -/* BDEE4 80127B94 00021100 */ sll $v0, $v0, 4 -/* BDEE8 80127B98 00628823 */ subu $s1, $v1, $v0 -/* BDEEC 80127B9C 322200FF */ andi $v0, $s1, 0xFF -/* BDEF0 80127BA0 00431021 */ addu $v0, $v0, $v1 -/* BDEF4 80127BA4 24840001 */ addiu $a0, $a0, 0x1 -/* BDEF8 80127BA8 A7A2008E */ sh $v0, 0x8E($sp) -/* BDEFC 80127BAC A3C40512 */ sb $a0, 0x512($fp) -/* BDF00 80127BB0 308400FF */ andi $a0, $a0, 0xFF -/* BDF04 80127BB4 14990004 */ bne $a0, $t9, .LPAL_80127BC8 -/* BDF08 80127BB8 323800FF */ andi $t8, $s1, 0xFF -/* BDF0C 80127BBC 8FC204FC */ lw $v0, 0x4FC($fp) -/* BDF10 80127BC0 34420001 */ ori $v0, $v0, 0x1 -/* BDF14 80127BC4 AFC204FC */ sw $v0, 0x4FC($fp) -.LPAL_80127BC8: -/* BDF18 80127BC8 3C04802F */ lui $a0, %hi(ui_msg_sign_corner_topleft_png) -/* BDF1C 80127BCC 248428F0 */ addiu $a0, $a0, %lo(ui_msg_sign_corner_topleft_png) -/* BDF20 80127BD0 24050010 */ addiu $a1, $zero, 0x10 -/* BDF24 80127BD4 00A0302D */ daddu $a2, $a1, $zero -/* BDF28 80127BD8 24070002 */ addiu $a3, $zero, 0x2 -/* BDF2C 80127BDC 24150014 */ addiu $s5, $zero, 0x14 -/* BDF30 80127BE0 2410001C */ addiu $s0, $zero, 0x1C -/* BDF34 80127BE4 2419000A */ addiu $t9, $zero, 0xA -/* BDF38 80127BE8 A7B800AE */ sh $t8, 0xAE($sp) -/* BDF3C 80127BEC 0320C02D */ daddu $t8, $t9, $zero -/* BDF40 80127BF0 24130136 */ addiu $s3, $zero, 0x136 -/* BDF44 80127BF4 241200E6 */ addiu $s2, $zero, 0xE6 -/* BDF48 80127BF8 323100FF */ andi $s1, $s1, 0xFF -/* BDF4C 80127BFC AFA00010 */ sw $zero, 0x10($sp) -/* BDF50 80127C00 AFB60014 */ sw $s6, 0x14($sp) -/* BDF54 80127C04 AFB50018 */ sw $s5, 0x18($sp) -/* BDF58 80127C08 AFB0001C */ sw $s0, 0x1C($sp) -/* BDF5C 80127C0C AFB90020 */ sw $t9, 0x20($sp) -/* BDF60 80127C10 AFB80024 */ sw $t8, 0x24($sp) -/* BDF64 80127C14 AFB30028 */ sw $s3, 0x28($sp) -/* BDF68 80127C18 AFB2002C */ sw $s2, 0x2C($sp) -/* BDF6C 80127C1C 0C04B550 */ jal draw_ci_image_with_clipping -/* BDF70 80127C20 AFB10030 */ sw $s1, 0x30($sp) -/* BDF74 80127C24 3C04802F */ lui $a0, %hi(ui_msg_sign_corner_topright_png) -/* BDF78 80127C28 24842970 */ addiu $a0, $a0, %lo(ui_msg_sign_corner_topright_png) -/* BDF7C 80127C2C 24050010 */ addiu $a1, $zero, 0x10 -/* BDF80 80127C30 00A0302D */ daddu $a2, $a1, $zero -/* BDF84 80127C34 24070002 */ addiu $a3, $zero, 0x2 -/* BDF88 80127C38 2414011C */ addiu $s4, $zero, 0x11C -/* BDF8C 80127C3C 2419000A */ addiu $t9, $zero, 0xA -/* BDF90 80127C40 0320C02D */ daddu $t8, $t9, $zero -/* BDF94 80127C44 AFA00010 */ sw $zero, 0x10($sp) -/* BDF98 80127C48 AFB60014 */ sw $s6, 0x14($sp) -/* BDF9C 80127C4C AFB40018 */ sw $s4, 0x18($sp) -/* BDFA0 80127C50 AFB0001C */ sw $s0, 0x1C($sp) -/* BDFA4 80127C54 AFB90020 */ sw $t9, 0x20($sp) -/* BDFA8 80127C58 AFB80024 */ sw $t8, 0x24($sp) -/* BDFAC 80127C5C AFB30028 */ sw $s3, 0x28($sp) -/* BDFB0 80127C60 AFB2002C */ sw $s2, 0x2C($sp) -/* BDFB4 80127C64 0C04B550 */ jal draw_ci_image_with_clipping -/* BDFB8 80127C68 AFB10030 */ sw $s1, 0x30($sp) -/* BDFBC 80127C6C 3C04802F */ lui $a0, %hi(ui_msg_sign_corner_bottomleft_png) -/* BDFC0 80127C70 248429F0 */ addiu $a0, $a0, %lo(ui_msg_sign_corner_bottomleft_png) -/* BDFC4 80127C74 24050010 */ addiu $a1, $zero, 0x10 -/* BDFC8 80127C78 00A0302D */ daddu $a2, $a1, $zero -/* BDFCC 80127C7C 24070002 */ addiu $a3, $zero, 0x2 -/* BDFD0 80127C80 AFA00010 */ sw $zero, 0x10($sp) -/* BDFD4 80127C84 AFB60014 */ sw $s6, 0x14($sp) -/* BDFD8 80127C88 AFB50018 */ sw $s5, 0x18($sp) -/* BDFDC 80127C8C 97C20516 */ lhu $v0, 0x516($fp) -/* BDFE0 80127C90 2419000A */ addiu $t9, $zero, 0xA -/* BDFE4 80127C94 0320C02D */ daddu $t8, $t9, $zero -/* BDFE8 80127C98 AFB90020 */ sw $t9, 0x20($sp) -/* BDFEC 80127C9C AFB80024 */ sw $t8, 0x24($sp) -/* BDFF0 80127CA0 AFB30028 */ sw $s3, 0x28($sp) -/* BDFF4 80127CA4 AFB2002C */ sw $s2, 0x2C($sp) -/* BDFF8 80127CA8 AFB10030 */ sw $s1, 0x30($sp) -/* BDFFC 80127CAC 2442000C */ addiu $v0, $v0, 0xC -/* BE000 80127CB0 00A21004 */ sllv $v0, $v0, $a1 -/* BE004 80127CB4 00A21007 */ srav $v0, $v0, $a1 -/* BE008 80127CB8 0C04B550 */ jal draw_ci_image_with_clipping -/* BE00C 80127CBC AFA2001C */ sw $v0, 0x1C($sp) -/* BE010 80127CC0 24050010 */ addiu $a1, $zero, 0x10 -/* BE014 80127CC4 00A0302D */ daddu $a2, $a1, $zero -/* BE018 80127CC8 24070002 */ addiu $a3, $zero, 0x2 -/* BE01C 80127CCC AFA00010 */ sw $zero, 0x10($sp) -/* BE020 80127CD0 AFB60014 */ sw $s6, 0x14($sp) -/* BE024 80127CD4 AFB40018 */ sw $s4, 0x18($sp) -/* BE028 80127CD8 97C20516 */ lhu $v0, 0x516($fp) -/* BE02C 80127CDC 2419000A */ addiu $t9, $zero, 0xA -/* BE030 80127CE0 8FA400C0 */ lw $a0, 0xC0($sp) -/* BE034 80127CE4 0320C02D */ daddu $t8, $t9, $zero -/* BE038 80127CE8 AFB90020 */ sw $t9, 0x20($sp) -/* BE03C 80127CEC AFB80024 */ sw $t8, 0x24($sp) -/* BE040 80127CF0 AFB30028 */ sw $s3, 0x28($sp) -/* BE044 80127CF4 AFB2002C */ sw $s2, 0x2C($sp) -/* BE048 80127CF8 AFB10030 */ sw $s1, 0x30($sp) -/* BE04C 80127CFC 2442000C */ addiu $v0, $v0, 0xC -/* BE050 80127D00 00A21004 */ sllv $v0, $v0, $a1 -/* BE054 80127D04 00A21007 */ srav $v0, $v0, $a1 -/* BE058 80127D08 0C04B550 */ jal draw_ci_image_with_clipping -/* BE05C 80127D0C AFA2001C */ sw $v0, 0x1C($sp) -/* BE060 80127D10 3C120703 */ lui $s2, (0x703E03C >> 16) -/* BE064 80127D14 3652E03C */ ori $s2, $s2, (0x703E03C & 0xFFFF) -/* BE068 80127D18 3C14F540 */ lui $s4, (0xF5400400 >> 16) -/* BE06C 80127D1C 36940400 */ ori $s4, $s4, (0xF5400400 & 0xFFFF) -/* BE070 80127D20 3C130001 */ lui $s3, (0x10050 >> 16) -/* BE074 80127D24 36730050 */ ori $s3, $s3, (0x10050 & 0xFFFF) -/* BE078 80127D28 3C150007 */ lui $s5, (0x7C03C >> 16) -/* BE07C 80127D2C 36B5C03C */ ori $s5, $s5, (0x7C03C & 0xFFFF) -/* BE080 80127D30 3C06E447 */ lui $a2, (0xE44700B0 >> 16) -/* BE084 80127D34 34C600B0 */ ori $a2, $a2, (0xE44700B0 & 0xFFFF) -/* BE088 80127D38 3C050009 */ lui $a1, (0x90070 >> 16) -/* BE08C 80127D3C 34A50070 */ ori $a1, $a1, (0x90070 & 0xFFFF) -/* BE090 80127D40 3C090400 */ lui $t1, (0x4000400 >> 16) -/* BE094 80127D44 35290400 */ ori $t1, $t1, (0x4000400 & 0xFFFF) -/* BE098 80127D48 3C0BFD48 */ lui $t3, (0xFD480007 >> 16) -/* BE09C 80127D4C 356B0007 */ ori $t3, $t3, (0xFD480007 & 0xFFFF) -/* BE0A0 80127D50 3C0AF548 */ lui $t2, (0xF5480200 >> 16) -/* BE0A4 80127D54 354A0200 */ ori $t2, $t2, (0xF5480200 & 0xFFFF) -/* BE0A8 80127D58 3C0D0701 */ lui $t5, (0x7014040 >> 16) -/* BE0AC 80127D5C 35AD4040 */ ori $t5, $t5, (0x7014040 & 0xFFFF) -/* BE0B0 80127D60 3C0E0701 */ lui $t6, (0x701E07C >> 16) -/* BE0B4 80127D64 35CEE07C */ ori $t6, $t6, (0x701E07C & 0xFFFF) -/* BE0B8 80127D68 3C0CF540 */ lui $t4, (0xF5400200 >> 16) -/* BE0BC 80127D6C 358C0200 */ ori $t4, $t4, (0xF5400200 & 0xFFFF) -/* BE0C0 80127D70 3C0F0001 */ lui $t7, (0x14040 >> 16) -/* BE0C4 80127D74 35EF4040 */ ori $t7, $t7, (0x14040 & 0xFFFF) -/* BE0C8 80127D78 3C100003 */ lui $s0, (0x3C07C >> 16) -/* BE0CC 80127D7C 3610C07C */ ori $s0, $s0, (0x3C07C & 0xFFFF) -/* BE0D0 80127D80 3C110005 */ lui $s1, (0x500B0 >> 16) -/* BE0D4 80127D84 363100B0 */ ori $s1, $s1, (0x500B0 & 0xFFFF) -/* BE0D8 80127D88 3C160047 */ lui $s6, (0x4700B0 >> 16) -/* BE0DC 80127D8C 36D600B0 */ ori $s6, $s6, (0x4700B0 & 0xFFFF) -/* BE0E0 80127D90 3C19FD48 */ lui $t9, (0xFD480003 >> 16) -/* BE0E4 80127D94 37390003 */ ori $t9, $t9, (0xFD480003 & 0xFFFF) -/* BE0E8 80127D98 3C180700 */ lui $t8, (0x700C030 >> 16) -/* BE0EC 80127D9C 3718C030 */ ori $t8, $t8, (0x700C030 & 0xFFFF) -/* BE0F0 80127DA0 AFB900D0 */ sw $t9, 0xD0($sp) -/* BE0F4 80127DA4 3C190700 */ lui $t9, (0x700E01C >> 16) -/* BE0F8 80127DA8 3739E01C */ ori $t9, $t9, (0x700E01C & 0xFFFF) -/* BE0FC 80127DAC AFB800E0 */ sw $t8, 0xE0($sp) -/* BE100 80127DB0 3C180001 */ lui $t8, (0x1C01C >> 16) -/* BE104 80127DB4 3718C01C */ ori $t8, $t8, (0x1C01C & 0xFFFF) -/* BE108 80127DB8 AFB900E4 */ sw $t9, 0xE4($sp) -/* BE10C 80127DBC 3C190009 */ lui $t9, (0x900B0 >> 16) -/* BE110 80127DC0 373900B0 */ ori $t9, $t9, (0x900B0 & 0xFFFF) -/* BE114 80127DC4 3C03802F */ lui $v1, %hi(ui_msg_sign_side_top_png) -/* BE118 80127DC8 24632B70 */ addiu $v1, $v1, %lo(ui_msg_sign_side_top_png) -/* BE11C 80127DCC AFB800D4 */ sw $t8, 0xD4($sp) -/* BE120 80127DD0 8EE20000 */ lw $v0, 0x0($s7) -/* BE124 80127DD4 3C08F200 */ lui $t0, (0xF2000000 >> 16) -/* BE128 80127DD8 AFB900D8 */ sw $t9, 0xD8($sp) -/* BE12C 80127DDC 0040202D */ daddu $a0, $v0, $zero -/* BE130 80127DE0 24420008 */ addiu $v0, $v0, 0x8 -/* BE134 80127DE4 AEE20000 */ sw $v0, 0x0($s7) -/* BE138 80127DE8 8FB800C4 */ lw $t8, 0xC4($sp) -/* BE13C 80127DEC 3C07E100 */ lui $a3, (0xE1000000 >> 16) -/* BE140 80127DF0 AC830004 */ sw $v1, 0x4($a0) -/* BE144 80127DF4 24430008 */ addiu $v1, $v0, 0x8 -/* BE148 80127DF8 AC980000 */ sw $t8, 0x0($a0) -/* BE14C 80127DFC AEE30000 */ sw $v1, 0x0($s7) -/* BE150 80127E00 8FB900C8 */ lw $t9, 0xC8($sp) -/* BE154 80127E04 24430010 */ addiu $v1, $v0, 0x10 -/* BE158 80127E08 AC590000 */ sw $t9, 0x0($v0) -/* BE15C 80127E0C 8FB800CC */ lw $t8, 0xCC($sp) -/* BE160 80127E10 3C19E600 */ lui $t9, (0xE6000000 >> 16) -/* BE164 80127E14 AC580004 */ sw $t8, 0x4($v0) -/* BE168 80127E18 AEE30000 */ sw $v1, 0x0($s7) -/* BE16C 80127E1C 24430018 */ addiu $v1, $v0, 0x18 -/* BE170 80127E20 3C18F400 */ lui $t8, (0xF4000000 >> 16) -/* BE174 80127E24 AC590008 */ sw $t9, 0x8($v0) -/* BE178 80127E28 AC40000C */ sw $zero, 0xC($v0) -/* BE17C 80127E2C AEE30000 */ sw $v1, 0x0($s7) -/* BE180 80127E30 24430020 */ addiu $v1, $v0, 0x20 -/* BE184 80127E34 3C19E700 */ lui $t9, (0xE7000000 >> 16) -/* BE188 80127E38 AC580010 */ sw $t8, 0x10($v0) -/* BE18C 80127E3C AC520014 */ sw $s2, 0x14($v0) -/* BE190 80127E40 AEE30000 */ sw $v1, 0x0($s7) -/* BE194 80127E44 24430028 */ addiu $v1, $v0, 0x28 -/* BE198 80127E48 AC590018 */ sw $t9, 0x18($v0) -/* BE19C 80127E4C AC40001C */ sw $zero, 0x1C($v0) -/* BE1A0 80127E50 AEE30000 */ sw $v1, 0x0($s7) -/* BE1A4 80127E54 24430030 */ addiu $v1, $v0, 0x30 -/* BE1A8 80127E58 AC540020 */ sw $s4, 0x20($v0) -/* BE1AC 80127E5C AC530024 */ sw $s3, 0x24($v0) -/* BE1B0 80127E60 AEE30000 */ sw $v1, 0x0($s7) -/* BE1B4 80127E64 24430038 */ addiu $v1, $v0, 0x38 -/* BE1B8 80127E68 AC480028 */ sw $t0, 0x28($v0) -/* BE1BC 80127E6C AC55002C */ sw $s5, 0x2C($v0) -/* BE1C0 80127E70 AEE30000 */ sw $v1, 0x0($s7) -/* BE1C4 80127E74 24430040 */ addiu $v1, $v0, 0x40 -/* BE1C8 80127E78 AC460030 */ sw $a2, 0x30($v0) -/* BE1CC 80127E7C AC450034 */ sw $a1, 0x34($v0) -/* BE1D0 80127E80 AEE30000 */ sw $v1, 0x0($s7) -/* BE1D4 80127E84 24430048 */ addiu $v1, $v0, 0x48 -/* BE1D8 80127E88 3C06F100 */ lui $a2, (0xF1000000 >> 16) -/* BE1DC 80127E8C AC470038 */ sw $a3, 0x38($v0) -/* BE1E0 80127E90 AC40003C */ sw $zero, 0x3C($v0) -/* BE1E4 80127E94 AEE30000 */ sw $v1, 0x0($s7) -/* BE1E8 80127E98 24430050 */ addiu $v1, $v0, 0x50 -/* BE1EC 80127E9C AC460040 */ sw $a2, 0x40($v0) -/* BE1F0 80127EA0 AC490044 */ sw $t1, 0x44($v0) -/* BE1F4 80127EA4 AEE30000 */ sw $v1, 0x0($s7) -/* BE1F8 80127EA8 3C03802F */ lui $v1, %hi(ui_msg_sign_side_left_png) -/* BE1FC 80127EAC 24632C70 */ addiu $v1, $v1, %lo(ui_msg_sign_side_left_png) -/* BE200 80127EB0 AC4B0048 */ sw $t3, 0x48($v0) -/* BE204 80127EB4 AC43004C */ sw $v1, 0x4C($v0) -/* BE208 80127EB8 24430058 */ addiu $v1, $v0, 0x58 -/* BE20C 80127EBC AEE30000 */ sw $v1, 0x0($s7) -/* BE210 80127EC0 24430060 */ addiu $v1, $v0, 0x60 -/* BE214 80127EC4 3C18E600 */ lui $t8, (0xE6000000 >> 16) -/* BE218 80127EC8 AC4A0050 */ sw $t2, 0x50($v0) -/* BE21C 80127ECC AC4D0054 */ sw $t5, 0x54($v0) -/* BE220 80127ED0 AEE30000 */ sw $v1, 0x0($s7) -/* BE224 80127ED4 24430068 */ addiu $v1, $v0, 0x68 -/* BE228 80127ED8 3C19F400 */ lui $t9, (0xF4000000 >> 16) -/* BE22C 80127EDC AC580058 */ sw $t8, 0x58($v0) -/* BE230 80127EE0 AC40005C */ sw $zero, 0x5C($v0) -/* BE234 80127EE4 AEE30000 */ sw $v1, 0x0($s7) -/* BE238 80127EE8 24430070 */ addiu $v1, $v0, 0x70 -/* BE23C 80127EEC 3C18E700 */ lui $t8, (0xE7000000 >> 16) -/* BE240 80127EF0 AC590060 */ sw $t9, 0x60($v0) -/* BE244 80127EF4 AC4E0064 */ sw $t6, 0x64($v0) -/* BE248 80127EF8 AEE30000 */ sw $v1, 0x0($s7) -/* BE24C 80127EFC 24430078 */ addiu $v1, $v0, 0x78 -/* BE250 80127F00 AC580068 */ sw $t8, 0x68($v0) -/* BE254 80127F04 AC40006C */ sw $zero, 0x6C($v0) -/* BE258 80127F08 AEE30000 */ sw $v1, 0x0($s7) -/* BE25C 80127F0C 24430080 */ addiu $v1, $v0, 0x80 -/* BE260 80127F10 AC4C0070 */ sw $t4, 0x70($v0) -/* BE264 80127F14 AC4F0074 */ sw $t7, 0x74($v0) -/* BE268 80127F18 AEE30000 */ sw $v1, 0x0($s7) -/* BE26C 80127F1C AC480078 */ sw $t0, 0x78($v0) -/* BE270 80127F20 AC50007C */ sw $s0, 0x7C($v0) -/* BE274 80127F24 97C40516 */ lhu $a0, 0x516($fp) -/* BE278 80127F28 24430088 */ addiu $v1, $v0, 0x88 -/* BE27C 80127F2C AEE30000 */ sw $v1, 0x0($s7) -/* BE280 80127F30 24430090 */ addiu $v1, $v0, 0x90 -/* BE284 80127F34 AC510084 */ sw $s1, 0x84($v0) -/* BE288 80127F38 AEE30000 */ sw $v1, 0x0($s7) -/* BE28C 80127F3C 24430098 */ addiu $v1, $v0, 0x98 -/* BE290 80127F40 AC470088 */ sw $a3, 0x88($v0) -/* BE294 80127F44 AC40008C */ sw $zero, 0x8C($v0) -/* BE298 80127F48 AEE30000 */ sw $v1, 0x0($s7) -/* BE29C 80127F4C 244300A0 */ addiu $v1, $v0, 0xA0 -/* BE2A0 80127F50 AC460090 */ sw $a2, 0x90($v0) -/* BE2A4 80127F54 AC490094 */ sw $t1, 0x94($v0) -/* BE2A8 80127F58 AEE30000 */ sw $v1, 0x0($s7) -/* BE2AC 80127F5C 3C03802F */ lui $v1, %hi(ui_msg_sign_side_right_png) -/* BE2B0 80127F60 24632DB0 */ addiu $v1, $v1, %lo(ui_msg_sign_side_right_png) -/* BE2B4 80127F64 AC43009C */ sw $v1, 0x9C($v0) -/* BE2B8 80127F68 244300A8 */ addiu $v1, $v0, 0xA8 -/* BE2BC 80127F6C AC4B0098 */ sw $t3, 0x98($v0) -/* BE2C0 80127F70 AEE30000 */ sw $v1, 0x0($s7) -/* BE2C4 80127F74 3C03E409 */ lui $v1, (0xE4090000 >> 16) -/* BE2C8 80127F78 3C05E447 */ lui $a1, (0xE4470000 >> 16) -/* BE2CC 80127F7C AC4A00A0 */ sw $t2, 0xA0($v0) -/* BE2D0 80127F80 2484000C */ addiu $a0, $a0, 0xC -/* BE2D4 80127F84 00042080 */ sll $a0, $a0, 2 -/* BE2D8 80127F88 30840FFF */ andi $a0, $a0, 0xFFF -/* BE2DC 80127F8C 00832025 */ or $a0, $a0, $v1 -/* BE2E0 80127F90 244300B0 */ addiu $v1, $v0, 0xB0 -/* BE2E4 80127F94 AC440080 */ sw $a0, 0x80($v0) -/* BE2E8 80127F98 AC4D00A4 */ sw $t5, 0xA4($v0) -/* BE2EC 80127F9C 3C19E600 */ lui $t9, (0xE6000000 >> 16) -/* BE2F0 80127FA0 AEE30000 */ sw $v1, 0x0($s7) -/* BE2F4 80127FA4 244300B8 */ addiu $v1, $v0, 0xB8 -/* BE2F8 80127FA8 3C18F400 */ lui $t8, (0xF4000000 >> 16) -/* BE2FC 80127FAC AC5900A8 */ sw $t9, 0xA8($v0) -/* BE300 80127FB0 AC4000AC */ sw $zero, 0xAC($v0) -/* BE304 80127FB4 AEE30000 */ sw $v1, 0x0($s7) -/* BE308 80127FB8 244300C0 */ addiu $v1, $v0, 0xC0 -/* BE30C 80127FBC 3C19E700 */ lui $t9, (0xE7000000 >> 16) -/* BE310 80127FC0 AC5800B0 */ sw $t8, 0xB0($v0) -/* BE314 80127FC4 AC4E00B4 */ sw $t6, 0xB4($v0) -/* BE318 80127FC8 AEE30000 */ sw $v1, 0x0($s7) -/* BE31C 80127FCC 244300C8 */ addiu $v1, $v0, 0xC8 -/* BE320 80127FD0 AC5900B8 */ sw $t9, 0xB8($v0) -/* BE324 80127FD4 AC4000BC */ sw $zero, 0xBC($v0) -/* BE328 80127FD8 AEE30000 */ sw $v1, 0x0($s7) -/* BE32C 80127FDC 244300D0 */ addiu $v1, $v0, 0xD0 -/* BE330 80127FE0 AC4C00C0 */ sw $t4, 0xC0($v0) -/* BE334 80127FE4 AC4F00C4 */ sw $t7, 0xC4($v0) -/* BE338 80127FE8 AEE30000 */ sw $v1, 0x0($s7) -/* BE33C 80127FEC AC4800C8 */ sw $t0, 0xC8($v0) -/* BE340 80127FF0 AC5000CC */ sw $s0, 0xCC($v0) -/* BE344 80127FF4 97C40516 */ lhu $a0, 0x516($fp) -/* BE348 80127FF8 244300D8 */ addiu $v1, $v0, 0xD8 -/* BE34C 80127FFC AEE30000 */ sw $v1, 0x0($s7) -/* BE350 80128000 244300E0 */ addiu $v1, $v0, 0xE0 -/* BE354 80128004 AC5600D4 */ sw $s6, 0xD4($v0) -/* BE358 80128008 AEE30000 */ sw $v1, 0x0($s7) -/* BE35C 8012800C 244300E8 */ addiu $v1, $v0, 0xE8 -/* BE360 80128010 AC4700D8 */ sw $a3, 0xD8($v0) -/* BE364 80128014 AC4000DC */ sw $zero, 0xDC($v0) -/* BE368 80128018 AEE30000 */ sw $v1, 0x0($s7) -/* BE36C 8012801C 244300F0 */ addiu $v1, $v0, 0xF0 -/* BE370 80128020 AC4600E0 */ sw $a2, 0xE0($v0) -/* BE374 80128024 AC4900E4 */ sw $t1, 0xE4($v0) -/* BE378 80128028 AEE30000 */ sw $v1, 0x0($s7) -/* BE37C 8012802C 8FB800C4 */ lw $t8, 0xC4($sp) -/* BE380 80128030 3C03802F */ lui $v1, %hi(ui_msg_sign_side_bottom_png) -/* BE384 80128034 24632EF0 */ addiu $v1, $v1, %lo(ui_msg_sign_side_bottom_png) -/* BE388 80128038 AC5800E8 */ sw $t8, 0xE8($v0) -/* BE38C 8012803C AC4300EC */ sw $v1, 0xEC($v0) -/* BE390 80128040 244300F8 */ addiu $v1, $v0, 0xF8 -/* BE394 80128044 AEE30000 */ sw $v1, 0x0($s7) -/* BE398 80128048 24430100 */ addiu $v1, $v0, 0x100 -/* BE39C 8012804C 2484000C */ addiu $a0, $a0, 0xC -/* BE3A0 80128050 00042080 */ sll $a0, $a0, 2 -/* BE3A4 80128054 8FB900C8 */ lw $t9, 0xC8($sp) -/* BE3A8 80128058 30840FFF */ andi $a0, $a0, 0xFFF -/* BE3AC 8012805C AC5900F0 */ sw $t9, 0xF0($v0) -/* BE3B0 80128060 8FB800CC */ lw $t8, 0xCC($sp) -/* BE3B4 80128064 3C19E600 */ lui $t9, (0xE6000000 >> 16) -/* BE3B8 80128068 AC5800F4 */ sw $t8, 0xF4($v0) -/* BE3BC 8012806C AEE30000 */ sw $v1, 0x0($s7) -/* BE3C0 80128070 3C03E44B */ lui $v1, (0xE44B0000 >> 16) -/* BE3C4 80128074 00832025 */ or $a0, $a0, $v1 -/* BE3C8 80128078 24430108 */ addiu $v1, $v0, 0x108 -/* BE3CC 8012807C AC4400D0 */ sw $a0, 0xD0($v0) -/* BE3D0 80128080 AC4000FC */ sw $zero, 0xFC($v0) -/* BE3D4 80128084 3C18F400 */ lui $t8, (0xF4000000 >> 16) -/* BE3D8 80128088 AC5900F8 */ sw $t9, 0xF8($v0) -/* BE3DC 8012808C AEE30000 */ sw $v1, 0x0($s7) -/* BE3E0 80128090 24430110 */ addiu $v1, $v0, 0x110 -/* BE3E4 80128094 3C19E700 */ lui $t9, (0xE7000000 >> 16) -/* BE3E8 80128098 AC580100 */ sw $t8, 0x100($v0) -/* BE3EC 8012809C AC520104 */ sw $s2, 0x104($v0) -/* BE3F0 801280A0 AEE30000 */ sw $v1, 0x0($s7) -/* BE3F4 801280A4 24430118 */ addiu $v1, $v0, 0x118 -/* BE3F8 801280A8 AC590108 */ sw $t9, 0x108($v0) -/* BE3FC 801280AC AC40010C */ sw $zero, 0x10C($v0) -/* BE400 801280B0 AEE30000 */ sw $v1, 0x0($s7) -/* BE404 801280B4 24430120 */ addiu $v1, $v0, 0x120 -/* BE408 801280B8 AC540110 */ sw $s4, 0x110($v0) -/* BE40C 801280BC AC530114 */ sw $s3, 0x114($v0) -/* BE410 801280C0 AEE30000 */ sw $v1, 0x0($s7) -/* BE414 801280C4 24430128 */ addiu $v1, $v0, 0x128 -/* BE418 801280C8 AC480118 */ sw $t0, 0x118($v0) -/* BE41C 801280CC AC55011C */ sw $s5, 0x11C($v0) -/* BE420 801280D0 AEE30000 */ sw $v1, 0x0($s7) -/* BE424 801280D4 24430130 */ addiu $v1, $v0, 0x130 -/* BE428 801280D8 AEE30000 */ sw $v1, 0x0($s7) -/* BE42C 801280DC 24430138 */ addiu $v1, $v0, 0x138 -/* BE430 801280E0 AEE30000 */ sw $v1, 0x0($s7) -/* BE434 801280E4 24430140 */ addiu $v1, $v0, 0x140 -/* BE438 801280E8 AEE30000 */ sw $v1, 0x0($s7) -/* BE43C 801280EC 24430148 */ addiu $v1, $v0, 0x148 -/* BE440 801280F0 AEE30000 */ sw $v1, 0x0($s7) -/* BE444 801280F4 97C30516 */ lhu $v1, 0x516($fp) -/* BE448 801280F8 24440150 */ addiu $a0, $v0, 0x150 -/* BE44C 801280FC AEE40000 */ sw $a0, 0x0($s7) -/* BE450 80128100 2463001C */ addiu $v1, $v1, 0x1C -/* BE454 80128104 00031880 */ sll $v1, $v1, 2 -/* BE458 80128108 30630FFF */ andi $v1, $v1, 0xFFF -/* BE45C 8012810C 00651825 */ or $v1, $v1, $a1 -/* BE460 80128110 AC430120 */ sw $v1, 0x120($v0) -/* BE464 80128114 97C40516 */ lhu $a0, 0x516($fp) -/* BE468 80128118 24430158 */ addiu $v1, $v0, 0x158 -/* BE46C 8012811C AEE30000 */ sw $v1, 0x0($s7) -/* BE470 80128120 AC470128 */ sw $a3, 0x128($v0) -/* BE474 80128124 AC40012C */ sw $zero, 0x12C($v0) -/* BE478 80128128 AC460130 */ sw $a2, 0x130($v0) -/* BE47C 8012812C AC490134 */ sw $t1, 0x134($v0) -/* BE480 80128130 8FB800D0 */ lw $t8, 0xD0($sp) -/* BE484 80128134 3C03802F */ lui $v1, %hi(ui_msg_sign_fill_png) -/* BE488 80128138 24632FF0 */ addiu $v1, $v1, %lo(ui_msg_sign_fill_png) -/* BE48C 8012813C AC580138 */ sw $t8, 0x138($v0) -/* BE490 80128140 3C18E600 */ lui $t8, (0xE6000000 >> 16) -/* BE494 80128144 2484000C */ addiu $a0, $a0, 0xC -/* BE498 80128148 00042080 */ sll $a0, $a0, 2 -/* BE49C 8012814C 30840FFF */ andi $a0, $a0, 0xFFF -/* BE4A0 80128150 AC43013C */ sw $v1, 0x13C($v0) -/* BE4A4 80128154 3C030009 */ lui $v1, (0x90000 >> 16) -/* BE4A8 80128158 00832025 */ or $a0, $a0, $v1 -/* BE4AC 8012815C AC4A0140 */ sw $t2, 0x140($v0) -/* BE4B0 80128160 8FB900E0 */ lw $t9, 0xE0($sp) -/* BE4B4 80128164 24430160 */ addiu $v1, $v0, 0x160 -/* BE4B8 80128168 AC590144 */ sw $t9, 0x144($v0) -/* BE4BC 8012816C AC40014C */ sw $zero, 0x14C($v0) -/* BE4C0 80128170 AC440124 */ sw $a0, 0x124($v0) -/* BE4C4 80128174 3C19F400 */ lui $t9, (0xF4000000 >> 16) -/* BE4C8 80128178 AC580148 */ sw $t8, 0x148($v0) -/* BE4CC 8012817C AC590150 */ sw $t9, 0x150($v0) -/* BE4D0 80128180 8FB800E4 */ lw $t8, 0xE4($sp) -/* BE4D4 80128184 3C19E700 */ lui $t9, (0xE7000000 >> 16) -/* BE4D8 80128188 AC580154 */ sw $t8, 0x154($v0) -/* BE4DC 8012818C AEE30000 */ sw $v1, 0x0($s7) -/* BE4E0 80128190 24430168 */ addiu $v1, $v0, 0x168 -/* BE4E4 80128194 AC590158 */ sw $t9, 0x158($v0) -/* BE4E8 80128198 AC40015C */ sw $zero, 0x15C($v0) -/* BE4EC 8012819C AEE30000 */ sw $v1, 0x0($s7) -/* BE4F0 801281A0 3403C030 */ ori $v1, $zero, 0xC030 -/* BE4F4 801281A4 AC430164 */ sw $v1, 0x164($v0) -/* BE4F8 801281A8 24430170 */ addiu $v1, $v0, 0x170 -/* BE4FC 801281AC AC4C0160 */ sw $t4, 0x160($v0) -/* BE500 801281B0 AEE30000 */ sw $v1, 0x0($s7) -/* BE504 801281B4 AC480168 */ sw $t0, 0x168($v0) -/* BE508 801281B8 8FB800D4 */ lw $t8, 0xD4($sp) -/* BE50C 801281BC AC58016C */ sw $t8, 0x16C($v0) -/* BE510 801281C0 97C40516 */ lhu $a0, 0x516($fp) -/* BE514 801281C4 24430178 */ addiu $v1, $v0, 0x178 -/* BE518 801281C8 AEE30000 */ sw $v1, 0x0($s7) -/* BE51C 801281CC 8FB900D8 */ lw $t9, 0xD8($sp) -/* BE520 801281D0 24430180 */ addiu $v1, $v0, 0x180 -/* BE524 801281D4 AC590174 */ sw $t9, 0x174($v0) -/* BE528 801281D8 AEE30000 */ sw $v1, 0x0($s7) -/* BE52C 801281DC 24430188 */ addiu $v1, $v0, 0x188 -/* BE530 801281E0 2484000C */ addiu $a0, $a0, 0xC -/* BE534 801281E4 00042080 */ sll $a0, $a0, 2 -/* BE538 801281E8 30840FFF */ andi $a0, $a0, 0xFFF -/* BE53C 801281EC 00852025 */ or $a0, $a0, $a1 -/* BE540 801281F0 AC470178 */ sw $a3, 0x178($v0) -/* BE544 801281F4 AC40017C */ sw $zero, 0x17C($v0) -/* BE548 801281F8 AEE30000 */ sw $v1, 0x0($s7) -/* BE54C 801281FC AC460180 */ sw $a2, 0x180($v0) -/* BE550 80128200 AC490184 */ sw $t1, 0x184($v0) -/* BE554 80128204 0804A17B */ j .LPAL_801285EC -/* BE558 80128208 AC440170 */ sw $a0, 0x170($v0) -.LPAL_8012820C: -/* BE55C 8012820C 0000902D */ daddu $s2, $zero, $zero -/* BE560 80128210 240400FF */ addiu $a0, $zero, 0xFF -/* BE564 80128214 24050020 */ addiu $a1, $zero, 0x20 -/* BE568 80128218 2402000C */ addiu $v0, $zero, 0xC -/* BE56C 8012821C 00A0302D */ daddu $a2, $a1, $zero -/* BE570 80128220 3C078015 */ lui $a3, %hi(D_80154934) -/* BE574 80128224 8CE74934 */ lw $a3, %lo(D_80154934)($a3) -/* BE578 80128228 2411002B */ addiu $s1, $zero, 0x2B -/* BE57C 8012822C A4E20046 */ sh $v0, 0x46($a3) -/* BE580 80128230 24020005 */ addiu $v0, $zero, 0x5 -/* BE584 80128234 A4E20048 */ sh $v0, 0x48($a3) -/* BE588 80128238 24020028 */ addiu $v0, $zero, 0x28 -/* BE58C 8012823C A7C2045A */ sh $v0, 0x45A($fp) -/* BE590 80128240 2402001C */ addiu $v0, $zero, 0x1C -/* BE594 80128244 A7C2045C */ sh $v0, 0x45C($fp) -/* BE598 80128248 2402002D */ addiu $v0, $zero, 0x2D -/* BE59C 8012824C ACE20000 */ sw $v0, 0x0($a3) -/* BE5A0 80128250 00A0102D */ daddu $v0, $a1, $zero -/* BE5A4 80128254 ACE20008 */ sw $v0, 0x8($a3) -/* BE5A8 80128258 24020110 */ addiu $v0, $zero, 0x110 -/* BE5AC 8012825C ACE20004 */ sw $v0, 0x4($a3) -/* BE5B0 80128260 94E30006 */ lhu $v1, 0x6($a3) -/* BE5B4 80128264 24020051 */ addiu $v0, $zero, 0x51 -/* BE5B8 80128268 ACE2000C */ sw $v0, 0xC($a3) -/* BE5BC 8012826C 2463FFEB */ addiu $v1, $v1, -0x15 -/* BE5C0 80128270 A7C30482 */ sh $v1, 0x482($fp) -/* BE5C4 80128274 94E2000E */ lhu $v0, 0xE($a3) -/* BE5C8 80128278 241000EA */ addiu $s0, $zero, 0xEA -/* BE5CC 8012827C 2442FFEC */ addiu $v0, $v0, -0x14 -/* BE5D0 80128280 A7C20484 */ sh $v0, 0x484($fp) -/* BE5D4 80128284 A0E0002B */ sb $zero, 0x2B($a3) -/* BE5D8 80128288 3C028015 */ lui $v0, %hi(D_80154934) -/* BE5DC 8012828C 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BE5E0 80128290 0000382D */ daddu $a3, $zero, $zero -/* BE5E4 80128294 A440004A */ sh $zero, 0x4A($v0) -/* BE5E8 80128298 2402001B */ addiu $v0, $zero, 0x1B -/* BE5EC 8012829C 24180001 */ addiu $t8, $zero, 0x1 -/* BE5F0 801282A0 AFB10010 */ sw $s1, 0x10($sp) -/* BE5F4 801282A4 AFA20014 */ sw $v0, 0x14($sp) -/* BE5F8 801282A8 AFB00018 */ sw $s0, 0x18($sp) -/* BE5FC 801282AC 0C04AD52 */ jal msg_draw_prim_rect -/* BE600 801282B0 AFB8001C */ sw $t8, 0x1C($sp) -/* BE604 801282B4 24040020 */ addiu $a0, $zero, 0x20 -/* BE608 801282B8 240500FF */ addiu $a1, $zero, 0xFF -/* BE60C 801282BC 0080302D */ daddu $a2, $a0, $zero -/* BE610 801282C0 0000382D */ daddu $a3, $zero, $zero -/* BE614 801282C4 24020056 */ addiu $v0, $zero, 0x56 -/* BE618 801282C8 24190001 */ addiu $t9, $zero, 0x1 -/* BE61C 801282CC AFB10010 */ sw $s1, 0x10($sp) -/* BE620 801282D0 AFA20014 */ sw $v0, 0x14($sp) -/* BE624 801282D4 AFB00018 */ sw $s0, 0x18($sp) -/* BE628 801282D8 0C04AD52 */ jal msg_draw_prim_rect -/* BE62C 801282DC AFB9001C */ sw $t9, 0x1C($sp) -/* BE630 801282E0 93C204F8 */ lbu $v0, 0x4F8($fp) -/* BE634 801282E4 24180002 */ addiu $t8, $zero, 0x2 -/* BE638 801282E8 14580010 */ bne $v0, $t8, .LPAL_8012832C -/* BE63C 801282EC 241300FF */ addiu $s3, $zero, 0xFF -/* BE640 801282F0 93C20509 */ lbu $v0, 0x509($fp) -/* BE644 801282F4 24190003 */ addiu $t9, $zero, 0x3 -/* BE648 801282F8 00021980 */ sll $v1, $v0, 6 -/* BE64C 801282FC 24730050 */ addiu $s3, $v1, 0x50 -/* BE650 80128300 326300FF */ andi $v1, $s3, 0xFF -/* BE654 80128304 2463FFD0 */ addiu $v1, $v1, -0x30 -/* BE658 80128308 24420001 */ addiu $v0, $v0, 0x1 -/* BE65C 8012830C A7A3008E */ sh $v1, 0x8E($sp) -/* BE660 80128310 A3C20509 */ sb $v0, 0x509($fp) -/* BE664 80128314 304200FF */ andi $v0, $v0, 0xFF -/* BE668 80128318 14590018 */ bne $v0, $t9, .LPAL_8012837C -/* BE66C 8012831C 24120001 */ addiu $s2, $zero, 0x1 -/* BE670 80128320 24020004 */ addiu $v0, $zero, 0x4 -/* BE674 80128324 0804A0DF */ j .LPAL_8012837C -/* BE678 80128328 A3C204F8 */ sb $v0, 0x4F8($fp) -.LPAL_8012832C: -/* BE67C 8012832C 24180003 */ addiu $t8, $zero, 0x3 -/* BE680 80128330 14580013 */ bne $v0, $t8, .LPAL_80128380 -/* BE684 80128334 24040028 */ addiu $a0, $zero, 0x28 -/* BE688 80128338 93C40512 */ lbu $a0, 0x512($fp) -/* BE68C 8012833C 2403FFD0 */ addiu $v1, $zero, -0x30 -/* BE690 80128340 00041040 */ sll $v0, $a0, 1 -/* BE694 80128344 00441021 */ addu $v0, $v0, $a0 -/* BE698 80128348 00021100 */ sll $v0, $v0, 4 -/* BE69C 8012834C 00629823 */ subu $s3, $v1, $v0 -/* BE6A0 80128350 326200FF */ andi $v0, $s3, 0xFF -/* BE6A4 80128354 00431021 */ addu $v0, $v0, $v1 -/* BE6A8 80128358 24840001 */ addiu $a0, $a0, 0x1 -/* BE6AC 8012835C A7A2008E */ sh $v0, 0x8E($sp) -/* BE6B0 80128360 A3C40512 */ sb $a0, 0x512($fp) -/* BE6B4 80128364 308400FF */ andi $a0, $a0, 0xFF -/* BE6B8 80128368 14980004 */ bne $a0, $t8, .LPAL_8012837C -/* BE6BC 8012836C 24120001 */ addiu $s2, $zero, 0x1 -/* BE6C0 80128370 8FC204FC */ lw $v0, 0x4FC($fp) -/* BE6C4 80128374 34420001 */ ori $v0, $v0, 0x1 -/* BE6C8 80128378 AFC204FC */ sw $v0, 0x4FC($fp) -.LPAL_8012837C: -/* BE6CC 8012837C 24040028 */ addiu $a0, $zero, 0x28 -.LPAL_80128380: -/* BE6D0 80128380 2405001C */ addiu $a1, $zero, 0x1C -/* BE6D4 80128384 240600F0 */ addiu $a2, $zero, 0xF0 -/* BE6D8 80128388 24190006 */ addiu $t9, $zero, 0x6 -/* BE6DC 8012838C 3C028015 */ lui $v0, %hi(D_80154934) -/* BE6E0 80128390 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BE6E4 80128394 2407003A */ addiu $a3, $zero, 0x3A -/* BE6E8 80128398 AFB90010 */ sw $t9, 0x10($sp) -/* BE6EC 8012839C 9042002B */ lbu $v0, 0x2B($v0) -/* BE6F0 801283A0 327000FF */ andi $s0, $s3, 0xFF -/* BE6F4 801283A4 AFB20018 */ sw $s2, 0x18($sp) -/* BE6F8 801283A8 AFB0001C */ sw $s0, 0x1C($sp) -/* BE6FC 801283AC AFB00020 */ sw $s0, 0x20($sp) -/* BE700 801283B0 0C04B1BE */ jal msg_draw_frame -/* BE704 801283B4 AFA20014 */ sw $v0, 0x14($sp) -/* BE708 801283B8 24050096 */ addiu $a1, $zero, 0x96 -/* BE70C 801283BC 24060069 */ addiu $a2, $zero, 0x69 -/* BE710 801283C0 AFA00010 */ sw $zero, 0x10($sp) -/* BE714 801283C4 8FC30548 */ lw $v1, 0x548($fp) -/* BE718 801283C8 24020055 */ addiu $v0, $zero, 0x55 -/* BE71C 801283CC AFA20018 */ sw $v0, 0x18($sp) -/* BE720 801283D0 24020061 */ addiu $v0, $zero, 0x61 -/* BE724 801283D4 2418000A */ addiu $t8, $zero, 0xA -/* BE728 801283D8 0300C82D */ daddu $t9, $t8, $zero -/* BE72C 801283DC 2412012C */ addiu $s2, $zero, 0x12C -/* BE730 801283E0 241100DC */ addiu $s1, $zero, 0xDC -/* BE734 801283E4 AFA2001C */ sw $v0, 0x1C($sp) -/* BE738 801283E8 AFB80020 */ sw $t8, 0x20($sp) -/* BE73C 801283EC AFB90024 */ sw $t9, 0x24($sp) -/* BE740 801283F0 AFB20028 */ sw $s2, 0x28($sp) -/* BE744 801283F4 AFB1002C */ sw $s1, 0x2C($sp) -/* BE748 801283F8 AFB00030 */ sw $s0, 0x30($sp) -/* BE74C 801283FC AFA30014 */ sw $v1, 0x14($sp) -/* BE750 80128400 8FC40544 */ lw $a0, 0x544($fp) -/* BE754 80128404 0C04B550 */ jal draw_ci_image_with_clipping -/* BE758 80128408 24070002 */ addiu $a3, $zero, 0x2 -/* BE75C 8012840C 24050046 */ addiu $a1, $zero, 0x46 -/* BE760 80128410 2406005F */ addiu $a2, $zero, 0x5F -/* BE764 80128414 24180001 */ addiu $t8, $zero, 0x1 -/* BE768 80128418 AFB80010 */ sw $t8, 0x10($sp) -/* BE76C 8012841C 8FC30550 */ lw $v1, 0x550($fp) -/* BE770 80128420 240200A0 */ addiu $v0, $zero, 0xA0 -/* BE774 80128424 AFA20018 */ sw $v0, 0x18($sp) -/* BE778 80128428 24020066 */ addiu $v0, $zero, 0x66 -/* BE77C 8012842C 2419000A */ addiu $t9, $zero, 0xA -/* BE780 80128430 0320C02D */ daddu $t8, $t9, $zero -/* BE784 80128434 AFA2001C */ sw $v0, 0x1C($sp) -/* BE788 80128438 AFB90020 */ sw $t9, 0x20($sp) -/* BE78C 8012843C AFB80024 */ sw $t8, 0x24($sp) -/* BE790 80128440 AFB20028 */ sw $s2, 0x28($sp) -/* BE794 80128444 AFB1002C */ sw $s1, 0x2C($sp) -/* BE798 80128448 AFB00030 */ sw $s0, 0x30($sp) -/* BE79C 8012844C AFA30014 */ sw $v1, 0x14($sp) -/* BE7A0 80128450 8FC4054C */ lw $a0, 0x54C($fp) -/* BE7A4 80128454 0C04B550 */ jal draw_ci_image_with_clipping -/* BE7A8 80128458 24070002 */ addiu $a3, $zero, 0x2 -/* BE7AC 8012845C 0C04ABA0 */ jal msg_reset_gfx_state -/* BE7B0 80128460 327300FF */ andi $s3, $s3, 0xFF -/* BE7B4 80128464 3C038015 */ lui $v1, %hi(D_80154934) -/* BE7B8 80128468 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BE7BC 8012846C 8C620020 */ lw $v0, 0x20($v1) -/* BE7C0 80128470 0804A59C */ j .LPAL_80129670 -/* BE7C4 80128474 A7B300AE */ sh $s3, 0xAE($sp) -.LPAL_80128478: -/* BE7C8 80128478 3C038015 */ lui $v1, %hi(D_80154934) -/* BE7CC 8012847C 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BE7D0 80128480 24020010 */ addiu $v0, $zero, 0x10 -/* BE7D4 80128484 94640034 */ lhu $a0, 0x34($v1) -/* BE7D8 80128488 24190004 */ addiu $t9, $zero, 0x4 -/* BE7DC 8012848C A4620046 */ sh $v0, 0x46($v1) -/* BE7E0 80128490 2402013F */ addiu $v0, $zero, 0x13F -/* BE7E4 80128494 AC620004 */ sw $v0, 0x4($v1) -/* BE7E8 80128498 240200EF */ addiu $v0, $zero, 0xEF -/* BE7EC 8012849C A4790048 */ sh $t9, 0x48($v1) -/* BE7F0 801284A0 AC600000 */ sw $zero, 0x0($v1) -/* BE7F4 801284A4 AC600008 */ sw $zero, 0x8($v1) -/* BE7F8 801284A8 AC62000C */ sw $v0, 0xC($v1) -/* BE7FC 801284AC A460004A */ sh $zero, 0x4A($v1) -/* BE800 801284B0 34840010 */ ori $a0, $a0, 0x10 -/* BE804 801284B4 A4640034 */ sh $a0, 0x34($v1) -/* BE808 801284B8 93C204F8 */ lbu $v0, 0x4F8($fp) -/* BE80C 801284BC 2442FFF3 */ addiu $v0, $v0, -0xD -/* BE810 801284C0 2C420002 */ sltiu $v0, $v0, 0x2 -/* BE814 801284C4 10400004 */ beqz $v0, .LPAL_801284D8 -/* BE818 801284C8 0000202D */ daddu $a0, $zero, $zero -/* BE81C 801284CC A7C0045A */ sh $zero, 0x45A($fp) -/* BE820 801284D0 0804A17B */ j .LPAL_801285EC -/* BE824 801284D4 A7C0045C */ sh $zero, 0x45C($fp) -.LPAL_801284D8: -/* BE828 801284D8 0080282D */ daddu $a1, $a0, $zero -/* BE82C 801284DC 97C30514 */ lhu $v1, 0x514($fp) -/* BE830 801284E0 240200A0 */ addiu $v0, $zero, 0xA0 -/* BE834 801284E4 00031842 */ srl $v1, $v1, 1 -/* BE838 801284E8 00431023 */ subu $v0, $v0, $v1 -/* BE83C 801284EC A7C2045A */ sh $v0, 0x45A($fp) -/* BE840 801284F0 87C6045A */ lh $a2, 0x45A($fp) -/* BE844 801284F4 24020038 */ addiu $v0, $zero, 0x38 -/* BE848 801284F8 A7C2045C */ sh $v0, 0x45C($fp) -/* BE84C 801284FC AFA00010 */ sw $zero, 0x10($sp) -/* BE850 80128500 97C20514 */ lhu $v0, 0x514($fp) -/* BE854 80128504 24070038 */ addiu $a3, $zero, 0x38 -/* BE858 80128508 AFA20014 */ sw $v0, 0x14($sp) -/* BE85C 8012850C 97C30516 */ lhu $v1, 0x516($fp) -/* BE860 80128510 241800FF */ addiu $t8, $zero, 0xFF -/* BE864 80128514 24020140 */ addiu $v0, $zero, 0x140 -/* BE868 80128518 AFA20044 */ sw $v0, 0x44($sp) -/* BE86C 8012851C 240200F0 */ addiu $v0, $zero, 0xF0 -/* BE870 80128520 AFB8001C */ sw $t8, 0x1C($sp) -/* BE874 80128524 AFA00020 */ sw $zero, 0x20($sp) -/* BE878 80128528 AFA00024 */ sw $zero, 0x24($sp) -/* BE87C 8012852C AFA00028 */ sw $zero, 0x28($sp) -/* BE880 80128530 AFA0002C */ sw $zero, 0x2C($sp) -/* BE884 80128534 AFA00030 */ sw $zero, 0x30($sp) -/* BE888 80128538 AFA00034 */ sw $zero, 0x34($sp) -/* BE88C 8012853C AFA00038 */ sw $zero, 0x38($sp) -/* BE890 80128540 AFA0003C */ sw $zero, 0x3C($sp) -/* BE894 80128544 AFA00040 */ sw $zero, 0x40($sp) -/* BE898 80128548 AFA20048 */ sw $v0, 0x48($sp) -/* BE89C 8012854C AFA0004C */ sw $zero, 0x4C($sp) -/* BE8A0 80128550 0C03C5C4 */ jal draw_box -/* BE8A4 80128554 AFA30018 */ sw $v1, 0x18($sp) -/* BE8A8 80128558 0804A17B */ j .LPAL_801285EC -/* BE8AC 8012855C 00000000 */ nop -.LPAL_80128560: -/* BE8B0 80128560 3C048015 */ lui $a0, %hi(D_80154934) -/* BE8B4 80128564 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BE8B8 80128568 2402003C */ addiu $v0, $zero, 0x3C -/* BE8BC 8012856C A7C2045A */ sh $v0, 0x45A($fp) -/* BE8C0 80128570 2402006E */ addiu $v0, $zero, 0x6E -/* BE8C4 80128574 A7C2045C */ sh $v0, 0x45C($fp) -/* BE8C8 80128578 240200C8 */ addiu $v0, $zero, 0xC8 -/* BE8CC 8012857C A7C20514 */ sh $v0, 0x514($fp) -/* BE8D0 80128580 24020032 */ addiu $v0, $zero, 0x32 -/* BE8D4 80128584 A7C20516 */ sh $v0, 0x516($fp) -/* BE8D8 80128588 2402FFFE */ addiu $v0, $zero, -0x2 -/* BE8DC 8012858C A4800046 */ sh $zero, 0x46($a0) -/* BE8E0 80128590 A4820048 */ sh $v0, 0x48($a0) -/* BE8E4 80128594 87C2045A */ lh $v0, 0x45A($fp) -/* BE8E8 80128598 AC820000 */ sw $v0, 0x0($a0) -/* BE8EC 8012859C 87C2045C */ lh $v0, 0x45C($fp) -/* BE8F0 801285A0 AC820008 */ sw $v0, 0x8($a0) -/* BE8F4 801285A4 87C2045A */ lh $v0, 0x45A($fp) -/* BE8F8 801285A8 97C30514 */ lhu $v1, 0x514($fp) -/* BE8FC 801285AC 00431021 */ addu $v0, $v0, $v1 -/* BE900 801285B0 AC820004 */ sw $v0, 0x4($a0) -/* BE904 801285B4 87C2045C */ lh $v0, 0x45C($fp) -/* BE908 801285B8 97C30516 */ lhu $v1, 0x516($fp) -/* BE90C 801285BC 00431021 */ addu $v0, $v0, $v1 -/* BE910 801285C0 AC82000C */ sw $v0, 0xC($a0) -/* BE914 801285C4 97C3045A */ lhu $v1, 0x45A($fp) -/* BE918 801285C8 97C20514 */ lhu $v0, 0x514($fp) -/* BE91C 801285CC 97C40516 */ lhu $a0, 0x516($fp) -/* BE920 801285D0 00621821 */ addu $v1, $v1, $v0 -/* BE924 801285D4 97C2045C */ lhu $v0, 0x45C($fp) -/* BE928 801285D8 2463FFF6 */ addiu $v1, $v1, -0xA -/* BE92C 801285DC A7C30482 */ sh $v1, 0x482($fp) -/* BE930 801285E0 00441021 */ addu $v0, $v0, $a0 -/* BE934 801285E4 2442FFF6 */ addiu $v0, $v0, -0xA -/* BE938 801285E8 A7C20484 */ sh $v0, 0x484($fp) -.LPAL_801285EC: -/* BE93C 801285EC 0C04ABA0 */ jal msg_reset_gfx_state -/* BE940 801285F0 00000000 */ nop -/* BE944 801285F4 0804A599 */ j .LPAL_80129664 -/* BE948 801285F8 00000000 */ nop -.LPAL_801285FC: -/* BE94C 801285FC 93C304F8 */ lbu $v1, 0x4F8($fp) -/* BE950 80128600 2402000C */ addiu $v0, $zero, 0xC -/* BE954 80128604 1462000A */ bne $v1, $v0, .LPAL_80128630 -/* BE958 80128608 2402000B */ addiu $v0, $zero, 0xB -/* BE95C 8012860C 3C028015 */ lui $v0, %hi(D_80154934) -/* BE960 80128610 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BE964 80128614 93C30487 */ lbu $v1, 0x487($fp) -/* BE968 80128618 90420050 */ lbu $v0, 0x50($v0) -/* BE96C 8012861C 0043102B */ sltu $v0, $v0, $v1 -/* BE970 80128620 14400037 */ bnez $v0, .LPAL_80128700 -/* BE974 80128624 24190001 */ addiu $t9, $zero, 0x1 -/* BE978 80128628 0804A1C0 */ j .LPAL_80128700 -/* BE97C 8012862C A7B90080 */ sh $t9, 0x80($sp) -.LPAL_80128630: -/* BE980 80128630 14620033 */ bne $v1, $v0, .LPAL_80128700 -/* BE984 80128634 00000000 */ nop -/* BE988 80128638 93C50487 */ lbu $a1, 0x487($fp) -/* BE98C 8012863C 00051040 */ sll $v0, $a1, 1 -/* BE990 80128640 03C21021 */ addu $v0, $fp, $v0 -/* BE994 80128644 94430488 */ lhu $v1, 0x488($v0) -/* BE998 80128648 8FC20460 */ lw $v0, 0x460($fp) -/* BE99C 8012864C 0043102A */ slt $v0, $v0, $v1 -/* BE9A0 80128650 10400009 */ beqz $v0, .LPAL_80128678 -/* BE9A4 80128654 00A0182D */ daddu $v1, $a1, $zero -/* BE9A8 80128658 3C028015 */ lui $v0, %hi(D_80154934) -/* BE9AC 8012865C 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BE9B0 80128660 90420050 */ lbu $v0, 0x50($v0) -/* BE9B4 80128664 0045102B */ sltu $v0, $v0, $a1 -/* BE9B8 80128668 14400025 */ bnez $v0, .LPAL_80128700 -/* BE9BC 8012866C 24180001 */ addiu $t8, $zero, 0x1 -/* BE9C0 80128670 0804A1C0 */ j .LPAL_80128700 -/* BE9C4 80128674 A7B80080 */ sh $t8, 0x80($sp) -.LPAL_80128678: -/* BE9C8 80128678 3C028015 */ lui $v0, %hi(D_80154934) -/* BE9CC 8012867C 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BE9D0 80128680 90440050 */ lbu $a0, 0x50($v0) -/* BE9D4 80128684 0064102B */ sltu $v0, $v1, $a0 -/* BE9D8 80128688 10400003 */ beqz $v0, .LPAL_80128698 -/* BE9DC 8012868C 24190001 */ addiu $t9, $zero, 0x1 -/* BE9E0 80128690 0804A1C0 */ j .LPAL_80128700 -/* BE9E4 80128694 A7B90080 */ sh $t9, 0x80($sp) -.LPAL_80128698: -/* BE9E8 80128698 0083102B */ sltu $v0, $a0, $v1 -/* BE9EC 8012869C 14400018 */ bnez $v0, .LPAL_80128700 -/* BE9F0 801286A0 00000000 */ nop -/* BE9F4 801286A4 93C3053C */ lbu $v1, 0x53C($fp) -/* BE9F8 801286A8 2C620002 */ sltiu $v0, $v1, 0x2 -/* BE9FC 801286AC 14400014 */ bnez $v0, .LPAL_80128700 -/* BEA00 801286B0 24040024 */ addiu $a0, $zero, 0x24 -/* BEA04 801286B4 24180002 */ addiu $t8, $zero, 0x2 -/* BEA08 801286B8 14780002 */ bne $v1, $t8, .LPAL_801286C4 -/* BEA0C 801286BC 24020030 */ addiu $v0, $zero, 0x30 -/* BEA10 801286C0 24020020 */ addiu $v0, $zero, 0x20 -.LPAL_801286C4: -/* BEA14 801286C4 97C304C8 */ lhu $v1, 0x4C8($fp) -/* BEA18 801286C8 0062102A */ slt $v0, $v1, $v0 -/* BEA1C 801286CC 1040000C */ beqz $v0, .LPAL_80128700 -/* BEA20 801286D0 2C620011 */ sltiu $v0, $v1, 0x11 -/* BEA24 801286D4 54400001 */ bnel $v0, $zero, .LPAL_801286DC -/* BEA28 801286D8 24040038 */ addiu $a0, $zero, 0x38 -.LPAL_801286DC: -/* BEA2C 801286DC 97C204CC */ lhu $v0, 0x4CC($fp) -/* BEA30 801286E0 00820018 */ mult $a0, $v0 -/* BEA34 801286E4 241800FF */ addiu $t8, $zero, 0xFF -/* BEA38 801286E8 0000C812 */ mflo $t9 -/* BEA3C 801286EC 03191023 */ subu $v0, $t8, $t9 -/* BEA40 801286F0 A7A2008E */ sh $v0, 0x8E($sp) -/* BEA44 801286F4 00021400 */ sll $v0, $v0, 16 -/* BEA48 801286F8 04420001 */ bltzl $v0, .LPAL_80128700 -/* BEA4C 801286FC A7A0008E */ sh $zero, 0x8E($sp) -.LPAL_80128700: -/* BEA50 80128700 3C038015 */ lui $v1, %hi(D_80154934) -/* BEA54 80128704 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BEA58 80128708 90620050 */ lbu $v0, 0x50($v1) -/* BEA5C 8012870C 24420001 */ addiu $v0, $v0, 0x1 -/* BEA60 80128710 0804A479 */ j .LPAL_801291E4 -/* BEA64 80128714 A0620050 */ sb $v0, 0x50($v1) -.LPAL_80128718: -/* BEA68 80128718 24180001 */ addiu $t8, $zero, 0x1 -/* BEA6C 8012871C 0804AAC4 */ j .LPAL_8012AB10 -/* BEA70 80128720 A7B80080 */ sh $t8, 0x80($sp) -.LPAL_80128724: -/* BEA74 80128724 3C038015 */ lui $v1, %hi(D_80154934) -/* BEA78 80128728 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BEA7C 8012872C 8C620020 */ lw $v0, 0x20($v1) -/* BEA80 80128730 8C64004C */ lw $a0, 0x4C($v1) -/* BEA84 80128734 24420001 */ addiu $v0, $v0, 0x1 -/* BEA88 80128738 00822021 */ addu $a0, $a0, $v0 -/* BEA8C 8012873C AC620020 */ sw $v0, 0x20($v1) -/* BEA90 80128740 90830000 */ lbu $v1, 0x0($a0) -/* BEA94 80128744 2C62001F */ sltiu $v0, $v1, 0x1F -/* BEA98 80128748 104008F1 */ beqz $v0, .LPAL_8012AB10 -/* BEA9C 8012874C 00031080 */ sll $v0, $v1, 2 -/* BEAA0 80128750 3C018015 */ lui $at, %hi(jtbl_PAL_8014F3B0) -/* BEAA4 80128754 00220821 */ addu $at, $at, $v0 -/* BEAA8 80128758 8C22F3B0 */ lw $v0, %lo(jtbl_PAL_8014F3B0)($at) -/* BEAAC 8012875C 00400008 */ jr $v0 -/* BEAB0 80128760 00000000 */ nop -.LPAL_80128764: -/* BEAB4 80128764 3C048015 */ lui $a0, %hi(D_80154934) -/* BEAB8 80128768 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BEABC 8012876C 8C820020 */ lw $v0, 0x20($a0) -/* BEAC0 80128770 8C83004C */ lw $v1, 0x4C($a0) -/* BEAC4 80128774 00431021 */ addu $v0, $v0, $v1 -/* BEAC8 80128778 90450001 */ lbu $a1, 0x1($v0) -/* BEACC 8012877C 8C820020 */ lw $v0, 0x20($a0) -/* BEAD0 80128780 94830034 */ lhu $v1, 0x34($a0) -/* BEAD4 80128784 24420002 */ addiu $v0, $v0, 0x2 -/* BEAD8 80128788 34630010 */ ori $v1, $v1, 0x10 -/* BEADC 8012878C AC820020 */ sw $v0, 0x20($a0) -/* BEAE0 80128790 A4830034 */ sh $v1, 0x34($a0) -/* BEAE4 80128794 0804AAC4 */ j .LPAL_8012AB10 -/* BEAE8 80128798 A485003C */ sh $a1, 0x3C($a0) -.LPAL_8012879C: -/* BEAEC 8012879C 3C048015 */ lui $a0, %hi(D_80154934) -/* BEAF0 801287A0 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BEAF4 801287A4 8C830020 */ lw $v1, 0x20($a0) -/* BEAF8 801287A8 8C82004C */ lw $v0, 0x4C($a0) -/* BEAFC 801287AC 00621821 */ addu $v1, $v1, $v0 -/* BEB00 801287B0 8C820020 */ lw $v0, 0x20($a0) -/* BEB04 801287B4 90630001 */ lbu $v1, 0x1($v1) -/* BEB08 801287B8 24420002 */ addiu $v0, $v0, 0x2 -/* BEB0C 801287BC AC820020 */ sw $v0, 0x20($a0) -/* BEB10 801287C0 0804AAC4 */ j .LPAL_8012AB10 -/* BEB14 801287C4 A483003E */ sh $v1, 0x3E($a0) -.LPAL_801287C8: -/* BEB18 801287C8 3C048015 */ lui $a0, %hi(D_80154934) -/* BEB1C 801287CC 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BEB20 801287D0 8C820020 */ lw $v0, 0x20($a0) -/* BEB24 801287D4 8C83004C */ lw $v1, 0x4C($a0) -/* BEB28 801287D8 00431021 */ addu $v0, $v0, $v1 -/* BEB2C 801287DC 90450001 */ lbu $a1, 0x1($v0) -/* BEB30 801287E0 94820034 */ lhu $v0, 0x34($a0) -/* BEB34 801287E4 8C830020 */ lw $v1, 0x20($a0) -/* BEB38 801287E8 34420010 */ ori $v0, $v0, 0x10 -/* BEB3C 801287EC 24630002 */ addiu $v1, $v1, 0x2 -/* BEB40 801287F0 A4820034 */ sh $v0, 0x34($a0) -/* BEB44 801287F4 AC830020 */ sw $v1, 0x20($a0) -/* BEB48 801287F8 0804AAC4 */ j .LPAL_8012AB10 -/* BEB4C 801287FC A485004A */ sh $a1, 0x4A($a0) -.LPAL_80128800: -/* BEB50 80128800 3C048015 */ lui $a0, %hi(D_80154934) -/* BEB54 80128804 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BEB58 80128808 8C820020 */ lw $v0, 0x20($a0) -/* BEB5C 8012880C 8C83004C */ lw $v1, 0x4C($a0) -/* BEB60 80128810 00431021 */ addu $v0, $v0, $v1 -/* BEB64 80128814 90420001 */ lbu $v0, 0x1($v0) -/* BEB68 80128818 0804A599 */ j .LPAL_80129664 -/* BEB6C 8012881C A0820040 */ sb $v0, 0x40($a0) -.LPAL_80128820: -/* BEB70 80128820 3C048015 */ lui $a0, %hi(D_80154934) -/* BEB74 80128824 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BEB78 80128828 8C820020 */ lw $v0, 0x20($a0) -/* BEB7C 8012882C 8C83004C */ lw $v1, 0x4C($a0) -/* BEB80 80128830 00431021 */ addu $v0, $v0, $v1 -/* BEB84 80128834 90420001 */ lbu $v0, 0x1($v0) -/* BEB88 80128838 3C013D80 */ lui $at, (0x3D800000 >> 16) -/* BEB8C 8012883C 44812000 */ mtc1 $at, $f4 -/* BEB90 80128840 3043000F */ andi $v1, $v0, 0xF -/* BEB94 80128844 44830000 */ mtc1 $v1, $f0 -/* BEB98 80128848 00000000 */ nop -/* BEB9C 8012884C 46800020 */ cvt.s.w $f0, $f0 -/* BEBA0 80128850 46040002 */ mul.s $f0, $f0, $f4 -/* BEBA4 80128854 00000000 */ nop -/* BEBA8 80128858 00021102 */ srl $v0, $v0, 4 -/* BEBAC 8012885C 44821000 */ mtc1 $v0, $f2 -/* BEBB0 80128860 00000000 */ nop -/* BEBB4 80128864 468010A0 */ cvt.s.w $f2, $f2 -/* BEBB8 80128868 8C820020 */ lw $v0, 0x20($a0) -/* BEBBC 8012886C 8C83004C */ lw $v1, 0x4C($a0) -/* BEBC0 80128870 46001080 */ add.s $f2, $f2, $f0 -/* BEBC4 80128874 00431021 */ addu $v0, $v0, $v1 -/* BEBC8 80128878 E4820010 */ swc1 $f2, 0x10($a0) -/* BEBCC 8012887C 90420002 */ lbu $v0, 0x2($v0) -/* BEBD0 80128880 00021902 */ srl $v1, $v0, 4 -/* BEBD4 80128884 3042000F */ andi $v0, $v0, 0xF -/* BEBD8 80128888 44820000 */ mtc1 $v0, $f0 -/* BEBDC 8012888C 00000000 */ nop -/* BEBE0 80128890 46800020 */ cvt.s.w $f0, $f0 -/* BEBE4 80128894 46040002 */ mul.s $f0, $f0, $f4 -/* BEBE8 80128898 00000000 */ nop -/* BEBEC 8012889C 3C013FF0 */ lui $at, (0x3FF00000 >> 16) -/* BEBF0 801288A0 44816800 */ mtc1 $at, $f13 -/* BEBF4 801288A4 44806000 */ mtc1 $zero, $f12 -/* BEBF8 801288A8 44831000 */ mtc1 $v1, $f2 -/* BEBFC 801288AC 00000000 */ nop -/* BEC00 801288B0 468010A0 */ cvt.s.w $f2, $f2 -/* BEC04 801288B4 8C820020 */ lw $v0, 0x20($a0) -/* BEC08 801288B8 C4840010 */ lwc1 $f4, 0x10($a0) -/* BEC0C 801288BC 46001080 */ add.s $f2, $f2, $f0 -/* BEC10 801288C0 24420003 */ addiu $v0, $v0, 0x3 -/* BEC14 801288C4 46002121 */ cvt.d.s $f4, $f4 -/* BEC18 801288C8 4624603C */ c.lt.d $f12, $f4 -/* BEC1C 801288CC AC820020 */ sw $v0, 0x20($a0) -/* BEC20 801288D0 45010007 */ bc1t .LPAL_801288F0 -/* BEC24 801288D4 E4820014 */ swc1 $f2, 0x14($a0) -/* BEC28 801288D8 46001006 */ mov.s $f0, $f2 -/* BEC2C 801288DC 46000021 */ cvt.d.s $f0, $f0 -/* BEC30 801288E0 4620603C */ c.lt.d $f12, $f0 -/* BEC34 801288E4 00000000 */ nop -/* BEC38 801288E8 4500000A */ bc1f .LPAL_80128914 -/* BEC3C 801288EC 00000000 */ nop -.LPAL_801288F0: -/* BEC40 801288F0 3C02E300 */ lui $v0, (0xE3001201 >> 16) -/* BEC44 801288F4 8EE30000 */ lw $v1, 0x0($s7) -/* BEC48 801288F8 34421201 */ ori $v0, $v0, (0xE3001201 & 0xFFFF) -/* BEC4C 801288FC 0060202D */ daddu $a0, $v1, $zero -/* BEC50 80128900 24630008 */ addiu $v1, $v1, 0x8 -/* BEC54 80128904 AEE30000 */ sw $v1, 0x0($s7) -/* BEC58 80128908 AC820000 */ sw $v0, 0x0($a0) -/* BEC5C 8012890C 0804AAC4 */ j .LPAL_8012AB10 -/* BEC60 80128910 AC800004 */ sw $zero, 0x4($a0) -.LPAL_80128914: -/* BEC64 80128914 462C203C */ c.lt.d $f4, $f12 -/* BEC68 80128918 00000000 */ nop -/* BEC6C 8012891C 45010005 */ bc1t .LPAL_80128934 -/* BEC70 80128920 3C04E300 */ lui $a0, (0xE3001201 >> 16) -/* BEC74 80128924 462C003C */ c.lt.d $f0, $f12 -/* BEC78 80128928 00000000 */ nop -/* BEC7C 8012892C 45000878 */ bc1f .LPAL_8012AB10 -/* BEC80 80128930 00000000 */ nop -.LPAL_80128934: -/* BEC84 80128934 8EE20000 */ lw $v0, 0x0($s7) -/* BEC88 80128938 34841201 */ ori $a0, $a0, (0xE3001201 & 0xFFFF) -/* BEC8C 8012893C 0040182D */ daddu $v1, $v0, $zero -/* BEC90 80128940 24420008 */ addiu $v0, $v0, 0x8 -/* BEC94 80128944 AEE20000 */ sw $v0, 0x0($s7) -/* BEC98 80128948 24023000 */ addiu $v0, $zero, 0x3000 -/* BEC9C 8012894C AC640000 */ sw $a0, 0x0($v1) -/* BECA0 80128950 0804AAC4 */ j .LPAL_8012AB10 -/* BECA4 80128954 AC620004 */ sw $v0, 0x4($v1) -.LPAL_80128958: -/* BECA8 80128958 3C06E300 */ lui $a2, (0xE3001201 >> 16) -/* BECAC 8012895C 34C61201 */ ori $a2, $a2, (0xE3001201 & 0xFFFF) -/* BECB0 80128960 8EE20000 */ lw $v0, 0x0($s7) -/* BECB4 80128964 3C048015 */ lui $a0, %hi(D_80154934) -/* BECB8 80128968 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BECBC 8012896C 0040282D */ daddu $a1, $v0, $zero -/* BECC0 80128970 24420008 */ addiu $v0, $v0, 0x8 -/* BECC4 80128974 8C830020 */ lw $v1, 0x20($a0) -/* BECC8 80128978 3C013F80 */ lui $at, (0x3F800000 >> 16) -/* BECCC 8012897C 44816000 */ mtc1 $at, $f12 -/* BECD0 80128980 24630001 */ addiu $v1, $v1, 0x1 -/* BECD4 80128984 E48C0010 */ swc1 $f12, 0x10($a0) -/* BECD8 80128988 E48C0014 */ swc1 $f12, 0x14($a0) -/* BECDC 8012898C AEE20000 */ sw $v0, 0x0($s7) -/* BECE0 80128990 24023000 */ addiu $v0, $zero, 0x3000 -/* BECE4 80128994 AC830020 */ sw $v1, 0x20($a0) -/* BECE8 80128998 ACA60000 */ sw $a2, 0x0($a1) -/* BECEC 8012899C 0804AAC4 */ j .LPAL_8012AB10 -/* BECF0 801289A0 ACA20004 */ sw $v0, 0x4($a1) -.LPAL_801289A4: -/* BECF4 801289A4 3C058015 */ lui $a1, %hi(D_80154934) -/* BECF8 801289A8 8CA54934 */ lw $a1, %lo(D_80154934)($a1) -/* BECFC 801289AC 8CA30020 */ lw $v1, 0x20($a1) -/* BED00 801289B0 8CA2004C */ lw $v0, 0x4C($a1) -/* BED04 801289B4 00621821 */ addu $v1, $v1, $v0 -/* BED08 801289B8 90640001 */ lbu $a0, 0x1($v1) -/* BED0C 801289BC 8CA20020 */ lw $v0, 0x20($a1) -/* BED10 801289C0 90630002 */ lbu $v1, 0x2($v1) -/* BED14 801289C4 24420003 */ addiu $v0, $v0, 0x3 -/* BED18 801289C8 00042200 */ sll $a0, $a0, 8 -/* BED1C 801289CC 00641821 */ addu $v1, $v1, $a0 -/* BED20 801289D0 ACA20020 */ sw $v0, 0x20($a1) -/* BED24 801289D4 0804AAC4 */ j .LPAL_8012AB10 -/* BED28 801289D8 A4A30042 */ sh $v1, 0x42($a1) -.LPAL_801289DC: -/* BED2C 801289DC 3C048015 */ lui $a0, %hi(D_80154934) -/* BED30 801289E0 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BED34 801289E4 8C830020 */ lw $v1, 0x20($a0) -/* BED38 801289E8 8C82004C */ lw $v0, 0x4C($a0) -/* BED3C 801289EC 00621821 */ addu $v1, $v1, $v0 -/* BED40 801289F0 8C820020 */ lw $v0, 0x20($a0) -/* BED44 801289F4 90630001 */ lbu $v1, 0x1($v1) -/* BED48 801289F8 0804A2A2 */ j .LPAL_80128A88 -/* BED4C 801289FC 24420002 */ addiu $v0, $v0, 0x2 -.LPAL_80128A00: -/* BED50 80128A00 3C048015 */ lui $a0, %hi(D_80154934) -/* BED54 80128A04 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BED58 80128A08 8C820020 */ lw $v0, 0x20($a0) -/* BED5C 80128A0C 8C83004C */ lw $v1, 0x4C($a0) -/* BED60 80128A10 00431021 */ addu $v0, $v0, $v1 -/* BED64 80128A14 90450001 */ lbu $a1, 0x1($v0) -/* BED68 80128A18 8C820020 */ lw $v0, 0x20($a0) -/* BED6C 80128A1C 94830042 */ lhu $v1, 0x42($a0) -/* BED70 80128A20 24420002 */ addiu $v0, $v0, 0x2 -/* BED74 80128A24 00651821 */ addu $v1, $v1, $a1 -/* BED78 80128A28 AC820020 */ sw $v0, 0x20($a0) -/* BED7C 80128A2C 0804AAC4 */ j .LPAL_8012AB10 -/* BED80 80128A30 A4830042 */ sh $v1, 0x42($a0) -.LPAL_80128A34: -/* BED84 80128A34 3C048015 */ lui $a0, %hi(D_80154934) -/* BED88 80128A38 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BED8C 80128A3C 8C820020 */ lw $v0, 0x20($a0) -/* BED90 80128A40 8C83004C */ lw $v1, 0x4C($a0) -/* BED94 80128A44 00431021 */ addu $v0, $v0, $v1 -/* BED98 80128A48 90450001 */ lbu $a1, 0x1($v0) -/* BED9C 80128A4C 8C820020 */ lw $v0, 0x20($a0) -/* BEDA0 80128A50 94830044 */ lhu $v1, 0x44($a0) -/* BEDA4 80128A54 24420002 */ addiu $v0, $v0, 0x2 -/* BEDA8 80128A58 0804A2A2 */ j .LPAL_80128A88 -/* BEDAC 80128A5C 00651821 */ addu $v1, $v1, $a1 -.LPAL_80128A60: -/* BEDB0 80128A60 3C048015 */ lui $a0, %hi(D_80154934) -/* BEDB4 80128A64 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BEDB8 80128A68 8C820020 */ lw $v0, 0x20($a0) -/* BEDBC 80128A6C 8C83004C */ lw $v1, 0x4C($a0) -/* BEDC0 80128A70 00431021 */ addu $v0, $v0, $v1 -/* BEDC4 80128A74 90450001 */ lbu $a1, 0x1($v0) -/* BEDC8 80128A78 8C820020 */ lw $v0, 0x20($a0) -/* BEDCC 80128A7C 94830044 */ lhu $v1, 0x44($a0) -/* BEDD0 80128A80 24420002 */ addiu $v0, $v0, 0x2 -/* BEDD4 80128A84 00651823 */ subu $v1, $v1, $a1 -.LPAL_80128A88: -/* BEDD8 80128A88 AC820020 */ sw $v0, 0x20($a0) -/* BEDDC 80128A8C 0804AAC4 */ j .LPAL_8012AB10 -/* BEDE0 80128A90 A4830044 */ sh $v1, 0x44($a0) -.LPAL_80128A94: -/* BEDE4 80128A94 3C0B8015 */ lui $t3, %hi(D_80154934) -/* BEDE8 80128A98 8D6B4934 */ lw $t3, %lo(D_80154934)($t3) -/* BEDEC 80128A9C 8D620020 */ lw $v0, 0x20($t3) -/* BEDF0 80128AA0 8D63004C */ lw $v1, 0x4C($t3) -/* BEDF4 80128AA4 00431021 */ addu $v0, $v0, $v1 -/* BEDF8 80128AA8 90430001 */ lbu $v1, 0x1($v0) -/* BEDFC 80128AAC 97AD008E */ lhu $t5, 0x8E($sp) -/* BEE00 80128AB0 00031080 */ sll $v0, $v1, 2 -/* BEE04 80128AB4 00431021 */ addu $v0, $v0, $v1 -/* BEE08 80128AB8 3C038015 */ lui $v1, %hi(D_8014FEC4) -/* BEE0C 80128ABC 8C63FEC4 */ lw $v1, %lo(D_8014FEC4)($v1) -/* BEE10 80128AC0 00021080 */ sll $v0, $v0, 2 -/* BEE14 80128AC4 00626021 */ addu $t4, $v1, $v0 -/* BEE18 80128AC8 000D1400 */ sll $v0, $t5, 16 -/* BEE1C 80128ACC 00021C03 */ sra $v1, $v0, 16 -/* BEE20 80128AD0 286200FF */ slti $v0, $v1, 0xFF -/* BEE24 80128AD4 1040000A */ beqz $v0, .LPAL_80128B00 -/* BEE28 80128AD8 00000000 */ nop -/* BEE2C 80128ADC 3C018015 */ lui $at, %hi(D_PAL_8014F430) -/* BEE30 80128AE0 D422F430 */ ldc1 $f2, %lo(D_PAL_8014F430)($at) -/* BEE34 80128AE4 44830000 */ mtc1 $v1, $f0 -/* BEE38 80128AE8 00000000 */ nop -/* BEE3C 80128AEC 46800021 */ cvt.d.w $f0, $f0 -/* BEE40 80128AF0 46220002 */ mul.d $f0, $f0, $f2 -/* BEE44 80128AF4 00000000 */ nop -/* BEE48 80128AF8 4620030D */ trunc.w.d $f12, $f0 -/* BEE4C 80128AFC 440D6000 */ mfc1 $t5, $f12 -.LPAL_80128B00: -/* BEE50 80128B00 8D8A0010 */ lw $t2, 0x10($t4) -/* BEE54 80128B04 97C4045A */ lhu $a0, 0x45A($fp) -/* BEE58 80128B08 95670046 */ lhu $a3, 0x46($t3) -/* BEE5C 80128B0C 95620042 */ lhu $v0, 0x42($t3) -/* BEE60 80128B10 97C8045C */ lhu $t0, 0x45C($fp) -/* BEE64 80128B14 95690048 */ lhu $t1, 0x48($t3) -/* BEE68 80128B18 95630044 */ lhu $v1, 0x44($t3) -/* BEE6C 80128B1C 95850008 */ lhu $a1, 0x8($t4) -/* BEE70 80128B20 9586000A */ lhu $a2, 0xA($t4) -/* BEE74 80128B24 97B90066 */ lhu $t9, 0x66($sp) -/* BEE78 80128B28 97B80076 */ lhu $t8, 0x76($sp) -/* BEE7C 80128B2C 00992021 */ addu $a0, $a0, $t9 -/* BEE80 80128B30 00E43821 */ addu $a3, $a3, $a0 -/* BEE84 80128B34 00471021 */ addu $v0, $v0, $a3 -/* BEE88 80128B38 00581023 */ subu $v0, $v0, $t8 -/* BEE8C 80128B3C 00021400 */ sll $v0, $v0, 16 -/* BEE90 80128B40 AFAA0010 */ sw $t2, 0x10($sp) -/* BEE94 80128B44 8D840004 */ lw $a0, 0x4($t4) -/* BEE98 80128B48 97B9006E */ lhu $t9, 0x6E($sp) -/* BEE9C 80128B4C 97B8007E */ lhu $t8, 0x7E($sp) -/* BEEA0 80128B50 00021403 */ sra $v0, $v0, 16 -/* BEEA4 80128B54 AFA20018 */ sw $v0, 0x18($sp) -/* BEEA8 80128B58 01194021 */ addu $t0, $t0, $t9 -/* BEEAC 80128B5C 01284821 */ addu $t1, $t1, $t0 -/* BEEB0 80128B60 00691821 */ addu $v1, $v1, $t1 -/* BEEB4 80128B64 00781823 */ subu $v1, $v1, $t8 -/* BEEB8 80128B68 00031C00 */ sll $v1, $v1, 16 -/* BEEBC 80128B6C 00031C03 */ sra $v1, $v1, 16 -/* BEEC0 80128B70 AFA3001C */ sw $v1, 0x1C($sp) -/* BEEC4 80128B74 AFA40014 */ sw $a0, 0x14($sp) -/* BEEC8 80128B78 95620002 */ lhu $v0, 0x2($t3) -/* BEECC 80128B7C AFA20020 */ sw $v0, 0x20($sp) -/* BEED0 80128B80 9562000A */ lhu $v0, 0xA($t3) -/* BEED4 80128B84 AFA20024 */ sw $v0, 0x24($sp) -/* BEED8 80128B88 95620006 */ lhu $v0, 0x6($t3) -/* BEEDC 80128B8C 95630002 */ lhu $v1, 0x2($t3) -/* BEEE0 80128B90 00431023 */ subu $v0, $v0, $v1 -/* BEEE4 80128B94 3042FFFF */ andi $v0, $v0, 0xFFFF -/* BEEE8 80128B98 AFA20028 */ sw $v0, 0x28($sp) -/* BEEEC 80128B9C 9563000E */ lhu $v1, 0xE($t3) -/* BEEF0 80128BA0 9564000A */ lhu $a0, 0xA($t3) -/* BEEF4 80128BA4 31A200FF */ andi $v0, $t5, 0xFF -/* BEEF8 80128BA8 AFA20030 */ sw $v0, 0x30($sp) -/* BEEFC 80128BAC 00641823 */ subu $v1, $v1, $a0 -/* BEF00 80128BB0 3063FFFF */ andi $v1, $v1, 0xFFFF -/* BEF04 80128BB4 AFA3002C */ sw $v1, 0x2C($sp) -/* BEF08 80128BB8 8D840000 */ lw $a0, 0x0($t4) -/* BEF0C 80128BBC 0C04B550 */ jal draw_ci_image_with_clipping -/* BEF10 80128BC0 8D87000C */ lw $a3, 0xC($t4) -/* BEF14 80128BC4 3C048015 */ lui $a0, %hi(D_80154934) -/* BEF18 80128BC8 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BEF1C 80128BCC 94820034 */ lhu $v0, 0x34($a0) -/* BEF20 80128BD0 8C830020 */ lw $v1, 0x20($a0) -/* BEF24 80128BD4 34420012 */ ori $v0, $v0, 0x12 -/* BEF28 80128BD8 24630002 */ addiu $v1, $v1, 0x2 -/* BEF2C 80128BDC A4820034 */ sh $v0, 0x34($a0) -/* BEF30 80128BE0 0804AAC4 */ j .LPAL_8012AB10 -/* BEF34 80128BE4 AC830020 */ sw $v1, 0x20($a0) -.LPAL_80128BE8: -/* BEF38 80128BE8 97B0008E */ lhu $s0, 0x8E($sp) -/* BEF3C 80128BEC 00101400 */ sll $v0, $s0, 16 -/* BEF40 80128BF0 00021C03 */ sra $v1, $v0, 16 -/* BEF44 80128BF4 286200FF */ slti $v0, $v1, 0xFF -/* BEF48 80128BF8 1040000A */ beqz $v0, .LPAL_80128C24 -/* BEF4C 80128BFC 00000000 */ nop -/* BEF50 80128C00 3C018015 */ lui $at, %hi(D_PAL_8014F438) -/* BEF54 80128C04 D422F438 */ ldc1 $f2, %lo(D_PAL_8014F438)($at) -/* BEF58 80128C08 44830000 */ mtc1 $v1, $f0 -/* BEF5C 80128C0C 00000000 */ nop -/* BEF60 80128C10 46800021 */ cvt.d.w $f0, $f0 -/* BEF64 80128C14 46220002 */ mul.d $f0, $f0, $f2 -/* BEF68 80128C18 00000000 */ nop -/* BEF6C 80128C1C 4620030D */ trunc.w.d $f12, $f0 -/* BEF70 80128C20 44106000 */ mfc1 $s0, $f12 -.LPAL_80128C24: -/* BEF74 80128C24 3C028015 */ lui $v0, %hi(D_80154934) -/* BEF78 80128C28 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BEF7C 80128C2C 8C430020 */ lw $v1, 0x20($v0) -/* BEF80 80128C30 8C42004C */ lw $v0, 0x4C($v0) -/* BEF84 80128C34 27A40050 */ addiu $a0, $sp, 0x50 -/* BEF88 80128C38 00621821 */ addu $v1, $v1, $v0 -/* BEF8C 80128C3C 90660003 */ lbu $a2, 0x3($v1) -/* BEF90 80128C40 90650001 */ lbu $a1, 0x1($v1) -/* BEF94 80128C44 90620002 */ lbu $v0, 0x2($v1) -/* BEF98 80128C48 00052A00 */ sll $a1, $a1, 8 -/* BEF9C 80128C4C 0C0B932E */ jal spr_get_npc_raster_info -/* BEFA0 80128C50 00A22825 */ or $a1, $a1, $v0 -/* BEFA4 80128C54 104000FA */ beqz $v0, .LPAL_80129040 -/* BEFA8 80128C58 00000000 */ nop -/* BEFAC 80128C5C 3C058015 */ lui $a1, %hi(D_80154934) -/* BEFB0 80128C60 8CA54934 */ lw $a1, %lo(D_80154934)($a1) -/* BEFB4 80128C64 97C6045A */ lhu $a2, 0x45A($fp) -/* BEFB8 80128C68 97C8045C */ lhu $t0, 0x45C($fp) -/* BEFBC 80128C6C 97B90066 */ lhu $t9, 0x66($sp) -/* BEFC0 80128C70 97B80076 */ lhu $t8, 0x76($sp) -/* BEFC4 80128C74 94A70046 */ lhu $a3, 0x46($a1) -/* BEFC8 80128C78 94A30042 */ lhu $v1, 0x42($a1) -/* BEFCC 80128C7C 94A90048 */ lhu $t1, 0x48($a1) -/* BEFD0 80128C80 94A40044 */ lhu $a0, 0x44($a1) -/* BEFD4 80128C84 00D93021 */ addu $a2, $a2, $t9 -/* BEFD8 80128C88 AFA00010 */ sw $zero, 0x10($sp) -/* BEFDC 80128C8C 8FA20054 */ lw $v0, 0x54($sp) -/* BEFE0 80128C90 97B9006E */ lhu $t9, 0x6E($sp) -/* BEFE4 80128C94 00E63821 */ addu $a3, $a3, $a2 -/* BEFE8 80128C98 00671821 */ addu $v1, $v1, $a3 -/* BEFEC 80128C9C 00781823 */ subu $v1, $v1, $t8 -/* BEFF0 80128CA0 00031C00 */ sll $v1, $v1, 16 -/* BEFF4 80128CA4 00031C03 */ sra $v1, $v1, 16 -/* BEFF8 80128CA8 01194021 */ addu $t0, $t0, $t9 -/* BEFFC 80128CAC 01284821 */ addu $t1, $t1, $t0 -/* BF000 80128CB0 97B8007E */ lhu $t8, 0x7E($sp) -/* BF004 80128CB4 00892021 */ addu $a0, $a0, $t1 -/* BF008 80128CB8 AFA20014 */ sw $v0, 0x14($sp) -/* BF00C 80128CBC AFA30018 */ sw $v1, 0x18($sp) -/* BF010 80128CC0 00982023 */ subu $a0, $a0, $t8 -/* BF014 80128CC4 00042400 */ sll $a0, $a0, 16 -/* BF018 80128CC8 00042403 */ sra $a0, $a0, 16 -/* BF01C 80128CCC AFA4001C */ sw $a0, 0x1C($sp) -/* BF020 80128CD0 94A20002 */ lhu $v0, 0x2($a1) -/* BF024 80128CD4 AFA20020 */ sw $v0, 0x20($sp) -/* BF028 80128CD8 94A2000A */ lhu $v0, 0xA($a1) -/* BF02C 80128CDC AFA20024 */ sw $v0, 0x24($sp) -/* BF030 80128CE0 94A20006 */ lhu $v0, 0x6($a1) -/* BF034 80128CE4 94A30002 */ lhu $v1, 0x2($a1) -/* BF038 80128CE8 00431023 */ subu $v0, $v0, $v1 -/* BF03C 80128CEC 3042FFFF */ andi $v0, $v0, 0xFFFF -/* BF040 80128CF0 AFA20028 */ sw $v0, 0x28($sp) -/* BF044 80128CF4 94A3000E */ lhu $v1, 0xE($a1) -/* BF048 80128CF8 94A4000A */ lhu $a0, 0xA($a1) -/* BF04C 80128CFC 320200FF */ andi $v0, $s0, 0xFF -/* BF050 80128D00 AFA20030 */ sw $v0, 0x30($sp) -/* BF054 80128D04 00641823 */ subu $v1, $v1, $a0 -/* BF058 80128D08 3063FFFF */ andi $v1, $v1, 0xFFFF -/* BF05C 80128D0C AFA3002C */ sw $v1, 0x2C($sp) -/* BF060 80128D10 8FA40050 */ lw $a0, 0x50($sp) -/* BF064 80128D14 8FA50058 */ lw $a1, 0x58($sp) -/* BF068 80128D18 8FA6005C */ lw $a2, 0x5C($sp) -/* BF06C 80128D1C 0C04B550 */ jal draw_ci_image_with_clipping -/* BF070 80128D20 24070002 */ addiu $a3, $zero, 0x2 -/* BF074 80128D24 3C038015 */ lui $v1, %hi(D_80154934) -/* BF078 80128D28 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BF07C 80128D2C 94620034 */ lhu $v0, 0x34($v1) -/* BF080 80128D30 34420010 */ ori $v0, $v0, 0x10 -/* BF084 80128D34 0804A410 */ j .LPAL_80129040 -/* BF088 80128D38 A4620034 */ sh $v0, 0x34($v1) -.LPAL_80128D3C: -/* BF08C 80128D3C 3C028015 */ lui $v0, %hi(D_8014FEEC) -/* BF090 80128D40 8C42FEEC */ lw $v0, %lo(D_8014FEEC)($v0) -/* BF094 80128D44 10400127 */ beqz $v0, .LPAL_801291E4 -/* BF098 80128D48 00000000 */ nop -/* BF09C 80128D4C 97AB008E */ lhu $t3, 0x8E($sp) -/* BF0A0 80128D50 000B1400 */ sll $v0, $t3, 16 -/* BF0A4 80128D54 00021C03 */ sra $v1, $v0, 16 -/* BF0A8 80128D58 286200FF */ slti $v0, $v1, 0xFF -/* BF0AC 80128D5C 1040000A */ beqz $v0, .LPAL_80128D88 -/* BF0B0 80128D60 00000000 */ nop -/* BF0B4 80128D64 3C018015 */ lui $at, %hi(D_PAL_8014F440) -/* BF0B8 80128D68 D422F440 */ ldc1 $f2, %lo(D_PAL_8014F440)($at) -/* BF0BC 80128D6C 44830000 */ mtc1 $v1, $f0 -/* BF0C0 80128D70 00000000 */ nop -/* BF0C4 80128D74 46800021 */ cvt.d.w $f0, $f0 -/* BF0C8 80128D78 46220002 */ mul.d $f0, $f0, $f2 -/* BF0CC 80128D7C 00000000 */ nop -/* BF0D0 80128D80 4620030D */ trunc.w.d $f12, $f0 -/* BF0D4 80128D84 440B6000 */ mfc1 $t3, $f12 -.LPAL_80128D88: -/* BF0D8 80128D88 3C048016 */ lui $a0, %hi(D_80158710) -/* BF0DC 80128D8C 24848710 */ addiu $a0, $a0, %lo(D_80158710) -/* BF0E0 80128D90 3C088015 */ lui $t0, %hi(D_80154934) -/* BF0E4 80128D94 8D084934 */ lw $t0, %lo(D_80154934)($t0) -/* BF0E8 80128D98 97C6045A */ lhu $a2, 0x45A($fp) -/* BF0EC 80128D9C 97C9045C */ lhu $t1, 0x45C($fp) -/* BF0F0 80128DA0 97B90066 */ lhu $t9, 0x66($sp) -/* BF0F4 80128DA4 97B80076 */ lhu $t8, 0x76($sp) -/* BF0F8 80128DA8 00D93021 */ addu $a2, $a2, $t9 -/* BF0FC 80128DAC 95070046 */ lhu $a3, 0x46($t0) -/* BF100 80128DB0 95030042 */ lhu $v1, 0x42($t0) -/* BF104 80128DB4 950A0048 */ lhu $t2, 0x48($t0) -/* BF108 80128DB8 95050044 */ lhu $a1, 0x44($t0) -/* BF10C 80128DBC 97B9006E */ lhu $t9, 0x6E($sp) -/* BF110 80128DC0 3C028016 */ lui $v0, %hi(D_8015B3A0) -/* BF114 80128DC4 2442B3A0 */ addiu $v0, $v0, %lo(D_8015B3A0) -/* BF118 80128DC8 AFA00010 */ sw $zero, 0x10($sp) -/* BF11C 80128DCC AFA20014 */ sw $v0, 0x14($sp) -/* BF120 80128DD0 00E63821 */ addu $a3, $a3, $a2 -/* BF124 80128DD4 00671821 */ addu $v1, $v1, $a3 -/* BF128 80128DD8 00781823 */ subu $v1, $v1, $t8 -/* BF12C 80128DDC 00031C00 */ sll $v1, $v1, 16 -/* BF130 80128DE0 00031C03 */ sra $v1, $v1, 16 -/* BF134 80128DE4 01394821 */ addu $t1, $t1, $t9 -/* BF138 80128DE8 01495021 */ addu $t2, $t2, $t1 -/* BF13C 80128DEC 97B8007E */ lhu $t8, 0x7E($sp) -/* BF140 80128DF0 00AA2821 */ addu $a1, $a1, $t2 -/* BF144 80128DF4 AFA30018 */ sw $v1, 0x18($sp) -/* BF148 80128DF8 00B82823 */ subu $a1, $a1, $t8 -/* BF14C 80128DFC 00052C00 */ sll $a1, $a1, 16 -/* BF150 80128E00 00052C03 */ sra $a1, $a1, 16 -/* BF154 80128E04 AFA5001C */ sw $a1, 0x1C($sp) -/* BF158 80128E08 95020002 */ lhu $v0, 0x2($t0) -/* BF15C 80128E0C 24070002 */ addiu $a3, $zero, 0x2 -/* BF160 80128E10 AFA20020 */ sw $v0, 0x20($sp) -/* BF164 80128E14 9502000A */ lhu $v0, 0xA($t0) -/* BF168 80128E18 24050020 */ addiu $a1, $zero, 0x20 -/* BF16C 80128E1C AFA20024 */ sw $v0, 0x24($sp) -/* BF170 80128E20 95020006 */ lhu $v0, 0x6($t0) -/* BF174 80128E24 95030002 */ lhu $v1, 0x2($t0) -/* BF178 80128E28 00A0302D */ daddu $a2, $a1, $zero -/* BF17C 80128E2C 00431023 */ subu $v0, $v0, $v1 -/* BF180 80128E30 3042FFFF */ andi $v0, $v0, 0xFFFF -/* BF184 80128E34 AFA20028 */ sw $v0, 0x28($sp) -/* BF188 80128E38 9503000E */ lhu $v1, 0xE($t0) -/* BF18C 80128E3C 9508000A */ lhu $t0, 0xA($t0) -/* BF190 80128E40 316200FF */ andi $v0, $t3, 0xFF -/* BF194 80128E44 AFA20030 */ sw $v0, 0x30($sp) -/* BF198 80128E48 00681823 */ subu $v1, $v1, $t0 -/* BF19C 80128E4C 3063FFFF */ andi $v1, $v1, 0xFFFF -/* BF1A0 80128E50 0C04B550 */ jal draw_ci_image_with_clipping -/* BF1A4 80128E54 AFA3002C */ sw $v1, 0x2C($sp) -/* BF1A8 80128E58 3C038015 */ lui $v1, %hi(D_80154934) -/* BF1AC 80128E5C 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BF1B0 80128E60 94620034 */ lhu $v0, 0x34($v1) -/* BF1B4 80128E64 34420010 */ ori $v0, $v0, 0x10 -/* BF1B8 80128E68 0804A479 */ j .LPAL_801291E4 -/* BF1BC 80128E6C A4620034 */ sh $v0, 0x34($v1) -.LPAL_80128E70: -/* BF1C0 80128E70 3C028015 */ lui $v0, %hi(D_80154934) -/* BF1C4 80128E74 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF1C8 80128E78 8C430020 */ lw $v1, 0x20($v0) -/* BF1CC 80128E7C 8C42004C */ lw $v0, 0x4C($v0) -/* BF1D0 80128E80 00622821 */ addu $a1, $v1, $v0 -/* BF1D4 80128E84 90A70001 */ lbu $a3, 0x1($a1) -/* BF1D8 80128E88 00071040 */ sll $v0, $a3, 1 -/* BF1DC 80128E8C 03C22021 */ addu $a0, $fp, $v0 -/* BF1E0 80128E90 84830474 */ lh $v1, 0x474($a0) -/* BF1E4 80128E94 2402FFFF */ addiu $v0, $zero, -0x1 -/* BF1E8 80128E98 14620003 */ bne $v1, $v0, .LPAL_80128EA8 -/* BF1EC 80128E9C 00000000 */ nop -/* BF1F0 80128EA0 90A20003 */ lbu $v0, 0x3($a1) -/* BF1F4 80128EA4 A4820474 */ sh $v0, 0x474($a0) -.LPAL_80128EA8: -/* BF1F8 80128EA8 84820474 */ lh $v0, 0x474($a0) -/* BF1FC 80128EAC 14400005 */ bnez $v0, .LPAL_80128EC4 -/* BF200 80128EB0 240A0011 */ addiu $t2, $zero, 0x11 -/* BF204 80128EB4 03C71821 */ addu $v1, $fp, $a3 -/* BF208 80128EB8 90620470 */ lbu $v0, 0x470($v1) -/* BF20C 80128EBC 24420001 */ addiu $v0, $v0, 0x1 -/* BF210 80128EC0 A0620470 */ sb $v0, 0x470($v1) -.LPAL_80128EC4: -/* BF214 80128EC4 03C72821 */ addu $a1, $fp, $a3 -/* BF218 80128EC8 24090012 */ addiu $t1, $zero, 0x12 -/* BF21C 80128ECC 0080302D */ daddu $a2, $a0, $zero -/* BF220 80128ED0 3C028015 */ lui $v0, %hi(D_80154934) -/* BF224 80128ED4 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF228 80128ED8 24080013 */ addiu $t0, $zero, 0x13 -.LPAL_80128EDC: -/* BF22C 80128EDC 8C440020 */ lw $a0, 0x20($v0) -.LPAL_80128EE0: -/* BF230 80128EE0 3C028015 */ lui $v0, %hi(D_80154934) -/* BF234 80128EE4 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF238 80128EE8 8C42004C */ lw $v0, 0x4C($v0) -/* BF23C 80128EEC 00821821 */ addu $v1, $a0, $v0 -/* BF240 80128EF0 9062FFFF */ lbu $v0, -0x1($v1) -/* BF244 80128EF4 241900FF */ addiu $t9, $zero, 0xFF -/* BF248 80128EF8 1459000D */ bne $v0, $t9, .LPAL_80128F30 -/* BF24C 80128EFC 00000000 */ nop -/* BF250 80128F00 90620000 */ lbu $v0, 0x0($v1) -/* BF254 80128F04 144A000A */ bne $v0, $t2, .LPAL_80128F30 -/* BF258 80128F08 00000000 */ nop -/* BF25C 80128F0C 90620001 */ lbu $v0, 0x1($v1) -/* BF260 80128F10 14470007 */ bne $v0, $a3, .LPAL_80128F30 -/* BF264 80128F14 00000000 */ nop -/* BF268 80128F18 90630002 */ lbu $v1, 0x2($v1) -/* BF26C 80128F1C 90A20470 */ lbu $v0, 0x470($a1) -/* BF270 80128F20 1062002A */ beq $v1, $v0, .LPAL_80128FCC -/* BF274 80128F24 00000000 */ nop -/* BF278 80128F28 0804A3F1 */ j .LPAL_80128FC4 -/* BF27C 80128F2C 24840004 */ addiu $a0, $a0, 0x4 -.LPAL_80128F30: -/* BF280 80128F30 3C028015 */ lui $v0, %hi(D_80154934) -/* BF284 80128F34 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF288 80128F38 8C42004C */ lw $v0, 0x4C($v0) -/* BF28C 80128F3C 00441821 */ addu $v1, $v0, $a0 -/* BF290 80128F40 90620000 */ lbu $v0, 0x0($v1) -/* BF294 80128F44 241800FF */ addiu $t8, $zero, 0xFF -/* BF298 80128F48 5458FFE5 */ bnel $v0, $t8, .LPAL_80128EE0 -/* BF29C 80128F4C 24840001 */ addiu $a0, $a0, 0x1 -/* BF2A0 80128F50 90620001 */ lbu $v0, 0x1($v1) -/* BF2A4 80128F54 1449000D */ bne $v0, $t1, .LPAL_80128F8C -/* BF2A8 80128F58 00000000 */ nop -/* BF2AC 80128F5C 90620002 */ lbu $v0, 0x2($v1) -/* BF2B0 80128F60 1447000A */ bne $v0, $a3, .LPAL_80128F8C -/* BF2B4 80128F64 00000000 */ nop -/* BF2B8 80128F68 84C20474 */ lh $v0, 0x474($a2) -/* BF2BC 80128F6C 14400017 */ bnez $v0, .LPAL_80128FCC -/* BF2C0 80128F70 24840001 */ addiu $a0, $a0, 0x1 -/* BF2C4 80128F74 90620003 */ lbu $v0, 0x3($v1) -/* BF2C8 80128F78 A0A20470 */ sb $v0, 0x470($a1) -/* BF2CC 80128F7C 3C028015 */ lui $v0, %hi(D_80154934) -/* BF2D0 80128F80 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF2D4 80128F84 0804A3B7 */ j .LPAL_80128EDC -/* BF2D8 80128F88 00000000 */ nop -.LPAL_80128F8C: -/* BF2DC 80128F8C 3C028015 */ lui $v0, %hi(D_80154934) -/* BF2E0 80128F90 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF2E4 80128F94 8C42004C */ lw $v0, 0x4C($v0) -/* BF2E8 80128F98 00441821 */ addu $v1, $v0, $a0 -/* BF2EC 80128F9C 90620000 */ lbu $v0, 0x0($v1) -/* BF2F0 80128FA0 241900FF */ addiu $t9, $zero, 0xFF -/* BF2F4 80128FA4 5459FFCE */ bnel $v0, $t9, .LPAL_80128EE0 -/* BF2F8 80128FA8 24840001 */ addiu $a0, $a0, 0x1 -/* BF2FC 80128FAC 90620001 */ lbu $v0, 0x1($v1) -/* BF300 80128FB0 5448FFCB */ bnel $v0, $t0, .LPAL_80128EE0 -/* BF304 80128FB4 24840001 */ addiu $a0, $a0, 0x1 -/* BF308 80128FB8 90620002 */ lbu $v0, 0x2($v1) -/* BF30C 80128FBC 50470003 */ beql $v0, $a3, .LPAL_80128FCC -/* BF310 80128FC0 24840001 */ addiu $a0, $a0, 0x1 -.LPAL_80128FC4: -/* BF314 80128FC4 0804A3B8 */ j .LPAL_80128EE0 -/* BF318 80128FC8 24840001 */ addiu $a0, $a0, 0x1 -.LPAL_80128FCC: -/* BF31C 80128FCC 3C058015 */ lui $a1, %hi(D_80154934) -/* BF320 80128FD0 8CA54934 */ lw $a1, %lo(D_80154934)($a1) -/* BF324 80128FD4 8CA2004C */ lw $v0, 0x4C($a1) -/* BF328 80128FD8 ACA40020 */ sw $a0, 0x20($a1) -/* BF32C 80128FDC 00443021 */ addu $a2, $v0, $a0 -/* BF330 80128FE0 90C30000 */ lbu $v1, 0x0($a2) -/* BF334 80128FE4 24020012 */ addiu $v0, $zero, 0x12 -/* BF338 80128FE8 1062001B */ beq $v1, $v0, .LPAL_80129058 -/* BF33C 80128FEC 28620013 */ slti $v0, $v1, 0x13 -/* BF340 80128FF0 10400005 */ beqz $v0, .LPAL_80129008 -/* BF344 80128FF4 24020011 */ addiu $v0, $zero, 0x11 -/* BF348 80128FF8 10620008 */ beq $v1, $v0, .LPAL_8012901C -/* BF34C 80128FFC 00071040 */ sll $v0, $a3, 1 -/* BF350 80129000 0804AAC4 */ j .LPAL_8012AB10 -/* BF354 80129004 00000000 */ nop -.LPAL_80129008: -/* BF358 80129008 24020013 */ addiu $v0, $zero, 0x13 -/* BF35C 8012900C 10620015 */ beq $v1, $v0, .LPAL_80129064 -/* BF360 80129010 24820002 */ addiu $v0, $a0, 0x2 -/* BF364 80129014 0804AAC4 */ j .LPAL_8012AB10 -/* BF368 80129018 00000000 */ nop -.LPAL_8012901C: -/* BF36C 8012901C 03C21821 */ addu $v1, $fp, $v0 -/* BF370 80129020 84620474 */ lh $v0, 0x474($v1) -/* BF374 80129024 14400006 */ bnez $v0, .LPAL_80129040 -/* BF378 80129028 00000000 */ nop -/* BF37C 8012902C 90C20003 */ lbu $v0, 0x3($a2) -/* BF380 80129030 10400002 */ beqz $v0, .LPAL_8012903C -/* BF384 80129034 2402FFFE */ addiu $v0, $zero, -0x2 -/* BF388 80129038 90C20003 */ lbu $v0, 0x3($a2) -.LPAL_8012903C: -/* BF38C 8012903C A4620474 */ sh $v0, 0x474($v1) -.LPAL_80129040: -/* BF390 80129040 3C038015 */ lui $v1, %hi(D_80154934) -/* BF394 80129044 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BF398 80129048 8C620020 */ lw $v0, 0x20($v1) -/* BF39C 8012904C 24420004 */ addiu $v0, $v0, 0x4 -/* BF3A0 80129050 0804AAC4 */ j .LPAL_8012AB10 -/* BF3A4 80129054 AC620020 */ sw $v0, 0x20($v1) -.LPAL_80129058: -/* BF3A8 80129058 24820003 */ addiu $v0, $a0, 0x3 -/* BF3AC 8012905C 0804AAC4 */ j .LPAL_8012AB10 -/* BF3B0 80129060 ACA20020 */ sw $v0, 0x20($a1) -.LPAL_80129064: -/* BF3B4 80129064 0804AAC4 */ j .LPAL_8012AB10 -/* BF3B8 80129068 ACA20020 */ sw $v0, 0x20($a1) -.LPAL_8012906C: -/* BF3BC 8012906C 3C038015 */ lui $v1, %hi(D_80154934) -/* BF3C0 80129070 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BF3C4 80129074 8C620020 */ lw $v0, 0x20($v1) -/* BF3C8 80129078 24420003 */ addiu $v0, $v0, 0x3 -/* BF3CC 8012907C 0804AAC4 */ j .LPAL_8012AB10 -/* BF3D0 80129080 AC620020 */ sw $v0, 0x20($v1) -.LPAL_80129084: -/* BF3D4 80129084 3C058015 */ lui $a1, %hi(D_80154934) -/* BF3D8 80129088 8CA54934 */ lw $a1, %lo(D_80154934)($a1) -/* BF3DC 8012908C 97B80076 */ lhu $t8, 0x76($sp) -/* BF3E0 80129090 8CA20020 */ lw $v0, 0x20($a1) -/* BF3E4 80129094 8CA3004C */ lw $v1, 0x4C($a1) -/* BF3E8 80129098 94A40042 */ lhu $a0, 0x42($a1) -/* BF3EC 8012909C 00431021 */ addu $v0, $v0, $v1 -/* BF3F0 801290A0 90430001 */ lbu $v1, 0x1($v0) -/* BF3F4 801290A4 94A20046 */ lhu $v0, 0x46($a1) -/* BF3F8 801290A8 00031840 */ sll $v1, $v1, 1 -/* BF3FC 801290AC 03C31821 */ addu $v1, $fp, $v1 -/* BF400 801290B0 00441021 */ addu $v0, $v0, $a0 -/* BF404 801290B4 00581023 */ subu $v0, $v0, $t8 -/* BF408 801290B8 2442FFFA */ addiu $v0, $v0, -0x6 -/* BF40C 801290BC A46204D0 */ sh $v0, 0x4D0($v1) -/* BF410 801290C0 8CA20020 */ lw $v0, 0x20($a1) -/* BF414 801290C4 8CA3004C */ lw $v1, 0x4C($a1) -/* BF418 801290C8 94A40044 */ lhu $a0, 0x44($a1) -/* BF41C 801290CC 97B9007E */ lhu $t9, 0x7E($sp) -/* BF420 801290D0 00431021 */ addu $v0, $v0, $v1 -/* BF424 801290D4 90430001 */ lbu $v1, 0x1($v0) -/* BF428 801290D8 94A20048 */ lhu $v0, 0x48($a1) -/* BF42C 801290DC 00031840 */ sll $v1, $v1, 1 -/* BF430 801290E0 03C31821 */ addu $v1, $fp, $v1 -/* BF434 801290E4 00441021 */ addu $v0, $v0, $a0 -/* BF438 801290E8 00591023 */ subu $v0, $v0, $t9 -/* BF43C 801290EC 2442FFFF */ addiu $v0, $v0, -0x1 -/* BF440 801290F0 A46204DC */ sh $v0, 0x4DC($v1) -/* BF444 801290F4 8CA20020 */ lw $v0, 0x20($a1) -/* BF448 801290F8 0804A4B1 */ j .LPAL_801292C4 -/* BF44C 801290FC 24420002 */ addiu $v0, $v0, 0x2 -.LPAL_80129100: -/* BF450 80129100 3C048015 */ lui $a0, %hi(D_80154934) -/* BF454 80129104 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BF458 80129108 8C820020 */ lw $v0, 0x20($a0) -/* BF45C 8012910C 8C83004C */ lw $v1, 0x4C($a0) -/* BF460 80129110 00431021 */ addu $v0, $v0, $v1 -/* BF464 80129114 90420001 */ lbu $v0, 0x1($v0) -/* BF468 80129118 241800FF */ addiu $t8, $zero, 0xFF -/* BF46C 8012911C 54580004 */ bnel $v0, $t8, .LPAL_80129130 -/* BF470 80129120 A082002D */ sb $v0, 0x2D($a0) -/* BF474 80129124 94820034 */ lhu $v0, 0x34($a0) -/* BF478 80129128 0804A598 */ j .LPAL_80129660 -/* BF47C 8012912C 3042FFDF */ andi $v0, $v0, 0xFFDF -.LPAL_80129130: -/* BF480 80129130 3C028015 */ lui $v0, %hi(D_80154934) -/* BF484 80129134 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF488 80129138 94430034 */ lhu $v1, 0x34($v0) -/* BF48C 8012913C 94440042 */ lhu $a0, 0x42($v0) -/* BF490 80129140 34630020 */ ori $v1, $v1, 0x20 -/* BF494 80129144 2484000E */ addiu $a0, $a0, 0xE -/* BF498 80129148 A4430034 */ sh $v1, 0x34($v0) -/* BF49C 8012914C 0804A599 */ j .LPAL_80129664 -/* BF4A0 80129150 A4440042 */ sh $a0, 0x42($v0) -.LPAL_80129154: -/* BF4A4 80129154 3C048015 */ lui $a0, %hi(D_80154934) -/* BF4A8 80129158 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BF4AC 8012915C 8C820020 */ lw $v0, 0x20($a0) -/* BF4B0 80129160 8C83004C */ lw $v1, 0x4C($a0) -/* BF4B4 80129164 00431021 */ addu $v0, $v0, $v1 -/* BF4B8 80129168 90420001 */ lbu $v0, 0x1($v0) -/* BF4BC 8012916C 0804A599 */ j .LPAL_80129664 -/* BF4C0 80129170 A082002B */ sb $v0, 0x2B($a0) -.LPAL_80129174: -/* BF4C4 80129174 0C04ABA0 */ jal msg_reset_gfx_state -/* BF4C8 80129178 00000000 */ nop -/* BF4CC 8012917C 0804A479 */ j .LPAL_801291E4 -/* BF4D0 80129180 00000000 */ nop -.LPAL_80129184: -/* BF4D4 80129184 3C028015 */ lui $v0, %hi(D_80154934) -/* BF4D8 80129188 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF4DC 8012918C 94440042 */ lhu $a0, 0x42($v0) -/* BF4E0 80129190 8C430020 */ lw $v1, 0x20($v0) -/* BF4E4 80129194 94450044 */ lhu $a1, 0x44($v0) -/* BF4E8 80129198 24630001 */ addiu $v1, $v1, 0x1 -/* BF4EC 8012919C A4440024 */ sh $a0, 0x24($v0) -/* BF4F0 801291A0 A4450026 */ sh $a1, 0x26($v0) -/* BF4F4 801291A4 0804AAC4 */ j .LPAL_8012AB10 -/* BF4F8 801291A8 AC430020 */ sw $v1, 0x20($v0) -.LPAL_801291AC: -/* BF4FC 801291AC 3C028015 */ lui $v0, %hi(D_80154934) -/* BF500 801291B0 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF504 801291B4 94440024 */ lhu $a0, 0x24($v0) -/* BF508 801291B8 8C430020 */ lw $v1, 0x20($v0) -/* BF50C 801291BC 94450026 */ lhu $a1, 0x26($v0) -/* BF510 801291C0 24630001 */ addiu $v1, $v1, 0x1 -/* BF514 801291C4 A4440042 */ sh $a0, 0x42($v0) -/* BF518 801291C8 A4450044 */ sh $a1, 0x44($v0) -/* BF51C 801291CC 0804AAC4 */ j .LPAL_8012AB10 -/* BF520 801291D0 AC430020 */ sw $v1, 0x20($v0) -.LPAL_801291D4: -/* BF524 801291D4 3C038015 */ lui $v1, %hi(D_80154934) -/* BF528 801291D8 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BF52C 801291DC 9062004B */ lbu $v0, 0x4B($v1) -/* BF530 801291E0 A0620028 */ sb $v0, 0x28($v1) -.LPAL_801291E4: -/* BF534 801291E4 3C038015 */ lui $v1, %hi(D_80154934) -/* BF538 801291E8 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BF53C 801291EC 8C620020 */ lw $v0, 0x20($v1) -/* BF540 801291F0 24420001 */ addiu $v0, $v0, 0x1 -/* BF544 801291F4 0804AAC4 */ j .LPAL_8012AB10 -/* BF548 801291F8 AC620020 */ sw $v0, 0x20($v1) -.LPAL_801291FC: -/* BF54C 801291FC 3C028015 */ lui $v0, %hi(D_80154934) -/* BF550 80129200 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF554 80129204 8C430020 */ lw $v1, 0x20($v0) -/* BF558 80129208 90440028 */ lbu $a0, 0x28($v0) -/* BF55C 8012920C 24630001 */ addiu $v1, $v1, 0x1 -/* BF560 80129210 A444004A */ sh $a0, 0x4A($v0) -/* BF564 80129214 0804AAC4 */ j .LPAL_8012AB10 -/* BF568 80129218 AC430020 */ sw $v1, 0x20($v0) -.LPAL_8012921C: -/* BF56C 8012921C 3C038015 */ lui $v1, %hi(D_80154934) -/* BF570 80129220 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BF574 80129224 8C620020 */ lw $v0, 0x20($v1) -/* BF578 80129228 8C63004C */ lw $v1, 0x4C($v1) -/* BF57C 8012922C 00431021 */ addu $v0, $v0, $v1 -/* BF580 80129230 90430001 */ lbu $v1, 0x1($v0) -/* BF584 80129234 2C62000F */ sltiu $v0, $v1, 0xF -/* BF588 80129238 10400635 */ beqz $v0, .LPAL_8012AB10 -/* BF58C 8012923C 00031080 */ sll $v0, $v1, 2 -/* BF590 80129240 3C018015 */ lui $at, %hi(jtbl_PAL_8014F448) -/* BF594 80129244 00220821 */ addu $at, $at, $v0 -/* BF598 80129248 8C22F448 */ lw $v0, %lo(jtbl_PAL_8014F448)($at) -/* BF59C 8012924C 00400008 */ jr $v0 -/* BF5A0 80129250 00000000 */ nop -.LPAL_80129254: -/* BF5A4 80129254 3C028015 */ lui $v0, %hi(D_80154934) -/* BF5A8 80129258 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF5AC 8012925C 8C430038 */ lw $v1, 0x38($v0) -/* BF5B0 80129260 8C440020 */ lw $a0, 0x20($v0) -/* BF5B4 80129264 0804A51C */ j .LPAL_80129470 -/* BF5B8 80129268 34630001 */ ori $v1, $v1, 0x1 -.LPAL_8012926C: -/* BF5BC 8012926C 3C028015 */ lui $v0, %hi(D_80154934) -/* BF5C0 80129270 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF5C4 80129274 8C430038 */ lw $v1, 0x38($v0) -/* BF5C8 80129278 8C440020 */ lw $a0, 0x20($v0) -/* BF5CC 8012927C 0804A51C */ j .LPAL_80129470 -/* BF5D0 80129280 34630002 */ ori $v1, $v1, 0x2 -.LPAL_80129284: -/* BF5D4 80129284 3C06FC70 */ lui $a2, (0xFC70FEE1 >> 16) -/* BF5D8 80129288 34C6FEE1 */ ori $a2, $a2, (0xFC70FEE1 & 0xFFFF) -/* BF5DC 8012928C 3C058015 */ lui $a1, %hi(D_80154934) -/* BF5E0 80129290 8CA54934 */ lw $a1, %lo(D_80154934)($a1) -/* BF5E4 80129294 8EE40000 */ lw $a0, 0x0($s7) -/* BF5E8 80129298 8CA20038 */ lw $v0, 0x38($a1) -/* BF5EC 8012929C 0080182D */ daddu $v1, $a0, $zero -/* BF5F0 801292A0 34420004 */ ori $v0, $v0, 0x4 -/* BF5F4 801292A4 ACA20038 */ sw $v0, 0x38($a1) -/* BF5F8 801292A8 2402F3F9 */ addiu $v0, $zero, -0xC07 -/* BF5FC 801292AC AC660000 */ sw $a2, 0x0($v1) -/* BF600 801292B0 AC620004 */ sw $v0, 0x4($v1) -/* BF604 801292B4 8CA20020 */ lw $v0, 0x20($a1) -/* BF608 801292B8 24840008 */ addiu $a0, $a0, 0x8 -/* BF60C 801292BC AEE40000 */ sw $a0, 0x0($s7) -/* BF610 801292C0 24420002 */ addiu $v0, $v0, 0x2 -.LPAL_801292C4: -/* BF614 801292C4 0804AAC4 */ j .LPAL_8012AB10 -/* BF618 801292C8 ACA20020 */ sw $v0, 0x20($a1) -.LPAL_801292CC: -/* BF61C 801292CC 3C09FC72 */ lui $t1, (0xFC72FEE5 >> 16) -/* BF620 801292D0 3529FEE5 */ ori $t1, $t1, (0xFC72FEE5 & 0xFFFF) -/* BF624 801292D4 3C0811FC */ lui $t0, (0x11FCF279 >> 16) -/* BF628 801292D8 3C030001 */ lui $v1, (0x10000 >> 16) -/* BF62C 801292DC 3C068015 */ lui $a2, %hi(D_80154934) -/* BF630 801292E0 8CC64934 */ lw $a2, %lo(D_80154934)($a2) -/* BF634 801292E4 8EE50000 */ lw $a1, 0x0($s7) -/* BF638 801292E8 8CC20038 */ lw $v0, 0x38($a2) -/* BF63C 801292EC 00A0382D */ daddu $a3, $a1, $zero -/* BF640 801292F0 00431025 */ or $v0, $v0, $v1 -/* BF644 801292F4 ACC20038 */ sw $v0, 0x38($a2) -/* BF648 801292F8 3C02FB00 */ lui $v0, (0xFB000000 >> 16) -/* BF64C 801292FC ACE20000 */ sw $v0, 0x0($a3) -/* BF650 80129300 8CC20020 */ lw $v0, 0x20($a2) -/* BF654 80129304 8CC3004C */ lw $v1, 0x4C($a2) -/* BF658 80129308 24A50008 */ addiu $a1, $a1, 0x8 -/* BF65C 8012930C AEE50000 */ sw $a1, 0x0($s7) -/* BF660 80129310 00431021 */ addu $v0, $v0, $v1 -/* BF664 80129314 90440002 */ lbu $a0, 0x2($v0) -/* BF668 80129318 3508F279 */ ori $t0, $t0, (0x11FCF279 & 0xFFFF) -/* BF66C 8012931C 00041E00 */ sll $v1, $a0, 24 -/* BF670 80129320 00041400 */ sll $v0, $a0, 16 -/* BF674 80129324 00621825 */ or $v1, $v1, $v0 -/* BF678 80129328 00042200 */ sll $a0, $a0, 8 -/* BF67C 8012932C 00641825 */ or $v1, $v1, $a0 -/* BF680 80129330 ACE30004 */ sw $v1, 0x4($a3) -/* BF684 80129334 ACA90000 */ sw $t1, 0x0($a1) -/* BF688 80129338 ACA80004 */ sw $t0, 0x4($a1) -/* BF68C 8012933C 8CC20020 */ lw $v0, 0x20($a2) -/* BF690 80129340 24A50008 */ addiu $a1, $a1, 0x8 -/* BF694 80129344 AEE50000 */ sw $a1, 0x0($s7) -/* BF698 80129348 24420003 */ addiu $v0, $v0, 0x3 -/* BF69C 8012934C 0804AAC4 */ j .LPAL_8012AB10 -/* BF6A0 80129350 ACC20020 */ sw $v0, 0x20($a2) -.LPAL_80129354: -/* BF6A4 80129354 3C058015 */ lui $a1, %hi(D_80154934) -/* BF6A8 80129358 8CA54934 */ lw $a1, %lo(D_80154934)($a1) -/* BF6AC 8012935C 8CA20038 */ lw $v0, 0x38($a1) -/* BF6B0 80129360 8CA40020 */ lw $a0, 0x20($a1) -/* BF6B4 80129364 8CA3004C */ lw $v1, 0x4C($a1) -/* BF6B8 80129368 34420020 */ ori $v0, $v0, 0x20 -/* BF6BC 8012936C 00831821 */ addu $v1, $a0, $v1 -/* BF6C0 80129370 ACA20038 */ sw $v0, 0x38($a1) -/* BF6C4 80129374 90630002 */ lbu $v1, 0x2($v1) -/* BF6C8 80129378 24840003 */ addiu $a0, $a0, 0x3 -/* BF6CC 8012937C 0804AAC3 */ j .LPAL_8012AB0C -/* BF6D0 80129380 A3A300B8 */ sb $v1, 0xB8($sp) -.LPAL_80129384: -/* BF6D4 80129384 3C028015 */ lui $v0, %hi(D_80154934) -/* BF6D8 80129388 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF6DC 8012938C 8C430038 */ lw $v1, 0x38($v0) -/* BF6E0 80129390 8C440020 */ lw $a0, 0x20($v0) -/* BF6E4 80129394 0804A51C */ j .LPAL_80129470 -/* BF6E8 80129398 34630040 */ ori $v1, $v1, 0x40 -.LPAL_8012939C: -/* BF6EC 8012939C 3C058015 */ lui $a1, %hi(D_80154934) -/* BF6F0 801293A0 8CA54934 */ lw $a1, %lo(D_80154934)($a1) -/* BF6F4 801293A4 8CA20038 */ lw $v0, 0x38($a1) -/* BF6F8 801293A8 8CA40020 */ lw $a0, 0x20($a1) -/* BF6FC 801293AC 8CA3004C */ lw $v1, 0x4C($a1) -/* BF700 801293B0 34420080 */ ori $v0, $v0, 0x80 -/* BF704 801293B4 00831821 */ addu $v1, $a0, $v1 -/* BF708 801293B8 ACA20038 */ sw $v0, 0x38($a1) -/* BF70C 801293BC 90630002 */ lbu $v1, 0x2($v1) -/* BF710 801293C0 24840003 */ addiu $a0, $a0, 0x3 -/* BF714 801293C4 0804AAC3 */ j .LPAL_8012AB0C -/* BF718 801293C8 A7A300B6 */ sh $v1, 0xB6($sp) -.LPAL_801293CC: -/* BF71C 801293CC 3C028015 */ lui $v0, %hi(D_80154934) -/* BF720 801293D0 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF724 801293D4 8C430038 */ lw $v1, 0x38($v0) -/* BF728 801293D8 8C440020 */ lw $a0, 0x20($v0) -/* BF72C 801293DC 0804A51C */ j .LPAL_80129470 -/* BF730 801293E0 34630200 */ ori $v1, $v1, 0x200 -.LPAL_801293E4: -/* BF734 801293E4 3C028015 */ lui $v0, %hi(D_80154934) -/* BF738 801293E8 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF73C 801293EC 8C430038 */ lw $v1, 0x38($v0) -/* BF740 801293F0 8C440020 */ lw $a0, 0x20($v0) -/* BF744 801293F4 0804A51C */ j .LPAL_80129470 -/* BF748 801293F8 34630400 */ ori $v1, $v1, 0x400 -.LPAL_801293FC: -/* BF74C 801293FC 3C028015 */ lui $v0, %hi(D_80154934) -/* BF750 80129400 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF754 80129404 8C430038 */ lw $v1, 0x38($v0) -/* BF758 80129408 8C440020 */ lw $a0, 0x20($v0) -/* BF75C 8012940C 0804A51C */ j .LPAL_80129470 -/* BF760 80129410 34630800 */ ori $v1, $v1, 0x800 -.LPAL_80129414: -/* BF764 80129414 3C028015 */ lui $v0, %hi(D_80154934) -/* BF768 80129418 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF76C 8012941C 8C430038 */ lw $v1, 0x38($v0) -/* BF770 80129420 8C440020 */ lw $a0, 0x20($v0) -/* BF774 80129424 0804A51C */ j .LPAL_80129470 -/* BF778 80129428 34631000 */ ori $v1, $v1, 0x1000 -.LPAL_8012942C: -/* BF77C 8012942C 3C028015 */ lui $v0, %hi(D_80154934) -/* BF780 80129430 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF784 80129434 8C430038 */ lw $v1, 0x38($v0) -/* BF788 80129438 8C440020 */ lw $a0, 0x20($v0) -/* BF78C 8012943C 0804A51C */ j .LPAL_80129470 -/* BF790 80129440 34632000 */ ori $v1, $v1, 0x2000 -.LPAL_80129444: -/* BF794 80129444 3C028015 */ lui $v0, %hi(D_80154934) -/* BF798 80129448 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF79C 8012944C 8C430038 */ lw $v1, 0x38($v0) -/* BF7A0 80129450 8C440020 */ lw $a0, 0x20($v0) -/* BF7A4 80129454 0804A51C */ j .LPAL_80129470 -/* BF7A8 80129458 34634000 */ ori $v1, $v1, 0x4000 -.LPAL_8012945C: -/* BF7AC 8012945C 3C028015 */ lui $v0, %hi(D_80154934) -/* BF7B0 80129460 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF7B4 80129464 8C430038 */ lw $v1, 0x38($v0) -/* BF7B8 80129468 8C440020 */ lw $a0, 0x20($v0) -/* BF7BC 8012946C 34638000 */ ori $v1, $v1, 0x8000 -.LPAL_80129470: -/* BF7C0 80129470 24840002 */ addiu $a0, $a0, 0x2 -/* BF7C4 80129474 AC430038 */ sw $v1, 0x38($v0) -/* BF7C8 80129478 0804AAC4 */ j .LPAL_8012AB10 -/* BF7CC 8012947C AC440020 */ sw $a0, 0x20($v0) -.LPAL_80129480: -/* BF7D0 80129480 3C038015 */ lui $v1, %hi(D_80154934) -/* BF7D4 80129484 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BF7D8 80129488 8C620020 */ lw $v0, 0x20($v1) -/* BF7DC 8012948C 8C63004C */ lw $v1, 0x4C($v1) -/* BF7E0 80129490 00431021 */ addu $v0, $v0, $v1 -/* BF7E4 80129494 90430001 */ lbu $v1, 0x1($v0) -/* BF7E8 80129498 2C62000F */ sltiu $v0, $v1, 0xF -/* BF7EC 8012949C 10400071 */ beqz $v0, .LPAL_80129664 -/* BF7F0 801294A0 00031080 */ sll $v0, $v1, 2 -/* BF7F4 801294A4 3C018015 */ lui $at, %hi(jtbl_PAL_8014F488) -/* BF7F8 801294A8 00220821 */ addu $at, $at, $v0 -/* BF7FC 801294AC 8C22F488 */ lw $v0, %lo(jtbl_PAL_8014F488)($at) -/* BF800 801294B0 00400008 */ jr $v0 -/* BF804 801294B4 00000000 */ nop -.LPAL_801294B8: -/* BF808 801294B8 3C028015 */ lui $v0, %hi(D_80154934) -/* BF80C 801294BC 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF810 801294C0 8C430038 */ lw $v1, 0x38($v0) -/* BF814 801294C4 0804A573 */ j .LPAL_801295CC -/* BF818 801294C8 2404FFFE */ addiu $a0, $zero, -0x2 -.LPAL_801294CC: -/* BF81C 801294CC 3C028015 */ lui $v0, %hi(D_80154934) -/* BF820 801294D0 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF824 801294D4 8C430038 */ lw $v1, 0x38($v0) -/* BF828 801294D8 0804A573 */ j .LPAL_801295CC -/* BF82C 801294DC 2404FFFD */ addiu $a0, $zero, -0x3 -.LPAL_801294E0: -/* BF830 801294E0 3C028015 */ lui $v0, %hi(D_80154934) -/* BF834 801294E4 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF838 801294E8 8C430038 */ lw $v1, 0x38($v0) -/* BF83C 801294EC 0804A573 */ j .LPAL_801295CC -/* BF840 801294F0 2404FFFB */ addiu $a0, $zero, -0x5 -.LPAL_801294F4: -/* BF844 801294F4 3C048015 */ lui $a0, %hi(D_80154934) -/* BF848 801294F8 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BF84C 801294FC 3C03FFFE */ lui $v1, (0xFFFEFFFF >> 16) -/* BF850 80129500 8C820038 */ lw $v0, 0x38($a0) -/* BF854 80129504 0804A57B */ j .LPAL_801295EC -/* BF858 80129508 3463FFFF */ ori $v1, $v1, (0xFFFEFFFF & 0xFFFF) -.LPAL_8012950C: -/* BF85C 8012950C 3C028015 */ lui $v0, %hi(D_80154934) -/* BF860 80129510 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF864 80129514 8C430038 */ lw $v1, 0x38($v0) -/* BF868 80129518 0804A573 */ j .LPAL_801295CC -/* BF86C 8012951C 2404FFDF */ addiu $a0, $zero, -0x21 -.LPAL_80129520: -/* BF870 80129520 3C048015 */ lui $a0, %hi(D_80154934) -/* BF874 80129524 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BF878 80129528 0804A559 */ j .LPAL_80129564 -/* BF87C 8012952C 2405FFBF */ addiu $a1, $zero, -0x41 -.LPAL_80129530: -/* BF880 80129530 3C028015 */ lui $v0, %hi(D_80154934) -/* BF884 80129534 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF888 80129538 8C430038 */ lw $v1, 0x38($v0) -/* BF88C 8012953C 0804A573 */ j .LPAL_801295CC -/* BF890 80129540 2404FF7F */ addiu $a0, $zero, -0x81 -.LPAL_80129544: -/* BF894 80129544 3C028015 */ lui $v0, %hi(D_80154934) -/* BF898 80129548 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF89C 8012954C 8C430038 */ lw $v1, 0x38($v0) -/* BF8A0 80129550 0804A573 */ j .LPAL_801295CC -/* BF8A4 80129554 2404FDFF */ addiu $a0, $zero, -0x201 -.LPAL_80129558: -/* BF8A8 80129558 3C048015 */ lui $a0, %hi(D_80154934) -/* BF8AC 8012955C 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BF8B0 80129560 2405FBFF */ addiu $a1, $zero, -0x401 -.LPAL_80129564: -/* BF8B4 80129564 8C820038 */ lw $v0, 0x38($a0) -/* BF8B8 80129568 94830034 */ lhu $v1, 0x34($a0) -/* BF8BC 8012956C 00451024 */ and $v0, $v0, $a1 -/* BF8C0 80129570 34630010 */ ori $v1, $v1, 0x10 -/* BF8C4 80129574 AC820038 */ sw $v0, 0x38($a0) -/* BF8C8 80129578 0804A599 */ j .LPAL_80129664 -/* BF8CC 8012957C A4830034 */ sh $v1, 0x34($a0) -.LPAL_80129580: -/* BF8D0 80129580 3C028015 */ lui $v0, %hi(D_80154934) -/* BF8D4 80129584 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF8D8 80129588 8C430038 */ lw $v1, 0x38($v0) -/* BF8DC 8012958C 0804A573 */ j .LPAL_801295CC -/* BF8E0 80129590 2404F7FF */ addiu $a0, $zero, -0x801 -.LPAL_80129594: -/* BF8E4 80129594 3C028015 */ lui $v0, %hi(D_80154934) -/* BF8E8 80129598 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF8EC 8012959C 8C430038 */ lw $v1, 0x38($v0) -/* BF8F0 801295A0 0804A573 */ j .LPAL_801295CC -/* BF8F4 801295A4 2404EFFF */ addiu $a0, $zero, -0x1001 -.LPAL_801295A8: -/* BF8F8 801295A8 3C028015 */ lui $v0, %hi(D_80154934) -/* BF8FC 801295AC 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF900 801295B0 8C430038 */ lw $v1, 0x38($v0) -/* BF904 801295B4 0804A573 */ j .LPAL_801295CC -/* BF908 801295B8 2404DFFF */ addiu $a0, $zero, -0x2001 -.LPAL_801295BC: -/* BF90C 801295BC 3C028015 */ lui $v0, %hi(D_80154934) -/* BF910 801295C0 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF914 801295C4 8C430038 */ lw $v1, 0x38($v0) -/* BF918 801295C8 2404BFFF */ addiu $a0, $zero, -0x4001 -.LPAL_801295CC: -/* BF91C 801295CC 00641824 */ and $v1, $v1, $a0 -/* BF920 801295D0 0804A599 */ j .LPAL_80129664 -/* BF924 801295D4 AC430038 */ sw $v1, 0x38($v0) -.LPAL_801295D8: -/* BF928 801295D8 3C048015 */ lui $a0, %hi(D_80154934) -/* BF92C 801295DC 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BF930 801295E0 3C03FFFF */ lui $v1, (0xFFFF7FFF >> 16) -/* BF934 801295E4 8C820038 */ lw $v0, 0x38($a0) -/* BF938 801295E8 34637FFF */ ori $v1, $v1, (0xFFFF7FFF & 0xFFFF) -.LPAL_801295EC: -/* BF93C 801295EC 00431024 */ and $v0, $v0, $v1 -/* BF940 801295F0 0804A599 */ j .LPAL_80129664 -/* BF944 801295F4 AC820038 */ sw $v0, 0x38($a0) -.LPAL_801295F8: -/* BF948 801295F8 3C048015 */ lui $a0, %hi(D_80154934) -/* BF94C 801295FC 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BF950 80129600 8C820020 */ lw $v0, 0x20($a0) -/* BF954 80129604 8C83004C */ lw $v1, 0x4C($a0) -/* BF958 80129608 00431021 */ addu $v0, $v0, $v1 -/* BF95C 8012960C 90420001 */ lbu $v0, 0x1($v0) -/* BF960 80129610 10400010 */ beqz $v0, .LPAL_80129654 -/* BF964 80129614 241900FF */ addiu $t9, $zero, 0xFF -/* BF968 80129618 A082002E */ sb $v0, 0x2E($a0) -/* BF96C 8012961C 3C038015 */ lui $v1, %hi(D_80154934) -/* BF970 80129620 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BF974 80129624 9062002E */ lbu $v0, 0x2E($v1) -/* BF978 80129628 14590006 */ bne $v0, $t9, .LPAL_80129644 -/* BF97C 8012962C 00000000 */ nop -/* BF980 80129630 97C20514 */ lhu $v0, 0x514($fp) -/* BF984 80129634 00021042 */ srl $v0, $v0, 1 -/* BF988 80129638 A062002E */ sb $v0, 0x2E($v1) -/* BF98C 8012963C 3C038015 */ lui $v1, %hi(D_80154934) -/* BF990 80129640 8C634934 */ lw $v1, %lo(D_80154934)($v1) -.LPAL_80129644: -/* BF994 80129644 94620034 */ lhu $v0, 0x34($v1) -/* BF998 80129648 344200C0 */ ori $v0, $v0, 0xC0 -/* BF99C 8012964C 0804A599 */ j .LPAL_80129664 -/* BF9A0 80129650 A4620034 */ sh $v0, 0x34($v1) -.LPAL_80129654: -/* BF9A4 80129654 94820034 */ lhu $v0, 0x34($a0) -/* BF9A8 80129658 A4800042 */ sh $zero, 0x42($a0) -/* BF9AC 8012965C 3042FF3F */ andi $v0, $v0, 0xFF3F -.LPAL_80129660: -/* BF9B0 80129660 A4820034 */ sh $v0, 0x34($a0) -.LPAL_80129664: -/* BF9B4 80129664 3C038015 */ lui $v1, %hi(D_80154934) -/* BF9B8 80129668 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BF9BC 8012966C 8C620020 */ lw $v0, 0x20($v1) -.LPAL_80129670: -/* BF9C0 80129670 24420002 */ addiu $v0, $v0, 0x2 -/* BF9C4 80129674 0804AAC4 */ j .LPAL_8012AB10 -/* BF9C8 80129678 AC620020 */ sw $v0, 0x20($v1) -.LPAL_8012967C: -/* BF9CC 8012967C 3C028015 */ lui $v0, %hi(D_80154934) -/* BF9D0 80129680 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BF9D4 80129684 94420034 */ lhu $v0, 0x34($v0) -/* BF9D8 80129688 30420002 */ andi $v0, $v0, 0x2 -/* BF9DC 8012968C 10400010 */ beqz $v0, .LPAL_801296D0 -/* BF9E0 80129690 241800FF */ addiu $t8, $zero, 0xFF -/* BF9E4 80129694 8EE30000 */ lw $v1, 0x0($s7) -/* BF9E8 80129698 A7B80096 */ sh $t8, 0x96($sp) -/* BF9EC 8012969C 0060102D */ daddu $v0, $v1, $zero -/* BF9F0 801296A0 24630008 */ addiu $v1, $v1, 0x8 -/* BF9F4 801296A4 3C19E700 */ lui $t9, (0xE7000000 >> 16) -/* BF9F8 801296A8 AEE30000 */ sw $v1, 0x0($s7) -/* BF9FC 801296AC AC590000 */ sw $t9, 0x0($v0) -/* BFA00 801296B0 AC400004 */ sw $zero, 0x4($v0) -/* BFA04 801296B4 24620008 */ addiu $v0, $v1, 0x8 -/* BFA08 801296B8 AEE20000 */ sw $v0, 0x0($s7) -/* BFA0C 801296BC 3C02DE00 */ lui $v0, (0xDE000000 >> 16) -/* BFA10 801296C0 AC620000 */ sw $v0, 0x0($v1) -/* BFA14 801296C4 3C028015 */ lui $v0, %hi(D_8014C500) -/* BFA18 801296C8 2442B0D0 */ addiu $v0, $v0, %lo(D_8014C500) -/* BFA1C 801296CC AC620004 */ sw $v0, 0x4($v1) -.LPAL_801296D0: -/* BFA20 801296D0 3C058015 */ lui $a1, %hi(D_80154934) -/* BFA24 801296D4 8CA54934 */ lw $a1, %lo(D_80154934)($a1) -/* BFA28 801296D8 C4A00010 */ lwc1 $f0, 0x10($a1) -/* BFA2C 801296DC 94A20034 */ lhu $v0, 0x34($a1) -/* BFA30 801296E0 C4A20014 */ lwc1 $f2, 0x14($a1) -/* BFA34 801296E4 30420080 */ andi $v0, $v0, 0x80 -/* BFA38 801296E8 E4A00018 */ swc1 $f0, 0x18($a1) -/* BFA3C 801296EC 1040000B */ beqz $v0, .LPAL_8012971C -/* BFA40 801296F0 E4A2001C */ swc1 $f2, 0x1C($a1) -/* BFA44 801296F4 97C20538 */ lhu $v0, 0x538($fp) -/* BFA48 801296F8 90A4002E */ lbu $a0, 0x2E($a1) -/* BFA4C 801296FC 94A30034 */ lhu $v1, 0x34($a1) -/* BFA50 80129700 00021042 */ srl $v0, $v0, 1 -/* BFA54 80129704 00822023 */ subu $a0, $a0, $v0 -/* BFA58 80129708 94A20042 */ lhu $v0, 0x42($a1) -/* BFA5C 8012970C 3063FF7F */ andi $v1, $v1, 0xFF7F -/* BFA60 80129710 A4A30034 */ sh $v1, 0x34($a1) -/* BFA64 80129714 00441021 */ addu $v0, $v0, $a0 -/* BFA68 80129718 A4A20042 */ sh $v0, 0x42($a1) -.LPAL_8012971C: -/* BFA6C 8012971C 3C048015 */ lui $a0, %hi(D_80154934) -/* BFA70 80129720 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* BFA74 80129724 94820034 */ lhu $v0, 0x34($a0) -/* BFA78 80129728 30420040 */ andi $v0, $v0, 0x40 -/* BFA7C 8012972C 10400007 */ beqz $v0, .LPAL_8012974C -/* BFA80 80129730 00000000 */ nop -/* BFA84 80129734 97C2045A */ lhu $v0, 0x45A($fp) -/* BFA88 80129738 97B80066 */ lhu $t8, 0x66($sp) -/* BFA8C 8012973C 94830042 */ lhu $v1, 0x42($a0) -/* BFA90 80129740 00581021 */ addu $v0, $v0, $t8 -/* BFA94 80129744 0804A5DA */ j .LPAL_80129768 -/* BFA98 80129748 00628821 */ addu $s1, $v1, $v0 -.LPAL_8012974C: -/* BFA9C 8012974C 97C2045A */ lhu $v0, 0x45A($fp) -/* BFAA0 80129750 97B90066 */ lhu $t9, 0x66($sp) -/* BFAA4 80129754 94830046 */ lhu $v1, 0x46($a0) -/* BFAA8 80129758 94840042 */ lhu $a0, 0x42($a0) -/* BFAAC 8012975C 00591021 */ addu $v0, $v0, $t9 -/* BFAB0 80129760 00621821 */ addu $v1, $v1, $v0 -/* BFAB4 80129764 00838821 */ addu $s1, $a0, $v1 -.LPAL_80129768: -/* BFAB8 80129768 3C068015 */ lui $a2, %hi(D_80154934) -/* BFABC 8012976C 8CC64934 */ lw $a2, %lo(D_80154934)($a2) -/* BFAC0 80129770 97B8006E */ lhu $t8, 0x6E($sp) -/* BFAC4 80129774 97B9007E */ lhu $t9, 0x7E($sp) -/* BFAC8 80129778 94C3003C */ lhu $v1, 0x3C($a2) -/* BFACC 8012977C 94C4003E */ lhu $a0, 0x3E($a2) -/* BFAD0 80129780 00031880 */ sll $v1, $v1, 2 -/* BFAD4 80129784 00041040 */ sll $v0, $a0, 1 -/* BFAD8 80129788 00441021 */ addu $v0, $v0, $a0 -/* BFADC 8012978C 00021080 */ sll $v0, $v0, 2 -/* BFAE0 80129790 97C4045C */ lhu $a0, 0x45C($fp) -/* BFAE4 80129794 3C08802F */ lui $t0, %hi(MsgCharsets) -/* BFAE8 80129798 01034021 */ addu $t0, $t0, $v1 -/* BFAEC 8012979C 8D0818A8 */ lw $t0, %lo(MsgCharsets)($t0) -/* BFAF0 801297A0 00982021 */ addu $a0, $a0, $t8 -/* BFAF4 801297A4 8D030008 */ lw $v1, 0x8($t0) -/* BFAF8 801297A8 97B8008E */ lhu $t8, 0x8E($sp) -/* BFAFC 801297AC 00433821 */ addu $a3, $v0, $v1 -/* BFB00 801297B0 90E50009 */ lbu $a1, 0x9($a3) -/* BFB04 801297B4 94C30048 */ lhu $v1, 0x48($a2) -/* BFB08 801297B8 94C20044 */ lhu $v0, 0x44($a2) -/* BFB0C 801297BC 00052E00 */ sll $a1, $a1, 24 -/* BFB10 801297C0 00052E03 */ sra $a1, $a1, 24 -/* BFB14 801297C4 00641821 */ addu $v1, $v1, $a0 -/* BFB18 801297C8 00431021 */ addu $v0, $v0, $v1 -/* BFB1C 801297CC 00591023 */ subu $v0, $v0, $t9 -/* BFB20 801297D0 00A22821 */ addu $a1, $a1, $v0 -/* BFB24 801297D4 00181400 */ sll $v0, $t8, 16 -/* BFB28 801297D8 00024C03 */ sra $t1, $v0, 16 -/* BFB2C 801297DC 112004AB */ beqz $t1, .LPAL_8012AA8C -/* BFB30 801297E0 00A0982D */ daddu $s3, $a1, $zero -/* BFB34 801297E4 00111C00 */ sll $v1, $s1, 16 -/* BFB38 801297E8 8CC20004 */ lw $v0, 0x4($a2) -/* BFB3C 801297EC 00032403 */ sra $a0, $v1, 16 -/* BFB40 801297F0 0082102A */ slt $v0, $a0, $v0 -/* BFB44 801297F4 104004A5 */ beqz $v0, .LPAL_8012AA8C -/* BFB48 801297F8 00051C00 */ sll $v1, $a1, 16 -/* BFB4C 801297FC 8CC2000C */ lw $v0, 0xC($a2) -/* BFB50 80129800 00032C03 */ sra $a1, $v1, 16 -/* BFB54 80129804 00A2102A */ slt $v0, $a1, $v0 -/* BFB58 80129808 104004A0 */ beqz $v0, .LPAL_8012AA8C -/* BFB5C 8012980C 00000000 */ nop -/* BFB60 80129810 90E20008 */ lbu $v0, 0x8($a3) -/* BFB64 80129814 C4C00010 */ lwc1 $f0, 0x10($a2) -/* BFB68 80129818 44821000 */ mtc1 $v0, $f2 -/* BFB6C 8012981C 00000000 */ nop -/* BFB70 80129820 468010A0 */ cvt.s.w $f2, $f2 -/* BFB74 80129824 46020002 */ mul.s $f0, $f0, $f2 -/* BFB78 80129828 00000000 */ nop -/* BFB7C 8012982C 8CC30000 */ lw $v1, 0x0($a2) -/* BFB80 80129830 4600030D */ trunc.w.s $f12, $f0 -/* BFB84 80129834 44026000 */ mfc1 $v0, $f12 -/* BFB88 80129838 00000000 */ nop -/* BFB8C 8012983C 00821021 */ addu $v0, $a0, $v0 -/* BFB90 80129840 0062182A */ slt $v1, $v1, $v0 -/* BFB94 80129844 10600491 */ beqz $v1, .LPAL_8012AA8C -/* BFB98 80129848 00000000 */ nop -/* BFB9C 8012984C 91020003 */ lbu $v0, 0x3($t0) -/* BFBA0 80129850 C4C20014 */ lwc1 $f2, 0x14($a2) -/* BFBA4 80129854 44820000 */ mtc1 $v0, $f0 -/* BFBA8 80129858 00000000 */ nop -/* BFBAC 8012985C 46800020 */ cvt.s.w $f0, $f0 -/* BFBB0 80129860 93C20508 */ lbu $v0, 0x508($fp) -/* BFBB4 80129864 46001082 */ mul.s $f2, $f2, $f0 -/* BFBB8 80129868 00000000 */ nop -/* BFBBC 8012986C 00021040 */ sll $v0, $v0, 1 -/* BFBC0 80129870 3C01802F */ lui $at, %hi(D_802EB644) -/* BFBC4 80129874 00220821 */ addu $at, $at, $v0 -/* BFBC8 80129878 84221944 */ lh $v0, %lo(D_802EB644)($at) -/* BFBCC 8012987C 44820000 */ mtc1 $v0, $f0 -/* BFBD0 80129880 00000000 */ nop -/* BFBD4 80129884 46800020 */ cvt.s.w $f0, $f0 -/* BFBD8 80129888 46001080 */ add.s $f2, $f2, $f0 -/* BFBDC 8012988C 8CC30008 */ lw $v1, 0x8($a2) -/* BFBE0 80129890 4600130D */ trunc.w.s $f12, $f2 -/* BFBE4 80129894 44026000 */ mfc1 $v0, $f12 -/* BFBE8 80129898 00000000 */ nop -/* BFBEC 8012989C 00A21021 */ addu $v0, $a1, $v0 -/* BFBF0 801298A0 0062182A */ slt $v1, $v1, $v0 -/* BFBF4 801298A4 10600479 */ beqz $v1, .LPAL_8012AA8C -/* BFBF8 801298A8 00000000 */ nop -/* BFBFC 801298AC 97B0008E */ lhu $s0, 0x8E($sp) -/* BFC00 801298B0 8CC50038 */ lw $a1, 0x38($a2) -/* BFC04 801298B4 94D9004A */ lhu $t9, 0x4A($a2) -/* BFC08 801298B8 30A20020 */ andi $v0, $a1, 0x20 -/* BFC0C 801298BC 1040000B */ beqz $v0, .LPAL_801298EC -/* BFC10 801298C0 A7B900A6 */ sh $t9, 0xA6($sp) -/* BFC14 801298C4 44890000 */ mtc1 $t1, $f0 -/* BFC18 801298C8 00000000 */ nop -/* BFC1C 801298CC 46800020 */ cvt.s.w $f0, $f0 -/* BFC20 801298D0 3C018015 */ lui $at, %hi(D_PAL_8014F4C8) -/* BFC24 801298D4 D422F4C8 */ ldc1 $f2, %lo(D_PAL_8014F4C8)($at) -/* BFC28 801298D8 46000021 */ cvt.d.s $f0, $f0 -/* BFC2C 801298DC 46220002 */ mul.d $f0, $f0, $f2 -/* BFC30 801298E0 00000000 */ nop -/* BFC34 801298E4 4620030D */ trunc.w.d $f12, $f0 -/* BFC38 801298E8 44106000 */ mfc1 $s0, $f12 -.LPAL_801298EC: -/* BFC3C 801298EC 93C304F8 */ lbu $v1, 0x4F8($fp) -/* BFC40 801298F0 24020007 */ addiu $v0, $zero, 0x7 -/* BFC44 801298F4 14620018 */ bne $v1, $v0, .LPAL_80129958 -/* BFC48 801298F8 00000000 */ nop -/* BFC4C 801298FC 94C20034 */ lhu $v0, 0x34($a2) -/* BFC50 80129900 30420020 */ andi $v0, $v0, 0x20 -/* BFC54 80129904 10400014 */ beqz $v0, .LPAL_80129958 -/* BFC58 80129908 00000000 */ nop -/* BFC5C 8012990C 90C3002D */ lbu $v1, 0x2D($a2) -/* BFC60 80129910 93C204E8 */ lbu $v0, 0x4E8($fp) -/* BFC64 80129914 14620004 */ bne $v1, $v0, .LPAL_80129928 -/* BFC68 80129918 3C04FFFF */ lui $a0, (0xFFFF7FFF >> 16) -/* BFC6C 8012991C 34A28600 */ ori $v0, $a1, 0x8600 -/* BFC70 80129920 0804A656 */ j .LPAL_80129958 -/* BFC74 80129924 ACC20038 */ sw $v0, 0x38($a2) -.LPAL_80129928: -/* BFC78 80129928 34847FFF */ ori $a0, $a0, (0xFFFF7FFF & 0xFFFF) -/* BFC7C 8012992C 2402FBFF */ addiu $v0, $zero, -0x401 -/* BFC80 80129930 00A21024 */ and $v0, $a1, $v0 -/* BFC84 80129934 2403FDFF */ addiu $v1, $zero, -0x201 -/* BFC88 80129938 94D9004A */ lhu $t9, 0x4A($a2) -/* BFC8C 8012993C 00431024 */ and $v0, $v0, $v1 -/* BFC90 80129940 A7B900A6 */ sh $t9, 0xA6($sp) -/* BFC94 80129944 94C30034 */ lhu $v1, 0x34($a2) -/* BFC98 80129948 00441024 */ and $v0, $v0, $a0 -/* BFC9C 8012994C ACC20038 */ sw $v0, 0x38($a2) -/* BFCA0 80129950 34630010 */ ori $v1, $v1, 0x10 -/* BFCA4 80129954 A4C30034 */ sh $v1, 0x34($a2) -.LPAL_80129958: -/* BFCA8 80129958 3C028015 */ lui $v0, %hi(D_80154934) -/* BFCAC 8012995C 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BFCB0 80129960 8C420038 */ lw $v0, 0x38($v0) -/* BFCB4 80129964 30420001 */ andi $v0, $v0, 0x1 -/* BFCB8 80129968 10400011 */ beqz $v0, .LPAL_801299B0 -/* BFCBC 8012996C 00000000 */ nop -/* BFCC0 80129970 0C00A65F */ jal rand_int -/* BFCC4 80129974 24042710 */ addiu $a0, $zero, 0x2710 -/* BFCC8 80129978 00021FC2 */ srl $v1, $v0, 31 -/* BFCCC 8012997C 00431821 */ addu $v1, $v0, $v1 -/* BFCD0 80129980 00031843 */ sra $v1, $v1, 1 -/* BFCD4 80129984 00031840 */ sll $v1, $v1, 1 -/* BFCD8 80129988 00431023 */ subu $v0, $v0, $v1 -/* BFCDC 8012998C 02228821 */ addu $s1, $s1, $v0 -/* BFCE0 80129990 0C00A65F */ jal rand_int -/* BFCE4 80129994 24042710 */ addiu $a0, $zero, 0x2710 -/* BFCE8 80129998 00021FC2 */ srl $v1, $v0, 31 -/* BFCEC 8012999C 00431821 */ addu $v1, $v0, $v1 -/* BFCF0 801299A0 00031843 */ sra $v1, $v1, 1 -/* BFCF4 801299A4 00031840 */ sll $v1, $v1, 1 -/* BFCF8 801299A8 00431023 */ subu $v0, $v0, $v1 -/* BFCFC 801299AC 02629821 */ addu $s3, $s3, $v0 -.LPAL_801299B0: -/* BFD00 801299B0 3C038015 */ lui $v1, %hi(D_80154934) -/* BFD04 801299B4 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* BFD08 801299B8 8C620038 */ lw $v0, 0x38($v1) -/* BFD0C 801299BC 30420002 */ andi $v0, $v0, 0x2 -/* BFD10 801299C0 10400074 */ beqz $v0, .LPAL_80129B94 -/* BFD14 801299C4 00000000 */ nop -/* BFD18 801299C8 C4620010 */ lwc1 $f2, 0x10($v1) -/* BFD1C 801299CC 3C013FF0 */ lui $at, (0x3FF00000 >> 16) -/* BFD20 801299D0 44816800 */ mtc1 $at, $f13 -/* BFD24 801299D4 44806000 */ mtc1 $zero, $f12 -/* BFD28 801299D8 460010A1 */ cvt.d.s $f2, $f2 -/* BFD2C 801299DC 462C1081 */ sub.d $f2, $f2, $f12 -/* BFD30 801299E0 3C014014 */ lui $at, (0x40140000 >> 16) -/* BFD34 801299E4 44812800 */ mtc1 $at, $f5 -/* BFD38 801299E8 44802000 */ mtc1 $zero, $f4 -/* BFD3C 801299EC 00000000 */ nop -/* BFD40 801299F0 46241102 */ mul.d $f4, $f2, $f4 -/* BFD44 801299F4 00000000 */ nop -/* BFD48 801299F8 3C01402E */ lui $at, (0x402E0000 >> 16) -/* BFD4C 801299FC 44810800 */ mtc1 $at, $f1 -/* BFD50 80129A00 44800000 */ mtc1 $zero, $f0 -/* BFD54 80129A04 00000000 */ nop -/* BFD58 80129A08 46201082 */ mul.d $f2, $f2, $f0 -/* BFD5C 80129A0C 00000000 */ nop -/* BFD60 80129A10 3C014034 */ lui $at, (0x40340000 >> 16) -/* BFD64 80129A14 44810800 */ mtc1 $at, $f1 -/* BFD68 80129A18 44800000 */ mtc1 $zero, $f0 -/* BFD6C 80129A1C 97C20452 */ lhu $v0, 0x452($fp) -/* BFD70 80129A20 46240001 */ sub.d $f0, $f0, $f4 -/* BFD74 80129A24 44822000 */ mtc1 $v0, $f4 -/* BFD78 80129A28 00000000 */ nop -/* BFD7C 80129A2C 46802120 */ cvt.s.w $f4, $f4 -/* BFD80 80129A30 46200020 */ cvt.s.d $f0, $f0 -/* BFD84 80129A34 46002102 */ mul.s $f4, $f4, $f0 -/* BFD88 80129A38 00000000 */ nop -/* BFD8C 80129A3C 3C018015 */ lui $at, %hi(D_PAL_8014F4D0) -/* BFD90 80129A40 D420F4D0 */ ldc1 $f0, %lo(D_PAL_8014F4D0)($at) -/* BFD94 80129A44 8C620030 */ lw $v0, 0x30($v1) -/* BFD98 80129A48 46220001 */ sub.d $f0, $f0, $f2 -/* BFD9C 80129A4C 44823000 */ mtc1 $v0, $f6 -/* BFDA0 80129A50 00000000 */ nop -/* BFDA4 80129A54 468031A1 */ cvt.d.w $f6, $f6 -/* BFDA8 80129A58 3C013F99 */ lui $at, (0x3F99999A >> 16) -/* BFDAC 80129A5C 3421999A */ ori $at, $at, (0x3F99999A & 0xFFFF) -/* BFDB0 80129A60 44811000 */ mtc1 $at, $f2 -/* BFDB4 80129A64 00000000 */ nop -/* BFDB8 80129A68 46022102 */ mul.s $f4, $f4, $f2 -/* BFDBC 80129A6C 00000000 */ nop -/* BFDC0 80129A70 04410006 */ bgez $v0, .LPAL_80129A8C -/* BFDC4 80129A74 46200220 */ cvt.s.d $f8, $f0 -/* BFDC8 80129A78 3C0141F0 */ lui $at, (0x41F00000 >> 16) -/* BFDCC 80129A7C 44810800 */ mtc1 $at, $f1 -/* BFDD0 80129A80 44800000 */ mtc1 $zero, $f0 -/* BFDD4 80129A84 00000000 */ nop -/* BFDD8 80129A88 46203180 */ add.d $f6, $f6, $f0 -.LPAL_80129A8C: -/* BFDDC 80129A8C 46203520 */ cvt.s.d $f20, $f6 -/* BFDE0 80129A90 4608A502 */ mul.s $f20, $f20, $f8 -/* BFDE4 80129A94 00000000 */ nop -/* BFDE8 80129A98 46142501 */ sub.s $f20, $f4, $f20 -/* BFDEC 80129A9C 4600A30D */ trunc.w.s $f12, $f20 -/* BFDF0 80129AA0 44046000 */ mfc1 $a0, $f12 -/* BFDF4 80129AA4 00000000 */ nop -/* BFDF8 80129AA8 00042400 */ sll $a0, $a0, 16 -/* BFDFC 80129AAC 0C00A4D5 */ jal cosine -/* BFE00 80129AB0 00042403 */ sra $a0, $a0, 16 -/* BFE04 80129AB4 3C028015 */ lui $v0, %hi(D_80154934) -/* BFE08 80129AB8 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BFE0C 80129ABC C4420010 */ lwc1 $f2, 0x10($v0) -/* BFE10 80129AC0 3C013FF0 */ lui $at, (0x3FF00000 >> 16) -/* BFE14 80129AC4 44816800 */ mtc1 $at, $f13 -/* BFE18 80129AC8 44806000 */ mtc1 $zero, $f12 -/* BFE1C 80129ACC 460010A1 */ cvt.d.s $f2, $f2 -/* BFE20 80129AD0 462C1081 */ sub.d $f2, $f2, $f12 -/* BFE24 80129AD4 3C018015 */ lui $at, %hi(D_PAL_8014F4D8) -/* BFE28 80129AD8 D436F4D8 */ ldc1 $f22, %lo(D_PAL_8014F4D8)($at) -/* BFE2C 80129ADC 46361080 */ add.d $f2, $f2, $f22 -/* BFE30 80129AE0 46000021 */ cvt.d.s $f0, $f0 -/* BFE34 80129AE4 46220002 */ mul.d $f0, $f0, $f2 -/* BFE38 80129AE8 00000000 */ nop -/* BFE3C 80129AEC 3C018015 */ lui $at, %hi(D_PAL_8014F4E0) -/* BFE40 80129AF0 D422F4E0 */ ldc1 $f2, %lo(D_PAL_8014F4E0)($at) -/* BFE44 80129AF4 4600A521 */ cvt.d.s $f20, $f20 -/* BFE48 80129AF8 4622A500 */ add.d $f20, $f20, $f2 -/* BFE4C 80129AFC 3C018015 */ lui $at, %hi(D_PAL_8014F4E8) -/* BFE50 80129B00 D422F4E8 */ ldc1 $f2, %lo(D_PAL_8014F4E8)($at) -/* BFE54 80129B04 00111400 */ sll $v0, $s1, 16 -/* BFE58 80129B08 4622A500 */ add.d $f20, $f20, $f2 -/* BFE5C 80129B0C 00021403 */ sra $v0, $v0, 16 -/* BFE60 80129B10 44821000 */ mtc1 $v0, $f2 -/* BFE64 80129B14 00000000 */ nop -/* BFE68 80129B18 468010A1 */ cvt.d.w $f2, $f2 -/* BFE6C 80129B1C 4620A30D */ trunc.w.d $f12, $f20 -/* BFE70 80129B20 44046000 */ mfc1 $a0, $f12 -/* BFE74 80129B24 46201080 */ add.d $f2, $f2, $f0 -/* BFE78 80129B28 00042400 */ sll $a0, $a0, 16 -/* BFE7C 80129B2C 4620130D */ trunc.w.d $f12, $f2 -/* BFE80 80129B30 44116000 */ mfc1 $s1, $f12 -/* BFE84 80129B34 0C00A4D5 */ jal cosine -/* BFE88 80129B38 00042403 */ sra $a0, $a0, 16 -/* BFE8C 80129B3C 3C028015 */ lui $v0, %hi(D_80154934) -/* BFE90 80129B40 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BFE94 80129B44 C4420014 */ lwc1 $f2, 0x14($v0) -/* BFE98 80129B48 3C013FF0 */ lui $at, (0x3FF00000 >> 16) -/* BFE9C 80129B4C 44816800 */ mtc1 $at, $f13 -/* BFEA0 80129B50 44806000 */ mtc1 $zero, $f12 -/* BFEA4 80129B54 460010A1 */ cvt.d.s $f2, $f2 -/* BFEA8 80129B58 462C1081 */ sub.d $f2, $f2, $f12 -/* BFEAC 80129B5C 46361080 */ add.d $f2, $f2, $f22 -/* BFEB0 80129B60 46000021 */ cvt.d.s $f0, $f0 -/* BFEB4 80129B64 46220002 */ mul.d $f0, $f0, $f2 -/* BFEB8 80129B68 00000000 */ nop -/* BFEBC 80129B6C 00131400 */ sll $v0, $s3, 16 -/* BFEC0 80129B70 00021403 */ sra $v0, $v0, 16 -/* BFEC4 80129B74 44821000 */ mtc1 $v0, $f2 -/* BFEC8 80129B78 00000000 */ nop -/* BFECC 80129B7C 468010A1 */ cvt.d.w $f2, $f2 -/* BFED0 80129B80 46201080 */ add.d $f2, $f2, $f0 -/* BFED4 80129B84 4620130D */ trunc.w.d $f12, $f2 -/* BFED8 80129B88 44136000 */ mfc1 $s3, $f12 -/* BFEDC 80129B8C 3C038015 */ lui $v1, %hi(D_80154934) -/* BFEE0 80129B90 8C634934 */ lw $v1, %lo(D_80154934)($v1) -.LPAL_80129B94: -/* BFEE4 80129B94 8C620038 */ lw $v0, 0x38($v1) -/* BFEE8 80129B98 30420200 */ andi $v0, $v0, 0x200 -/* BFEEC 80129B9C 1040006B */ beqz $v0, .LPAL_80129D4C -/* BFEF0 80129BA0 00000000 */ nop -/* BFEF4 80129BA4 C4600010 */ lwc1 $f0, 0x10($v1) -/* BFEF8 80129BA8 3C013FF0 */ lui $at, (0x3FF00000 >> 16) -/* BFEFC 80129BAC 44816800 */ mtc1 $at, $f13 -/* BFF00 80129BB0 44806000 */ mtc1 $zero, $f12 -/* BFF04 80129BB4 46000021 */ cvt.d.s $f0, $f0 -/* BFF08 80129BB8 462C0001 */ sub.d $f0, $f0, $f12 -/* BFF0C 80129BBC 3C014014 */ lui $at, (0x40140000 >> 16) -/* BFF10 80129BC0 44811800 */ mtc1 $at, $f3 -/* BFF14 80129BC4 44801000 */ mtc1 $zero, $f2 -/* BFF18 80129BC8 00000000 */ nop -/* BFF1C 80129BCC 46220002 */ mul.d $f0, $f0, $f2 -/* BFF20 80129BD0 00000000 */ nop -/* BFF24 80129BD4 3C028015 */ lui $v0, %hi(D_8014FEB4) -/* BFF28 80129BD8 9442FEB4 */ lhu $v0, %lo(D_8014FEB4)($v0) -/* BFF2C 80129BDC 8C630030 */ lw $v1, 0x30($v1) -/* BFF30 80129BE0 3C014034 */ lui $at, (0x40340000 >> 16) -/* BFF34 80129BE4 44811800 */ mtc1 $at, $f3 -/* BFF38 80129BE8 44801000 */ mtc1 $zero, $f2 -/* BFF3C 80129BEC 44822000 */ mtc1 $v0, $f4 -/* BFF40 80129BF0 00000000 */ nop -/* BFF44 80129BF4 46802120 */ cvt.s.w $f4, $f4 -/* BFF48 80129BF8 46201081 */ sub.d $f2, $f2, $f0 -/* BFF4C 80129BFC 00031040 */ sll $v0, $v1, 1 -/* BFF50 80129C00 00431021 */ addu $v0, $v0, $v1 -/* BFF54 80129C04 462010A0 */ cvt.s.d $f2, $f2 -/* BFF58 80129C08 46022102 */ mul.s $f4, $f4, $f2 -/* BFF5C 80129C0C 00000000 */ nop -/* BFF60 80129C10 00021900 */ sll $v1, $v0, 4 -/* BFF64 80129C14 00621823 */ subu $v1, $v1, $v0 -/* BFF68 80129C18 3C013F99 */ lui $at, (0x3F99999A >> 16) -/* BFF6C 80129C1C 3421999A */ ori $at, $at, (0x3F99999A & 0xFFFF) -/* BFF70 80129C20 44810000 */ mtc1 $at, $f0 -/* BFF74 80129C24 44831000 */ mtc1 $v1, $f2 -/* BFF78 80129C28 00000000 */ nop -/* BFF7C 80129C2C 468010A1 */ cvt.d.w $f2, $f2 -/* BFF80 80129C30 46002102 */ mul.s $f4, $f4, $f0 -/* BFF84 80129C34 00000000 */ nop -/* BFF88 80129C38 04630007 */ bgezl $v1, .LPAL_80129C58 -/* BFF8C 80129C3C 46201520 */ cvt.s.d $f20, $f2 -/* BFF90 80129C40 3C0141F0 */ lui $at, (0x41F00000 >> 16) -/* BFF94 80129C44 44810800 */ mtc1 $at, $f1 -/* BFF98 80129C48 44800000 */ mtc1 $zero, $f0 -/* BFF9C 80129C4C 00000000 */ nop -/* BFFA0 80129C50 46201080 */ add.d $f2, $f2, $f0 -/* BFFA4 80129C54 46201520 */ cvt.s.d $f20, $f2 -.LPAL_80129C58: -/* BFFA8 80129C58 46142501 */ sub.s $f20, $f4, $f20 -/* BFFAC 80129C5C 4600A30D */ trunc.w.s $f12, $f20 -/* BFFB0 80129C60 44046000 */ mfc1 $a0, $f12 -/* BFFB4 80129C64 00000000 */ nop -/* BFFB8 80129C68 00042400 */ sll $a0, $a0, 16 -/* BFFBC 80129C6C 0C00A4D5 */ jal cosine -/* BFFC0 80129C70 00042403 */ sra $a0, $a0, 16 -/* BFFC4 80129C74 3C028015 */ lui $v0, %hi(D_80154934) -/* BFFC8 80129C78 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* BFFCC 80129C7C C4420010 */ lwc1 $f2, 0x10($v0) -/* BFFD0 80129C80 3C013FF0 */ lui $at, (0x3FF00000 >> 16) -/* BFFD4 80129C84 44816800 */ mtc1 $at, $f13 -/* BFFD8 80129C88 44806000 */ mtc1 $zero, $f12 -/* BFFDC 80129C8C 460010A1 */ cvt.d.s $f2, $f2 -/* BFFE0 80129C90 462C1081 */ sub.d $f2, $f2, $f12 -/* BFFE4 80129C94 3C018015 */ lui $at, %hi(D_PAL_8014F4F0) -/* BFFE8 80129C98 D436F4F0 */ ldc1 $f22, %lo(D_PAL_8014F4F0)($at) -/* BFFEC 80129C9C 46361080 */ add.d $f2, $f2, $f22 -/* BFFF0 80129CA0 46000021 */ cvt.d.s $f0, $f0 -/* BFFF4 80129CA4 46220002 */ mul.d $f0, $f0, $f2 -/* BFFF8 80129CA8 00000000 */ nop -/* BFFFC 80129CAC 3C018015 */ lui $at, %hi(D_PAL_8014F4F8) -/* C0000 80129CB0 D422F4F8 */ ldc1 $f2, %lo(D_PAL_8014F4F8)($at) -/* C0004 80129CB4 4600A521 */ cvt.d.s $f20, $f20 -/* C0008 80129CB8 4622A500 */ add.d $f20, $f20, $f2 -/* C000C 80129CBC 3C018015 */ lui $at, %hi(D_PAL_8014F500) -/* C0010 80129CC0 D422F500 */ ldc1 $f2, %lo(D_PAL_8014F500)($at) -/* C0014 80129CC4 00111400 */ sll $v0, $s1, 16 -/* C0018 80129CC8 4622A500 */ add.d $f20, $f20, $f2 -/* C001C 80129CCC 00021403 */ sra $v0, $v0, 16 -/* C0020 80129CD0 44821000 */ mtc1 $v0, $f2 -/* C0024 80129CD4 00000000 */ nop -/* C0028 80129CD8 468010A1 */ cvt.d.w $f2, $f2 -/* C002C 80129CDC 4620A30D */ trunc.w.d $f12, $f20 -/* C0030 80129CE0 44046000 */ mfc1 $a0, $f12 -/* C0034 80129CE4 46201080 */ add.d $f2, $f2, $f0 -/* C0038 80129CE8 00042400 */ sll $a0, $a0, 16 -/* C003C 80129CEC 4620130D */ trunc.w.d $f12, $f2 -/* C0040 80129CF0 44116000 */ mfc1 $s1, $f12 -/* C0044 80129CF4 0C00A4D5 */ jal cosine -/* C0048 80129CF8 00042403 */ sra $a0, $a0, 16 -/* C004C 80129CFC 3C028015 */ lui $v0, %hi(D_80154934) -/* C0050 80129D00 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* C0054 80129D04 C4420014 */ lwc1 $f2, 0x14($v0) -/* C0058 80129D08 3C013FF0 */ lui $at, (0x3FF00000 >> 16) -/* C005C 80129D0C 44816800 */ mtc1 $at, $f13 -/* C0060 80129D10 44806000 */ mtc1 $zero, $f12 -/* C0064 80129D14 460010A1 */ cvt.d.s $f2, $f2 -/* C0068 80129D18 462C1081 */ sub.d $f2, $f2, $f12 -/* C006C 80129D1C 46361080 */ add.d $f2, $f2, $f22 -/* C0070 80129D20 46000021 */ cvt.d.s $f0, $f0 -/* C0074 80129D24 46220002 */ mul.d $f0, $f0, $f2 -/* C0078 80129D28 00000000 */ nop -/* C007C 80129D2C 00131400 */ sll $v0, $s3, 16 -/* C0080 80129D30 00021403 */ sra $v0, $v0, 16 -/* C0084 80129D34 44821000 */ mtc1 $v0, $f2 -/* C0088 80129D38 00000000 */ nop -/* C008C 80129D3C 468010A1 */ cvt.d.w $f2, $f2 -/* C0090 80129D40 46201080 */ add.d $f2, $f2, $f0 -/* C0094 80129D44 4620130D */ trunc.w.d $f12, $f2 -/* C0098 80129D48 44136000 */ mfc1 $s3, $f12 -.LPAL_80129D4C: -/* C009C 80129D4C 3C058015 */ lui $a1, %hi(D_80154934) -/* C00A0 80129D50 8CA54934 */ lw $a1, %lo(D_80154934)($a1) -/* C00A4 80129D54 8CA60038 */ lw $a2, 0x38($a1) -/* C00A8 80129D58 30C20040 */ andi $v0, $a2, 0x40 -/* C00AC 80129D5C 10400019 */ beqz $v0, .LPAL_80129DC4 -/* C00B0 80129D60 30C20400 */ andi $v0, $a2, 0x400 -/* C00B4 80129D64 97C30452 */ lhu $v1, 0x452($fp) -/* C00B8 80129D68 3C02AAAA */ lui $v0, (0xAAAAAAAB >> 16) -/* C00BC 80129D6C 3442AAAB */ ori $v0, $v0, (0xAAAAAAAB & 0xFFFF) -/* C00C0 80129D70 00620019 */ multu $v1, $v0 -/* C00C4 80129D74 8CA40030 */ lw $a0, 0x30($a1) -/* C00C8 80129D78 3C036666 */ lui $v1, (0x66666667 >> 16) -/* C00CC 80129D7C 34636667 */ ori $v1, $v1, (0x66666667 & 0xFFFF) -/* C00D0 80129D80 0000C010 */ mfhi $t8 -/* C00D4 80129D84 00181042 */ srl $v0, $t8, 1 -/* C00D8 80129D88 3042FFFF */ andi $v0, $v0, 0xFFFF -/* C00DC 80129D8C 00822023 */ subu $a0, $a0, $v0 -/* C00E0 80129D90 04820001 */ bltzl $a0, .LPAL_80129D98 -/* C00E4 80129D94 00042023 */ negu $a0, $a0 -.LPAL_80129D98: -/* C00E8 80129D98 00830018 */ mult $a0, $v1 -/* C00EC 80129D9C 000417C3 */ sra $v0, $a0, 31 -/* C00F0 80129DA0 0000C010 */ mfhi $t8 -/* C00F4 80129DA4 00181883 */ sra $v1, $t8, 2 -/* C00F8 80129DA8 00621823 */ subu $v1, $v1, $v0 -/* C00FC 80129DAC 00031080 */ sll $v0, $v1, 2 -/* C0100 80129DB0 00431021 */ addu $v0, $v0, $v1 -/* C0104 80129DB4 00021040 */ sll $v0, $v0, 1 -/* C0108 80129DB8 00822023 */ subu $a0, $a0, $v0 -/* C010C 80129DBC A7A400A6 */ sh $a0, 0xA6($sp) -/* C0110 80129DC0 30C20400 */ andi $v0, $a2, 0x400 -.LPAL_80129DC4: -/* C0114 80129DC4 1040001B */ beqz $v0, .LPAL_80129E34 -/* C0118 80129DC8 30C20080 */ andi $v0, $a2, 0x80 -/* C011C 80129DCC 3C028007 */ lui $v0, %hi(gGameStatusPtr) -/* C0120 80129DD0 8C4214AC */ lw $v0, %lo(gGameStatusPtr)($v0) -/* C0124 80129DD4 94430134 */ lhu $v1, 0x134($v0) -/* C0128 80129DD8 3C02AAAA */ lui $v0, (0xAAAAAAAB >> 16) -/* C012C 80129DDC 3442AAAB */ ori $v0, $v0, (0xAAAAAAAB & 0xFFFF) -/* C0130 80129DE0 00620019 */ multu $v1, $v0 -/* C0134 80129DE4 8CA40030 */ lw $a0, 0x30($a1) -/* C0138 80129DE8 3C036666 */ lui $v1, (0x66666667 >> 16) -/* C013C 80129DEC 34636667 */ ori $v1, $v1, (0x66666667 & 0xFFFF) -/* C0140 80129DF0 0000C010 */ mfhi $t8 -/* C0144 80129DF4 00181042 */ srl $v0, $t8, 1 -/* C0148 80129DF8 3042FFFF */ andi $v0, $v0, 0xFFFF -/* C014C 80129DFC 00822023 */ subu $a0, $a0, $v0 -/* C0150 80129E00 04820001 */ bltzl $a0, .LPAL_80129E08 -/* C0154 80129E04 00042023 */ negu $a0, $a0 -.LPAL_80129E08: -/* C0158 80129E08 00830018 */ mult $a0, $v1 -/* C015C 80129E0C 000417C3 */ sra $v0, $a0, 31 -/* C0160 80129E10 0000C010 */ mfhi $t8 -/* C0164 80129E14 00181883 */ sra $v1, $t8, 2 -/* C0168 80129E18 00621823 */ subu $v1, $v1, $v0 -/* C016C 80129E1C 00031080 */ sll $v0, $v1, 2 -/* C0170 80129E20 00431021 */ addu $v0, $v0, $v1 -/* C0174 80129E24 00021040 */ sll $v0, $v0, 1 -/* C0178 80129E28 00822023 */ subu $a0, $a0, $v0 -/* C017C 80129E2C A7A400A6 */ sh $a0, 0xA6($sp) -/* C0180 80129E30 30C20080 */ andi $v0, $a2, 0x80 -.LPAL_80129E34: -/* C0184 80129E34 10400020 */ beqz $v0, .LPAL_80129EB8 -/* C0188 80129E38 3C05E300 */ lui $a1, (0xE3001A01 >> 16) -/* C018C 80129E3C 34A51A01 */ ori $a1, $a1, (0xE3001A01 & 0xFFFF) -/* C0190 80129E40 3C06E200 */ lui $a2, (0xE2001E01 >> 16) -/* C0194 80129E44 34C61E01 */ ori $a2, $a2, (0xE2001E01 & 0xFFFF) -/* C0198 80129E48 00101400 */ sll $v0, $s0, 16 -/* C019C 80129E4C 00021403 */ sra $v0, $v0, 16 -/* C01A0 80129E50 44820000 */ mtc1 $v0, $f0 -/* C01A4 80129E54 00000000 */ nop -/* C01A8 80129E58 46800021 */ cvt.d.w $f0, $f0 -/* C01AC 80129E5C 24020020 */ addiu $v0, $zero, 0x20 -/* C01B0 80129E60 8EE30000 */ lw $v1, 0x0($s7) -/* C01B4 80129E64 3C018015 */ lui $at, %hi(D_PAL_8014F508) -/* C01B8 80129E68 D422F508 */ ldc1 $f2, %lo(D_PAL_8014F508)($at) -/* C01BC 80129E6C 0060202D */ daddu $a0, $v1, $zero -/* C01C0 80129E70 24630008 */ addiu $v1, $v1, 0x8 -/* C01C4 80129E74 AEE30000 */ sw $v1, 0x0($s7) -/* C01C8 80129E78 97B900B6 */ lhu $t9, 0xB6($sp) -/* C01CC 80129E7C 46220003 */ div.d $f0, $f0, $f2 -/* C01D0 80129E80 44992000 */ mtc1 $t9, $f4 -/* C01D4 80129E84 00000000 */ nop -/* C01D8 80129E88 46802121 */ cvt.d.w $f4, $f4 -/* C01DC 80129E8C 46202102 */ mul.d $f4, $f4, $f0 -/* C01E0 80129E90 00000000 */ nop -/* C01E4 80129E94 AC820004 */ sw $v0, 0x4($a0) -/* C01E8 80129E98 24620008 */ addiu $v0, $v1, 0x8 -/* C01EC 80129E9C AC850000 */ sw $a1, 0x0($a0) -/* C01F0 80129EA0 24180003 */ addiu $t8, $zero, 0x3 -/* C01F4 80129EA4 AEE20000 */ sw $v0, 0x0($s7) -/* C01F8 80129EA8 AC660000 */ sw $a2, 0x0($v1) -/* C01FC 80129EAC AC780004 */ sw $t8, 0x4($v1) -/* C0200 80129EB0 4620230D */ trunc.w.d $f12, $f4 -/* C0204 80129EB4 44106000 */ mfc1 $s0, $f12 -.LPAL_80129EB8: -/* C0208 80129EB8 3C028015 */ lui $v0, %hi(D_80154934) -/* C020C 80129EBC 8C424934 */ lw $v0, %lo(D_80154934)($v0) -/* C0210 80129EC0 94420034 */ lhu $v0, 0x34($v0) -/* C0214 80129EC4 30420002 */ andi $v0, $v0, 0x2 -/* C0218 80129EC8 14400005 */ bnez $v0, .LPAL_80129EE0 -/* C021C 80129ECC 00101C00 */ sll $v1, $s0, 16 -/* C0220 80129ED0 97B90096 */ lhu $t9, 0x96($sp) -/* C0224 80129ED4 00191400 */ sll $v0, $t9, 16 -/* C0228 80129ED8 10620063 */ beq $v1, $v0, .LPAL_8012A068 -/* C022C 80129EDC 00101400 */ sll $v0, $s0, 16 -.LPAL_80129EE0: -/* C0230 80129EE0 97B80096 */ lhu $t8, 0x96($sp) -/* C0234 80129EE4 00181400 */ sll $v0, $t8, 16 -/* C0238 80129EE8 00021403 */ sra $v0, $v0, 16 -/* C023C 80129EEC 284200FF */ slti $v0, $v0, 0xFF -/* C0240 80129EF0 10400009 */ beqz $v0, .LPAL_80129F18 -/* C0244 80129EF4 00101400 */ sll $v0, $s0, 16 -/* C0248 80129EF8 00021403 */ sra $v0, $v0, 16 -/* C024C 80129EFC 284200FF */ slti $v0, $v0, 0xFF -/* C0250 80129F00 10400005 */ beqz $v0, .LPAL_80129F18 -/* C0254 80129F04 00000000 */ nop -/* C0258 80129F08 8EE20000 */ lw $v0, 0x0($s7) -/* C025C 80129F0C 0040182D */ daddu $v1, $v0, $zero -/* C0260 80129F10 0804A7F1 */ j .LPAL_80129FC4 -/* C0264 80129F14 24420008 */ addiu $v0, $v0, 0x8 -.LPAL_80129F18: -/* C0268 80129F18 97B90096 */ lhu $t9, 0x96($sp) -/* C026C 80129F1C 241800FF */ addiu $t8, $zero, 0xFF -/* C0270 80129F20 00191400 */ sll $v0, $t9, 16 -/* C0274 80129F24 00021403 */ sra $v0, $v0, 16 -/* C0278 80129F28 1458002C */ bne $v0, $t8, .LPAL_80129FDC -/* C027C 80129F2C 00101400 */ sll $v0, $s0, 16 -/* C0280 80129F30 00021403 */ sra $v0, $v0, 16 -/* C0284 80129F34 0058102A */ slt $v0, $v0, $t8 -/* C0288 80129F38 10400028 */ beqz $v0, .LPAL_80129FDC -/* C028C 80129F3C 3C19E700 */ lui $t9, (0xE7000000 >> 16) -/* C0290 80129F40 8EE50000 */ lw $a1, 0x0($s7) -/* C0294 80129F44 00A0102D */ daddu $v0, $a1, $zero -/* C0298 80129F48 AC590000 */ sw $t9, 0x0($v0) -/* C029C 80129F4C AC400004 */ sw $zero, 0x4($v0) -/* C02A0 80129F50 8FC204FC */ lw $v0, 0x4FC($fp) -/* C02A4 80129F54 24A50008 */ addiu $a1, $a1, 0x8 -/* C02A8 80129F58 30424000 */ andi $v0, $v0, 0x4000 -/* C02AC 80129F5C 10400006 */ beqz $v0, .LPAL_80129F78 -/* C02B0 80129F60 AEE50000 */ sw $a1, 0x0($s7) -/* C02B4 80129F64 3C04E200 */ lui $a0, (0xE200001C >> 16) -/* C02B8 80129F68 3484001C */ ori $a0, $a0, (0xE200001C & 0xFFFF) -/* C02BC 80129F6C 3C030050 */ lui $v1, (0x504840 >> 16) -/* C02C0 80129F70 0804A7E2 */ j .LPAL_80129F88 -/* C02C4 80129F74 34634840 */ ori $v1, $v1, (0x504840 & 0xFFFF) -.LPAL_80129F78: -/* C02C8 80129F78 3C04E200 */ lui $a0, (0xE200001C >> 16) -/* C02CC 80129F7C 3484001C */ ori $a0, $a0, (0xE200001C & 0xFFFF) -/* C02D0 80129F80 3C030050 */ lui $v1, (0x504B40 >> 16) -/* C02D4 80129F84 34634B40 */ ori $v1, $v1, (0x504B40 & 0xFFFF) -.LPAL_80129F88: -/* C02D8 80129F88 24A20008 */ addiu $v0, $a1, 0x8 -/* C02DC 80129F8C AEE20000 */ sw $v0, 0x0($s7) -/* C02E0 80129F90 ACA40000 */ sw $a0, 0x0($a1) -/* C02E4 80129F94 ACA30004 */ sw $v1, 0x4($a1) -/* C02E8 80129F98 3C05FCFF */ lui $a1, (0xFCFF97FF >> 16) -/* C02EC 80129F9C 34A597FF */ ori $a1, $a1, (0xFCFF97FF & 0xFFFF) -/* C02F0 80129FA0 3C04FF2C */ lui $a0, (0xFF2CFE7F >> 16) -/* C02F4 80129FA4 8EE30000 */ lw $v1, 0x0($s7) -/* C02F8 80129FA8 3484FE7F */ ori $a0, $a0, (0xFF2CFE7F & 0xFFFF) -/* C02FC 80129FAC 0060102D */ daddu $v0, $v1, $zero -/* C0300 80129FB0 24630008 */ addiu $v1, $v1, 0x8 -/* C0304 80129FB4 AEE30000 */ sw $v1, 0x0($s7) -/* C0308 80129FB8 AC450000 */ sw $a1, 0x0($v0) -/* C030C 80129FBC AC440004 */ sw $a0, 0x4($v0) -/* C0310 80129FC0 24620008 */ addiu $v0, $v1, 0x8 -.LPAL_80129FC4: -/* C0314 80129FC4 AEE20000 */ sw $v0, 0x0($s7) -/* C0318 80129FC8 3C02FA00 */ lui $v0, (0xFA000000 >> 16) -/* C031C 80129FCC AC620000 */ sw $v0, 0x0($v1) -/* C0320 80129FD0 320200FF */ andi $v0, $s0, 0xFF -/* C0324 80129FD4 0804A818 */ j .LPAL_8012A060 -/* C0328 80129FD8 AC620004 */ sw $v0, 0x4($v1) -.LPAL_80129FDC: -/* C032C 80129FDC 97B80096 */ lhu $t8, 0x96($sp) -/* C0330 80129FE0 00181400 */ sll $v0, $t8, 16 -/* C0334 80129FE4 00021403 */ sra $v0, $v0, 16 -/* C0338 80129FE8 284200FF */ slti $v0, $v0, 0xFF -/* C033C 80129FEC 1040001C */ beqz $v0, .LPAL_8012A060 -/* C0340 80129FF0 00101400 */ sll $v0, $s0, 16 -/* C0344 80129FF4 00021403 */ sra $v0, $v0, 16 -/* C0348 80129FF8 241900FF */ addiu $t9, $zero, 0xFF -/* C034C 80129FFC 54590019 */ bnel $v0, $t9, .LPAL_8012A064 -/* C0350 8012A000 A7B00096 */ sh $s0, 0x96($sp) -/* C0354 8012A004 3C06E200 */ lui $a2, (0xE200001C >> 16) -/* C0358 8012A008 34C6001C */ ori $a2, $a2, (0xE200001C & 0xFFFF) -/* C035C 8012A00C 3C040F0A */ lui $a0, (0xF0A7008 >> 16) -/* C0360 8012A010 34847008 */ ori $a0, $a0, (0xF0A7008 & 0xFFFF) -/* C0364 8012A014 3C07FCFF */ lui $a3, (0xFCFFFFFF >> 16) -/* C0368 8012A018 34E7FFFF */ ori $a3, $a3, (0xFCFFFFFF & 0xFFFF) -/* C036C 8012A01C 3C05FFFC */ lui $a1, (0xFFFCF279 >> 16) -/* C0370 8012A020 8EE30000 */ lw $v1, 0x0($s7) -/* C0374 8012A024 34A5F279 */ ori $a1, $a1, (0xFFFCF279 & 0xFFFF) -/* C0378 8012A028 0060102D */ daddu $v0, $v1, $zero -/* C037C 8012A02C 24630008 */ addiu $v1, $v1, 0x8 -/* C0380 8012A030 3C18E700 */ lui $t8, (0xE7000000 >> 16) -/* C0384 8012A034 AEE30000 */ sw $v1, 0x0($s7) -/* C0388 8012A038 AC580000 */ sw $t8, 0x0($v0) -/* C038C 8012A03C AC400004 */ sw $zero, 0x4($v0) -/* C0390 8012A040 24620008 */ addiu $v0, $v1, 0x8 -/* C0394 8012A044 AEE20000 */ sw $v0, 0x0($s7) -/* C0398 8012A048 24620010 */ addiu $v0, $v1, 0x10 -/* C039C 8012A04C AC660000 */ sw $a2, 0x0($v1) -/* C03A0 8012A050 AC640004 */ sw $a0, 0x4($v1) -/* C03A4 8012A054 AEE20000 */ sw $v0, 0x0($s7) -/* C03A8 8012A058 AC670008 */ sw $a3, 0x8($v1) -/* C03AC 8012A05C AC65000C */ sw $a1, 0xC($v1) -.LPAL_8012A060: -/* C03B0 8012A060 A7B00096 */ sh $s0, 0x96($sp) -.LPAL_8012A064: -/* C03B4 8012A064 00101400 */ sll $v0, $s0, 16 -.LPAL_8012A068: -/* C03B8 8012A068 18400288 */ blez $v0, .LPAL_8012AA8C -/* C03BC 8012A06C 00000000 */ nop -/* C03C0 8012A070 3C068015 */ lui $a2, %hi(D_80154934) -/* C03C4 8012A074 8CC64934 */ lw $a2, %lo(D_80154934)($a2) -/* C03C8 8012A078 8CC30038 */ lw $v1, 0x38($a2) -/* C03CC 8012A07C 30620800 */ andi $v0, $v1, 0x800 -/* C03D0 8012A080 10400092 */ beqz $v0, .LPAL_8012A2CC -/* C03D4 8012A084 240400F0 */ addiu $a0, $zero, 0xF0 -/* C03D8 8012A088 8CC30020 */ lw $v1, 0x20($a2) -/* C03DC 8012A08C 8CC2004C */ lw $v0, 0x4C($a2) -/* C03E0 8012A090 00621821 */ addu $v1, $v1, $v0 -/* C03E4 8012A094 90650001 */ lbu $a1, 0x1($v1) -/* C03E8 8012A098 10A401B8 */ beq $a1, $a0, .LPAL_8012A77C -/* C03EC 8012A09C 00000000 */ nop -/* C03F0 8012A0A0 90620002 */ lbu $v0, 0x2($v1) -/* C03F4 8012A0A4 104401B5 */ beq $v0, $a0, .LPAL_8012A77C -/* C03F8 8012A0A8 00000000 */ nop -/* C03FC 8012A0AC 90620003 */ lbu $v0, 0x3($v1) -/* C0400 8012A0B0 104401B2 */ beq $v0, $a0, .LPAL_8012A77C -/* C0404 8012A0B4 00000000 */ nop -/* C0408 8012A0B8 90620004 */ lbu $v0, 0x4($v1) -/* C040C 8012A0BC 104401AF */ beq $v0, $a0, .LPAL_8012A77C -/* C0410 8012A0C0 240200FB */ addiu $v0, $zero, 0xFB -/* C0414 8012A0C4 14A20026 */ bne $a1, $v0, .LPAL_8012A160 -/* C0418 8012A0C8 24190004 */ addiu $t9, $zero, 0x4 -/* C041C 8012A0CC 93C204F8 */ lbu $v0, 0x4F8($fp) -/* C0420 8012A0D0 14590023 */ bne $v0, $t9, .LPAL_8012A160 -/* C0424 8012A0D4 00111400 */ sll $v0, $s1, 16 -/* C0428 8012A0D8 C4C60014 */ lwc1 $f6, 0x14($a2) -/* C042C 8012A0DC 3C018015 */ lui $at, %hi(D_PAL_8014F510) -/* C0430 8012A0E0 D428F510 */ ldc1 $f8, %lo(D_PAL_8014F510)($at) -/* C0434 8012A0E4 460031A1 */ cvt.d.s $f6, $f6 -/* C0438 8012A0E8 46283182 */ mul.d $f6, $f6, $f8 -/* C043C 8012A0EC 00000000 */ nop -/* C0440 8012A0F0 C4C00010 */ lwc1 $f0, 0x10($a2) -/* C0444 8012A0F4 46000021 */ cvt.d.s $f0, $f0 -/* C0448 8012A0F8 46280002 */ mul.d $f0, $f0, $f8 -/* C044C 8012A0FC 00000000 */ nop -/* C0450 8012A100 3C014018 */ lui $at, (0x40180000 >> 16) -/* C0454 8012A104 44812800 */ mtc1 $at, $f5 -/* C0458 8012A108 44802000 */ mtc1 $zero, $f4 -/* C045C 8012A10C 462031A0 */ cvt.s.d $f6, $f6 -/* C0460 8012A110 460030A1 */ cvt.d.s $f2, $f6 -/* C0464 8012A114 46281083 */ div.d $f2, $f2, $f8 -/* C0468 8012A118 46241082 */ mul.d $f2, $f2, $f4 -/* C046C 8012A11C 00000000 */ nop -/* C0470 8012A120 00021403 */ sra $v0, $v0, 16 -/* C0474 8012A124 46200020 */ cvt.s.d $f0, $f0 -/* C0478 8012A128 E4C00018 */ swc1 $f0, 0x18($a2) -/* C047C 8012A12C 46201220 */ cvt.s.d $f8, $f2 -/* C0480 8012A130 44821000 */ mtc1 $v0, $f2 -/* C0484 8012A134 00000000 */ nop -/* C0488 8012A138 468010A0 */ cvt.s.w $f2, $f2 -/* C048C 8012A13C 00131400 */ sll $v0, $s3, 16 -/* C0490 8012A140 46081081 */ sub.s $f2, $f2, $f8 -/* C0494 8012A144 00021403 */ sra $v0, $v0, 16 -/* C0498 8012A148 44820000 */ mtc1 $v0, $f0 -/* C049C 8012A14C 00000000 */ nop -/* C04A0 8012A150 46800020 */ cvt.s.w $f0, $f0 -/* C04A4 8012A154 46080001 */ sub.s $f0, $f0, $f8 -/* C04A8 8012A158 0804A8AD */ j .LPAL_8012A2B4 -/* C04AC 8012A15C E4C6001C */ swc1 $f6, 0x1C($a2) -.LPAL_8012A160: -/* C04B0 8012A160 3C048015 */ lui $a0, %hi(D_80154934) -/* C04B4 8012A164 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* C04B8 8012A168 8C820020 */ lw $v0, 0x20($a0) -/* C04BC 8012A16C 8C83004C */ lw $v1, 0x4C($a0) -/* C04C0 8012A170 00431021 */ addu $v0, $v0, $v1 -/* C04C4 8012A174 90430002 */ lbu $v1, 0x2($v0) -/* C04C8 8012A178 240200FB */ addiu $v0, $zero, 0xFB -/* C04CC 8012A17C 14620026 */ bne $v1, $v0, .LPAL_8012A218 -/* C04D0 8012A180 24190004 */ addiu $t9, $zero, 0x4 -/* C04D4 8012A184 93C204F8 */ lbu $v0, 0x4F8($fp) -/* C04D8 8012A188 14590023 */ bne $v0, $t9, .LPAL_8012A218 -/* C04DC 8012A18C 00111400 */ sll $v0, $s1, 16 -/* C04E0 8012A190 C4860014 */ lwc1 $f6, 0x14($a0) -/* C04E4 8012A194 3C018015 */ lui $at, %hi(D_PAL_8014F518) -/* C04E8 8012A198 D428F518 */ ldc1 $f8, %lo(D_PAL_8014F518)($at) -/* C04EC 8012A19C 460031A1 */ cvt.d.s $f6, $f6 -/* C04F0 8012A1A0 46283182 */ mul.d $f6, $f6, $f8 -/* C04F4 8012A1A4 00000000 */ nop -/* C04F8 8012A1A8 C4800010 */ lwc1 $f0, 0x10($a0) -/* C04FC 8012A1AC 46000021 */ cvt.d.s $f0, $f0 -/* C0500 8012A1B0 46280002 */ mul.d $f0, $f0, $f8 -/* C0504 8012A1B4 00000000 */ nop -/* C0508 8012A1B8 3C014008 */ lui $at, (0x40080000 >> 16) -/* C050C 8012A1BC 44812800 */ mtc1 $at, $f5 -/* C0510 8012A1C0 44802000 */ mtc1 $zero, $f4 -/* C0514 8012A1C4 462031A0 */ cvt.s.d $f6, $f6 -/* C0518 8012A1C8 460030A1 */ cvt.d.s $f2, $f6 -/* C051C 8012A1CC 46281083 */ div.d $f2, $f2, $f8 -/* C0520 8012A1D0 46241082 */ mul.d $f2, $f2, $f4 -/* C0524 8012A1D4 00000000 */ nop -/* C0528 8012A1D8 00021403 */ sra $v0, $v0, 16 -/* C052C 8012A1DC 46200020 */ cvt.s.d $f0, $f0 -/* C0530 8012A1E0 E4800018 */ swc1 $f0, 0x18($a0) -/* C0534 8012A1E4 46201220 */ cvt.s.d $f8, $f2 -/* C0538 8012A1E8 44821000 */ mtc1 $v0, $f2 -/* C053C 8012A1EC 00000000 */ nop -/* C0540 8012A1F0 468010A0 */ cvt.s.w $f2, $f2 -/* C0544 8012A1F4 00131400 */ sll $v0, $s3, 16 -/* C0548 8012A1F8 46081081 */ sub.s $f2, $f2, $f8 -/* C054C 8012A1FC 00021403 */ sra $v0, $v0, 16 -/* C0550 8012A200 44820000 */ mtc1 $v0, $f0 -/* C0554 8012A204 00000000 */ nop -/* C0558 8012A208 46800020 */ cvt.s.w $f0, $f0 -/* C055C 8012A20C 46080001 */ sub.s $f0, $f0, $f8 -/* C0560 8012A210 0804A8AD */ j .LPAL_8012A2B4 -/* C0564 8012A214 E486001C */ swc1 $f6, 0x1C($a0) -.LPAL_8012A218: -/* C0568 8012A218 8C820020 */ lw $v0, 0x20($a0) -/* C056C 8012A21C 8C83004C */ lw $v1, 0x4C($a0) -/* C0570 8012A220 00431021 */ addu $v0, $v0, $v1 -/* C0574 8012A224 90430003 */ lbu $v1, 0x3($v0) -/* C0578 8012A228 240200FB */ addiu $v0, $zero, 0xFB -/* C057C 8012A22C 14620153 */ bne $v1, $v0, .LPAL_8012A77C -/* C0580 8012A230 24190004 */ addiu $t9, $zero, 0x4 -/* C0584 8012A234 93C204F8 */ lbu $v0, 0x4F8($fp) -/* C0588 8012A238 14590150 */ bne $v0, $t9, .LPAL_8012A77C -/* C058C 8012A23C 00111400 */ sll $v0, $s1, 16 -/* C0590 8012A240 C4840014 */ lwc1 $f4, 0x14($a0) -/* C0594 8012A244 3C018015 */ lui $at, %hi(D_PAL_8014F520) -/* C0598 8012A248 D426F520 */ ldc1 $f6, %lo(D_PAL_8014F520)($at) -/* C059C 8012A24C 46002121 */ cvt.d.s $f4, $f4 -/* C05A0 8012A250 46262102 */ mul.d $f4, $f4, $f6 -/* C05A4 8012A254 00000000 */ nop -/* C05A8 8012A258 C4820010 */ lwc1 $f2, 0x10($a0) -/* C05AC 8012A25C 460010A1 */ cvt.d.s $f2, $f2 -/* C05B0 8012A260 46261082 */ mul.d $f2, $f2, $f6 -/* C05B4 8012A264 00000000 */ nop -/* C05B8 8012A268 00021403 */ sra $v0, $v0, 16 -/* C05BC 8012A26C 46202120 */ cvt.s.d $f4, $f4 -/* C05C0 8012A270 46002021 */ cvt.d.s $f0, $f4 -/* C05C4 8012A274 46260003 */ div.d $f0, $f0, $f6 -/* C05C8 8012A278 462010A0 */ cvt.s.d $f2, $f2 -/* C05CC 8012A27C E4820018 */ swc1 $f2, 0x18($a0) -/* C05D0 8012A280 46200000 */ add.d $f0, $f0, $f0 -/* C05D4 8012A284 44821000 */ mtc1 $v0, $f2 -/* C05D8 8012A288 00000000 */ nop -/* C05DC 8012A28C 468010A0 */ cvt.s.w $f2, $f2 -/* C05E0 8012A290 00131400 */ sll $v0, $s3, 16 -/* C05E4 8012A294 46200220 */ cvt.s.d $f8, $f0 -/* C05E8 8012A298 46081081 */ sub.s $f2, $f2, $f8 -/* C05EC 8012A29C 00021403 */ sra $v0, $v0, 16 -/* C05F0 8012A2A0 44820000 */ mtc1 $v0, $f0 -/* C05F4 8012A2A4 00000000 */ nop -/* C05F8 8012A2A8 46800020 */ cvt.s.w $f0, $f0 -/* C05FC 8012A2AC 46080001 */ sub.s $f0, $f0, $f8 -/* C0600 8012A2B0 E484001C */ swc1 $f4, 0x1C($a0) -.LPAL_8012A2B4: -/* C0604 8012A2B4 4600130D */ trunc.w.s $f12, $f2 -/* C0608 8012A2B8 44116000 */ mfc1 $s1, $f12 -/* C060C 8012A2BC 4600030D */ trunc.w.s $f12, $f0 -/* C0610 8012A2C0 44136000 */ mfc1 $s3, $f12 -/* C0614 8012A2C4 0804A9DF */ j .LPAL_8012A77C -/* C0618 8012A2C8 00000000 */ nop -.LPAL_8012A2CC: -/* C061C 8012A2CC 30621000 */ andi $v0, $v1, 0x1000 -/* C0620 8012A2D0 10400060 */ beqz $v0, .LPAL_8012A454 -/* C0624 8012A2D4 30622000 */ andi $v0, $v1, 0x2000 -/* C0628 8012A2D8 8CC30020 */ lw $v1, 0x20($a2) -/* C062C 8012A2DC 8CC2004C */ lw $v0, 0x4C($a2) -/* C0630 8012A2E0 00621821 */ addu $v1, $v1, $v0 -/* C0634 8012A2E4 90650001 */ lbu $a1, 0x1($v1) -/* C0638 8012A2E8 10A40124 */ beq $a1, $a0, .LPAL_8012A77C -/* C063C 8012A2EC 00000000 */ nop -/* C0640 8012A2F0 90620002 */ lbu $v0, 0x2($v1) -/* C0644 8012A2F4 10440121 */ beq $v0, $a0, .LPAL_8012A77C -/* C0648 8012A2F8 00000000 */ nop -/* C064C 8012A2FC 90620003 */ lbu $v0, 0x3($v1) -/* C0650 8012A300 1044011E */ beq $v0, $a0, .LPAL_8012A77C -/* C0654 8012A304 00000000 */ nop -/* C0658 8012A308 90620004 */ lbu $v0, 0x4($v1) -/* C065C 8012A30C 1044011B */ beq $v0, $a0, .LPAL_8012A77C -/* C0660 8012A310 240200FB */ addiu $v0, $zero, 0xFB -/* C0664 8012A314 14A20015 */ bne $a1, $v0, .LPAL_8012A36C -/* C0668 8012A318 24190004 */ addiu $t9, $zero, 0x4 -/* C066C 8012A31C 93C204F8 */ lbu $v0, 0x4F8($fp) -/* C0670 8012A320 14590012 */ bne $v0, $t9, .LPAL_8012A36C -/* C0674 8012A324 00000000 */ nop -/* C0678 8012A328 C4C00010 */ lwc1 $f0, 0x10($a2) -/* C067C 8012A32C 3C018015 */ lui $at, %hi(D_PAL_8014F528) -/* C0680 8012A330 D424F528 */ ldc1 $f4, %lo(D_PAL_8014F528)($at) -/* C0684 8012A334 46000021 */ cvt.d.s $f0, $f0 -/* C0688 8012A338 46240002 */ mul.d $f0, $f0, $f4 -/* C068C 8012A33C 00000000 */ nop -/* C0690 8012A340 C4C20014 */ lwc1 $f2, 0x14($a2) -/* C0694 8012A344 460010A1 */ cvt.d.s $f2, $f2 -/* C0698 8012A348 46241082 */ mul.d $f2, $f2, $f4 -/* C069C 8012A34C 00000000 */ nop -/* C06A0 8012A350 26310005 */ addiu $s1, $s1, 0x5 -/* C06A4 8012A354 26730005 */ addiu $s3, $s3, 0x5 -/* C06A8 8012A358 46200020 */ cvt.s.d $f0, $f0 -/* C06AC 8012A35C 462010A0 */ cvt.s.d $f2, $f2 -/* C06B0 8012A360 E4C00018 */ swc1 $f0, 0x18($a2) -/* C06B4 8012A364 0804A9DF */ j .LPAL_8012A77C -/* C06B8 8012A368 E4C2001C */ swc1 $f2, 0x1C($a2) -.LPAL_8012A36C: -/* C06BC 8012A36C 3C048015 */ lui $a0, %hi(D_80154934) -/* C06C0 8012A370 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* C06C4 8012A374 8C820020 */ lw $v0, 0x20($a0) -/* C06C8 8012A378 8C83004C */ lw $v1, 0x4C($a0) -/* C06CC 8012A37C 00431021 */ addu $v0, $v0, $v1 -/* C06D0 8012A380 90430002 */ lbu $v1, 0x2($v0) -/* C06D4 8012A384 240200FB */ addiu $v0, $zero, 0xFB -/* C06D8 8012A388 14620016 */ bne $v1, $v0, .LPAL_8012A3E4 -/* C06DC 8012A38C 24180004 */ addiu $t8, $zero, 0x4 -/* C06E0 8012A390 93C204F8 */ lbu $v0, 0x4F8($fp) -/* C06E4 8012A394 14580013 */ bne $v0, $t8, .LPAL_8012A3E4 -/* C06E8 8012A398 00000000 */ nop -/* C06EC 8012A39C C4820010 */ lwc1 $f2, 0x10($a0) -/* C06F0 8012A3A0 3C013FE0 */ lui $at, (0x3FE00000 >> 16) -/* C06F4 8012A3A4 44816800 */ mtc1 $at, $f13 -/* C06F8 8012A3A8 44806000 */ mtc1 $zero, $f12 -/* C06FC 8012A3AC 460010A1 */ cvt.d.s $f2, $f2 -/* C0700 8012A3B0 462C1082 */ mul.d $f2, $f2, $f12 -/* C0704 8012A3B4 00000000 */ nop -/* C0708 8012A3B8 C4800014 */ lwc1 $f0, 0x14($a0) -/* C070C 8012A3BC 46000021 */ cvt.d.s $f0, $f0 -/* C0710 8012A3C0 462C0002 */ mul.d $f0, $f0, $f12 -/* C0714 8012A3C4 00000000 */ nop -/* C0718 8012A3C8 26310003 */ addiu $s1, $s1, 0x3 -/* C071C 8012A3CC 26730003 */ addiu $s3, $s3, 0x3 -/* C0720 8012A3D0 462010A0 */ cvt.s.d $f2, $f2 -/* C0724 8012A3D4 46200020 */ cvt.s.d $f0, $f0 -/* C0728 8012A3D8 E4820018 */ swc1 $f2, 0x18($a0) -/* C072C 8012A3DC 0804A9DF */ j .LPAL_8012A77C -/* C0730 8012A3E0 E480001C */ swc1 $f0, 0x1C($a0) -.LPAL_8012A3E4: -/* C0734 8012A3E4 8C820020 */ lw $v0, 0x20($a0) -/* C0738 8012A3E8 8C83004C */ lw $v1, 0x4C($a0) -/* C073C 8012A3EC 00431021 */ addu $v0, $v0, $v1 -/* C0740 8012A3F0 90430003 */ lbu $v1, 0x3($v0) -/* C0744 8012A3F4 240200FB */ addiu $v0, $zero, 0xFB -/* C0748 8012A3F8 146200E0 */ bne $v1, $v0, .LPAL_8012A77C -/* C074C 8012A3FC 24180004 */ addiu $t8, $zero, 0x4 -/* C0750 8012A400 93C204F8 */ lbu $v0, 0x4F8($fp) -/* C0754 8012A404 145800DD */ bne $v0, $t8, .LPAL_8012A77C -/* C0758 8012A408 00000000 */ nop -/* C075C 8012A40C C4800010 */ lwc1 $f0, 0x10($a0) -/* C0760 8012A410 3C013FE8 */ lui $at, (0x3FE80000 >> 16) -/* C0764 8012A414 44812800 */ mtc1 $at, $f5 -/* C0768 8012A418 44802000 */ mtc1 $zero, $f4 -/* C076C 8012A41C 46000021 */ cvt.d.s $f0, $f0 -/* C0770 8012A420 46240002 */ mul.d $f0, $f0, $f4 -/* C0774 8012A424 00000000 */ nop -/* C0778 8012A428 C4820014 */ lwc1 $f2, 0x14($a0) -/* C077C 8012A42C 460010A1 */ cvt.d.s $f2, $f2 -/* C0780 8012A430 46241082 */ mul.d $f2, $f2, $f4 -/* C0784 8012A434 00000000 */ nop -/* C0788 8012A438 26310002 */ addiu $s1, $s1, 0x2 -/* C078C 8012A43C 26730002 */ addiu $s3, $s3, 0x2 -/* C0790 8012A440 46200020 */ cvt.s.d $f0, $f0 -/* C0794 8012A444 462010A0 */ cvt.s.d $f2, $f2 -/* C0798 8012A448 E4800018 */ swc1 $f0, 0x18($a0) -/* C079C 8012A44C 0804A9DF */ j .LPAL_8012A77C -/* C07A0 8012A450 E482001C */ swc1 $f2, 0x1C($a0) -.LPAL_8012A454: -/* C07A4 8012A454 10400052 */ beqz $v0, .LPAL_8012A5A0 -/* C07A8 8012A458 30624000 */ andi $v0, $v1, 0x4000 -/* C07AC 8012A45C 0C00A65F */ jal rand_int -/* C07B0 8012A460 24042710 */ addiu $a0, $zero, 0x2710 -/* C07B4 8012A464 3C03288D */ lui $v1, (0x288DF0CB >> 16) -/* C07B8 8012A468 3463F0CB */ ori $v1, $v1, (0x288DF0CB & 0xFFFF) -/* C07BC 8012A46C 00430018 */ mult $v0, $v1 -/* C07C0 8012A470 00021FC3 */ sra $v1, $v0, 31 -/* C07C4 8012A474 3C014059 */ lui $at, (0x40590000 >> 16) -/* C07C8 8012A478 44811800 */ mtc1 $at, $f3 -/* C07CC 8012A47C 44801000 */ mtc1 $zero, $f2 -/* C07D0 8012A480 3C013FE0 */ lui $at, (0x3FE00000 >> 16) -/* C07D4 8012A484 44816800 */ mtc1 $at, $f13 -/* C07D8 8012A488 44806000 */ mtc1 $zero, $f12 -/* C07DC 8012A48C 0000C010 */ mfhi $t8 -/* C07E0 8012A490 00182103 */ sra $a0, $t8, 4 -/* C07E4 8012A494 00832023 */ subu $a0, $a0, $v1 -/* C07E8 8012A498 00041840 */ sll $v1, $a0, 1 -/* C07EC 8012A49C 00641821 */ addu $v1, $v1, $a0 -/* C07F0 8012A4A0 000318C0 */ sll $v1, $v1, 3 -/* C07F4 8012A4A4 00641821 */ addu $v1, $v1, $a0 -/* C07F8 8012A4A8 00031880 */ sll $v1, $v1, 2 -/* C07FC 8012A4AC 00641821 */ addu $v1, $v1, $a0 -/* C0800 8012A4B0 00431023 */ subu $v0, $v0, $v1 -/* C0804 8012A4B4 44824000 */ mtc1 $v0, $f8 -/* C0808 8012A4B8 00000000 */ nop -/* C080C 8012A4BC 46804220 */ cvt.s.w $f8, $f8 -/* C0810 8012A4C0 46004021 */ cvt.d.s $f0, $f8 -/* C0814 8012A4C4 46220003 */ div.d $f0, $f0, $f2 -/* C0818 8012A4C8 46200220 */ cvt.s.d $f8, $f0 -/* C081C 8012A4CC 46004021 */ cvt.d.s $f0, $f8 -/* C0820 8012A4D0 462C0002 */ mul.d $f0, $f0, $f12 -/* C0824 8012A4D4 00000000 */ nop -/* C0828 8012A4D8 3C013FF0 */ lui $at, (0x3FF00000 >> 16) -/* C082C 8012A4DC 44816800 */ mtc1 $at, $f13 -/* C0830 8012A4E0 44806000 */ mtc1 $zero, $f12 -/* C0834 8012A4E4 00000000 */ nop -/* C0838 8012A4E8 462C0000 */ add.d $f0, $f0, $f12 -/* C083C 8012A4EC 3C013FD0 */ lui $at, (0x3FD00000 >> 16) -/* C0840 8012A4F0 44811800 */ mtc1 $at, $f3 -/* C0844 8012A4F4 44801000 */ mtc1 $zero, $f2 -/* C0848 8012A4F8 00000000 */ nop -/* C084C 8012A4FC 46220001 */ sub.d $f0, $f0, $f2 -/* C0850 8012A500 46200220 */ cvt.s.d $f8, $f0 -/* C0854 8012A504 460040A1 */ cvt.d.s $f2, $f8 -/* C0858 8012A508 4622603C */ c.lt.d $f12, $f2 -/* C085C 8012A50C 00000000 */ nop -/* C0860 8012A510 4500006D */ bc1f .LPAL_8012A6C8 -/* C0864 8012A514 00111400 */ sll $v0, $s1, 16 -/* C0868 8012A518 3C014020 */ lui $at, (0x40200000 >> 16) -/* C086C 8012A51C 44812800 */ mtc1 $at, $f5 -/* C0870 8012A520 44802000 */ mtc1 $zero, $f4 -/* C0874 8012A524 00000000 */ nop -/* C0878 8012A528 46241102 */ mul.d $f4, $f2, $f4 -/* C087C 8012A52C 00000000 */ nop -/* C0880 8012A530 3C038015 */ lui $v1, %hi(D_80154934) -/* C0884 8012A534 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* C0888 8012A538 C4600010 */ lwc1 $f0, 0x10($v1) -/* C088C 8012A53C 46080002 */ mul.s $f0, $f0, $f8 -/* C0890 8012A540 00000000 */ nop -/* C0894 8012A544 C4660014 */ lwc1 $f6, 0x14($v1) -/* C0898 8012A548 46083182 */ mul.s $f6, $f6, $f8 -/* C089C 8012A54C 00000000 */ nop -/* C08A0 8012A550 E4600018 */ swc1 $f0, 0x18($v1) -/* C08A4 8012A554 3C014021 */ lui $at, (0x40210000 >> 16) -/* C08A8 8012A558 44810800 */ mtc1 $at, $f1 -/* C08AC 8012A55C 44800000 */ mtc1 $zero, $f0 -/* C08B0 8012A560 00021403 */ sra $v0, $v0, 16 -/* C08B4 8012A564 46202101 */ sub.d $f4, $f4, $f0 -/* C08B8 8012A568 44821000 */ mtc1 $v0, $f2 -/* C08BC 8012A56C 00000000 */ nop -/* C08C0 8012A570 468010A1 */ cvt.d.w $f2, $f2 -/* C08C4 8012A574 00131400 */ sll $v0, $s3, 16 -/* C08C8 8012A578 46241081 */ sub.d $f2, $f2, $f4 -/* C08CC 8012A57C 00021403 */ sra $v0, $v0, 16 -/* C08D0 8012A580 44820000 */ mtc1 $v0, $f0 -/* C08D4 8012A584 00000000 */ nop -/* C08D8 8012A588 46800021 */ cvt.d.w $f0, $f0 -/* C08DC 8012A58C 46240001 */ sub.d $f0, $f0, $f4 -/* C08E0 8012A590 4620130D */ trunc.w.d $f12, $f2 -/* C08E4 8012A594 44116000 */ mfc1 $s1, $f12 -/* C08E8 8012A598 0804A9DD */ j .LPAL_8012A774 -/* C08EC 8012A59C E466001C */ swc1 $f6, 0x1C($v1) -.LPAL_8012A5A0: -/* C08F0 8012A5A0 10400076 */ beqz $v0, .LPAL_8012A77C -/* C08F4 8012A5A4 3C0516C1 */ lui $a1, (0x16C16C17 >> 16) -/* C08F8 8012A5A8 34A56C17 */ ori $a1, $a1, (0x16C16C17 & 0xFFFF) -/* C08FC 8012A5AC 97C20452 */ lhu $v0, 0x452($fp) -/* C0900 8012A5B0 8CC30030 */ lw $v1, 0x30($a2) -/* C0904 8012A5B4 00022100 */ sll $a0, $v0, 4 -/* C0908 8012A5B8 00822023 */ subu $a0, $a0, $v0 -/* C090C 8012A5BC 00031100 */ sll $v0, $v1, 4 -/* C0910 8012A5C0 00431023 */ subu $v0, $v0, $v1 -/* C0914 8012A5C4 00822023 */ subu $a0, $a0, $v0 -/* C0918 8012A5C8 000410C2 */ srl $v0, $a0, 3 -/* C091C 8012A5CC 00450019 */ multu $v0, $a1 -/* C0920 8012A5D0 0000C010 */ mfhi $t8 -/* C0924 8012A5D4 00181082 */ srl $v0, $t8, 2 -/* C0928 8012A5D8 00021840 */ sll $v1, $v0, 1 -/* C092C 8012A5DC 00621821 */ addu $v1, $v1, $v0 -/* C0930 8012A5E0 00031100 */ sll $v0, $v1, 4 -/* C0934 8012A5E4 00431023 */ subu $v0, $v0, $v1 -/* C0938 8012A5E8 000210C0 */ sll $v0, $v0, 3 -/* C093C 8012A5EC 00821023 */ subu $v0, $a0, $v0 -/* C0940 8012A5F0 00022400 */ sll $a0, $v0, 16 -/* C0944 8012A5F4 0C00A4D5 */ jal cosine -/* C0948 8012A5F8 00042403 */ sra $a0, $a0, 16 -/* C094C 8012A5FC 3C013FD0 */ lui $at, (0x3FD00000 >> 16) -/* C0950 8012A600 44811800 */ mtc1 $at, $f3 -/* C0954 8012A604 44801000 */ mtc1 $zero, $f2 -/* C0958 8012A608 46000021 */ cvt.d.s $f0, $f0 -/* C095C 8012A60C 46220002 */ mul.d $f0, $f0, $f2 -/* C0960 8012A610 00000000 */ nop -/* C0964 8012A614 3C013FF0 */ lui $at, (0x3FF00000 >> 16) -/* C0968 8012A618 44816800 */ mtc1 $at, $f13 -/* C096C 8012A61C 44806000 */ mtc1 $zero, $f12 -/* C0970 8012A620 00000000 */ nop -/* C0974 8012A624 462C0000 */ add.d $f0, $f0, $f12 -/* C0978 8012A628 46200220 */ cvt.s.d $f8, $f0 -/* C097C 8012A62C 460040A1 */ cvt.d.s $f2, $f8 -/* C0980 8012A630 4622603C */ c.lt.d $f12, $f2 -/* C0984 8012A634 00000000 */ nop -/* C0988 8012A638 45000023 */ bc1f .LPAL_8012A6C8 -/* C098C 8012A63C 00111400 */ sll $v0, $s1, 16 -/* C0990 8012A640 3C014020 */ lui $at, (0x40200000 >> 16) -/* C0994 8012A644 44812800 */ mtc1 $at, $f5 -/* C0998 8012A648 44802000 */ mtc1 $zero, $f4 -/* C099C 8012A64C 00000000 */ nop -/* C09A0 8012A650 46241102 */ mul.d $f4, $f2, $f4 -/* C09A4 8012A654 00000000 */ nop -/* C09A8 8012A658 3C038015 */ lui $v1, %hi(D_80154934) -/* C09AC 8012A65C 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* C09B0 8012A660 C4600010 */ lwc1 $f0, 0x10($v1) -/* C09B4 8012A664 46080002 */ mul.s $f0, $f0, $f8 -/* C09B8 8012A668 00000000 */ nop -/* C09BC 8012A66C C4660014 */ lwc1 $f6, 0x14($v1) -/* C09C0 8012A670 46083182 */ mul.s $f6, $f6, $f8 -/* C09C4 8012A674 00000000 */ nop -/* C09C8 8012A678 E4600018 */ swc1 $f0, 0x18($v1) -/* C09CC 8012A67C 3C014021 */ lui $at, (0x40210000 >> 16) -/* C09D0 8012A680 44810800 */ mtc1 $at, $f1 -/* C09D4 8012A684 44800000 */ mtc1 $zero, $f0 -/* C09D8 8012A688 00021403 */ sra $v0, $v0, 16 -/* C09DC 8012A68C 46202101 */ sub.d $f4, $f4, $f0 -/* C09E0 8012A690 44821000 */ mtc1 $v0, $f2 -/* C09E4 8012A694 00000000 */ nop -/* C09E8 8012A698 468010A1 */ cvt.d.w $f2, $f2 -/* C09EC 8012A69C 00131400 */ sll $v0, $s3, 16 -/* C09F0 8012A6A0 46241081 */ sub.d $f2, $f2, $f4 -/* C09F4 8012A6A4 00021403 */ sra $v0, $v0, 16 -/* C09F8 8012A6A8 44820000 */ mtc1 $v0, $f0 -/* C09FC 8012A6AC 00000000 */ nop -/* C0A00 8012A6B0 46800021 */ cvt.d.w $f0, $f0 -/* C0A04 8012A6B4 46240001 */ sub.d $f0, $f0, $f4 -/* C0A08 8012A6B8 4620130D */ trunc.w.d $f12, $f2 -/* C0A0C 8012A6BC 44116000 */ mfc1 $s1, $f12 -/* C0A10 8012A6C0 0804A9DD */ j .LPAL_8012A774 -/* C0A14 8012A6C4 E466001C */ swc1 $f6, 0x1C($v1) -.LPAL_8012A6C8: -/* C0A18 8012A6C8 462C103C */ c.lt.d $f2, $f12 -/* C0A1C 8012A6CC 00000000 */ nop -/* C0A20 8012A6D0 4500002A */ bc1f .LPAL_8012A77C -/* C0A24 8012A6D4 00111400 */ sll $v0, $s1, 16 -/* C0A28 8012A6D8 3C014030 */ lui $at, (0x40300000 >> 16) -/* C0A2C 8012A6DC 44810800 */ mtc1 $at, $f1 -/* C0A30 8012A6E0 44800000 */ mtc1 $zero, $f0 -/* C0A34 8012A6E4 00000000 */ nop -/* C0A38 8012A6E8 46201002 */ mul.d $f0, $f2, $f0 -/* C0A3C 8012A6EC 00000000 */ nop -/* C0A40 8012A6F0 3C013FE0 */ lui $at, (0x3FE00000 >> 16) -/* C0A44 8012A6F4 44816800 */ mtc1 $at, $f13 -/* C0A48 8012A6F8 44806000 */ mtc1 $zero, $f12 -/* C0A4C 8012A6FC 00000000 */ nop -/* C0A50 8012A700 462C0002 */ mul.d $f0, $f0, $f12 -/* C0A54 8012A704 00000000 */ nop -/* C0A58 8012A708 3C038015 */ lui $v1, %hi(D_80154934) -/* C0A5C 8012A70C 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* C0A60 8012A710 C4620010 */ lwc1 $f2, 0x10($v1) -/* C0A64 8012A714 46081082 */ mul.s $f2, $f2, $f8 -/* C0A68 8012A718 00000000 */ nop -/* C0A6C 8012A71C C4660014 */ lwc1 $f6, 0x14($v1) -/* C0A70 8012A720 46083182 */ mul.s $f6, $f6, $f8 -/* C0A74 8012A724 00000000 */ nop -/* C0A78 8012A728 E4620018 */ swc1 $f2, 0x18($v1) -/* C0A7C 8012A72C 3C014020 */ lui $at, (0x40200000 >> 16) -/* C0A80 8012A730 44811800 */ mtc1 $at, $f3 -/* C0A84 8012A734 44801000 */ mtc1 $zero, $f2 -/* C0A88 8012A738 00021403 */ sra $v0, $v0, 16 -/* C0A8C 8012A73C 46201081 */ sub.d $f2, $f2, $f0 -/* C0A90 8012A740 44822000 */ mtc1 $v0, $f4 -/* C0A94 8012A744 00000000 */ nop -/* C0A98 8012A748 46802121 */ cvt.d.w $f4, $f4 -/* C0A9C 8012A74C 00131400 */ sll $v0, $s3, 16 -/* C0AA0 8012A750 46222100 */ add.d $f4, $f4, $f2 -/* C0AA4 8012A754 00021403 */ sra $v0, $v0, 16 -/* C0AA8 8012A758 44820000 */ mtc1 $v0, $f0 -/* C0AAC 8012A75C 00000000 */ nop -/* C0AB0 8012A760 46800021 */ cvt.d.w $f0, $f0 -/* C0AB4 8012A764 46220000 */ add.d $f0, $f0, $f2 -/* C0AB8 8012A768 E466001C */ swc1 $f6, 0x1C($v1) -/* C0ABC 8012A76C 4620230D */ trunc.w.d $f12, $f4 -/* C0AC0 8012A770 44116000 */ mfc1 $s1, $f12 -.LPAL_8012A774: -/* C0AC4 8012A774 4620030D */ trunc.w.d $f12, $f0 -/* C0AC8 8012A778 44136000 */ mfc1 $s3, $f12 -.LPAL_8012A77C: -/* C0ACC 8012A77C 93C204F8 */ lbu $v0, 0x4F8($fp) -/* C0AD0 8012A780 2442FFF5 */ addiu $v0, $v0, -0xB -/* C0AD4 8012A784 2C420002 */ sltiu $v0, $v0, 0x2 -/* C0AD8 8012A788 10400020 */ beqz $v0, .LPAL_8012A80C -/* C0ADC 8012A78C 00000000 */ nop -/* C0AE0 8012A790 93C20508 */ lbu $v0, 0x508($fp) -/* C0AE4 8012A794 2442FFFF */ addiu $v0, $v0, -0x1 -/* C0AE8 8012A798 2C420004 */ sltiu $v0, $v0, 0x4 -/* C0AEC 8012A79C 1040001B */ beqz $v0, .LPAL_8012A80C -/* C0AF0 8012A7A0 00000000 */ nop -/* C0AF4 8012A7A4 97B900A6 */ lhu $t9, 0xA6($sp) -/* C0AF8 8012A7A8 00191400 */ sll $v0, $t9, 16 -/* C0AFC 8012A7AC 00021C03 */ sra $v1, $v0, 16 -/* C0B00 8012A7B0 2C620026 */ sltiu $v0, $v1, 0x26 -/* C0B04 8012A7B4 10400013 */ beqz $v0, .LPAL_8012A804 -/* C0B08 8012A7B8 00031080 */ sll $v0, $v1, 2 -/* C0B0C 8012A7BC 3C018015 */ lui $at, %hi(jtbl_PAL_8014F530) -/* C0B10 8012A7C0 00220821 */ addu $at, $at, $v0 -/* C0B14 8012A7C4 8C22F530 */ lw $v0, %lo(jtbl_PAL_8014F530)($at) -/* C0B18 8012A7C8 00400008 */ jr $v0 -/* C0B1C 8012A7CC 00000000 */ nop -.LPAL_8012A7D0: -/* C0B20 8012A7D0 24180040 */ addiu $t8, $zero, 0x40 -/* C0B24 8012A7D4 0804AA03 */ j .LPAL_8012A80C -/* C0B28 8012A7D8 A7B800A6 */ sh $t8, 0xA6($sp) -.LPAL_8012A7DC: -/* C0B2C 8012A7DC 0804AA02 */ j .LPAL_8012A808 -/* C0B30 8012A7E0 24190041 */ addiu $t9, $zero, 0x41 -.LPAL_8012A7E4: -/* C0B34 8012A7E4 24180042 */ addiu $t8, $zero, 0x42 -/* C0B38 8012A7E8 0804AA03 */ j .LPAL_8012A80C -/* C0B3C 8012A7EC A7B800A6 */ sh $t8, 0xA6($sp) -.LPAL_8012A7F0: -/* C0B40 8012A7F0 0804AA02 */ j .LPAL_8012A808 -/* C0B44 8012A7F4 24190043 */ addiu $t9, $zero, 0x43 -.LPAL_8012A7F8: -/* C0B48 8012A7F8 24180044 */ addiu $t8, $zero, 0x44 -/* C0B4C 8012A7FC 0804AA03 */ j .LPAL_8012A80C -/* C0B50 8012A800 A7B800A6 */ sh $t8, 0xA6($sp) -.LPAL_8012A804: -/* C0B54 8012A804 24190040 */ addiu $t9, $zero, 0x40 -.LPAL_8012A808: -/* C0B58 8012A808 A7B900A6 */ sh $t9, 0xA6($sp) -.LPAL_8012A80C: -/* C0B5C 8012A80C 97B800A6 */ lhu $t8, 0xA6($sp) -/* C0B60 8012A810 97B9009E */ lhu $t9, 0x9E($sp) -/* C0B64 8012A814 00181C00 */ sll $v1, $t8, 16 -/* C0B68 8012A818 00191400 */ sll $v0, $t9, 16 -/* C0B6C 8012A81C 10620007 */ beq $v1, $v0, .LPAL_8012A83C -/* C0B70 8012A820 00033C03 */ sra $a3, $v1, 16 -/* C0B74 8012A824 3C038015 */ lui $v1, %hi(D_80154934) -/* C0B78 8012A828 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* C0B7C 8012A82C 94620034 */ lhu $v0, 0x34($v1) -/* C0B80 8012A830 A7B8009E */ sh $t8, 0x9E($sp) -/* C0B84 8012A834 34420010 */ ori $v0, $v0, 0x10 -/* C0B88 8012A838 A4620034 */ sh $v0, 0x34($v1) -.LPAL_8012A83C: -/* C0B8C 8012A83C 3C058015 */ lui $a1, %hi(D_80154934) -/* C0B90 8012A840 8CA54934 */ lw $a1, %lo(D_80154934)($a1) -/* C0B94 8012A844 8CA20038 */ lw $v0, 0x38($a1) -/* C0B98 8012A848 30428000 */ andi $v0, $v0, 0x8000 -/* C0B9C 8012A84C 10400047 */ beqz $v0, .LPAL_8012A96C -/* C0BA0 8012A850 00101400 */ sll $v0, $s0, 16 -/* C0BA4 8012A854 00021403 */ sra $v0, $v0, 16 -/* C0BA8 8012A858 241900FF */ addiu $t9, $zero, 0xFF -/* C0BAC 8012A85C 14590043 */ bne $v0, $t9, .LPAL_8012A96C -/* C0BB0 8012A860 3C10E200 */ lui $s0, (0xE200001C >> 16) -/* C0BB4 8012A864 3610001C */ ori $s0, $s0, (0xE200001C & 0xFFFF) -/* C0BB8 8012A868 3C060050 */ lui $a2, (0x504240 >> 16) -/* C0BBC 8012A86C 34C64240 */ ori $a2, $a2, (0x504240 & 0xFFFF) -/* C0BC0 8012A870 3C09FCFF */ lui $t1, (0xFCFF97FF >> 16) -/* C0BC4 8012A874 352997FF */ ori $t1, $t1, (0xFCFF97FF & 0xFFFF) -/* C0BC8 8012A878 3C08FF2D */ lui $t0, (0xFF2DFEFF >> 16) -/* C0BCC 8012A87C 3508FEFF */ ori $t0, $t0, (0xFF2DFEFF & 0xFFFF) -/* C0BD0 8012A880 3C0A2828 */ lui $t2, (0x28282848 >> 16) -/* C0BD4 8012A884 354A2848 */ ori $t2, $t2, (0x28282848 & 0xFFFF) -/* C0BD8 8012A888 8EE30000 */ lw $v1, 0x0($s7) -/* C0BDC 8012A88C 03C0202D */ daddu $a0, $fp, $zero -/* C0BE0 8012A890 0060102D */ daddu $v0, $v1, $zero -/* C0BE4 8012A894 24630008 */ addiu $v1, $v1, 0x8 -/* C0BE8 8012A898 3C18E700 */ lui $t8, (0xE7000000 >> 16) -/* C0BEC 8012A89C AEE30000 */ sw $v1, 0x0($s7) -/* C0BF0 8012A8A0 AC580000 */ sw $t8, 0x0($v0) -/* C0BF4 8012A8A4 AC400004 */ sw $zero, 0x4($v0) -/* C0BF8 8012A8A8 24620008 */ addiu $v0, $v1, 0x8 -/* C0BFC 8012A8AC AEE20000 */ sw $v0, 0x0($s7) -/* C0C00 8012A8B0 24620010 */ addiu $v0, $v1, 0x10 -/* C0C04 8012A8B4 AC700000 */ sw $s0, 0x0($v1) -/* C0C08 8012A8B8 AC660004 */ sw $a2, 0x4($v1) -/* C0C0C 8012A8BC AEE20000 */ sw $v0, 0x0($s7) -/* C0C10 8012A8C0 3C02FA00 */ lui $v0, (0xFA000000 >> 16) -/* C0C14 8012A8C4 AC690008 */ sw $t1, 0x8($v1) -/* C0C18 8012A8C8 AC68000C */ sw $t0, 0xC($v1) -/* C0C1C 8012A8CC AC620010 */ sw $v0, 0x10($v1) -/* C0C20 8012A8D0 AC6A0014 */ sw $t2, 0x14($v1) -/* C0C24 8012A8D4 8CA6004C */ lw $a2, 0x4C($a1) -/* C0C28 8012A8D8 8CA20020 */ lw $v0, 0x20($a1) -/* C0C2C 8012A8DC 24630018 */ addiu $v1, $v1, 0x18 -/* C0C30 8012A8E0 AEE30000 */ sw $v1, 0x0($s7) -/* C0C34 8012A8E4 00C23021 */ addu $a2, $a2, $v0 -/* C0C38 8012A8E8 00111400 */ sll $v0, $s1, 16 -/* C0C3C 8012A8EC 00021403 */ sra $v0, $v0, 16 -/* C0C40 8012A8F0 90C60000 */ lbu $a2, 0x0($a2) -/* C0C44 8012A8F4 24420002 */ addiu $v0, $v0, 0x2 -/* C0C48 8012A8F8 AFA20010 */ sw $v0, 0x10($sp) -/* C0C4C 8012A8FC 00131400 */ sll $v0, $s3, 16 -/* C0C50 8012A900 00021403 */ sra $v0, $v0, 16 -/* C0C54 8012A904 24420002 */ addiu $v0, $v0, 0x2 -/* C0C58 8012A908 0C04ABB1 */ jal msg_draw_char -/* C0C5C 8012A90C AFA20014 */ sw $v0, 0x14($sp) -/* C0C60 8012A910 3C040F0A */ lui $a0, (0xF0A7008 >> 16) -/* C0C64 8012A914 34847008 */ ori $a0, $a0, (0xF0A7008 & 0xFFFF) -/* C0C68 8012A918 3C06FCFF */ lui $a2, (0xFCFFFFFF >> 16) -/* C0C6C 8012A91C 34C6FFFF */ ori $a2, $a2, (0xFCFFFFFF & 0xFFFF) -/* C0C70 8012A920 3C05FFFC */ lui $a1, (0xFFFCF279 >> 16) -/* C0C74 8012A924 8EE30000 */ lw $v1, 0x0($s7) -/* C0C78 8012A928 34A5F279 */ ori $a1, $a1, (0xFFFCF279 & 0xFFFF) -/* C0C7C 8012A92C 0060102D */ daddu $v0, $v1, $zero -/* C0C80 8012A930 24630008 */ addiu $v1, $v1, 0x8 -/* C0C84 8012A934 3C19E700 */ lui $t9, (0xE7000000 >> 16) -/* C0C88 8012A938 AEE30000 */ sw $v1, 0x0($s7) -/* C0C8C 8012A93C AC590000 */ sw $t9, 0x0($v0) -/* C0C90 8012A940 AC400004 */ sw $zero, 0x4($v0) -/* C0C94 8012A944 24620008 */ addiu $v0, $v1, 0x8 -/* C0C98 8012A948 AEE20000 */ sw $v0, 0x0($s7) -/* C0C9C 8012A94C 24620010 */ addiu $v0, $v1, 0x10 -/* C0CA0 8012A950 AC700000 */ sw $s0, 0x0($v1) -/* C0CA4 8012A954 AC640004 */ sw $a0, 0x4($v1) -/* C0CA8 8012A958 AEE20000 */ sw $v0, 0x0($s7) -/* C0CAC 8012A95C AC660008 */ sw $a2, 0x8($v1) -/* C0CB0 8012A960 AC65000C */ sw $a1, 0xC($v1) -/* C0CB4 8012A964 3C058015 */ lui $a1, %hi(D_80154934) -/* C0CB8 8012A968 8CA54934 */ lw $a1, %lo(D_80154934)($a1) -.LPAL_8012A96C: -/* C0CBC 8012A96C 8CA20038 */ lw $v0, 0x38($a1) -/* C0CC0 8012A970 30420020 */ andi $v0, $v0, 0x20 -/* C0CC4 8012A974 10400036 */ beqz $v0, .LPAL_8012AA50 -/* C0CC8 8012A978 0000902D */ daddu $s2, $zero, $zero -/* C0CCC 8012A97C 0011B400 */ sll $s6, $s1, 16 -/* C0CD0 8012A980 0013AC00 */ sll $s5, $s3, 16 -/* C0CD4 8012A984 93B400B8 */ lbu $s4, 0xB8($sp) -/* C0CD8 8012A988 3C135555 */ lui $s3, (0x55555556 >> 16) -/* C0CDC 8012A98C 36735556 */ ori $s3, $s3, (0x55555556 & 0xFFFF) -/* C0CE0 8012A990 00168403 */ sra $s0, $s6, 16 -.LPAL_8012A994: -/* C0CE4 8012A994 24180002 */ addiu $t8, $zero, 0x2 -/* C0CE8 8012A998 1298000C */ beq $s4, $t8, .LPAL_8012A9CC -/* C0CEC 8012A99C 00158C03 */ sra $s1, $s5, 16 -/* C0CF0 8012A9A0 0C00A65F */ jal rand_int -/* C0CF4 8012A9A4 24042710 */ addiu $a0, $zero, 0x2710 -/* C0CF8 8012A9A8 00530018 */ mult $v0, $s3 -/* C0CFC 8012A9AC 2605FFFF */ addiu $a1, $s0, -0x1 -/* C0D00 8012A9B0 000227C3 */ sra $a0, $v0, 31 -/* C0D04 8012A9B4 0000C010 */ mfhi $t8 -/* C0D08 8012A9B8 03042023 */ subu $a0, $t8, $a0 -/* C0D0C 8012A9BC 00041840 */ sll $v1, $a0, 1 -/* C0D10 8012A9C0 00641821 */ addu $v1, $v1, $a0 -/* C0D14 8012A9C4 00431023 */ subu $v0, $v0, $v1 -/* C0D18 8012A9C8 00A28021 */ addu $s0, $a1, $v0 -.LPAL_8012A9CC: -/* C0D1C 8012A9CC 24190001 */ addiu $t9, $zero, 0x1 -/* C0D20 8012A9D0 1299000D */ beq $s4, $t9, .LPAL_8012AA08 -/* C0D24 8012A9D4 03C0202D */ daddu $a0, $fp, $zero -/* C0D28 8012A9D8 0C00A65F */ jal rand_int -/* C0D2C 8012A9DC 24042710 */ addiu $a0, $zero, 0x2710 -/* C0D30 8012A9E0 00530018 */ mult $v0, $s3 -/* C0D34 8012A9E4 2625FFFF */ addiu $a1, $s1, -0x1 -/* C0D38 8012A9E8 000227C3 */ sra $a0, $v0, 31 -/* C0D3C 8012A9EC 0000C010 */ mfhi $t8 -/* C0D40 8012A9F0 03042023 */ subu $a0, $t8, $a0 -/* C0D44 8012A9F4 00041840 */ sll $v1, $a0, 1 -/* C0D48 8012A9F8 00641821 */ addu $v1, $v1, $a0 -/* C0D4C 8012A9FC 00431023 */ subu $v0, $v0, $v1 -/* C0D50 8012AA00 00A28821 */ addu $s1, $a1, $v0 -/* C0D54 8012AA04 03C0202D */ daddu $a0, $fp, $zero -.LPAL_8012AA08: -/* C0D58 8012AA08 26520001 */ addiu $s2, $s2, 0x1 -/* C0D5C 8012AA0C 3C058015 */ lui $a1, %hi(D_80154934) -/* C0D60 8012AA10 8CA54934 */ lw $a1, %lo(D_80154934)($a1) -/* C0D64 8012AA14 97B900A6 */ lhu $t9, 0xA6($sp) -/* C0D68 8012AA18 8CA2004C */ lw $v0, 0x4C($a1) -/* C0D6C 8012AA1C 8CA30020 */ lw $v1, 0x20($a1) -/* C0D70 8012AA20 00193C00 */ sll $a3, $t9, 16 -/* C0D74 8012AA24 00431021 */ addu $v0, $v0, $v1 -/* C0D78 8012AA28 90460000 */ lbu $a2, 0x0($v0) -/* C0D7C 8012AA2C 00073C03 */ sra $a3, $a3, 16 -/* C0D80 8012AA30 AFB00010 */ sw $s0, 0x10($sp) -/* C0D84 8012AA34 0C04ABB1 */ jal msg_draw_char -/* C0D88 8012AA38 AFB10014 */ sw $s1, 0x14($sp) -/* C0D8C 8012AA3C 2A420005 */ slti $v0, $s2, 0x5 -/* C0D90 8012AA40 1440FFD4 */ bnez $v0, .LPAL_8012A994 -/* C0D94 8012AA44 00168403 */ sra $s0, $s6, 16 -/* C0D98 8012AA48 0804AAA3 */ j .LPAL_8012AA8C -/* C0D9C 8012AA4C 00000000 */ nop -.LPAL_8012AA50: -/* C0DA0 8012AA50 03C0202D */ daddu $a0, $fp, $zero -/* C0DA4 8012AA54 97B800A6 */ lhu $t8, 0xA6($sp) -/* C0DA8 8012AA58 8CA3004C */ lw $v1, 0x4C($a1) -/* C0DAC 8012AA5C 8CA20020 */ lw $v0, 0x20($a1) -/* C0DB0 8012AA60 00183C00 */ sll $a3, $t8, 16 -/* C0DB4 8012AA64 00073C03 */ sra $a3, $a3, 16 -/* C0DB8 8012AA68 00621821 */ addu $v1, $v1, $v0 -/* C0DBC 8012AA6C 00111400 */ sll $v0, $s1, 16 -/* C0DC0 8012AA70 90660000 */ lbu $a2, 0x0($v1) -/* C0DC4 8012AA74 00021403 */ sra $v0, $v0, 16 -/* C0DC8 8012AA78 AFA20010 */ sw $v0, 0x10($sp) -/* C0DCC 8012AA7C 00131400 */ sll $v0, $s3, 16 -/* C0DD0 8012AA80 00021403 */ sra $v0, $v0, 16 -/* C0DD4 8012AA84 0C04ABB1 */ jal msg_draw_char -/* C0DD8 8012AA88 AFA20014 */ sw $v0, 0x14($sp) -.LPAL_8012AA8C: -/* C0DDC 8012AA8C 3C048015 */ lui $a0, %hi(D_80154934) -/* C0DE0 8012AA90 8C844934 */ lw $a0, %lo(D_80154934)($a0) -/* C0DE4 8012AA94 94830034 */ lhu $v1, 0x34($a0) -/* C0DE8 8012AA98 30620002 */ andi $v0, $v1, 0x2 -/* C0DEC 8012AA9C 10400002 */ beqz $v0, .LPAL_8012AAA8 -/* C0DF0 8012AAA0 3062FFFD */ andi $v0, $v1, 0xFFFD -/* C0DF4 8012AAA4 A4820034 */ sh $v0, 0x34($a0) -.LPAL_8012AAA8: -/* C0DF8 8012AAA8 3C038015 */ lui $v1, %hi(D_80154934) -/* C0DFC 8012AAAC 8C634934 */ lw $v1, %lo(D_80154934)($v1) -/* C0E00 8012AAB0 8C620030 */ lw $v0, 0x30($v1) -/* C0E04 8012AAB4 8C64004C */ lw $a0, 0x4C($v1) -/* C0E08 8012AAB8 8C650020 */ lw $a1, 0x20($v1) -/* C0E0C 8012AABC 9466003E */ lhu $a2, 0x3E($v1) -/* C0E10 8012AAC0 24420001 */ addiu $v0, $v0, 0x1 -/* C0E14 8012AAC4 00852021 */ addu $a0, $a0, $a1 -/* C0E18 8012AAC8 AC620030 */ sw $v0, 0x30($v1) -/* C0E1C 8012AACC 90620040 */ lbu $v0, 0x40($v1) -/* C0E20 8012AAD0 90840000 */ lbu $a0, 0x0($a0) -/* C0E24 8012AAD4 9465003C */ lhu $a1, 0x3C($v1) -/* C0E28 8012AAD8 AFA20010 */ sw $v0, 0x10($sp) -/* C0E2C 8012AADC 94620034 */ lhu $v0, 0x34($v1) -/* C0E30 8012AAE0 AFA20014 */ sw $v0, 0x14($sp) -/* C0E34 8012AAE4 8C670010 */ lw $a3, 0x10($v1) -.LPAL_8012AAE8: -/* C0E38 8012AAE8 0C049245 */ jal msg_get_draw_char_width -/* C0E3C 8012AAEC 00000000 */ nop -/* C0E40 8012AAF0 3C058015 */ lui $a1, %hi(D_80154934) -/* C0E44 8012AAF4 8CA54934 */ lw $a1, %lo(D_80154934)($a1) -/* C0E48 8012AAF8 94A30042 */ lhu $v1, 0x42($a1) -/* C0E4C 8012AAFC 8CA40020 */ lw $a0, 0x20($a1) -/* C0E50 8012AB00 00621821 */ addu $v1, $v1, $v0 -/* C0E54 8012AB04 24840001 */ addiu $a0, $a0, 0x1 -/* C0E58 8012AB08 A4A30042 */ sh $v1, 0x42($a1) -.LPAL_8012AB0C: -/* C0E5C 8012AB0C ACA40020 */ sw $a0, 0x20($a1) -.LPAL_8012AB10: -/* C0E60 8012AB10 97A20080 */ lhu $v0, 0x80($sp) -/* C0E64 8012AB14 1040EFDE */ beqz $v0, .LPAL_80126A90 -/* C0E68 8012AB18 00000000 */ nop -/* C0E6C 8012AB1C 97C2052C */ lhu $v0, 0x52C($fp) -/* C0E70 8012AB20 104000BA */ beqz $v0, .LPAL_8012AE0C -/* C0E74 8012AB24 0000302D */ daddu $a2, $zero, $zero -/* C0E78 8012AB28 93C2052B */ lbu $v0, 0x52B($fp) -/* C0E7C 8012AB2C 93D00531 */ lbu $s0, 0x531($fp) -/* C0E80 8012AB30 93C40530 */ lbu $a0, 0x530($fp) -/* C0E84 8012AB34 00021880 */ sll $v1, $v0, 2 -/* C0E88 8012AB38 00621821 */ addu $v1, $v1, $v0 -/* C0E8C 8012AB3C 3C028015 */ lui $v0, %hi(D_8014FEC4) -/* C0E90 8012AB40 8C42FEC4 */ lw $v0, %lo(D_8014FEC4)($v0) -/* C0E94 8012AB44 00031880 */ sll $v1, $v1, 2 -/* C0E98 8012AB48 04800078 */ bltz $a0, .LPAL_8012AD2C -/* C0E9C 8012AB4C 00438821 */ addu $s1, $v0, $v1 -/* C0EA0 8012AB50 28820002 */ slti $v0, $a0, 0x2 -/* C0EA4 8012AB54 14400005 */ bnez $v0, .LPAL_8012AB6C -/* C0EA8 8012AB58 24020002 */ addiu $v0, $zero, 0x2 -/* C0EAC 8012AB5C 10820050 */ beq $a0, $v0, .LPAL_8012ACA0 -/* C0EB0 8012AB60 00101400 */ sll $v0, $s0, 16 -/* C0EB4 8012AB64 0804AB4C */ j .LPAL_8012AD30 -/* C0EB8 8012AB68 00000000 */ nop -.LPAL_8012AB6C: -/* C0EBC 8012AB6C 54800001 */ bnel $a0, $zero, .LPAL_8012AB74 -/* C0EC0 8012AB70 24060001 */ addiu $a2, $zero, 0x1 -.LPAL_8012AB74: -/* C0EC4 8012AB74 93C30533 */ lbu $v1, 0x533($fp) -/* C0EC8 8012AB78 24050001 */ addiu $a1, $zero, 0x1 -/* C0ECC 8012AB7C 1065001E */ beq $v1, $a1, .LPAL_8012ABF8 -/* C0ED0 8012AB80 28620002 */ slti $v0, $v1, 0x2 -/* C0ED4 8012AB84 10400005 */ beqz $v0, .LPAL_8012AB9C -/* C0ED8 8012AB88 24020002 */ addiu $v0, $zero, 0x2 -/* C0EDC 8012AB8C 10600007 */ beqz $v1, .LPAL_8012ABAC -/* C0EE0 8012AB90 00101400 */ sll $v0, $s0, 16 -/* C0EE4 8012AB94 0804AB4C */ j .LPAL_8012AD30 -/* C0EE8 8012AB98 00000000 */ nop -.LPAL_8012AB9C: -/* C0EEC 8012AB9C 10620031 */ beq $v1, $v0, .LPAL_8012AC64 -/* C0EF0 8012ABA0 00101400 */ sll $v0, $s0, 16 -/* C0EF4 8012ABA4 0804AB4C */ j .LPAL_8012AD30 -/* C0EF8 8012ABA8 00000000 */ nop -.LPAL_8012ABAC: -/* C0EFC 8012ABAC 97C30534 */ lhu $v1, 0x534($fp) -/* C0F00 8012ABB0 93C40532 */ lbu $a0, 0x532($fp) -/* C0F04 8012ABB4 24630001 */ addiu $v1, $v1, 0x1 -/* C0F08 8012ABB8 00031400 */ sll $v0, $v1, 16 -/* C0F0C 8012ABBC 00021403 */ sra $v0, $v0, 16 -/* C0F10 8012ABC0 00440018 */ mult $v0, $a0 -/* C0F14 8012ABC4 A7C30534 */ sh $v1, 0x534($fp) -/* C0F18 8012ABC8 93C30531 */ lbu $v1, 0x531($fp) -/* C0F1C 8012ABCC 00001012 */ mflo $v0 -/* C0F20 8012ABD0 0040802D */ daddu $s0, $v0, $zero -/* C0F24 8012ABD4 00021400 */ sll $v0, $v0, 16 -/* C0F28 8012ABD8 00021403 */ sra $v0, $v0, 16 -/* C0F2C 8012ABDC 0043102A */ slt $v0, $v0, $v1 -/* C0F30 8012ABE0 14400053 */ bnez $v0, .LPAL_8012AD30 -/* C0F34 8012ABE4 00101400 */ sll $v0, $s0, 16 -/* C0F38 8012ABE8 93D00531 */ lbu $s0, 0x531($fp) -/* C0F3C 8012ABEC A7C00534 */ sh $zero, 0x534($fp) -/* C0F40 8012ABF0 0804AB4B */ j .LPAL_8012AD2C -/* C0F44 8012ABF4 A3C50533 */ sb $a1, 0x533($fp) -.LPAL_8012ABF8: -/* C0F48 8012ABF8 97B800AE */ lhu $t8, 0xAE($sp) -/* C0F4C 8012ABFC 3C018015 */ lui $at, %hi(D_PAL_8014F5C8) -/* C0F50 8012AC00 D420F5C8 */ ldc1 $f0, %lo(D_PAL_8014F5C8)($at) -/* C0F54 8012AC04 00181400 */ sll $v0, $t8, 16 -/* C0F58 8012AC08 00021403 */ sra $v0, $v0, 16 -/* C0F5C 8012AC0C 44821000 */ mtc1 $v0, $f2 -/* C0F60 8012AC10 00000000 */ nop -/* C0F64 8012AC14 468010A0 */ cvt.s.w $f2, $f2 -/* C0F68 8012AC18 460010A1 */ cvt.d.s $f2, $f2 -/* C0F6C 8012AC1C 93C20531 */ lbu $v0, 0x531($fp) -/* C0F70 8012AC20 46201083 */ div.d $f2, $f2, $f0 -/* C0F74 8012AC24 44820000 */ mtc1 $v0, $f0 -/* C0F78 8012AC28 00000000 */ nop -/* C0F7C 8012AC2C 46800020 */ cvt.s.w $f0, $f0 -/* C0F80 8012AC30 46000021 */ cvt.d.s $f0, $f0 -/* C0F84 8012AC34 46201002 */ mul.d $f0, $f2, $f0 -/* C0F88 8012AC38 00000000 */ nop -/* C0F8C 8012AC3C 3C0141E0 */ lui $at, (0x41E00000 >> 16) -/* C0F90 8012AC40 44811800 */ mtc1 $at, $f3 -/* C0F94 8012AC44 44801000 */ mtc1 $zero, $f2 -/* C0F98 8012AC48 00000000 */ nop -/* C0F9C 8012AC4C 4620103E */ c.le.d $f2, $f0 -/* C0FA0 8012AC50 00000000 */ nop -/* C0FA4 8012AC54 4500002B */ bc1f .LPAL_8012AD04 -/* C0FA8 8012AC58 00000000 */ nop -/* C0FAC 8012AC5C 0804AB45 */ j .LPAL_8012AD14 -/* C0FB0 8012AC60 46220001 */ sub.d $f0, $f0, $f2 -.LPAL_8012AC64: -/* C0FB4 8012AC64 97C30534 */ lhu $v1, 0x534($fp) -/* C0FB8 8012AC68 93C40532 */ lbu $a0, 0x532($fp) -/* C0FBC 8012AC6C 24630001 */ addiu $v1, $v1, 0x1 -/* C0FC0 8012AC70 00031400 */ sll $v0, $v1, 16 -/* C0FC4 8012AC74 00021403 */ sra $v0, $v0, 16 -/* C0FC8 8012AC78 00820018 */ mult $a0, $v0 -/* C0FCC 8012AC7C 93C20531 */ lbu $v0, 0x531($fp) -/* C0FD0 8012AC80 0000C012 */ mflo $t8 -/* C0FD4 8012AC84 00581023 */ subu $v0, $v0, $t8 -/* C0FD8 8012AC88 0040802D */ daddu $s0, $v0, $zero -/* C0FDC 8012AC8C 00021400 */ sll $v0, $v0, 16 -/* C0FE0 8012AC90 1C400029 */ bgtz $v0, .LPAL_8012AD38 -/* C0FE4 8012AC94 A7C30534 */ sh $v1, 0x534($fp) -/* C0FE8 8012AC98 0804AB4B */ j .LPAL_8012AD2C -/* C0FEC 8012AC9C A7C0052C */ sh $zero, 0x52C($fp) -.LPAL_8012ACA0: -/* C0FF0 8012ACA0 97B900AE */ lhu $t9, 0xAE($sp) -/* C0FF4 8012ACA4 3C018015 */ lui $at, %hi(D_PAL_8014F5D0) -/* C0FF8 8012ACA8 D420F5D0 */ ldc1 $f0, %lo(D_PAL_8014F5D0)($at) -/* C0FFC 8012ACAC 00191400 */ sll $v0, $t9, 16 -/* C1000 8012ACB0 00021403 */ sra $v0, $v0, 16 -/* C1004 8012ACB4 44821000 */ mtc1 $v0, $f2 -/* C1008 8012ACB8 00000000 */ nop -/* C100C 8012ACBC 468010A0 */ cvt.s.w $f2, $f2 -/* C1010 8012ACC0 460010A1 */ cvt.d.s $f2, $f2 -/* C1014 8012ACC4 93C20531 */ lbu $v0, 0x531($fp) -/* C1018 8012ACC8 46201083 */ div.d $f2, $f2, $f0 -/* C101C 8012ACCC 44820000 */ mtc1 $v0, $f0 -/* C1020 8012ACD0 00000000 */ nop -/* C1024 8012ACD4 46800020 */ cvt.s.w $f0, $f0 -/* C1028 8012ACD8 46000021 */ cvt.d.s $f0, $f0 -/* C102C 8012ACDC 46201002 */ mul.d $f0, $f2, $f0 -/* C1030 8012ACE0 00000000 */ nop -/* C1034 8012ACE4 3C0141E0 */ lui $at, (0x41E00000 >> 16) -/* C1038 8012ACE8 44811800 */ mtc1 $at, $f3 -/* C103C 8012ACEC 44801000 */ mtc1 $zero, $f2 -/* C1040 8012ACF0 00000000 */ nop -/* C1044 8012ACF4 4620103E */ c.le.d $f2, $f0 -/* C1048 8012ACF8 00000000 */ nop -/* C104C 8012ACFC 45030005 */ bc1tl .LPAL_8012AD14 -/* C1050 8012AD00 46220001 */ sub.d $f0, $f0, $f2 -.LPAL_8012AD04: -/* C1054 8012AD04 4620030D */ trunc.w.d $f12, $f0 -/* C1058 8012AD08 44036000 */ mfc1 $v1, $f12 -/* C105C 8012AD0C 0804AB4B */ j .LPAL_8012AD2C -/* C1060 8012AD10 307000FF */ andi $s0, $v1, 0xFF -.LPAL_8012AD14: -/* C1064 8012AD14 3C028000 */ lui $v0, (0x80000000 >> 16) -/* C1068 8012AD18 4620030D */ trunc.w.d $f12, $f0 -/* C106C 8012AD1C 44036000 */ mfc1 $v1, $f12 -/* C1070 8012AD20 00000000 */ nop -/* C1074 8012AD24 00621825 */ or $v1, $v1, $v0 -/* C1078 8012AD28 307000FF */ andi $s0, $v1, 0xFF -.LPAL_8012AD2C: -/* C107C 8012AD2C 00101400 */ sll $v0, $s0, 16 -.LPAL_8012AD30: -/* C1080 8012AD30 18400036 */ blez $v0, .LPAL_8012AE0C -/* C1084 8012AD34 00000000 */ nop -.LPAL_8012AD38: -/* C1088 8012AD38 00C0102D */ daddu $v0, $a2, $zero -/* C108C 8012AD3C 1040001E */ beqz $v0, .LPAL_8012ADB8 -/* C1090 8012AD40 0000202D */ daddu $a0, $zero, $zero -/* C1094 8012AD44 97C6052C */ lhu $a2, 0x52C($fp) -/* C1098 8012AD48 97C7052E */ lhu $a3, 0x52E($fp) -/* C109C 8012AD4C 2405000F */ addiu $a1, $zero, 0xF -/* C10A0 8012AD50 AFA00010 */ sw $zero, 0x10($sp) -/* C10A4 8012AD54 96220008 */ lhu $v0, 0x8($s1) -/* C10A8 8012AD58 24C6FFF9 */ addiu $a2, $a2, -0x7 -/* C10AC 8012AD5C 24E7FFF9 */ addiu $a3, $a3, -0x7 -/* C10B0 8012AD60 00451021 */ addu $v0, $v0, $a1 -/* C10B4 8012AD64 AFA20014 */ sw $v0, 0x14($sp) -/* C10B8 8012AD68 9623000A */ lhu $v1, 0xA($s1) -/* C10BC 8012AD6C 320200FF */ andi $v0, $s0, 0xFF -/* C10C0 8012AD70 AFA2001C */ sw $v0, 0x1C($sp) -/* C10C4 8012AD74 24020140 */ addiu $v0, $zero, 0x140 -/* C10C8 8012AD78 AFA20044 */ sw $v0, 0x44($sp) -/* C10CC 8012AD7C 240200F0 */ addiu $v0, $zero, 0xF0 -/* C10D0 8012AD80 AFA00020 */ sw $zero, 0x20($sp) -/* C10D4 8012AD84 AFA00024 */ sw $zero, 0x24($sp) -/* C10D8 8012AD88 AFA00028 */ sw $zero, 0x28($sp) -/* C10DC 8012AD8C AFA0002C */ sw $zero, 0x2C($sp) -/* C10E0 8012AD90 AFA00030 */ sw $zero, 0x30($sp) -/* C10E4 8012AD94 AFA00034 */ sw $zero, 0x34($sp) -/* C10E8 8012AD98 AFA00038 */ sw $zero, 0x38($sp) -/* C10EC 8012AD9C AFA0003C */ sw $zero, 0x3C($sp) -/* C10F0 8012ADA0 AFA00040 */ sw $zero, 0x40($sp) -/* C10F4 8012ADA4 AFA20048 */ sw $v0, 0x48($sp) -/* C10F8 8012ADA8 AFA0004C */ sw $zero, 0x4C($sp) -/* C10FC 8012ADAC 2463000E */ addiu $v1, $v1, 0xE -/* C1100 8012ADB0 0C03C5C4 */ jal draw_box -/* C1104 8012ADB4 AFA30018 */ sw $v1, 0x18($sp) -.LPAL_8012ADB8: -/* C1108 8012ADB8 8E220010 */ lw $v0, 0x10($s1) -/* C110C 8012ADBC 96250008 */ lhu $a1, 0x8($s1) -/* C1110 8012ADC0 9626000A */ lhu $a2, 0xA($s1) -/* C1114 8012ADC4 AFA20010 */ sw $v0, 0x10($sp) -/* C1118 8012ADC8 8E220004 */ lw $v0, 0x4($s1) -/* C111C 8012ADCC AFA20014 */ sw $v0, 0x14($sp) -/* C1120 8012ADD0 87C2052C */ lh $v0, 0x52C($fp) -/* C1124 8012ADD4 AFA20018 */ sw $v0, 0x18($sp) -/* C1128 8012ADD8 87C3052E */ lh $v1, 0x52E($fp) -/* C112C 8012ADDC 2402013F */ addiu $v0, $zero, 0x13F -/* C1130 8012ADE0 AFA20028 */ sw $v0, 0x28($sp) -/* C1134 8012ADE4 240200EF */ addiu $v0, $zero, 0xEF -/* C1138 8012ADE8 AFA2002C */ sw $v0, 0x2C($sp) -/* C113C 8012ADEC 320200FF */ andi $v0, $s0, 0xFF -/* C1140 8012ADF0 AFA00020 */ sw $zero, 0x20($sp) -/* C1144 8012ADF4 AFA00024 */ sw $zero, 0x24($sp) -/* C1148 8012ADF8 AFA20030 */ sw $v0, 0x30($sp) -/* C114C 8012ADFC AFA3001C */ sw $v1, 0x1C($sp) -/* C1150 8012AE00 8E240000 */ lw $a0, 0x0($s1) -/* C1154 8012AE04 0C04B550 */ jal draw_ci_image_with_clipping -/* C1158 8012AE08 8E27000C */ lw $a3, 0xC($s1) -.LPAL_8012AE0C: -/* C115C 8012AE0C 3C028009 */ lui $v0, %hi(gMainGfxPos) -/* C1160 8012AE10 24426A44 */ addiu $v0, $v0, %lo(gMainGfxPos) -/* C1164 8012AE14 8C430000 */ lw $v1, 0x0($v0) -/* C1168 8012AE18 0060202D */ daddu $a0, $v1, $zero -/* C116C 8012AE1C 24630008 */ addiu $v1, $v1, 0x8 -/* C1170 8012AE20 AC430000 */ sw $v1, 0x0($v0) -/* C1174 8012AE24 3C02E700 */ lui $v0, (0xE7000000 >> 16) -/* C1178 8012AE28 AC820000 */ sw $v0, 0x0($a0) -/* C117C 8012AE2C AC800004 */ sw $zero, 0x4($a0) -/* C1180 8012AE30 8FBF010C */ lw $ra, 0x10C($sp) -/* C1184 8012AE34 8FBE0108 */ lw $fp, 0x108($sp) -/* C1188 8012AE38 8FB70104 */ lw $s7, 0x104($sp) -/* C118C 8012AE3C 8FB60100 */ lw $s6, 0x100($sp) -/* C1190 8012AE40 8FB500FC */ lw $s5, 0xFC($sp) -/* C1194 8012AE44 8FB400F8 */ lw $s4, 0xF8($sp) -/* C1198 8012AE48 8FB300F4 */ lw $s3, 0xF4($sp) -/* C119C 8012AE4C 8FB200F0 */ lw $s2, 0xF0($sp) -/* C11A0 8012AE50 8FB100EC */ lw $s1, 0xEC($sp) -/* C11A4 8012AE54 8FB000E8 */ lw $s0, 0xE8($sp) -/* C11A8 8012AE58 D7BE0138 */ ldc1 $f30, 0x138($sp) -/* C11AC 8012AE5C D7BC0130 */ ldc1 $f28, 0x130($sp) -/* C11B0 8012AE60 D7BA0128 */ ldc1 $f26, 0x128($sp) -/* C11B4 8012AE64 D7B80120 */ ldc1 $f24, 0x120($sp) -/* C11B8 8012AE68 D7B60118 */ ldc1 $f22, 0x118($sp) -/* C11BC 8012AE6C D7B40110 */ ldc1 $f20, 0x110($sp) -/* C11C0 8012AE70 3C018015 */ lui $at, %hi(D_8014FF08) -/* C11C4 8012AE74 AC23FF08 */ sw $v1, %lo(D_8014FF08)($at) -/* C11C8 8012AE78 03E00008 */ jr $ra -/* C11CC 8012AE7C 27BD0140 */ addiu $sp, $sp, 0x140 diff --git a/ver/pal/asm/nonmatchings/pause/pause_items/pause_items_draw_contents.s b/ver/pal/asm/nonmatchings/pause/pause_items/pause_items_draw_contents.s deleted file mode 100644 index 97f00f805d5..00000000000 --- a/ver/pal/asm/nonmatchings/pause/pause_items/pause_items_draw_contents.s +++ /dev/null @@ -1,839 +0,0 @@ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ - -/* Generated by spimdisasm 1.11.1 */ - -glabel pause_items_draw_contents -/* 142920 8024DAE0 27BDFF58 */ addiu $sp, $sp, -0xA8 -/* 142924 8024DAE4 3C038027 */ lui $v1, %hi(gPauseItemsCurrentPage) -/* 142928 8024DAE8 8C632898 */ lw $v1, %lo(gPauseItemsCurrentPage)($v1) -/* 14292C 8024DAEC 240A0001 */ addiu $t2, $zero, 0x1 -/* 142930 8024DAF0 AFA500AC */ sw $a1, 0xAC($sp) -/* 142934 8024DAF4 AFAA0060 */ sw $t2, 0x60($sp) -/* 142938 8024DAF8 8FAA00AC */ lw $t2, 0xAC($sp) -/* 14293C 8024DAFC AFA600B0 */ sw $a2, 0xB0($sp) -/* 142940 8024DB00 AFA700B4 */ sw $a3, 0xB4($sp) -/* 142944 8024DB04 8FA700B0 */ lw $a3, 0xB0($sp) -/* 142948 8024DB08 240B000A */ addiu $t3, $zero, 0xA -/* 14294C 8024DB0C AFAB0064 */ sw $t3, 0x64($sp) -/* 142950 8024DB10 8FAB00B4 */ lw $t3, 0xB4($sp) -/* 142954 8024DB14 AFBF00A4 */ sw $ra, 0xA4($sp) -/* 142958 8024DB18 AFBE00A0 */ sw $fp, 0xA0($sp) -/* 14295C 8024DB1C AFB7009C */ sw $s7, 0x9C($sp) -/* 142960 8024DB20 AFB60098 */ sw $s6, 0x98($sp) -/* 142964 8024DB24 AFB50094 */ sw $s5, 0x94($sp) -/* 142968 8024DB28 AFB40090 */ sw $s4, 0x90($sp) -/* 14296C 8024DB2C AFB3008C */ sw $s3, 0x8C($sp) -/* 142970 8024DB30 AFB20088 */ sw $s2, 0x88($sp) -/* 142974 8024DB34 AFB10084 */ sw $s1, 0x84($sp) -/* 142978 8024DB38 AFB00080 */ sw $s0, 0x80($sp) -/* 14297C 8024DB3C 25460044 */ addiu $a2, $t2, 0x44 -/* 142980 8024DB40 00031040 */ sll $v0, $v1, 1 -/* 142984 8024DB44 00431021 */ addu $v0, $v0, $v1 -/* 142988 8024DB48 00021080 */ sll $v0, $v0, 2 -/* 14298C 8024DB4C 3C088027 */ lui $t0, %hi(gPauseItemsPages+0x2) -/* 142990 8024DB50 01024021 */ addu $t0, $t0, $v0 -/* 142994 8024DB54 910828A2 */ lbu $t0, %lo(gPauseItemsPages+0x2)($t0) -/* 142998 8024DB58 8FAA00B8 */ lw $t2, 0xB8($sp) -/* 14299C 8024DB5C 2562FFBC */ addiu $v0, $t3, -0x44 -/* 1429A0 8024DB60 AFA20014 */ sw $v0, 0x14($sp) -/* 1429A4 8024DB64 240200FF */ addiu $v0, $zero, 0xFF -/* 1429A8 8024DB68 AFA00010 */ sw $zero, 0x10($sp) -/* 1429AC 8024DB6C AFA2001C */ sw $v0, 0x1C($sp) -/* 1429B0 8024DB70 AFA00020 */ sw $zero, 0x20($sp) -/* 1429B4 8024DB74 AFA00024 */ sw $zero, 0x24($sp) -/* 1429B8 8024DB78 AFA00028 */ sw $zero, 0x28($sp) -/* 1429BC 8024DB7C AFA0002C */ sw $zero, 0x2C($sp) -/* 1429C0 8024DB80 AFA00030 */ sw $zero, 0x30($sp) -/* 1429C4 8024DB84 AFA00034 */ sw $zero, 0x34($sp) -/* 1429C8 8024DB88 AFA00038 */ sw $zero, 0x38($sp) -/* 1429CC 8024DB8C AFA0003C */ sw $zero, 0x3C($sp) -/* 1429D0 8024DB90 AFAA0018 */ sw $t2, 0x18($sp) -/* 1429D4 8024DB94 AFA00040 */ sw $zero, 0x40($sp) -/* 1429D8 8024DB98 3C038027 */ lui $v1, %hi(gPauseItemsSelectedIndex) -/* 1429DC 8024DB9C 8C632990 */ lw $v1, %lo(gPauseItemsSelectedIndex)($v1) -/* 1429E0 8024DBA0 15000002 */ bnez $t0, .Lpause_8024DBAC -/* 1429E4 8024DBA4 0068001A */ div $zero, $v1, $t0 -/* 1429E8 8024DBA8 0007000D */ break 7 -.Lpause_8024DBAC: -/* 1429EC 8024DBAC 2401FFFF */ addiu $at, $zero, -0x1 -/* 1429F0 8024DBB0 15010004 */ bne $t0, $at, .Lpause_8024DBC4 -/* 1429F4 8024DBB4 3C018000 */ lui $at, (0x80000000 >> 16) -/* 1429F8 8024DBB8 14610002 */ bne $v1, $at, .Lpause_8024DBC4 -/* 1429FC 8024DBBC 00000000 */ nop -/* 142A00 8024DBC0 0006000D */ break 6 -.Lpause_8024DBC4: -/* 142A04 8024DBC4 00005012 */ mflo $t2 -/* 142A08 8024DBC8 00005810 */ mfhi $t3 -/* 142A0C 8024DBCC 24040004 */ addiu $a0, $zero, 0x4 -/* 142A10 8024DBD0 3C058027 */ lui $a1, %hi(gPauseWS_18) -/* 142A14 8024DBD4 24A520C0 */ addiu $a1, $a1, %lo(gPauseWS_18) -/* 142A18 8024DBD8 24020140 */ addiu $v0, $zero, 0x140 -/* 142A1C 8024DBDC AFA20044 */ sw $v0, 0x44($sp) -/* 142A20 8024DBE0 240200F0 */ addiu $v0, $zero, 0xF0 -/* 142A24 8024DBE4 AFA20048 */ sw $v0, 0x48($sp) -/* 142A28 8024DBE8 AFA0004C */ sw $zero, 0x4C($sp) -/* 142A2C 8024DBEC AFAA005C */ sw $t2, 0x5C($sp) -/* 142A30 8024DBF0 0C03C5C4 */ jal draw_box -/* 142A34 8024DBF4 AFAB0058 */ sw $t3, 0x58($sp) -/* 142A38 8024DBF8 3C108027 */ lui $s0, %hi(gPauseItemsPages) -/* 142A3C 8024DBFC 261028A0 */ addiu $s0, $s0, %lo(gPauseItemsPages) -/* 142A40 8024DC00 8FAB00B0 */ lw $t3, 0xB0($sp) -/* 142A44 8024DC04 8FAA00AC */ lw $t2, 0xAC($sp) -/* 142A48 8024DC08 25660007 */ addiu $a2, $t3, 0x7 -/* 142A4C 8024DC0C 8FAB00B4 */ lw $t3, 0xB4($sp) -/* 142A50 8024DC10 25440001 */ addiu $a0, $t2, 0x1 -/* 142A54 8024DC14 014B1021 */ addu $v0, $t2, $t3 -/* 142A58 8024DC18 8FAA00B0 */ lw $t2, 0xB0($sp) -/* 142A5C 8024DC1C 8FAB00B8 */ lw $t3, 0xB8($sp) -/* 142A60 8024DC20 2447FFFF */ addiu $a3, $v0, -0x1 -/* 142A64 8024DC24 014B1021 */ addu $v0, $t2, $t3 -/* 142A68 8024DC28 1C800002 */ bgtz $a0, .Lpause_8024DC34 -/* 142A6C 8024DC2C 2448FFF9 */ addiu $t0, $v0, -0x7 -/* 142A70 8024DC30 24040001 */ addiu $a0, $zero, 0x1 -.Lpause_8024DC34: -/* 142A74 8024DC34 58C00001 */ blezl $a2, .Lpause_8024DC3C -/* 142A78 8024DC38 24060001 */ addiu $a2, $zero, 0x1 -.Lpause_8024DC3C: -/* 142A7C 8024DC3C 18E002AA */ blez $a3, .Lpause_8024E6E8 -/* 142A80 8024DC40 00000000 */ nop -/* 142A84 8024DC44 190002A8 */ blez $t0, .Lpause_8024E6E8 -/* 142A88 8024DC48 2882013F */ slti $v0, $a0, 0x13F -/* 142A8C 8024DC4C 104002A6 */ beqz $v0, .Lpause_8024E6E8 -/* 142A90 8024DC50 28C200EF */ slti $v0, $a2, 0xEF -/* 142A94 8024DC54 104002A4 */ beqz $v0, .Lpause_8024E6E8 -/* 142A98 8024DC58 28E2013F */ slti $v0, $a3, 0x13F -/* 142A9C 8024DC5C 50400001 */ beql $v0, $zero, .Lpause_8024DC64 -/* 142AA0 8024DC60 2407013F */ addiu $a3, $zero, 0x13F -.Lpause_8024DC64: -/* 142AA4 8024DC64 290200EF */ slti $v0, $t0, 0xEF -/* 142AA8 8024DC68 50400001 */ beql $v0, $zero, .Lpause_8024DC70 -/* 142AAC 8024DC6C 240800EF */ addiu $t0, $zero, 0xEF -.Lpause_8024DC70: -/* 142AB0 8024DC70 3C038009 */ lui $v1, %hi(gMainGfxPos) -/* 142AB4 8024DC74 24636A44 */ addiu $v1, $v1, %lo(gMainGfxPos) -/* 142AB8 8024DC78 44841000 */ mtc1 $a0, $f2 -/* 142ABC 8024DC7C 00000000 */ nop -/* 142AC0 8024DC80 468010A0 */ cvt.s.w $f2, $f2 -/* 142AC4 8024DC84 44860000 */ mtc1 $a2, $f0 -/* 142AC8 8024DC88 00000000 */ nop -/* 142ACC 8024DC8C 46800020 */ cvt.s.w $f0, $f0 -/* 142AD0 8024DC90 8FAA00AC */ lw $t2, 0xAC($sp) -/* 142AD4 8024DC94 8FAB00B0 */ lw $t3, 0xB0($sp) -/* 142AD8 8024DC98 3C014080 */ lui $at, (0x40800000 >> 16) -/* 142ADC 8024DC9C 44812000 */ mtc1 $at, $f4 -/* 142AE0 8024DCA0 3C04ED00 */ lui $a0, (0xED000000 >> 16) -/* 142AE4 8024DCA4 AFA00054 */ sw $zero, 0x54($sp) -/* 142AE8 8024DCA8 AFA00050 */ sw $zero, 0x50($sp) -/* 142AEC 8024DCAC 254A0077 */ addiu $t2, $t2, 0x77 -/* 142AF0 8024DCB0 46041082 */ mul.s $f2, $f2, $f4 -/* 142AF4 8024DCB4 00000000 */ nop -/* 142AF8 8024DCB8 256B0011 */ addiu $t3, $t3, 0x11 -/* 142AFC 8024DCBC AFAA006C */ sw $t2, 0x6C($sp) -/* 142B00 8024DCC0 AFAB0070 */ sw $t3, 0x70($sp) -/* 142B04 8024DCC4 8C620000 */ lw $v0, 0x0($v1) -/* 142B08 8024DCC8 46040002 */ mul.s $f0, $f0, $f4 -/* 142B0C 8024DCCC 00000000 */ nop -/* 142B10 8024DCD0 0040282D */ daddu $a1, $v0, $zero -/* 142B14 8024DCD4 24420008 */ addiu $v0, $v0, 0x8 -/* 142B18 8024DCD8 AC620000 */ sw $v0, 0x0($v1) -/* 142B1C 8024DCDC 4600118D */ trunc.w.s $f6, $f2 -/* 142B20 8024DCE0 44023000 */ mfc1 $v0, $f6 -/* 142B24 8024DCE4 00000000 */ nop -/* 142B28 8024DCE8 30420FFF */ andi $v0, $v0, 0xFFF -/* 142B2C 8024DCEC 00021300 */ sll $v0, $v0, 12 -/* 142B30 8024DCF0 4600018D */ trunc.w.s $f6, $f0 -/* 142B34 8024DCF4 44033000 */ mfc1 $v1, $f6 -/* 142B38 8024DCF8 44871000 */ mtc1 $a3, $f2 -/* 142B3C 8024DCFC 00000000 */ nop -/* 142B40 8024DD00 468010A0 */ cvt.s.w $f2, $f2 -/* 142B44 8024DD04 46041082 */ mul.s $f2, $f2, $f4 -/* 142B48 8024DD08 00000000 */ nop -/* 142B4C 8024DD0C 30630FFF */ andi $v1, $v1, 0xFFF -/* 142B50 8024DD10 00641825 */ or $v1, $v1, $a0 -/* 142B54 8024DD14 00431025 */ or $v0, $v0, $v1 -/* 142B58 8024DD18 44880000 */ mtc1 $t0, $f0 -/* 142B5C 8024DD1C 00000000 */ nop -/* 142B60 8024DD20 46800020 */ cvt.s.w $f0, $f0 -/* 142B64 8024DD24 46040002 */ mul.s $f0, $f0, $f4 -/* 142B68 8024DD28 00000000 */ nop -/* 142B6C 8024DD2C ACA20000 */ sw $v0, 0x0($a1) -/* 142B70 8024DD30 4600118D */ trunc.w.s $f6, $f2 -/* 142B74 8024DD34 44023000 */ mfc1 $v0, $f6 -/* 142B78 8024DD38 00000000 */ nop -/* 142B7C 8024DD3C 30420FFF */ andi $v0, $v0, 0xFFF -/* 142B80 8024DD40 00021300 */ sll $v0, $v0, 12 -/* 142B84 8024DD44 4600018D */ trunc.w.s $f6, $f0 -/* 142B88 8024DD48 44033000 */ mfc1 $v1, $f6 -/* 142B8C 8024DD4C 00000000 */ nop -/* 142B90 8024DD50 30630FFF */ andi $v1, $v1, 0xFFF -/* 142B94 8024DD54 00431025 */ or $v0, $v0, $v1 -/* 142B98 8024DD58 ACA20004 */ sw $v0, 0x4($a1) -.Lpause_8024DD5C: -/* 142B9C 8024DD5C 0000F02D */ daddu $fp, $zero, $zero -/* 142BA0 8024DD60 3C0B8027 */ lui $t3, %hi(gPauseItemsPages) -/* 142BA4 8024DD64 256B28A0 */ addiu $t3, $t3, %lo(gPauseItemsPages) -/* 142BA8 8024DD68 AFAB007C */ sw $t3, 0x7C($sp) -.Lpause_8024DD6C: -/* 142BAC 8024DD6C 8FAA007C */ lw $t2, 0x7C($sp) -/* 142BB0 8024DD70 91420000 */ lbu $v0, 0x0($t2) -/* 142BB4 8024DD74 104000E2 */ beqz $v0, .Lpause_8024E100 -/* 142BB8 8024DD78 00000000 */ nop -/* 142BBC 8024DD7C 03C0202D */ daddu $a0, $fp, $zero -/* 142BC0 8024DD80 0C093666 */ jal pause_items_get_pos_y -/* 142BC4 8024DD84 0000282D */ daddu $a1, $zero, $zero -/* 142BC8 8024DD88 8FAB007C */ lw $t3, 0x7C($sp) -/* 142BCC 8024DD8C 8D620008 */ lw $v0, 0x8($t3) -/* 142BD0 8024DD90 184000D5 */ blez $v0, .Lpause_8024E0E8 -/* 142BD4 8024DD94 0000902D */ daddu $s2, $zero, $zero -/* 142BD8 8024DD98 8FAA0054 */ lw $t2, 0x54($sp) -/* 142BDC 8024DD9C 3C0B8027 */ lui $t3, %hi(gPauseItemsHIDs) -/* 142BE0 8024DDA0 256B29B8 */ addiu $t3, $t3, %lo(gPauseItemsHIDs) -/* 142BE4 8024DDA4 000A1080 */ sll $v0, $t2, 2 -/* 142BE8 8024DDA8 004B5821 */ addu $t3, $v0, $t3 -/* 142BEC 8024DDAC AFAB0078 */ sw $t3, 0x78($sp) -.Lpause_8024DDB0: -/* 142BF0 8024DDB0 8FAA007C */ lw $t2, 0x7C($sp) -/* 142BF4 8024DDB4 3C0B8027 */ lui $t3, %hi(gPauseItemsItemIDs) -/* 142BF8 8024DDB8 256B27D0 */ addiu $t3, $t3, %lo(gPauseItemsItemIDs) -/* 142BFC 8024DDBC 8D420004 */ lw $v0, 0x4($t2) -/* 142C00 8024DDC0 24037FFF */ addiu $v1, $zero, 0x7FFF -/* 142C04 8024DDC4 00521021 */ addu $v0, $v0, $s2 -/* 142C08 8024DDC8 00021040 */ sll $v0, $v0, 1 -/* 142C0C 8024DDCC 004B1021 */ addu $v0, $v0, $t3 -/* 142C10 8024DDD0 84500000 */ lh $s0, 0x0($v0) -/* 142C14 8024DDD4 94560000 */ lhu $s6, 0x0($v0) -/* 142C18 8024DDD8 120300BD */ beq $s0, $v1, .Lpause_8024E0D0 -/* 142C1C 8024DDDC 0000982D */ daddu $s3, $zero, $zero -/* 142C20 8024DDE0 03C0202D */ daddu $a0, $fp, $zero -/* 142C24 8024DDE4 0C093650 */ jal pause_items_get_pos_x -/* 142C28 8024DDE8 0240282D */ daddu $a1, $s2, $zero -/* 142C2C 8024DDEC 03C0202D */ daddu $a0, $fp, $zero -/* 142C30 8024DDF0 0240282D */ daddu $a1, $s2, $zero -/* 142C34 8024DDF4 0C093666 */ jal pause_items_get_pos_y -/* 142C38 8024DDF8 AFA20068 */ sw $v0, 0x68($sp) -/* 142C3C 8024DDFC 0040B82D */ daddu $s7, $v0, $zero -/* 142C40 8024DE00 3A027FFE */ xori $v0, $s0, 0x7FFE -/* 142C44 8024DE04 3C038027 */ lui $v1, %hi(gPauseMenuCurrentTab) -/* 142C48 8024DE08 806324A4 */ lb $v1, %lo(gPauseMenuCurrentTab)($v1) -/* 142C4C 8024DE0C 2C420001 */ sltiu $v0, $v0, 0x1 -/* 142C50 8024DE10 AFA20074 */ sw $v0, 0x74($sp) -/* 142C54 8024DE14 24020003 */ addiu $v0, $zero, 0x3 -/* 142C58 8024DE18 14620012 */ bne $v1, $v0, .Lpause_8024DE64 -/* 142C5C 8024DE1C 0000A02D */ daddu $s4, $zero, $zero -/* 142C60 8024DE20 3C028027 */ lui $v0, %hi(gPauseItemsLevel) -/* 142C64 8024DE24 8C4229B0 */ lw $v0, %lo(gPauseItemsLevel)($v0) -/* 142C68 8024DE28 240A0001 */ addiu $t2, $zero, 0x1 -/* 142C6C 8024DE2C 144A000D */ bne $v0, $t2, .Lpause_8024DE64 -/* 142C70 8024DE30 03C0202D */ daddu $a0, $fp, $zero -/* 142C74 8024DE34 0C093682 */ jal pause_items_get_column -/* 142C78 8024DE38 0240282D */ daddu $a1, $s2, $zero -/* 142C7C 8024DE3C 8FAB0058 */ lw $t3, 0x58($sp) -/* 142C80 8024DE40 144B0008 */ bne $v0, $t3, .Lpause_8024DE64 -/* 142C84 8024DE44 0000A02D */ daddu $s4, $zero, $zero -/* 142C88 8024DE48 03C0202D */ daddu $a0, $fp, $zero -/* 142C8C 8024DE4C 0C093694 */ jal pause_items_get_row -/* 142C90 8024DE50 0240282D */ daddu $a1, $s2, $zero -/* 142C94 8024DE54 8FAA005C */ lw $t2, 0x5C($sp) -/* 142C98 8024DE58 004A1026 */ xor $v0, $v0, $t2 -/* 142C9C 8024DE5C 2C530001 */ sltiu $s3, $v0, 0x1 -/* 142CA0 8024DE60 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024DE64: -/* 142CA4 8024DE64 12600003 */ beqz $s3, .Lpause_8024DE74 -/* 142CA8 8024DE68 0280A82D */ daddu $s5, $s4, $zero -/* 142CAC 8024DE6C 2414FFFF */ addiu $s4, $zero, -0x1 -/* 142CB0 8024DE70 0280A82D */ daddu $s5, $s4, $zero -.Lpause_8024DE74: -/* 142CB4 8024DE74 8FAB0050 */ lw $t3, 0x50($sp) -/* 142CB8 8024DE78 15600007 */ bnez $t3, .Lpause_8024DE98 -/* 142CBC 8024DE7C 240A0001 */ addiu $t2, $zero, 0x1 -/* 142CC0 8024DE80 240B000A */ addiu $t3, $zero, 0xA -/* 142CC4 8024DE84 AFAA0060 */ sw $t2, 0x60($sp) -/* 142CC8 8024DE88 12600003 */ beqz $s3, .Lpause_8024DE98 -/* 142CCC 8024DE8C AFAB0064 */ sw $t3, 0x64($sp) -/* 142CD0 8024DE90 240A0009 */ addiu $t2, $zero, 0x9 -/* 142CD4 8024DE94 AFAA0060 */ sw $t2, 0x60($sp) -.Lpause_8024DE98: -/* 142CD8 8024DE98 0C0936A8 */ jal pause_items_is_visible -/* 142CDC 8024DE9C 02E0202D */ daddu $a0, $s7, $zero -/* 142CE0 8024DEA0 1040008B */ beqz $v0, .Lpause_8024E0D0 -/* 142CE4 8024DEA4 00000000 */ nop -/* 142CE8 8024DEA8 8FAB0050 */ lw $t3, 0x50($sp) -/* 142CEC 8024DEAC 15600035 */ bnez $t3, .Lpause_8024DF84 -/* 142CF0 8024DEB0 00000000 */ nop -/* 142CF4 8024DEB4 8FAA0074 */ lw $t2, 0x74($sp) -/* 142CF8 8024DEB8 11400016 */ beqz $t2, .Lpause_8024DF14 -/* 142CFC 8024DEBC 00161400 */ sll $v0, $s6, 16 -/* 142D00 8024DEC0 0C094C60 */ jal pause_get_menu_msg -/* 142D04 8024DEC4 24040049 */ addiu $a0, $zero, 0x49 -/* 142D08 8024DEC8 8FA40068 */ lw $a0, 0x68($sp) -/* 142D0C 8024DECC 0C0936B6 */ jal pause_items_scroll_offset_x -/* 142D10 8024DED0 0040882D */ daddu $s1, $v0, $zero -/* 142D14 8024DED4 8FAB006C */ lw $t3, 0x6C($sp) -/* 142D18 8024DED8 02E0202D */ daddu $a0, $s7, $zero -/* 142D1C 8024DEDC 01628021 */ addu $s0, $t3, $v0 -/* 142D20 8024DEE0 0C0936B2 */ jal pause_items_scroll_offset_y -/* 142D24 8024DEE4 02148021 */ addu $s0, $s0, $s4 -/* 142D28 8024DEE8 0220202D */ daddu $a0, $s1, $zero -/* 142D2C 8024DEEC 0200282D */ daddu $a1, $s0, $zero -/* 142D30 8024DEF0 240700FF */ addiu $a3, $zero, 0xFF -/* 142D34 8024DEF4 8FAA0070 */ lw $t2, 0x70($sp) -/* 142D38 8024DEF8 8FAB0064 */ lw $t3, 0x64($sp) -/* 142D3C 8024DEFC 01421021 */ addu $v0, $t2, $v0 -/* 142D40 8024DF00 8FAA0060 */ lw $t2, 0x60($sp) -/* 142D44 8024DF04 00553021 */ addu $a2, $v0, $s5 -/* 142D48 8024DF08 AFAB0010 */ sw $t3, 0x10($sp) -/* 142D4C 8024DF0C 080937DF */ j .Lpause_8024DF7C -/* 142D50 8024DF10 AFAA0014 */ sw $t2, 0x14($sp) -.Lpause_8024DF14: -/* 142D54 8024DF14 000212C3 */ sra $v0, $v0, 11 -/* 142D58 8024DF18 3C0B8008 */ lui $t3, %hi(gItemTable) -/* 142D5C 8024DF1C 256B3C80 */ addiu $t3, $t3, %lo(gItemTable) -/* 142D60 8024DF20 004B8821 */ addu $s1, $v0, $t3 -/* 142D64 8024DF24 8E220000 */ lw $v0, 0x0($s1) -/* 142D68 8024DF28 10400016 */ beqz $v0, .Lpause_8024DF84 -/* 142D6C 8024DF2C 00000000 */ nop -/* 142D70 8024DF30 18400014 */ blez $v0, .Lpause_8024DF84 -/* 142D74 8024DF34 00000000 */ nop -/* 142D78 8024DF38 0C0936B6 */ jal pause_items_scroll_offset_x -/* 142D7C 8024DF3C 8FA40068 */ lw $a0, 0x68($sp) -/* 142D80 8024DF40 8FAA006C */ lw $t2, 0x6C($sp) -/* 142D84 8024DF44 02E0202D */ daddu $a0, $s7, $zero -/* 142D88 8024DF48 01428021 */ addu $s0, $t2, $v0 -/* 142D8C 8024DF4C 0C0936B2 */ jal pause_items_scroll_offset_y -/* 142D90 8024DF50 02148021 */ addu $s0, $s0, $s4 -/* 142D94 8024DF54 0200282D */ daddu $a1, $s0, $zero -/* 142D98 8024DF58 8FAB0070 */ lw $t3, 0x70($sp) -/* 142D9C 8024DF5C 8FAA0064 */ lw $t2, 0x64($sp) -/* 142DA0 8024DF60 01621021 */ addu $v0, $t3, $v0 -/* 142DA4 8024DF64 8FAB0060 */ lw $t3, 0x60($sp) -/* 142DA8 8024DF68 240700FF */ addiu $a3, $zero, 0xFF -/* 142DAC 8024DF6C AFAA0010 */ sw $t2, 0x10($sp) -/* 142DB0 8024DF70 AFAB0014 */ sw $t3, 0x14($sp) -/* 142DB4 8024DF74 8E240000 */ lw $a0, 0x0($s1) -/* 142DB8 8024DF78 00553021 */ addu $a2, $v0, $s5 -.Lpause_8024DF7C: -/* 142DBC 8024DF7C 0C049403 */ jal draw_msg -/* 142DC0 8024DF80 00000000 */ nop -.Lpause_8024DF84: -/* 142DC4 8024DF84 8FAA0050 */ lw $t2, 0x50($sp) -/* 142DC8 8024DF88 240B0001 */ addiu $t3, $zero, 0x1 -/* 142DCC 8024DF8C 154B0050 */ bne $t2, $t3, .Lpause_8024E0D0 -/* 142DD0 8024DF90 3C052000 */ lui $a1, (0x20000000 >> 16) -/* 142DD4 8024DF94 8FAA0078 */ lw $t2, 0x78($sp) -/* 142DD8 8024DF98 8D510000 */ lw $s1, 0x0($t2) -/* 142DDC 8024DF9C 0C050D77 */ jal hud_element_clear_flags -/* 142DE0 8024DFA0 0220202D */ daddu $a0, $s1, $zero -/* 142DE4 8024DFA4 0220202D */ daddu $a0, $s1, $zero -/* 142DE8 8024DFA8 0C050D6C */ jal hud_element_set_flags -/* 142DEC 8024DFAC 34058000 */ ori $a1, $zero, 0x8000 -/* 142DF0 8024DFB0 8FAB0074 */ lw $t3, 0x74($sp) -/* 142DF4 8024DFB4 11600005 */ beqz $t3, .Lpause_8024DFCC -/* 142DF8 8024DFB8 00000000 */ nop -/* 142DFC 8024DFBC 3C118027 */ lui $s1, %hi(gPauseItemsHIDs+0x4C) -/* 142E00 8024DFC0 8E312A04 */ lw $s1, %lo(gPauseItemsHIDs+0x4C)($s1) -/* 142E04 8024DFC4 08093815 */ j .Lpause_8024E054 -/* 142E08 8024DFC8 00000000 */ nop -.Lpause_8024DFCC: -/* 142E0C 8024DFCC 12600010 */ beqz $s3, .Lpause_8024E010 -/* 142E10 8024DFD0 0220202D */ daddu $a0, $s1, $zero -/* 142E14 8024DFD4 0C050D6C */ jal hud_element_set_flags -/* 142E18 8024DFD8 3C052000 */ lui $a1, (0x20000000 >> 16) -/* 142E1C 8024DFDC 00161400 */ sll $v0, $s6, 16 -/* 142E20 8024DFE0 000212C3 */ sra $v0, $v0, 11 -/* 142E24 8024DFE4 3C0A8008 */ lui $t2, %hi(gItemTable) -/* 142E28 8024DFE8 254A3C80 */ addiu $t2, $t2, %lo(gItemTable) -/* 142E2C 8024DFEC 004A1021 */ addu $v0, $v0, $t2 -/* 142E30 8024DFF0 84420004 */ lh $v0, 0x4($v0) -/* 142E34 8024DFF4 3C0B8008 */ lui $t3, %hi(gItemHudScripts) -/* 142E38 8024DFF8 256B6A20 */ addiu $t3, $t3, %lo(gItemHudScripts) -/* 142E3C 8024DFFC 000210C0 */ sll $v0, $v0, 3 -/* 142E40 8024E000 004B1021 */ addu $v0, $v0, $t3 -/* 142E44 8024E004 8C420000 */ lw $v0, 0x0($v0) -/* 142E48 8024E008 3C018027 */ lui $at, %hi(gPauseCurrentDescIconScript) -/* 142E4C 8024E00C AC22249C */ sw $v0, %lo(gPauseCurrentDescIconScript)($at) -.Lpause_8024E010: -/* 142E50 8024E010 00161400 */ sll $v0, $s6, 16 -/* 142E54 8024E014 000212C3 */ sra $v0, $v0, 11 -/* 142E58 8024E018 3C0A8008 */ lui $t2, %hi(gItemTable) -/* 142E5C 8024E01C 254A3C80 */ addiu $t2, $t2, %lo(gItemTable) -/* 142E60 8024E020 004A1021 */ addu $v0, $v0, $t2 -/* 142E64 8024E024 84420004 */ lh $v0, 0x4($v0) -/* 142E68 8024E028 3C0B8008 */ lui $t3, %hi(gItemHudScripts) -/* 142E6C 8024E02C 256B6A20 */ addiu $t3, $t3, %lo(gItemHudScripts) -/* 142E70 8024E030 000210C0 */ sll $v0, $v0, 3 -/* 142E74 8024E034 004B1021 */ addu $v0, $v0, $t3 -/* 142E78 8024E038 8C450000 */ lw $a1, 0x0($v0) -/* 142E7C 8024E03C 0C050CEB */ jal hud_element_set_script -/* 142E80 8024E040 0220202D */ daddu $a0, $s1, $zero -/* 142E84 8024E044 3C053F2B */ lui $a1, (0x3F2BBA99 >> 16) -/* 142E88 8024E048 34A5BA99 */ ori $a1, $a1, (0x3F2BBA99 & 0xFFFF) -/* 142E8C 8024E04C 0C050DF4 */ jal hud_element_set_scale -/* 142E90 8024E050 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024E054: -/* 142E94 8024E054 8FA40068 */ lw $a0, 0x68($sp) -/* 142E98 8024E058 0C0936B6 */ jal pause_items_scroll_offset_x -/* 142E9C 8024E05C 00000000 */ nop -/* 142EA0 8024E060 02E0202D */ daddu $a0, $s7, $zero -/* 142EA4 8024E064 8FAA00AC */ lw $t2, 0xAC($sp) -/* 142EA8 8024E068 24500069 */ addiu $s0, $v0, 0x69 -/* 142EAC 8024E06C 01508021 */ addu $s0, $t2, $s0 -/* 142EB0 8024E070 0C0936B2 */ jal pause_items_scroll_offset_y -/* 142EB4 8024E074 02148021 */ addu $s0, $s0, $s4 -/* 142EB8 8024E078 0220202D */ daddu $a0, $s1, $zero -/* 142EBC 8024E07C 0200282D */ daddu $a1, $s0, $zero -/* 142EC0 8024E080 8FAB00B0 */ lw $t3, 0xB0($sp) -/* 142EC4 8024E084 24420017 */ addiu $v0, $v0, 0x17 -/* 142EC8 8024E088 01621021 */ addu $v0, $t3, $v0 -/* 142ECC 8024E08C 0C050D4D */ jal hud_element_set_render_pos -/* 142ED0 8024E090 00553021 */ addu $a2, $v0, $s5 -/* 142ED4 8024E094 8FAA0054 */ lw $t2, 0x54($sp) -/* 142ED8 8024E098 15400005 */ bnez $t2, .Lpause_8024E0B0 -/* 142EDC 8024E09C 00000000 */ nop -/* 142EE0 8024E0A0 0C050CE4 */ jal hud_element_draw_without_clipping -/* 142EE4 8024E0A4 0220202D */ daddu $a0, $s1, $zero -/* 142EE8 8024E0A8 0809382E */ j .Lpause_8024E0B8 -/* 142EEC 8024E0AC 00000000 */ nop -.Lpause_8024E0B0: -/* 142EF0 8024E0B0 0C050CDD */ jal hud_element_draw_next -/* 142EF4 8024E0B4 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024E0B8: -/* 142EF8 8024E0B8 8FAB0078 */ lw $t3, 0x78($sp) -/* 142EFC 8024E0BC 8FAA0054 */ lw $t2, 0x54($sp) -/* 142F00 8024E0C0 256B0004 */ addiu $t3, $t3, 0x4 -/* 142F04 8024E0C4 254A0001 */ addiu $t2, $t2, 0x1 -/* 142F08 8024E0C8 AFAB0078 */ sw $t3, 0x78($sp) -/* 142F0C 8024E0CC AFAA0054 */ sw $t2, 0x54($sp) -.Lpause_8024E0D0: -/* 142F10 8024E0D0 8FAB007C */ lw $t3, 0x7C($sp) -/* 142F14 8024E0D4 8D620008 */ lw $v0, 0x8($t3) -/* 142F18 8024E0D8 26520001 */ addiu $s2, $s2, 0x1 -/* 142F1C 8024E0DC 0242102A */ slt $v0, $s2, $v0 -/* 142F20 8024E0E0 1440FF33 */ bnez $v0, .Lpause_8024DDB0 -/* 142F24 8024E0E4 00000000 */ nop -.Lpause_8024E0E8: -/* 142F28 8024E0E8 27DE0001 */ addiu $fp, $fp, 0x1 -/* 142F2C 8024E0EC 8FAA007C */ lw $t2, 0x7C($sp) -/* 142F30 8024E0F0 2BC20014 */ slti $v0, $fp, 0x14 -/* 142F34 8024E0F4 254A000C */ addiu $t2, $t2, 0xC -/* 142F38 8024E0F8 1440FF1C */ bnez $v0, .Lpause_8024DD6C -/* 142F3C 8024E0FC AFAA007C */ sw $t2, 0x7C($sp) -.Lpause_8024E100: -/* 142F40 8024E100 8FAB0050 */ lw $t3, 0x50($sp) -/* 142F44 8024E104 256B0001 */ addiu $t3, $t3, 0x1 -/* 142F48 8024E108 29620003 */ slti $v0, $t3, 0x3 -/* 142F4C 8024E10C 1440FF13 */ bnez $v0, .Lpause_8024DD5C -/* 142F50 8024E110 AFAB0050 */ sw $t3, 0x50($sp) -/* 142F54 8024E114 3C098009 */ lui $t1, %hi(gMainGfxPos) -/* 142F58 8024E118 25296A44 */ addiu $t1, $t1, %lo(gMainGfxPos) -/* 142F5C 8024E11C 8FAA00AC */ lw $t2, 0xAC($sp) -/* 142F60 8024E120 8FAB00B0 */ lw $t3, 0xB0($sp) -/* 142F64 8024E124 8D250000 */ lw $a1, 0x0($t1) -/* 142F68 8024E128 25440001 */ addiu $a0, $t2, 0x1 -/* 142F6C 8024E12C 25660001 */ addiu $a2, $t3, 0x1 -/* 142F70 8024E130 00A0182D */ daddu $v1, $a1, $zero -/* 142F74 8024E134 8FAB00B4 */ lw $t3, 0xB4($sp) -/* 142F78 8024E138 24A50008 */ addiu $a1, $a1, 0x8 -/* 142F7C 8024E13C 014B1021 */ addu $v0, $t2, $t3 -/* 142F80 8024E140 8FAA00B0 */ lw $t2, 0xB0($sp) -/* 142F84 8024E144 8FAB00B8 */ lw $t3, 0xB8($sp) -/* 142F88 8024E148 2447FFFF */ addiu $a3, $v0, -0x1 -/* 142F8C 8024E14C 014B1021 */ addu $v0, $t2, $t3 -/* 142F90 8024E150 2448FFFF */ addiu $t0, $v0, -0x1 -/* 142F94 8024E154 3C02E700 */ lui $v0, (0xE7000000 >> 16) -/* 142F98 8024E158 AD250000 */ sw $a1, 0x0($t1) -/* 142F9C 8024E15C AC620000 */ sw $v0, 0x0($v1) -/* 142FA0 8024E160 1C800002 */ bgtz $a0, .Lpause_8024E16C -/* 142FA4 8024E164 AC600004 */ sw $zero, 0x4($v1) -/* 142FA8 8024E168 24040001 */ addiu $a0, $zero, 0x1 -.Lpause_8024E16C: -/* 142FAC 8024E16C 58C00001 */ blezl $a2, .Lpause_8024E174 -/* 142FB0 8024E170 24060001 */ addiu $a2, $zero, 0x1 -.Lpause_8024E174: -/* 142FB4 8024E174 18E0015C */ blez $a3, .Lpause_8024E6E8 -/* 142FB8 8024E178 00000000 */ nop -/* 142FBC 8024E17C 1900015A */ blez $t0, .Lpause_8024E6E8 -/* 142FC0 8024E180 2882013F */ slti $v0, $a0, 0x13F -/* 142FC4 8024E184 10400158 */ beqz $v0, .Lpause_8024E6E8 -/* 142FC8 8024E188 28C200EF */ slti $v0, $a2, 0xEF -/* 142FCC 8024E18C 10400156 */ beqz $v0, .Lpause_8024E6E8 -/* 142FD0 8024E190 28E2013F */ slti $v0, $a3, 0x13F -/* 142FD4 8024E194 50400001 */ beql $v0, $zero, .Lpause_8024E19C -/* 142FD8 8024E198 2407013F */ addiu $a3, $zero, 0x13F -.Lpause_8024E19C: -/* 142FDC 8024E19C 290200EF */ slti $v0, $t0, 0xEF -/* 142FE0 8024E1A0 50400001 */ beql $v0, $zero, .Lpause_8024E1A8 -/* 142FE4 8024E1A4 240800EF */ addiu $t0, $zero, 0xEF -.Lpause_8024E1A8: -/* 142FE8 8024E1A8 3C014080 */ lui $at, (0x40800000 >> 16) -/* 142FEC 8024E1AC 44812000 */ mtc1 $at, $f4 -/* 142FF0 8024E1B0 44840000 */ mtc1 $a0, $f0 -/* 142FF4 8024E1B4 00000000 */ nop -/* 142FF8 8024E1B8 46800020 */ cvt.s.w $f0, $f0 -/* 142FFC 8024E1BC 46040002 */ mul.s $f0, $f0, $f4 -/* 143000 8024E1C0 00000000 */ nop -/* 143004 8024E1C4 24A20008 */ addiu $v0, $a1, 0x8 -/* 143008 8024E1C8 44861000 */ mtc1 $a2, $f2 -/* 14300C 8024E1CC 00000000 */ nop -/* 143010 8024E1D0 468010A0 */ cvt.s.w $f2, $f2 -/* 143014 8024E1D4 3C04ED00 */ lui $a0, (0xED000000 >> 16) -/* 143018 8024E1D8 46041082 */ mul.s $f2, $f2, $f4 -/* 14301C 8024E1DC 00000000 */ nop -/* 143020 8024E1E0 AD220000 */ sw $v0, 0x0($t1) -/* 143024 8024E1E4 4600018D */ trunc.w.s $f6, $f0 -/* 143028 8024E1E8 44023000 */ mfc1 $v0, $f6 -/* 14302C 8024E1EC 00000000 */ nop -/* 143030 8024E1F0 30420FFF */ andi $v0, $v0, 0xFFF -/* 143034 8024E1F4 00021300 */ sll $v0, $v0, 12 -/* 143038 8024E1F8 4600118D */ trunc.w.s $f6, $f2 -/* 14303C 8024E1FC 44033000 */ mfc1 $v1, $f6 -/* 143040 8024E200 44871000 */ mtc1 $a3, $f2 -/* 143044 8024E204 00000000 */ nop -/* 143048 8024E208 468010A0 */ cvt.s.w $f2, $f2 -/* 14304C 8024E20C 46041082 */ mul.s $f2, $f2, $f4 -/* 143050 8024E210 00000000 */ nop -/* 143054 8024E214 30630FFF */ andi $v1, $v1, 0xFFF -/* 143058 8024E218 00641825 */ or $v1, $v1, $a0 -/* 14305C 8024E21C 00431025 */ or $v0, $v0, $v1 -/* 143060 8024E220 44880000 */ mtc1 $t0, $f0 -/* 143064 8024E224 00000000 */ nop -/* 143068 8024E228 46800020 */ cvt.s.w $f0, $f0 -/* 14306C 8024E22C 46040002 */ mul.s $f0, $f0, $f4 -/* 143070 8024E230 00000000 */ nop -/* 143074 8024E234 ACA20000 */ sw $v0, 0x0($a1) -/* 143078 8024E238 4600118D */ trunc.w.s $f6, $f2 -/* 14307C 8024E23C 44023000 */ mfc1 $v0, $f6 -/* 143080 8024E240 00000000 */ nop -/* 143084 8024E244 30420FFF */ andi $v0, $v0, 0xFFF -/* 143088 8024E248 00021300 */ sll $v0, $v0, 12 -/* 14308C 8024E24C 4600018D */ trunc.w.s $f6, $f0 -/* 143090 8024E250 44033000 */ mfc1 $v1, $f6 -/* 143094 8024E254 00000000 */ nop -/* 143098 8024E258 30630FFF */ andi $v1, $v1, 0xFFF -/* 14309C 8024E25C 00431025 */ or $v0, $v0, $v1 -/* 1430A0 8024E260 3C038027 */ lui $v1, %hi(gPauseMenuCurrentTab) -/* 1430A4 8024E264 806324A4 */ lb $v1, %lo(gPauseMenuCurrentTab)($v1) -/* 1430A8 8024E268 ACA20004 */ sw $v0, 0x4($a1) -/* 1430AC 8024E26C 24020003 */ addiu $v0, $zero, 0x3 -/* 1430B0 8024E270 1462002A */ bne $v1, $v0, .Lpause_8024E31C -/* 1430B4 8024E274 24020001 */ addiu $v0, $zero, 0x1 -/* 1430B8 8024E278 3C038027 */ lui $v1, %hi(gPauseItemsLevel) -/* 1430BC 8024E27C 8C6329B0 */ lw $v1, %lo(gPauseItemsLevel)($v1) -/* 1430C0 8024E280 14620026 */ bne $v1, $v0, .Lpause_8024E31C -/* 1430C4 8024E284 00000000 */ nop -/* 1430C8 8024E288 3C118027 */ lui $s1, %hi(gPauseItemsCurrentPage) -/* 1430CC 8024E28C 26312898 */ addiu $s1, $s1, %lo(gPauseItemsCurrentPage) -/* 1430D0 8024E290 8E220000 */ lw $v0, 0x0($s1) -/* 1430D4 8024E294 1840000E */ blez $v0, .Lpause_8024E2D0 -/* 1430D8 8024E298 24420001 */ addiu $v0, $v0, 0x1 -/* 1430DC 8024E29C 3C108027 */ lui $s0, %hi(gPauseItemsHIDs) -/* 1430E0 8024E2A0 261029B8 */ addiu $s0, $s0, %lo(gPauseItemsHIDs) -/* 1430E4 8024E2A4 8FAB00AC */ lw $t3, 0xAC($sp) -/* 1430E8 8024E2A8 8E040040 */ lw $a0, 0x40($s0) -/* 1430EC 8024E2AC 8FAA00B0 */ lw $t2, 0xB0($sp) -/* 1430F0 8024E2B0 25650116 */ addiu $a1, $t3, 0x116 -/* 1430F4 8024E2B4 0C050D4D */ jal hud_element_set_render_pos -/* 1430F8 8024E2B8 2546000E */ addiu $a2, $t2, 0xE -/* 1430FC 8024E2BC 8E040040 */ lw $a0, 0x40($s0) -/* 143100 8024E2C0 0C050CE4 */ jal hud_element_draw_without_clipping -/* 143104 8024E2C4 00000000 */ nop -/* 143108 8024E2C8 8E220000 */ lw $v0, 0x0($s1) -/* 14310C 8024E2CC 24420001 */ addiu $v0, $v0, 0x1 -.Lpause_8024E2D0: -/* 143110 8024E2D0 00021840 */ sll $v1, $v0, 1 -/* 143114 8024E2D4 00621821 */ addu $v1, $v1, $v0 -/* 143118 8024E2D8 00031880 */ sll $v1, $v1, 2 -/* 14311C 8024E2DC 3C028027 */ lui $v0, %hi(gPauseItemsPages) -/* 143120 8024E2E0 00431021 */ addu $v0, $v0, $v1 -/* 143124 8024E2E4 904228A0 */ lbu $v0, %lo(gPauseItemsPages)($v0) -/* 143128 8024E2E8 1040000C */ beqz $v0, .Lpause_8024E31C -/* 14312C 8024E2EC 00000000 */ nop -/* 143130 8024E2F0 3C108027 */ lui $s0, %hi(gPauseItemsHIDs) -/* 143134 8024E2F4 261029B8 */ addiu $s0, $s0, %lo(gPauseItemsHIDs) -/* 143138 8024E2F8 8FAB00AC */ lw $t3, 0xAC($sp) -/* 14313C 8024E2FC 8E040044 */ lw $a0, 0x44($s0) -/* 143140 8024E300 8FAA00B0 */ lw $t2, 0xB0($sp) -/* 143144 8024E304 25650116 */ addiu $a1, $t3, 0x116 -/* 143148 8024E308 0C050D4D */ jal hud_element_set_render_pos -/* 14314C 8024E30C 25460092 */ addiu $a2, $t2, 0x92 -/* 143150 8024E310 8E040044 */ lw $a0, 0x44($s0) -/* 143154 8024E314 0C050CE4 */ jal hud_element_draw_without_clipping -/* 143158 8024E318 00000000 */ nop -.Lpause_8024E31C: -/* 14315C 8024E31C 3C038027 */ lui $v1, %hi(gPauseItemsCurrentTab) -/* 143160 8024E320 8C6329B4 */ lw $v1, %lo(gPauseItemsCurrentTab)($v1) -/* 143164 8024E324 8FA600AC */ lw $a2, 0xAC($sp) -/* 143168 8024E328 50600001 */ beql $v1, $zero, .Lpause_8024E330 -/* 14316C 8024E32C 24C60009 */ addiu $a2, $a2, 0x9 -.Lpause_8024E330: -/* 143170 8024E330 8FAB00B0 */ lw $t3, 0xB0($sp) -/* 143174 8024E334 2402005B */ addiu $v0, $zero, 0x5B -/* 143178 8024E338 AFA20014 */ sw $v0, 0x14($sp) -/* 14317C 8024E33C 24020022 */ addiu $v0, $zero, 0x22 -/* 143180 8024E340 AFA20018 */ sw $v0, 0x18($sp) -/* 143184 8024E344 240200FF */ addiu $v0, $zero, 0xFF -/* 143188 8024E348 AFA2001C */ sw $v0, 0x1C($sp) -/* 14318C 8024E34C 24020001 */ addiu $v0, $zero, 0x1 -/* 143190 8024E350 AFA00010 */ sw $zero, 0x10($sp) -/* 143194 8024E354 14620004 */ bne $v1, $v0, .Lpause_8024E368 -/* 143198 8024E358 25670007 */ addiu $a3, $t3, 0x7 -/* 14319C 8024E35C 24020080 */ addiu $v0, $zero, 0x80 -/* 1431A0 8024E360 080938DB */ j .Lpause_8024E36C -/* 1431A4 8024E364 AFA20020 */ sw $v0, 0x20($sp) -.Lpause_8024E368: -/* 1431A8 8024E368 AFA00020 */ sw $zero, 0x20($sp) -.Lpause_8024E36C: -/* 1431AC 8024E36C 24040004 */ addiu $a0, $zero, 0x4 -/* 1431B0 8024E370 3C058027 */ lui $a1, %hi(gPauseWS_17) -/* 1431B4 8024E374 24A52088 */ addiu $a1, $a1, %lo(gPauseWS_17) -/* 1431B8 8024E378 24020140 */ addiu $v0, $zero, 0x140 -/* 1431BC 8024E37C AFA20044 */ sw $v0, 0x44($sp) -/* 1431C0 8024E380 240200F0 */ addiu $v0, $zero, 0xF0 -/* 1431C4 8024E384 AFA00024 */ sw $zero, 0x24($sp) -/* 1431C8 8024E388 AFA00028 */ sw $zero, 0x28($sp) -/* 1431CC 8024E38C AFA0002C */ sw $zero, 0x2C($sp) -/* 1431D0 8024E390 AFA00030 */ sw $zero, 0x30($sp) -/* 1431D4 8024E394 AFA00034 */ sw $zero, 0x34($sp) -/* 1431D8 8024E398 AFA00038 */ sw $zero, 0x38($sp) -/* 1431DC 8024E39C AFA0003C */ sw $zero, 0x3C($sp) -/* 1431E0 8024E3A0 AFA00040 */ sw $zero, 0x40($sp) -/* 1431E4 8024E3A4 AFA20048 */ sw $v0, 0x48($sp) -/* 1431E8 8024E3A8 0C03C5C4 */ jal draw_box -/* 1431EC 8024E3AC AFA0004C */ sw $zero, 0x4C($sp) -/* 1431F0 8024E3B0 3C128015 */ lui $s2, %hi(gCurrentLanguage) -/* 1431F4 8024E3B4 2652AE4C */ addiu $s2, $s2, %lo(gCurrentLanguage) -/* 1431F8 8024E3B8 8E420000 */ lw $v0, 0x0($s2) -/* 1431FC 8024E3BC 14400013 */ bnez $v0, .Lpause_8024E40C -/* 143200 8024E3C0 00000000 */ nop -/* 143204 8024E3C4 0C094C60 */ jal pause_get_menu_msg -/* 143208 8024E3C8 2404004A */ addiu $a0, $zero, 0x4A -/* 14320C 8024E3CC 8FAA00AC */ lw $t2, 0xAC($sp) -/* 143210 8024E3D0 3C038027 */ lui $v1, %hi(gPauseItemsCurrentTab) -/* 143214 8024E3D4 8C6329B4 */ lw $v1, %lo(gPauseItemsCurrentTab)($v1) -/* 143218 8024E3D8 14600002 */ bnez $v1, .Lpause_8024E3E4 -/* 14321C 8024E3DC 2545000C */ addiu $a1, $t2, 0xC -/* 143220 8024E3E0 25450015 */ addiu $a1, $t2, 0x15 -.Lpause_8024E3E4: -/* 143224 8024E3E4 240700FF */ addiu $a3, $zero, 0xFF -/* 143228 8024E3E8 8FAB00B0 */ lw $t3, 0xB0($sp) -/* 14322C 8024E3EC 24080001 */ addiu $t0, $zero, 0x1 -/* 143230 8024E3F0 14680002 */ bne $v1, $t0, .Lpause_8024E3FC -/* 143234 8024E3F4 25660011 */ addiu $a2, $t3, 0x11 -/* 143238 8024E3F8 240700BF */ addiu $a3, $zero, 0xBF -.Lpause_8024E3FC: -/* 14323C 8024E3FC 0040202D */ daddu $a0, $v0, $zero -/* 143240 8024E400 AFA00010 */ sw $zero, 0x10($sp) -/* 143244 8024E404 08093929 */ j .Lpause_8024E4A4 -/* 143248 8024E408 AFA80014 */ sw $t0, 0x14($sp) -.Lpause_8024E40C: -/* 14324C 8024E40C 0C094C60 */ jal pause_get_menu_msg -/* 143250 8024E410 2404004A */ addiu $a0, $zero, 0x4A -/* 143254 8024E414 3C118027 */ lui $s1, %hi(gPauseItemsCurrentTab) -/* 143258 8024E418 263129B4 */ addiu $s1, $s1, %lo(gPauseItemsCurrentTab) -/* 14325C 8024E41C 8FAA00AC */ lw $t2, 0xAC($sp) -/* 143260 8024E420 8E230000 */ lw $v1, 0x0($s1) -/* 143264 8024E424 14600002 */ bnez $v1, .Lpause_8024E430 -/* 143268 8024E428 2545000C */ addiu $a1, $t2, 0xC -/* 14326C 8024E42C 25450015 */ addiu $a1, $t2, 0x15 -.Lpause_8024E430: -/* 143270 8024E430 240700FF */ addiu $a3, $zero, 0xFF -/* 143274 8024E434 8FAB00B0 */ lw $t3, 0xB0($sp) -/* 143278 8024E438 24100001 */ addiu $s0, $zero, 0x1 -/* 14327C 8024E43C 14700002 */ bne $v1, $s0, .Lpause_8024E448 -/* 143280 8024E440 2566000C */ addiu $a2, $t3, 0xC -/* 143284 8024E444 240700BF */ addiu $a3, $zero, 0xBF -.Lpause_8024E448: -/* 143288 8024E448 0040202D */ daddu $a0, $v0, $zero -/* 14328C 8024E44C AFA00010 */ sw $zero, 0x10($sp) -/* 143290 8024E450 0C049403 */ jal draw_msg -/* 143294 8024E454 AFB00014 */ sw $s0, 0x14($sp) -/* 143298 8024E458 0C094C60 */ jal pause_get_menu_msg -/* 14329C 8024E45C 2404004B */ addiu $a0, $zero, 0x4B -/* 1432A0 8024E460 8E430000 */ lw $v1, 0x0($s2) -/* 1432A4 8024E464 8FAA00AC */ lw $t2, 0xAC($sp) -/* 1432A8 8024E468 3C018027 */ lui $at, %hi(D_PAL_80271B30) -/* 1432AC 8024E46C 00230821 */ addu $at, $at, $v1 -/* 1432B0 8024E470 90231B30 */ lbu $v1, %lo(D_PAL_80271B30)($at) -/* 1432B4 8024E474 01432821 */ addu $a1, $t2, $v1 -/* 1432B8 8024E478 8E230000 */ lw $v1, 0x0($s1) -/* 1432BC 8024E47C 50600001 */ beql $v1, $zero, .Lpause_8024E484 -/* 1432C0 8024E480 24A50009 */ addiu $a1, $a1, 0x9 -.Lpause_8024E484: -/* 1432C4 8024E484 8FAB00B0 */ lw $t3, 0xB0($sp) -/* 1432C8 8024E488 240700FF */ addiu $a3, $zero, 0xFF -/* 1432CC 8024E48C 14700002 */ bne $v1, $s0, .Lpause_8024E498 -/* 1432D0 8024E490 25660016 */ addiu $a2, $t3, 0x16 -/* 1432D4 8024E494 240700BF */ addiu $a3, $zero, 0xBF -.Lpause_8024E498: -/* 1432D8 8024E498 0040202D */ daddu $a0, $v0, $zero -/* 1432DC 8024E49C AFA00010 */ sw $zero, 0x10($sp) -/* 1432E0 8024E4A0 AFB00014 */ sw $s0, 0x14($sp) -.Lpause_8024E4A4: -/* 1432E4 8024E4A4 0C049403 */ jal draw_msg -/* 1432E8 8024E4A8 00000000 */ nop -/* 1432EC 8024E4AC 24020001 */ addiu $v0, $zero, 0x1 -/* 1432F0 8024E4B0 3C038027 */ lui $v1, %hi(gPauseItemsCurrentTab) -/* 1432F4 8024E4B4 8C6329B4 */ lw $v1, %lo(gPauseItemsCurrentTab)($v1) -/* 1432F8 8024E4B8 8FA600AC */ lw $a2, 0xAC($sp) -/* 1432FC 8024E4BC 50620001 */ beql $v1, $v0, .Lpause_8024E4C4 -/* 143300 8024E4C0 24C60009 */ addiu $a2, $a2, 0x9 -.Lpause_8024E4C4: -/* 143304 8024E4C4 8FAA00B0 */ lw $t2, 0xB0($sp) -/* 143308 8024E4C8 2402005B */ addiu $v0, $zero, 0x5B -/* 14330C 8024E4CC AFA20014 */ sw $v0, 0x14($sp) -/* 143310 8024E4D0 24020022 */ addiu $v0, $zero, 0x22 -/* 143314 8024E4D4 AFA20018 */ sw $v0, 0x18($sp) -/* 143318 8024E4D8 240200FF */ addiu $v0, $zero, 0xFF -/* 14331C 8024E4DC AFA00010 */ sw $zero, 0x10($sp) -/* 143320 8024E4E0 AFA2001C */ sw $v0, 0x1C($sp) -/* 143324 8024E4E4 14600004 */ bnez $v1, .Lpause_8024E4F8 -/* 143328 8024E4E8 25470027 */ addiu $a3, $t2, 0x27 -/* 14332C 8024E4EC 24020080 */ addiu $v0, $zero, 0x80 -/* 143330 8024E4F0 0809393F */ j .Lpause_8024E4FC -/* 143334 8024E4F4 AFA20020 */ sw $v0, 0x20($sp) -.Lpause_8024E4F8: -/* 143338 8024E4F8 AFA00020 */ sw $zero, 0x20($sp) -.Lpause_8024E4FC: -/* 14333C 8024E4FC 24040004 */ addiu $a0, $zero, 0x4 -/* 143340 8024E500 3C058027 */ lui $a1, %hi(gPauseWS_17) -/* 143344 8024E504 24A52088 */ addiu $a1, $a1, %lo(gPauseWS_17) -/* 143348 8024E508 24020140 */ addiu $v0, $zero, 0x140 -/* 14334C 8024E50C AFA20044 */ sw $v0, 0x44($sp) -/* 143350 8024E510 240200F0 */ addiu $v0, $zero, 0xF0 -/* 143354 8024E514 AFA00024 */ sw $zero, 0x24($sp) -/* 143358 8024E518 AFA00028 */ sw $zero, 0x28($sp) -/* 14335C 8024E51C AFA0002C */ sw $zero, 0x2C($sp) -/* 143360 8024E520 AFA00030 */ sw $zero, 0x30($sp) -/* 143364 8024E524 AFA00034 */ sw $zero, 0x34($sp) -/* 143368 8024E528 AFA00038 */ sw $zero, 0x38($sp) -/* 14336C 8024E52C AFA0003C */ sw $zero, 0x3C($sp) -/* 143370 8024E530 AFA00040 */ sw $zero, 0x40($sp) -/* 143374 8024E534 AFA20048 */ sw $v0, 0x48($sp) -/* 143378 8024E538 0C03C5C4 */ jal draw_box -/* 14337C 8024E53C AFA0004C */ sw $zero, 0x4C($sp) -/* 143380 8024E540 0C094C60 */ jal pause_get_menu_msg -/* 143384 8024E544 2404004C */ addiu $a0, $zero, 0x4C -/* 143388 8024E548 3C038015 */ lui $v1, %hi(gCurrentLanguage) -/* 14338C 8024E54C 8C63AE4C */ lw $v1, %lo(gCurrentLanguage)($v1) -/* 143390 8024E550 8FAB00AC */ lw $t3, 0xAC($sp) -/* 143394 8024E554 3C018027 */ lui $at, %hi(D_PAL_80271B34) -/* 143398 8024E558 00230821 */ addu $at, $at, $v1 -/* 14339C 8024E55C 90231B34 */ lbu $v1, %lo(D_PAL_80271B34)($at) -/* 1433A0 8024E560 3C108027 */ lui $s0, %hi(gPauseItemsCurrentTab) -/* 1433A4 8024E564 261029B4 */ addiu $s0, $s0, %lo(gPauseItemsCurrentTab) -/* 1433A8 8024E568 01632821 */ addu $a1, $t3, $v1 -/* 1433AC 8024E56C 8E030000 */ lw $v1, 0x0($s0) -/* 1433B0 8024E570 24080001 */ addiu $t0, $zero, 0x1 -/* 1433B4 8024E574 50680001 */ beql $v1, $t0, .Lpause_8024E57C -/* 1433B8 8024E578 24A50009 */ addiu $a1, $a1, 0x9 -.Lpause_8024E57C: -/* 1433BC 8024E57C 8FAA00B0 */ lw $t2, 0xB0($sp) -/* 1433C0 8024E580 240700FF */ addiu $a3, $zero, 0xFF -/* 1433C4 8024E584 14600002 */ bnez $v1, .Lpause_8024E590 -/* 1433C8 8024E588 25460031 */ addiu $a2, $t2, 0x31 -/* 1433CC 8024E58C 240700BF */ addiu $a3, $zero, 0xBF -.Lpause_8024E590: -/* 1433D0 8024E590 0040202D */ daddu $a0, $v0, $zero -/* 1433D4 8024E594 AFA00010 */ sw $zero, 0x10($sp) -/* 1433D8 8024E598 0C049403 */ jal draw_msg -/* 1433DC 8024E59C AFA80014 */ sw $t0, 0x14($sp) -/* 1433E0 8024E5A0 3C038027 */ lui $v1, %hi(gPauseMenuCurrentTab) -/* 1433E4 8024E5A4 806324A4 */ lb $v1, %lo(gPauseMenuCurrentTab)($v1) -/* 1433E8 8024E5A8 24020003 */ addiu $v0, $zero, 0x3 -/* 1433EC 8024E5AC 1462004E */ bne $v1, $v0, .Lpause_8024E6E8 -/* 1433F0 8024E5B0 00000000 */ nop -/* 1433F4 8024E5B4 3C028027 */ lui $v0, %hi(gPauseItemsLevel) -/* 1433F8 8024E5B8 8C4229B0 */ lw $v0, %lo(gPauseItemsLevel)($v0) -/* 1433FC 8024E5BC 14400008 */ bnez $v0, .Lpause_8024E5E0 -/* 143400 8024E5C0 24040021 */ addiu $a0, $zero, 0x21 -/* 143404 8024E5C4 8E060000 */ lw $a2, 0x0($s0) -/* 143408 8024E5C8 8FAB00AC */ lw $t3, 0xAC($sp) -/* 14340C 8024E5CC 8FAA00B0 */ lw $t2, 0xB0($sp) -/* 143410 8024E5D0 2565000C */ addiu $a1, $t3, 0xC -/* 143414 8024E5D4 00063140 */ sll $a2, $a2, 5 -/* 143418 8024E5D8 080939B8 */ j .Lpause_8024E6E0 -/* 14341C 8024E5DC 24C6001A */ addiu $a2, $a2, 0x1A -.Lpause_8024E5E0: -/* 143420 8024E5E0 3C118027 */ lui $s1, %hi(gPauseItemsCurrentPage) -/* 143424 8024E5E4 26312898 */ addiu $s1, $s1, %lo(gPauseItemsCurrentPage) -/* 143428 8024E5E8 8E240000 */ lw $a0, 0x0($s1) -/* 14342C 8024E5EC 3C128027 */ lui $s2, %hi(gPauseItemsPages) -/* 143430 8024E5F0 265228A0 */ addiu $s2, $s2, %lo(gPauseItemsPages) -/* 143434 8024E5F4 00041040 */ sll $v0, $a0, 1 -/* 143438 8024E5F8 00441021 */ addu $v0, $v0, $a0 -/* 14343C 8024E5FC 00021080 */ sll $v0, $v0, 2 -/* 143440 8024E600 00521021 */ addu $v0, $v0, $s2 -/* 143444 8024E604 90430001 */ lbu $v1, 0x1($v0) -/* 143448 8024E608 90420002 */ lbu $v0, 0x2($v0) -/* 14344C 8024E60C 00620018 */ mult $v1, $v0 -/* 143450 8024E610 3C108027 */ lui $s0, %hi(gPauseItemsSelectedIndex) -/* 143454 8024E614 26102990 */ addiu $s0, $s0, %lo(gPauseItemsSelectedIndex) -/* 143458 8024E618 8E050000 */ lw $a1, 0x0($s0) -/* 14345C 8024E61C 00005012 */ mflo $t2 -/* 143460 8024E620 0C093650 */ jal pause_items_get_pos_x -/* 143464 8024E624 00AA2823 */ subu $a1, $a1, $t2 -/* 143468 8024E628 8E240000 */ lw $a0, 0x0($s1) -/* 14346C 8024E62C 00041840 */ sll $v1, $a0, 1 -/* 143470 8024E630 00641821 */ addu $v1, $v1, $a0 -/* 143474 8024E634 00031880 */ sll $v1, $v1, 2 -/* 143478 8024E638 00721821 */ addu $v1, $v1, $s2 -/* 14347C 8024E63C 90650001 */ lbu $a1, 0x1($v1) -/* 143480 8024E640 90630002 */ lbu $v1, 0x2($v1) -/* 143484 8024E644 00A30018 */ mult $a1, $v1 -/* 143488 8024E648 8E050000 */ lw $a1, 0x0($s0) -/* 14348C 8024E64C 0040802D */ daddu $s0, $v0, $zero -/* 143490 8024E650 00005012 */ mflo $t2 -/* 143494 8024E654 0C093666 */ jal pause_items_get_pos_y -/* 143498 8024E658 00AA2823 */ subu $a1, $a1, $t2 -/* 14349C 8024E65C 0200202D */ daddu $a0, $s0, $zero -/* 1434A0 8024E660 0C0936B6 */ jal pause_items_scroll_offset_x -/* 1434A4 8024E664 0040802D */ daddu $s0, $v0, $zero -/* 1434A8 8024E668 0200202D */ daddu $a0, $s0, $zero -/* 1434AC 8024E66C 0C0936B2 */ jal pause_items_scroll_offset_y -/* 1434B0 8024E670 0040802D */ daddu $s0, $v0, $zero -/* 1434B4 8024E674 0040302D */ daddu $a2, $v0, $zero -/* 1434B8 8024E678 04C10003 */ bgez $a2, .Lpause_8024E688 -/* 1434BC 8024E67C 28C20071 */ slti $v0, $a2, 0x71 -/* 1434C0 8024E680 080939A4 */ j .Lpause_8024E690 -/* 1434C4 8024E684 0000302D */ daddu $a2, $zero, $zero -.Lpause_8024E688: -/* 1434C8 8024E688 50400001 */ beql $v0, $zero, .Lpause_8024E690 -/* 1434CC 8024E68C 24060070 */ addiu $a2, $zero, 0x70 -.Lpause_8024E690: -/* 1434D0 8024E690 3C038027 */ lui $v1, %hi(gPauseItemsCurrentScrollPos) -/* 1434D4 8024E694 8C6329A4 */ lw $v1, %lo(gPauseItemsCurrentScrollPos)($v1) -/* 1434D8 8024E698 3C028027 */ lui $v0, %hi(gPauseItemsTargetScrollPos) -/* 1434DC 8024E69C 8C4229A8 */ lw $v0, %lo(gPauseItemsTargetScrollPos)($v0) -/* 1434E0 8024E6A0 1062000A */ beq $v1, $v0, .Lpause_8024E6CC -/* 1434E4 8024E6A4 24040021 */ addiu $a0, $zero, 0x21 -/* 1434E8 8024E6A8 26050055 */ addiu $a1, $s0, 0x55 -/* 1434EC 8024E6AC 24C60017 */ addiu $a2, $a2, 0x17 -/* 1434F0 8024E6B0 8FAB00AC */ lw $t3, 0xAC($sp) -/* 1434F4 8024E6B4 8FAA00B0 */ lw $t2, 0xB0($sp) -/* 1434F8 8024E6B8 01652821 */ addu $a1, $t3, $a1 -/* 1434FC 8024E6BC 0C091AAF */ jal pause_set_cursor_pos_immediate -/* 143500 8024E6C0 01463021 */ addu $a2, $t2, $a2 -/* 143504 8024E6C4 080939BA */ j .Lpause_8024E6E8 -/* 143508 8024E6C8 00000000 */ nop -.Lpause_8024E6CC: -/* 14350C 8024E6CC 26050055 */ addiu $a1, $s0, 0x55 -/* 143510 8024E6D0 24C60017 */ addiu $a2, $a2, 0x17 -/* 143514 8024E6D4 8FAB00AC */ lw $t3, 0xAC($sp) -/* 143518 8024E6D8 8FAA00B0 */ lw $t2, 0xB0($sp) -/* 14351C 8024E6DC 01652821 */ addu $a1, $t3, $a1 -.Lpause_8024E6E0: -/* 143520 8024E6E0 0C091B05 */ jal pause_set_cursor_pos -/* 143524 8024E6E4 01463021 */ addu $a2, $t2, $a2 -.Lpause_8024E6E8: -/* 143528 8024E6E8 8FBF00A4 */ lw $ra, 0xA4($sp) -/* 14352C 8024E6EC 8FBE00A0 */ lw $fp, 0xA0($sp) -/* 143530 8024E6F0 8FB7009C */ lw $s7, 0x9C($sp) -/* 143534 8024E6F4 8FB60098 */ lw $s6, 0x98($sp) -/* 143538 8024E6F8 8FB50094 */ lw $s5, 0x94($sp) -/* 14353C 8024E6FC 8FB40090 */ lw $s4, 0x90($sp) -/* 143540 8024E700 8FB3008C */ lw $s3, 0x8C($sp) -/* 143544 8024E704 8FB20088 */ lw $s2, 0x88($sp) -/* 143548 8024E708 8FB10084 */ lw $s1, 0x84($sp) -/* 14354C 8024E70C 8FB00080 */ lw $s0, 0x80($sp) -/* 143550 8024E710 03E00008 */ jr $ra -/* 143554 8024E714 27BD00A8 */ addiu $sp, $sp, 0xA8 diff --git a/ver/pal/asm/nonmatchings/pause/pause_stats/pause_stats_draw_contents.s b/ver/pal/asm/nonmatchings/pause/pause_stats/pause_stats_draw_contents.s deleted file mode 100644 index 6103057ded8..00000000000 --- a/ver/pal/asm/nonmatchings/pause/pause_stats/pause_stats_draw_contents.s +++ /dev/null @@ -1,1229 +0,0 @@ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ - -/* Generated by spimdisasm 1.11.1 */ - -glabel pause_stats_draw_contents -/* 13E6F0 802498B0 27BDFF80 */ addiu $sp, $sp, -0x80 -/* 13E6F4 802498B4 AFB70074 */ sw $s7, 0x74($sp) -/* 13E6F8 802498B8 00A0B82D */ daddu $s7, $a1, $zero -/* 13E6FC 802498BC AFBE0078 */ sw $fp, 0x78($sp) -/* 13E700 802498C0 00C0F02D */ daddu $fp, $a2, $zero -/* 13E704 802498C4 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 13E708 802498C8 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 13E70C 802498CC 27C6006D */ addiu $a2, $fp, 0x6D -/* 13E710 802498D0 AFBF007C */ sw $ra, 0x7C($sp) -/* 13E714 802498D4 AFB60070 */ sw $s6, 0x70($sp) -/* 13E718 802498D8 AFB5006C */ sw $s5, 0x6C($sp) -/* 13E71C 802498DC AFB40068 */ sw $s4, 0x68($sp) -/* 13E720 802498E0 AFB30064 */ sw $s3, 0x64($sp) -/* 13E724 802498E4 AFB20060 */ sw $s2, 0x60($sp) -/* 13E728 802498E8 AFB1005C */ sw $s1, 0x5C($sp) -/* 13E72C 802498EC AFB00058 */ sw $s0, 0x58($sp) -/* 13E730 802498F0 AFA40080 */ sw $a0, 0x80($sp) -/* 13E734 802498F4 3C058027 */ lui $a1, %hi(D_PAL_80271B24) -/* 13E738 802498F8 00A22821 */ addu $a1, $a1, $v0 -/* 13E73C 802498FC 90A51B24 */ lbu $a1, %lo(D_PAL_80271B24)($a1) -/* 13E740 80249900 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0xC) -/* 13E744 80249904 8C84252C */ lw $a0, %lo(gPauseStatsIconIDs+0xC)($a0) -/* 13E748 80249908 0C050D4D */ jal hud_element_set_render_pos -/* 13E74C 8024990C 02E52821 */ addu $a1, $s7, $a1 -/* 13E750 80249910 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0xC) -/* 13E754 80249914 8C84252C */ lw $a0, %lo(gPauseStatsIconIDs+0xC)($a0) -/* 13E758 80249918 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13E75C 8024991C 27D00065 */ addiu $s0, $fp, 0x65 -/* 13E760 80249920 0C094C60 */ jal pause_get_menu_msg -/* 13E764 80249924 2404002E */ addiu $a0, $zero, 0x2E -/* 13E768 80249928 0040202D */ daddu $a0, $v0, $zero -/* 13E76C 8024992C 0200302D */ daddu $a2, $s0, $zero -/* 13E770 80249930 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 13E774 80249934 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 13E778 80249938 240700FF */ addiu $a3, $zero, 0xFF -/* 13E77C 8024993C 3C058027 */ lui $a1, %hi(D_PAL_80271B28) -/* 13E780 80249940 00A22821 */ addu $a1, $a1, $v0 -/* 13E784 80249944 90A51B28 */ lbu $a1, %lo(D_PAL_80271B28)($a1) -/* 13E788 80249948 2408000A */ addiu $t0, $zero, 0xA -/* 13E78C 8024994C AFA80010 */ sw $t0, 0x10($sp) -/* 13E790 80249950 24080001 */ addiu $t0, $zero, 0x1 -/* 13E794 80249954 AFA80014 */ sw $t0, 0x14($sp) -/* 13E798 80249958 0C049403 */ jal draw_msg -/* 13E79C 8024995C 02E52821 */ addu $a1, $s7, $a1 -/* 13E7A0 80249960 26F30119 */ addiu $s3, $s7, 0x119 -/* 13E7A4 80249964 0260282D */ daddu $a1, $s3, $zero -/* 13E7A8 80249968 0200302D */ daddu $a2, $s0, $zero -/* 13E7AC 8024996C 24070001 */ addiu $a3, $zero, 0x1 -/* 13E7B0 80249970 2408000A */ addiu $t0, $zero, 0xA -/* 13E7B4 80249974 AFA80010 */ sw $t0, 0x10($sp) -/* 13E7B8 80249978 240800FF */ addiu $t0, $zero, 0xFF -/* 13E7BC 8024997C 3C048011 */ lui $a0, %hi(gPlayerData+0xC) -/* 13E7C0 80249980 8484DD9C */ lh $a0, %lo(gPlayerData+0xC)($a0) -/* 13E7C4 80249984 24110003 */ addiu $s1, $zero, 0x3 -/* 13E7C8 80249988 AFA80014 */ sw $t0, 0x14($sp) -/* 13E7CC 8024998C 0C04986F */ jal draw_number -/* 13E7D0 80249990 AFB10018 */ sw $s1, 0x18($sp) -/* 13E7D4 80249994 26F200F8 */ addiu $s2, $s7, 0xF8 -/* 13E7D8 80249998 0240282D */ daddu $a1, $s2, $zero -/* 13E7DC 8024999C 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x2C) -/* 13E7E0 802499A0 8C84254C */ lw $a0, %lo(gPauseStatsIconIDs+0x2C)($a0) -/* 13E7E4 802499A4 0C050D4D */ jal hud_element_set_render_pos -/* 13E7E8 802499A8 27C6006C */ addiu $a2, $fp, 0x6C -/* 13E7EC 802499AC 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x2C) -/* 13E7F0 802499B0 8C84254C */ lw $a0, %lo(gPauseStatsIconIDs+0x2C)($a0) -/* 13E7F4 802499B4 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13E7F8 802499B8 27D00056 */ addiu $s0, $fp, 0x56 -/* 13E7FC 802499BC 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 13E800 802499C0 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 13E804 802499C4 27C6005E */ addiu $a2, $fp, 0x5E -/* 13E808 802499C8 3C058027 */ lui $a1, %hi(D_PAL_80271B24) -/* 13E80C 802499CC 00A22821 */ addu $a1, $a1, $v0 -/* 13E810 802499D0 90A51B24 */ lbu $a1, %lo(D_PAL_80271B24)($a1) -/* 13E814 802499D4 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x10) -/* 13E818 802499D8 8C842530 */ lw $a0, %lo(gPauseStatsIconIDs+0x10)($a0) -/* 13E81C 802499DC 0C050D4D */ jal hud_element_set_render_pos -/* 13E820 802499E0 02E52821 */ addu $a1, $s7, $a1 -/* 13E824 802499E4 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x10) -/* 13E828 802499E8 8C842530 */ lw $a0, %lo(gPauseStatsIconIDs+0x10)($a0) -/* 13E82C 802499EC 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13E830 802499F0 27D4007B */ addiu $s4, $fp, 0x7B -/* 13E834 802499F4 0C094C60 */ jal pause_get_menu_msg -/* 13E838 802499F8 2404002F */ addiu $a0, $zero, 0x2F -/* 13E83C 802499FC 0040202D */ daddu $a0, $v0, $zero -/* 13E840 80249A00 0200302D */ daddu $a2, $s0, $zero -/* 13E844 80249A04 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 13E848 80249A08 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 13E84C 80249A0C 240700FF */ addiu $a3, $zero, 0xFF -/* 13E850 80249A10 3C058027 */ lui $a1, %hi(D_PAL_80271B28) -/* 13E854 80249A14 00A22821 */ addu $a1, $a1, $v0 -/* 13E858 80249A18 90A51B28 */ lbu $a1, %lo(D_PAL_80271B28)($a1) -/* 13E85C 80249A1C 2408000A */ addiu $t0, $zero, 0xA -/* 13E860 80249A20 AFA80010 */ sw $t0, 0x10($sp) -/* 13E864 80249A24 24080001 */ addiu $t0, $zero, 0x1 -/* 13E868 80249A28 AFA80014 */ sw $t0, 0x14($sp) -/* 13E86C 80249A2C 0C049403 */ jal draw_msg -/* 13E870 80249A30 02E52821 */ addu $a1, $s7, $a1 -/* 13E874 80249A34 0260282D */ daddu $a1, $s3, $zero -/* 13E878 80249A38 0200302D */ daddu $a2, $s0, $zero -/* 13E87C 80249A3C 24070001 */ addiu $a3, $zero, 0x1 -/* 13E880 80249A40 3C048011 */ lui $a0, %hi(gPlayerData+0x10) -/* 13E884 80249A44 8084DDA0 */ lb $a0, %lo(gPlayerData+0x10)($a0) -/* 13E888 80249A48 2408000A */ addiu $t0, $zero, 0xA -/* 13E88C 80249A4C AFA80010 */ sw $t0, 0x10($sp) -/* 13E890 80249A50 240800FF */ addiu $t0, $zero, 0xFF -/* 13E894 80249A54 AFA80014 */ sw $t0, 0x14($sp) -/* 13E898 80249A58 0C04986F */ jal draw_number -/* 13E89C 80249A5C AFB10018 */ sw $s1, 0x18($sp) -/* 13E8A0 80249A60 0240282D */ daddu $a1, $s2, $zero -/* 13E8A4 80249A64 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x2C) -/* 13E8A8 80249A68 8C84254C */ lw $a0, %lo(gPauseStatsIconIDs+0x2C)($a0) -/* 13E8AC 80249A6C 0C050D4D */ jal hud_element_set_render_pos -/* 13E8B0 80249A70 27C6005D */ addiu $a2, $fp, 0x5D -/* 13E8B4 80249A74 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x2C) -/* 13E8B8 80249A78 8C84254C */ lw $a0, %lo(gPauseStatsIconIDs+0x2C)($a0) -/* 13E8BC 80249A7C 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13E8C0 80249A80 27D00074 */ addiu $s0, $fp, 0x74 -/* 13E8C4 80249A84 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 13E8C8 80249A88 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 13E8CC 80249A8C 0280302D */ daddu $a2, $s4, $zero -/* 13E8D0 80249A90 3C058027 */ lui $a1, %hi(D_PAL_80271B24) -/* 13E8D4 80249A94 00A22821 */ addu $a1, $a1, $v0 -/* 13E8D8 80249A98 90A51B24 */ lbu $a1, %lo(D_PAL_80271B24)($a1) -/* 13E8DC 80249A9C 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x14) -/* 13E8E0 80249AA0 8C842534 */ lw $a0, %lo(gPauseStatsIconIDs+0x14)($a0) -/* 13E8E4 80249AA4 0C050D4D */ jal hud_element_set_render_pos -/* 13E8E8 80249AA8 02E52821 */ addu $a1, $s7, $a1 -/* 13E8EC 80249AAC 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x14) -/* 13E8F0 80249AB0 8C842534 */ lw $a0, %lo(gPauseStatsIconIDs+0x14)($a0) -/* 13E8F4 80249AB4 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13E8F8 80249AB8 26F50015 */ addiu $s5, $s7, 0x15 -/* 13E8FC 80249ABC 0C094C60 */ jal pause_get_menu_msg -/* 13E900 80249AC0 24040030 */ addiu $a0, $zero, 0x30 -/* 13E904 80249AC4 0040202D */ daddu $a0, $v0, $zero -/* 13E908 80249AC8 0200302D */ daddu $a2, $s0, $zero -/* 13E90C 80249ACC 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 13E910 80249AD0 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 13E914 80249AD4 240700FF */ addiu $a3, $zero, 0xFF -/* 13E918 80249AD8 3C058027 */ lui $a1, %hi(D_PAL_80271B28) -/* 13E91C 80249ADC 00A22821 */ addu $a1, $a1, $v0 -/* 13E920 80249AE0 90A51B28 */ lbu $a1, %lo(D_PAL_80271B28)($a1) -/* 13E924 80249AE4 2408000A */ addiu $t0, $zero, 0xA -/* 13E928 80249AE8 AFA80010 */ sw $t0, 0x10($sp) -/* 13E92C 80249AEC 24080001 */ addiu $t0, $zero, 0x1 -/* 13E930 80249AF0 AFA80014 */ sw $t0, 0x14($sp) -/* 13E934 80249AF4 0C049403 */ jal draw_msg -/* 13E938 80249AF8 02E52821 */ addu $a1, $s7, $a1 -/* 13E93C 80249AFC 0260282D */ daddu $a1, $s3, $zero -/* 13E940 80249B00 0200302D */ daddu $a2, $s0, $zero -/* 13E944 80249B04 24070001 */ addiu $a3, $zero, 0x1 -/* 13E948 80249B08 3C048011 */ lui $a0, %hi(gPlayerData+0xF) -/* 13E94C 80249B0C 9084DD9F */ lbu $a0, %lo(gPlayerData+0xF)($a0) -/* 13E950 80249B10 2408000A */ addiu $t0, $zero, 0xA -/* 13E954 80249B14 AFA80010 */ sw $t0, 0x10($sp) -/* 13E958 80249B18 240800FF */ addiu $t0, $zero, 0xFF -/* 13E95C 80249B1C AFA80014 */ sw $t0, 0x14($sp) -/* 13E960 80249B20 0C04986F */ jal draw_number -/* 13E964 80249B24 AFB10018 */ sw $s1, 0x18($sp) -/* 13E968 80249B28 0240282D */ daddu $a1, $s2, $zero -/* 13E96C 80249B2C 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x2C) -/* 13E970 80249B30 8C84254C */ lw $a0, %lo(gPauseStatsIconIDs+0x2C)($a0) -/* 13E974 80249B34 0C050D4D */ jal hud_element_set_render_pos -/* 13E978 80249B38 0280302D */ daddu $a2, $s4, $zero -/* 13E97C 80249B3C 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x2C) -/* 13E980 80249B40 8C84254C */ lw $a0, %lo(gPauseStatsIconIDs+0x2C)($a0) -/* 13E984 80249B44 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13E988 80249B48 26F40034 */ addiu $s4, $s7, 0x34 -/* 13E98C 80249B4C 0000202D */ daddu $a0, $zero, $zero -/* 13E990 80249B50 02A0282D */ daddu $a1, $s5, $zero -/* 13E994 80249B54 27C80023 */ addiu $t0, $fp, 0x23 -/* 13E998 80249B58 0100302D */ daddu $a2, $t0, $zero -/* 13E99C 80249B5C 0C094C65 */ jal pause_draw_menu_label -/* 13E9A0 80249B60 AFA80050 */ sw $t0, 0x50($sp) -/* 13E9A4 80249B64 0280282D */ daddu $a1, $s4, $zero -/* 13E9A8 80249B68 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x1C) -/* 13E9AC 80249B6C 8C84253C */ lw $a0, %lo(gPauseStatsIconIDs+0x1C)($a0) -/* 13E9B0 80249B70 0C050D4D */ jal hud_element_set_render_pos -/* 13E9B4 80249B74 27C60039 */ addiu $a2, $fp, 0x39 -/* 13E9B8 80249B78 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x1C) -/* 13E9BC 80249B7C 8C84253C */ lw $a0, %lo(gPauseStatsIconIDs+0x1C)($a0) -/* 13E9C0 80249B80 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13E9C4 80249B84 26F30019 */ addiu $s3, $s7, 0x19 -/* 13E9C8 80249B88 0C094C60 */ jal pause_get_menu_msg -/* 13E9CC 80249B8C 24040032 */ addiu $a0, $zero, 0x32 -/* 13E9D0 80249B90 0040202D */ daddu $a0, $v0, $zero -/* 13E9D4 80249B94 0260282D */ daddu $a1, $s3, $zero -/* 13E9D8 80249B98 27D00033 */ addiu $s0, $fp, 0x33 -/* 13E9DC 80249B9C 0200302D */ daddu $a2, $s0, $zero -/* 13E9E0 80249BA0 240700FF */ addiu $a3, $zero, 0xFF -/* 13E9E4 80249BA4 24080001 */ addiu $t0, $zero, 0x1 -/* 13E9E8 80249BA8 AFA00010 */ sw $zero, 0x10($sp) -/* 13E9EC 80249BAC 0C049403 */ jal draw_msg -/* 13E9F0 80249BB0 AFA80014 */ sw $t0, 0x14($sp) -/* 13E9F4 80249BB4 26F2004E */ addiu $s2, $s7, 0x4E -/* 13E9F8 80249BB8 0240282D */ daddu $a1, $s2, $zero -/* 13E9FC 80249BBC 0200302D */ daddu $a2, $s0, $zero -/* 13EA00 80249BC0 24070001 */ addiu $a3, $zero, 0x1 -/* 13EA04 80249BC4 3C048011 */ lui $a0, %hi(gPlayerData+0x2) -/* 13EA08 80249BC8 8084DD92 */ lb $a0, %lo(gPlayerData+0x2)($a0) -/* 13EA0C 80249BCC 240800FF */ addiu $t0, $zero, 0xFF -/* 13EA10 80249BD0 AFA00010 */ sw $zero, 0x10($sp) -/* 13EA14 80249BD4 AFA80014 */ sw $t0, 0x14($sp) -/* 13EA18 80249BD8 0C04986F */ jal draw_number -/* 13EA1C 80249BDC AFB10018 */ sw $s1, 0x18($sp) -/* 13EA20 80249BE0 0C094C60 */ jal pause_get_menu_msg -/* 13EA24 80249BE4 24040035 */ addiu $a0, $zero, 0x35 -/* 13EA28 80249BE8 0040202D */ daddu $a0, $v0, $zero -/* 13EA2C 80249BEC 0240282D */ daddu $a1, $s2, $zero -/* 13EA30 80249BF0 0200302D */ daddu $a2, $s0, $zero -/* 13EA34 80249BF4 240700FF */ addiu $a3, $zero, 0xFF -/* 13EA38 80249BF8 24080001 */ addiu $t0, $zero, 0x1 -/* 13EA3C 80249BFC AFA00010 */ sw $zero, 0x10($sp) -/* 13EA40 80249C00 0C049403 */ jal draw_msg -/* 13EA44 80249C04 AFA80014 */ sw $t0, 0x14($sp) -/* 13EA48 80249C08 26F60069 */ addiu $s6, $s7, 0x69 -/* 13EA4C 80249C0C 02C0282D */ daddu $a1, $s6, $zero -/* 13EA50 80249C10 0200302D */ daddu $a2, $s0, $zero -/* 13EA54 80249C14 24070001 */ addiu $a3, $zero, 0x1 -/* 13EA58 80249C18 3C048011 */ lui $a0, %hi(gPlayerData+0x3) -/* 13EA5C 80249C1C 8084DD93 */ lb $a0, %lo(gPlayerData+0x3)($a0) -/* 13EA60 80249C20 240800FF */ addiu $t0, $zero, 0xFF -/* 13EA64 80249C24 AFA00010 */ sw $zero, 0x10($sp) -/* 13EA68 80249C28 AFA80014 */ sw $t0, 0x14($sp) -/* 13EA6C 80249C2C 0C04986F */ jal draw_number -/* 13EA70 80249C30 AFB10018 */ sw $s1, 0x18($sp) -/* 13EA74 80249C34 24040001 */ addiu $a0, $zero, 0x1 -/* 13EA78 80249C38 02A0282D */ daddu $a1, $s5, $zero -/* 13EA7C 80249C3C 27C80045 */ addiu $t0, $fp, 0x45 -/* 13EA80 80249C40 0100302D */ daddu $a2, $t0, $zero -/* 13EA84 80249C44 0C094C65 */ jal pause_draw_menu_label -/* 13EA88 80249C48 AFA80054 */ sw $t0, 0x54($sp) -/* 13EA8C 80249C4C 0280282D */ daddu $a1, $s4, $zero -/* 13EA90 80249C50 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x20) -/* 13EA94 80249C54 8C842540 */ lw $a0, %lo(gPauseStatsIconIDs+0x20)($a0) -/* 13EA98 80249C58 0C050D4D */ jal hud_element_set_render_pos -/* 13EA9C 80249C5C 27C6005C */ addiu $a2, $fp, 0x5C -/* 13EAA0 80249C60 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x20) -/* 13EAA4 80249C64 8C842540 */ lw $a0, %lo(gPauseStatsIconIDs+0x20)($a0) -/* 13EAA8 80249C68 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13EAAC 80249C6C 27D00055 */ addiu $s0, $fp, 0x55 -/* 13EAB0 80249C70 0C094C60 */ jal pause_get_menu_msg -/* 13EAB4 80249C74 24040033 */ addiu $a0, $zero, 0x33 -/* 13EAB8 80249C78 0040202D */ daddu $a0, $v0, $zero -/* 13EABC 80249C7C 0260282D */ daddu $a1, $s3, $zero -/* 13EAC0 80249C80 0200302D */ daddu $a2, $s0, $zero -/* 13EAC4 80249C84 240700FF */ addiu $a3, $zero, 0xFF -/* 13EAC8 80249C88 24080001 */ addiu $t0, $zero, 0x1 -/* 13EACC 80249C8C AFA00010 */ sw $zero, 0x10($sp) -/* 13EAD0 80249C90 0C049403 */ jal draw_msg -/* 13EAD4 80249C94 AFA80014 */ sw $t0, 0x14($sp) -/* 13EAD8 80249C98 0240282D */ daddu $a1, $s2, $zero -/* 13EADC 80249C9C 0200302D */ daddu $a2, $s0, $zero -/* 13EAE0 80249CA0 24070001 */ addiu $a3, $zero, 0x1 -/* 13EAE4 80249CA4 3C048011 */ lui $a0, %hi(gPlayerData+0x5) -/* 13EAE8 80249CA8 8084DD95 */ lb $a0, %lo(gPlayerData+0x5)($a0) -/* 13EAEC 80249CAC 240800FF */ addiu $t0, $zero, 0xFF -/* 13EAF0 80249CB0 AFA00010 */ sw $zero, 0x10($sp) -/* 13EAF4 80249CB4 AFA80014 */ sw $t0, 0x14($sp) -/* 13EAF8 80249CB8 0C04986F */ jal draw_number -/* 13EAFC 80249CBC AFB10018 */ sw $s1, 0x18($sp) -/* 13EB00 80249CC0 0C094C60 */ jal pause_get_menu_msg -/* 13EB04 80249CC4 24040035 */ addiu $a0, $zero, 0x35 -/* 13EB08 80249CC8 0040202D */ daddu $a0, $v0, $zero -/* 13EB0C 80249CCC 0240282D */ daddu $a1, $s2, $zero -/* 13EB10 80249CD0 0200302D */ daddu $a2, $s0, $zero -/* 13EB14 80249CD4 240700FF */ addiu $a3, $zero, 0xFF -/* 13EB18 80249CD8 24080001 */ addiu $t0, $zero, 0x1 -/* 13EB1C 80249CDC AFA00010 */ sw $zero, 0x10($sp) -/* 13EB20 80249CE0 0C049403 */ jal draw_msg -/* 13EB24 80249CE4 AFA80014 */ sw $t0, 0x14($sp) -/* 13EB28 80249CE8 02C0282D */ daddu $a1, $s6, $zero -/* 13EB2C 80249CEC 0200302D */ daddu $a2, $s0, $zero -/* 13EB30 80249CF0 24070001 */ addiu $a3, $zero, 0x1 -/* 13EB34 80249CF4 3C048011 */ lui $a0, %hi(gPlayerData+0x6) -/* 13EB38 80249CF8 8084DD96 */ lb $a0, %lo(gPlayerData+0x6)($a0) -/* 13EB3C 80249CFC 240800FF */ addiu $t0, $zero, 0xFF -/* 13EB40 80249D00 AFA00010 */ sw $zero, 0x10($sp) -/* 13EB44 80249D04 AFA80014 */ sw $t0, 0x14($sp) -/* 13EB48 80249D08 0C04986F */ jal draw_number -/* 13EB4C 80249D0C AFB10018 */ sw $s1, 0x18($sp) -/* 13EB50 80249D10 24040002 */ addiu $a0, $zero, 0x2 -/* 13EB54 80249D14 02A0282D */ daddu $a1, $s5, $zero -/* 13EB58 80249D18 0C094C65 */ jal pause_draw_menu_label -/* 13EB5C 80249D1C 27C60067 */ addiu $a2, $fp, 0x67 -/* 13EB60 80249D20 0280282D */ daddu $a1, $s4, $zero -/* 13EB64 80249D24 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x24) -/* 13EB68 80249D28 8C842544 */ lw $a0, %lo(gPauseStatsIconIDs+0x24)($a0) -/* 13EB6C 80249D2C 0C050D4D */ jal hud_element_set_render_pos -/* 13EB70 80249D30 27C6007E */ addiu $a2, $fp, 0x7E -/* 13EB74 80249D34 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x24) -/* 13EB78 80249D38 8C842544 */ lw $a0, %lo(gPauseStatsIconIDs+0x24)($a0) -/* 13EB7C 80249D3C 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13EB80 80249D40 27D00077 */ addiu $s0, $fp, 0x77 -/* 13EB84 80249D44 0C094C60 */ jal pause_get_menu_msg -/* 13EB88 80249D48 24040034 */ addiu $a0, $zero, 0x34 -/* 13EB8C 80249D4C 0040202D */ daddu $a0, $v0, $zero -/* 13EB90 80249D50 0260282D */ daddu $a1, $s3, $zero -/* 13EB94 80249D54 0200302D */ daddu $a2, $s0, $zero -/* 13EB98 80249D58 240700FF */ addiu $a3, $zero, 0xFF -/* 13EB9C 80249D5C 24080001 */ addiu $t0, $zero, 0x1 -/* 13EBA0 80249D60 AFA00010 */ sw $zero, 0x10($sp) -/* 13EBA4 80249D64 0C049403 */ jal draw_msg -/* 13EBA8 80249D68 AFA80014 */ sw $t0, 0x14($sp) -/* 13EBAC 80249D6C 0240282D */ daddu $a1, $s2, $zero -/* 13EBB0 80249D70 0200302D */ daddu $a2, $s0, $zero -/* 13EBB4 80249D74 24070001 */ addiu $a3, $zero, 0x1 -/* 13EBB8 80249D78 3C048011 */ lui $a0, %hi(gPlayerData+0x8) -/* 13EBBC 80249D7C 8084DD98 */ lb $a0, %lo(gPlayerData+0x8)($a0) -/* 13EBC0 80249D80 240800FF */ addiu $t0, $zero, 0xFF -/* 13EBC4 80249D84 AFA00010 */ sw $zero, 0x10($sp) -/* 13EBC8 80249D88 AFA80014 */ sw $t0, 0x14($sp) -/* 13EBCC 80249D8C 0C04986F */ jal draw_number -/* 13EBD0 80249D90 AFB10018 */ sw $s1, 0x18($sp) -/* 13EBD4 80249D94 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 13EBD8 80249D98 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 13EBDC 80249D9C 27C6008C */ addiu $a2, $fp, 0x8C -/* 13EBE0 80249DA0 3C058027 */ lui $a1, %hi(D_PAL_80271B24) -/* 13EBE4 80249DA4 00A22821 */ addu $a1, $a1, $v0 -/* 13EBE8 80249DA8 90A51B24 */ lbu $a1, %lo(D_PAL_80271B24)($a1) -/* 13EBEC 80249DAC 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x18) -/* 13EBF0 80249DB0 8C842538 */ lw $a0, %lo(gPauseStatsIconIDs+0x18)($a0) -/* 13EBF4 80249DB4 0C050D4D */ jal hud_element_set_render_pos -/* 13EBF8 80249DB8 02E52821 */ addu $a1, $s7, $a1 -/* 13EBFC 80249DBC 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x18) -/* 13EC00 80249DC0 8C842538 */ lw $a0, %lo(gPauseStatsIconIDs+0x18)($a0) -/* 13EC04 80249DC4 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13EC08 80249DC8 27D40085 */ addiu $s4, $fp, 0x85 -/* 13EC0C 80249DCC 0C094C60 */ jal pause_get_menu_msg -/* 13EC10 80249DD0 24040031 */ addiu $a0, $zero, 0x31 -/* 13EC14 80249DD4 0040202D */ daddu $a0, $v0, $zero -/* 13EC18 80249DD8 0280302D */ daddu $a2, $s4, $zero -/* 13EC1C 80249DDC 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 13EC20 80249DE0 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 13EC24 80249DE4 240700FF */ addiu $a3, $zero, 0xFF -/* 13EC28 80249DE8 3C058027 */ lui $a1, %hi(D_PAL_80271B28) -/* 13EC2C 80249DEC 00A22821 */ addu $a1, $a1, $v0 -/* 13EC30 80249DF0 90A51B28 */ lbu $a1, %lo(D_PAL_80271B28)($a1) -/* 13EC34 80249DF4 2408000A */ addiu $t0, $zero, 0xA -/* 13EC38 80249DF8 AFA80010 */ sw $t0, 0x10($sp) -/* 13EC3C 80249DFC 24080001 */ addiu $t0, $zero, 0x1 -/* 13EC40 80249E00 AFA80014 */ sw $t0, 0x14($sp) -/* 13EC44 80249E04 0C049403 */ jal draw_msg -/* 13EC48 80249E08 02E52821 */ addu $a1, $s7, $a1 -/* 13EC4C 80249E0C 3C020149 */ lui $v0, (0x14996FF >> 16) -/* 13EC50 80249E10 3C138011 */ lui $s3, %hi(gPlayerData+0x2BC) -/* 13EC54 80249E14 8E73E04C */ lw $s3, %lo(gPlayerData+0x2BC)($s3) -/* 13EC58 80249E18 344296FF */ ori $v0, $v0, (0x14996FF & 0xFFFF) -/* 13EC5C 80249E1C 0053102A */ slt $v0, $v0, $s3 -/* 13EC60 80249E20 10400003 */ beqz $v0, .Lpause_80249E30 -/* 13EC64 80249E24 3C021F11 */ lui $v0, (0x1F11A4A5 >> 16) -/* 13EC68 80249E28 3C130149 */ lui $s3, (0x14996FF >> 16) -/* 13EC6C 80249E2C 367396FF */ ori $s3, $s3, (0x14996FF & 0xFFFF) -.Lpause_80249E30: -/* 13EC70 80249E30 3442A4A5 */ ori $v0, $v0, (0x1F11A4A5 & 0xFFFF) -/* 13EC74 80249E34 3C036666 */ lui $v1, (0x66666667 >> 16) -/* 13EC78 80249E38 34636667 */ ori $v1, $v1, (0x66666667 & 0xFFFF) -/* 13EC7C 80249E3C 26E500ED */ addiu $a1, $s7, 0xED -/* 13EC80 80249E40 0280302D */ daddu $a2, $s4, $zero -/* 13EC84 80249E44 02620018 */ mult $s3, $v0 -/* 13EC88 80249E48 24070001 */ addiu $a3, $zero, 0x1 -/* 13EC8C 80249E4C 001397C3 */ sra $s2, $s3, 31 -/* 13EC90 80249E50 24150002 */ addiu $s5, $zero, 0x2 -/* 13EC94 80249E54 AFB50018 */ sw $s5, 0x18($sp) -/* 13EC98 80249E58 00004010 */ mfhi $t0 -/* 13EC9C 80249E5C 00088483 */ sra $s0, $t0, 18 -/* 13ECA0 80249E60 02128023 */ subu $s0, $s0, $s2 -/* 13ECA4 80249E64 2408000A */ addiu $t0, $zero, 0xA -/* 13ECA8 80249E68 02030018 */ mult $s0, $v1 -/* 13ECAC 80249E6C AFA80010 */ sw $t0, 0x10($sp) -/* 13ECB0 80249E70 240800FF */ addiu $t0, $zero, 0xFF -/* 13ECB4 80249E74 00101FC3 */ sra $v1, $s0, 31 -/* 13ECB8 80249E78 AFA80014 */ sw $t0, 0x14($sp) -/* 13ECBC 80249E7C 00004010 */ mfhi $t0 -/* 13ECC0 80249E80 02A81007 */ srav $v0, $t0, $s5 -/* 13ECC4 80249E84 00431023 */ subu $v0, $v0, $v1 -/* 13ECC8 80249E88 02A22004 */ sllv $a0, $v0, $s5 -/* 13ECCC 80249E8C 00822021 */ addu $a0, $a0, $v0 -/* 13ECD0 80249E90 00E42004 */ sllv $a0, $a0, $a3 -/* 13ECD4 80249E94 0C04986F */ jal draw_number -/* 13ECD8 80249E98 02042023 */ subu $a0, $s0, $a0 -/* 13ECDC 80249E9C 3C029B58 */ lui $v0, (0x9B583739 >> 16) -/* 13ECE0 80249EA0 34423739 */ ori $v0, $v0, (0x9B583739 & 0xFFFF) -/* 13ECE4 80249EA4 26E500F6 */ addiu $a1, $s7, 0xF6 -/* 13ECE8 80249EA8 0280302D */ daddu $a2, $s4, $zero -/* 13ECEC 80249EAC 24070001 */ addiu $a3, $zero, 0x1 -/* 13ECF0 80249EB0 2408000A */ addiu $t0, $zero, 0xA -/* 13ECF4 80249EB4 AFA80010 */ sw $t0, 0x10($sp) -/* 13ECF8 80249EB8 240800FF */ addiu $t0, $zero, 0xFF -/* 13ECFC 80249EBC 02B02004 */ sllv $a0, $s0, $s5 -/* 13ED00 80249EC0 02620018 */ mult $s3, $v0 -/* 13ED04 80249EC4 00902021 */ addu $a0, $a0, $s0 -/* 13ED08 80249EC8 00E42004 */ sllv $a0, $a0, $a3 -/* 13ED0C 80249ECC AFA80014 */ sw $t0, 0x14($sp) -/* 13ED10 80249ED0 AFB50018 */ sw $s5, 0x18($sp) -/* 13ED14 80249ED4 00004010 */ mfhi $t0 -/* 13ED18 80249ED8 01138821 */ addu $s1, $t0, $s3 -/* 13ED1C 80249EDC 00118C43 */ sra $s1, $s1, 17 -/* 13ED20 80249EE0 02328823 */ subu $s1, $s1, $s2 -/* 13ED24 80249EE4 0C04986F */ jal draw_number -/* 13ED28 80249EE8 02242023 */ subu $a0, $s1, $a0 -/* 13ED2C 80249EEC 0C094C60 */ jal pause_get_menu_msg -/* 13ED30 80249EF0 24040036 */ addiu $a0, $zero, 0x36 -/* 13ED34 80249EF4 0040202D */ daddu $a0, $v0, $zero -/* 13ED38 80249EF8 26F00101 */ addiu $s0, $s7, 0x101 -/* 13ED3C 80249EFC 0200282D */ daddu $a1, $s0, $zero -/* 13ED40 80249F00 27C60084 */ addiu $a2, $fp, 0x84 -/* 13ED44 80249F04 240700FF */ addiu $a3, $zero, 0xFF -/* 13ED48 80249F08 2408000A */ addiu $t0, $zero, 0xA -/* 13ED4C 80249F0C AFA80010 */ sw $t0, 0x10($sp) -/* 13ED50 80249F10 24080001 */ addiu $t0, $zero, 0x1 -/* 13ED54 80249F14 0C049403 */ jal draw_msg -/* 13ED58 80249F18 AFA80014 */ sw $t0, 0x14($sp) -/* 13ED5C 80249F1C 0C094C60 */ jal pause_get_menu_msg -/* 13ED60 80249F20 24040036 */ addiu $a0, $zero, 0x36 -/* 13ED64 80249F24 0040202D */ daddu $a0, $v0, $zero -/* 13ED68 80249F28 0200282D */ daddu $a1, $s0, $zero -/* 13ED6C 80249F2C 27C6007F */ addiu $a2, $fp, 0x7F -/* 13ED70 80249F30 240700FF */ addiu $a3, $zero, 0xFF -/* 13ED74 80249F34 2408000A */ addiu $t0, $zero, 0xA -/* 13ED78 80249F38 AFA80010 */ sw $t0, 0x10($sp) -/* 13ED7C 80249F3C 24080001 */ addiu $t0, $zero, 0x1 -/* 13ED80 80249F40 0C049403 */ jal draw_msg -/* 13ED84 80249F44 AFA80014 */ sw $t0, 0x14($sp) -/* 13ED88 80249F48 3C027482 */ lui $v0, (0x7482296B >> 16) -/* 13ED8C 80249F4C 3442296B */ ori $v0, $v0, (0x7482296B & 0xFFFF) -/* 13ED90 80249F50 26E50108 */ addiu $a1, $s7, 0x108 -/* 13ED94 80249F54 0280302D */ daddu $a2, $s4, $zero -/* 13ED98 80249F58 24070001 */ addiu $a3, $zero, 0x1 -/* 13ED9C 80249F5C 2408000A */ addiu $t0, $zero, 0xA -/* 13EDA0 80249F60 AFA80010 */ sw $t0, 0x10($sp) -/* 13EDA4 80249F64 240800FF */ addiu $t0, $zero, 0xFF -/* 13EDA8 80249F68 00F12004 */ sllv $a0, $s1, $a3 -/* 13EDAC 80249F6C 02620018 */ mult $s3, $v0 -/* 13EDB0 80249F70 00912021 */ addu $a0, $a0, $s1 -/* 13EDB4 80249F74 00E42004 */ sllv $a0, $a0, $a3 -/* 13EDB8 80249F78 AFA80014 */ sw $t0, 0x14($sp) -/* 13EDBC 80249F7C AFB50018 */ sw $s5, 0x18($sp) -/* 13EDC0 80249F80 00004010 */ mfhi $t0 -/* 13EDC4 80249F84 00088383 */ sra $s0, $t0, 14 -/* 13EDC8 80249F88 02128023 */ subu $s0, $s0, $s2 -/* 13EDCC 80249F8C 0C04986F */ jal draw_number -/* 13EDD0 80249F90 02042023 */ subu $a0, $s0, $a0 -/* 13EDD4 80249F94 3C0291A2 */ lui $v0, (0x91A2B3C5 >> 16) -/* 13EDD8 80249F98 3442B3C5 */ ori $v0, $v0, (0x91A2B3C5 & 0xFFFF) -/* 13EDDC 80249F9C 26E50111 */ addiu $a1, $s7, 0x111 -/* 13EDE0 80249FA0 0280302D */ daddu $a2, $s4, $zero -/* 13EDE4 80249FA4 24070001 */ addiu $a3, $zero, 0x1 -/* 13EDE8 80249FA8 2408000A */ addiu $t0, $zero, 0xA -/* 13EDEC 80249FAC AFA80010 */ sw $t0, 0x10($sp) -/* 13EDF0 80249FB0 240800FF */ addiu $t0, $zero, 0xFF -/* 13EDF4 80249FB4 02B02004 */ sllv $a0, $s0, $s5 -/* 13EDF8 80249FB8 02620018 */ mult $s3, $v0 -/* 13EDFC 80249FBC 00902021 */ addu $a0, $a0, $s0 -/* 13EE00 80249FC0 00E42004 */ sllv $a0, $a0, $a3 -/* 13EE04 80249FC4 AFA80014 */ sw $t0, 0x14($sp) -/* 13EE08 80249FC8 AFB50018 */ sw $s5, 0x18($sp) -/* 13EE0C 80249FCC 00004010 */ mfhi $t0 -/* 13EE10 80249FD0 01131021 */ addu $v0, $t0, $s3 -/* 13EE14 80249FD4 000212C3 */ sra $v0, $v0, 11 -/* 13EE18 80249FD8 00521023 */ subu $v0, $v0, $s2 -/* 13EE1C 80249FDC 0C04986F */ jal draw_number -/* 13EE20 80249FE0 00442023 */ subu $a0, $v0, $a0 -/* 13EE24 80249FE4 26E60007 */ addiu $a2, $s7, 0x7 -/* 13EE28 80249FE8 3C038011 */ lui $v1, %hi(gPlayerData) -/* 13EE2C 80249FEC 9063DD90 */ lbu $v1, %lo(gPlayerData)($v1) -/* 13EE30 80249FF0 3C028011 */ lui $v0, %hi(gPlayerData+0x1) -/* 13EE34 80249FF4 9042DD91 */ lbu $v0, %lo(gPlayerData+0x1)($v0) -/* 13EE38 80249FF8 AFA00010 */ sw $zero, 0x10($sp) -/* 13EE3C 80249FFC 00031E00 */ sll $v1, $v1, 24 -/* 13EE40 8024A000 00038E03 */ sra $s1, $v1, 24 -/* 13EE44 8024A004 00021600 */ sll $v0, $v0, 24 -/* 13EE48 8024A008 00029E03 */ sra $s3, $v0, 24 -/* 13EE4C 8024A00C 3C028011 */ lui $v0, %hi(gPlayerData+0x9) -/* 13EE50 8024A010 9042DD99 */ lbu $v0, %lo(gPlayerData+0x9)($v0) -/* 13EE54 8024A014 3C038015 */ lui $v1, %hi(gCurrentLanguage) -/* 13EE58 8024A018 8C63AE4C */ lw $v1, %lo(gCurrentLanguage)($v1) -/* 13EE5C 8024A01C 00021600 */ sll $v0, $v0, 24 -/* 13EE60 8024A020 00029603 */ sra $s2, $v0, 24 -/* 13EE64 8024A024 2A42000A */ slti $v0, $s2, 0xA -/* 13EE68 8024A028 3C018027 */ lui $at, %hi(D_PAL_80271B10) -/* 13EE6C 8024A02C 00230821 */ addu $at, $at, $v1 -/* 13EE70 8024A030 90231B10 */ lbu $v1, %lo(D_PAL_80271B10)($at) -/* 13EE74 8024A034 14400002 */ bnez $v0, .Lpause_8024A040 -/* 13EE78 8024A038 27C7000C */ addiu $a3, $fp, 0xC -/* 13EE7C 8024A03C 24630008 */ addiu $v1, $v1, 0x8 -.Lpause_8024A040: -/* 13EE80 8024A040 24040004 */ addiu $a0, $zero, 0x4 -/* 13EE84 8024A044 3C058027 */ lui $a1, %hi(gPauseWS_10) -/* 13EE88 8024A048 24A51F00 */ addiu $a1, $a1, %lo(gPauseWS_10) -/* 13EE8C 8024A04C 24020011 */ addiu $v0, $zero, 0x11 -/* 13EE90 8024A050 240800FF */ addiu $t0, $zero, 0xFF -/* 13EE94 8024A054 AFA20018 */ sw $v0, 0x18($sp) -/* 13EE98 8024A058 24020140 */ addiu $v0, $zero, 0x140 -/* 13EE9C 8024A05C AFA20044 */ sw $v0, 0x44($sp) -/* 13EEA0 8024A060 240200F0 */ addiu $v0, $zero, 0xF0 -/* 13EEA4 8024A064 AFA30014 */ sw $v1, 0x14($sp) -/* 13EEA8 8024A068 AFA8001C */ sw $t0, 0x1C($sp) -/* 13EEAC 8024A06C AFA00020 */ sw $zero, 0x20($sp) -/* 13EEB0 8024A070 AFA00024 */ sw $zero, 0x24($sp) -/* 13EEB4 8024A074 AFA00028 */ sw $zero, 0x28($sp) -/* 13EEB8 8024A078 AFA0002C */ sw $zero, 0x2C($sp) -/* 13EEBC 8024A07C AFA00030 */ sw $zero, 0x30($sp) -/* 13EEC0 8024A080 AFA00034 */ sw $zero, 0x34($sp) -/* 13EEC4 8024A084 AFA00038 */ sw $zero, 0x38($sp) -/* 13EEC8 8024A088 AFA0003C */ sw $zero, 0x3C($sp) -/* 13EECC 8024A08C AFA00040 */ sw $zero, 0x40($sp) -/* 13EED0 8024A090 AFA20048 */ sw $v0, 0x48($sp) -/* 13EED4 8024A094 0C03C5C4 */ jal draw_box -/* 13EED8 8024A098 AFA0004C */ sw $zero, 0x4C($sp) -/* 13EEDC 8024A09C 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 13EEE0 8024A0A0 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 13EEE4 8024A0A4 27C60015 */ addiu $a2, $fp, 0x15 -/* 13EEE8 8024A0A8 3C058027 */ lui $a1, %hi(D_PAL_80271B1C) -/* 13EEEC 8024A0AC 00A22821 */ addu $a1, $a1, $v0 -/* 13EEF0 8024A0B0 90A51B1C */ lbu $a1, %lo(D_PAL_80271B1C)($a1) -/* 13EEF4 8024A0B4 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs) -/* 13EEF8 8024A0B8 8C842520 */ lw $a0, %lo(gPauseStatsIconIDs)($a0) -/* 13EEFC 8024A0BC 0C050D4D */ jal hud_element_set_render_pos -/* 13EF00 8024A0C0 02E52821 */ addu $a1, $s7, $a1 -/* 13EF04 8024A0C4 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs) -/* 13EF08 8024A0C8 8C842520 */ lw $a0, %lo(gPauseStatsIconIDs)($a0) -/* 13EF0C 8024A0CC 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13EF10 8024A0D0 27D0000E */ addiu $s0, $fp, 0xE -/* 13EF14 8024A0D4 0C094C60 */ jal pause_get_menu_msg -/* 13EF18 8024A0D8 2404003D */ addiu $a0, $zero, 0x3D -/* 13EF1C 8024A0DC 0040202D */ daddu $a0, $v0, $zero -/* 13EF20 8024A0E0 0200302D */ daddu $a2, $s0, $zero -/* 13EF24 8024A0E4 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 13EF28 8024A0E8 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 13EF2C 8024A0EC 240700FF */ addiu $a3, $zero, 0xFF -/* 13EF30 8024A0F0 3C058027 */ lui $a1, %hi(D_PAL_80271B18) -/* 13EF34 8024A0F4 00A22821 */ addu $a1, $a1, $v0 -/* 13EF38 8024A0F8 90A51B18 */ lbu $a1, %lo(D_PAL_80271B18)($a1) -/* 13EF3C 8024A0FC 24080001 */ addiu $t0, $zero, 0x1 -/* 13EF40 8024A100 AFA00010 */ sw $zero, 0x10($sp) -/* 13EF44 8024A104 AFA80014 */ sw $t0, 0x14($sp) -/* 13EF48 8024A108 0C049403 */ jal draw_msg -/* 13EF4C 8024A10C 02E52821 */ addu $a1, $s7, $a1 -/* 13EF50 8024A110 0C094C60 */ jal pause_get_menu_msg -/* 13EF54 8024A114 2404003E */ addiu $a0, $zero, 0x3E -/* 13EF58 8024A118 0040202D */ daddu $a0, $v0, $zero -/* 13EF5C 8024A11C 0200302D */ daddu $a2, $s0, $zero -/* 13EF60 8024A120 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 13EF64 8024A124 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 13EF68 8024A128 240700FF */ addiu $a3, $zero, 0xFF -/* 13EF6C 8024A12C 3C058027 */ lui $a1, %hi(D_PAL_80271B20) -/* 13EF70 8024A130 00A22821 */ addu $a1, $a1, $v0 -/* 13EF74 8024A134 90A51B20 */ lbu $a1, %lo(D_PAL_80271B20)($a1) -/* 13EF78 8024A138 24080001 */ addiu $t0, $zero, 0x1 -/* 13EF7C 8024A13C AFA00010 */ sw $zero, 0x10($sp) -/* 13EF80 8024A140 AFA80014 */ sw $t0, 0x14($sp) -/* 13EF84 8024A144 0C049403 */ jal draw_msg -/* 13EF88 8024A148 02E52821 */ addu $a1, $s7, $a1 -/* 13EF8C 8024A14C 0240202D */ daddu $a0, $s2, $zero -/* 13EF90 8024A150 0200302D */ daddu $a2, $s0, $zero -/* 13EF94 8024A154 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 13EF98 8024A158 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 13EF9C 8024A15C 24070001 */ addiu $a3, $zero, 0x1 -/* 13EFA0 8024A160 3C058027 */ lui $a1, %hi(D_PAL_80271B14) -/* 13EFA4 8024A164 00A22821 */ addu $a1, $a1, $v0 -/* 13EFA8 8024A168 90A51B14 */ lbu $a1, %lo(D_PAL_80271B14)($a1) -/* 13EFAC 8024A16C 240800FF */ addiu $t0, $zero, 0xFF -/* 13EFB0 8024A170 AFA00010 */ sw $zero, 0x10($sp) -/* 13EFB4 8024A174 AFA80014 */ sw $t0, 0x14($sp) -/* 13EFB8 8024A178 AFB50018 */ sw $s5, 0x18($sp) -/* 13EFBC 8024A17C 0C04986F */ jal draw_number -/* 13EFC0 8024A180 02E52821 */ addu $a1, $s7, $a1 -/* 13EFC4 8024A184 26220001 */ addiu $v0, $s1, 0x1 -/* 13EFC8 8024A188 0040882D */ daddu $s1, $v0, $zero -/* 13EFCC 8024A18C 00021400 */ sll $v0, $v0, 16 -/* 13EFD0 8024A190 04420001 */ bltzl $v0, .Lpause_8024A198 -/* 13EFD4 8024A194 0000882D */ daddu $s1, $zero, $zero -.Lpause_8024A198: -/* 13EFD8 8024A198 00111400 */ sll $v0, $s1, 16 -/* 13EFDC 8024A19C 00021403 */ sra $v0, $v0, 16 -/* 13EFE0 8024A1A0 28420004 */ slti $v0, $v0, 0x4 -/* 13EFE4 8024A1A4 50400001 */ beql $v0, $zero, .Lpause_8024A1AC -/* 13EFE8 8024A1A8 24110003 */ addiu $s1, $zero, 0x3 -.Lpause_8024A1AC: -/* 13EFEC 8024A1AC 26620001 */ addiu $v0, $s3, 0x1 -/* 13EFF0 8024A1B0 0040982D */ daddu $s3, $v0, $zero -/* 13EFF4 8024A1B4 00021400 */ sll $v0, $v0, 16 -/* 13EFF8 8024A1B8 04420001 */ bltzl $v0, .Lpause_8024A1C0 -/* 13EFFC 8024A1BC 0000982D */ daddu $s3, $zero, $zero -.Lpause_8024A1C0: -/* 13F000 8024A1C0 00131400 */ sll $v0, $s3, 16 -/* 13F004 8024A1C4 00021403 */ sra $v0, $v0, 16 -/* 13F008 8024A1C8 28420004 */ slti $v0, $v0, 0x4 -/* 13F00C 8024A1CC 50400001 */ beql $v0, $zero, .Lpause_8024A1D4 -/* 13F010 8024A1D0 24130003 */ addiu $s3, $zero, 0x3 -.Lpause_8024A1D4: -/* 13F014 8024A1D4 24040003 */ addiu $a0, $zero, 0x3 -/* 13F018 8024A1D8 26F00089 */ addiu $s0, $s7, 0x89 -/* 13F01C 8024A1DC 0200282D */ daddu $a1, $s0, $zero -/* 13F020 8024A1E0 0C094C65 */ jal pause_draw_menu_label -/* 13F024 8024A1E4 27C6000A */ addiu $a2, $fp, 0xA -/* 13F028 8024A1E8 24040004 */ addiu $a0, $zero, 0x4 -/* 13F02C 8024A1EC 8FA60050 */ lw $a2, 0x50($sp) -/* 13F030 8024A1F0 0C094C65 */ jal pause_draw_menu_label -/* 13F034 8024A1F4 0200282D */ daddu $a1, $s0, $zero -/* 13F038 8024A1F8 00118400 */ sll $s0, $s1, 16 -/* 13F03C 8024A1FC 00108383 */ sra $s0, $s0, 14 -/* 13F040 8024A200 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x4) -/* 13F044 8024A204 8C842524 */ lw $a0, %lo(gPauseStatsIconIDs+0x4)($a0) -/* 13F048 8024A208 3C058025 */ lui $a1, %hi(gStatsBootsElements) -/* 13F04C 8024A20C 00B02821 */ addu $a1, $a1, $s0 -/* 13F050 8024A210 8CA53740 */ lw $a1, %lo(gStatsBootsElements)($a1) -/* 13F054 8024A214 0C050CEB */ jal hud_element_set_script -/* 13F058 8024A218 26F100A3 */ addiu $s1, $s7, 0xA3 -/* 13F05C 8024A21C 0220282D */ daddu $a1, $s1, $zero -/* 13F060 8024A220 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x4) -/* 13F064 8024A224 8C842524 */ lw $a0, %lo(gPauseStatsIconIDs+0x4)($a0) -/* 13F068 8024A228 0C050D4D */ jal hud_element_set_render_pos -/* 13F06C 8024A22C 27C6001D */ addiu $a2, $fp, 0x1D -/* 13F070 8024A230 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x4) -/* 13F074 8024A234 8C842524 */ lw $a0, %lo(gPauseStatsIconIDs+0x4)($a0) -/* 13F078 8024A238 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F07C 8024A23C 26F200B0 */ addiu $s2, $s7, 0xB0 -/* 13F080 8024A240 3C048025 */ lui $a0, %hi(gPauseStatsBootsMessages) -/* 13F084 8024A244 00902021 */ addu $a0, $a0, $s0 -/* 13F088 8024A248 8C843760 */ lw $a0, %lo(gPauseStatsBootsMessages)($a0) -/* 13F08C 8024A24C 0C094C60 */ jal pause_get_menu_msg -/* 13F090 8024A250 00138400 */ sll $s0, $s3, 16 -/* 13F094 8024A254 0040202D */ daddu $a0, $v0, $zero -/* 13F098 8024A258 0240282D */ daddu $a1, $s2, $zero -/* 13F09C 8024A25C 27C60017 */ addiu $a2, $fp, 0x17 -/* 13F0A0 8024A260 240700FF */ addiu $a3, $zero, 0xFF -/* 13F0A4 8024A264 24080001 */ addiu $t0, $zero, 0x1 -/* 13F0A8 8024A268 AFA00010 */ sw $zero, 0x10($sp) -/* 13F0AC 8024A26C 0C049403 */ jal draw_msg -/* 13F0B0 8024A270 AFA80014 */ sw $t0, 0x14($sp) -/* 13F0B4 8024A274 00108383 */ sra $s0, $s0, 14 -/* 13F0B8 8024A278 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x8) -/* 13F0BC 8024A27C 8C842528 */ lw $a0, %lo(gPauseStatsIconIDs+0x8)($a0) -/* 13F0C0 8024A280 3C058025 */ lui $a1, %hi(gStatsHammerElements) -/* 13F0C4 8024A284 00B02821 */ addu $a1, $a1, $s0 -/* 13F0C8 8024A288 8CA53750 */ lw $a1, %lo(gStatsHammerElements)($a1) -/* 13F0CC 8024A28C 0C050CEB */ jal hud_element_set_script -/* 13F0D0 8024A290 24140001 */ addiu $s4, $zero, 0x1 -/* 13F0D4 8024A294 0220282D */ daddu $a1, $s1, $zero -/* 13F0D8 8024A298 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x8) -/* 13F0DC 8024A29C 8C842528 */ lw $a0, %lo(gPauseStatsIconIDs+0x8)($a0) -/* 13F0E0 8024A2A0 0C050D4D */ jal hud_element_set_render_pos -/* 13F0E4 8024A2A4 27C60036 */ addiu $a2, $fp, 0x36 -/* 13F0E8 8024A2A8 3C048027 */ lui $a0, %hi(gPauseStatsIconIDs+0x8) -/* 13F0EC 8024A2AC 8C842528 */ lw $a0, %lo(gPauseStatsIconIDs+0x8)($a0) -/* 13F0F0 8024A2B0 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F0F4 8024A2B4 0000982D */ daddu $s3, $zero, $zero -/* 13F0F8 8024A2B8 3C048025 */ lui $a0, %hi(gPauseStatsHammerMessages) -/* 13F0FC 8024A2BC 00902021 */ addu $a0, $a0, $s0 -/* 13F100 8024A2C0 8C843770 */ lw $a0, %lo(gPauseStatsHammerMessages)($a0) -/* 13F104 8024A2C4 0C094C60 */ jal pause_get_menu_msg -/* 13F108 8024A2C8 0260A82D */ daddu $s5, $s3, $zero -/* 13F10C 8024A2CC 0040202D */ daddu $a0, $v0, $zero -/* 13F110 8024A2D0 0240282D */ daddu $a1, $s2, $zero -/* 13F114 8024A2D4 27C60030 */ addiu $a2, $fp, 0x30 -/* 13F118 8024A2D8 240700FF */ addiu $a3, $zero, 0xFF -/* 13F11C 8024A2DC 0280402D */ daddu $t0, $s4, $zero -/* 13F120 8024A2E0 AFA00010 */ sw $zero, 0x10($sp) -/* 13F124 8024A2E4 0C049403 */ jal draw_msg -/* 13F128 8024A2E8 AFA80014 */ sw $t0, 0x14($sp) -/* 13F12C 8024A2EC 24040006 */ addiu $a0, $zero, 0x6 -/* 13F130 8024A2F0 8FA60054 */ lw $a2, 0x54($sp) -/* 13F134 8024A2F4 0C094C65 */ jal pause_draw_menu_label -/* 13F138 8024A2F8 26E50082 */ addiu $a1, $s7, 0x82 -/* 13F13C 8024A2FC 24040005 */ addiu $a0, $zero, 0x5 -/* 13F140 8024A300 26E5008A */ addiu $a1, $s7, 0x8A -/* 13F144 8024A304 0C094C65 */ jal pause_draw_menu_label -/* 13F148 8024A308 27C6003C */ addiu $a2, $fp, 0x3C -/* 13F14C 8024A30C 0260902D */ daddu $s2, $s3, $zero -/* 13F150 8024A310 3C038011 */ lui $v1, %hi(gPlayerData+0x290) -/* 13F154 8024A314 8463E020 */ lh $v1, %lo(gPlayerData+0x290)($v1) -/* 13F158 8024A318 3C118027 */ lui $s1, %hi(gPauseStatsIconIDs+0x28) -/* 13F15C 8024A31C 8E312548 */ lw $s1, %lo(gPauseStatsIconIDs+0x28)($s1) -/* 13F160 8024A320 04610002 */ bgez $v1, .Lpause_8024A32C -/* 13F164 8024A324 0060102D */ daddu $v0, $v1, $zero -/* 13F168 8024A328 246200FF */ addiu $v0, $v1, 0xFF -.Lpause_8024A32C: -/* 13F16C 8024A32C 00021203 */ sra $v0, $v0, 8 -/* 13F170 8024A330 0040202D */ daddu $a0, $v0, $zero -/* 13F174 8024A334 00041200 */ sll $v0, $a0, 8 -/* 13F178 8024A338 00621023 */ subu $v0, $v1, $v0 -/* 13F17C 8024A33C 00021400 */ sll $v0, $v0, 16 -/* 13F180 8024A340 0002B403 */ sra $s6, $v0, 16 -/* 13F184 8024A344 06C10002 */ bgez $s6, .Lpause_8024A350 -/* 13F188 8024A348 02C0102D */ daddu $v0, $s6, $zero -/* 13F18C 8024A34C 26C2001F */ addiu $v0, $s6, 0x1F -.Lpause_8024A350: -/* 13F190 8024A350 0002B143 */ sra $s6, $v0, 5 -/* 13F194 8024A354 000410C0 */ sll $v0, $a0, 3 -/* 13F198 8024A358 02C2B021 */ addu $s6, $s6, $v0 -/* 13F19C 8024A35C 02B6102A */ slt $v0, $s5, $s6 -/* 13F1A0 8024A360 104000DF */ beqz $v0, .Lpause_8024A6E0 -/* 13F1A4 8024A364 00000000 */ nop -.Lpause_8024A368: -/* 13F1A8 8024A368 26730001 */ addiu $s3, $s3, 0x1 -/* 13F1AC 8024A36C 00158080 */ sll $s0, $s5, 2 -/* 13F1B0 8024A370 3C058025 */ lui $a1, %hi(gPauseStatsSPIncElements) -/* 13F1B4 8024A374 00B02821 */ addu $a1, $a1, $s0 -/* 13F1B8 8024A378 8CA53824 */ lw $a1, %lo(gPauseStatsSPIncElements)($a1) -/* 13F1BC 8024A37C 0C050CEB */ jal hud_element_set_script -/* 13F1C0 8024A380 0220202D */ daddu $a0, $s1, $zero -/* 13F1C4 8024A384 0220202D */ daddu $a0, $s1, $zero -/* 13F1C8 8024A388 27C6004B */ addiu $a2, $fp, 0x4B -/* 13F1CC 8024A38C 02158021 */ addu $s0, $s0, $s5 -/* 13F1D0 8024A390 00108080 */ sll $s0, $s0, 2 -/* 13F1D4 8024A394 2610008C */ addiu $s0, $s0, 0x8C -/* 13F1D8 8024A398 3C058025 */ lui $a1, %hi(D_8024F46C) -/* 13F1DC 8024A39C 8CA5385C */ lw $a1, %lo(D_8024F46C)($a1) -/* 13F1E0 8024A3A0 02F08021 */ addu $s0, $s7, $s0 -/* 13F1E4 8024A3A4 0C050D4D */ jal hud_element_set_render_pos -/* 13F1E8 8024A3A8 02052821 */ addu $a1, $s0, $a1 -/* 13F1EC 8024A3AC 12800005 */ beqz $s4, .Lpause_8024A3C4 -/* 13F1F0 8024A3B0 00000000 */ nop -/* 13F1F4 8024A3B4 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F1F8 8024A3B8 0220202D */ daddu $a0, $s1, $zero -/* 13F1FC 8024A3BC 080928F3 */ j .Lpause_8024A3CC -/* 13F200 8024A3C0 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024A3C4: -/* 13F204 8024A3C4 0C050CDD */ jal hud_element_draw_next -/* 13F208 8024A3C8 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024A3CC: -/* 13F20C 8024A3CC 0276102A */ slt $v0, $s3, $s6 -/* 13F210 8024A3D0 104000C3 */ beqz $v0, .Lpause_8024A6E0 -/* 13F214 8024A3D4 26520001 */ addiu $s2, $s2, 0x1 -/* 13F218 8024A3D8 26730001 */ addiu $s3, $s3, 0x1 -/* 13F21C 8024A3DC 00158080 */ sll $s0, $s5, 2 -/* 13F220 8024A3E0 3C058025 */ lui $a1, %hi(gPauseStatsSPIncElements) -/* 13F224 8024A3E4 00B02821 */ addu $a1, $a1, $s0 -/* 13F228 8024A3E8 8CA53824 */ lw $a1, %lo(gPauseStatsSPIncElements)($a1) -/* 13F22C 8024A3EC 0C050CEB */ jal hud_element_set_script -/* 13F230 8024A3F0 0220202D */ daddu $a0, $s1, $zero -/* 13F234 8024A3F4 0220202D */ daddu $a0, $s1, $zero -/* 13F238 8024A3F8 27C6004B */ addiu $a2, $fp, 0x4B -/* 13F23C 8024A3FC 02158021 */ addu $s0, $s0, $s5 -/* 13F240 8024A400 00108080 */ sll $s0, $s0, 2 -/* 13F244 8024A404 2610008C */ addiu $s0, $s0, 0x8C -/* 13F248 8024A408 3C058025 */ lui $a1, %hi(D_8024F46C+0x4) -/* 13F24C 8024A40C 8CA53860 */ lw $a1, %lo(D_8024F46C+0x4)($a1) -/* 13F250 8024A410 02F08021 */ addu $s0, $s7, $s0 -/* 13F254 8024A414 0C050D4D */ jal hud_element_set_render_pos -/* 13F258 8024A418 02052821 */ addu $a1, $s0, $a1 -/* 13F25C 8024A41C 12800005 */ beqz $s4, .Lpause_8024A434 -/* 13F260 8024A420 00000000 */ nop -/* 13F264 8024A424 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F268 8024A428 0220202D */ daddu $a0, $s1, $zero -/* 13F26C 8024A42C 0809290F */ j .Lpause_8024A43C -/* 13F270 8024A430 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024A434: -/* 13F274 8024A434 0C050CDD */ jal hud_element_draw_next -/* 13F278 8024A438 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024A43C: -/* 13F27C 8024A43C 0276102A */ slt $v0, $s3, $s6 -/* 13F280 8024A440 104000A7 */ beqz $v0, .Lpause_8024A6E0 -/* 13F284 8024A444 26520001 */ addiu $s2, $s2, 0x1 -/* 13F288 8024A448 26730001 */ addiu $s3, $s3, 0x1 -/* 13F28C 8024A44C 00158080 */ sll $s0, $s5, 2 -/* 13F290 8024A450 3C058025 */ lui $a1, %hi(gPauseStatsSPIncElements) -/* 13F294 8024A454 00B02821 */ addu $a1, $a1, $s0 -/* 13F298 8024A458 8CA53824 */ lw $a1, %lo(gPauseStatsSPIncElements)($a1) -/* 13F29C 8024A45C 0C050CEB */ jal hud_element_set_script -/* 13F2A0 8024A460 0220202D */ daddu $a0, $s1, $zero -/* 13F2A4 8024A464 0220202D */ daddu $a0, $s1, $zero -/* 13F2A8 8024A468 27C6004B */ addiu $a2, $fp, 0x4B -/* 13F2AC 8024A46C 02158021 */ addu $s0, $s0, $s5 -/* 13F2B0 8024A470 00108080 */ sll $s0, $s0, 2 -/* 13F2B4 8024A474 2610008C */ addiu $s0, $s0, 0x8C -/* 13F2B8 8024A478 3C058025 */ lui $a1, %hi(D_8024F46C+0x8) -/* 13F2BC 8024A47C 8CA53864 */ lw $a1, %lo(D_8024F46C+0x8)($a1) -/* 13F2C0 8024A480 02F08021 */ addu $s0, $s7, $s0 -/* 13F2C4 8024A484 0C050D4D */ jal hud_element_set_render_pos -/* 13F2C8 8024A488 02052821 */ addu $a1, $s0, $a1 -/* 13F2CC 8024A48C 12800005 */ beqz $s4, .Lpause_8024A4A4 -/* 13F2D0 8024A490 00000000 */ nop -/* 13F2D4 8024A494 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F2D8 8024A498 0220202D */ daddu $a0, $s1, $zero -/* 13F2DC 8024A49C 0809292B */ j .Lpause_8024A4AC -/* 13F2E0 8024A4A0 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024A4A4: -/* 13F2E4 8024A4A4 0C050CDD */ jal hud_element_draw_next -/* 13F2E8 8024A4A8 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024A4AC: -/* 13F2EC 8024A4AC 0276102A */ slt $v0, $s3, $s6 -/* 13F2F0 8024A4B0 1040008B */ beqz $v0, .Lpause_8024A6E0 -/* 13F2F4 8024A4B4 26520001 */ addiu $s2, $s2, 0x1 -/* 13F2F8 8024A4B8 26730001 */ addiu $s3, $s3, 0x1 -/* 13F2FC 8024A4BC 00158080 */ sll $s0, $s5, 2 -/* 13F300 8024A4C0 3C058025 */ lui $a1, %hi(gPauseStatsSPIncElements) -/* 13F304 8024A4C4 00B02821 */ addu $a1, $a1, $s0 -/* 13F308 8024A4C8 8CA53824 */ lw $a1, %lo(gPauseStatsSPIncElements)($a1) -/* 13F30C 8024A4CC 0C050CEB */ jal hud_element_set_script -/* 13F310 8024A4D0 0220202D */ daddu $a0, $s1, $zero -/* 13F314 8024A4D4 0220202D */ daddu $a0, $s1, $zero -/* 13F318 8024A4D8 27C6004B */ addiu $a2, $fp, 0x4B -/* 13F31C 8024A4DC 02158021 */ addu $s0, $s0, $s5 -/* 13F320 8024A4E0 00108080 */ sll $s0, $s0, 2 -/* 13F324 8024A4E4 2610008C */ addiu $s0, $s0, 0x8C -/* 13F328 8024A4E8 3C058025 */ lui $a1, %hi(D_8024F46C+0xC) -/* 13F32C 8024A4EC 8CA53868 */ lw $a1, %lo(D_8024F46C+0xC)($a1) -/* 13F330 8024A4F0 02F08021 */ addu $s0, $s7, $s0 -/* 13F334 8024A4F4 0C050D4D */ jal hud_element_set_render_pos -/* 13F338 8024A4F8 02052821 */ addu $a1, $s0, $a1 -/* 13F33C 8024A4FC 12800005 */ beqz $s4, .Lpause_8024A514 -/* 13F340 8024A500 00000000 */ nop -/* 13F344 8024A504 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F348 8024A508 0220202D */ daddu $a0, $s1, $zero -/* 13F34C 8024A50C 08092947 */ j .Lpause_8024A51C -/* 13F350 8024A510 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024A514: -/* 13F354 8024A514 0C050CDD */ jal hud_element_draw_next -/* 13F358 8024A518 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024A51C: -/* 13F35C 8024A51C 0276102A */ slt $v0, $s3, $s6 -/* 13F360 8024A520 1040006F */ beqz $v0, .Lpause_8024A6E0 -/* 13F364 8024A524 26520001 */ addiu $s2, $s2, 0x1 -/* 13F368 8024A528 26730001 */ addiu $s3, $s3, 0x1 -/* 13F36C 8024A52C 00158080 */ sll $s0, $s5, 2 -/* 13F370 8024A530 3C058025 */ lui $a1, %hi(gPauseStatsSPIncElements) -/* 13F374 8024A534 00B02821 */ addu $a1, $a1, $s0 -/* 13F378 8024A538 8CA53824 */ lw $a1, %lo(gPauseStatsSPIncElements)($a1) -/* 13F37C 8024A53C 0C050CEB */ jal hud_element_set_script -/* 13F380 8024A540 0220202D */ daddu $a0, $s1, $zero -/* 13F384 8024A544 0220202D */ daddu $a0, $s1, $zero -/* 13F388 8024A548 27C6004B */ addiu $a2, $fp, 0x4B -/* 13F38C 8024A54C 02158021 */ addu $s0, $s0, $s5 -/* 13F390 8024A550 00108080 */ sll $s0, $s0, 2 -/* 13F394 8024A554 2610008C */ addiu $s0, $s0, 0x8C -/* 13F398 8024A558 3C058025 */ lui $a1, %hi(D_8024F46C+0x10) -/* 13F39C 8024A55C 8CA5386C */ lw $a1, %lo(D_8024F46C+0x10)($a1) -/* 13F3A0 8024A560 02F08021 */ addu $s0, $s7, $s0 -/* 13F3A4 8024A564 0C050D4D */ jal hud_element_set_render_pos -/* 13F3A8 8024A568 02052821 */ addu $a1, $s0, $a1 -/* 13F3AC 8024A56C 12800005 */ beqz $s4, .Lpause_8024A584 -/* 13F3B0 8024A570 00000000 */ nop -/* 13F3B4 8024A574 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F3B8 8024A578 0220202D */ daddu $a0, $s1, $zero -/* 13F3BC 8024A57C 08092963 */ j .Lpause_8024A58C -/* 13F3C0 8024A580 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024A584: -/* 13F3C4 8024A584 0C050CDD */ jal hud_element_draw_next -/* 13F3C8 8024A588 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024A58C: -/* 13F3CC 8024A58C 0276102A */ slt $v0, $s3, $s6 -/* 13F3D0 8024A590 10400053 */ beqz $v0, .Lpause_8024A6E0 -/* 13F3D4 8024A594 26520001 */ addiu $s2, $s2, 0x1 -/* 13F3D8 8024A598 26730001 */ addiu $s3, $s3, 0x1 -/* 13F3DC 8024A59C 00158080 */ sll $s0, $s5, 2 -/* 13F3E0 8024A5A0 3C058025 */ lui $a1, %hi(gPauseStatsSPIncElements) -/* 13F3E4 8024A5A4 00B02821 */ addu $a1, $a1, $s0 -/* 13F3E8 8024A5A8 8CA53824 */ lw $a1, %lo(gPauseStatsSPIncElements)($a1) -/* 13F3EC 8024A5AC 0C050CEB */ jal hud_element_set_script -/* 13F3F0 8024A5B0 0220202D */ daddu $a0, $s1, $zero -/* 13F3F4 8024A5B4 0220202D */ daddu $a0, $s1, $zero -/* 13F3F8 8024A5B8 27C6004B */ addiu $a2, $fp, 0x4B -/* 13F3FC 8024A5BC 02158021 */ addu $s0, $s0, $s5 -/* 13F400 8024A5C0 00108080 */ sll $s0, $s0, 2 -/* 13F404 8024A5C4 2610008C */ addiu $s0, $s0, 0x8C -/* 13F408 8024A5C8 3C058025 */ lui $a1, %hi(D_8024F46C+0x14) -/* 13F40C 8024A5CC 8CA53870 */ lw $a1, %lo(D_8024F46C+0x14)($a1) -/* 13F410 8024A5D0 02F08021 */ addu $s0, $s7, $s0 -/* 13F414 8024A5D4 0C050D4D */ jal hud_element_set_render_pos -/* 13F418 8024A5D8 02052821 */ addu $a1, $s0, $a1 -/* 13F41C 8024A5DC 12800005 */ beqz $s4, .Lpause_8024A5F4 -/* 13F420 8024A5E0 00000000 */ nop -/* 13F424 8024A5E4 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F428 8024A5E8 0220202D */ daddu $a0, $s1, $zero -/* 13F42C 8024A5EC 0809297F */ j .Lpause_8024A5FC -/* 13F430 8024A5F0 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024A5F4: -/* 13F434 8024A5F4 0C050CDD */ jal hud_element_draw_next -/* 13F438 8024A5F8 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024A5FC: -/* 13F43C 8024A5FC 0276102A */ slt $v0, $s3, $s6 -/* 13F440 8024A600 10400037 */ beqz $v0, .Lpause_8024A6E0 -/* 13F444 8024A604 26520001 */ addiu $s2, $s2, 0x1 -/* 13F448 8024A608 26730001 */ addiu $s3, $s3, 0x1 -/* 13F44C 8024A60C 00158080 */ sll $s0, $s5, 2 -/* 13F450 8024A610 3C058025 */ lui $a1, %hi(gPauseStatsSPIncElements) -/* 13F454 8024A614 00B02821 */ addu $a1, $a1, $s0 -/* 13F458 8024A618 8CA53824 */ lw $a1, %lo(gPauseStatsSPIncElements)($a1) -/* 13F45C 8024A61C 0C050CEB */ jal hud_element_set_script -/* 13F460 8024A620 0220202D */ daddu $a0, $s1, $zero -/* 13F464 8024A624 0220202D */ daddu $a0, $s1, $zero -/* 13F468 8024A628 27C6004B */ addiu $a2, $fp, 0x4B -/* 13F46C 8024A62C 02158021 */ addu $s0, $s0, $s5 -/* 13F470 8024A630 00108080 */ sll $s0, $s0, 2 -/* 13F474 8024A634 2610008C */ addiu $s0, $s0, 0x8C -/* 13F478 8024A638 3C058025 */ lui $a1, %hi(D_8024F46C+0x18) -/* 13F47C 8024A63C 8CA53874 */ lw $a1, %lo(D_8024F46C+0x18)($a1) -/* 13F480 8024A640 02F08021 */ addu $s0, $s7, $s0 -/* 13F484 8024A644 0C050D4D */ jal hud_element_set_render_pos -/* 13F488 8024A648 02052821 */ addu $a1, $s0, $a1 -/* 13F48C 8024A64C 12800005 */ beqz $s4, .Lpause_8024A664 -/* 13F490 8024A650 00000000 */ nop -/* 13F494 8024A654 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F498 8024A658 0220202D */ daddu $a0, $s1, $zero -/* 13F49C 8024A65C 0809299B */ j .Lpause_8024A66C -/* 13F4A0 8024A660 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024A664: -/* 13F4A4 8024A664 0C050CDD */ jal hud_element_draw_next -/* 13F4A8 8024A668 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024A66C: -/* 13F4AC 8024A66C 0276102A */ slt $v0, $s3, $s6 -/* 13F4B0 8024A670 1040001B */ beqz $v0, .Lpause_8024A6E0 -/* 13F4B4 8024A674 26520001 */ addiu $s2, $s2, 0x1 -/* 13F4B8 8024A678 26730001 */ addiu $s3, $s3, 0x1 -/* 13F4BC 8024A67C 00158080 */ sll $s0, $s5, 2 -/* 13F4C0 8024A680 3C058025 */ lui $a1, %hi(gPauseStatsStarElements) -/* 13F4C4 8024A684 00B02821 */ addu $a1, $a1, $s0 -/* 13F4C8 8024A688 8CA53840 */ lw $a1, %lo(gPauseStatsStarElements)($a1) -/* 13F4CC 8024A68C 0C050CEB */ jal hud_element_set_script -/* 13F4D0 8024A690 0220202D */ daddu $a0, $s1, $zero -/* 13F4D4 8024A694 0220202D */ daddu $a0, $s1, $zero -/* 13F4D8 8024A698 02158021 */ addu $s0, $s0, $s5 -/* 13F4DC 8024A69C 00108080 */ sll $s0, $s0, 2 -/* 13F4E0 8024A6A0 26100098 */ addiu $s0, $s0, 0x98 -/* 13F4E4 8024A6A4 02F02821 */ addu $a1, $s7, $s0 -/* 13F4E8 8024A6A8 0C050D4D */ jal hud_element_set_render_pos -/* 13F4EC 8024A6AC 27C6004D */ addiu $a2, $fp, 0x4D -/* 13F4F0 8024A6B0 12800005 */ beqz $s4, .Lpause_8024A6C8 -/* 13F4F4 8024A6B4 00000000 */ nop -/* 13F4F8 8024A6B8 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F4FC 8024A6BC 0220202D */ daddu $a0, $s1, $zero -/* 13F500 8024A6C0 080929B4 */ j .Lpause_8024A6D0 -/* 13F504 8024A6C4 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024A6C8: -/* 13F508 8024A6C8 0C050CDD */ jal hud_element_draw_next -/* 13F50C 8024A6CC 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024A6D0: -/* 13F510 8024A6D0 0000902D */ daddu $s2, $zero, $zero -/* 13F514 8024A6D4 0276102A */ slt $v0, $s3, $s6 -/* 13F518 8024A6D8 1440FF23 */ bnez $v0, .Lpause_8024A368 -/* 13F51C 8024A6DC 26B50001 */ addiu $s5, $s5, 0x1 -.Lpause_8024A6E0: -/* 13F520 8024A6E0 3C048011 */ lui $a0, %hi(gPlayerData+0x28E) -/* 13F524 8024A6E4 8084E01E */ lb $a0, %lo(gPlayerData+0x28E)($a0) -/* 13F528 8024A6E8 00151080 */ sll $v0, $s5, 2 -/* 13F52C 8024A6EC 00551021 */ addu $v0, $v0, $s5 -/* 13F530 8024A6F0 00021080 */ sll $v0, $v0, 2 -/* 13F534 8024A6F4 24550098 */ addiu $s5, $v0, 0x98 -/* 13F538 8024A6F8 2450008C */ addiu $s0, $v0, 0x8C -/* 13F53C 8024A6FC 0004B0C0 */ sll $s6, $a0, 3 -.Lpause_8024A700: -/* 13F540 8024A700 0276102A */ slt $v0, $s3, $s6 -/* 13F544 8024A704 104000D0 */ beqz $v0, .Lpause_8024AA48 -/* 13F548 8024A708 00000000 */ nop -/* 13F54C 8024A70C 16400019 */ bnez $s2, .Lpause_8024A774 -/* 13F550 8024A710 24020001 */ addiu $v0, $zero, 0x1 -/* 13F554 8024A714 26730001 */ addiu $s3, $s3, 0x1 -/* 13F558 8024A718 3C058010 */ lui $a1, %hi(HES_StatusSPEmptyIncrement) -/* 13F55C 8024A71C 24A56BB0 */ addiu $a1, $a1, %lo(HES_StatusSPEmptyIncrement) -/* 13F560 8024A720 0C050CEB */ jal hud_element_set_script -/* 13F564 8024A724 0220202D */ daddu $a0, $s1, $zero -/* 13F568 8024A728 0220202D */ daddu $a0, $s1, $zero -/* 13F56C 8024A72C 27C6004B */ addiu $a2, $fp, 0x4B -/* 13F570 8024A730 3C028025 */ lui $v0, %hi(D_8024F46C) -/* 13F574 8024A734 8C42385C */ lw $v0, %lo(D_8024F46C)($v0) -/* 13F578 8024A738 02F02821 */ addu $a1, $s7, $s0 -/* 13F57C 8024A73C 0C050D4D */ jal hud_element_set_render_pos -/* 13F580 8024A740 00A22821 */ addu $a1, $a1, $v0 -/* 13F584 8024A744 12800005 */ beqz $s4, .Lpause_8024A75C -/* 13F588 8024A748 00000000 */ nop -/* 13F58C 8024A74C 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F590 8024A750 0220202D */ daddu $a0, $s1, $zero -/* 13F594 8024A754 080929D9 */ j .Lpause_8024A764 -/* 13F598 8024A758 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024A75C: -/* 13F59C 8024A75C 0C050CDD */ jal hud_element_draw_next -/* 13F5A0 8024A760 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024A764: -/* 13F5A4 8024A764 0276102A */ slt $v0, $s3, $s6 -/* 13F5A8 8024A768 104000B7 */ beqz $v0, .Lpause_8024AA48 -/* 13F5AC 8024A76C 26520001 */ addiu $s2, $s2, 0x1 -/* 13F5B0 8024A770 24020001 */ addiu $v0, $zero, 0x1 -.Lpause_8024A774: -/* 13F5B4 8024A774 56420019 */ bnel $s2, $v0, .Lpause_8024A7DC -/* 13F5B8 8024A778 24020002 */ addiu $v0, $zero, 0x2 -/* 13F5BC 8024A77C 02629821 */ addu $s3, $s3, $v0 -/* 13F5C0 8024A780 3C058010 */ lui $a1, %hi(HES_StatusSPEmptyIncrement) -/* 13F5C4 8024A784 24A56BB0 */ addiu $a1, $a1, %lo(HES_StatusSPEmptyIncrement) -/* 13F5C8 8024A788 0C050CEB */ jal hud_element_set_script -/* 13F5CC 8024A78C 0220202D */ daddu $a0, $s1, $zero -/* 13F5D0 8024A790 0220202D */ daddu $a0, $s1, $zero -/* 13F5D4 8024A794 27C6004B */ addiu $a2, $fp, 0x4B -/* 13F5D8 8024A798 3C028025 */ lui $v0, %hi(D_8024F46C+0x4) -/* 13F5DC 8024A79C 8C423860 */ lw $v0, %lo(D_8024F46C+0x4)($v0) -/* 13F5E0 8024A7A0 02F02821 */ addu $a1, $s7, $s0 -/* 13F5E4 8024A7A4 0C050D4D */ jal hud_element_set_render_pos -/* 13F5E8 8024A7A8 00A22821 */ addu $a1, $a1, $v0 -/* 13F5EC 8024A7AC 12800005 */ beqz $s4, .Lpause_8024A7C4 -/* 13F5F0 8024A7B0 00000000 */ nop -/* 13F5F4 8024A7B4 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F5F8 8024A7B8 0220202D */ daddu $a0, $s1, $zero -/* 13F5FC 8024A7BC 080929F3 */ j .Lpause_8024A7CC -/* 13F600 8024A7C0 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024A7C4: -/* 13F604 8024A7C4 0C050CDD */ jal hud_element_draw_next -/* 13F608 8024A7C8 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024A7CC: -/* 13F60C 8024A7CC 0276102A */ slt $v0, $s3, $s6 -/* 13F610 8024A7D0 1040009D */ beqz $v0, .Lpause_8024AA48 -/* 13F614 8024A7D4 26520001 */ addiu $s2, $s2, 0x1 -/* 13F618 8024A7D8 24020002 */ addiu $v0, $zero, 0x2 -.Lpause_8024A7DC: -/* 13F61C 8024A7DC 16420019 */ bne $s2, $v0, .Lpause_8024A844 -/* 13F620 8024A7E0 24020003 */ addiu $v0, $zero, 0x3 -/* 13F624 8024A7E4 26730001 */ addiu $s3, $s3, 0x1 -/* 13F628 8024A7E8 3C058010 */ lui $a1, %hi(HES_StatusSPEmptyIncrement) -/* 13F62C 8024A7EC 24A56BB0 */ addiu $a1, $a1, %lo(HES_StatusSPEmptyIncrement) -/* 13F630 8024A7F0 0C050CEB */ jal hud_element_set_script -/* 13F634 8024A7F4 0220202D */ daddu $a0, $s1, $zero -/* 13F638 8024A7F8 0220202D */ daddu $a0, $s1, $zero -/* 13F63C 8024A7FC 27C6004B */ addiu $a2, $fp, 0x4B -/* 13F640 8024A800 3C028025 */ lui $v0, %hi(D_8024F46C+0x8) -/* 13F644 8024A804 8C423864 */ lw $v0, %lo(D_8024F46C+0x8)($v0) -/* 13F648 8024A808 02F02821 */ addu $a1, $s7, $s0 -/* 13F64C 8024A80C 0C050D4D */ jal hud_element_set_render_pos -/* 13F650 8024A810 00A22821 */ addu $a1, $a1, $v0 -/* 13F654 8024A814 12800005 */ beqz $s4, .Lpause_8024A82C -/* 13F658 8024A818 00000000 */ nop -/* 13F65C 8024A81C 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F660 8024A820 0220202D */ daddu $a0, $s1, $zero -/* 13F664 8024A824 08092A0D */ j .Lpause_8024A834 -/* 13F668 8024A828 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024A82C: -/* 13F66C 8024A82C 0C050CDD */ jal hud_element_draw_next -/* 13F670 8024A830 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024A834: -/* 13F674 8024A834 0276102A */ slt $v0, $s3, $s6 -/* 13F678 8024A838 10400083 */ beqz $v0, .Lpause_8024AA48 -/* 13F67C 8024A83C 26520001 */ addiu $s2, $s2, 0x1 -/* 13F680 8024A840 24020003 */ addiu $v0, $zero, 0x3 -.Lpause_8024A844: -/* 13F684 8024A844 16420019 */ bne $s2, $v0, .Lpause_8024A8AC -/* 13F688 8024A848 24020004 */ addiu $v0, $zero, 0x4 -/* 13F68C 8024A84C 26730001 */ addiu $s3, $s3, 0x1 -/* 13F690 8024A850 3C058010 */ lui $a1, %hi(HES_StatusSPEmptyIncrement) -/* 13F694 8024A854 24A56BB0 */ addiu $a1, $a1, %lo(HES_StatusSPEmptyIncrement) -/* 13F698 8024A858 0C050CEB */ jal hud_element_set_script -/* 13F69C 8024A85C 0220202D */ daddu $a0, $s1, $zero -/* 13F6A0 8024A860 0220202D */ daddu $a0, $s1, $zero -/* 13F6A4 8024A864 27C6004B */ addiu $a2, $fp, 0x4B -/* 13F6A8 8024A868 3C028025 */ lui $v0, %hi(D_8024F46C+0xC) -/* 13F6AC 8024A86C 8C423868 */ lw $v0, %lo(D_8024F46C+0xC)($v0) -/* 13F6B0 8024A870 02F02821 */ addu $a1, $s7, $s0 -/* 13F6B4 8024A874 0C050D4D */ jal hud_element_set_render_pos -/* 13F6B8 8024A878 00A22821 */ addu $a1, $a1, $v0 -/* 13F6BC 8024A87C 12800005 */ beqz $s4, .Lpause_8024A894 -/* 13F6C0 8024A880 00000000 */ nop -/* 13F6C4 8024A884 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F6C8 8024A888 0220202D */ daddu $a0, $s1, $zero -/* 13F6CC 8024A88C 08092A27 */ j .Lpause_8024A89C -/* 13F6D0 8024A890 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024A894: -/* 13F6D4 8024A894 0C050CDD */ jal hud_element_draw_next -/* 13F6D8 8024A898 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024A89C: -/* 13F6DC 8024A89C 0276102A */ slt $v0, $s3, $s6 -/* 13F6E0 8024A8A0 10400069 */ beqz $v0, .Lpause_8024AA48 -/* 13F6E4 8024A8A4 26520001 */ addiu $s2, $s2, 0x1 -/* 13F6E8 8024A8A8 24020004 */ addiu $v0, $zero, 0x4 -.Lpause_8024A8AC: -/* 13F6EC 8024A8AC 16420019 */ bne $s2, $v0, .Lpause_8024A914 -/* 13F6F0 8024A8B0 24020005 */ addiu $v0, $zero, 0x5 -/* 13F6F4 8024A8B4 26730001 */ addiu $s3, $s3, 0x1 -/* 13F6F8 8024A8B8 3C058010 */ lui $a1, %hi(HES_StatusSPEmptyIncrement) -/* 13F6FC 8024A8BC 24A56BB0 */ addiu $a1, $a1, %lo(HES_StatusSPEmptyIncrement) -/* 13F700 8024A8C0 0C050CEB */ jal hud_element_set_script -/* 13F704 8024A8C4 0220202D */ daddu $a0, $s1, $zero -/* 13F708 8024A8C8 0220202D */ daddu $a0, $s1, $zero -/* 13F70C 8024A8CC 27C6004B */ addiu $a2, $fp, 0x4B -/* 13F710 8024A8D0 3C028025 */ lui $v0, %hi(D_8024F46C+0x10) -/* 13F714 8024A8D4 8C42386C */ lw $v0, %lo(D_8024F46C+0x10)($v0) -/* 13F718 8024A8D8 02F02821 */ addu $a1, $s7, $s0 -/* 13F71C 8024A8DC 0C050D4D */ jal hud_element_set_render_pos -/* 13F720 8024A8E0 00A22821 */ addu $a1, $a1, $v0 -/* 13F724 8024A8E4 12800005 */ beqz $s4, .Lpause_8024A8FC -/* 13F728 8024A8E8 00000000 */ nop -/* 13F72C 8024A8EC 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F730 8024A8F0 0220202D */ daddu $a0, $s1, $zero -/* 13F734 8024A8F4 08092A41 */ j .Lpause_8024A904 -/* 13F738 8024A8F8 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024A8FC: -/* 13F73C 8024A8FC 0C050CDD */ jal hud_element_draw_next -/* 13F740 8024A900 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024A904: -/* 13F744 8024A904 0276102A */ slt $v0, $s3, $s6 -/* 13F748 8024A908 1040004F */ beqz $v0, .Lpause_8024AA48 -/* 13F74C 8024A90C 26520001 */ addiu $s2, $s2, 0x1 -/* 13F750 8024A910 24020005 */ addiu $v0, $zero, 0x5 -.Lpause_8024A914: -/* 13F754 8024A914 16420019 */ bne $s2, $v0, .Lpause_8024A97C -/* 13F758 8024A918 24020006 */ addiu $v0, $zero, 0x6 -/* 13F75C 8024A91C 26730001 */ addiu $s3, $s3, 0x1 -/* 13F760 8024A920 3C058010 */ lui $a1, %hi(HES_StatusSPEmptyIncrement) -/* 13F764 8024A924 24A56BB0 */ addiu $a1, $a1, %lo(HES_StatusSPEmptyIncrement) -/* 13F768 8024A928 0C050CEB */ jal hud_element_set_script -/* 13F76C 8024A92C 0220202D */ daddu $a0, $s1, $zero -/* 13F770 8024A930 0220202D */ daddu $a0, $s1, $zero -/* 13F774 8024A934 27C6004B */ addiu $a2, $fp, 0x4B -/* 13F778 8024A938 3C028025 */ lui $v0, %hi(D_8024F46C+0x14) -/* 13F77C 8024A93C 8C423870 */ lw $v0, %lo(D_8024F46C+0x14)($v0) -/* 13F780 8024A940 02F02821 */ addu $a1, $s7, $s0 -/* 13F784 8024A944 0C050D4D */ jal hud_element_set_render_pos -/* 13F788 8024A948 00A22821 */ addu $a1, $a1, $v0 -/* 13F78C 8024A94C 12800005 */ beqz $s4, .Lpause_8024A964 -/* 13F790 8024A950 00000000 */ nop -/* 13F794 8024A954 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F798 8024A958 0220202D */ daddu $a0, $s1, $zero -/* 13F79C 8024A95C 08092A5B */ j .Lpause_8024A96C -/* 13F7A0 8024A960 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024A964: -/* 13F7A4 8024A964 0C050CDD */ jal hud_element_draw_next -/* 13F7A8 8024A968 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024A96C: -/* 13F7AC 8024A96C 0276102A */ slt $v0, $s3, $s6 -/* 13F7B0 8024A970 10400035 */ beqz $v0, .Lpause_8024AA48 -/* 13F7B4 8024A974 26520001 */ addiu $s2, $s2, 0x1 -/* 13F7B8 8024A978 24020006 */ addiu $v0, $zero, 0x6 -.Lpause_8024A97C: -/* 13F7BC 8024A97C 16420019 */ bne $s2, $v0, .Lpause_8024A9E4 -/* 13F7C0 8024A980 24020007 */ addiu $v0, $zero, 0x7 -/* 13F7C4 8024A984 26730001 */ addiu $s3, $s3, 0x1 -/* 13F7C8 8024A988 3C058010 */ lui $a1, %hi(HES_StatusSPEmptyIncrement) -/* 13F7CC 8024A98C 24A56BB0 */ addiu $a1, $a1, %lo(HES_StatusSPEmptyIncrement) -/* 13F7D0 8024A990 0C050CEB */ jal hud_element_set_script -/* 13F7D4 8024A994 0220202D */ daddu $a0, $s1, $zero -/* 13F7D8 8024A998 0220202D */ daddu $a0, $s1, $zero -/* 13F7DC 8024A99C 27C6004B */ addiu $a2, $fp, 0x4B -/* 13F7E0 8024A9A0 3C028025 */ lui $v0, %hi(D_8024F46C+0x18) -/* 13F7E4 8024A9A4 8C423874 */ lw $v0, %lo(D_8024F46C+0x18)($v0) -/* 13F7E8 8024A9A8 02F02821 */ addu $a1, $s7, $s0 -/* 13F7EC 8024A9AC 0C050D4D */ jal hud_element_set_render_pos -/* 13F7F0 8024A9B0 00A22821 */ addu $a1, $a1, $v0 -/* 13F7F4 8024A9B4 12800005 */ beqz $s4, .Lpause_8024A9CC -/* 13F7F8 8024A9B8 00000000 */ nop -/* 13F7FC 8024A9BC 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F800 8024A9C0 0220202D */ daddu $a0, $s1, $zero -/* 13F804 8024A9C4 08092A75 */ j .Lpause_8024A9D4 -/* 13F808 8024A9C8 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024A9CC: -/* 13F80C 8024A9CC 0C050CDD */ jal hud_element_draw_next -/* 13F810 8024A9D0 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024A9D4: -/* 13F814 8024A9D4 0276102A */ slt $v0, $s3, $s6 -/* 13F818 8024A9D8 1040001B */ beqz $v0, .Lpause_8024AA48 -/* 13F81C 8024A9DC 26520001 */ addiu $s2, $s2, 0x1 -/* 13F820 8024A9E0 24020007 */ addiu $v0, $zero, 0x7 -.Lpause_8024A9E4: -/* 13F824 8024A9E4 56420015 */ bnel $s2, $v0, .Lpause_8024AA3C -/* 13F828 8024A9E8 0000902D */ daddu $s2, $zero, $zero -/* 13F82C 8024A9EC 26730001 */ addiu $s3, $s3, 0x1 -/* 13F830 8024A9F0 3C058010 */ lui $a1, %hi(HES_StatusStarEmpty) -/* 13F834 8024A9F4 24A56CF0 */ addiu $a1, $a1, %lo(HES_StatusStarEmpty) -/* 13F838 8024A9F8 0C050CEB */ jal hud_element_set_script -/* 13F83C 8024A9FC 0220202D */ daddu $a0, $s1, $zero -/* 13F840 8024AA00 0220202D */ daddu $a0, $s1, $zero -/* 13F844 8024AA04 02F52821 */ addu $a1, $s7, $s5 -/* 13F848 8024AA08 0C050D4D */ jal hud_element_set_render_pos -/* 13F84C 8024AA0C 27C6004D */ addiu $a2, $fp, 0x4D -/* 13F850 8024AA10 12800005 */ beqz $s4, .Lpause_8024AA28 -/* 13F854 8024AA14 00000000 */ nop -/* 13F858 8024AA18 0C050CE4 */ jal hud_element_draw_without_clipping -/* 13F85C 8024AA1C 0220202D */ daddu $a0, $s1, $zero -/* 13F860 8024AA20 08092A8C */ j .Lpause_8024AA30 -/* 13F864 8024AA24 0000A02D */ daddu $s4, $zero, $zero -.Lpause_8024AA28: -/* 13F868 8024AA28 0C050CDD */ jal hud_element_draw_next -/* 13F86C 8024AA2C 0220202D */ daddu $a0, $s1, $zero -.Lpause_8024AA30: -/* 13F870 8024AA30 0276102A */ slt $v0, $s3, $s6 -/* 13F874 8024AA34 10400004 */ beqz $v0, .Lpause_8024AA48 -/* 13F878 8024AA38 0000902D */ daddu $s2, $zero, $zero -.Lpause_8024AA3C: -/* 13F87C 8024AA3C 26B50014 */ addiu $s5, $s5, 0x14 -/* 13F880 8024AA40 080929C0 */ j .Lpause_8024A700 -/* 13F884 8024AA44 26100014 */ addiu $s0, $s0, 0x14 -.Lpause_8024AA48: -/* 13F888 8024AA48 3C038027 */ lui $v1, %hi(gPauseMenuCurrentTab) -/* 13F88C 8024AA4C 806324A4 */ lb $v1, %lo(gPauseMenuCurrentTab)($v1) -/* 13F890 8024AA50 24020001 */ addiu $v0, $zero, 0x1 -/* 13F894 8024AA54 1462001B */ bne $v1, $v0, .Lpause_8024AAC4 -/* 13F898 8024AA58 00000000 */ nop -/* 13F89C 8024AA5C 8FA80080 */ lw $t0, 0x80($sp) -/* 13F8A0 8024AA60 91020003 */ lbu $v0, 0x3($t0) -/* 13F8A4 8024AA64 2C420007 */ sltiu $v0, $v0, 0x7 -/* 13F8A8 8024AA68 14400008 */ bnez $v0, .Lpause_8024AA8C -/* 13F8AC 8024AA6C 0000382D */ daddu $a3, $zero, $zero -/* 13F8B0 8024AA70 3C028015 */ lui $v0, %hi(gCurrentLanguage) -/* 13F8B4 8024AA74 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) -/* 13F8B8 8024AA78 00021080 */ sll $v0, $v0, 2 -/* 13F8BC 8024AA7C 3C078025 */ lui $a3, %hi(D_pause_80253814) -/* 13F8C0 8024AA80 00E23821 */ addu $a3, $a3, $v0 -/* 13F8C4 8024AA84 8CE73814 */ lw $a3, %lo(D_pause_80253814)($a3) -/* 13F8C8 8024AA88 8FA80080 */ lw $t0, 0x80($sp) -.Lpause_8024AA8C: -/* 13F8CC 8024AA8C 91030003 */ lbu $v1, 0x3($t0) -/* 13F8D0 8024AA90 3C048025 */ lui $a0, %hi(gStatsMenuEntries) -/* 13F8D4 8024AA94 24843790 */ addiu $a0, $a0, %lo(gStatsMenuEntries) -/* 13F8D8 8024AA98 00031040 */ sll $v0, $v1, 1 -/* 13F8DC 8024AA9C 00431021 */ addu $v0, $v0, $v1 -/* 13F8E0 8024AAA0 00021080 */ sll $v0, $v0, 2 -/* 13F8E4 8024AAA4 00441021 */ addu $v0, $v0, $a0 -/* 13F8E8 8024AAA8 2404001F */ addiu $a0, $zero, 0x1F -/* 13F8EC 8024AAAC 8C450000 */ lw $a1, 0x0($v0) -/* 13F8F0 8024AAB0 8C460004 */ lw $a2, 0x4($v0) -/* 13F8F4 8024AAB4 02E52821 */ addu $a1, $s7, $a1 -/* 13F8F8 8024AAB8 00A72821 */ addu $a1, $a1, $a3 -/* 13F8FC 8024AABC 0C091B05 */ jal pause_set_cursor_pos -/* 13F900 8024AAC0 03C63021 */ addu $a2, $fp, $a2 -.Lpause_8024AAC4: -/* 13F904 8024AAC4 8FBF007C */ lw $ra, 0x7C($sp) -/* 13F908 8024AAC8 8FBE0078 */ lw $fp, 0x78($sp) -/* 13F90C 8024AACC 8FB70074 */ lw $s7, 0x74($sp) -/* 13F910 8024AAD0 8FB60070 */ lw $s6, 0x70($sp) -/* 13F914 8024AAD4 8FB5006C */ lw $s5, 0x6C($sp) -/* 13F918 8024AAD8 8FB40068 */ lw $s4, 0x68($sp) -/* 13F91C 8024AADC 8FB30064 */ lw $s3, 0x64($sp) -/* 13F920 8024AAE0 8FB20060 */ lw $s2, 0x60($sp) -/* 13F924 8024AAE4 8FB1005C */ lw $s1, 0x5C($sp) -/* 13F928 8024AAE8 8FB00058 */ lw $s0, 0x58($sp) -/* 13F92C 8024AAEC 03E00008 */ jr $ra -/* 13F930 8024AAF0 27BD0080 */ addiu $sp, $sp, 0x80 diff --git a/ver/pal/asm/nonmatchings/world/area_mgm/mgm_00/mgm_00_3_scoreboard/mgm_00_draw_record_display.s b/ver/pal/asm/nonmatchings/world/area_mgm/mgm_00/mgm_00_3_scoreboard/mgm_00_draw_record_display.s deleted file mode 100644 index 34c8b870a6b..00000000000 --- a/ver/pal/asm/nonmatchings/world/area_mgm/mgm_00/mgm_00_3_scoreboard/mgm_00_draw_record_display.s +++ /dev/null @@ -1,487 +0,0 @@ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ - -.section .rodata - -glabel D_PAL_80244340 -/* E7F160 80244340 3FE4CCCC */ .word 0x3FE4CCCC -/* E7F164 80244344 CCCCCCCD */ .word 0xCCCCCCCD - -glabel D_PAL_80244348 -/* E7F168 80244348 3FE199999999999A */ .double 0.550000000000000044 - - -.section .text -/* Generated by spimdisasm 1.11.1 */ - -glabel mgm_00_draw_record_display -/* E7C000 802411E0 27BDFFB0 */ addiu $sp, $sp, -0x50 -/* E7C004 802411E4 AFB1002C */ sw $s1, 0x2C($sp) -/* E7C008 802411E8 0080882D */ daddu $s1, $a0, $zero -/* E7C00C 802411EC AFB60040 */ sw $s6, 0x40($sp) -/* E7C010 802411F0 00A0B02D */ daddu $s6, $a1, $zero -/* E7C014 802411F4 AFBF004C */ sw $ra, 0x4C($sp) -/* E7C018 802411F8 AFBE0048 */ sw $fp, 0x48($sp) -/* E7C01C 802411FC AFB70044 */ sw $s7, 0x44($sp) -/* E7C020 80241200 AFB5003C */ sw $s5, 0x3C($sp) -/* E7C024 80241204 AFB40038 */ sw $s4, 0x38($sp) -/* E7C028 80241208 AFB30034 */ sw $s3, 0x34($sp) -/* E7C02C 8024120C AFB20030 */ sw $s2, 0x30($sp) -/* E7C030 80241210 1AC001B0 */ blez $s6, .LPAL_802418D4 -/* E7C034 80241214 AFB00028 */ sw $s0, 0x28($sp) -/* E7C038 80241218 3C0B8009 */ lui $t3, %hi(gMainGfxPos) -/* E7C03C 8024121C 256B6A44 */ addiu $t3, $t3, %lo(gMainGfxPos) -/* E7C040 80241220 8D6A0000 */ lw $t2, 0x0($t3) -/* E7C044 80241224 0140182D */ daddu $v1, $t2, $zero -/* E7C048 80241228 254A0008 */ addiu $t2, $t2, 0x8 -/* E7C04C 8024122C AD6A0000 */ sw $t2, 0x0($t3) -/* E7C050 80241230 3C068015 */ lui $a2, %hi(gCurrentLanguage) -/* E7C054 80241234 8CC6AE4C */ lw $a2, %lo(gCurrentLanguage)($a2) -/* E7C058 80241238 3C02DE00 */ lui $v0, (0xDE000000 >> 16) -/* E7C05C 8024123C AC620000 */ sw $v0, 0x0($v1) -/* E7C060 80241240 3C028024 */ lui $v0, %hi(mgm_00_Gfx_RecordDisplay_Init) -/* E7C064 80241244 24424030 */ addiu $v0, $v0, %lo(mgm_00_Gfx_RecordDisplay_Init) -/* E7C068 80241248 AC620004 */ sw $v0, 0x4($v1) -/* E7C06C 8024124C 24020002 */ addiu $v0, $zero, 0x2 -/* E7C070 80241250 14C20002 */ bne $a2, $v0, .LPAL_8024125C -/* E7C074 80241254 0000F02D */ daddu $fp, $zero, $zero -/* E7C078 80241258 241E0024 */ addiu $fp, $zero, 0x24 -.LPAL_8024125C: -/* E7C07C 8024125C 3C08F600 */ lui $t0, (0xF60000CC >> 16) -/* E7C080 80241260 350800CC */ ori $t0, $t0, (0xF60000CC & 0xFFFF) -/* E7C084 80241264 3C07F600 */ lui $a3, (0xF6000214 >> 16) -/* E7C088 80241268 34E70214 */ ori $a3, $a3, (0xF6000214 & 0xFFFF) -/* E7C08C 8024126C 3C09FA00 */ lui $t1, (0xFA000000 >> 16) -/* E7C090 80241270 3C02FF00 */ lui $v0, (0xFF000000 >> 16) -/* E7C094 80241274 3C058024 */ lui $a1, %hi(mgm_00_pal_unkdata_2) -/* E7C098 80241278 24A54020 */ addiu $a1, $a1, %lo(mgm_00_pal_unkdata_2) -/* E7C09C 8024127C 00063080 */ sll $a2, $a2, 2 -/* E7C0A0 80241280 00C52821 */ addu $a1, $a2, $a1 -/* E7C0A4 80241284 AD420004 */ sw $v0, 0x4($t2) -/* E7C0A8 80241288 3C028024 */ lui $v0, %hi(mgm_00_pal_unkdata) -/* E7C0AC 8024128C 24424010 */ addiu $v0, $v0, %lo(mgm_00_pal_unkdata) -/* E7C0B0 80241290 00C23021 */ addu $a2, $a2, $v0 -/* E7C0B4 80241294 25430008 */ addiu $v1, $t2, 0x8 -/* E7C0B8 80241298 AD490000 */ sw $t1, 0x0($t2) -/* E7C0BC 8024129C 8CA20000 */ lw $v0, 0x0($a1) -/* E7C0C0 802412A0 8CC40000 */ lw $a0, 0x0($a2) -/* E7C0C4 802412A4 3C018024 */ lui $at, %hi(D_PAL_80244340) -/* E7C0C8 802412A8 D4224340 */ ldc1 $f2, %lo(D_PAL_80244340)($at) -/* E7C0CC 802412AC 44960000 */ mtc1 $s6, $f0 -/* E7C0D0 802412B0 00000000 */ nop -/* E7C0D4 802412B4 46800021 */ cvt.d.w $f0, $f0 -/* E7C0D8 802412B8 AD630000 */ sw $v1, 0x0($t3) -/* E7C0DC 802412BC 00441021 */ addu $v0, $v0, $a0 -/* E7C0E0 802412C0 24420001 */ addiu $v0, $v0, 0x1 -/* E7C0E4 802412C4 304203FF */ andi $v0, $v0, 0x3FF -/* E7C0E8 802412C8 00021380 */ sll $v0, $v0, 14 -/* E7C0EC 802412CC 00481025 */ or $v0, $v0, $t0 -/* E7C0F0 802412D0 46220002 */ mul.d $f0, $f0, $f2 -/* E7C0F4 802412D4 00000000 */ nop -/* E7C0F8 802412D8 AD420008 */ sw $v0, 0x8($t2) -/* E7C0FC 802412DC 8CA20000 */ lw $v0, 0x0($a1) -/* E7C100 802412E0 3C0141E0 */ lui $at, (0x41E00000 >> 16) -/* E7C104 802412E4 44811800 */ mtc1 $at, $f3 -/* E7C108 802412E8 44801000 */ mtc1 $zero, $f2 -/* E7C10C 802412EC 25430010 */ addiu $v1, $t2, 0x10 -/* E7C110 802412F0 AD630000 */ sw $v1, 0x0($t3) -/* E7C114 802412F4 2442FFFF */ addiu $v0, $v0, -0x1 -/* E7C118 802412F8 304203FF */ andi $v0, $v0, 0x3FF -/* E7C11C 802412FC 00021380 */ sll $v0, $v0, 14 -/* E7C120 80241300 344200C4 */ ori $v0, $v0, 0xC4 -/* E7C124 80241304 AD42000C */ sw $v0, 0xC($t2) -/* E7C128 80241308 8CA20000 */ lw $v0, 0x0($a1) -/* E7C12C 8024130C 25430018 */ addiu $v1, $t2, 0x18 -/* E7C130 80241310 AD630000 */ sw $v1, 0x0($t3) -/* E7C134 80241314 24420001 */ addiu $v0, $v0, 0x1 -/* E7C138 80241318 304203FF */ andi $v0, $v0, 0x3FF -/* E7C13C 8024131C 00021380 */ sll $v0, $v0, 14 -/* E7C140 80241320 00471025 */ or $v0, $v0, $a3 -/* E7C144 80241324 AD420010 */ sw $v0, 0x10($t2) -/* E7C148 80241328 8CA20000 */ lw $v0, 0x0($a1) -/* E7C14C 8024132C 25430020 */ addiu $v1, $t2, 0x20 -/* E7C150 80241330 AD630000 */ sw $v1, 0x0($t3) -/* E7C154 80241334 2442FFFF */ addiu $v0, $v0, -0x1 -/* E7C158 80241338 304203FF */ andi $v0, $v0, 0x3FF -/* E7C15C 8024133C 00021380 */ sll $v0, $v0, 14 -/* E7C160 80241340 344200C4 */ ori $v0, $v0, 0xC4 -/* E7C164 80241344 AD420014 */ sw $v0, 0x14($t2) -/* E7C168 80241348 8CA20000 */ lw $v0, 0x0($a1) -/* E7C16C 8024134C 8CC40000 */ lw $a0, 0x0($a2) -/* E7C170 80241350 25430028 */ addiu $v1, $t2, 0x28 -/* E7C174 80241354 AD630000 */ sw $v1, 0x0($t3) -/* E7C178 80241358 00441021 */ addu $v0, $v0, $a0 -/* E7C17C 8024135C 24420001 */ addiu $v0, $v0, 0x1 -/* E7C180 80241360 304203FF */ andi $v0, $v0, 0x3FF -/* E7C184 80241364 00021380 */ sll $v0, $v0, 14 -/* E7C188 80241368 00471025 */ or $v0, $v0, $a3 -/* E7C18C 8024136C AD420018 */ sw $v0, 0x18($t2) -/* E7C190 80241370 8CA20000 */ lw $v0, 0x0($a1) -/* E7C194 80241374 8CC40000 */ lw $a0, 0x0($a2) -/* E7C198 80241378 25430030 */ addiu $v1, $t2, 0x30 -/* E7C19C 8024137C AD630000 */ sw $v1, 0x0($t3) -/* E7C1A0 80241380 00441021 */ addu $v0, $v0, $a0 -/* E7C1A4 80241384 304203FF */ andi $v0, $v0, 0x3FF -/* E7C1A8 80241388 00021380 */ sll $v0, $v0, 14 -/* E7C1AC 8024138C 344200C4 */ ori $v0, $v0, 0xC4 -/* E7C1B0 80241390 AD42001C */ sw $v0, 0x1C($t2) -/* E7C1B4 80241394 8CA20000 */ lw $v0, 0x0($a1) -/* E7C1B8 80241398 8CC40000 */ lw $a0, 0x0($a2) -/* E7C1BC 8024139C 25430038 */ addiu $v1, $t2, 0x38 -/* E7C1C0 802413A0 AD630000 */ sw $v1, 0x0($t3) -/* E7C1C4 802413A4 3C03E700 */ lui $v1, (0xE7000000 >> 16) -/* E7C1C8 802413A8 00441021 */ addu $v0, $v0, $a0 -/* E7C1CC 802413AC 24420001 */ addiu $v0, $v0, 0x1 -/* E7C1D0 802413B0 304203FF */ andi $v0, $v0, 0x3FF -/* E7C1D4 802413B4 00021380 */ sll $v0, $v0, 14 -/* E7C1D8 802413B8 00471025 */ or $v0, $v0, $a3 -/* E7C1DC 802413BC AD420020 */ sw $v0, 0x20($t2) -/* E7C1E0 802413C0 8CA20000 */ lw $v0, 0x0($a1) -/* E7C1E4 802413C4 25460034 */ addiu $a2, $t2, 0x34 -/* E7C1E8 802413C8 AD430028 */ sw $v1, 0x28($t2) -/* E7C1EC 802413CC AD40002C */ sw $zero, 0x2C($t2) -/* E7C1F0 802413D0 AD490030 */ sw $t1, 0x30($t2) -/* E7C1F4 802413D4 2442FFFF */ addiu $v0, $v0, -0x1 -/* E7C1F8 802413D8 304203FF */ andi $v0, $v0, 0x3FF -/* E7C1FC 802413DC 00021380 */ sll $v0, $v0, 14 -/* E7C200 802413E0 34420210 */ ori $v0, $v0, 0x210 -/* E7C204 802413E4 4620103E */ c.le.d $f2, $f0 -/* E7C208 802413E8 00000000 */ nop -/* E7C20C 802413EC 45010005 */ bc1t .LPAL_80241404 -/* E7C210 802413F0 AD420024 */ sw $v0, 0x24($t2) -/* E7C214 802413F4 4620010D */ trunc.w.d $f4, $f0 -/* E7C218 802413F8 44042000 */ mfc1 $a0, $f4 -/* E7C21C 802413FC 08090508 */ j .LPAL_80241420 -/* E7C220 80241400 3C031078 */ lui $v1, (0x10781800 >> 16) -.LPAL_80241404: -/* E7C224 80241404 46220001 */ sub.d $f0, $f0, $f2 -/* E7C228 80241408 3C028000 */ lui $v0, (0x80000000 >> 16) -/* E7C22C 8024140C 4620010D */ trunc.w.d $f4, $f0 -/* E7C230 80241410 44042000 */ mfc1 $a0, $f4 -/* E7C234 80241414 00000000 */ nop -/* E7C238 80241418 00822025 */ or $a0, $a0, $v0 -/* E7C23C 8024141C 3C031078 */ lui $v1, (0x10781800 >> 16) -.LPAL_80241420: -/* E7C240 80241420 34631800 */ ori $v1, $v1, (0x10781800 & 0xFFFF) -/* E7C244 80241424 3C0BF600 */ lui $t3, (0xF6000204 >> 16) -/* E7C248 80241428 356B0204 */ ori $t3, $t3, (0xF6000204 & 0xFFFF) -/* E7C24C 8024142C 24050032 */ addiu $a1, $zero, 0x32 -/* E7C250 80241430 24070052 */ addiu $a3, $zero, 0x52 -/* E7C254 80241434 3C0A8009 */ lui $t2, %hi(gMainGfxPos) -/* E7C258 80241438 254A6A44 */ addiu $t2, $t2, %lo(gMainGfxPos) -/* E7C25C 8024143C 308200FF */ andi $v0, $a0, 0xFF -/* E7C260 80241440 00431025 */ or $v0, $v0, $v1 -/* E7C264 80241444 3C138015 */ lui $s3, %hi(gCurrentLanguage) -/* E7C268 80241448 2673AE4C */ addiu $s3, $s3, %lo(gCurrentLanguage) -/* E7C26C 8024144C 3C158024 */ lui $s5, %hi(mgm_00_pal_unkdata_2) -/* E7C270 80241450 26B54020 */ addiu $s5, $s5, %lo(mgm_00_pal_unkdata_2) -/* E7C274 80241454 3C108024 */ lui $s0, %hi(mgm_00_pal_unkdata) -/* E7C278 80241458 26104010 */ addiu $s0, $s0, %lo(mgm_00_pal_unkdata) -/* E7C27C 8024145C 44961000 */ mtc1 $s6, $f2 -/* E7C280 80241460 00000000 */ nop -/* E7C284 80241464 468010A1 */ cvt.d.w $f2, $f2 -/* E7C288 80241468 8D480000 */ lw $t0, 0x0($t2) -/* E7C28C 8024146C 24140001 */ addiu $s4, $zero, 0x1 -/* E7C290 80241470 ACC20000 */ sw $v0, 0x0($a2) -/* E7C294 80241474 8E660000 */ lw $a2, 0x0($s3) -/* E7C298 80241478 3C018024 */ lui $at, %hi(D_PAL_80244348) -/* E7C29C 8024147C D4204348 */ ldc1 $f0, %lo(D_PAL_80244348)($at) -/* E7C2A0 80241480 00063080 */ sll $a2, $a2, 2 -/* E7C2A4 80241484 00D52021 */ addu $a0, $a2, $s5 -/* E7C2A8 80241488 00D03021 */ addu $a2, $a2, $s0 -/* E7C2AC 8024148C 0100482D */ daddu $t1, $t0, $zero -/* E7C2B0 80241490 8C820000 */ lw $v0, 0x0($a0) -/* E7C2B4 80241494 8CC30000 */ lw $v1, 0x0($a2) -/* E7C2B8 80241498 25080008 */ addiu $t0, $t0, 0x8 -/* E7C2BC 8024149C 00431021 */ addu $v0, $v0, $v1 -/* E7C2C0 802414A0 2442FFFD */ addiu $v0, $v0, -0x3 -/* E7C2C4 802414A4 304203FF */ andi $v0, $v0, 0x3FF -/* E7C2C8 802414A8 00021380 */ sll $v0, $v0, 14 -/* E7C2CC 802414AC 004B1025 */ or $v0, $v0, $t3 -/* E7C2D0 802414B0 AD220000 */ sw $v0, 0x0($t1) -/* E7C2D4 802414B4 8C820000 */ lw $v0, 0x0($a0) -/* E7C2D8 802414B8 46201082 */ mul.d $f2, $f2, $f0 -/* E7C2DC 802414BC 00000000 */ nop -/* E7C2E0 802414C0 AD480000 */ sw $t0, 0x0($t2) -/* E7C2E4 802414C4 24420003 */ addiu $v0, $v0, 0x3 -/* E7C2E8 802414C8 304203FF */ andi $v0, $v0, 0x3FF -/* E7C2EC 802414CC 00021380 */ sll $v0, $v0, 14 -/* E7C2F0 802414D0 344200D4 */ ori $v0, $v0, 0xD4 -/* E7C2F4 802414D4 AD220004 */ sw $v0, 0x4($t1) -/* E7C2F8 802414D8 3C02E700 */ lui $v0, (0xE7000000 >> 16) -/* E7C2FC 802414DC AD020000 */ sw $v0, 0x0($t0) -/* E7C300 802414E0 24020006 */ addiu $v0, $zero, 0x6 -/* E7C304 802414E4 AD000004 */ sw $zero, 0x4($t0) -/* E7C308 802414E8 AFA20010 */ sw $v0, 0x10($sp) -/* E7C30C 802414EC AFA00014 */ sw $zero, 0x14($sp) -/* E7C310 802414F0 AFB40018 */ sw $s4, 0x18($sp) -/* E7C314 802414F4 AFB60020 */ sw $s6, 0x20($sp) -/* E7C318 802414F8 4620110D */ trunc.w.d $f4, $f2 -/* E7C31C 802414FC E7A4001C */ swc1 $f4, 0x1C($sp) -/* E7C320 80241500 8C840000 */ lw $a0, 0x0($a0) -/* E7C324 80241504 8CC60000 */ lw $a2, 0x0($a2) -/* E7C328 80241508 25080008 */ addiu $t0, $t0, 0x8 -/* E7C32C 8024150C 0C04B1BE */ jal msg_draw_frame -/* E7C330 80241510 AD480000 */ sw $t0, 0x0($t2) -/* E7C334 80241514 8E220008 */ lw $v0, 0x8($s1) -/* E7C338 80241518 1454004D */ bne $v0, $s4, .LPAL_80241650 -/* E7C33C 8024151C 3C040008 */ lui $a0, (0x8001C >> 16) -/* E7C340 80241520 3484001C */ ori $a0, $a0, (0x8001C & 0xFFFF) -/* E7C344 80241524 0C0493E5 */ jal get_msg_width -/* E7C348 80241528 0000282D */ daddu $a1, $zero, $zero -/* E7C34C 8024152C 3C040008 */ lui $a0, (0x8001C >> 16) -/* E7C350 80241530 3484001C */ ori $a0, $a0, (0x8001C & 0xFFFF) -/* E7C354 80241534 24060039 */ addiu $a2, $zero, 0x39 -/* E7C358 80241538 8E630000 */ lw $v1, 0x0($s3) -/* E7C35C 8024153C 02C0382D */ daddu $a3, $s6, $zero -/* E7C360 80241540 00031880 */ sll $v1, $v1, 2 -/* E7C364 80241544 00754021 */ addu $t0, $v1, $s5 -/* E7C368 80241548 00701821 */ addu $v1, $v1, $s0 -/* E7C36C 8024154C 8C650000 */ lw $a1, 0x0($v1) -/* E7C370 80241550 8D030000 */ lw $v1, 0x0($t0) -/* E7C374 80241554 3C170008 */ lui $s7, (0x80025 >> 16) -/* E7C378 80241558 AFB40010 */ sw $s4, 0x10($sp) -/* E7C37C 8024155C AFA00014 */ sw $zero, 0x14($sp) -/* E7C380 80241560 00A22823 */ subu $a1, $a1, $v0 -/* E7C384 80241564 000517C2 */ srl $v0, $a1, 31 -/* E7C388 80241568 00A22821 */ addu $a1, $a1, $v0 -/* E7C38C 8024156C 02852807 */ srav $a1, $a1, $s4 -/* E7C390 80241570 0C049403 */ jal draw_msg -/* E7C394 80241574 00652821 */ addu $a1, $v1, $a1 -/* E7C398 80241578 2406004E */ addiu $a2, $zero, 0x4E -/* E7C39C 8024157C 0280382D */ daddu $a3, $s4, $zero -/* E7C3A0 80241580 3C128011 */ lui $s2, %hi(gPlayerData) -/* E7C3A4 80241584 2652DD90 */ addiu $s2, $s2, %lo(gPlayerData) -/* E7C3A8 80241588 24110003 */ addiu $s1, $zero, 0x3 -/* E7C3AC 8024158C 8E620000 */ lw $v0, 0x0($s3) -/* E7C3B0 80241590 9644032E */ lhu $a0, 0x32E($s2) -/* E7C3B4 80241594 00021080 */ sll $v0, $v0, 2 -/* E7C3B8 80241598 00551021 */ addu $v0, $v0, $s5 -/* E7C3BC 8024159C 8C450000 */ lw $a1, 0x0($v0) -/* E7C3C0 802415A0 27D000AE */ addiu $s0, $fp, 0xAE -/* E7C3C4 802415A4 AFA00010 */ sw $zero, 0x10($sp) -/* E7C3C8 802415A8 AFB60014 */ sw $s6, 0x14($sp) -/* E7C3CC 802415AC AFB10018 */ sw $s1, 0x18($sp) -/* E7C3D0 802415B0 0C04986F */ jal draw_number -/* E7C3D4 802415B4 00B02821 */ addu $a1, $a1, $s0 -/* E7C3D8 802415B8 2406005D */ addiu $a2, $zero, 0x5D -/* E7C3DC 802415BC 8E620000 */ lw $v0, 0x0($s3) -/* E7C3E0 802415C0 8E440330 */ lw $a0, 0x330($s2) -/* E7C3E4 802415C4 00021080 */ sll $v0, $v0, 2 -/* E7C3E8 802415C8 00551021 */ addu $v0, $v0, $s5 -/* E7C3EC 802415CC 8C450000 */ lw $a1, 0x0($v0) -/* E7C3F0 802415D0 0280382D */ daddu $a3, $s4, $zero -/* E7C3F4 802415D4 AFA00010 */ sw $zero, 0x10($sp) -/* E7C3F8 802415D8 AFB60014 */ sw $s6, 0x14($sp) -/* E7C3FC 802415DC AFB10018 */ sw $s1, 0x18($sp) -/* E7C400 802415E0 0C04986F */ jal draw_number -/* E7C404 802415E4 00B02821 */ addu $a1, $a1, $s0 -/* E7C408 802415E8 2406006C */ addiu $a2, $zero, 0x6C -/* E7C40C 802415EC 8E620000 */ lw $v0, 0x0($s3) -/* E7C410 802415F0 96440334 */ lhu $a0, 0x334($s2) -/* E7C414 802415F4 00021080 */ sll $v0, $v0, 2 -/* E7C418 802415F8 00551021 */ addu $v0, $v0, $s5 -/* E7C41C 802415FC 8C450000 */ lw $a1, 0x0($v0) -/* E7C420 80241600 0280382D */ daddu $a3, $s4, $zero -/* E7C424 80241604 AFA00010 */ sw $zero, 0x10($sp) -/* E7C428 80241608 AFB60014 */ sw $s6, 0x14($sp) -/* E7C42C 8024160C AFB10018 */ sw $s1, 0x18($sp) -/* E7C430 80241610 0C04986F */ jal draw_number -/* E7C434 80241614 00B02821 */ addu $a1, $a1, $s0 -/* E7C438 80241618 9642032E */ lhu $v0, 0x32E($s2) -/* E7C43C 8024161C 14540003 */ bne $v0, $s4, .LPAL_8024162C -/* E7C440 80241620 36F70025 */ ori $s7, $s7, (0x80025 & 0xFFFF) -/* E7C444 80241624 3C170008 */ lui $s7, (0x80024 >> 16) -/* E7C448 80241628 36F70024 */ ori $s7, $s7, (0x80024 & 0xFFFF) -.LPAL_8024162C: -/* E7C44C 8024162C 3C110008 */ lui $s1, (0x80022 >> 16) -/* E7C450 80241630 8E420330 */ lw $v0, 0x330($s2) -/* E7C454 80241634 14540003 */ bne $v0, $s4, .LPAL_80241644 -/* E7C458 80241638 36310022 */ ori $s1, $s1, (0x80022 & 0xFFFF) -/* E7C45C 8024163C 3C110008 */ lui $s1, (0x80021 >> 16) -/* E7C460 80241640 36310021 */ ori $s1, $s1, (0x80021 & 0xFFFF) -.LPAL_80241644: -/* E7C464 80241644 96420334 */ lhu $v0, 0x334($s2) -/* E7C468 80241648 080905DF */ j .LPAL_8024177C -/* E7C46C 8024164C 3C130008 */ lui $s3, (0x80022 >> 16) -.LPAL_80241650: -/* E7C470 80241650 3484001D */ ori $a0, $a0, (0x8001D & 0xFFFF) -/* E7C474 80241654 0C0493E5 */ jal get_msg_width -/* E7C478 80241658 0000282D */ daddu $a1, $zero, $zero -/* E7C47C 8024165C 3C040008 */ lui $a0, (0x8001D >> 16) -/* E7C480 80241660 3484001D */ ori $a0, $a0, (0x8001D & 0xFFFF) -/* E7C484 80241664 24060039 */ addiu $a2, $zero, 0x39 -/* E7C488 80241668 8E630000 */ lw $v1, 0x0($s3) -/* E7C48C 8024166C 02C0382D */ daddu $a3, $s6, $zero -/* E7C490 80241670 00031880 */ sll $v1, $v1, 2 -/* E7C494 80241674 00754021 */ addu $t0, $v1, $s5 -/* E7C498 80241678 00701821 */ addu $v1, $v1, $s0 -/* E7C49C 8024167C 8C650000 */ lw $a1, 0x0($v1) -/* E7C4A0 80241680 8D030000 */ lw $v1, 0x0($t0) -/* E7C4A4 80241684 3C170008 */ lui $s7, (0x80025 >> 16) -/* E7C4A8 80241688 AFB40010 */ sw $s4, 0x10($sp) -/* E7C4AC 8024168C AFA00014 */ sw $zero, 0x14($sp) -/* E7C4B0 80241690 00A22823 */ subu $a1, $a1, $v0 -/* E7C4B4 80241694 000517C2 */ srl $v0, $a1, 31 -/* E7C4B8 80241698 00A22821 */ addu $a1, $a1, $v0 -/* E7C4BC 8024169C 00052843 */ sra $a1, $a1, 1 -/* E7C4C0 802416A0 0C049403 */ jal draw_msg -/* E7C4C4 802416A4 00652821 */ addu $a1, $v1, $a1 -/* E7C4C8 802416A8 2406004E */ addiu $a2, $zero, 0x4E -/* E7C4CC 802416AC 24070001 */ addiu $a3, $zero, 0x1 -/* E7C4D0 802416B0 3C128011 */ lui $s2, %hi(gPlayerData) -/* E7C4D4 802416B4 2652DD90 */ addiu $s2, $s2, %lo(gPlayerData) -/* E7C4D8 802416B8 24110003 */ addiu $s1, $zero, 0x3 -/* E7C4DC 802416BC 8E620000 */ lw $v0, 0x0($s3) -/* E7C4E0 802416C0 96440336 */ lhu $a0, 0x336($s2) -/* E7C4E4 802416C4 00021080 */ sll $v0, $v0, 2 -/* E7C4E8 802416C8 00551021 */ addu $v0, $v0, $s5 -/* E7C4EC 802416CC 8C450000 */ lw $a1, 0x0($v0) -/* E7C4F0 802416D0 27D000AE */ addiu $s0, $fp, 0xAE -/* E7C4F4 802416D4 AFA00010 */ sw $zero, 0x10($sp) -/* E7C4F8 802416D8 AFB60014 */ sw $s6, 0x14($sp) -/* E7C4FC 802416DC AFB10018 */ sw $s1, 0x18($sp) -/* E7C500 802416E0 0C04986F */ jal draw_number -/* E7C504 802416E4 00B02821 */ addu $a1, $a1, $s0 -/* E7C508 802416E8 2406005D */ addiu $a2, $zero, 0x5D -/* E7C50C 802416EC 8E620000 */ lw $v0, 0x0($s3) -/* E7C510 802416F0 8E440338 */ lw $a0, 0x338($s2) -/* E7C514 802416F4 00021080 */ sll $v0, $v0, 2 -/* E7C518 802416F8 00551021 */ addu $v0, $v0, $s5 -/* E7C51C 802416FC 8C450000 */ lw $a1, 0x0($v0) -/* E7C520 80241700 24070001 */ addiu $a3, $zero, 0x1 -/* E7C524 80241704 AFA00010 */ sw $zero, 0x10($sp) -/* E7C528 80241708 AFB60014 */ sw $s6, 0x14($sp) -/* E7C52C 8024170C AFB10018 */ sw $s1, 0x18($sp) -/* E7C530 80241710 0C04986F */ jal draw_number -/* E7C534 80241714 00B02821 */ addu $a1, $a1, $s0 -/* E7C538 80241718 2406006C */ addiu $a2, $zero, 0x6C -/* E7C53C 8024171C 8E620000 */ lw $v0, 0x0($s3) -/* E7C540 80241720 9644033C */ lhu $a0, 0x33C($s2) -/* E7C544 80241724 00021080 */ sll $v0, $v0, 2 -/* E7C548 80241728 00551021 */ addu $v0, $v0, $s5 -/* E7C54C 8024172C 8C450000 */ lw $a1, 0x0($v0) -/* E7C550 80241730 24070001 */ addiu $a3, $zero, 0x1 -/* E7C554 80241734 AFA00010 */ sw $zero, 0x10($sp) -/* E7C558 80241738 AFB60014 */ sw $s6, 0x14($sp) -/* E7C55C 8024173C AFB10018 */ sw $s1, 0x18($sp) -/* E7C560 80241740 0C04986F */ jal draw_number -/* E7C564 80241744 00B02821 */ addu $a1, $a1, $s0 -/* E7C568 80241748 96420336 */ lhu $v0, 0x336($s2) -/* E7C56C 8024174C 14540003 */ bne $v0, $s4, .LPAL_8024175C -/* E7C570 80241750 36F70025 */ ori $s7, $s7, (0x80025 & 0xFFFF) -/* E7C574 80241754 3C170008 */ lui $s7, (0x80024 >> 16) -/* E7C578 80241758 36F70024 */ ori $s7, $s7, (0x80024 & 0xFFFF) -.LPAL_8024175C: -/* E7C57C 8024175C 3C110008 */ lui $s1, (0x80022 >> 16) -/* E7C580 80241760 8E420338 */ lw $v0, 0x338($s2) -/* E7C584 80241764 14540003 */ bne $v0, $s4, .LPAL_80241774 -/* E7C588 80241768 36310022 */ ori $s1, $s1, (0x80022 & 0xFFFF) -/* E7C58C 8024176C 3C110008 */ lui $s1, (0x80021 >> 16) -/* E7C590 80241770 36310021 */ ori $s1, $s1, (0x80021 & 0xFFFF) -.LPAL_80241774: -/* E7C594 80241774 3C130008 */ lui $s3, (0x80022 >> 16) -/* E7C598 80241778 9642033C */ lhu $v0, 0x33C($s2) -.LPAL_8024177C: -/* E7C59C 8024177C 14540003 */ bne $v0, $s4, .LPAL_8024178C -/* E7C5A0 80241780 36730022 */ ori $s3, $s3, (0x80022 & 0xFFFF) -/* E7C5A4 80241784 3C130008 */ lui $s3, (0x80021 >> 16) -/* E7C5A8 80241788 36730021 */ ori $s3, $s3, (0x80021 & 0xFFFF) -.LPAL_8024178C: -/* E7C5AC 8024178C 3C040008 */ lui $a0, (0x8001E >> 16) -/* E7C5B0 80241790 3484001E */ ori $a0, $a0, (0x8001E & 0xFFFF) -/* E7C5B4 80241794 3C128015 */ lui $s2, %hi(gCurrentLanguage) -/* E7C5B8 80241798 2652AE4C */ addiu $s2, $s2, %lo(gCurrentLanguage) -/* E7C5BC 8024179C 2406004E */ addiu $a2, $zero, 0x4E -/* E7C5C0 802417A0 8E420000 */ lw $v0, 0x0($s2) -/* E7C5C4 802417A4 02C0382D */ daddu $a3, $s6, $zero -/* E7C5C8 802417A8 00021080 */ sll $v0, $v0, 2 -/* E7C5CC 802417AC 3C058024 */ lui $a1, %hi(mgm_00_pal_unkdata_2) -/* E7C5D0 802417B0 00A22821 */ addu $a1, $a1, $v0 -/* E7C5D4 802417B4 8CA54020 */ lw $a1, %lo(mgm_00_pal_unkdata_2)($a1) -/* E7C5D8 802417B8 24140001 */ addiu $s4, $zero, 0x1 -/* E7C5DC 802417BC AFA00010 */ sw $zero, 0x10($sp) -/* E7C5E0 802417C0 AFB40014 */ sw $s4, 0x14($sp) -/* E7C5E4 802417C4 0C049403 */ jal draw_msg -/* E7C5E8 802417C8 24A5000D */ addiu $a1, $a1, 0xD -/* E7C5EC 802417CC 3C108024 */ lui $s0, %hi(mgm_00_pal_unkdata_2) -/* E7C5F0 802417D0 26104020 */ addiu $s0, $s0, %lo(mgm_00_pal_unkdata_2) -/* E7C5F4 802417D4 8E420000 */ lw $v0, 0x0($s2) -/* E7C5F8 802417D8 24150002 */ addiu $s5, $zero, 0x2 -/* E7C5FC 802417DC 1055000B */ beq $v0, $s5, .LPAL_8024180C -/* E7C600 802417E0 02E0202D */ daddu $a0, $s7, $zero -/* E7C604 802417E4 2406004E */ addiu $a2, $zero, 0x4E -/* E7C608 802417E8 02A21004 */ sllv $v0, $v0, $s5 -/* E7C60C 802417EC 00501021 */ addu $v0, $v0, $s0 -/* E7C610 802417F0 02C0382D */ daddu $a3, $s6, $zero -/* E7C614 802417F4 8C420000 */ lw $v0, 0x0($v0) -/* E7C618 802417F8 27C500B2 */ addiu $a1, $fp, 0xB2 -/* E7C61C 802417FC AFA00010 */ sw $zero, 0x10($sp) -/* E7C620 80241800 AFB40014 */ sw $s4, 0x14($sp) -/* E7C624 80241804 0C049403 */ jal draw_msg -/* E7C628 80241808 00452821 */ addu $a1, $v0, $a1 -.LPAL_8024180C: -/* E7C62C 8024180C 3C040008 */ lui $a0, (0x8001F >> 16) -/* E7C630 80241810 3484001F */ ori $a0, $a0, (0x8001F & 0xFFFF) -/* E7C634 80241814 8E420000 */ lw $v0, 0x0($s2) -/* E7C638 80241818 2406005D */ addiu $a2, $zero, 0x5D -/* E7C63C 8024181C 00021080 */ sll $v0, $v0, 2 -/* E7C640 80241820 00501021 */ addu $v0, $v0, $s0 -/* E7C644 80241824 8C450000 */ lw $a1, 0x0($v0) -/* E7C648 80241828 02C0382D */ daddu $a3, $s6, $zero -/* E7C64C 8024182C AFA00010 */ sw $zero, 0x10($sp) -/* E7C650 80241830 AFB40014 */ sw $s4, 0x14($sp) -/* E7C654 80241834 0C049403 */ jal draw_msg -/* E7C658 80241838 24A5000D */ addiu $a1, $a1, 0xD -/* E7C65C 8024183C 8E420000 */ lw $v0, 0x0($s2) -/* E7C660 80241840 1055000B */ beq $v0, $s5, .LPAL_80241870 -/* E7C664 80241844 0220202D */ daddu $a0, $s1, $zero -/* E7C668 80241848 2406005D */ addiu $a2, $zero, 0x5D -/* E7C66C 8024184C 00021080 */ sll $v0, $v0, 2 -/* E7C670 80241850 00501021 */ addu $v0, $v0, $s0 -/* E7C674 80241854 02C0382D */ daddu $a3, $s6, $zero -/* E7C678 80241858 8C420000 */ lw $v0, 0x0($v0) -/* E7C67C 8024185C 27C500B2 */ addiu $a1, $fp, 0xB2 -/* E7C680 80241860 AFA00010 */ sw $zero, 0x10($sp) -/* E7C684 80241864 AFB40014 */ sw $s4, 0x14($sp) -/* E7C688 80241868 0C049403 */ jal draw_msg -/* E7C68C 8024186C 00452821 */ addu $a1, $v0, $a1 -.LPAL_80241870: -/* E7C690 80241870 3C040008 */ lui $a0, (0x80020 >> 16) -/* E7C694 80241874 34840020 */ ori $a0, $a0, (0x80020 & 0xFFFF) -/* E7C698 80241878 8E420000 */ lw $v0, 0x0($s2) -/* E7C69C 8024187C 2406006C */ addiu $a2, $zero, 0x6C -/* E7C6A0 80241880 00021080 */ sll $v0, $v0, 2 -/* E7C6A4 80241884 00501021 */ addu $v0, $v0, $s0 -/* E7C6A8 80241888 8C450000 */ lw $a1, 0x0($v0) -/* E7C6AC 8024188C 02C0382D */ daddu $a3, $s6, $zero -/* E7C6B0 80241890 AFA00010 */ sw $zero, 0x10($sp) -/* E7C6B4 80241894 AFB40014 */ sw $s4, 0x14($sp) -/* E7C6B8 80241898 0C049403 */ jal draw_msg -/* E7C6BC 8024189C 24A5000D */ addiu $a1, $a1, 0xD -/* E7C6C0 802418A0 8E420000 */ lw $v0, 0x0($s2) -/* E7C6C4 802418A4 1055000B */ beq $v0, $s5, .LPAL_802418D4 -/* E7C6C8 802418A8 0260202D */ daddu $a0, $s3, $zero -/* E7C6CC 802418AC 2406006C */ addiu $a2, $zero, 0x6C -/* E7C6D0 802418B0 00021080 */ sll $v0, $v0, 2 -/* E7C6D4 802418B4 00501021 */ addu $v0, $v0, $s0 -/* E7C6D8 802418B8 02C0382D */ daddu $a3, $s6, $zero -/* E7C6DC 802418BC 8C420000 */ lw $v0, 0x0($v0) -/* E7C6E0 802418C0 27C500B2 */ addiu $a1, $fp, 0xB2 -/* E7C6E4 802418C4 AFA00010 */ sw $zero, 0x10($sp) -/* E7C6E8 802418C8 AFB40014 */ sw $s4, 0x14($sp) -/* E7C6EC 802418CC 0C049403 */ jal draw_msg -/* E7C6F0 802418D0 00452821 */ addu $a1, $v0, $a1 -.LPAL_802418D4: -/* E7C6F4 802418D4 8FBF004C */ lw $ra, 0x4C($sp) -/* E7C6F8 802418D8 8FBE0048 */ lw $fp, 0x48($sp) -/* E7C6FC 802418DC 8FB70044 */ lw $s7, 0x44($sp) -/* E7C700 802418E0 8FB60040 */ lw $s6, 0x40($sp) -/* E7C704 802418E4 8FB5003C */ lw $s5, 0x3C($sp) -/* E7C708 802418E8 8FB40038 */ lw $s4, 0x38($sp) -/* E7C70C 802418EC 8FB30034 */ lw $s3, 0x34($sp) -/* E7C710 802418F0 8FB20030 */ lw $s2, 0x30($sp) -/* E7C714 802418F4 8FB1002C */ lw $s1, 0x2C($sp) -/* E7C718 802418F8 8FB00028 */ lw $s0, 0x28($sp) -/* E7C71C 802418FC 03E00008 */ jr $ra -/* E7C720 80241900 27BD0050 */ addiu $sp, $sp, 0x50 diff --git a/ver/pal/asm/nonmatchings/world/area_mgm/mgm_02/mgm_02_2_npc/mgm_02_RunMinigame.s b/ver/pal/asm/nonmatchings/world/area_mgm/mgm_02/mgm_02_2_npc/mgm_02_RunMinigame.s deleted file mode 100644 index 8c35eff86c0..00000000000 --- a/ver/pal/asm/nonmatchings/world/area_mgm/mgm_02/mgm_02_2_npc/mgm_02_RunMinigame.s +++ /dev/null @@ -1,1302 +0,0 @@ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ - -.section .rodata -.align 3 -glabel jtbl_mgm_02_802485C8 -/* E8ADB8 802485C8 80240CC8 */ .word .Lmgm_02_80240CC8 -/* E8ADBC 802485CC 80240CF8 */ .word .Lmgm_02_80240CF8 -/* E8ADC0 802485D0 80240DB4 */ .word .Lmgm_02_80240DB4 -/* E8ADC4 802485D4 80240E8C */ .word .Lmgm_02_80240E8C -/* E8ADC8 802485D8 80241074 */ .word .Lmgm_02_80241074 -/* E8ADCC 802485DC 80241214 */ .word .Lmgm_02_80241214 -/* E8ADD0 802485E0 802412F0 */ .word .Lmgm_02_802412F0 -/* E8ADD4 802485E4 80241B64 */ .word .Lmgm_02_80241B64 -/* E8ADD8 802485E8 80241B64 */ .word .Lmgm_02_80241B64 -/* E8ADDC 802485EC 80241B64 */ .word .Lmgm_02_80241B64 -/* E8ADE0 802485F0 80241B64 */ .word .Lmgm_02_80241B64 -/* E8ADE4 802485F4 80241B64 */ .word .Lmgm_02_80241B64 -/* E8ADE8 802485F8 80241B64 */ .word .Lmgm_02_80241B64 -/* E8ADEC 802485FC 80241B64 */ .word .Lmgm_02_80241B64 -/* E8ADF0 80248600 80241B64 */ .word .Lmgm_02_80241B64 -/* E8ADF4 80248604 80241B64 */ .word .Lmgm_02_80241B64 -/* E8ADF8 80248608 80241B64 */ .word .Lmgm_02_80241B64 -/* E8ADFC 8024860C 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE00 80248610 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE04 80248614 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE08 80248618 80241380 */ .word .Lmgm_02_80241380 -/* E8AE0C 8024861C 802413B0 */ .word .Lmgm_02_802413B0 -/* E8AE10 80248620 80241460 */ .word .Lmgm_02_80241460 -/* E8AE14 80248624 80241558 */ .word .Lmgm_02_80241558 -/* E8AE18 80248628 80241678 */ .word .Lmgm_02_80241678 -/* E8AE1C 8024862C 802416F0 */ .word .Lmgm_02_802416F0 -/* E8AE20 80248630 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE24 80248634 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE28 80248638 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE2C 8024863C 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE30 80248640 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE34 80248644 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE38 80248648 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE3C 8024864C 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE40 80248650 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE44 80248654 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE48 80248658 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE4C 8024865C 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE50 80248660 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE54 80248664 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE58 80248668 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE5C 8024866C 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE60 80248670 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE64 80248674 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE68 80248678 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE6C 8024867C 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE70 80248680 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE74 80248684 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE78 80248688 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE7C 8024868C 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE80 80248690 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE84 80248694 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE88 80248698 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE8C 8024869C 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE90 802486A0 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE94 802486A4 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE98 802486A8 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AE9C 802486AC 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AEA0 802486B0 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AEA4 802486B4 80241B64 */ .word .Lmgm_02_80241B64 -/* E8AEA8 802486B8 80241774 */ .word .Lmgm_02_80241774 -/* E8AEAC 802486BC 802417D8 */ .word .Lmgm_02_802417D8 -/* E8AEB0 802486C0 802418F0 */ .word .Lmgm_02_802418F0 -/* E8AEB4 802486C4 80241A1C */ .word .Lmgm_02_80241A1C -/* E8AEB8 802486C8 80241A5C */ .word .Lmgm_02_80241A5C -/* E8AEBC 802486CC 80241B64 */ .word .Lmgm_02_80241B64 - - -.section .text -/* Generated by spimdisasm 1.11.1 */ - -glabel mgm_02_RunMinigame -/* E833CC 80240BDC 27BDFF18 */ addiu $sp, $sp, -0xE8 -/* E833D0 80240BE0 0000202D */ daddu $a0, $zero, $zero -/* E833D4 80240BE4 AFBF00B4 */ sw $ra, 0xB4($sp) -/* E833D8 80240BE8 AFBE00B0 */ sw $fp, 0xB0($sp) -/* E833DC 80240BEC AFB700AC */ sw $s7, 0xAC($sp) -/* E833E0 80240BF0 AFB600A8 */ sw $s6, 0xA8($sp) -/* E833E4 80240BF4 AFB500A4 */ sw $s5, 0xA4($sp) -/* E833E8 80240BF8 AFB400A0 */ sw $s4, 0xA0($sp) -/* E833EC 80240BFC AFB3009C */ sw $s3, 0x9C($sp) -/* E833F0 80240C00 AFB20098 */ sw $s2, 0x98($sp) -/* E833F4 80240C04 AFB10094 */ sw $s1, 0x94($sp) -/* E833F8 80240C08 AFB00090 */ sw $s0, 0x90($sp) -/* E833FC 80240C0C F7BE00E0 */ sdc1 $f30, 0xE0($sp) -/* E83400 80240C10 F7BC00D8 */ sdc1 $f28, 0xD8($sp) -/* E83404 80240C14 F7BA00D0 */ sdc1 $f26, 0xD0($sp) -/* E83408 80240C18 F7B800C8 */ sdc1 $f24, 0xC8($sp) -/* E8340C 80240C1C F7B600C0 */ sdc1 $f22, 0xC0($sp) -/* E83410 80240C20 F7B400B8 */ sdc1 $f20, 0xB8($sp) -/* E83414 80240C24 AFA00084 */ sw $zero, 0x84($sp) -/* E83418 80240C28 0C00FC76 */ jal get_enemy -/* E8341C 80240C2C AFA00088 */ sw $zero, 0x88($sp) -/* E83420 80240C30 27BE0074 */ addiu $fp, $sp, 0x74 -/* E83424 80240C34 27B60078 */ addiu $s6, $sp, 0x78 -/* E83428 80240C38 27B7007C */ addiu $s7, $sp, 0x7C -/* E8342C 80240C3C 3C01C47A */ lui $at, (0xC47A0000 >> 16) -/* E83430 80240C40 4481D000 */ mtc1 $at, $f26 -/* E83434 80240C44 3C014000 */ lui $at, (0x40000000 >> 16) -/* E83438 80240C48 4481C800 */ mtc1 $at, $f25 -/* E8343C 80240C4C 4480C000 */ mtc1 $zero, $f24 -/* E83440 80240C50 4480E000 */ mtc1 $zero, $f28 -/* E83444 80240C54 3C014000 */ lui $at, (0x40000000 >> 16) -/* E83448 80240C58 4481F000 */ mtc1 $at, $f30 -/* E8344C 80240C5C 3C014120 */ lui $at, (0x41200000 >> 16) -/* E83450 80240C60 4481B000 */ mtc1 $at, $f22 -/* E83454 80240C64 8C55006C */ lw $s5, 0x6C($v0) -/* E83458 80240C68 3C014024 */ lui $at, (0x40240000 >> 16) -/* E8345C 80240C6C 4481A800 */ mtc1 $at, $f21 -/* E83460 80240C70 4480A000 */ mtc1 $zero, $f20 -/* E83464 80240C74 02A0A02D */ daddu $s4, $s5, $zero -.Lmgm_02_80240C78: -/* E83468 80240C78 8E840040 */ lw $a0, 0x40($s4) -/* E8346C 80240C7C 2402FFFF */ addiu $v0, $zero, -0x1 -/* E83470 80240C80 108203B2 */ beq $a0, $v0, .Lmgm_02_80241B4C -/* E83474 80240C84 24020032 */ addiu $v0, $zero, 0x32 -/* E83478 80240C88 0C00FC76 */ jal get_enemy -/* E8347C 80240C8C 00000000 */ nop -/* E83480 80240C90 84440008 */ lh $a0, 0x8($v0) -/* E83484 80240C94 0C00EBF7 */ jal get_npc_unsafe -/* E83488 80240C98 0040802D */ daddu $s0, $v0, $zero -/* E8348C 80240C9C 8E83002C */ lw $v1, 0x2C($s4) -/* E83490 80240CA0 0040982D */ daddu $s3, $v0, $zero -/* E83494 80240CA4 2463FFF6 */ addiu $v1, $v1, -0xA -/* E83498 80240CA8 2C620042 */ sltiu $v0, $v1, 0x42 -/* E8349C 80240CAC 104003AD */ beqz $v0, .Lmgm_02_80241B64 -/* E834A0 80240CB0 00031080 */ sll $v0, $v1, 2 -/* E834A4 80240CB4 3C018025 */ lui $at, %hi(jtbl_mgm_02_802485C8) -/* E834A8 80240CB8 00220821 */ addu $at, $at, $v0 -/* E834AC 80240CBC 8C2285C8 */ lw $v0, %lo(jtbl_mgm_02_802485C8)($at) -/* E834B0 80240CC0 00400008 */ jr $v0 -/* E834B4 80240CC4 00000000 */ nop -.Lmgm_02_80240CC8: -/* E834B8 80240CC8 240400D2 */ addiu $a0, $zero, 0xD2 -/* E834BC 80240CCC 2402000B */ addiu $v0, $zero, 0xB -/* E834C0 80240CD0 0C00A65F */ jal rand_int -/* E834C4 80240CD4 AE82002C */ sw $v0, 0x2C($s4) -/* E834C8 80240CD8 0260202D */ daddu $a0, $s3, $zero -/* E834CC 80240CDC AE820030 */ sw $v0, 0x30($s4) -/* E834D0 80240CE0 8E620000 */ lw $v0, 0x0($s3) -/* E834D4 80240CE4 2403FFFD */ addiu $v1, $zero, -0x3 -/* E834D8 80240CE8 E67A003C */ swc1 $f26, 0x3C($s3) -/* E834DC 80240CEC 00431024 */ and $v0, $v0, $v1 -/* E834E0 80240CF0 0C00EC3B */ jal disable_npc_shadow -/* E834E4 80240CF4 AE620000 */ sw $v0, 0x0($s3) -.Lmgm_02_80240CF8: -/* E834E8 80240CF8 8E820030 */ lw $v0, 0x30($s4) -/* E834EC 80240CFC 2442FFFF */ addiu $v0, $v0, -0x1 -/* E834F0 80240D00 1C400398 */ bgtz $v0, .Lmgm_02_80241B64 -/* E834F4 80240D04 AE820030 */ sw $v0, 0x30($s4) -/* E834F8 80240D08 3C02002B */ lui $v0, (0x2B0002 >> 16) -/* E834FC 80240D0C 34420002 */ ori $v0, $v0, (0x2B0002 & 0xFFFF) -/* E83500 80240D10 AE620028 */ sw $v0, 0x28($s3) -/* E83504 80240D14 2402000C */ addiu $v0, $zero, 0xC -/* E83508 80240D18 AE82002C */ sw $v0, 0x2C($s4) -/* E8350C 80240D1C C6600040 */ lwc1 $f0, 0x40($s3) -/* E83510 80240D20 E7A00010 */ swc1 $f0, 0x10($sp) -/* E83514 80240D24 8E04008C */ lw $a0, 0x8C($s0) -/* E83518 80240D28 8E660038 */ lw $a2, 0x38($s3) -/* E8351C 80240D2C 8E67003C */ lw $a3, 0x3C($s3) -/* E83520 80240D30 0C052243 */ jal sfx_play_sound_at_position -/* E83524 80240D34 3C050010 */ lui $a1, (0x100000 >> 16) -/* E83528 80240D38 27A50068 */ addiu $a1, $sp, 0x68 -/* E8352C 80240D3C 27A6006C */ addiu $a2, $sp, 0x6C -/* E83530 80240D40 9684003A */ lhu $a0, 0x3A($s4) -/* E83534 80240D44 27A70070 */ addiu $a3, $sp, 0x70 -/* E83538 80240D48 AFBE0010 */ sw $fp, 0x10($sp) -/* E8353C 80240D4C AFB60014 */ sw $s6, 0x14($sp) -/* E83540 80240D50 0C0466FB */ jal get_model_center_and_size -/* E83544 80240D54 AFB70018 */ sw $s7, 0x18($sp) -/* E83548 80240D58 3C014128 */ lui $at, (0x41280000 >> 16) -/* E8354C 80240D5C 44810000 */ mtc1 $at, $f0 -/* E83550 80240D60 C7A40068 */ lwc1 $f4, 0x68($sp) -/* E83554 80240D64 C7A2006C */ lwc1 $f2, 0x6C($sp) -/* E83558 80240D68 E660001C */ swc1 $f0, 0x1C($s3) -/* E8355C 80240D6C 3C014029 */ lui $at, (0x40290000 >> 16) -/* E83560 80240D70 44810800 */ mtc1 $at, $f1 -/* E83564 80240D74 44800000 */ mtc1 $zero, $f0 -/* E83568 80240D78 460010A1 */ cvt.d.s $f2, $f2 -/* E8356C 80240D7C E6640038 */ swc1 $f4, 0x38($s3) -/* E83570 80240D80 3C013FC0 */ lui $at, (0x3FC00000 >> 16) -/* E83574 80240D84 44812000 */ mtc1 $at, $f4 -/* E83578 80240D88 46201081 */ sub.d $f2, $f2, $f0 -/* E8357C 80240D8C E6640014 */ swc1 $f4, 0x14($s3) -/* E83580 80240D90 C7A00070 */ lwc1 $f0, 0x70($sp) -/* E83584 80240D94 46000021 */ cvt.d.s $f0, $f0 -/* E83588 80240D98 46380000 */ add.d $f0, $f0, $f24 -/* E8358C 80240D9C 462010A0 */ cvt.s.d $f2, $f2 -/* E83590 80240DA0 E662003C */ swc1 $f2, 0x3C($s3) -/* E83594 80240DA4 E6620064 */ swc1 $f2, 0x64($s3) -/* E83598 80240DA8 46200020 */ cvt.s.d $f0, $f0 -/* E8359C 80240DAC 080906D8 */ j .Lmgm_02_80241B60 -/* E835A0 80240DB0 E6600040 */ swc1 $f0, 0x40($s3) -.Lmgm_02_80240DB4: -/* E835A4 80240DB4 8E820030 */ lw $v0, 0x30($s4) -/* E835A8 80240DB8 24420001 */ addiu $v0, $v0, 0x1 -/* E835AC 80240DBC AE820030 */ sw $v0, 0x30($s4) -/* E835B0 80240DC0 C660001C */ lwc1 $f0, 0x1C($s3) -/* E835B4 80240DC4 C664003C */ lwc1 $f4, 0x3C($s3) -/* E835B8 80240DC8 46000186 */ mov.s $f6, $f0 -/* E835BC 80240DCC 46002100 */ add.s $f4, $f4, $f0 -/* E835C0 80240DD0 C6600014 */ lwc1 $f0, 0x14($s3) -/* E835C4 80240DD4 3C0141A0 */ lui $at, (0x41A00000 >> 16) -/* E835C8 80240DD8 44811000 */ mtc1 $at, $f2 -/* E835CC 80240DDC 46003181 */ sub.s $f6, $f6, $f0 -/* E835D0 80240DE0 C6600064 */ lwc1 $f0, 0x64($s3) -/* E835D4 80240DE4 46020000 */ add.s $f0, $f0, $f2 -/* E835D8 80240DE8 E664003C */ swc1 $f4, 0x3C($s3) -/* E835DC 80240DEC 46002086 */ mov.s $f2, $f4 -/* E835E0 80240DF0 4602003C */ c.lt.s $f0, $f2 -/* E835E4 80240DF4 00000000 */ nop -/* E835E8 80240DF8 45000005 */ bc1f .Lmgm_02_80240E10 -/* E835EC 80240DFC E666001C */ swc1 $f6, 0x1C($s3) -/* E835F0 80240E00 0C00EC24 */ jal enable_npc_shadow -/* E835F4 80240E04 0260202D */ daddu $a0, $s3, $zero -/* E835F8 80240E08 08090386 */ j .Lmgm_02_80240E18 -/* E835FC 80240E0C 00000000 */ nop -.Lmgm_02_80240E10: -/* E83600 80240E10 0C00EC3B */ jal disable_npc_shadow -/* E83604 80240E14 0260202D */ daddu $a0, $s3, $zero -.Lmgm_02_80240E18: -/* E83608 80240E18 C660001C */ lwc1 $f0, 0x1C($s3) -/* E8360C 80240E1C 44801000 */ mtc1 $zero, $f2 -/* E83610 80240E20 44801800 */ mtc1 $zero, $f3 -/* E83614 80240E24 46000021 */ cvt.d.s $f0, $f0 -/* E83618 80240E28 4622003C */ c.lt.d $f0, $f2 -/* E8361C 80240E2C 00000000 */ nop -/* E83620 80240E30 4502034D */ bc1fl .Lmgm_02_80241B68 -/* E83624 80240E34 2694001C */ addiu $s4, $s4, 0x1C -/* E83628 80240E38 C662003C */ lwc1 $f2, 0x3C($s3) -/* E8362C 80240E3C C6600064 */ lwc1 $f0, 0x64($s3) -/* E83630 80240E40 4600103E */ c.le.s $f2, $f0 -/* E83634 80240E44 00000000 */ nop -/* E83638 80240E48 45000346 */ bc1f .Lmgm_02_80241B64 -/* E8363C 80240E4C 2404014A */ addiu $a0, $zero, 0x14A -/* E83640 80240E50 2402000B */ addiu $v0, $zero, 0xB -/* E83644 80240E54 0C00A65F */ jal rand_int -/* E83648 80240E58 AE82002C */ sw $v0, 0x2C($s4) -/* E8364C 80240E5C 24040064 */ addiu $a0, $zero, 0x64 -/* E83650 80240E60 2442005A */ addiu $v0, $v0, 0x5A -/* E83654 80240E64 AE820030 */ sw $v0, 0x30($s4) -/* E83658 80240E68 0C00A65F */ jal rand_int -/* E8365C 80240E6C E67A003C */ swc1 $f26, 0x3C($s3) -/* E83660 80240E70 28420032 */ slti $v0, $v0, 0x32 -/* E83664 80240E74 104001B0 */ beqz $v0, .Lmgm_02_80241538 -/* E83668 80240E78 00000000 */ nop -/* E8366C 80240E7C 3C014387 */ lui $at, (0x43870000 >> 16) -/* E83670 80240E80 44810000 */ mtc1 $at, $f0 -/* E83674 80240E84 08090552 */ j .Lmgm_02_80241548 -/* E83678 80240E88 E660000C */ swc1 $f0, 0xC($s3) -.Lmgm_02_80240E8C: -/* E8367C 80240E8C 8EA4000C */ lw $a0, 0xC($s5) -/* E83680 80240E90 3C058010 */ lui $a1, %hi(HES_AButton) -/* E83684 80240E94 24A576D0 */ addiu $a1, $a1, %lo(HES_AButton) -/* E83688 80240E98 0C050CEB */ jal hud_element_set_script -/* E8368C 80240E9C 00000000 */ nop -/* E83690 80240EA0 8EA4000C */ lw $a0, 0xC($s5) -/* E83694 80240EA4 0C050E98 */ jal hud_element_set_alpha -/* E83698 80240EA8 240500A0 */ addiu $a1, $zero, 0xA0 -/* E8369C 80240EAC 8EA40010 */ lw $a0, 0x10($s5) -/* E836A0 80240EB0 0C050E98 */ jal hud_element_set_alpha -/* E836A4 80240EB4 240500A0 */ addiu $a1, $zero, 0xA0 -/* E836A8 80240EB8 8EA20028 */ lw $v0, 0x28($s5) -/* E836AC 80240EBC 0260202D */ daddu $a0, $s3, $zero -/* E836B0 80240EC0 AEA00024 */ sw $zero, 0x24($s5) -/* E836B4 80240EC4 34420004 */ ori $v0, $v0, 0x4 -/* E836B8 80240EC8 0C00EC24 */ jal enable_npc_shadow -/* E836BC 80240ECC AEA20028 */ sw $v0, 0x28($s5) -/* E836C0 80240ED0 8EA20028 */ lw $v0, 0x28($s5) -/* E836C4 80240ED4 34420003 */ ori $v0, $v0, 0x3 -/* E836C8 80240ED8 AEA20028 */ sw $v0, 0x28($s5) -/* E836CC 80240EDC 24020008 */ addiu $v0, $zero, 0x8 -/* E836D0 80240EE0 A662008E */ sh $v0, 0x8E($s3) -/* E836D4 80240EE4 0C052219 */ jal sfx_play_sound -/* E836D8 80240EE8 8E04008C */ lw $a0, 0x8C($s0) -/* E836DC 80240EEC 3C070001 */ lui $a3, (0x10001 >> 16) -/* E836E0 80240EF0 34E70001 */ ori $a3, $a3, (0x10001 & 0xFFFF) -/* E836E4 80240EF4 3C04002B */ lui $a0, (0x2B0003 >> 16) -/* E836E8 80240EF8 34840003 */ ori $a0, $a0, (0x2B0003 & 0xFFFF) -/* E836EC 80240EFC 27A50068 */ addiu $a1, $sp, 0x68 -/* E836F0 80240F00 27A6006C */ addiu $a2, $sp, 0x6C -/* E836F4 80240F04 3C03800F */ lui $v1, %hi(gPlayerStatusPtr) -/* E836F8 80240F08 8C633F60 */ lw $v1, %lo(gPlayerStatusPtr)($v1) -/* E836FC 80240F0C 2402000E */ addiu $v0, $zero, 0xE -/* E83700 80240F10 AE82002C */ sw $v0, 0x2C($s4) -/* E83704 80240F14 AC6700B8 */ sw $a3, 0xB8($v1) -/* E83708 80240F18 AE640028 */ sw $a0, 0x28($s3) -/* E8370C 80240F1C 9684003A */ lhu $a0, 0x3A($s4) -/* E83710 80240F20 27A70070 */ addiu $a3, $sp, 0x70 -/* E83714 80240F24 AFBE0010 */ sw $fp, 0x10($sp) -/* E83718 80240F28 AFB60014 */ sw $s6, 0x14($sp) -/* E8371C 80240F2C 0C0466FB */ jal get_model_center_and_size -/* E83720 80240F30 AFB70018 */ sw $s7, 0x18($sp) -/* E83724 80240F34 0000202D */ daddu $a0, $zero, $zero -/* E83728 80240F38 0260282D */ daddu $a1, $s3, $zero -/* E8372C 80240F3C 4406E000 */ mfc1 $a2, $f28 -/* E83730 80240F40 C7A20068 */ lwc1 $f2, 0x68($sp) -/* E83734 80240F44 C7A00070 */ lwc1 $f0, 0x70($sp) -/* E83738 80240F48 3C02800F */ lui $v0, %hi(gPlayerStatusPtr) -/* E8373C 80240F4C 8C423F60 */ lw $v0, %lo(gPlayerStatusPtr)($v0) -/* E83740 80240F50 3C014128 */ lui $at, (0x41280000 >> 16) -/* E83744 80240F54 44812000 */ mtc1 $at, $f4 -/* E83748 80240F58 46000021 */ cvt.d.s $f0, $f0 -/* E8374C 80240F5C E6620038 */ swc1 $f2, 0x38($s3) -/* E83750 80240F60 C7A2006C */ lwc1 $f2, 0x6C($sp) -/* E83754 80240F64 46380000 */ add.d $f0, $f0, $f24 -/* E83758 80240F68 E662003C */ swc1 $f2, 0x3C($s3) -/* E8375C 80240F6C 3C01420C */ lui $at, (0x420C0000 >> 16) -/* E83760 80240F70 44811000 */ mtc1 $at, $f2 -/* E83764 80240F74 46200020 */ cvt.s.d $f0, $f0 -/* E83768 80240F78 E6600040 */ swc1 $f0, 0x40($s3) -/* E8376C 80240F7C C440002C */ lwc1 $f0, 0x2C($v0) -/* E83770 80240F80 3C013FC0 */ lui $at, (0x3FC00000 >> 16) -/* E83774 80240F84 44813000 */ mtc1 $at, $f6 -/* E83778 80240F88 46020000 */ add.s $f0, $f0, $f2 -/* E8377C 80240F8C E664001C */ swc1 $f4, 0x1C($s3) -/* E83780 80240F90 E6660014 */ swc1 $f6, 0x14($s3) -/* E83784 80240F94 E6600064 */ swc1 $f0, 0x64($s3) -/* E83788 80240F98 AE800030 */ sw $zero, 0x30($s4) -/* E8378C 80240F9C 866300A8 */ lh $v1, 0xA8($s3) -/* E83790 80240FA0 3C013F80 */ lui $at, (0x3F800000 >> 16) -/* E83794 80240FA4 44810000 */ mtc1 $at, $f0 -/* E83798 80240FA8 2402000A */ addiu $v0, $zero, 0xA -/* E8379C 80240FAC AFA2001C */ sw $v0, 0x1C($sp) -/* E837A0 80240FB0 44834000 */ mtc1 $v1, $f8 -/* E837A4 80240FB4 00000000 */ nop -/* E837A8 80240FB8 46804220 */ cvt.s.w $f8, $f8 -/* E837AC 80240FBC 44074000 */ mfc1 $a3, $f8 -/* E837B0 80240FC0 27A20080 */ addiu $v0, $sp, 0x80 -/* E837B4 80240FC4 E7BE0014 */ swc1 $f30, 0x14($sp) -/* E837B8 80240FC8 E7BC0018 */ swc1 $f28, 0x18($sp) -/* E837BC 80240FCC AFA20020 */ sw $v0, 0x20($sp) -/* E837C0 80240FD0 0C0B74B0 */ jal fx_emote -/* E837C4 80240FD4 E7A00010 */ swc1 $f0, 0x10($sp) -/* E837C8 80240FD8 C6600038 */ lwc1 $f0, 0x38($s3) -/* E837CC 80240FDC 46160002 */ mul.s $f0, $f0, $f22 -/* E837D0 80240FE0 00000000 */ nop -/* E837D4 80240FE4 4600020D */ trunc.w.s $f8, $f0 -/* E837D8 80240FE8 E6080070 */ swc1 $f8, 0x70($s0) -/* E837DC 80240FEC C660003C */ lwc1 $f0, 0x3C($s3) -/* E837E0 80240FF0 46160002 */ mul.s $f0, $f0, $f22 -/* E837E4 80240FF4 00000000 */ nop -/* E837E8 80240FF8 4600020D */ trunc.w.s $f8, $f0 -/* E837EC 80240FFC E6080074 */ swc1 $f8, 0x74($s0) -/* E837F0 80241000 C6600040 */ lwc1 $f0, 0x40($s3) -/* E837F4 80241004 46160002 */ mul.s $f0, $f0, $f22 -/* E837F8 80241008 00000000 */ nop -/* E837FC 8024100C 3C02800F */ lui $v0, %hi(gPlayerStatusPtr) -/* E83800 80241010 8C423F60 */ lw $v0, %lo(gPlayerStatusPtr)($v0) -/* E83804 80241014 4600020D */ trunc.w.s $f8, $f0 -/* E83808 80241018 E6080078 */ swc1 $f8, 0x78($s0) -/* E8380C 8024101C C4400028 */ lwc1 $f0, 0x28($v0) -/* E83810 80241020 46160002 */ mul.s $f0, $f0, $f22 -/* E83814 80241024 00000000 */ nop -/* E83818 80241028 3C0141E0 */ lui $at, (0x41E00000 >> 16) -/* E8381C 8024102C 44811000 */ mtc1 $at, $f2 -/* E83820 80241030 4600020D */ trunc.w.s $f8, $f0 -/* E83824 80241034 E608007C */ swc1 $f8, 0x7C($s0) -/* E83828 80241038 C440002C */ lwc1 $f0, 0x2C($v0) -/* E8382C 8024103C 46020000 */ add.s $f0, $f0, $f2 -/* E83830 80241040 46160002 */ mul.s $f0, $f0, $f22 -/* E83834 80241044 00000000 */ nop -/* E83838 80241048 4600020D */ trunc.w.s $f8, $f0 -/* E8383C 8024104C E6080080 */ swc1 $f8, 0x80($s0) -/* E83840 80241050 C4400030 */ lwc1 $f0, 0x30($v0) -/* E83844 80241054 461E0000 */ add.s $f0, $f0, $f30 -/* E83848 80241058 46160002 */ mul.s $f0, $f0, $f22 -/* E8384C 8024105C 00000000 */ nop -/* E83850 80241060 AE000088 */ sw $zero, 0x88($s0) -/* E83854 80241064 4600020D */ trunc.w.s $f8, $f0 -/* E83858 80241068 E6080084 */ swc1 $f8, 0x84($s0) -/* E8385C 8024106C 080906DA */ j .Lmgm_02_80241B68 -/* E83860 80241070 2694001C */ addiu $s4, $s4, 0x1C -.Lmgm_02_80241074: -/* E83864 80241074 C6000070 */ lwc1 $f0, 0x70($s0) -/* E83868 80241078 46800020 */ cvt.s.w $f0, $f0 -/* E8386C 8024107C 46000021 */ cvt.d.s $f0, $f0 -/* E83870 80241080 46340003 */ div.d $f0, $f0, $f20 -/* E83874 80241084 46200020 */ cvt.s.d $f0, $f0 -/* E83878 80241088 44050000 */ mfc1 $a1, $f0 -/* E8387C 8024108C C600007C */ lwc1 $f0, 0x7C($s0) -/* E83880 80241090 46800020 */ cvt.s.w $f0, $f0 -/* E83884 80241094 46000021 */ cvt.d.s $f0, $f0 -/* E83888 80241098 46340003 */ div.d $f0, $f0, $f20 -/* E8388C 8024109C 46200020 */ cvt.s.d $f0, $f0 -/* E83890 802410A0 8E020088 */ lw $v0, 0x88($s0) -/* E83894 802410A4 44060000 */ mfc1 $a2, $f0 -/* E83898 802410A8 24420001 */ addiu $v0, $v0, 0x1 -/* E8389C 802410AC AE020088 */ sw $v0, 0x88($s0) -/* E838A0 802410B0 24080008 */ addiu $t0, $zero, 0x8 -/* E838A4 802410B4 AFA80010 */ sw $t0, 0x10($sp) -/* E838A8 802410B8 8E070088 */ lw $a3, 0x88($s0) -/* E838AC 802410BC 0C00A8CD */ jal update_lerp -/* E838B0 802410C0 0000202D */ daddu $a0, $zero, $zero -/* E838B4 802410C4 E6600038 */ swc1 $f0, 0x38($s3) -/* E838B8 802410C8 C6000074 */ lwc1 $f0, 0x74($s0) -/* E838BC 802410CC 46800020 */ cvt.s.w $f0, $f0 -/* E838C0 802410D0 46000021 */ cvt.d.s $f0, $f0 -/* E838C4 802410D4 46340003 */ div.d $f0, $f0, $f20 -/* E838C8 802410D8 46200020 */ cvt.s.d $f0, $f0 -/* E838CC 802410DC 44050000 */ mfc1 $a1, $f0 -/* E838D0 802410E0 C6000080 */ lwc1 $f0, 0x80($s0) -/* E838D4 802410E4 46800020 */ cvt.s.w $f0, $f0 -/* E838D8 802410E8 24080008 */ addiu $t0, $zero, 0x8 -/* E838DC 802410EC 46000021 */ cvt.d.s $f0, $f0 -/* E838E0 802410F0 46340003 */ div.d $f0, $f0, $f20 -/* E838E4 802410F4 46200020 */ cvt.s.d $f0, $f0 -/* E838E8 802410F8 AFA80010 */ sw $t0, 0x10($sp) -/* E838EC 802410FC 8E070088 */ lw $a3, 0x88($s0) -/* E838F0 80241100 44060000 */ mfc1 $a2, $f0 -/* E838F4 80241104 0C00A8CD */ jal update_lerp -/* E838F8 80241108 0000202D */ daddu $a0, $zero, $zero -/* E838FC 8024110C E660003C */ swc1 $f0, 0x3C($s3) -/* E83900 80241110 C6000078 */ lwc1 $f0, 0x78($s0) -/* E83904 80241114 46800020 */ cvt.s.w $f0, $f0 -/* E83908 80241118 46000021 */ cvt.d.s $f0, $f0 -/* E8390C 8024111C 46340003 */ div.d $f0, $f0, $f20 -/* E83910 80241120 46200020 */ cvt.s.d $f0, $f0 -/* E83914 80241124 44050000 */ mfc1 $a1, $f0 -/* E83918 80241128 C6000084 */ lwc1 $f0, 0x84($s0) -/* E8391C 8024112C 46800020 */ cvt.s.w $f0, $f0 -/* E83920 80241130 24080008 */ addiu $t0, $zero, 0x8 -/* E83924 80241134 46000021 */ cvt.d.s $f0, $f0 -/* E83928 80241138 46340003 */ div.d $f0, $f0, $f20 -/* E8392C 8024113C 46200020 */ cvt.s.d $f0, $f0 -/* E83930 80241140 AFA80010 */ sw $t0, 0x10($sp) -/* E83934 80241144 8E070088 */ lw $a3, 0x88($s0) -/* E83938 80241148 44060000 */ mfc1 $a2, $f0 -/* E8393C 8024114C 0C00A8CD */ jal update_lerp -/* E83940 80241150 0000202D */ daddu $a0, $zero, $zero -/* E83944 80241154 3C020001 */ lui $v0, (0x10001 >> 16) -/* E83948 80241158 3C04800F */ lui $a0, %hi(gPlayerStatusPtr) -/* E8394C 8024115C 8C843F60 */ lw $a0, %lo(gPlayerStatusPtr)($a0) -/* E83950 80241160 34420001 */ ori $v0, $v0, (0x10001 & 0xFFFF) -/* E83954 80241164 E6600040 */ swc1 $f0, 0x40($s3) -/* E83958 80241168 AC8200B8 */ sw $v0, 0xB8($a0) -/* E8395C 8024116C 9662008E */ lhu $v0, 0x8E($s3) -/* E83960 80241170 2442FFFF */ addiu $v0, $v0, -0x1 -/* E83964 80241174 A662008E */ sh $v0, 0x8E($s3) -/* E83968 80241178 00021400 */ sll $v0, $v0, 16 -/* E8396C 8024117C 5C40027A */ bgtzl $v0, .Lmgm_02_80241B68 -/* E83970 80241180 2694001C */ addiu $s4, $s4, 0x1C -/* E83974 80241184 3C03002B */ lui $v1, (0x2B000F >> 16) -/* E83978 80241188 3463000F */ ori $v1, $v1, (0x2B000F & 0xFFFF) -/* E8397C 8024118C 3C020001 */ lui $v0, (0x1001B >> 16) -/* E83980 80241190 3442001B */ ori $v0, $v0, (0x1001B & 0xFFFF) -/* E83984 80241194 AE630028 */ sw $v1, 0x28($s3) -/* E83988 80241198 AC8200B8 */ sw $v0, 0xB8($a0) -/* E8398C 8024119C AEA00024 */ sw $zero, 0x24($s5) -/* E83990 802411A0 C4800028 */ lwc1 $f0, 0x28($a0) -/* E83994 802411A4 E6600038 */ swc1 $f0, 0x38($s3) -/* E83998 802411A8 C480002C */ lwc1 $f0, 0x2C($a0) -/* E8399C 802411AC 3C01403C */ lui $at, (0x403C0000 >> 16) -/* E839A0 802411B0 44811800 */ mtc1 $at, $f3 -/* E839A4 802411B4 44801000 */ mtc1 $zero, $f2 -/* E839A8 802411B8 46000021 */ cvt.d.s $f0, $f0 -/* E839AC 802411BC 46220000 */ add.d $f0, $f0, $f2 -/* E839B0 802411C0 46200020 */ cvt.s.d $f0, $f0 -/* E839B4 802411C4 E660003C */ swc1 $f0, 0x3C($s3) -/* E839B8 802411C8 C4800030 */ lwc1 $f0, 0x30($a0) -/* E839BC 802411CC 46000021 */ cvt.d.s $f0, $f0 -/* E839C0 802411D0 46380000 */ add.d $f0, $f0, $f24 -/* E839C4 802411D4 46200020 */ cvt.s.d $f0, $f0 -/* E839C8 802411D8 E6600040 */ swc1 $f0, 0x40($s3) -/* E839CC 802411DC 8EA4000C */ lw $a0, 0xC($s5) -/* E839D0 802411E0 3C058010 */ lui $a1, %hi(HES_MashAButton) -/* E839D4 802411E4 24A57728 */ addiu $a1, $a1, %lo(HES_MashAButton) -/* E839D8 802411E8 0C050CEB */ jal hud_element_set_script -/* E839DC 802411EC 00000000 */ nop -/* E839E0 802411F0 8EA4000C */ lw $a0, 0xC($s5) -/* E839E4 802411F4 0C050E98 */ jal hud_element_set_alpha -/* E839E8 802411F8 240500FF */ addiu $a1, $zero, 0xFF -/* E839EC 802411FC 8EA40010 */ lw $a0, 0x10($s5) -/* E839F0 80241200 0C050E98 */ jal hud_element_set_alpha -/* E839F4 80241204 240500FF */ addiu $a1, $zero, 0xFF -/* E839F8 80241208 2402000F */ addiu $v0, $zero, 0xF -/* E839FC 8024120C 080906D9 */ j .Lmgm_02_80241B64 -/* E83A00 80241210 AE82002C */ sw $v0, 0x2C($s4) -.Lmgm_02_80241214: -/* E83A04 80241214 3C040001 */ lui $a0, (0x1001B >> 16) -/* E83A08 80241218 3C02800F */ lui $v0, %hi(gPlayerStatusPtr) -/* E83A0C 8024121C 8C423F60 */ lw $v0, %lo(gPlayerStatusPtr)($v0) -/* E83A10 80241220 3C038007 */ lui $v1, %hi(gGameStatusPtr) -/* E83A14 80241224 8C6314AC */ lw $v1, %lo(gGameStatusPtr)($v1) -/* E83A18 80241228 3484001B */ ori $a0, $a0, (0x1001B & 0xFFFF) -/* E83A1C 8024122C AC4400B8 */ sw $a0, 0xB8($v0) -/* E83A20 80241230 8C620010 */ lw $v0, 0x10($v1) -/* E83A24 80241234 30428000 */ andi $v0, $v0, 0x8000 -/* E83A28 80241238 10400004 */ beqz $v0, .Lmgm_02_8024124C -/* E83A2C 8024123C 00000000 */ nop -/* E83A30 80241240 8EA20024 */ lw $v0, 0x24($s5) -/* E83A34 80241244 24420001 */ addiu $v0, $v0, 0x1 -/* E83A38 80241248 AEA20024 */ sw $v0, 0x24($s5) -.Lmgm_02_8024124C: -/* E83A3C 8024124C 8EA20024 */ lw $v0, 0x24($s5) -/* E83A40 80241250 2842000C */ slti $v0, $v0, 0xC -/* E83A44 80241254 54400244 */ bnel $v0, $zero, .Lmgm_02_80241B68 -/* E83A48 80241258 2694001C */ addiu $s4, $s4, 0x1C -/* E83A4C 8024125C 3C030001 */ lui $v1, (0x10002 >> 16) -/* E83A50 80241260 3C02800F */ lui $v0, %hi(gPlayerStatusPtr) -/* E83A54 80241264 8C423F60 */ lw $v0, %lo(gPlayerStatusPtr)($v0) -/* E83A58 80241268 34630002 */ ori $v1, $v1, (0x10002 & 0xFFFF) -/* E83A5C 8024126C AC4300B8 */ sw $v1, 0xB8($v0) -/* E83A60 80241270 8EA20028 */ lw $v0, 0x28($s5) -/* E83A64 80241274 2403FFFE */ addiu $v1, $zero, -0x2 -/* E83A68 80241278 00431024 */ and $v0, $v0, $v1 -/* E83A6C 8024127C 34420002 */ ori $v0, $v0, 0x2 -/* E83A70 80241280 AEA20028 */ sw $v0, 0x28($s5) -/* E83A74 80241284 24020010 */ addiu $v0, $zero, 0x10 -/* E83A78 80241288 AE82002C */ sw $v0, 0x2C($s4) -/* E83A7C 8024128C 2402000A */ addiu $v0, $zero, 0xA -/* E83A80 80241290 A662008E */ sh $v0, 0x8E($s3) -/* E83A84 80241294 8EA4000C */ lw $a0, 0xC($s5) -/* E83A88 80241298 3C058010 */ lui $a1, %hi(HES_AButton) -/* E83A8C 8024129C 24A576D0 */ addiu $a1, $a1, %lo(HES_AButton) -/* E83A90 802412A0 0C050CEB */ jal hud_element_set_script -/* E83A94 802412A4 2694001C */ addiu $s4, $s4, 0x1C -/* E83A98 802412A8 8EA4000C */ lw $a0, 0xC($s5) -/* E83A9C 802412AC 0C050E98 */ jal hud_element_set_alpha -/* E83AA0 802412B0 240500A0 */ addiu $a1, $zero, 0xA0 -/* E83AA4 802412B4 8EA40010 */ lw $a0, 0x10($s5) -/* E83AA8 802412B8 0C050E98 */ jal hud_element_set_alpha -/* E83AAC 802412BC 240500A0 */ addiu $a1, $zero, 0xA0 -/* E83AB0 802412C0 3C02002B */ lui $v0, (0x2B0008 >> 16) -/* E83AB4 802412C4 C660003C */ lwc1 $f0, 0x3C($s3) -/* E83AB8 802412C8 3C014008 */ lui $at, (0x40080000 >> 16) -/* E83ABC 802412CC 44811800 */ mtc1 $at, $f3 -/* E83AC0 802412D0 44801000 */ mtc1 $zero, $f2 -/* E83AC4 802412D4 46000021 */ cvt.d.s $f0, $f0 -/* E83AC8 802412D8 46220000 */ add.d $f0, $f0, $f2 -/* E83ACC 802412DC 34420008 */ ori $v0, $v0, (0x2B0008 & 0xFFFF) -/* E83AD0 802412E0 AE620028 */ sw $v0, 0x28($s3) -/* E83AD4 802412E4 46200020 */ cvt.s.d $f0, $f0 -/* E83AD8 802412E8 080906DA */ j .Lmgm_02_80241B68 -/* E83ADC 802412EC E660003C */ swc1 $f0, 0x3C($s3) -.Lmgm_02_802412F0: -/* E83AE0 802412F0 9662008E */ lhu $v0, 0x8E($s3) -/* E83AE4 802412F4 24080008 */ addiu $t0, $zero, 0x8 -/* E83AE8 802412F8 2442FFFF */ addiu $v0, $v0, -0x1 -/* E83AEC 802412FC A662008E */ sh $v0, 0x8E($s3) -/* E83AF0 80241300 00021400 */ sll $v0, $v0, 16 -/* E83AF4 80241304 00021403 */ sra $v0, $v0, 16 -/* E83AF8 80241308 14480004 */ bne $v0, $t0, .Lmgm_02_8024131C -/* E83AFC 8024130C 2403FFFB */ addiu $v1, $zero, -0x5 -/* E83B00 80241310 8EA20028 */ lw $v0, 0x28($s5) -/* E83B04 80241314 00431024 */ and $v0, $v0, $v1 -/* E83B08 80241318 AEA20028 */ sw $v0, 0x28($s5) -.Lmgm_02_8024131C: -/* E83B0C 8024131C 8662008E */ lh $v0, 0x8E($s3) -/* E83B10 80241320 5C400211 */ bgtzl $v0, .Lmgm_02_80241B68 -/* E83B14 80241324 2694001C */ addiu $s4, $s4, 0x1C -/* E83B18 80241328 0260202D */ daddu $a0, $s3, $zero -/* E83B1C 8024132C 24020011 */ addiu $v0, $zero, 0x11 -/* E83B20 80241330 0C00EC3B */ jal disable_npc_shadow -/* E83B24 80241334 AE82002C */ sw $v0, 0x2C($s4) -/* E83B28 80241338 C660003C */ lwc1 $f0, 0x3C($s3) -/* E83B2C 8024133C 46160000 */ add.s $f0, $f0, $f22 -/* E83B30 80241340 C6620040 */ lwc1 $f2, 0x40($s3) -/* E83B34 80241344 8E620000 */ lw $v0, 0x0($s3) -/* E83B38 80241348 44060000 */ mfc1 $a2, $f0 -/* E83B3C 8024134C 3C013F80 */ lui $at, (0x3F800000 >> 16) -/* E83B40 80241350 44810000 */ mtc1 $at, $f0 -/* E83B44 80241354 34420002 */ ori $v0, $v0, 0x2 -/* E83B48 80241358 AE620000 */ sw $v0, 0x0($s3) -/* E83B4C 8024135C AFA00010 */ sw $zero, 0x10($sp) -/* E83B50 80241360 46001080 */ add.s $f2, $f2, $f0 -/* E83B54 80241364 AFA00014 */ sw $zero, 0x14($sp) -/* E83B58 80241368 8E650038 */ lw $a1, 0x38($s3) -/* E83B5C 8024136C 44071000 */ mfc1 $a3, $f2 -/* E83B60 80241370 0C0B73D8 */ jal fx_walking_dust -/* E83B64 80241374 24040001 */ addiu $a0, $zero, 0x1 -/* E83B68 80241378 080906DA */ j .Lmgm_02_80241B68 -/* E83B6C 8024137C 2694001C */ addiu $s4, $s4, 0x1C -.Lmgm_02_80241380: -/* E83B70 80241380 240400D2 */ addiu $a0, $zero, 0xD2 -/* E83B74 80241384 2402001F */ addiu $v0, $zero, 0x1F -/* E83B78 80241388 0C00A65F */ jal rand_int -/* E83B7C 8024138C AE82002C */ sw $v0, 0x2C($s4) -/* E83B80 80241390 0260202D */ daddu $a0, $s3, $zero -/* E83B84 80241394 AE820030 */ sw $v0, 0x30($s4) -/* E83B88 80241398 0C00EC3B */ jal disable_npc_shadow -/* E83B8C 8024139C E67A003C */ swc1 $f26, 0x3C($s3) -/* E83B90 802413A0 8E620000 */ lw $v0, 0x0($s3) -/* E83B94 802413A4 2403FFFD */ addiu $v1, $zero, -0x3 -/* E83B98 802413A8 00431024 */ and $v0, $v0, $v1 -/* E83B9C 802413AC AE620000 */ sw $v0, 0x0($s3) -.Lmgm_02_802413B0: -/* E83BA0 802413B0 8E820030 */ lw $v0, 0x30($s4) -/* E83BA4 802413B4 2442FFFF */ addiu $v0, $v0, -0x1 -/* E83BA8 802413B8 1C4001EA */ bgtz $v0, .Lmgm_02_80241B64 -/* E83BAC 802413BC AE820030 */ sw $v0, 0x30($s4) -/* E83BB0 802413C0 24020020 */ addiu $v0, $zero, 0x20 -/* E83BB4 802413C4 AE82002C */ sw $v0, 0x2C($s4) -/* E83BB8 802413C8 C6600040 */ lwc1 $f0, 0x40($s3) -/* E83BBC 802413CC E7A00010 */ swc1 $f0, 0x10($sp) -/* E83BC0 802413D0 8E04008C */ lw $a0, 0x8C($s0) -/* E83BC4 802413D4 8E660038 */ lw $a2, 0x38($s3) -/* E83BC8 802413D8 8E67003C */ lw $a3, 0x3C($s3) -/* E83BCC 802413DC 0C052243 */ jal sfx_play_sound_at_position -/* E83BD0 802413E0 3C050010 */ lui $a1, (0x100000 >> 16) -/* E83BD4 802413E4 27A50068 */ addiu $a1, $sp, 0x68 -/* E83BD8 802413E8 27A6006C */ addiu $a2, $sp, 0x6C -/* E83BDC 802413EC 9684003A */ lhu $a0, 0x3A($s4) -/* E83BE0 802413F0 27A70070 */ addiu $a3, $sp, 0x70 -/* E83BE4 802413F4 AFBE0010 */ sw $fp, 0x10($sp) -/* E83BE8 802413F8 AFB60014 */ sw $s6, 0x14($sp) -/* E83BEC 802413FC 0C0466FB */ jal get_model_center_and_size -/* E83BF0 80241400 AFB70018 */ sw $s7, 0x18($sp) -/* E83BF4 80241404 3C014128 */ lui $at, (0x41280000 >> 16) -/* E83BF8 80241408 44810000 */ mtc1 $at, $f0 -/* E83BFC 8024140C C7A40068 */ lwc1 $f4, 0x68($sp) -/* E83C00 80241410 C7A2006C */ lwc1 $f2, 0x6C($sp) -/* E83C04 80241414 E660001C */ swc1 $f0, 0x1C($s3) -/* E83C08 80241418 3C014029 */ lui $at, (0x40290000 >> 16) -/* E83C0C 8024141C 44810800 */ mtc1 $at, $f1 -/* E83C10 80241420 44800000 */ mtc1 $zero, $f0 -/* E83C14 80241424 460010A1 */ cvt.d.s $f2, $f2 -/* E83C18 80241428 E6640038 */ swc1 $f4, 0x38($s3) -/* E83C1C 8024142C 3C013FC0 */ lui $at, (0x3FC00000 >> 16) -/* E83C20 80241430 44812000 */ mtc1 $at, $f4 -/* E83C24 80241434 46201081 */ sub.d $f2, $f2, $f0 -/* E83C28 80241438 E6640014 */ swc1 $f4, 0x14($s3) -/* E83C2C 8024143C C7A00070 */ lwc1 $f0, 0x70($sp) -/* E83C30 80241440 46000021 */ cvt.d.s $f0, $f0 -/* E83C34 80241444 46380000 */ add.d $f0, $f0, $f24 -/* E83C38 80241448 462010A0 */ cvt.s.d $f2, $f2 -/* E83C3C 8024144C E662003C */ swc1 $f2, 0x3C($s3) -/* E83C40 80241450 E6620064 */ swc1 $f2, 0x64($s3) -/* E83C44 80241454 46200020 */ cvt.s.d $f0, $f0 -/* E83C48 80241458 080906D8 */ j .Lmgm_02_80241B60 -/* E83C4C 8024145C E6600040 */ swc1 $f0, 0x40($s3) -.Lmgm_02_80241460: -/* E83C50 80241460 8E820030 */ lw $v0, 0x30($s4) -/* E83C54 80241464 24420001 */ addiu $v0, $v0, 0x1 -/* E83C58 80241468 AE820030 */ sw $v0, 0x30($s4) -/* E83C5C 8024146C C660001C */ lwc1 $f0, 0x1C($s3) -/* E83C60 80241470 C664003C */ lwc1 $f4, 0x3C($s3) -/* E83C64 80241474 46000186 */ mov.s $f6, $f0 -/* E83C68 80241478 46002100 */ add.s $f4, $f4, $f0 -/* E83C6C 8024147C C6600014 */ lwc1 $f0, 0x14($s3) -/* E83C70 80241480 3C0141A0 */ lui $at, (0x41A00000 >> 16) -/* E83C74 80241484 44811000 */ mtc1 $at, $f2 -/* E83C78 80241488 46003181 */ sub.s $f6, $f6, $f0 -/* E83C7C 8024148C C6600064 */ lwc1 $f0, 0x64($s3) -/* E83C80 80241490 46020000 */ add.s $f0, $f0, $f2 -/* E83C84 80241494 E664003C */ swc1 $f4, 0x3C($s3) -/* E83C88 80241498 46002086 */ mov.s $f2, $f4 -/* E83C8C 8024149C 4602003C */ c.lt.s $f0, $f2 -/* E83C90 802414A0 00000000 */ nop -/* E83C94 802414A4 45000005 */ bc1f .Lmgm_02_802414BC -/* E83C98 802414A8 E666001C */ swc1 $f6, 0x1C($s3) -/* E83C9C 802414AC 0C00EC24 */ jal enable_npc_shadow -/* E83CA0 802414B0 0260202D */ daddu $a0, $s3, $zero -/* E83CA4 802414B4 08090531 */ j .Lmgm_02_802414C4 -/* E83CA8 802414B8 00000000 */ nop -.Lmgm_02_802414BC: -/* E83CAC 802414BC 0C00EC3B */ jal disable_npc_shadow -/* E83CB0 802414C0 0260202D */ daddu $a0, $s3, $zero -.Lmgm_02_802414C4: -/* E83CB4 802414C4 C660001C */ lwc1 $f0, 0x1C($s3) -/* E83CB8 802414C8 44801000 */ mtc1 $zero, $f2 -/* E83CBC 802414CC 44801800 */ mtc1 $zero, $f3 -/* E83CC0 802414D0 46000021 */ cvt.d.s $f0, $f0 -/* E83CC4 802414D4 4622003C */ c.lt.d $f0, $f2 -/* E83CC8 802414D8 00000000 */ nop -/* E83CCC 802414DC 450201A2 */ bc1fl .Lmgm_02_80241B68 -/* E83CD0 802414E0 2694001C */ addiu $s4, $s4, 0x1C -/* E83CD4 802414E4 C662003C */ lwc1 $f2, 0x3C($s3) -/* E83CD8 802414E8 C6600064 */ lwc1 $f0, 0x64($s3) -/* E83CDC 802414EC 4600103E */ c.le.s $f2, $f0 -/* E83CE0 802414F0 00000000 */ nop -/* E83CE4 802414F4 4500019B */ bc1f .Lmgm_02_80241B64 -/* E83CE8 802414F8 2404014A */ addiu $a0, $zero, 0x14A -/* E83CEC 802414FC 2402001F */ addiu $v0, $zero, 0x1F -/* E83CF0 80241500 0C00A65F */ jal rand_int -/* E83CF4 80241504 AE82002C */ sw $v0, 0x2C($s4) -/* E83CF8 80241508 24040064 */ addiu $a0, $zero, 0x64 -/* E83CFC 8024150C 2442005A */ addiu $v0, $v0, 0x5A -/* E83D00 80241510 AE820030 */ sw $v0, 0x30($s4) -/* E83D04 80241514 0C00A65F */ jal rand_int -/* E83D08 80241518 E67A003C */ swc1 $f26, 0x3C($s3) -/* E83D0C 8024151C 28420032 */ slti $v0, $v0, 0x32 -/* E83D10 80241520 10400005 */ beqz $v0, .Lmgm_02_80241538 -/* E83D14 80241524 00000000 */ nop -/* E83D18 80241528 3C014387 */ lui $at, (0x43870000 >> 16) -/* E83D1C 8024152C 44810000 */ mtc1 $at, $f0 -/* E83D20 80241530 08090552 */ j .Lmgm_02_80241548 -/* E83D24 80241534 E660000C */ swc1 $f0, 0xC($s3) -.Lmgm_02_80241538: -/* E83D28 80241538 3C0142B4 */ lui $at, (0x42B40000 >> 16) -/* E83D2C 8024153C 44810000 */ mtc1 $at, $f0 -/* E83D30 80241540 00000000 */ nop -/* E83D34 80241544 E660000C */ swc1 $f0, 0xC($s3) -.Lmgm_02_80241548: -/* E83D38 80241548 0C00EC3B */ jal disable_npc_shadow -/* E83D3C 8024154C 0260202D */ daddu $a0, $s3, $zero -/* E83D40 80241550 080906DA */ j .Lmgm_02_80241B68 -/* E83D44 80241554 2694001C */ addiu $s4, $s4, 0x1C -.Lmgm_02_80241558: -/* E83D48 80241558 0C00EC24 */ jal enable_npc_shadow -/* E83D4C 8024155C 0260202D */ daddu $a0, $s3, $zero -/* E83D50 80241560 3C03002C */ lui $v1, (0x2C0005 >> 16) -/* E83D54 80241564 34630005 */ ori $v1, $v1, (0x2C0005 & 0xFFFF) -/* E83D58 80241568 27A50068 */ addiu $a1, $sp, 0x68 -/* E83D5C 8024156C 27A6006C */ addiu $a2, $sp, 0x6C -/* E83D60 80241570 2402000F */ addiu $v0, $zero, 0xF -/* E83D64 80241574 A662008E */ sh $v0, 0x8E($s3) -/* E83D68 80241578 AE630028 */ sw $v1, 0x28($s3) -/* E83D6C 8024157C 8EA20028 */ lw $v0, 0x28($s5) -/* E83D70 80241580 27A70070 */ addiu $a3, $sp, 0x70 -/* E83D74 80241584 34420003 */ ori $v0, $v0, 0x3 -/* E83D78 80241588 AEA20028 */ sw $v0, 0x28($s5) -/* E83D7C 8024158C 9684003A */ lhu $a0, 0x3A($s4) -/* E83D80 80241590 24020022 */ addiu $v0, $zero, 0x22 -/* E83D84 80241594 AE82002C */ sw $v0, 0x2C($s4) -/* E83D88 80241598 AFBE0010 */ sw $fp, 0x10($sp) -/* E83D8C 8024159C AFB60014 */ sw $s6, 0x14($sp) -/* E83D90 802415A0 0C0466FB */ jal get_model_center_and_size -/* E83D94 802415A4 AFB70018 */ sw $s7, 0x18($sp) -/* E83D98 802415A8 0000202D */ daddu $a0, $zero, $zero -/* E83D9C 802415AC 0260282D */ daddu $a1, $s3, $zero -/* E83DA0 802415B0 4406E000 */ mfc1 $a2, $f28 -/* E83DA4 802415B4 C7A00068 */ lwc1 $f0, 0x68($sp) -/* E83DA8 802415B8 866200A8 */ lh $v0, 0xA8($s3) -/* E83DAC 802415BC C7A4006C */ lwc1 $f4, 0x6C($sp) -/* E83DB0 802415C0 3C014020 */ lui $at, (0x40200000 >> 16) -/* E83DB4 802415C4 44811800 */ mtc1 $at, $f3 -/* E83DB8 802415C8 44801000 */ mtc1 $zero, $f2 -/* E83DBC 802415CC 44824000 */ mtc1 $v0, $f8 -/* E83DC0 802415D0 00000000 */ nop -/* E83DC4 802415D4 46804220 */ cvt.s.w $f8, $f8 -/* E83DC8 802415D8 46162101 */ sub.s $f4, $f4, $f22 -/* E83DCC 802415DC E6600038 */ swc1 $f0, 0x38($s3) -/* E83DD0 802415E0 C7A00070 */ lwc1 $f0, 0x70($sp) -/* E83DD4 802415E4 44074000 */ mfc1 $a3, $f8 -/* E83DD8 802415E8 46000021 */ cvt.d.s $f0, $f0 -/* E83DDC 802415EC 46220000 */ add.d $f0, $f0, $f2 -/* E83DE0 802415F0 3C013F80 */ lui $at, (0x3F800000 >> 16) -/* E83DE4 802415F4 44811000 */ mtc1 $at, $f2 -/* E83DE8 802415F8 2402000A */ addiu $v0, $zero, 0xA -/* E83DEC 802415FC E664003C */ swc1 $f4, 0x3C($s3) -/* E83DF0 80241600 46200020 */ cvt.s.d $f0, $f0 -/* E83DF4 80241604 E6600040 */ swc1 $f0, 0x40($s3) -/* E83DF8 80241608 AFA2001C */ sw $v0, 0x1C($sp) -/* E83DFC 8024160C 27A20080 */ addiu $v0, $sp, 0x80 -/* E83E00 80241610 E7A20010 */ swc1 $f2, 0x10($sp) -/* E83E04 80241614 E7BE0014 */ swc1 $f30, 0x14($sp) -/* E83E08 80241618 E7BC0018 */ swc1 $f28, 0x18($sp) -/* E83E0C 8024161C 0C0B74B0 */ jal fx_emote -/* E83E10 80241620 AFA20020 */ sw $v0, 0x20($sp) -/* E83E14 80241624 3C02800F */ lui $v0, %hi(gPlayerStatusPtr) -/* E83E18 80241628 8C423F60 */ lw $v0, %lo(gPlayerStatusPtr)($v0) -/* E83E1C 8024162C C6620038 */ lwc1 $f2, 0x38($s3) -/* E83E20 80241630 C4400028 */ lwc1 $f0, 0x28($v0) -/* E83E24 80241634 4602003C */ c.lt.s $f0, $f2 -/* E83E28 80241638 00000000 */ nop -/* E83E2C 8024163C 45000007 */ bc1f .Lmgm_02_8024165C -/* E83E30 80241640 00000000 */ nop -/* E83E34 80241644 3C014387 */ lui $at, (0x43870000 >> 16) -/* E83E38 80241648 44810000 */ mtc1 $at, $f0 -/* E83E3C 8024164C 3C0142BE */ lui $at, (0x42BE0000 >> 16) -/* E83E40 80241650 44811000 */ mtc1 $at, $f2 -/* E83E44 80241654 0809059D */ j .Lmgm_02_80241674 -/* E83E48 80241658 E660000C */ swc1 $f0, 0xC($s3) -.Lmgm_02_8024165C: -/* E83E4C 8024165C 3C0142B4 */ lui $at, (0x42B40000 >> 16) -/* E83E50 80241660 44810000 */ mtc1 $at, $f0 -/* E83E54 80241664 3C014384 */ lui $at, (0x43848000 >> 16) -/* E83E58 80241668 34218000 */ ori $at, $at, (0x43848000 & 0xFFFF) -/* E83E5C 8024166C 44811000 */ mtc1 $at, $f2 -/* E83E60 80241670 E660000C */ swc1 $f0, 0xC($s3) -.Lmgm_02_80241674: -/* E83E64 80241674 E4420080 */ swc1 $f2, 0x80($v0) -.Lmgm_02_80241678: -/* E83E68 80241678 3C030001 */ lui $v1, (0x10001 >> 16) -/* E83E6C 8024167C 3C02800F */ lui $v0, %hi(gPlayerStatusPtr) -/* E83E70 80241680 8C423F60 */ lw $v0, %lo(gPlayerStatusPtr)($v0) -/* E83E74 80241684 34630001 */ ori $v1, $v1, (0x10001 & 0xFFFF) -/* E83E78 80241688 AC4300B8 */ sw $v1, 0xB8($v0) -/* E83E7C 8024168C 9662008E */ lhu $v0, 0x8E($s3) -/* E83E80 80241690 2442FFFF */ addiu $v0, $v0, -0x1 -/* E83E84 80241694 A662008E */ sh $v0, 0x8E($s3) -/* E83E88 80241698 00021400 */ sll $v0, $v0, 16 -/* E83E8C 8024169C 5C400132 */ bgtzl $v0, .Lmgm_02_80241B68 -/* E83E90 802416A0 2694001C */ addiu $s4, $s4, 0x1C -/* E83E94 802416A4 C6620040 */ lwc1 $f2, 0x40($s3) -/* E83E98 802416A8 3C013F80 */ lui $at, (0x3F800000 >> 16) -/* E83E9C 802416AC 44810000 */ mtc1 $at, $f0 -/* E83EA0 802416B0 00000000 */ nop -/* E83EA4 802416B4 46001080 */ add.s $f2, $f2, $f0 -/* E83EA8 802416B8 8E650038 */ lw $a1, 0x38($s3) -/* E83EAC 802416BC 8E66003C */ lw $a2, 0x3C($s3) -/* E83EB0 802416C0 44071000 */ mfc1 $a3, $f2 -/* E83EB4 802416C4 0C0B7588 */ jal fx_explosion -/* E83EB8 802416C8 0000202D */ daddu $a0, $zero, $zero -/* E83EBC 802416CC 24042076 */ addiu $a0, $zero, 0x2076 -/* E83EC0 802416D0 2402001E */ addiu $v0, $zero, 0x1E -/* E83EC4 802416D4 A662008E */ sh $v0, 0x8E($s3) -/* E83EC8 802416D8 24020023 */ addiu $v0, $zero, 0x23 -/* E83ECC 802416DC E67A003C */ swc1 $f26, 0x3C($s3) -/* E83ED0 802416E0 0C052219 */ jal sfx_play_sound -/* E83ED4 802416E4 AE82002C */ sw $v0, 0x2C($s4) -/* E83ED8 802416E8 080906DA */ j .Lmgm_02_80241B68 -/* E83EDC 802416EC 2694001C */ addiu $s4, $s4, 0x1C -.Lmgm_02_802416F0: -/* E83EE0 802416F0 9662008E */ lhu $v0, 0x8E($s3) -/* E83EE4 802416F4 24030019 */ addiu $v1, $zero, 0x19 -/* E83EE8 802416F8 2442FFFF */ addiu $v0, $v0, -0x1 -/* E83EEC 802416FC A662008E */ sh $v0, 0x8E($s3) -/* E83EF0 80241700 00021400 */ sll $v0, $v0, 16 -/* E83EF4 80241704 00021403 */ sra $v0, $v0, 16 -/* E83EF8 80241708 14430005 */ bne $v0, $v1, .Lmgm_02_80241720 -/* E83EFC 8024170C 3C030001 */ lui $v1, (0x1002F >> 16) -/* E83F00 80241710 3C02800F */ lui $v0, %hi(gPlayerStatusPtr) -/* E83F04 80241714 8C423F60 */ lw $v0, %lo(gPlayerStatusPtr)($v0) -/* E83F08 80241718 3463002F */ ori $v1, $v1, (0x1002F & 0xFFFF) -/* E83F0C 8024171C AC4300B8 */ sw $v1, 0xB8($v0) -.Lmgm_02_80241720: -/* E83F10 80241720 8662008E */ lh $v0, 0x8E($s3) -/* E83F14 80241724 5C400110 */ bgtzl $v0, .Lmgm_02_80241B68 -/* E83F18 80241728 2694001C */ addiu $s4, $s4, 0x1C -/* E83F1C 8024172C 3C030001 */ lui $v1, (0x10002 >> 16) -/* E83F20 80241730 34630002 */ ori $v1, $v1, (0x10002 & 0xFFFF) -/* E83F24 80241734 3C02800F */ lui $v0, %hi(gPlayerStatusPtr) -/* E83F28 80241738 8C423F60 */ lw $v0, %lo(gPlayerStatusPtr)($v0) -/* E83F2C 8024173C 0260202D */ daddu $a0, $s3, $zero -/* E83F30 80241740 AC4300B8 */ sw $v1, 0xB8($v0) -/* E83F34 80241744 8EA20028 */ lw $v0, 0x28($s5) -/* E83F38 80241748 2403FFFE */ addiu $v1, $zero, -0x2 -/* E83F3C 8024174C 00431024 */ and $v0, $v0, $v1 -/* E83F40 80241750 34420002 */ ori $v0, $v0, 0x2 -/* E83F44 80241754 AEA20028 */ sw $v0, 0x28($s5) -/* E83F48 80241758 24020024 */ addiu $v0, $zero, 0x24 -/* E83F4C 8024175C 0C00EC3B */ jal disable_npc_shadow -/* E83F50 80241760 AE82002C */ sw $v0, 0x2C($s4) -/* E83F54 80241764 8E620000 */ lw $v0, 0x0($s3) -/* E83F58 80241768 34420002 */ ori $v0, $v0, 0x2 -/* E83F5C 8024176C 080906D9 */ j .Lmgm_02_80241B64 -/* E83F60 80241770 AE620000 */ sw $v0, 0x0($s3) -.Lmgm_02_80241774: -/* E83F64 80241774 27A50068 */ addiu $a1, $sp, 0x68 -/* E83F68 80241778 27A6006C */ addiu $a2, $sp, 0x6C -/* E83F6C 8024177C 9684003A */ lhu $a0, 0x3A($s4) -/* E83F70 80241780 27A70070 */ addiu $a3, $sp, 0x70 -/* E83F74 80241784 AFBE0010 */ sw $fp, 0x10($sp) -/* E83F78 80241788 AFB60014 */ sw $s6, 0x14($sp) -/* E83F7C 8024178C 0C0466FB */ jal get_model_center_and_size -/* E83F80 80241790 AFB70018 */ sw $s7, 0x18($sp) -/* E83F84 80241794 240400D2 */ addiu $a0, $zero, 0xD2 -/* E83F88 80241798 24020047 */ addiu $v0, $zero, 0x47 -/* E83F8C 8024179C 0C00A65F */ jal rand_int -/* E83F90 802417A0 AE82002C */ sw $v0, 0x2C($s4) -/* E83F94 802417A4 C7A20068 */ lwc1 $f2, 0x68($sp) -/* E83F98 802417A8 C7A00070 */ lwc1 $f0, 0x70($sp) -/* E83F9C 802417AC 0260202D */ daddu $a0, $s3, $zero -/* E83FA0 802417B0 AE820030 */ sw $v0, 0x30($s4) -/* E83FA4 802417B4 46000021 */ cvt.d.s $f0, $f0 -/* E83FA8 802417B8 E6620038 */ swc1 $f2, 0x38($s3) -/* E83FAC 802417BC C7A2006C */ lwc1 $f2, 0x6C($sp) -/* E83FB0 802417C0 46380000 */ add.d $f0, $f0, $f24 -/* E83FB4 802417C4 E662003C */ swc1 $f2, 0x3C($s3) -/* E83FB8 802417C8 E6620064 */ swc1 $f2, 0x64($s3) -/* E83FBC 802417CC 46200020 */ cvt.s.d $f0, $f0 -/* E83FC0 802417D0 0C00EC3B */ jal disable_npc_shadow -/* E83FC4 802417D4 E6600040 */ swc1 $f0, 0x40($s3) -.Lmgm_02_802417D8: -/* E83FC8 802417D8 8E820030 */ lw $v0, 0x30($s4) -/* E83FCC 802417DC 2442FFFF */ addiu $v0, $v0, -0x1 -/* E83FD0 802417E0 1C4000E0 */ bgtz $v0, .Lmgm_02_80241B64 -/* E83FD4 802417E4 AE820030 */ sw $v0, 0x30($s4) -/* E83FD8 802417E8 27B20068 */ addiu $s2, $sp, 0x68 -/* E83FDC 802417EC 0240282D */ daddu $a1, $s2, $zero -/* E83FE0 802417F0 27B0006C */ addiu $s0, $sp, 0x6C -/* E83FE4 802417F4 0200302D */ daddu $a2, $s0, $zero -/* E83FE8 802417F8 27B10070 */ addiu $s1, $sp, 0x70 -/* E83FEC 802417FC 9684003A */ lhu $a0, 0x3A($s4) -/* E83FF0 80241800 0220382D */ daddu $a3, $s1, $zero -/* E83FF4 80241804 AFBE0010 */ sw $fp, 0x10($sp) -/* E83FF8 80241808 AFB60014 */ sw $s6, 0x14($sp) -/* E83FFC 8024180C 0C0466FB */ jal get_model_center_and_size -/* E84000 80241810 AFB70018 */ sw $s7, 0x18($sp) -/* E84004 80241814 24020048 */ addiu $v0, $zero, 0x48 -/* E84008 80241818 AE82002C */ sw $v0, 0x2C($s4) -/* E8400C 8024181C C6600040 */ lwc1 $f0, 0x40($s3) -/* E84010 80241820 24040214 */ addiu $a0, $zero, 0x214 -/* E84014 80241824 E7A00010 */ swc1 $f0, 0x10($sp) -/* E84018 80241828 8E660038 */ lw $a2, 0x38($s3) -/* E8401C 8024182C 8E67003C */ lw $a3, 0x3C($s3) -/* E84020 80241830 0C052243 */ jal sfx_play_sound_at_position -/* E84024 80241834 3C050020 */ lui $a1, (0x200000 >> 16) -/* E84028 80241838 0240282D */ daddu $a1, $s2, $zero -/* E8402C 8024183C 0200302D */ daddu $a2, $s0, $zero -/* E84030 80241840 9684003A */ lhu $a0, 0x3A($s4) -/* E84034 80241844 0220382D */ daddu $a3, $s1, $zero -/* E84038 80241848 AFBE0010 */ sw $fp, 0x10($sp) -/* E8403C 8024184C AFB60014 */ sw $s6, 0x14($sp) -/* E84040 80241850 0C0466FB */ jal get_model_center_and_size -/* E84044 80241854 AFB70018 */ sw $s7, 0x18($sp) -/* E84048 80241858 C6600064 */ lwc1 $f0, 0x64($s3) -/* E8404C 8024185C 3C013F8C */ lui $at, (0x3F8CCCCD >> 16) -/* E84050 80241860 3421CCCD */ ori $at, $at, (0x3F8CCCCD & 0xFFFF) -/* E84054 80241864 44811000 */ mtc1 $at, $f2 -/* E84058 80241868 E676001C */ swc1 $f22, 0x1C($s3) -/* E8405C 8024186C E660003C */ swc1 $f0, 0x3C($s3) -/* E84060 80241870 E6620014 */ swc1 $f2, 0x14($s3) -/* E84064 80241874 8E840044 */ lw $a0, 0x44($s4) -/* E84068 80241878 0C0466C4 */ jal get_model_list_index_from_tree_index -/* E8406C 8024187C AE800030 */ sw $zero, 0x30($s4) -/* E84070 80241880 0C04660C */ jal get_model_from_list_index -/* E84074 80241884 0040202D */ daddu $a0, $v0, $zero -/* E84078 80241888 0040802D */ daddu $s0, $v0, $zero -/* E8407C 8024188C 96030000 */ lhu $v1, 0x0($s0) -/* E84080 80241890 3062FFFD */ andi $v0, $v1, 0xFFFD -/* E84084 80241894 30630400 */ andi $v1, $v1, 0x400 -/* E84088 80241898 1460000A */ bnez $v1, .Lmgm_02_802418C4 -/* E8408C 8024189C A6020000 */ sh $v0, 0x0($s0) -/* E84090 802418A0 8E650038 */ lw $a1, 0x38($s3) -/* E84094 802418A4 8E66003C */ lw $a2, 0x3C($s3) -/* E84098 802418A8 8E670040 */ lw $a3, 0x40($s3) -/* E8409C 802418AC 0C01A1E0 */ jal guTranslateF -/* E840A0 802418B0 26040058 */ addiu $a0, $s0, 0x58 -/* E840A4 802418B4 96020000 */ lhu $v0, 0x0($s0) -/* E840A8 802418B8 34421400 */ ori $v0, $v0, 0x1400 -/* E840AC 802418BC 080906D9 */ j .Lmgm_02_80241B64 -/* E840B0 802418C0 A6020000 */ sh $v0, 0x0($s0) -.Lmgm_02_802418C4: -/* E840B4 802418C4 8E650038 */ lw $a1, 0x38($s3) -/* E840B8 802418C8 8E66003C */ lw $a2, 0x3C($s3) -/* E840BC 802418CC 8E670040 */ lw $a3, 0x40($s3) -/* E840C0 802418D0 0C01A1E0 */ jal guTranslateF -/* E840C4 802418D4 27A40028 */ addiu $a0, $sp, 0x28 -/* E840C8 802418D8 27A40028 */ addiu $a0, $sp, 0x28 -/* E840CC 802418DC 26050058 */ addiu $a1, $s0, 0x58 -/* E840D0 802418E0 0C01A120 */ jal guMtxCatF -/* E840D4 802418E4 00A0302D */ daddu $a2, $a1, $zero -/* E840D8 802418E8 080906DA */ j .Lmgm_02_80241B68 -/* E840DC 802418EC 2694001C */ addiu $s4, $s4, 0x1C -.Lmgm_02_802418F0: -/* E840E0 802418F0 8E820030 */ lw $v0, 0x30($s4) -/* E840E4 802418F4 24420001 */ addiu $v0, $v0, 0x1 -/* E840E8 802418F8 AE820030 */ sw $v0, 0x30($s4) -/* E840EC 802418FC C660001C */ lwc1 $f0, 0x1C($s3) -/* E840F0 80241900 C664003C */ lwc1 $f4, 0x3C($s3) -/* E840F4 80241904 46000086 */ mov.s $f2, $f0 -/* E840F8 80241908 46002100 */ add.s $f4, $f4, $f0 -/* E840FC 8024190C C6600014 */ lwc1 $f0, 0x14($s3) -/* E84100 80241910 46001081 */ sub.s $f2, $f2, $f0 -/* E84104 80241914 E664003C */ swc1 $f4, 0x3C($s3) -/* E84108 80241918 E662001C */ swc1 $f2, 0x1C($s3) -/* E8410C 8024191C 0C0466C4 */ jal get_model_list_index_from_tree_index -/* E84110 80241920 8E840044 */ lw $a0, 0x44($s4) -/* E84114 80241924 0C04660C */ jal get_model_from_list_index -/* E84118 80241928 0040202D */ daddu $a0, $v0, $zero -/* E8411C 8024192C 0040802D */ daddu $s0, $v0, $zero -/* E84120 80241930 96020000 */ lhu $v0, 0x0($s0) -/* E84124 80241934 30420400 */ andi $v0, $v0, 0x400 -/* E84128 80241938 1440000A */ bnez $v0, .Lmgm_02_80241964 -/* E8412C 8024193C 00000000 */ nop -/* E84130 80241940 8E650038 */ lw $a1, 0x38($s3) -/* E84134 80241944 8E66003C */ lw $a2, 0x3C($s3) -/* E84138 80241948 8E670040 */ lw $a3, 0x40($s3) -/* E8413C 8024194C 0C01A1E0 */ jal guTranslateF -/* E84140 80241950 26040058 */ addiu $a0, $s0, 0x58 -/* E84144 80241954 96020000 */ lhu $v0, 0x0($s0) -/* E84148 80241958 34421400 */ ori $v0, $v0, 0x1400 -/* E8414C 8024195C 08090662 */ j .Lmgm_02_80241988 -/* E84150 80241960 A6020000 */ sh $v0, 0x0($s0) -.Lmgm_02_80241964: -/* E84154 80241964 8E650038 */ lw $a1, 0x38($s3) -/* E84158 80241968 8E66003C */ lw $a2, 0x3C($s3) -/* E8415C 8024196C 8E670040 */ lw $a3, 0x40($s3) -/* E84160 80241970 0C01A1E0 */ jal guTranslateF -/* E84164 80241974 27A40028 */ addiu $a0, $sp, 0x28 -/* E84168 80241978 27A40028 */ addiu $a0, $sp, 0x28 -/* E8416C 8024197C 26050058 */ addiu $a1, $s0, 0x58 -/* E84170 80241980 0C01A120 */ jal guMtxCatF -/* E84174 80241984 00A0302D */ daddu $a2, $a1, $zero -.Lmgm_02_80241988: -/* E84178 80241988 C6600064 */ lwc1 $f0, 0x64($s3) -/* E8417C 8024198C 3C0141A0 */ lui $at, (0x41A00000 >> 16) -/* E84180 80241990 44811000 */ mtc1 $at, $f2 -/* E84184 80241994 00000000 */ nop -/* E84188 80241998 46020000 */ add.s $f0, $f0, $f2 -/* E8418C 8024199C C662003C */ lwc1 $f2, 0x3C($s3) -/* E84190 802419A0 4602003C */ c.lt.s $f0, $f2 -/* E84194 802419A4 00000000 */ nop -/* E84198 802419A8 45000005 */ bc1f .Lmgm_02_802419C0 -/* E8419C 802419AC 00000000 */ nop -/* E841A0 802419B0 0C00EC24 */ jal enable_npc_shadow -/* E841A4 802419B4 0260202D */ daddu $a0, $s3, $zero -/* E841A8 802419B8 08090672 */ j .Lmgm_02_802419C8 -/* E841AC 802419BC 00000000 */ nop -.Lmgm_02_802419C0: -/* E841B0 802419C0 0C00EC3B */ jal disable_npc_shadow -/* E841B4 802419C4 0260202D */ daddu $a0, $s3, $zero -.Lmgm_02_802419C8: -/* E841B8 802419C8 C660001C */ lwc1 $f0, 0x1C($s3) -/* E841BC 802419CC 44801000 */ mtc1 $zero, $f2 -/* E841C0 802419D0 44801800 */ mtc1 $zero, $f3 -/* E841C4 802419D4 46000021 */ cvt.d.s $f0, $f0 -/* E841C8 802419D8 4622003C */ c.lt.d $f0, $f2 -/* E841CC 802419DC 00000000 */ nop -/* E841D0 802419E0 45020061 */ bc1fl .Lmgm_02_80241B68 -/* E841D4 802419E4 2694001C */ addiu $s4, $s4, 0x1C -/* E841D8 802419E8 C662003C */ lwc1 $f2, 0x3C($s3) -/* E841DC 802419EC C6600064 */ lwc1 $f0, 0x64($s3) -/* E841E0 802419F0 4600103E */ c.le.s $f2, $f0 -/* E841E4 802419F4 00000000 */ nop -/* E841E8 802419F8 4500005A */ bc1f .Lmgm_02_80241B64 -/* E841EC 802419FC 2404014A */ addiu $a0, $zero, 0x14A -/* E841F0 80241A00 24020047 */ addiu $v0, $zero, 0x47 -/* E841F4 80241A04 0C00A65F */ jal rand_int -/* E841F8 80241A08 AE82002C */ sw $v0, 0x2C($s4) -/* E841FC 80241A0C 0260202D */ daddu $a0, $s3, $zero -/* E84200 80241A10 2442005A */ addiu $v0, $v0, 0x5A -/* E84204 80241A14 080906CD */ j .Lmgm_02_80241B34 -/* E84208 80241A18 AE820030 */ sw $v0, 0x30($s4) -.Lmgm_02_80241A1C: -/* E8420C 80241A1C 0C052219 */ jal sfx_play_sound -/* E84210 80241A20 2404021C */ addiu $a0, $zero, 0x21C -/* E84214 80241A24 8E840044 */ lw $a0, 0x44($s4) -/* E84218 80241A28 0C0466C4 */ jal get_model_list_index_from_tree_index -/* E8421C 80241A2C 00000000 */ nop -/* E84220 80241A30 0C04660C */ jal get_model_from_list_index -/* E84224 80241A34 0040202D */ daddu $a0, $v0, $zero -/* E84228 80241A38 0040802D */ daddu $s0, $v0, $zero -/* E8422C 80241A3C 0C00EC24 */ jal enable_npc_shadow -/* E84230 80241A40 0260202D */ daddu $a0, $s3, $zero -/* E84234 80241A44 2402004A */ addiu $v0, $zero, 0x4A -/* E84238 80241A48 A660008E */ sh $zero, 0x8E($s3) -/* E8423C 80241A4C AE82002C */ sw $v0, 0x2C($s4) -/* E84240 80241A50 96020000 */ lhu $v0, 0x0($s0) -/* E84244 80241A54 3042FFFD */ andi $v0, $v0, 0xFFFD -/* E84248 80241A58 A6020000 */ sh $v0, 0x0($s0) -.Lmgm_02_80241A5C: -/* E8424C 80241A5C 8E840044 */ lw $a0, 0x44($s4) -/* E84250 80241A60 24080001 */ addiu $t0, $zero, 0x1 -/* E84254 80241A64 0C0466C4 */ jal get_model_list_index_from_tree_index -/* E84258 80241A68 AFA80088 */ sw $t0, 0x88($sp) -/* E8425C 80241A6C 0C04660C */ jal get_model_from_list_index -/* E84260 80241A70 0040202D */ daddu $a0, $v0, $zero -/* E84264 80241A74 0040802D */ daddu $s0, $v0, $zero -/* E84268 80241A78 2402001E */ addiu $v0, $zero, 0x1E -/* E8426C 80241A7C C6600064 */ lwc1 $f0, 0x64($s3) -/* E84270 80241A80 8667008E */ lh $a3, 0x8E($s3) -/* E84274 80241A84 3C01403E */ lui $at, (0x403E0000 >> 16) -/* E84278 80241A88 44811800 */ mtc1 $at, $f3 -/* E8427C 80241A8C 44801000 */ mtc1 $zero, $f2 -/* E84280 80241A90 46000021 */ cvt.d.s $f0, $f0 -/* E84284 80241A94 46220000 */ add.d $f0, $f0, $f2 -/* E84288 80241A98 AFA20010 */ sw $v0, 0x10($sp) -/* E8428C 80241A9C 8E650064 */ lw $a1, 0x64($s3) -/* E84290 80241AA0 46200020 */ cvt.s.d $f0, $f0 -/* E84294 80241AA4 44060000 */ mfc1 $a2, $f0 -/* E84298 80241AA8 0C00A8CD */ jal update_lerp -/* E8429C 80241AAC 24040004 */ addiu $a0, $zero, 0x4 -/* E842A0 80241AB0 96020000 */ lhu $v0, 0x0($s0) -/* E842A4 80241AB4 30420400 */ andi $v0, $v0, 0x400 -/* E842A8 80241AB8 1440000A */ bnez $v0, .Lmgm_02_80241AE4 -/* E842AC 80241ABC E7A0006C */ swc1 $f0, 0x6C($sp) -/* E842B0 80241AC0 8E650038 */ lw $a1, 0x38($s3) -/* E842B4 80241AC4 44060000 */ mfc1 $a2, $f0 -/* E842B8 80241AC8 8E670040 */ lw $a3, 0x40($s3) -/* E842BC 80241ACC 0C01A1E0 */ jal guTranslateF -/* E842C0 80241AD0 26040058 */ addiu $a0, $s0, 0x58 -/* E842C4 80241AD4 96020000 */ lhu $v0, 0x0($s0) -/* E842C8 80241AD8 34421400 */ ori $v0, $v0, 0x1400 -/* E842CC 80241ADC 080906C2 */ j .Lmgm_02_80241B08 -/* E842D0 80241AE0 A6020000 */ sh $v0, 0x0($s0) -.Lmgm_02_80241AE4: -/* E842D4 80241AE4 8E650038 */ lw $a1, 0x38($s3) -/* E842D8 80241AE8 44060000 */ mfc1 $a2, $f0 -/* E842DC 80241AEC 8E670040 */ lw $a3, 0x40($s3) -/* E842E0 80241AF0 0C01A1E0 */ jal guTranslateF -/* E842E4 80241AF4 27A40028 */ addiu $a0, $sp, 0x28 -/* E842E8 80241AF8 27A40028 */ addiu $a0, $sp, 0x28 -/* E842EC 80241AFC 26050058 */ addiu $a1, $s0, 0x58 -/* E842F0 80241B00 0C01A120 */ jal guMtxCatF -/* E842F4 80241B04 00A0302D */ daddu $a2, $a1, $zero -.Lmgm_02_80241B08: -/* E842F8 80241B08 9662008E */ lhu $v0, 0x8E($s3) -/* E842FC 80241B0C 24420001 */ addiu $v0, $v0, 0x1 -/* E84300 80241B10 A662008E */ sh $v0, 0x8E($s3) -/* E84304 80241B14 00021400 */ sll $v0, $v0, 16 -/* E84308 80241B18 00021403 */ sra $v0, $v0, 16 -/* E8430C 80241B1C 2842001E */ slti $v0, $v0, 0x1E -/* E84310 80241B20 54400011 */ bnel $v0, $zero, .Lmgm_02_80241B68 -/* E84314 80241B24 2694001C */ addiu $s4, $s4, 0x1C -/* E84318 80241B28 0260202D */ daddu $a0, $s3, $zero -/* E8431C 80241B2C 2402004B */ addiu $v0, $zero, 0x4B -/* E84320 80241B30 AE82002C */ sw $v0, 0x2C($s4) -.Lmgm_02_80241B34: -/* E84324 80241B34 0C00EC3B */ jal disable_npc_shadow -/* E84328 80241B38 2694001C */ addiu $s4, $s4, 0x1C -/* E8432C 80241B3C 96020000 */ lhu $v0, 0x0($s0) -/* E84330 80241B40 34420002 */ ori $v0, $v0, 0x2 -/* E84334 80241B44 080906DA */ j .Lmgm_02_80241B68 -/* E84338 80241B48 A6020000 */ sh $v0, 0x0($s0) -.Lmgm_02_80241B4C: -/* E8433C 80241B4C 8E83002C */ lw $v1, 0x2C($s4) -/* E84340 80241B50 54620005 */ bnel $v1, $v0, .Lmgm_02_80241B68 -/* E84344 80241B54 2694001C */ addiu $s4, $s4, 0x1C -/* E84348 80241B58 24020033 */ addiu $v0, $zero, 0x33 -/* E8434C 80241B5C AE82002C */ sw $v0, 0x2C($s4) -.Lmgm_02_80241B60: -/* E84350 80241B60 AE800030 */ sw $zero, 0x30($s4) -.Lmgm_02_80241B64: -/* E84354 80241B64 2694001C */ addiu $s4, $s4, 0x1C -.Lmgm_02_80241B68: -/* E84358 80241B68 26A203D4 */ addiu $v0, $s5, 0x3D4 -/* E8435C 80241B6C 0282102A */ slt $v0, $s4, $v0 -/* E84360 80241B70 1440FC41 */ bnez $v0, .Lmgm_02_80240C78 -/* E84364 80241B74 00000000 */ nop -/* E84368 80241B78 8EA30008 */ lw $v1, 0x8($s5) -/* E8436C 80241B7C 18600040 */ blez $v1, .Lmgm_02_80241C80 -/* E84370 80241B80 00000000 */ nop -/* E84374 80241B84 8EA20004 */ lw $v0, 0x4($s5) -/* E84378 80241B88 2842000A */ slti $v0, $v0, 0xA -/* E8437C 80241B8C 10400031 */ beqz $v0, .Lmgm_02_80241C54 -/* E84380 80241B90 2463FFFF */ addiu $v1, $v1, -0x1 -/* E84384 80241B94 24020271 */ addiu $v0, $zero, 0x271 -/* E84388 80241B98 14620003 */ bne $v1, $v0, .Lmgm_02_80241BA8 -/* E8438C 80241B9C AEA30008 */ sw $v1, 0x8($s5) -/* E84390 80241BA0 08090713 */ j .Lmgm_02_80241C4C -/* E84394 80241BA4 240401A5 */ addiu $a0, $zero, 0x1A5 -.Lmgm_02_80241BA8: -/* E84398 80241BA8 240201F4 */ addiu $v0, $zero, 0x1F4 -/* E8439C 80241BAC 14620003 */ bne $v1, $v0, .Lmgm_02_80241BBC -/* E843A0 80241BB0 24020177 */ addiu $v0, $zero, 0x177 -/* E843A4 80241BB4 08090713 */ j .Lmgm_02_80241C4C -/* E843A8 80241BB8 240401A5 */ addiu $a0, $zero, 0x1A5 -.Lmgm_02_80241BBC: -/* E843AC 80241BBC 14620003 */ bne $v1, $v0, .Lmgm_02_80241BCC -/* E843B0 80241BC0 240200FA */ addiu $v0, $zero, 0xFA -/* E843B4 80241BC4 08090713 */ j .Lmgm_02_80241C4C -/* E843B8 80241BC8 240401A5 */ addiu $a0, $zero, 0x1A5 -.Lmgm_02_80241BCC: -/* E843BC 80241BCC 14620003 */ bne $v1, $v0, .Lmgm_02_80241BDC -/* E843C0 80241BD0 240200E1 */ addiu $v0, $zero, 0xE1 -/* E843C4 80241BD4 08090713 */ j .Lmgm_02_80241C4C -/* E843C8 80241BD8 240401A6 */ addiu $a0, $zero, 0x1A6 -.Lmgm_02_80241BDC: -/* E843CC 80241BDC 14620003 */ bne $v1, $v0, .Lmgm_02_80241BEC -/* E843D0 80241BE0 240200C8 */ addiu $v0, $zero, 0xC8 -/* E843D4 80241BE4 08090713 */ j .Lmgm_02_80241C4C -/* E843D8 80241BE8 240401A6 */ addiu $a0, $zero, 0x1A6 -.Lmgm_02_80241BEC: -/* E843DC 80241BEC 14620003 */ bne $v1, $v0, .Lmgm_02_80241BFC -/* E843E0 80241BF0 240200AF */ addiu $v0, $zero, 0xAF -/* E843E4 80241BF4 08090713 */ j .Lmgm_02_80241C4C -/* E843E8 80241BF8 240401A6 */ addiu $a0, $zero, 0x1A6 -.Lmgm_02_80241BFC: -/* E843EC 80241BFC 14620003 */ bne $v1, $v0, .Lmgm_02_80241C0C -/* E843F0 80241C00 24020096 */ addiu $v0, $zero, 0x96 -/* E843F4 80241C04 08090713 */ j .Lmgm_02_80241C4C -/* E843F8 80241C08 240401A6 */ addiu $a0, $zero, 0x1A6 -.Lmgm_02_80241C0C: -/* E843FC 80241C0C 14620003 */ bne $v1, $v0, .Lmgm_02_80241C1C -/* E84400 80241C10 2402007D */ addiu $v0, $zero, 0x7D -/* E84404 80241C14 08090713 */ j .Lmgm_02_80241C4C -/* E84408 80241C18 240401A6 */ addiu $a0, $zero, 0x1A6 -.Lmgm_02_80241C1C: -/* E8440C 80241C1C 1062000A */ beq $v1, $v0, .Lmgm_02_80241C48 -/* E84410 80241C20 24020064 */ addiu $v0, $zero, 0x64 -/* E84414 80241C24 10620008 */ beq $v1, $v0, .Lmgm_02_80241C48 -/* E84418 80241C28 2402004B */ addiu $v0, $zero, 0x4B -/* E8441C 80241C2C 8EA30008 */ lw $v1, 0x8($s5) -/* E84420 80241C30 10620005 */ beq $v1, $v0, .Lmgm_02_80241C48 -/* E84424 80241C34 24020032 */ addiu $v0, $zero, 0x32 -/* E84428 80241C38 10620003 */ beq $v1, $v0, .Lmgm_02_80241C48 -/* E8442C 80241C3C 24020019 */ addiu $v0, $zero, 0x19 -/* E84430 80241C40 14620004 */ bne $v1, $v0, .Lmgm_02_80241C54 -/* E84434 80241C44 00000000 */ nop -.Lmgm_02_80241C48: -/* E84438 80241C48 240401A7 */ addiu $a0, $zero, 0x1A7 -.Lmgm_02_80241C4C: -/* E8443C 80241C4C 0C052219 */ jal sfx_play_sound -/* E84440 80241C50 00000000 */ nop -.Lmgm_02_80241C54: -/* E84444 80241C54 8EA20008 */ lw $v0, 0x8($s5) -/* E84448 80241C58 18400009 */ blez $v0, .Lmgm_02_80241C80 -/* E8444C 80241C5C 2402000A */ addiu $v0, $zero, 0xA -/* E84450 80241C60 8EA30004 */ lw $v1, 0x4($s5) -/* E84454 80241C64 14620006 */ bne $v1, $v0, .Lmgm_02_80241C80 -/* E84458 80241C68 00000000 */ nop -/* E8445C 80241C6C 8EA30028 */ lw $v1, 0x28($s5) -/* E84460 80241C70 30620001 */ andi $v0, $v1, 0x1 -/* E84464 80241C74 14400002 */ bnez $v0, .Lmgm_02_80241C80 -/* E84468 80241C78 34620003 */ ori $v0, $v1, 0x3 -/* E8446C 80241C7C AEA20028 */ sw $v0, 0x28($s5) -.Lmgm_02_80241C80: -/* E84470 80241C80 8EA20008 */ lw $v0, 0x8($s5) -/* E84474 80241C84 1440000A */ bnez $v0, .Lmgm_02_80241CB0 -/* E84478 80241C88 00000000 */ nop -/* E8447C 80241C8C 8FA80088 */ lw $t0, 0x88($sp) -/* E84480 80241C90 11000007 */ beqz $t0, .Lmgm_02_80241CB0 -/* E84484 80241C94 00000000 */ nop -/* E84488 80241C98 8EA30028 */ lw $v1, 0x28($s5) -/* E8448C 80241C9C 30620001 */ andi $v0, $v1, 0x1 -/* E84490 80241CA0 14400005 */ bnez $v0, .Lmgm_02_80241CB8 -/* E84494 80241CA4 30620002 */ andi $v0, $v1, 0x2 -/* E84498 80241CA8 34620003 */ ori $v0, $v1, 0x3 -/* E8449C 80241CAC AEA20028 */ sw $v0, 0x28($s5) -.Lmgm_02_80241CB0: -/* E844A0 80241CB0 8EA30028 */ lw $v1, 0x28($s5) -/* E844A4 80241CB4 30620002 */ andi $v0, $v1, 0x2 -.Lmgm_02_80241CB8: -/* E844A8 80241CB8 10400010 */ beqz $v0, .Lmgm_02_80241CFC -/* E844AC 80241CBC 2402FFFD */ addiu $v0, $zero, -0x3 -/* E844B0 80241CC0 00621024 */ and $v0, $v1, $v0 -/* E844B4 80241CC4 AEA20028 */ sw $v0, 0x28($s5) -/* E844B8 80241CC8 30620001 */ andi $v0, $v1, 0x1 -/* E844BC 80241CCC 10400007 */ beqz $v0, .Lmgm_02_80241CEC -/* E844C0 80241CD0 00000000 */ nop -/* E844C4 80241CD4 0C03723A */ jal disable_player_input -/* E844C8 80241CD8 00000000 */ nop -/* E844CC 80241CDC 0C03AF9E */ jal partner_disable_input -/* E844D0 80241CE0 00000000 */ nop -/* E844D4 80241CE4 0809073F */ j .Lmgm_02_80241CFC -/* E844D8 80241CE8 00000000 */ nop -.Lmgm_02_80241CEC: -/* E844DC 80241CEC 0C037245 */ jal enable_player_input -/* E844E0 80241CF0 00000000 */ nop -/* E844E4 80241CF4 0C03AF94 */ jal partner_enable_input -/* E844E8 80241CF8 00000000 */ nop -.Lmgm_02_80241CFC: -/* E844EC 80241CFC 8FA80088 */ lw $t0, 0x88($sp) -/* E844F0 80241D00 1500000E */ bnez $t0, .Lmgm_02_80241D3C -/* E844F4 80241D04 2402000A */ addiu $v0, $zero, 0xA -/* E844F8 80241D08 8EA30004 */ lw $v1, 0x4($s5) -/* E844FC 80241D0C 5062000A */ beql $v1, $v0, .Lmgm_02_80241D38 -/* E84500 80241D10 24080001 */ addiu $t0, $zero, 0x1 -/* E84504 80241D14 8EA20008 */ lw $v0, 0x8($s5) -/* E84508 80241D18 14400008 */ bnez $v0, .Lmgm_02_80241D3C -/* E8450C 80241D1C 00000000 */ nop -/* E84510 80241D20 3C02800F */ lui $v0, %hi(gPlayerStatusPtr) -/* E84514 80241D24 8C423F60 */ lw $v0, %lo(gPlayerStatusPtr)($v0) -/* E84518 80241D28 804300B4 */ lb $v1, 0xB4($v0) -/* E8451C 80241D2C 24020012 */ addiu $v0, $zero, 0x12 -/* E84520 80241D30 10620002 */ beq $v1, $v0, .Lmgm_02_80241D3C -/* E84524 80241D34 24080001 */ addiu $t0, $zero, 0x1 -.Lmgm_02_80241D38: -/* E84528 80241D38 AFA80084 */ sw $t0, 0x84($sp) -.Lmgm_02_80241D3C: -/* E8452C 80241D3C 8FA80084 */ lw $t0, 0x84($sp) -/* E84530 80241D40 1100001D */ beqz $t0, .Lmgm_02_80241DB8 -/* E84534 80241D44 0000102D */ daddu $v0, $zero, $zero -/* E84538 80241D48 8EA20028 */ lw $v0, 0x28($s5) -/* E8453C 80241D4C 3C018024 */ lui $at, %hi(mgm_02_pal_variable) -/* E84540 80241D50 AC202A50 */ sw $zero, %lo(mgm_02_pal_variable)($at) -/* E84544 80241D54 30420001 */ andi $v0, $v0, 0x1 -/* E84548 80241D58 10400005 */ beqz $v0, .Lmgm_02_80241D70 -/* E8454C 80241D5C 00000000 */ nop -/* E84550 80241D60 0C037245 */ jal enable_player_input -/* E84554 80241D64 00000000 */ nop -/* E84558 80241D68 0C03AF94 */ jal partner_enable_input -/* E8455C 80241D6C 00000000 */ nop -.Lmgm_02_80241D70: -/* E84560 80241D70 3C10800F */ lui $s0, %hi(gPlayerStatusPtr) -/* E84564 80241D74 26103F60 */ addiu $s0, $s0, %lo(gPlayerStatusPtr) -/* E84568 80241D78 8E020000 */ lw $v0, 0x0($s0) -/* E8456C 80241D7C 3C014334 */ lui $at, (0x43340000 >> 16) -/* E84570 80241D80 44810000 */ mtc1 $at, $f0 -/* E84574 80241D84 AEA00028 */ sw $zero, 0x28($s5) -/* E84578 80241D88 E4400080 */ swc1 $f0, 0x80($v0) -/* E8457C 80241D8C 8EA20008 */ lw $v0, 0x8($s5) -/* E84580 80241D90 14400002 */ bnez $v0, .Lmgm_02_80241D9C -/* E84584 80241D94 240400D4 */ addiu $a0, $zero, 0xD4 -/* E84588 80241D98 2404021D */ addiu $a0, $zero, 0x21D -.Lmgm_02_80241D9C: -/* E8458C 80241D9C 0C052219 */ jal sfx_play_sound -/* E84590 80241DA0 00000000 */ nop -/* E84594 80241DA4 3C030001 */ lui $v1, (0x10002 >> 16) -/* E84598 80241DA8 8E020000 */ lw $v0, 0x0($s0) -/* E8459C 80241DAC 34630002 */ ori $v1, $v1, (0x10002 & 0xFFFF) -/* E845A0 80241DB0 AC4300B8 */ sw $v1, 0xB8($v0) -/* E845A4 80241DB4 24020002 */ addiu $v0, $zero, 0x2 -.Lmgm_02_80241DB8: -/* E845A8 80241DB8 8FBF00B4 */ lw $ra, 0xB4($sp) -/* E845AC 80241DBC 8FBE00B0 */ lw $fp, 0xB0($sp) -/* E845B0 80241DC0 8FB700AC */ lw $s7, 0xAC($sp) -/* E845B4 80241DC4 8FB600A8 */ lw $s6, 0xA8($sp) -/* E845B8 80241DC8 8FB500A4 */ lw $s5, 0xA4($sp) -/* E845BC 80241DCC 8FB400A0 */ lw $s4, 0xA0($sp) -/* E845C0 80241DD0 8FB3009C */ lw $s3, 0x9C($sp) -/* E845C4 80241DD4 8FB20098 */ lw $s2, 0x98($sp) -/* E845C8 80241DD8 8FB10094 */ lw $s1, 0x94($sp) -/* E845CC 80241DDC 8FB00090 */ lw $s0, 0x90($sp) -/* E845D0 80241DE0 D7BE00E0 */ ldc1 $f30, 0xE0($sp) -/* E845D4 80241DE4 D7BC00D8 */ ldc1 $f28, 0xD8($sp) -/* E845D8 80241DE8 D7BA00D0 */ ldc1 $f26, 0xD0($sp) -/* E845DC 80241DEC D7B800C8 */ ldc1 $f24, 0xC8($sp) -/* E845E0 80241DF0 D7B600C0 */ ldc1 $f22, 0xC0($sp) -/* E845E4 80241DF4 D7B400B8 */ ldc1 $f20, 0xB8($sp) -/* E845E8 80241DF8 03E00008 */ jr $ra -/* E845EC 80241DFC 27BD00E8 */ addiu $sp, $sp, 0xE8 diff --git a/ver/pal/asm/nonmatchings/world/area_mgm/mgm_02/mgm_02_2_npc/mgm_02_SetBoxContents.s b/ver/pal/asm/nonmatchings/world/area_mgm/mgm_02/mgm_02_2_npc/mgm_02_SetBoxContents.s deleted file mode 100644 index 9181a1b9c91..00000000000 --- a/ver/pal/asm/nonmatchings/world/area_mgm/mgm_02/mgm_02_2_npc/mgm_02_SetBoxContents.s +++ /dev/null @@ -1,297 +0,0 @@ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ - -/* Generated by spimdisasm 1.11.1 */ - -glabel mgm_02_SetBoxContents -/* E82FA0 802407B0 27BDFF40 */ addiu $sp, $sp, -0xC0 -/* E82FA4 802407B4 24020001 */ addiu $v0, $zero, 0x1 -/* E82FA8 802407B8 AFBF00BC */ sw $ra, 0xBC($sp) -/* E82FAC 802407BC AFB600B8 */ sw $s6, 0xB8($sp) -/* E82FB0 802407C0 AFB500B4 */ sw $s5, 0xB4($sp) -/* E82FB4 802407C4 AFB400B0 */ sw $s4, 0xB0($sp) -/* E82FB8 802407C8 AFB300AC */ sw $s3, 0xAC($sp) -/* E82FBC 802407CC AFB200A8 */ sw $s2, 0xA8($sp) -/* E82FC0 802407D0 AFB100A4 */ sw $s1, 0xA4($sp) -/* E82FC4 802407D4 AFB000A0 */ sw $s0, 0xA0($sp) -/* E82FC8 802407D8 3C018024 */ lui $at, %hi(mgm_02_pal_variable) -/* E82FCC 802407DC AC222A50 */ sw $v0, %lo(mgm_02_pal_variable)($at) -/* E82FD0 802407E0 0C00FC76 */ jal get_enemy -/* E82FD4 802407E4 0000202D */ daddu $a0, $zero, $zero -/* E82FD8 802407E8 240403E8 */ addiu $a0, $zero, 0x3E8 -/* E82FDC 802407EC 8C55006C */ lw $s5, 0x6C($v0) -/* E82FE0 802407F0 240202F6 */ addiu $v0, $zero, 0x2F6 -/* E82FE4 802407F4 AEA00004 */ sw $zero, 0x4($s5) -/* E82FE8 802407F8 AEA20008 */ sw $v0, 0x8($s5) -/* E82FEC 802407FC AEA00020 */ sw $zero, 0x20($s5) -/* E82FF0 80240800 AEA00024 */ sw $zero, 0x24($s5) -/* E82FF4 80240804 0C00A65F */ jal rand_int -/* E82FF8 80240808 AEA00028 */ sw $zero, 0x28($s5) -/* E82FFC 8024080C 3C035555 */ lui $v1, (0x55555556 >> 16) -/* E83000 80240810 34635556 */ ori $v1, $v1, (0x55555556 & 0xFFFF) -/* E83004 80240814 00430018 */ mult $v0, $v1 -/* E83008 80240818 0000802D */ daddu $s0, $zero, $zero -/* E8300C 8024081C 3C068024 */ lui $a2, %hi(mgm_02_InitialConfigurations) -/* E83010 80240820 24C6276C */ addiu $a2, $a2, %lo(mgm_02_InitialConfigurations) -/* E83014 80240824 27A50010 */ addiu $a1, $sp, 0x10 -/* E83018 80240828 00021FC3 */ sra $v1, $v0, 31 -/* E8301C 8024082C 00004010 */ mfhi $t0 -/* E83020 80240830 01032023 */ subu $a0, $t0, $v1 -/* E83024 80240834 00041840 */ sll $v1, $a0, 1 -/* E83028 80240838 00641821 */ addu $v1, $v1, $a0 -/* E8302C 8024083C 00432023 */ subu $a0, $v0, $v1 -/* E83030 80240840 000410C0 */ sll $v0, $a0, 3 -/* E83034 80240844 00441021 */ addu $v0, $v0, $a0 -/* E83038 80240848 00021080 */ sll $v0, $v0, 2 -/* E8303C 8024084C 00441023 */ subu $v0, $v0, $a0 -/* E83040 80240850 00021880 */ sll $v1, $v0, 2 -.Lmgm_02_80240854: -/* E83044 80240854 00661021 */ addu $v0, $v1, $a2 -/* E83048 80240858 24630004 */ addiu $v1, $v1, 0x4 -/* E8304C 8024085C 8C420000 */ lw $v0, 0x0($v0) -/* E83050 80240860 26100001 */ addiu $s0, $s0, 0x1 -/* E83054 80240864 ACA20000 */ sw $v0, 0x0($a1) -/* E83058 80240868 2A020023 */ slti $v0, $s0, 0x23 -/* E8305C 8024086C 1440FFF9 */ bnez $v0, .Lmgm_02_80240854 -/* E83060 80240870 24A50004 */ addiu $a1, $a1, 0x4 -/* E83064 80240874 0000802D */ daddu $s0, $zero, $zero -/* E83068 80240878 3C13EA0E */ lui $s3, (0xEA0EA0EB >> 16) -/* E8306C 8024087C 3673A0EB */ ori $s3, $s3, (0xEA0EA0EB & 0xFFFF) -/* E83070 80240880 27B20010 */ addiu $s2, $sp, 0x10 -.Lmgm_02_80240884: -/* E83074 80240884 0C00A65F */ jal rand_int -/* E83078 80240888 240403E8 */ addiu $a0, $zero, 0x3E8 -/* E8307C 8024088C 00530018 */ mult $v0, $s3 -/* E83080 80240890 240403E8 */ addiu $a0, $zero, 0x3E8 -/* E83084 80240894 00022FC3 */ sra $a1, $v0, 31 -/* E83088 80240898 00004010 */ mfhi $t0 -/* E8308C 8024089C 01021821 */ addu $v1, $t0, $v0 -/* E83090 802408A0 00031943 */ sra $v1, $v1, 5 -/* E83094 802408A4 00658823 */ subu $s1, $v1, $a1 -/* E83098 802408A8 001118C0 */ sll $v1, $s1, 3 -/* E8309C 802408AC 00711821 */ addu $v1, $v1, $s1 -/* E830A0 802408B0 00031880 */ sll $v1, $v1, 2 -/* E830A4 802408B4 00711823 */ subu $v1, $v1, $s1 -/* E830A8 802408B8 0C00A65F */ jal rand_int -/* E830AC 802408BC 00438823 */ subu $s1, $v0, $v1 -/* E830B0 802408C0 00530018 */ mult $v0, $s3 -/* E830B4 802408C4 000227C3 */ sra $a0, $v0, 31 -/* E830B8 802408C8 00004010 */ mfhi $t0 -/* E830BC 802408CC 01021821 */ addu $v1, $t0, $v0 -/* E830C0 802408D0 00031943 */ sra $v1, $v1, 5 -/* E830C4 802408D4 00642023 */ subu $a0, $v1, $a0 -/* E830C8 802408D8 000418C0 */ sll $v1, $a0, 3 -/* E830CC 802408DC 00641821 */ addu $v1, $v1, $a0 -/* E830D0 802408E0 00031880 */ sll $v1, $v1, 2 -/* E830D4 802408E4 00641823 */ subu $v1, $v1, $a0 -/* E830D8 802408E8 00432023 */ subu $a0, $v0, $v1 -/* E830DC 802408EC 12240009 */ beq $s1, $a0, .Lmgm_02_80240914 -/* E830E0 802408F0 26100001 */ addiu $s0, $s0, 0x1 -/* E830E4 802408F4 00041880 */ sll $v1, $a0, 2 -/* E830E8 802408F8 02431821 */ addu $v1, $s2, $v1 -/* E830EC 802408FC 00111080 */ sll $v0, $s1, 2 -/* E830F0 80240900 02421021 */ addu $v0, $s2, $v0 -/* E830F4 80240904 8C440000 */ lw $a0, 0x0($v0) -/* E830F8 80240908 8C650000 */ lw $a1, 0x0($v1) -/* E830FC 8024090C AC640000 */ sw $a0, 0x0($v1) -/* E83100 80240910 AC450000 */ sw $a1, 0x0($v0) -.Lmgm_02_80240914: -/* E83104 80240914 2A022710 */ slti $v0, $s0, 0x2710 -/* E83108 80240918 1440FFDA */ bnez $v0, .Lmgm_02_80240884 -/* E8310C 8024091C 2407FFFF */ addiu $a3, $zero, -0x1 -/* E83110 80240920 0000802D */ daddu $s0, $zero, $zero -/* E83114 80240924 3C068024 */ lui $a2, %hi(mgm_02_BoxColliderIDs) -/* E83118 80240928 24C6299C */ addiu $a2, $a2, %lo(mgm_02_BoxColliderIDs) -/* E8311C 8024092C 3C058024 */ lui $a1, %hi(mgm_02_BoxModelIDs) -/* E83120 80240930 24A52910 */ addiu $a1, $a1, %lo(mgm_02_BoxModelIDs) -/* E83124 80240934 27A40010 */ addiu $a0, $sp, 0x10 -/* E83128 80240938 02A0182D */ daddu $v1, $s5, $zero -.Lmgm_02_8024093C: -/* E8312C 8024093C AC67002C */ sw $a3, 0x2C($v1) -/* E83130 80240940 AC600030 */ sw $zero, 0x30($v1) -/* E83134 80240944 8C820000 */ lw $v0, 0x0($a0) -/* E83138 80240948 24840004 */ addiu $a0, $a0, 0x4 -/* E8313C 8024094C 26100001 */ addiu $s0, $s0, 0x1 -/* E83140 80240950 AC620034 */ sw $v0, 0x34($v1) -/* E83144 80240954 8CA20000 */ lw $v0, 0x0($a1) -/* E83148 80240958 24A50004 */ addiu $a1, $a1, 0x4 -/* E8314C 8024095C AC620038 */ sw $v0, 0x38($v1) -/* E83150 80240960 8CC20000 */ lw $v0, 0x0($a2) -/* E83154 80240964 24C60004 */ addiu $a2, $a2, 0x4 -/* E83158 80240968 AC670040 */ sw $a3, 0x40($v1) -/* E8315C 8024096C AC670044 */ sw $a3, 0x44($v1) -/* E83160 80240970 AC62003C */ sw $v0, 0x3C($v1) -/* E83164 80240974 2A020023 */ slti $v0, $s0, 0x23 -/* E83168 80240978 1440FFF0 */ bnez $v0, .Lmgm_02_8024093C -/* E8316C 8024097C 2463001C */ addiu $v1, $v1, 0x1C -/* E83170 80240980 2410000A */ addiu $s0, $zero, 0xA -.Lmgm_02_80240984: -/* E83174 80240984 0C00FC76 */ jal get_enemy -/* E83178 80240988 0200202D */ daddu $a0, $s0, $zero -/* E8317C 8024098C AC40006C */ sw $zero, 0x6C($v0) -/* E83180 80240990 26100001 */ addiu $s0, $s0, 0x1 -/* E83184 80240994 2A02000F */ slti $v0, $s0, 0xF -/* E83188 80240998 1440FFFA */ bnez $v0, .Lmgm_02_80240984 -/* E8318C 8024099C 00000000 */ nop -/* E83190 802409A0 2410001E */ addiu $s0, $zero, 0x1E -.Lmgm_02_802409A4: -/* E83194 802409A4 0C00FC76 */ jal get_enemy -/* E83198 802409A8 0200202D */ daddu $a0, $s0, $zero -/* E8319C 802409AC AC40006C */ sw $zero, 0x6C($v0) -/* E831A0 802409B0 26100001 */ addiu $s0, $s0, 0x1 -/* E831A4 802409B4 2A020023 */ slti $v0, $s0, 0x23 -/* E831A8 802409B8 1440FFFA */ bnez $v0, .Lmgm_02_802409A4 -/* E831AC 802409BC 00000000 */ nop -/* E831B0 802409C0 24100064 */ addiu $s0, $zero, 0x64 -.Lmgm_02_802409C4: -/* E831B4 802409C4 0C00FC76 */ jal get_enemy -/* E831B8 802409C8 0200202D */ daddu $a0, $s0, $zero -/* E831BC 802409CC AC40006C */ sw $zero, 0x6C($v0) -/* E831C0 802409D0 26100001 */ addiu $s0, $s0, 0x1 -/* E831C4 802409D4 2A02006E */ slti $v0, $s0, 0x6E -/* E831C8 802409D8 1440FFFA */ bnez $v0, .Lmgm_02_802409C4 -/* E831CC 802409DC 00000000 */ nop -/* E831D0 802409E0 24100009 */ addiu $s0, $zero, 0x9 -/* E831D4 802409E4 3C028025 */ lui $v0, %hi(D_80248600 + 0x24) -/* E831D8 802409E8 24428704 */ addiu $v0, $v0, %lo(D_80248600 + 0x24) -.Lmgm_02_802409EC: -/* E831DC 802409EC AC400000 */ sw $zero, 0x0($v0) -/* E831E0 802409F0 2610FFFF */ addiu $s0, $s0, -0x1 -/* E831E4 802409F4 0601FFFD */ bgez $s0, .Lmgm_02_802409EC -/* E831E8 802409F8 2442FFFC */ addiu $v0, $v0, -0x4 -/* E831EC 802409FC 24140001 */ addiu $s4, $zero, 0x1 -/* E831F0 80240A00 3C168025 */ lui $s6, %hi(D_80248600) -/* E831F4 80240A04 26D686E0 */ addiu $s6, $s6, %lo(D_80248600) -/* E831F8 80240A08 02A0982D */ daddu $s3, $s5, $zero -.Lmgm_02_80240A0C: -/* E831FC 80240A0C 8E630034 */ lw $v1, 0x34($s3) -/* E83200 80240A10 1074001B */ beq $v1, $s4, .Lmgm_02_80240A80 -/* E83204 80240A14 28620002 */ slti $v0, $v1, 0x2 -/* E83208 80240A18 10400005 */ beqz $v0, .Lmgm_02_80240A30 -/* E8320C 80240A1C 24020002 */ addiu $v0, $zero, 0x2 -/* E83210 80240A20 10600009 */ beqz $v1, .Lmgm_02_80240A48 -/* E83214 80240A24 2402000A */ addiu $v0, $zero, 0xA -/* E83218 80240A28 080902E8 */ j .Lmgm_02_80240BA0 -/* E8321C 80240A2C 2673001C */ addiu $s3, $s3, 0x1C -.Lmgm_02_80240A30: -/* E83220 80240A30 1062002E */ beq $v1, $v0, .Lmgm_02_80240AEC -/* E83224 80240A34 24020003 */ addiu $v0, $zero, 0x3 -/* E83228 80240A38 10620057 */ beq $v1, $v0, .Lmgm_02_80240B98 -/* E8322C 80240A3C 24020032 */ addiu $v0, $zero, 0x32 -/* E83230 80240A40 080902E8 */ j .Lmgm_02_80240BA0 -/* E83234 80240A44 2673001C */ addiu $s3, $s3, 0x1C -.Lmgm_02_80240A48: -/* E83238 80240A48 AE62002C */ sw $v0, 0x2C($s3) -/* E8323C 80240A4C 0040882D */ daddu $s1, $v0, $zero -.Lmgm_02_80240A50: -/* E83240 80240A50 0C00FC76 */ jal get_enemy -/* E83244 80240A54 0220202D */ daddu $a0, $s1, $zero -/* E83248 80240A58 0040802D */ daddu $s0, $v0, $zero -/* E8324C 80240A5C 8E02006C */ lw $v0, 0x6C($s0) -/* E83250 80240A60 1040003B */ beqz $v0, .Lmgm_02_80240B50 -/* E83254 80240A64 00000000 */ nop -/* E83258 80240A68 26310001 */ addiu $s1, $s1, 0x1 -/* E8325C 80240A6C 2A22000F */ slti $v0, $s1, 0xF -/* E83260 80240A70 1440FFF7 */ bnez $v0, .Lmgm_02_80240A50 -/* E83264 80240A74 00000000 */ nop -/* E83268 80240A78 080902E8 */ j .Lmgm_02_80240BA0 -/* E8326C 80240A7C 2673001C */ addiu $s3, $s3, 0x1C -.Lmgm_02_80240A80: -/* E83270 80240A80 2402001E */ addiu $v0, $zero, 0x1E -/* E83274 80240A84 AE62002C */ sw $v0, 0x2C($s3) -/* E83278 80240A88 0040882D */ daddu $s1, $v0, $zero -.Lmgm_02_80240A8C: -/* E8327C 80240A8C 0C00FC76 */ jal get_enemy -/* E83280 80240A90 0220202D */ daddu $a0, $s1, $zero -/* E83284 80240A94 0040802D */ daddu $s0, $v0, $zero -/* E83288 80240A98 8E02006C */ lw $v0, 0x6C($s0) -/* E8328C 80240A9C 1040002C */ beqz $v0, .Lmgm_02_80240B50 -/* E83290 80240AA0 00000000 */ nop -/* E83294 80240AA4 26310001 */ addiu $s1, $s1, 0x1 -/* E83298 80240AA8 2A220023 */ slti $v0, $s1, 0x23 -/* E8329C 80240AAC 1440FFF7 */ bnez $v0, .Lmgm_02_80240A8C -/* E832A0 80240AB0 00000000 */ nop -/* E832A4 80240AB4 080902E8 */ j .Lmgm_02_80240BA0 -/* E832A8 80240AB8 2673001C */ addiu $s3, $s3, 0x1C -.Lmgm_02_80240ABC: -/* E832AC 80240ABC 86040008 */ lh $a0, 0x8($s0) -/* E832B0 80240AC0 0C00EBF7 */ jal get_npc_unsafe -/* E832B4 80240AC4 00000000 */ nop -/* E832B8 80240AC8 0040902D */ daddu $s2, $v0, $zero -/* E832BC 80240ACC 0040202D */ daddu $a0, $v0, $zero -/* E832C0 80240AD0 AE14006C */ sw $s4, 0x6C($s0) -/* E832C4 80240AD4 0C00EC3B */ jal disable_npc_shadow -/* E832C8 80240AD8 AE710040 */ sw $s1, 0x40($s3) -/* E832CC 80240ADC 8E420000 */ lw $v0, 0x0($s2) -/* E832D0 80240AE0 34420002 */ ori $v0, $v0, 0x2 -/* E832D4 80240AE4 080902C8 */ j .Lmgm_02_80240B20 -/* E832D8 80240AE8 AE420000 */ sw $v0, 0x0($s2) -.Lmgm_02_80240AEC: -/* E832DC 80240AEC 24020046 */ addiu $v0, $zero, 0x46 -/* E832E0 80240AF0 AE62002C */ sw $v0, 0x2C($s3) -/* E832E4 80240AF4 24110064 */ addiu $s1, $zero, 0x64 -.Lmgm_02_80240AF8: -/* E832E8 80240AF8 0C00FC76 */ jal get_enemy -/* E832EC 80240AFC 0220202D */ daddu $a0, $s1, $zero -/* E832F0 80240B00 0040802D */ daddu $s0, $v0, $zero -/* E832F4 80240B04 8E02006C */ lw $v0, 0x6C($s0) -/* E832F8 80240B08 1040FFEC */ beqz $v0, .Lmgm_02_80240ABC -/* E832FC 80240B0C 00000000 */ nop -/* E83300 80240B10 26310001 */ addiu $s1, $s1, 0x1 -/* E83304 80240B14 2A22006E */ slti $v0, $s1, 0x6E -/* E83308 80240B18 1440FFF7 */ bnez $v0, .Lmgm_02_80240AF8 -/* E8330C 80240B1C 00000000 */ nop -.Lmgm_02_80240B20: -/* E83310 80240B20 0000882D */ daddu $s1, $zero, $zero -/* E83314 80240B24 02C0202D */ daddu $a0, $s6, $zero -.Lmgm_02_80240B28: -/* E83318 80240B28 0080182D */ daddu $v1, $a0, $zero -/* E8331C 80240B2C 8C620000 */ lw $v0, 0x0($v1) -/* E83320 80240B30 10400013 */ beqz $v0, .Lmgm_02_80240B80 -/* E83324 80240B34 00112880 */ sll $a1, $s1, 2 -/* E83328 80240B38 26310001 */ addiu $s1, $s1, 0x1 -/* E8332C 80240B3C 2A22000B */ slti $v0, $s1, 0xB -/* E83330 80240B40 1440FFF9 */ bnez $v0, .Lmgm_02_80240B28 -/* E83334 80240B44 24640004 */ addiu $a0, $v1, 0x4 -/* E83338 80240B48 080902E8 */ j .Lmgm_02_80240BA0 -/* E8333C 80240B4C 2673001C */ addiu $s3, $s3, 0x1C -.Lmgm_02_80240B50: -/* E83340 80240B50 86040008 */ lh $a0, 0x8($s0) -/* E83344 80240B54 0C00EBF7 */ jal get_npc_unsafe -/* E83348 80240B58 00000000 */ nop -/* E8334C 80240B5C 0040902D */ daddu $s2, $v0, $zero -/* E83350 80240B60 0240202D */ daddu $a0, $s2, $zero -/* E83354 80240B64 AE14006C */ sw $s4, 0x6C($s0) -/* E83358 80240B68 0C00EC3B */ jal disable_npc_shadow -/* E8335C 80240B6C AE710040 */ sw $s1, 0x40($s3) -/* E83360 80240B70 8E420000 */ lw $v0, 0x0($s2) -/* E83364 80240B74 34420002 */ ori $v0, $v0, 0x2 -/* E83368 80240B78 080902E7 */ j .Lmgm_02_80240B9C -/* E8336C 80240B7C AE420000 */ sw $v0, 0x0($s2) -.Lmgm_02_80240B80: -/* E83370 80240B80 AC940000 */ sw $s4, 0x0($a0) -/* E83374 80240B84 3C028024 */ lui $v0, %hi(mgm_02_PanelModelIDs) -/* E83378 80240B88 00451021 */ addu $v0, $v0, $a1 -/* E8337C 80240B8C 8C422A28 */ lw $v0, %lo(mgm_02_PanelModelIDs)($v0) -/* E83380 80240B90 080902E7 */ j .Lmgm_02_80240B9C -/* E83384 80240B94 AE620044 */ sw $v0, 0x44($s3) -.Lmgm_02_80240B98: -/* E83388 80240B98 AE62002C */ sw $v0, 0x2C($s3) -.Lmgm_02_80240B9C: -/* E8338C 80240B9C 2673001C */ addiu $s3, $s3, 0x1C -.Lmgm_02_80240BA0: -/* E83390 80240BA0 26A203D4 */ addiu $v0, $s5, 0x3D4 -/* E83394 80240BA4 0262102A */ slt $v0, $s3, $v0 -/* E83398 80240BA8 1440FF98 */ bnez $v0, .Lmgm_02_80240A0C -/* E8339C 80240BAC 00000000 */ nop -/* E833A0 80240BB0 8FBF00BC */ lw $ra, 0xBC($sp) -/* E833A4 80240BB4 8FB600B8 */ lw $s6, 0xB8($sp) -/* E833A8 80240BB8 8FB500B4 */ lw $s5, 0xB4($sp) -/* E833AC 80240BBC 8FB400B0 */ lw $s4, 0xB0($sp) -/* E833B0 80240BC0 8FB300AC */ lw $s3, 0xAC($sp) -/* E833B4 80240BC4 8FB200A8 */ lw $s2, 0xA8($sp) -/* E833B8 80240BC8 8FB100A4 */ lw $s1, 0xA4($sp) -/* E833BC 80240BCC 8FB000A0 */ lw $s0, 0xA0($sp) -/* E833C0 80240BD0 24020002 */ addiu $v0, $zero, 0x2 -/* E833C4 80240BD4 03E00008 */ jr $ra -/* E833C8 80240BD8 27BD00C0 */ addiu $sp, $sp, 0xC0 diff --git a/ver/pal/splat.yaml b/ver/pal/splat.yaml index 19461ec79a8..9ebec08f057 100644 --- a/ver/pal/splat.yaml +++ b/ver/pal/splat.yaml @@ -34,7 +34,312 @@ segments: - name: header type: header start: 0 - - [0x40, bin] + - name: boot + type: code + start: 0x0040 + vram: 0xA4000040 + subsegments: + - [0x0040, hasm, boot/ipl3_boot] + - [0x0B70, bin, rspboot_font] + - name: main + type: code + start: 0x1000 + vram: 0x80025C00 + subsegments: + - [auto, hasm, boot/entry_point] + - [auto, c, bss/main_pre_bss] + - [auto, c, is_debug, -g -fforce-addr] + - [auto, c, main_pre] + - [auto, c, main] + - [auto, c, main_loop] + - [auto, c, background_gfx] + - [auto, c, input] + - [auto, c, rumble] + - [auto, c, 43F0] + - [auto, c, heap] + - [auto, c, fio] + - [auto, c, curtains] + - [auto, c, crash_screen] + - [auto, c, os/nusys/nusimgr] + - [auto, c, os/nusys/nugfxtaskmgr, -fforce-addr] + - [auto, c, load_obfuscation_shims] + - [auto, c, cam_main] + - [auto, c, cam_mode_interp] + - [auto, c, cam_mode_unused_radial] + - [auto, c, cam_mode_minimal] + - [auto, c, cam_mode_no_interp] + - [auto, c, cam_mode_unused_ahead] + - [auto, c, cam_mode_unused_leading] + - [auto, c, cam_mode_zone_interp] + - [auto, c, cam_math] + - [auto, c, game_modes] + - [auto, c, state_startup] + - [auto, c, startup_screen_fading] + - [auto, c, state_battle] + - [auto, c, state_logos] + - [auto, c, state_pause] + - [auto, c, state_file_select] + - [auto, c, state_world] + - [auto, c, state_map_transitions] + - [auto, c, state_intro] + - [auto, c, state_title_screen] + - [auto, c, state_demo] + - [auto, c, npc] + - [auto, c, encounter] + - [auto, c, encounter_api] + - [auto, c, status_icons] + - [auto, c, 23680] + - [auto, c, 25AF0] + - [auto, c, audio/25f00_len_940] + - [auto, c, audio/sfx_player] + - [auto, c, audio/28910_len_5090] + - [auto, c, audio/2BF90] + - [auto, c, audio/2d9a0_len_890] + - [auto, c, audio/2e230_len_2190] + - [auto, c, audio/303c0_len_3e10] + - [auto, c, audio/30450] + - [auto, c, audio/31650] + - [auto, c, audio/33450] + - [auto, c, audio/tables] + - [auto, c, audio/reverb] + - [auto, c, effects] + - [auto, c, 5B320] + - [auto, c, world/world] + - [auto, c, collision] + - [auto, c, 38F00] + - [auto, c, npc_follow] + - [auto, c, os/nusys/nuboot] + - [auto, c, os/nusys/nusched, -fforce-addr] + - [auto, c, os/nusys/nugfxfuncset] + - [auto, c, os/nusys/nugfxprenmifuncset] + - [auto, c, os/nusys/nugfxtaskallendwait, -fforce-addr] + - [auto, c, os/nusys/nugfxsetcfb, -fforce-addr] + - [auto, c, os/nusys/nugfxdisplayoff] + - [auto, c, os/nusys/nugfxdisplayon] + - [auto, c, os/nusys/nupiinit] + - [auto, c, os/nusys/nupireadrom] + - [auto, c, os/nusys/nugfxinit, -fforce-addr] + - [auto, c, os/nusys/nucontinit] + - [auto, c, os/nusys/nucontdataget, -fforce-addr] + - [auto, c, os/nusys/nucontpakmgr, -fforce-addr] + - [auto, c, os/nusys/nucontrmbmgr, -fforce-addr] + - [auto, c, os/nusys/nucontrmbstart, -fforce-addr] + - [auto, c, os/nusys/nucontrmbcheck] + - [auto, c, os/nusys/nucontrmbmodeset, -fforce-addr] + - [auto, c, os/nusys/nucontrmbforcestop] + - [auto, c, os/nusys/nucontrmbforcestopend] + - [auto, c, os/nusys/nupireadromoverlay] + - [auto, c, os/nusys/nugfxthread, -fforce-addr] + - [auto, c, os/nusys/nugfxswapcfbfuncset] + - [auto, c, os/nusys/nugfxswapcfb] + - [auto, c, os/nusys/nugfxretracewait] + - [auto, c, os/nusys/nugfxsetucodefifo] + - [auto, c, os/nusys/nusicallbackadd] + - [auto, c, os/nusys/nusicallbackremove] + - [auto, c, os/nusys/nucontmgr, -fforce-addr] + - [auto, c, os/nusys/nucontdatalock] + - [auto, c, os/nusys/nucontqueryread] + - [auto, hasm, os/osSetIntMask] + - [auto, c, os/pimgr, gcc_272 -O3] + - [auto, c, os/epirawdma, gcc_272 -O3] + - [auto, c, os/epiwrite, gcc_272 -O3] + - [auto, c, os/epiread, gcc_272 -O3] + - [auto, c, os/epidma, gcc_272 -O3] + - [auto, c, os/epilinkhandle, gcc_272 -O3] + - [auto, c, os/cartrominit, gcc_272 -O3] + - [auto, c, os/devmgr, gcc_272 -O3] + - [auto, c, os/piacs, gcc_272 -O3] + - [auto, c, os/flashinit, gcc_272 -O3] + - [auto, c, os/flashreadid, gcc_272 -O3] + - [auto, c, os/flashsectorerase, gcc_272 -O3] + - [auto, c, os/flashwritebuffer, gcc_272 -O3] + - [auto, c, os/flashwritearray, gcc_272 -O3] + - [auto, c, os/flashreadarray, gcc_272 -O3] + - [auto, c, os/aigetlength, gcc_272 -O3] + - [auto, c, os/aigetstatus, gcc_272 -O3] + - [auto, c, os/aisetfrequency, gcc_272 -O3] + - [auto, c, os/aisetnextbuf, gcc_272 -O3] + - [auto, hasm, os/osInvalDCache] + - [auto, hasm, os/osInvalICache] + - [auto, hasm, os/osWritebackDCache] + - [auto, hasm, os/osWritebackDCacheAll] + - [auto, c, os/contquery, gcc_272 -O3] + - [auto, c, os/contreaddata, gcc_272 -O3] + - [auto, c, os/controller, gcc_272 -O3] + - [auto, c, os/virtualtophysical, gcc_272 -O3] + - [auto, c, os/sqrtf, -ffast-math] + - [auto, c, os/coss, gcc_272 -O3] + - [auto, c, os/frustum, gcc_272 -O3] + - [auto, c, os/guLookAt, gcc_272 -O3] + - [auto, c, os/lookathil, gcc_272 -O3] + - [auto, c, os/lookatref, gcc_272 -O3] + - [auto, c, os/guOrtho, gcc_272 -O3] + - [auto, c, os/perspective, gcc_272 -O3] + - [auto, c, os/position, gcc_272 -O3] + - [auto, c, os/rotateRPY, gcc_272 -O3] + - [auto, c, os/sins, gcc_272 -O3] + - [auto, hasm, os/bcopy] + - [auto, hasm, os/bzero] + - [auto, c, os/string, gcc_272 -O3] + - [auto, c, os/xprintf, gcc_272 -O3] + - [auto, c, os/sprintf, gcc_272 -O3] + - [auto, c, os/createmesgqueue] + - [auto, c, os/jammesg, gcc_272 -O3] + - [auto, c, os/recvmesg, gcc_272 -O3] + - [auto, c, os/sendmesg, gcc_272 -O3] + - [auto, c, os/seteventmesg, gcc_272 -O3] + - [auto, hasm, os/osGetCount] + - [auto, c, os/sptask, gcc_272 -O3] + - [auto, c, os/sptaskyield, gcc_272 -O3] + - [auto, c, os/sptaskyielded, gcc_272 -O3] + - [auto, c, os/sirawdma, gcc_272 -O3] + - [auto, c, os/siacs, gcc_272 -O3] + - [auto, c, os/createthread, gcc_272 -O3] + - [auto, c, os/getthreadpri, gcc_272 -O3] + - [auto, c, os/setthreadpri, gcc_272 -O3] + - [auto, c, os/startthread, gcc_272 -O3] + - [auto, c, os/stopthread, gcc_272 -O3] + - [auto, c, os/thread, gcc_272 -O3] + - [auto, c, os/yieldthread, gcc_272 -O3] + - [auto, c, os/getactivequeue, gcc_272 -O3] + - [auto, c, os/gettime, gcc_272 -O3] + - [auto, c, os/settime, gcc_272 -O3] + - [auto, c, os/settimer, gcc_272 -O3] + - [auto, c, os/timerintr, gcc_272 -O3] + - [auto, hasm, os/osMapTLB] + - [auto, hasm, os/__osProbeTLB] + - [auto, hasm, os/osUnmapTLB] + - [auto, hasm, os/osUnmapTLBAll] + - [auto, c, os/vigetcurrframebuf, gcc_272 -O3] + - [auto, c, os/vigetnextframebuf, gcc_272 -O3] + - [auto, c, os/vigetmode, gcc_272 -O3] + - [auto, c, os/vimgr, gcc_272 -O3] + - [auto, c, os/vitbl, gcc_272 -O3] + - [auto, c, os/visetevent, gcc_272 -O3] + - [auto, c, os/visetmode, gcc_272 -O3] + - [auto, c, os/visetspecial, gcc_272 -O3] + - [auto, c, os/visetyscale, gcc_272 -O3] + - [auto, c, os/viswapbuf, gcc_272 -O3] + - [auto, c, os/viswapcontext, gcc_272 -O3] + - [auto, c, os/viblack, gcc_272 -O3] + - [auto, c, os/virepeatline, gcc_272 -O3] + - [auto, c, os/vimodefpallpn1] + - [auto, hasm, os/padding] + - [auto, hasm, os/guMtxIdent] + - [auto, hasm, os/guMtxIdentF] + - [auto, hasm, os/guMtxF2L] + - [auto, hasm, os/guMtxL2F] + - [auto, hasm, os/guMtxCatF] + - [auto, hasm, os/guScale] + - [auto, hasm, os/guScaleF] + - [auto, hasm, os/guTranslate] + - [auto, hasm, os/guTranslateF] + - [auto, c, os/guMtxCat, gcc_272 -O3] + - [auto, c, os/guMtxXFML, gcc_272 -O3] + - [auto, c, os/guMtxXFMF, gcc_272 -O3] + - [auto, c, os/guRotate, gcc_272 -O3] + - [auto, c, os/motor, gcc_272 -O3] + - [auto, c, os/pfsallocatefile, gcc_272 -O3] + - [auto, c, os/pfsdeletefile, gcc_272 -O3] + - [auto, c, os/pfsreadwritefile, gcc_272 -O3] + - [auto, c, os/pfsfilestate, gcc_272 -O3] + - [auto, c, os/pfsfindfile, gcc_272 -O3] + - [auto, c, os/pfsfreeblocks, gcc_272 -O3] + - [auto, c, os/pfsnumfiles, gcc_272 -O3] + - [auto, c, os/pfsinitpak, gcc_272 -O3] + - [auto, c, os/pfsrepairid, gcc_272 -O3] + - [auto, c, os/pfsgetstatus, gcc_272 -O3] + - [auto, c, os/pfsselectbank, gcc_272 -O3] + - [auto, c, os/contpfs, gcc_272 -O3] + - [auto, c, os/contramread, gcc_272 -O3] + - [auto, c, os/contramwrite, gcc_272 -O3] + - [auto, hasm, os/parameters] + - [auto, c, os/afterprenmi, gcc_272 -O3] + - [auto, c, os/initialize, gcc_272 -O3] + - [auto, hasm, os/exceptasm] + - [auto, hasm, os/__osDisableInt] + - [auto, hasm, os/__osRestoreInt] + - [auto, c, os/setglobalintmask, gcc_272 -O3] + - [auto, c, os/resetglobalintmask, gcc_272 -O3] + - [auto, c, os/pirawdma, gcc_272 -O3] + - [auto, c, os/pigetcmdq, gcc_272 -O3] + - [auto, c, os/epirawread, gcc_272 -O3] + - [auto, c, os/epirawwrite, gcc_272 -O3] + - [auto, c, os/flashgetaddr, gcc_272 -O3] + - [auto, c, os/flashreadstatus, gcc_272 -O3] + - [auto, c, os/flashclearstatus, gcc_272 -O3] + - [auto, c, os/ai, gcc_272 -O3] + - [auto, hasm, os/bcmp] + - [auto, c, os/xlitob, gcc_272 -O3] + - [auto, c, os/xldtob, gcc_272 -O3] + - [auto, hasm, os/__osGetCause] + - [auto, hasm, os/__osGetSR] + - [auto, hasm, os/__osSetCompare] + - [auto, hasm, os/setfpccsr] + - [auto, hasm, os/setsr] + - [auto, hasm, os/__osSetWatchLo] + - [auto, c, os/sp, gcc_272 -O3] + - [auto, c, os/spgetstat, gcc_272 -O3] + - [auto, c, os/spsetstat, gcc_272 -O3] + - [auto, c, os/spsetpc, gcc_272 -O3] + - [auto, c, os/sprawdma, gcc_272 -O3] + - [auto, c, os/sirawread, gcc_272 -O3] + - [auto, c, os/sirawwrite, gcc_272 -O3] + - [auto, c, os/crc, gcc_272 -O3] + - [auto, c, os/destroythread, gcc_272 -O3] + - [auto, hasm, os/osMapTLBRdb] + - [auto, c, os/vi, gcc_272 -O3] + - [auto, c, os/vimodentsclan1] + - [auto, c, os/vimodepallan1] + - [auto, c, os/vimodempallan1] + - [auto, c, os/vigetcurrcontext, gcc_272 -O3] + - [auto, hasm, os/padding_alt] + - [auto, hasm, os/guNormalize] + - [auto, c, os/pfschecker, gcc_272 -O3] + - [auto, c, os/pfsisplug, gcc_272 -O3] + - [auto, c, os/ldiv, gcc_272 -O3] + - [auto, c, os/osSiDeviceBusy] + - [auto, c, gcc/divdi3, -g2] + - [auto, c, gcc/moddi3, -g2] + - [auto, c, gcc/udivdi3, -g2] + - [auto, c, gcc/umoddi3, -g2] + - [auto, c, os/strcpy, gcc_272 -O1] + - [auto, c, os/strcmp, gcc_272 -O1] + - [auto, c, os/memset, gcc_272 -O1] + - [auto, hasm, os/decode_yay0] + - [auto, c, bss/main_post_bss] + - [auto, c, battle/battle] + - [auto, c, battle/battle_bss] + - [0x4B8B0, bin, n_aspMain_text] + - start: 0x4C510 + type: .data + name: main_pre + subsegments: + - [0x4C510] + - [0x4C520, i4, reset_tiles, 128, 8] + - start: 0x4CCF0 + type: .data + name: curtains + subsegments: + - [0x4CCF0, i4, theater/walls, 16, 32] + - [0x4CDF0] + - [0x4CE40, rgba32, theater/curtains, 32, 32] #TODO: flip + - [0x4DE40] + - [0x4DE90, ci4, theater/floor, 32, 16] #TODO: flip + - [0x4DF90, palette, theater/floor] + - [0x4DFB0] + - [0x4E030, vtx, theater/left_wall_vtx] + - [0x4E090, vtx, theater/right_wall_vtx] + - [0x4E0F0, vtx, theater/floor_vtx] + - [0x4E280, vtx, theater/left_inset_shadow_vtx] + - [0x4E2C0, vtx, theater/right_inset_shadow_vtx] + - [0x4E300, vtx, theater/curtain_vtx] + - [0x4E4F0, vtx, theater/wall_shadows_vtx] + - [0x4E570] + - [0x6D820, bin, gspF3DEX2kawase_fifo_text] + - [0x6EE50, bin, gspF3DEX2kawase_fifo_data] + - [0x6F270, bin, n_aspMain_data] + - [0x6F520] - name: engine1 type: code @@ -585,6 +890,20 @@ segments: - [0xE3690, vtx, vtx/stencil2] - [0xE3810] - [0xE61D0] + - name: heaps + type: code + start: 0xE61D0 + vram: 0x80195000 + subalign: 0x1000 + subsegments: + - [auto, c, heaps] + - name: heaps4 + type: code + start: 0xE61D0 + vram: 0x802C3000 + subalign: 0x1000 + subsegments: + - [auto, c, heaps4] - name: evt type: code dir: evt @@ -645,8 +964,96 @@ segments: - [0x10C870, i4, entity/shadow/circle_big, 32, 32] - [0x10CA70] - - [0x10E710, bin] + - name: font_width + type: code + start: 0x10E710 + vram: 0x802F16D0 + subsegments: + - [auto, c, msg_data] + - [auto, c, msg_img] + - start: 0x10E9B0 + type: .data + name: msg_img + subsegments: + - [auto, ci4, ui/msg/bubble_left, 32, 64, ui/msg/bubble_left] + - [auto, ci4, ui/msg/bubble_mid, 8, 64, ui/msg/bubble_left] + - [auto, ci4, ui/msg/bubble_right, 32, 64, ui/msg/bubble_left] + - [auto, ci4, ui/msg/arrow, 16, 16, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_a_1_1, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_a_1_2, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_a_1_3, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_a_1_4, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_a_1_5, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_a_2_1, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_a_2_5, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_a_3_1, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_a_3_5, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_a_4_1, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_a_4_5, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_a_5_1, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_a_5_2, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_a_5_3, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_a_5_4, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_a_5_5, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_b_1_1, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_b_1_2, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_b_1_3, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_b_1_4, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_b_1_5, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_b_2_1, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_b_2_5, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_b_3_1, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_b_3_5, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_b_4_1, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_b_4_5, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_b_5_1, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_b_5_2, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_b_5_3, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_b_5_4, 8, 8, ui/msg/bubble_left] + - [auto, ci4, ui/msg/frame_b_5_5, 8, 8, ui/msg/bubble_left] + # all 16 following palettes can be applied to all images above + - {start: auto, type: palette, name: ui/msg/bubble_left, size: 0x200} + #- [auto, palette, ui/msg/palette_0] + #- [auto, palette, ui/msg/palette_1] + #- [auto, palette, ui/msg/palette_2] + #- [auto, palette, ui/msg/palette_3] + #- [auto, palette, ui/msg/palette_4] + #- [auto, palette, ui/msg/palette_5] + #- [auto, palette, ui/msg/palette_6] + #- [auto, palette, ui/msg/palette_7] + #- [auto, palette, ui/msg/palette_8] + #- [auto, palette, ui/msg/palette_9] + #- [auto, palette, ui/msg/palette_A] + #- [auto, palette, ui/msg/palette_B] + #- [auto, palette, ui/msg/palette_C] + #- [auto, palette, ui/msg/palette_D] + #- [auto, palette, ui/msg/palette_E] + #- [auto, palette, ui/msg/palette_F] + - [auto, ci4, ui/msg/sign_corner_topleft, 16, 16, ui/msg/sign_corner_topleft] + - [auto, ci4, ui/msg/sign_corner_topright, 16, 16, ui/msg/sign_corner_topleft] + - [auto, ci4, ui/msg/sign_corner_bottomleft, 16, 16, ui/msg/sign_corner_topleft] + - [auto, ci4, ui/msg/sign_corner_bottomright, 16, 16, ui/msg/sign_corner_topleft] + - [auto, ci4, ui/msg/lamppost_corner_bottomright, 16, 16, ui/msg/lamppost_corner_bottomright] + - [auto, ci4, ui/msg/sign_side_top, 32, 16, ui/msg/sign_corner_topleft] + - [auto, ci4, ui/msg/sign_side_left, 16, 40, ui/msg/sign_corner_topleft] + - [auto, ci4, ui/msg/sign_side_right, 16, 40, ui/msg/sign_corner_topleft] + - [auto, ci4, ui/msg/sign_side_bottom, 32, 16, ui/msg/sign_corner_topleft] + - [auto, ci4, ui/msg/sign_fill, 8, 8, ui/msg/sign_corner_topleft] + # these two palettes can be applied to all sign and lamppost frame images + - [auto, palette, ui/msg/sign_corner_topleft] + - [auto, palette, ui/msg/lamppost_corner_bottomright] + - [auto, i4, ui/msg/background, 64, 64] + - [auto, ci4, ui/msg/rewind_arrow, 24, 24] + - [auto, palette, ui/msg/rewind_arrow] + - [auto, rgba16, ui/msg/star, 16, 18] + - [auto, i4, ui/msg/star_silhouette, 16, 20] + - type: code + name: heaps3 + start: 0x110CB0 + vram: 0x802FB800 + subsegments: + - [auto, c, heaps3] - type: code dir: charset vram: 0 @@ -980,6 +1387,7 @@ segments: start: 0x1672D0 vram: 0x8027AA10 subsegments: + - [auto, c, pause_gfx_en] - start: 0x1672D0 type: .data name: pause_gfx_en @@ -1000,10 +1408,91 @@ segments: - [0x168B50, palette, available] - [0x168D50, ci4, prompt_check_abilities, 128, 16] - [0x169150, palette, prompt_check_abilities] - - [0x00169350] - - [0x169350, bin, pause_gfx_de] # TODO: German - - [0x16B3D0, bin, pause_gfx_fr] # TODO: French - - [0x16D450, bin, pause_gfx_es] # TODO: Spanish + - [0x169350] + - type: code + dir: pause + name: pause_gfx_de + start: 0x169350 + vram: 0x8027AA10 + subsegments: + - [auto, c, pause_gfx_de] + - start: 0x169350 + type: .data + name: pause_gfx_de + subsegments: + - [0x169350, ci4, de/banner_hp, 64, 16] + - [0x169550, palette, de/banner_hp] + - [0x169750, ci4, de/banner_fp, 64, 16] + - [0x169950, palette, de/banner_fp] + - [0x169B50, ci4, de/banner_bp, 64, 16] + - [0x169D50, palette, de/banner_bp] + - [0x169F50, ci4, de/banner_boots, 48, 16] + - [0x16A0D0, palette, de/banner_boots] + - [0x16A2D0, ci4, de/banner_hammer, 48, 16] + - [0x16A450, palette, de/banner_hammer] + - [0x16A650, ci4, de/banner_star_energy, 48, 16] + - [0x16A7D0, palette, de/banner_star_energy] + - [0x16A9D0, ci4, de/available, 64, 16] + - [0x16ABD0, palette, de/available] + - [0x16ADD0, ci4, de/prompt_check_abilities, 128, 16] + - [0x16B1D0, palette, de/prompt_check_abilities] + - [0x16B3D0] + - type: code + dir: pause + name: pause_gfx_fr + start: 0x16B3D0 + vram: 0x8027AA10 + subsegments: + - [auto, c, pause_gfx_fr] + - start: 0x16B3D0 + type: .data + name: pause_gfx_fr + subsegments: + - [0x16B3D0, ci4, fr/banner_hp, 64, 16] + - [0x16B5D0, palette, fr/banner_hp] + - [0x16B7D0, ci4, fr/banner_fp, 64, 16] + - [0x16B9D0, palette, fr/banner_fp] + - [0x16BBD0, ci4, fr/banner_bp, 64, 16] + - [0x16BDD0, palette, fr/banner_bp] + - [0x16BFD0, ci4, fr/banner_boots, 48, 16] + - [0x16C150, palette, fr/banner_boots] + - [0x16C350, ci4, fr/banner_hammer, 48, 16] + - [0x16C4D0, palette, fr/banner_hammer] + - [0x16C6D0, ci4, fr/banner_star_energy, 48, 16] + - [0x16C850, palette, fr/banner_star_energy] + - [0x16CA50, ci4, fr/available, 64, 16] + - [0x16CC50, palette, fr/available] + - [0x16CE50, ci4, fr/prompt_check_abilities, 128, 16] + - [0x16D250, palette, fr/prompt_check_abilities] + - [0x16D450] + - type: code + dir: pause + name: pause_gfx_es + start: 0x16D450 + vram: 0x8027AA10 + subsegments: + - [auto, c, pause_gfx_es] + - start: 0x16D450 + type: .data + name: pause_gfx_es + subsegments: + - [0x16D450, ci4, es/banner_hp, 64, 16] + - [0x16D650, palette, es/banner_hp] + - [0x16D850, ci4, es/banner_fp, 64, 16] + - [0x16DA50, palette, es/banner_fp] + - [0x16DC50, ci4, es/banner_bp, 64, 16] + - [0x16DE50, palette, es/banner_bp] + - [0x16E050, ci4, es/banner_boots, 48, 16] + - [0x16E1D0, palette, es/banner_boots] + - [0x16E3D0, ci4, es/banner_hammer, 48, 16] + - [0x16E550, palette, es/banner_hammer] + - [0x16E750, ci4, es/banner_star_energy, 48, 16] + - [0x16E8D0, palette, es/banner_star_energy] + - [0x16EAD0, ci4, es/available, 64, 16] + - [0x16ECD0, palette, es/available] + - [0x16EED0, ci4, es/prompt_check_abilities, 128, 16] + - [0x16F2D0, palette, es/prompt_check_abilities] + - [0x16F4D0] - type: code dir: filemenu @@ -1034,20 +1523,290 @@ segments: - [0x179200, .data, filemenu_msg] - [0x179C30, .data, filemenu_styles] - - [0x17A160, bin] + - name: battle_code + type: code + start: 0x17A160 + vram: 0x8023E000 + subsegments: + - [auto, c, battle/16C8E0] + - [auto, c, battle/btl_states_actions] + - [auto, c, battle/camera] + - [auto, c, battle/actors] + - [auto, c, battle/popup_messages] + - [auto, c, battle/entity_model_icons] + - [auto, c, battle/partner_dma] + - [auto, c, battle/dmg_item] + - [auto, c, battle/181810] + - [auto, c, battle/actor_rendering] + - [auto, c, battle/level_up] + - [auto, c, battle/player_events] + - [auto, c, battle_ui_gfx] + - [auto, c, battle/190A10] + - [auto, c, battle/190B20] + - [auto, c, battle/use_items] + - [auto, c, battle/use_moves] + - [auto, c, battle/action_cmd] + - [auto, c, battle/actor_api] + - [auto, c, battle/dmg_player] + - [auto, c, battle/1A5830] + - [auto, c, battle/dmg_partner] + - [auto, c, battle/standard_events] + - [auto, c, battle/use_star_powers] + - start: 0x1BFF20 + type: .data + name: battle/entity_model_icons + subsegments: + - [0x1BFF20, ci4, ui/battle/cursor_hand, 32, 32] + - [0x1C0120, palette, ui/battle/cursor_hand] + - [0x1C0140] + - start: 0x1C5C60 + type: .data + name: battle_ui_gfx + subsegments: + - [0x1C5C60, ci4, ui/battle/menu/unused, 32, 32] + - [0x1C5E60, palette, ui/battle/menu/unused] + - [0x1C5E80, palette, ui/battle/menu/unused.disabled] + - [0x1C5EA0, ci4, ui/battle/menu/flee, 32, 32] + - [0x1C60A0, palette, ui/battle/menu/flee] + - [0x1C60C0, palette, ui/battle/menu/flee.disabled] + - [0x1C60E0, ci4, ui/battle/menu/defend, 32, 32] + - [0x1C62E0, palette, ui/battle/menu/defend] + - [0x1C6300, palette, ui/battle/menu/defend.disabled] + - [0x1C6320, ci4, ui/battle/menu/strategies, 32, 32] + - [0x1C6520, palette, ui/battle/menu/strategies] + - [0x1C6540, palette, ui/battle/menu/strategies.disabled] + - [0x1C6560, ci4, ui/battle/menu/nothing, 32, 32] + - [0x1C6760, palette, ui/battle/menu/nothing] + - [0x1C6780, palette, ui/battle/menu/nothing.disabled] + - [0x1C67A0, ci4, ui/battle/menu/pouch, 32, 32] + - [0x1C69A0, palette, ui/battle/menu/pouch] + - [0x1C69C0, palette, ui/battle/menu/pouch.disabled] + - [0x1C69E0, ci4, ui/battle/swap_Z, 16, 16] + - [0x1C6A60, palette, ui/battle/swap_Z] + - [0x1C6A80, ci4, ui/battle/swap_arrow_left, 8, 16] + - [0x1C6AC0, palette, ui/battle/swap_arrow_left] + - [0x1C6AE0, ci4, ui/battle/swap_arrow_right, 8, 16] + - {start: 0x1C6B20, type: palette, name: ui/battle/swap_arrow_right, size: 0x190} + - [0x1C6CC0, ci4, ui/battle/menu/spirits, 32, 32] + - [0x1C6EC0, palette, ui/battle/menu/spirits] + - [0x1C6EE0, ci4, ui/battle/yellow_arrow, 16, 16] + - {start: 0x1C6F60, type: palette, name: ui/battle/yellow_arrow, size: 0x140} + - [0x1C70A0, ci4, ui/battle/hp_bar, 32, 16] + - [0x1C71A0, palette, ui/battle/hp_bar] + - [0x1C71C0, ci4, ui/battle/hp_0, 8, 8] + - [0x1C71E0, palette, ui/battle/hp_0] + - [0x1C7200, ci4, ui/battle/hp_1, 8, 8] + - [0x1C7220, palette, ui/battle/hp_1] + - [0x1C7240, ci4, ui/battle/hp_2, 8, 8] + - [0x1C7260, palette, ui/battle/hp_2] + - [0x1C7280, ci4, ui/battle/hp_3, 8, 8] + - [0x1C72A0, palette, ui/battle/hp_3] + - [0x1C72C0, ci4, ui/battle/hp_4, 8, 8] + - [0x1C72E0, palette, ui/battle/hp_4] + - [0x1C7300, ci4, ui/battle/hp_5, 8, 8] + - [0x1C7320, palette, ui/battle/hp_5] + - [0x1C7340, ci4, ui/battle/hp_6, 8, 8] + - [0x1C7360, palette, ui/battle/hp_6] + - [0x1C7380, ci4, ui/battle/hp_7, 8, 8] + - [0x1C73A0, palette, ui/battle/hp_7] + - [0x1C73C0, ci4, ui/battle/hp_8, 8, 8] + - [0x1C73E0, palette, ui/battle/hp_8] + - [0x1C7400, ci4, ui/battle/hp_9, 8, 8] + - [0x1C7420, palette, ui/battle/hp_9] + - [0x1C7440, ci4, ui/battle/cont/b_up, 48, 40] + - [0x1C7800, palette, ui/battle/cont/b_up] + - [0x1C7820, ci4, ui/battle/cont/b_down, 48, 40] + - [0x1C7BE0, palette, ui/battle/cont/b_down] + - [0x1C7C00, ci4, ui/battle/cont/c_left_up, 40, 34] + - [0x1C7EA8, palette, ui/battle/cont/c_left_up] + - [0x1C7EC8, ci4, ui/battle/cont/c_left_down, 40, 34] + - [0x1C8170, palette, ui/battle/cont/c_left_down] + - [0x1C8190, ci4, ui/battle/cont/c_right_up, 40, 34] + - [0x1C8438, palette, ui/battle/cont/c_right_up] + - [0x1C8458, ci4, ui/battle/cont/c_right_down, 40, 34] + - [0x1C8700, palette, ui/battle/cont/c_right_down] + - [0x1C8720, ci4, ui/battle/cont/c_up_up, 40, 34] + - [0x1C89C8, palette, ui/battle/cont/c_up_up] + - [0x1C89E8, ci4, ui/battle/cont/c_up_down, 40, 34] + - [0x1C8C90, palette, ui/battle/cont/c_up_down] + - [0x1C8CB0, ci4, ui/battle/cont/c_down_up, 40, 34] + - [0x1C8F58, palette, ui/battle/cont/c_down_up] + - [0x1C8F78, ci4, ui/battle/cont/c_down_down, 40, 34] + - [0x1C9220, palette, ui/battle/cont/c_down_down] + - [0x1C9240, ci4, ui/battle/cmd/timing_1_chance, 72, 24] + - [0x1C95A0, palette, ui/battle/cmd/timing_1_chance] + - [0x1C95C0, ci4, ui/battle/cmd/timing_ready, 16, 16] + - [0x1C9640, palette, ui/battle/cmd/timing_ready] + - [0x1C9660, ci4, ui/battle/cmd/timing_wait, 16, 16] + - [0x1C96E0, palette, ui/battle/cmd/timing_wait] + - [0x1C9700, ci4, ui/battle/cmd/charge_1, 8, 8] + - [0x1C9720, palette, ui/battle/cmd/charge_1] + - [0x1C9740, ci4, ui/battle/cmd/charge_2, 8, 8] + - [0x1C9760, palette, ui/battle/cmd/charge_2] + - [0x1C9780, ci4, ui/battle/cmd/charge_3, 8, 8] + - [0x1C97A0, palette, ui/battle/cmd/charge_3] + - [0x1C97C0, ci4, ui/battle/cmd/charge_4, 8, 8] + - [0x1C97E0, palette, ui/battle/cmd/charge_4] + - [0x1C9800, ci4, ui/battle/cmd/timing_3_chances, 96, 24] + - [0x1C9C80, palette, ui/battle/cmd/timing_3_chances] + - [0x1C9CA0, ci4, ui/battle/cmd/gauge_result, 32, 24] + - [0x1C9E20, palette, ui/battle/cmd/gauge_result] + - [0x1C9E40, ci4, ui/battle/cmd/timing_ok, 24, 24] + - [0x1C9F60, palette, ui/battle/cmd/timing_ok] + - [0x1C9F80, ci4, ui/battle/cmd/timing_miss, 24, 24] + - [0x1CA0A0, palette, ui/battle/cmd/timing_miss] + - [0x1CA0C0, ci4, ui/battle/cmd/flee_0, 16, 24] + - [0x1CA180, palette, ui/battle/cmd/flee_0] + - [0x1CA1A0, ci4, ui/battle/cmd/flee_1, 16, 24] + - [0x1CA260, palette, ui/battle/cmd/flee_1] + - [0x1CA280, ci4, ui/battle/cmd/flee_2, 16, 24] + - [0x1CA340, palette, ui/battle/cmd/flee_2] + - [0x1CA360, ci4, ui/battle/cmd/100pct, 64, 48] + - [0x1CA960, palette, ui/battle/cmd/100pct] + - [0x1CA980, ci4, ui/battle/cmd/right_on, 56, 24] + - [0x1CAC20, palette, ui/battle/cmd/right_on] + - [0x1CAC40, ci4, ui/battle/cmd/fill_result, 32, 24] + - [0x1CADC0, palette, ui/battle/cmd/fill_result] + - [0x1CADE0, ci4, ui/battle/cmd/aim/marker_0, 16, 16] + - [0x1CAE60, palette, ui/battle/cmd/aim/marker_0] + - [0x1CAE80, ci4, ui/battle/cmd/aim/marker_1, 16, 16] + - [0x1CAF00, palette, ui/battle/cmd/aim/marker_1] + - [0x1CAF20, ci4, ui/battle/cmd/aim/marker_2, 16, 16] + - [0x1CAFA0, palette, ui/battle/cmd/aim/marker_2] + - [0x1CAFC0, ci4, ui/battle/cmd/aim/marker_3, 16, 16] + - [0x1CB040, palette, ui/battle/cmd/aim/marker_3] + - [0x1CB060, ci4, ui/battle/cmd/aim/marker_4, 16, 16] + - [0x1CB0E0, palette, ui/battle/cmd/aim/marker_4] + - [0x1CB100, ci4, ui/battle/cmd/aim/marker_5, 16, 16] + - [0x1CB180, palette, ui/battle/cmd/aim/marker_5] + - [0x1CB1A0, ci4, ui/battle/cmd/aim/marker_6, 16, 16] + - [0x1CB220, palette, ui/battle/cmd/aim/marker_6] + - [0x1CB240, ci4, ui/battle/cmd/aim/marker_7, 16, 16] + - [0x1CB2C0, palette, ui/battle/cmd/aim/marker_7] + - [0x1CB2E0, ci4, ui/battle/cmd/aim/shimmer_0, 16, 16] + - [0x1CB360, palette, ui/battle/cmd/aim/shimmer_0] + - [0x1CB380, ci4, ui/battle/cmd/aim/shimmer_1, 16, 16] + - [0x1CB400, palette, ui/battle/cmd/aim/shimmer_1] + - [0x1CB420, ci4, ui/battle/cmd/aim/shimmer_2, 16, 16] + - [0x1CB4A0, palette, ui/battle/cmd/aim/shimmer_2] + - [0x1CB4C0, ci4, ui/battle/cmd/aim/shimmer_3, 16, 16] + - [0x1CB540, palette, ui/battle/cmd/aim/shimmer_3] + - [0x1CB560, ci4, ui/battle/cmd/aim/shimmer_4, 16, 16] + - [0x1CB5E0, palette, ui/battle/cmd/aim/shimmer_4] + - [0x1CB600, ci4, ui/battle/cmd/aim/shimmer_5, 16, 16] + - [0x1CB680, palette, ui/battle/cmd/aim/shimmer_5] + - [0x1CB6A0, ci4, ui/battle/cmd/aim/shimmer_6, 16, 16] + - [0x1CB720, palette, ui/battle/cmd/aim/shimmer_6] + - [0x1CB740, ci4, ui/battle/cmd/aim/shimmer_7, 16, 16] + - [0x1CB7C0, palette, ui/battle/cmd/aim/shimmer_7] + - [0x1CB7E0, ci4, ui/battle/cmd/aim/reticle_0, 32, 32] + - [0x1CB9E0, palette, ui/battle/cmd/aim/reticle_0] + - [0x1CBA00, ci4, ui/battle/cmd/aim/reticle_1, 32, 32] + - [0x1CBC00, palette, ui/battle/cmd/aim/reticle_1] + - [0x1CBC20, ci4, ui/battle/cmd/aim/target_0, 24, 24] + - [0x1CBD40, palette, ui/battle/cmd/aim/target_0] + - [0x1CBD60, ci4, ui/battle/cmd/aim/target_1, 24, 24] + - [0x1CBE80, palette, ui/battle/cmd/aim/target_1] + - [0x1CBEA0, ci4, ui/battle/solid_star, 32, 32] + - [0x1CC0A0, palette, ui/battle/solid_star] + - [0x1CC0C0, ia8, ui/battle/projector_spot, 32, 32] + - [0x1CC4C0, ia8, ui/battle/projector_beam, 64, 64] + - [0x1CD4C0, ia8, ui/battle/projector_reel, 64, 64] + - [0x1CE4C0, ia8, ui/battle/swap_background, 48, 16] + - [0x1CE7C0] + - [0x1D0060] - [0x1DA1E0, pm_icons, icon] - - [0x20C080, bin] + - dir: logos + type: code + start: 0x20C080 + subsegments: + - [auto, rgba16, logo_n64, 128, 112] + - [auto, rgba16, logo_is, 256, 112] + - [auto, rgba16, logo_nintendo, 256, 48] - [0x227080, ci8, title/bg_1, 264, 162] - [0x231790, palette, title/bg_1] - - - [0x231990, bin] - - - type: bin - name: titlemenu_flags + - [0x231990, ci8, title/bg_2, 264, 162] + - [0x23C0A0, palette, title/bg_2] + - [0x23C2A0, ci8, title/bg_3, 264, 162] + - [0x2469B0, palette, title/bg_3] + - [0x246BB0, ci8, title/bg_4, 264, 162] + - [0x2512C0, palette, title/bg_4] + - [0x2514C0, ia8, title/tape, 128, 128] + - [0x2554C0, ci8, title/bowser_silhouette, 128, 128] + - [0x2594C0, palette, title/bowser_silhouette] + - name: titlemenu + type: code + vram: 0 + start: 0x2596C0 + subsegments: + - [auto, c, titlemenu] + - type: .data + name: titlemenu + subsegments: + - [0x2596E8, ia8, title/start_game, 96, 16] + - [0x259CE8] + - [0x259CF0, ia8, title/languages, 88, 16] + - [0x25A270] + - [0x25A278, ia8, de/title/start_game, 88, 16] + - [0x25A7F8] + - [0x25A800, ia8, de/title/languages, 80, 16] + - [0x25AD00] + - [0x25AD08, ia8, fr/title/start_game, 144, 16] + - [0x25B608] + - [0x25B610, ia8, fr/title/languages, 64, 16] + - [0x25BA10] + - [0x25BA18, ia8, es/title/start_game, 120, 16] + - [0x25C198] + - [0x25C1A0, ia8, es/title/languages, 64, 16] + # These imgs should be individually split as 16x16 each flag + # but for convenience we'll combine them seperate by frames + - name: titlemenu_flags + dir: title/flags + type: code start: 0x25C5A0 - # TODO: split into images + subsegments: + - [auto, rgba16, flags_0, 16, 64] + - [auto, rgba16, flags_1, 16, 64] + - [auto, rgba16, flags_2, 16, 64] + - [auto, rgba16, flags_3, 16, 64] + - [auto, rgba16, flags_4, 16, 64] + - [auto, rgba16, flags_5, 16, 64] + - [auto, rgba16, flags_6, 16, 64] + - [auto, rgba16, flags_7, 16, 64] + - [auto, rgba16, flags_8, 16, 64] + - [auto, rgba16, flags_9, 16, 64] + - [auto, rgba16, flags_10, 16, 64] + - [auto, rgba16, flags_11, 16, 64] + - [auto, rgba16, flags_12, 16, 64] + - [auto, rgba16, flags_13, 16, 64] + - [auto, rgba16, flags_14, 16, 64] + - [auto, rgba16, flags_15, 16, 64] + - [auto, rgba16, flags_16, 16, 64] + - [auto, rgba16, flags_17, 16, 64] + - [auto, rgba16, flags_18, 16, 64] + - [auto, rgba16, flags_19, 16, 64] + - [auto, rgba16, flags_20, 16, 64] + - [auto, rgba16, flags_21, 16, 64] + - [auto, rgba16, flags_22, 16, 64] + - [auto, rgba16, flags_23, 16, 64] + - [auto, rgba16, flags_24, 16, 64] + - [auto, rgba16, flags_25, 16, 64] + - [auto, rgba16, flags_26, 16, 64] + - [auto, rgba16, flags_27, 16, 64] + - [auto, rgba16, flags_28, 16, 64] + - [auto, rgba16, flags_29, 16, 64] + - [auto, rgba16, flags_30, 16, 64] + - [auto, rgba16, flags_31, 16, 64] + - [auto, rgba16, flags_32, 16, 64] + - [auto, rgba16, flags_33, 16, 64] + - [auto, rgba16, flags_34, 16, 64] + - [auto, rgba16, flags_35, 16, 64] + - [auto, rgba16, flags_36, 16, 64] + - [auto, rgba16, flags_37, 16, 64] + - [auto, rgba16, flags_38, 16, 64] + - [auto, rgba16, flags_39, 16, 64] - start: 0x2705A0 type: pm_imgfx_data @@ -1076,8 +1835,42 @@ segments: - ["cymbal_crush", 0xCA380] - [0x33A930, pm_sprite_shading_profiles, sprite_shading_profiles] + - type: code + start: 0x33B7A0 + name: create_audio_system_obfuscated + vram: 0x80200000 + subsegments: + - [auto, c, create_audio_system_obfuscated] + - type: code + start: 0x33B820 + vram: 0x80200080 + name: load_engine_data_obfuscated + follows_vram: create_audio_system_obfuscated + subsegments: + - [auto, c, load_engine_data_obfuscated] + - type: code + start: 0x33B9B0 + name: general_heap_create_obfuscated + vram: 0x802AE000 + subsegments: + - [auto, c, general_heap_create_obfuscated] + - type: code + start: 0x33BB40 + name: battle_heap_create_obfuscated + vram: 0x802AE000 + subsegments: + - [auto, c, battle_heap_create_obfuscated] + - type: code + start: 0x33BCE0 + name: obfuscation_shims + vram: 0x802B2000 + subsegments: + - [auto, c, obfuscation_shims] - - [0x33B7A0, bin] + - [0x33BDD0, ia8, ui/no_controller, 128, 32] + - [0x33CDD0, ia8, ui/no_controller_de, 128, 32] + - [0x33DDD0, ia8, ui/no_controller_fr, 128, 32] + - [0x33EDD0, ia8, ui/no_controller_es, 128, 32] - type: code dir: world/partner @@ -3054,7 +3847,7 @@ segments: start: 0x3B9190 vram: 0x09000000 subsegments: - - [0x3B9190, c, attack_result_text] + - [auto, c, attack_result_text] - start: 0x3B9190 type: .data name: attack_result_text @@ -3088,22 +3881,109 @@ segments: type: code start: 0x3BAAF0 vram: 0x09000000 - subsegments: - - [0x3BAAF0, bin] # TODO: German + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, attack_result_text_de] + - start: 0x3BAAF0 + type: .data + name: attack_result_text_de + subsegments: + - [0x3BAAF0, ia4, de/battle/lucky, 64, 32] + - [0x3BAEF0, ia4, de/battle/miss, 64, 32] + - [0x3BB2F0, ia4, de/battle/good, 64, 32] + - [0x3BB6F0, ia4, de/battle/nice, 64, 32] + - [0x3BBAF0, ia4, de/battle/super, 64, 32] + - [0x3BBEF0, i8, de/D_PAL_09001400_3BBEF0, 8, 32] + - [0x3BBFF0, gfx, de/D_PAL_09001500_3BBFF0] + - [0x3BC098, gfx, de/D_PAL_090015A8_3BC098] + - [0x3BC100, gfx, de/D_PAL_09001610_3BC100] + - [0x3BC148, gfx, de/D_PAL_09001658_3BC148] + - [0x3BC190, gfx, de/D_PAL_090016A0_3BC190] + - [0x3BC1D8, gfx, de/D_PAL_090016E8_3BC1D8] + - [0x3BC220, gfx, de/D_PAL_09001730_3BC220] + - [0x3BC268, vtx, de/D_PAL_09001778_3BC268] + - [0x3BC2A8, vtx, de/D_PAL_090017B8_3BC2A8] + - [0x3BC2E8, vtx, de/D_PAL_090017F8_3BC2E8] + - [0x3BC328, vtx, de/D_PAL_09001838_3BC328] + - [0x3BC368, vtx, de/D_PAL_09001878_3BC368] + - [0x3BC3A8, gfx, de/D_PAL_090018B8_3BC3A8] + - [0x3BC3C8, gfx, de/D_PAL_090018D8_3BC3C8] + - [0x3BC3E8, gfx, de/D_PAL_090018F8_3BC3E8] + - [0x3BC408, gfx, de/D_PAL_09001918_3BC408] + - [0x3BC428, gfx, de/D_PAL_09001938_3BC428] + - [0x3BC448] - name: effect_gfx_attack_result_text_fr dir: effects/gfx type: code start: 0x3BC450 vram: 0x09000000 - subsegments: - - [0x3BC450, bin] # TODO: French + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, attack_result_text_fr] + - start: 0x3BC450 + type: .data + name: attack_result_text_fr + subsegments: + - [0x3BC450, ia4, fr/battle/lucky, 64, 32] + - [0x3BC850, ia4, fr/battle/miss, 64, 32] + - [0x3BCC50, ia4, fr/battle/good, 64, 32] + - [0x3BD050, ia4, fr/battle/nice, 64, 32] + - [0x3BD450, ia4, fr/battle/super, 64, 32] + - [0x3BD850, i8, fr/D_PAL_09001400_3BD850, 8, 32] + - [0x3BD950, gfx, fr/D_PAL_09001500_3BD950] + - [0x3BD9F8, gfx, fr/D_PAL_090015A8_3BD9F8] + - [0x3BDA60, gfx, fr/D_PAL_09001610_3BDA60] + - [0x3BDAA8, gfx, fr/D_PAL_09001658_3BDAA8] + - [0x3BDAF0, gfx, fr/D_PAL_090016A0_3BDAF0] + - [0x3BDB38, gfx, fr/D_PAL_090016E8_3BDB38] + - [0x3BDB80, gfx, fr/D_PAL_09001730_3BDB80] + - [0x3BDBC8, vtx, fr/D_PAL_09001778_3BDBC8] + - [0x3BDC08, vtx, fr/D_PAL_090017B8_3BDC08] + - [0x3BDC48, vtx, fr/D_PAL_090017F8_3BDC48] + - [0x3BDC88, vtx, fr/D_PAL_09001838_3BDC88] + - [0x3BDCC8, vtx, fr/D_PAL_09001878_3BDCC8] + - [0x3BDD08, gfx, fr/D_PAL_090018B8_3BDD08] + - [0x3BDD28, gfx, fr/D_PAL_090018D8_3BDD28] + - [0x3BDD48, gfx, fr/D_PAL_090018F8_3BDD48] + - [0x3BDD68, gfx, fr/D_PAL_09001918_3BDD68] + - [0x3BDD88, gfx, fr/D_PAL_09001938_3BDD88] + - [0x3BDDA8] - name: effect_gfx_attack_result_text_es dir: effects/gfx type: code start: 0x3BDDB0 vram: 0x09000000 - subsegments: - - [0x3BDDB0, bin] # TODO: Spanish + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, attack_result_text_es] + - start: 0x3BDDB0 + type: .data + name: attack_result_text_es + subsegments: + - [0x3BDDB0, ia4, es/battle/lucky, 64, 32] + - [0x3BE1B0, ia4, es/battle/miss, 64, 32] + - [0x3BE5B0, ia4, es/battle/good, 64, 32] + - [0x3BE9B0, ia4, es/battle/nice, 64, 32] + - [0x3BEDB0, ia4, es/battle/super, 64, 32] + - [0x3BF1B0, i8, es/D_PAL_09001400_3BF1B0, 8, 32] + - [0x3BF2B0, gfx, es/D_PAL_09001500_3BF2B0] + - [0x3BF358, gfx, es/D_PAL_090015A8_3BF358] + - [0x3BF3C0, gfx, es/D_PAL_09001610_3BF3C0] + - [0x3BF408, gfx, es/D_PAL_09001658_3BF408] + - [0x3BF450, gfx, es/D_PAL_090016A0_3BF450] + - [0x3BF498, gfx, es/D_PAL_090016E8_3BF498] + - [0x3BF4E0, gfx, es/D_PAL_09001730_3BF4E0] + - [0x3BF528, vtx, es/D_PAL_09001778_3BF528] + - [0x3BF568, vtx, es/D_PAL_090017B8_3BF568] + - [0x3BF5A8, vtx, es/D_PAL_090017F8_3BF5A8] + - [0x3BF5E8, vtx, es/D_PAL_09001838_3BF5E8] + - [0x3BF628, vtx, es/D_PAL_09001878_3BF628] + - [0x3BF668, gfx, es/D_PAL_090018B8_3BF668] + - [0x3BF688, gfx, es/D_PAL_090018D8_3BF688] + - [0x3BF6A8, gfx, es/D_PAL_090018F8_3BF6A8] + - [0x3BF6C8, gfx, es/D_PAL_09001918_3BF6C8] + - [0x3BF6E8, gfx, es/D_PAL_09001938_3BF6E8] + - [0x3BF708] - name: effect_small_gold_sparkle dir: effects type: code @@ -4684,7 +5564,7 @@ segments: start: 0x4198D0 vram: 0x09000000 subsegments: - - [0x4198D0, c, chapter_change] + - [auto, c, chapter_change] - start: 0x4198D0 type: .data name: chapter_change @@ -4724,21 +5604,147 @@ segments: - [0x425D28, gfx, D_0900C458_3F82B8] - [0x425E10, gfx, D_0900C540_3F83A0] - [0x425E58] - - name: effect_chapter_change_gfx_de # TODO: German + - name: effect_chapter_change_gfx_de dir: effects/gfx - type: bin + type: code start: 0x425E60 vram: 0x09000000 - - name: effect_chapter_change_gfx_fr # TODO: French + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, chapter_change_de] + - start: 0x425E60 + type: .data + name: chapter_change_de + subsegments: + - [0x425E60, ia8, de/world/ch0, 144, 20] + - [0x4269A0, ia8, de/D_PAL_09000B40_4269A0, 144, 20] + - [0x4274E0, ia8, de/world/text_chapter, 128, 10] + - [0x4279E0, ia8, de/D_PAL_09001B80_4279E0, 128, 10] + - [0x427EE0, ia8, de/D_PAL_09002080_427EE0, 128, 10] + - [0x4283E0, ia8, de/D_PAL_09002580_4283E0, 128, 10] + - [0x4288E0, ia8, de/world/text_end_of, 104, 40] + - [0x429920, ia8, de/world/exclamation_point, 16, 40] + - [0x429BA0, ia8, de/world/ch1, 64, 64] + - [0x42ABA0, ia8, de/world/ch2, 64, 64] + - [0x42BBA0, ia8, de/world/ch3, 64, 64] + - [0x42CBA0, ia8, de/world/ch4, 64, 64] + - [0x42DBA0, ia8, de/world/ch5, 64, 64] + - [0x42EBA0, ia8, de/world/ch6, 64, 64] + - [0x42FBA0, ia8, de/world/ch7, 64, 64] + - [0x430BA0, ia8, de/world/ch8, 64, 64] + - [0x431BA0, rgba16, de/world/chapter_rainbow, 8, 16] + - [0x431CA0, gfx, de/D_PAL_0900BE40_431CA0] + - [0x431CE8, gfx, de/D_PAL_0900BE88_431CE8] + - [0x431D30, gfx, de/D_PAL_0900BED0_431D30] + - [0x431D78, gfx, de/D_PAL_0900BF18_431D78] + - [0x431DC0, gfx, de/D_PAL_0900BF60_431DC0] + - [0x431E08, gfx, de/D_PAL_0900BFA8_431E08] + - [0x431E50, gfx, de/D_PAL_0900BFF0_431E50] + - [0x431E98, gfx, de/D_PAL_0900C038_431E98] + - [0x431EE0, gfx, de/D_PAL_0900C080_431EE0] + - [0x431FC8, gfx, de/D_PAL_0900C168_431FC8] + - [0x432010, gfx, de/D_PAL_0900C1B0_432010] + - [0x432058, gfx, de/D_PAL_0900C1F8_432058] + - [0x4320A0, gfx, de/D_PAL_0900C240_4320A0] + - [0x432188, gfx, de/D_PAL_0900C328_432188] + - [0x4321D0, gfx, de/D_PAL_0900C370_4321D0] + - [0x4322B8, gfx, de/D_PAL_0900C458_4322B8] + - [0x4323A0, gfx, de/D_PAL_0900C540_4323A0] + - [0x4323E8] + - name: effect_chapter_change_gfx_fr dir: effects/gfx - type: bin + type: code start: 0x4323F0 vram: 0x09000000 - - name: effect_chapter_change_gfx_es # TODO: Spanish + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, chapter_change_fr] + - start: 0x4323F0 + type: .data + name: chapter_change_fr + subsegments: + - [0x4323F0, ia8, fr/world/ch0, 144, 20] + - [0x432F30, ia8, fr/D_PAL_09000B40_432F30, 144, 20] + - [0x433A70, ia8, fr/world/text_chapter, 128, 10] + - [0x433F70, ia8, fr/D_PAL_09001B80_433F70, 128, 10] + - [0x434470, ia8, fr/D_PAL_09002080_434470, 128, 10] + - [0x434970, ia8, fr/D_PAL_09002580_434970, 128, 10] + - [0x434E70, ia8, fr/world/text_end_of, 104, 40] + - [0x435EB0, ia8, fr/world/exclamation_point, 16, 40] + - [0x436130, ia8, fr/world/ch1, 64, 64] + - [0x437130, ia8, fr/world/ch2, 64, 64] + - [0x438130, ia8, fr/world/ch3, 64, 64] + - [0x439130, ia8, fr/world/ch4, 64, 64] + - [0x43A130, ia8, fr/world/ch5, 64, 64] + - [0x43B130, ia8, fr/world/ch6, 64, 64] + - [0x43C130, ia8, fr/world/ch7, 64, 64] + - [0x43D130, ia8, fr/world/ch8, 64, 64] + - [0x43E130, rgba16, fr/world/chapter_rainbow, 8, 16] + - [0x43E230, gfx, fr/D_PAL_0900BE40_43E230] + - [0x43E278, gfx, fr/D_PAL_0900BE88_43E278] + - [0x43E2C0, gfx, fr/D_PAL_0900BED0_43E2C0] + - [0x43E308, gfx, fr/D_PAL_0900BF18_43E308] + - [0x43E350, gfx, fr/D_PAL_0900BF60_43E350] + - [0x43E398, gfx, fr/D_PAL_0900BFA8_43E398] + - [0x43E3E0, gfx, fr/D_PAL_0900BFF0_43E3E0] + - [0x43E428, gfx, fr/D_PAL_0900C038_43E428] + - [0x43E470, gfx, fr/D_PAL_0900C080_43E470] + - [0x43E558, gfx, fr/D_PAL_0900C168_43E558] + - [0x43E5A0, gfx, fr/D_PAL_0900C1B0_43E5A0] + - [0x43E5E8, gfx, fr/D_PAL_0900C1F8_43E5E8] + - [0x43E630, gfx, fr/D_PAL_0900C240_43E630] + - [0x43E718, gfx, fr/D_PAL_0900C328_43E718] + - [0x43E760, gfx, fr/D_PAL_0900C370_43E760] + - [0x43E848, gfx, fr/D_PAL_0900C458_43E848] + - [0x43E930, gfx, fr/D_PAL_0900C540_43E930] + - [0x43E978] + - name: effect_chapter_change_gfx_es dir: effects/gfx - type: bin + type: code start: 0x43E980 vram: 0x09000000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, chapter_change_es] + - start: 0x43E980 + type: .data + name: chapter_change_es + subsegments: + - [0x43E980, ia8, es/world/ch0, 144, 20] + - [0x43F4C0, ia8, es/D_PAL_09000B40_43F4C0, 144, 20] + - [0x440000, ia8, es/world/text_chapter, 128, 10] + - [0x440500, ia8, es/D_PAL_09001B80_440500, 128, 10] + - [0x440A00, ia8, es/D_PAL_09002080_440A00, 128, 10] + - [0x440F00, ia8, es/D_PAL_09002580_440F00, 128, 10] + - [0x441400, ia8, es/world/text_end_of, 104, 40] + - [0x442440, ia8, es/world/exclamation_point, 16, 40] + - [0x4426C0, ia8, es/world/ch1, 64, 64] + - [0x4436C0, ia8, es/world/ch2, 64, 64] + - [0x4446C0, ia8, es/world/ch3, 64, 64] + - [0x4456C0, ia8, es/world/ch4, 64, 64] + - [0x4466C0, ia8, es/world/ch5, 64, 64] + - [0x4476C0, ia8, es/world/ch6, 64, 64] + - [0x4486C0, ia8, es/world/ch7, 64, 64] + - [0x4496C0, ia8, es/world/ch8, 64, 64] + - [0x44A6C0, rgba16, es/world/chapter_rainbow, 8, 16] + - [0x44A7C0, gfx, es/D_PAL_0900BE40_44A7C0] + - [0x44A808, gfx, es/D_PAL_0900BE88_44A808] + - [0x44A850, gfx, es/D_PAL_0900BED0_44A850] + - [0x44A898, gfx, es/D_PAL_0900BF18_44A898] + - [0x44A8E0, gfx, es/D_PAL_0900BF60_44A8E0] + - [0x44A928, gfx, es/D_PAL_0900BFA8_44A928] + - [0x44A970, gfx, es/D_PAL_0900BFF0_44A970] + - [0x44A9B8, gfx, es/D_PAL_0900C038_44A9B8] + - [0x44AA00, gfx, es/D_PAL_0900C080_44AA00] + - [0x44AAE8, gfx, es/D_PAL_0900C168_44AAE8] + - [0x44AB30, gfx, es/D_PAL_0900C1B0_44AB30] + - [0x44AB78, gfx, es/D_PAL_0900C1F8_44AB78] + - [0x44ABC0, gfx, es/D_PAL_0900C240_44ABC0] + - [0x44ACA8, gfx, es/D_PAL_0900C328_44ACA8] + - [0x44ACF0, gfx, es/D_PAL_0900C370_44ACF0] + - [0x44ADD8, gfx, es/D_PAL_0900C458_44ADD8] + - [0x44AEC0, gfx, es/D_PAL_0900C540_44AEC0] + - [0x44AF08] - name: effect_ice_shard dir: effects type: code @@ -5285,7 +6291,218 @@ segments: ####################### ### Action Commands ### ####################### - - [0x4688B0, bin] + - type: code + start: 0x4688B0 + name: btl_states_menus + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, battle/btl_states_menus] + - type: code + start: 0x474740 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_jump + subsegments: + - [auto, c, jump] + - type: code + start: 0x474D50 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_hammer + subsegments: + - [auto, c, hammer] + - type: code + start: 0x475820 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_flee + subsegments: + - [auto, c, flee] + - type: code + start: 0x476140 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_break_free + subsegments: + - [auto, c, break_free] + - type: code + start: 0x4769C0 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_whirlwind + subsegments: + - [auto, c, whirlwind] + - start: 0x4772A0 + type: .data + name: whirlwind + subsegments: + - [0x4772A0, ci4, whirlwind_1, 24, 24] + - [0x4773C0, palette, whirlwind_1] + - [0x4773E0, ci4, whirlwind_2, 24, 24] + - [0x477500, palette, whirlwind_2] + - [0x477520, ci4, whirlwind_3, 24, 24] + - [0x477640, palette, whirlwind_3] + - [0x477660, ci4, whirlwind_4, 24, 24] + - [0x477780, palette, whirlwind_4] + - [0x4777A0, ci4, whirlwind_5, 24, 24] + - [0x4778C0, palette, whirlwind_5] + - [0x4778E0, ci4, whirlwind_6, 24, 24] + - [0x477A00, palette, whirlwind_6] + - [0x477A20, ci4, whirlwind_7, 24, 24] + - [0x477B40, palette, whirlwind_7] + - [0x477B60, ci4, whirlwind_bubble, 56, 48] + - [0x4780A0, palette, whirlwind_bubble] + - [0x4780C0] + - [0x4782A0] + - type: code + start: 0x4782E0 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_stop_leech + subsegments: + - [auto, c, stop_leech] + - type: code + start: 0x4788A0 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_unused_flee + subsegments: + - [auto, c, unused_flee] + - type: code + start: 0x478EC0 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_dizzy_shell + subsegments: + - [auto, c, dizzy_shell] + - type: code + start: 0x479720 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_fire_shell + subsegments: + - [auto, c, fire_shell] + - type: code + start: 0x47A100 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_unused_mash_a + subsegments: + - [auto, c, unused_mash_a] + - type: code + start: 0x47A7C0 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_bomb + subsegments: + - [auto, c, bomb] + - type: code + start: 0x47B030 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_body_slam + subsegments: + - [auto, c, body_slam] + - type: code + start: 0x47B7C0 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_air_lift + subsegments: + - [auto, c, air_lift] + - type: code + start: 0x47C070 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_air_raid + subsegments: + - [auto, c, air_raid] + - type: code + start: 0x47CA70 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_squirt + subsegments: + - [auto, c, squirt] + - type: code + start: 0x47D240 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_three_chances + subsegments: + - [auto, c, three_chances] + - start: 0x47E3A0 + type: .data + name: three_chances + subsegments: + - [0x47E3A0, ci4, three_chances_1, 24, 24] + - [0x47E4C0, palette, three_chances_1] + - [0x47E4E0, ci4, three_chances_2, 24, 24] + - [0x47E600, palette, three_chances_2] + - [0x47E620, ci4, three_chances_3, 24, 24] + - [0x47E740, palette, three_chances_3] + - [0x47E760, ci4, three_chances_0, 24, 24] + - [0x47E880, palette, three_chances_0] + - [0x47E8A0, ci4, three_chances_block, 32, 32] + - [0x47EAA0, palette, three_chances_block] + - [0x47EAC0, ci4, three_chances_circle, 40, 40] + - [0x47EDE0, palette, three_chances_circle] + - [0x47EE00, ci4, three_chances_cloud, 40, 40] + - [0x47F120, palette, three_chances_cloud] + - [0x47F140, ci4, three_chances_4, 24, 24] + - [0x47F260, palette, three_chances_4] + - [0x47F280] + - [0x47F440] + - type: code + start: 0x47F440 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_tidal_wave + subsegments: + - [auto, c, tidal_wave] + - type: code + start: 0x47FC60 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_power_shock + subsegments: + - [auto, c, power_shock] + - type: code + start: 0x480760 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_mega_shock + subsegments: + - [auto, c, mega_shock] + - type: code + start: 0x4810F0 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_smack + subsegments: + - [auto, c, smack] + - type: code + start: 0x481B70 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_spiny_surge + subsegments: + - [auto, c, spiny_surge] + - type: code + start: 0x482430 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_hurricane + subsegments: + - [auto, c, hurricane] + - type: code + start: 0x482D70 + vram: 0x802A9000 + dir: battle/action_cmd + name: action_cmd_spook + subsegments: + - [auto, c, spook] #################### ### Battle Areas ### @@ -6541,7 +7758,781 @@ segments: - [0x786CF0, c, food] - [0x7873A0] - - [0x788240, bin] +#################### +### Battle Moves ### +#################### + - type: code + name: battle_move_hammer_attack + dir: battle/move/hammer + start: 0x788240 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, attack] + - type: code + name: battle_move_spin_smash + dir: battle/move/hammer + start: 0x78B530 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, spin_smash] + - type: code + name: battle_move_quake_hammer + dir: battle/move/hammer + start: 0x78EB70 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, quake_hammer] + - type: code + name: battle_move_jump_attack + dir: battle/move/jump + start: 0x791500 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, attack] + - type: code + name: battle_move_multibounce + dir: battle/move/jump + start: 0x794960 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, multibounce] + - type: code + name: battle_move_power_bounce + dir: battle/move/jump + start: 0x797A90 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, power_bounce] + - type: code + name: battle_move_sleep_stomp + dir: battle/move/jump + start: 0x79AAB0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, sleep_stomp] + - type: code + name: battle_move_dizzy_stomp + dir: battle/move/jump + start: 0x79CA70 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, dizzy_stomp] + - type: code + name: battle_move_d_down_pound + dir: battle/move/hammer + start: 0x79EA30 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, d_down_pound] + - type: code + name: battle_move_jump_charge_0 + dir: battle/move/jump + start: 0x7A1210 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, jump_charge_0] + - type: code + name: battle_move_hammer_charge_0 + dir: battle/move/hammer + start: 0x7A2DD0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, hammer_charge_0] + - type: code + name: battle_move_hammer_throw + dir: battle/move/hammer + start: 0x7A60F0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, hammer_throw] + - start: 0x7A61A0 + type: .data + name: hammer_throw + subsegments: + - [0x7A61A0] + - [0x7A8138, ci4, dusty_hammer, 32, 32] + - [0x7A8338, palette, dusty_hammer] + - [0x7A8358, ci4, basic_hammer, 32, 32] + - [0x7A8558, palette, basic_hammer] + - [0x7A8578, ci4, super_hammer, 32, 32] + - [0x7A8778, palette, super_hammer] + - [0x7A8798, ci4, ultra_hammer, 32, 32] + - [0x7A8998, palette, ultra_hammer] + - [0x7A89B8, vtx, hammer_throw] + - [0x7A89F8, gfx, dusty_hammer] + - [0x7A8AE8, gfx, basic_hammer] + - [0x7A8BD8, gfx, super_hammer] + - [0x7A8CC8, gfx, ultra_hammer] + - [0x7A8DB8] + - type: code + name: battle_move_mega_quake + dir: battle/move/hammer + start: 0x7AA420 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, mega_quake] + - type: code + name: battle_move_hammer_charge_1 + dir: battle/move/hammer + start: 0x7AD250 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, hammer_charge_1] + - type: code + name: battle_move_jump_charge_1 + dir: battle/move/jump + start: 0x7B0620 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, jump_charge_1] + - type: code + name: battle_move_hammer_charge_2 + dir: battle/move/hammer + start: 0x7B2270 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, hammer_charge_2] + - type: code + name: battle_move_jump_charge_2 + dir: battle/move/jump + start: 0x7B55C0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, jump_charge_2] + - type: code + name: battle_move_auto_smash + dir: battle/move/hammer + start: 0x7B71E0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, auto_smash] + - type: code + name: battle_move_auto_jump + dir: battle/move/jump + start: 0x7B98C0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, auto_jump] + - type: code + name: battle_move_power_quake + dir: battle/move/hammer + start: 0x7BB930 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, power_quake] + - type: code + name: battle_move_auto_multibounce + dir: battle/move/jump + start: 0x7BE4D0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, auto_multibounce] + - type: code + name: battle_move_power_jump + dir: battle/move/jump + start: 0x7C1400 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, power_jump] + - type: code + name: battle_move_super_jump + dir: battle/move/jump + start: 0x7C2FD0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, super_jump] + - type: code + name: battle_move_mega_jump + dir: battle/move/jump + start: 0x7C4BD0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, mega_jump] + - type: code + name: battle_move_power_smash + dir: battle/move/hammer + start: 0x7C6840 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, power_smash] + - type: code + name: battle_move_super_smash + dir: battle/move/hammer + start: 0x7C8DA0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, super_smash] + - type: code + name: battle_move_mega_smash + dir: battle/move/hammer + start: 0x7CB330 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, mega_smash] + - type: code + name: battle_move_demo_power_bounce + dir: battle/move/jump + start: 0x7CD930 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, demo_power_bounce] + - type: code + name: battle_move_shrink_smash + dir: battle/move/hammer + start: 0x7D0820 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, shrink_smash] + - type: code + name: battle_move_shell_crack + dir: battle/move/hammer + start: 0x7D2EE0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, shell_crack] + - type: code + name: battle_move_d_down_jump + dir: battle/move/jump + start: 0x7D55C0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, d_down_jump] + - type: code + name: battle_move_shrink_stomp + dir: battle/move/jump + start: 0x7D7840 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, shrink_stomp] + - type: code + name: battle_move_earthquake_jump + dir: battle/move/jump + start: 0x7D97C0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, earthquake_jump] + - type: code + name: battle_move_focus + dir: battle/move/star_power + start: 0x7DDB00 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, focus] + - type: code + name: battle_move_refresh + dir: battle/move/star_power + start: 0x7DF2A0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, refresh] + - type: code + name: battle_move_lullaby + dir: battle/move/star_power + start: 0x7E0DF0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, lullaby] + - type: code + name: battle_move_star_storm + dir: battle/move/star_power + start: 0x7E2470 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, star_storm] + - type: code + name: battle_move_chill_out + dir: battle/move/star_power + start: 0x7E3D70 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, chill_out] + - type: code + name: battle_move_smooch + dir: battle/move/star_power + start: 0x7E5A30 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, smooch] + - type: code + name: battle_move_time_out + dir: battle/move/star_power + start: 0x7E79C0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, time_out] + - type: code + name: battle_move_up_and_away + dir: battle/move/star_power + start: 0x7E8F80 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, up_and_away] + - type: code + name: battle_move_star_beam + dir: battle/move/star_power + start: 0x7EAC60 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, star_beam] + - type: code + name: battle_move_peach_beam + dir: battle/move/star_power + start: 0x7ED450 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, peach_beam] + - type: code + name: battle_move_peach_focus + dir: battle/move/star_power + start: 0x7EFC40 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, peach_focus] + - type: code + name: battle_move_peach_focus_alt + dir: battle/move/star_power + start: 0x7F1540 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, peach_focus_alt] + + - type: code + name: level_up + start: 0x7F2BE0 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, level_up] + - start: 0x7F2BE0 + type: .data + name: level_up + subsegments: + - [0x7F2BE0, ci4, level_up/heart, 40, 40] + - [0x7F2F00, palette, level_up/heart] + - [0x7F2F20, ci4, level_up/flower, 40, 40] + - [0x7F3240, palette, level_up/flower] + - [0x7F3260, ci4, level_up/leaves, 40, 40] + - [0x7F3580, palette, level_up/leaves] + - [0x7F35A0, ci4, level_up/badge, 40, 40] + - [0x7F38C0, palette, level_up/badge] + - [0x7F38E0, ci4, level_up/FP, 32, 24] + - [0x7F3A60, palette, level_up/FP] + - [0x7F3A80, ci4, level_up/BP, 32, 24] + - [0x7F3C00, palette, level_up/BP] + - [0x7F3C20, ci4, level_up/HP, 32, 24] + - [0x7F3DA0, palette, level_up/HP] + - [0x7F3DC0, ci4, de/level_up/FP, 32, 24] + - [0x7F3F40, palette, de/level_up/FP] + - [0x7F3F60, ci4, de/level_up/BP, 32, 24] + - [0x7F40E0, palette, de/level_up/BP] + - [0x7F4100, ci4, de/level_up/HP, 32, 24] + - [0x7F4280, palette, de/level_up/HP] + - [0x7F42A0, ci4, fr/level_up/FP, 32, 24] + - [0x7F4420, palette, fr/level_up/FP] + - [0x7F4440, ci4, fr/level_up/BP, 32, 24] + - [0x7F45C0, palette, fr/level_up/BP] + - [0x7F45E0, ci4, fr/level_up/HP, 32, 24] + - [0x7F4760, palette, fr/level_up/HP] + - [0x7F4780, ci4, es/level_up/FP, 32, 24] + - [0x7F4900, palette, es/level_up/FP] + - [0x7F4920, ci4, es/level_up/BP, 32, 24] + - [0x7F4AA0, palette, es/level_up/BP] + - [0x7F4AC0, ci4, es/level_up/HP, 32, 24] + - [0x7F4C40, palette, es/level_up/HP] + - [0x7F4C60, ci4, level_up/digit_0, 8, 16] + - [0x7F4CA0, palette, level_up/digit_0] + - [0x7F4CC0, ci4, level_up/digit_1, 8, 16] + - [0x7F4D00, palette, level_up/digit_1] + - [0x7F4D20, ci4, level_up/digit_2, 8, 16] + - [0x7F4D60, palette, level_up/digit_2] + - [0x7F4D80, ci4, level_up/digit_3, 8, 16] + - [0x7F4DC0, palette, level_up/digit_3] + - [0x7F4DE0, ci4, level_up/digit_4, 8, 16] + - [0x7F4E20, palette, level_up/digit_4] + - [0x7F4E40, ci4, level_up/digit_5, 8, 16] + - [0x7F4E80, palette, level_up/digit_5] + - [0x7F4EA0, ci4, level_up/digit_6, 8, 16] + - [0x7F4EE0, palette, level_up/digit_6] + - [0x7F4F00, ci4, level_up/digit_7, 8, 16] + - [0x7F4F40, palette, level_up/digit_7] + - [0x7F4F60, ci4, level_up/digit_8, 8, 16] + - [0x7F4FA0, palette, level_up/digit_8] + - [0x7F4FC0, ci4, level_up/digit_9, 8, 16] + - [0x7F5000, palette, level_up/digit_9] + - [0x7F5020, ci4, level_up/small_digit_0, 8, 8] + - [0x7F5040, palette, level_up/small_digit_0] + - [0x7F5060, ci4, level_up/small_digit_1, 8, 8] + - [0x7F5080, palette, level_up/small_digit_1] + - [0x7F50A0, ci4, level_up/small_digit_2, 8, 8] + - [0x7F50C0, palette, level_up/small_digit_2] + - [0x7F50E0, ci4, level_up/small_digit_3, 8, 8] + - [0x7F5100, palette, level_up/small_digit_3] + - [0x7F5120, ci4, level_up/small_digit_4, 8, 8] + - [0x7F5140, palette, level_up/small_digit_4] + - [0x7F5160, ci4, level_up/small_digit_5, 8, 8] + - [0x7F5180, palette, level_up/small_digit_5] + - [0x7F51A0, ci4, level_up/small_digit_6, 8, 8] + - [0x7F51C0, palette, level_up/small_digit_6] + - [0x7F51E0, ci4, level_up/small_digit_7, 8, 8] + - [0x7F5200, palette, level_up/small_digit_7] + - [0x7F5220, ci4, level_up/small_digit_8, 8, 8] + - [0x7F5240, palette, level_up/small_digit_8] + - [0x7F5260, ci4, level_up/small_digit_9, 8, 8] + - [0x7F5280, palette, level_up/small_digit_9] + - [0x7F52A0, ci4, level_up/small_arrow, 8, 8] + - [0x7F52C0, palette, level_up/small_arrow] + - [0x7F52E0, palette, level_up/digit_0.red] + - [0x7F5300, palette, level_up/digit_1.red] + - [0x7F5320, palette, level_up/digit_2.red] + - [0x7F5340, palette, level_up/digit_3.red] + - [0x7F5360, palette, level_up/digit_4.red] + - [0x7F5380, palette, level_up/digit_5.red] + - [0x7F53A0, palette, level_up/digit_6.red] + - [0x7F53C0, palette, level_up/digit_7.red] + - [0x7F53E0, palette, level_up/digit_8.red] + - [0x7F5400, palette, level_up/digit_9.red] + - [0x7F5420, palette, level_up/small_digit_0.red] + - [0x7F5440, palette, level_up/small_digit_1.red] + - [0x7F5460, palette, level_up/small_digit_2.red] + - [0x7F5480, palette, level_up/small_digit_3.red] + - [0x7F54A0, palette, level_up/small_digit_4.red] + - [0x7F54C0, palette, level_up/small_digit_5.red] + - [0x7F54E0, palette, level_up/small_digit_6.red] + - [0x7F5500, palette, level_up/small_digit_7.red] + - [0x7F5520, palette, level_up/small_digit_8.red] + - [0x7F5540, palette, level_up/small_digit_9.red] + - [0x7F5560, palette, level_up/small_arrow.red] + - [0x7F5580, palette, level_up/digit_0.blue] + - [0x7F55A0, palette, level_up/digit_1.blue] + - [0x7F55C0, palette, level_up/digit_2.blue] + - [0x7F55E0, palette, level_up/digit_3.blue] + - [0x7F5600, palette, level_up/digit_4.blue] + - [0x7F5620, palette, level_up/digit_5.blue] + - [0x7F5640, palette, level_up/digit_6.blue] + - [0x7F5660, palette, level_up/digit_7.blue] + - [0x7F5680, palette, level_up/digit_8.blue] + - [0x7F56A0, palette, level_up/digit_9.blue] + - [0x7F56C0, palette, level_up/small_digit_0.blue] + - [0x7F56E0, palette, level_up/small_digit_1.blue] + - [0x7F5700, palette, level_up/small_digit_2.blue] + - [0x7F5720, palette, level_up/small_digit_3.blue] + - [0x7F5740, palette, level_up/small_digit_4.blue] + - [0x7F5760, palette, level_up/small_digit_5.blue] + - [0x7F5780, palette, level_up/small_digit_6.blue] + - [0x7F57A0, palette, level_up/small_digit_7.blue] + - [0x7F57C0, palette, level_up/small_digit_8.blue] + - [0x7F57E0, palette, level_up/small_digit_9.blue] + - [0x7F5800, palette, level_up/small_arrow.blue] + - [0x7F5820, ci4, level_up/select_one_to_upgrade, 208, 16] + - [0x7F5EA0, palette, level_up/select_one_to_upgrade] + - [0x7F5EC0, ci4, de/level_up/select_one_to_upgrade, 208, 16] + - [0x7F6540, palette, de/level_up/select_one_to_upgrade] + - [0x7F6560, ci4, fr/level_up/select_one_to_upgrade, 208, 16] + - [0x7F6BE0, palette, fr/level_up/select_one_to_upgrade] + - [0x7F6C00, ci4, es/level_up/select_one_to_upgrade, 208, 16] + - [0x7F7280, palette, es/level_up/select_one_to_upgrade] + - [0x7F72A0] + - type: code + name: level_up_letters_en_de + start: 0x7F8000 + vram: 0x802A6420 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [0x7F8000, c, level_up_letters_en_de] + - type: .data + name: level_up_letters_en_de + start: 0x7F8000 + subsegments: + - [0x7F8000] + - [0x7F8018, vtx, level_up/draw_second_E] + - [0x7F8098, vtx, level_up/draw_V] + - [0x7F8118, vtx, level_up/draw_E] + - [0x7F8198, vtx, level_up/draw_second_L] + - [0x7F8218, vtx, level_up/draw_L] + - [0x7F8298, vtx, level_up/draw_P] + - [0x7F8318, vtx, level_up/draw_U] + - [0x7F8398, vtx, level_up/draw_exclamation_mark] + - [0x7F8418, ia8, level_up/big_V, 64, 64] + - [0x7F9418, gfx, level_up/big_V] + - [0x7F9490, ia8, level_up/big_P, 64, 64] + - [0x7FA490, gfx, level_up/big_P] + - [0x7FA508, ia8, level_up/big_exclamation_mark, 64, 64] + - [0x7FB508, gfx, level_up/big_exclamation_mark] + - [0x7FB580, ia8, level_up/big_U, 64, 64] + - [0x7FC580, gfx, level_up/big_U] + - [0x7FC5F8, ia8, level_up/big_L, 64, 64] + - [0x7FD5F8, gfx, level_up/big_L] + - [0x7FD670, ia8, level_up/big_E, 64, 64] + - [0x7FE670, gfx, level_up/big_E] + - [0x7FE6E8] + - type: code + name: level_up_letters_fr + start: 0x7FEAD0 + vram: 0x802A6420 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [0x7FEAD0, c, level_up_letters_fr] + - type: .data + name: level_up_letters_fr + start: 0x7FEAD0 + subsegments: + - [0x7FEAD0] + - [0x7FEAE8, vtx, fr/level_up/draw_NI] + - [0x7FEB68, vtx, fr/level_up/draw_VE] + - [0x7FEBE8, vtx, fr/level_up/draw_AU] + - [0x7FEC68, vtx, fr/level_up/draw_SU] + - [0x7FECE8, vtx, fr/level_up/draw_PE] + - [0x7FED68, vtx, fr/level_up/draw_RI] + - [0x7FEDE8, vtx, fr/level_up/draw_EU] + - [0x7FEE68, vtx, fr/level_up/draw_R_exclamation_mark] + - [0x7FEEE8, ia8, fr/level_up/big_NI, 64, 54] + - [0x7FFC68, ia8, fr/level_up/big_VE, 64, 52] + - [0x800968, ia8, fr/level_up/big_AU, 64, 55] + - [0x801728, ia8, fr/level_up/big_SU, 64, 55] + - [0x8024E8, ia8, fr/level_up/big_RI, 64, 55] + - [0x8032A8, ia8, fr/level_up/big_EU, 64, 55] + - [0x804068, ia8, fr/level_up/big_R_exclamation_mark, 64, 56] + - [0x804E68, ia16, fr/level_up/big_PE, 64, 32] + - [0x805E68, gfx, fr/level_up/big_NI] + - [0x805EE0, gfx, fr/level_up/big_VE] + - [0x805F58, gfx, fr/level_up/big_AU] + - [0x805FD0, gfx, fr/level_up/big_SU] + - [0x806048, gfx, fr/level_up/big_PE] + - [0x8060C0, gfx, fr/level_up/big_RI] + - [0x806138, gfx, fr/level_up/big_EU] + - [0x8061B0, gfx, fr/level_up/big_R_exclamation_mark] + - [0x806228] + - type: code + name: level_up_letters_es + start: 0x806610 + vram: 0x802A6420 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [0x806610, c, level_up_letters_es] + - type: .data + name: level_up_letters_es + start: 0x806610 + subsegments: + - [0x806610] + - [0x806628, vtx, es/level_up/draw_UB] + - [0x8066A8, vtx, es/level_up/draw_ES] + - [0x806728, vtx, es/level_up/draw_UN] + - [0x8067A8, vtx, es/level_up/draw_inverted_excl_mark_S] + - [0x806828, vtx, es/level_up/draw_NI] + - [0x8068A8, vtx, es/level_up/draw_L_exclamation_mark] + - [0x806928, vtx, es/level_up/draw_VE] + - [0x8069A8, ia8, es/level_up/big_inverted_excl_mark_S, 64, 64] + - [0x8079A8, gfx, es/level_up/big_inverted_excl_mark_S] + - [0x807A20, ia8, es/level_up/big_UB, 64, 64] + - [0x808A20, gfx, es/level_up/big_UB] + - [0x808A98, ia8, es/level_up/big_ES, 64, 64] + - [0x809A98, gfx, es/level_up/big_ES] + - [0x809B10, ia8, es/level_up/big_UN, 64, 64] + - [0x80AB10, gfx, es/level_up/big_UN] + - [0x80AB88, ia8, es/level_up/big_NI, 64, 64] + - [0x80BB88, gfx, es/level_up/big_NI] + - [0x80BC00, ia8, es/level_up/big_VE, 64, 64] + - [0x80CC00, gfx, es/level_up/big_VE] + - [0x80CC78, ia8, es/level_up/big_L_exclamation_mark, 64, 64] + - [0x80DC78, gfx, es/level_up/big_L_exclamation_mark] + - [0x80DCF0] + - type: code + name: starpoint + start: 0x80E070 + vram: 0x802A1000 + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, starpoint] + - type: .data + name: starpoint + start: 0x80E070 + subsegments: + - [0x80E070, vtx, starpoint/digit_0] + - [0x80E0B0, ia8, starpoint/digit_0, 64, 64] + - [0x80F0B0, gfx, starpoint/load_digit_0] + - [0x80F128, gfx, starpoint/__render_digit_0] + - [0x80F170, gfx, starpoint/_render_digit_0] + - [0x80F180, gfx, starpoint/render_digit_0] + - [0x80F190, vtx, starpoint/digit_1] + - [0x80F1D0, ia8, starpoint/digit_1, 64, 64] + - [0x8101D0, gfx, starpoint/load_digit_1] + - [0x810248, gfx, starpoint/__render_digit_1] + - [0x810290, gfx, starpoint/_render_digit_1] + - [0x8102A0, gfx, starpoint/render_digit_1] + - [0x8102B0, vtx, starpoint/digit_2] + - [0x8102F0, ia8, starpoint/digit_2, 64, 64] + - [0x8112F0, gfx, starpoint/load_digit_2] + - [0x811368, gfx, starpoint/__render_digit_2] + - [0x8113B0, gfx, starpoint/_render_digit_2] + - [0x8113C0, gfx, starpoint/render_digit_2] + - [0x8113D0, vtx, starpoint/digit_3] + - [0x811410, ia8, starpoint/digit_3, 64, 64] + - [0x812410, gfx, starpoint/load_digit_3] + - [0x812488, gfx, starpoint/__render_digit_3] + - [0x8124D0, gfx, starpoint/_render_digit_3] + - [0x8124E0, gfx, starpoint/render_digit_3] + - [0x8124F0, vtx, starpoint/digit_4] + - [0x812530, ia8, starpoint/digit_4, 64, 64] + - [0x813530, gfx, starpoint/load_digit_4] + - [0x8135A8, gfx, starpoint/__render_digit_4] + - [0x8135F0, gfx, starpoint/_render_digit_4] + - [0x813600, gfx, starpoint/render_digit_4] + - [0x813610, vtx, starpoint/digit_5] + - [0x813650, ia8, starpoint/digit_5, 64, 64] + - [0x814650, gfx, starpoint/load_digit_5] + - [0x8146C8, gfx, starpoint/__render_digit_5] + - [0x814710, gfx, starpoint/_render_digit_5] + - [0x814720, gfx, starpoint/render_digit_5] + - [0x814730, vtx, starpoint/digit_6] + - [0x814770, ia8, starpoint/digit_6, 64, 64] + - [0x815770, gfx, starpoint/load_digit_6] + - [0x8157E8, gfx, starpoint/__render_digit_6] + - [0x815830, gfx, starpoint/_render_digit_6] + - [0x815840, gfx, starpoint/render_digit_6] + - [0x815850, vtx, starpoint/digit_7] + - [0x815890, ia8, starpoint/digit_7, 64, 64] + - [0x816890, gfx, starpoint/load_digit_7] + - [0x816908, gfx, starpoint/__render_digit_7] + - [0x816950, gfx, starpoint/_render_digit_7] + - [0x816960, gfx, starpoint/render_digit_7] + - [0x816970, vtx, starpoint/digit_8] + - [0x8169B0, ia8, starpoint/digit_8, 64, 64] + - [0x8179B0, gfx, starpoint/load_digit_8] + - [0x817A28, gfx, starpoint/__render_digit_8] + - [0x817A70, gfx, starpoint/_render_digit_8] + - [0x817A80, gfx, starpoint/render_digit_8] + - [0x817A90, vtx, starpoint/digit_9] + - [0x817AD0, ia8, starpoint/digit_9, 64, 64] + - [0x818AD0, gfx, starpoint/load_digit_9] + - [0x818B48, gfx, starpoint/__render_digit_9] + - [0x818B90, gfx, starpoint/_render_digit_9] + - [0x818BA0, gfx, starpoint/render_digit_9] + - [0x818BB0] + - type: code + start: 0x818CF0 + vram: 0x802ABC80 + name: starpoint_en + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, starpoint_en] + - type: .data + name: starpoint_en + start: 0x818CF0 + subsegments: + - [0x818CF0] + - [0x818D08, ia8, starpoint/starpoint, 128, 32] + - [0x819D08, gfx, starpoint/load_starpoint] + - [0x819D80, vtx, starpoint/starpoint] + - [0x819DC0] + - [0x819E88, vtx, starpoint/starpoints] + - [0x819EC8, ia8, starpoint/starpoints, 128, 32] + - [0x81AEC8, gfx, starpoint/load_starpoints] + - [0x81AF40] + - type: code + start: 0x81B030 + vram: 0x802ABC80 + name: starpoint_de + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, starpoint_de] + - start: 0x81B030 + type: .data + name: starpoint_de + subsegments: + - [0x81B030] + - [0x81B048, ia8, de/starpoint/starpoint, 128, 32] + - [0x81C048, gfx, de/starpoint/load_starpoint] + - [0x81C0C0, vtx, de/starpoint/starpoint] + - [0x81C100] + - [0x81C1C8, ia8, de/starpoint/starpoints, 128, 32] + - [0x81D1C8, gfx, de/starpoint/load_starpoints] + - [0x81D240, vtx, de/starpoint/starpoints] + - [0x81D280] + - type: code + start: 0x81D370 + vram: 0x802ABC80 + name: starpoint_fr + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, starpoint_fr] + - start: 0x81D370 + type: .data + name: starpoint_fr + subsegments: + - [0x81D370] + - [0x81D388, ia8, fr/starpoint/starpoint, 128, 32] + - [0x81E388, gfx, fr/starpoint/load_starpoint] + - [0x81E400, vtx, fr/starpoint/starpoint] + - [0x81E440] + - [0x81E508, ia8, fr/starpoint/starpoints, 128, 32] + - [0x81F508, gfx, fr/starpoint/load_starpoints] + - [0x81F580, vtx, fr/starpoint/starpoints] + - [0x81F5C0] + - type: code + start: 0x81F6B0 + vram: 0x802ABC80 + name: starpoint_es + symbol_name_format: PAL_$VRAM_$ROM + subsegments: + - [auto, c, starpoint_es] + - start: 0x81F6B0 + type: .data + name: starpoint_es + subsegments: + - [0x81F6B0] + - [0x81F6C8, ia8, es/starpoint/starpoint, 128, 32] + - [0x8206C8, gfx, es/starpoint/load_starpoint] + - [0x820740, vtx, es/starpoint/starpoint] + - [0x820780] + - [0x820848, ia8, es/starpoint/starpoints, 128, 32] + - [0x821848, gfx, es/starpoint/load_starpoints] + - [0x8218C0, vtx, es/starpoint/starpoints] + - [0x821900] - name: world_model_anim_kzn_01 dir: world/model_anim/kzn @@ -6802,8 +8793,22 @@ segments: vram: 0x80234000 subsegments: - [0x84C440, c, "24"] - - - [0x84CF10, bin] + - name: world_script_api + dir: world/script_api + type: code + start: 0x84CF10 + vram: 0x80280000 + subsegments: + - [auto, c, shops] + - [auto, c, rooms] + - [auto, c, push_blocks] + - [auto, c, enter_exit] + - name: texture_memory + type: code + start: 0x853440 + vram: 0x8028E000 + subsegments: + - [auto, c, texture_memory] ############ ### Maps ### @@ -12100,9 +14105,12 @@ segments: subsegments: - [0xE8AFB0, c, settings] - [0xE8AFB0, c, main] - -# todo: add heaps2 - + - name: heaps2 + type: code + start: 0xE8D120 + vram: 0x80267FF0 + subsegments: + - [auto, c, heaps2] - type: code start: 0xE8D120 name: inspect_icon @@ -13392,16 +15400,18 @@ segments: - [0xF0A780, ci4, BombableRock, 64, 64] - [0xF0AF80, palette, BombableRock] - [0xF0AFA0] - - [0xF0B5C0, bin] + - [0xF0B5C0, bin] # 0xFF pad fill - [0x13A0000, pm_sbn, audio] - [0x1DE2C40, bin, 1942C40] - { start: 0x1DF0000, align: 8, type: pm_sprites, name: sprites } - - [0x202f208, bin] # end of sprite data - todo: figure out what this is + - [0x202f208, bin] # zeros + - [0x202f210, bin] # 0xFF pad fill - start: 0x2030000 name: msg_pal_en type: pm_msg + toc: msg_pal files: - 00_Intro - 01_Outro @@ -13450,20 +15460,175 @@ segments: - 2C_QuizQuestions - 2D_QuizChoices - 2E_Credits - - [0x2132440, bin] + - [0x2132440, bin] # 0xFF pad fill - start: 0x21B0000 name: msg_pal_de - type: bin # TODO: turn into pm_msg + type: pm_msg + toc: msg_pal + generate_header: false + files: + - 00_Intro + - 01_Outro + - 02_ToadTownGate + - 03_ToadTownPlaza + - 04_ToadTownBridge + - 05_ToadTownStation + - 06_ToadTownHousing + - 07_ToadTownPort + - 08_Minigame + - 09_CastleGrounds + - 0A_ShootingStarSummit + - 0B_Prologue + - 0C_Chapter1 + - 0D_Chapter2 + - 0E_Chapter3 + - 0F_Chapter4 + - 10_Chapter5 + - 11_Chapter6 + - 12_Chapter7 + - 13_Chapter8 + - 14_Peach + - 15_KootFavors + - 16_RussTHints + - 17_NewsBoard + - 18_GossipBoard + - 19_MapTattles + - 1A_NpcTattles + - 1B_EntityTattles + - 1C_EnemyTattles + - 1D_Menus + - 1E_Choices + - 1F_MenuTips + - 20_Documents + - 21_MerlonHints + - 22_MerluvleeHints + - 23_ShortItemDesc + - 24_ShopItemDesc + - 25_FullItemDesc + - 26_ItemNames + - 27_Shops + - 28_PartnerDesc + - 29_EnemyNames + - 2A_PlayerMoves + - 2B_PartnerMoves + - 2C_QuizQuestions + - 2D_QuizChoices + - 2E_Credits + - [0x22D2220, bin] # 0xFF pad fill + - start: 0x2330000 name: msg_pal_fr - type: bin # TODO: turn into pm_msg + type: pm_msg + toc: msg_pal + generate_header: false + files: + - 00_Intro + - 01_Outro + - 02_ToadTownGate + - 03_ToadTownPlaza + - 04_ToadTownBridge + - 05_ToadTownStation + - 06_ToadTownHousing + - 07_ToadTownPort + - 08_Minigame + - 09_CastleGrounds + - 0A_ShootingStarSummit + - 0B_Prologue + - 0C_Chapter1 + - 0D_Chapter2 + - 0E_Chapter3 + - 0F_Chapter4 + - 10_Chapter5 + - 11_Chapter6 + - 12_Chapter7 + - 13_Chapter8 + - 14_Peach + - 15_KootFavors + - 16_RussTHints + - 17_NewsBoard + - 18_GossipBoard + - 19_MapTattles + - 1A_NpcTattles + - 1B_EntityTattles + - 1C_EnemyTattles + - 1D_Menus + - 1E_Choices + - 1F_MenuTips + - 20_Documents + - 21_MerlonHints + - 22_MerluvleeHints + - 23_ShortItemDesc + - 24_ShopItemDesc + - 25_FullItemDesc + - 26_ItemNames + - 27_Shops + - 28_PartnerDesc + - 29_EnemyNames + - 2A_PlayerMoves + - 2B_PartnerMoves + - 2C_QuizQuestions + - 2D_QuizChoices + - 2E_Credits + - [0x242C180, bin] # 0xFF pad fill + - start: 0x24B0000 name: msg_pal_es - type: bin # TODO: turn into pm_msg + type: pm_msg + toc: msg_pal + generate_header: false + files: + - 00_Intro + - 01_Outro + - 02_ToadTownGate + - 03_ToadTownPlaza + - 04_ToadTownBridge + - 05_ToadTownStation + - 06_ToadTownHousing + - 07_ToadTownPort + - 08_Minigame + - 09_CastleGrounds + - 0A_ShootingStarSummit + - 0B_Prologue + - 0C_Chapter1 + - 0D_Chapter2 + - 0E_Chapter3 + - 0F_Chapter4 + - 10_Chapter5 + - 11_Chapter6 + - 12_Chapter7 + - 13_Chapter8 + - 14_Peach + - 15_KootFavors + - 16_RussTHints + - 17_NewsBoard + - 18_GossipBoard + - 19_MapTattles + - 1A_NpcTattles + - 1B_EntityTattles + - 1C_EnemyTattles + - 1D_Menus + - 1E_Choices + - 1F_MenuTips + - 20_Documents + - 21_MerlonHints + - 22_MerluvleeHints + - 23_ShortItemDesc + - 24_ShopItemDesc + - 25_FullItemDesc + - 26_ItemNames + - 27_Shops + - 28_PartnerDesc + - 29_EnemyNames + - 2A_PlayerMoves + - 2B_PartnerMoves + - 2C_QuizQuestions + - 2D_QuizChoices + - 2E_Credits + - [0x25B11C0, bin] # 0xFF pad fill - [0x2600000, pm_map_data, mapfs] - - [0x2FD7362, bin] + - [0x2FD7362, bin] # more 0xFF pad fill - [0x3000000, bin] # Duplicate of 0x2000000-0x3000000 diff --git a/ver/pal/symbol_addrs.txt b/ver/pal/symbol_addrs.txt index 2d23f1c2a70..c6a52a84094 100644 --- a/ver/pal/symbol_addrs.txt +++ b/ver/pal/symbol_addrs.txt @@ -2929,3 +2929,223 @@ D_PAL_0A002170_EBA460 = 0xA002170; // rom:0xEBA460 charset_peach_letter_png = 0x00007308; //rom:0x117FB8 charset_postcard_png = 0x0000B290; //rom:0x11BF40 charset_letter_content_1_png = 0x0000D178; //rom:0x11DE28 +theater_walls_png = 0x800718F0; // rom:0x4CCF0 +theater_curtains_png = 0x80071A40; // rom:0x4CE40 +theater_floor_png = 0x80072A90; // rom:0x4DE90 +theater_floor_pal = 0x80072B90; // rom:0x4DF90 +theater_left_wall_vtx = 0x80072C30; // rom:0x4E030 +theater_right_wall_vtx = 0x80072C90; // rom:0x4E090 +theater_floor_vtx = 0x80072CF0; // rom:0x4E0F0 +theater_left_inset_shadow_vtx = 0x80072E80; // rom:0x4E280 +theater_right_inset_shadow_vtx = 0x80072EC0; // rom:0x4E2C0 +theater_curtain_vtx = 0x80072F00; // rom:0x4E300 +theater_wall_shadows_vtx = 0x800730F0; // rom:0x4E4F0 + +battle_action_cmd_whirlwind_1_png = 0x802A98E0; // rom:0x4772A0 +battle_action_cmd_whirlwind_1_pal = 0x802A9A00; // rom:0x4773C0 +battle_action_cmd_whirlwind_2_png = 0x802A9A20; // rom:0x4773E0 +battle_action_cmd_whirlwind_2_pal = 0x802A9B40; // rom:0x477500 +battle_action_cmd_whirlwind_3_png = 0x802A9B60; // rom:0x477520 +battle_action_cmd_whirlwind_3_pal = 0x802A9C80; // rom:0x477640 +battle_action_cmd_whirlwind_4_png = 0x802A9CA0; // rom:0x477660 +battle_action_cmd_whirlwind_4_pal = 0x802A9DC0; // rom:0x477780 +battle_action_cmd_whirlwind_5_png = 0x802A9DE0; // rom:0x4777A0 +battle_action_cmd_whirlwind_5_pal = 0x802A9F00; // rom:0x4778C0 +battle_action_cmd_whirlwind_6_png = 0x802A9F20; // rom:0x4778E0 +battle_action_cmd_whirlwind_6_pal = 0x802AA040; // rom:0x477A00 +battle_action_cmd_whirlwind_7_png = 0x802AA060; // rom:0x477A20 +battle_action_cmd_whirlwind_7_pal = 0x802AA180; // rom:0x477B40 +battle_action_cmd_whirlwind_bubble_png = 0x802AA1A0; // rom:0x477B60 +battle_action_cmd_whirlwind_bubble_pal = 0x802AA6E0; // rom:0x4780A0 + +battle_action_cmd_water_block_1_png = 0x802AA160; // rom:0x47E3A0 +battle_action_cmd_water_block_1_pal = 0x802AA280; // rom:0x47E4C0 +battle_action_cmd_water_block_2_png = 0x802AA2A0; // rom:0x47E4E0 +battle_action_cmd_water_block_2_pal = 0x802AA3C0; // rom:0x47E600 +battle_action_cmd_water_block_3_png = 0x802AA3E0; // rom:0x47E620 +battle_action_cmd_water_block_3_pal = 0x802AA500; // rom:0x47E740 +battle_action_cmd_water_block_0_png = 0x802AA520; // rom:0x47E760 +battle_action_cmd_water_block_0_pal = 0x802AA640; // rom:0x47E880 +battle_action_cmd_water_block_block_png = 0x802AA660; // rom:0x47E8A0 +battle_action_cmd_water_block_block_pal = 0x802AA860; // rom:0x47EAA0 +battle_action_cmd_water_block_circle_png = 0x802AA880; // rom:0x47EAC0 +battle_action_cmd_water_block_circle_pal = 0x802AABA0; // rom:0x47EDE0 +battle_action_cmd_water_block_cloud_png = 0x802AABC0; // rom:0x47EE00 +battle_action_cmd_water_block_cloud_pal = 0x802AAEE0; // rom:0x47F120 +battle_action_cmd_water_block_4_png = 0x802AAF00; // rom:0x47F140 +battle_action_cmd_water_block_4_pal = 0x802AB020; // rom:0x47F260 + +battle_move_hammer_throw_dusty_hammer_png = 0x802A3048; // rom:0x7A8138 +battle_move_hammer_throw_dusty_hammer_pal = 0x802A3248; // rom:0x7A8338 +battle_move_hammer_throw_basic_hammer_png = 0x802A3268; // rom:0x7A8358 +battle_move_hammer_throw_basic_hammer_pal = 0x802A3468; // rom:0x7A8558 +battle_move_hammer_throw_super_hammer_png = 0x802A3488; // rom:0x7A8578 +battle_move_hammer_throw_super_hammer_pal = 0x802A3688; // rom:0x7A8778 +battle_move_hammer_throw_ultra_hammer_png = 0x802A36A8; // rom:0x7A8798 +battle_move_hammer_throw_ultra_hammer_pal = 0x802A38A8; // rom:0x7A8998 +battle_move_hammer_throw_vtx = 0x802A38C8; // rom:0x7A89B8 size:0x40 +battle_move_hammer_throw_dusty_hammer_gfx = 0x802A3908; // rom:0x7A89F8 +battle_move_hammer_throw_basic_hammer_gfx = 0x802A39F8; // rom:0x7A8AE8 +battle_move_hammer_throw_super_hammer_gfx = 0x802A3AE8; // rom:0x7A8BD8 +battle_move_hammer_throw_ultra_hammer_gfx = 0x802A3BD8; // rom:0x7A8CC8 + +level_up_heart_png = 0x802A1000; // rom:0x7F2BE0 +level_up_heart_pal = 0x802A1320; // rom:0x7F2F00 +level_up_flower_png = 0x802A1340; // rom:0x7F2F20 +level_up_flower_pal = 0x802A1660; // rom:0x7F3240 +level_up_leaves_png = 0x802A1680; // rom:0x7F3260 +level_up_leaves_pal = 0x802A19A0; // rom:0x7F3580 +level_up_badge_png = 0x802A19C0; // rom:0x7F35A0 +level_up_badge_pal = 0x802A1CE0; // rom:0x7F38C0 +level_up_FP_png = 0x802A1D00; // rom:0x7F38E0 +level_up_FP_pal = 0x802A1E80; // rom:0x7F3A60 +level_up_BP_png = 0x802A1EA0; // rom:0x7F3A80 +level_up_BP_pal = 0x802A2020; // rom:0x7F3C00 +level_up_HP_png = 0x802A2040; // rom:0x7F3C20 +level_up_HP_pal = 0x802A21C0; // rom:0x7F3DA0 +level_up_FP_de_png = 0x802A21E0; // rom:0x7F3DC0 +level_up_FP_de_pal = 0x802A2360; // rom:0x7F3F40 +level_up_BP_de_png = 0x802A2380; // rom:0x7F3F60 +level_up_BP_de_pal = 0x802A2500; // rom:0x7F40E0 +level_up_HP_de_png = 0x802A2520; // rom:0x7F4100 +level_up_HP_de_pal = 0x802A26A0; // rom:0x7F4280 +level_up_FP_fr_png = 0x802A26C0; // rom:0x7F42A0 +level_up_FP_fr_pal = 0x802A2840; // rom:0x7F4420 +level_up_BP_fr_png = 0x802A2860; // rom:0x7F4440 +level_up_BP_fr_pal = 0x802A29E0; // rom:0x7F45C0 +level_up_HP_fr_png = 0x802A2A00; // rom:0x7F45E0 +level_up_HP_fr_pal = 0x802A2B80; // rom:0x7F4760 +level_up_FP_es_png = 0x802A2BA0; // rom:0x7F4780 +level_up_FP_es_pal = 0x802A2D20; // rom:0x7F4900 +level_up_BP_es_png = 0x802A2D40; // rom:0x7F4920 +level_up_BP_es_pal = 0x802A2EC0; // rom:0x7F4AA0 +level_up_HP_es_png = 0x802A2EE0; // rom:0x7F4AC0 +level_up_HP_es_pal = 0x802A3060; // rom:0x7F4C40 +level_up_digit_0_png = 0x802A3080; // rom:0x7F4C60 +level_up_digit_0_pal = 0x802A30C0; // rom:0x7F4CA0 +level_up_digit_1_png = 0x802A30E0; // rom:0x7F4CC0 +level_up_digit_1_pal = 0x802A3120; // rom:0x7F4D00 +level_up_digit_2_png = 0x802A3140; // rom:0x7F4D20 +level_up_digit_2_pal = 0x802A3180; // rom:0x7F4D60 +level_up_digit_3_png = 0x802A31A0; // rom:0x7F4D80 +level_up_digit_3_pal = 0x802A31E0; // rom:0x7F4DC0 +level_up_digit_4_png = 0x802A3200; // rom:0x7F4DE0 +level_up_digit_4_pal = 0x802A3240; // rom:0x7F4E20 +level_up_digit_5_png = 0x802A3260; // rom:0x7F4E40 +level_up_digit_5_pal = 0x802A32A0; // rom:0x7F4E80 +level_up_digit_6_png = 0x802A32C0; // rom:0x7F4EA0 +level_up_digit_6_pal = 0x802A3300; // rom:0x7F4EE0 +level_up_digit_7_png = 0x802A3320; // rom:0x7F4F00 +level_up_digit_7_pal = 0x802A3360; // rom:0x7F4F40 +level_up_digit_8_png = 0x802A3380; // rom:0x7F4F60 +level_up_digit_8_pal = 0x802A33C0; // rom:0x7F4FA0 +level_up_digit_9_png = 0x802A33E0; // rom:0x7F4FC0 +level_up_digit_9_pal = 0x802A3420; // rom:0x7F5000 +level_up_small_digit_0_png = 0x802A3440; // rom:0x7F5020 +level_up_small_digit_0_pal = 0x802A3460; // rom:0x7F5040 +level_up_small_digit_1_png = 0x802A3480; // rom:0x7F5060 +level_up_small_digit_1_pal = 0x802A34A0; // rom:0x7F5080 +level_up_small_digit_2_png = 0x802A34C0; // rom:0x7F50A0 +level_up_small_digit_2_pal = 0x802A34E0; // rom:0x7F50C0 +level_up_small_digit_3_png = 0x802A3500; // rom:0x7F50E0 +level_up_small_digit_3_pal = 0x802A3520; // rom:0x7F5100 +level_up_small_digit_4_png = 0x802A3540; // rom:0x7F5120 +level_up_small_digit_4_pal = 0x802A3560; // rom:0x7F5140 +level_up_small_digit_5_png = 0x802A3580; // rom:0x7F5160 +level_up_small_digit_5_pal = 0x802A35A0; // rom:0x7F5180 +level_up_small_digit_6_png = 0x802A35C0; // rom:0x7F51A0 +level_up_small_digit_6_pal = 0x802A35E0; // rom:0x7F51C0 +level_up_small_digit_7_png = 0x802A3600; // rom:0x7F51E0 +level_up_small_digit_7_pal = 0x802A3620; // rom:0x7F5200 +level_up_small_digit_8_png = 0x802A3640; // rom:0x7F5220 +level_up_small_digit_8_pal = 0x802A3660; // rom:0x7F5240 +level_up_small_digit_9_png = 0x802A3680; // rom:0x7F5260 +level_up_small_digit_9_pal = 0x802A36A0; // rom:0x7F5280 +level_up_small_arrow_png = 0x802A36C0; // rom:0x7F52A0 +level_up_small_arrow_pal = 0x802A36E0; // rom:0x7F52C0 +level_up_digit_0_red_pal = 0x802A3700; // rom:0x7F52E0 +level_up_digit_1_red_pal = 0x802A3720; // rom:0x7F5300 +level_up_digit_2_red_pal = 0x802A3740; // rom:0x7F5320 +level_up_digit_3_red_pal = 0x802A3760; // rom:0x7F5340 +level_up_digit_4_red_pal = 0x802A3780; // rom:0x7F5360 +level_up_digit_5_red_pal = 0x802A37A0; // rom:0x7F5380 +level_up_digit_6_red_pal = 0x802A37C0; // rom:0x7F53A0 +level_up_digit_7_red_pal = 0x802A37E0; // rom:0x7F53C0 +level_up_digit_8_red_pal = 0x802A3800; // rom:0x7F53E0 +level_up_digit_9_red_pal = 0x802A3820; // rom:0x7F5400 +level_up_small_digit_0_red_pal = 0x802A3840; // rom:0x7F5420 +level_up_small_digit_1_red_pal = 0x802A3860; // rom:0x7F5440 +level_up_small_digit_2_red_pal = 0x802A3880; // rom:0x7F5460 +level_up_small_digit_3_red_pal = 0x802A38A0; // rom:0x7F5480 +level_up_small_digit_4_red_pal = 0x802A38C0; // rom:0x7F54A0 +level_up_small_digit_5_red_pal = 0x802A38E0; // rom:0x7F54C0 +level_up_small_digit_6_red_pal = 0x802A3900; // rom:0x7F54E0 +level_up_small_digit_7_red_pal = 0x802A3920; // rom:0x7F5500 +level_up_small_digit_8_red_pal = 0x802A3940; // rom:0x7F5520 +level_up_small_digit_9_red_pal = 0x802A3960; // rom:0x7F5540 +level_up_small_arrow_red_pal = 0x802A3980; // rom:0x7F5560 +level_up_digit_0_blue_pal = 0x802A39A0; // rom:0x7F5580 +level_up_digit_1_blue_pal = 0x802A39C0; // rom:0x7F55A0 +level_up_digit_2_blue_pal = 0x802A39E0; // rom:0x7F55C0 +level_up_digit_3_blue_pal = 0x802A3A00; // rom:0x7F55E0 +level_up_digit_4_blue_pal = 0x802A3A20; // rom:0x7F5600 +level_up_digit_5_blue_pal = 0x802A3A40; // rom:0x7F5620 +level_up_digit_6_blue_pal = 0x802A3A60; // rom:0x7F5640 +level_up_digit_7_blue_pal = 0x802A3A80; // rom:0x7F5660 +level_up_digit_8_blue_pal = 0x802A3AA0; // rom:0x7F5680 +level_up_digit_9_blue_pal = 0x802A3AC0; // rom:0x7F56A0 +level_up_small_digit_0_blue_pal = 0x802A3AE0; // rom:0x7F56C0 +level_up_small_digit_1_blue_pal = 0x802A3B00; // rom:0x7F56E0 +level_up_small_digit_2_blue_pal = 0x802A3B20; // rom:0x7F5700 +level_up_small_digit_3_blue_pal = 0x802A3B40; // rom:0x7F5720 +level_up_small_digit_4_blue_pal = 0x802A3B60; // rom:0x7F5740 +level_up_small_digit_5_blue_pal = 0x802A3B80; // rom:0x7F5760 +level_up_small_digit_6_blue_pal = 0x802A3BA0; // rom:0x7F5780 +level_up_small_digit_7_blue_pal = 0x802A3BC0; // rom:0x7F57A0 +level_up_small_digit_8_blue_pal = 0x802A3BE0; // rom:0x7F57C0 +level_up_small_digit_9_blue_pal = 0x802A3C00; // rom:0x7F57E0 +level_up_small_arrow_blue_pal = 0x802A3C20; // rom:0x7F5800 +level_up_select_one_to_upgrade_png = 0x802A3C40; // rom:0x7F5820 +level_up_select_one_to_upgrade_pal = 0x802A42C0; // rom:0x7F5EA0 +level_up_select_one_to_upgrade_de_png = 0x802A42E0; // rom:0x7F5EC0 +level_up_select_one_to_upgrade_de_pal = 0x802A4960; // rom:0x7F6540 +level_up_select_one_to_upgrade_fr_png = 0x802A4980; // rom:0x7F6560 +level_up_select_one_to_upgrade_fr_pal = 0x802A5000; // rom:0x7F6BE0 +level_up_select_one_to_upgrade_es_png = 0x802A5020; // rom:0x7F6C00 +level_up_select_one_to_upgrade_es_pal = 0x802A56A0; // rom:0x7F7280 + +D_802A3340_7AACE0 = 0x802A1040; // rom:0x80E0B0 +D_802A4460_7ABE00 = 0x802A2160; // rom:0x80F1D0 +D_802A5580_7ACF20 = 0x802A3280; // rom:0x8102F0 +D_802A66A0_7AE040 = 0x802A43A0; // rom:0x811410 +D_802A77C0_7AF160 = 0x802A54C0; // rom:0x812530 +D_802A88E0_7B0280 = 0x802A65E0; // rom:0x813650 +D_802A9A00_7B13A0 = 0x802A7700; // rom:0x814770 +D_802AAB20_7B24C0 = 0x802A8820; // rom:0x815890 +D_802ABC40_7B35E0 = 0x802A9940; // rom:0x8169B0 +D_802ACD60_7B4700 = 0x802AAA60; // rom:0x817AD0 +D_802A4410_7ABDB0 = 0x802A2110; // rom:0x80F180 +D_802A5530_7ACED0 = 0x802A3230; // rom:0x8102A0 +D_802A6650_7ADFF0 = 0x802A4350; // rom:0x8113C0 +D_802A7770_7AF110 = 0x802A5470; // rom:0x8124E0 +D_802A8890_7B0230 = 0x802A6590; // rom:0x813600 +D_802A99B0_7B1350 = 0x802A76B0; // rom:0x814720 +D_802AAAD0_7B2470 = 0x802A87D0; // rom:0x815840 +D_802ABBF0_7B3590 = 0x802A98F0; // rom:0x816960 +D_802ACD10_7B46B0 = 0x802AAA10; // rom:0x817A80 +D_802ADE30_7B57D0 = 0x802ABB30; // rom:0x818BA0 + +starpoint_lights1 = 0x802ABC80; // rom:0x818CF0 +D_802A1018_7A89B8 = 0x802ABC98; // rom:0x818D08 +D_802A2018_7A99B8 = 0x802ACC98; // rom:0x819D08 +D_802A2090_7A9A30 = 0x802ACD10; // rom:0x819D80 +D_802A20D0_7A9A70 = 0x802ACD50; // rom:0x819DC0 +D_802A2130_7A9AD0 = 0x802ACDB0; // rom:0x819E20 +D_802A2158_7A9AF8 = 0x802ACDD8; // rom:0x819E48 +starpoint_lights2 = 0x802ACE00; // rom:0x819E70 +D_802A2198_7A9B38 = 0x802ACE18; // rom:0x819E88 +D_802A21D8_7A9B78 = 0x802ACE58; // rom:0x819EC8 +D_802A31D8_7AAB78 = 0x802ADE58; // rom:0x81AEC8 +D_802A3250_7AABF0 = 0x802ADED0; // rom:0x81AF40 +D_802A32B0_7AAC50 = 0x802ADF30; // rom:0x81AFA0 +D_802A32D8_7AAC78 = 0x802ADF58; // rom:0x81AFC8 diff --git a/ver/pal/undefined_syms.txt b/ver/pal/undefined_syms.txt index a772fb990e7..76916f70bb8 100644 --- a/ver/pal/undefined_syms.txt +++ b/ver/pal/undefined_syms.txt @@ -1,755 +1,42 @@ -charset_postcard_OFFSET = 0xB290; -D_D158 = 0xD158; -charset_ROM_START = 0x110CB0; -icon_ROM_START = 0x1DA1E0; -set_time_freeze_mode = 0x80027008; -get_time_freeze_mode = 0x80027110; -start_rumble = 0x80028E88; -length2D = 0x80028F70; -_heap_create = 0x80028FB0; -_heap_malloc = 0x80028FEC; -_heap_malloc_tail = 0x800290E4; -_heap_free = 0x8002919C; -_heap_realloc = 0x80029244; -cosine = 0x80029354; -sign = 0x80029430; -int_to_string = 0x80029444; -mem_clear = 0x80029580; -transform_point = 0x800295A0; -copy_matrix = 0x800296A0; -dma_copy = 0x800296BC; -rand_float = 0x800298B4; -rand_int = 0x8002997C; -signF = 0x800299FC; -round = 0x80029A44; -clamp_angle = 0x80029AA4; -get_clamped_angle_diff = 0x80029BA8; -atan2 = 0x80029C00; -get_player_normal_yaw = 0x80029DA0; -get_player_normal_pitch = 0x80029DD0; -dist2D = 0x80029E54; -dist3D = 0x80029EAC; -add_vec2D_polar = 0x80029F1C; -sin_cos_rad = 0x8002A034; -sin_rad = 0x8002A0EC; -cos_rad = 0x8002A150; -sin_cos_deg = 0x8002A1B4; -sin_deg = 0x8002A26C; -cos_deg = 0x8002A2D0; -update_lerp = 0x8002A334; -startup_draw_prim_rect_COPY = 0x8002AA44; -general_heap_create = 0x8002AB80; -general_heap_malloc = 0x8002ABA8; -general_heap_free = 0x8002ABF8; -heap_malloc = 0x8002AC64; -heap_free = 0x8002ACAC; -fio_load_globals = 0x8002AFE0; -fio_save_globals = 0x8002B054; -fio_load_game = 0x8002B34C; -fio_save_game = 0x8002B41C; -fio_erase_game = 0x8002B510; -func_PAL_8002B574 = 0x8002B574; -set_curtain_scale_goal = 0x8002C1EC; -set_curtain_draw_callback = 0x8002C214; -set_curtain_fade = 0x8002C234; -create_cameras = 0x8002E214; -set_cam_viewport = 0x8002E634; -get_screen_coords = 0x8002E858; -set_game_mode = 0x80033810; -get_game_mode = 0x80033848; -startup_set_fade_screen_alpha = 0x80033B10; -startup_set_fade_screen_color = 0x80033B20; -set_map_change_fade_rate = 0x80035CF0; -state_init_intro = 0x80036550; -clear_npcs = 0x800389AC; -create_basic_npc = 0x80038D34; -create_standard_npc = 0x80038D54; -free_npc_by_index = 0x80038D90; -free_npc = 0x80038EBC; -get_npc_by_index = 0x80038FCC; -npc_do_world_collision = 0x80038FEC; -npc_do_other_npc_collision = 0x800394FC; -npc_try_snap_to_ground = 0x80039CD8; -npc_get_render_yaw = 0x8003A294; -npc_move_heading = 0x8003AF44; -get_npc_unsafe = 0x8003AFDC; -get_npc_safe = 0x8003B038; -enable_npc_shadow = 0x8003B090; -disable_npc_shadow = 0x8003B0EC; -set_npc_sprite = 0x8003B14C; -enable_npc_blur = 0x8003B214; -disable_npc_blur = 0x8003B29C; -set_npc_yaw = 0x8003B830; -npc_set_palswap_mode_A = 0x8003B8C0; -npc_set_palswap_1 = 0x8003B93C; -npc_set_palswap_2 = 0x8003B954; -npc_set_decoration = 0x8003C8C8; -npc_find_closest = 0x8003D4A4; -npc_find_closest_simple = 0x8003D5B4; -npc_find_standing_on_entity = 0x8003D6C4; -npc_set_imgfx_params = 0x8003DB14; -spawn_surface_effects = 0x8003DB50; -init_encounter_status = 0x8003E828; -kill_enemy = 0x8003EC9C; -get_enemy = 0x8003F1D8; -get_enemy_safe = 0x8003F258; -check_conversation_trigger = 0x800436D8; -is_starting_conversation = 0x80044644; -SetEncounterStatusFlags = 0x80044670; -IsStartingConversation = 0x800446E0; -func_80044238 = 0x80044728; -MakeNpcs = 0x80044788; -RemoveNpc = 0x80044830; -RemoveEncounter = 0x80044968; -GetBattleOutcome = 0x80044A6C; -func_800445D4 = 0x80044AC4; -GetOwnerEncounterTrigger = 0x80044AF0; -DoNpcDefeat = 0x80044B1C; -StartBattle = 0x80044D30; -StartBattleWith = 0x80044D50; -StartBossBattle = 0x80044D8C; -SetBattleMusic = 0x80044F28; -BindNpcAI = 0x80044F68; -BindNpcIdle = 0x8004509C; -RestartNpcAI = 0x8004511C; -EnableNpcAI = 0x800451E0; -SetNpcAux = 0x80045294; -BindNpcAux = 0x800453A8; -BindNpcInteract = 0x80045594; -BindNpcHit = 0x80045630; -BindNpcDefeat = 0x800456CC; -SetSelfVar = 0x8004574C; -GetSelfVar = 0x800457B0; -SetNpcVar = 0x80045810; -GetNpcVar = 0x800458AC; -SetSelfEnemyFlags = 0x800459FC; -SetSelfEnemyFlagBits = 0x80045A14; -SelfEnemyOverrideSyncPos = 0x80045A70; -GetSelfNpcID = 0x80045B04; -ClearDefeatedEnemies = 0x80045B30; -SetEnemyFlagBits = 0x80045B78; -GetSelfAnimationFromTable = 0x80045C24; -SetOwnerInstigatorValue = 0x80045CB4; -SetBattleAsScripted = 0x80045CE8; -GetEncounterTriggerHitTier = 0x80045CFC; -func_80045838 = 0x80045D28; -func_800458CC = 0x80045DBC; -OnPlayerFled = 0x80045DF0; -SetTattleMessage = 0x80045F48; -remove_status_debuff = 0x80047D88; -remove_status_static = 0x80047E90; -remove_status_chill_out = 0x80048074; -spawn_drops = 0x80048860; -is_point_outside_territory = 0x800495B4; -basic_ai_check_player_dist = 0x80049694; -ai_check_player_dist = 0x800499CC; -ai_enemy_play_sound = 0x80049AA0; -basic_ai_wander_init = 0x80049B80; -basic_ai_wander = 0x80049C98; -basic_ai_loiter_init = 0x8004A124; -basic_ai_loiter = 0x8004A1E4; -basic_ai_found_player_jump_init = 0x8004A41C; -basic_ai_found_player_jump = 0x8004A4AC; -basic_ai_chase_init = 0x8004A55C; -basic_ai_chase = 0x8004A704; -basic_ai_lose_player = 0x8004A9C8; -BasicAI_Main = 0x8004AA5C; -basic_ai_suspend = 0x8004AD1C; -ai_check_fwd_collisions = 0x8004AD64; -snd_start_sound = 0x800557C0; -snd_start_sound_with_shift = 0x80055820; -snd_adjust_sound_with_shift = 0x80055910; -snd_stop_sound = 0x800559A0; -snd_load_ambient = 0x80055A28; -snd_ambient_play = 0x80055A44; -snd_ambient_stop_quick = 0x80055A84; -snd_ambient_stop_slow = 0x80055AC8; -snd_ambient_pause = 0x80055B1C; -snd_ambient_resume = 0x80055B70; -snd_ambient_is_stopped = 0x80055BC4; -snd_ambient_mute = 0x80055BF8; -snd_ambient_set_volume = 0x80055C4C; -snd_ambient_80055760 = 0x80055D40; -snd_ambient_stop_all = 0x80055DAC; -snd_ambient_play_only = 0x80055E28; -au_song_load = 0x80055EB4; -au_song_start_variation = 0x80055F50; -au_song_stop = 0x80055FA4; -au_song_is_playing = 0x80055FDC; -snd_set_song_variation_fade = 0x80055FF8; -snd_set_song_variation_fade_time = 0x8005609C; -func_80055AF0 = 0x800560D0; -func_80055B28 = 0x80056108; -func_80055B80 = 0x80056160; -func_80055BB8 = 0x80056198; -snd_set_song_variation = 0x800562A4; -snd_song_set_playback_rate = 0x80056318; -snd_song_set_track_volumes = 0x800563BC; -snd_song_clear_track_volumes = 0x80056428; -bgm_set_proximity_mix_far = 0x80056608; -bgm_set_proximity_mix_near = 0x80056624; -bgm_set_proximity_mix_full = 0x80056648; -bgm_poll_music_events = 0x8005666C; -bgm_flush_music_events = 0x80056688; -audio_set_stereo = 0x8005673C; -audio_set_mono = 0x80056760; -func_800561A4 = 0x80056784; -func_800561E4 = 0x800567C4; -clear_effect_data = 0x8005A27C; -create_effect_instance = 0x8005A89C; -remove_effect = 0x8005AA30; -load_effect = 0x8005AB44; -get_current_map_settings = 0x8005B308; -get_map_IDs_by_name = 0x8005B318; -load_asset_by_name = 0x8005B408; -initialize_collision = 0x8005B6B4; -parent_collider_to_model = 0x8005BEA0; -update_collider_transform = 0x8005C144; -get_collider_flags = 0x8005C4C8; -get_collider_center = 0x8005C530; -test_ray_colliders = 0x8005D3F0; -test_ray_zones = 0x8005D844; -test_ray_entities = 0x8005DB68; -npc_follow_init = 0x8005E5EC; -npc_update_npc_tracking = 0x8005E6F4; -npc_follow_npc = 0x8005E84C; -nuPiReadRom = 0x8005FB30; -osVirtualToPhysical = 0x80062D00; -sqrtf = 0x80062D60; -guFrustumF = 0x80062DA0; -guLookAtHiliteF = 0x80063730; -guOrthoF = 0x80064780; -guOrtho = 0x800648B0; -guPerspectiveF = 0x80064A00; -guPositionF = 0x80064D80; -guPosition = 0x80064F58; -guRotateRPYF = 0x80065140; -sins = 0x80065460; -bcopy = 0x800654C0; -bzero = 0x800657E0; -sprintf = 0x80066360; -guMtxIdent = 0x800682C0; -guMtxIdentF = 0x80068320; -guMtxF2L = 0x80068380; -guMtxL2F = 0x80068400; -guMtxCatF = 0x80068480; -guScale = 0x80068580; -guScaleF = 0x80068640; -guTranslate = 0x800686A0; -guTranslateF = 0x80068780; -guMtxXFML = 0x80068860; -guMtxXFMF = 0x800688F0; -guRotateF = 0x800689A0; -guRotate = 0x80068B00; -strcmp = 0x8006FD10; -decode_yay0 = 0x8006FD90; -reset_battle_status = 0x8006FE40; -gGameStatusPtr = 0x800714AC; -gMatrixListPos = 0x80071500; -gCurrentDisplayContextIndex = 0x80071504; -nuGfxCfbNum = 0x80073710; -gCurrentCameraID = 0x80073730; -IntroMessageIdx = 0x80073D00; -gSaveSlotMetadata = 0x80073D14; -gSaveSlotHasData = 0x80073D74; -EnemyNpcHit = 0x80074310; -EnemyNpcDefeat = 0x8007443C; -gEffectTable = 0x8007B5B0; -HES_Item_CoinSparkleRandom = 0x8007D364; -HES_Item_Postcard = 0x8007E698; -HES_Item_Postcard_disabled = 0x8007E6C8; -HES_Item_EmptyBook = 0x8007E6F8; -HES_Item_EmptyBook_disabled = 0x8007E728; -gItemTable = 0x80083C80; -gItemHudScripts = 0x80086A20; -gItemEntityScripts = 0x8008A174; -gItemIconRasterOffsets = 0x8008A778; -gItemIconPaletteOffsets = 0x8008ACEC; -PartnerIDFromMenuIndex = 0x8008B260; -MenuIndexFromPartnerID = 0x8008B290; -gPartnerPopupProperties = 0x8008B2C0; -gMoveTable = 0x8008B400; -gMessageBoxFrameParts = 0x8008C280; -gAreas = 0x8008F890; -EVS_800936C0 = 0x8008FA60; -EVS_NpcHitRecoil = 0x8008FA7C; -gTimeFreezeMode = 0x800969AC; -nuGfxZBuffer = 0x800969B0; -gCurrentModelTreeNodeInfo = 0x800969C8; -gEncounterState = 0x800969D4; -gCurrentCamID = 0x80096A0C; -nuGfxCfb_ptr = 0x80096A24; -gOverrideFlags = 0x80096A28; -nuGfxCfb = 0x80096A30; -gMainGfxPos = 0x80096A44; -gDisplayContext = 0x80096A4C; -wMapTexName = 0x800AF3B8; -gCurrentEncounter = 0x800AF5E0; -gCameras = 0x800B0460; -D_800B32E0 = 0x800B19C0; -D_800B3AE0 = 0x800B21C0; -gCollisionData = 0x800B29C0; -gZoneCollisionData = 0x800D5928; -wMapHitName = 0x800D5938; -wMapShapeName = 0x800D5988; -gSaveGlobals = 0x800D5D58; -wMapBgName = 0x800D5DD8; -gCurrentSaveFile = 0x800D7430; -gBattleStatus = 0x800D87E0; -D_8014FE84 = 0x8014FE84; -D_8014FE98 = 0x8014FE98; -D_8014FEA0 = 0x8014FEA0; -D_8014FEB4 = 0x8014FEB4; -D_8014FEC4 = 0x8014FEC4; -D_8014FEE4 = 0x8014FEE4; -D_8014FEEC = 0x8014FEEC; -D_8014FF08 = 0x8014FF08; -D_8014FF0C = 0x8014FF0C; -D_801547F8 = 0x801547F8; -D_801548E0 = 0x801548E0; -D_80154934 = 0x80154934; -D_80155B30 = 0x80155B30; -D_80156030 = 0x80156030; -D_80156530 = 0x80156530; -D_80156534 = 0x80156534; -D_80156538 = 0x80156538; -D_80156540 = 0x80156540; -D_80156B40 = 0x80156B40; -D_80157140 = 0x80157140; -D_80157144 = 0x80157144; -D_80157150 = 0x80157150; -D_80157750 = 0x80157750; -D_80157D50 = 0x80157D50; -D_80158710 = 0x80158710; -D_8015B3A0 = 0x8015B3A0; -D_80200000 = 0x80200000; -gBackgroundImage = 0x80200000; -UseBattleCamPreset = 0x8024E5BC; -UseBattleCamPresetImmediately = 0x8024E604; -SetBattleCamParam = 0x8024E6E8; -SetBattleCamTarget = 0x8024E8AC; -SetBattleCamOffsetY = 0x8024E9F8; -SetBattleCamYaw = 0x8024EA84; -BattleCamTargetActor = 0x8024EAC4; -BattleCamTargetActorPart = 0x8024EB24; -MoveBattleCamOver = 0x8024EBA8; -SetBattleCamDist = 0x8024EC0C; -AddBattleCamDist = 0x8024EC4C; -SetBattleCamTargetingModes = 0x8024EC98; -FreezeBattleCam = 0x8024ED18; -DisableBattleCamClampX = 0x8024ED44; -btl_set_popup_duration = 0x8024FA64; -ShowMessageBox = 0x80251474; -ShowVariableMessageBox = 0x802514CC; -IsMessageBoxDisplayed = 0x80251544; -WaitForMessageBoxDone = 0x8025158C; -SetMessageBoxDuration = 0x802515C8; -ItemDamageEnemy = 0x802528E8; -ItemSpookEnemy = 0x80252AE4; -ItemAfflictEnemy = 0x80252CFC; -ItemCheckHit = 0x80252F00; -ActorSpeak = 0x802530F0; -EndActorSpeech = 0x80253490; -ShowBattleChoice = 0x802536F8; -EnableBattleStatusBar = 0x80253774; -OverrideBattleDmaDest = 0x802537B8; -LoadBattleDmaData = 0x802537E4; -EnableBattleFloorReflections = 0x80253868; -SetDarknessMode = 0x802538F4; -GetDarknessStatus = 0x80253980; -PlaySoundAtActor = 0x80253A1C; -PlaySoundAtPart = 0x80253A90; -PlayLoopingSoundAtActor = 0x80253B34; -StopLoopingSoundAtActor = 0x80253BD8; -MakeStatusField = 0x80253D54; -save_tattle_flags = 0x80253ED0; -load_tattle_flags = 0x80254038; -MultiplyByActorScale = 0x8025419C; -MultiplyVec3ByActorScale = 0x8025429C; -ApplyShrinkFromOwner = 0x80254358; -StartRumble = 0x802543D8; -create_current_pos_target_list = 0x80263424; -set_actor_anim = 0x802640F4; -add_xz_vec3f = 0x80264520; -play_movement_dust_effects = 0x802646E8; -get_actor_part = 0x80264854; -lookup_defense = 0x8026623C; -lookup_status_chance = 0x80266290; -inflict_status = 0x80266338; -player_team_is_ability_active = 0x802676A4; -btl_update_ko_status = 0x80267B74; -LoadItemScript = 0x802682C0; -LoadActionCommand = 0x802685B0; -action_command_init_status = 0x80268C48; -increment_action_command_attempt_count = 0x80269508; -increment_action_command_success_count = 0x80269550; -SetActionDifficultyTable = 0x8026958C; -SetupMashMeter = 0x802695B8; -GetSmashActionQuality = 0x80269684; -SetActionSuccess = 0x802696B0; -SetActionCommandMode = 0x802696DC; -GetActionCommandMode = 0x80269708; -SetActionHudPrepareTime = 0x80269734; -SetCommandAutoSuccess = 0x8026978C; -InterruptActionCommand = 0x80269800; -InterruptLeechActionCommand = 0x80269860; -ShowActionHud = 0x80269894; -GetMashActionQuality = 0x802698E8; -GetJumpActionQuality = 0x80269914; -SetActionResult = 0x80269940; -GetBlockResult = 0x8026996C; -GetActionProgress = 0x80269998; -SetActionProgress = 0x802699C4; -GetActionResultTier = 0x802699F0; -set_goal_pos_to_part = 0x80269B44; -get_actor = 0x8026A15C; -LoadBattleSection = 0x8026A1D4; -GetBattlePhase = 0x8026A218; -GetLastElement = 0x8026A244; -GetDamageSource = 0x8026A270; -SetDamageSource = 0x8026A29C; -SetGoalToHome = 0x8026A2B4; -SetIdleGoalToHome = 0x8026A31C; -SetGoalToIndex = 0x8026A384; -GetIndexFromPos = 0x8026A44C; -GetIndexFromHome = 0x8026A4C4; -CountTargets = 0x8026A53C; -ForceHomePos = 0x8026A5DC; -SetHomePos = 0x8026A6C0; -SetGoalToTarget = 0x8026A798; -SetGoalToFirstTarget = 0x8026A88C; -SetGoalPos = 0x8026A900; -SetIdleGoal = 0x8026AA1C; -AddGoalPos = 0x8026AB38; -GetGoalPos = 0x8026AC10; -GetIdleGoal = 0x8026ACDC; -GetActorPos = 0x8026AE98; -GetPartOffset = 0x8026AF64; -GetPartPos = 0x8026B078; -GetHomePos = 0x8026B164; -SetActorPos = 0x8026B230; -SetPartPos = 0x8026B308; -SetEnemyTargetOffset = 0x8026B490; -SetAnimation = 0x8026B5A0; -GetAnimation = 0x8026B628; -SetAnimationRate = 0x8026B6C0; -SetActorYaw = 0x8026B748; -GetActorYaw = 0x8026B7B8; -SetPartYaw = 0x8026B828; -SetActorJumpGravity = 0x8026B94C; -SetActorIdleJumpGravity = 0x8026B9C8; -SetActorSpeed = 0x8026BA44; -SetActorIdleSpeed = 0x8026BAC0; -SetPartJumpGravity = 0x8026BB3C; -SetPartMoveSpeed = 0x8026BBDC; -SetJumpAnimations = 0x8026BC7C; -SetActorDispOffset = 0x8026BDF4; -SetPartDispOffset = 0x8026C028; -FreezeBattleState = 0x8026C338; -GetActorVar = 0x8026C3A4; -SetActorVar = 0x8026C434; -AddActorVar = 0x8026C4C4; -GetPartMovementVar = 0x8026C560; -SetPartMovementVar = 0x8026C61C; -SetActorRotation = 0x8026C79C; -SetActorRotationOffset = 0x8026C89C; -SetPartRotation = 0x8026CA24; -SetPartRotationOffset = 0x8026CB30; -GetPartRotation = 0x8026CC18; -SetActorScale = 0x8026CCF4; -GetActorScale = 0x8026CE74; -SetPartScale = 0x8026CF3C; -GetBattleFlags = 0x8026D100; -SetBattleFlagBits = 0x8026D12C; -GetBattleFlags2 = 0x8026D190; -SetBattleFlagBits2 = 0x8026D1BC; -SetActorFlagBits = 0x8026D27C; -GetActorFlags = 0x8026D310; -SetPartFlags = 0x8026D378; -SetPartFlagBits = 0x8026D400; -SetPartTargetFlagBits = 0x8026D548; -SetPartEventFlags = 0x8026D730; -SetPartEventBits = 0x8026D7B8; -GetPartEventFlags = 0x8026D878; -SetPartImmunityBits = 0x8026D994; -HPBarToHome = 0x8026DA54; -HPBarToCurrent = 0x8026DB98; -SetHPBarOffset = 0x8026DD30; -SetActorStatusOffsets = 0x8026DE84; -SummonEnemy = 0x8026DF54; -GetOwnerID = 0x8026E1F0; -SetOwnerID = 0x8026E218; -ActorExists = 0x8026E24C; -GetPartAnimNotify = 0x8026E378; -SetBattleMenuEnabledFlags = 0x8026E410; -SetEnabledStarPowers = 0x8026E428; -CheckButtonPress = 0x8026E488; -CheckButtonDown = 0x8026E4F8; -SetBattleState = 0x8026E55C; -WaitForState = 0x8026E588; -CancelEnemyTurn = 0x8026E5F8; -CreateCurrentPosTargetList = 0x8026E6BC; -CreateHomeTargetList = 0x8026E700; -InitTargetIterator = 0x8026E744; -SetOwnerTarget = 0x8026E798; -ChooseNextTarget = 0x8026E804; -GetTargetListLength = 0x8026EC54; -GetOwnerTarget = 0x8026EC9C; -func_8026E914 = 0x8026ED04; -GetDistanceToGoal = 0x8026EDEC; -SetActorPaletteEffect = 0x8026EE6C; -SetActorPaletteSwapParams = 0x8026EFE8; -EnableActorPaletteEffects = 0x8026F110; -AddActorDecoration = 0x8026F278; -RemoveActorDecoration = 0x8026F33C; -ModifyActorDecoration = 0x8026F3E0; -UseIdleAnimation = 0x8026F4DC; -GetStatusFlags = 0x8026F620; -RemovePlayerBuffs = 0x8026F83C; -SetPartAlpha = 0x8026F860; -CreatePartShadow = 0x8026F91C; -RemovePartShadow = 0x8026F98C; -SetEndBattleFadeOutRate = 0x8026F9FC; -SetBattleVar = 0x8026FA28; -GetBattleVar = 0x8026FA84; -ResetAllActorSounds = 0x8026FADC; -SetActorSounds = 0x8026FB30; -ResetActorSounds = 0x8026FC28; -SetPartSounds = 0x8026FDF0; -SetActorType = 0x8026FF10; -ShowShockEffect = 0x8026FFA0; -GetActorAttackBoost = 0x8026FFF4; -GetActorDefenseBoost = 0x8027005C; -BoostAttack = 0x802700C4; -BoostDefense = 0x80270564; -VanishActor = 0x80270A04; -ElectrifyActor = 0x80270D4C; -HealActor = 0x80271094; -WaitForBuffDone = 0x8027153C; -CopyBuffs = 0x80271550; -GetMenuSelection = 0x802737B4; -PlayerHopToGoal = 0x80273834; -PlayerFallToGoal = 0x80273C84; -PlayerRunToGoal = 0x80274054; -GetPlayerHP = 0x80274624; -DispatchDamagePlayerEvent = 0x80274D0C; -EnablePlayerBlur = 0x80274D68; -DispatchEventPlayer = 0x8027730C; -dispatch_event_actor = 0x80277550; -BindTakeTurn = 0x80278D20; -PauseTakeTurn = 0x80278D94; -ResumeTakeTurn = 0x80278E0C; -BindIdle = 0x80278E84; -EnableIdleScript = 0x80278F3C; -BindHandleEvent = 0x80279010; -BindHandlePhase = 0x80279084; -JumpToGoal = 0x802790F8; -IdleJumpToGoal = 0x802794FC; -JumpWithBounce = 0x80279B18; -LandJump = 0x80279EC4; -FallToGoal = 0x80279FDC; -RunToGoal = 0x8027A254; -IdleRunToGoal = 0x8027A654; -JumpPartTo = 0x8027A8D4; -FallPartTo = 0x8027AC44; -LandJumpPart = 0x8027AF4C; -RunPartTo = 0x8027B09C; -FlyToGoal = 0x8027BA14; -IdleFlyToGoal = 0x8027BFA8; -FlyPartTo = 0x8027C328; -GetLastEvent = 0x8027C8D0; -SetTargetActor = 0x8027C938; -SetEnemyHP = 0x8027C9B8; -GetActorHP = 0x8027CA90; -GetEnemyMaxHP = 0x8027CB38; -RemoveActor = 0x8027CBA0; -DropStarPoints = 0x8027CC94; -SetDefenseTable = 0x8027CE64; -SetStatusTable = 0x8027CEF8; -SetIdleAnimations = 0x8027CF6C; -EnemyDamageTarget = 0x8027D0A4; -EnemyTestTarget = 0x8027D3A8; -DispatchDamageEvent = 0x8027D5AC; -DispatchEvent = 0x8027D654; -ShowHealthBar = 0x8027D6C8; -HideHealthBar = 0x8027D71C; -SetTargetOffset = 0x8027D770; -func_8027D434 = 0x8027D824; -SetProjectileTargetOffset = 0x8027D8B8; -EnableActorBlur = 0x8027D96C; -AfflictActor = 0x8027DA6C; -GetInstigatorValue = 0x8027DB4C; -GetEncounterTrigger = 0x8027DBB4; -YieldTurn = 0x8027DBE0; -SetActorSize = 0x8027DC00; -GetActorSize = 0x8027DCD0; -SetPartSize = 0x8027DD60; -GetOriginalActorType = 0x8027DE58; -GetLastDamage = 0x8027DF2C; -EnableActorGlow = 0x8027DF94; -WasStatusInflicted = 0x8027E058; -CopyStatusEffects = 0x8027E0AC; -ClearStatusEffects = 0x8027E190; -dispatch_event_partner = 0x8027E270; -GetActorLevel = 0x80280138; -PartnerDamageEnemy = 0x802801A4; -PartnerAfflictEnemy = 0x802803F4; -PartnerPowerBounceEnemy = 0x80280660; -PartnerTestEnemy = 0x802808C0; -GetPartnerActionQuality = 0x80280BC0; -PartnerYieldTurn = 0x80280C08; -GetDamageIntensity = 0x80280C30; -LoadStarPowerScript = 0x80280D40; -DemoBattleBeginDelay = 0x80280DE8; -MakeShop = 0x80281878; -MakeShopOwner = 0x80281BF0; -CreateMapRoom = 0x80281CBC; -bActorTattles = 0x80282F88; -bActorOffsets = 0x802832D8; -CreatePushBlockGrid = 0x802832F0; -SetPushBlock = 0x8028348C; -GetPushBlock = 0x802835D0; -bMarioIdleAnims = 0x80283628; -GetGridIndexFromPos = 0x802836C8; -bMarioHideAnims = 0x80283760; -SetPushBlockFallEffect = 0x802837BC; -EVS_ShopOwnerDialog = 0x80284064; -EMS_StarIcon = 0x802843A8; -EnterWalk = 0x80285970; -EnterWalkShort = 0x80285A70; -EnterPostPipe = 0x80285C60; -EnterSavePoint = 0x80285CC0; -ExitWalk = 0x80285D04; -ExitSingleDoor = 0x80285DBC; -EnterSingleDoor = 0x80285DE4; -ExitSplitSingleDoor = 0x80285E0C; -EnterSplitSingleDoor = 0x80285E34; -ExitDoubleDoor = 0x80285E5C; -EnterDoubleDoor = 0x80285E84; -ExitSplitDoubleDoor = 0x80285EAC; -EnterSplitDoubleDoor = 0x80285ED4; -BaseExitDoor = 0x80285EFC; -BaseEnterDoor = 0x802861C0; -TextureHeap = 0x8028E000; -HES_AimMarkerA = 0x802933FC; -HES_AimMarkerB = 0x80293494; -HES_AimMarkerC = 0x8029352C; -HES_AimMarkerD = 0x802935C4; -HES_AimMarkerE = 0x8029365C; -HES_AimMarkerF = 0x802936F4; -HES_AimShimmerA = 0x802938BC; -HES_AimShimmerB = 0x80293954; -HES_AimShimmerC = 0x802939EC; -HES_AimShimmerD = 0x80293A84; -HES_AimShimmerE = 0x80293B1C; -HES_AimShimmerF = 0x80293BB4; -HES_AimReticle = 0x80293D7C; -HES_AimTarget = 0x80293DB4; -HES_AimBlinkA = 0x80293DEC; -EVS_UseMystery = 0x80294490; -EVS_PlaySleepHitFX = 0x80294C30; -EVS_Partner_Celebrate = 0x80294D70; -EVS_Partner_RunAway = 0x8029514C; -EVS_Partner_BurnContact = 0x802952B8; -EVS_Partner_SpikeContact = 0x80295634; -EVS_Partner_BombetteSpikeContact = 0x802959A0; -EVS_Partner_ShockHit = 0x80295D94; -EVS_Partner_Recover = 0x80296514; -EVS_Partner_Drop = 0x80296664; -EVS_Partner_BurnHit = 0x8029686C; -EVS_Partner_LakilesterHit = 0x80297D38; -EVS_Partner_Hit = 0x80297E0C; -EVS_Partner_NoDamageHit = 0x80297E64; -EVS_ForceNextTarget = 0x80299240; -EVS_Enemy_Hit = 0x80299694; -EVS_Enemy_BurnHit = 0x8029A720; -EVS_Enemy_ShockHit = 0x8029AD4C; -EVS_Enemy_ShockHit_Impl = 0x8029ADBC; -EVS_Enemy_NoDamageHit = 0x8029B2C0; -EVS_Enemy_Death = 0x8029B510; -EVS_Enemy_DeathWithoutRemove = 0x8029B558; -EVS_Enemy_ScareAway = 0x8029B87C; -EVS_Enemy_SpinSmashHit = 0x8029BFE8; -EVS_Enemy_FlipBackUp = 0x8029C204; -EVS_Enemy_Knockback = 0x8029C3C0; -EVS_Enemy_ReturnHome = 0x8029C508; -EVS_Enemy_Recover = 0x8029C5F0; -EVS_Enemy_HopHome = 0x8029C6F4; -EVS_Enemy_HopToPos = 0x8029C77C; -EVS_Enemy_AirLift = 0x8029C9CC; -EVS_Enemy_BlowAway = 0x8029CAF8; -gActionCommandStatus = 0x802A0230; -action_command_air_lift_init = 0x802A9000; -action_command_air_raid_init = 0x802A9000; -action_command_body_slam_init = 0x802A9000; -action_command_bomb_init = 0x802A9000; -action_command_dizzy_shell_init = 0x802A9000; -action_command_fire_shell_init = 0x802A9000; -action_command_hammer_init = 0x802A9000; -action_command_hurricane_init = 0x802A9000; -action_command_jump_init = 0x802A9000; -action_command_mega_shock_init = 0x802A9000; -action_command_power_shock_init = 0x802A9000; -action_command_smack_init = 0x802A9000; -action_command_spiny_surge_init = 0x802A9000; -action_command_spook_init = 0x802A9000; -action_command_squirt_init = 0x802A9000; -action_command_stop_leech_init = 0x802A9000; -action_command_tidal_wave_init = 0x802A9000; -action_command_three_chances_init = 0x802A9000; -action_command_whirlwind_init = 0x802A9000; -action_command_stop_leech_start = 0x802A9110; -action_command_squirt_start = 0x802A911C; -action_command_jump_start = 0x802A9120; -action_command_tidal_wave_start = 0x802A9138; -action_command_spiny_surge_start = 0x802A916C; -action_command_bomb_start = 0x802A9170; -action_command_dizzy_shell_start = 0x802A9170; -action_command_air_raid_start = 0x802A9178; -action_command_fire_shell_start = 0x802A9178; -action_command_smack_start = 0x802A917C; -action_command_spook_start = 0x802A917C; -action_command_air_lift_start = 0x802A9184; -action_command_hurricane_start = 0x802A91A0; -action_command_mega_shock_start = 0x802A91A0; -action_command_break_free_start = 0x802A91B0; -action_command_body_slam_start = 0x802A91B8; -action_command_whirlwind_start = 0x802A91E0; -action_command_power_shock_start = 0x802A9210; -action_command_hammer_start = 0x802A9258; -action_command_three_chances_start = 0x802A9398; -BattleEntityHeapBottom = 0x802C3000; -spr_get_npc_raster_info = 0x802E4CB8; -MsgCharsets = 0x802F18A8; -D_802EB5C0 = 0x802F18C0; -D_802EB5F0 = 0x802F18F0; -D_802EB620 = 0x802F1920; -D_802EB644 = 0x802F1944; -ui_msg_bubble_left_png = 0x802F1970; -ui_msg_bubble_mid_png = 0x802F1D70; -ui_msg_bubble_right_png = 0x802F1E70; -ui_msg_arrow_png = 0x802F2270; -ui_msg_palettes = 0x802F26F0; -ui_msg_sign_corner_topleft_png = 0x802F28F0; -ui_msg_sign_corner_topright_png = 0x802F2970; -ui_msg_sign_corner_bottomleft_png = 0x802F29F0; -ui_msg_sign_corner_bottomright_png = 0x802F2A70; -ui_msg_lamppost_corner_bottomright_png = 0x802F2AF0; -ui_msg_sign_side_top_png = 0x802F2B70; -ui_msg_sign_side_left_png = 0x802F2C70; -ui_msg_sign_side_right_png = 0x802F2DB0; -ui_msg_sign_side_bottom_png = 0x802F2EF0; -ui_msg_sign_fill_png = 0x802F2FF0; -ui_msg_sign_pal = 0x802F3010; -ui_msg_lamppost_pal = 0x802F3030; -ui_msg_background_png = 0x802F3050; -ui_msg_rewind_arrow_png = 0x802F3850; -ui_msg_rewind_arrow_pal = 0x802F3970; -ui_msg_star_png = 0x802F3990; -ui_msg_star_silhouette_png = 0x802F3BD0; -MsgCharImgTitle = 0x802F3C70; -MsgCharImgNormal = 0x802F4BD0; -MsgCharImgSubtitle = 0x802F9CD0; -D_802F4560 = 0x802FA860; -heap_generalHead = 0x802FB800; -heap_spriteHead = 0x8034F800; +// hard-coded things +gBackgroundImage = 0x80200000; // hard-coded inside mapfs for now +gMapShapeData = 0x80210000; // needs to be hard-coded atm due to pointers in shape data + +heap_battleHead = gFrameBuf2; + +overlays_start = 0x802DC500; + +fx_sun_undeclared = fx_sun; + +sprite_shading_profiles_data_ROM_START = sprite_shading_profiles_ROM_START + 0x1D0; + +// boot +D_A0000000 = 0xA0000000; +D_A4000000 = 0xA4000000; +D_A4000768 = 0xA4000768; +D_A4001000 = 0xA4001000; +D_A4040010 = 0xA4040010; +D_A4300000 = 0xA4300000; +D_A4300004 = 0xA4300004; +D_A4300008 = 0xA4300008; +D_A430000C = 0xA430000C; +D_A4400010 = 0xA4400010; +D_A450000C = 0xA450000C; +D_A4600004 = 0xA4600004; +D_A460000C = 0xA460000C; +D_A4600010 = 0xA4600010; +D_A4700000 = 0xA4700000; +D_A4700010 = 0xA4700010; +D_A4800018 = 0xA4800018; +D_A6000000 = 0xA6000000; +D_B0000000 = 0xB0000000; +D_B0000008 = 0xB0000008; +D_B0000010 = 0xB0000010; + +// Obfuscation symbols +obfuscated_battle_heap_create = battle_heap_create - 0xFEFFFFF; +obfuscated_general_heap_create = general_heap_create - 0xFEFEFEF; +obfuscated_load_engine_data = load_engine_data - 0x315; +obfuscated_create_audio_system = create_audio_system - 0x7B; +obfuscated_obfuscation_shims_VRAM = obfuscation_shims_VRAM - 0xA912928; +obfuscated_obfuscation_shims_ROM_START = obfuscation_shims_ROM_START - 0x8939221; diff --git a/ver/pal/undefined_syms_auto.txt b/ver/pal/undefined_syms_auto.txt index 2b2dc35db65..e69de29bb2d 100644 --- a/ver/pal/undefined_syms_auto.txt +++ b/ver/pal/undefined_syms_auto.txt @@ -1,23 +0,0 @@ -D_A0000000 = 0xA0000000; -D_A4000000 = 0xA4000000; -D_A4000768 = 0xA4000768; -D_A4001000 = 0xA4001000; -D_A4040010 = 0xA4040010; -D_A4300000 = 0xA4300000; -D_A4300004 = 0xA4300004; -D_A4300008 = 0xA4300008; -D_A430000C = 0xA430000C; -D_A4400010 = 0xA4400010; -D_A450000C = 0xA450000C; -D_A4600004 = 0xA4600004; -D_A460000C = 0xA460000C; -D_A4600010 = 0xA4600010; -D_A4700000 = 0xA4700000; -D_A4700010 = 0xA4700010; -D_A4800018 = 0xA4800018; -D_A6000000 = 0xA6000000; -D_B0000000 = 0xB0000000; -D_B0000008 = 0xB0000008; -D_B0000010 = 0xB0000010; -fx_sun_undeclared = fx_sun; -sprite_shading_profiles_data_ROM_START = sprite_shading_profiles_ROM_START + 0x1D0; diff --git a/ver/us/splat.yaml b/ver/us/splat.yaml index 7ea3f34a1fe..e3e57410094 100644 --- a/ver/us/splat.yaml +++ b/ver/us/splat.yaml @@ -152,7 +152,7 @@ segments: - [auto, c, 38F00] - [auto, c, npc_follow] - [auto, c, os/nusys/nuboot] - - [auto, c, os/nusys/nusched] + - [auto, c, os/nusys/nusched, -finline-functions] - [auto, c, os/nusys/nugfxfuncset] - [auto, c, os/nusys/nugfxprenmifuncset] - [auto, c, os/nusys/nugfxtaskallendwait] @@ -165,20 +165,20 @@ segments: - [auto, c, os/nusys/nucontinit] - [auto, c, os/nusys/nucontdataget] - [auto, c, os/nusys/nucontpakmgr] - - [auto, c, os/nusys/nucontrmbmgr] + - [auto, c, os/nusys/nucontrmbmgr, -finline-functions] - [auto, c, os/nusys/nucontrmbstart] - [auto, c, os/nusys/nucontrmbcheck] - [auto, c, os/nusys/nucontrmbmodeset] - [auto, c, os/nusys/nucontrmbforcestop] - [auto, c, os/nusys/nucontrmbforcestopend] - [auto, c, os/nusys/nupireadromoverlay] - - [auto, c, os/nusys/nugfxthread] + - [auto, c, os/nusys/nugfxthread, -finline-functions] - [auto, c, os/nusys/nugfxswapcfbfuncset] - [auto, c, os/nusys/nugfxswapcfb] - [auto, c, os/nusys/nugfxretracewait] - [auto, c, os/nusys/nusicallbackadd] - [auto, c, os/nusys/nusicallbackremove] - - [auto, c, os/nusys/nucontmgr] + - [auto, c, os/nusys/nucontmgr, -finline-functions] - [auto, c, os/nusys/nucontdatalock] - [auto, c, os/nusys/nucontqueryread] - [auto, hasm, os/osSetIntMask]