From ff4935de7722628231a0a32dd2cd1523638fd9e8 Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Mon, 7 Aug 2023 06:50:01 +0200 Subject: [PATCH] Pal engine2 (#1106) * Work on engine2 * Fix some names * Match init_hud_element_list * Fix stuff * fix stuff * Update src/msg.c Co-authored-by: Alex Bates * condtionally define constants * fix warning --------- Co-authored-by: Anghelo Carvajal Co-authored-by: Alex Bates Co-authored-by: Ethan Roseman --- src/hud_element.c | 10 + src/imgfx.c | 2 +- src/msg.c | 42 +- ver/pal/asm/bss3.s | 688 +++ .../asm/nonmatchings/msg/appendGfx_message.s | 4932 +++++++++++++++++ ver/pal/asm/nonmatchings/msg/dma_load_msg.s | 44 + .../msg/msg_copy_to_print_buffer.s | 1359 +++++ ver/pal/splat.yaml | 97 +- ver/pal/symbol_addrs.txt | 6 + ver/pal/undefined_syms.txt | 329 +- 10 files changed, 7260 insertions(+), 249 deletions(-) create mode 100644 ver/pal/asm/bss3.s create mode 100644 ver/pal/asm/nonmatchings/msg/appendGfx_message.s create mode 100644 ver/pal/asm/nonmatchings/msg/dma_load_msg.s create mode 100644 ver/pal/asm/nonmatchings/msg/msg_copy_to_print_buffer.s diff --git a/src/hud_element.c b/src/hud_element.c index 4b72fc6387..dcc1c70008 100644 --- a/src/hud_element.c +++ b/src/hud_element.c @@ -661,10 +661,20 @@ void hud_element_clear_cache(void) { func_801413F8(); } +#if VERSION_PAL +extern Addr D_80200000; +#endif + void init_hud_element_list(void) { if (!gGameStatusPtr->isBattle) { if (gHudElementCacheBufferBattle != NULL) { +#if VERSION_PAL + if (gHudElementCacheBufferBattle != D_80200000) { + general_heap_free(gHudElementCacheBufferBattle); + } +#else general_heap_free(gHudElementCacheBufferBattle); +#endif gHudElementCacheBufferBattle = NULL; } diff --git a/src/imgfx.c b/src/imgfx.c index 1d0de4b0c8..3df01d7089 100644 --- a/src/imgfx.c +++ b/src/imgfx.c @@ -3,7 +3,7 @@ #include "sprite.h" #include "imgfx.h" -#if VERSION_IQUE +#if VERSION_IQUE || VERSION_PAL // TODO: remove if section is split in iQue release extern Addr imgfx_data_ROM_START; #endif diff --git a/src/msg.c b/src/msg.c index ca793ceb7f..3d399c5087 100644 --- a/src/msg.c +++ b/src/msg.c @@ -33,18 +33,41 @@ enum RewindArrowStates { #define MSG_ROM_START 0x1B83000 #endif +#if VERSION_PAL +#define CONST_A 7 +#define CONST_B 5.0 +#else +#define CONST_A 6 +#define CONST_B 6.0 +#endif + typedef MessageImageData* MessageImageDataList[1]; s32 D_8014C280[] = { 0x028001E0, 0x01FF0000, 0x028001E0, 0x01FF0000 }; u8 MessagePlural[] = { MSG_CHAR_LOWER_S, MSG_CHAR_READ_END }; +#if VERSION_PAL +u8 MessagePlural_de[] = { MSG_CHAR_LOWER_N, MSG_CHAR_READ_END }; +#endif + u8 MessageSingular[] = { MSG_CHAR_READ_ENDL, MSG_CHAR_READ_END }; +#if VERSION_PAL +s32 gCurrentLanguage = 0; + +void* D_PAL_8014AE50[] = { + [LANGUAGE_EN] = msg_pal_en_ROM_START, + [LANGUAGE_DE] = msg_pal_de_ROM_START, + [LANGUAGE_FR] = msg_pal_fr_ROM_START, + [LANGUAGE_ES] = msg_pal_es_ROM_START, +}; +#endif + s16 gNextMessageBuffer = 0; //TODO Vtx -s32 gRewindArrowQuad[] = { +ALIGNED(8) s32 gRewindArrowQuad[] = { 0xFFF00009, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00100009, 0x00000000, 0x04000000, 0xFFFFFFFF, 0xFFF0FFF7, 0x00000000, 0x00000240, 0xFFFFFFFF, @@ -436,7 +459,7 @@ s32 _update_message(MessagePrintState* printer) { } case MSG_WINDOW_STATE_SCROLLING_BACK: printer->scrollingTime++; - if (printer->scrollingTime >= 5) { + if (printer->scrollingTime >= (s32)(5 * DT)) { printer->windowState = MSG_WINDOW_STATE_WAITING_FOR_CHOICE; printer->curOption = printer->targetOption; printer->selectedOption = printer->curOption; @@ -502,7 +525,7 @@ s32 _update_message(MessagePrintState* printer) { (!(printer->stateFlags & (MSG_STATE_FLAG_10 | MSG_STATE_FLAG_4)) && (gGameStatusPtr->curButtons[0] & BUTTON_A))) { - printer->curLinePos += 6; + printer->curLinePos += CONST_A; } if (printer->curLinePos >= printer->nextLinePos) { @@ -676,7 +699,7 @@ extern s32 MsgLetterRasterOffsets[]; extern s32 MsgLetterPaletteOffsets[]; extern MsgVoice MsgVoices[]; -#if VERSION_IQUE +#if VERSION_IQUE || VERSION_PAL INCLUDE_ASM(s32, "msg", msg_copy_to_print_buffer); #else void msg_copy_to_print_buffer(MessagePrintState* printer, s32 arg1, s32 arg2) { @@ -1323,7 +1346,7 @@ void initialize_printer(MessagePrintState* printer, s32 arg1, s32 arg2) { printer->printBuffer[0] = MSG_CHAR_PRINT_END; printer->printDelayTime = 1; printer->charsPerChunk = 1; - printer->unk_464 = 6; + printer->unk_464 = CONST_A; printer->srcBuffer = NULL; printer->msgID = 0; printer->curPrintDelay = 0; @@ -1391,6 +1414,10 @@ void initialize_printer(MessagePrintState* printer, s32 arg1, s32 arg2) { printer->sizeScale = 1.0f; } +#if VERSION_PAL +void dma_load_msg(u32 msgID, void* dest); +INCLUDE_ASM(s32, "msg", dma_load_msg); +#else void dma_load_msg(u32 msgID, void* dest) { u8* addr = (u8*) MSG_ROM_START + (msgID >> 14); // (msgID >> 16) * 4 u8* offset[2]; // start, end @@ -1403,6 +1430,7 @@ void dma_load_msg(u32 msgID, void* dest) { // Load the msg data dma_copy(MSG_ROM_START + offset[0], MSG_ROM_START + offset[1], dest); } +#endif s8* load_message_to_buffer(s32 msgID) { s8* prevBufferPos; @@ -2158,7 +2186,7 @@ void msg_draw_choice_pointer(MessagePrintState* printer) { posY = printer->windowOffsetPos.y + printer->windowBasePos.y + printer->cursorPosY[printer->selectedOption]; } else { s32 baseX, baseY, targetX, targetY; - f32 moveToTargetAlpha = (f32)(printer->scrollingTime + 1.0) / 6.0; + f32 moveToTargetAlpha = (f32)(printer->scrollingTime + 1.0) / CONST_B; baseX = printer->windowOffsetPos.x + printer->windowBasePos.x + printer->cursorPosX[printer->selectedOption]; targetX = printer->windowOffsetPos.x + printer->windowBasePos.x + printer->cursorPosX[printer->targetOption]; @@ -2339,7 +2367,7 @@ void draw_message_window(MessagePrintState* printer) { } } -#if VERSION_IQUE +#if VERSION_IQUE || VERSION_PAL INCLUDE_ASM(s32, "msg", appendGfx_message); #else void appendGfx_message(MessagePrintState* printer, s16 posX, s16 posY, u16 additionalOffsetX, u16 additionalOffsetY, diff --git a/ver/pal/asm/bss3.s b/ver/pal/asm/bss3.s new file mode 100644 index 0000000000..f33be6131c --- /dev/null +++ b/ver/pal/asm/bss3.s @@ -0,0 +1,688 @@ +.include "macro.inc" + +# assembler directives +.set noat # allow manual use of $at +.set noreorder # don't insert nops after branches +.set gp=64 # allow use of 64-bit general purpose registers + +#ifndef SHIFT + +.section .bss + +dlabel gAuxSpriteShadingProfile +.space 4 + +dlabel gHudElementsNumber +.space 4 + +dlabel gCurrentCustomModelGfxBuildersPtr +.space 4 + +dlabel D_801512BC +.space 4 + +dlabel entity_numEntities +.space 4 + +dlabel gEntityHeapBase +.space 4 + +dlabel gHudElementCacheTableRaster +.space 4 + +dlabel gCurrentModels +.space 4 + +dlabel gHudElementCacheTablePalette +.space 4 + +dlabel gAnimCount +.space 4 + +dlabel gMsgBGScrollAmtX +.space 4 + +dlabel D_801512DC +.space 4 + +dlabel gCurrentTransformGroups +.space 4 + +dlabel gMsgGlobalWaveCounter +.space 4 + +dlabel gCurrentCustomModelGfxPtr +.space 4 + +dlabel gLastCreatedEntityIndex +.space 4 + +dlabel gBackgroundFogModePtr +.space 4 + +dlabel gMsgVarImages +.space 4 + +dlabel ItemEntitiesCreated +.space 4 + +dlabel gCurrentModelTreeRoot +.space 4 + +dlabel gEntityHeapBottom +.space 4 + +dlabel D_80151304 +.space 4 + +dlabel gCurrentRoomDoorSounds +.space 4 + +dlabel gMsgBGScrollAmtY +.space 2 + +dlabel D_8015130E +.space 2 + +dlabel gEntityHideMode +.space 4 + +dlabel gHudElementCacheBuffer +.space 4 + +dlabel gEntityModelCount +.space 4 + +dlabel D_8015131C +.space 4 + +dlabel D_80151320 +.space 4 + +dlabel entity_numShadows +.space 4 + +dlabel gSpriteShadingProfile +.space 4 + +dlabel isAreaSpecificEntityDataLoaded +.space 4 + +dlabel entity_updateCounter +.space 4 + +dlabel gTriggerCount +.space 4 + +dlabel D_80151338 +.space 4 + +dlabel gHudElementCacheSize +.space 4 + +dlabel gCurrentDoorSounds +.space 4 + +dlabel D_80151344 +.space 4 + +dlabel D_80151348 +.space 0x00000038 - 0x10 # TODO: find offset + +dlabel gWorldEntityList +.space 0x00000078 + +dlabel gBattleEntityList +.space 0x00000078 + +dlabel gCurrentEntityListPtr +.space 4 + +dlabel D_80151474 +.space 4 + +dlabel gWorldShadowList +.space 0x000000f0 + +dlabel gBattleShadowList +.space 0x000000f0 + +dlabel gCurrentShadowListPtr +.space 4 + +dlabel wEntityDataLoadedSize +.space 4 + +dlabel bEntityDataLoadedSize +.space 4 + +dlabel D_80151664 +.space 4 + +dlabel wEntityBlueprint +.space 0x00000078 + +.space 8 + +dlabel bEntityBlueprint +.space 0x00000014 + +dlabel D_801516FC +.space 4 + +dlabel gMainGameState +.space 0x00000040 + +dlabel gCurrentTextureHeader +.space 0x00000030 + +dlabel wModelList +.space 0x00000400 + +dlabel bModelList +.space 0x00000400 + +dlabel wTransformGroups +.space 0x00000010 + +dlabel bTransformGroups +.space 0x00000010 + +dlabel wCustomModelGfx +.space 0x00000080 + +dlabel bCustomModelGfx +.space 0x00000080 + +dlabel wCustomModelGfxBuilders +.space 0x00000080 + +dlabel bCustomModelGfxBuilders +.space 0x00000080 + +dlabel wModelLocalVtxBuffers +.space 0x00000040 + +dlabel bModelLocalVtxBuffers +.space 0x00000040 + +dlabel gCurrentModelLocalVtxBuffers +.space 4 + +dlabel wModelTreeRoot +.space 4 + +dlabel bModelTreeRoot +.space 4 + +dlabel D_8015221C +.space 4 + +dlabel D_80152220 +.space 0x00000800 + +dlabel D_80152A20 +.space 0x00000800 + +dlabel wBackgroundFogMode +.space 1 + +dlabel bBackgroundFogMode +.space 1 + +dlabel D_80153222 +.space 1 + +dlabel D_80153223 +.space 1 + +dlabel mdl_treeIterPos +.space 4 + +dlabel wFogSettings +.space 0x00000020 + +dlabel bFogSettings +.space 0x0000001c + +dlabel gCurrentFogSettings +.space 4 + +dlabel texPannerMainU +.space 0x00000040 + +dlabel texPannerMainV +.space 0x00000040 + +dlabel texPannerAuxU +.space 0x00000040 + +dlabel texPannerAuxV +.space 0x00000040 + +dlabel TextureHeapPos +.space 4 + +dlabel mtg_IterIdx +.space 2 + +dlabel mtg_SearchModelID +.space 2 + +dlabel mtg_FoundModelNode +.space 4 + +dlabel mtg_MinChild +.space 2 + +dlabel mtg_MaxChild +.space 2 + +dlabel D_80153378 +.space 8 + +dlabel depthCopyBuffer +.space 0x00000020 + +dlabel mdl_renderTaskLists +.space 0x0000000c + +dlabel mdl_renderTaskQueueIdx +.space 4 + +dlabel mdl_renderTaskCount +.space 0x00000010 + +dlabel D_801533C0 +.space 0x00000300 + +dlabel D_801536C0 +.space 0x00000300 + +dlabel D_801539C0 +.space 0x00000040 + +dlabel D_80153A00 +.space 0x00000040 + +dlabel gCurrentAnimMeshListPtr +.space 4 + +dlabel gAnimModelFogEnabled +.space 4 + +dlabel gAnimModelFogR +.space 4 + +dlabel gAnimModelFogG +.space 4 + +dlabel gAnimModelFogB +.space 4 + +dlabel gAnimModelFogA +.space 4 + +dlabel gAnimModelFogStart +.space 4 + +dlabel gAnimModelFogEnd +.space 4 + +dlabel gAnimVtxSegment +.space 4 + +dlabel D_80153A64 +.space 4 + +dlabel gAnimRotMtx +.space 0x00000040 + +dlabel gAnimScaleMtx +.space 0x00000040 + +dlabel gAnimTranslateMtx +.space 0x00000040 + +dlabel gAnimRotScaleMtx +.space 0x00000040 + +dlabel gAnimTreeRoot +.space 8 + +dlabel gWorldEntityModelList +.space 0x00000400 + +dlabel gBattleEntityModelList +.space 0x00000400 + +dlabel gCurrentEntityModelList +.space 4 + +dlabel D_80154374 +.space 4 + +dlabel entity_fog_enabled +.space 4 + +dlabel entity_fog_red +.space 4 + +dlabel entity_fog_green +.space 4 + +dlabel entity_fog_blue +.space 4 + +dlabel entity_fog_alpha +.space 4 + +dlabel entity_fog_dist_min +.space 4 + +dlabel entity_fog_dist_max +.space 4 + +dlabel D_80154394 +.space 0x0000000c + +dlabel gWorldWorkerList +.space 0x00000040 + +dlabel gBattleWorkerList +.space 0x00000040 + +dlabel gCurrentWorkerListPtr +.space 4 + +dlabel D_80154424 +.space 0x0000000c + +dlabel gMessageBuffers +.space 0x00000800 + +dlabel gMessagePrinters +.space 0x00001008 + +dlabel gMessageMsgVars +.space 0x00000060 + +dlabel D_80155C98 +.space 8 + +dlabel gMessageWindowProjMatrix +.space 0x00000080 + +dlabel D_80155D20 +.space 4 + +dlabel D_8015DD24 +.space 0x00000050 + +dlabel msg_drawState +.space 4 + +dlabel D_8015DD78 +.space 8 + +dlabel D_80155D80 +.space 4 + +dlabel ItemEntityAlternatingSpawn +.space 4 + +dlabel ItemEntityRenderGroup +.space 4 + +dlabel D_80155D8C +.space 2 + +dlabel D_80155D8E +.space 2 + +dlabel D_80155D90 +.space 2 + +dlabel pad_ItemEntity +.space 0x000000E + +dlabel WorldItemEntities +.space 0x00000400 + +dlabel BattleItemEntities +.space 0x00000400 + +dlabel gCurrentItemEntities +.space 4 + +dlabel isPickingUpItem +.space 2 + +dlabel D_801565A6 +.space 2 + +dlabel D_801565A8 +.space 4 + +dlabel D_801565AC +.space 4 + +dlabel D_801565B0 +.space 0x00000330 +.space 0x14 + +dlabel ItemPickupIconID +.space 4 + +dlabel ItemPickupStateDelay +.space 4 + +dlabel D_801568E8 +.space 4 + +dlabel D_801568EC +.space 4 + +dlabel ItemPickupGotOutline +.space 4 + +dlabel GotItemTutorialPrinter +.space 4 + +dlabel GotItemTutorialClosed +.space 4 + +dlabel D_801568FC +# .space 4 + +dlabel screen_overlay_frontType +.space 4 + +dlabel screen_overlay_frontZoom +.space 4 + +dlabel screen_overlay_backType +.space 4 + +dlabel screen_overlay_backZoom +.space 4 + +dlabel D_80156910 +.space 0x00000010 + +dlabel ImgFXCurrentTexture +.space 0x00000028 + +dlabel ImgFXVtxBuffers +.space 8 + +dlabel imgfx_vtxBuf +.space 4 + +dlabel ImgFXInstances +.space 4 + +dlabel D_80156958 +.space 8 + +dlabel D_80156960 +.space 8 + +dlabel D_80156968 +.space 8 + +dlabel D_80156970 +.space 0x00000010 + +dlabel ImgFXAnimHeaders +.space 0x000005a0 + +dlabel ImgFXDataCache +.space 0x00000040 + +dlabel gHudElementsWorld +.space 0x00000500 + +dlabel gHudElementsBattle +.space 0x00000500 + +dlabel gHudElements +.space 4 + +dlabel gHudElementCacheBufferWorld +.space 4 + +dlabel gHudElementCacheSizeWorld +.space 4 + +dlabel D_8015796C +.space 4 + +dlabel gHudElementCacheTableRasterWorld +.space 0x00000600 + +dlabel gHudElementCacheTablePaletteWorld +.space 0x00000600 + +dlabel gHudElementCacheBufferBattle +.space 4 + +dlabel gHudElementCacheSizeBattle +.space 4 + +dlabel D_80158578 +.space 8 + +dlabel gHudElementCacheTableRasterBattle +.space 0x00000600 + +dlabel gHudElementCacheTablePaletteBattle +.space 0x00000600 + +dlabel D_80159180 +.space 0x00000010 + +dlabel wTriggerList +.space 0x00000100 + +dlabel bTriggerList +.space 0x00000100 + +dlabel gCurrentTriggerListPtr +.space 4 + +dlabel D_80159394 +.space 0x0000000c + +dlabel gBackgroundPalette +.space 0x00000200 + +dlabel gBackroundLastScrollValue +.space 0x00000020 - 0x10 + +dlabel wSpriteShadingProfile +.space 0x000000b0 + +dlabel bSpriteShadingProfile +.space 0x000000b0 + +dlabel wSpriteShadingProfileAux +.space 0x000000b0 + +dlabel bSpriteShadingProfileAux +.space 0x000000b0 + +dlabel SpriteShadingPalette +.space 0x00000020 + +dlabel wEnvSounds +.space 0x00000118 + +dlabel bEnvSounds +.space 0x00000118 + +dlabel gCurrentEnvSounds +.space 4 + +dlabel SfxReverbMode +.space 4 + +dlabel D_80159AD8 +.space 8 + +dlabel MusicDefaultVolume +.space 2 + +dlabel MusicTargetVolume +.space 2 + +dlabel MusicMaxVolume +.space 2 + +dlabel MusicCurrentVolume +.space 2 + +dlabel D_80159AE8 +.space 8 + +dlabel gMusicSettings +.space 0x00000060 + +dlabel D_80159B50 +.space 0x00000200 - 0x14 + +.space 4 +.space 0x10 +dlabel gWindows +.space 0x00000800 + +dlabel gCollisionStatus +.space 0x00000028 + +dlabel gCurrentHiddenPanels +.space 0x10 + +.space 8 + +dlabel mdl_textureHandles +.space 0x00002200 + +dlabel ScreenOverlays +.space 0x00000030 + +dlabel AmbientSoundData +.space 0x00000010 + +dlabel CreateEntityVarArgBuffer +.space 0x00000010 + +dlabel D_8015C7E0 +.space 0x20 + +dlabel D_8015C800 +.space 0x7800 + +dlabel D_80164000 +.space 0x32C60 + +#endif diff --git a/ver/pal/asm/nonmatchings/msg/appendGfx_message.s b/ver/pal/asm/nonmatchings/msg/appendGfx_message.s new file mode 100644 index 0000000000..def3191f3c --- /dev/null +++ b/ver/pal/asm/nonmatchings/msg/appendGfx_message.s @@ -0,0 +1,4932 @@ +.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/msg/dma_load_msg.s b/ver/pal/asm/nonmatchings/msg/dma_load_msg.s new file mode 100644 index 0000000000..1d0af2c268 --- /dev/null +++ b/ver/pal/asm/nonmatchings/msg/dma_load_msg.s @@ -0,0 +1,44 @@ +.set noat /* allow manual use of $at */ +.set noreorder /* don't insert nops after branches */ + +/* Generated by spimdisasm 1.11.1 */ + +glabel dma_load_msg +/* BA664 80124314 27BDFFD8 */ addiu $sp, $sp, -0x28 +/* BA668 80124318 AFB00018 */ sw $s0, 0x18($sp) +/* BA66C 8012431C 0080802D */ daddu $s0, $a0, $zero +/* BA670 80124320 AFB20020 */ sw $s2, 0x20($sp) +/* BA674 80124324 00A0902D */ daddu $s2, $a1, $zero +/* BA678 80124328 3C028015 */ lui $v0, %hi(gCurrentLanguage) +/* BA67C 8012432C 8C42AE4C */ lw $v0, %lo(gCurrentLanguage)($v0) +/* BA680 80124330 27A60010 */ addiu $a2, $sp, 0x10 +/* BA684 80124334 AFBF0024 */ sw $ra, 0x24($sp) +/* BA688 80124338 AFB1001C */ sw $s1, 0x1C($sp) +/* BA68C 8012433C 00021080 */ sll $v0, $v0, 2 +/* BA690 80124340 3C118015 */ lui $s1, %hi(D_PAL_8014AE50) +/* BA694 80124344 02228821 */ addu $s1, $s1, $v0 +/* BA698 80124348 8E31AE50 */ lw $s1, %lo(D_PAL_8014AE50)($s1) +/* BA69C 8012434C 00101382 */ srl $v0, $s0, 14 +/* BA6A0 80124350 02222021 */ addu $a0, $s1, $v0 +/* BA6A4 80124354 0C00A5AF */ jal dma_copy +/* BA6A8 80124358 24850004 */ addiu $a1, $a0, 0x4 +/* BA6AC 8012435C 27A60010 */ addiu $a2, $sp, 0x10 +/* BA6B0 80124360 3210FFFF */ andi $s0, $s0, 0xFFFF +/* BA6B4 80124364 8FA20010 */ lw $v0, 0x10($sp) +/* BA6B8 80124368 00108080 */ sll $s0, $s0, 2 +/* BA6BC 8012436C 02221021 */ addu $v0, $s1, $v0 +/* BA6C0 80124370 00502021 */ addu $a0, $v0, $s0 +/* BA6C4 80124374 0C00A5AF */ jal dma_copy +/* BA6C8 80124378 24850008 */ addiu $a1, $a0, 0x8 +/* BA6CC 8012437C 0240302D */ daddu $a2, $s2, $zero +/* BA6D0 80124380 8FA40010 */ lw $a0, 0x10($sp) +/* BA6D4 80124384 8FA50014 */ lw $a1, 0x14($sp) +/* BA6D8 80124388 02242021 */ addu $a0, $s1, $a0 +/* BA6DC 8012438C 0C00A5AF */ jal dma_copy +/* BA6E0 80124390 02252821 */ addu $a1, $s1, $a1 +/* BA6E4 80124394 8FBF0024 */ lw $ra, 0x24($sp) +/* BA6E8 80124398 8FB20020 */ lw $s2, 0x20($sp) +/* BA6EC 8012439C 8FB1001C */ lw $s1, 0x1C($sp) +/* BA6F0 801243A0 8FB00018 */ lw $s0, 0x18($sp) +/* BA6F4 801243A4 03E00008 */ jr $ra +/* BA6F8 801243A8 27BD0028 */ addiu $sp, $sp, 0x28 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 new file mode 100644 index 0000000000..0cdf1ae11e --- /dev/null +++ b/ver/pal/asm/nonmatchings/msg/msg_copy_to_print_buffer.s @@ -0,0 +1,1359 @@ +.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/splat.yaml b/ver/pal/splat.yaml index aa2fce4c51..0a87d58318 100644 --- a/ver/pal/splat.yaml +++ b/ver/pal/splat.yaml @@ -545,9 +545,62 @@ segments: - [0xA3878, vtx, vtx/drawbox1] - [0xA38B8] - [0xA3900] - - - [0xA4520, bin] - + - name: engine2 + type: code + start: 0xA4520 + vram: 0x8010E1D0 + follows_vram: engine1 + subsegments: + - [auto, hasm, bss3] + - [auto, c, entity] + - [auto, c, game_states] + - [auto, c, model] + - [auto, c, B4580] + - [auto, c, entity_model] + - [auto, c, worker] + - [auto, c, msg] + - [auto, c, C50A0] + - [auto, c, cd180_len_38f0] + - [auto, c, CEE40] + - [auto, c, imgfx] + - [auto, c, hud_element] + - [auto, c, dba20_len_350] + - [auto, c, trigger] + - [auto, c, background] + - [auto, c, audio/ambience] + - [auto, c, windows] + - [auto, c, sprite_shading] + - [auto, c, audio/sfx] + - [auto, c, audio/e0b30_len_b80] + - [auto, .data, entity] + - [auto, .data, game_states] + - [auto, .data, model] + - [auto, .data, B4580] + - [auto, .data, entity_model] + - [auto, .data, msg] + - [auto, .data, C50A0] + - start: 0xE1610 + type: .data + name: cd180_len_38f0 + subsegments: + - [0xE1610] + - [0xE1620, i4, ui/stencil/star, 32, 64] + - [0xE1A20, i4, ui/stencil/mario, 64, 64] + - [0xE2220, i4, ui/stencil/sharp_circle, 32, 32] + - [0xE2420, i8, ui/stencil/blurry_circle, 64, 64] + - [0xE3420, vtx, vtx/stencil1] + - [0xE34C0] + - [0xE3690, vtx, vtx/stencil2] + - [0xE3810] + - [auto, .data, CEE40] + - [auto, .data, imgfx] + - [auto, .data, hud_element] + - [auto, .data, background] + - [auto, .data, audio/ambience] + - [auto, .data, windows] + - [auto, .data, audio/sfx] + - [auto, .data, audio/e0b30_len_b80] + - [0xE61D0] - name: evt type: code dir: evt @@ -1057,6 +1110,32 @@ segments: - [0x2705A0, bin] + - start: 0x2705A0 + type: pm_imgfx_data + name: imgfx_data + vram: 0 + animations: + - ["shock", 0x14358] + - ["shiver", 0x18200] + - ["vertical_pipe_curl", 0x1A858] + - ["horizontal_pipe_curl", 0x1E830] + - ["startle", 0x29458] + - ["flutter_down", 0x314E0] + - ["unfurl", 0x33498] + - ["get_in_bed", 0x38988] + - ["spirit_capture", 0x39228] + - ["unused_1", 0x5B7A8] + - ["unused_2", 0x7CF10] + - ["unused_3", 0x86490] + - ["tutankoopa_gather", 0x96258] + - ["tutankoopa_swirl_2", 0xA1820] + - ["tutankoopa_swirl_1", 0xACDE8] + - ["shuffle_cards", 0xBBF68] + - ["flip_card_1", 0xC0490] + - ["flip_card_2", 0xC49B8] + - ["flip_card_3", 0xC6150] + - ["cymbal_crush", 0xCA380] + - [0x33A930, pm_sprite_shading_profiles, sprite_shading_profiles] - [0x33B7A0, bin] @@ -13461,9 +13540,15 @@ segments: - 2E_Credits - [0x2132440, bin] - - [0x21B0000, bin] # German - - [0x2330000, bin] # French - - [0x24B0000, bin] # Spanish + - start: 0x21B0000 + name: msg_pal_de + type: bin # TODO: turn into pm_msg + - start: 0x2330000 + name: msg_pal_fr + type: bin # TODO: turn into pm_msg + - start: 0x24B0000 + name: msg_pal_es + type: bin # TODO: turn into pm_msg - [0x2600000, pm_map_data, mapfs] - [0x2FD7362, bin] diff --git a/ver/pal/symbol_addrs.txt b/ver/pal/symbol_addrs.txt index 3bf0211365..75ebb123a6 100644 --- a/ver/pal/symbol_addrs.txt +++ b/ver/pal/symbol_addrs.txt @@ -1,3 +1,9 @@ +ui_stencil_star_png = 0x8014B2D0; // rom:0xE1620 +ui_stencil_mario_png = 0x8014B6D0; // rom:0xE1A20 +ui_stencil_sharp_circle_png = 0x8014BED0; // rom:0xE2220 +ui_stencil_blurry_circle_png = 0x8014C0D0; // rom:0xE2420 +vtx_stencil1 = 0x8014D0D0; // rom:0xE3420 +vtx_stencil2 = 0x8014D340; // rom:0xE3690 D_802E9170 = 0x802EF470; // rom:0x10C4F0 D_802E91F0 = 0x802EF4F0; // rom:0x10C570 D_802E9270 = 0x802EF570; // rom:0x10C5F0 diff --git a/ver/pal/undefined_syms.txt b/ver/pal/undefined_syms.txt index ddd88f9e55..d8ec823b63 100644 --- a/ver/pal/undefined_syms.txt +++ b/ver/pal/undefined_syms.txt @@ -1,3 +1,7 @@ +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; @@ -9,6 +13,7 @@ _heap_free = 0x8002919C; _heap_realloc = 0x80029244; cosine = 0x80029354; sign = 0x80029430; +int_to_string = 0x80029444; mem_clear = 0x80029580; transform_point = 0x800295A0; copy_matrix = 0x800296A0; @@ -152,21 +157,44 @@ 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; @@ -195,8 +223,10 @@ guOrtho = 0x800648B0; guPerspectiveF = 0x80064A00; guPositionF = 0x80064D80; guPosition = 0x80064F58; +guRotateRPYF = 0x80065140; sins = 0x80065460; bcopy = 0x800654C0; +bzero = 0x800657E0; sprintf = 0x80066360; guMtxIdent = 0x800682C0; guMtxIdentF = 0x80068320; @@ -217,6 +247,7 @@ reset_battle_status = 0x8006FE40; gGameStatusPtr = 0x800714AC; gMatrixListPos = 0x80071500; gCurrentDisplayContextIndex = 0x80071504; +nuGfxCfbNum = 0x80073710; gCurrentCameraID = 0x80073730; D_800779B0 = 0x80073D00; gSaveSlotMetadata = 0x80073D14; @@ -231,12 +262,14 @@ HES_Item_Unused_08C = 0x8007E6F8; HES_Item_Unused_08C_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; @@ -247,6 +280,7 @@ gEncounterState = 0x800969D4; gCurrentCamID = 0x80096A0C; nuGfxCfb_ptr = 0x80096A24; gOverrideFlags = 0x80096A28; +nuGfxCfb = 0x80096A30; gMainGfxPos = 0x80096A44; gDisplayContext = 0x80096A4C; wMapTexName = 0x800AF3B8; @@ -260,242 +294,35 @@ wMapHitName = 0x800D5938; wMapShapeName = 0x800D5988; D_800D95E8 = 0x800D5D58; wMapBgName = 0x800D5DD8; +gCurrentSaveFile = 0x800D7430; gBattleStatus = 0x800D87E0; -update_entities = 0x8010E1D0; -set_entity_commandlist = 0x8010E6C0; -exec_entity_commandlist = 0x8010E868; -get_entity_by_index = 0x8010F0E8; -get_shadow_by_index = 0x8010F104; -entity_start_script = 0x8010F178; -get_entity_type = 0x8010F1A4; -delete_entity = 0x8010F1D0; -entity_try_partner_interaction_trigger = 0x8010F4DC; -entity_set_render_script = 0x8010F6CC; -clear_entity_data = 0x8010F7B8; -create_entity = 0x801103C4; -MakeEntity = 0x80110838; -SetEntityCullMode = 0x8011099C; -UseDynamicShadow = 0x80110A2C; -AssignScript = 0x80110AB0; -AssignSwitchFlag = 0x80110AF8; -AssignBlockFlag = 0x80110B6C; -AssignChestFlag = 0x80110BB8; -AssignPanelFlag = 0x80110C14; -AssignCrateFlag = 0x80110C70; -create_shadow_type = 0x80110D60; -delete_shadow = 0x80110E28; -entity_raycast_down = 0x801110E8; -set_standard_shadow_scale = 0x8011135C; -set_peach_shadow_scale = 0x801114D4; -is_block_on_ground = 0x80111620; -clear_model_data = 0x80114844; -get_model_from_list_index = 0x80119830; -get_model_list_index_from_tree_index = 0x80119B10; -get_transform_group_index = 0x80119B90; -get_model_center_and_size = 0x80119BEC; -get_transform_group = 0x80119CC0; -mdl_make_transform_group = 0x80119E7C; -enable_transform_group = 0x8011A0D0; -disable_transform_group = 0x8011A160; -clone_model = 0x8011A1F0; -set_model_group_visibility = 0x8011A2C0; -func_8011B950 = 0x8011A450; -enable_world_fog = 0x8011A650; -disable_world_fog = 0x8011A664; -set_world_fog_dist = 0x8011A674; -set_world_fog_color = 0x8011A688; -set_tex_panner = 0x8011A714; -set_main_pan_u = 0x8011A71C; -set_main_pan_v = 0x8011A734; -set_aux_pan_u = 0x8011A74C; -set_aux_pan_v = 0x8011A764; -set_mdl_custom_gfx_set = 0x8011A77C; -set_custom_gfx = 0x8011A7B4; -set_custom_gfx_builders = 0x8011A7D0; -set_background_color_blend = 0x8011A95C; -get_background_color_blend = 0x8011A980; -set_model_fog_color_parameters = 0x8011A9B4; -get_model_fog_color_parameters = 0x8011AA14; -set_model_env_color_parameters = 0x8011AA98; -get_model_env_color_parameters = 0x8011AAD4; -mdl_make_local_vertex_copy = 0x8011AC64; -mdl_get_copied_vertices = 0x8011ADB0; -mdl_get_copied_gfx = 0x8011ADEC; -mdl_project_tex_coords = 0x8011AE2C; -is_point_visible = 0x8011BABC; -mdl_draw_hidden_panel_surface = 0x8011C22C; -mdl_get_next_texture_address = 0x8011C2E4; -mdl_set_all_fog_mode = 0x8011C32C; -clear_render_tasks = 0x8011C390; -queue_render_task = 0x8011C410; -clear_animator_list = 0x8011CD24; -delete_model_animator = 0x8011CF38; -create_model_animator = 0x8011CFB8; -update_model_animator = 0x8011D3BC; -update_model_animator_with_transform = 0x8011D554; -render_animated_model = 0x8011DE04; -get_animator_node_for_tree_index = 0x8011EA74; -get_animator_node_with_id = 0x8011EA98; -get_animator_by_index = 0x8011EAE0; -play_model_animation = 0x8011EC48; -play_model_animation_starting_from = 0x8011EC98; -load_model_animator_tree = 0x8011EEAC; -load_mesh_animator_tree = 0x8011EF74; -clear_entity_models = 0x8011F6B0; -load_entity_model = 0x8011F7E0; -ALT_load_entity_model = 0x8011F8E4; -exec_entity_model_commandlist = 0x8011FA04; -draw_entity_model_A = 0x801207E8; -draw_entity_model_E = 0x80120D88; -set_entity_model_render_command_list = 0x8012187C; -get_entity_model = 0x801218DC; -free_entity_model_by_index = 0x801218FC; -set_entity_model_flags = 0x801219E8; -clear_entity_model_flags = 0x80121A24; -enable_entity_fog = 0x80121AEC; -set_entity_fog_dist = 0x80121B10; -set_entity_fog_color = 0x80121B28; -clear_worker_list = 0x80121BB8; -create_worker_world = 0x80121C58; -create_worker_frontUI = 0x80121D3C; -create_worker_backUI = 0x80121E20; -free_worker = 0x801220C0; -get_worker = 0x8012213C; -clear_printers = 0x80122174; -load_font = 0x80122234; -dma_load_msg = 0x80124314; -msg_get_printer_for_msg = 0x80124420; -msg_printer_load_msg = 0x80124588; -msg_printer_set_origin_pos = 0x801245D8; -cancel_message = 0x80124628; -set_message_images = 0x8012464C; -set_message_msg = 0x8012465C; -set_message_value = 0x80124708; -close_message = 0x80124790; -msg_get_print_char_width = 0x801247A4; -get_msg_properties = 0x80124A88; -get_msg_width = 0x80124F94; -get_msg_lines = 0x80124FD0; -draw_msg = 0x8012500C; -draw_number = 0x801261BC; -msg_draw_frame = 0x8012C6F8; -msg_get_glyph = 0x8012D480; -draw_ci_image_with_clipping = 0x8012D540; -get_item_entity = 0x8012FAF8; -clear_item_entity_data = 0x8012FB90; -make_item_entity = 0x8012FF94; -make_item_entity_nodelay = 0x80130634; -make_item_entity_at_player = 0x801306A0; -remove_item_entity_by_index = 0x8013259C; -test_item_entity_position = 0x80132B68; -set_item_entity_flags = 0x80132CE8; -clear_item_entity_flags = 0x80132D28; -auto_collect_item_entity = 0x80132D50; -is_picking_up_item = 0x80132D88; -set_item_entity_position = 0x80132DAC; -set_screen_overlay_params_front = 0x80136928; -set_screen_overlay_params_back = 0x80136944; -get_screen_overlay_params = 0x80136960; -set_screen_overlay_color = 0x801369B0; -set_screen_overlay_center = 0x801369EC; -set_screen_overlay_center_worldpos = 0x80136A60; -set_screen_overlay_alpha = 0x80136C74; -clear_screen_overlays = 0x80136CA8; -set_map_transition_effect = 0x80136E40; -update_exit_map_screen_overlay = 0x80136E4C; -draw_prev_frame_buffer_at_screen_pos = 0x80137928; -imgfx_init = 0x80138F1C; -func_8013A4D0 = 0x80139070; -imgfx_get_free_instances = 0x801392A4; -imgfx_release_instance = 0x801393F4; -imgfx_update = 0x8013963C; -imgfx_appendGfx_component = 0x80139B10; -hud_element_clear_cache = 0x8013FCA0; -hud_element_create = 0x80140054; -hud_element_draw_clipped = 0x80143358; -hud_element_draw_next = 0x80143374; -hud_element_draw_without_clipping = 0x80143390; -hud_element_set_script = 0x801433AC; -hud_element_free = 0x801434A4; -hud_element_set_render_pos = 0x80143534; -hud_element_get_render_pos = 0x8014355C; -hud_element_set_render_depth = 0x8014358C; -hud_element_set_flags = 0x801435B0; -hud_element_clear_flags = 0x801435DC; -hud_element_set_scale = 0x801437D0; -hud_element_set_alpha = 0x80143A60; -hud_element_set_tint = 0x80143AAC; -hud_element_create_transform_A = 0x80143AD8; -hud_element_set_transform_rotation = 0x80143DD4; -copy_world_hud_element_ref_to_battle = 0x80143E64; -clear_saved_variables = 0x80143ED0; -clear_global_flag = 0x80143F90; -set_global_flag = 0x80144000; -get_global_flag = 0x8014406C; -set_global_byte = 0x801440D0; -get_global_byte = 0x801440E8; -clear_area_flag = 0x801440FC; -set_area_flag = 0x80144150; -get_area_flag = 0x801441A0; -set_area_byte = 0x801441E8; -get_area_byte = 0x80144200; -clear_trigger_data = 0x80144230; -create_trigger = 0x8014431C; -delete_trigger = 0x801447A4; -is_another_trigger_bound = 0x8014481C; -get_trigger_by_id = 0x80144880; -should_collider_allow_interact = 0x80144898; -reset_background_settings = 0x801449A8; -enable_background_wave = 0x80145DBC; -play_ambient_sounds = 0x80145F18; -basic_window_update = 0x80146024; -basic_hidden_window_update = 0x80146124; -set_window_properties = 0x80146878; -update_window_hierarchy = 0x80146920; -replace_window_update = 0x801469F8; -set_window_update = 0x80146A2C; -setup_pause_menu_tab = 0x80146AE0; -clear_sprite_shading_data = 0x80146BF0; -sprite_shading_set_light_source = 0x80146D04; -create_shading_palette = 0x80146D74; -sfx_adjust_env_sound_pos = 0x8014859C; -snd_stop_tracking_env_sound_pos = 0x8014861C; -sfx_play_sound_with_params = 0x80148668; -sfx_stop_sound = 0x8014881C; -sfx_play_sound = 0x80148864; -sfx_play_sound_at_player = 0x80148888; -sfx_play_sound_at_npc = 0x801488B8; -sfx_play_sound_at_position = 0x8014890C; -sfx_get_spatialized_sound_params = 0x801489B4; -bgm_set_song = 0x801494C8; -func_8014A964 = 0x80149514; -bgm_adjust_proximity = 0x80149604; -bgm_set_track_volumes = 0x801496BC; -bgm_clear_track_volumes = 0x80149710; -bgm_set_variation = 0x80149764; -bgm_init_music_players = 0x801497B8; -func_8014AD40 = 0x801498F0; -bgm_pop_song = 0x80149954; -bgm_push_song = 0x801499A8; -bgm_pop_battle_song = 0x80149A1C; -bgm_push_battle_song = 0x80149AA8; -bgm_set_battle_song = 0x80149B3C; -MessagePlural = 0x8014AE40; -MessagePlural_de = 0x8014AE44; -MessageSingular = 0x8014AE48; -gCurrentLanguage = 0x8014AE4C; -gWindowStyles = 0x8014DD20; -gCurrentModels = 0x8014FE9C; -gBackgroundFogModePtr = 0x8014FEC0; -gCurrentRoomDoorSounds = 0x8014FED8; -gEntityHideMode = 0x8014FEE0; -gSpriteShadingProfile = 0x8014FEF8; -gCurrentDoorSounds = 0x8014FF10; -gMusicSettings = 0x801586B0; -gWindows = 0x80158910; -gCollisionStatus = 0x80159110; -gCurrentHiddenPanels = 0x80159138; -CreateEntityVarArgBuffer = 0x8015B390; +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; @@ -803,6 +630,7 @@ ExitSplitDoubleDoor = 0x80285EAC; EnterSplitDoubleDoor = 0x80285ED4; BaseExitDoor = 0x80285EFC; BaseEnterDoor = 0x802861C0; +MapTextureMemory = 0x8028E000; HES_AimMarkerA = 0x802933FC; HES_AimMarkerB = 0x80293494; HES_AimMarkerC = 0x8029352C; @@ -890,7 +718,38 @@ action_command_whirlwind_start = 0x802A91E0; action_command_power_shock_start = 0x802A9210; action_command_hammer_start = 0x802A9258; action_command_water_block_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;