From 70375816f1c586ce7c47276e0832b84a4640f1e2 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Wed, 23 Mar 2022 21:22:06 +1000 Subject: [PATCH] Rename most remaining game files --- docs/piracychecks.md | 2 +- ld/gamefiles.jpn-final.inc | 78 +- ld/gamefiles.ntsc-beta.inc | 76 +- ld/gamefiles.ntsc-final.inc | 78 +- ld/gamefiles.pal-beta.inc | 78 +- ld/gamefiles.pal-final.inc | 78 +- ld/libfiles.ntsc-beta.inc | 2 +- src/game/activemenu.c | 14 +- src/game/activemenutick.c | 2 +- src/game/bg.c | 121 +- src/game/{game_02cde0.c => body.c} | 32 +- src/game/bodyinit.c | 41 + src/game/bodyreset.c | 358 + src/game/bondbike.c | 24 +- src/game/bondgun.c | 228 +- src/game/bondgunstop.c | 1 - src/game/bondheadreset.c | 1 - src/game/bondmove.c | 22 +- src/game/bondview.c | 8 +- src/game/bondwalk.c | 8 +- src/game/bossfile.c | 2 +- src/game/bot.c | 2 +- src/game/botmgr.c | 4 +- src/game/botroom.c | 164 + src/game/buildtime.c | 20 + src/game/camdraw.c | 4 +- src/game/{game_0b4950.c => camera.c} | 102 +- src/game/{game_19aa80.c => challenge.c} | 366 +- src/game/{game_00b210.c => challengeinit.c} | 12 +- src/game/chr.c | 57 +- src/game/chraction.c | 40 +- src/game/chraicommands.c | 7 +- src/game/{game_1577f0.c => collisionutils.c} | 0 src/game/credits.c | 8 +- src/game/debug2.c | 4 +- src/game/dlights.c | 14 +- src/game/endscreen.c | 6 +- src/game/env.c | 7 +- src/game/explosions.c | 24 +- src/game/filelist.c | 2 +- src/game/filemgr.c | 6 +- src/game/{game_10c9c0.c => fmb.c} | 34 +- src/game/{game_005fd0.c => footstep.c} | 40 +- src/game/game_000130.c | 162 - src/game/game_006900.c | 2 - src/game/game_006bd0.c | 47 - src/game/game_00b820.c | 361 +- src/game/game_096360.c | 2 +- src/game/game_0b0fd0.c | 12 +- src/game/game_11f000.c | 11224 -------------- src/game/game_13c510.c | 21 +- src/game/game_1531a0.c | 2 +- src/game/game_175f90.c | 15 - src/game/gamefile.c | 14 +- src/game/getitle.c | 7 +- src/game/{game_00b420.c => getitlereset.c} | 2 +- src/game/{game_165670.c => gfxreplace.c} | 4 +- src/game/{game_0abe70.c => gunfx.c} | 130 +- src/game/{lasersightsreset.c => gunfxreset.c} | 6 +- src/game/langtick.c | 2 +- src/game/lv.c | 53 +- src/game/mainmenu.c | 22 +- src/game/menu.c | 155 +- src/game/menugfx.c | 28 +- src/game/menuitem.c | 18 +- src/game/menustop.c | 4 +- src/game/menutick.c | 6 +- src/game/{game_1a7560.c => modeldef.c} | 14 +- src/game/mplayer/ingame.c | 10 +- src/game/mplayer/mplayer.c | 80 +- src/game/mplayer/scenarios.c | 26 +- src/game/mplayer/scenarios/capturethecase.inc | 8 +- src/game/mplayer/scenarios/hackthatmac.inc | 2 +- .../mplayer/scenarios/holdthebriefcase.inc | 2 +- src/game/mplayer/setup.c | 110 +- src/game/nbomb.c | 22 +- src/game/objectives.c | 32 +- src/game/{game_01b0a0.c => pdmode.c} | 2 +- src/game/player.c | 85 +- src/game/playerreset.c | 12 +- src/game/{game_0b63b0.c => portal.c} | 37 +- src/game/prop.c | 78 +- src/game/propobj.c | 199 +- src/game/{game_015010.c => propobjstop.c} | 5 +- src/game/{game_096ca0.c => quaternion.c} | 2 +- src/game/race.c | 129 + src/game/{game_000100.c => raceinit.c} | 4 +- src/game/radar.c | 4 +- src/game/{game_1668e0.c => room.c} | 34 +- src/game/roomreset.c | 37 + src/game/{game_01d8c0.c => roomtick.c} | 6 +- src/game/savebuffer.c | 10 +- src/game/{game_00c490.c => setup.c} | 253 +- src/game/{game_013ee0.c => setupcover.c} | 31 +- src/game/{game_012aa0.c => setuppads.c} | 9 +- src/game/{game_091e10.c => setuputils.c} | 40 +- src/game/{game_012d50.c => setupwaypoints.c} | 2 +- src/game/shards.c | 36 +- src/game/sight.c | 6 +- src/game/sky.c | 12555 ++++++++++++++-- src/game/{game_0147a0.c => skyreset.c} | 4 +- src/game/{game_01d990.c => skytick.c} | 4 +- src/game/smoke.c | 20 +- src/game/{game_000880.c => smokeinit.c} | 4 +- src/game/sparks.c | 6 +- src/game/stars.c | 1371 ++ src/game/{game_173a00.c => surface.c} | 228 +- src/game/{game_013b80.c => surfacereset.c} | 2 +- src/game/{game_0b3350.c => tex.c} | 56 +- src/game/texdecompress.c | 2 +- src/game/{game_00b190.c => texinit.c} | 0 src/game/texreset.c | 16 +- src/game/title.c | 41 +- src/game/{game_01afc0.c => titleclear.c} | 2 +- src/game/titlereset.c | 2 +- src/game/trainingmenus.c | 10 +- src/game/wallhit.c | 20 +- src/game/{game_013550.c => wallhitreset.c} | 2 +- src/game/weather.c | 30 +- src/include/bss.h | 4 +- src/include/game/{game_02cde0.h => body.h} | 20 +- src/include/game/bot.h | 2 + src/include/game/camera.h | 48 + src/include/game/challenge.h | 52 + src/include/game/fmb.h | 14 + src/include/game/footstep.h | 11 + src/include/game/game_000100.h | 9 - src/include/game/game_000130.h | 16 - src/include/game/game_000880.h | 9 - src/include/game/game_005fd0.h | 12 - src/include/game/game_006900.h | 1 + src/include/game/game_006bd0.h | 24 - src/include/game/game_00b190.h | 9 - src/include/game/game_00b210.h | 9 - src/include/game/game_00b320.h | 1 - src/include/game/game_00b820.h | 1 - src/include/game/game_00c490.h | 34 - src/include/game/game_012aa0.h | 9 - src/include/game/game_012d50.h | 9 - src/include/game/game_013550.h | 9 - src/include/game/game_013b80.h | 10 - src/include/game/game_013ee0.h | 11 - src/include/game/game_0147a0.h | 9 - src/include/game/game_0147d0.h | 2 +- src/include/game/game_01afc0.h | 9 - src/include/game/game_01d8c0.h | 9 - src/include/game/game_01d990.h | 9 - src/include/game/game_091e10.h | 19 - src/include/game/game_0b3350.h | 16 - src/include/game/game_0b4950.h | 48 - src/include/game/game_0b63b0.h | 15 - src/include/game/game_10c9c0.h | 14 - src/include/game/game_11f000.h | 31 - src/include/game/game_1531a0.h | 2 +- src/include/game/game_1577f0.h | 11 - src/include/game/game_1668e0.h | 18 - src/include/game/game_173a00.h | 48 - src/include/game/game_19aa80.h | 52 - src/include/game/getitle.h | 4 +- .../game/{game_165670.h => gfxreplace.h} | 4 +- src/include/game/{game_0abe70.h => gunfx.h} | 18 +- src/include/game/lasersights.h | 10 - .../game/{game_1a7560.h => modeldef.h} | 6 +- src/include/game/{game_01b0a0.h => pdmode.h} | 4 +- src/include/game/portal.h | 15 + .../game/{game_015010.h => propobjstop.h} | 4 +- .../game/{game_096ca0.h => quaternion.h} | 4 +- src/include/game/race.h | 17 + src/include/game/room.h | 22 + src/include/game/setup.h | 38 + src/include/game/setuputils.h | 19 + src/include/game/sky.h | 31 +- src/include/game/smoke.h | 2 + src/include/game/stars.h | 12 + src/include/game/surface.h | 50 + src/include/game/tex.h | 18 + src/include/game/title.h | 2 + src/include/game/wallhit.h | 2 + src/include/lib/collision.h | 4 + src/include/types.h | 4 +- src/lib/collision.c | 1 - src/lib/main.c | 36 +- src/lib/model.c | 10 +- src/lib/vi.c | 38 +- tools/mkrom/piracy.c | 2 +- 185 files changed, 15538 insertions(+), 15653 deletions(-) rename src/game/{game_02cde0.c => body.c} (97%) create mode 100644 src/game/bodyinit.c create mode 100644 src/game/bodyreset.c create mode 100644 src/game/botroom.c create mode 100644 src/game/buildtime.c rename src/game/{game_0b4950.c => camera.c} (96%) rename src/game/{game_19aa80.c => challenge.c} (65%) rename src/game/{game_00b210.c => challengeinit.c} (56%) rename src/game/{game_1577f0.c => collisionutils.c} (100%) rename src/game/{game_10c9c0.c => fmb.c} (93%) rename src/game/{game_005fd0.c => footstep.c} (98%) delete mode 100644 src/game/game_000130.c delete mode 100644 src/game/game_006bd0.c delete mode 100644 src/game/game_11f000.c rename src/game/{game_00b420.c => getitlereset.c} (93%) rename src/game/{game_165670.c => gfxreplace.c} (99%) rename src/game/{game_0abe70.c => gunfx.c} (98%) rename src/game/{lasersightsreset.c => gunfxreset.c} (79%) rename src/game/{game_1a7560.c => modeldef.c} (96%) rename src/game/{game_01b0a0.c => pdmode.c} (96%) rename src/game/{game_0b63b0.c => portal.c} (95%) rename src/game/{game_015010.c => propobjstop.c} (94%) rename src/game/{game_096ca0.c => quaternion.c} (99%) create mode 100644 src/game/race.c rename src/game/{game_000100.c => raceinit.c} (80%) rename src/game/{game_1668e0.c => room.c} (81%) create mode 100644 src/game/roomreset.c rename src/game/{game_01d8c0.c => roomtick.c} (76%) rename src/game/{game_00c490.c => setup.c} (95%) rename src/game/{game_013ee0.c => setupcover.c} (79%) rename src/game/{game_012aa0.c => setuppads.c} (93%) rename src/game/{game_091e10.c => setuputils.c} (88%) rename src/game/{game_012d50.c => setupwaypoints.c} (98%) rename src/game/{game_0147a0.c => skyreset.c} (70%) rename src/game/{game_01d990.c => skytick.c} (79%) rename src/game/{game_000880.c => smokeinit.c} (96%) create mode 100644 src/game/stars.c rename src/game/{game_173a00.c => surface.c} (95%) rename src/game/{game_013b80.c => surfacereset.c} (90%) rename src/game/{game_0b3350.c => tex.c} (98%) rename src/game/{game_00b190.c => texinit.c} (100%) rename src/game/{game_01afc0.c => titleclear.c} (93%) rename src/game/{game_013550.c => wallhitreset.c} (99%) rename src/include/game/{game_02cde0.h => body.h} (50%) create mode 100644 src/include/game/camera.h create mode 100644 src/include/game/challenge.h create mode 100644 src/include/game/fmb.h create mode 100644 src/include/game/footstep.h delete mode 100644 src/include/game/game_000100.h delete mode 100644 src/include/game/game_000130.h delete mode 100644 src/include/game/game_000880.h delete mode 100644 src/include/game/game_005fd0.h delete mode 100644 src/include/game/game_006bd0.h delete mode 100644 src/include/game/game_00b190.h delete mode 100644 src/include/game/game_00b210.h delete mode 100644 src/include/game/game_00c490.h delete mode 100644 src/include/game/game_012aa0.h delete mode 100644 src/include/game/game_012d50.h delete mode 100644 src/include/game/game_013550.h delete mode 100644 src/include/game/game_013b80.h delete mode 100644 src/include/game/game_013ee0.h delete mode 100644 src/include/game/game_0147a0.h delete mode 100644 src/include/game/game_01afc0.h delete mode 100644 src/include/game/game_01d8c0.h delete mode 100644 src/include/game/game_01d990.h delete mode 100644 src/include/game/game_091e10.h delete mode 100644 src/include/game/game_0b3350.h delete mode 100644 src/include/game/game_0b4950.h delete mode 100644 src/include/game/game_0b63b0.h delete mode 100644 src/include/game/game_10c9c0.h delete mode 100644 src/include/game/game_11f000.h delete mode 100644 src/include/game/game_1577f0.h delete mode 100644 src/include/game/game_1668e0.h delete mode 100644 src/include/game/game_173a00.h delete mode 100644 src/include/game/game_19aa80.h rename src/include/game/{game_165670.h => gfxreplace.h} (77%) rename src/include/game/{game_0abe70.h => gunfx.h} (81%) delete mode 100644 src/include/game/lasersights.h rename src/include/game/{game_1a7560.h => modeldef.h} (62%) rename src/include/game/{game_01b0a0.h => pdmode.h} (81%) create mode 100644 src/include/game/portal.h rename src/include/game/{game_015010.h => propobjstop.h} (59%) rename src/include/game/{game_096ca0.h => quaternion.h} (89%) create mode 100644 src/include/game/race.h create mode 100644 src/include/game/room.h create mode 100644 src/include/game/setup.h create mode 100644 src/include/game/setuputils.h create mode 100644 src/include/game/stars.h create mode 100644 src/include/game/surface.h create mode 100644 src/include/game/tex.h diff --git a/docs/piracychecks.md b/docs/piracychecks.md index 7dacb8632..fea6cf40b 100644 --- a/docs/piracychecks.md +++ b/docs/piracychecks.md @@ -86,7 +86,7 @@ The decomp project wraps all decompiled piracy checks in `#if PIRACYCHECKS` stat **Payload:** Writes 16 bytes of data to the start of EEPROM. Unsure what this does, but it's probably corrupting it. -### propAllocateEyespy +### bodyAllocateEyespy **When Called:** When loading any stage that uses the eyespy. diff --git a/ld/gamefiles.jpn-final.inc b/ld/gamefiles.jpn-final.inc index ab4881d98..5abc82d5b 100644 --- a/ld/gamefiles.jpn-final.inc +++ b/ld/gamefiles.jpn-final.inc @@ -1,33 +1,34 @@ #define GAMEFILES(section) \ build/ROMID/game/langinit.o (section); \ build/ROMID/game/titleinit.o (section); \ - build/ROMID/game/game_000100.o (section); \ - build/ROMID/game/game_000130.o (section); \ + build/ROMID/game/raceinit.o (section); \ + build/ROMID/game/bodyinit.o (section); \ + build/ROMID/game/race.o (section); \ build/ROMID/game/stubs/game_000840.o (section); \ build/ROMID/game/stubs/game_000850.o (section); \ build/ROMID/game/stubs/game_000860.o (section); \ build/ROMID/game/stubs/game_000870.o (section); \ - build/ROMID/game/game_000880.o (section); \ + build/ROMID/game/smokeinit.o (section); \ build/ROMID/game/stubs/game_0008e0.o (section); \ build/ROMID/game/stubs/game_0008f0.o (section); \ build/ROMID/game/stubs/game_000900.o (section); \ build/ROMID/game/stubs/game_000910.o (section); \ build/ROMID/game/dlights.o (section); \ - build/ROMID/game/game_005fd0.o (section); \ + build/ROMID/game/footstep.o (section); \ build/ROMID/game/game_006900.o (section); \ - build/ROMID/game/game_006bd0.o (section); \ build/ROMID/game/nbomb.o (section); \ build/ROMID/game/stubs/game_00b180.o (section); \ - build/ROMID/game/game_00b190.o (section); \ + build/ROMID/game/texinit.o (section); \ build/ROMID/game/stubs/game_00b200.o (section); \ - build/ROMID/game/game_00b210.o (section); \ + build/ROMID/game/challengeinit.o (section); \ build/ROMID/game/langreset.o (section); \ - build/ROMID/game/game_00b420.o (section); \ + build/ROMID/game/getitlereset.o (section); \ build/ROMID/game/titlereset.o (section); \ build/ROMID/game/chrmgr.o (section); \ + build/ROMID/game/bodyreset.o (section); \ build/ROMID/game/game_00b820.o (section); \ build/ROMID/game/varsreset.o (section); \ - build/ROMID/game/game_00c490.o (section); \ + build/ROMID/game/setup.o (section); \ build/ROMID/game/propsndreset.o (section); \ build/ROMID/game/objectivesreset.o (section); \ build/ROMID/game/casingreset.o (section); \ @@ -35,26 +36,27 @@ build/ROMID/game/playerreset.o (section); \ build/ROMID/game/invreset.o (section); \ build/ROMID/game/bondheadreset.o (section); \ - build/ROMID/game/game_012aa0.o (section); \ - build/ROMID/game/game_012d50.o (section); \ + build/ROMID/game/setuppads.o (section); \ + build/ROMID/game/setupwaypoints.o (section); \ build/ROMID/game/explosionsreset.o (section); \ build/ROMID/game/smokereset.o (section); \ build/ROMID/game/sparksreset.o (section); \ build/ROMID/game/weatherreset.o (section); \ build/ROMID/game/stubs/game_013540.o (section); \ - build/ROMID/game/game_013550.o (section); \ + build/ROMID/game/wallhitreset.o (section); \ build/ROMID/game/shardsreset.o (section); \ - build/ROMID/game/game_013b80.o (section); \ + build/ROMID/game/surfacereset.o (section); \ build/ROMID/game/vtxstorereset.o (section); \ build/ROMID/game/tilesreset.o (section); \ - build/ROMID/game/game_013ee0.o (section); \ - build/ROMID/game/game_0147a0.o (section); \ - build/ROMID/game/lasersightsreset.o (section); \ + build/ROMID/game/roomreset.o (section); \ + build/ROMID/game/setupcover.o (section); \ + build/ROMID/game/skyreset.o (section); \ + build/ROMID/game/gunfxreset.o (section); \ build/ROMID/game/botmgr.o (section); \ build/ROMID/game/botinvinit.o (section); \ build/ROMID/game/chrmgrstop.o (section); \ build/ROMID/game/propsstop.o (section); \ - build/ROMID/game/game_015010.o (section); \ + build/ROMID/game/propobjstop.o (section); \ build/ROMID/game/propsndstop.o (section); \ build/ROMID/game/objectivesstop.o (section); \ build/ROMID/game/stubs/game_015260.o (section); \ @@ -68,27 +70,27 @@ build/ROMID/game/bondgunstop.o (section); \ build/ROMID/game/getitle.o (section); \ build/ROMID/game/title.o (section); \ - build/ROMID/game/game_01afc0.o (section); \ - build/ROMID/game/game_01b0a0.o (section); \ + build/ROMID/game/titleclear.o (section); \ + build/ROMID/game/pdmode.o (section); \ build/ROMID/game/activemenutick.o (section); \ build/ROMID/game/menustop.o (section); \ build/ROMID/game/menutick.o (section); \ build/ROMID/game/weathertick.o (section); \ build/ROMID/game/langtick.o (section); \ - build/ROMID/game/game_01d8c0.o (section); \ - build/ROMID/game/game_01d990.o (section); \ + build/ROMID/game/roomtick.o (section); \ + build/ROMID/game/skytick.o (section); \ build/ROMID/game/casingtick.o (section); \ build/ROMID/game/shardstick.o (section); \ build/ROMID/game/sparkstick.o (section); \ build/ROMID/game/chr.o (section); \ - build/ROMID/game/game_02cde0.o (section); \ + build/ROMID/game/body.o (section); \ build/ROMID/game/chraction.o (section); \ build/ROMID/game/chrai.o (section); \ build/ROMID/game/chraicommands.o (section); \ build/ROMID/game/prop.o (section); \ build/ROMID/game/propobj.o (section); \ build/ROMID/game/propobjbss.o (section); \ - build/ROMID/game/game_091e10.o (section); \ + build/ROMID/game/setuputils.o (section); \ build/ROMID/game/propsnd.o (section); \ build/ROMID/game/objectives.o (section); \ build/ROMID/game/game_096360.o (section); \ @@ -97,21 +99,21 @@ build/ROMID/game/acosasin.o (section); \ build/ROMID/game/acosfasinf.o (section); \ build/ROMID/game/game_096b20.o (section); \ - build/ROMID/game/game_096ca0.o (section); \ + build/ROMID/game/quaternion.o (section); \ build/ROMID/game/floor.o (section); \ build/ROMID/game/ceil.o (section); \ build/ROMID/game/game_097a50.o (section); \ build/ROMID/game/game_097aa0.o (section); \ build/ROMID/game/invitems.o (section); \ build/ROMID/game/bondgun.o (section); \ - build/ROMID/game/game_0abe70.o (section); \ + build/ROMID/game/gunfx.o (section); \ build/ROMID/game/mpstats.o (section); \ build/ROMID/game/game_0b0fd0.o (section); \ build/ROMID/game/game_0b2150.o (section); \ build/ROMID/game/game_0b28d0.o (section); \ - build/ROMID/game/game_0b3350.o (section); \ - build/ROMID/game/game_0b4950.o (section); \ - build/ROMID/game/game_0b63b0.o (section); \ + build/ROMID/game/tex.o (section); \ + build/ROMID/game/camera.o (section); \ + build/ROMID/game/portal.o (section); \ build/ROMID/game/player.o (section); \ build/ROMID/game/game_0c33f0.o (section); \ build/ROMID/game/bondcutscene.o (section); \ @@ -132,7 +134,7 @@ build/ROMID/game/mainmenu.o (section); \ build/ROMID/game/cheats.o (section); \ build/ROMID/game/filemgr.o (section); \ - build/ROMID/game/game_10c9c0.o (section); \ + build/ROMID/game/fmb.o (section); \ build/ROMID/game/endscreen.o (section); \ build/ROMID/game/gamefile.o (section); \ build/ROMID/game/bossfile.o (section); \ @@ -161,7 +163,7 @@ build/ROMID/game/modeldata/chr.o (section); \ build/ROMID/game/modeldata/skedar.o (section); \ build/ROMID/game/modeldata/robot.o (section); \ - build/ROMID/game/game_11f000.o (section); \ + build/ROMID/game/sky.o (section); \ build/ROMID/game/playermgr.o (section); \ build/ROMID/game/crc.o (section); \ build/ROMID/game/rng2.o (section); \ @@ -170,7 +172,7 @@ build/ROMID/game/smoke.o (section); \ build/ROMID/game/sparks.o (section); \ build/ROMID/game/weather.o (section); \ - build/ROMID/game/sky.o (section); \ + build/ROMID/game/stars.o (section); \ build/ROMID/game/credits.o (section); \ build/ROMID/game/game_13b670.o (section); \ build/ROMID/game/game_13c510.o (section); \ @@ -182,14 +184,14 @@ build/ROMID/game/options.o (section); \ build/ROMID/game/game_152fa0.o (section); \ build/ROMID/game/game_1531a0.o (section); \ - build/ROMID/game/game_1577f0.o (section); \ + build/ROMID/game/collisionutils.o (section); \ build/ROMID/game/bg.o (section); \ build/ROMID/game/bgbss.o (section); \ build/ROMID/game/game_165360.o (section); \ build/ROMID/game/stagetable.o (section); \ - build/ROMID/game/game_165670.o (section); \ + build/ROMID/game/gfxreplace.o (section); \ build/ROMID/game/env.o (section); \ - build/ROMID/game/game_1668e0.o (section); \ + build/ROMID/game/room.o (section); \ build/ROMID/game/file.o (section); \ build/ROMID/game/gfxmemory.o (section); \ build/ROMID/game/lv.o (section); \ @@ -198,9 +200,10 @@ build/ROMID/game/lang.o (section); \ build/ROMID/game/texdecompress.o (section); \ build/ROMID/game/texreset.o (section); \ - build/ROMID/game/game_173a00.o (section); \ + build/ROMID/game/surface.o (section); \ build/ROMID/game/stubs/game_175f50.o (section); \ build/ROMID/game/game_175f90.o (section); \ + build/ROMID/game/buildtime.o (section); \ build/ROMID/game/stubs/game_176000.o (section); \ build/ROMID/game/game_176080.o (section); \ build/ROMID/game/stagemusic.o (section); \ @@ -216,8 +219,9 @@ build/ROMID/game/botact.o (section); \ build/ROMID/game/mplayer/mpaicommands.o (section); \ build/ROMID/game/vmstats.o (section); \ - build/ROMID/game/game_19aa80.o (section); \ + build/ROMID/game/botroom.o (section); \ + build/ROMID/game/challenge.o (section); \ build/ROMID/game/training.o (section); \ build/ROMID/game/trainingmenus.o (section); \ - build/ROMID/game/game_1a7560.o (section); \ + build/ROMID/game/modeldef.o (section); \ build/ROMID/game/game_1a78b0.o (section); diff --git a/ld/gamefiles.ntsc-beta.inc b/ld/gamefiles.ntsc-beta.inc index aa3193f07..f35d825b8 100644 --- a/ld/gamefiles.ntsc-beta.inc +++ b/ld/gamefiles.ntsc-beta.inc @@ -1,33 +1,34 @@ #define GAMEFILES(section) \ build/ROMID/game/langinit.o (section); \ build/ROMID/game/titleinit.o (section); \ - build/ROMID/game/game_000100.o (section); \ - build/ROMID/game/game_000130.o (section); \ + build/ROMID/game/raceinit.o (section); \ + build/ROMID/game/bodyinit.o (section); \ + build/ROMID/game/race.o (section); \ build/ROMID/game/stubs/game_000840.o (section); \ build/ROMID/game/stubs/game_000850.o (section); \ build/ROMID/game/stubs/game_000860.o (section); \ build/ROMID/game/stubs/game_000870.o (section); \ - build/ROMID/game/game_000880.o (section); \ + build/ROMID/game/smokeinit.o (section); \ build/ROMID/game/stubs/game_0008e0.o (section); \ build/ROMID/game/stubs/game_0008f0.o (section); \ build/ROMID/game/stubs/game_000900.o (section); \ build/ROMID/game/stubs/game_000910.o (section); \ build/ROMID/game/dlights.o (section); \ - build/ROMID/game/game_005fd0.o (section); \ + build/ROMID/game/footstep.o (section); \ build/ROMID/game/game_006900.o (section); \ - build/ROMID/game/game_006bd0.o (section); \ build/ROMID/game/nbomb.o (section); \ build/ROMID/game/stubs/game_00b180.o (section); \ - build/ROMID/game/game_00b190.o (section); \ + build/ROMID/game/texinit.o (section); \ build/ROMID/game/stubs/game_00b200.o (section); \ - build/ROMID/game/game_00b210.o (section); \ + build/ROMID/game/challengeinit.o (section); \ build/ROMID/game/langreset.o (section); \ - build/ROMID/game/game_00b420.o (section); \ + build/ROMID/game/getitlereset.o (section); \ build/ROMID/game/titlereset.o (section); \ build/ROMID/game/chrmgr.o (section); \ + build/ROMID/game/bodyreset.o (section); \ build/ROMID/game/game_00b820.o (section); \ build/ROMID/game/varsreset.o (section); \ - build/ROMID/game/game_00c490.o (section); \ + build/ROMID/game/setup.o (section); \ build/ROMID/game/propsndreset.o (section); \ build/ROMID/game/objectivesreset.o (section); \ build/ROMID/game/casingreset.o (section); \ @@ -35,26 +36,27 @@ build/ROMID/game/playerreset.o (section); \ build/ROMID/game/invreset.o (section); \ build/ROMID/game/bondheadreset.o (section); \ - build/ROMID/game/game_012aa0.o (section); \ - build/ROMID/game/game_012d50.o (section); \ + build/ROMID/game/setuppads.o (section); \ + build/ROMID/game/setupwaypoints.o (section); \ build/ROMID/game/explosionsreset.o (section); \ build/ROMID/game/smokereset.o (section); \ build/ROMID/game/sparksreset.o (section); \ build/ROMID/game/weatherreset.o (section); \ build/ROMID/game/stubs/game_013540.o (section); \ - build/ROMID/game/game_013550.o (section); \ + build/ROMID/game/wallhitreset.o (section); \ build/ROMID/game/shardsreset.o (section); \ - build/ROMID/game/game_013b80.o (section); \ + build/ROMID/game/surfacereset.o (section); \ build/ROMID/game/vtxstorereset.o (section); \ build/ROMID/game/tilesreset.o (section); \ - build/ROMID/game/game_013ee0.o (section); \ - build/ROMID/game/game_0147a0.o (section); \ - build/ROMID/game/lasersightsreset.o (section); \ + build/ROMID/game/roomreset.o (section); \ + build/ROMID/game/setupcover.o (section); \ + build/ROMID/game/skyreset.o (section); \ + build/ROMID/game/gunfxreset.o (section); \ build/ROMID/game/botmgr.o (section); \ build/ROMID/game/botinvinit.o (section); \ build/ROMID/game/chrmgrstop.o (section); \ build/ROMID/game/propsstop.o (section); \ - build/ROMID/game/game_015010.o (section); \ + build/ROMID/game/propobjstop.o (section); \ build/ROMID/game/propsndstop.o (section); \ build/ROMID/game/objectivesstop.o (section); \ build/ROMID/game/stubs/game_015260.o (section); \ @@ -68,27 +70,27 @@ build/ROMID/game/bondgunstop.o (section); \ build/ROMID/game/getitle.o (section); \ build/ROMID/game/title.o (section); \ - build/ROMID/game/game_01afc0.o (section); \ - build/ROMID/game/game_01b0a0.o (section); \ + build/ROMID/game/titleclear.o (section); \ + build/ROMID/game/pdmode.o (section); \ build/ROMID/game/activemenutick.o (section); \ build/ROMID/game/menustop.o (section); \ build/ROMID/game/menutick.o (section); \ build/ROMID/game/weathertick.o (section); \ build/ROMID/game/langtick.o (section); \ - build/ROMID/game/game_01d8c0.o (section); \ - build/ROMID/game/game_01d990.o (section); \ + build/ROMID/game/roomtick.o (section); \ + build/ROMID/game/skytick.o (section); \ build/ROMID/game/casingtick.o (section); \ build/ROMID/game/shardstick.o (section); \ build/ROMID/game/sparkstick.o (section); \ build/ROMID/game/chr.o (section); \ - build/ROMID/game/game_02cde0.o (section); \ + build/ROMID/game/body.o (section); \ build/ROMID/game/chraction.o (section); \ build/ROMID/game/chrai.o (section); \ build/ROMID/game/chraicommands.o (section); \ build/ROMID/game/prop.o (section); \ build/ROMID/game/propobj.o (section); \ build/ROMID/game/propobjbss.o (section); \ - build/ROMID/game/game_091e10.o (section); \ + build/ROMID/game/setuputils.o (section); \ build/ROMID/game/propsnd.o (section); \ build/ROMID/game/objectives.o (section); \ build/ROMID/game/game_096360.o (section); \ @@ -97,21 +99,21 @@ build/ROMID/game/acosasin.o (section); \ build/ROMID/game/acosfasinf.o (section); \ build/ROMID/game/game_096b20.o (section); \ - build/ROMID/game/game_096ca0.o (section); \ + build/ROMID/game/quaternion.o (section); \ build/ROMID/game/floor.o (section); \ build/ROMID/game/ceil.o (section); \ build/ROMID/game/game_097a50.o (section); \ build/ROMID/game/game_097aa0.o (section); \ build/ROMID/game/invitems.o (section); \ build/ROMID/game/bondgun.o (section); \ - build/ROMID/game/game_0abe70.o (section); \ + build/ROMID/game/gunfx.o (section); \ build/ROMID/game/mpstats.o (section); \ build/ROMID/game/game_0b0fd0.o (section); \ build/ROMID/game/game_0b2150.o (section); \ build/ROMID/game/game_0b28d0.o (section); \ - build/ROMID/game/game_0b3350.o (section); \ - build/ROMID/game/game_0b4950.o (section); \ - build/ROMID/game/game_0b63b0.o (section); \ + build/ROMID/game/tex.o (section); \ + build/ROMID/game/camera.o (section); \ + build/ROMID/game/portal.o (section); \ build/ROMID/game/player.o (section); \ build/ROMID/game/game_0c33f0.o (section); \ build/ROMID/game/bondcutscene.o (section); \ @@ -132,7 +134,7 @@ build/ROMID/game/mainmenu.o (section); \ build/ROMID/game/cheats.o (section); \ build/ROMID/game/filemgr.o (section); \ - build/ROMID/game/game_10c9c0.o (section); \ + build/ROMID/game/fmb.o (section); \ build/ROMID/game/endscreen.o (section); \ build/ROMID/game/gamefile.o (section); \ build/ROMID/game/bossfile.o (section); \ @@ -162,7 +164,7 @@ build/ROMID/game/modeldata/chr.o (section); \ build/ROMID/game/modeldata/skedar.o (section); \ build/ROMID/game/modeldata/robot.o (section); \ - build/ROMID/game/game_11f000.o (section); \ + build/ROMID/game/sky.o (section); \ build/ROMID/game/playermgr.o (section); \ build/ROMID/game/crc.o (section); \ build/ROMID/game/rng2.o (section); \ @@ -171,7 +173,7 @@ build/ROMID/game/smoke.o (section); \ build/ROMID/game/sparks.o (section); \ build/ROMID/game/weather.o (section); \ - build/ROMID/game/sky.o (section); \ + build/ROMID/game/stars.o (section); \ build/ROMID/game/credits.o (section); \ build/ROMID/game/game_13b670.o (section); \ build/ROMID/game/game_13c510.o (section); \ @@ -183,14 +185,14 @@ build/ROMID/game/options.o (section); \ build/ROMID/game/game_152fa0.o (section); \ build/ROMID/game/game_1531a0.o (section); \ - build/ROMID/game/game_1577f0.o (section); \ + build/ROMID/game/collisionutils.o (section); \ build/ROMID/game/bg.o (section); \ build/ROMID/game/bgbss.o (section); \ build/ROMID/game/game_165360.o (section); \ build/ROMID/game/stagetable.o (section); \ - build/ROMID/game/game_165670.o (section); \ + build/ROMID/game/gfxreplace.o (section); \ build/ROMID/game/env.o (section); \ - build/ROMID/game/game_1668e0.o (section); \ + build/ROMID/game/room.o (section); \ build/ROMID/game/file.o (section); \ build/ROMID/game/gfxmemory.o (section); \ build/ROMID/game/lv.o (section); \ @@ -199,9 +201,10 @@ build/ROMID/game/lang.o (section); \ build/ROMID/game/texdecompress.o (section); \ build/ROMID/game/texreset.o (section); \ - build/ROMID/game/game_173a00.o (section); \ + build/ROMID/game/surface.o (section); \ build/ROMID/game/stubs/game_175f50.o (section); \ build/ROMID/game/game_175f90.o (section); \ + build/ROMID/game/buildtime.o (section); \ build/ROMID/game/stubs/game_176000.o (section); \ build/ROMID/game/game_176080.o (section); \ build/ROMID/game/stagemusic.o (section); \ @@ -217,7 +220,8 @@ build/ROMID/game/botact.o (section); \ build/ROMID/game/mplayer/mpaicommands.o (section); \ build/ROMID/game/vmstats.o (section); \ - build/ROMID/game/game_19aa80.o (section); \ + build/ROMID/game/botroom.o (section); \ + build/ROMID/game/challenge.o (section); \ build/ROMID/game/training.o (section); \ build/ROMID/game/trainingmenus.o (section); \ build/ROMID/game/game_1a78b0.o (section); diff --git a/ld/gamefiles.ntsc-final.inc b/ld/gamefiles.ntsc-final.inc index ab4881d98..5abc82d5b 100644 --- a/ld/gamefiles.ntsc-final.inc +++ b/ld/gamefiles.ntsc-final.inc @@ -1,33 +1,34 @@ #define GAMEFILES(section) \ build/ROMID/game/langinit.o (section); \ build/ROMID/game/titleinit.o (section); \ - build/ROMID/game/game_000100.o (section); \ - build/ROMID/game/game_000130.o (section); \ + build/ROMID/game/raceinit.o (section); \ + build/ROMID/game/bodyinit.o (section); \ + build/ROMID/game/race.o (section); \ build/ROMID/game/stubs/game_000840.o (section); \ build/ROMID/game/stubs/game_000850.o (section); \ build/ROMID/game/stubs/game_000860.o (section); \ build/ROMID/game/stubs/game_000870.o (section); \ - build/ROMID/game/game_000880.o (section); \ + build/ROMID/game/smokeinit.o (section); \ build/ROMID/game/stubs/game_0008e0.o (section); \ build/ROMID/game/stubs/game_0008f0.o (section); \ build/ROMID/game/stubs/game_000900.o (section); \ build/ROMID/game/stubs/game_000910.o (section); \ build/ROMID/game/dlights.o (section); \ - build/ROMID/game/game_005fd0.o (section); \ + build/ROMID/game/footstep.o (section); \ build/ROMID/game/game_006900.o (section); \ - build/ROMID/game/game_006bd0.o (section); \ build/ROMID/game/nbomb.o (section); \ build/ROMID/game/stubs/game_00b180.o (section); \ - build/ROMID/game/game_00b190.o (section); \ + build/ROMID/game/texinit.o (section); \ build/ROMID/game/stubs/game_00b200.o (section); \ - build/ROMID/game/game_00b210.o (section); \ + build/ROMID/game/challengeinit.o (section); \ build/ROMID/game/langreset.o (section); \ - build/ROMID/game/game_00b420.o (section); \ + build/ROMID/game/getitlereset.o (section); \ build/ROMID/game/titlereset.o (section); \ build/ROMID/game/chrmgr.o (section); \ + build/ROMID/game/bodyreset.o (section); \ build/ROMID/game/game_00b820.o (section); \ build/ROMID/game/varsreset.o (section); \ - build/ROMID/game/game_00c490.o (section); \ + build/ROMID/game/setup.o (section); \ build/ROMID/game/propsndreset.o (section); \ build/ROMID/game/objectivesreset.o (section); \ build/ROMID/game/casingreset.o (section); \ @@ -35,26 +36,27 @@ build/ROMID/game/playerreset.o (section); \ build/ROMID/game/invreset.o (section); \ build/ROMID/game/bondheadreset.o (section); \ - build/ROMID/game/game_012aa0.o (section); \ - build/ROMID/game/game_012d50.o (section); \ + build/ROMID/game/setuppads.o (section); \ + build/ROMID/game/setupwaypoints.o (section); \ build/ROMID/game/explosionsreset.o (section); \ build/ROMID/game/smokereset.o (section); \ build/ROMID/game/sparksreset.o (section); \ build/ROMID/game/weatherreset.o (section); \ build/ROMID/game/stubs/game_013540.o (section); \ - build/ROMID/game/game_013550.o (section); \ + build/ROMID/game/wallhitreset.o (section); \ build/ROMID/game/shardsreset.o (section); \ - build/ROMID/game/game_013b80.o (section); \ + build/ROMID/game/surfacereset.o (section); \ build/ROMID/game/vtxstorereset.o (section); \ build/ROMID/game/tilesreset.o (section); \ - build/ROMID/game/game_013ee0.o (section); \ - build/ROMID/game/game_0147a0.o (section); \ - build/ROMID/game/lasersightsreset.o (section); \ + build/ROMID/game/roomreset.o (section); \ + build/ROMID/game/setupcover.o (section); \ + build/ROMID/game/skyreset.o (section); \ + build/ROMID/game/gunfxreset.o (section); \ build/ROMID/game/botmgr.o (section); \ build/ROMID/game/botinvinit.o (section); \ build/ROMID/game/chrmgrstop.o (section); \ build/ROMID/game/propsstop.o (section); \ - build/ROMID/game/game_015010.o (section); \ + build/ROMID/game/propobjstop.o (section); \ build/ROMID/game/propsndstop.o (section); \ build/ROMID/game/objectivesstop.o (section); \ build/ROMID/game/stubs/game_015260.o (section); \ @@ -68,27 +70,27 @@ build/ROMID/game/bondgunstop.o (section); \ build/ROMID/game/getitle.o (section); \ build/ROMID/game/title.o (section); \ - build/ROMID/game/game_01afc0.o (section); \ - build/ROMID/game/game_01b0a0.o (section); \ + build/ROMID/game/titleclear.o (section); \ + build/ROMID/game/pdmode.o (section); \ build/ROMID/game/activemenutick.o (section); \ build/ROMID/game/menustop.o (section); \ build/ROMID/game/menutick.o (section); \ build/ROMID/game/weathertick.o (section); \ build/ROMID/game/langtick.o (section); \ - build/ROMID/game/game_01d8c0.o (section); \ - build/ROMID/game/game_01d990.o (section); \ + build/ROMID/game/roomtick.o (section); \ + build/ROMID/game/skytick.o (section); \ build/ROMID/game/casingtick.o (section); \ build/ROMID/game/shardstick.o (section); \ build/ROMID/game/sparkstick.o (section); \ build/ROMID/game/chr.o (section); \ - build/ROMID/game/game_02cde0.o (section); \ + build/ROMID/game/body.o (section); \ build/ROMID/game/chraction.o (section); \ build/ROMID/game/chrai.o (section); \ build/ROMID/game/chraicommands.o (section); \ build/ROMID/game/prop.o (section); \ build/ROMID/game/propobj.o (section); \ build/ROMID/game/propobjbss.o (section); \ - build/ROMID/game/game_091e10.o (section); \ + build/ROMID/game/setuputils.o (section); \ build/ROMID/game/propsnd.o (section); \ build/ROMID/game/objectives.o (section); \ build/ROMID/game/game_096360.o (section); \ @@ -97,21 +99,21 @@ build/ROMID/game/acosasin.o (section); \ build/ROMID/game/acosfasinf.o (section); \ build/ROMID/game/game_096b20.o (section); \ - build/ROMID/game/game_096ca0.o (section); \ + build/ROMID/game/quaternion.o (section); \ build/ROMID/game/floor.o (section); \ build/ROMID/game/ceil.o (section); \ build/ROMID/game/game_097a50.o (section); \ build/ROMID/game/game_097aa0.o (section); \ build/ROMID/game/invitems.o (section); \ build/ROMID/game/bondgun.o (section); \ - build/ROMID/game/game_0abe70.o (section); \ + build/ROMID/game/gunfx.o (section); \ build/ROMID/game/mpstats.o (section); \ build/ROMID/game/game_0b0fd0.o (section); \ build/ROMID/game/game_0b2150.o (section); \ build/ROMID/game/game_0b28d0.o (section); \ - build/ROMID/game/game_0b3350.o (section); \ - build/ROMID/game/game_0b4950.o (section); \ - build/ROMID/game/game_0b63b0.o (section); \ + build/ROMID/game/tex.o (section); \ + build/ROMID/game/camera.o (section); \ + build/ROMID/game/portal.o (section); \ build/ROMID/game/player.o (section); \ build/ROMID/game/game_0c33f0.o (section); \ build/ROMID/game/bondcutscene.o (section); \ @@ -132,7 +134,7 @@ build/ROMID/game/mainmenu.o (section); \ build/ROMID/game/cheats.o (section); \ build/ROMID/game/filemgr.o (section); \ - build/ROMID/game/game_10c9c0.o (section); \ + build/ROMID/game/fmb.o (section); \ build/ROMID/game/endscreen.o (section); \ build/ROMID/game/gamefile.o (section); \ build/ROMID/game/bossfile.o (section); \ @@ -161,7 +163,7 @@ build/ROMID/game/modeldata/chr.o (section); \ build/ROMID/game/modeldata/skedar.o (section); \ build/ROMID/game/modeldata/robot.o (section); \ - build/ROMID/game/game_11f000.o (section); \ + build/ROMID/game/sky.o (section); \ build/ROMID/game/playermgr.o (section); \ build/ROMID/game/crc.o (section); \ build/ROMID/game/rng2.o (section); \ @@ -170,7 +172,7 @@ build/ROMID/game/smoke.o (section); \ build/ROMID/game/sparks.o (section); \ build/ROMID/game/weather.o (section); \ - build/ROMID/game/sky.o (section); \ + build/ROMID/game/stars.o (section); \ build/ROMID/game/credits.o (section); \ build/ROMID/game/game_13b670.o (section); \ build/ROMID/game/game_13c510.o (section); \ @@ -182,14 +184,14 @@ build/ROMID/game/options.o (section); \ build/ROMID/game/game_152fa0.o (section); \ build/ROMID/game/game_1531a0.o (section); \ - build/ROMID/game/game_1577f0.o (section); \ + build/ROMID/game/collisionutils.o (section); \ build/ROMID/game/bg.o (section); \ build/ROMID/game/bgbss.o (section); \ build/ROMID/game/game_165360.o (section); \ build/ROMID/game/stagetable.o (section); \ - build/ROMID/game/game_165670.o (section); \ + build/ROMID/game/gfxreplace.o (section); \ build/ROMID/game/env.o (section); \ - build/ROMID/game/game_1668e0.o (section); \ + build/ROMID/game/room.o (section); \ build/ROMID/game/file.o (section); \ build/ROMID/game/gfxmemory.o (section); \ build/ROMID/game/lv.o (section); \ @@ -198,9 +200,10 @@ build/ROMID/game/lang.o (section); \ build/ROMID/game/texdecompress.o (section); \ build/ROMID/game/texreset.o (section); \ - build/ROMID/game/game_173a00.o (section); \ + build/ROMID/game/surface.o (section); \ build/ROMID/game/stubs/game_175f50.o (section); \ build/ROMID/game/game_175f90.o (section); \ + build/ROMID/game/buildtime.o (section); \ build/ROMID/game/stubs/game_176000.o (section); \ build/ROMID/game/game_176080.o (section); \ build/ROMID/game/stagemusic.o (section); \ @@ -216,8 +219,9 @@ build/ROMID/game/botact.o (section); \ build/ROMID/game/mplayer/mpaicommands.o (section); \ build/ROMID/game/vmstats.o (section); \ - build/ROMID/game/game_19aa80.o (section); \ + build/ROMID/game/botroom.o (section); \ + build/ROMID/game/challenge.o (section); \ build/ROMID/game/training.o (section); \ build/ROMID/game/trainingmenus.o (section); \ - build/ROMID/game/game_1a7560.o (section); \ + build/ROMID/game/modeldef.o (section); \ build/ROMID/game/game_1a78b0.o (section); diff --git a/ld/gamefiles.pal-beta.inc b/ld/gamefiles.pal-beta.inc index 0e35bd268..23d18ae4e 100644 --- a/ld/gamefiles.pal-beta.inc +++ b/ld/gamefiles.pal-beta.inc @@ -1,33 +1,34 @@ #define GAMEFILES(section) \ build/ROMID/game/langinit.o (section); \ build/ROMID/game/titleinit.o (section); \ - build/ROMID/game/game_000100.o (section); \ - build/ROMID/game/game_000130.o (section); \ + build/ROMID/game/raceinit.o (section); \ + build/ROMID/game/bodyinit.o (section); \ + build/ROMID/game/race.o (section); \ build/ROMID/game/stubs/game_000840.o (section); \ build/ROMID/game/stubs/game_000850.o (section); \ build/ROMID/game/stubs/game_000860.o (section); \ build/ROMID/game/stubs/game_000870.o (section); \ - build/ROMID/game/game_000880.o (section); \ + build/ROMID/game/smokeinit.o (section); \ build/ROMID/game/stubs/game_0008e0.o (section); \ build/ROMID/game/stubs/game_0008f0.o (section); \ build/ROMID/game/stubs/game_000900.o (section); \ build/ROMID/game/stubs/game_000910.o (section); \ build/ROMID/game/dlights.o (section); \ - build/ROMID/game/game_005fd0.o (section); \ + build/ROMID/game/footstep.o (section); \ build/ROMID/game/game_006900.o (section); \ - build/ROMID/game/game_006bd0.o (section); \ build/ROMID/game/nbomb.o (section); \ build/ROMID/game/stubs/game_00b180.o (section); \ - build/ROMID/game/game_00b190.o (section); \ + build/ROMID/game/texinit.o (section); \ build/ROMID/game/stubs/game_00b200.o (section); \ - build/ROMID/game/game_00b210.o (section); \ + build/ROMID/game/challengeinit.o (section); \ build/ROMID/game/langreset.o (section); \ - build/ROMID/game/game_00b420.o (section); \ + build/ROMID/game/getitlereset.o (section); \ build/ROMID/game/titlereset.o (section); \ build/ROMID/game/chrmgr.o (section); \ + build/ROMID/game/bodyreset.o (section); \ build/ROMID/game/game_00b820.o (section); \ build/ROMID/game/varsreset.o (section); \ - build/ROMID/game/game_00c490.o (section); \ + build/ROMID/game/setup.o (section); \ build/ROMID/game/propsndreset.o (section); \ build/ROMID/game/objectivesreset.o (section); \ build/ROMID/game/casingreset.o (section); \ @@ -35,26 +36,27 @@ build/ROMID/game/playerreset.o (section); \ build/ROMID/game/invreset.o (section); \ build/ROMID/game/bondheadreset.o (section); \ - build/ROMID/game/game_012aa0.o (section); \ - build/ROMID/game/game_012d50.o (section); \ + build/ROMID/game/setuppads.o (section); \ + build/ROMID/game/setupwaypoints.o (section); \ build/ROMID/game/explosionsreset.o (section); \ build/ROMID/game/smokereset.o (section); \ build/ROMID/game/sparksreset.o (section); \ build/ROMID/game/weatherreset.o (section); \ build/ROMID/game/stubs/game_013540.o (section); \ - build/ROMID/game/game_013550.o (section); \ + build/ROMID/game/wallhitreset.o (section); \ build/ROMID/game/shardsreset.o (section); \ - build/ROMID/game/game_013b80.o (section); \ + build/ROMID/game/surfacereset.o (section); \ build/ROMID/game/vtxstorereset.o (section); \ build/ROMID/game/tilesreset.o (section); \ - build/ROMID/game/game_013ee0.o (section); \ - build/ROMID/game/game_0147a0.o (section); \ - build/ROMID/game/lasersightsreset.o (section); \ + build/ROMID/game/roomreset.o (section); \ + build/ROMID/game/setupcover.o (section); \ + build/ROMID/game/skyreset.o (section); \ + build/ROMID/game/gunfxreset.o (section); \ build/ROMID/game/botmgr.o (section); \ build/ROMID/game/botinvinit.o (section); \ build/ROMID/game/chrmgrstop.o (section); \ build/ROMID/game/propsstop.o (section); \ - build/ROMID/game/game_015010.o (section); \ + build/ROMID/game/propobjstop.o (section); \ build/ROMID/game/propsndstop.o (section); \ build/ROMID/game/objectivesstop.o (section); \ build/ROMID/game/stubs/game_015260.o (section); \ @@ -68,27 +70,27 @@ build/ROMID/game/bondgunstop.o (section); \ build/ROMID/game/getitle.o (section); \ build/ROMID/game/title.o (section); \ - build/ROMID/game/game_01afc0.o (section); \ - build/ROMID/game/game_01b0a0.o (section); \ + build/ROMID/game/titleclear.o (section); \ + build/ROMID/game/pdmode.o (section); \ build/ROMID/game/activemenutick.o (section); \ build/ROMID/game/menustop.o (section); \ build/ROMID/game/menutick.o (section); \ build/ROMID/game/weathertick.o (section); \ build/ROMID/game/langtick.o (section); \ - build/ROMID/game/game_01d8c0.o (section); \ - build/ROMID/game/game_01d990.o (section); \ + build/ROMID/game/roomtick.o (section); \ + build/ROMID/game/skytick.o (section); \ build/ROMID/game/casingtick.o (section); \ build/ROMID/game/shardstick.o (section); \ build/ROMID/game/sparkstick.o (section); \ build/ROMID/game/chr.o (section); \ - build/ROMID/game/game_02cde0.o (section); \ + build/ROMID/game/body.o (section); \ build/ROMID/game/chraction.o (section); \ build/ROMID/game/chrai.o (section); \ build/ROMID/game/chraicommands.o (section); \ build/ROMID/game/prop.o (section); \ build/ROMID/game/propobj.o (section); \ build/ROMID/game/propobjbss.o (section); \ - build/ROMID/game/game_091e10.o (section); \ + build/ROMID/game/setuputils.o (section); \ build/ROMID/game/propsnd.o (section); \ build/ROMID/game/objectives.o (section); \ build/ROMID/game/game_096360.o (section); \ @@ -97,21 +99,21 @@ build/ROMID/game/acosasin.o (section); \ build/ROMID/game/acosfasinf.o (section); \ build/ROMID/game/game_096b20.o (section); \ - build/ROMID/game/game_096ca0.o (section); \ + build/ROMID/game/quaternion.o (section); \ build/ROMID/game/floor.o (section); \ build/ROMID/game/ceil.o (section); \ build/ROMID/game/game_097a50.o (section); \ build/ROMID/game/game_097aa0.o (section); \ build/ROMID/game/invitems.o (section); \ build/ROMID/game/bondgun.o (section); \ - build/ROMID/game/game_0abe70.o (section); \ + build/ROMID/game/gunfx.o (section); \ build/ROMID/game/mpstats.o (section); \ build/ROMID/game/game_0b0fd0.o (section); \ build/ROMID/game/game_0b2150.o (section); \ build/ROMID/game/game_0b28d0.o (section); \ - build/ROMID/game/game_0b3350.o (section); \ - build/ROMID/game/game_0b4950.o (section); \ - build/ROMID/game/game_0b63b0.o (section); \ + build/ROMID/game/tex.o (section); \ + build/ROMID/game/camera.o (section); \ + build/ROMID/game/portal.o (section); \ build/ROMID/game/player.o (section); \ build/ROMID/game/game_0c33f0.o (section); \ build/ROMID/game/bondcutscene.o (section); \ @@ -132,7 +134,7 @@ build/ROMID/game/mainmenu.o (section); \ build/ROMID/game/cheats.o (section); \ build/ROMID/game/filemgr.o (section); \ - build/ROMID/game/game_10c9c0.o (section); \ + build/ROMID/game/fmb.o (section); \ build/ROMID/game/endscreen.o (section); \ build/ROMID/game/gamefile.o (section); \ build/ROMID/game/bossfile.o (section); \ @@ -162,7 +164,7 @@ build/ROMID/game/modeldata/chr.o (section); \ build/ROMID/game/modeldata/skedar.o (section); \ build/ROMID/game/modeldata/robot.o (section); \ - build/ROMID/game/game_11f000.o (section); \ + build/ROMID/game/sky.o (section); \ build/ROMID/game/playermgr.o (section); \ build/ROMID/game/crc.o (section); \ build/ROMID/game/rng2.o (section); \ @@ -171,7 +173,7 @@ build/ROMID/game/smoke.o (section); \ build/ROMID/game/sparks.o (section); \ build/ROMID/game/weather.o (section); \ - build/ROMID/game/sky.o (section); \ + build/ROMID/game/stars.o (section); \ build/ROMID/game/credits.o (section); \ build/ROMID/game/game_13b670.o (section); \ build/ROMID/game/game_13c510.o (section); \ @@ -183,14 +185,14 @@ build/ROMID/game/options.o (section); \ build/ROMID/game/game_152fa0.o (section); \ build/ROMID/game/game_1531a0.o (section); \ - build/ROMID/game/game_1577f0.o (section); \ + build/ROMID/game/collisionutils.o (section); \ build/ROMID/game/bg.o (section); \ build/ROMID/game/bgbss.o (section); \ build/ROMID/game/game_165360.o (section); \ build/ROMID/game/stagetable.o (section); \ - build/ROMID/game/game_165670.o (section); \ + build/ROMID/game/gfxreplace.o (section); \ build/ROMID/game/env.o (section); \ - build/ROMID/game/game_1668e0.o (section); \ + build/ROMID/game/room.o (section); \ build/ROMID/game/file.o (section); \ build/ROMID/game/gfxmemory.o (section); \ build/ROMID/game/lv.o (section); \ @@ -199,9 +201,10 @@ build/ROMID/game/lang.o (section); \ build/ROMID/game/texdecompress.o (section); \ build/ROMID/game/texreset.o (section); \ - build/ROMID/game/game_173a00.o (section); \ + build/ROMID/game/surface.o (section); \ build/ROMID/game/stubs/game_175f50.o (section); \ build/ROMID/game/game_175f90.o (section); \ + build/ROMID/game/buildtime.o (section); \ build/ROMID/game/stubs/game_176000.o (section); \ build/ROMID/game/game_176080.o (section); \ build/ROMID/game/stagemusic.o (section); \ @@ -217,8 +220,9 @@ build/ROMID/game/botact.o (section); \ build/ROMID/game/mplayer/mpaicommands.o (section); \ build/ROMID/game/vmstats.o (section); \ - build/ROMID/game/game_19aa80.o (section); \ + build/ROMID/game/botroom.o (section); \ + build/ROMID/game/challenge.o (section); \ build/ROMID/game/training.o (section); \ build/ROMID/game/trainingmenus.o (section); \ - build/ROMID/game/game_1a7560.o (section); \ + build/ROMID/game/modeldef.o (section); \ build/ROMID/game/game_1a78b0.o (section); diff --git a/ld/gamefiles.pal-final.inc b/ld/gamefiles.pal-final.inc index ab4881d98..5abc82d5b 100644 --- a/ld/gamefiles.pal-final.inc +++ b/ld/gamefiles.pal-final.inc @@ -1,33 +1,34 @@ #define GAMEFILES(section) \ build/ROMID/game/langinit.o (section); \ build/ROMID/game/titleinit.o (section); \ - build/ROMID/game/game_000100.o (section); \ - build/ROMID/game/game_000130.o (section); \ + build/ROMID/game/raceinit.o (section); \ + build/ROMID/game/bodyinit.o (section); \ + build/ROMID/game/race.o (section); \ build/ROMID/game/stubs/game_000840.o (section); \ build/ROMID/game/stubs/game_000850.o (section); \ build/ROMID/game/stubs/game_000860.o (section); \ build/ROMID/game/stubs/game_000870.o (section); \ - build/ROMID/game/game_000880.o (section); \ + build/ROMID/game/smokeinit.o (section); \ build/ROMID/game/stubs/game_0008e0.o (section); \ build/ROMID/game/stubs/game_0008f0.o (section); \ build/ROMID/game/stubs/game_000900.o (section); \ build/ROMID/game/stubs/game_000910.o (section); \ build/ROMID/game/dlights.o (section); \ - build/ROMID/game/game_005fd0.o (section); \ + build/ROMID/game/footstep.o (section); \ build/ROMID/game/game_006900.o (section); \ - build/ROMID/game/game_006bd0.o (section); \ build/ROMID/game/nbomb.o (section); \ build/ROMID/game/stubs/game_00b180.o (section); \ - build/ROMID/game/game_00b190.o (section); \ + build/ROMID/game/texinit.o (section); \ build/ROMID/game/stubs/game_00b200.o (section); \ - build/ROMID/game/game_00b210.o (section); \ + build/ROMID/game/challengeinit.o (section); \ build/ROMID/game/langreset.o (section); \ - build/ROMID/game/game_00b420.o (section); \ + build/ROMID/game/getitlereset.o (section); \ build/ROMID/game/titlereset.o (section); \ build/ROMID/game/chrmgr.o (section); \ + build/ROMID/game/bodyreset.o (section); \ build/ROMID/game/game_00b820.o (section); \ build/ROMID/game/varsreset.o (section); \ - build/ROMID/game/game_00c490.o (section); \ + build/ROMID/game/setup.o (section); \ build/ROMID/game/propsndreset.o (section); \ build/ROMID/game/objectivesreset.o (section); \ build/ROMID/game/casingreset.o (section); \ @@ -35,26 +36,27 @@ build/ROMID/game/playerreset.o (section); \ build/ROMID/game/invreset.o (section); \ build/ROMID/game/bondheadreset.o (section); \ - build/ROMID/game/game_012aa0.o (section); \ - build/ROMID/game/game_012d50.o (section); \ + build/ROMID/game/setuppads.o (section); \ + build/ROMID/game/setupwaypoints.o (section); \ build/ROMID/game/explosionsreset.o (section); \ build/ROMID/game/smokereset.o (section); \ build/ROMID/game/sparksreset.o (section); \ build/ROMID/game/weatherreset.o (section); \ build/ROMID/game/stubs/game_013540.o (section); \ - build/ROMID/game/game_013550.o (section); \ + build/ROMID/game/wallhitreset.o (section); \ build/ROMID/game/shardsreset.o (section); \ - build/ROMID/game/game_013b80.o (section); \ + build/ROMID/game/surfacereset.o (section); \ build/ROMID/game/vtxstorereset.o (section); \ build/ROMID/game/tilesreset.o (section); \ - build/ROMID/game/game_013ee0.o (section); \ - build/ROMID/game/game_0147a0.o (section); \ - build/ROMID/game/lasersightsreset.o (section); \ + build/ROMID/game/roomreset.o (section); \ + build/ROMID/game/setupcover.o (section); \ + build/ROMID/game/skyreset.o (section); \ + build/ROMID/game/gunfxreset.o (section); \ build/ROMID/game/botmgr.o (section); \ build/ROMID/game/botinvinit.o (section); \ build/ROMID/game/chrmgrstop.o (section); \ build/ROMID/game/propsstop.o (section); \ - build/ROMID/game/game_015010.o (section); \ + build/ROMID/game/propobjstop.o (section); \ build/ROMID/game/propsndstop.o (section); \ build/ROMID/game/objectivesstop.o (section); \ build/ROMID/game/stubs/game_015260.o (section); \ @@ -68,27 +70,27 @@ build/ROMID/game/bondgunstop.o (section); \ build/ROMID/game/getitle.o (section); \ build/ROMID/game/title.o (section); \ - build/ROMID/game/game_01afc0.o (section); \ - build/ROMID/game/game_01b0a0.o (section); \ + build/ROMID/game/titleclear.o (section); \ + build/ROMID/game/pdmode.o (section); \ build/ROMID/game/activemenutick.o (section); \ build/ROMID/game/menustop.o (section); \ build/ROMID/game/menutick.o (section); \ build/ROMID/game/weathertick.o (section); \ build/ROMID/game/langtick.o (section); \ - build/ROMID/game/game_01d8c0.o (section); \ - build/ROMID/game/game_01d990.o (section); \ + build/ROMID/game/roomtick.o (section); \ + build/ROMID/game/skytick.o (section); \ build/ROMID/game/casingtick.o (section); \ build/ROMID/game/shardstick.o (section); \ build/ROMID/game/sparkstick.o (section); \ build/ROMID/game/chr.o (section); \ - build/ROMID/game/game_02cde0.o (section); \ + build/ROMID/game/body.o (section); \ build/ROMID/game/chraction.o (section); \ build/ROMID/game/chrai.o (section); \ build/ROMID/game/chraicommands.o (section); \ build/ROMID/game/prop.o (section); \ build/ROMID/game/propobj.o (section); \ build/ROMID/game/propobjbss.o (section); \ - build/ROMID/game/game_091e10.o (section); \ + build/ROMID/game/setuputils.o (section); \ build/ROMID/game/propsnd.o (section); \ build/ROMID/game/objectives.o (section); \ build/ROMID/game/game_096360.o (section); \ @@ -97,21 +99,21 @@ build/ROMID/game/acosasin.o (section); \ build/ROMID/game/acosfasinf.o (section); \ build/ROMID/game/game_096b20.o (section); \ - build/ROMID/game/game_096ca0.o (section); \ + build/ROMID/game/quaternion.o (section); \ build/ROMID/game/floor.o (section); \ build/ROMID/game/ceil.o (section); \ build/ROMID/game/game_097a50.o (section); \ build/ROMID/game/game_097aa0.o (section); \ build/ROMID/game/invitems.o (section); \ build/ROMID/game/bondgun.o (section); \ - build/ROMID/game/game_0abe70.o (section); \ + build/ROMID/game/gunfx.o (section); \ build/ROMID/game/mpstats.o (section); \ build/ROMID/game/game_0b0fd0.o (section); \ build/ROMID/game/game_0b2150.o (section); \ build/ROMID/game/game_0b28d0.o (section); \ - build/ROMID/game/game_0b3350.o (section); \ - build/ROMID/game/game_0b4950.o (section); \ - build/ROMID/game/game_0b63b0.o (section); \ + build/ROMID/game/tex.o (section); \ + build/ROMID/game/camera.o (section); \ + build/ROMID/game/portal.o (section); \ build/ROMID/game/player.o (section); \ build/ROMID/game/game_0c33f0.o (section); \ build/ROMID/game/bondcutscene.o (section); \ @@ -132,7 +134,7 @@ build/ROMID/game/mainmenu.o (section); \ build/ROMID/game/cheats.o (section); \ build/ROMID/game/filemgr.o (section); \ - build/ROMID/game/game_10c9c0.o (section); \ + build/ROMID/game/fmb.o (section); \ build/ROMID/game/endscreen.o (section); \ build/ROMID/game/gamefile.o (section); \ build/ROMID/game/bossfile.o (section); \ @@ -161,7 +163,7 @@ build/ROMID/game/modeldata/chr.o (section); \ build/ROMID/game/modeldata/skedar.o (section); \ build/ROMID/game/modeldata/robot.o (section); \ - build/ROMID/game/game_11f000.o (section); \ + build/ROMID/game/sky.o (section); \ build/ROMID/game/playermgr.o (section); \ build/ROMID/game/crc.o (section); \ build/ROMID/game/rng2.o (section); \ @@ -170,7 +172,7 @@ build/ROMID/game/smoke.o (section); \ build/ROMID/game/sparks.o (section); \ build/ROMID/game/weather.o (section); \ - build/ROMID/game/sky.o (section); \ + build/ROMID/game/stars.o (section); \ build/ROMID/game/credits.o (section); \ build/ROMID/game/game_13b670.o (section); \ build/ROMID/game/game_13c510.o (section); \ @@ -182,14 +184,14 @@ build/ROMID/game/options.o (section); \ build/ROMID/game/game_152fa0.o (section); \ build/ROMID/game/game_1531a0.o (section); \ - build/ROMID/game/game_1577f0.o (section); \ + build/ROMID/game/collisionutils.o (section); \ build/ROMID/game/bg.o (section); \ build/ROMID/game/bgbss.o (section); \ build/ROMID/game/game_165360.o (section); \ build/ROMID/game/stagetable.o (section); \ - build/ROMID/game/game_165670.o (section); \ + build/ROMID/game/gfxreplace.o (section); \ build/ROMID/game/env.o (section); \ - build/ROMID/game/game_1668e0.o (section); \ + build/ROMID/game/room.o (section); \ build/ROMID/game/file.o (section); \ build/ROMID/game/gfxmemory.o (section); \ build/ROMID/game/lv.o (section); \ @@ -198,9 +200,10 @@ build/ROMID/game/lang.o (section); \ build/ROMID/game/texdecompress.o (section); \ build/ROMID/game/texreset.o (section); \ - build/ROMID/game/game_173a00.o (section); \ + build/ROMID/game/surface.o (section); \ build/ROMID/game/stubs/game_175f50.o (section); \ build/ROMID/game/game_175f90.o (section); \ + build/ROMID/game/buildtime.o (section); \ build/ROMID/game/stubs/game_176000.o (section); \ build/ROMID/game/game_176080.o (section); \ build/ROMID/game/stagemusic.o (section); \ @@ -216,8 +219,9 @@ build/ROMID/game/botact.o (section); \ build/ROMID/game/mplayer/mpaicommands.o (section); \ build/ROMID/game/vmstats.o (section); \ - build/ROMID/game/game_19aa80.o (section); \ + build/ROMID/game/botroom.o (section); \ + build/ROMID/game/challenge.o (section); \ build/ROMID/game/training.o (section); \ build/ROMID/game/trainingmenus.o (section); \ - build/ROMID/game/game_1a7560.o (section); \ + build/ROMID/game/modeldef.o (section); \ build/ROMID/game/game_1a78b0.o (section); diff --git a/ld/libfiles.ntsc-beta.inc b/ld/libfiles.ntsc-beta.inc index a776f2f27..a33cfbd31 100644 --- a/ld/libfiles.ntsc-beta.inc +++ b/ld/libfiles.ntsc-beta.inc @@ -60,7 +60,7 @@ build/ROMID/lib/path.o (section); \ build/ROMID/lib/modelasm.o (section); \ build/ROMID/lib/model.o (section); \ - build/ROMID/game/game_1a7560.o (section); \ + build/ROMID/game/modeldef.o (section); \ build/ROMID/lib/anim.o (section); \ build/ROMID/lib/collision.o (section); \ build/ROMID/lib/lib_2f490.o (section); \ diff --git a/src/game/activemenu.c b/src/game/activemenu.c index efd6368ee..c27e8854e 100644 --- a/src/game/activemenu.c +++ b/src/game/activemenu.c @@ -4,7 +4,7 @@ #include "game/game_006900.h" #include "game/bondgun.h" #include "game/game_0b0fd0.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/savebuffer.h" #include "game/menu.h" #include "game/inv.h" @@ -2841,7 +2841,7 @@ glabel amRender /* f1017b8: 27a40148 */ addiu $a0,$sp,0x148 /* f1017bc: 00002825 */ move $a1,$zero /* f1017c0: 24060002 */ li $a2,0x2 -/* f1017c4: 0fc2d290 */ jal func0f0b39c0 +/* f1017c4: 0fc2d290 */ jal tex0f0b39c0 /* f1017c8: 00003825 */ move $a3,$zero /* f1017cc: 8fac0148 */ lw $t4,0x148($sp) /* f1017d0: 3c0eb900 */ lui $t6,0xb900 @@ -3750,7 +3750,7 @@ glabel amRender /* f1014d4: 27a401d8 */ addiu $a0,$sp,0x1d8 /* f1014d8: 00002825 */ move $a1,$zero /* f1014dc: 24060002 */ li $a2,0x2 -/* f1014e0: 0fc2cfb8 */ jal func0f0b39c0 +/* f1014e0: 0fc2cfb8 */ jal tex0f0b39c0 /* f1014e4: 00003825 */ move $a3,$zero /* f1014e8: 8faf01d8 */ lw $t7,0x1d8($sp) /* f1014ec: 3c19b900 */ lui $t9,0xb900 @@ -5329,7 +5329,7 @@ glabel amRender /* f1012f4: 27a401d8 */ addiu $a0,$sp,0x1d8 /* f1012f8: 00002825 */ move $a1,$zero /* f1012fc: 24060002 */ li $a2,0x2 -/* f101300: 0fc2cf74 */ jal func0f0b39c0 +/* f101300: 0fc2cf74 */ jal tex0f0b39c0 /* f101304: 00003825 */ move $a3,$zero /* f101308: 8faf01d8 */ lw $t7,0x1d8($sp) /* f10130c: 3c19b900 */ lui $t9,0xb900 @@ -6918,7 +6918,7 @@ glabel amRender /* f100d74: 27a401d8 */ addiu $a0,$sp,0x1d8 /* f100d78: 00002825 */ or $a1,$zero,$zero /* f100d7c: 24060002 */ addiu $a2,$zero,0x2 -/* f100d80: 0fc2ce70 */ jal func0f0b39c0 +/* f100d80: 0fc2ce70 */ jal tex0f0b39c0 /* f100d84: 00003825 */ or $a3,$zero,$zero /* f100d88: 8fb901d8 */ lw $t9,0x1d8($sp) /* f100d8c: 3c0fb900 */ lui $t7,0xb900 @@ -8507,7 +8507,7 @@ glabel amRender /* f0fced8: 27a401b0 */ addiu $a0,$sp,0x1b0 /* f0fcedc: 00002825 */ or $a1,$zero,$zero /* f0fcee0: 24060002 */ addiu $a2,$zero,0x2 -/* f0fcee4: 0fc2c5c8 */ jal func0f0b39c0 +/* f0fcee4: 0fc2c5c8 */ jal tex0f0b39c0 /* f0fcee8: 00003825 */ or $a3,$zero,$zero /* f0fceec: 8fb901b0 */ lw $t9,0x1b0($sp) /* f0fcef0: 3c0fb900 */ lui $t7,0xb900 @@ -9806,7 +9806,7 @@ glabel amRender // gDPSetCombineMode(gdl++, G_CC_MODULATEI, G_CC_MODULATEI); // gSPClearGeometryMode(gdl++, G_CULL_BOTH); // -// func0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); +// tex0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); // // gDPSetRenderMode(gdl++, G_RM_XLU_SURF, G_RM_XLU_SURF2); // diff --git a/src/game/activemenutick.c b/src/game/activemenutick.c index 86834f1ac..cfd807e78 100644 --- a/src/game/activemenutick.c +++ b/src/game/activemenutick.c @@ -1,7 +1,7 @@ #include #include "constants.h" #include "game/activemenu.h" -#include "game/game_01b0a0.h" +#include "game/pdmode.h" #include "game/bondgun.h" #include "game/game_0b0fd0.h" #include "game/inv.h" diff --git a/src/game/bg.c b/src/game/bg.c index 312b17c81..84cee2e58 100644 --- a/src/game/bg.c +++ b/src/game/bg.c @@ -3,29 +3,30 @@ #include "game/debug.h" #include "game/dlights.h" #include "game/game_006900.h" -#include "game/game_013550.h" -#include "game/game_013ee0.h" +#include "game/room.h" #include "game/chr.h" #include "game/prop.h" #include "game/ceil.h" #include "game/bondgun.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/player.h" -#include "game/game_11f000.h" #include "game/sky.h" +#include "game/stars.h" #include "game/game_13b670.h" #include "game/game_13c510.h" #include "game/game_1531a0.h" +#include "game/gfxmemory.h" +#include "game/gfxreplace.h" #include "game/bg.h" #include "game/game_165360.h" #include "game/stagetable.h" #include "game/env.h" -#include "game/game_1668e0.h" +#include "game/room.h" #include "game/file.h" #include "game/lv.h" #include "game/texdecompress.h" -#include "game/game_173a00.h" +#include "game/surface.h" #include "game/wallhit.h" #include "bss.h" #include "lib/rzip.h" @@ -2424,7 +2425,7 @@ Gfx *bgRenderRoomInXray(Gfx *gdl, s32 roomnum) return gdl; } - func0f166df0(roomnum, &globaldrawworldoffset); + room0f166df0(roomnum, &globaldrawworldoffset); sp54.x = player->eraserpos.x - globaldrawworldoffset.x; sp54.y = player->eraserpos.y - globaldrawworldoffset.y; @@ -2434,7 +2435,7 @@ Gfx *bgRenderRoomInXray(Gfx *gdl, s32 roomnum) sp40[1] = sp54.f[1]; sp40[2] = sp54.f[2]; - gdl = func0f166d7c(gdl, roomnum); + gdl = room0f166d7c(gdl, roomnum); gdl = func0f159f1c(gdl, roomnum, g_Rooms[roomnum].gfxdata->unk08, 1, sp40); gdl = func0f159f1c(gdl, roomnum, g_Rooms[roomnum].gfxdata->unk0c, 1, sp40); @@ -2484,9 +2485,9 @@ Gfx *bgRenderSceneInXray(Gfx *gdl) gDPSetTextureFilter(gdl++, G_TF_BILERP); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetRenderMode(gdl++, G_RM_AA_XLU_SURF, G_RM_AA_XLU_SURF2); - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); - func0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); gDPSetRenderMode(gdl++, G_RM_AA_XLU_SURF, G_RM_AA_XLU_SURF2); @@ -2506,7 +2507,7 @@ Gfx *bgRenderSceneInXray(Gfx *gdl) // Render props gdl = currentPlayerScissorToViewport(gdl); - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); if (var800a4ce4); \ if (var8007fc2c); \ @@ -2515,11 +2516,11 @@ Gfx *bgRenderSceneInXray(Gfx *gdl) struct var800a4640_00 *thing = &var800a4640.unk000[k]; if (thing->draworder == i) { - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); gdl = currentPlayerScissorWithinViewportF(gdl, thing->box.xmin, thing->box.ymin, thing->box.xmax, thing->box.ymax); - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); if (debugIsPropRenderingEnabled() && getVar80084040()) { if (thing->roomnum == -1) { @@ -2534,7 +2535,7 @@ Gfx *bgRenderSceneInXray(Gfx *gdl) } } - gdl = func0f125a6c(gdl, 1); + gdl = sky0f125a6c(gdl, 1); return gdl; } @@ -2639,11 +2640,11 @@ Gfx *bgRenderScene(Gfx *gdl) || stagenum == STAGE_ATTACKSHIP)) { gdl = func0f153628(gdl); - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); gdl = playerLoadMatrix(gdl); gdl = envStopFog(gdl); - gdl = func0f13687c(gdl); + gdl = starsRender(gdl); gdl = func0f153780(gdl); gdl = vi0000ab78(gdl); } @@ -2659,7 +2660,7 @@ Gfx *bgRenderScene(Gfx *gdl) gSPPerspNormalize(gdl++, viGetPerspScale()); } - gdl = func0f125a6c(gdl, 0); + gdl = sky0f125a6c(gdl, 0); // Build an array of room numbers per onscreen prop. // For each onscreen prop there is exactly one entry in the roomnumsbyprop array. @@ -2696,7 +2697,7 @@ Gfx *bgRenderScene(Gfx *gdl) thing = &var800a4640.unk000[roomnum]; // Render prop opaque components - pre BG pass - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); gdl = envStopFog(gdl); if (debugIsPropRenderingEnabled() && getVar80084040()) { @@ -2708,7 +2709,7 @@ Gfx *bgRenderScene(Gfx *gdl) } // Render BG opaque components - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); gdl = currentPlayerScissorWithinViewportF(gdl, thing->box.xmin, thing->box.ymin, thing->box.xmax, thing->box.ymax); gdl = envStartFog(gdl, false); @@ -2720,7 +2721,7 @@ Gfx *bgRenderScene(Gfx *gdl) } // Render prop opaque components - post BG pass - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); gdl = envStopFog(gdl); @@ -2737,7 +2738,7 @@ Gfx *bgRenderScene(Gfx *gdl) gdl = currentPlayerScissorToViewport(gdl); // Render wall hits - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); if (getVar80084040() && g_Vars.currentplayer->visionmode != VISIONMODE_XRAY) { for (i = 0; i < var8007fc2c; i++) { @@ -2756,7 +2757,7 @@ Gfx *bgRenderScene(Gfx *gdl) for (i = var8007fc2c - 1; i >= 0; i--) { roomnum = roomnums[i]; - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); thing = &var800a4640.unk000[roomnum]; @@ -2768,7 +2769,7 @@ Gfx *bgRenderScene(Gfx *gdl) gdl = bgRenderRoomAlpha(gdl, thing->roomnum); } - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); gdl = envStopFog(gdl); @@ -3074,7 +3075,7 @@ glabel bgRenderScene /* f155128: 35ef0040 */ ori $t7,$t7,0x40 /* f15512c: ac4f0000 */ sw $t7,0x0($v0) /* f155130: 00408025 */ or $s0,$v0,$zero -/* f155134: 0fc2cb5a */ jal currentPlayerGetUnk1758 +/* f155134: 0fc2cb5a */ jal camGetUnk1758 /* f155138: 24510008 */ addiu $s1,$v0,0x8 /* f15513c: 0c013100 */ jal osVirtualToPhysical /* f155140: 00402025 */ or $a0,$v0,$zero @@ -3083,7 +3084,7 @@ glabel bgRenderScene /* f15514c: 02202025 */ or $a0,$s1,$zero /* f155150: 0fc583b2 */ jal envStopFog /* f155154: 00402025 */ or $a0,$v0,$zero -/* f155158: 0fc4c503 */ jal func0f13687c +/* f155158: 0fc4c503 */ jal starsRender /* f15515c: 00402025 */ or $a0,$v0,$zero /* f155160: 0fc537a0 */ jal func0f153780 /* f155164: 00402025 */ or $a0,$v0,$zero @@ -3121,7 +3122,7 @@ glabel bgRenderScene .NB0f1551d4: /* f1551d4: 02202025 */ or $a0,$s1,$zero .NB0f1551d8: -/* f1551d8: 0fc481ab */ jal func0f125a6c +/* f1551d8: 0fc481ab */ jal sky0f125a6c /* f1551dc: 00002825 */ or $a1,$zero,$zero /* f1551e0: 3c05800a */ lui $a1,0x800a /* f1551e4: 3c0e800a */ lui $t6,0x800a @@ -3197,7 +3198,7 @@ glabel bgRenderScene /* f1552e0: 0018c080 */ sll $t8,$t8,0x2 /* f1552e4: 030b8021 */ addu $s0,$t8,$t3 /* f1552e8: afa20084 */ sw $v0,0x84($sp) -/* f1552ec: 0fc2cb52 */ jal currentPlayerGetUnk1750 +/* f1552ec: 0fc2cb52 */ jal camGetUnk1750 /* f1552f0: 26310008 */ addiu $s1,$s1,0x8 /* f1552f4: 0c013100 */ jal osVirtualToPhysical /* f1552f8: 00402025 */ or $a0,$v0,$zero @@ -3234,7 +3235,7 @@ glabel bgRenderScene /* f15536c: 02201025 */ or $v0,$s1,$zero /* f155370: ac4c0000 */ sw $t4,0x0($v0) /* f155374: afa20080 */ sw $v0,0x80($sp) -/* f155378: 0fc2cb5a */ jal currentPlayerGetUnk1758 +/* f155378: 0fc2cb5a */ jal camGetUnk1758 /* f15537c: 26310008 */ addiu $s1,$s1,0x8 /* f155380: 0c013100 */ jal osVirtualToPhysical /* f155384: 00402025 */ or $a0,$v0,$zero @@ -3284,7 +3285,7 @@ glabel bgRenderScene /* f15542c: 02201025 */ or $v0,$s1,$zero /* f155430: ac4c0000 */ sw $t4,0x0($v0) /* f155434: afa2007c */ sw $v0,0x7c($sp) -/* f155438: 0fc2cb52 */ jal currentPlayerGetUnk1750 +/* f155438: 0fc2cb52 */ jal camGetUnk1750 /* f15543c: 26310008 */ addiu $s1,$s1,0x8 /* f155440: 0c013100 */ jal osVirtualToPhysical /* f155444: 00402025 */ or $a0,$v0,$zero @@ -3332,7 +3333,7 @@ glabel bgRenderScene /* f1554e0: 35ef0040 */ ori $t7,$t7,0x40 /* f1554e4: ac4f0000 */ sw $t7,0x0($v0) /* f1554e8: 00408025 */ or $s0,$v0,$zero -/* f1554ec: 0fc2cb5a */ jal currentPlayerGetUnk1758 +/* f1554ec: 0fc2cb5a */ jal camGetUnk1758 /* f1554f0: 24510008 */ addiu $s1,$v0,0x8 /* f1554f4: 0c013100 */ jal osVirtualToPhysical /* f1554f8: 00402025 */ or $a0,$v0,$zero @@ -3385,7 +3386,7 @@ glabel bgRenderScene /* f1555a8: 02201025 */ or $v0,$s1,$zero /* f1555ac: ac580000 */ sw $t8,0x0($v0) /* f1555b0: afa20074 */ sw $v0,0x74($sp) -/* f1555b4: 0fc2cb5a */ jal currentPlayerGetUnk1758 +/* f1555b4: 0fc2cb5a */ jal camGetUnk1758 /* f1555b8: 26310008 */ addiu $s1,$s1,0x8 /* f1555bc: 0c013100 */ jal osVirtualToPhysical /* f1555c0: 00402025 */ or $a0,$v0,$zero @@ -3436,7 +3437,7 @@ glabel bgRenderScene /* f15566c: 02201025 */ or $v0,$s1,$zero /* f155670: ac4b0000 */ sw $t3,0x0($v0) /* f155674: afa20070 */ sw $v0,0x70($sp) -/* f155678: 0fc2cb52 */ jal currentPlayerGetUnk1750 +/* f155678: 0fc2cb52 */ jal camGetUnk1750 /* f15567c: 26310008 */ addiu $s1,$s1,0x8 /* f155680: 0c013100 */ jal osVirtualToPhysical /* f155684: 00402025 */ or $a0,$v0,$zero @@ -3524,7 +3525,7 @@ Gfx *func0f15b114(Gfx *gdl) gdl = func0f13d54c(gdl); } - return func0f12715c(gdl); + return sky0f12715c(gdl); } void bgLoadFile(void *memaddr, u32 offset, u32 len) @@ -4842,7 +4843,7 @@ glabel var7f1b75d0 /* f15c170: e4460010 */ swc1 $f6,0x10($v0) /* f15c174: 0000a025 */ or $s4,$zero,$zero .L0f15c178: -/* f15c178: 0fc2d96a */ jal func0f0b65a8 +/* f15c178: 0fc2d96a */ jal portal0f0b65a8 /* f15c17c: 03c02025 */ or $a0,$s8,$zero /* f15c180: 3c1e800a */ lui $s8,%hi(g_BgPortalCommands) /* f15c184: 27de4cd4 */ addiu $s8,$s8,%lo(g_BgPortalCommands) @@ -4918,7 +4919,7 @@ glabel var7f1b75d0 /* f15c28c: 5420ffe4 */ bnezl $at,.L0f15c220 /* f15c290: 8eae0000 */ lw $t6,0x0($s5) .L0f15c294: -/* f15c294: 0fc04fb8 */ jal func0f013ee0 +/* f15c294: 0fc04fb8 */ jal roomsReset /* f15c298: 00000000 */ nop /* f15c29c: 44808000 */ mtc1 $zero,$f16 /* f15c2a0: 8eaf0000 */ lw $t7,0x0($s5) @@ -5289,7 +5290,7 @@ glabel var7f1b75d0 /* f15c7fc: 8fa40148 */ lw $a0,0x148($sp) /* f15c800: 241900c8 */ addiu $t9,$zero,0xc8 /* f15c804: 3c018008 */ lui $at,%hi(var8007fc10) -/* f15c808: 0fc04d54 */ jal func0f013550 +/* f15c808: 0fc04d54 */ jal wallhitReset /* f15c80c: a439fc10 */ sh $t9,%lo(var8007fc10)($at) /* f15c810: 0fc00aa6 */ jal func0f002a98 /* f15c814: 00000000 */ nop @@ -5906,7 +5907,7 @@ glabel var7f1b75d0 /* f15bf34: e4460010 */ swc1 $f6,0x10($v0) /* f15bf38: 0000a025 */ or $s4,$zero,$zero .L0f15bf3c: -/* f15bf3c: 0fc2d96a */ jal func0f0b65a8 +/* f15bf3c: 0fc2d96a */ jal portal0f0b65a8 /* f15bf40: 03c02025 */ or $a0,$s8,$zero /* f15bf44: 3c1e800a */ lui $s8,%hi(g_BgPortalCommands) /* f15bf48: 27de4cd4 */ addiu $s8,$s8,%lo(g_BgPortalCommands) @@ -5982,7 +5983,7 @@ glabel var7f1b75d0 /* f15c050: 5420ffe4 */ bnezl $at,.L0f15bfe4 /* f15c054: 8eae0000 */ lw $t6,0x0($s5) .L0f15c058: -/* f15c058: 0fc04fb8 */ jal func0f013ee0 +/* f15c058: 0fc04fb8 */ jal roomsReset /* f15c05c: 00000000 */ nop /* f15c060: 44808000 */ mtc1 $zero,$f16 /* f15c064: 8eaf0000 */ lw $t7,0x0($s5) @@ -6351,7 +6352,7 @@ glabel var7f1b75d0 /* f15c5b8: 8fa40148 */ lw $a0,0x148($sp) /* f15c5bc: 241900c8 */ addiu $t9,$zero,0xc8 /* f15c5c0: 3c018008 */ lui $at,%hi(var8007fc10) -/* f15c5c4: 0fc04d54 */ jal func0f013550 +/* f15c5c4: 0fc04d54 */ jal wallhitReset /* f15c5c8: a439fc10 */ sh $t9,%lo(var8007fc10)($at) /* f15c5cc: 0fc00aa6 */ jal func0f002a98 /* f15c5d0: 00000000 */ nop @@ -6968,7 +6969,7 @@ glabel var7f1b75d0 /* f1568c8: e4460010 */ swc1 $f6,0x10($v0) /* f1568cc: 0000a025 */ or $s4,$zero,$zero .NB0f1568d0: -/* f1568d0: 0fc2d0c2 */ jal func0f0b65a8 +/* f1568d0: 0fc2d0c2 */ jal portal0f0b65a8 /* f1568d4: 03c02025 */ or $a0,$s8,$zero /* f1568d8: 3c1e800b */ lui $s8,0x800b /* f1568dc: 27de9454 */ addiu $s8,$s8,-27564 @@ -7044,7 +7045,7 @@ glabel var7f1b75d0 /* f1569e4: 5420ffe4 */ bnezl $at,.NB0f156978 /* f1569e8: 8eae0000 */ lw $t6,0x0($s5) .NB0f1569ec: -/* f1569ec: 0fc04f00 */ jal func0f013ee0 +/* f1569ec: 0fc04f00 */ jal roomsReset /* f1569f0: 00000000 */ sll $zero,$zero,0x0 /* f1569f4: 44808000 */ mtc1 $zero,$f16 /* f1569f8: 8eaf0000 */ lw $t7,0x0($s5) @@ -7413,7 +7414,7 @@ glabel var7f1b75d0 /* f156f4c: 8fa40148 */ lw $a0,0x148($sp) /* f156f50: 241900c8 */ addiu $t9,$zero,0xc8 /* f156f54: 3c018008 */ lui $at,0x8008 -/* f156f58: 0fc04c9c */ jal func0f013550 +/* f156f58: 0fc04c9c */ jal wallhitReset /* f156f5c: a4392474 */ sh $t9,0x2474($at) /* f156f60: 0fc00acc */ jal func0f002a98 /* f156f64: 00000000 */ sll $zero,$zero,0x0 @@ -7700,7 +7701,7 @@ glabel var7f1b75d0 // } // // // 174 -// func0f0b65a8(numportals); +// portal0f0b65a8(numportals); // // // 1a0 // if (g_BgPortalCommands != NULL) { @@ -7724,7 +7725,7 @@ glabel var7f1b75d0 // } // // // 294 -// func0f013ee0(); +// roomsReset(); // // g_Rooms[0].bbmin[0] = 0; // g_Rooms[0].bbmin[1] = 0; @@ -7847,7 +7848,7 @@ glabel var7f1b75d0 // // var8007fc10 = 200; // -// func0f013550(); +// wallhitReset(); // func0f002a98(); // func0f001c0c(); //} @@ -8126,14 +8127,14 @@ bool func0f15cd90(u32 room, struct screenbox *screen) bool func0f15d08c(struct coord *a, struct coord *b) { - Mtxf *matrix = currentPlayerGetMatrix1740(); + Mtxf *matrix = camGetMatrix1740(); b->x = a->x; b->y = a->y; b->z = a->z; mtx4TransformVecInPlace(matrix, b); - func0f0b4d68(b, b->f); + cam0f0b4d68(b, b->f); if (b->z > 0) { return false; @@ -8202,7 +8203,7 @@ glabel func0f15d10c /* f15d1e0: 25290001 */ addiu $t1,$t1,0x1 /* f15d1e4: afa302f4 */ sw $v1,0x2f4($sp) /* f15d1e8: afa902f8 */ sw $t1,0x2f8($sp) -/* f15d1ec: 0fc2d35a */ jal func0f0b4d68 +/* f15d1ec: 0fc2d35a */ jal cam0f0b4d68 /* f15d1f0: afab02ec */ sw $t3,0x2ec($sp) /* f15d1f4: 8fab02ec */ lw $t3,0x2ec($sp) /* f15d1f8: 44807000 */ mtc1 $zero,$f14 @@ -9084,7 +9085,7 @@ glabel roomLoad /* f15e148: 02988021 */ addu $s0,$s4,$t8 /* f15e14c: 00441823 */ subu $v1,$v0,$a0 /* f15e150: 02032823 */ subu $a1,$s0,$v1 -/* f15e154: 0fc5d7bd */ jal func0f175ef4 +/* f15e154: 0fc5d7bd */ jal surface0f175ef4 /* f15e158: 00603025 */ or $a2,$v1,$zero /* f15e15c: 26420001 */ addiu $v0,$s2,0x1 /* f15e160: 1840000d */ blez $v0,.L0f15e198 @@ -9119,7 +9120,7 @@ glabel roomLoad /* f15e1c8: afa30038 */ sw $v1,0x38($sp) /* f15e1cc: 00003825 */ or $a3,$zero,$zero /* f15e1d0: 01ae2823 */ subu $a1,$t5,$t6 -/* f15e1d4: 0fc5d5b0 */ jal func0f1756c0 +/* f15e1d4: 0fc5d5b0 */ jal surface0f1756c0 /* f15e1d8: afb80010 */ sw $t8,0x10($sp) /* f15e1dc: 8fa602dc */ lw $a2,0x2dc($sp) /* f15e1e0: 8fa90040 */ lw $t1,0x40($sp) @@ -9657,7 +9658,7 @@ glabel roomLoad /* f158904: 02788021 */ addu $s0,$s3,$t8 /* f158908: 00441823 */ subu $v1,$v0,$a0 /* f15890c: 02032823 */ subu $a1,$s0,$v1 -/* f158910: 0fc5c2e5 */ jal func0f175ef4 +/* f158910: 0fc5c2e5 */ jal surface0f175ef4 /* f158914: 00603025 */ or $a2,$v1,$zero /* f158918: 26220001 */ addiu $v0,$s1,0x1 /* f15891c: 1840000d */ blez $v0,.NB0f158954 @@ -9693,7 +9694,7 @@ glabel roomLoad /* f158988: afa602dc */ sw $a2,0x2dc($sp) /* f15898c: afa30034 */ sw $v1,0x34($sp) /* f158990: 00003825 */ or $a3,$zero,$zero -/* f158994: 0fc5c0d8 */ jal func0f1756c0 +/* f158994: 0fc5c0d8 */ jal surface0f1756c0 /* f158998: afb80010 */ sw $t8,0x10($sp) /* f15899c: 8fa602dc */ lw $a2,0x2dc($sp) /* f1589a0: 8fa9003c */ lw $t1,0x3c($sp) @@ -10044,7 +10045,7 @@ const char var7f1b1a60nb[] = "bg.c"; // sp208[len] = (s32)allocation + inflatedlen; // allocationend = (s32)allocation + size; // -// func0f175ef4(sp208[0], allocationend - (sp208[len] - sp208[0]), sp208[len] - sp208[0]); +// surface0f175ef4(sp208[0], allocationend - (sp208[len] - sp208[0]), sp208[len] - sp208[0]); // // for (i = 0; i < len + 1; i++) { // sp78[i] = sp208[i] + (allocationend - sp208[len]); @@ -10053,7 +10054,7 @@ const char var7f1b1a60nb[] = "bg.c"; // a2 = sp208[0]; // // for (i = 0; i < len; i++) { -// v0 = func0f1756c0(sp78[i], sp208[i + 1] - sp208[i], a2, 0, sp140[i]); +// v0 = surface0f1756c0(sp78[i], sp208[i + 1] - sp208[i], a2, 0, sp140[i]); // sp78[i] = a2; // a2 += v0; // a2 = ALIGN8(a2); @@ -10479,7 +10480,7 @@ Gfx *bgRenderRoomOpaque(Gfx *gdl, s32 roomnum) return gdl; } - gdl = func0f166d7c(gdl, roomnum); + gdl = room0f166d7c(gdl, roomnum); gdl = func0f001138(gdl, roomnum); gdl = func0f15e85c(gdl, roomnum, g_Rooms[roomnum].gfxdata->unk08, true); gdl = func0f001300(gdl); @@ -10531,7 +10532,7 @@ glabel bgRenderRoomAlpha /* f15ec5c: 8fa50024 */ lw $a1,0x24($sp) /* f15ec60: 8fa40020 */ lw $a0,0x20($sp) /* f15ec64: afa30018 */ sw $v1,0x18($sp) -/* f15ec68: 0fc59b5f */ jal func0f166d7c +/* f15ec68: 0fc59b5f */ jal room0f166d7c /* f15ec6c: afa50024 */ sw $a1,0x24($sp) /* f15ec70: 3c0b800a */ lui $t3,%hi(g_Rooms) /* f15ec74: 8fa30018 */ lw $v1,0x18($sp) @@ -10584,7 +10585,7 @@ glabel bgRenderRoomAlpha // // empty // } // -// gdl = func0f166d7c(gdl, roomnum); +// gdl = room0f166d7c(gdl, roomnum); // gdl = func0f15e85c(gdl, roomnum, g_Rooms[roomnum].gfxdata->unk0c, 1); // // g_Rooms[roomnum].loaded240 = 1; @@ -15336,7 +15337,7 @@ glabel func0f162d9c /* f162e60: 8ecd17a4 */ lw $t5,0x17a4($s6) /* f162e64: 55a0000a */ bnezl $t5,.L0f162e90 /* f162e68: 3c01c3fa */ lui $at,0xc3fa -/* f162e6c: 0fc2d5ee */ jal currentPlayerGetLodScaleZ +/* f162e6c: 0fc2d5ee */ jal camGetLodScaleZ /* f162e70: 00000000 */ nop /* f162e74: 3c01c3fa */ lui $at,0xc3fa /* f162e78: 44814000 */ mtc1 $at,$f8 @@ -15355,7 +15356,7 @@ glabel func0f162d9c /* f162ea4: e7a00094 */ swc1 $f0,0x94($sp) /* f162ea8: e7a00098 */ swc1 $f0,0x98($sp) /* f162eac: c6d2002c */ lwc1 $f18,0x2c($s6) -/* f162eb0: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f162eb0: 0fc2d5de */ jal camGetUnk174c /* f162eb4: e7b2009c */ swc1 $f18,0x9c($sp) /* f162eb8: 00402025 */ or $a0,$v0,$zero /* f162ebc: 0c0056d9 */ jal mtx4TransformVecInPlace diff --git a/src/game/game_02cde0.c b/src/game/body.c similarity index 97% rename from src/game/game_02cde0.c rename to src/game/body.c index f38245d32..3fb6beb28 100644 --- a/src/game/game_02cde0.c +++ b/src/game/body.c @@ -3,12 +3,12 @@ #include "game/cheats.h" #include "game/chraction.h" #include "game/chr.h" -#include "game/game_02cde0.h" +#include "game/body.h" #include "game/prop.h" #include "game/atan2f.h" #include "game/game_0b28d0.h" #include "game/lv.h" -#include "game/game_1a7560.h" +#include "game/modeldef.h" #include "game/mplayer/mplayer.h" #include "game/pad.h" #include "game/propobj.h" @@ -166,7 +166,7 @@ bool bodyLoad(s32 bodynum) } GLOBAL_ASM( -glabel func0f02ce8c +glabel body0f02ce8c .late_rodata glabel var7f1a8a70 .word 0x3dccccce @@ -505,7 +505,7 @@ glabel var7f1a8a84 // bodyfiledata instead of headfiledata, but the extra reference to bodyfiledata // causes bodyfiledata to be promoted from t registers to a registers, which // causes significant codegen changes. -//struct model *func0f02ce8c(s32 bodynum, s32 headnum, struct modelfiledata *bodyfiledata, struct modelfiledata *headfiledata, bool sunglasses, struct model *model, bool isplayer, u8 varyheight) +//struct model *body0f02ce8c(s32 bodynum, s32 headnum, struct modelfiledata *bodyfiledata, struct modelfiledata *headfiledata, bool sunglasses, struct model *model, bool isplayer, u8 varyheight) //{ // f32 scale = g_HeadsAndBodies[bodynum].scale * 0.1f; // f32 animscale = g_HeadsAndBodies[bodynum].animscale; @@ -626,12 +626,12 @@ glabel var7f1a8a84 // return model; //} -struct model *func0f02d338(s32 bodynum, s32 headnum, struct modelfiledata *bodyfiledata, struct modelfiledata *headfiledata, bool sunglasses, u8 varyheight) +struct model *body0f02d338(s32 bodynum, s32 headnum, struct modelfiledata *bodyfiledata, struct modelfiledata *headfiledata, bool sunglasses, u8 varyheight) { - return func0f02ce8c(bodynum, headnum, bodyfiledata, headfiledata, sunglasses, NULL, false, varyheight); + return body0f02ce8c(bodynum, headnum, bodyfiledata, headfiledata, sunglasses, NULL, false, varyheight); } -struct model *modelAllocateChr(s32 bodynum, s32 headnum, u32 spawnflags) +struct model *bodyAllocateModel(s32 bodynum, s32 headnum, u32 spawnflags) { bool sunglasses = false; u8 varyheight = true; @@ -646,10 +646,10 @@ struct model *modelAllocateChr(s32 bodynum, s32 headnum, u32 spawnflags) varyheight = false; } - return func0f02d338(bodynum, headnum, NULL, NULL, sunglasses, varyheight); + return body0f02d338(bodynum, headnum, NULL, NULL, sunglasses, varyheight); } -s32 func0f02d3f8(void) +s32 body0f02d3f8(void) { return g_BondBodies[var80062c80]; } @@ -683,7 +683,7 @@ s32 bodyChooseHead(s32 bodynum) * Chr definitions are stored in a packed format in each stage's setup file. * The packed format is used for space saving reasons. */ -void chrUnpack(s32 stagenum, struct packedchr *packed, s32 cmdindex) +void bodyAllocateChr(s32 stagenum, struct packedchr *packed, s32 cmdindex) { struct pad pad; s16 rooms[2]; @@ -725,7 +725,7 @@ void chrUnpack(s32 stagenum, struct packedchr *packed, s32 cmdindex) headfiledata = NULL; if (packed->bodynum == 255) { - bodynum = func0f02d3f8(); + bodynum = body0f02d3f8(); } else { bodynum = packed->bodynum; } @@ -745,9 +745,9 @@ void chrUnpack(s32 stagenum, struct packedchr *packed, s32 cmdindex) headfiledata = func0f18e57c(index, &headnum); } - model = func0f02ce8c(bodynum, headnum, NULL, headfiledata, false, NULL, false, false); + model = body0f02ce8c(bodynum, headnum, NULL, headfiledata, false, NULL, false, false); } else { - model = modelAllocateChr(bodynum, headnum, packed->spawnflags); + model = bodyAllocateModel(bodynum, headnum, packed->spawnflags); } if (model != NULL) { @@ -871,7 +871,7 @@ void chrUnpack(s32 stagenum, struct packedchr *packed, s32 cmdindex) } } -struct prop *propAllocateEyespy(struct pad *pad, s16 room) +struct prop *bodyAllocateEyespy(struct pad *pad, s16 room) { s16 rooms[2]; struct prop *prop; @@ -909,7 +909,7 @@ struct prop *propAllocateEyespy(struct pad *pad, s16 room) } #endif - model = modelAllocateChr(BODY_EYESPY, 0, 0); + model = bodyAllocateModel(BODY_EYESPY, 0, 0); if (model) { prop = chrAllocate(model, &pad->pos, rooms, 0, ailistFindById(GAILIST_IDLE)); @@ -961,7 +961,7 @@ struct prop *propAllocateEyespy(struct pad *pad, s16 room) return NULL; } -void func0f02ddbf(void) +void body0f02ddbf(void) { // empty } diff --git a/src/game/bodyinit.c b/src/game/bodyinit.c new file mode 100644 index 000000000..ee74fdf8d --- /dev/null +++ b/src/game/bodyinit.c @@ -0,0 +1,41 @@ +#include +#include "constants.h" +#include "game/body.h" +#include "game/floor.h" +#include "bss.h" +#include "lib/anim.h" +#include "data.h" +#include "types.h" + +void bodiesInit(void) +{ + g_NumBondBodies = 0; + + while (g_BondBodies[g_NumBondBodies] >= 0) { + g_NumBondBodies++; + } + + g_NumMaleGuardTeamHeads = 0; + + while (g_MaleGuardTeamHeads[g_NumMaleGuardTeamHeads] >= 0) { + g_NumMaleGuardTeamHeads++; + } + + g_NumFemaleGuardTeamHeads = 0; + + while (g_FemaleGuardTeamHeads[g_NumFemaleGuardTeamHeads] >= 0) { + g_NumFemaleGuardTeamHeads++; + } + + g_NumMaleGuardHeads = 0; + + while (g_MaleGuardHeads[g_NumMaleGuardHeads] >= 0) { + g_NumMaleGuardHeads++; + } + + g_NumFemaleGuardHeads = 0; + + while (g_FemaleGuardHeads[g_NumFemaleGuardHeads] >= 0) { + g_NumFemaleGuardHeads++; + } +} diff --git a/src/game/bodyreset.c b/src/game/bodyreset.c new file mode 100644 index 000000000..002fdc61f --- /dev/null +++ b/src/game/bodyreset.c @@ -0,0 +1,358 @@ +#include +#include "constants.h" +#include "game/body.h" +#include "game/cheats.h" +#include "game/chrai.h" +#include "game/game_00b820.h" +#include "game/playerreset.h" +#include "game/setuputils.h" +#include "bss.h" +#include "lib/memp.h" +#include "lib/rng.h" +#include "data.h" +#include "types.h" + +struct stageheadlimit g_StageHeadLimits[3] = { + { STAGE_INFILTRATION, 5 }, + { STAGE_RESCUE, 4 }, + { STAGE_ESCAPE, 5 }, +}; + +u32 var80061708 = 0x00000000; +u32 var8006170c = 0x00000000; + +GLOBAL_ASM( +glabel bodiesReset +/* f00b820: 27bdffd0 */ addiu $sp,$sp,-48 +/* f00b824: 3c0e8008 */ lui $t6,%hi(g_HeadsAndBodies+0x2) +/* f00b828: 95cecf06 */ lhu $t6,%lo(g_HeadsAndBodies+0x2)($t6) +/* f00b82c: afb10018 */ sw $s1,0x18($sp) +/* f00b830: afb00014 */ sw $s0,0x14($sp) +/* f00b834: 00808025 */ or $s0,$a0,$zero +/* f00b838: afbf002c */ sw $ra,0x2c($sp) +/* f00b83c: afb50028 */ sw $s5,0x28($sp) +/* f00b840: afb40024 */ sw $s4,0x24($sp) +/* f00b844: afb30020 */ sw $s3,0x20($sp) +/* f00b848: afb2001c */ sw $s2,0x1c($sp) +/* f00b84c: 11c00009 */ beqz $t6,.L0f00b874 +/* f00b850: 00008825 */ or $s1,$zero,$zero +/* f00b854: 3c028008 */ lui $v0,%hi(g_HeadsAndBodies) +/* f00b858: 2442cf04 */ addiu $v0,$v0,%lo(g_HeadsAndBodies) +/* f00b85c: 944f0016 */ lhu $t7,0x16($v0) +.L0f00b860: +/* f00b860: 24420014 */ addiu $v0,$v0,0x14 +/* f00b864: ac40fff8 */ sw $zero,-0x8($v0) +/* f00b868: 55e0fffd */ bnezl $t7,.L0f00b860 +/* f00b86c: 944f0016 */ lhu $t7,0x16($v0) +/* f00b870: 00008825 */ or $s1,$zero,$zero +.L0f00b874: +/* f00b874: 0c004b70 */ jal random +/* f00b878: 00000000 */ nop +/* f00b87c: 3c188006 */ lui $t8,%hi(g_NumBondBodies) +/* f00b880: 8f182b00 */ lw $t8,%lo(g_NumBondBodies)($t8) +/* f00b884: 3c018006 */ lui $at,%hi(var80062c80) +/* f00b888: 3c128006 */ lui $s2,%hi(var80062b14) +/* f00b88c: 0058001b */ divu $zero,$v0,$t8 +/* f00b890: 0000c810 */ mfhi $t9 +/* f00b894: ac392c80 */ sw $t9,%lo(var80062c80)($at) +/* f00b898: 26522b14 */ addiu $s2,$s2,%lo(var80062b14) +/* f00b89c: 3c06800a */ lui $a2,%hi(g_Vars) +/* f00b8a0: ae400000 */ sw $zero,0x0($s2) +/* f00b8a4: 3c018006 */ lui $at,%hi(var80062b18) +/* f00b8a8: 24c69fc0 */ addiu $a2,$a2,%lo(g_Vars) +/* f00b8ac: ac202b18 */ sw $zero,%lo(var80062b18)($at) +/* f00b8b0: 8cc8006c */ lw $t0,0x6c($a2) +/* f00b8b4: 17000002 */ bnez $t8,.L0f00b8c0 +/* f00b8b8: 00000000 */ nop +/* f00b8bc: 0007000d */ break 0x7 +.L0f00b8c0: +/* f00b8c0: 00002825 */ or $a1,$zero,$zero +/* f00b8c4: 11000003 */ beqz $t0,.L0f00b8d4 +/* f00b8c8: 00001825 */ or $v1,$zero,$zero +/* f00b8cc: 10000001 */ b .L0f00b8d4 +/* f00b8d0: 24050001 */ addiu $a1,$zero,0x1 +.L0f00b8d4: +/* f00b8d4: 8cc90068 */ lw $t1,0x68($a2) +/* f00b8d8: 00002025 */ or $a0,$zero,$zero +/* f00b8dc: 00001025 */ or $v0,$zero,$zero +/* f00b8e0: 11200003 */ beqz $t1,.L0f00b8f0 +/* f00b8e4: 00000000 */ nop +/* f00b8e8: 10000001 */ b .L0f00b8f0 +/* f00b8ec: 24030001 */ addiu $v1,$zero,0x1 +.L0f00b8f0: +/* f00b8f0: 8cca0064 */ lw $t2,0x64($a2) +/* f00b8f4: 3c15800a */ lui $s5,%hi(g_NumActiveHeadsPerGender) +/* f00b8f8: 26b5cd20 */ addiu $s5,$s5,%lo(g_NumActiveHeadsPerGender) +/* f00b8fc: 11400003 */ beqz $t2,.L0f00b90c +/* f00b900: 24180008 */ addiu $t8,$zero,0x8 +/* f00b904: 10000001 */ b .L0f00b90c +/* f00b908: 24040001 */ addiu $a0,$zero,0x1 +.L0f00b90c: +/* f00b90c: 8ccb0070 */ lw $t3,0x70($a2) +/* f00b910: 240f0004 */ addiu $t7,$zero,0x4 +/* f00b914: 3c198006 */ lui $t9,%hi(g_StageHeadLimits) +/* f00b918: 11600003 */ beqz $t3,.L0f00b928 +/* f00b91c: 00000000 */ nop +/* f00b920: 10000001 */ b .L0f00b928 +/* f00b924: 24020001 */ addiu $v0,$zero,0x1 +.L0f00b928: +/* f00b928: 00446021 */ addu $t4,$v0,$a0 +/* f00b92c: 01836821 */ addu $t5,$t4,$v1 +/* f00b930: 01a57021 */ addu $t6,$t5,$a1 +/* f00b934: 29c10002 */ slti $at,$t6,0x2 +/* f00b938: 14200005 */ bnez $at,.L0f00b950 +/* f00b93c: 27221700 */ addiu $v0,$t9,%lo(g_StageHeadLimits) +/* f00b940: 3c15800a */ lui $s5,%hi(g_NumActiveHeadsPerGender) +/* f00b944: 26b5cd20 */ addiu $s5,$s5,%lo(g_NumActiveHeadsPerGender) +/* f00b948: 1000000d */ b .L0f00b980 +/* f00b94c: aeaf0000 */ sw $t7,0x0($s5) +.L0f00b950: +/* f00b950: aeb80000 */ sw $t8,0x0($s5) +/* f00b954: 24440006 */ addiu $a0,$v0,0x6 +/* f00b958: 90480000 */ lbu $t0,0x0($v0) +.L0f00b95c: +/* f00b95c: 56080004 */ bnel $s0,$t0,.L0f00b970 +/* f00b960: 24420002 */ addiu $v0,$v0,0x2 +/* f00b964: 90490001 */ lbu $t1,0x1($v0) +/* f00b968: aea90000 */ sw $t1,0x0($s5) +/* f00b96c: 24420002 */ addiu $v0,$v0,0x2 +.L0f00b970: +/* f00b970: 0044082b */ sltu $at,$v0,$a0 +/* f00b974: 5420fff9 */ bnezl $at,.L0f00b95c +/* f00b978: 90480000 */ lbu $t0,0x0($v0) +/* f00b97c: 00008825 */ or $s1,$zero,$zero +.L0f00b980: +/* f00b980: 0fc41b99 */ jal cheatIsActive +/* f00b984: 24040010 */ addiu $a0,$zero,0x10 +/* f00b988: 10400005 */ beqz $v0,.L0f00b9a0 +/* f00b98c: 3c148006 */ lui $s4,%hi(g_MaleGuardTeamHeads) +/* f00b990: 3c138006 */ lui $s3,%hi(g_NumMaleGuardTeamHeads) +/* f00b994: 26942c14 */ addiu $s4,$s4,%lo(g_MaleGuardTeamHeads) +/* f00b998: 10000005 */ b .L0f00b9b0 +/* f00b99c: 8e732b0c */ lw $s3,%lo(g_NumMaleGuardTeamHeads)($s3) +.L0f00b9a0: +/* f00b9a0: 3c148006 */ lui $s4,%hi(g_MaleGuardHeads) +/* f00b9a4: 3c138006 */ lui $s3,%hi(g_NumMaleGuardHeads) +/* f00b9a8: 26942b68 */ addiu $s4,$s4,%lo(g_MaleGuardHeads) +/* f00b9ac: 8e732b04 */ lw $s3,%lo(g_NumMaleGuardHeads)($s3) +.L0f00b9b0: +/* f00b9b0: 8eaa0000 */ lw $t2,0x0($s5) +/* f00b9b4: 3c12800a */ lui $s2,%hi(g_ActiveMaleHeads) +/* f00b9b8: 2652cd28 */ addiu $s2,$s2,%lo(g_ActiveMaleHeads) +/* f00b9bc: 19400022 */ blez $t2,.L0f00ba48 +/* f00b9c0: 00000000 */ nop +.L0f00b9c4: +/* f00b9c4: 0c004b70 */ jal random +/* f00b9c8: 24100001 */ addiu $s0,$zero,0x1 +/* f00b9cc: 0053001b */ divu $zero,$v0,$s3 +/* f00b9d0: 00005810 */ mfhi $t3 +/* f00b9d4: 8ea50000 */ lw $a1,0x0($s5) +/* f00b9d8: 000b6080 */ sll $t4,$t3,0x2 +/* f00b9dc: 028c6821 */ addu $t5,$s4,$t4 +/* f00b9e0: 8dae0000 */ lw $t6,0x0($t5) +/* f00b9e4: 16600002 */ bnez $s3,.L0f00b9f0 +/* f00b9e8: 00000000 */ nop +/* f00b9ec: 0007000d */ break 0x7 +.L0f00b9f0: +/* f00b9f0: 00b3082a */ slt $at,$a1,$s3 +/* f00b9f4: 1020000d */ beqz $at,.L0f00ba2c +/* f00b9f8: ae4e0000 */ sw $t6,0x0($s2) +/* f00b9fc: 1a20000b */ blez $s1,.L0f00ba2c +/* f00ba00: 00001825 */ or $v1,$zero,$zero +/* f00ba04: 3c02800a */ lui $v0,%hi(g_ActiveMaleHeads) +/* f00ba08: 2442cd28 */ addiu $v0,$v0,%lo(g_ActiveMaleHeads) +/* f00ba0c: 01c02025 */ or $a0,$t6,$zero +.L0f00ba10: +/* f00ba10: 8c4f0000 */ lw $t7,0x0($v0) +/* f00ba14: 24630001 */ addiu $v1,$v1,0x1 +/* f00ba18: 15e40002 */ bne $t7,$a0,.L0f00ba24 +/* f00ba1c: 00000000 */ nop +/* f00ba20: 00008025 */ or $s0,$zero,$zero +.L0f00ba24: +/* f00ba24: 1471fffa */ bne $v1,$s1,.L0f00ba10 +/* f00ba28: 24420004 */ addiu $v0,$v0,0x4 +.L0f00ba2c: +/* f00ba2c: 1200ffe5 */ beqz $s0,.L0f00b9c4 +/* f00ba30: 00000000 */ nop +/* f00ba34: 26310001 */ addiu $s1,$s1,0x1 +/* f00ba38: 0225082a */ slt $at,$s1,$a1 +/* f00ba3c: 1420ffe1 */ bnez $at,.L0f00b9c4 +/* f00ba40: 26520004 */ addiu $s2,$s2,0x4 +/* f00ba44: 00008825 */ or $s1,$zero,$zero +.L0f00ba48: +/* f00ba48: 0fc41b99 */ jal cheatIsActive +/* f00ba4c: 24040010 */ addiu $a0,$zero,0x10 +/* f00ba50: 10400006 */ beqz $v0,.L0f00ba6c +/* f00ba54: 3c148006 */ lui $s4,%hi(g_FemaleGuardHeads) +/* f00ba58: 3c148006 */ lui $s4,%hi(g_FemaleGuardTeamHeads) +/* f00ba5c: 3c138006 */ lui $s3,%hi(g_NumFemaleGuardTeamHeads) +/* f00ba60: 26942c6c */ addiu $s4,$s4,%lo(g_FemaleGuardTeamHeads) +/* f00ba64: 10000004 */ b .L0f00ba78 +/* f00ba68: 8e732b10 */ lw $s3,%lo(g_NumFemaleGuardTeamHeads)($s3) +.L0f00ba6c: +/* f00ba6c: 3c138006 */ lui $s3,%hi(g_NumFemaleGuardHeads) +/* f00ba70: 26942c58 */ addiu $s4,$s4,%lo(g_FemaleGuardHeads) +/* f00ba74: 8e732b08 */ lw $s3,%lo(g_NumFemaleGuardHeads)($s3) +.L0f00ba78: +/* f00ba78: 8ea50000 */ lw $a1,0x0($s5) +/* f00ba7c: 3c12800a */ lui $s2,%hi(g_ActiveFemaleHeads) +/* f00ba80: 2652cd48 */ addiu $s2,$s2,%lo(g_ActiveFemaleHeads) +/* f00ba84: 18a00022 */ blez $a1,.L0f00bb10 +/* f00ba88: 00000000 */ nop +.L0f00ba8c: +/* f00ba8c: 0c004b70 */ jal random +/* f00ba90: 24100001 */ addiu $s0,$zero,0x1 +/* f00ba94: 0053001b */ divu $zero,$v0,$s3 +/* f00ba98: 0000c010 */ mfhi $t8 +/* f00ba9c: 8ea50000 */ lw $a1,0x0($s5) +/* f00baa0: 0018c880 */ sll $t9,$t8,0x2 +/* f00baa4: 02994021 */ addu $t0,$s4,$t9 +/* f00baa8: 8d090000 */ lw $t1,0x0($t0) +/* f00baac: 16600002 */ bnez $s3,.L0f00bab8 +/* f00bab0: 00000000 */ nop +/* f00bab4: 0007000d */ break 0x7 +.L0f00bab8: +/* f00bab8: 00b3082a */ slt $at,$a1,$s3 +/* f00babc: 1020000d */ beqz $at,.L0f00baf4 +/* f00bac0: ae490000 */ sw $t1,0x0($s2) +/* f00bac4: 1a20000b */ blez $s1,.L0f00baf4 +/* f00bac8: 00001825 */ or $v1,$zero,$zero +/* f00bacc: 3c02800a */ lui $v0,%hi(g_ActiveFemaleHeads) +/* f00bad0: 2442cd48 */ addiu $v0,$v0,%lo(g_ActiveFemaleHeads) +/* f00bad4: 01202025 */ or $a0,$t1,$zero +.L0f00bad8: +/* f00bad8: 8c4a0000 */ lw $t2,0x0($v0) +/* f00badc: 24630001 */ addiu $v1,$v1,0x1 +/* f00bae0: 15440002 */ bne $t2,$a0,.L0f00baec +/* f00bae4: 00000000 */ nop +/* f00bae8: 00008025 */ or $s0,$zero,$zero +.L0f00baec: +/* f00baec: 1471fffa */ bne $v1,$s1,.L0f00bad8 +/* f00baf0: 24420004 */ addiu $v0,$v0,0x4 +.L0f00baf4: +/* f00baf4: 1200ffe5 */ beqz $s0,.L0f00ba8c +/* f00baf8: 00000000 */ nop +/* f00bafc: 26310001 */ addiu $s1,$s1,0x1 +/* f00bb00: 0225082a */ slt $at,$s1,$a1 +/* f00bb04: 1420ffe1 */ bnez $at,.L0f00ba8c +/* f00bb08: 26520004 */ addiu $s2,$s2,0x4 +/* f00bb0c: 00008825 */ or $s1,$zero,$zero +.L0f00bb10: +/* f00bb10: 3c018006 */ lui $at,%hi(g_ActiveMaleHeadsIndex) +/* f00bb14: ac202c84 */ sw $zero,%lo(g_ActiveMaleHeadsIndex)($at) +/* f00bb18: 3c018006 */ lui $at,%hi(g_ActiveFemaleHeadsIndex) +/* f00bb1c: 18a00006 */ blez $a1,.L0f00bb38 +/* f00bb20: ac202c88 */ sw $zero,%lo(g_ActiveFemaleHeadsIndex)($at) +/* f00bb24: 26310001 */ addiu $s1,$s1,0x1 +.L0f00bb28: +/* f00bb28: 0225082a */ slt $at,$s1,$a1 +/* f00bb2c: 5420fffe */ bnezl $at,.L0f00bb28 +/* f00bb30: 26310001 */ addiu $s1,$s1,0x1 +/* f00bb34: 00008825 */ or $s1,$zero,$zero +.L0f00bb38: +/* f00bb38: 18a00005 */ blez $a1,.L0f00bb50 +/* f00bb3c: 8fb00014 */ lw $s0,0x14($sp) +/* f00bb40: 26310001 */ addiu $s1,$s1,0x1 +.L0f00bb44: +/* f00bb44: 0225082a */ slt $at,$s1,$a1 +/* f00bb48: 5420fffe */ bnezl $at,.L0f00bb44 +/* f00bb4c: 26310001 */ addiu $s1,$s1,0x1 +.L0f00bb50: +/* f00bb50: 8fbf002c */ lw $ra,0x2c($sp) +/* f00bb54: 8fb10018 */ lw $s1,0x18($sp) +/* f00bb58: 8fb2001c */ lw $s2,0x1c($sp) +/* f00bb5c: 8fb30020 */ lw $s3,0x20($sp) +/* f00bb60: 8fb40024 */ lw $s4,0x24($sp) +/* f00bb64: 8fb50028 */ lw $s5,0x28($sp) +/* f00bb68: 03e00008 */ jr $ra +/* f00bb6c: 27bd0030 */ addiu $sp,$sp,0x30 +); + +// Mismatches: +// - Address of var80062b14 Should be loaded to a callee-save register +// - PLAYERCOUNT() calculation is more spread out +// (does other register preparation during calculation) +// - Loop at 950 is calculated differently +//void bodiesReset(s32 stagenum) +//{ +// s32 *headsavailablelist; +// s32 headsavailablelen; +// bool done; +// s32 i; +// s32 j; +// +// for (i = 0; g_HeadsAndBodies[i].bodyfileid; i++) { +// g_HeadsAndBodies[i].unk0c = NULL; +// } +// +// var80062c80 = random() % g_NumBondBodies; +// var80062b14 = 0; +// var80062b18 = 0; +// +// if (PLAYERCOUNT() >= 2) { +// g_NumActiveHeadsPerGender = 4; +// } else { +// // 950 +// g_NumActiveHeadsPerGender = 8; +// +// for (i = 0; i < ARRAYCOUNT(g_StageHeadLimits); i++) { +// if (g_StageHeadLimits[i].stagenum == stagenum) { +// g_NumActiveHeadsPerGender = g_StageHeadLimits[i].maxheads; +// } +// } +// } +// +// // Male heads +// if (cheatIsActive(CHEAT_TEAMHEADSONLY)) { +// headsavailablelist = g_MaleGuardTeamHeads; +// headsavailablelen = g_NumMaleGuardTeamHeads; +// } else { +// headsavailablelist = g_MaleGuardHeads; +// headsavailablelen = g_NumMaleGuardHeads; +// } +// +// for (i = 0; i < g_NumActiveHeadsPerGender; i++) { +// do { +// done = true; +// g_ActiveMaleHeads[i] = headsavailablelist[random() % headsavailablelen]; +// +// if (headsavailablelen > g_NumActiveHeadsPerGender) { +// for (j = 0; j < i; j++) { +// if (g_ActiveMaleHeads[i] == g_ActiveMaleHeads[j]) { +// done = false; +// } +// } +// } +// } while (!done); +// } +// +// // Female heads +// if (cheatIsActive(CHEAT_TEAMHEADSONLY)) { +// headsavailablelist = g_FemaleGuardTeamHeads; +// headsavailablelen = g_NumFemaleGuardTeamHeads; +// } else { +// headsavailablelist = g_FemaleGuardHeads; +// headsavailablelen = g_NumFemaleGuardHeads; +// } +// +// for (i = 0; i < g_NumActiveHeadsPerGender; i++) { +// do { +// done = true; +// g_ActiveFemaleHeads[i] = headsavailablelist[random() % headsavailablelen]; +// +// if (headsavailablelen > g_NumActiveHeadsPerGender) { +// for (j = 0; j < i; j++) { +// if (g_ActiveFemaleHeads[i] == g_ActiveFemaleHeads[j]) { +// done = false; +// } +// } +// } +// } while (!done); +// } +// +// g_ActiveMaleHeadsIndex = 0; +// g_ActiveFemaleHeadsIndex = 0; +// +// for (i = 0; i < g_NumActiveHeadsPerGender; i++); +// for (i = 0; i < g_NumActiveHeadsPerGender; i++); +//} diff --git a/src/game/bondbike.c b/src/game/bondbike.c index 53328246f..639135adf 100644 --- a/src/game/bondbike.c +++ b/src/game/bondbike.c @@ -4,12 +4,12 @@ #include "game/bondmove.h" #include "game/chraction.h" #include "game/prop.h" -#include "game/game_091e10.h" +#include "game/setuputils.h" #include "game/propsnd.h" #include "game/objectives.h" -#include "game/game_096ca0.h" +#include "game/quaternion.h" #include "game/bondgun.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/player.h" #include "game/bondhead.h" #include "game/lv.h" @@ -508,11 +508,11 @@ glabel var7f1adb74 /* f0d2ad0: e7aa0034 */ swc1 $f10,0x34($sp) /* f0d2ad4: e7a00038 */ swc1 $f0,0x38($sp) /* f0d2ad8: 27a40030 */ addiu $a0,$sp,0x30 -/* f0d2adc: 0fc2d341 */ jal func0f0b4d04 +/* f0d2adc: 0fc2d341 */ jal cam0f0b4d04 /* f0d2ae0: 27a50028 */ addiu $a1,$sp,0x28 -/* f0d2ae4: 0fc2d602 */ jal currentPlayerGetScreenTop +/* f0d2ae4: 0fc2d602 */ jal camGetScreenTop /* f0d2ae8: 00000000 */ nop -/* f0d2aec: 0fc2d5fa */ jal currentPlayerGetScreenHeight +/* f0d2aec: 0fc2d5fa */ jal camGetScreenHeight /* f0d2af0: e7a00024 */ swc1 $f0,0x24($sp) /* f0d2af4: c7a4002c */ lwc1 $f4,0x2c($sp) /* f0d2af8: c7a60024 */ lwc1 $f6,0x24($sp) @@ -848,11 +848,11 @@ glabel var7f1adb74 /* f0d2ad0: e7aa0034 */ swc1 $f10,0x34($sp) /* f0d2ad4: e7a00038 */ swc1 $f0,0x38($sp) /* f0d2ad8: 27a40030 */ addiu $a0,$sp,0x30 -/* f0d2adc: 0fc2d341 */ jal func0f0b4d04 +/* f0d2adc: 0fc2d341 */ jal cam0f0b4d04 /* f0d2ae0: 27a50028 */ addiu $a1,$sp,0x28 -/* f0d2ae4: 0fc2d602 */ jal currentPlayerGetScreenTop +/* f0d2ae4: 0fc2d602 */ jal camGetScreenTop /* f0d2ae8: 00000000 */ nop -/* f0d2aec: 0fc2d5fa */ jal currentPlayerGetScreenHeight +/* f0d2aec: 0fc2d5fa */ jal camGetScreenHeight /* f0d2af0: e7a00024 */ swc1 $f0,0x24($sp) /* f0d2af4: c7a4002c */ lwc1 $f4,0x2c($sp) /* f0d2af8: c7a60024 */ lwc1 $f6,0x24($sp) @@ -977,9 +977,9 @@ glabel var7f1adb74 // sp30.y = -sinf(sp3c); // sp30.z = cosf(sp3c); // -// func0f0b4d04(&sp30, sp28); +// cam0f0b4d04(&sp30, sp28); // -// g_Vars.currentplayer->gunextraaimy = -((sp28[1] - currentPlayerGetScreenTop()) * 2.0f / currentPlayerGetScreenHeight() - 1.0f) * 0.75f; +// g_Vars.currentplayer->gunextraaimy = -((sp28[1] - camGetScreenTop()) * 2.0f / camGetScreenHeight() - 1.0f) * 0.75f; // } //} @@ -1078,7 +1078,7 @@ s32 bbikeCalculateNewPosition(struct coord *vel, f32 angledelta) g_Vars.currentplayer->hoverbike->rooms, &dstpos, dstrooms, spa8, 20); - func0f09233c(&bike->base, &dstpos, bike->base.realrot, dstrooms); + setup0f09233c(&bike->base, &dstpos, bike->base.realrot, dstrooms); hasvel = true; diff --git a/src/game/bondgun.c b/src/game/bondgun.c index 37a869663..43bdf0b19 100644 --- a/src/game/bondgun.c +++ b/src/game/bondgun.c @@ -11,14 +11,14 @@ #include "game/game_096360.h" #include "game/acosfasinf.h" #include "game/game_096b20.h" -#include "game/game_096ca0.h" +#include "game/quaternion.h" #include "game/game_097aa0.h" #include "game/bondgun.h" -#include "game/game_0abe70.h" +#include "game/gunfx.h" #include "game/game_0b0fd0.h" #include "game/game_0b28d0.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/player.h" #include "game/game_0c33f0.h" #include "game/gfxmemory.h" @@ -12298,7 +12298,7 @@ glabel bgun0f09e144 /* f09e3dc: afa00014 */ sw $zero,0x14($sp) /* f09e3e0: afb00010 */ sw $s0,0x10($sp) /* f09e3e4: 02202025 */ or $a0,$s1,$zero -/* f09e3e8: 0fc69d58 */ jal func0f1a7560 +/* f09e3e8: 0fc69d58 */ jal modeldef0f1a7560 /* f09e3ec: 02203825 */ or $a3,$s1,$zero /* f09e3f0: 0fc59c15 */ jal fileGetInflatedSize /* f09e3f4: 964415b2 */ lhu $a0,0x15b2($s2) @@ -12541,7 +12541,7 @@ glabel bgun0f09e144 /* f09c2e8: afa00014 */ sw $zero,0x14($sp) /* f09c2ec: afb00010 */ sw $s0,0x10($sp) /* f09c2f0: 02602025 */ or $a0,$s3,$zero -/* f09c2f4: 0c009114 */ jal func0f1a7560 +/* f09c2f4: 0c009114 */ jal modeldef0f1a7560 /* f09c2f8: 02603825 */ or $a3,$s3,$zero /* f09c2fc: 0fc58635 */ jal fileGetInflatedSize /* f09c300: 968415b2 */ lhu $a0,0x15b2($s4) @@ -12655,14 +12655,14 @@ glabel bgunTickLoad /* f09e5d4: 3c05800a */ lui $a1,%hi(g_Casings) /* f09e5d8: 24a5d510 */ addiu $a1,$a1,%lo(g_Casings) /* f09e5dc: 15660004 */ bne $t3,$a2,.L0f09e5f0 -/* f09e5e0: 3c03800a */ lui $v1,%hi(var8009da60) +/* f09e5e0: 3c03800a */ lui $v1,%hi(g_BoltBeams) /* f09e5e4: 3233ffff */ andi $s3,$s1,0xffff /* f09e5e8: 00008825 */ or $s1,$zero,$zero /* f09e5ec: 00008025 */ or $s0,$zero,$zero .L0f09e5f0: /* f09e5f0: 924215b0 */ lbu $v0,0x15b0($s2) /* f09e5f4: 3c048007 */ lui $a0,%hi(g_CasingsActive) -/* f09e5f8: 2463da60 */ addiu $v1,$v1,%lo(var8009da60) +/* f09e5f8: 2463da60 */ addiu $v1,$v1,%lo(g_BoltBeams) /* f09e5fc: 14400019 */ bnez $v0,.L0f09e664 /* f09e600: 24840524 */ addiu $a0,$a0,%lo(g_CasingsActive) /* f09e604: 00a01025 */ or $v0,$a1,$zero @@ -13693,10 +13693,10 @@ void bgun0f09ebcc(struct defaultobj *obj, struct coord *coord, s16 *rooms, Mtxf func0f06a580(obj, coord, matrix1, rooms); if (obj->type == OBJTYPE_WEAPON && ((struct weaponobj *) obj)->weaponnum == WEAPON_BOLT) { - s32 value = func0f0aec54(objprop); + s32 value = boltbeamFindByProp(objprop); if (value == -1) { - value = func0f0aeca8(objprop); + value = boltbeamCreate(objprop); } if (value != -1) { @@ -13996,7 +13996,7 @@ glabel var7f1ac72c /* f09f2f0: 8fa60240 */ lw $a2,0x240($sp) /* f09f2f4: 0fc2832c */ jal bgunCalculateShotSpread /* f09f2f8: 24070001 */ addiu $a3,$zero,0x1 -/* f09f2fc: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f09f2fc: 0fc2d5de */ jal camGetUnk174c /* f09f300: 00000000 */ nop /* f09f304: 00402025 */ or $a0,$v0,$zero /* f09f308: 0c0056c4 */ jal mtx4RotateVecInPlace @@ -14512,7 +14512,7 @@ glabel var7f1ac72c /* f09f2f0: 8fa60240 */ lw $a2,0x240($sp) /* f09f2f4: 0fc2832c */ jal bgunCalculateShotSpread /* f09f2f8: 24070001 */ addiu $a3,$zero,0x1 -/* f09f2fc: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f09f2fc: 0fc2d5de */ jal camGetUnk174c /* f09f300: 00000000 */ nop /* f09f304: 00402025 */ or $a0,$v0,$zero /* f09f308: 0c0056c4 */ jal mtx4RotateVecInPlace @@ -15005,7 +15005,7 @@ glabel var7f1ac740 /* f09fe30: 02003025 */ move $a2,$s0 /* f09fe34: 0fc283f5 */ jal bgunCalculateShotSpread /* f09fe38: 24070001 */ li $a3,0x1 -/* f09fe3c: 0fc2d726 */ jal currentPlayerGetUnk174c +/* f09fe3c: 0fc2d726 */ jal camGetUnk174c /* f09fe40: 00000000 */ nop /* f09fe44: 00402025 */ move $a0,$v0 /* f09fe48: 0c005628 */ jal mtx4RotateVecInPlace @@ -15640,7 +15640,7 @@ glabel var7f1ac740 /* f09fd80: 02003025 */ move $a2,$s0 /* f09fd84: 0fc283c9 */ jal bgunCalculateShotSpread /* f09fd88: 24070001 */ li $a3,0x1 -/* f09fd8c: 0fc2d6e2 */ jal currentPlayerGetUnk174c +/* f09fd8c: 0fc2d6e2 */ jal camGetUnk174c /* f09fd90: 00000000 */ nop /* f09fd94: 00402025 */ move $a0,$v0 /* f09fd98: 0c005958 */ jal mtx4RotateVecInPlace @@ -16275,7 +16275,7 @@ glabel var7f1ac740 /* f09fb2c: 02003025 */ or $a2,$s0,$zero /* f09fb30: 0fc2832c */ jal bgunCalculateShotSpread /* f09fb34: 24070001 */ addiu $a3,$zero,0x1 -/* f09fb38: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f09fb38: 0fc2d5de */ jal camGetUnk174c /* f09fb3c: 00000000 */ nop /* f09fb40: 00402025 */ or $a0,$v0,$zero /* f09fb44: 0c0056c4 */ jal mtx4RotateVecInPlace @@ -16902,7 +16902,7 @@ glabel var7f1ac740 /* f09d9a4: 02003025 */ or $a2,$s0,$zero /* f09d9a8: 0fc27a99 */ jal bgunCalculateShotSpread /* f09d9ac: 24070001 */ addiu $a3,$zero,0x1 -/* f09d9b0: 0fc2cd36 */ jal currentPlayerGetUnk174c +/* f09d9b0: 0fc2cd36 */ jal camGetUnk174c /* f09d9b4: 00000000 */ sll $zero,$zero,0x0 /* f09d9b8: 00402025 */ or $a0,$v0,$zero /* f09d9bc: 0c005a80 */ jal mtx4RotateVecInPlace @@ -17458,9 +17458,9 @@ glabel var7f1ac764 /* f0a03d4: f7b40010 */ sdc1 $f20,0x10($sp) /* f0a03d8: e7ac00e0 */ swc1 $f12,0xe0($sp) /* f0a03dc: e7ae00e4 */ swc1 $f14,0xe4($sp) -/* f0a03e0: 0fc2d5f6 */ jal currentPlayerGetScreenWidth +/* f0a03e0: 0fc2d5f6 */ jal camGetScreenWidth /* f0a03e4: afa700ec */ sw $a3,0xec($sp) -/* f0a03e8: 0fc2d5fa */ jal currentPlayerGetScreenHeight +/* f0a03e8: 0fc2d5fa */ jal camGetScreenHeight /* f0a03ec: 46000706 */ mov.s $f28,$f0 /* f0a03f0: 3c0f8007 */ lui $t7,%hi(var800701b8) /* f0a03f4: 25ef01b8 */ addiu $t7,$t7,%lo(var800701b8) @@ -17601,7 +17601,7 @@ glabel var7f1ac764 /* f0a05f8: c44606bc */ lwc1 $f6,0x6bc($v0) /* f0a05fc: e7a60098 */ swc1 $f6,0x98($sp) /* f0a0600: c44806c0 */ lwc1 $f8,0x6c0($v0) -/* f0a0604: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f0a0604: 0fc2d5be */ jal camGetMatrix1740 /* f0a0608: e7a8009c */ swc1 $f8,0x9c($sp) /* f0a060c: 00402025 */ or $a0,$v0,$zero /* f0a0610: 0c0056d9 */ jal mtx4TransformVecInPlace @@ -17626,7 +17626,7 @@ glabel var7f1ac764 /* f0a0658: 27a800b0 */ addiu $t0,$sp,0xb0 /* f0a065c: 45020018 */ bc1fl .L0f0a06c0 /* f0a0660: 26730001 */ addiu $s3,$s3,0x1 -/* f0a0664: 0fc2d341 */ jal func0f0b4d04 +/* f0a0664: 0fc2d341 */ jal cam0f0b4d04 /* f0a0668: 02889021 */ addu $s2,$s4,$t0 /* f0a066c: c7b2008c */ lwc1 $f18,0x8c($sp) /* f0a0670: e6120000 */ swc1 $f18,0x0($s0) @@ -17813,11 +17813,11 @@ glabel var7f1ac764 .L0f0a0914: /* f0a0914: e7ae0074 */ swc1 $f14,0x74($sp) .L0f0a0918: -/* f0a0918: 0fc2d5fe */ jal currentPlayerGetScreenLeft +/* f0a0918: 0fc2d5fe */ jal camGetScreenLeft /* f0a091c: e7b00070 */ swc1 $f16,0x70($sp) /* f0a0920: c6a61660 */ lwc1 $f6,0x1660($s5) /* f0a0924: 46003480 */ add.s $f18,$f6,$f0 -/* f0a0928: 0fc2d602 */ jal currentPlayerGetScreenTop +/* f0a0928: 0fc2d602 */ jal camGetScreenTop /* f0a092c: e6b21660 */ swc1 $f18,0x1660($s5) /* f0a0930: c6a81664 */ lwc1 $f8,0x1664($s5) /* f0a0934: 3c017f1b */ lui $at,%hi(var7f1ac764) @@ -17873,11 +17873,11 @@ glabel var7f1ac764 /* f0a09e8: 00000000 */ nop /* f0a09ec: e6200cd0 */ swc1 $f0,0xcd0($s1) .L0f0a09f0: -/* f0a09f0: 0fc2d5fe */ jal currentPlayerGetScreenLeft +/* f0a09f0: 0fc2d5fe */ jal camGetScreenLeft /* f0a09f4: 00000000 */ nop /* f0a09f8: c6320ccc */ lwc1 $f18,0xccc($s1) /* f0a09fc: 46009200 */ add.s $f8,$f18,$f0 -/* f0a0a00: 0fc2d602 */ jal currentPlayerGetScreenTop +/* f0a0a00: 0fc2d602 */ jal camGetScreenTop /* f0a0a04: e6280ccc */ swc1 $f8,0xccc($s1) /* f0a0a08: c62a0cd0 */ lwc1 $f10,0xcd0($s1) /* f0a0a0c: 26730001 */ addiu $s3,$s3,0x1 @@ -17922,11 +17922,11 @@ glabel var7f1ac764 /* f0a0aa0: c7aa0070 */ lwc1 $f10,0x70($sp) /* f0a0aa4: 461a9202 */ mul.s $f8,$f18,$f26 /* f0a0aa8: 460a4100 */ add.s $f4,$f8,$f10 -/* f0a0aac: 0fc2d5fe */ jal currentPlayerGetScreenLeft +/* f0a0aac: 0fc2d5fe */ jal camGetScreenLeft /* f0a0ab0: e6a41678 */ swc1 $f4,0x1678($s5) /* f0a0ab4: c6a61674 */ lwc1 $f6,0x1674($s5) /* f0a0ab8: 46003480 */ add.s $f18,$f6,$f0 -/* f0a0abc: 0fc2d602 */ jal currentPlayerGetScreenTop +/* f0a0abc: 0fc2d602 */ jal camGetScreenTop /* f0a0ac0: e6b21674 */ swc1 $f18,0x1674($s5) /* f0a0ac4: c6a81678 */ lwc1 $f8,0x1678($s5) /* f0a0ac8: 27b000c8 */ addiu $s0,$sp,0xc8 @@ -17934,7 +17934,7 @@ glabel var7f1ac764 /* f0a0ad0: 46004280 */ add.s $f10,$f8,$f0 /* f0a0ad4: 26a41674 */ addiu $a0,$s5,0x1674 /* f0a0ad8: 3c06447a */ lui $a2,0x447a -/* f0a0adc: 0fc2d30f */ jal func0f0b4c3c +/* f0a0adc: 0fc2d30f */ jal cam0f0b4c3c /* f0a0ae0: e6aa1678 */ swc1 $f10,0x1678($s5) /* f0a0ae4: 0fc2a4f8 */ jal bgunSetAimPos /* f0a0ae8: 02002025 */ or $a0,$s0,$zero @@ -17998,9 +17998,9 @@ glabel var7f1ac764 /* f0a03d4: f7b40010 */ sdc1 $f20,0x10($sp) /* f0a03d8: e7ac00e0 */ swc1 $f12,0xe0($sp) /* f0a03dc: e7ae00e4 */ swc1 $f14,0xe4($sp) -/* f0a03e0: 0fc2d5f6 */ jal currentPlayerGetScreenWidth +/* f0a03e0: 0fc2d5f6 */ jal camGetScreenWidth /* f0a03e4: afa700ec */ sw $a3,0xec($sp) -/* f0a03e8: 0fc2d5fa */ jal currentPlayerGetScreenHeight +/* f0a03e8: 0fc2d5fa */ jal camGetScreenHeight /* f0a03ec: 46000706 */ mov.s $f28,$f0 /* f0a03f0: 3c0f8007 */ lui $t7,%hi(var800701b8) /* f0a03f4: 25ef01b8 */ addiu $t7,$t7,%lo(var800701b8) @@ -18141,7 +18141,7 @@ glabel var7f1ac764 /* f0a05f8: c44606bc */ lwc1 $f6,0x6bc($v0) /* f0a05fc: e7a60098 */ swc1 $f6,0x98($sp) /* f0a0600: c44806c0 */ lwc1 $f8,0x6c0($v0) -/* f0a0604: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f0a0604: 0fc2d5be */ jal camGetMatrix1740 /* f0a0608: e7a8009c */ swc1 $f8,0x9c($sp) /* f0a060c: 00402025 */ or $a0,$v0,$zero /* f0a0610: 0c0056d9 */ jal mtx4TransformVecInPlace @@ -18166,7 +18166,7 @@ glabel var7f1ac764 /* f0a0658: 27a800b0 */ addiu $t0,$sp,0xb0 /* f0a065c: 45020018 */ bc1fl .L0f0a06c0 /* f0a0660: 26730001 */ addiu $s3,$s3,0x1 -/* f0a0664: 0fc2d341 */ jal func0f0b4d04 +/* f0a0664: 0fc2d341 */ jal cam0f0b4d04 /* f0a0668: 02889021 */ addu $s2,$s4,$t0 /* f0a066c: c7b2008c */ lwc1 $f18,0x8c($sp) /* f0a0670: e6120000 */ swc1 $f18,0x0($s0) @@ -18353,11 +18353,11 @@ glabel var7f1ac764 .L0f0a0914: /* f0a0914: e7ae0074 */ swc1 $f14,0x74($sp) .L0f0a0918: -/* f0a0918: 0fc2d5fe */ jal currentPlayerGetScreenLeft +/* f0a0918: 0fc2d5fe */ jal camGetScreenLeft /* f0a091c: e7b00070 */ swc1 $f16,0x70($sp) /* f0a0920: c6a61660 */ lwc1 $f6,0x1660($s5) /* f0a0924: 46003480 */ add.s $f18,$f6,$f0 -/* f0a0928: 0fc2d602 */ jal currentPlayerGetScreenTop +/* f0a0928: 0fc2d602 */ jal camGetScreenTop /* f0a092c: e6b21660 */ swc1 $f18,0x1660($s5) /* f0a0930: c6a81664 */ lwc1 $f8,0x1664($s5) /* f0a0934: 3c017f1b */ lui $at,%hi(var7f1ac764) @@ -18413,11 +18413,11 @@ glabel var7f1ac764 /* f0a09e8: 00000000 */ nop /* f0a09ec: e6200cd0 */ swc1 $f0,0xcd0($s1) .L0f0a09f0: -/* f0a09f0: 0fc2d5fe */ jal currentPlayerGetScreenLeft +/* f0a09f0: 0fc2d5fe */ jal camGetScreenLeft /* f0a09f4: 00000000 */ nop /* f0a09f8: c6320ccc */ lwc1 $f18,0xccc($s1) /* f0a09fc: 46009200 */ add.s $f8,$f18,$f0 -/* f0a0a00: 0fc2d602 */ jal currentPlayerGetScreenTop +/* f0a0a00: 0fc2d602 */ jal camGetScreenTop /* f0a0a04: e6280ccc */ swc1 $f8,0xccc($s1) /* f0a0a08: c62a0cd0 */ lwc1 $f10,0xcd0($s1) /* f0a0a0c: 26730001 */ addiu $s3,$s3,0x1 @@ -18462,11 +18462,11 @@ glabel var7f1ac764 /* f0a0aa0: c7aa0070 */ lwc1 $f10,0x70($sp) /* f0a0aa4: 461a9202 */ mul.s $f8,$f18,$f26 /* f0a0aa8: 460a4100 */ add.s $f4,$f8,$f10 -/* f0a0aac: 0fc2d5fe */ jal currentPlayerGetScreenLeft +/* f0a0aac: 0fc2d5fe */ jal camGetScreenLeft /* f0a0ab0: e6a41678 */ swc1 $f4,0x1678($s5) /* f0a0ab4: c6a61674 */ lwc1 $f6,0x1674($s5) /* f0a0ab8: 46003480 */ add.s $f18,$f6,$f0 -/* f0a0abc: 0fc2d602 */ jal currentPlayerGetScreenTop +/* f0a0abc: 0fc2d602 */ jal camGetScreenTop /* f0a0ac0: e6b21674 */ swc1 $f18,0x1674($s5) /* f0a0ac4: c6a81678 */ lwc1 $f8,0x1678($s5) /* f0a0ac8: 27b000c8 */ addiu $s0,$sp,0xc8 @@ -18474,7 +18474,7 @@ glabel var7f1ac764 /* f0a0ad0: 46004280 */ add.s $f10,$f8,$f0 /* f0a0ad4: 26a41674 */ addiu $a0,$s5,0x1674 /* f0a0ad8: 3c06447a */ lui $a2,0x447a -/* f0a0adc: 0fc2d30f */ jal func0f0b4c3c +/* f0a0adc: 0fc2d30f */ jal cam0f0b4c3c /* f0a0ae0: e6aa1678 */ swc1 $f10,0x1678($s5) /* f0a0ae4: 0fc2a4f8 */ jal bgunSetAimPos /* f0a0ae8: 02002025 */ or $a0,$s0,$zero @@ -18532,7 +18532,7 @@ void bgun0f0a0c08(struct coord *arg0, struct coord *arg1) arg0->y = 0; arg0->z = 0; - func0f0b4c3c(g_Vars.currentplayer->crosspos, arg1, 1); + cam0f0b4c3c(g_Vars.currentplayer->crosspos, arg1, 1); } void bgun0f0a0c44(s32 handnum, struct coord *arg1, struct coord *arg2) @@ -18541,7 +18541,7 @@ void bgun0f0a0c44(s32 handnum, struct coord *arg1, struct coord *arg2) arg1->y = 0; arg1->z = 0; - func0f0b4c3c(g_Vars.currentplayer->hands[handnum].crosspos, arg2, 1); + cam0f0b4c3c(g_Vars.currentplayer->hands[handnum].crosspos, arg2, 1); } void bgunCalculateShotSpread(struct coord *arg0, struct coord *arg1, s32 handnum, bool dorandom) @@ -18582,8 +18582,8 @@ void bgunCalculateShotSpread(struct coord *arg0, struct coord *arg1, s32 handnum randfactor = 0; } - crosspos[0] = player->crosspos[0] + randfactor * scaledspread * currentPlayerGetScreenWidth() - / (viGetHeight() * currentPlayerGetPerspAspect()); + crosspos[0] = player->crosspos[0] + randfactor * scaledspread * camGetScreenWidth() + / (viGetHeight() * camGetPerspAspect()); if (dorandom) { randfactor = (random() * (1.0f / U32_MAX) - 0.5f) * (random() * (1.0f / U32_MAX)); @@ -18591,14 +18591,14 @@ void bgunCalculateShotSpread(struct coord *arg0, struct coord *arg1, s32 handnum randfactor = 0; } - crosspos[1] = player->crosspos[1] + (randfactor * scaledspread * currentPlayerGetScreenHeight()) + crosspos[1] = player->crosspos[1] + (randfactor * scaledspread * camGetScreenHeight()) / viGetHeight(); arg0->x = 0; arg0->y = 0; arg0->z = 0; - func0f0b4c3c(crosspos, arg1, 1); + cam0f0b4c3c(crosspos, arg1, 1); } GLOBAL_ASM( @@ -22221,7 +22221,7 @@ glabel bgun0f0a37b4 /* f0a3804: c4660034 */ lwc1 $f6,0x34($v1) /* f0a3808: e7a60068 */ swc1 $f6,0x68($sp) /* f0a380c: c4680038 */ lwc1 $f8,0x38($v1) -/* f0a3810: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f0a3810: 0fc2d5de */ jal camGetUnk174c /* f0a3814: e7a8006c */ swc1 $f8,0x6c($sp) /* f0a3818: 00402025 */ or $a0,$v0,$zero /* f0a381c: 0c0056d9 */ jal mtx4TransformVecInPlace @@ -22258,13 +22258,13 @@ glabel bgun0f0a37b4 /* f0a3894: e7a40050 */ swc1 $f4,0x50($sp) /* f0a3898: e7a6003c */ swc1 $f6,0x3c($sp) /* f0a389c: e7a80040 */ swc1 $f8,0x40($sp) -/* f0a38a0: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f0a38a0: 0fc2d5be */ jal camGetMatrix1740 /* f0a38a4: e7aa0044 */ swc1 $f10,0x44($sp) /* f0a38a8: 00402025 */ or $a0,$v0,$zero /* f0a38ac: 27a5003c */ addiu $a1,$sp,0x3c /* f0a38b0: 0c0056da */ jal mtx4TransformVec /* f0a38b4: 27a60054 */ addiu $a2,$sp,0x54 -/* f0a38b8: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f0a38b8: 0fc2d5de */ jal camGetUnk174c /* f0a38bc: 00000000 */ nop /* f0a38c0: 00402025 */ or $a0,$v0,$zero /* f0a38c4: 27a50048 */ addiu $a1,$sp,0x48 @@ -22282,7 +22282,7 @@ glabel bgun0f0a37b4 /* f0a38f4: 46004282 */ mul.s $f10,$f8,$f0 /* f0a38f8: e7b20088 */ swc1 $f18,0x88($sp) /* f0a38fc: e7a6008c */ swc1 $f6,0x8c($sp) -/* f0a3900: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f0a3900: 0fc2d5de */ jal camGetUnk174c /* f0a3904: e7aa0090 */ swc1 $f10,0x90($sp) /* f0a3908: 00402025 */ or $a0,$v0,$zero /* f0a390c: 0c0056c4 */ jal mtx4RotateVecInPlace @@ -22335,7 +22335,7 @@ glabel bgun0f0a37b4 /* f0a39c0: 00000000 */ nop .L0f0a39c4: /* f0a39c4: 3c063f80 */ lui $a2,0x3f80 -/* f0a39c8: 0fc2d30f */ jal func0f0b4c3c +/* f0a39c8: 0fc2d30f */ jal cam0f0b4c3c /* f0a39cc: afa3002c */ sw $v1,0x2c($sp) /* f0a39d0: 3c0143fa */ lui $at,0x43fa /* f0a39d4: 44810000 */ mtc1 $at,$f0 @@ -22351,7 +22351,7 @@ glabel bgun0f0a37b4 /* f0a39fc: e7b0008c */ swc1 $f16,0x8c($sp) /* f0a3a00: e7a40090 */ swc1 $f4,0x90($sp) .L0f0a3a04: -/* f0a3a04: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f0a3a04: 0fc2d5de */ jal camGetUnk174c /* f0a3a08: 00000000 */ nop /* f0a3a0c: 00402025 */ or $a0,$v0,$zero /* f0a3a10: 0c0056d9 */ jal mtx4TransformVecInPlace @@ -23620,7 +23620,7 @@ glabel var7f1ac8c8 /* f0a44f4: 4600a306 */ mov.s $f12,$f20 /* f0a44f8: 0c0057c1 */ jal mtx00015f04 /* f0a44fc: 02002825 */ or $a1,$s0,$zero -/* f0a4500: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f0a4500: 0fc2d5de */ jal camGetUnk174c /* f0a4504: 00000000 */ nop /* f0a4508: 00402025 */ or $a0,$v0,$zero /* f0a450c: 0c00567f */ jal mtx4MultMtx4InPlace @@ -26391,7 +26391,7 @@ glabel var7f1ac9e0 /* f0a53cc: c42cc938 */ lwc1 $f12,%lo(var7f1ac938)($at) /* f0a53d0: 0c0057c1 */ jal mtx00015f04 /* f0a53d4: 27a50024 */ addiu $a1,$sp,0x24 -/* f0a53d8: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f0a53d8: 0fc2d5de */ jal camGetUnk174c /* f0a53dc: 00000000 */ nop /* f0a53e0: 00402025 */ or $a0,$v0,$zero /* f0a53e4: 0c00567f */ jal mtx4MultMtx4InPlace @@ -26934,11 +26934,11 @@ glabel var7f1adc74pf /* f0a69c8: 46068480 */ add.s $f18,$f16,$f6 /* f0a69cc: e7b20284 */ swc1 $f18,0x284($sp) .JF0f0a69d0: -/* f0a69d0: 0fc2da16 */ jal currentPlayerGetScreenWidth +/* f0a69d0: 0fc2da16 */ jal camGetScreenWidth /* f0a69d4: 00000000 */ nop -/* f0a69d8: 0fc2da1e */ jal currentPlayerGetScreenLeft +/* f0a69d8: 0fc2da1e */ jal camGetScreenLeft /* f0a69dc: e7a00064 */ swc1 $f0,0x64($sp) -/* f0a69e0: 0fc2da16 */ jal currentPlayerGetScreenWidth +/* f0a69e0: 0fc2da16 */ jal camGetScreenWidth /* f0a69e4: e7a00068 */ swc1 $f0,0x68($sp) /* f0a69e8: 3c013f00 */ lui $at,0x3f00 /* f0a69ec: 44811000 */ mtc1 $at,$f2 @@ -26956,9 +26956,9 @@ glabel var7f1adc74pf /* f0a6a1c: 00000000 */ nop /* f0a6a20: 46020402 */ mul.s $f16,$f0,$f2 /* f0a6a24: 46105103 */ div.s $f4,$f10,$f16 -/* f0a6a28: 0fc2da22 */ jal currentPlayerGetScreenTop +/* f0a6a28: 0fc2da22 */ jal camGetScreenTop /* f0a6a2c: e604076c */ swc1 $f4,0x76c($s0) -/* f0a6a30: 0fc2da1a */ jal currentPlayerGetScreenHeight +/* f0a6a30: 0fc2da1a */ jal camGetScreenHeight /* f0a6a34: e7a00068 */ swc1 $f0,0x68($sp) /* f0a6a38: 3c013f00 */ lui $at,0x3f00 /* f0a6a3c: 44813000 */ mtc1 $at,$f6 @@ -26971,11 +26971,11 @@ glabel var7f1adc74pf /* f0a6a58: 00000000 */ nop /* f0a6a5c: 4500001a */ bc1f .JF0f0a6ac8 /* f0a6a60: 00000000 */ nop -/* f0a6a64: 0fc2da1a */ jal currentPlayerGetScreenHeight +/* f0a6a64: 0fc2da1a */ jal camGetScreenHeight /* f0a6a68: 00000000 */ nop -/* f0a6a6c: 0fc2da22 */ jal currentPlayerGetScreenTop +/* f0a6a6c: 0fc2da22 */ jal camGetScreenTop /* f0a6a70: e7a00064 */ swc1 $f0,0x64($sp) -/* f0a6a74: 0fc2da1a */ jal currentPlayerGetScreenHeight +/* f0a6a74: 0fc2da1a */ jal camGetScreenHeight /* f0a6a78: e7a00068 */ swc1 $f0,0x68($sp) /* f0a6a7c: 3c013f00 */ lui $at,0x3f00 /* f0a6a80: 44819000 */ mtc1 $at,$f18 @@ -26997,11 +26997,11 @@ glabel var7f1adc74pf /* f0a6ac0: 10000019 */ b .JF0f0a6b28 /* f0a6ac4: e6100770 */ swc1 $f16,0x770($s0) .JF0f0a6ac8: -/* f0a6ac8: 0fc2da1a */ jal currentPlayerGetScreenHeight +/* f0a6ac8: 0fc2da1a */ jal camGetScreenHeight /* f0a6acc: 00000000 */ nop -/* f0a6ad0: 0fc2da22 */ jal currentPlayerGetScreenTop +/* f0a6ad0: 0fc2da22 */ jal camGetScreenTop /* f0a6ad4: e7a00064 */ swc1 $f0,0x64($sp) -/* f0a6ad8: 0fc2da1a */ jal currentPlayerGetScreenHeight +/* f0a6ad8: 0fc2da1a */ jal camGetScreenHeight /* f0a6adc: e7a00068 */ swc1 $f0,0x68($sp) /* f0a6ae0: 3c013f00 */ lui $at,0x3f00 /* f0a6ae4: 44814000 */ mtc1 $at,$f8 @@ -27282,7 +27282,7 @@ glabel var7f1adc74pf /* f0a6ef0: afa40044 */ sw $a0,0x44($sp) /* f0a6ef4: 0c00572e */ jal mtx4Copy /* f0a6ef8: 26050334 */ addiu $a1,$s0,0x334 -/* f0a6efc: 0fc2d9fe */ jal currentPlayerGetUnk174c +/* f0a6efc: 0fc2d9fe */ jal camGetUnk174c /* f0a6f00: 00000000 */ nop /* f0a6f04: 00402025 */ move $a0,$v0 /* f0a6f08: 8fa5004c */ lw $a1,0x4c($sp) @@ -27764,7 +27764,7 @@ glabel var7f1adc74pf /* f0a75d0: c4860038 */ lwc1 $f6,0x38($a0) /* f0a75d4: 0c00572e */ jal mtx4Copy /* f0a75d8: e606037c */ swc1 $f6,0x37c($s0) -/* f0a75dc: 0fc2d9fe */ jal currentPlayerGetUnk174c +/* f0a75dc: 0fc2d9fe */ jal camGetUnk174c /* f0a75e0: 00000000 */ nop /* f0a75e4: 00402025 */ move $a0,$v0 /* f0a75e8: 0c0056c1 */ jal mtx4TransformVecInPlace @@ -27836,7 +27836,7 @@ glabel var7f1adc74pf /* f0a76e8: c4840038 */ lwc1 $f4,0x38($a0) /* f0a76ec: 0c00572e */ jal mtx4Copy /* f0a76f0: e604037c */ swc1 $f4,0x37c($s0) -/* f0a76f4: 0fc2d9fe */ jal currentPlayerGetUnk174c +/* f0a76f4: 0fc2d9fe */ jal camGetUnk174c /* f0a76f8: 00000000 */ nop /* f0a76fc: 00402025 */ move $a0,$v0 /* f0a7700: 0c0056c1 */ jal mtx4TransformVecInPlace @@ -28485,11 +28485,11 @@ glabel var7f1adc74pf /* f0a5d94: 46068480 */ add.s $f18,$f16,$f6 /* f0a5d98: e7b20284 */ swc1 $f18,0x284($sp) .PF0f0a5d9c: -/* f0a5d9c: 0fc2d73e */ jal currentPlayerGetScreenWidth +/* f0a5d9c: 0fc2d73e */ jal camGetScreenWidth /* f0a5da0: 00000000 */ nop -/* f0a5da4: 0fc2d746 */ jal currentPlayerGetScreenLeft +/* f0a5da4: 0fc2d746 */ jal camGetScreenLeft /* f0a5da8: e7a00064 */ swc1 $f0,0x64($sp) -/* f0a5dac: 0fc2d73e */ jal currentPlayerGetScreenWidth +/* f0a5dac: 0fc2d73e */ jal camGetScreenWidth /* f0a5db0: e7a00068 */ swc1 $f0,0x68($sp) /* f0a5db4: 3c013f00 */ lui $at,0x3f00 /* f0a5db8: 44811000 */ mtc1 $at,$f2 @@ -28507,9 +28507,9 @@ glabel var7f1adc74pf /* f0a5de8: 00000000 */ nop /* f0a5dec: 46020402 */ mul.s $f16,$f0,$f2 /* f0a5df0: 46105103 */ div.s $f4,$f10,$f16 -/* f0a5df4: 0fc2d74a */ jal currentPlayerGetScreenTop +/* f0a5df4: 0fc2d74a */ jal camGetScreenTop /* f0a5df8: e604076c */ swc1 $f4,0x76c($s0) -/* f0a5dfc: 0fc2d742 */ jal currentPlayerGetScreenHeight +/* f0a5dfc: 0fc2d742 */ jal camGetScreenHeight /* f0a5e00: e7a00068 */ swc1 $f0,0x68($sp) /* f0a5e04: 3c013f00 */ lui $at,0x3f00 /* f0a5e08: 44813000 */ mtc1 $at,$f6 @@ -28522,11 +28522,11 @@ glabel var7f1adc74pf /* f0a5e24: 00000000 */ nop /* f0a5e28: 4500001a */ bc1f .PF0f0a5e94 /* f0a5e2c: 00000000 */ nop -/* f0a5e30: 0fc2d742 */ jal currentPlayerGetScreenHeight +/* f0a5e30: 0fc2d742 */ jal camGetScreenHeight /* f0a5e34: 00000000 */ nop -/* f0a5e38: 0fc2d74a */ jal currentPlayerGetScreenTop +/* f0a5e38: 0fc2d74a */ jal camGetScreenTop /* f0a5e3c: e7a00064 */ swc1 $f0,0x64($sp) -/* f0a5e40: 0fc2d742 */ jal currentPlayerGetScreenHeight +/* f0a5e40: 0fc2d742 */ jal camGetScreenHeight /* f0a5e44: e7a00068 */ swc1 $f0,0x68($sp) /* f0a5e48: 3c013f00 */ lui $at,0x3f00 /* f0a5e4c: 44819000 */ mtc1 $at,$f18 @@ -28548,11 +28548,11 @@ glabel var7f1adc74pf /* f0a5e8c: 10000019 */ b .PF0f0a5ef4 /* f0a5e90: e6100770 */ swc1 $f16,0x770($s0) .PF0f0a5e94: -/* f0a5e94: 0fc2d742 */ jal currentPlayerGetScreenHeight +/* f0a5e94: 0fc2d742 */ jal camGetScreenHeight /* f0a5e98: 00000000 */ nop -/* f0a5e9c: 0fc2d74a */ jal currentPlayerGetScreenTop +/* f0a5e9c: 0fc2d74a */ jal camGetScreenTop /* f0a5ea0: e7a00064 */ swc1 $f0,0x64($sp) -/* f0a5ea4: 0fc2d742 */ jal currentPlayerGetScreenHeight +/* f0a5ea4: 0fc2d742 */ jal camGetScreenHeight /* f0a5ea8: e7a00068 */ swc1 $f0,0x68($sp) /* f0a5eac: 3c013f00 */ lui $at,0x3f00 /* f0a5eb0: 44814000 */ mtc1 $at,$f8 @@ -28833,7 +28833,7 @@ glabel var7f1adc74pf /* f0a62bc: afa40044 */ sw $a0,0x44($sp) /* f0a62c0: 0c0056aa */ jal mtx4Copy /* f0a62c4: 26050334 */ addiu $a1,$s0,0x334 -/* f0a62c8: 0fc2d726 */ jal currentPlayerGetUnk174c +/* f0a62c8: 0fc2d726 */ jal camGetUnk174c /* f0a62cc: 00000000 */ nop /* f0a62d0: 00402025 */ move $a0,$v0 /* f0a62d4: 8fa5004c */ lw $a1,0x4c($sp) @@ -29315,7 +29315,7 @@ glabel var7f1adc74pf /* f0a699c: c4860038 */ lwc1 $f6,0x38($a0) /* f0a69a0: 0c0056aa */ jal mtx4Copy /* f0a69a4: e606037c */ swc1 $f6,0x37c($s0) -/* f0a69a8: 0fc2d726 */ jal currentPlayerGetUnk174c +/* f0a69a8: 0fc2d726 */ jal camGetUnk174c /* f0a69ac: 00000000 */ nop /* f0a69b0: 00402025 */ move $a0,$v0 /* f0a69b4: 0c00563d */ jal mtx4TransformVecInPlace @@ -29387,7 +29387,7 @@ glabel var7f1adc74pf /* f0a6ab4: c4840038 */ lwc1 $f4,0x38($a0) /* f0a6ab8: 0c0056aa */ jal mtx4Copy /* f0a6abc: e604037c */ swc1 $f4,0x37c($s0) -/* f0a6ac0: 0fc2d726 */ jal currentPlayerGetUnk174c +/* f0a6ac0: 0fc2d726 */ jal camGetUnk174c /* f0a6ac4: 00000000 */ nop /* f0a6ac8: 00402025 */ move $a0,$v0 /* f0a6acc: 0c00563d */ jal mtx4TransformVecInPlace @@ -30036,11 +30036,11 @@ glabel var7f1adc74pf /* f0a5ce4: 46068480 */ add.s $f18,$f16,$f6 /* f0a5ce8: e7b20284 */ swc1 $f18,0x284($sp) .PB0f0a5cec: -/* f0a5cec: 0fc2d6fa */ jal currentPlayerGetScreenWidth +/* f0a5cec: 0fc2d6fa */ jal camGetScreenWidth /* f0a5cf0: 00000000 */ nop -/* f0a5cf4: 0fc2d702 */ jal currentPlayerGetScreenLeft +/* f0a5cf4: 0fc2d702 */ jal camGetScreenLeft /* f0a5cf8: e7a00064 */ swc1 $f0,0x64($sp) -/* f0a5cfc: 0fc2d6fa */ jal currentPlayerGetScreenWidth +/* f0a5cfc: 0fc2d6fa */ jal camGetScreenWidth /* f0a5d00: e7a00068 */ swc1 $f0,0x68($sp) /* f0a5d04: 3c013f00 */ lui $at,0x3f00 /* f0a5d08: 44811000 */ mtc1 $at,$f2 @@ -30058,9 +30058,9 @@ glabel var7f1adc74pf /* f0a5d38: 00000000 */ nop /* f0a5d3c: 46020402 */ mul.s $f16,$f0,$f2 /* f0a5d40: 46105103 */ div.s $f4,$f10,$f16 -/* f0a5d44: 0fc2d706 */ jal currentPlayerGetScreenTop +/* f0a5d44: 0fc2d706 */ jal camGetScreenTop /* f0a5d48: e604076c */ swc1 $f4,0x76c($s0) -/* f0a5d4c: 0fc2d6fe */ jal currentPlayerGetScreenHeight +/* f0a5d4c: 0fc2d6fe */ jal camGetScreenHeight /* f0a5d50: e7a00068 */ swc1 $f0,0x68($sp) /* f0a5d54: 3c013f00 */ lui $at,0x3f00 /* f0a5d58: 44813000 */ mtc1 $at,$f6 @@ -30073,11 +30073,11 @@ glabel var7f1adc74pf /* f0a5d74: 00000000 */ nop /* f0a5d78: 4500001a */ bc1f .PB0f0a5de4 /* f0a5d7c: 00000000 */ nop -/* f0a5d80: 0fc2d6fe */ jal currentPlayerGetScreenHeight +/* f0a5d80: 0fc2d6fe */ jal camGetScreenHeight /* f0a5d84: 00000000 */ nop -/* f0a5d88: 0fc2d706 */ jal currentPlayerGetScreenTop +/* f0a5d88: 0fc2d706 */ jal camGetScreenTop /* f0a5d8c: e7a00064 */ swc1 $f0,0x64($sp) -/* f0a5d90: 0fc2d6fe */ jal currentPlayerGetScreenHeight +/* f0a5d90: 0fc2d6fe */ jal camGetScreenHeight /* f0a5d94: e7a00068 */ swc1 $f0,0x68($sp) /* f0a5d98: 3c013f00 */ lui $at,0x3f00 /* f0a5d9c: 44819000 */ mtc1 $at,$f18 @@ -30099,11 +30099,11 @@ glabel var7f1adc74pf /* f0a5ddc: 10000019 */ b .PB0f0a5e44 /* f0a5de0: e6100770 */ swc1 $f16,0x770($s0) .PB0f0a5de4: -/* f0a5de4: 0fc2d6fe */ jal currentPlayerGetScreenHeight +/* f0a5de4: 0fc2d6fe */ jal camGetScreenHeight /* f0a5de8: 00000000 */ nop -/* f0a5dec: 0fc2d706 */ jal currentPlayerGetScreenTop +/* f0a5dec: 0fc2d706 */ jal camGetScreenTop /* f0a5df0: e7a00064 */ swc1 $f0,0x64($sp) -/* f0a5df4: 0fc2d6fe */ jal currentPlayerGetScreenHeight +/* f0a5df4: 0fc2d6fe */ jal camGetScreenHeight /* f0a5df8: e7a00068 */ swc1 $f0,0x68($sp) /* f0a5dfc: 3c013f00 */ lui $at,0x3f00 /* f0a5e00: 44814000 */ mtc1 $at,$f8 @@ -30384,7 +30384,7 @@ glabel var7f1adc74pf /* f0a620c: afa40044 */ sw $a0,0x44($sp) /* f0a6210: 0c0059da */ jal mtx4Copy /* f0a6214: 26050334 */ addiu $a1,$s0,0x334 -/* f0a6218: 0fc2d6e2 */ jal currentPlayerGetUnk174c +/* f0a6218: 0fc2d6e2 */ jal camGetUnk174c /* f0a621c: 00000000 */ nop /* f0a6220: 00402025 */ move $a0,$v0 /* f0a6224: 8fa5004c */ lw $a1,0x4c($sp) @@ -30866,7 +30866,7 @@ glabel var7f1adc74pf /* f0a68ec: c4860038 */ lwc1 $f6,0x38($a0) /* f0a68f0: 0c0059da */ jal mtx4Copy /* f0a68f4: e606037c */ swc1 $f6,0x37c($s0) -/* f0a68f8: 0fc2d6e2 */ jal currentPlayerGetUnk174c +/* f0a68f8: 0fc2d6e2 */ jal camGetUnk174c /* f0a68fc: 00000000 */ nop /* f0a6900: 00402025 */ move $a0,$v0 /* f0a6904: 0c00596d */ jal mtx4TransformVecInPlace @@ -30938,7 +30938,7 @@ glabel var7f1adc74pf /* f0a6a04: c4840038 */ lwc1 $f4,0x38($a0) /* f0a6a08: 0c0059da */ jal mtx4Copy /* f0a6a0c: e604037c */ swc1 $f4,0x37c($s0) -/* f0a6a10: 0fc2d6e2 */ jal currentPlayerGetUnk174c +/* f0a6a10: 0fc2d6e2 */ jal camGetUnk174c /* f0a6a14: 00000000 */ nop /* f0a6a18: 00402025 */ move $a0,$v0 /* f0a6a1c: 0c00596d */ jal mtx4TransformVecInPlace @@ -31575,11 +31575,11 @@ glabel var7f1aca70 /* f0a5a7c: 46068480 */ add.s $f18,$f16,$f6 /* f0a5a80: e7b2027c */ swc1 $f18,0x27c($sp) .L0f0a5a84: -/* f0a5a84: 0fc2d5f6 */ jal currentPlayerGetScreenWidth +/* f0a5a84: 0fc2d5f6 */ jal camGetScreenWidth /* f0a5a88: 00000000 */ nop -/* f0a5a8c: 0fc2d5fe */ jal currentPlayerGetScreenLeft +/* f0a5a8c: 0fc2d5fe */ jal camGetScreenLeft /* f0a5a90: e7a00060 */ swc1 $f0,0x60($sp) -/* f0a5a94: 0fc2d5f6 */ jal currentPlayerGetScreenWidth +/* f0a5a94: 0fc2d5f6 */ jal camGetScreenWidth /* f0a5a98: e7a00064 */ swc1 $f0,0x64($sp) /* f0a5a9c: 3c013f00 */ lui $at,0x3f00 /* f0a5aa0: 44811000 */ mtc1 $at,$f2 @@ -31597,9 +31597,9 @@ glabel var7f1aca70 /* f0a5ad0: 00000000 */ nop /* f0a5ad4: 46020402 */ mul.s $f16,$f0,$f2 /* f0a5ad8: 46105103 */ div.s $f4,$f10,$f16 -/* f0a5adc: 0fc2d602 */ jal currentPlayerGetScreenTop +/* f0a5adc: 0fc2d602 */ jal camGetScreenTop /* f0a5ae0: e604076c */ swc1 $f4,0x76c($s0) -/* f0a5ae4: 0fc2d5fa */ jal currentPlayerGetScreenHeight +/* f0a5ae4: 0fc2d5fa */ jal camGetScreenHeight /* f0a5ae8: e7a00064 */ swc1 $f0,0x64($sp) /* f0a5aec: 3c013f00 */ lui $at,0x3f00 /* f0a5af0: 44813000 */ mtc1 $at,$f6 @@ -31612,11 +31612,11 @@ glabel var7f1aca70 /* f0a5b0c: 00000000 */ nop /* f0a5b10: 4500001a */ bc1f .L0f0a5b7c /* f0a5b14: 00000000 */ nop -/* f0a5b18: 0fc2d5fa */ jal currentPlayerGetScreenHeight +/* f0a5b18: 0fc2d5fa */ jal camGetScreenHeight /* f0a5b1c: 00000000 */ nop -/* f0a5b20: 0fc2d602 */ jal currentPlayerGetScreenTop +/* f0a5b20: 0fc2d602 */ jal camGetScreenTop /* f0a5b24: e7a00060 */ swc1 $f0,0x60($sp) -/* f0a5b28: 0fc2d5fa */ jal currentPlayerGetScreenHeight +/* f0a5b28: 0fc2d5fa */ jal camGetScreenHeight /* f0a5b2c: e7a00064 */ swc1 $f0,0x64($sp) /* f0a5b30: 3c013f00 */ lui $at,0x3f00 /* f0a5b34: 44819000 */ mtc1 $at,$f18 @@ -31638,11 +31638,11 @@ glabel var7f1aca70 /* f0a5b74: 10000019 */ b .L0f0a5bdc /* f0a5b78: e6100770 */ swc1 $f16,0x770($s0) .L0f0a5b7c: -/* f0a5b7c: 0fc2d5fa */ jal currentPlayerGetScreenHeight +/* f0a5b7c: 0fc2d5fa */ jal camGetScreenHeight /* f0a5b80: 00000000 */ nop -/* f0a5b84: 0fc2d602 */ jal currentPlayerGetScreenTop +/* f0a5b84: 0fc2d602 */ jal camGetScreenTop /* f0a5b88: e7a00060 */ swc1 $f0,0x60($sp) -/* f0a5b8c: 0fc2d5fa */ jal currentPlayerGetScreenHeight +/* f0a5b8c: 0fc2d5fa */ jal camGetScreenHeight /* f0a5b90: e7a00064 */ swc1 $f0,0x64($sp) /* f0a5b94: 3c013f00 */ lui $at,0x3f00 /* f0a5b98: 44814000 */ mtc1 $at,$f8 @@ -31923,7 +31923,7 @@ glabel var7f1aca70 /* f0a5fa4: afa40040 */ sw $a0,0x40($sp) /* f0a5fa8: 0c005746 */ jal mtx4Copy /* f0a5fac: 26050334 */ addiu $a1,$s0,0x334 -/* f0a5fb0: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f0a5fb0: 0fc2d5de */ jal camGetUnk174c /* f0a5fb4: 00000000 */ nop /* f0a5fb8: 00402025 */ or $a0,$v0,$zero /* f0a5fbc: 8fa50048 */ lw $a1,0x48($sp) @@ -32321,7 +32321,7 @@ glabel var7f1aca70 /* f0a6558: c4860038 */ lwc1 $f6,0x38($a0) /* f0a655c: 0c005746 */ jal mtx4Copy /* f0a6560: e606037c */ swc1 $f6,0x37c($s0) -/* f0a6564: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f0a6564: 0fc2d5de */ jal camGetUnk174c /* f0a6568: 00000000 */ nop /* f0a656c: 00402025 */ or $a0,$v0,$zero /* f0a6570: 0c0056d9 */ jal mtx4TransformVecInPlace @@ -32393,7 +32393,7 @@ glabel var7f1aca70 /* f0a6670: c4840038 */ lwc1 $f4,0x38($a0) /* f0a6674: 0c005746 */ jal mtx4Copy /* f0a6678: e604037c */ swc1 $f4,0x37c($s0) -/* f0a667c: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f0a667c: 0fc2d5de */ jal camGetUnk174c /* f0a6680: 00000000 */ nop /* f0a6684: 00402025 */ or $a0,$v0,$zero /* f0a6688: 0c0056d9 */ jal mtx4TransformVecInPlace @@ -33159,7 +33159,7 @@ glabel var7f1aca90 /* f0a74d4: 25ae0008 */ addiu $t6,$t5,0x8 /* f0a74d8: afae014c */ sw $t6,0x14c($sp) /* f0a74dc: adaf0000 */ sw $t7,0x0($t5) -/* f0a74e0: 0fc2d5ea */ jal currentPlayerGetUnk175c +/* f0a74e0: 0fc2d5ea */ jal camGetUnk175c /* f0a74e4: afad00d4 */ sw $t5,0xd4($sp) /* f0a74e8: 8fa500d4 */ lw $a1,0xd4($sp) /* f0a74ec: 3c080382 */ lui $t0,0x382 @@ -33169,7 +33169,7 @@ glabel var7f1aca90 /* f0a74fc: 25890008 */ addiu $t1,$t4,0x8 /* f0a7500: afa9014c */ sw $t1,0x14c($sp) /* f0a7504: ad880000 */ sw $t0,0x0($t4) -/* f0a7508: 0fc2d5ea */ jal currentPlayerGetUnk175c +/* f0a7508: 0fc2d5ea */ jal camGetUnk175c /* f0a750c: afac00d0 */ sw $t4,0xd0($sp) /* f0a7510: 8fa300d0 */ lw $v1,0xd0($sp) /* f0a7514: 244a0010 */ addiu $t2,$v0,0x10 @@ -34000,7 +34000,7 @@ glabel var7f1aca90 /* f0a74d4: 25ae0008 */ addiu $t6,$t5,0x8 /* f0a74d8: afae014c */ sw $t6,0x14c($sp) /* f0a74dc: adaf0000 */ sw $t7,0x0($t5) -/* f0a74e0: 0fc2d5ea */ jal currentPlayerGetUnk175c +/* f0a74e0: 0fc2d5ea */ jal camGetUnk175c /* f0a74e4: afad00d4 */ sw $t5,0xd4($sp) /* f0a74e8: 8fa500d4 */ lw $a1,0xd4($sp) /* f0a74ec: 3c080382 */ lui $t0,0x382 @@ -34010,7 +34010,7 @@ glabel var7f1aca90 /* f0a74fc: 25890008 */ addiu $t1,$t4,0x8 /* f0a7500: afa9014c */ sw $t1,0x14c($sp) /* f0a7504: ad880000 */ sw $t0,0x0($t4) -/* f0a7508: 0fc2d5ea */ jal currentPlayerGetUnk175c +/* f0a7508: 0fc2d5ea */ jal camGetUnk175c /* f0a750c: afac00d0 */ sw $t4,0xd0($sp) /* f0a7510: 8fa300d0 */ lw $v1,0xd0($sp) /* f0a7514: 244a0010 */ addiu $t2,$v0,0x10 @@ -34841,7 +34841,7 @@ glabel var7f1aca90 /* f0a5220: 25ae0008 */ addiu $t6,$t5,0x8 /* f0a5224: afae0144 */ sw $t6,0x144($sp) /* f0a5228: adaf0000 */ sw $t7,0x0($t5) -/* f0a522c: 0fc2cd42 */ jal currentPlayerGetUnk175c +/* f0a522c: 0fc2cd42 */ jal camGetUnk175c /* f0a5230: afad00cc */ sw $t5,0xcc($sp) /* f0a5234: 8fa500cc */ lw $a1,0xcc($sp) /* f0a5238: 3c080382 */ lui $t0,0x382 @@ -34851,7 +34851,7 @@ glabel var7f1aca90 /* f0a5248: 25890008 */ addiu $t1,$t4,0x8 /* f0a524c: afa90144 */ sw $t1,0x144($sp) /* f0a5250: ad880000 */ sw $t0,0x0($t4) -/* f0a5254: 0fc2cd42 */ jal currentPlayerGetUnk175c +/* f0a5254: 0fc2cd42 */ jal camGetUnk175c /* f0a5258: afac00c8 */ sw $t4,0xc8($sp) /* f0a525c: 8fa300c8 */ lw $v1,0xc8($sp) /* f0a5260: 244a0010 */ addiu $t2,$v0,0x10 diff --git a/src/game/bondgunstop.c b/src/game/bondgunstop.c index c1cb393d3..bc9f248f4 100644 --- a/src/game/bondgunstop.c +++ b/src/game/bondgunstop.c @@ -1,6 +1,5 @@ #include #include "constants.h" -#include "game/game_01afc0.h" #include "bss.h" #include "lib/vi.h" #include "lib/dma.h" diff --git a/src/game/bondheadreset.c b/src/game/bondheadreset.c index c63bceddf..103fe315e 100644 --- a/src/game/bondheadreset.c +++ b/src/game/bondheadreset.c @@ -1,6 +1,5 @@ #include #include "constants.h" -#include "game/game_013ee0.h" #include "game/bondhead.h" #include "game/bg.h" #include "game/pad.h" diff --git a/src/game/bondmove.c b/src/game/bondmove.c index 646d0bb52..84f0261b4 100644 --- a/src/game/bondmove.c +++ b/src/game/bondmove.c @@ -10,11 +10,11 @@ #include "game/chr.h" #include "game/prop.h" #include "game/atan2f.h" -#include "game/game_096ca0.h" +#include "game/quaternion.h" #include "game/bondgun.h" #include "game/game_0b0fd0.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/player.h" #include "game/bondcutscene.h" #include "game/bondhead.h" @@ -1488,7 +1488,7 @@ void bmoveProcessInput(bool allowc1x, bool allowc1y, bool allowc1buttons, bool i && g_Vars.currentplayer->insightaimmode && (movedata.farsighttempautoseek || g_Vars.currentplayer->hands[HAND_RIGHT].gset.weaponfunc == FUNC_SECONDARY) && g_Vars.currentplayer->autoeraserdist > 0) { - eraserfov = func0f0b49b8(500.0f / g_Vars.currentplayer->autoeraserdist); + eraserfov = cam0f0b49b8(500.0f / g_Vars.currentplayer->autoeraserdist); if (eraserfov > 60) { eraserfov = 60; @@ -1500,19 +1500,19 @@ void bmoveProcessInput(bool allowc1x, bool allowc1y, bool allowc1buttons, bool i g_Vars.currentplayer->gunzoomfovs[1] = eraserfov; - mtx4TransformVec(currentPlayerGetMatrix1740(), &g_Vars.currentplayer->autoerasertarget->pos, &spa0); + mtx4TransformVec(camGetMatrix1740(), &g_Vars.currentplayer->autoerasertarget->pos, &spa0); - func0f0b4eb8(&spa0, crosspos, eraserfov, g_Vars.currentplayer->c_perspaspect); + cam0f0b4eb8(&spa0, crosspos, eraserfov, g_Vars.currentplayer->c_perspaspect); - if (crosspos[0] < (currentPlayerGetScreenLeft() + currentPlayerGetScreenWidth() * 0.5f) - 20.0f) { + if (crosspos[0] < (camGetScreenLeft() + camGetScreenWidth() * 0.5f) - 20.0f) { movedata.aimturnleftspeed = 0.25f; - } else if (crosspos[0] > currentPlayerGetScreenLeft() + currentPlayerGetScreenWidth() * 0.5f + 20.0f) { + } else if (crosspos[0] > camGetScreenLeft() + camGetScreenWidth() * 0.5f + 20.0f) { movedata.aimturnrightspeed = 0.25f; } - if (crosspos[1] < (currentPlayerGetScreenTop() + currentPlayerGetScreenHeight() * 0.5f) - 20.0f) { + if (crosspos[1] < (camGetScreenTop() + camGetScreenHeight() * 0.5f) - 20.0f) { movedata.speedvertaup = 0.25f; - } else if (crosspos[1] > currentPlayerGetScreenTop() + currentPlayerGetScreenHeight() * 0.5f + 20.0f) { + } else if (crosspos[1] > camGetScreenTop() + camGetScreenHeight() * 0.5f + 20.0f) { movedata.speedvertadown = 0.25f; } } @@ -1957,7 +1957,7 @@ void bmoveTick(bool allowc1x, bool allowc1y, bool allowc1buttons, bool ignorec2) chr->floortype = g_Vars.currentplayer->floortype; - sound = chrChooseFootstepSound(chr, distance > 10); + sound = footstepChooseSound(chr, distance > 10); if (sound != -1) { snd00010718(0, 0, 0x7fff, 0x40, sound, 1, 1, -1, 1); diff --git a/src/game/bondview.c b/src/game/bondview.c index 943579ec3..a4972dad2 100644 --- a/src/game/bondview.c +++ b/src/game/bondview.c @@ -4,7 +4,7 @@ #include "game/game_006900.h" #include "game/atan2f.h" #include "game/savebuffer.h" -#include "game/game_11f000.h" +#include "game/sky.h" #include "game/bondview.h" #include "game/game_1531a0.h" #include "game/gfxmemory.h" @@ -19784,7 +19784,7 @@ glabel bviewRenderNvLens /* f1473f0: 14200004 */ bnez $at,.L0f147404 /* f1473f4: 00402025 */ or $a0,$v0,$zero /* f1473f8: 00402825 */ or $a1,$v0,$zero -/* f1473fc: 0fc49ccd */ jal func0f127334 +/* f1473fc: 0fc49ccd */ jal sky0f127334 /* f147400: 00403025 */ or $a2,$v0,$zero .L0f147404: /* f147404: 8e0e0288 */ lw $t6,0x288($s0) @@ -19954,7 +19954,7 @@ glabel bviewRenderNvLens /* f141c84: 14200004 */ bnez $at,.NB0f141c98 /* f141c88: 00402025 */ or $a0,$v0,$zero /* f141c8c: 00402825 */ or $a1,$v0,$zero -/* f141c90: 0fc487dd */ jal func0f127334 +/* f141c90: 0fc487dd */ jal sky0f127334 /* f141c94: 00403025 */ or $a2,$v0,$zero .NB0f141c98: /* f141c98: 8e0e0288 */ lw $t6,0x288($s0) @@ -20088,7 +20088,7 @@ glabel bviewRenderNvLens // roomvalue = func0f0009c0(g_Vars.currentplayer->prop->rooms[0]); // // if (roomvalue > 128) { -// func0f127334(roomvalue, roomvalue, roomvalue); +// sky0f127334(roomvalue, roomvalue, roomvalue); // } // // if (g_Menus[g_Vars.currentplayerstats->mpindex].curframe == NULL) { diff --git a/src/game/bondwalk.c b/src/game/bondwalk.c index b022d171a..b683a06a7 100644 --- a/src/game/bondwalk.c +++ b/src/game/bondwalk.c @@ -2553,7 +2553,7 @@ void bwalkUpdateVertical(void) chr->floortype = g_Vars.currentplayer->floortype; chr->footstep = 1; - sound = chrChooseFootstepSound(chr, true); + sound = footstepChooseSound(chr, true); if (sound != -1) { if (sound != -1) { @@ -2562,7 +2562,7 @@ void bwalkUpdateVertical(void) } chr->footstep = 2; - sound = chrChooseFootstepSound(chr, true); + sound = footstepChooseSound(chr, true); if (sound != -1) { func0f0939f8(NULL, g_Vars.currentplayer->prop, sound, @@ -3322,7 +3322,7 @@ glabel var7f1a7b20nb /* f0c3504: a0980191 */ sb $t8,0x191($a0) /* f0c3508: a0990190 */ sb $t9,0x190($a0) /* f0c350c: afa300ec */ sw $v1,0xec($sp) -/* f0c3510: 0fc01771 */ jal chrChooseFootstepSound +/* f0c3510: 0fc01771 */ jal footstepChooseSound /* f0c3514: afa40070 */ sw $a0,0x70($sp) /* f0c3518: 2401ffff */ addiu $at,$zero,-1 /* f0c351c: 10410043 */ beq $v0,$at,.NB0f0c362c @@ -3360,7 +3360,7 @@ glabel var7f1a7b20nb /* f0c3598: 240e0002 */ addiu $t6,$zero,0x2 /* f0c359c: 24050001 */ addiu $a1,$zero,0x1 /* f0c35a0: a08e0190 */ sb $t6,0x190($a0) -/* f0c35a4: 0fc01771 */ jal chrChooseFootstepSound +/* f0c35a4: 0fc01771 */ jal footstepChooseSound /* f0c35a8: afa300ec */ sw $v1,0xec($sp) /* f0c35ac: 2401ffff */ addiu $at,$zero,-1 /* f0c35b0: 1041001e */ beq $v0,$at,.NB0f0c362c diff --git a/src/game/bossfile.c b/src/game/bossfile.c index 963e7e639..00f1d98d0 100644 --- a/src/game/bossfile.c +++ b/src/game/bossfile.c @@ -7,7 +7,7 @@ #include "game/savebuffer.h" #include "game/bossfile.h" #include "game/bg.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/training.h" #include "game/gamefile.h" #include "game/mplayer/mplayer.h" diff --git a/src/game/bot.c b/src/game/bot.c index 9fd5a3368..7ddab6721 100644 --- a/src/game/bot.c +++ b/src/game/bot.c @@ -18,7 +18,7 @@ #include "game/botcmd.h" #include "game/botact.h" #include "game/botinv.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/lang.h" #include "game/mplayer/mplayer.h" #include "game/pad.h" diff --git a/src/game/botmgr.c b/src/game/botmgr.c index 5c0a60faa..668158dda 100644 --- a/src/game/botmgr.c +++ b/src/game/botmgr.c @@ -2,7 +2,7 @@ #include "constants.h" #include "game/botmgr.h" #include "game/chr.h" -#include "game/game_02cde0.h" +#include "game/body.h" #include "game/prop.h" #include "game/botcmd.h" #include "game/mplayer/mplayer.h" @@ -46,7 +46,7 @@ void botmgrAllocateBot(s32 chrnum, s32 aibotnum) bodynum = BODY_DDSHOCK; } - model = modelAllocateChr(bodynum, headnum, 0); + model = bodyAllocateModel(bodynum, headnum, 0); if (model != NULL) { struct coord pos = {0.0f, 0.0f, 0.0f}; diff --git a/src/game/botroom.c b/src/game/botroom.c new file mode 100644 index 000000000..ca28a75b0 --- /dev/null +++ b/src/game/botroom.c @@ -0,0 +1,164 @@ +#include +#include "constants.h" +#include "game/chrai.h" +#include "game/chraicommands.h" +#include "game/prop.h" +#include "game/atan2f.h" +#include "game/playermgr.h" +#include "game/mplayer/setup.h" +#include "game/bot.h" +#include "game/challenge.h" +#include "game/training.h" +#include "game/lang.h" +#include "game/mplayer/mplayer.h" +#include "game/mplayer/scenarios.h" +#include "game/pad.h" +#include "bss.h" +#include "lib/dma.h" +#include "lib/rng.h" +#include "data.h" +#include "types.h" + +/** + * Find a position inside the given room and populate the pointer arguments with + * information about the position. + * + * Used by bots in King of the Hill scenarios only. The room argument is always + * a hill room. + * + * @bug: There is a possible array overflow in both the covernums and padnums + * arrays. The for loops stop when the array is full, but the outer loop makes + * them iterate again, and the check is only at the end of each for loop rather + * than at the start. + * + * For covernums, the three variables declared above it are never written to the + * stack, so the outer loop would need to iterate three times while covernums is + * full in order to write into the caller's stack space. The only caller is + * botTickUnpaused, and its first stack usage is 0x20 where it backs up s0. + * So the outer loop would need to iterate 11 times before any damage could be + * done. + * + * For padnums, any overflow will write into the rooms array, likely clearing + * the -1 terminator in rooms[1] and affecting cover selection. Further + * iterations of the outer loop would write into the cover struct, but this is + * written before it's read so there's no issue there. + * + * It's likely that these don't ever overflow, or they overflow minimally which + * has no serious effect, but this should be investigated further. + */ +bool botroomFindPos(s16 room, struct coord *pos, f32 *angleptr, s32 *padnumptr, s32 *covernumptr) +{ + s32 i; + struct waypoint *waypoint; + s32 waypointnum; + s32 covernums[40]; /// written to stack + s32 covercount; + struct cover cover; // written to stack + s16 rooms[2]; // written to stack + s32 padnums[40]; // written to stack + s32 padcount; + s32 totalcount; + struct pad pad; + bool sp54; + bool sp50; + s32 count; + + covercount = 0; + padcount = 0; + + sp50 = 0; + + rooms[0] = room; + rooms[1] = -1; + + totalcount = 0; + + do { + sp54 = false; + count = coverGetCount(); + + for (i = 0; i < count; i++) { + if (coverUnpack(i, &cover) && !coverIsSpecial(&cover) && arrayIntersects(cover.rooms, rooms)) { + if (sp50 && (cover.flags & COVERFLAG_0100)) { + coverUnsetFlag(i, COVERFLAG_0100); + covernums[covercount] = i; + covercount++; + totalcount++; + } else if ((cover.flags & COVERFLAG_0100) == 0) { + covernums[covercount] = i; + covercount++; + totalcount++; + } else { + sp54 = true; + } + + if (covercount >= ARRAYCOUNT(covernums)) { + break; + } + } + } + + if (g_StageSetup.waypoints != NULL) { + count = g_Rooms[room].numwaypoints; + + for (i = 0; i < count; i++) { + waypointnum = g_Vars.waypointnums[g_Rooms[room].firstwaypoint + i]; + waypoint = &g_StageSetup.waypoints[waypointnum]; + + padUnpack(waypoint->padnum, PADFIELD_FLAGS, &pad); + + if (sp50 && (pad.flags & PADFLAG_20000)) { + padUnsetFlag(waypoint->padnum, PADFLAG_20000); + padnums[padcount] = waypoint->padnum; + padcount++; + totalcount++; + } else if ((pad.flags & PADFLAG_20000) == 0) { + padnums[padcount] = waypoint->padnum; + padcount++; + totalcount++; + } else { + sp54 = true; + } + + if (padcount >= ARRAYCOUNT(padnums)) { + break; + } + } + } + + if (1); + + sp50 = sp54; + } while (sp54 && !totalcount); + + if (!totalcount) { + return false; + } + + i = random() % totalcount; + + if (i < covercount) { + coverUnpack(covernums[i], &cover); + + pos->x = cover.pos->x; + pos->y = cover.pos->y; + pos->z = cover.pos->z; + + *angleptr = atan2f(cover.look->z, cover.look->x); + *padnumptr = -1; + *covernumptr = covernums[i]; + } else { + i -= covercount; + padUnpack(padnums[i], PADFIELD_POS | PADFIELD_LOOK, &pad); + + pos->x = pad.pos.x; + pos->y = pad.pos.y; + pos->z = pad.pos.z; + + *angleptr = atan2f(pad.look.z, pad.look.x); + *padnumptr = padnums[i]; + *covernumptr = -1; + } + + return true; +} diff --git a/src/game/buildtime.c b/src/game/buildtime.c new file mode 100644 index 000000000..5cca0cdf5 --- /dev/null +++ b/src/game/buildtime.c @@ -0,0 +1,20 @@ +#include +#include "constants.h" +#include "bss.h" +#include "data.h" +#include "types.h" + +char *buildGetTimestamp(void) +{ +#if VERSION >= VERSION_JPN_FINAL + return "Jul 19 2000 09:43:24"; +#elif VERSION >= VERSION_PAL_FINAL + return "Apr 28 2000 14:40:49"; +#elif VERSION >= VERSION_PAL_BETA + return "Apr 26 2000 16:36:48"; +#elif VERSION >= VERSION_NTSC_1_0 + return "Apr 6 2000 15:05:01"; +#else + return "Mar 22 2000 00:26:50"; +#endif +} diff --git a/src/game/camdraw.c b/src/game/camdraw.c index 0f92c22f8..03b7763e6 100644 --- a/src/game/camdraw.c +++ b/src/game/camdraw.c @@ -1,7 +1,7 @@ #include #include "constants.h" #include "game/camdraw.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/menu.h" #include "game/stubs/game_102230.h" #include "game/bg.h" @@ -2090,7 +2090,7 @@ Gfx *func0f14c870(Gfx *gdl, struct textureconfig *tconfig, f32 *arg2, f32 arg3, gDPSetTextureConvert(gdl++, G_TC_FILT); gDPSetCombineMode(gdl++, G_CC_MODULATEI, G_CC_MODULATEI); - func0f0b39c0(&gdl, tconfig, 1, 0, 2, 1, &var800a45a8); + tex0f0b39c0(&gdl, tconfig, 1, 0, 2, 1, &var800a45a8); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetCombineMode(gdl++, G_CC_DECALRGBA, G_CC_DECALRGBA); diff --git a/src/game/game_0b4950.c b/src/game/camera.c similarity index 96% rename from src/game/game_0b4950.c rename to src/game/camera.c index b9c055f06..4b9d83031 100644 --- a/src/game/game_0b4950.c +++ b/src/game/camera.c @@ -1,11 +1,11 @@ #include #include "constants.h" #include "game/atan2f.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/playermgr.h" #include "game/bg.h" #include "game/texdecompress.h" -#include "game/game_173a00.h" +#include "game/surface.h" #include "bss.h" #include "lib/mtx.h" #include "data.h" @@ -32,12 +32,12 @@ f32 var8009dd64; f32 var8009dd68; f32 var8009dd6c; -void func0f0b4950(void) +void cam0f0b4950(void) { // empty } -void currentPlayerSetScreenSize(f32 width, f32 height) +void camSetScreenSize(f32 width, f32 height) { struct player *player = g_Vars.currentplayer; @@ -47,7 +47,7 @@ void currentPlayerSetScreenSize(f32 width, f32 height) player->c_halfheight = height * 0.5f; } -void currentPlayerSetScreenPosition(f32 left, f32 top) +void camSetScreenPosition(f32 left, f32 top) { struct player *player = g_Vars.currentplayer; @@ -55,7 +55,7 @@ void currentPlayerSetScreenPosition(f32 left, f32 top) player->c_screentop = top; } -void currentPlayerSetPerspective(f32 near, f32 fovy, f32 aspect) +void camSetPerspective(f32 near, f32 fovy, f32 aspect) { struct player *player = g_Vars.currentplayer; @@ -64,7 +64,7 @@ void currentPlayerSetPerspective(f32 near, f32 fovy, f32 aspect) player->c_perspaspect = aspect; } -f32 func0f0b49b8(f32 arg0) +f32 cam0f0b49b8(f32 arg0) { f32 result = atan2f(g_Vars.currentplayer->c_scalelod60 * arg0 * g_Vars.currentplayer->c_halfheight, 1.0f); result *= 114.591552f; @@ -76,7 +76,7 @@ f32 func0f0b49b8(f32 arg0) return result; } -void currentPlayerSetCameraScale(void) +void camSetScale(void) { struct player *player = g_Vars.currentplayer; f32 fVar4; @@ -116,7 +116,7 @@ void currentPlayerSetCameraScale(void) } GLOBAL_ASM( -glabel func0f0b4c3c +glabel cam0f0b4c3c /* f0b4c3c: 27bdffd8 */ addiu $sp,$sp,-40 /* f0b4c40: 3c02800a */ lui $v0,%hi(g_Vars+0x284) /* f0b4c44: 8c42a244 */ lw $v0,%lo(g_Vars+0x284)($v0) @@ -169,7 +169,7 @@ glabel func0f0b4c3c /* f0b4d00: 00000000 */ nop ); -void func0f0b4d04(struct coord *in, f32 *out) +void cam0f0b4d04(struct coord *in, f32 *out) { struct player *player = g_Vars.currentplayer; f32 value = 1.0f / in->z; @@ -181,7 +181,7 @@ void func0f0b4d04(struct coord *in, f32 *out) - in->x * value * player->c_recipscalex; } -void func0f0b4d68(struct coord *in, struct coord *out) +void cam0f0b4d68(struct coord *in, struct coord *out) { struct player *player = g_Vars.currentplayer; f32 value; @@ -199,7 +199,7 @@ void func0f0b4d68(struct coord *in, struct coord *out) in->x * value * player->c_recipscalex; } -void func0f0b4dec(struct coord *in, f32 out[2]) +void cam0f0b4dec(struct coord *in, f32 out[2]) { struct player *player = g_Vars.currentplayer; f32 value = 1.0f / in->z; @@ -215,14 +215,14 @@ void func0f0b4dec(struct coord *in, f32 out[2]) - in->x * value * player->c_recipscalex; } -void func0f0b4e68(struct coord *in, f32 divisor, struct coord *out) +void cam0f0b4e68(struct coord *in, f32 divisor, struct coord *out) { out->y = in->y * (1.0f / divisor) * g_Vars.currentplayer->c_recipscaley; out->x = in->x * (1.0f / divisor) * g_Vars.currentplayer->c_recipscalex; } GLOBAL_ASM( -glabel func0f0b4eb8 +glabel cam0f0b4eb8 .late_rodata glabel var7f1ad154 .word 0x3c0efa35 @@ -277,57 +277,57 @@ glabel var7f1ad154 /* f0b4f74: 00000000 */ nop ); -void currentPlayerSetUnk1738(void *value) +void camSetUnk1738(void *value) { g_Vars.currentplayer->unk1738 = value; } -void *currentPlayerGetUnk1738(void) +void *camGetUnk1738(void) { return g_Vars.currentplayer->unk1738; } -void currentPlayerSetUnk173c(Mtx *matrix) +void camSetUnk173c(Mtx *matrix) { g_Vars.currentplayer->unk173c = matrix; } -Mtx *currentPlayerGetUnk173c(void) +Mtx *camGetUnk173c(void) { return g_Vars.currentplayer->unk173c; } -void currentPlayerSetUnk006c(Mtxf *matrix) +void camSetUnk006c(Mtxf *matrix) { g_Vars.currentplayer->matrix6c = matrix; } -Mtxf *currentPlayerGetUnk006c(void) +Mtxf *camGetUnk006c(void) { return g_Vars.currentplayer->matrix6c; } -void currentPlayerSetUnk1750(void *value) +void camSetUnk1750(void *value) { g_Vars.currentplayer->unk1750 = value; } -void *currentPlayerGetUnk1750(void) +void *camGetUnk1750(void) { return g_Vars.currentplayer->unk1750; } -void currentPlayerSetUnk1758(Mtx *matrix) +void camSetUnk1758(Mtx *matrix) { g_Vars.currentplayer->unk1758 = matrix; } -Mtx *currentPlayerGetUnk1758(void) +Mtx *camGetUnk1758(void) { return g_Vars.currentplayer->unk1758; } -void currentPlayerSetMatrix1740(Mtxf *matrix) +void camSetMatrix1740(Mtxf *matrix) { struct player *player = g_Vars.currentplayer; @@ -339,7 +339,7 @@ void currentPlayerSetMatrix1740(Mtxf *matrix) } GLOBAL_ASM( -glabel func0f0b5050 +glabel cam0f0b5050 /* f0b5050: 3c02800b */ lui $v0,%hi(g_GfxActiveBufferIndex) /* f0b5054: 9042a5a0 */ lbu $v0,%lo(g_GfxActiveBufferIndex)($v0) /* f0b5058: 3c03800b */ lui $v1,%hi(g_VtxBuffers) @@ -582,7 +582,7 @@ glabel func0f0b5050 ); GLOBAL_ASM( -glabel func0f0b53a4 +glabel cam0f0b53a4 /* f0b53a4: 3c02800b */ lui $v0,%hi(g_GfxActiveBufferIndex) /* f0b53a8: 9042a5a0 */ lbu $v0,%lo(g_GfxActiveBufferIndex)($v0) /* f0b53ac: 3c03800b */ lui $v1,%hi(g_VtxBuffers) @@ -824,37 +824,37 @@ glabel func0f0b53a4 /* f0b56f4: 27bd0050 */ addiu $sp,$sp,0x50 ); -Mtxf *currentPlayerGetMatrix1740(void) +Mtxf *camGetMatrix1740(void) { return g_Vars.currentplayer->matrix1740; } -void currentPlayerSetUnk1754(Mtxf *matrix) +void camSetUnk1754(Mtxf *matrix) { g_Vars.currentplayer->unk1754 = matrix; } -Mtxf *currentPlayerGetUnk1754(void) +Mtxf *camGetUnk1754(void) { return g_Vars.currentplayer->unk1754; } -Mtxf *currentPlayerGetPrevMatrix(void) +Mtxf *camGetPrevMatrix(void) { return g_Vars.currentplayer->prev1740; } -void currentPlayerSetUnk1748(u32 value) +void camSetUnk1748(u32 value) { g_Vars.currentplayer->unk1748 = value; } -u32 currentPlayerGetUnk1748(void) +u32 camGetUnk1748(void) { return g_Vars.currentplayer->unk1748; } -void currentPlayerSetUnk174c(Mtxf *matrix) +void camSetUnk174c(Mtxf *matrix) { struct player *player = g_Vars.currentplayer; @@ -863,68 +863,68 @@ void currentPlayerSetUnk174c(Mtxf *matrix) player->unk174c = matrix; } -Mtxf *currentPlayerGetUnk174c(void) +Mtxf *camGetUnk174c(void) { return g_Vars.currentplayer->unk174c; } -Mtxf *currentPlayerGetUnk1768(void) +Mtxf *camGetUnk1768(void) { return g_Vars.currentplayer->unk1768; } -void currentPlayerSetUnk175c(Mtxf *mtx) +void camSetUnk175c(Mtxf *mtx) { g_Vars.currentplayer->unk175c = mtx; } -Mtxf *currentPlayerGetUnk175c(void) +Mtxf *camGetUnk175c(void) { return g_Vars.currentplayer->unk175c; } -f32 currentPlayerGetLodScaleZ(void) +f32 camGetLodScaleZ(void) { return g_Vars.currentplayer->c_lodscalez; } -u32 currentPlayerGetLodScaleZU32(void) +u32 camGetLodScaleZU32(void) { return g_Vars.currentplayer->c_lodscalezu32; } -f32 currentPlayerGetScreenWidth(void) +f32 camGetScreenWidth(void) { return g_Vars.currentplayer->c_screenwidth; } -f32 currentPlayerGetScreenHeight(void) +f32 camGetScreenHeight(void) { return g_Vars.currentplayer->c_screenheight; } -f32 currentPlayerGetScreenLeft(void) +f32 camGetScreenLeft(void) { return g_Vars.currentplayer->c_screenleft; } -f32 currentPlayerGetScreenTop(void) +f32 camGetScreenTop(void) { return g_Vars.currentplayer->c_screentop; } -f32 currentPlayerGetPerspFovY(void) +f32 camGetPerspFovY(void) { return g_Vars.currentplayer->c_perspfovy; } -f32 currentPlayerGetPerspAspect(void) +f32 camGetPerspAspect(void) { return g_Vars.currentplayer->c_perspaspect; } GLOBAL_ASM( -glabel func0f0b5838 +glabel cam0f0b5838 /* f0b5838: 3c04800a */ lui $a0,%hi(g_Vars+0x284) /* f0b583c: 8c84a244 */ lw $a0,%lo(g_Vars+0x284)($a0) /* f0b5840: 27bdffd0 */ addiu $sp,$sp,-48 @@ -1145,7 +1145,7 @@ glabel func0f0b5838 ); GLOBAL_ASM( -glabel func0f0b5b9c +glabel cam0f0b5b9c /* f0b5b9c: 3c0e800a */ lui $t6,%hi(g_Vars+0x284) /* f0b5ba0: 8dcea244 */ lw $t6,%lo(g_Vars+0x284)($t6) /* f0b5ba4: c4820000 */ lwc1 $f2,0x0($a0) @@ -1257,7 +1257,7 @@ glabel func0f0b5b9c ); GLOBAL_ASM( -glabel func0f0b5d38 +glabel cam0f0b5d38 /* f0b5d38: 27bdff80 */ addiu $sp,$sp,-128 /* f0b5d3c: afb00028 */ sw $s0,0x28($sp) /* f0b5d40: 3c10800a */ lui $s0,%hi(g_Vars+0x284) @@ -1596,7 +1596,7 @@ glabel func0f0b5d38 ); GLOBAL_ASM( -glabel func0f0b6260 +glabel cam0f0b6260 /* f0b6260: 27bdffb0 */ addiu $sp,$sp,-80 /* f0b6264: afbf002c */ sw $ra,0x2c($sp) /* f0b6268: afb40028 */ sw $s4,0x28($sp) @@ -1678,7 +1678,7 @@ glabel func0f0b6260 /* f0b6378: 00001025 */ or $v0,$zero,$zero .L0f0b637c: /* f0b637c: 8fa50058 */ lw $a1,0x58($sp) -/* f0b6380: 0fc2d74e */ jal func0f0b5d38 +/* f0b6380: 0fc2d74e */ jal cam0f0b5d38 /* f0b6384: 27a60034 */ addiu $a2,$sp,0x34 .L0f0b6388: /* f0b6388: 8fbf002c */ lw $ra,0x2c($sp) diff --git a/src/game/game_19aa80.c b/src/game/challenge.c similarity index 65% rename from src/game/game_19aa80.c rename to src/game/challenge.c index 73eb2e22e..dc254ff4f 100644 --- a/src/game/game_19aa80.c +++ b/src/game/challenge.c @@ -7,7 +7,7 @@ #include "game/playermgr.h" #include "game/mplayer/setup.h" #include "game/bot.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/training.h" #include "game/lang.h" #include "game/mplayer/mplayer.h" @@ -58,156 +58,12 @@ struct challenge g_MpChallenges[NUM_CHALLENGES] = { { L_OPTIONS_435, MPCONFIG_CHALLENGE30 }, // "Challenge 30" }; -/** - * Find a position inside the given room and populate the pointer arguments with - * information about the position. - * - * Used by bots in King of the Hill scenarios only. The room argument is always - * a hill room. - * - * @bug: There is a possible array overflow in both the covernums and padnums - * arrays. The for loops stop when the array is full, but the outer loop makes - * them iterate again, and the check is only at the end of each for loop rather - * than at the start. - * - * For covernums, the three variables declared above it are never written to the - * stack, so the outer loop would need to iterate three times while covernums is - * full in order to write into the caller's stack space. The only caller is - * botTickUnpaused, and its first stack usage is 0x20 where it backs up s0. - * So the outer loop would need to iterate 11 times before any damage could be - * done. - * - * For padnums, any overflow will write into the rooms array, likely clearing - * the -1 terminator in rooms[1] and affecting cover selection. Further - * iterations of the outer loop would write into the cover struct, but this is - * written before it's read so there's no issue there. - * - * It's likely that these don't ever overflow, or they overflow minimally which - * has no serious effect, but this should be investigated further. - */ -bool botroomFindPos(s16 room, struct coord *pos, f32 *angleptr, s32 *padnumptr, s32 *covernumptr) -{ - s32 i; - struct waypoint *waypoint; - s32 waypointnum; - s32 covernums[40]; /// written to stack - s32 covercount; - struct cover cover; // written to stack - s16 rooms[2]; // written to stack - s32 padnums[40]; // written to stack - s32 padcount; - s32 totalcount; - struct pad pad; - bool sp54; - bool sp50; - s32 count; - - covercount = 0; - padcount = 0; - - sp50 = 0; - - rooms[0] = room; - rooms[1] = -1; - - totalcount = 0; - - do { - sp54 = false; - count = coverGetCount(); - - for (i = 0; i < count; i++) { - if (coverUnpack(i, &cover) && !coverIsSpecial(&cover) && arrayIntersects(cover.rooms, rooms)) { - if (sp50 && (cover.flags & COVERFLAG_0100)) { - coverUnsetFlag(i, COVERFLAG_0100); - covernums[covercount] = i; - covercount++; - totalcount++; - } else if ((cover.flags & COVERFLAG_0100) == 0) { - covernums[covercount] = i; - covercount++; - totalcount++; - } else { - sp54 = true; - } - - if (covercount >= ARRAYCOUNT(covernums)) { - break; - } - } - } - - if (g_StageSetup.waypoints != NULL) { - count = g_Rooms[room].numwaypoints; - - for (i = 0; i < count; i++) { - waypointnum = g_Vars.waypointnums[g_Rooms[room].firstwaypoint + i]; - waypoint = &g_StageSetup.waypoints[waypointnum]; - - padUnpack(waypoint->padnum, PADFIELD_FLAGS, &pad); - - if (sp50 && (pad.flags & PADFLAG_20000)) { - padUnsetFlag(waypoint->padnum, PADFLAG_20000); - padnums[padcount] = waypoint->padnum; - padcount++; - totalcount++; - } else if ((pad.flags & PADFLAG_20000) == 0) { - padnums[padcount] = waypoint->padnum; - padcount++; - totalcount++; - } else { - sp54 = true; - } - - if (padcount >= ARRAYCOUNT(padnums)) { - break; - } - } - } - - if (1); - - sp50 = sp54; - } while (sp54 && !totalcount); - - if (!totalcount) { - return false; - } - - i = random() % totalcount; - - if (i < covercount) { - coverUnpack(covernums[i], &cover); - - pos->x = cover.pos->x; - pos->y = cover.pos->y; - pos->z = cover.pos->z; - - *angleptr = atan2f(cover.look->z, cover.look->x); - *padnumptr = -1; - *covernumptr = covernums[i]; - } else { - i -= covercount; - padUnpack(padnums[i], PADFIELD_POS | PADFIELD_LOOK, &pad); - - pos->x = pad.pos.x; - pos->y = pad.pos.y; - pos->z = pad.pos.z; - - *angleptr = atan2f(pad.look.z, pad.look.x); - *padnumptr = padnums[i]; - *covernumptr = -1; - } - - return true; -} - -bool func0f19af10(s32 challengeindex) +bool challengeIsAvailable(s32 challengeindex) { return (g_MpChallenges[challengeindex].availability & 1) != 0; } -bool mpIsChallengeAvailableToPlayer(s32 chrnum, s32 challengeindex) +bool ChallengeIsAvailableToPlayer(s32 chrnum, s32 challengeindex) { if ((g_MpSetup.chrslots & (1 << chrnum)) == 0) { return 0; @@ -216,12 +72,12 @@ bool mpIsChallengeAvailableToPlayer(s32 chrnum, s32 challengeindex) return ((g_MpChallenges[challengeindex].availability & (2 << chrnum)) != 0); } -bool mpIsChallengeAvailableToAnyPlayer(s32 challengeindex) +bool challengeIsAvailableToAnyPlayer(s32 challengeindex) { return (g_MpChallenges[challengeindex].availability & (((g_MpSetup.chrslots & 0xf) << 1) | 1)) != 0; } -void mpDetermineUnlockedFeatures(void) +void challengeDetermineUnlockedFeatures(void) { s32 challengeindex; s32 numgifted; // number of unlocked but not completed challenges @@ -242,10 +98,10 @@ void mpDetermineUnlockedFeatures(void) for (challengeindex = 0; challengeindex < 30; challengeindex++) { flag = 0; - if (mpIsChallengeCompletedByAnyPlayerWithNumPlayers(challengeindex, 1) - || mpIsChallengeCompletedByAnyPlayerWithNumPlayers(challengeindex, 2) - || mpIsChallengeCompletedByAnyPlayerWithNumPlayers(challengeindex, 3) - || mpIsChallengeCompletedByAnyPlayerWithNumPlayers(challengeindex, 4)) { + if (challengeIsCompletedByAnyPlayerWithNumPlayers(challengeindex, 1) + || challengeIsCompletedByAnyPlayerWithNumPlayers(challengeindex, 2) + || challengeIsCompletedByAnyPlayerWithNumPlayers(challengeindex, 3) + || challengeIsCompletedByAnyPlayerWithNumPlayers(challengeindex, 4)) { // Completed challenge flag = 1; } else if (challengeindex < 4) { @@ -253,10 +109,10 @@ void mpDetermineUnlockedFeatures(void) flag = 1; numgifted++; } else if (challengeindex > 0 - && (mpIsChallengeCompletedByAnyPlayerWithNumPlayers(challengeindex - 1, 1) - || mpIsChallengeCompletedByAnyPlayerWithNumPlayers(challengeindex - 1, 2) - || mpIsChallengeCompletedByAnyPlayerWithNumPlayers(challengeindex - 1, 3) - || mpIsChallengeCompletedByAnyPlayerWithNumPlayers(challengeindex - 1, 4))) { + && (challengeIsCompletedByAnyPlayerWithNumPlayers(challengeindex - 1, 1) + || challengeIsCompletedByAnyPlayerWithNumPlayers(challengeindex - 1, 2) + || challengeIsCompletedByAnyPlayerWithNumPlayers(challengeindex - 1, 3) + || challengeIsCompletedByAnyPlayerWithNumPlayers(challengeindex - 1, 4))) { // Challenges are available if their previous one is complete flag = 1; numgifted++; @@ -285,10 +141,10 @@ void mpDetermineUnlockedFeatures(void) for (challengeindex = 0; challengeindex < 30; challengeindex++) { flag = 0; - if (mpIsChallengeCompletedByPlayerWithNumPlayers(j, challengeindex, 1) - || mpIsChallengeCompletedByPlayerWithNumPlayers(j, challengeindex, 2) - || mpIsChallengeCompletedByPlayerWithNumPlayers(j, challengeindex, 3) - || mpIsChallengeCompletedByPlayerWithNumPlayers(j, challengeindex, 4)) { + if (challengeIsCompletedByPlayerWithNumPlayers(j, challengeindex, 1) + || challengeIsCompletedByPlayerWithNumPlayers(j, challengeindex, 2) + || challengeIsCompletedByPlayerWithNumPlayers(j, challengeindex, 3) + || challengeIsCompletedByPlayerWithNumPlayers(j, challengeindex, 4)) { // Completed challenge flag = 2 << j; } else if (challengeindex < 4) { @@ -299,10 +155,10 @@ void mpDetermineUnlockedFeatures(void) // Challenges are available if their previous one is complete prev = challengeindex - 1; - if (mpIsChallengeCompletedByPlayerWithNumPlayers(j, prev, 1) - || mpIsChallengeCompletedByPlayerWithNumPlayers(j, prev, 2) - || mpIsChallengeCompletedByPlayerWithNumPlayers(j, prev, 3) - || mpIsChallengeCompletedByPlayerWithNumPlayers(j, prev, 4)) { + if (challengeIsCompletedByPlayerWithNumPlayers(j, prev, 1) + || challengeIsCompletedByPlayerWithNumPlayers(j, prev, 2) + || challengeIsCompletedByPlayerWithNumPlayers(j, prev, 3) + || challengeIsCompletedByPlayerWithNumPlayers(j, prev, 4)) { flag = 2 << j; numgifted++; } @@ -324,7 +180,7 @@ void mpDetermineUnlockedFeatures(void) flag = 0; for (challengeindex = 0; challengeindex < 30; challengeindex++) { - if (mpIsChallengeAvailableToAnyPlayer(challengeindex)) { + if (challengeIsAvailableToAnyPlayer(challengeindex)) { for (i = 0; i < 16; i++) { if (g_MpChallenges[challengeindex].unlockfeatures[i] == j) { flag |= 1; @@ -341,7 +197,7 @@ void mpDetermineUnlockedFeatures(void) for (challengeindex = 0; challengeindex < 30; challengeindex++) { for (prev = 0; prev < 4; prev++) { - if (mpIsChallengeAvailableToPlayer(prev, challengeindex)) { + if (ChallengeIsAvailableToPlayer(prev, challengeindex)) { for (i = 0; i < 16; i++) { if (g_MpChallenges[challengeindex].unlockfeatures[i] == j) { flag |= 2 << prev; @@ -365,7 +221,7 @@ void mpDetermineUnlockedFeatures(void) func0f1895e8(); // If the ability to have 8 simulants hasn't been unlocked, limit them to 4 - if (!mpIsFeatureUnlocked(MPFEATURE_8BOTS)) { + if (!challengeIsFeatureUnlocked(MPFEATURE_8BOTS)) { for (k = 4; k < MAX_BOTS; k++) { if (g_MpSetup.chrslots & (1 << (4 + k))) { mpRemoveSimulant(k); @@ -378,7 +234,7 @@ void mpDetermineUnlockedFeatures(void) } } -void mpPerformSanityChecks(void) +void challengePerformSanityChecks(void) { if (g_BossFile.locktype == MPLOCKTYPE_CHALLENGE) { s32 numplayers = 0; @@ -407,19 +263,19 @@ void mpPerformSanityChecks(void) if (g_MpSetup.scenario == MPSCENARIO_KINGOFTHEHILL) { g_Vars.mphilltime = 10; } - } else if (!mpIsFeatureUnlocked(MPFEATURE_8BOTS)) { + } else if (!challengeIsFeatureUnlocked(MPFEATURE_8BOTS)) { // Limit to 4 players and 4 simulants g_MpSetup.chrslots &= 0x00ff; } } -s32 mpGetNumAvailableChallenges(void) +s32 challengeGetNumAvailable(void) { s32 challengeindex; s32 count = 0; for (challengeindex = 0; challengeindex != NUM_CHALLENGES; challengeindex++) { - if (mpIsChallengeAvailableToAnyPlayer(challengeindex)) { + if (challengeIsAvailableToAnyPlayer(challengeindex)) { count++; } } @@ -427,20 +283,20 @@ s32 mpGetNumAvailableChallenges(void) return count; } -char *mpChallengeGetName(s32 challengeindex) +char *challengeGetName(s32 challengeindex) { return langGet(g_MpChallenges[challengeindex].name); } -char *mpGetChallengeNameBySlot(s32 slot) +char *challengeGetNameBySlot(s32 slot) { s32 index = 0; s32 i; for (i = 0; i < 30; i++) { - if (mpIsChallengeAvailableToAnyPlayer(i)) { + if (challengeIsAvailableToAnyPlayer(i)) { if (index == slot) { - return mpChallengeGetName(i); + return challengeGetName(i); } index++; @@ -450,13 +306,13 @@ char *mpGetChallengeNameBySlot(s32 slot) return ""; } -void mpSetCurrentChallenge(s32 slotnum) +void challengeSetCurrentBySlot(s32 slotnum) { s32 challengeindex; g_MpChallengeIndex = 0; for (challengeindex = 0; challengeindex != NUM_CHALLENGES; challengeindex++) { - if (mpIsChallengeAvailableToAnyPlayer(challengeindex)) { + if (challengeIsAvailableToAnyPlayer(challengeindex)) { if (slotnum == 0) { g_MpChallengeIndex = challengeindex; break; @@ -466,23 +322,23 @@ void mpSetCurrentChallenge(s32 slotnum) } } - func0f19c1cc(); + challengeApply(); } -s32 mpGetCurrentChallengeIndex(void) +s32 challengeGetCurrent(void) { return g_MpChallengeIndex; } -bool mpIsChallengeCompletedByAnyChrWithNumPlayersBySlot(s32 slot, s32 numplayers) +bool challengeIsCompletedByAnyChrWithNumPlayersBySlot(s32 slot, s32 numplayers) { s32 availableindex = 0; s32 i; for (i = 0; i < 30; i++) { - if (mpIsChallengeAvailableToAnyPlayer(i)) { + if (challengeIsAvailableToAnyPlayer(i)) { if (availableindex == slot) { - return mpIsChallengeCompletedByAnyPlayerWithNumPlayers(i, numplayers); + return challengeIsCompletedByAnyPlayerWithNumPlayers(i, numplayers); } availableindex++; @@ -492,15 +348,15 @@ bool mpIsChallengeCompletedByAnyChrWithNumPlayersBySlot(s32 slot, s32 numplayers return false; } -bool mpIsChallengeCompletedByChrWithNumPlayersBySlot(s32 mpchrnum, s32 slot, s32 numplayers) +bool challengeIsCompletedByChrWithNumPlayersBySlot(s32 mpchrnum, s32 slot, s32 numplayers) { s32 availableindex = 0; s32 i; for (i = 0; i < 30; i++) { - if (mpIsChallengeAvailableToAnyPlayer(i)) { + if (challengeIsAvailableToAnyPlayer(i)) { if (availableindex == slot) { - return mpIsChallengeCompletedByPlayerWithNumPlayers(mpchrnum, i, numplayers); + return challengeIsCompletedByPlayerWithNumPlayers(mpchrnum, i, numplayers); } availableindex++; @@ -541,7 +397,7 @@ u32 *var800887f4 = &_mpstringsISegmentRomStart; u32 *var800887f8 = &_mpstringsISegmentRomEnd; GLOBAL_ASM( -glabel mpLoadConfig +glabel challengeLoadConfig /* f19b914: 27bdfe38 */ addiu $sp,$sp,-456 /* f19b918: afbf0014 */ sw $ra,0x14($sp) /* f19b91c: afa401c8 */ sw $a0,0x1c8($sp) @@ -629,7 +485,7 @@ glabel mpLoadConfig // Mismatch because the arguments to an addu instruction are swapped. // It's the addu for calculating &bank[confignum]. -//struct mpconfigfull *mpLoadConfig(s32 confignum, u8 *buffer, s32 len) +//struct mpconfigfull *challengeLoadConfig(s32 confignum, u8 *buffer, s32 len) //{ // struct mpconfigfull *mpconfig; // u8 buffer2[sizeof(struct mpstrings) + 40]; @@ -674,20 +530,20 @@ glabel mpLoadConfig // return mpconfig; //} -struct mpconfigfull *mpLoadChallenge(s32 challengeindex, u8 *buffer, s32 len) +struct mpconfigfull *challengeLoad(s32 challengeindex, u8 *buffer, s32 len) { - return mpLoadConfig(g_MpChallenges[challengeindex].confignum, buffer, len); + return challengeLoadConfig(g_MpChallenges[challengeindex].confignum, buffer, len); } -struct mpconfigfull *mpGetNthAvailableChallengeSomething(s32 n, u8 *buffer, s32 len) +struct mpconfigfull *challengeLoadBySlot(s32 n, u8 *buffer, s32 len) { s32 numavailable = 0; s32 challengeindex; for (challengeindex = 0; challengeindex != NUM_CHALLENGES; challengeindex++) { - if (mpIsChallengeAvailableToAnyPlayer(challengeindex)) { + if (challengeIsAvailableToAnyPlayer(challengeindex)) { if (numavailable == n) { - return mpLoadChallenge(challengeindex, buffer, len); + return challengeLoad(challengeindex, buffer, len); } numavailable++; @@ -697,15 +553,15 @@ struct mpconfigfull *mpGetNthAvailableChallengeSomething(s32 n, u8 *buffer, s32 return 0; } -struct mpconfigfull *mpLoadCurrentChallenge(u8 *buffer, s32 len) +struct mpconfigfull *challengeLoadCurrent(u8 *buffer, s32 len) { - return mpLoadChallenge(g_MpChallengeIndex, buffer, len); + return challengeLoad(g_MpChallengeIndex, buffer, len); } /** * This is adding featurenum to the array, provided it's unique. */ -s32 mpForceUnlockFeature(s32 featurenum, u8 *array, s32 tail, s32 len) +s32 challengeForceUnlockFeature(s32 featurenum, u8 *array, s32 tail, s32 len) { s32 i; @@ -723,7 +579,7 @@ s32 mpForceUnlockFeature(s32 featurenum, u8 *array, s32 tail, s32 len) return tail; } -s32 mpForceUnlockSetupFeatures(struct mpsetup *setup, u8 *array, s32 len) +s32 challengeForceUnlockSetupFeatures(struct mpsetup *setup, u8 *array, s32 len) { s32 index = 0; s32 i; @@ -733,7 +589,7 @@ s32 mpForceUnlockSetupFeatures(struct mpsetup *setup, u8 *array, s32 len) s32 featurenum = g_MpWeapons[setup->weapons[i]].unlockfeature; if (featurenum) { - index = mpForceUnlockFeature(featurenum, array, index, len); + index = challengeForceUnlockFeature(featurenum, array, index, len); } } @@ -743,7 +599,7 @@ s32 mpForceUnlockSetupFeatures(struct mpsetup *setup, u8 *array, s32 len) s32 featurenum = g_MpArenas[i].requirefeature; if (featurenum) { - index = mpForceUnlockFeature(featurenum, array, index, len); + index = challengeForceUnlockFeature(featurenum, array, index, len); } } } @@ -753,25 +609,25 @@ s32 mpForceUnlockSetupFeatures(struct mpsetup *setup, u8 *array, s32 len) s32 featurenum = g_MpScenarioOverviews[setup->scenario].requirefeature; if (featurenum) { - index = mpForceUnlockFeature(featurenum, array, index, len); + index = challengeForceUnlockFeature(featurenum, array, index, len); } } // Force unlock the scenario options if (setup->options & MPOPTION_ONEHITKILLS) { - index = mpForceUnlockFeature(MPFEATURE_ONEHITKILLS, array, index, len); + index = challengeForceUnlockFeature(MPFEATURE_ONEHITKILLS, array, index, len); } if (setup->options & (MPOPTION_SLOWMOTION_ON | MPOPTION_SLOWMOTION_SMART)) { - index = mpForceUnlockFeature(MPFEATURE_SLOWMOTION, array, index, len); + index = challengeForceUnlockFeature(MPFEATURE_SLOWMOTION, array, index, len); } return index; } -void mpForceUnlockConfigFeatures(struct mpconfig *config, u8 *array, s32 len, s32 challengeindex) +void challengeForceUnlockConfigFeatures(struct mpconfig *config, u8 *array, s32 len, s32 challengeindex) { - s32 index = mpForceUnlockSetupFeatures(&config->setup, array, len); + s32 index = challengeForceUnlockSetupFeatures(&config->setup, array, len); s32 featurenum; s32 numplayers; s32 i; @@ -783,7 +639,7 @@ void mpForceUnlockConfigFeatures(struct mpconfig *config, u8 *array, s32 len, s3 featurenum = g_BotProfiles[simtype].requirefeature; if (featurenum) { - index = mpForceUnlockFeature(featurenum, array, index, len); + index = challengeForceUnlockFeature(featurenum, array, index, len); } } @@ -794,7 +650,7 @@ void mpForceUnlockConfigFeatures(struct mpconfig *config, u8 *array, s32 len, s3 featurenum = g_BotProfiles[simtype].requirefeature; if (featurenum) { - index = mpForceUnlockFeature(featurenum, array, index, len); + index = challengeForceUnlockFeature(featurenum, array, index, len); } } } @@ -803,7 +659,7 @@ void mpForceUnlockConfigFeatures(struct mpconfig *config, u8 *array, s32 len, s3 featurenum = g_MpBodies[config->simulants[i].mpbodynum].requirefeature; if (featurenum) { - index = mpForceUnlockFeature(featurenum, array, index, len); + index = challengeForceUnlockFeature(featurenum, array, index, len); } } @@ -811,34 +667,34 @@ void mpForceUnlockConfigFeatures(struct mpconfig *config, u8 *array, s32 len, s3 featurenum = g_MpHeads[config->simulants[i].mpheadnum].requirefeature; if (featurenum) { - index = mpForceUnlockFeature(featurenum, array, index, len); + index = challengeForceUnlockFeature(featurenum, array, index, len); } } } #if VERSION >= VERSION_NTSC_1_0 if (challengeindex >= 25) { - index = mpForceUnlockFeature(MPFEATURE_BOTDIFF_DARK, array, index, len); + index = challengeForceUnlockFeature(MPFEATURE_BOTDIFF_DARK, array, index, len); } else if (challengeindex >= 20) { - index = mpForceUnlockFeature(MPFEATURE_STAGE_CARPARK, array, index, len); + index = challengeForceUnlockFeature(MPFEATURE_STAGE_CARPARK, array, index, len); } else if (challengeindex >= 15) { - index = mpForceUnlockFeature(MPFEATURE_SCENARIO_PAC, array, index, len); + index = challengeForceUnlockFeature(MPFEATURE_SCENARIO_PAC, array, index, len); } if (challengeindex >= 10) { - index = mpForceUnlockFeature(MPFEATURE_8BOTS, array, index, len); + index = challengeForceUnlockFeature(MPFEATURE_8BOTS, array, index, len); } #else if (challengeindex >= 10) { - index = mpForceUnlockFeature(MPFEATURE_8BOTS, array, index, len); + index = challengeForceUnlockFeature(MPFEATURE_8BOTS, array, index, len); } if (challengeindex >= 15) { - index = mpForceUnlockFeature(MPFEATURE_SCENARIO_PAC, array, index, len); + index = challengeForceUnlockFeature(MPFEATURE_SCENARIO_PAC, array, index, len); } if (challengeindex >= 20) { - index = mpForceUnlockFeature(MPFEATURE_STAGE_CARPARK, array, index, len); + index = challengeForceUnlockFeature(MPFEATURE_STAGE_CARPARK, array, index, len); } #endif @@ -848,10 +704,10 @@ void mpForceUnlockConfigFeatures(struct mpconfig *config, u8 *array, s32 len, s3 } } -void mpForceUnlockSimulantFeatures(void) +void challengeForceUnlockBotFeatures(void) { s32 numsims = 0; - s32 index = mpForceUnlockSetupFeatures(&g_MpSetup, g_MpFeaturesForceUnlocked, ARRAYCOUNT(g_MpFeaturesForceUnlocked)); + s32 index = challengeForceUnlockSetupFeatures(&g_MpSetup, g_MpFeaturesForceUnlocked, ARRAYCOUNT(g_MpFeaturesForceUnlocked)); s32 i; for (i = 0; i < 8; i++) { @@ -862,7 +718,7 @@ void mpForceUnlockSimulantFeatures(void) s32 featurenum = g_BotProfiles[simtypeindex].requirefeature; if (featurenum) { - index = mpForceUnlockFeature(featurenum, g_MpFeaturesForceUnlocked, index, ARRAYCOUNT(g_MpFeaturesForceUnlocked)); + index = challengeForceUnlockFeature(featurenum, g_MpFeaturesForceUnlocked, index, ARRAYCOUNT(g_MpFeaturesForceUnlocked)); } } @@ -873,7 +729,7 @@ void mpForceUnlockSimulantFeatures(void) s32 featurenum = g_BotProfiles[simtypeindex].requirefeature; if (featurenum) { - index = mpForceUnlockFeature(featurenum, g_MpFeaturesForceUnlocked, index, ARRAYCOUNT(g_MpFeaturesForceUnlocked)); + index = challengeForceUnlockFeature(featurenum, g_MpFeaturesForceUnlocked, index, ARRAYCOUNT(g_MpFeaturesForceUnlocked)); } } @@ -886,7 +742,7 @@ void mpForceUnlockSimulantFeatures(void) s32 featurenum = g_MpBodies[g_BotConfigsArray[i].base.mpbodynum].requirefeature; if (featurenum) { - index = mpForceUnlockFeature(featurenum, g_MpFeaturesForceUnlocked, index, ARRAYCOUNT(g_MpFeaturesForceUnlocked)); + index = challengeForceUnlockFeature(featurenum, g_MpFeaturesForceUnlocked, index, ARRAYCOUNT(g_MpFeaturesForceUnlocked)); } } @@ -895,14 +751,14 @@ void mpForceUnlockSimulantFeatures(void) s32 featurenum = g_MpHeads[g_BotConfigsArray[i].base.mpheadnum].requirefeature; if (featurenum) { - index = mpForceUnlockFeature(featurenum, g_MpFeaturesForceUnlocked, index, ARRAYCOUNT(g_MpFeaturesForceUnlocked)); + index = challengeForceUnlockFeature(featurenum, g_MpFeaturesForceUnlocked, index, ARRAYCOUNT(g_MpFeaturesForceUnlocked)); } } } // Force unlock 8 simulants if (numsims > 4) { - index = mpForceUnlockFeature(MPFEATURE_8BOTS, g_MpFeaturesForceUnlocked, index, ARRAYCOUNT(g_MpFeaturesForceUnlocked)); + index = challengeForceUnlockFeature(MPFEATURE_8BOTS, g_MpFeaturesForceUnlocked, index, ARRAYCOUNT(g_MpFeaturesForceUnlocked)); } // Clear the remainder of the array @@ -910,10 +766,10 @@ void mpForceUnlockSimulantFeatures(void) g_MpFeaturesForceUnlocked[i] = 0; } - mpDetermineUnlockedFeatures(); + challengeDetermineUnlockedFeatures(); } -void func0f19c190(void) +void challengeRemoveForceUnlocks(void) { s32 i; @@ -921,15 +777,15 @@ void func0f19c190(void) g_MpFeaturesForceUnlocked[i] = 0; } - mpDetermineUnlockedFeatures(); + challengeDetermineUnlockedFeatures(); } -void func0f19c1cc(void) +void challengeApply(void) { s32 i; u8 buffer[458]; - mpApplyConfig(mpLoadCurrentChallenge(buffer, 458)); + mpApplyConfig(challengeLoadCurrent(buffer, 458)); mpSetLock(MPLOCKTYPE_CHALLENGE, 5); for (i = 0; i < 4; i++) { @@ -937,27 +793,27 @@ void func0f19c1cc(void) } } -s32 mpRemoveLock(void) +s32 challengeRemovePlayerLock(void) { return mpSetLock(MPLOCKTYPE_NONE, 0); } -void mpLoadAndStoreCurrentChallenge(u8 *buffer, s32 len) +void challengeLoadAndStoreCurrent(u8 *buffer, s32 len) { - g_MpCurrentChallengeConfig = mpLoadCurrentChallenge(buffer, len); + g_MpCurrentChallengeConfig = challengeLoadCurrent(buffer, len); } -void mpClearCurrentChallenge(void) +void challengeUnsetCurrent(void) { g_MpCurrentChallengeConfig = NULL; } -bool mpIsChallengeLoaded(void) +bool challengeIsLoaded(void) { return g_MpCurrentChallengeConfig != NULL; } -char *mpGetCurrentChallengeDescription(void) +char *challengeGetCurrentDescription(void) { if (g_MpCurrentChallengeConfig) { return g_MpCurrentChallengeConfig->strings.description; @@ -966,7 +822,7 @@ char *mpGetCurrentChallengeDescription(void) return ""; } -char *mpconfigGetDescription(struct mpconfigfull *mpconfig) +char *challengeGetConfigDescription(struct mpconfigfull *mpconfig) { if (mpconfig) { return mpconfig->strings.description; @@ -979,16 +835,16 @@ char *mpconfigGetDescription(struct mpconfigfull *mpconfig) * Return the index of the first incomplete challenge, but if it's in the first * 4 then return index 4 because the first 4 are always shown. */ -s32 mpGetAutoFocusedChallengeIndex(s32 mpchrnum) +s32 challengeGetAutoFocusedIndex(s32 mpchrnum) { s32 challengeindex; s32 index = 0; for (challengeindex = 29; challengeindex >= 0; challengeindex--) { - if (mpIsChallengeCompletedByPlayerWithNumPlayers(mpchrnum, challengeindex, 1) || - mpIsChallengeCompletedByPlayerWithNumPlayers(mpchrnum, challengeindex, 2) || - mpIsChallengeCompletedByPlayerWithNumPlayers(mpchrnum, challengeindex, 3) || - mpIsChallengeCompletedByPlayerWithNumPlayers(mpchrnum, challengeindex, 4)) { + if (challengeIsCompletedByPlayerWithNumPlayers(mpchrnum, challengeindex, 1) || + challengeIsCompletedByPlayerWithNumPlayers(mpchrnum, challengeindex, 2) || + challengeIsCompletedByPlayerWithNumPlayers(mpchrnum, challengeindex, 3) || + challengeIsCompletedByPlayerWithNumPlayers(mpchrnum, challengeindex, 4)) { index = challengeindex + 1; break; } @@ -1001,22 +857,22 @@ s32 mpGetAutoFocusedChallengeIndex(s32 mpchrnum) return index; } -char *mpChallengeGetNameWithArg(s32 arg0, s32 challengeindex) +char *xhallengeGetName(s32 arg0, s32 challengeindex) { return langGet(g_MpChallenges[challengeindex].name); } -bool mpIsChallengeCompletedByPlayerWithNumPlayers2(s32 mpchrnum, s32 index, s32 numplayers) +bool challengeIsCompletedByPlayerWithNumPlayers2(s32 mpchrnum, s32 index, s32 numplayers) { - return mpIsChallengeCompletedByPlayerWithNumPlayers(mpchrnum, index, numplayers); + return challengeIsCompletedByPlayerWithNumPlayers(mpchrnum, index, numplayers); } -bool mpIsChallengeCompletedByAnyPlayerWithNumPlayers(s32 index, s32 numplayers) +bool challengeIsCompletedByAnyPlayerWithNumPlayers(s32 index, s32 numplayers) { return (g_MpChallenges[index].completions[numplayers - 1] & 1) != 0; } -void mpSetChallengeCompletedByAnyPlayerWithNumPlayers(s32 index, s32 numplayers, bool completed) +void challengeSetCompletedByAnyPlayerWithNumPlayers(s32 index, s32 numplayers, bool completed) { if (completed) { g_MpChallenges[index].completions[numplayers - 1] |= 1; @@ -1026,12 +882,12 @@ void mpSetChallengeCompletedByAnyPlayerWithNumPlayers(s32 index, s32 numplayers, g_MpChallenges[index].completions[numplayers - 1] &= ~1; } -bool mpIsChallengeCompletedByPlayerWithNumPlayers(s32 mpchrnum, s32 index, s32 numplayers) +bool challengeIsCompletedByPlayerWithNumPlayers(s32 mpchrnum, s32 index, s32 numplayers) { return (g_MpChallenges[index].completions[numplayers - 1] & (2 << mpchrnum)) != 0; } -void mpSetChallengeCompletedByPlayerWithNumPlayers(u32 mpchrnum, s32 index, s32 numplayers, bool completed) +void challengeSetCompletedByPlayerWithNumPlayers(u32 mpchrnum, s32 index, s32 numplayers, bool completed) { if (completed) { g_MpChallenges[index].completions[numplayers - 1] |= 2 << mpchrnum; @@ -1041,7 +897,7 @@ void mpSetChallengeCompletedByPlayerWithNumPlayers(u32 mpchrnum, s32 index, s32 g_MpChallenges[index].completions[numplayers - 1] &= ~(2 << mpchrnum); } -bool mpIsChallengeCompleteForEndscreen(void) +bool challengeIsCompleteForEndscreen(void) { s32 prevplayernum = g_Vars.currentplayernum; s32 result = false; @@ -1071,9 +927,9 @@ bool mpIsChallengeCompleteForEndscreen(void) return result; } -void mpConsiderMarkingCurrentChallengeComplete(void) +void challengeConsiderMarkingComplete(void) { - bool result = mpIsChallengeCompleteForEndscreen(); + bool result = challengeIsCompleteForEndscreen(); #if VERSION == VERSION_PAL_BETA if ((g_CheatsActiveBank0 == 0 && g_CheatsActiveBank1 == 0) && (result || debugIsSetCompleteEnabled())) @@ -1086,20 +942,20 @@ void mpConsiderMarkingCurrentChallengeComplete(void) u32 prevplayernum; s32 i; - mpSetChallengeCompletedByAnyPlayerWithNumPlayers(g_MpChallengeIndex, PLAYERCOUNT(), 1); + challengeSetCompletedByAnyPlayerWithNumPlayers(g_MpChallengeIndex, PLAYERCOUNT(), 1); prevplayernum = g_Vars.currentplayernum; for (i = 0; i < PLAYERCOUNT(); i++) { setCurrentPlayerNum(i); - mpSetChallengeCompletedByPlayerWithNumPlayers(g_Vars.currentplayerstats->mpindex, g_MpChallengeIndex, PLAYERCOUNT(), true); + challengeSetCompletedByPlayerWithNumPlayers(g_Vars.currentplayerstats->mpindex, g_MpChallengeIndex, PLAYERCOUNT(), true); } setCurrentPlayerNum(prevplayernum); - mpDetermineUnlockedFeatures(); + challengeDetermineUnlockedFeatures(); } } -bool mpIsFeatureUnlocked(s32 featurenum) +bool challengeIsFeatureUnlocked(s32 featurenum) { if (featurenum == 0) { return true; @@ -1108,7 +964,7 @@ bool mpIsFeatureUnlocked(s32 featurenum) return (g_MpFeaturesUnlocked[featurenum] & 1) != 0; } -bool mpIsFeatureUnlockedByPlayer(u32 numplayers, s32 featurenum) +bool challengeIsFeatureUnlockedByPlayer(u32 numplayers, s32 featurenum) { if (featurenum == 0) { return true; @@ -1117,7 +973,7 @@ bool mpIsFeatureUnlockedByPlayer(u32 numplayers, s32 featurenum) return (g_MpFeaturesUnlocked[featurenum] & (2 << numplayers)) != 0; } -bool mpIsFeatureUnlockedByDefault(s32 featurenum) +bool challengeIsFeatureUnlockedByDefault(s32 featurenum) { if (featurenum) { return false; diff --git a/src/game/game_00b210.c b/src/game/challengeinit.c similarity index 56% rename from src/game/game_00b210.c rename to src/game/challengeinit.c index f54f5e78c..ca005e728 100644 --- a/src/game/game_00b210.c +++ b/src/game/challengeinit.c @@ -1,6 +1,6 @@ #include #include "constants.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/mplayer/mplayer.h" #include "bss.h" #include "data.h" @@ -19,14 +19,14 @@ void challengesInit(void) g_MpChallenges[i].completions[2] = 0; g_MpChallenges[i].completions[3] = 0; - mpconfig = mpLoadChallenge(i, buffer, 0x1ca); - mpForceUnlockConfigFeatures(&mpconfig->config, g_MpChallenges[i].unlockfeatures, 16, i); + mpconfig = challengeLoad(i, buffer, 0x1ca); + challengeForceUnlockConfigFeatures(&mpconfig->config, g_MpChallenges[i].unlockfeatures, 16, i); } for (i = 0; i < mpGetNumPresets(); i++) { - mpconfig = mpLoadConfig(g_MpPresets[i].confignum, buffer, 0x1ca); - mpForceUnlockConfigFeatures(&mpconfig->config, g_MpPresets[i].requirefeatures, 16, -1); + mpconfig = challengeLoadConfig(g_MpPresets[i].confignum, buffer, 0x1ca); + challengeForceUnlockConfigFeatures(&mpconfig->config, g_MpPresets[i].requirefeatures, 16, -1); } - mpDetermineUnlockedFeatures(); + challengeDetermineUnlockedFeatures(); } diff --git a/src/game/chr.c b/src/game/chr.c index 3a565375b..62cb796c4 100644 --- a/src/game/chr.c +++ b/src/game/chr.c @@ -11,11 +11,11 @@ #include "game/objectives.h" #include "game/game_096360.h" #include "game/bondgun.h" -#include "game/game_0abe70.h" +#include "game/gunfx.h" #include "game/game_0b0fd0.h" #include "game/game_0b28d0.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/player.h" #include "game/game_0c33f0.h" #include "game/playermgr.h" @@ -26,7 +26,6 @@ #include "game/smoke.h" #include "game/sparks.h" #include "game/bg.h" -#include "game/game_165670.h" #include "game/file.h" #include "game/mplayer/setup.h" #include "game/bot.h" @@ -1661,7 +1660,7 @@ void chrHandleJointPositioned(s32 joint, Mtxf *mtx) return; } - mtx00015be0(currentPlayerGetUnk174c(), mtx); + mtx00015be0(camGetUnk174c(), mtx); sp138.x = mtx->m[3][0]; sp138.y = mtx->m[3][1]; @@ -1707,7 +1706,7 @@ void chrHandleJointPositioned(s32 joint, Mtxf *mtx) mtx->m[3][1] = sp138.y; mtx->m[3][2] = sp138.z; - mtx00015be0(currentPlayerGetMatrix1740(), mtx); + mtx00015be0(camGetMatrix1740(), mtx); } else { if (g_CurModelChr->model->filedata->skel == &g_SkelChr) { lshoulderjoint = 2; @@ -1870,7 +1869,7 @@ void chrHandleJointPositioned(s32 joint, Mtxf *mtx) yrot += M_BADTAU; } - mtx00015be0(currentPlayerGetUnk174c(), mtx); + mtx00015be0(camGetUnk174c(), mtx); sp70.x = mtx->m[3][0]; sp70.y = mtx->m[3][1]; @@ -1915,7 +1914,7 @@ void chrHandleJointPositioned(s32 joint, Mtxf *mtx) mtx->m[3][1] = sp70.y; mtx->m[3][2] = sp70.z; - mtx00015be0(currentPlayerGetMatrix1740(), mtx); + mtx00015be0(camGetMatrix1740(), mtx); } } } @@ -2918,7 +2917,7 @@ s32 chrTick(struct prop *prop) sp190.z = cosf(angle) * 19; mtx4LoadTranslation(&sp190, &sp1a8); - mtx4MultMtx4InPlace(currentPlayerGetMatrix1740(), &sp1a8); + mtx4MultMtx4InPlace(camGetMatrix1740(), &sp1a8); sp210.unk00 = &sp1a8; } else if (prop->type == PROPTYPE_PLAYER) { u8 stack[0x14]; @@ -2935,13 +2934,13 @@ s32 chrTick(struct prop *prop) sp17c.z = sinf(-sp178) * sp130; mtx4LoadTranslation(&sp17c, &sp1a8); - mtx4MultMtx4InPlace(currentPlayerGetMatrix1740(), &sp1a8); + mtx4MultMtx4InPlace(camGetMatrix1740(), &sp1a8); sp210.unk00 = &sp1a8; } else { - sp210.unk00 = currentPlayerGetMatrix1740(); + sp210.unk00 = camGetMatrix1740(); } } else { - sp210.unk00 = currentPlayerGetMatrix1740(); + sp210.unk00 = camGetMatrix1740(); } sp210.unk10 = gfxAllocate(model->filedata->nummatrices * sizeof(Mtxf)); @@ -2961,7 +2960,7 @@ s32 chrTick(struct prop *prop) f32 xdiff; f32 ydiff; f32 zdiff; - f32 sp114 = currentPlayerGetLodScaleZ(); + f32 sp114 = camGetLodScaleZ(); bool restore = false; f32 prevfrac; s32 prevframea; @@ -3280,7 +3279,7 @@ bool chr0f024738(struct chrdata *chr) + thing->unk06c.m[1][2] * campos->f[1] + thing->unk06c.m[2][2] * campos->f[2]) + thing->unk06c.m[3][2]; - mtx00015be4(&thing->unk06c, currentPlayerGetUnk174c(), &thing->unk0ac); + mtx00015be4(&thing->unk06c, camGetUnk174c(), &thing->unk0ac); thing->unk00c = true; } @@ -3388,13 +3387,13 @@ bool chr0f024b18(struct model *model, struct modelnode *node) sp88.z = thing->bbox.zmin; } - mtx00015be4(currentPlayerGetMatrix1740(), &thing->unk02c, &thing->unk0ec); + mtx00015be4(camGetMatrix1740(), &thing->unk02c, &thing->unk0ec); mtx4TransformVec(&thing->unk0ec, &spa0, &sp70); - func0f0b4dec(&sp70, thing->unk134); + cam0f0b4dec(&sp70, thing->unk134); mtx4TransformVec(&thing->unk0ec, &sp94, &sp70); - func0f0b4dec(&sp70, thing->unk13c); + cam0f0b4dec(&sp70, thing->unk13c); mtx4TransformVec(&thing->unk0ec, &sp88, &sp70); - func0f0b4dec(&sp70, thing->unk144); + cam0f0b4dec(&sp70, thing->unk144); thing->unk130 = 1; thing->unk14c = thing->unk13c[1] - thing->unk134[1]; @@ -3448,7 +3447,7 @@ bool chr0f024b18(struct model *model, struct modelnode *node) } mtx4TransformVec(mtx, &sp64, &sp70); - func0f0b4dec(&sp70, sp80); + cam0f0b4dec(&sp70, sp80); value = thing->unk14c * sp80[0] + thing->unk150 * sp80[1] - thing->unk154; @@ -5388,9 +5387,9 @@ void chr0f027994(struct prop *prop, struct shotdata *shotdata, bool arg2, bool a while (spc0 > 0) { if (func0f084594(model, node, &shotdata->unk00, &shotdata->unk0c, &sp88, &sp84, &sp80)) { mtx4TransformVec(&model->matrices[sp84], &sp88.unk00, &spdc); - mtx4TransformVecInPlace(currentPlayerGetUnk174c(), &spdc); + mtx4TransformVecInPlace(camGetUnk174c(), &spdc); mtx4RotateVec(&model->matrices[sp84], &sp88.unk0c, &spd0); - mtx4RotateVecInPlace(currentPlayerGetUnk174c(), &spd0); + mtx4RotateVecInPlace(camGetUnk174c(), &spd0); break; } @@ -5402,8 +5401,8 @@ void chr0f027994(struct prop *prop, struct shotdata *shotdata, bool arg2, bool a if (spc0 > 0) { if (func0f06bea0(model, model->filedata->rootnode, model->filedata->rootnode, &shotdata->unk00, &shotdata->unk0c, &sp88.unk00, &sp70, &node, &spc0, &sp84, &sp80)) { - mtx4TransformVec(currentPlayerGetUnk174c(), &sp88.unk00, &spdc); - mtx4RotateVec(currentPlayerGetUnk174c(), &sp88.unk0c, &spd0); + mtx4TransformVec(camGetUnk174c(), &sp88.unk00, &spdc); + mtx4RotateVec(camGetUnk174c(), &sp88.unk0c, &spd0); } else { spc0 = 0; } @@ -5416,7 +5415,7 @@ void chr0f027994(struct prop *prop, struct shotdata *shotdata, bool arg2, bool a } if (spc0 > 0) { - mtx = currentPlayerGetMatrix1740(); + mtx = camGetMatrix1740(); sp68 = spdc.x * mtx->m[0][2] + spdc.y * mtx->m[1][2] + spdc.z * mtx->m[2][2] + mtx->m[3][2]; sp68 = -sp68; @@ -5470,7 +5469,7 @@ void chrHit(struct shotdata *shotdata, struct hit *hit) sp98.y = shotdata->unk00.y - (hit->distance * shotdata->unk0c.y) / shotdata->unk0c.z; sp98.z = shotdata->unk00.z - hit->distance; - mtx4TransformVec(currentPlayerGetUnk174c(), &sp98, &hitpos); + mtx4TransformVec(camGetUnk174c(), &sp98, &hitpos); bgunSetHitPos(&hitpos); bgunPlayPropHitSound(&shotdata->gset, hit->prop, -1); @@ -6788,7 +6787,7 @@ glabel var7f1a9ba0pf /* f029df4: 24060004 */ li $a2,0x4 /* f029df8: 24070001 */ li $a3,0x1 /* f029dfc: afa00018 */ sw $zero,0x18($sp) -/* f029e00: 0fc2cfb8 */ jal func0f0b39c0 +/* f029e00: 0fc2cfb8 */ jal tex0f0b39c0 /* f029e04: e7ae016c */ swc1 $f14,0x16c($sp) /* f029e08: 8fa80204 */ lw $t0,0x204($sp) /* f029e0c: c7ae016c */ lwc1 $f14,0x16c($sp) @@ -8950,7 +8949,7 @@ glabel var7f1a9ba0pf /* f029da0: 24060004 */ li $a2,0x4 /* f029da4: 24070001 */ li $a3,0x1 /* f029da8: afa00018 */ sw $zero,0x18($sp) -/* f029dac: 0fc2cf74 */ jal func0f0b39c0 +/* f029dac: 0fc2cf74 */ jal tex0f0b39c0 /* f029db0: e7ae016c */ swc1 $f14,0x16c($sp) /* f029db4: 8fa80204 */ lw $t0,0x204($sp) /* f029db8: c7ae016c */ lwc1 $f14,0x16c($sp) @@ -11106,7 +11105,7 @@ glabel var7f1a8980 /* f029cd0: 24060004 */ addiu $a2,$zero,0x4 /* f029cd4: 24070001 */ addiu $a3,$zero,0x1 /* f029cd8: afa00018 */ sw $zero,0x18($sp) -/* f029cdc: 0fc2ce70 */ jal func0f0b39c0 +/* f029cdc: 0fc2ce70 */ jal tex0f0b39c0 /* f029ce0: e7ae016c */ swc1 $f14,0x16c($sp) /* f029ce4: 8fa80204 */ lw $t0,0x204($sp) /* f029ce8: c7ae016c */ lwc1 $f14,0x16c($sp) @@ -13126,7 +13125,7 @@ Gfx *chrRenderCloak(Gfx *gdl, struct prop *chrprop, struct prop *thisprop) coord.y = mtx->m[3][1]; coord.z = mtx->m[3][2]; - func0f0b4d68(&coord, screenpos); + cam0f0b4d68(&coord, screenpos); if (screenpos[0] < 0.0f) { screenpos[0] = 0.0f; diff --git a/src/game/chraction.c b/src/game/chraction.c index 5effc68c1..a36dcfd4f 100644 --- a/src/game/chraction.c +++ b/src/game/chraction.c @@ -4,21 +4,22 @@ #include "game/chrai.h" #include "game/debug.h" #include "game/dlights.h" +#include "game/footstep.h" #include "game/game_006900.h" -#include "game/game_01b0a0.h" +#include "game/pdmode.h" #include "game/chr.h" -#include "game/game_02cde0.h" +#include "game/body.h" #include "game/prop.h" #include "game/propsnd.h" #include "game/objectives.h" #include "game/atan2f.h" #include "game/acosfasinf.h" #include "game/bondgun.h" -#include "game/game_0abe70.h" +#include "game/gunfx.h" #include "game/game_0b0fd0.h" #include "game/game_0b28d0.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/player.h" #include "game/inv.h" #include "game/playermgr.h" @@ -27,7 +28,6 @@ #include "game/bg.h" #include "game/game_1531a0.h" #include "game/stagetable.h" -#include "game/game_165670.h" #include "game/env.h" #include "game/lv.h" #include "game/bot.h" @@ -9714,7 +9714,7 @@ glabel var7f1a8fc8 /* f03f32c: afa20108 */ sw $v0,0x108($sp) /* f03f330: 00402025 */ or $a0,$v0,$zero /* f03f334: 8cb80004 */ lw $t8,0x4($a1) -/* f03f338: 0fc2d4e9 */ jal func0f0b53a4 +/* f03f338: 0fc2d4e9 */ jal cam0f0b53a4 /* f03f33c: afb800c4 */ sw $t8,0xc4($sp) /* f03f340: 10400037 */ beqz $v0,.L0f03f420 /* f03f344: 8fa40108 */ lw $a0,0x108($sp) @@ -9755,7 +9755,7 @@ glabel var7f1a8fc8 /* f03f3cc: 0c006973 */ jal model0001a5cc /* f03f3d0: 00003025 */ or $a2,$zero,$zero /* f03f3d4: afa200b0 */ sw $v0,0xb0($sp) -/* f03f3d8: 0fc2d4e9 */ jal func0f0b53a4 +/* f03f3d8: 0fc2d4e9 */ jal cam0f0b53a4 /* f03f3dc: 00402025 */ or $a0,$v0,$zero /* f03f3e0: 1040000f */ beqz $v0,.L0f03f420 /* f03f3e4: 8fa400b0 */ lw $a0,0xb0($sp) @@ -10324,13 +10324,13 @@ bool chrGetGunPos(struct chrdata *chr, s32 handnum, struct coord *gunpos) gunpos->y = rodata->pos.y; gunpos->z = rodata->pos.z; - mtx00015be4(currentPlayerGetUnk174c(), spac, &sp6c); + mtx00015be4(camGetUnk174c(), spac, &sp6c); mtx4TransformVecInPlace(&sp6c, gunpos); result = true; } else if ((part1 = modelGetPart(model->filedata, MODELPART_0001))) { sp64 = model0001a5cc(model, part1, 0); - mtx00015be4(currentPlayerGetUnk174c(), sp64, &sp24); + mtx00015be4(camGetUnk174c(), sp64, &sp24); gunpos->x = sp24.m[3][0]; gunpos->y = sp24.m[3][1]; @@ -10386,13 +10386,13 @@ void chrCalculateShieldHit(struct chrdata *chr, struct coord *pos, struct coord if (prop->flags & (PROPFLAG_ONTHISSCREENTHISTICK | PROPFLAG_ONANYSCREENTHISTICK | PROPFLAG_ONANYSCREENPREVTICK)) { bestnode = NULL; bestvolume = MAXFLOAT; - lVar4 = func0f0b5050(chr->model->matrices); + lVar4 = cam0f0b5050(chr->model->matrices); if (lVar4) { mtx4TransformVec(lVar4, pos, &sp124); mtx4RotateVec(lVar4, vector, &sp118); - isdifferentmtx = (currentPlayerGetMatrix1740() != lVar4); + isdifferentmtx = (camGetMatrix1740() != lVar4); node = chr->model->filedata->rootnode; while (node) { @@ -22621,7 +22621,7 @@ void chrTickPatrol(struct chrdata *chr) chrNavTickMagic(chr, &chr->act_patrol.waydata, func0f0370a8(chr), &sp58, sp48); } - chrCheckFootstepMagic(chr); + footstepCheckMagic(chr); } else { arrivinglaterally = posIsArrivingLaterallyAtPos(&chr->prevpos, &prop->pos, &sp58, 30); arriving = posIsArrivingAtPos(&chr->prevpos, &prop->pos, &sp58, 30); @@ -22641,7 +22641,7 @@ void chrTickPatrol(struct chrdata *chr) } chrNavTickMain(chr, &sp58, &chr->act_patrol.waydata, true); - chrCheckFootstep(chr); + footstepCheckDefault(chr); } } @@ -22935,10 +22935,10 @@ void chraTick(struct chrdata *chr) #endif if (pass) { - chrCheckFootstep(chr); + footstepCheckDefault(chr); } } else { - chrCheckFootstepMagic(chr); + footstepCheckMagic(chr); } } @@ -25631,7 +25631,7 @@ bool chrCanSeeTargetWithExtraCheck(struct chrdata *chr) bgun0f0a0c08(&sp68, &sp56); modelGetRootPosition(model, &sp44); - mtx4TransformVecInPlace(currentPlayerGetMatrix1740(), &sp44); + mtx4TransformVecInPlace(camGetMatrix1740(), &sp44); if (func0f06b39c(&sp68, &sp56, &sp44, somefloat)) { return true; @@ -26112,7 +26112,7 @@ bool func0f04aeb0(struct coord *pos, s16 *rooms) if (rooms[i] != -1) { // Room is visible by player - result = !func0f0b5d38(pos, 200, func0f158140(rooms[i])); + result = !cam0f0b5d38(pos, 200, func0f158140(rooms[i])); } } @@ -26293,7 +26293,7 @@ struct prop *chrSpawnAtCoord(s32 bodynum, s32 headnum, struct coord *pos, s16 *r if (chrAdjustPosForSpawn(20, &pos2, rooms2, angle, (spawnflags & SPAWNFLAG_00000010) != 0, 0)) #endif { - struct model *model = modelAllocateChr(bodynum, headnum, spawnflags); + struct model *model = bodyAllocateModel(bodynum, headnum, spawnflags); struct chrdata *chr; if (model) { @@ -28611,7 +28611,7 @@ Gfx *chrsRenderChrStats(Gfx *gdl, s16 *rooms) mtx4TransformVecInPlace(g_Vars.currentplayer->matrix1740, &sp20c); if (sp20c.z < -100 && sp20c.z > -1000) { - func0f0b4eb8(&sp20c, sp204, g_Vars.currentplayer->c_perspfovy, g_Vars.currentplayer->c_perspaspect); + cam0f0b4eb8(&sp20c, sp204, g_Vars.currentplayer->c_perspfovy, g_Vars.currentplayer->c_perspaspect); x = sp204[0]; y = sp204[1]; diff --git a/src/game/chraicommands.c b/src/game/chraicommands.c index 8c2b0fd4d..bbe3e0c74 100644 --- a/src/game/chraicommands.c +++ b/src/game/chraicommands.c @@ -12,7 +12,7 @@ #include "game/title.h" #include "game/chr.h" #include "game/prop.h" -#include "game/game_091e10.h" +#include "game/setuputils.h" #include "game/propsnd.h" #include "game/objectives.h" #include "game/atan2f.h" @@ -28,7 +28,6 @@ #include "game/weather.h" #include "game/bg.h" #include "game/stagetable.h" -#include "game/game_165670.h" #include "game/env.h" #include "game/lv.h" #include "game/music.h" @@ -5287,10 +5286,10 @@ bool ai00df(void) struct tag *tag = tagFindById(cmd[2]); if (tag) { - s32 cmdindex = tagGetCommandIndex(tag); + s32 cmdindex = setupGetCmdIndexByTag(tag); if (cmdindex >= 0) { - void *ptr = setupGetPtrToCommandByIndex(cmdindex + tag->cmdoffset); + void *ptr = setupGetCmdByIndex(cmdindex + tag->cmdoffset); playerPrepareWarpType2(ptr, cmd[4] | (cmd[3] << 8), cmd[6] | (cmd[5] << 8)); } } diff --git a/src/game/game_1577f0.c b/src/game/collisionutils.c similarity index 100% rename from src/game/game_1577f0.c rename to src/game/collisionutils.c diff --git a/src/game/credits.c b/src/game/credits.c index 9d488d7e0..e4d0b042c 100644 --- a/src/game/credits.c +++ b/src/game/credits.c @@ -2,7 +2,7 @@ #include "constants.h" #include "game/game_006900.h" #include "game/title.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/player.h" #include "game/savebuffer.h" #include "game/menugfx.h" @@ -206,7 +206,7 @@ Gfx *creditsRenderBackgroundLayer(Gfx *gdl, u8 type, u8 layernum, f32 arg3, u32 gDPSetCombineMode(gdl++, G_CC_MODULATEI, G_CC_MODULATEI); gSPClearGeometryMode(gdl++, G_CULL_BOTH); - func0f0b39c0(&gdl, &g_TexGeneralConfigs[g_CreditsBgTypes[type].texturenum], 1, 1, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexGeneralConfigs[g_CreditsBgTypes[type].texturenum], 1, 1, 2, 1, NULL); gDPSetRenderMode(gdl++, G_RM_XLU_SURF, G_RM_XLU_SURF2); @@ -2397,7 +2397,7 @@ glabel var7f1b5850 /* f139590: 24140001 */ addiu $s4,$zero,0x1 /* f139594: 00006812 */ mflo $t5 /* f139598: 01ae2821 */ addu $a1,$t5,$t6 -/* f13959c: 0fc2ce70 */ jal func0f0b39c0 +/* f13959c: 0fc2ce70 */ jal tex0f0b39c0 /* f1395a0: 00000000 */ nop /* f1395a4: 8fb90118 */ lw $t9,0x118($sp) /* f1395a8: 3c09ba00 */ lui $t1,0xba00 @@ -5871,7 +5871,7 @@ Gfx *creditsRender(Gfx *gdl) mtx4LoadIdentity(&sp68); mtx00016054(&sp68, matrix); - currentPlayerSetMatrix1740(&sp68); + camSetMatrix1740(&sp68); gSPMatrix(gdl++, osVirtualToPhysical(matrix), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW); diff --git a/src/game/debug2.c b/src/game/debug2.c index 640ee4ebf..cdee53980 100644 --- a/src/game/debug2.c +++ b/src/game/debug2.c @@ -606,7 +606,7 @@ bool debugProcessInput(s8 stickx, s8 sticky, u16 buttons, u16 buttonsthisframe) break; case DEBUGOPT_ALLCHALLENGES: g_DebugAllChallenges ^= 1; - mpDetermineUnlockedFeatures(); + challengeDetermineUnlockedFeatures(); break; case DEBUGOPT_ALLTRAINING: g_DebugAllTraining ^= 1; @@ -647,7 +647,7 @@ bool debugProcessInput(s8 stickx, s8 sticky, u16 buttons, u16 buttonsthisframe) break; case DEBUGOPT_ALLCHALLENGES: g_DebugAllChallenges ^= 1; - mpDetermineUnlockedFeatures(); + challengeDetermineUnlockedFeatures(); break; case DEBUGOPT_ALLBUDDIES: g_DebugAllBuddies ^= 1; diff --git a/src/game/dlights.c b/src/game/dlights.c index a7e3862c2..54163755e 100644 --- a/src/game/dlights.c +++ b/src/game/dlights.c @@ -3,8 +3,8 @@ #include "game/cheats.h" #include "game/dlights.h" #include "game/propsnd.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/player.h" #include "game/smoke.h" #include "game/sparks.h" @@ -437,7 +437,7 @@ glabel var7f1a7d8c /* f0012a4: 44cef800 */ ctc1 $t6,$31 /* f0012a8: acab0000 */ sw $t3,0x0($a1) /* f0012ac: afa50028 */ sw $a1,0x28($sp) -/* f0012b0: 0fc2d5ea */ jal currentPlayerGetUnk175c +/* f0012b0: 0fc2d5ea */ jal camGetUnk175c /* f0012b4: 26100008 */ addiu $s0,$s0,0x8 /* f0012b8: 8fa50028 */ lw $a1,0x28($sp) /* f0012bc: 3c0c0382 */ lui $t4,0x382 @@ -446,7 +446,7 @@ glabel var7f1a7d8c /* f0012c8: aca20004 */ sw $v0,0x4($a1) /* f0012cc: ac6c0000 */ sw $t4,0x0($v1) /* f0012d0: afa30024 */ sw $v1,0x24($sp) -/* f0012d4: 0fc2d5ea */ jal currentPlayerGetUnk175c +/* f0012d4: 0fc2d5ea */ jal camGetUnk175c /* f0012d8: 26100008 */ addiu $s0,$s0,0x8 /* f0012dc: 8fa30024 */ lw $v1,0x24($sp) /* f0012e0: 244d0010 */ addiu $t5,$v0,0x10 @@ -462,8 +462,8 @@ glabel var7f1a7d8c Gfx *func0f001300(Gfx *gdl) { gSPSetLights1(gdl++, var80061460); - gSPLookAtX(gdl++, currentPlayerGetUnk175c()->m[0]); - gSPLookAtY(gdl++, currentPlayerGetUnk175c()->m[1]); + gSPLookAtX(gdl++, camGetUnk175c()->m[0]); + gSPLookAtY(gdl++, camGetUnk175c()->m[1]); return gdl; } @@ -5257,7 +5257,7 @@ glabel func0f004c6c /* f004eb4: 00008025 */ or $s0,$zero,$zero /* f004eb8: 0000a025 */ or $s4,$zero,$zero .L0f004ebc: -/* f004ebc: 0fc2d95b */ jal func0f0b656c +/* f004ebc: 0fc2d95b */ jal portal0f0b656c /* f004ec0: 02202025 */ or $a0,$s1,$zero /* f004ec4: 3c013f00 */ lui $at,0x3f00 /* f004ec8: 44812000 */ mtc1 $at,$f4 diff --git a/src/game/endscreen.c b/src/game/endscreen.c index 074b93288..8821b9c16 100644 --- a/src/game/endscreen.c +++ b/src/game/endscreen.c @@ -3,7 +3,7 @@ #include "game/cheats.h" #include "game/game_006900.h" #include "game/title.h" -#include "game/game_01b0a0.h" +#include "game/pdmode.h" #include "game/objectives.h" #include "game/bondgun.h" #include "game/game_0b0fd0.h" @@ -17,7 +17,7 @@ #include "game/stagetable.h" #include "game/lv.h" #include "game/mplayer/ingame.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/gamefile.h" #include "game/lang.h" #include "game/options.h" @@ -1112,7 +1112,7 @@ void endscreenPrepare(void) } #endif - mpDetermineUnlockedFeatures(); + challengeDetermineUnlockedFeatures(); if (g_MissionConfig.stagenum == STAGE_SKEDARRUINS && g_AltTitleUnlocked == false) { g_AltTitleUnlocked = true; diff --git a/src/game/env.c b/src/game/env.c index 46eb485d8..70360feb5 100644 --- a/src/game/env.c +++ b/src/game/env.c @@ -1,9 +1,8 @@ #include #include "constants.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/bg.h" -#include "game/game_165670.h" #include "bss.h" #include "lib/vi.h" #include "data.h" @@ -405,7 +404,7 @@ bool env0f1666f8(struct coord *pos, f32 arg1) return true; } - mtx = currentPlayerGetMatrix1740(); + mtx = camGetMatrix1740(); sp24.x = pos->x - campos->x; sp24.y = pos->y - campos->y; diff --git a/src/game/explosions.c b/src/game/explosions.c index 9f6122211..6eea14e7f 100644 --- a/src/game/explosions.c +++ b/src/game/explosions.c @@ -4,14 +4,14 @@ #include "game/dlights.h" #include "game/chr.h" #include "game/prop.h" -#include "game/game_091e10.h" +#include "game/setuputils.h" #include "game/propsnd.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/explosions.h" #include "game/smoke.h" #include "game/bg.h" -#include "game/game_1668e0.h" +#include "game/room.h" #include "game/file.h" #include "game/gfxmemory.h" #include "game/mplayer/mplayer.h" @@ -244,7 +244,7 @@ bool explosionCreate(struct prop *sourceprop, struct coord *exppos, s16 *exproom // Bullet holes: only crate the flame (explosion) if within 4 metres if (type == EXPLOSIONTYPE_BULLETHOLE) { - f32 lodscale = currentPlayerGetLodScaleZ(); + f32 lodscale = camGetLodScaleZ(); struct coord *campos = &g_Vars.currentplayer->cam_pos; f32 xdist = exppos->x - campos->x; f32 ydist = exppos->y - campos->y; @@ -779,7 +779,7 @@ void explosionInflictDamage(struct prop *expprop) && ydist <= damageradius && ydist >= -damageradius && zdist <= damageradius && zdist >= -damageradius) { - if (func0f092304(obj, &sp130, &sp124)) { + if (setup0f092304(obj, &sp130, &sp124)) { if (explosionOverlapsProp(exp, prop, &sp130, &sp124)) { candamage = true; } @@ -1244,7 +1244,7 @@ u32 explosionTick(struct prop *prop) u32 explosionTickPlayer(struct prop *prop) { - Mtxf *matrix = currentPlayerGetMatrix1740(); + Mtxf *matrix = camGetMatrix1740(); prop->z = -(matrix->m[0][2] * prop->pos.x + matrix->m[1][2] * prop->pos.y + matrix->m[2][2] * prop->pos.z + matrix->m[3][2]); @@ -1286,7 +1286,7 @@ Gfx *explosionRender(struct prop *prop, Gfx *gdl, bool withalpha) if (roomnum != -1) { struct screenbox screenbox; - struct coord *coord = func0f166dd0(roomnum); + struct coord *coord = room0f166dd0(roomnum); u32 *colour; s32 tmp; @@ -1297,9 +1297,9 @@ Gfx *explosionRender(struct prop *prop, Gfx *gdl, bool withalpha) } gSPClearGeometryMode(gdl++, G_CULL_BOTH | G_FOG); - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); - gdl = func0f166d7c(gdl, roomnum); + gdl = room0f166d7c(gdl, roomnum); gSPDisplayList(gdl++, g_TexGdl2); @@ -1366,7 +1366,7 @@ Gfx *explosionRender(struct prop *prop, Gfx *gdl, bool withalpha) } } - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); #if PAL tmp = (g_ExplosionTypes[exp->type].flarespeed * 15.0f) * 0.83333331346512f; @@ -1415,7 +1415,7 @@ glabel var7f1b55c4 /* f12cd8c: afa700dc */ sw $a3,0xdc($sp) /* f12cd90: 0fc59e59 */ jal gfxAllocateVertices /* f12cd94: 24040004 */ addiu $a0,$zero,0x4 -/* f12cd98: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f12cd98: 0fc2d5de */ jal camGetUnk174c /* f12cd9c: 00408025 */ or $s0,$v0,$zero /* f12cda0: 8faa00d0 */ lw $t2,0xd0($sp) /* f12cda4: 00405825 */ or $t3,$v0,$zero diff --git a/src/game/filelist.c b/src/game/filelist.c index 1598be431..d77334e11 100644 --- a/src/game/filelist.c +++ b/src/game/filelist.c @@ -7,7 +7,7 @@ #include "game/savebuffer.h" #include "game/filelist.h" #include "game/bg.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/training.h" #include "game/gamefile.h" #include "game/mplayer/mplayer.h" diff --git a/src/game/filemgr.c b/src/game/filemgr.c index 24ccbee18..2a41b2fa9 100644 --- a/src/game/filemgr.c +++ b/src/game/filemgr.c @@ -1,7 +1,7 @@ #include #include "constants.h" #include "game/filelist.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/savebuffer.h" #include "game/menu.h" #include "game/filemgr.h" @@ -2302,7 +2302,7 @@ Gfx *filemgrRenderPerfectHeadThumbnail(Gfx *gdl, struct menuitemrenderdata *rend gDPSetTextureLOD(gdl++, G_TL_TILE); gDPSetTextureConvert(gdl++, G_TC_FILT); - func0f0b39c0(&gdl, texture, 1, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, texture, 1, 0, 2, 1, NULL); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetTextureFilter(gdl++, G_TF_POINT); @@ -3187,7 +3187,7 @@ s32 filemgrChooseAgentListMenuHandler(s32 operation, struct menuitem *item, unio gDPSetTextureLOD(gdl++, G_TL_TILE); gDPSetTextureConvert(gdl++, G_TC_FILT); - func0f0b39c0(&gdl, &g_TexGeneralConfigs[texturenum], 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexGeneralConfigs[texturenum], 2, 0, 2, 1, NULL); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetTextureFilter(gdl++, G_TF_POINT); diff --git a/src/game/game_10c9c0.c b/src/game/fmb.c similarity index 93% rename from src/game/game_10c9c0.c rename to src/game/fmb.c index 7174d41cf..0abe9fb7b 100644 --- a/src/game/game_10c9c0.c +++ b/src/game/fmb.c @@ -2,9 +2,9 @@ #include "constants.h" #include "game/menu.h" #include "game/filemgr.h" -#include "game/game_10c9c0.h" +#include "game/fmb.h" #include "game/mainmenu.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/mplayer/mplayer.h" #include "game/mplayer/scenarios.h" #include "game/mplayer/setup.h" @@ -12,7 +12,7 @@ #include "data.h" #include "types.h" -s32 menuhandler4MbDropOut(s32 operation, struct menuitem *item, union handlerdata *data) +s32 fmbHandleDropOut(s32 operation, struct menuitem *item, union handlerdata *data) { if (operation == MENUOP_SET) { menuPopDialog(); @@ -26,7 +26,7 @@ s32 menuhandler4MbDropOut(s32 operation, struct menuitem *item, union handlerdat return 0; } -s32 menuhandler0010ca1c(s32 operation, struct menuitem *item, union handlerdata *data) +s32 fmdHandleAbortGame(s32 operation, struct menuitem *item, union handlerdata *data) { if (operation == MENUOP_SET) { if (g_Vars.stagenum == STAGE_4MBMENU) { @@ -39,7 +39,7 @@ s32 menuhandler0010ca1c(s32 operation, struct menuitem *item, union handlerdata return 0; } -s32 menuhandler4MbAdvancedSetup(s32 operation, struct menuitem *item, union handlerdata *data) +s32 fmbHandleAdvancedSetup(s32 operation, struct menuitem *item, union handlerdata *data) { if (operation == MENUOP_SET) { func0f0f820c(&g_AdvancedSetup4MbMenuDialog, MENUROOT_4MBMAINMENU); @@ -48,17 +48,17 @@ s32 menuhandler4MbAdvancedSetup(s32 operation, struct menuitem *item, union hand return 0; } -s32 menuhandler0010cabc(s32 operation, struct menuitem *item, union handlerdata *data) +s32 fmbHandleAcceptChallenge(s32 operation, struct menuitem *item, union handlerdata *data) { if (operation == MENUOP_SET) { - mpSetCurrentChallenge(g_Menus[g_MpPlayerNum].main4mb.slotindex); + challengeSetCurrentBySlot(g_Menus[g_MpPlayerNum].main4mb.slotindex); func0f0f820c(&g_MpQuickGo4MbMenuDialog, MENUROOT_4MBMAINMENU); } return 0; } -void fmbmenuReset(void) +void fmbReset(void) { s32 i; u32 prevplayernum = g_MpPlayerNum; @@ -80,7 +80,7 @@ void fmbmenuReset(void) g_Vars.coopplayernum = -1; g_Vars.antiplayernum = -1; - mpDetermineUnlockedFeatures(); + challengeDetermineUnlockedFeatures(); menuPushRootDialog(&g_FilemgrFileSelect4MbMenuDialog, MENUROOT_4MBFILEMGR); @@ -94,7 +94,7 @@ void fmbmenuReset(void) g_MpPlayerNum = prevplayernum; } -s32 menudialog4MbMainMenu(s32 operation, struct menudialogdef *dialogdef, union handlerdata *data) +s32 fmbHandleMainMenu(s32 operation, struct menudialogdef *dialogdef, union handlerdata *data) { if (operation == MENUOP_OPEN) { g_Vars.waitingtojoin[0] = false; @@ -109,8 +109,8 @@ s32 menudialog4MbMainMenu(s32 operation, struct menudialogdef *dialogdef, union g_Vars.mpsetupmenu = MPSETUPMENU_GENERAL; g_Vars.mpquickteam = MPQUICKTEAM_NONE; g_Vars.usingadvsetup = false; - mpClearCurrentChallenge(); - mpRemoveLock(); + challengeUnsetCurrent(); + challengeRemovePlayerLock(); } return false; @@ -231,7 +231,7 @@ struct menuitem g_MpConfirmChallenge4MbMenuItems[] = { { MENUITEMTYPE_SCROLLABLE, DESCRIPTION_MPCONFIG, 0x00000000, 0x0000007c, 55, NULL }, #endif { MENUITEMTYPE_SEPARATOR, 0, 0x00000000, 0x00000000, 0x00000000, NULL }, - { MENUITEMTYPE_SELECTABLE, 0, 0x00000000, L_MPMENU_057, 0x00000000, menuhandler0010cabc }, // "Accept" + { MENUITEMTYPE_SELECTABLE, 0, 0x00000000, L_MPMENU_057, 0x00000000, fmbHandleAcceptChallenge }, // "Accept" { MENUITEMTYPE_SELECTABLE, 0, 0x00000008, L_MPMENU_058, 0x00000000, NULL }, // "Cancel" { MENUITEMTYPE_END, 0, 0x00000000, 0x00000000, 0x00000000, NULL }, }; @@ -263,7 +263,7 @@ struct menuitem g_MainMenu4MbMenuItems[] = { { MENUITEMTYPE_SELECTABLE, 0, 0x00400004, L_MISC_441, 0x00000000, (void *)&g_MpChallenges4MbMenuDialog }, // "Challenges" { MENUITEMTYPE_SELECTABLE, 0, 0x00400004, L_MISC_442, 0x00000001, (void *)&g_MpLoadPresetMenuDialog }, // "Load/Preset Games" { MENUITEMTYPE_SELECTABLE, 0, 0x00400004, L_MISC_443, 0x00000002, (void *)&g_MpQuickTeamMenuDialog }, // "Quick Start" - { MENUITEMTYPE_SELECTABLE, 0, 0x00400000, L_MISC_444, 0x00000003, menuhandler4MbAdvancedSetup }, // "Advanced Setup" + { MENUITEMTYPE_SELECTABLE, 0, 0x00400000, L_MISC_444, 0x00000003, fmbHandleAdvancedSetup }, // "Advanced Setup" { MENUITEMTYPE_SELECTABLE, 0, 0x00400004, L_OPTIONS_305, 0x00000000, (void *)&g_AudioVideo4MbMenuDialog }, // "Audio/Video" { MENUITEMTYPE_SEPARATOR, 0, 0x00000000, 0x00000082, 0x00000000, NULL }, { MENUITEMTYPE_SELECTABLE, 0, 0x00400004, L_OPTIONS_306, 0x00000000, (void *)&g_ChangeAgentMenuDialog }, // "Change Agent" @@ -274,14 +274,14 @@ struct menudialogdef g_MainMenu4MbMenuDialog = { MENUDIALOGTYPE_DEFAULT, L_OPTIONS_302, // "Small but Perfect Menu" g_MainMenu4MbMenuItems, - menudialog4MbMainMenu, + fmbHandleMainMenu, MENUDIALOGFLAG_MPLOCKABLE | MENUDIALOGFLAG_IGNOREBACK, NULL, }; struct menuitem g_MpDropOut4MbMenuItems[] = { { MENUITEMTYPE_LABEL, 0, 0x00000010, L_MPMENU_196, 0x00000000, NULL }, // "Are you sure you want to drop out?" - { MENUITEMTYPE_SELECTABLE, 0, 0x00000000, L_MPMENU_197, 0x00000000, menuhandler4MbDropOut }, // "Drop Out" + { MENUITEMTYPE_SELECTABLE, 0, 0x00000000, L_MPMENU_197, 0x00000000, fmbHandleDropOut }, // "Drop Out" { MENUITEMTYPE_SELECTABLE, 0, 0x00000008, L_MPMENU_198, 0x00000000, NULL }, // "Cancel" { MENUITEMTYPE_END, 0, 0x00000000, 0x00000000, 0x00000000, NULL }, }; @@ -297,7 +297,7 @@ struct menudialogdef g_MpDropOut4MbMenuDialog = { struct menuitem g_UnusedAbortMenuItems[] = { { MENUITEMTYPE_LABEL, 0, 0x00000010, L_MPMENU_053, 0x00000000, NULL }, // "Are you sure you want to abort the game?" - { MENUITEMTYPE_SELECTABLE, 0, 0x00000000, L_MPMENU_054, 0x00000000, menuhandler0010ca1c }, // "Abort" + { MENUITEMTYPE_SELECTABLE, 0, 0x00000000, L_MPMENU_054, 0x00000000, fmdHandleAbortGame }, // "Abort" { MENUITEMTYPE_SELECTABLE, 0, 0x00000008, L_MPMENU_055, 0x00000000, NULL }, // "Cancel" { MENUITEMTYPE_END, 0, 0x00000000, 0x00000000, 0x00000000, NULL }, }; diff --git a/src/game/game_005fd0.c b/src/game/footstep.c similarity index 98% rename from src/game/game_005fd0.c rename to src/game/footstep.c index 9403b1603..ab25d98fa 100644 --- a/src/game/game_005fd0.c +++ b/src/game/footstep.c @@ -66,7 +66,7 @@ struct footstepframe g_FootstepAnims[] = { { ANIM_SKEDAR_RUNNING, 0x00, 0x00 }, }; -bool func0f005fd0(s32 animnum) +bool footstepIsRunning(s32 animnum) { switch (animnum) { case ANIM_001D: @@ -96,10 +96,10 @@ bool func0f005fd0(s32 animnum) return false; } -s32 chrChooseFootstepSound(struct chrdata *chr, s32 footstepindex) +s32 footstepChooseSound(struct chrdata *chr, s32 footstepindex) { s32 floortype; - s32 which; + s32 running; s32 rand; s32 index; @@ -134,11 +134,11 @@ s32 chrChooseFootstepSound(struct chrdata *chr, s32 footstepindex) return result; } - which = func0f005fd0(g_FootstepAnims[footstepindex].animnum); + running = footstepIsRunning(g_FootstepAnims[footstepindex].animnum); do { rand = random() % 8; - index = (which ? 2 : 0) + (rand & 5) + floortype * 8; + index = (running ? 2 : 0) + (rand & 5) + floortype * 8; } while (index == chr->lastfootsample); chr->lastfootsample = index; @@ -148,7 +148,7 @@ s32 chrChooseFootstepSound(struct chrdata *chr, s32 footstepindex) #if VERSION >= VERSION_JPN_FINAL GLOBAL_ASM( -glabel chrCheckFootstep +glabel footstepCheckDefault /* f00626c: 27bdff88 */ addiu $sp,$sp,-120 /* f006270: afbf004c */ sw $ra,0x4c($sp) /* f006274: afb10048 */ sw $s1,0x48($sp) @@ -328,7 +328,7 @@ glabel chrCheckFootstep /* f0064e8: 00000000 */ nop /* f0064ec: a2390190 */ sb $t9,0x190($s1) .JF0f0064f0: -/* f0064f0: 0fc01841 */ jal chrChooseFootstepSound +/* f0064f0: 0fc01841 */ jal footstepChooseSound /* f0064f4: 02202025 */ move $a0,$s1 /* f0064f8: 2401ffff */ li $at,-1 /* f0064fc: 5041001c */ beql $v0,$at,.JF0f006570 @@ -381,7 +381,7 @@ glabel chrCheckFootstep ); #elif VERSION >= VERSION_PAL_FINAL GLOBAL_ASM( -glabel chrCheckFootstep +glabel footstepCheckDefault /* f0061dc: 27bdff88 */ addiu $sp,$sp,-120 /* f0061e0: afbf004c */ sw $ra,0x4c($sp) /* f0061e4: afb10048 */ sw $s1,0x48($sp) @@ -561,7 +561,7 @@ glabel chrCheckFootstep /* f006458: 00000000 */ nop /* f00645c: a2390190 */ sb $t9,0x190($s1) .PF0f006460: -/* f006460: 0fc0181d */ jal chrChooseFootstepSound +/* f006460: 0fc0181d */ jal footstepChooseSound /* f006464: 02202025 */ move $a0,$s1 /* f006468: 2401ffff */ li $at,-1 /* f00646c: 5041001c */ beql $v0,$at,.PF0f0064e0 @@ -614,7 +614,7 @@ glabel chrCheckFootstep ); #elif VERSION >= VERSION_PAL_BETA GLOBAL_ASM( -glabel chrCheckFootstep +glabel footstepCheckDefault /* f0061dc: 27bdff88 */ addiu $sp,$sp,-120 /* f0061e0: afbf004c */ sw $ra,0x4c($sp) /* f0061e4: afb10048 */ sw $s1,0x48($sp) @@ -794,7 +794,7 @@ glabel chrCheckFootstep /* f006458: 00000000 */ nop /* f00645c: a2390190 */ sb $t9,0x190($s1) .PB0f006460: -/* f006460: 0fc0181d */ jal chrChooseFootstepSound +/* f006460: 0fc0181d */ jal footstepChooseSound /* f006464: 02202025 */ move $a0,$s1 /* f006468: 2401ffff */ li $at,-1 /* f00646c: 5041001c */ beql $v0,$at,.PB0f0064e0 @@ -847,7 +847,7 @@ glabel chrCheckFootstep ); #elif VERSION >= VERSION_NTSC_1_0 GLOBAL_ASM( -glabel chrCheckFootstep +glabel footstepCheckDefault /* f0061dc: 27bdff88 */ addiu $sp,$sp,-120 /* f0061e0: afbf004c */ sw $ra,0x4c($sp) /* f0061e4: afb10048 */ sw $s1,0x48($sp) @@ -1027,7 +1027,7 @@ glabel chrCheckFootstep /* f006458: 00000000 */ nop /* f00645c: a2390190 */ sb $t9,0x190($s1) .L0f006460: -/* f006460: 0fc0181d */ jal chrChooseFootstepSound +/* f006460: 0fc0181d */ jal footstepChooseSound /* f006464: 02202025 */ or $a0,$s1,$zero /* f006468: 2401ffff */ addiu $at,$zero,-1 /* f00646c: 5041001c */ beql $v0,$at,.L0f0064e0 @@ -1083,7 +1083,7 @@ glabel chrCheckFootstep ); #else GLOBAL_ASM( -glabel chrCheckFootstep +glabel footstepCheckDefault /* f005f2c: 27bdff88 */ addiu $sp,$sp,-120 /* f005f30: afbf004c */ sw $ra,0x4c($sp) /* f005f34: afb10048 */ sw $s1,0x48($sp) @@ -1263,7 +1263,7 @@ glabel chrCheckFootstep /* f0061a8: 00000000 */ sll $zero,$zero,0x0 /* f0061ac: a2390190 */ sb $t9,0x190($s1) .NB0f0061b0: -/* f0061b0: 0fc01771 */ jal chrChooseFootstepSound +/* f0061b0: 0fc01771 */ jal footstepChooseSound /* f0061b4: 02202025 */ or $a0,$s1,$zero /* f0061b8: 2401ffff */ addiu $at,$zero,-1 /* f0061bc: 5041001a */ beql $v0,$at,.NB0f006228 @@ -1323,7 +1323,7 @@ glabel chrCheckFootstep * It is assumed that the chr is moving normally and not via magic. */ // Mismatch: load of 10.0f into $at is swapped with load of prevframe from stack -//void chrCheckFootstep(struct chrdata *chr) +//void footstepCheckDefault(struct chrdata *chr) //{ // if (debugIsFootstepsEnabled() && PLAYERCOUNT() == 1 && chr) { // chr->footstep = 0; @@ -1355,7 +1355,7 @@ glabel chrCheckFootstep // } // } // -// soundnum = chrChooseFootstepSound(chr, i); +// soundnum = footstepChooseSound(chr, i); // // if (soundnum != -1 && chr->footstep != 0) { // func0f0939f8(NULL, chr->prop, soundnum, -1, @@ -1382,7 +1382,7 @@ glabel chrCheckFootstep * The "magic" method of movement applies when the chr is off-screen. * It uses a computationally simple approach to movement. */ -void chrCheckFootstepMagic(struct chrdata *chr) +void footstepCheckMagic(struct chrdata *chr) { s32 index; f32 frame; @@ -1432,7 +1432,7 @@ void chrCheckFootstepMagic(struct chrdata *chr) } } - soundnum = chrChooseFootstepSound(chr, index); + soundnum = footstepChooseSound(chr, index); if (soundnum != -1 && chr->footstep != 0) { #if VERSION >= VERSION_NTSC_1_0 @@ -1445,7 +1445,7 @@ void chrCheckFootstepMagic(struct chrdata *chr) } } - if (func0f005fd0(g_FootstepAnims[index].animnum)) { + if (footstepIsRunning(g_FootstepAnims[index].animnum)) { if (chr->magicframe > 22) { chr->magicframe -= 22; } diff --git a/src/game/game_000130.c b/src/game/game_000130.c deleted file mode 100644 index af1699300..000000000 --- a/src/game/game_000130.c +++ /dev/null @@ -1,162 +0,0 @@ -#include -#include "constants.h" -#include "game/game_000130.h" -#include "game/floor.h" -#include "bss.h" -#include "lib/anim.h" -#include "data.h" -#include "types.h" - -void bodiesInit(void) -{ - g_NumBondBodies = 0; - - while (g_BondBodies[g_NumBondBodies] >= 0) { - g_NumBondBodies++; - } - - g_NumMaleGuardTeamHeads = 0; - - while (g_MaleGuardTeamHeads[g_NumMaleGuardTeamHeads] >= 0) { - g_NumMaleGuardTeamHeads++; - } - - g_NumFemaleGuardTeamHeads = 0; - - while (g_FemaleGuardTeamHeads[g_NumFemaleGuardTeamHeads] >= 0) { - g_NumFemaleGuardTeamHeads++; - } - - g_NumMaleGuardHeads = 0; - - while (g_MaleGuardHeads[g_NumMaleGuardHeads] >= 0) { - g_NumMaleGuardHeads++; - } - - g_NumFemaleGuardHeads = 0; - - while (g_FemaleGuardHeads[g_NumFemaleGuardHeads] >= 0) { - g_NumFemaleGuardHeads++; - } -} - -u16 func0f0002a0(s16 animnum, s32 frame, s32 endframe) -{ - s16 sp48[4]; - u16 count = 0; - - while (frame < endframe) { - count += anim0002485c(0, 0, &g_SkelChr, animnum, frame, sp48, 0); - frame++; - } - - return count; -} - -s32 func0f000358(s16 animnum, s32 frame, s32 endframe) -{ - s32 count = 0; - s16 sp44[4]; - - while (frame < endframe) { - anim0002485c(0, 0, &g_SkelChr, animnum, frame, sp44, 0); - count += sp44[2]; - frame++; - } - - return count; -} - -s32 func0f00040c(struct attackanimconfig *configs) -{ - s32 count = 0; - struct attackanimconfig *config = configs; - - while (config->animnum != 0) { - u16 value = func0f0002a0(config->animnum, 0, floor(config->unk04)); - - if (config->unk04 > 0) { - if (value < 0x8000) { - config->unk08 = value * 0.00009585853695171f / config->unk04; - } else { - config->unk08 = (value * 0.00009585853695171f - M_BADTAU) / config->unk04; - } - } else { - config->unk08 = 0; - } - - config++; - count++; - } - - return count; -} - -void func0f00052c(struct attackanimgroup **groups) -{ - s32 i; - - for (i = 0; i < 32; i++) { - if (groups[i]->len < 0) { - groups[i]->len = func0f00040c(groups[i]->animcfg); - } - } -} - -s32 func0f000590(struct animtablerow *rows) -{ - s32 i; - - for (i = 0; rows[i].animnum > 0; i++); - - return i; -} - -f32 func0f0005c0(s16 animnum) -{ - f32 tmp = func0f000358(animnum, 0, animGetNumFrames(animnum) - 1) / (f32) animGetNumFrames(animnum); - - var8005f014[animnum] = tmp; - - return tmp * 0.1000000089407f; -} - -void func0f000648(void) -{ - s32 race; - s32 i; - - for (race = 0; race < 5; race++) { - for (i = 0; g_AnimTablesByRace[race][i].hitpart != -1; i++) { - if (g_AnimTablesByRace[race][i].deathanims) { - g_AnimTablesByRace[race][i].deathanimcount = func0f000590(g_AnimTablesByRace[race][i].deathanims); - } else { - g_AnimTablesByRace[race][i].deathanimcount = 0; - } - - if (g_AnimTablesByRace[race][i].injuryanims) { - g_AnimTablesByRace[race][i].injuryanimcount = func0f000590(g_AnimTablesByRace[race][i].injuryanims); - } else { - g_AnimTablesByRace[race][i].injuryanimcount = 0; - } - } - - for (i = 0; var80067fdc[race][i].animnum >= 0; i++) { - var80067fdc[race][i].value = func0f0005c0(var80067fdc[race][i].animnum); - } - } - - func0f000590(g_AnimTableHumanSlumped); - - for (race = 0; race < 2; race++) { - func0f00052c(g_StandHeavyAttackAnims[race]); - func0f00052c(g_StandLightAttackAnims[race]); - func0f00052c(g_StandDualAttackAnims[race]); - func0f00052c(g_KneelHeavyAttackAnims[race]); - func0f00052c(g_KneelLightAttackAnims[race]); - func0f00052c(g_KneelDualAttackAnims[race]); - } - - func0f00040c(g_RollAttackAnims); - func0f00040c(&g_AttackAnimHeavyWalk); -} diff --git a/src/game/game_006900.c b/src/game/game_006900.c index 8cc39049c..b0363bfc8 100644 --- a/src/game/game_006900.c +++ b/src/game/game_006900.c @@ -96,7 +96,6 @@ f32 func0f006ba0(f32 arg0) return tmp; } -#if VERSION < VERSION_NTSC_1_0 f32 func0f006bd0(f32 arg0) { s32 ival = arg0 * 4.0f; @@ -116,4 +115,3 @@ f32 func0f006bd0(f32 arg0) return 0.0f; } -#endif diff --git a/src/game/game_006bd0.c b/src/game/game_006bd0.c deleted file mode 100644 index 0c5b6a398..000000000 --- a/src/game/game_006bd0.c +++ /dev/null @@ -1,47 +0,0 @@ -#include -#include "constants.h" -#include "game/chraction.h" -#include "game/dlights.h" -#include "game/game_006900.h" -#include "game/nbomb.h" -#include "game/chr.h" -#include "game/chraction.h" -#include "game/prop.h" -#include "game/objectives.h" -#include "game/atan2f.h" -#include "game/game_0b3350.h" -#include "game/savebuffer.h" -#include "game/bg.h" -#include "game/file.h" -#include "game/gfxmemory.h" -#include "bss.h" -#include "lib/vi.h" -#include "lib/snd.h" -#include "lib/rng.h" -#include "lib/mtx.h" -#include "lib/lib_317f0.h" -#include "data.h" -#include "types.h" - -#if VERSION >= VERSION_NTSC_1_0 -// In ntsc-bta, this function is in a different file -f32 func0f006bd0(f32 arg0) -{ - s32 ival = arg0 * 4.0f; - f32 fval = arg0 * 4.0f - (f32)(ival / 4) * 4.0f; - - if (fval < 1.0f) { - return fval; - } - - if (fval < 2.0f) { - return 1.0f; - } - - if (fval < 3.0f) { - return 1.0f - (fval - 2.0f); - } - - return 0.0f; -} -#endif diff --git a/src/game/game_00b820.c b/src/game/game_00b820.c index fdc617f95..eee8a7afd 100644 --- a/src/game/game_00b820.c +++ b/src/game/game_00b820.c @@ -4,8 +4,8 @@ #include "game/chrai.h" #include "game/game_00b820.h" #include "game/playerreset.h" -#include "game/game_02cde0.h" -#include "game/game_091e10.h" +#include "game/body.h" +#include "game/setuputils.h" #include "bss.h" #include "lib/memp.h" #include "lib/rng.h" @@ -14,351 +14,6 @@ struct prop *g_DangerousProps[MAX_DANGEROUSPROPS]; -struct stageheadlimit g_StageHeadLimits[3] = { - { STAGE_INFILTRATION, 5 }, - { STAGE_RESCUE, 4 }, - { STAGE_ESCAPE, 5 }, -}; - -u32 var80061708 = 0x00000000; -u32 var8006170c = 0x00000000; - -GLOBAL_ASM( -glabel headsReset -/* f00b820: 27bdffd0 */ addiu $sp,$sp,-48 -/* f00b824: 3c0e8008 */ lui $t6,%hi(g_HeadsAndBodies+0x2) -/* f00b828: 95cecf06 */ lhu $t6,%lo(g_HeadsAndBodies+0x2)($t6) -/* f00b82c: afb10018 */ sw $s1,0x18($sp) -/* f00b830: afb00014 */ sw $s0,0x14($sp) -/* f00b834: 00808025 */ or $s0,$a0,$zero -/* f00b838: afbf002c */ sw $ra,0x2c($sp) -/* f00b83c: afb50028 */ sw $s5,0x28($sp) -/* f00b840: afb40024 */ sw $s4,0x24($sp) -/* f00b844: afb30020 */ sw $s3,0x20($sp) -/* f00b848: afb2001c */ sw $s2,0x1c($sp) -/* f00b84c: 11c00009 */ beqz $t6,.L0f00b874 -/* f00b850: 00008825 */ or $s1,$zero,$zero -/* f00b854: 3c028008 */ lui $v0,%hi(g_HeadsAndBodies) -/* f00b858: 2442cf04 */ addiu $v0,$v0,%lo(g_HeadsAndBodies) -/* f00b85c: 944f0016 */ lhu $t7,0x16($v0) -.L0f00b860: -/* f00b860: 24420014 */ addiu $v0,$v0,0x14 -/* f00b864: ac40fff8 */ sw $zero,-0x8($v0) -/* f00b868: 55e0fffd */ bnezl $t7,.L0f00b860 -/* f00b86c: 944f0016 */ lhu $t7,0x16($v0) -/* f00b870: 00008825 */ or $s1,$zero,$zero -.L0f00b874: -/* f00b874: 0c004b70 */ jal random -/* f00b878: 00000000 */ nop -/* f00b87c: 3c188006 */ lui $t8,%hi(g_NumBondBodies) -/* f00b880: 8f182b00 */ lw $t8,%lo(g_NumBondBodies)($t8) -/* f00b884: 3c018006 */ lui $at,%hi(var80062c80) -/* f00b888: 3c128006 */ lui $s2,%hi(var80062b14) -/* f00b88c: 0058001b */ divu $zero,$v0,$t8 -/* f00b890: 0000c810 */ mfhi $t9 -/* f00b894: ac392c80 */ sw $t9,%lo(var80062c80)($at) -/* f00b898: 26522b14 */ addiu $s2,$s2,%lo(var80062b14) -/* f00b89c: 3c06800a */ lui $a2,%hi(g_Vars) -/* f00b8a0: ae400000 */ sw $zero,0x0($s2) -/* f00b8a4: 3c018006 */ lui $at,%hi(var80062b18) -/* f00b8a8: 24c69fc0 */ addiu $a2,$a2,%lo(g_Vars) -/* f00b8ac: ac202b18 */ sw $zero,%lo(var80062b18)($at) -/* f00b8b0: 8cc8006c */ lw $t0,0x6c($a2) -/* f00b8b4: 17000002 */ bnez $t8,.L0f00b8c0 -/* f00b8b8: 00000000 */ nop -/* f00b8bc: 0007000d */ break 0x7 -.L0f00b8c0: -/* f00b8c0: 00002825 */ or $a1,$zero,$zero -/* f00b8c4: 11000003 */ beqz $t0,.L0f00b8d4 -/* f00b8c8: 00001825 */ or $v1,$zero,$zero -/* f00b8cc: 10000001 */ b .L0f00b8d4 -/* f00b8d0: 24050001 */ addiu $a1,$zero,0x1 -.L0f00b8d4: -/* f00b8d4: 8cc90068 */ lw $t1,0x68($a2) -/* f00b8d8: 00002025 */ or $a0,$zero,$zero -/* f00b8dc: 00001025 */ or $v0,$zero,$zero -/* f00b8e0: 11200003 */ beqz $t1,.L0f00b8f0 -/* f00b8e4: 00000000 */ nop -/* f00b8e8: 10000001 */ b .L0f00b8f0 -/* f00b8ec: 24030001 */ addiu $v1,$zero,0x1 -.L0f00b8f0: -/* f00b8f0: 8cca0064 */ lw $t2,0x64($a2) -/* f00b8f4: 3c15800a */ lui $s5,%hi(g_NumActiveHeadsPerGender) -/* f00b8f8: 26b5cd20 */ addiu $s5,$s5,%lo(g_NumActiveHeadsPerGender) -/* f00b8fc: 11400003 */ beqz $t2,.L0f00b90c -/* f00b900: 24180008 */ addiu $t8,$zero,0x8 -/* f00b904: 10000001 */ b .L0f00b90c -/* f00b908: 24040001 */ addiu $a0,$zero,0x1 -.L0f00b90c: -/* f00b90c: 8ccb0070 */ lw $t3,0x70($a2) -/* f00b910: 240f0004 */ addiu $t7,$zero,0x4 -/* f00b914: 3c198006 */ lui $t9,%hi(g_StageHeadLimits) -/* f00b918: 11600003 */ beqz $t3,.L0f00b928 -/* f00b91c: 00000000 */ nop -/* f00b920: 10000001 */ b .L0f00b928 -/* f00b924: 24020001 */ addiu $v0,$zero,0x1 -.L0f00b928: -/* f00b928: 00446021 */ addu $t4,$v0,$a0 -/* f00b92c: 01836821 */ addu $t5,$t4,$v1 -/* f00b930: 01a57021 */ addu $t6,$t5,$a1 -/* f00b934: 29c10002 */ slti $at,$t6,0x2 -/* f00b938: 14200005 */ bnez $at,.L0f00b950 -/* f00b93c: 27221700 */ addiu $v0,$t9,%lo(g_StageHeadLimits) -/* f00b940: 3c15800a */ lui $s5,%hi(g_NumActiveHeadsPerGender) -/* f00b944: 26b5cd20 */ addiu $s5,$s5,%lo(g_NumActiveHeadsPerGender) -/* f00b948: 1000000d */ b .L0f00b980 -/* f00b94c: aeaf0000 */ sw $t7,0x0($s5) -.L0f00b950: -/* f00b950: aeb80000 */ sw $t8,0x0($s5) -/* f00b954: 24440006 */ addiu $a0,$v0,0x6 -/* f00b958: 90480000 */ lbu $t0,0x0($v0) -.L0f00b95c: -/* f00b95c: 56080004 */ bnel $s0,$t0,.L0f00b970 -/* f00b960: 24420002 */ addiu $v0,$v0,0x2 -/* f00b964: 90490001 */ lbu $t1,0x1($v0) -/* f00b968: aea90000 */ sw $t1,0x0($s5) -/* f00b96c: 24420002 */ addiu $v0,$v0,0x2 -.L0f00b970: -/* f00b970: 0044082b */ sltu $at,$v0,$a0 -/* f00b974: 5420fff9 */ bnezl $at,.L0f00b95c -/* f00b978: 90480000 */ lbu $t0,0x0($v0) -/* f00b97c: 00008825 */ or $s1,$zero,$zero -.L0f00b980: -/* f00b980: 0fc41b99 */ jal cheatIsActive -/* f00b984: 24040010 */ addiu $a0,$zero,0x10 -/* f00b988: 10400005 */ beqz $v0,.L0f00b9a0 -/* f00b98c: 3c148006 */ lui $s4,%hi(g_MaleGuardTeamHeads) -/* f00b990: 3c138006 */ lui $s3,%hi(g_NumMaleGuardTeamHeads) -/* f00b994: 26942c14 */ addiu $s4,$s4,%lo(g_MaleGuardTeamHeads) -/* f00b998: 10000005 */ b .L0f00b9b0 -/* f00b99c: 8e732b0c */ lw $s3,%lo(g_NumMaleGuardTeamHeads)($s3) -.L0f00b9a0: -/* f00b9a0: 3c148006 */ lui $s4,%hi(g_MaleGuardHeads) -/* f00b9a4: 3c138006 */ lui $s3,%hi(g_NumMaleGuardHeads) -/* f00b9a8: 26942b68 */ addiu $s4,$s4,%lo(g_MaleGuardHeads) -/* f00b9ac: 8e732b04 */ lw $s3,%lo(g_NumMaleGuardHeads)($s3) -.L0f00b9b0: -/* f00b9b0: 8eaa0000 */ lw $t2,0x0($s5) -/* f00b9b4: 3c12800a */ lui $s2,%hi(g_ActiveMaleHeads) -/* f00b9b8: 2652cd28 */ addiu $s2,$s2,%lo(g_ActiveMaleHeads) -/* f00b9bc: 19400022 */ blez $t2,.L0f00ba48 -/* f00b9c0: 00000000 */ nop -.L0f00b9c4: -/* f00b9c4: 0c004b70 */ jal random -/* f00b9c8: 24100001 */ addiu $s0,$zero,0x1 -/* f00b9cc: 0053001b */ divu $zero,$v0,$s3 -/* f00b9d0: 00005810 */ mfhi $t3 -/* f00b9d4: 8ea50000 */ lw $a1,0x0($s5) -/* f00b9d8: 000b6080 */ sll $t4,$t3,0x2 -/* f00b9dc: 028c6821 */ addu $t5,$s4,$t4 -/* f00b9e0: 8dae0000 */ lw $t6,0x0($t5) -/* f00b9e4: 16600002 */ bnez $s3,.L0f00b9f0 -/* f00b9e8: 00000000 */ nop -/* f00b9ec: 0007000d */ break 0x7 -.L0f00b9f0: -/* f00b9f0: 00b3082a */ slt $at,$a1,$s3 -/* f00b9f4: 1020000d */ beqz $at,.L0f00ba2c -/* f00b9f8: ae4e0000 */ sw $t6,0x0($s2) -/* f00b9fc: 1a20000b */ blez $s1,.L0f00ba2c -/* f00ba00: 00001825 */ or $v1,$zero,$zero -/* f00ba04: 3c02800a */ lui $v0,%hi(g_ActiveMaleHeads) -/* f00ba08: 2442cd28 */ addiu $v0,$v0,%lo(g_ActiveMaleHeads) -/* f00ba0c: 01c02025 */ or $a0,$t6,$zero -.L0f00ba10: -/* f00ba10: 8c4f0000 */ lw $t7,0x0($v0) -/* f00ba14: 24630001 */ addiu $v1,$v1,0x1 -/* f00ba18: 15e40002 */ bne $t7,$a0,.L0f00ba24 -/* f00ba1c: 00000000 */ nop -/* f00ba20: 00008025 */ or $s0,$zero,$zero -.L0f00ba24: -/* f00ba24: 1471fffa */ bne $v1,$s1,.L0f00ba10 -/* f00ba28: 24420004 */ addiu $v0,$v0,0x4 -.L0f00ba2c: -/* f00ba2c: 1200ffe5 */ beqz $s0,.L0f00b9c4 -/* f00ba30: 00000000 */ nop -/* f00ba34: 26310001 */ addiu $s1,$s1,0x1 -/* f00ba38: 0225082a */ slt $at,$s1,$a1 -/* f00ba3c: 1420ffe1 */ bnez $at,.L0f00b9c4 -/* f00ba40: 26520004 */ addiu $s2,$s2,0x4 -/* f00ba44: 00008825 */ or $s1,$zero,$zero -.L0f00ba48: -/* f00ba48: 0fc41b99 */ jal cheatIsActive -/* f00ba4c: 24040010 */ addiu $a0,$zero,0x10 -/* f00ba50: 10400006 */ beqz $v0,.L0f00ba6c -/* f00ba54: 3c148006 */ lui $s4,%hi(g_FemaleGuardHeads) -/* f00ba58: 3c148006 */ lui $s4,%hi(g_FemaleGuardTeamHeads) -/* f00ba5c: 3c138006 */ lui $s3,%hi(g_NumFemaleGuardTeamHeads) -/* f00ba60: 26942c6c */ addiu $s4,$s4,%lo(g_FemaleGuardTeamHeads) -/* f00ba64: 10000004 */ b .L0f00ba78 -/* f00ba68: 8e732b10 */ lw $s3,%lo(g_NumFemaleGuardTeamHeads)($s3) -.L0f00ba6c: -/* f00ba6c: 3c138006 */ lui $s3,%hi(g_NumFemaleGuardHeads) -/* f00ba70: 26942c58 */ addiu $s4,$s4,%lo(g_FemaleGuardHeads) -/* f00ba74: 8e732b08 */ lw $s3,%lo(g_NumFemaleGuardHeads)($s3) -.L0f00ba78: -/* f00ba78: 8ea50000 */ lw $a1,0x0($s5) -/* f00ba7c: 3c12800a */ lui $s2,%hi(g_ActiveFemaleHeads) -/* f00ba80: 2652cd48 */ addiu $s2,$s2,%lo(g_ActiveFemaleHeads) -/* f00ba84: 18a00022 */ blez $a1,.L0f00bb10 -/* f00ba88: 00000000 */ nop -.L0f00ba8c: -/* f00ba8c: 0c004b70 */ jal random -/* f00ba90: 24100001 */ addiu $s0,$zero,0x1 -/* f00ba94: 0053001b */ divu $zero,$v0,$s3 -/* f00ba98: 0000c010 */ mfhi $t8 -/* f00ba9c: 8ea50000 */ lw $a1,0x0($s5) -/* f00baa0: 0018c880 */ sll $t9,$t8,0x2 -/* f00baa4: 02994021 */ addu $t0,$s4,$t9 -/* f00baa8: 8d090000 */ lw $t1,0x0($t0) -/* f00baac: 16600002 */ bnez $s3,.L0f00bab8 -/* f00bab0: 00000000 */ nop -/* f00bab4: 0007000d */ break 0x7 -.L0f00bab8: -/* f00bab8: 00b3082a */ slt $at,$a1,$s3 -/* f00babc: 1020000d */ beqz $at,.L0f00baf4 -/* f00bac0: ae490000 */ sw $t1,0x0($s2) -/* f00bac4: 1a20000b */ blez $s1,.L0f00baf4 -/* f00bac8: 00001825 */ or $v1,$zero,$zero -/* f00bacc: 3c02800a */ lui $v0,%hi(g_ActiveFemaleHeads) -/* f00bad0: 2442cd48 */ addiu $v0,$v0,%lo(g_ActiveFemaleHeads) -/* f00bad4: 01202025 */ or $a0,$t1,$zero -.L0f00bad8: -/* f00bad8: 8c4a0000 */ lw $t2,0x0($v0) -/* f00badc: 24630001 */ addiu $v1,$v1,0x1 -/* f00bae0: 15440002 */ bne $t2,$a0,.L0f00baec -/* f00bae4: 00000000 */ nop -/* f00bae8: 00008025 */ or $s0,$zero,$zero -.L0f00baec: -/* f00baec: 1471fffa */ bne $v1,$s1,.L0f00bad8 -/* f00baf0: 24420004 */ addiu $v0,$v0,0x4 -.L0f00baf4: -/* f00baf4: 1200ffe5 */ beqz $s0,.L0f00ba8c -/* f00baf8: 00000000 */ nop -/* f00bafc: 26310001 */ addiu $s1,$s1,0x1 -/* f00bb00: 0225082a */ slt $at,$s1,$a1 -/* f00bb04: 1420ffe1 */ bnez $at,.L0f00ba8c -/* f00bb08: 26520004 */ addiu $s2,$s2,0x4 -/* f00bb0c: 00008825 */ or $s1,$zero,$zero -.L0f00bb10: -/* f00bb10: 3c018006 */ lui $at,%hi(g_ActiveMaleHeadsIndex) -/* f00bb14: ac202c84 */ sw $zero,%lo(g_ActiveMaleHeadsIndex)($at) -/* f00bb18: 3c018006 */ lui $at,%hi(g_ActiveFemaleHeadsIndex) -/* f00bb1c: 18a00006 */ blez $a1,.L0f00bb38 -/* f00bb20: ac202c88 */ sw $zero,%lo(g_ActiveFemaleHeadsIndex)($at) -/* f00bb24: 26310001 */ addiu $s1,$s1,0x1 -.L0f00bb28: -/* f00bb28: 0225082a */ slt $at,$s1,$a1 -/* f00bb2c: 5420fffe */ bnezl $at,.L0f00bb28 -/* f00bb30: 26310001 */ addiu $s1,$s1,0x1 -/* f00bb34: 00008825 */ or $s1,$zero,$zero -.L0f00bb38: -/* f00bb38: 18a00005 */ blez $a1,.L0f00bb50 -/* f00bb3c: 8fb00014 */ lw $s0,0x14($sp) -/* f00bb40: 26310001 */ addiu $s1,$s1,0x1 -.L0f00bb44: -/* f00bb44: 0225082a */ slt $at,$s1,$a1 -/* f00bb48: 5420fffe */ bnezl $at,.L0f00bb44 -/* f00bb4c: 26310001 */ addiu $s1,$s1,0x1 -.L0f00bb50: -/* f00bb50: 8fbf002c */ lw $ra,0x2c($sp) -/* f00bb54: 8fb10018 */ lw $s1,0x18($sp) -/* f00bb58: 8fb2001c */ lw $s2,0x1c($sp) -/* f00bb5c: 8fb30020 */ lw $s3,0x20($sp) -/* f00bb60: 8fb40024 */ lw $s4,0x24($sp) -/* f00bb64: 8fb50028 */ lw $s5,0x28($sp) -/* f00bb68: 03e00008 */ jr $ra -/* f00bb6c: 27bd0030 */ addiu $sp,$sp,0x30 -); - -// Mismatches: -// - Address of var80062b14 Should be loaded to a callee-save register -// - PLAYERCOUNT() calculation is more spread out -// (does other register preparation during calculation) -// - Loop at 950 is calculated differently -//void headsReset(s32 stagenum) -//{ -// s32 *headsavailablelist; -// s32 headsavailablelen; -// bool done; -// s32 i; -// s32 j; -// -// for (i = 0; g_HeadsAndBodies[i].bodyfileid; i++) { -// g_HeadsAndBodies[i].unk0c = NULL; -// } -// -// var80062c80 = random() % g_NumBondBodies; -// var80062b14 = 0; -// var80062b18 = 0; -// -// if (PLAYERCOUNT() >= 2) { -// g_NumActiveHeadsPerGender = 4; -// } else { -// // 950 -// g_NumActiveHeadsPerGender = 8; -// -// for (i = 0; i < ARRAYCOUNT(g_StageHeadLimits); i++) { -// if (g_StageHeadLimits[i].stagenum == stagenum) { -// g_NumActiveHeadsPerGender = g_StageHeadLimits[i].maxheads; -// } -// } -// } -// -// // Male heads -// if (cheatIsActive(CHEAT_TEAMHEADSONLY)) { -// headsavailablelist = g_MaleGuardTeamHeads; -// headsavailablelen = g_NumMaleGuardTeamHeads; -// } else { -// headsavailablelist = g_MaleGuardHeads; -// headsavailablelen = g_NumMaleGuardHeads; -// } -// -// for (i = 0; i < g_NumActiveHeadsPerGender; i++) { -// do { -// done = true; -// g_ActiveMaleHeads[i] = headsavailablelist[random() % headsavailablelen]; -// -// if (headsavailablelen > g_NumActiveHeadsPerGender) { -// for (j = 0; j < i; j++) { -// if (g_ActiveMaleHeads[i] == g_ActiveMaleHeads[j]) { -// done = false; -// } -// } -// } -// } while (!done); -// } -// -// // Female heads -// if (cheatIsActive(CHEAT_TEAMHEADSONLY)) { -// headsavailablelist = g_FemaleGuardTeamHeads; -// headsavailablelen = g_NumFemaleGuardTeamHeads; -// } else { -// headsavailablelist = g_FemaleGuardHeads; -// headsavailablelen = g_NumFemaleGuardHeads; -// } -// -// for (i = 0; i < g_NumActiveHeadsPerGender; i++) { -// do { -// done = true; -// g_ActiveFemaleHeads[i] = headsavailablelist[random() % headsavailablelen]; -// -// if (headsavailablelen > g_NumActiveHeadsPerGender) { -// for (j = 0; j < i; j++) { -// if (g_ActiveFemaleHeads[i] == g_ActiveFemaleHeads[j]) { -// done = false; -// } -// } -// } -// } while (!done); -// } -// -// g_ActiveMaleHeadsIndex = 0; -// g_ActiveFemaleHeadsIndex = 0; -// -// for (i = 0; i < g_NumActiveHeadsPerGender; i++); -// for (i = 0; i < g_NumActiveHeadsPerGender; i++); -//} - void resetSomeStageThings(void) { s32 i; @@ -522,7 +177,7 @@ glabel debugLoadAllAilistModels /* f00c120: 92080003 */ lbu $t0,0x3($s0) /* f00c124: 0018ca00 */ sll $t9,$t8,0x8 /* f00c128: 03281025 */ or $v0,$t9,$t0 -/* f00c12c: 0fc2486d */ jal modelLoad +/* f00c12c: 0fc2486d */ jal setupLoadModeldef /* f00c130: 3044ffff */ andi $a0,$v0,0xffff /* f00c134: 5040002a */ beqzl $v0,.L0f00c1e0 /* f00c138: 02002025 */ or $a0,$s0,$zero @@ -556,7 +211,7 @@ glabel debugLoadAllAilistModels .L0f00c1a0: /* f00c1a0: 920c0003 */ lbu $t4,0x3($s0) /* f00c1a4: 000a5a00 */ sll $t3,$t2,0x8 -/* f00c1a8: 0fc2486d */ jal modelLoad +/* f00c1a8: 0fc2486d */ jal setupLoadModeldef /* f00c1ac: 016c2025 */ or $a0,$t3,$t4 /* f00c1b0: 0fc04558 */ jal weaponLoadProjectileModels /* f00c1b4: 92040004 */ lbu $a0,0x4($s0) @@ -568,7 +223,7 @@ glabel debugLoadAllAilistModels .L0f00c1cc: /* f00c1cc: 920f0003 */ lbu $t7,0x3($s0) /* f00c1d0: 000d7200 */ sll $t6,$t5,0x8 -/* f00c1d4: 0fc2486d */ jal modelLoad +/* f00c1d4: 0fc2486d */ jal setupLoadModeldef /* f00c1d8: 01cf2025 */ or $a0,$t6,$t7 /* f00c1dc: 02002025 */ or $a0,$s0,$zero .L0f00c1e0: @@ -617,7 +272,7 @@ glabel debugLoadAllAilistModels // case AICMD_DROPITEM: // 120 // id = cmd[3] | (cmd[2] << 8); // -// if (modelLoad(id & 0xffff)) { +// if (setupLoadModeldef(id & 0xffff)) { // // empty // } // break; @@ -638,7 +293,7 @@ glabel debugLoadAllAilistModels // } // break; // case AICMD_EQUIPWEAPON: // 19c -// if (modelLoad(cmd[3] | (cmd[2] << 8))) { +// if (setupLoadModeldef(cmd[3] | (cmd[2] << 8))) { // // empty // } // if (weaponLoadProjectileModels(cmd[4])) { @@ -646,7 +301,7 @@ glabel debugLoadAllAilistModels // } // break; // case AICMD_EQUIPHAT: // 1c8 -// if (modelLoad(cmd[3] | (cmd[2] << 8))) { +// if (setupLoadModeldef(cmd[3] | (cmd[2] << 8))) { // // empty // } // break; diff --git a/src/game/game_096360.c b/src/game/game_096360.c index 64787b84b..1319cac77 100644 --- a/src/game/game_096360.c +++ b/src/game/game_096360.c @@ -2,7 +2,7 @@ #include "constants.h" #include "game/objectives.h" #include "game/game_096360.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/training.h" #include "game/propobj.h" #include "bss.h" diff --git a/src/game/game_0b0fd0.c b/src/game/game_0b0fd0.c index 246bbf069..e14881d10 100644 --- a/src/game/game_0b0fd0.c +++ b/src/game/game_0b0fd0.c @@ -190,9 +190,15 @@ f32 currentPlayerGetGunZoomFov(void) struct weapon *weapon; switch (bgunGetWeaponNum2(0)) { - case WEAPON_SNIPERRIFLE: index = 0; break; - case WEAPON_FARSIGHT: index = 1; break; - case WEAPON_HORIZONSCANNER: index = 2; break; + case WEAPON_SNIPERRIFLE: + index = 0; + break; + case WEAPON_FARSIGHT: + index = 1; + break; + case WEAPON_HORIZONSCANNER: + index = 2; + break; } if (index >= 0) { diff --git a/src/game/game_11f000.c b/src/game/game_11f000.c deleted file mode 100644 index 4d2740035..000000000 --- a/src/game/game_11f000.c +++ /dev/null @@ -1,11224 +0,0 @@ -#include -#include "constants.h" -#include "game/game_096ca0.h" -#include "game/game_0b2150.h" -#include "game/game_0b4950.h" -#include "game/game_11f000.h" -#include "game/game_152fa0.h" -#include "game/env.h" -#include "game/pad.h" -#include "bss.h" -#include "lib/vi.h" -#include "lib/mtx.h" -#include "lib/sched.h" -#include "data.h" -#include "types.h" - -u32 var800a33a0; -s32 var800a33a4; -u32 var800a33a8; -u32 var800a33ac; -u32 var800a33b0; -u32 var800a33b4; -u32 var800a33b8; -u32 var800a33bc; -u32 var800a33c0; -u32 var800a33c4; -u32 var800a33c8; -u32 var800a33cc; -u32 var800a33d0; -u32 var800a33d4; -u32 var800a33d8; -u32 var800a33dc; -u32 var800a33e0; -u32 var800a33e4; -f32 var800a33e8[1][3]; -u32 var800a33f4; -u32 var800a33f8; -u32 var800a33fc; -u32 var800a3400; -u32 var800a3404; -u32 var800a3408; -u32 var800a340c; -f32 var800a3410[1]; -u32 var800a3414; -u32 var800a3418; -u32 var800a341c; -f32 var800a3420[1]; -u32 var800a3424; -u32 var800a3428; -u32 var800a342c; - -f32 var8007db80 = 0; -f32 var8007db84 = 1; -f32 var8007db88[1] = {0}; -u32 var8007db8c = 0x00000000; -u32 var8007db90 = 0x00000000; -u32 var8007db94[1] = {0}; -u32 var8007db98 = 0x00000000; -u32 var8007db9c = 0x00000000; -u32 var8007dba0 = 0x00000010; -u32 var8007dba4 = 0x00000020; -u32 var8007dba8 = 0x0000000c; -u32 var8007dbac = 0x00000020; -u32 var8007dbb0 = 0x00000018; -u32 var8007dbb4 = 0x00000040; -u32 var8007dbb8 = 0x0000003c; -u32 var8007dbbc = 0x00000050; -u32 var8007dbc0 = 0x000000e1; -u32 var8007dbc4 = 0x00000113; -u32 var8007dbc8 = 0x000001d6; -u32 var8007dbcc = 0x0000023a; -u32 var8007dbd0 = 0xff99ffff; -u32 var8007dbd4 = 0x9999ffff; -u32 var8007dbd8 = 0x99ffffff; -u32 var8007dbdc = 0x99ff99ff; -u32 var8007dbe0 = 0xffff99ff; -u32 var8007dbe4 = 0xff9999ff; -struct coord g_TeleportToPos = {0, 0, 0}; -struct coord g_TeleportToUp = {0, 0, 1}; -struct coord g_TeleportToLook = {0, 1, 0}; - -void func0f11f000(f32 left, f32 top, struct coord *arg2) -{ - Mtxf *mtx = currentPlayerGetUnk174c(); - f32 pos[2]; - - pos[0] = left + currentPlayerGetScreenLeft(); - pos[1] = top + currentPlayerGetScreenTop() + envGetCurrent()->unk40; - - func0f0b4c3c(pos, arg2, 100); - mtx4RotateVecInPlace(mtx, arg2); -} - -GLOBAL_ASM( -glabel func0f11f07c -.late_rodata -glabel var7f1b4fe0 -.word 0x38d1b717 -glabel var7f1b4fe4 -.word 0x3c23d70a -glabel var7f1b4fe8 -.word 0x48927c00 -.text -/* f11f07c: 27bdffc8 */ addiu $sp,$sp,-56 -/* f11f080: afbf001c */ sw $ra,0x1c($sp) -/* f11f084: afb10018 */ sw $s1,0x18($sp) -/* f11f088: afb00014 */ sw $s0,0x14($sp) -/* f11f08c: afa5003c */ sw $a1,0x3c($sp) -/* f11f090: afa60040 */ sw $a2,0x40($sp) -/* f11f094: c4800008 */ lwc1 $f0,0x8($a0) -/* f11f098: c48e0000 */ lwc1 $f14,0x0($a0) -/* f11f09c: 3c11800a */ lui $s1,%hi(g_Vars+0x284) -/* f11f0a0: 46000102 */ mul.s $f4,$f0,$f0 -/* f11f0a4: 3c017f1b */ lui $at,%hi(var7f1b4fe0) -/* f11f0a8: 8e31a244 */ lw $s1,%lo(g_Vars+0x284)($s1) -/* f11f0ac: 460e7182 */ mul.s $f6,$f14,$f14 -/* f11f0b0: c42a4fe0 */ lwc1 $f10,%lo(var7f1b4fe0)($at) -/* f11f0b4: 00808025 */ or $s0,$a0,$zero -/* f11f0b8: 26311bb0 */ addiu $s1,$s1,7088 -/* f11f0bc: 46062200 */ add.s $f8,$f4,$f6 -/* f11f0c0: 0c012974 */ jal sqrtf -/* f11f0c4: 460a4300 */ add.s $f12,$f8,$f10 -/* f11f0c8: c6020004 */ lwc1 $f2,0x4($s0) -/* f11f0cc: 3c013f80 */ lui $at,0x3f80 -/* f11f0d0: 44817000 */ mtc1 $at,$f14 -/* f11f0d4: 46021100 */ add.s $f4,$f2,$f2 -/* f11f0d8: 3c017f1b */ lui $at,%hi(var7f1b4fe4) -/* f11f0dc: 00001025 */ or $v0,$zero,$zero -/* f11f0e0: 46002303 */ div.s $f12,$f4,$f0 -/* f11f0e4: 460c703c */ c.lt.s $f14,$f12 -/* f11f0e8: 00000000 */ nop -/* f11f0ec: 45020003 */ bc1fl .L0f11f0fc -/* f11f0f0: 460c7181 */ sub.s $f6,$f14,$f12 -/* f11f0f4: 46007306 */ mov.s $f12,$f14 -/* f11f0f8: 460c7181 */ sub.s $f6,$f14,$f12 -.L0f11f0fc: -/* f11f0fc: 8fae0040 */ lw $t6,0x40($sp) -/* f11f100: 44800000 */ mtc1 $zero,$f0 -/* f11f104: e5c60000 */ swc1 $f6,0x0($t6) -/* f11f108: c6020004 */ lwc1 $f2,0x4($s0) -/* f11f10c: 46020032 */ c.eq.s $f0,$f2 -/* f11f110: 00000000 */ nop -/* f11f114: 45020004 */ bc1fl .L0f11f128 -/* f11f118: 46001406 */ mov.s $f16,$f2 -/* f11f11c: 10000002 */ b .L0f11f128 -/* f11f120: c4304fe4 */ lwc1 $f16,%lo(var7f1b4fe4)($at) -/* f11f124: 46001406 */ mov.s $f16,$f2 -.L0f11f128: -/* f11f128: 4610003c */ c.lt.s $f0,$f16 -/* f11f12c: 00000000 */ nop -/* f11f130: 4500002d */ bc1f .L0f11f1e8 -/* f11f134: 00000000 */ nop -/* f11f138: 0fc595f3 */ jal envGetCurrent -/* f11f13c: e7b00024 */ swc1 $f16,0x24($sp) -/* f11f140: c4480014 */ lwc1 $f8,0x14($v0) -/* f11f144: c62a0004 */ lwc1 $f10,0x4($s1) -/* f11f148: c7b00024 */ lwc1 $f16,0x24($sp) -/* f11f14c: c6000008 */ lwc1 $f0,0x8($s0) -/* f11f150: 460a4101 */ sub.s $f4,$f8,$f10 -/* f11f154: c60e0000 */ lwc1 $f14,0x0($s0) -/* f11f158: 46000182 */ mul.s $f6,$f0,$f0 -/* f11f15c: 00000000 */ nop -/* f11f160: 460e7202 */ mul.s $f8,$f14,$f14 -/* f11f164: 46102083 */ div.s $f2,$f4,$f16 -/* f11f168: 46083300 */ add.s $f12,$f6,$f8 -/* f11f16c: 0c012974 */ jal sqrtf -/* f11f170: e7a2002c */ swc1 $f2,0x2c($sp) -/* f11f174: c7a2002c */ lwc1 $f2,0x2c($sp) -/* f11f178: 3c017f1b */ lui $at,%hi(var7f1b4fe8) -/* f11f17c: c4324fe8 */ lwc1 $f18,%lo(var7f1b4fe8)($at) -/* f11f180: 46020302 */ mul.s $f12,$f0,$f2 -/* f11f184: c7b00024 */ lwc1 $f16,0x24($sp) -/* f11f188: 460c903c */ c.lt.s $f18,$f12 -/* f11f18c: 00000000 */ nop -/* f11f190: 45020005 */ bc1fl .L0f11f1a8 -/* f11f194: c6040000 */ lwc1 $f4,0x0($s0) -/* f11f198: 460c9283 */ div.s $f10,$f18,$f12 -/* f11f19c: 460a1082 */ mul.s $f2,$f2,$f10 -/* f11f1a0: 00000000 */ nop -/* f11f1a4: c6040000 */ lwc1 $f4,0x0($s0) -.L0f11f1a8: -/* f11f1a8: c6280000 */ lwc1 $f8,0x0($s1) -/* f11f1ac: 8fa3003c */ lw $v1,0x3c($sp) -/* f11f1b0: 46022182 */ mul.s $f6,$f4,$f2 -/* f11f1b4: 24020001 */ addiu $v0,$zero,0x1 -/* f11f1b8: 46083280 */ add.s $f10,$f6,$f8 -/* f11f1bc: 46101182 */ mul.s $f6,$f2,$f16 -/* f11f1c0: e46a0000 */ swc1 $f10,0x0($v1) -/* f11f1c4: c6240004 */ lwc1 $f4,0x4($s1) -/* f11f1c8: 46062200 */ add.s $f8,$f4,$f6 -/* f11f1cc: e4680004 */ swc1 $f8,0x4($v1) -/* f11f1d0: c60a0008 */ lwc1 $f10,0x8($s0) -/* f11f1d4: c6260008 */ lwc1 $f6,0x8($s1) -/* f11f1d8: 46025102 */ mul.s $f4,$f10,$f2 -/* f11f1dc: 46062200 */ add.s $f8,$f4,$f6 -/* f11f1e0: 10000001 */ b .L0f11f1e8 -/* f11f1e4: e4680008 */ swc1 $f8,0x8($v1) -.L0f11f1e8: -/* f11f1e8: 8fbf001c */ lw $ra,0x1c($sp) -/* f11f1ec: 8fb00014 */ lw $s0,0x14($sp) -/* f11f1f0: 8fb10018 */ lw $s1,0x18($sp) -/* f11f1f4: 03e00008 */ jr $ra -/* f11f1f8: 27bd0038 */ addiu $sp,$sp,0x38 -); - -GLOBAL_ASM( -glabel func0f11f1fc -.late_rodata -glabel var7f1b4fec -.word 0x38d1b717 -glabel var7f1b4ff0 -.word 0xbc23d70a -glabel var7f1b4ff4 -.word 0x48927c00 -.text -/* f11f1fc: 27bdffc8 */ addiu $sp,$sp,-56 -/* f11f200: afbf001c */ sw $ra,0x1c($sp) -/* f11f204: afb10018 */ sw $s1,0x18($sp) -/* f11f208: afb00014 */ sw $s0,0x14($sp) -/* f11f20c: afa5003c */ sw $a1,0x3c($sp) -/* f11f210: afa60040 */ sw $a2,0x40($sp) -/* f11f214: c4800008 */ lwc1 $f0,0x8($a0) -/* f11f218: c48e0000 */ lwc1 $f14,0x0($a0) -/* f11f21c: 3c11800a */ lui $s1,%hi(g_Vars+0x284) -/* f11f220: 46000102 */ mul.s $f4,$f0,$f0 -/* f11f224: 3c017f1b */ lui $at,%hi(var7f1b4fec) -/* f11f228: 8e31a244 */ lw $s1,%lo(g_Vars+0x284)($s1) -/* f11f22c: 460e7182 */ mul.s $f6,$f14,$f14 -/* f11f230: c42a4fec */ lwc1 $f10,%lo(var7f1b4fec)($at) -/* f11f234: 00808025 */ or $s0,$a0,$zero -/* f11f238: 26311bb0 */ addiu $s1,$s1,7088 -/* f11f23c: 46062200 */ add.s $f8,$f4,$f6 -/* f11f240: 0c012974 */ jal sqrtf -/* f11f244: 460a4300 */ add.s $f12,$f8,$f10 -/* f11f248: 3c013f80 */ lui $at,0x3f80 -/* f11f24c: 44816000 */ mtc1 $at,$f12 -/* f11f250: 3c01c000 */ lui $at,0xc000 -/* f11f254: 44812000 */ mtc1 $at,$f4 -/* f11f258: c6060004 */ lwc1 $f6,0x4($s0) -/* f11f25c: 3c017f1b */ lui $at,%hi(var7f1b4ff0) -/* f11f260: 00001025 */ or $v0,$zero,$zero -/* f11f264: 46062202 */ mul.s $f8,$f4,$f6 -/* f11f268: 46004083 */ div.s $f2,$f8,$f0 -/* f11f26c: 4602603c */ c.lt.s $f12,$f2 -/* f11f270: 00000000 */ nop -/* f11f274: 45020003 */ bc1fl .L0f11f284 -/* f11f278: 46026281 */ sub.s $f10,$f12,$f2 -/* f11f27c: 46006086 */ mov.s $f2,$f12 -/* f11f280: 46026281 */ sub.s $f10,$f12,$f2 -.L0f11f284: -/* f11f284: 8fae0040 */ lw $t6,0x40($sp) -/* f11f288: 44807000 */ mtc1 $zero,$f14 -/* f11f28c: e5ca0000 */ swc1 $f10,0x0($t6) -/* f11f290: c6000004 */ lwc1 $f0,0x4($s0) -/* f11f294: 46007032 */ c.eq.s $f14,$f0 -/* f11f298: 00000000 */ nop -/* f11f29c: 45020004 */ bc1fl .L0f11f2b0 -/* f11f2a0: 46000406 */ mov.s $f16,$f0 -/* f11f2a4: 10000002 */ b .L0f11f2b0 -/* f11f2a8: c4304ff0 */ lwc1 $f16,%lo(var7f1b4ff0)($at) -/* f11f2ac: 46000406 */ mov.s $f16,$f0 -.L0f11f2b0: -/* f11f2b0: 460e803c */ c.lt.s $f16,$f14 -/* f11f2b4: 00000000 */ nop -/* f11f2b8: 4500002d */ bc1f .L0f11f370 -/* f11f2bc: 00000000 */ nop -/* f11f2c0: 0fc595f3 */ jal envGetCurrent -/* f11f2c4: e7b00024 */ swc1 $f16,0x24($sp) -/* f11f2c8: c444002c */ lwc1 $f4,0x2c($v0) -/* f11f2cc: c6260004 */ lwc1 $f6,0x4($s1) -/* f11f2d0: c7b00024 */ lwc1 $f16,0x24($sp) -/* f11f2d4: c6000008 */ lwc1 $f0,0x8($s0) -/* f11f2d8: 46062201 */ sub.s $f8,$f4,$f6 -/* f11f2dc: c60e0000 */ lwc1 $f14,0x0($s0) -/* f11f2e0: 46000282 */ mul.s $f10,$f0,$f0 -/* f11f2e4: 00000000 */ nop -/* f11f2e8: 460e7102 */ mul.s $f4,$f14,$f14 -/* f11f2ec: 46104083 */ div.s $f2,$f8,$f16 -/* f11f2f0: 46045300 */ add.s $f12,$f10,$f4 -/* f11f2f4: 0c012974 */ jal sqrtf -/* f11f2f8: e7a2002c */ swc1 $f2,0x2c($sp) -/* f11f2fc: c7a2002c */ lwc1 $f2,0x2c($sp) -/* f11f300: 3c017f1b */ lui $at,%hi(var7f1b4ff4) -/* f11f304: c4324ff4 */ lwc1 $f18,%lo(var7f1b4ff4)($at) -/* f11f308: 46020302 */ mul.s $f12,$f0,$f2 -/* f11f30c: c7b00024 */ lwc1 $f16,0x24($sp) -/* f11f310: 460c903c */ c.lt.s $f18,$f12 -/* f11f314: 00000000 */ nop -/* f11f318: 45020005 */ bc1fl .L0f11f330 -/* f11f31c: c6080000 */ lwc1 $f8,0x0($s0) -/* f11f320: 460c9183 */ div.s $f6,$f18,$f12 -/* f11f324: 46061082 */ mul.s $f2,$f2,$f6 -/* f11f328: 00000000 */ nop -/* f11f32c: c6080000 */ lwc1 $f8,0x0($s0) -.L0f11f330: -/* f11f330: c6240000 */ lwc1 $f4,0x0($s1) -/* f11f334: 8fa3003c */ lw $v1,0x3c($sp) -/* f11f338: 46024282 */ mul.s $f10,$f8,$f2 -/* f11f33c: 24020001 */ addiu $v0,$zero,0x1 -/* f11f340: 46045180 */ add.s $f6,$f10,$f4 -/* f11f344: 46101282 */ mul.s $f10,$f2,$f16 -/* f11f348: e4660000 */ swc1 $f6,0x0($v1) -/* f11f34c: c6280004 */ lwc1 $f8,0x4($s1) -/* f11f350: 460a4100 */ add.s $f4,$f8,$f10 -/* f11f354: e4640004 */ swc1 $f4,0x4($v1) -/* f11f358: c6060008 */ lwc1 $f6,0x8($s0) -/* f11f35c: c62a0008 */ lwc1 $f10,0x8($s1) -/* f11f360: 46023202 */ mul.s $f8,$f6,$f2 -/* f11f364: 460a4100 */ add.s $f4,$f8,$f10 -/* f11f368: 10000001 */ b .L0f11f370 -/* f11f36c: e4640008 */ swc1 $f4,0x8($v1) -.L0f11f370: -/* f11f370: 8fbf001c */ lw $ra,0x1c($sp) -/* f11f374: 8fb00014 */ lw $s0,0x14($sp) -/* f11f378: 8fb10018 */ lw $s1,0x18($sp) -/* f11f37c: 03e00008 */ jr $ra -/* f11f380: 27bd0038 */ addiu $sp,$sp,0x38 -); - -/** - * Scale base based on the height percentage between base and ref... - * except the new y is zero. - */ -void func0f11f384(struct coord *base, struct coord *ref, struct coord *out) -{ - f32 mult = base->y / (base->y - ref->y); - - out->x = (ref->x - base->x) * mult + base->x; - out->y = 0; - out->z = (ref->z - base->z) * mult + base->z; -} - -/** - * A clamp function. - */ -f32 func0f11f3d0(f32 value, f32 min, f32 max) -{ - if (value < min) { - return min; - } - - if (value > max) { - return max; - } - - return value; -} - -/** - * A round function. - */ -f32 func0f11f410(f32 value) -{ - return (s32)(value + 0.5f); -} - -GLOBAL_ASM( -glabel func0f11f438 -.late_rodata -glabel var7f1b4ff8 -.word 0x3b808081 -.text -/* f11f438: 27bdffe8 */ addiu $sp,$sp,-24 -/* f11f43c: afbf0014 */ sw $ra,0x14($sp) -/* f11f440: afa5001c */ sw $a1,0x1c($sp) -/* f11f444: 0fc595f3 */ jal envGetCurrent -/* f11f448: afa40018 */ sw $a0,0x18($sp) -/* f11f44c: 904e0008 */ lbu $t6,0x8($v0) -/* f11f450: 3c013f80 */ lui $at,0x3f80 -/* f11f454: 44818000 */ mtc1 $at,$f16 -/* f11f458: 448e2000 */ mtc1 $t6,$f4 -/* f11f45c: 3c017f1b */ lui $at,%hi(var7f1b4ff8) -/* f11f460: c4324ff8 */ lwc1 $f18,%lo(var7f1b4ff8)($at) -/* f11f464: 8fa40018 */ lw $a0,0x18($sp) -/* f11f468: 05c10005 */ bgez $t6,.L0f11f480 -/* f11f46c: 468020a0 */ cvt.s.w $f2,$f4 -/* f11f470: 3c014f80 */ lui $at,0x4f80 -/* f11f474: 44813000 */ mtc1 $at,$f6 -/* f11f478: 00000000 */ nop -/* f11f47c: 46061080 */ add.s $f2,$f2,$f6 -.L0f11f480: -/* f11f480: 904f0009 */ lbu $t7,0x9($v0) -/* f11f484: 3c014f80 */ lui $at,0x4f80 -/* f11f488: 3c0d800a */ lui $t5,%hi(var800a33a4) -/* f11f48c: 448f4000 */ mtc1 $t7,$f8 -/* f11f490: 05e10004 */ bgez $t7,.L0f11f4a4 -/* f11f494: 46804320 */ cvt.s.w $f12,$f8 -/* f11f498: 44815000 */ mtc1 $at,$f10 -/* f11f49c: 00000000 */ nop -/* f11f4a0: 460a6300 */ add.s $f12,$f12,$f10 -.L0f11f4a4: -/* f11f4a4: 9058000a */ lbu $t8,0xa($v0) -/* f11f4a8: 3c014f80 */ lui $at,0x4f80 -/* f11f4ac: c7a8001c */ lwc1 $f8,0x1c($sp) -/* f11f4b0: 44982000 */ mtc1 $t8,$f4 -/* f11f4b4: 240f00ff */ addiu $t7,$zero,0xff -/* f11f4b8: 468023a0 */ cvt.s.w $f14,$f4 -/* f11f4bc: 46121102 */ mul.s $f4,$f2,$f18 -/* f11f4c0: 07030005 */ bgezl $t8,.L0f11f4d8 -/* f11f4c4: 46048181 */ sub.s $f6,$f16,$f4 -/* f11f4c8: 44813000 */ mtc1 $at,$f6 -/* f11f4cc: 00000000 */ nop -/* f11f4d0: 46067380 */ add.s $f14,$f14,$f6 -/* f11f4d4: 46048181 */ sub.s $f6,$f16,$f4 -.L0f11f4d8: -/* f11f4d8: c44a001c */ lwc1 $f10,0x1c($v0) -/* f11f4dc: 24080001 */ addiu $t0,$zero,0x1 -/* f11f4e0: 46088001 */ sub.s $f0,$f16,$f8 -/* f11f4e4: 46065202 */ mul.s $f8,$f10,$f6 -/* f11f4e8: 3c014f00 */ lui $at,0x4f00 -/* f11f4ec: 46004102 */ mul.s $f4,$f8,$f0 -/* f11f4f0: 46022280 */ add.s $f10,$f4,$f2 -/* f11f4f4: 4459f800 */ cfc1 $t9,$31 -/* f11f4f8: 44c8f800 */ ctc1 $t0,$31 -/* f11f4fc: 00000000 */ nop -/* f11f500: 460051a4 */ cvt.w.s $f6,$f10 -/* f11f504: 4448f800 */ cfc1 $t0,$31 -/* f11f508: 00000000 */ nop -/* f11f50c: 31080078 */ andi $t0,$t0,0x78 -/* f11f510: 51000013 */ beqzl $t0,.L0f11f560 -/* f11f514: 44083000 */ mfc1 $t0,$f6 -/* f11f518: 44813000 */ mtc1 $at,$f6 -/* f11f51c: 24080001 */ addiu $t0,$zero,0x1 -/* f11f520: 46065181 */ sub.s $f6,$f10,$f6 -/* f11f524: 44c8f800 */ ctc1 $t0,$31 -/* f11f528: 00000000 */ nop -/* f11f52c: 460031a4 */ cvt.w.s $f6,$f6 -/* f11f530: 4448f800 */ cfc1 $t0,$31 -/* f11f534: 00000000 */ nop -/* f11f538: 31080078 */ andi $t0,$t0,0x78 -/* f11f53c: 15000005 */ bnez $t0,.L0f11f554 -/* f11f540: 00000000 */ nop -/* f11f544: 44083000 */ mfc1 $t0,$f6 -/* f11f548: 3c018000 */ lui $at,0x8000 -/* f11f54c: 10000007 */ b .L0f11f56c -/* f11f550: 01014025 */ or $t0,$t0,$at -.L0f11f554: -/* f11f554: 10000005 */ b .L0f11f56c -/* f11f558: 2408ffff */ addiu $t0,$zero,-1 -/* f11f55c: 44083000 */ mfc1 $t0,$f6 -.L0f11f560: -/* f11f560: 00000000 */ nop -/* f11f564: 0500fffb */ bltz $t0,.L0f11f554 -/* f11f568: 00000000 */ nop -.L0f11f56c: -/* f11f56c: 44d9f800 */ ctc1 $t9,$31 -/* f11f570: a0880014 */ sb $t0,0x14($a0) -/* f11f574: c4480020 */ lwc1 $f8,0x20($v0) -/* f11f578: 46126102 */ mul.s $f4,$f12,$f18 -/* f11f57c: 240a0001 */ addiu $t2,$zero,0x1 -/* f11f580: 3c014f00 */ lui $at,0x4f00 -/* f11f584: 46048281 */ sub.s $f10,$f16,$f4 -/* f11f588: 460a4182 */ mul.s $f6,$f8,$f10 -/* f11f58c: 00000000 */ nop -/* f11f590: 46003102 */ mul.s $f4,$f6,$f0 -/* f11f594: 460c2200 */ add.s $f8,$f4,$f12 -/* f11f598: 4449f800 */ cfc1 $t1,$31 -/* f11f59c: 44caf800 */ ctc1 $t2,$31 -/* f11f5a0: 00000000 */ nop -/* f11f5a4: 460042a4 */ cvt.w.s $f10,$f8 -/* f11f5a8: 444af800 */ cfc1 $t2,$31 -/* f11f5ac: 00000000 */ nop -/* f11f5b0: 314a0078 */ andi $t2,$t2,0x78 -/* f11f5b4: 11400012 */ beqz $t2,.L0f11f600 -/* f11f5b8: 00000000 */ nop -/* f11f5bc: 44815000 */ mtc1 $at,$f10 -/* f11f5c0: 240a0001 */ addiu $t2,$zero,0x1 -/* f11f5c4: 460a4281 */ sub.s $f10,$f8,$f10 -/* f11f5c8: 44caf800 */ ctc1 $t2,$31 -/* f11f5cc: 00000000 */ nop -/* f11f5d0: 460052a4 */ cvt.w.s $f10,$f10 -/* f11f5d4: 444af800 */ cfc1 $t2,$31 -/* f11f5d8: 00000000 */ nop -/* f11f5dc: 314a0078 */ andi $t2,$t2,0x78 -/* f11f5e0: 15400005 */ bnez $t2,.L0f11f5f8 -/* f11f5e4: 00000000 */ nop -/* f11f5e8: 440a5000 */ mfc1 $t2,$f10 -/* f11f5ec: 3c018000 */ lui $at,0x8000 -/* f11f5f0: 10000007 */ b .L0f11f610 -/* f11f5f4: 01415025 */ or $t2,$t2,$at -.L0f11f5f8: -/* f11f5f8: 10000005 */ b .L0f11f610 -/* f11f5fc: 240affff */ addiu $t2,$zero,-1 -.L0f11f600: -/* f11f600: 440a5000 */ mfc1 $t2,$f10 -/* f11f604: 00000000 */ nop -/* f11f608: 0540fffb */ bltz $t2,.L0f11f5f8 -/* f11f60c: 00000000 */ nop -.L0f11f610: -/* f11f610: 44c9f800 */ ctc1 $t1,$31 -/* f11f614: a08a0015 */ sb $t2,0x15($a0) -/* f11f618: c4460024 */ lwc1 $f6,0x24($v0) -/* f11f61c: 46127102 */ mul.s $f4,$f14,$f18 -/* f11f620: 240c0001 */ addiu $t4,$zero,0x1 -/* f11f624: 3c014f00 */ lui $at,0x4f00 -/* f11f628: 240200ff */ addiu $v0,$zero,0xff -/* f11f62c: 46048201 */ sub.s $f8,$f16,$f4 -/* f11f630: 46083282 */ mul.s $f10,$f6,$f8 -/* f11f634: 00000000 */ nop -/* f11f638: 46005102 */ mul.s $f4,$f10,$f0 -/* f11f63c: 460e2180 */ add.s $f6,$f4,$f14 -/* f11f640: 444bf800 */ cfc1 $t3,$31 -/* f11f644: 44ccf800 */ ctc1 $t4,$31 -/* f11f648: 00000000 */ nop -/* f11f64c: 46003224 */ cvt.w.s $f8,$f6 -/* f11f650: 444cf800 */ cfc1 $t4,$31 -/* f11f654: 00000000 */ nop -/* f11f658: 318c0078 */ andi $t4,$t4,0x78 -/* f11f65c: 11800012 */ beqz $t4,.L0f11f6a8 -/* f11f660: 00000000 */ nop -/* f11f664: 44814000 */ mtc1 $at,$f8 -/* f11f668: 240c0001 */ addiu $t4,$zero,0x1 -/* f11f66c: 46083201 */ sub.s $f8,$f6,$f8 -/* f11f670: 44ccf800 */ ctc1 $t4,$31 -/* f11f674: 00000000 */ nop -/* f11f678: 46004224 */ cvt.w.s $f8,$f8 -/* f11f67c: 444cf800 */ cfc1 $t4,$31 -/* f11f680: 00000000 */ nop -/* f11f684: 318c0078 */ andi $t4,$t4,0x78 -/* f11f688: 15800005 */ bnez $t4,.L0f11f6a0 -/* f11f68c: 00000000 */ nop -/* f11f690: 440c4000 */ mfc1 $t4,$f8 -/* f11f694: 3c018000 */ lui $at,0x8000 -/* f11f698: 10000007 */ b .L0f11f6b8 -/* f11f69c: 01816025 */ or $t4,$t4,$at -.L0f11f6a0: -/* f11f6a0: 10000005 */ b .L0f11f6b8 -/* f11f6a4: 240cffff */ addiu $t4,$zero,-1 -.L0f11f6a8: -/* f11f6a8: 440c4000 */ mfc1 $t4,$f8 -/* f11f6ac: 00000000 */ nop -/* f11f6b0: 0580fffb */ bltz $t4,.L0f11f6a0 -/* f11f6b4: 00000000 */ nop -.L0f11f6b8: -/* f11f6b8: a08c0016 */ sb $t4,0x16($a0) -/* f11f6bc: 8dad33a4 */ lw $t5,%lo(var800a33a4)($t5) -/* f11f6c0: 44cbf800 */ ctc1 $t3,$31 -/* f11f6c4: 51a00005 */ beqzl $t5,.L0f11f6dc -/* f11f6c8: a08f0017 */ sb $t7,0x17($a0) -/* f11f6cc: a0820016 */ sb $v0,0x16($a0) -/* f11f6d0: a0820015 */ sb $v0,0x15($a0) -/* f11f6d4: a0820014 */ sb $v0,0x14($a0) -/* f11f6d8: a08f0017 */ sb $t7,0x17($a0) -.L0f11f6dc: -/* f11f6dc: 8fbf0014 */ lw $ra,0x14($sp) -/* f11f6e0: 27bd0018 */ addiu $sp,$sp,0x18 -/* f11f6e4: 03e00008 */ jr $ra -/* f11f6e8: 00000000 */ nop -); - -GLOBAL_ASM( -glabel func0f11f6ec -.late_rodata -glabel var7f1b4ffc -.word 0x3b808081 -.text -/* f11f6ec: 27bdffe8 */ addiu $sp,$sp,-24 -/* f11f6f0: afbf0014 */ sw $ra,0x14($sp) -/* f11f6f4: afa5001c */ sw $a1,0x1c($sp) -/* f11f6f8: 0fc595f3 */ jal envGetCurrent -/* f11f6fc: afa40018 */ sw $a0,0x18($sp) -/* f11f700: 904e0008 */ lbu $t6,0x8($v0) -/* f11f704: 3c013f80 */ lui $at,0x3f80 -/* f11f708: 44818000 */ mtc1 $at,$f16 -/* f11f70c: 448e2000 */ mtc1 $t6,$f4 -/* f11f710: 3c017f1b */ lui $at,%hi(var7f1b4ffc) -/* f11f714: c4324ffc */ lwc1 $f18,%lo(var7f1b4ffc)($at) -/* f11f718: 8fa40018 */ lw $a0,0x18($sp) -/* f11f71c: 05c10005 */ bgez $t6,.L0f11f734 -/* f11f720: 468020a0 */ cvt.s.w $f2,$f4 -/* f11f724: 3c014f80 */ lui $at,0x4f80 -/* f11f728: 44813000 */ mtc1 $at,$f6 -/* f11f72c: 00000000 */ nop -/* f11f730: 46061080 */ add.s $f2,$f2,$f6 -.L0f11f734: -/* f11f734: 904f0009 */ lbu $t7,0x9($v0) -/* f11f738: 3c014f80 */ lui $at,0x4f80 -/* f11f73c: 240d00ff */ addiu $t5,$zero,0xff -/* f11f740: 448f4000 */ mtc1 $t7,$f8 -/* f11f744: 05e10004 */ bgez $t7,.L0f11f758 -/* f11f748: 46804320 */ cvt.s.w $f12,$f8 -/* f11f74c: 44815000 */ mtc1 $at,$f10 -/* f11f750: 00000000 */ nop -/* f11f754: 460a6300 */ add.s $f12,$f12,$f10 -.L0f11f758: -/* f11f758: 9058000a */ lbu $t8,0xa($v0) -/* f11f75c: 3c014f80 */ lui $at,0x4f80 -/* f11f760: c7a8001c */ lwc1 $f8,0x1c($sp) -/* f11f764: 44982000 */ mtc1 $t8,$f4 -/* f11f768: 00000000 */ nop -/* f11f76c: 468023a0 */ cvt.s.w $f14,$f4 -/* f11f770: 46121102 */ mul.s $f4,$f2,$f18 -/* f11f774: 07030005 */ bgezl $t8,.L0f11f78c -/* f11f778: 46048181 */ sub.s $f6,$f16,$f4 -/* f11f77c: 44813000 */ mtc1 $at,$f6 -/* f11f780: 00000000 */ nop -/* f11f784: 46067380 */ add.s $f14,$f14,$f6 -/* f11f788: 46048181 */ sub.s $f6,$f16,$f4 -.L0f11f78c: -/* f11f78c: c44a0034 */ lwc1 $f10,0x34($v0) -/* f11f790: 24080001 */ addiu $t0,$zero,0x1 -/* f11f794: 46088001 */ sub.s $f0,$f16,$f8 -/* f11f798: 46065202 */ mul.s $f8,$f10,$f6 -/* f11f79c: 3c014f00 */ lui $at,0x4f00 -/* f11f7a0: 46004102 */ mul.s $f4,$f8,$f0 -/* f11f7a4: 46022280 */ add.s $f10,$f4,$f2 -/* f11f7a8: 4459f800 */ cfc1 $t9,$31 -/* f11f7ac: 44c8f800 */ ctc1 $t0,$31 -/* f11f7b0: 00000000 */ nop -/* f11f7b4: 460051a4 */ cvt.w.s $f6,$f10 -/* f11f7b8: 4448f800 */ cfc1 $t0,$31 -/* f11f7bc: 00000000 */ nop -/* f11f7c0: 31080078 */ andi $t0,$t0,0x78 -/* f11f7c4: 51000013 */ beqzl $t0,.L0f11f814 -/* f11f7c8: 44083000 */ mfc1 $t0,$f6 -/* f11f7cc: 44813000 */ mtc1 $at,$f6 -/* f11f7d0: 24080001 */ addiu $t0,$zero,0x1 -/* f11f7d4: 46065181 */ sub.s $f6,$f10,$f6 -/* f11f7d8: 44c8f800 */ ctc1 $t0,$31 -/* f11f7dc: 00000000 */ nop -/* f11f7e0: 460031a4 */ cvt.w.s $f6,$f6 -/* f11f7e4: 4448f800 */ cfc1 $t0,$31 -/* f11f7e8: 00000000 */ nop -/* f11f7ec: 31080078 */ andi $t0,$t0,0x78 -/* f11f7f0: 15000005 */ bnez $t0,.L0f11f808 -/* f11f7f4: 00000000 */ nop -/* f11f7f8: 44083000 */ mfc1 $t0,$f6 -/* f11f7fc: 3c018000 */ lui $at,0x8000 -/* f11f800: 10000007 */ b .L0f11f820 -/* f11f804: 01014025 */ or $t0,$t0,$at -.L0f11f808: -/* f11f808: 10000005 */ b .L0f11f820 -/* f11f80c: 2408ffff */ addiu $t0,$zero,-1 -/* f11f810: 44083000 */ mfc1 $t0,$f6 -.L0f11f814: -/* f11f814: 00000000 */ nop -/* f11f818: 0500fffb */ bltz $t0,.L0f11f808 -/* f11f81c: 00000000 */ nop -.L0f11f820: -/* f11f820: 44d9f800 */ ctc1 $t9,$31 -/* f11f824: a0880014 */ sb $t0,0x14($a0) -/* f11f828: c4480038 */ lwc1 $f8,0x38($v0) -/* f11f82c: 46126102 */ mul.s $f4,$f12,$f18 -/* f11f830: 240a0001 */ addiu $t2,$zero,0x1 -/* f11f834: 3c014f00 */ lui $at,0x4f00 -/* f11f838: 46048281 */ sub.s $f10,$f16,$f4 -/* f11f83c: 460a4182 */ mul.s $f6,$f8,$f10 -/* f11f840: 00000000 */ nop -/* f11f844: 46003102 */ mul.s $f4,$f6,$f0 -/* f11f848: 460c2200 */ add.s $f8,$f4,$f12 -/* f11f84c: 4449f800 */ cfc1 $t1,$31 -/* f11f850: 44caf800 */ ctc1 $t2,$31 -/* f11f854: 00000000 */ nop -/* f11f858: 460042a4 */ cvt.w.s $f10,$f8 -/* f11f85c: 444af800 */ cfc1 $t2,$31 -/* f11f860: 00000000 */ nop -/* f11f864: 314a0078 */ andi $t2,$t2,0x78 -/* f11f868: 11400012 */ beqz $t2,.L0f11f8b4 -/* f11f86c: 00000000 */ nop -/* f11f870: 44815000 */ mtc1 $at,$f10 -/* f11f874: 240a0001 */ addiu $t2,$zero,0x1 -/* f11f878: 460a4281 */ sub.s $f10,$f8,$f10 -/* f11f87c: 44caf800 */ ctc1 $t2,$31 -/* f11f880: 00000000 */ nop -/* f11f884: 460052a4 */ cvt.w.s $f10,$f10 -/* f11f888: 444af800 */ cfc1 $t2,$31 -/* f11f88c: 00000000 */ nop -/* f11f890: 314a0078 */ andi $t2,$t2,0x78 -/* f11f894: 15400005 */ bnez $t2,.L0f11f8ac -/* f11f898: 00000000 */ nop -/* f11f89c: 440a5000 */ mfc1 $t2,$f10 -/* f11f8a0: 3c018000 */ lui $at,0x8000 -/* f11f8a4: 10000007 */ b .L0f11f8c4 -/* f11f8a8: 01415025 */ or $t2,$t2,$at -.L0f11f8ac: -/* f11f8ac: 10000005 */ b .L0f11f8c4 -/* f11f8b0: 240affff */ addiu $t2,$zero,-1 -.L0f11f8b4: -/* f11f8b4: 440a5000 */ mfc1 $t2,$f10 -/* f11f8b8: 00000000 */ nop -/* f11f8bc: 0540fffb */ bltz $t2,.L0f11f8ac -/* f11f8c0: 00000000 */ nop -.L0f11f8c4: -/* f11f8c4: 44c9f800 */ ctc1 $t1,$31 -/* f11f8c8: a08a0015 */ sb $t2,0x15($a0) -/* f11f8cc: c446003c */ lwc1 $f6,0x3c($v0) -/* f11f8d0: 46127102 */ mul.s $f4,$f14,$f18 -/* f11f8d4: 240c0001 */ addiu $t4,$zero,0x1 -/* f11f8d8: 3c014f00 */ lui $at,0x4f00 -/* f11f8dc: 46048201 */ sub.s $f8,$f16,$f4 -/* f11f8e0: 46083282 */ mul.s $f10,$f6,$f8 -/* f11f8e4: 00000000 */ nop -/* f11f8e8: 46005102 */ mul.s $f4,$f10,$f0 -/* f11f8ec: 460e2180 */ add.s $f6,$f4,$f14 -/* f11f8f0: 444bf800 */ cfc1 $t3,$31 -/* f11f8f4: 44ccf800 */ ctc1 $t4,$31 -/* f11f8f8: 00000000 */ nop -/* f11f8fc: 46003224 */ cvt.w.s $f8,$f6 -/* f11f900: 444cf800 */ cfc1 $t4,$31 -/* f11f904: 00000000 */ nop -/* f11f908: 318c0078 */ andi $t4,$t4,0x78 -/* f11f90c: 11800012 */ beqz $t4,.L0f11f958 -/* f11f910: 00000000 */ nop -/* f11f914: 44814000 */ mtc1 $at,$f8 -/* f11f918: 240c0001 */ addiu $t4,$zero,0x1 -/* f11f91c: 46083201 */ sub.s $f8,$f6,$f8 -/* f11f920: 44ccf800 */ ctc1 $t4,$31 -/* f11f924: 00000000 */ nop -/* f11f928: 46004224 */ cvt.w.s $f8,$f8 -/* f11f92c: 444cf800 */ cfc1 $t4,$31 -/* f11f930: 00000000 */ nop -/* f11f934: 318c0078 */ andi $t4,$t4,0x78 -/* f11f938: 15800005 */ bnez $t4,.L0f11f950 -/* f11f93c: 00000000 */ nop -/* f11f940: 440c4000 */ mfc1 $t4,$f8 -/* f11f944: 3c018000 */ lui $at,0x8000 -/* f11f948: 10000007 */ b .L0f11f968 -/* f11f94c: 01816025 */ or $t4,$t4,$at -.L0f11f950: -/* f11f950: 10000005 */ b .L0f11f968 -/* f11f954: 240cffff */ addiu $t4,$zero,-1 -.L0f11f958: -/* f11f958: 440c4000 */ mfc1 $t4,$f8 -/* f11f95c: 00000000 */ nop -/* f11f960: 0580fffb */ bltz $t4,.L0f11f950 -/* f11f964: 00000000 */ nop -.L0f11f968: -/* f11f968: a08c0016 */ sb $t4,0x16($a0) -/* f11f96c: a08d0017 */ sb $t5,0x17($a0) -/* f11f970: 8fbf0014 */ lw $ra,0x14($sp) -/* f11f974: 44cbf800 */ ctc1 $t3,$31 -/* f11f978: 27bd0018 */ addiu $sp,$sp,0x18 -/* f11f97c: 03e00008 */ jr $ra -/* f11f980: 00000000 */ nop -); - -GLOBAL_ASM( -glabel func0f11f984 -.late_rodata -glabel var7f1b5000 -.word 0x3dcccccd -glabel var7f1b5004 -.word func0f11f984+0x6a0 # f120024 -glabel var7f1b5008 -.word func0f11f984+0xf24 # f1208a8 -glabel var7f1b500c -.word func0f11f984+0x1074 # f1209f8 -glabel var7f1b5010 -.word func0f11f984+0x7ac # f120130 -glabel var7f1b5014 -.word func0f11f984+0x11c4 # f120b48 -glabel var7f1b5018 -.word func0f11f984+0xad8 # f12045c -glabel var7f1b501c -.word func0f11f984+0x1464 # f120de8 -glabel var7f1b5020 -.word func0f11f984+0xe54 # f1207d8 -glabel var7f1b5024 -.word func0f11f984+0x1314 # f120c98 -glabel var7f1b5028 -.word func0f11f984+0x1464 # f120de8 -glabel var7f1b502c -.word func0f11f984+0x9cc # f120350 -glabel var7f1b5030 -.word func0f11f984+0xd84 # f120708 -glabel var7f1b5034 -.word func0f11f984+0x8b8 # f12023c -glabel var7f1b5038 -.word func0f11f984+0xcb4 # f120638 -glabel var7f1b503c -.word func0f11f984+0xbe4 # f120568 -glabel var7f1b5040 -.word func0f11f984+0x690 # f120014 -glabel var7f1b5044 -.word 0x3d088889 -glabel var7f1b5048 -.word 0x3d088889 -glabel var7f1b504c -.word 0x3d088889 -glabel var7f1b5050 -.word 0x3d088889 -glabel var7f1b5054 -.word 0x3d088889 -glabel var7f1b5058 -.word 0x3d088889 -glabel var7f1b505c -.word 0x3d088889 -glabel var7f1b5060 -.word 0x3d088889 -glabel var7f1b5064 -.word 0x3d088889 -glabel var7f1b5068 -.word 0x3d088889 -glabel var7f1b506c -.word 0x3d088889 -glabel var7f1b5070 -.word 0x3d088889 -glabel var7f1b5074 -.word 0x3d088889 -glabel var7f1b5078 -.word 0x3d088889 -glabel var7f1b507c -.word 0x477fff00 -glabel var7f1b5080 -.word 0x449fe000 -glabel var7f1b5084 -.word 0x446fc000 -glabel var7f1b5088 -.word func0f11f984+0x19e8 # f12136c -glabel var7f1b508c -.word func0f11f984+0x2010 # f121994 -glabel var7f1b5090 -.word func0f11f984+0x2100 # f121a84 -glabel var7f1b5094 -.word func0f11f984+0x1c68 # f1215ec -glabel var7f1b5098 -.word func0f11f984+0x21f0 # f121b74 -glabel var7f1b509c -.word func0f11f984+0x1da0 # f121724 -glabel var7f1b50a0 -.word func0f11f984+0x29f4 # f122378 -glabel var7f1b50a4 -.word func0f11f984+0x286c # f1221f0 -glabel var7f1b50a8 -.word func0f11f984+0x22e0 # f121c64 -glabel var7f1b50ac -.word func0f11f984+0x29f4 # f122378 -glabel var7f1b50b0 -.word func0f11f984+0x1ed8 # f12185c -glabel var7f1b50b4 -.word func0f11f984+0x26e4 # f122068 -glabel var7f1b50b8 -.word func0f11f984+0x1b2c # f1214b0 -glabel var7f1b50bc -.word func0f11f984+0x2558 # f121edc -glabel var7f1b50c0 -.word func0f11f984+0x23d0 # f121d54 -glabel var7f1b50c4 -.word func0f11f984+0x19f0 # f121374 -glabel var7f1b50c8 -.word 0x477fff00 -.text -/* f11f984: 27bdf950 */ addiu $sp,$sp,-1712 -/* f11f988: afbf0054 */ sw $ra,0x54($sp) -/* f11f98c: afb10050 */ sw $s1,0x50($sp) -/* f11f990: afb0004c */ sw $s0,0x4c($sp) -/* f11f994: f7bc0040 */ sdc1 $f28,0x40($sp) -/* f11f998: f7ba0038 */ sdc1 $f26,0x38($sp) -/* f11f99c: f7b80030 */ sdc1 $f24,0x30($sp) -/* f11f9a0: f7b60028 */ sdc1 $f22,0x28($sp) -/* f11f9a4: f7b40020 */ sdc1 $f20,0x20($sp) -/* f11f9a8: afa406b0 */ sw $a0,0x6b0($sp) -/* f11f9ac: 0fc595f3 */ jal envGetCurrent -/* f11f9b0: afa00430 */ sw $zero,0x430($sp) -/* f11f9b4: 904e0010 */ lbu $t6,0x10($v0) -/* f11f9b8: 3c11800a */ lui $s1,%hi(g_Vars) -/* f11f9bc: 00404025 */ or $t0,$v0,$zero -/* f11f9c0: 11c00005 */ beqz $t6,.L0f11f9d8 -/* f11f9c4: 26319fc0 */ addiu $s1,$s1,%lo(g_Vars) -/* f11f9c8: 8e2f0284 */ lw $t7,0x284($s1) -/* f11f9cc: 24050001 */ addiu $a1,$zero,0x1 -/* f11f9d0: 95f80010 */ lhu $t8,0x10($t7) -/* f11f9d4: 14b800ae */ bne $a1,$t8,.L0f11fc90 -.L0f11f9d8: -/* f11f9d8: 3c11800a */ lui $s1,%hi(g_Vars) -/* f11f9dc: 26319fc0 */ addiu $s1,$s1,%lo(g_Vars) -/* f11f9e0: 8e39006c */ lw $t9,0x6c($s1) -/* f11f9e4: 24050001 */ addiu $a1,$zero,0x1 -/* f11f9e8: 00002025 */ or $a0,$zero,$zero -/* f11f9ec: 13200003 */ beqz $t9,.L0f11f9fc -/* f11f9f0: 00001825 */ or $v1,$zero,$zero -/* f11f9f4: 10000001 */ b .L0f11f9fc -/* f11f9f8: 00a02025 */ or $a0,$a1,$zero -.L0f11f9fc: -/* f11f9fc: 8e290068 */ lw $t1,0x68($s1) -/* f11fa00: 00008025 */ or $s0,$zero,$zero -/* f11fa04: 00001025 */ or $v0,$zero,$zero -/* f11fa08: 11200003 */ beqz $t1,.L0f11fa18 -/* f11fa0c: 8fb806b0 */ lw $t8,0x6b0($sp) -/* f11fa10: 10000001 */ b .L0f11fa18 -/* f11fa14: 00a01825 */ or $v1,$a1,$zero -.L0f11fa18: -/* f11fa18: 8e2a0064 */ lw $t2,0x64($s1) -/* f11fa1c: 8faf06b0 */ lw $t7,0x6b0($sp) -/* f11fa20: 3c090030 */ lui $t1,0x30 -/* f11fa24: 11400003 */ beqz $t2,.L0f11fa34 -/* f11fa28: 27190008 */ addiu $t9,$t8,0x8 -/* f11fa2c: 10000001 */ b .L0f11fa34 -/* f11fa30: 00a08025 */ or $s0,$a1,$zero -.L0f11fa34: -/* f11fa34: 8e2b0070 */ lw $t3,0x70($s1) -/* f11fa38: 11600003 */ beqz $t3,.L0f11fa48 -/* f11fa3c: 00000000 */ nop -/* f11fa40: 10000001 */ b .L0f11fa48 -/* f11fa44: 00a01025 */ or $v0,$a1,$zero -.L0f11fa48: -/* f11fa48: 00506021 */ addu $t4,$v0,$s0 -/* f11fa4c: 01836821 */ addu $t5,$t4,$v1 -/* f11fa50: 01a47021 */ addu $t6,$t5,$a0 -/* f11fa54: 14ae0046 */ bne $a1,$t6,.L0f11fb70 -/* f11fa58: 3c0be700 */ lui $t3,0xe700 -/* f11fa5c: 25f80008 */ addiu $t8,$t7,0x8 -/* f11fa60: afb806b0 */ sw $t8,0x6b0($sp) -/* f11fa64: 3c19ba00 */ lui $t9,0xba00 -/* f11fa68: 37391402 */ ori $t9,$t9,0x1402 -/* f11fa6c: adf90000 */ sw $t9,0x0($t7) -/* f11fa70: ade90004 */ sw $t1,0x4($t7) -/* f11fa74: 8e2a0284 */ lw $t2,0x284($s1) -/* f11fa78: 00003025 */ or $a2,$zero,$zero -/* f11fa7c: 00003825 */ or $a3,$zero,$zero -/* f11fa80: 954b0010 */ lhu $t3,0x10($t2) -/* f11fa84: 8fa406b0 */ lw $a0,0x6b0($sp) -/* f11fa88: 54ab0007 */ bnel $a1,$t3,.L0f11faa8 -/* f11fa8c: 91050008 */ lbu $a1,0x8($t0) -/* f11fa90: 8fa406b0 */ lw $a0,0x6b0($sp) -/* f11fa94: 0c002fc1 */ jal viSetFillColour -/* f11fa98: 00002825 */ or $a1,$zero,$zero -/* f11fa9c: 10000007 */ b .L0f11fabc -/* f11faa0: 00401825 */ or $v1,$v0,$zero -/* f11faa4: 91050008 */ lbu $a1,0x8($t0) -.L0f11faa8: -/* f11faa8: 91060009 */ lbu $a2,0x9($t0) -/* f11faac: 0c002fc1 */ jal viSetFillColour -/* f11fab0: 9107000a */ lbu $a3,0xa($t0) -/* f11fab4: afa206b0 */ sw $v0,0x6b0($sp) -/* f11fab8: 00401825 */ or $v1,$v0,$zero -.L0f11fabc: -/* f11fabc: 00608825 */ or $s1,$v1,$zero -/* f11fac0: 24630008 */ addiu $v1,$v1,0x8 -/* f11fac4: 0c002f22 */ jal viGetViewWidth -/* f11fac8: afa306b0 */ sw $v1,0x6b0($sp) -/* f11facc: 0c002f40 */ jal viGetViewLeft -/* f11fad0: a7a2007a */ sh $v0,0x7a($sp) -/* f11fad4: 0c002f44 */ jal viGetViewTop -/* f11fad8: a7a2007c */ sh $v0,0x7c($sp) -/* f11fadc: 00028400 */ sll $s0,$v0,0x10 -/* f11fae0: 00106403 */ sra $t4,$s0,0x10 -/* f11fae4: 0c002f26 */ jal viGetViewHeight -/* f11fae8: 01808025 */ or $s0,$t4,$zero -/* f11faec: 87ad007c */ lh $t5,0x7c($sp) -/* f11faf0: 87ae007a */ lh $t6,0x7a($sp) -/* f11faf4: 00505021 */ addu $t2,$v0,$s0 -/* f11faf8: 254bffff */ addiu $t3,$t2,-1 -/* f11fafc: 01ae7821 */ addu $t7,$t5,$t6 -/* f11fb00: 25f8ffff */ addiu $t8,$t7,-1 -/* f11fb04: 316c03ff */ andi $t4,$t3,0x3ff -/* f11fb08: 000c6880 */ sll $t5,$t4,0x2 -/* f11fb0c: 331903ff */ andi $t9,$t8,0x3ff -/* f11fb10: 3c01f600 */ lui $at,0xf600 -/* f11fb14: 01a17025 */ or $t6,$t5,$at -/* f11fb18: 00194b80 */ sll $t1,$t9,0xe -/* f11fb1c: 01c97825 */ or $t7,$t6,$t1 -/* f11fb20: 0c002f40 */ jal viGetViewLeft -/* f11fb24: ae2f0000 */ sw $t7,0x0($s1) -/* f11fb28: 00028400 */ sll $s0,$v0,0x10 -/* f11fb2c: 0010c403 */ sra $t8,$s0,0x10 -/* f11fb30: 0c002f44 */ jal viGetViewTop -/* f11fb34: 03008025 */ or $s0,$t8,$zero -/* f11fb38: 305903ff */ andi $t9,$v0,0x3ff -/* f11fb3c: 320b03ff */ andi $t3,$s0,0x3ff -/* f11fb40: 000b6380 */ sll $t4,$t3,0xe -/* f11fb44: 00195080 */ sll $t2,$t9,0x2 -/* f11fb48: 014c6825 */ or $t5,$t2,$t4 -/* f11fb4c: ae2d0004 */ sw $t5,0x4($s1) -/* f11fb50: 8fae06b0 */ lw $t6,0x6b0($sp) -/* f11fb54: 3c0fe700 */ lui $t7,0xe700 -/* f11fb58: 25c90008 */ addiu $t1,$t6,0x8 -/* f11fb5c: afa906b0 */ sw $t1,0x6b0($sp) -/* f11fb60: adc00004 */ sw $zero,0x4($t6) -/* f11fb64: adcf0000 */ sw $t7,0x0($t6) -/* f11fb68: 10000b4f */ b .L0f1228a8 -/* f11fb6c: 8fa206b0 */ lw $v0,0x6b0($sp) -.L0f11fb70: -/* f11fb70: afb906b0 */ sw $t9,0x6b0($sp) -/* f11fb74: af000004 */ sw $zero,0x4($t8) -/* f11fb78: af0b0000 */ sw $t3,0x0($t8) -/* f11fb7c: 8faa06b0 */ lw $t2,0x6b0($sp) -/* f11fb80: 3c0dba00 */ lui $t5,0xba00 -/* f11fb84: 35ad1402 */ ori $t5,$t5,0x1402 -/* f11fb88: 254c0008 */ addiu $t4,$t2,0x8 -/* f11fb8c: afac06b0 */ sw $t4,0x6b0($sp) -/* f11fb90: 3c0e0030 */ lui $t6,0x30 -/* f11fb94: ad4e0004 */ sw $t6,0x4($t2) -/* f11fb98: ad4d0000 */ sw $t5,0x0($t2) -/* f11fb9c: 8e290284 */ lw $t1,0x284($s1) -/* f11fba0: 00003025 */ or $a2,$zero,$zero -/* f11fba4: 00003825 */ or $a3,$zero,$zero -/* f11fba8: 952f0010 */ lhu $t7,0x10($t1) -/* f11fbac: 8fa406b0 */ lw $a0,0x6b0($sp) -/* f11fbb0: 54af0007 */ bnel $a1,$t7,.L0f11fbd0 -/* f11fbb4: 91050008 */ lbu $a1,0x8($t0) -/* f11fbb8: 8fa406b0 */ lw $a0,0x6b0($sp) -/* f11fbbc: 0c002fc1 */ jal viSetFillColour -/* f11fbc0: 00002825 */ or $a1,$zero,$zero -/* f11fbc4: 10000006 */ b .L0f11fbe0 -/* f11fbc8: afa206b0 */ sw $v0,0x6b0($sp) -/* f11fbcc: 91050008 */ lbu $a1,0x8($t0) -.L0f11fbd0: -/* f11fbd0: 91060009 */ lbu $a2,0x9($t0) -/* f11fbd4: 0c002fc1 */ jal viSetFillColour -/* f11fbd8: 9107000a */ lbu $a3,0xa($t0) -/* f11fbdc: afa206b0 */ sw $v0,0x6b0($sp) -.L0f11fbe0: -/* f11fbe0: 8fb806b0 */ lw $t8,0x6b0($sp) -/* f11fbe4: 3c0bb900 */ lui $t3,0xb900 -/* f11fbe8: 356b031d */ ori $t3,$t3,0x31d -/* f11fbec: 27190008 */ addiu $t9,$t8,0x8 -/* f11fbf0: afb906b0 */ sw $t9,0x6b0($sp) -/* f11fbf4: af000004 */ sw $zero,0x4($t8) -/* f11fbf8: af0b0000 */ sw $t3,0x0($t8) -/* f11fbfc: 8fa506b0 */ lw $a1,0x6b0($sp) -/* f11fc00: 8e230284 */ lw $v1,0x284($s1) -/* f11fc04: 3c01f600 */ lui $at,0xf600 -/* f11fc08: 24ac0008 */ addiu $t4,$a1,0x8 -/* f11fc0c: afac06b0 */ sw $t4,0x6b0($sp) -/* f11fc10: 846d0634 */ lh $t5,0x634($v1) -/* f11fc14: 846e0630 */ lh $t6,0x630($v1) -/* f11fc18: 846a0636 */ lh $t2,0x636($v1) -/* f11fc1c: 846c0632 */ lh $t4,0x632($v1) -/* f11fc20: 01ae4821 */ addu $t1,$t5,$t6 -/* f11fc24: 252fffff */ addiu $t7,$t1,-1 -/* f11fc28: 014c6821 */ addu $t5,$t2,$t4 -/* f11fc2c: 25aeffff */ addiu $t6,$t5,-1 -/* f11fc30: 31f803ff */ andi $t8,$t7,0x3ff -/* f11fc34: 0018cb80 */ sll $t9,$t8,0xe -/* f11fc38: 31c903ff */ andi $t1,$t6,0x3ff -/* f11fc3c: 00097880 */ sll $t7,$t1,0x2 -/* f11fc40: 03215825 */ or $t3,$t9,$at -/* f11fc44: 016fc025 */ or $t8,$t3,$t7 -/* f11fc48: acb80000 */ sw $t8,0x0($a1) -/* f11fc4c: 8e230284 */ lw $v1,0x284($s1) -/* f11fc50: 84790634 */ lh $t9,0x634($v1) -/* f11fc54: 846d0636 */ lh $t5,0x636($v1) -/* f11fc58: 332a03ff */ andi $t2,$t9,0x3ff -/* f11fc5c: 31ae03ff */ andi $t6,$t5,0x3ff -/* f11fc60: 000e4880 */ sll $t1,$t6,0x2 -/* f11fc64: 000a6380 */ sll $t4,$t2,0xe -/* f11fc68: 01895825 */ or $t3,$t4,$t1 -/* f11fc6c: acab0004 */ sw $t3,0x4($a1) -/* f11fc70: 8faf06b0 */ lw $t7,0x6b0($sp) -/* f11fc74: 3c19e700 */ lui $t9,0xe700 -/* f11fc78: 25f80008 */ addiu $t8,$t7,0x8 -/* f11fc7c: afb806b0 */ sw $t8,0x6b0($sp) -/* f11fc80: ade00004 */ sw $zero,0x4($t7) -/* f11fc84: adf90000 */ sw $t9,0x0($t7) -/* f11fc88: 10000b07 */ b .L0f1228a8 -/* f11fc8c: 8fa206b0 */ lw $v0,0x6b0($sp) -.L0f11fc90: -/* f11fc90: 91050008 */ lbu $a1,0x8($t0) -/* f11fc94: 91060009 */ lbu $a2,0x9($t0) -/* f11fc98: 9107000a */ lbu $a3,0xa($t0) -/* f11fc9c: afa8042c */ sw $t0,0x42c($sp) -/* f11fca0: 0c002fc1 */ jal viSetFillColour -/* f11fca4: 8fa406b0 */ lw $a0,0x6b0($sp) -/* f11fca8: 44806000 */ mtc1 $zero,$f12 -/* f11fcac: 27b106a4 */ addiu $s1,$sp,0x6a4 -/* f11fcb0: afa206b0 */ sw $v0,0x6b0($sp) -/* f11fcb4: 02203025 */ or $a2,$s1,$zero -/* f11fcb8: 0fc47c00 */ jal func0f11f000 -/* f11fcbc: 46006386 */ mov.s $f14,$f12 -/* f11fcc0: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f11fcc4: 00000000 */ nop -/* f11fcc8: 3c017f1b */ lui $at,%hi(var7f1b5000) -/* f11fccc: c43c5000 */ lwc1 $f28,%lo(var7f1b5000)($at) -/* f11fcd0: 44807000 */ mtc1 $zero,$f14 -/* f11fcd4: 27a60698 */ addiu $a2,$sp,0x698 -/* f11fcd8: 0fc47c00 */ jal func0f11f000 -/* f11fcdc: 461c0301 */ sub.s $f12,$f0,$f28 -/* f11fce0: 0fc2d5fa */ jal currentPlayerGetScreenHeight -/* f11fce4: 00000000 */ nop -/* f11fce8: 44806000 */ mtc1 $zero,$f12 -/* f11fcec: 461c0381 */ sub.s $f14,$f0,$f28 -/* f11fcf0: 0fc47c00 */ jal func0f11f000 -/* f11fcf4: 27a6068c */ addiu $a2,$sp,0x68c -/* f11fcf8: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f11fcfc: 00000000 */ nop -/* f11fd00: 0fc2d5fa */ jal currentPlayerGetScreenHeight -/* f11fd04: 46000586 */ mov.s $f22,$f0 -/* f11fd08: 461cb301 */ sub.s $f12,$f22,$f28 -/* f11fd0c: 27a60680 */ addiu $a2,$sp,0x680 -/* f11fd10: 0fc47c00 */ jal func0f11f000 -/* f11fd14: 461c0381 */ sub.s $f14,$f0,$f28 -/* f11fd18: 02202025 */ or $a0,$s1,$zero -/* f11fd1c: 27a50644 */ addiu $a1,$sp,0x644 -/* f11fd20: 0fc47c1f */ jal func0f11f07c -/* f11fd24: 27a6058c */ addiu $a2,$sp,0x58c -/* f11fd28: afa20538 */ sw $v0,0x538($sp) -/* f11fd2c: 27a40698 */ addiu $a0,$sp,0x698 -/* f11fd30: 27a50638 */ addiu $a1,$sp,0x638 -/* f11fd34: 0fc47c1f */ jal func0f11f07c -/* f11fd38: 27a60588 */ addiu $a2,$sp,0x588 -/* f11fd3c: afa20534 */ sw $v0,0x534($sp) -/* f11fd40: 27a4068c */ addiu $a0,$sp,0x68c -/* f11fd44: 27a5062c */ addiu $a1,$sp,0x62c -/* f11fd48: 0fc47c1f */ jal func0f11f07c -/* f11fd4c: 27a60584 */ addiu $a2,$sp,0x584 -/* f11fd50: afa20530 */ sw $v0,0x530($sp) -/* f11fd54: 27a40680 */ addiu $a0,$sp,0x680 -/* f11fd58: 27a50620 */ addiu $a1,$sp,0x620 -/* f11fd5c: 0fc47c1f */ jal func0f11f07c -/* f11fd60: 27a60580 */ addiu $a2,$sp,0x580 -/* f11fd64: afa2052c */ sw $v0,0x52c($sp) -/* f11fd68: 02202025 */ or $a0,$s1,$zero -/* f11fd6c: 27a505e4 */ addiu $a1,$sp,0x5e4 -/* f11fd70: 0fc47c7f */ jal func0f11f1fc -/* f11fd74: 27a6056c */ addiu $a2,$sp,0x56c -/* f11fd78: 27a40698 */ addiu $a0,$sp,0x698 -/* f11fd7c: 27a505d8 */ addiu $a1,$sp,0x5d8 -/* f11fd80: 0fc47c7f */ jal func0f11f1fc -/* f11fd84: 27a60568 */ addiu $a2,$sp,0x568 -/* f11fd88: 27a4068c */ addiu $a0,$sp,0x68c -/* f11fd8c: 27a505cc */ addiu $a1,$sp,0x5cc -/* f11fd90: 0fc47c7f */ jal func0f11f1fc -/* f11fd94: 27a60564 */ addiu $a2,$sp,0x564 -/* f11fd98: 27a40680 */ addiu $a0,$sp,0x680 -/* f11fd9c: 27a505c0 */ addiu $a1,$sp,0x5c0 -/* f11fda0: 0fc47c7f */ jal func0f11f1fc -/* f11fda4: 27a60560 */ addiu $a2,$sp,0x560 -/* f11fda8: 8faa0538 */ lw $t2,0x538($sp) -/* f11fdac: 8fad0530 */ lw $t5,0x530($sp) -/* f11fdb0: 514d001f */ beql $t2,$t5,.L0f11fe30 -/* f11fdb4: 44805000 */ mtc1 $zero,$f10 -/* f11fdb8: 0fc2d602 */ jal currentPlayerGetScreenTop -/* f11fdbc: 00000000 */ nop -/* f11fdc0: 0fc2d5fa */ jal currentPlayerGetScreenHeight -/* f11fdc4: 46000586 */ mov.s $f22,$f0 -/* f11fdc8: c7a206a8 */ lwc1 $f2,0x6a8($sp) -/* f11fdcc: c7b00690 */ lwc1 $f16,0x690($sp) -/* f11fdd0: 27b0065c */ addiu $s0,$sp,0x65c -/* f11fdd4: 44806000 */ mtc1 $zero,$f12 -/* f11fdd8: 46101101 */ sub.s $f4,$f2,$f16 -/* f11fddc: 02003025 */ or $a2,$s0,$zero -/* f11fde0: 46041183 */ div.s $f6,$f2,$f4 -/* f11fde4: 46003202 */ mul.s $f8,$f6,$f0 -/* f11fde8: 46164380 */ add.s $f14,$f8,$f22 -/* f11fdec: 0fc47c00 */ jal func0f11f000 -/* f11fdf0: e7ae054c */ swc1 $f14,0x54c($sp) -/* f11fdf4: 02202025 */ or $a0,$s1,$zero -/* f11fdf8: 27a5068c */ addiu $a1,$sp,0x68c -/* f11fdfc: 0fc47ce1 */ jal func0f11f384 -/* f11fe00: 02003025 */ or $a2,$s0,$zero -/* f11fe04: 02002025 */ or $a0,$s0,$zero -/* f11fe08: 27a505fc */ addiu $a1,$sp,0x5fc -/* f11fe0c: 0fc47c1f */ jal func0f11f07c -/* f11fe10: 27a60574 */ addiu $a2,$sp,0x574 -/* f11fe14: 02002025 */ or $a0,$s0,$zero -/* f11fe18: 27a5059c */ addiu $a1,$sp,0x59c -/* f11fe1c: 0fc47c7f */ jal func0f11f1fc -/* f11fe20: 27a60554 */ addiu $a2,$sp,0x554 -/* f11fe24: 10000005 */ b .L0f11fe3c -/* f11fe28: 8fae0534 */ lw $t6,0x534($sp) -/* f11fe2c: 44805000 */ mtc1 $zero,$f10 -.L0f11fe30: -/* f11fe30: 00000000 */ nop -/* f11fe34: e7aa054c */ swc1 $f10,0x54c($sp) -/* f11fe38: 8fae0534 */ lw $t6,0x534($sp) -.L0f11fe3c: -/* f11fe3c: 8fac052c */ lw $t4,0x52c($sp) -/* f11fe40: 51cc0021 */ beql $t6,$t4,.L0f11fec8 -/* f11fe44: 44803000 */ mtc1 $zero,$f6 -/* f11fe48: 0fc2d602 */ jal currentPlayerGetScreenTop -/* f11fe4c: 00000000 */ nop -/* f11fe50: 0fc2d5fa */ jal currentPlayerGetScreenHeight -/* f11fe54: 46000586 */ mov.s $f22,$f0 -/* f11fe58: c7b0069c */ lwc1 $f16,0x69c($sp) -/* f11fe5c: c7a40684 */ lwc1 $f4,0x684($sp) -/* f11fe60: 46048181 */ sub.s $f6,$f16,$f4 -/* f11fe64: 46068203 */ div.s $f8,$f16,$f6 -/* f11fe68: 46004282 */ mul.s $f10,$f8,$f0 -/* f11fe6c: 46165100 */ add.s $f4,$f10,$f22 -/* f11fe70: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f11fe74: e7a40548 */ swc1 $f4,0x548($sp) -/* f11fe78: 27b00650 */ addiu $s0,$sp,0x650 -/* f11fe7c: 02003025 */ or $a2,$s0,$zero -/* f11fe80: 461c0301 */ sub.s $f12,$f0,$f28 -/* f11fe84: 0fc47c00 */ jal func0f11f000 -/* f11fe88: c7ae0548 */ lwc1 $f14,0x548($sp) -/* f11fe8c: 27a40698 */ addiu $a0,$sp,0x698 -/* f11fe90: 27a50680 */ addiu $a1,$sp,0x680 -/* f11fe94: 0fc47ce1 */ jal func0f11f384 -/* f11fe98: 02003025 */ or $a2,$s0,$zero -/* f11fe9c: 02002025 */ or $a0,$s0,$zero -/* f11fea0: 27a505f0 */ addiu $a1,$sp,0x5f0 -/* f11fea4: 0fc47c1f */ jal func0f11f07c -/* f11fea8: 27a60570 */ addiu $a2,$sp,0x570 -/* f11feac: 02002025 */ or $a0,$s0,$zero -/* f11feb0: 27a50590 */ addiu $a1,$sp,0x590 -/* f11feb4: 0fc47c7f */ jal func0f11f1fc -/* f11feb8: 27a60550 */ addiu $a2,$sp,0x550 -/* f11febc: 10000005 */ b .L0f11fed4 -/* f11fec0: 8fa90538 */ lw $t1,0x538($sp) -/* f11fec4: 44803000 */ mtc1 $zero,$f6 -.L0f11fec8: -/* f11fec8: 00000000 */ nop -/* f11fecc: e7a60548 */ swc1 $f6,0x548($sp) -/* f11fed0: 8fa90538 */ lw $t1,0x538($sp) -.L0f11fed4: -/* f11fed4: 8fab0534 */ lw $t3,0x534($sp) -/* f11fed8: 512b001c */ beql $t1,$t3,.L0f11ff4c -/* f11fedc: 8faf0530 */ lw $t7,0x530($sp) -/* f11fee0: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f11fee4: 00000000 */ nop -/* f11fee8: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f11feec: 46000586 */ mov.s $f22,$f0 -/* f11fef0: c7a206a8 */ lwc1 $f2,0x6a8($sp) -/* f11fef4: c7b0069c */ lwc1 $f16,0x69c($sp) -/* f11fef8: 27b00674 */ addiu $s0,$sp,0x674 -/* f11fefc: 44807000 */ mtc1 $zero,$f14 -/* f11ff00: 46101201 */ sub.s $f8,$f2,$f16 -/* f11ff04: 02003025 */ or $a2,$s0,$zero -/* f11ff08: 46081283 */ div.s $f10,$f2,$f8 -/* f11ff0c: 46005102 */ mul.s $f4,$f10,$f0 -/* f11ff10: 0fc47c00 */ jal func0f11f000 -/* f11ff14: 46162300 */ add.s $f12,$f4,$f22 -/* f11ff18: 02202025 */ or $a0,$s1,$zero -/* f11ff1c: 27a50698 */ addiu $a1,$sp,0x698 -/* f11ff20: 0fc47ce1 */ jal func0f11f384 -/* f11ff24: 02003025 */ or $a2,$s0,$zero -/* f11ff28: 02002025 */ or $a0,$s0,$zero -/* f11ff2c: 27a50614 */ addiu $a1,$sp,0x614 -/* f11ff30: 0fc47c1f */ jal func0f11f07c -/* f11ff34: 27a6057c */ addiu $a2,$sp,0x57c -/* f11ff38: 02002025 */ or $a0,$s0,$zero -/* f11ff3c: 27a505b4 */ addiu $a1,$sp,0x5b4 -/* f11ff40: 0fc47c7f */ jal func0f11f1fc -/* f11ff44: 27a6055c */ addiu $a2,$sp,0x55c -/* f11ff48: 8faf0530 */ lw $t7,0x530($sp) -.L0f11ff4c: -/* f11ff4c: 8fb8052c */ lw $t8,0x52c($sp) -/* f11ff50: 51f8001e */ beql $t7,$t8,.L0f11ffcc -/* f11ff54: 8fb90538 */ lw $t9,0x538($sp) -/* f11ff58: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f11ff5c: 00000000 */ nop -/* f11ff60: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f11ff64: 46000586 */ mov.s $f22,$f0 -/* f11ff68: c7b00690 */ lwc1 $f16,0x690($sp) -/* f11ff6c: c7a60684 */ lwc1 $f6,0x684($sp) -/* f11ff70: 46068201 */ sub.s $f8,$f16,$f6 -/* f11ff74: 46088283 */ div.s $f10,$f16,$f8 -/* f11ff78: 46005102 */ mul.s $f4,$f10,$f0 -/* f11ff7c: 0fc2d5fa */ jal currentPlayerGetScreenHeight -/* f11ff80: 46162500 */ add.s $f20,$f4,$f22 -/* f11ff84: 27b00668 */ addiu $s0,$sp,0x668 -/* f11ff88: 02003025 */ or $a2,$s0,$zero -/* f11ff8c: 4600a306 */ mov.s $f12,$f20 -/* f11ff90: 0fc47c00 */ jal func0f11f000 -/* f11ff94: 461c0381 */ sub.s $f14,$f0,$f28 -/* f11ff98: 27a4068c */ addiu $a0,$sp,0x68c -/* f11ff9c: 27a50680 */ addiu $a1,$sp,0x680 -/* f11ffa0: 0fc47ce1 */ jal func0f11f384 -/* f11ffa4: 02003025 */ or $a2,$s0,$zero -/* f11ffa8: 02002025 */ or $a0,$s0,$zero -/* f11ffac: 27a50608 */ addiu $a1,$sp,0x608 -/* f11ffb0: 0fc47c1f */ jal func0f11f07c -/* f11ffb4: 27a60578 */ addiu $a2,$sp,0x578 -/* f11ffb8: 02002025 */ or $a0,$s0,$zero -/* f11ffbc: 27a505a8 */ addiu $a1,$sp,0x5a8 -/* f11ffc0: 0fc47c7f */ jal func0f11f1fc -/* f11ffc4: 27a60558 */ addiu $a2,$sp,0x558 -/* f11ffc8: 8fb90538 */ lw $t9,0x538($sp) -.L0f11ffcc: -/* f11ffcc: 8fad0534 */ lw $t5,0x534($sp) -/* f11ffd0: 8fa90530 */ lw $t1,0x530($sp) -/* f11ffd4: 8fb8052c */ lw $t8,0x52c($sp) -/* f11ffd8: 001950c0 */ sll $t2,$t9,0x3 -/* f11ffdc: 000d7080 */ sll $t6,$t5,0x2 -/* f11ffe0: 014e6025 */ or $t4,$t2,$t6 -/* f11ffe4: 00095840 */ sll $t3,$t1,0x1 -/* f11ffe8: 018b7825 */ or $t7,$t4,$t3 -/* f11ffec: 01f8c825 */ or $t9,$t7,$t8 -/* f11fff0: 2f210010 */ sltiu $at,$t9,0x10 -/* f11fff4: 1020037c */ beqz $at,.L0f120de8 -/* f11fff8: afb90068 */ sw $t9,0x68($sp) -/* f11fffc: 00196880 */ sll $t5,$t9,0x2 -/* f120000: 3c017f1b */ lui $at,%hi(var7f1b5004) -/* f120004: 002d0821 */ addu $at,$at,$t5 -/* f120008: 8c2d5004 */ lw $t5,%lo(var7f1b5004)($at) -/* f12000c: 01a00008 */ jr $t5 -/* f120010: 00000000 */ nop -/* f120014: 3c017f1b */ lui $at,%hi(var7f1b5044) -/* f120018: 00008825 */ or $s1,$zero,$zero -/* f12001c: 10000374 */ b .L0f120df0 -/* f120020: c4385044 */ lwc1 $f24,%lo(var7f1b5044)($at) -/* f120024: 3c017f1b */ lui $at,%hi(var7f1b5048) -/* f120028: c4385048 */ lwc1 $f24,%lo(var7f1b5048)($at) -/* f12002c: c7a205e4 */ lwc1 $f2,0x5e4($sp) -/* f120030: c7a805e8 */ lwc1 $f8,0x5e8($sp) -/* f120034: c7ac05ec */ lwc1 $f12,0x5ec($sp) -/* f120038: 46181182 */ mul.s $f6,$f2,$f24 -/* f12003c: c7ae05d8 */ lwc1 $f14,0x5d8($sp) -/* f120040: c7b005e0 */ lwc1 $f16,0x5e0($sp) -/* f120044: 46184282 */ mul.s $f10,$f8,$f24 -/* f120048: c7a805dc */ lwc1 $f8,0x5dc($sp) -/* f12004c: c7b205cc */ lwc1 $f18,0x5cc($sp) -/* f120050: 46186102 */ mul.s $f4,$f12,$f24 -/* f120054: e7a6043c */ swc1 $f6,0x43c($sp) -/* f120058: c7b405d4 */ lwc1 $f20,0x5d4($sp) -/* f12005c: 46187182 */ mul.s $f6,$f14,$f24 -/* f120060: e7aa0440 */ swc1 $f10,0x440($sp) -/* f120064: c7b605c0 */ lwc1 $f22,0x5c0($sp) -/* f120068: 46184282 */ mul.s $f10,$f8,$f24 -/* f12006c: e7a40444 */ swc1 $f4,0x444($sp) -/* f120070: c7a805d0 */ lwc1 $f8,0x5d0($sp) -/* f120074: 46188102 */ mul.s $f4,$f16,$f24 -/* f120078: e7a60454 */ swc1 $f6,0x454($sp) -/* f12007c: c7ba05c8 */ lwc1 $f26,0x5c8($sp) -/* f120080: 46189182 */ mul.s $f6,$f18,$f24 -/* f120084: e7aa0458 */ swc1 $f10,0x458($sp) -/* f120088: 3c018008 */ lui $at,%hi(var8007db80) -/* f12008c: 46184282 */ mul.s $f10,$f8,$f24 -/* f120090: e7a4045c */ swc1 $f4,0x45c($sp) -/* f120094: c7a805c4 */ lwc1 $f8,0x5c4($sp) -/* f120098: 4618a102 */ mul.s $f4,$f20,$f24 -/* f12009c: e7a6046c */ swc1 $f6,0x46c($sp) -/* f1200a0: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f1200a4: 4618b182 */ mul.s $f6,$f22,$f24 -/* f1200a8: e7aa0470 */ swc1 $f10,0x470($sp) -/* f1200ac: 24110004 */ addiu $s1,$zero,0x4 -/* f1200b0: 46184282 */ mul.s $f10,$f8,$f24 -/* f1200b4: e7a40474 */ swc1 $f4,0x474($sp) -/* f1200b8: 46008200 */ add.s $f8,$f16,$f0 -/* f1200bc: 4618d102 */ mul.s $f4,$f26,$f24 -/* f1200c0: e7a60484 */ swc1 $f6,0x484($sp) -/* f1200c4: 46006180 */ add.s $f6,$f12,$f0 -/* f1200c8: e7a80464 */ swc1 $f8,0x464($sp) -/* f1200cc: e7aa0488 */ swc1 $f10,0x488($sp) -/* f1200d0: 4600a280 */ add.s $f10,$f20,$f0 -/* f1200d4: e7a6044c */ swc1 $f6,0x44c($sp) -/* f1200d8: e7a4048c */ swc1 $f4,0x48c($sp) -/* f1200dc: 4600d100 */ add.s $f4,$f26,$f0 -/* f1200e0: e7aa047c */ swc1 $f10,0x47c($sp) -/* f1200e4: 27a4043c */ addiu $a0,$sp,0x43c -/* f1200e8: 8fa5056c */ lw $a1,0x56c($sp) -/* f1200ec: e7a40494 */ swc1 $f4,0x494($sp) -/* f1200f0: e7a20448 */ swc1 $f2,0x448($sp) -/* f1200f4: e7ae0460 */ swc1 $f14,0x460($sp) -/* f1200f8: e7b20478 */ swc1 $f18,0x478($sp) -/* f1200fc: 0fc47dbb */ jal func0f11f6ec -/* f120100: e7b60490 */ swc1 $f22,0x490($sp) -/* f120104: 27a40454 */ addiu $a0,$sp,0x454 -/* f120108: 0fc47dbb */ jal func0f11f6ec -/* f12010c: 8fa50568 */ lw $a1,0x568($sp) -/* f120110: 27a4046c */ addiu $a0,$sp,0x46c -/* f120114: 0fc47dbb */ jal func0f11f6ec -/* f120118: 8fa50564 */ lw $a1,0x564($sp) -/* f12011c: 27a40484 */ addiu $a0,$sp,0x484 -/* f120120: 0fc47dbb */ jal func0f11f6ec -/* f120124: 8fa50560 */ lw $a1,0x560($sp) -/* f120128: 10000331 */ b .L0f120df0 -/* f12012c: 00000000 */ nop -/* f120130: 3c017f1b */ lui $at,%hi(var7f1b504c) -/* f120134: c438504c */ lwc1 $f24,%lo(var7f1b504c)($at) -/* f120138: c7a205e4 */ lwc1 $f2,0x5e4($sp) -/* f12013c: c7a805e8 */ lwc1 $f8,0x5e8($sp) -/* f120140: c7ac05ec */ lwc1 $f12,0x5ec($sp) -/* f120144: 46181182 */ mul.s $f6,$f2,$f24 -/* f120148: c7ae05d8 */ lwc1 $f14,0x5d8($sp) -/* f12014c: c7b005e0 */ lwc1 $f16,0x5e0($sp) -/* f120150: 46184282 */ mul.s $f10,$f8,$f24 -/* f120154: c7a805dc */ lwc1 $f8,0x5dc($sp) -/* f120158: c7b2059c */ lwc1 $f18,0x59c($sp) -/* f12015c: 46186102 */ mul.s $f4,$f12,$f24 -/* f120160: e7a6043c */ swc1 $f6,0x43c($sp) -/* f120164: c7b405a4 */ lwc1 $f20,0x5a4($sp) -/* f120168: 46187182 */ mul.s $f6,$f14,$f24 -/* f12016c: e7aa0440 */ swc1 $f10,0x440($sp) -/* f120170: c7b60590 */ lwc1 $f22,0x590($sp) -/* f120174: 46184282 */ mul.s $f10,$f8,$f24 -/* f120178: e7a40444 */ swc1 $f4,0x444($sp) -/* f12017c: c7a805a0 */ lwc1 $f8,0x5a0($sp) -/* f120180: 46188102 */ mul.s $f4,$f16,$f24 -/* f120184: e7a60454 */ swc1 $f6,0x454($sp) -/* f120188: c7ba0598 */ lwc1 $f26,0x598($sp) -/* f12018c: 46189182 */ mul.s $f6,$f18,$f24 -/* f120190: e7aa0458 */ swc1 $f10,0x458($sp) -/* f120194: 3c018008 */ lui $at,%hi(var8007db80) -/* f120198: 46184282 */ mul.s $f10,$f8,$f24 -/* f12019c: e7a4045c */ swc1 $f4,0x45c($sp) -/* f1201a0: c7a80594 */ lwc1 $f8,0x594($sp) -/* f1201a4: 4618a102 */ mul.s $f4,$f20,$f24 -/* f1201a8: e7a6046c */ swc1 $f6,0x46c($sp) -/* f1201ac: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f1201b0: 4618b182 */ mul.s $f6,$f22,$f24 -/* f1201b4: e7aa0470 */ swc1 $f10,0x470($sp) -/* f1201b8: 24110004 */ addiu $s1,$zero,0x4 -/* f1201bc: 46184282 */ mul.s $f10,$f8,$f24 -/* f1201c0: e7a40474 */ swc1 $f4,0x474($sp) -/* f1201c4: 46008200 */ add.s $f8,$f16,$f0 -/* f1201c8: 4618d102 */ mul.s $f4,$f26,$f24 -/* f1201cc: e7a60484 */ swc1 $f6,0x484($sp) -/* f1201d0: 46006180 */ add.s $f6,$f12,$f0 -/* f1201d4: e7a80464 */ swc1 $f8,0x464($sp) -/* f1201d8: e7aa0488 */ swc1 $f10,0x488($sp) -/* f1201dc: 4600a280 */ add.s $f10,$f20,$f0 -/* f1201e0: e7a6044c */ swc1 $f6,0x44c($sp) -/* f1201e4: e7a4048c */ swc1 $f4,0x48c($sp) -/* f1201e8: 4600d100 */ add.s $f4,$f26,$f0 -/* f1201ec: e7aa047c */ swc1 $f10,0x47c($sp) -/* f1201f0: 27a4043c */ addiu $a0,$sp,0x43c -/* f1201f4: 8fa5056c */ lw $a1,0x56c($sp) -/* f1201f8: e7a40494 */ swc1 $f4,0x494($sp) -/* f1201fc: e7a20448 */ swc1 $f2,0x448($sp) -/* f120200: e7ae0460 */ swc1 $f14,0x460($sp) -/* f120204: e7b20478 */ swc1 $f18,0x478($sp) -/* f120208: 0fc47dbb */ jal func0f11f6ec -/* f12020c: e7b60490 */ swc1 $f22,0x490($sp) -/* f120210: 27a40454 */ addiu $a0,$sp,0x454 -/* f120214: 0fc47dbb */ jal func0f11f6ec -/* f120218: 8fa50568 */ lw $a1,0x568($sp) -/* f12021c: 27a4046c */ addiu $a0,$sp,0x46c -/* f120220: 0fc47dbb */ jal func0f11f6ec -/* f120224: 8fa50554 */ lw $a1,0x554($sp) -/* f120228: 27a40484 */ addiu $a0,$sp,0x484 -/* f12022c: 0fc47dbb */ jal func0f11f6ec -/* f120230: 8fa50550 */ lw $a1,0x550($sp) -/* f120234: 100002ee */ b .L0f120df0 -/* f120238: 00000000 */ nop -/* f12023c: 3c017f1b */ lui $at,%hi(var7f1b5050) -/* f120240: c4385050 */ lwc1 $f24,%lo(var7f1b5050)($at) -/* f120244: c7b605c0 */ lwc1 $f22,0x5c0($sp) -/* f120248: c7a805c4 */ lwc1 $f8,0x5c4($sp) -/* f12024c: c7ba05c8 */ lwc1 $f26,0x5c8($sp) -/* f120250: 4618b182 */ mul.s $f6,$f22,$f24 -/* f120254: c7b205cc */ lwc1 $f18,0x5cc($sp) -/* f120258: c7b405d4 */ lwc1 $f20,0x5d4($sp) -/* f12025c: 46184282 */ mul.s $f10,$f8,$f24 -/* f120260: c7a805d0 */ lwc1 $f8,0x5d0($sp) -/* f120264: c7ae0590 */ lwc1 $f14,0x590($sp) -/* f120268: 4618d102 */ mul.s $f4,$f26,$f24 -/* f12026c: e7a6043c */ swc1 $f6,0x43c($sp) -/* f120270: c7b00598 */ lwc1 $f16,0x598($sp) -/* f120274: 46189182 */ mul.s $f6,$f18,$f24 -/* f120278: e7aa0440 */ swc1 $f10,0x440($sp) -/* f12027c: c7a2059c */ lwc1 $f2,0x59c($sp) -/* f120280: 46184282 */ mul.s $f10,$f8,$f24 -/* f120284: e7a40444 */ swc1 $f4,0x444($sp) -/* f120288: c7a80594 */ lwc1 $f8,0x594($sp) -/* f12028c: 4618a102 */ mul.s $f4,$f20,$f24 -/* f120290: e7a60454 */ swc1 $f6,0x454($sp) -/* f120294: c7ac05a4 */ lwc1 $f12,0x5a4($sp) -/* f120298: 46187182 */ mul.s $f6,$f14,$f24 -/* f12029c: e7aa0458 */ swc1 $f10,0x458($sp) -/* f1202a0: 3c018008 */ lui $at,%hi(var8007db80) -/* f1202a4: 46184282 */ mul.s $f10,$f8,$f24 -/* f1202a8: e7a4045c */ swc1 $f4,0x45c($sp) -/* f1202ac: c7a805a0 */ lwc1 $f8,0x5a0($sp) -/* f1202b0: 46188102 */ mul.s $f4,$f16,$f24 -/* f1202b4: e7a6046c */ swc1 $f6,0x46c($sp) -/* f1202b8: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f1202bc: 46181182 */ mul.s $f6,$f2,$f24 -/* f1202c0: e7aa0470 */ swc1 $f10,0x470($sp) -/* f1202c4: 240a0001 */ addiu $t2,$zero,0x1 -/* f1202c8: 46184282 */ mul.s $f10,$f8,$f24 -/* f1202cc: e7a40474 */ swc1 $f4,0x474($sp) -/* f1202d0: 4600a200 */ add.s $f8,$f20,$f0 -/* f1202d4: 46186102 */ mul.s $f4,$f12,$f24 -/* f1202d8: e7a60484 */ swc1 $f6,0x484($sp) -/* f1202dc: 4600d180 */ add.s $f6,$f26,$f0 -/* f1202e0: 24110004 */ addiu $s1,$zero,0x4 -/* f1202e4: e7aa0488 */ swc1 $f10,0x488($sp) -/* f1202e8: 46008280 */ add.s $f10,$f16,$f0 -/* f1202ec: afaa0430 */ sw $t2,0x430($sp) -/* f1202f0: e7a4048c */ swc1 $f4,0x48c($sp) -/* f1202f4: 46006100 */ add.s $f4,$f12,$f0 -/* f1202f8: e7a6044c */ swc1 $f6,0x44c($sp) -/* f1202fc: e7a80464 */ swc1 $f8,0x464($sp) -/* f120300: e7aa047c */ swc1 $f10,0x47c($sp) -/* f120304: e7a40494 */ swc1 $f4,0x494($sp) -/* f120308: 27a4043c */ addiu $a0,$sp,0x43c -/* f12030c: 8fa50560 */ lw $a1,0x560($sp) -/* f120310: e7b60448 */ swc1 $f22,0x448($sp) -/* f120314: e7b20460 */ swc1 $f18,0x460($sp) -/* f120318: e7ae0478 */ swc1 $f14,0x478($sp) -/* f12031c: 0fc47dbb */ jal func0f11f6ec -/* f120320: e7a20490 */ swc1 $f2,0x490($sp) -/* f120324: 27a40454 */ addiu $a0,$sp,0x454 -/* f120328: 0fc47dbb */ jal func0f11f6ec -/* f12032c: 8fa50564 */ lw $a1,0x564($sp) -/* f120330: 27a4046c */ addiu $a0,$sp,0x46c -/* f120334: 0fc47dbb */ jal func0f11f6ec -/* f120338: 8fa50550 */ lw $a1,0x550($sp) -/* f12033c: 27a40484 */ addiu $a0,$sp,0x484 -/* f120340: 0fc47dbb */ jal func0f11f6ec -/* f120344: 8fa50554 */ lw $a1,0x554($sp) -/* f120348: 100002a9 */ b .L0f120df0 -/* f12034c: 00000000 */ nop -/* f120350: 3c017f1b */ lui $at,%hi(var7f1b5054) -/* f120354: c4385054 */ lwc1 $f24,%lo(var7f1b5054)($at) -/* f120358: c7ae05d8 */ lwc1 $f14,0x5d8($sp) -/* f12035c: c7a805dc */ lwc1 $f8,0x5dc($sp) -/* f120360: c7b005e0 */ lwc1 $f16,0x5e0($sp) -/* f120364: 46187182 */ mul.s $f6,$f14,$f24 -/* f120368: c7b605c0 */ lwc1 $f22,0x5c0($sp) -/* f12036c: c7ba05c8 */ lwc1 $f26,0x5c8($sp) -/* f120370: 46184282 */ mul.s $f10,$f8,$f24 -/* f120374: c7a805c4 */ lwc1 $f8,0x5c4($sp) -/* f120378: c7a205b4 */ lwc1 $f2,0x5b4($sp) -/* f12037c: 46188102 */ mul.s $f4,$f16,$f24 -/* f120380: e7a6043c */ swc1 $f6,0x43c($sp) -/* f120384: c7ac05bc */ lwc1 $f12,0x5bc($sp) -/* f120388: 4618b182 */ mul.s $f6,$f22,$f24 -/* f12038c: e7aa0440 */ swc1 $f10,0x440($sp) -/* f120390: c7b205a8 */ lwc1 $f18,0x5a8($sp) -/* f120394: 46184282 */ mul.s $f10,$f8,$f24 -/* f120398: e7a40444 */ swc1 $f4,0x444($sp) -/* f12039c: c7a805b8 */ lwc1 $f8,0x5b8($sp) -/* f1203a0: 4618d102 */ mul.s $f4,$f26,$f24 -/* f1203a4: e7a60454 */ swc1 $f6,0x454($sp) -/* f1203a8: c7b405b0 */ lwc1 $f20,0x5b0($sp) -/* f1203ac: 46181182 */ mul.s $f6,$f2,$f24 -/* f1203b0: e7aa0458 */ swc1 $f10,0x458($sp) -/* f1203b4: 3c018008 */ lui $at,%hi(var8007db80) -/* f1203b8: 46184282 */ mul.s $f10,$f8,$f24 -/* f1203bc: e7a4045c */ swc1 $f4,0x45c($sp) -/* f1203c0: c7a805ac */ lwc1 $f8,0x5ac($sp) -/* f1203c4: 46186102 */ mul.s $f4,$f12,$f24 -/* f1203c8: e7a6046c */ swc1 $f6,0x46c($sp) -/* f1203cc: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f1203d0: 46189182 */ mul.s $f6,$f18,$f24 -/* f1203d4: e7aa0470 */ swc1 $f10,0x470($sp) -/* f1203d8: 24110004 */ addiu $s1,$zero,0x4 -/* f1203dc: 46184282 */ mul.s $f10,$f8,$f24 -/* f1203e0: e7a40474 */ swc1 $f4,0x474($sp) -/* f1203e4: 4600d200 */ add.s $f8,$f26,$f0 -/* f1203e8: 4618a102 */ mul.s $f4,$f20,$f24 -/* f1203ec: e7a60484 */ swc1 $f6,0x484($sp) -/* f1203f0: 46008180 */ add.s $f6,$f16,$f0 -/* f1203f4: e7a80464 */ swc1 $f8,0x464($sp) -/* f1203f8: e7aa0488 */ swc1 $f10,0x488($sp) -/* f1203fc: 46006280 */ add.s $f10,$f12,$f0 -/* f120400: e7a6044c */ swc1 $f6,0x44c($sp) -/* f120404: e7a4048c */ swc1 $f4,0x48c($sp) -/* f120408: 4600a100 */ add.s $f4,$f20,$f0 -/* f12040c: e7aa047c */ swc1 $f10,0x47c($sp) -/* f120410: 27a4043c */ addiu $a0,$sp,0x43c -/* f120414: 8fa50568 */ lw $a1,0x568($sp) -/* f120418: e7a40494 */ swc1 $f4,0x494($sp) -/* f12041c: e7ae0448 */ swc1 $f14,0x448($sp) -/* f120420: e7b60460 */ swc1 $f22,0x460($sp) -/* f120424: e7a20478 */ swc1 $f2,0x478($sp) -/* f120428: 0fc47dbb */ jal func0f11f6ec -/* f12042c: e7b20490 */ swc1 $f18,0x490($sp) -/* f120430: 27a40454 */ addiu $a0,$sp,0x454 -/* f120434: 0fc47dbb */ jal func0f11f6ec -/* f120438: 8fa50560 */ lw $a1,0x560($sp) -/* f12043c: 27a4046c */ addiu $a0,$sp,0x46c -/* f120440: 0fc47dbb */ jal func0f11f6ec -/* f120444: 8fa5055c */ lw $a1,0x55c($sp) -/* f120448: 27a40484 */ addiu $a0,$sp,0x484 -/* f12044c: 0fc47dbb */ jal func0f11f6ec -/* f120450: 8fa50558 */ lw $a1,0x558($sp) -/* f120454: 10000266 */ b .L0f120df0 -/* f120458: 00000000 */ nop -/* f12045c: 3c017f1b */ lui $at,%hi(var7f1b5058) -/* f120460: c4385058 */ lwc1 $f24,%lo(var7f1b5058)($at) -/* f120464: c7b205cc */ lwc1 $f18,0x5cc($sp) -/* f120468: c7a805d0 */ lwc1 $f8,0x5d0($sp) -/* f12046c: c7b405d4 */ lwc1 $f20,0x5d4($sp) -/* f120470: 46189182 */ mul.s $f6,$f18,$f24 -/* f120474: c7a205e4 */ lwc1 $f2,0x5e4($sp) -/* f120478: c7ac05ec */ lwc1 $f12,0x5ec($sp) -/* f12047c: 46184282 */ mul.s $f10,$f8,$f24 -/* f120480: c7a805e8 */ lwc1 $f8,0x5e8($sp) -/* f120484: c7b605a8 */ lwc1 $f22,0x5a8($sp) -/* f120488: 4618a102 */ mul.s $f4,$f20,$f24 -/* f12048c: e7a6043c */ swc1 $f6,0x43c($sp) -/* f120490: c7ba05b0 */ lwc1 $f26,0x5b0($sp) -/* f120494: 46181182 */ mul.s $f6,$f2,$f24 -/* f120498: e7aa0440 */ swc1 $f10,0x440($sp) -/* f12049c: c7ae05b4 */ lwc1 $f14,0x5b4($sp) -/* f1204a0: 46184282 */ mul.s $f10,$f8,$f24 -/* f1204a4: e7a40444 */ swc1 $f4,0x444($sp) -/* f1204a8: c7a805ac */ lwc1 $f8,0x5ac($sp) -/* f1204ac: 46186102 */ mul.s $f4,$f12,$f24 -/* f1204b0: e7a60454 */ swc1 $f6,0x454($sp) -/* f1204b4: c7b005bc */ lwc1 $f16,0x5bc($sp) -/* f1204b8: 4618b182 */ mul.s $f6,$f22,$f24 -/* f1204bc: e7aa0458 */ swc1 $f10,0x458($sp) -/* f1204c0: 3c018008 */ lui $at,%hi(var8007db80) -/* f1204c4: 46184282 */ mul.s $f10,$f8,$f24 -/* f1204c8: e7a4045c */ swc1 $f4,0x45c($sp) -/* f1204cc: c7a805b8 */ lwc1 $f8,0x5b8($sp) -/* f1204d0: 4618d102 */ mul.s $f4,$f26,$f24 -/* f1204d4: e7a6046c */ swc1 $f6,0x46c($sp) -/* f1204d8: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f1204dc: 46187182 */ mul.s $f6,$f14,$f24 -/* f1204e0: e7aa0470 */ swc1 $f10,0x470($sp) -/* f1204e4: 24110004 */ addiu $s1,$zero,0x4 -/* f1204e8: 46184282 */ mul.s $f10,$f8,$f24 -/* f1204ec: e7a40474 */ swc1 $f4,0x474($sp) -/* f1204f0: 46006200 */ add.s $f8,$f12,$f0 -/* f1204f4: 46188102 */ mul.s $f4,$f16,$f24 -/* f1204f8: e7a60484 */ swc1 $f6,0x484($sp) -/* f1204fc: 4600a180 */ add.s $f6,$f20,$f0 -/* f120500: e7a80464 */ swc1 $f8,0x464($sp) -/* f120504: e7aa0488 */ swc1 $f10,0x488($sp) -/* f120508: 4600d280 */ add.s $f10,$f26,$f0 -/* f12050c: e7a6044c */ swc1 $f6,0x44c($sp) -/* f120510: e7a4048c */ swc1 $f4,0x48c($sp) -/* f120514: 46008100 */ add.s $f4,$f16,$f0 -/* f120518: e7aa047c */ swc1 $f10,0x47c($sp) -/* f12051c: 27a4043c */ addiu $a0,$sp,0x43c -/* f120520: 8fa50564 */ lw $a1,0x564($sp) -/* f120524: e7a40494 */ swc1 $f4,0x494($sp) -/* f120528: e7b20448 */ swc1 $f18,0x448($sp) -/* f12052c: e7a20460 */ swc1 $f2,0x460($sp) -/* f120530: e7b60478 */ swc1 $f22,0x478($sp) -/* f120534: 0fc47dbb */ jal func0f11f6ec -/* f120538: e7ae0490 */ swc1 $f14,0x490($sp) -/* f12053c: 27a40454 */ addiu $a0,$sp,0x454 -/* f120540: 0fc47dbb */ jal func0f11f6ec -/* f120544: 8fa5056c */ lw $a1,0x56c($sp) -/* f120548: 27a4046c */ addiu $a0,$sp,0x46c -/* f12054c: 0fc47dbb */ jal func0f11f6ec -/* f120550: 8fa50558 */ lw $a1,0x558($sp) -/* f120554: 27a40484 */ addiu $a0,$sp,0x484 -/* f120558: 0fc47dbb */ jal func0f11f6ec -/* f12055c: 8fa5055c */ lw $a1,0x55c($sp) -/* f120560: 10000223 */ b .L0f120df0 -/* f120564: 00000000 */ nop -/* f120568: 3c017f1b */ lui $at,%hi(var7f1b505c) -/* f12056c: c438505c */ lwc1 $f24,%lo(var7f1b505c)($at) -/* f120570: c7b605c0 */ lwc1 $f22,0x5c0($sp) -/* f120574: c7a805c4 */ lwc1 $f8,0x5c4($sp) -/* f120578: c7ba05c8 */ lwc1 $f26,0x5c8($sp) -/* f12057c: 4618b182 */ mul.s $f6,$f22,$f24 -/* f120580: c7ae05a8 */ lwc1 $f14,0x5a8($sp) -/* f120584: c7b005b0 */ lwc1 $f16,0x5b0($sp) -/* f120588: 46184282 */ mul.s $f10,$f8,$f24 -/* f12058c: c7a805ac */ lwc1 $f8,0x5ac($sp) -/* f120590: c7a20590 */ lwc1 $f2,0x590($sp) -/* f120594: 4618d102 */ mul.s $f4,$f26,$f24 -/* f120598: e7a6043c */ swc1 $f6,0x43c($sp) -/* f12059c: c7ac0598 */ lwc1 $f12,0x598($sp) -/* f1205a0: 46187182 */ mul.s $f6,$f14,$f24 -/* f1205a4: e7aa0440 */ swc1 $f10,0x440($sp) -/* f1205a8: 3c018008 */ lui $at,%hi(var8007db80) -/* f1205ac: 46184282 */ mul.s $f10,$f8,$f24 -/* f1205b0: e7a40444 */ swc1 $f4,0x444($sp) -/* f1205b4: c7a80594 */ lwc1 $f8,0x594($sp) -/* f1205b8: 46188102 */ mul.s $f4,$f16,$f24 -/* f1205bc: e7a60454 */ swc1 $f6,0x454($sp) -/* f1205c0: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f1205c4: 46181182 */ mul.s $f6,$f2,$f24 -/* f1205c8: e7aa0458 */ swc1 $f10,0x458($sp) -/* f1205cc: 24110003 */ addiu $s1,$zero,0x3 -/* f1205d0: 46184282 */ mul.s $f10,$f8,$f24 -/* f1205d4: e7a4045c */ swc1 $f4,0x45c($sp) -/* f1205d8: 46008200 */ add.s $f8,$f16,$f0 -/* f1205dc: 46186102 */ mul.s $f4,$f12,$f24 -/* f1205e0: e7a6046c */ swc1 $f6,0x46c($sp) -/* f1205e4: 4600d180 */ add.s $f6,$f26,$f0 -/* f1205e8: e7a80464 */ swc1 $f8,0x464($sp) -/* f1205ec: e7aa0470 */ swc1 $f10,0x470($sp) -/* f1205f0: 46006280 */ add.s $f10,$f12,$f0 -/* f1205f4: e7a6044c */ swc1 $f6,0x44c($sp) -/* f1205f8: e7a40474 */ swc1 $f4,0x474($sp) -/* f1205fc: 27a4043c */ addiu $a0,$sp,0x43c -/* f120600: e7aa047c */ swc1 $f10,0x47c($sp) -/* f120604: 8fa50560 */ lw $a1,0x560($sp) -/* f120608: e7b60448 */ swc1 $f22,0x448($sp) -/* f12060c: e7ae0460 */ swc1 $f14,0x460($sp) -/* f120610: 0fc47dbb */ jal func0f11f6ec -/* f120614: e7a20478 */ swc1 $f2,0x478($sp) -/* f120618: 27a40454 */ addiu $a0,$sp,0x454 -/* f12061c: 0fc47dbb */ jal func0f11f6ec -/* f120620: 8fa50558 */ lw $a1,0x558($sp) -/* f120624: 27a4046c */ addiu $a0,$sp,0x46c -/* f120628: 0fc47dbb */ jal func0f11f6ec -/* f12062c: 8fa50550 */ lw $a1,0x550($sp) -/* f120630: 100001ef */ b .L0f120df0 -/* f120634: 00000000 */ nop -/* f120638: 3c017f1b */ lui $at,%hi(var7f1b5060) -/* f12063c: c4385060 */ lwc1 $f24,%lo(var7f1b5060)($at) -/* f120640: c7b205cc */ lwc1 $f18,0x5cc($sp) -/* f120644: c7a605d0 */ lwc1 $f6,0x5d0($sp) -/* f120648: c7b405d4 */ lwc1 $f20,0x5d4($sp) -/* f12064c: 46189102 */ mul.s $f4,$f18,$f24 -/* f120650: c7a2059c */ lwc1 $f2,0x59c($sp) -/* f120654: c7ac05a4 */ lwc1 $f12,0x5a4($sp) -/* f120658: 46183202 */ mul.s $f8,$f6,$f24 -/* f12065c: c7a605a0 */ lwc1 $f6,0x5a0($sp) -/* f120660: c7ae05a8 */ lwc1 $f14,0x5a8($sp) -/* f120664: 4618a282 */ mul.s $f10,$f20,$f24 -/* f120668: e7a4043c */ swc1 $f4,0x43c($sp) -/* f12066c: c7b005b0 */ lwc1 $f16,0x5b0($sp) -/* f120670: 46181102 */ mul.s $f4,$f2,$f24 -/* f120674: e7a80440 */ swc1 $f8,0x440($sp) -/* f120678: 3c018008 */ lui $at,%hi(var8007db80) -/* f12067c: 46183202 */ mul.s $f8,$f6,$f24 -/* f120680: e7aa0444 */ swc1 $f10,0x444($sp) -/* f120684: c7a605ac */ lwc1 $f6,0x5ac($sp) -/* f120688: 46186282 */ mul.s $f10,$f12,$f24 -/* f12068c: e7a40454 */ swc1 $f4,0x454($sp) -/* f120690: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f120694: 46187102 */ mul.s $f4,$f14,$f24 -/* f120698: e7a80458 */ swc1 $f8,0x458($sp) -/* f12069c: 24110003 */ addiu $s1,$zero,0x3 -/* f1206a0: 46183202 */ mul.s $f8,$f6,$f24 -/* f1206a4: e7aa045c */ swc1 $f10,0x45c($sp) -/* f1206a8: 46006180 */ add.s $f6,$f12,$f0 -/* f1206ac: 46188282 */ mul.s $f10,$f16,$f24 -/* f1206b0: e7a4046c */ swc1 $f4,0x46c($sp) -/* f1206b4: 4600a100 */ add.s $f4,$f20,$f0 -/* f1206b8: e7a60464 */ swc1 $f6,0x464($sp) -/* f1206bc: e7a80470 */ swc1 $f8,0x470($sp) -/* f1206c0: 46008200 */ add.s $f8,$f16,$f0 -/* f1206c4: e7a4044c */ swc1 $f4,0x44c($sp) -/* f1206c8: e7aa0474 */ swc1 $f10,0x474($sp) -/* f1206cc: 27a4043c */ addiu $a0,$sp,0x43c -/* f1206d0: e7a8047c */ swc1 $f8,0x47c($sp) -/* f1206d4: 8fa50564 */ lw $a1,0x564($sp) -/* f1206d8: e7b20448 */ swc1 $f18,0x448($sp) -/* f1206dc: e7a20460 */ swc1 $f2,0x460($sp) -/* f1206e0: 0fc47dbb */ jal func0f11f6ec -/* f1206e4: e7ae0478 */ swc1 $f14,0x478($sp) -/* f1206e8: 27a40454 */ addiu $a0,$sp,0x454 -/* f1206ec: 0fc47dbb */ jal func0f11f6ec -/* f1206f0: 8fa50554 */ lw $a1,0x554($sp) -/* f1206f4: 27a4046c */ addiu $a0,$sp,0x46c -/* f1206f8: 0fc47dbb */ jal func0f11f6ec -/* f1206fc: 8fa50558 */ lw $a1,0x558($sp) -/* f120700: 100001bb */ b .L0f120df0 -/* f120704: 00000000 */ nop -/* f120708: 3c017f1b */ lui $at,%hi(var7f1b5064) -/* f12070c: c4385064 */ lwc1 $f24,%lo(var7f1b5064)($at) -/* f120710: c7ae05d8 */ lwc1 $f14,0x5d8($sp) -/* f120714: c7a405dc */ lwc1 $f4,0x5dc($sp) -/* f120718: c7b005e0 */ lwc1 $f16,0x5e0($sp) -/* f12071c: 46187282 */ mul.s $f10,$f14,$f24 -/* f120720: c7b20590 */ lwc1 $f18,0x590($sp) -/* f120724: c7b40598 */ lwc1 $f20,0x598($sp) -/* f120728: 46182182 */ mul.s $f6,$f4,$f24 -/* f12072c: c7a40594 */ lwc1 $f4,0x594($sp) -/* f120730: c7a205b4 */ lwc1 $f2,0x5b4($sp) -/* f120734: 46188202 */ mul.s $f8,$f16,$f24 -/* f120738: e7aa043c */ swc1 $f10,0x43c($sp) -/* f12073c: c7ac05bc */ lwc1 $f12,0x5bc($sp) -/* f120740: 46189282 */ mul.s $f10,$f18,$f24 -/* f120744: e7a60440 */ swc1 $f6,0x440($sp) -/* f120748: 3c018008 */ lui $at,%hi(var8007db80) -/* f12074c: 46182182 */ mul.s $f6,$f4,$f24 -/* f120750: e7a80444 */ swc1 $f8,0x444($sp) -/* f120754: c7a405b8 */ lwc1 $f4,0x5b8($sp) -/* f120758: 4618a202 */ mul.s $f8,$f20,$f24 -/* f12075c: e7aa0454 */ swc1 $f10,0x454($sp) -/* f120760: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f120764: 46181282 */ mul.s $f10,$f2,$f24 -/* f120768: e7a60458 */ swc1 $f6,0x458($sp) -/* f12076c: 24110003 */ addiu $s1,$zero,0x3 -/* f120770: 46182182 */ mul.s $f6,$f4,$f24 -/* f120774: e7a8045c */ swc1 $f8,0x45c($sp) -/* f120778: 4600a100 */ add.s $f4,$f20,$f0 -/* f12077c: 46186202 */ mul.s $f8,$f12,$f24 -/* f120780: e7aa046c */ swc1 $f10,0x46c($sp) -/* f120784: 46008280 */ add.s $f10,$f16,$f0 -/* f120788: e7a40464 */ swc1 $f4,0x464($sp) -/* f12078c: e7a60470 */ swc1 $f6,0x470($sp) -/* f120790: 46006180 */ add.s $f6,$f12,$f0 -/* f120794: e7aa044c */ swc1 $f10,0x44c($sp) -/* f120798: e7a80474 */ swc1 $f8,0x474($sp) -/* f12079c: 27a4043c */ addiu $a0,$sp,0x43c -/* f1207a0: e7a6047c */ swc1 $f6,0x47c($sp) -/* f1207a4: 8fa50568 */ lw $a1,0x568($sp) -/* f1207a8: e7ae0448 */ swc1 $f14,0x448($sp) -/* f1207ac: e7b20460 */ swc1 $f18,0x460($sp) -/* f1207b0: 0fc47dbb */ jal func0f11f6ec -/* f1207b4: e7a20478 */ swc1 $f2,0x478($sp) -/* f1207b8: 27a40454 */ addiu $a0,$sp,0x454 -/* f1207bc: 0fc47dbb */ jal func0f11f6ec -/* f1207c0: 8fa50550 */ lw $a1,0x550($sp) -/* f1207c4: 27a4046c */ addiu $a0,$sp,0x46c -/* f1207c8: 0fc47dbb */ jal func0f11f6ec -/* f1207cc: 8fa5055c */ lw $a1,0x55c($sp) -/* f1207d0: 10000187 */ b .L0f120df0 -/* f1207d4: 00000000 */ nop -/* f1207d8: 3c017f1b */ lui $at,%hi(var7f1b5068) -/* f1207dc: c4385068 */ lwc1 $f24,%lo(var7f1b5068)($at) -/* f1207e0: c7a205e4 */ lwc1 $f2,0x5e4($sp) -/* f1207e4: c7aa05e8 */ lwc1 $f10,0x5e8($sp) -/* f1207e8: c7ac05ec */ lwc1 $f12,0x5ec($sp) -/* f1207ec: 46181202 */ mul.s $f8,$f2,$f24 -/* f1207f0: c7ae05b4 */ lwc1 $f14,0x5b4($sp) -/* f1207f4: c7b005bc */ lwc1 $f16,0x5bc($sp) -/* f1207f8: 46185102 */ mul.s $f4,$f10,$f24 -/* f1207fc: c7aa05b8 */ lwc1 $f10,0x5b8($sp) -/* f120800: c7b2059c */ lwc1 $f18,0x59c($sp) -/* f120804: 46186182 */ mul.s $f6,$f12,$f24 -/* f120808: e7a8043c */ swc1 $f8,0x43c($sp) -/* f12080c: c7b405a4 */ lwc1 $f20,0x5a4($sp) -/* f120810: 46187202 */ mul.s $f8,$f14,$f24 -/* f120814: e7a40440 */ swc1 $f4,0x440($sp) -/* f120818: 3c018008 */ lui $at,%hi(var8007db80) -/* f12081c: 46185102 */ mul.s $f4,$f10,$f24 -/* f120820: e7a60444 */ swc1 $f6,0x444($sp) -/* f120824: c7aa05a0 */ lwc1 $f10,0x5a0($sp) -/* f120828: 46188182 */ mul.s $f6,$f16,$f24 -/* f12082c: e7a80454 */ swc1 $f8,0x454($sp) -/* f120830: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f120834: 46189202 */ mul.s $f8,$f18,$f24 -/* f120838: e7a40458 */ swc1 $f4,0x458($sp) -/* f12083c: 24110003 */ addiu $s1,$zero,0x3 -/* f120840: 46185102 */ mul.s $f4,$f10,$f24 -/* f120844: e7a6045c */ swc1 $f6,0x45c($sp) -/* f120848: 46008280 */ add.s $f10,$f16,$f0 -/* f12084c: 4618a182 */ mul.s $f6,$f20,$f24 -/* f120850: e7a8046c */ swc1 $f8,0x46c($sp) -/* f120854: 46006200 */ add.s $f8,$f12,$f0 -/* f120858: e7aa0464 */ swc1 $f10,0x464($sp) -/* f12085c: e7a40470 */ swc1 $f4,0x470($sp) -/* f120860: 4600a100 */ add.s $f4,$f20,$f0 -/* f120864: e7a8044c */ swc1 $f8,0x44c($sp) -/* f120868: e7a60474 */ swc1 $f6,0x474($sp) -/* f12086c: 27a4043c */ addiu $a0,$sp,0x43c -/* f120870: e7a4047c */ swc1 $f4,0x47c($sp) -/* f120874: 8fa5056c */ lw $a1,0x56c($sp) -/* f120878: e7a20448 */ swc1 $f2,0x448($sp) -/* f12087c: e7ae0460 */ swc1 $f14,0x460($sp) -/* f120880: 0fc47dbb */ jal func0f11f6ec -/* f120884: e7b20478 */ swc1 $f18,0x478($sp) -/* f120888: 27a40454 */ addiu $a0,$sp,0x454 -/* f12088c: 0fc47dbb */ jal func0f11f6ec -/* f120890: 8fa5055c */ lw $a1,0x55c($sp) -/* f120894: 27a4046c */ addiu $a0,$sp,0x46c -/* f120898: 0fc47dbb */ jal func0f11f6ec -/* f12089c: 8fa50554 */ lw $a1,0x554($sp) -/* f1208a0: 10000153 */ b .L0f120df0 -/* f1208a4: 00000000 */ nop -/* f1208a8: 3c017f1b */ lui $at,%hi(var7f1b506c) -/* f1208ac: c438506c */ lwc1 $f24,%lo(var7f1b506c)($at) -/* f1208b0: c7b205cc */ lwc1 $f18,0x5cc($sp) -/* f1208b4: c7a805d0 */ lwc1 $f8,0x5d0($sp) -/* f1208b8: c7b405d4 */ lwc1 $f20,0x5d4($sp) -/* f1208bc: 46189182 */ mul.s $f6,$f18,$f24 -/* f1208c0: c7a205e4 */ lwc1 $f2,0x5e4($sp) -/* f1208c4: c7ac05ec */ lwc1 $f12,0x5ec($sp) -/* f1208c8: 46184282 */ mul.s $f10,$f8,$f24 -/* f1208cc: c7a805e8 */ lwc1 $f8,0x5e8($sp) -/* f1208d0: c7ae05d8 */ lwc1 $f14,0x5d8($sp) -/* f1208d4: 4618a102 */ mul.s $f4,$f20,$f24 -/* f1208d8: e7a6043c */ swc1 $f6,0x43c($sp) -/* f1208dc: c7b005e0 */ lwc1 $f16,0x5e0($sp) -/* f1208e0: 46181182 */ mul.s $f6,$f2,$f24 -/* f1208e4: e7aa0440 */ swc1 $f10,0x440($sp) -/* f1208e8: c7b60590 */ lwc1 $f22,0x590($sp) -/* f1208ec: 46184282 */ mul.s $f10,$f8,$f24 -/* f1208f0: e7a40444 */ swc1 $f4,0x444($sp) -/* f1208f4: c7a805dc */ lwc1 $f8,0x5dc($sp) -/* f1208f8: 46186102 */ mul.s $f4,$f12,$f24 -/* f1208fc: e7a60454 */ swc1 $f6,0x454($sp) -/* f120900: c7ba0598 */ lwc1 $f26,0x598($sp) -/* f120904: 46187182 */ mul.s $f6,$f14,$f24 -/* f120908: e7aa0458 */ swc1 $f10,0x458($sp) -/* f12090c: 3c018008 */ lui $at,%hi(var8007db80) -/* f120910: 46184282 */ mul.s $f10,$f8,$f24 -/* f120914: e7a4045c */ swc1 $f4,0x45c($sp) -/* f120918: c7a80594 */ lwc1 $f8,0x594($sp) -/* f12091c: 46188102 */ mul.s $f4,$f16,$f24 -/* f120920: e7a6046c */ swc1 $f6,0x46c($sp) -/* f120924: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f120928: 4618b182 */ mul.s $f6,$f22,$f24 -/* f12092c: e7aa0470 */ swc1 $f10,0x470($sp) -/* f120930: 24110005 */ addiu $s1,$zero,0x5 -/* f120934: 46184282 */ mul.s $f10,$f8,$f24 -/* f120938: e7a40474 */ swc1 $f4,0x474($sp) -/* f12093c: 27a4043c */ addiu $a0,$sp,0x43c -/* f120940: 4618d102 */ mul.s $f4,$f26,$f24 -/* f120944: e7a60484 */ swc1 $f6,0x484($sp) -/* f120948: c7a605a8 */ lwc1 $f6,0x5a8($sp) -/* f12094c: 8fa50564 */ lw $a1,0x564($sp) -/* f120950: e7aa0488 */ swc1 $f10,0x488($sp) -/* f120954: 46183202 */ mul.s $f8,$f6,$f24 -/* f120958: c7aa05ac */ lwc1 $f10,0x5ac($sp) -/* f12095c: e7a4048c */ swc1 $f4,0x48c($sp) -/* f120960: c7a605b0 */ lwc1 $f6,0x5b0($sp) -/* f120964: 46185102 */ mul.s $f4,$f10,$f24 -/* f120968: 4600a280 */ add.s $f10,$f20,$f0 -/* f12096c: e7b20448 */ swc1 $f18,0x448($sp) -/* f120970: e7a8049c */ swc1 $f8,0x49c($sp) -/* f120974: 46183202 */ mul.s $f8,$f6,$f24 -/* f120978: 46008180 */ add.s $f6,$f16,$f0 -/* f12097c: e7aa044c */ swc1 $f10,0x44c($sp) -/* f120980: e7a404a0 */ swc1 $f4,0x4a0($sp) -/* f120984: c7aa05a8 */ lwc1 $f10,0x5a8($sp) -/* f120988: 46006100 */ add.s $f4,$f12,$f0 -/* f12098c: e7a6047c */ swc1 $f6,0x47c($sp) -/* f120990: e7a804a4 */ swc1 $f8,0x4a4($sp) -/* f120994: 4600d200 */ add.s $f8,$f26,$f0 -/* f120998: e7a40464 */ swc1 $f4,0x464($sp) -/* f12099c: c7a405b0 */ lwc1 $f4,0x5b0($sp) -/* f1209a0: e7a20460 */ swc1 $f2,0x460($sp) -/* f1209a4: e7a80494 */ swc1 $f8,0x494($sp) -/* f1209a8: 46002180 */ add.s $f6,$f4,$f0 -/* f1209ac: e7ae0478 */ swc1 $f14,0x478($sp) -/* f1209b0: e7b60490 */ swc1 $f22,0x490($sp) -/* f1209b4: e7aa04a8 */ swc1 $f10,0x4a8($sp) -/* f1209b8: 0fc47dbb */ jal func0f11f6ec -/* f1209bc: e7a604ac */ swc1 $f6,0x4ac($sp) -/* f1209c0: 27a40454 */ addiu $a0,$sp,0x454 -/* f1209c4: 0fc47dbb */ jal func0f11f6ec -/* f1209c8: 8fa5056c */ lw $a1,0x56c($sp) -/* f1209cc: 27a4046c */ addiu $a0,$sp,0x46c -/* f1209d0: 0fc47dbb */ jal func0f11f6ec -/* f1209d4: 8fa50568 */ lw $a1,0x568($sp) -/* f1209d8: 27a40484 */ addiu $a0,$sp,0x484 -/* f1209dc: 0fc47dbb */ jal func0f11f6ec -/* f1209e0: 8fa50550 */ lw $a1,0x550($sp) -/* f1209e4: 27a4049c */ addiu $a0,$sp,0x49c -/* f1209e8: 0fc47dbb */ jal func0f11f6ec -/* f1209ec: 8fa50558 */ lw $a1,0x558($sp) -/* f1209f0: 100000ff */ b .L0f120df0 -/* f1209f4: 00000000 */ nop -/* f1209f8: c7ba05e4 */ lwc1 $f26,0x5e4($sp) -/* f1209fc: c7b605ec */ lwc1 $f22,0x5ec($sp) -/* f120a00: c7b405d8 */ lwc1 $f20,0x5d8($sp) -/* f120a04: c7b205e0 */ lwc1 $f18,0x5e0($sp) -/* f120a08: c7b005c0 */ lwc1 $f16,0x5c0($sp) -/* f120a0c: c7ae059c */ lwc1 $f14,0x59c($sp) -/* f120a10: c7ac05a4 */ lwc1 $f12,0x5a4($sp) -/* f120a14: c7aa05e8 */ lwc1 $f10,0x5e8($sp) -/* f120a18: c7a805c8 */ lwc1 $f8,0x5c8($sp) -/* f120a1c: c7a605dc */ lwc1 $f6,0x5dc($sp) -/* f120a20: 3c017f1b */ lui $at,%hi(var7f1b5070) -/* f120a24: c4385070 */ lwc1 $f24,%lo(var7f1b5070)($at) -/* f120a28: c7a405c4 */ lwc1 $f4,0x5c4($sp) -/* f120a2c: c7a205a8 */ lwc1 $f2,0x5a8($sp) -/* f120a30: 46185282 */ mul.s $f10,$f10,$f24 -/* f120a34: c7a005ac */ lwc1 $f0,0x5ac($sp) -/* f120a38: 3c018008 */ lui $at,%hi(var8007db80) -/* f120a3c: 46183182 */ mul.s $f6,$f6,$f24 -/* f120a40: 24110005 */ addiu $s1,$zero,0x5 -/* f120a44: e7ba0448 */ swc1 $f26,0x448($sp) -/* f120a48: 4618d682 */ mul.s $f26,$f26,$f24 -/* f120a4c: e7aa0440 */ swc1 $f10,0x440($sp) -/* f120a50: c7aa05b0 */ lwc1 $f10,0x5b0($sp) -/* f120a54: 46182102 */ mul.s $f4,$f4,$f24 -/* f120a58: e7a60458 */ swc1 $f6,0x458($sp) -/* f120a5c: c7a605a0 */ lwc1 $f6,0x5a0($sp) -/* f120a60: 46181082 */ mul.s $f2,$f2,$f24 -/* f120a64: e7ba043c */ swc1 $f26,0x43c($sp) -/* f120a68: c43adb80 */ lwc1 $f26,%lo(var8007db80)($at) -/* f120a6c: 46185282 */ mul.s $f10,$f10,$f24 -/* f120a70: e7a40470 */ swc1 $f4,0x470($sp) -/* f120a74: c7a405b0 */ lwc1 $f4,0x5b0($sp) -/* f120a78: e7b40460 */ swc1 $f20,0x460($sp) -/* f120a7c: 4618a502 */ mul.s $f20,$f20,$f24 -/* f120a80: e7a20484 */ swc1 $f2,0x484($sp) -/* f120a84: c7a205a8 */ lwc1 $f2,0x5a8($sp) -/* f120a88: e7aa048c */ swc1 $f10,0x48c($sp) -/* f120a8c: 4618b282 */ mul.s $f10,$f22,$f24 -/* f120a90: e7a20490 */ swc1 $f2,0x490($sp) -/* f120a94: e7b00478 */ swc1 $f16,0x478($sp) -/* f120a98: 46188402 */ mul.s $f16,$f16,$f24 -/* f120a9c: e7b40454 */ swc1 $f20,0x454($sp) -/* f120aa0: e7ae04a8 */ swc1 $f14,0x4a8($sp) -/* f120aa4: 46189502 */ mul.s $f20,$f18,$f24 -/* f120aa8: e7aa0444 */ swc1 $f10,0x444($sp) -/* f120aac: 27a4043c */ addiu $a0,$sp,0x43c -/* f120ab0: 46184282 */ mul.s $f10,$f8,$f24 -/* f120ab4: e7b0046c */ swc1 $f16,0x46c($sp) -/* f120ab8: 8fa5056c */ lw $a1,0x56c($sp) -/* f120abc: 46180002 */ mul.s $f0,$f0,$f24 -/* f120ac0: e7b4045c */ swc1 $f20,0x45c($sp) -/* f120ac4: 461a9480 */ add.s $f18,$f18,$f26 -/* f120ac8: 46187382 */ mul.s $f14,$f14,$f24 -/* f120acc: e7aa0474 */ swc1 $f10,0x474($sp) -/* f120ad0: 461ab580 */ add.s $f22,$f22,$f26 -/* f120ad4: 46183182 */ mul.s $f6,$f6,$f24 -/* f120ad8: e7a00488 */ swc1 $f0,0x488($sp) -/* f120adc: 461a4200 */ add.s $f8,$f8,$f26 -/* f120ae0: 46186002 */ mul.s $f0,$f12,$f24 -/* f120ae4: e7ae049c */ swc1 $f14,0x49c($sp) -/* f120ae8: 461a2100 */ add.s $f4,$f4,$f26 -/* f120aec: e7b6044c */ swc1 $f22,0x44c($sp) -/* f120af0: e7a604a0 */ swc1 $f6,0x4a0($sp) -/* f120af4: 461a6680 */ add.s $f26,$f12,$f26 -/* f120af8: e7b20464 */ swc1 $f18,0x464($sp) -/* f120afc: e7a004a4 */ swc1 $f0,0x4a4($sp) -/* f120b00: e7a8047c */ swc1 $f8,0x47c($sp) -/* f120b04: e7a40494 */ swc1 $f4,0x494($sp) -/* f120b08: 0fc47dbb */ jal func0f11f6ec -/* f120b0c: e7ba04ac */ swc1 $f26,0x4ac($sp) -/* f120b10: 27a40454 */ addiu $a0,$sp,0x454 -/* f120b14: 0fc47dbb */ jal func0f11f6ec -/* f120b18: 8fa50568 */ lw $a1,0x568($sp) -/* f120b1c: 27a4046c */ addiu $a0,$sp,0x46c -/* f120b20: 0fc47dbb */ jal func0f11f6ec -/* f120b24: 8fa50560 */ lw $a1,0x560($sp) -/* f120b28: 27a40484 */ addiu $a0,$sp,0x484 -/* f120b2c: 0fc47dbb */ jal func0f11f6ec -/* f120b30: 8fa50558 */ lw $a1,0x558($sp) -/* f120b34: 27a4049c */ addiu $a0,$sp,0x49c -/* f120b38: 0fc47dbb */ jal func0f11f6ec -/* f120b3c: 8fa50554 */ lw $a1,0x554($sp) -/* f120b40: 100000ab */ b .L0f120df0 -/* f120b44: 00000000 */ nop -/* f120b48: 3c017f1b */ lui $at,%hi(var7f1b5074) -/* f120b4c: c4385074 */ lwc1 $f24,%lo(var7f1b5074)($at) -/* f120b50: c7b605c0 */ lwc1 $f22,0x5c0($sp) -/* f120b54: c7a405c4 */ lwc1 $f4,0x5c4($sp) -/* f120b58: c7ba05c8 */ lwc1 $f26,0x5c8($sp) -/* f120b5c: 4618b282 */ mul.s $f10,$f22,$f24 -/* f120b60: c7b205cc */ lwc1 $f18,0x5cc($sp) -/* f120b64: c7b405d4 */ lwc1 $f20,0x5d4($sp) -/* f120b68: 46182182 */ mul.s $f6,$f4,$f24 -/* f120b6c: c7a405d0 */ lwc1 $f4,0x5d0($sp) -/* f120b70: c7a205e4 */ lwc1 $f2,0x5e4($sp) -/* f120b74: 4618d202 */ mul.s $f8,$f26,$f24 -/* f120b78: e7aa043c */ swc1 $f10,0x43c($sp) -/* f120b7c: c7ac05ec */ lwc1 $f12,0x5ec($sp) -/* f120b80: 46189282 */ mul.s $f10,$f18,$f24 -/* f120b84: e7a60440 */ swc1 $f6,0x440($sp) -/* f120b88: c7ae05b4 */ lwc1 $f14,0x5b4($sp) -/* f120b8c: 46182182 */ mul.s $f6,$f4,$f24 -/* f120b90: e7a80444 */ swc1 $f8,0x444($sp) -/* f120b94: c7a405e8 */ lwc1 $f4,0x5e8($sp) -/* f120b98: 4618a202 */ mul.s $f8,$f20,$f24 -/* f120b9c: e7aa0454 */ swc1 $f10,0x454($sp) -/* f120ba0: c7b005bc */ lwc1 $f16,0x5bc($sp) -/* f120ba4: 46181282 */ mul.s $f10,$f2,$f24 -/* f120ba8: e7a60458 */ swc1 $f6,0x458($sp) -/* f120bac: 3c018008 */ lui $at,%hi(var8007db80) -/* f120bb0: 46182182 */ mul.s $f6,$f4,$f24 -/* f120bb4: e7a8045c */ swc1 $f8,0x45c($sp) -/* f120bb8: c7a405b8 */ lwc1 $f4,0x5b8($sp) -/* f120bbc: 46186202 */ mul.s $f8,$f12,$f24 -/* f120bc0: e7aa046c */ swc1 $f10,0x46c($sp) -/* f120bc4: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f120bc8: 46187282 */ mul.s $f10,$f14,$f24 -/* f120bcc: e7a60470 */ swc1 $f6,0x470($sp) -/* f120bd0: 24110005 */ addiu $s1,$zero,0x5 -/* f120bd4: 46182182 */ mul.s $f6,$f4,$f24 -/* f120bd8: e7a80474 */ swc1 $f8,0x474($sp) -/* f120bdc: 27a4043c */ addiu $a0,$sp,0x43c -/* f120be0: 46188202 */ mul.s $f8,$f16,$f24 -/* f120be4: e7aa0484 */ swc1 $f10,0x484($sp) -/* f120be8: c7aa0590 */ lwc1 $f10,0x590($sp) -/* f120bec: 8fa50560 */ lw $a1,0x560($sp) -/* f120bf0: e7a60488 */ swc1 $f6,0x488($sp) -/* f120bf4: 46185102 */ mul.s $f4,$f10,$f24 -/* f120bf8: c7a60594 */ lwc1 $f6,0x594($sp) -/* f120bfc: e7a8048c */ swc1 $f8,0x48c($sp) -/* f120c00: c7aa0598 */ lwc1 $f10,0x598($sp) -/* f120c04: 46183202 */ mul.s $f8,$f6,$f24 -/* f120c08: 4600d180 */ add.s $f6,$f26,$f0 -/* f120c0c: e7b60448 */ swc1 $f22,0x448($sp) -/* f120c10: e7a4049c */ swc1 $f4,0x49c($sp) -/* f120c14: 46185102 */ mul.s $f4,$f10,$f24 -/* f120c18: 46006280 */ add.s $f10,$f12,$f0 -/* f120c1c: e7a6044c */ swc1 $f6,0x44c($sp) -/* f120c20: e7a804a0 */ swc1 $f8,0x4a0($sp) -/* f120c24: c7a60590 */ lwc1 $f6,0x590($sp) -/* f120c28: 4600a200 */ add.s $f8,$f20,$f0 -/* f120c2c: e7aa047c */ swc1 $f10,0x47c($sp) -/* f120c30: e7a404a4 */ swc1 $f4,0x4a4($sp) -/* f120c34: 46008100 */ add.s $f4,$f16,$f0 -/* f120c38: e7a80464 */ swc1 $f8,0x464($sp) -/* f120c3c: c7a80598 */ lwc1 $f8,0x598($sp) -/* f120c40: e7b20460 */ swc1 $f18,0x460($sp) -/* f120c44: e7a40494 */ swc1 $f4,0x494($sp) -/* f120c48: 46004280 */ add.s $f10,$f8,$f0 -/* f120c4c: e7a20478 */ swc1 $f2,0x478($sp) -/* f120c50: e7ae0490 */ swc1 $f14,0x490($sp) -/* f120c54: e7a604a8 */ swc1 $f6,0x4a8($sp) -/* f120c58: 0fc47dbb */ jal func0f11f6ec -/* f120c5c: e7aa04ac */ swc1 $f10,0x4ac($sp) -/* f120c60: 27a40454 */ addiu $a0,$sp,0x454 -/* f120c64: 0fc47dbb */ jal func0f11f6ec -/* f120c68: 8fa50564 */ lw $a1,0x564($sp) -/* f120c6c: 27a4046c */ addiu $a0,$sp,0x46c -/* f120c70: 0fc47dbb */ jal func0f11f6ec -/* f120c74: 8fa5056c */ lw $a1,0x56c($sp) -/* f120c78: 27a40484 */ addiu $a0,$sp,0x484 -/* f120c7c: 0fc47dbb */ jal func0f11f6ec -/* f120c80: 8fa5055c */ lw $a1,0x55c($sp) -/* f120c84: 27a4049c */ addiu $a0,$sp,0x49c -/* f120c88: 0fc47dbb */ jal func0f11f6ec -/* f120c8c: 8fa50550 */ lw $a1,0x550($sp) -/* f120c90: 10000057 */ b .L0f120df0 -/* f120c94: 00000000 */ nop -/* f120c98: 3c017f1b */ lui $at,%hi(var7f1b5078) -/* f120c9c: c4385078 */ lwc1 $f24,%lo(var7f1b5078)($at) -/* f120ca0: c7ae05d8 */ lwc1 $f14,0x5d8($sp) -/* f120ca4: c7a605dc */ lwc1 $f6,0x5dc($sp) -/* f120ca8: c7b005e0 */ lwc1 $f16,0x5e0($sp) -/* f120cac: 46187102 */ mul.s $f4,$f14,$f24 -/* f120cb0: c7b605c0 */ lwc1 $f22,0x5c0($sp) -/* f120cb4: c7ba05c8 */ lwc1 $f26,0x5c8($sp) -/* f120cb8: 46183202 */ mul.s $f8,$f6,$f24 -/* f120cbc: c7a605c4 */ lwc1 $f6,0x5c4($sp) -/* f120cc0: c7b205cc */ lwc1 $f18,0x5cc($sp) -/* f120cc4: 46188282 */ mul.s $f10,$f16,$f24 -/* f120cc8: e7a4043c */ swc1 $f4,0x43c($sp) -/* f120ccc: c7b405d4 */ lwc1 $f20,0x5d4($sp) -/* f120cd0: 4618b102 */ mul.s $f4,$f22,$f24 -/* f120cd4: e7a80440 */ swc1 $f8,0x440($sp) -/* f120cd8: c7a2059c */ lwc1 $f2,0x59c($sp) -/* f120cdc: 46183202 */ mul.s $f8,$f6,$f24 -/* f120ce0: e7aa0444 */ swc1 $f10,0x444($sp) -/* f120ce4: c7a605d0 */ lwc1 $f6,0x5d0($sp) -/* f120ce8: 4618d282 */ mul.s $f10,$f26,$f24 -/* f120cec: e7a40454 */ swc1 $f4,0x454($sp) -/* f120cf0: c7ac05a4 */ lwc1 $f12,0x5a4($sp) -/* f120cf4: 46189102 */ mul.s $f4,$f18,$f24 -/* f120cf8: e7a80458 */ swc1 $f8,0x458($sp) -/* f120cfc: 3c018008 */ lui $at,%hi(var8007db80) -/* f120d00: 46183202 */ mul.s $f8,$f6,$f24 -/* f120d04: e7aa045c */ swc1 $f10,0x45c($sp) -/* f120d08: c7a605a0 */ lwc1 $f6,0x5a0($sp) -/* f120d0c: 4618a282 */ mul.s $f10,$f20,$f24 -/* f120d10: e7a4046c */ swc1 $f4,0x46c($sp) -/* f120d14: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f120d18: 46181102 */ mul.s $f4,$f2,$f24 -/* f120d1c: e7a80470 */ swc1 $f8,0x470($sp) -/* f120d20: 24110005 */ addiu $s1,$zero,0x5 -/* f120d24: 46183202 */ mul.s $f8,$f6,$f24 -/* f120d28: e7aa0474 */ swc1 $f10,0x474($sp) -/* f120d2c: 27a4043c */ addiu $a0,$sp,0x43c -/* f120d30: 46186282 */ mul.s $f10,$f12,$f24 -/* f120d34: e7a40484 */ swc1 $f4,0x484($sp) -/* f120d38: c7a405b4 */ lwc1 $f4,0x5b4($sp) -/* f120d3c: 8fa50568 */ lw $a1,0x568($sp) -/* f120d40: e7a80488 */ swc1 $f8,0x488($sp) -/* f120d44: 46182182 */ mul.s $f6,$f4,$f24 -/* f120d48: c7a805b8 */ lwc1 $f8,0x5b8($sp) -/* f120d4c: e7aa048c */ swc1 $f10,0x48c($sp) -/* f120d50: c7a405bc */ lwc1 $f4,0x5bc($sp) -/* f120d54: 46184282 */ mul.s $f10,$f8,$f24 -/* f120d58: 46008200 */ add.s $f8,$f16,$f0 -/* f120d5c: e7ae0448 */ swc1 $f14,0x448($sp) -/* f120d60: e7a6049c */ swc1 $f6,0x49c($sp) -/* f120d64: 46182182 */ mul.s $f6,$f4,$f24 -/* f120d68: 4600a100 */ add.s $f4,$f20,$f0 -/* f120d6c: e7a8044c */ swc1 $f8,0x44c($sp) -/* f120d70: e7aa04a0 */ swc1 $f10,0x4a0($sp) -/* f120d74: c7a805b4 */ lwc1 $f8,0x5b4($sp) -/* f120d78: 4600d280 */ add.s $f10,$f26,$f0 -/* f120d7c: e7a4047c */ swc1 $f4,0x47c($sp) -/* f120d80: e7a604a4 */ swc1 $f6,0x4a4($sp) -/* f120d84: 46006180 */ add.s $f6,$f12,$f0 -/* f120d88: e7aa0464 */ swc1 $f10,0x464($sp) -/* f120d8c: c7aa05bc */ lwc1 $f10,0x5bc($sp) -/* f120d90: e7b60460 */ swc1 $f22,0x460($sp) -/* f120d94: e7a60494 */ swc1 $f6,0x494($sp) -/* f120d98: 46005100 */ add.s $f4,$f10,$f0 -/* f120d9c: e7b20478 */ swc1 $f18,0x478($sp) -/* f120da0: e7a20490 */ swc1 $f2,0x490($sp) -/* f120da4: e7a804a8 */ swc1 $f8,0x4a8($sp) -/* f120da8: 0fc47dbb */ jal func0f11f6ec -/* f120dac: e7a404ac */ swc1 $f4,0x4ac($sp) -/* f120db0: 27a40454 */ addiu $a0,$sp,0x454 -/* f120db4: 0fc47dbb */ jal func0f11f6ec -/* f120db8: 8fa50560 */ lw $a1,0x560($sp) -/* f120dbc: 27a4046c */ addiu $a0,$sp,0x46c -/* f120dc0: 0fc47dbb */ jal func0f11f6ec -/* f120dc4: 8fa50564 */ lw $a1,0x564($sp) -/* f120dc8: 27a40484 */ addiu $a0,$sp,0x484 -/* f120dcc: 0fc47dbb */ jal func0f11f6ec -/* f120dd0: 8fa50554 */ lw $a1,0x554($sp) -/* f120dd4: 27a4049c */ addiu $a0,$sp,0x49c -/* f120dd8: 0fc47dbb */ jal func0f11f6ec -/* f120ddc: 8fa5055c */ lw $a1,0x55c($sp) -/* f120de0: 10000003 */ b .L0f120df0 -/* f120de4: 00000000 */ nop -.L0f120de8: -/* f120de8: 100006af */ b .L0f1228a8 -/* f120dec: 8fa206b0 */ lw $v0,0x6b0($sp) -.L0f120df0: -/* f120df0: 5a200153 */ blezl $s1,.L0f121340 -/* f120df4: 8fae0068 */ lw $t6,0x68($sp) -/* f120df8: 0fc2d5c6 */ jal currentPlayerGetUnk1754 -/* f120dfc: 00000000 */ nop -/* f120e00: 0fc2d5be */ jal currentPlayerGetMatrix1740 -/* f120e04: 00408025 */ or $s0,$v0,$zero -/* f120e08: 02002025 */ or $a0,$s0,$zero -/* f120e0c: 00402825 */ or $a1,$v0,$zero -/* f120e10: 0c005680 */ jal mtx4MultMtx4 -/* f120e14: 27a603cc */ addiu $a2,$sp,0x3cc -/* f120e18: 3c013f80 */ lui $at,0x3f80 -/* f120e1c: 44813000 */ mtc1 $at,$f6 -/* f120e20: 3c04800a */ lui $a0,%hi(var800a33a8) -/* f120e24: 248433a8 */ addiu $a0,$a0,%lo(var800a33a8) -/* f120e28: 46183003 */ div.s $f0,$f6,$f24 -/* f120e2c: 44050000 */ mfc1 $a1,$f0 -/* f120e30: 44060000 */ mfc1 $a2,$f0 -/* f120e34: 44070000 */ mfc1 $a3,$f0 -/* f120e38: 0c014024 */ jal guScaleF -/* f120e3c: 00000000 */ nop -/* f120e40: 3c05800a */ lui $a1,%hi(var800a33a8) -/* f120e44: 24a533a8 */ addiu $a1,$a1,%lo(var800a33a8) -/* f120e48: 27a403cc */ addiu $a0,$sp,0x3cc -/* f120e4c: 0c005680 */ jal mtx4MultMtx4 -/* f120e50: 27a6038c */ addiu $a2,$sp,0x38c -/* f120e54: 1a20004e */ blez $s1,.L0f120f90 -/* f120e58: afa00270 */ sw $zero,0x270($sp) -/* f120e5c: 3c014080 */ lui $at,0x4080 -/* f120e60: 27a4043c */ addiu $a0,$sp,0x43c -/* f120e64: 4481d000 */ mtc1 $at,$f26 -/* f120e68: afa40064 */ sw $a0,0x64($sp) -/* f120e6c: 27b00274 */ addiu $s0,$sp,0x274 -.L0f120e70: -/* f120e70: 3c017f1b */ lui $at,%hi(var7f1b507c) -/* f120e74: c420507c */ lwc1 $f0,%lo(var7f1b507c)($at) -/* f120e78: 8fa40064 */ lw $a0,0x64($sp) -/* f120e7c: 27a5038c */ addiu $a1,$sp,0x38c -/* f120e80: 44070000 */ mfc1 $a3,$f0 -/* f120e84: 24060082 */ addiu $a2,$zero,0x82 -/* f120e88: afb00014 */ sw $s0,0x14($sp) -/* f120e8c: 0fc48a34 */ jal func0f1228d0 -/* f120e90: e7a00010 */ swc1 $f0,0x10($sp) -/* f120e94: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f120e98: 00000000 */ nop -/* f120e9c: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f120ea0: 46000506 */ mov.s $f20,$f0 -/* f120ea4: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f120ea8: 46000586 */ mov.s $f22,$f0 -/* f120eac: 46160200 */ add.s $f8,$f0,$f22 -/* f120eb0: 461aa382 */ mul.s $f14,$f20,$f26 -/* f120eb4: 3c013f80 */ lui $at,0x3f80 -/* f120eb8: 44812000 */ mtc1 $at,$f4 -/* f120ebc: 461a4282 */ mul.s $f10,$f8,$f26 -/* f120ec0: c60c0028 */ lwc1 $f12,0x28($s0) -/* f120ec4: 46045181 */ sub.s $f6,$f10,$f4 -/* f120ec8: 44063000 */ mfc1 $a2,$f6 -/* f120ecc: 0fc47cf4 */ jal func0f11f3d0 -/* f120ed0: 00000000 */ nop -/* f120ed4: 0fc2d602 */ jal currentPlayerGetScreenTop -/* f120ed8: e6000028 */ swc1 $f0,0x28($s0) -/* f120edc: 0fc2d602 */ jal currentPlayerGetScreenTop -/* f120ee0: 46000506 */ mov.s $f20,$f0 -/* f120ee4: 0fc2d5fa */ jal currentPlayerGetScreenHeight -/* f120ee8: 46000586 */ mov.s $f22,$f0 -/* f120eec: 46160200 */ add.s $f8,$f0,$f22 -/* f120ef0: 461aa382 */ mul.s $f14,$f20,$f26 -/* f120ef4: 3c013f80 */ lui $at,0x3f80 -/* f120ef8: 44812000 */ mtc1 $at,$f4 -/* f120efc: 461a4282 */ mul.s $f10,$f8,$f26 -/* f120f00: c60c002c */ lwc1 $f12,0x2c($s0) -/* f120f04: 46045181 */ sub.s $f6,$f10,$f4 -/* f120f08: 44063000 */ mfc1 $a2,$f6 -/* f120f0c: 0fc47cf4 */ jal func0f11f3d0 -/* f120f10: 00000000 */ nop -/* f120f14: 0fc2d602 */ jal currentPlayerGetScreenTop -/* f120f18: e600002c */ swc1 $f0,0x2c($s0) -/* f120f1c: 461a0202 */ mul.s $f8,$f0,$f26 -/* f120f20: c604002c */ lwc1 $f4,0x2c($s0) -/* f120f24: 461a4280 */ add.s $f10,$f8,$f26 -/* f120f28: 4604503c */ c.lt.s $f10,$f4 -/* f120f2c: 00000000 */ nop -/* f120f30: 45020010 */ bc1fl .L0f120f74 -/* f120f34: 8fae0064 */ lw $t6,0x64($sp) -/* f120f38: 0fc2d602 */ jal currentPlayerGetScreenTop -/* f120f3c: 00000000 */ nop -/* f120f40: 0fc2d5fa */ jal currentPlayerGetScreenHeight -/* f120f44: 46000506 */ mov.s $f20,$f0 -/* f120f48: 46140180 */ add.s $f6,$f0,$f20 -/* f120f4c: c602002c */ lwc1 $f2,0x2c($s0) -/* f120f50: 461a3202 */ mul.s $f8,$f6,$f26 -/* f120f54: 461a4281 */ sub.s $f10,$f8,$f26 -/* f120f58: 460a103c */ c.lt.s $f2,$f10 -/* f120f5c: 00000000 */ nop -/* f120f60: 45020004 */ bc1fl .L0f120f74 -/* f120f64: 8fae0064 */ lw $t6,0x64($sp) -/* f120f68: 461a1101 */ sub.s $f4,$f2,$f26 -/* f120f6c: e604002c */ swc1 $f4,0x2c($s0) -/* f120f70: 8fae0064 */ lw $t6,0x64($sp) -.L0f120f74: -/* f120f74: 8fa20270 */ lw $v0,0x270($sp) -/* f120f78: 26100038 */ addiu $s0,$s0,0x38 -/* f120f7c: 25c90018 */ addiu $t1,$t6,0x18 -/* f120f80: 24420001 */ addiu $v0,$v0,0x1 -/* f120f84: afa20270 */ sw $v0,0x270($sp) -/* f120f88: 1451ffb9 */ bne $v0,$s1,.L0f120e70 -/* f120f8c: afa90064 */ sw $t1,0x64($sp) -.L0f120f90: -/* f120f90: 8fac042c */ lw $t4,0x42c($sp) -/* f120f94: 8fb806b0 */ lw $t8,0x6b0($sp) -/* f120f98: 3c0ee700 */ lui $t6,0xe700 -/* f120f9c: 918b0028 */ lbu $t3,0x28($t4) -/* f120fa0: 27a406b0 */ addiu $a0,$sp,0x6b0 -/* f120fa4: 3c19800b */ lui $t9,%hi(g_TexWaterConfigs) -/* f120fa8: 1560006b */ bnez $t3,.L0f121158 -/* f120fac: 270a0008 */ addiu $t2,$t8,0x8 -/* f120fb0: 3c017f1b */ lui $at,%hi(var7f1b5080) -/* f120fb4: c42e5080 */ lwc1 $f14,%lo(var7f1b5080)($at) -/* f120fb8: 3c017f1b */ lui $at,%hi(var7f1b5084) -/* f120fbc: 44801000 */ mtc1 $zero,$f2 -/* f120fc0: 44806000 */ mtc1 $zero,$f12 -/* f120fc4: c4305084 */ lwc1 $f16,%lo(var7f1b5084)($at) -/* f120fc8: 1a20001b */ blez $s1,.L0f121038 -/* f120fcc: 00001825 */ or $v1,$zero,$zero -/* f120fd0: 27a20274 */ addiu $v0,$sp,0x274 -.L0f120fd4: -/* f120fd4: c4400028 */ lwc1 $f0,0x28($v0) -/* f120fd8: 24630001 */ addiu $v1,$v1,0x1 -/* f120fdc: 460e003c */ c.lt.s $f0,$f14 -/* f120fe0: 00000000 */ nop -/* f120fe4: 45020003 */ bc1fl .L0f120ff4 -/* f120fe8: 4600103c */ c.lt.s $f2,$f0 -/* f120fec: 46000386 */ mov.s $f14,$f0 -/* f120ff0: 4600103c */ c.lt.s $f2,$f0 -.L0f120ff4: -/* f120ff4: 00000000 */ nop -/* f120ff8: 45020003 */ bc1fl .L0f121008 -/* f120ffc: c440002c */ lwc1 $f0,0x2c($v0) -/* f121000: 46000086 */ mov.s $f2,$f0 -/* f121004: c440002c */ lwc1 $f0,0x2c($v0) -.L0f121008: -/* f121008: 4610003c */ c.lt.s $f0,$f16 -/* f12100c: 00000000 */ nop -/* f121010: 45020003 */ bc1fl .L0f121020 -/* f121014: 4600603c */ c.lt.s $f12,$f0 -/* f121018: 46000406 */ mov.s $f16,$f0 -/* f12101c: 4600603c */ c.lt.s $f12,$f0 -.L0f121020: -/* f121020: 00000000 */ nop -/* f121024: 45000002 */ bc1f .L0f121030 -/* f121028: 00000000 */ nop -/* f12102c: 46000306 */ mov.s $f12,$f0 -.L0f121030: -/* f121030: 1471ffe8 */ bne $v1,$s1,.L0f120fd4 -/* f121034: 24420038 */ addiu $v0,$v0,0x38 -.L0f121038: -/* f121038: 8faf06b0 */ lw $t7,0x6b0($sp) -/* f12103c: 3c19e700 */ lui $t9,0xe700 -/* f121040: 3c013e80 */ lui $at,0x3e80 -/* f121044: 25f80008 */ addiu $t8,$t7,0x8 -/* f121048: afb806b0 */ sw $t8,0x6b0($sp) -/* f12104c: ade00004 */ sw $zero,0x4($t7) -/* f121050: adf90000 */ sw $t9,0x0($t7) -/* f121054: 8fad06b0 */ lw $t5,0x6b0($sp) -/* f121058: 44810000 */ mtc1 $at,$f0 -/* f12105c: 3c0eba00 */ lui $t6,0xba00 -/* f121060: 25aa0008 */ addiu $t2,$t5,0x8 -/* f121064: afaa06b0 */ sw $t2,0x6b0($sp) -/* f121068: 46001182 */ mul.s $f6,$f2,$f0 -/* f12106c: 35ce1402 */ ori $t6,$t6,0x1402 -/* f121070: 3c090030 */ lui $t1,0x30 -/* f121074: ada90004 */ sw $t1,0x4($t5) -/* f121078: adae0000 */ sw $t6,0x0($t5) -/* f12107c: 8fac06b0 */ lw $t4,0x6b0($sp) -/* f121080: 46006282 */ mul.s $f10,$f12,$f0 -/* f121084: 3c0fb900 */ lui $t7,0xb900 -/* f121088: 258b0008 */ addiu $t3,$t4,0x8 -/* f12108c: afab06b0 */ sw $t3,0x6b0($sp) -/* f121090: 35ef031d */ ori $t7,$t7,0x31d -/* f121094: ad8f0000 */ sw $t7,0x0($t4) -/* f121098: 4600320d */ trunc.w.s $f8,$f6 -/* f12109c: ad800004 */ sw $zero,0x4($t4) -/* f1210a0: 46007182 */ mul.s $f6,$f14,$f0 -/* f1210a4: 8fb806b0 */ lw $t8,0x6b0($sp) -/* f1210a8: 3c07ba00 */ lui $a3,0xba00 -/* f1210ac: 34e71301 */ ori $a3,$a3,0x1301 -/* f1210b0: 27190008 */ addiu $t9,$t8,0x8 -/* f1210b4: afb906b0 */ sw $t9,0x6b0($sp) -/* f1210b8: 4600510d */ trunc.w.s $f4,$f10 -/* f1210bc: 46008282 */ mul.s $f10,$f16,$f0 -/* f1210c0: af000004 */ sw $zero,0x4($t8) -/* f1210c4: af070000 */ sw $a3,0x0($t8) -/* f1210c8: 8fa606b0 */ lw $a2,0x6b0($sp) -/* f1210cc: 44192000 */ mfc1 $t9,$f4 -/* f1210d0: 44094000 */ mfc1 $t1,$f8 -/* f1210d4: 4600320d */ trunc.w.s $f8,$f6 -/* f1210d8: 24ca0008 */ addiu $t2,$a2,0x8 -/* f1210dc: 312c03ff */ andi $t4,$t1,0x3ff -/* f1210e0: 4600510d */ trunc.w.s $f4,$f10 -/* f1210e4: 000c5b80 */ sll $t3,$t4,0xe -/* f1210e8: afaa06b0 */ sw $t2,0x6b0($sp) -/* f1210ec: 332d03ff */ andi $t5,$t9,0x3ff -/* f1210f0: 000d5080 */ sll $t2,$t5,0x2 -/* f1210f4: 3c01f600 */ lui $at,0xf600 -/* f1210f8: 440d2000 */ mfc1 $t5,$f4 -/* f1210fc: 440c4000 */ mfc1 $t4,$f8 -/* f121100: 01617825 */ or $t7,$t3,$at -/* f121104: 01ea7025 */ or $t6,$t7,$t2 -/* f121108: 31af03ff */ andi $t7,$t5,0x3ff -/* f12110c: 318b03ff */ andi $t3,$t4,0x3ff -/* f121110: 000bc380 */ sll $t8,$t3,0xe -/* f121114: 000f5080 */ sll $t2,$t7,0x2 -/* f121118: acce0000 */ sw $t6,0x0($a2) -/* f12111c: 030a7025 */ or $t6,$t8,$t2 -/* f121120: acce0004 */ sw $t6,0x4($a2) -/* f121124: 8fa906b0 */ lw $t1,0x6b0($sp) -/* f121128: 3c0be700 */ lui $t3,0xe700 -/* f12112c: 3c0f0008 */ lui $t7,0x8 -/* f121130: 252c0008 */ addiu $t4,$t1,0x8 -/* f121134: afac06b0 */ sw $t4,0x6b0($sp) -/* f121138: ad200004 */ sw $zero,0x4($t1) -/* f12113c: ad2b0000 */ sw $t3,0x0($t1) -/* f121140: 8fb906b0 */ lw $t9,0x6b0($sp) -/* f121144: 272d0008 */ addiu $t5,$t9,0x8 -/* f121148: afad06b0 */ sw $t5,0x6b0($sp) -/* f12114c: af2f0004 */ sw $t7,0x4($t9) -/* f121150: 1000007a */ b .L0f12133c -/* f121154: af270000 */ sw $a3,0x0($t9) -.L0f121158: -/* f121158: afaa06b0 */ sw $t2,0x6b0($sp) -/* f12115c: af000004 */ sw $zero,0x4($t8) -/* f121160: af0e0000 */ sw $t6,0x0($t8) -/* f121164: 8fa9042c */ lw $t1,0x42c($sp) -/* f121168: 8f39b598 */ lw $t9,%lo(g_TexWaterConfigs)($t9) -/* f12116c: 240d0002 */ addiu $t5,$zero,0x2 -/* f121170: 852c0030 */ lh $t4,0x30($t1) -/* f121174: 240f0001 */ addiu $t7,$zero,0x1 -/* f121178: afaf0014 */ sw $t7,0x14($sp) -/* f12117c: 000c5880 */ sll $t3,$t4,0x2 -/* f121180: 016c5823 */ subu $t3,$t3,$t4 -/* f121184: 000b5880 */ sll $t3,$t3,0x2 -/* f121188: afa00018 */ sw $zero,0x18($sp) -/* f12118c: afad0010 */ sw $t5,0x10($sp) -/* f121190: 24060001 */ addiu $a2,$zero,0x1 -/* f121194: 00003825 */ or $a3,$zero,$zero -/* f121198: 0fc2ce70 */ jal func0f0b39c0 -/* f12119c: 01792821 */ addu $a1,$t3,$t9 -/* f1211a0: 8fb806b0 */ lw $t8,0x6b0($sp) -/* f1211a4: 3c0eb900 */ lui $t6,0xb900 -/* f1211a8: 3c090f0a */ lui $t1,0xf0a -/* f1211ac: 270a0008 */ addiu $t2,$t8,0x8 -/* f1211b0: afaa06b0 */ sw $t2,0x6b0($sp) -/* f1211b4: 35294000 */ ori $t1,$t1,0x4000 -/* f1211b8: 35ce031d */ ori $t6,$t6,0x31d -/* f1211bc: 24010004 */ addiu $at,$zero,0x4 -/* f1211c0: af0e0000 */ sw $t6,0x0($t8) -/* f1211c4: 1621002a */ bne $s1,$at,.L0f121270 -/* f1211c8: af090004 */ sw $t1,0x4($t8) -/* f1211cc: 3c014302 */ lui $at,0x4302 -/* f1211d0: 44813000 */ mtc1 $at,$f6 -/* f1211d4: 27b00274 */ addiu $s0,$sp,0x274 -/* f1211d8: 27b1031c */ addiu $s1,$sp,0x31c -/* f1211dc: 240c0001 */ addiu $t4,$zero,0x1 -/* f1211e0: afac0014 */ sw $t4,0x14($sp) -/* f1211e4: 02203825 */ or $a3,$s1,$zero -/* f1211e8: 02002825 */ or $a1,$s0,$zero -/* f1211ec: 8fa406b0 */ lw $a0,0x6b0($sp) -/* f1211f0: 27a602ac */ addiu $a2,$sp,0x2ac -/* f1211f4: 0fc48b53 */ jal func0f122d4c -/* f1211f8: e7a60010 */ swc1 $f6,0x10($sp) -/* f1211fc: 8fab0430 */ lw $t3,0x430($sp) -/* f121200: 00402025 */ or $a0,$v0,$zero -/* f121204: 02202825 */ or $a1,$s1,$zero -/* f121208: 1160000f */ beqz $t3,.L0f121248 -/* f12120c: 27a602e4 */ addiu $a2,$sp,0x2e4 -/* f121210: 3c013f80 */ lui $at,0x3f80 -/* f121214: 44810000 */ mtc1 $at,$f0 -/* f121218: c7a802a0 */ lwc1 $f8,0x2a0($sp) -/* f12121c: c7a402d8 */ lwc1 $f4,0x2d8($sp) -/* f121220: 46004280 */ add.s $f10,$f8,$f0 -/* f121224: c7a80310 */ lwc1 $f8,0x310($sp) -/* f121228: 46002180 */ add.s $f6,$f4,$f0 -/* f12122c: c7a40348 */ lwc1 $f4,0x348($sp) -/* f121230: e7aa02a0 */ swc1 $f10,0x2a0($sp) -/* f121234: 46004280 */ add.s $f10,$f8,$f0 -/* f121238: e7a602d8 */ swc1 $f6,0x2d8($sp) -/* f12123c: 46002180 */ add.s $f6,$f4,$f0 -/* f121240: e7aa0310 */ swc1 $f10,0x310($sp) -/* f121244: e7a60348 */ swc1 $f6,0x348($sp) -.L0f121248: -/* f121248: 3c014302 */ lui $at,0x4302 -/* f12124c: 44814000 */ mtc1 $at,$f8 -/* f121250: 24190001 */ addiu $t9,$zero,0x1 -/* f121254: afb90014 */ sw $t9,0x14($sp) -/* f121258: 02003825 */ or $a3,$s0,$zero -/* f12125c: afa406b0 */ sw $a0,0x6b0($sp) -/* f121260: 0fc48b53 */ jal func0f122d4c -/* f121264: e7a80010 */ swc1 $f8,0x10($sp) -/* f121268: 10000034 */ b .L0f12133c -/* f12126c: afa206b0 */ sw $v0,0x6b0($sp) -.L0f121270: -/* f121270: 24010005 */ addiu $at,$zero,0x5 -/* f121274: 16210024 */ bne $s1,$at,.L0f121308 -/* f121278: 27b00274 */ addiu $s0,$sp,0x274 -/* f12127c: 3c014302 */ lui $at,0x4302 -/* f121280: 44815000 */ mtc1 $at,$f10 -/* f121284: 240d0001 */ addiu $t5,$zero,0x1 -/* f121288: afad0014 */ sw $t5,0x14($sp) -/* f12128c: 8fa406b0 */ lw $a0,0x6b0($sp) -/* f121290: 02002825 */ or $a1,$s0,$zero -/* f121294: 27a602ac */ addiu $a2,$sp,0x2ac -/* f121298: 27a702e4 */ addiu $a3,$sp,0x2e4 -/* f12129c: 0fc48b53 */ jal func0f122d4c -/* f1212a0: e7aa0010 */ swc1 $f10,0x10($sp) -/* f1212a4: 3c014302 */ lui $at,0x4302 -/* f1212a8: 44812000 */ mtc1 $at,$f4 -/* f1212ac: 27b1031c */ addiu $s1,$sp,0x31c -/* f1212b0: 240f0001 */ addiu $t7,$zero,0x1 -/* f1212b4: afa206b0 */ sw $v0,0x6b0($sp) -/* f1212b8: afaf0014 */ sw $t7,0x14($sp) -/* f1212bc: 02203825 */ or $a3,$s1,$zero -/* f1212c0: 00402025 */ or $a0,$v0,$zero -/* f1212c4: 02002825 */ or $a1,$s0,$zero -/* f1212c8: 27a602e4 */ addiu $a2,$sp,0x2e4 -/* f1212cc: 0fc48b53 */ jal func0f122d4c -/* f1212d0: e7a40010 */ swc1 $f4,0x10($sp) -/* f1212d4: 3c014302 */ lui $at,0x4302 -/* f1212d8: 44813000 */ mtc1 $at,$f6 -/* f1212dc: 24180001 */ addiu $t8,$zero,0x1 -/* f1212e0: afa206b0 */ sw $v0,0x6b0($sp) -/* f1212e4: afb80014 */ sw $t8,0x14($sp) -/* f1212e8: 00402025 */ or $a0,$v0,$zero -/* f1212ec: 02002825 */ or $a1,$s0,$zero -/* f1212f0: 02203025 */ or $a2,$s1,$zero -/* f1212f4: 27a70354 */ addiu $a3,$sp,0x354 -/* f1212f8: 0fc48b53 */ jal func0f122d4c -/* f1212fc: e7a60010 */ swc1 $f6,0x10($sp) -/* f121300: 1000000e */ b .L0f12133c -/* f121304: afa206b0 */ sw $v0,0x6b0($sp) -.L0f121308: -/* f121308: 24010003 */ addiu $at,$zero,0x3 -/* f12130c: 1621000b */ bne $s1,$at,.L0f12133c -/* f121310: 27a50274 */ addiu $a1,$sp,0x274 -/* f121314: 3c014302 */ lui $at,0x4302 -/* f121318: 44814000 */ mtc1 $at,$f8 -/* f12131c: 240a0001 */ addiu $t2,$zero,0x1 -/* f121320: afaa0014 */ sw $t2,0x14($sp) -/* f121324: 8fa406b0 */ lw $a0,0x6b0($sp) -/* f121328: 27a602ac */ addiu $a2,$sp,0x2ac -/* f12132c: 27a702e4 */ addiu $a3,$sp,0x2e4 -/* f121330: 0fc48b53 */ jal func0f122d4c -/* f121334: e7a80010 */ swc1 $f8,0x10($sp) -/* f121338: afa206b0 */ sw $v0,0x6b0($sp) -.L0f12133c: -/* f12133c: 8fae0068 */ lw $t6,0x68($sp) -.L0f121340: -/* f121340: 3c014080 */ lui $at,0x4080 -/* f121344: 4481d000 */ mtc1 $at,$f26 -/* f121348: 2dc10010 */ sltiu $at,$t6,0x10 -/* f12134c: 1020040a */ beqz $at,.L0f122378 -/* f121350: 8fa306b0 */ lw $v1,0x6b0($sp) -/* f121354: 000e7080 */ sll $t6,$t6,0x2 -/* f121358: 3c017f1b */ lui $at,%hi(var7f1b5088) -/* f12135c: 002e0821 */ addu $at,$at,$t6 -/* f121360: 8c2e5088 */ lw $t6,%lo(var7f1b5088)($at) -/* f121364: 01c00008 */ jr $t6 -/* f121368: 00000000 */ nop -/* f12136c: 1000054e */ b .L0f1228a8 -/* f121370: 00601025 */ or $v0,$v1,$zero -/* f121374: c7a20644 */ lwc1 $f2,0x644($sp) -/* f121378: c7a40648 */ lwc1 $f4,0x648($sp) -/* f12137c: c7ac064c */ lwc1 $f12,0x64c($sp) -/* f121380: 46181282 */ mul.s $f10,$f2,$f24 -/* f121384: c7ae0638 */ lwc1 $f14,0x638($sp) -/* f121388: c7b00640 */ lwc1 $f16,0x640($sp) -/* f12138c: 46182182 */ mul.s $f6,$f4,$f24 -/* f121390: c7a4063c */ lwc1 $f4,0x63c($sp) -/* f121394: c7b2062c */ lwc1 $f18,0x62c($sp) -/* f121398: 46186202 */ mul.s $f8,$f12,$f24 -/* f12139c: e7aa04b4 */ swc1 $f10,0x4b4($sp) -/* f1213a0: c7b40634 */ lwc1 $f20,0x634($sp) -/* f1213a4: 46187282 */ mul.s $f10,$f14,$f24 -/* f1213a8: e7a604b8 */ swc1 $f6,0x4b8($sp) -/* f1213ac: c7b60620 */ lwc1 $f22,0x620($sp) -/* f1213b0: 46182182 */ mul.s $f6,$f4,$f24 -/* f1213b4: e7a804bc */ swc1 $f8,0x4bc($sp) -/* f1213b8: c7a40630 */ lwc1 $f4,0x630($sp) -/* f1213bc: 46188202 */ mul.s $f8,$f16,$f24 -/* f1213c0: e7aa04cc */ swc1 $f10,0x4cc($sp) -/* f1213c4: 3c018008 */ lui $at,%hi(var8007db80) -/* f1213c8: 46189282 */ mul.s $f10,$f18,$f24 -/* f1213cc: e7a604d0 */ swc1 $f6,0x4d0($sp) -/* f1213d0: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f1213d4: 46182182 */ mul.s $f6,$f4,$f24 -/* f1213d8: e7a804d4 */ swc1 $f8,0x4d4($sp) -/* f1213dc: c7a40624 */ lwc1 $f4,0x624($sp) -/* f1213e0: 4618a202 */ mul.s $f8,$f20,$f24 -/* f1213e4: e7aa04e4 */ swc1 $f10,0x4e4($sp) -/* f1213e8: 3c013f80 */ lui $at,0x3f80 -/* f1213ec: 4618b282 */ mul.s $f10,$f22,$f24 -/* f1213f0: e7a604e8 */ swc1 $f6,0x4e8($sp) -/* f1213f4: 24110004 */ addiu $s1,$zero,0x4 -/* f1213f8: 46182182 */ mul.s $f6,$f4,$f24 -/* f1213fc: e7a804ec */ swc1 $f8,0x4ec($sp) -/* f121400: c7a80628 */ lwc1 $f8,0x628($sp) -/* f121404: 27a404b4 */ addiu $a0,$sp,0x4b4 -/* f121408: e7aa04fc */ swc1 $f10,0x4fc($sp) -/* f12140c: 46184282 */ mul.s $f10,$f8,$f24 -/* f121410: 8fa5058c */ lw $a1,0x58c($sp) -/* f121414: e7a60500 */ swc1 $f6,0x500($sp) -/* f121418: 461c1102 */ mul.s $f4,$f2,$f28 -/* f12141c: 00000000 */ nop -/* f121420: 461c6182 */ mul.s $f6,$f12,$f28 -/* f121424: e7aa0504 */ swc1 $f10,0x504($sp) -/* f121428: 461c7282 */ mul.s $f10,$f14,$f28 -/* f12142c: e7a404c0 */ swc1 $f4,0x4c0($sp) -/* f121430: 461c8102 */ mul.s $f4,$f16,$f28 -/* f121434: 46003200 */ add.s $f8,$f6,$f0 -/* f121438: e7aa04d8 */ swc1 $f10,0x4d8($sp) -/* f12143c: e7a804c4 */ swc1 $f8,0x4c4($sp) -/* f121440: 461c9202 */ mul.s $f8,$f18,$f28 -/* f121444: 46002180 */ add.s $f6,$f4,$f0 -/* f121448: 461ca282 */ mul.s $f10,$f20,$f28 -/* f12144c: e7a604dc */ swc1 $f6,0x4dc($sp) -/* f121450: 461cb182 */ mul.s $f6,$f22,$f28 -/* f121454: e7a804f0 */ swc1 $f8,0x4f0($sp) -/* f121458: c7a80628 */ lwc1 $f8,0x628($sp) -/* f12145c: 46005100 */ add.s $f4,$f10,$f0 -/* f121460: 461c4282 */ mul.s $f10,$f8,$f28 -/* f121464: e7a60508 */ swc1 $f6,0x508($sp) -/* f121468: 44813000 */ mtc1 $at,$f6 -/* f12146c: e7a404f4 */ swc1 $f4,0x4f4($sp) -/* f121470: 46183203 */ div.s $f8,$f6,$f24 -/* f121474: 46005100 */ add.s $f4,$f10,$f0 -/* f121478: e7a4050c */ swc1 $f4,0x50c($sp) -/* f12147c: 0fc47d0e */ jal func0f11f438 -/* f121480: e7a80064 */ swc1 $f8,0x64($sp) -/* f121484: 27a404cc */ addiu $a0,$sp,0x4cc -/* f121488: 0fc47d0e */ jal func0f11f438 -/* f12148c: 8fa50588 */ lw $a1,0x588($sp) -/* f121490: 27a404e4 */ addiu $a0,$sp,0x4e4 -/* f121494: 0fc47d0e */ jal func0f11f438 -/* f121498: 8fa50584 */ lw $a1,0x584($sp) -/* f12149c: 27a404fc */ addiu $a0,$sp,0x4fc -/* f1214a0: 0fc47d0e */ jal func0f11f438 -/* f1214a4: 8fa50580 */ lw $a1,0x580($sp) -/* f1214a8: 100003b6 */ b .L0f122384 -/* f1214ac: 8fa906b0 */ lw $t1,0x6b0($sp) -/* f1214b0: c7a20644 */ lwc1 $f2,0x644($sp) -/* f1214b4: c7a40648 */ lwc1 $f4,0x648($sp) -/* f1214b8: c7ac064c */ lwc1 $f12,0x64c($sp) -/* f1214bc: 46181282 */ mul.s $f10,$f2,$f24 -/* f1214c0: c7ae0638 */ lwc1 $f14,0x638($sp) -/* f1214c4: c7b00640 */ lwc1 $f16,0x640($sp) -/* f1214c8: 46182182 */ mul.s $f6,$f4,$f24 -/* f1214cc: c7a4063c */ lwc1 $f4,0x63c($sp) -/* f1214d0: c7b205fc */ lwc1 $f18,0x5fc($sp) -/* f1214d4: 46186202 */ mul.s $f8,$f12,$f24 -/* f1214d8: e7aa04b4 */ swc1 $f10,0x4b4($sp) -/* f1214dc: c7b40604 */ lwc1 $f20,0x604($sp) -/* f1214e0: 46187282 */ mul.s $f10,$f14,$f24 -/* f1214e4: e7a604b8 */ swc1 $f6,0x4b8($sp) -/* f1214e8: c7b605f0 */ lwc1 $f22,0x5f0($sp) -/* f1214ec: 46182182 */ mul.s $f6,$f4,$f24 -/* f1214f0: e7a804bc */ swc1 $f8,0x4bc($sp) -/* f1214f4: c7a40600 */ lwc1 $f4,0x600($sp) -/* f1214f8: 46188202 */ mul.s $f8,$f16,$f24 -/* f1214fc: e7aa04cc */ swc1 $f10,0x4cc($sp) -/* f121500: 3c018008 */ lui $at,%hi(var8007db80) -/* f121504: 46189282 */ mul.s $f10,$f18,$f24 -/* f121508: e7a604d0 */ swc1 $f6,0x4d0($sp) -/* f12150c: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f121510: 46182182 */ mul.s $f6,$f4,$f24 -/* f121514: e7a804d4 */ swc1 $f8,0x4d4($sp) -/* f121518: c7a405f4 */ lwc1 $f4,0x5f4($sp) -/* f12151c: 4618a202 */ mul.s $f8,$f20,$f24 -/* f121520: e7aa04e4 */ swc1 $f10,0x4e4($sp) -/* f121524: 3c013f80 */ lui $at,0x3f80 -/* f121528: 4618b282 */ mul.s $f10,$f22,$f24 -/* f12152c: e7a604e8 */ swc1 $f6,0x4e8($sp) -/* f121530: 24110004 */ addiu $s1,$zero,0x4 -/* f121534: 46182182 */ mul.s $f6,$f4,$f24 -/* f121538: e7a804ec */ swc1 $f8,0x4ec($sp) -/* f12153c: c7a805f8 */ lwc1 $f8,0x5f8($sp) -/* f121540: 27a404b4 */ addiu $a0,$sp,0x4b4 -/* f121544: e7aa04fc */ swc1 $f10,0x4fc($sp) -/* f121548: 46184282 */ mul.s $f10,$f8,$f24 -/* f12154c: 8fa5058c */ lw $a1,0x58c($sp) -/* f121550: e7a60500 */ swc1 $f6,0x500($sp) -/* f121554: 461c1102 */ mul.s $f4,$f2,$f28 -/* f121558: 00000000 */ nop -/* f12155c: 461c6182 */ mul.s $f6,$f12,$f28 -/* f121560: e7aa0504 */ swc1 $f10,0x504($sp) -/* f121564: 461c7282 */ mul.s $f10,$f14,$f28 -/* f121568: e7a404c0 */ swc1 $f4,0x4c0($sp) -/* f12156c: 461c8102 */ mul.s $f4,$f16,$f28 -/* f121570: 46003200 */ add.s $f8,$f6,$f0 -/* f121574: e7aa04d8 */ swc1 $f10,0x4d8($sp) -/* f121578: e7a804c4 */ swc1 $f8,0x4c4($sp) -/* f12157c: 461c9202 */ mul.s $f8,$f18,$f28 -/* f121580: 46002180 */ add.s $f6,$f4,$f0 -/* f121584: 461ca282 */ mul.s $f10,$f20,$f28 -/* f121588: e7a604dc */ swc1 $f6,0x4dc($sp) -/* f12158c: 461cb182 */ mul.s $f6,$f22,$f28 -/* f121590: e7a804f0 */ swc1 $f8,0x4f0($sp) -/* f121594: c7a805f8 */ lwc1 $f8,0x5f8($sp) -/* f121598: 46005100 */ add.s $f4,$f10,$f0 -/* f12159c: 461c4282 */ mul.s $f10,$f8,$f28 -/* f1215a0: e7a60508 */ swc1 $f6,0x508($sp) -/* f1215a4: 44813000 */ mtc1 $at,$f6 -/* f1215a8: e7a404f4 */ swc1 $f4,0x4f4($sp) -/* f1215ac: 46183203 */ div.s $f8,$f6,$f24 -/* f1215b0: 46005100 */ add.s $f4,$f10,$f0 -/* f1215b4: e7a4050c */ swc1 $f4,0x50c($sp) -/* f1215b8: 0fc47d0e */ jal func0f11f438 -/* f1215bc: e7a80064 */ swc1 $f8,0x64($sp) -/* f1215c0: 27a404cc */ addiu $a0,$sp,0x4cc -/* f1215c4: 0fc47d0e */ jal func0f11f438 -/* f1215c8: 8fa50588 */ lw $a1,0x588($sp) -/* f1215cc: 27a404e4 */ addiu $a0,$sp,0x4e4 -/* f1215d0: 0fc47d0e */ jal func0f11f438 -/* f1215d4: 8fa50574 */ lw $a1,0x574($sp) -/* f1215d8: 27a404fc */ addiu $a0,$sp,0x4fc -/* f1215dc: 0fc47d0e */ jal func0f11f438 -/* f1215e0: 8fa50570 */ lw $a1,0x570($sp) -/* f1215e4: 10000367 */ b .L0f122384 -/* f1215e8: 8fa906b0 */ lw $t1,0x6b0($sp) -/* f1215ec: c7b60620 */ lwc1 $f22,0x620($sp) -/* f1215f0: c7a40624 */ lwc1 $f4,0x624($sp) -/* f1215f4: c7a20628 */ lwc1 $f2,0x628($sp) -/* f1215f8: 4618b282 */ mul.s $f10,$f22,$f24 -/* f1215fc: c7b2062c */ lwc1 $f18,0x62c($sp) -/* f121600: c7b40634 */ lwc1 $f20,0x634($sp) -/* f121604: 46182182 */ mul.s $f6,$f4,$f24 -/* f121608: c7a40630 */ lwc1 $f4,0x630($sp) -/* f12160c: c7b005f0 */ lwc1 $f16,0x5f0($sp) -/* f121610: 46181202 */ mul.s $f8,$f2,$f24 -/* f121614: e7aa04b4 */ swc1 $f10,0x4b4($sp) -/* f121618: c7ac05fc */ lwc1 $f12,0x5fc($sp) -/* f12161c: 46189282 */ mul.s $f10,$f18,$f24 -/* f121620: e7a604b8 */ swc1 $f6,0x4b8($sp) -/* f121624: c7ae0604 */ lwc1 $f14,0x604($sp) -/* f121628: 46182182 */ mul.s $f6,$f4,$f24 -/* f12162c: e7a804bc */ swc1 $f8,0x4bc($sp) -/* f121630: c7a405f4 */ lwc1 $f4,0x5f4($sp) -/* f121634: 4618a202 */ mul.s $f8,$f20,$f24 -/* f121638: e7aa04cc */ swc1 $f10,0x4cc($sp) -/* f12163c: 3c018008 */ lui $at,%hi(var8007db80) -/* f121640: 46188282 */ mul.s $f10,$f16,$f24 -/* f121644: e7a604d0 */ swc1 $f6,0x4d0($sp) -/* f121648: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f12164c: 46182182 */ mul.s $f6,$f4,$f24 -/* f121650: e7a804d4 */ swc1 $f8,0x4d4($sp) -/* f121654: c7a805f8 */ lwc1 $f8,0x5f8($sp) -/* f121658: 3c013f80 */ lui $at,0x3f80 -/* f12165c: e7aa04e4 */ swc1 $f10,0x4e4($sp) -/* f121660: 46184282 */ mul.s $f10,$f8,$f24 -/* f121664: 24110004 */ addiu $s1,$zero,0x4 -/* f121668: e7a604e8 */ swc1 $f6,0x4e8($sp) -/* f12166c: 46186102 */ mul.s $f4,$f12,$f24 -/* f121670: c7a60600 */ lwc1 $f6,0x600($sp) -/* f121674: 27a404b4 */ addiu $a0,$sp,0x4b4 -/* f121678: 8fa50580 */ lw $a1,0x580($sp) -/* f12167c: 46183202 */ mul.s $f8,$f6,$f24 -/* f121680: e7aa04ec */ swc1 $f10,0x4ec($sp) -/* f121684: 46187282 */ mul.s $f10,$f14,$f24 -/* f121688: e7a404fc */ swc1 $f4,0x4fc($sp) -/* f12168c: 461cb102 */ mul.s $f4,$f22,$f28 -/* f121690: e7a80500 */ swc1 $f8,0x500($sp) -/* f121694: 461c1182 */ mul.s $f6,$f2,$f28 -/* f121698: e7aa0504 */ swc1 $f10,0x504($sp) -/* f12169c: 461c9282 */ mul.s $f10,$f18,$f28 -/* f1216a0: e7a404c0 */ swc1 $f4,0x4c0($sp) -/* f1216a4: 461ca102 */ mul.s $f4,$f20,$f28 -/* f1216a8: 46003200 */ add.s $f8,$f6,$f0 -/* f1216ac: e7aa04d8 */ swc1 $f10,0x4d8($sp) -/* f1216b0: c7aa05f8 */ lwc1 $f10,0x5f8($sp) -/* f1216b4: e7a804c4 */ swc1 $f8,0x4c4($sp) -/* f1216b8: 461c8202 */ mul.s $f8,$f16,$f28 -/* f1216bc: 46002180 */ add.s $f6,$f4,$f0 -/* f1216c0: 461c5102 */ mul.s $f4,$f10,$f28 -/* f1216c4: e7a604dc */ swc1 $f6,0x4dc($sp) -/* f1216c8: e7a804f0 */ swc1 $f8,0x4f0($sp) -/* f1216cc: 461c6202 */ mul.s $f8,$f12,$f28 -/* f1216d0: 46002180 */ add.s $f6,$f4,$f0 -/* f1216d4: 461c7282 */ mul.s $f10,$f14,$f28 -/* f1216d8: e7a604f4 */ swc1 $f6,0x4f4($sp) -/* f1216dc: 44813000 */ mtc1 $at,$f6 -/* f1216e0: e7a80508 */ swc1 $f8,0x508($sp) -/* f1216e4: 46183203 */ div.s $f8,$f6,$f24 -/* f1216e8: 46005100 */ add.s $f4,$f10,$f0 -/* f1216ec: e7a4050c */ swc1 $f4,0x50c($sp) -/* f1216f0: 0fc47d0e */ jal func0f11f438 -/* f1216f4: e7a80064 */ swc1 $f8,0x64($sp) -/* f1216f8: 27a404cc */ addiu $a0,$sp,0x4cc -/* f1216fc: 0fc47d0e */ jal func0f11f438 -/* f121700: 8fa50584 */ lw $a1,0x584($sp) -/* f121704: 27a404e4 */ addiu $a0,$sp,0x4e4 -/* f121708: 0fc47d0e */ jal func0f11f438 -/* f12170c: 8fa50570 */ lw $a1,0x570($sp) -/* f121710: 27a404fc */ addiu $a0,$sp,0x4fc -/* f121714: 0fc47d0e */ jal func0f11f438 -/* f121718: 8fa50574 */ lw $a1,0x574($sp) -/* f12171c: 10000319 */ b .L0f122384 -/* f121720: 8fa906b0 */ lw $t1,0x6b0($sp) -/* f121724: c7ae0638 */ lwc1 $f14,0x638($sp) -/* f121728: c7a4063c */ lwc1 $f4,0x63c($sp) -/* f12172c: c7b00640 */ lwc1 $f16,0x640($sp) -/* f121730: 46187282 */ mul.s $f10,$f14,$f24 -/* f121734: c7b60620 */ lwc1 $f22,0x620($sp) -/* f121738: c7a20628 */ lwc1 $f2,0x628($sp) -/* f12173c: 46182182 */ mul.s $f6,$f4,$f24 -/* f121740: c7a40624 */ lwc1 $f4,0x624($sp) -/* f121744: c7b40614 */ lwc1 $f20,0x614($sp) -/* f121748: 46188202 */ mul.s $f8,$f16,$f24 -/* f12174c: e7aa04b4 */ swc1 $f10,0x4b4($sp) -/* f121750: c7ac0608 */ lwc1 $f12,0x608($sp) -/* f121754: 4618b282 */ mul.s $f10,$f22,$f24 -/* f121758: e7a604b8 */ swc1 $f6,0x4b8($sp) -/* f12175c: c7b20610 */ lwc1 $f18,0x610($sp) -/* f121760: 46182182 */ mul.s $f6,$f4,$f24 -/* f121764: e7a804bc */ swc1 $f8,0x4bc($sp) -/* f121768: c7a40618 */ lwc1 $f4,0x618($sp) -/* f12176c: 46181202 */ mul.s $f8,$f2,$f24 -/* f121770: e7aa04cc */ swc1 $f10,0x4cc($sp) -/* f121774: 3c018008 */ lui $at,%hi(var8007db80) -/* f121778: 4618a282 */ mul.s $f10,$f20,$f24 -/* f12177c: e7a604d0 */ swc1 $f6,0x4d0($sp) -/* f121780: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f121784: 46182182 */ mul.s $f6,$f4,$f24 -/* f121788: e7a804d4 */ swc1 $f8,0x4d4($sp) -/* f12178c: c7a8061c */ lwc1 $f8,0x61c($sp) -/* f121790: 3c013f80 */ lui $at,0x3f80 -/* f121794: e7aa04e4 */ swc1 $f10,0x4e4($sp) -/* f121798: 46184282 */ mul.s $f10,$f8,$f24 -/* f12179c: 24110004 */ addiu $s1,$zero,0x4 -/* f1217a0: e7a604e8 */ swc1 $f6,0x4e8($sp) -/* f1217a4: 46186102 */ mul.s $f4,$f12,$f24 -/* f1217a8: c7a6060c */ lwc1 $f6,0x60c($sp) -/* f1217ac: 27a404b4 */ addiu $a0,$sp,0x4b4 -/* f1217b0: 8fa50588 */ lw $a1,0x588($sp) -/* f1217b4: 46183202 */ mul.s $f8,$f6,$f24 -/* f1217b8: e7aa04ec */ swc1 $f10,0x4ec($sp) -/* f1217bc: 46189282 */ mul.s $f10,$f18,$f24 -/* f1217c0: e7a404fc */ swc1 $f4,0x4fc($sp) -/* f1217c4: 461c7102 */ mul.s $f4,$f14,$f28 -/* f1217c8: e7a80500 */ swc1 $f8,0x500($sp) -/* f1217cc: 461c8182 */ mul.s $f6,$f16,$f28 -/* f1217d0: e7aa0504 */ swc1 $f10,0x504($sp) -/* f1217d4: 461cb282 */ mul.s $f10,$f22,$f28 -/* f1217d8: e7a404c0 */ swc1 $f4,0x4c0($sp) -/* f1217dc: 461c1102 */ mul.s $f4,$f2,$f28 -/* f1217e0: 46003200 */ add.s $f8,$f6,$f0 -/* f1217e4: e7aa04d8 */ swc1 $f10,0x4d8($sp) -/* f1217e8: c7aa061c */ lwc1 $f10,0x61c($sp) -/* f1217ec: e7a804c4 */ swc1 $f8,0x4c4($sp) -/* f1217f0: 461ca202 */ mul.s $f8,$f20,$f28 -/* f1217f4: 46002180 */ add.s $f6,$f4,$f0 -/* f1217f8: 461c5102 */ mul.s $f4,$f10,$f28 -/* f1217fc: e7a604dc */ swc1 $f6,0x4dc($sp) -/* f121800: e7a804f0 */ swc1 $f8,0x4f0($sp) -/* f121804: 461c6202 */ mul.s $f8,$f12,$f28 -/* f121808: 46002180 */ add.s $f6,$f4,$f0 -/* f12180c: 461c9282 */ mul.s $f10,$f18,$f28 -/* f121810: e7a604f4 */ swc1 $f6,0x4f4($sp) -/* f121814: 44813000 */ mtc1 $at,$f6 -/* f121818: e7a80508 */ swc1 $f8,0x508($sp) -/* f12181c: 46183203 */ div.s $f8,$f6,$f24 -/* f121820: 46005100 */ add.s $f4,$f10,$f0 -/* f121824: e7a4050c */ swc1 $f4,0x50c($sp) -/* f121828: 0fc47d0e */ jal func0f11f438 -/* f12182c: e7a80064 */ swc1 $f8,0x64($sp) -/* f121830: 27a404cc */ addiu $a0,$sp,0x4cc -/* f121834: 0fc47d0e */ jal func0f11f438 -/* f121838: 8fa50580 */ lw $a1,0x580($sp) -/* f12183c: 27a404e4 */ addiu $a0,$sp,0x4e4 -/* f121840: 0fc47d0e */ jal func0f11f438 -/* f121844: 8fa5057c */ lw $a1,0x57c($sp) -/* f121848: 27a404fc */ addiu $a0,$sp,0x4fc -/* f12184c: 0fc47d0e */ jal func0f11f438 -/* f121850: 8fa50578 */ lw $a1,0x578($sp) -/* f121854: 100002cb */ b .L0f122384 -/* f121858: 8fa906b0 */ lw $t1,0x6b0($sp) -/* f12185c: c7b2062c */ lwc1 $f18,0x62c($sp) -/* f121860: c7a40630 */ lwc1 $f4,0x630($sp) -/* f121864: c7b40634 */ lwc1 $f20,0x634($sp) -/* f121868: 46189282 */ mul.s $f10,$f18,$f24 -/* f12186c: c7a20644 */ lwc1 $f2,0x644($sp) -/* f121870: c7ac064c */ lwc1 $f12,0x64c($sp) -/* f121874: 46182182 */ mul.s $f6,$f4,$f24 -/* f121878: c7a40648 */ lwc1 $f4,0x648($sp) -/* f12187c: c7b60608 */ lwc1 $f22,0x608($sp) -/* f121880: 4618a202 */ mul.s $f8,$f20,$f24 -/* f121884: e7aa04b4 */ swc1 $f10,0x4b4($sp) -/* f121888: c7ae0614 */ lwc1 $f14,0x614($sp) -/* f12188c: 46181282 */ mul.s $f10,$f2,$f24 -/* f121890: e7a604b8 */ swc1 $f6,0x4b8($sp) -/* f121894: c7b0061c */ lwc1 $f16,0x61c($sp) -/* f121898: 46182182 */ mul.s $f6,$f4,$f24 -/* f12189c: e7a804bc */ swc1 $f8,0x4bc($sp) -/* f1218a0: c7a4060c */ lwc1 $f4,0x60c($sp) -/* f1218a4: 46186202 */ mul.s $f8,$f12,$f24 -/* f1218a8: e7aa04cc */ swc1 $f10,0x4cc($sp) -/* f1218ac: 3c018008 */ lui $at,%hi(var8007db80) -/* f1218b0: 4618b282 */ mul.s $f10,$f22,$f24 -/* f1218b4: e7a604d0 */ swc1 $f6,0x4d0($sp) -/* f1218b8: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f1218bc: 46182182 */ mul.s $f6,$f4,$f24 -/* f1218c0: e7a804d4 */ swc1 $f8,0x4d4($sp) -/* f1218c4: c7a80610 */ lwc1 $f8,0x610($sp) -/* f1218c8: 3c013f80 */ lui $at,0x3f80 -/* f1218cc: e7aa04e4 */ swc1 $f10,0x4e4($sp) -/* f1218d0: 46184282 */ mul.s $f10,$f8,$f24 -/* f1218d4: 24110004 */ addiu $s1,$zero,0x4 -/* f1218d8: e7a604e8 */ swc1 $f6,0x4e8($sp) -/* f1218dc: 46187102 */ mul.s $f4,$f14,$f24 -/* f1218e0: c7a60618 */ lwc1 $f6,0x618($sp) -/* f1218e4: 27a404b4 */ addiu $a0,$sp,0x4b4 -/* f1218e8: 8fa50584 */ lw $a1,0x584($sp) -/* f1218ec: 46183202 */ mul.s $f8,$f6,$f24 -/* f1218f0: e7aa04ec */ swc1 $f10,0x4ec($sp) -/* f1218f4: 46188282 */ mul.s $f10,$f16,$f24 -/* f1218f8: e7a404fc */ swc1 $f4,0x4fc($sp) -/* f1218fc: 461c9102 */ mul.s $f4,$f18,$f28 -/* f121900: e7a80500 */ swc1 $f8,0x500($sp) -/* f121904: 461ca182 */ mul.s $f6,$f20,$f28 -/* f121908: e7aa0504 */ swc1 $f10,0x504($sp) -/* f12190c: 461c1282 */ mul.s $f10,$f2,$f28 -/* f121910: e7a404c0 */ swc1 $f4,0x4c0($sp) -/* f121914: 461c6102 */ mul.s $f4,$f12,$f28 -/* f121918: 46003200 */ add.s $f8,$f6,$f0 -/* f12191c: e7aa04d8 */ swc1 $f10,0x4d8($sp) -/* f121920: c7aa0610 */ lwc1 $f10,0x610($sp) -/* f121924: e7a804c4 */ swc1 $f8,0x4c4($sp) -/* f121928: 461cb202 */ mul.s $f8,$f22,$f28 -/* f12192c: 46002180 */ add.s $f6,$f4,$f0 -/* f121930: 461c5102 */ mul.s $f4,$f10,$f28 -/* f121934: e7a604dc */ swc1 $f6,0x4dc($sp) -/* f121938: e7a804f0 */ swc1 $f8,0x4f0($sp) -/* f12193c: 461c7202 */ mul.s $f8,$f14,$f28 -/* f121940: 46002180 */ add.s $f6,$f4,$f0 -/* f121944: 461c8282 */ mul.s $f10,$f16,$f28 -/* f121948: e7a604f4 */ swc1 $f6,0x4f4($sp) -/* f12194c: 44813000 */ mtc1 $at,$f6 -/* f121950: e7a80508 */ swc1 $f8,0x508($sp) -/* f121954: 46183203 */ div.s $f8,$f6,$f24 -/* f121958: 46005100 */ add.s $f4,$f10,$f0 -/* f12195c: e7a4050c */ swc1 $f4,0x50c($sp) -/* f121960: 0fc47d0e */ jal func0f11f438 -/* f121964: e7a80064 */ swc1 $f8,0x64($sp) -/* f121968: 27a404cc */ addiu $a0,$sp,0x4cc -/* f12196c: 0fc47d0e */ jal func0f11f438 -/* f121970: 8fa5058c */ lw $a1,0x58c($sp) -/* f121974: 27a404e4 */ addiu $a0,$sp,0x4e4 -/* f121978: 0fc47d0e */ jal func0f11f438 -/* f12197c: 8fa50578 */ lw $a1,0x578($sp) -/* f121980: 27a404fc */ addiu $a0,$sp,0x4fc -/* f121984: 0fc47d0e */ jal func0f11f438 -/* f121988: 8fa5057c */ lw $a1,0x57c($sp) -/* f12198c: 1000027d */ b .L0f122384 -/* f121990: 8fa906b0 */ lw $t1,0x6b0($sp) -/* f121994: c7b60620 */ lwc1 $f22,0x620($sp) -/* f121998: c7a40624 */ lwc1 $f4,0x624($sp) -/* f12199c: c7a20628 */ lwc1 $f2,0x628($sp) -/* f1219a0: 4618b282 */ mul.s $f10,$f22,$f24 -/* f1219a4: c7ae0608 */ lwc1 $f14,0x608($sp) -/* f1219a8: c7b20610 */ lwc1 $f18,0x610($sp) -/* f1219ac: 46182182 */ mul.s $f6,$f4,$f24 -/* f1219b0: c7a4060c */ lwc1 $f4,0x60c($sp) -/* f1219b4: c7b005f0 */ lwc1 $f16,0x5f0($sp) -/* f1219b8: 46181202 */ mul.s $f8,$f2,$f24 -/* f1219bc: e7aa04b4 */ swc1 $f10,0x4b4($sp) -/* f1219c0: c7ac05f8 */ lwc1 $f12,0x5f8($sp) -/* f1219c4: 46187282 */ mul.s $f10,$f14,$f24 -/* f1219c8: e7a604b8 */ swc1 $f6,0x4b8($sp) -/* f1219cc: 3c018008 */ lui $at,%hi(var8007db80) -/* f1219d0: 46182182 */ mul.s $f6,$f4,$f24 -/* f1219d4: e7a804bc */ swc1 $f8,0x4bc($sp) -/* f1219d8: c7a405f4 */ lwc1 $f4,0x5f4($sp) -/* f1219dc: 46189202 */ mul.s $f8,$f18,$f24 -/* f1219e0: e7aa04cc */ swc1 $f10,0x4cc($sp) -/* f1219e4: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f1219e8: 46188282 */ mul.s $f10,$f16,$f24 -/* f1219ec: e7a604d0 */ swc1 $f6,0x4d0($sp) -/* f1219f0: 3c013f80 */ lui $at,0x3f80 -/* f1219f4: 46182182 */ mul.s $f6,$f4,$f24 -/* f1219f8: e7a804d4 */ swc1 $f8,0x4d4($sp) -/* f1219fc: 24110003 */ addiu $s1,$zero,0x3 -/* f121a00: 46186202 */ mul.s $f8,$f12,$f24 -/* f121a04: e7aa04e4 */ swc1 $f10,0x4e4($sp) -/* f121a08: 27a404b4 */ addiu $a0,$sp,0x4b4 -/* f121a0c: 461cb282 */ mul.s $f10,$f22,$f28 -/* f121a10: e7a604e8 */ swc1 $f6,0x4e8($sp) -/* f121a14: 8fa50580 */ lw $a1,0x580($sp) -/* f121a18: 461c1102 */ mul.s $f4,$f2,$f28 -/* f121a1c: e7a804ec */ swc1 $f8,0x4ec($sp) -/* f121a20: 461c7202 */ mul.s $f8,$f14,$f28 -/* f121a24: e7aa04c0 */ swc1 $f10,0x4c0($sp) -/* f121a28: 461c9282 */ mul.s $f10,$f18,$f28 -/* f121a2c: 46002180 */ add.s $f6,$f4,$f0 -/* f121a30: e7a804d8 */ swc1 $f8,0x4d8($sp) -/* f121a34: e7a604c4 */ swc1 $f6,0x4c4($sp) -/* f121a38: 461c8182 */ mul.s $f6,$f16,$f28 -/* f121a3c: 46005100 */ add.s $f4,$f10,$f0 -/* f121a40: 461c6202 */ mul.s $f8,$f12,$f28 -/* f121a44: e7a404dc */ swc1 $f4,0x4dc($sp) -/* f121a48: 44812000 */ mtc1 $at,$f4 -/* f121a4c: e7a604f0 */ swc1 $f6,0x4f0($sp) -/* f121a50: 46182183 */ div.s $f6,$f4,$f24 -/* f121a54: 46004280 */ add.s $f10,$f8,$f0 -/* f121a58: e7aa04f4 */ swc1 $f10,0x4f4($sp) -/* f121a5c: 0fc47d0e */ jal func0f11f438 -/* f121a60: e7a60064 */ swc1 $f6,0x64($sp) -/* f121a64: 27a404cc */ addiu $a0,$sp,0x4cc -/* f121a68: 0fc47d0e */ jal func0f11f438 -/* f121a6c: 8fa50578 */ lw $a1,0x578($sp) -/* f121a70: 27a404e4 */ addiu $a0,$sp,0x4e4 -/* f121a74: 0fc47d0e */ jal func0f11f438 -/* f121a78: 8fa50570 */ lw $a1,0x570($sp) -/* f121a7c: 10000241 */ b .L0f122384 -/* f121a80: 8fa906b0 */ lw $t1,0x6b0($sp) -/* f121a84: c7b2062c */ lwc1 $f18,0x62c($sp) -/* f121a88: c7aa0630 */ lwc1 $f10,0x630($sp) -/* f121a8c: c7b40634 */ lwc1 $f20,0x634($sp) -/* f121a90: 46189202 */ mul.s $f8,$f18,$f24 -/* f121a94: c7ac05fc */ lwc1 $f12,0x5fc($sp) -/* f121a98: c7ae0604 */ lwc1 $f14,0x604($sp) -/* f121a9c: 46185102 */ mul.s $f4,$f10,$f24 -/* f121aa0: c7aa0600 */ lwc1 $f10,0x600($sp) -/* f121aa4: c7a20608 */ lwc1 $f2,0x608($sp) -/* f121aa8: 4618a182 */ mul.s $f6,$f20,$f24 -/* f121aac: e7a804b4 */ swc1 $f8,0x4b4($sp) -/* f121ab0: c7b00610 */ lwc1 $f16,0x610($sp) -/* f121ab4: 46186202 */ mul.s $f8,$f12,$f24 -/* f121ab8: e7a404b8 */ swc1 $f4,0x4b8($sp) -/* f121abc: 3c018008 */ lui $at,%hi(var8007db80) -/* f121ac0: 46185102 */ mul.s $f4,$f10,$f24 -/* f121ac4: e7a604bc */ swc1 $f6,0x4bc($sp) -/* f121ac8: c7aa060c */ lwc1 $f10,0x60c($sp) -/* f121acc: 46187182 */ mul.s $f6,$f14,$f24 -/* f121ad0: e7a804cc */ swc1 $f8,0x4cc($sp) -/* f121ad4: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f121ad8: 46181202 */ mul.s $f8,$f2,$f24 -/* f121adc: e7a404d0 */ swc1 $f4,0x4d0($sp) -/* f121ae0: 3c013f80 */ lui $at,0x3f80 -/* f121ae4: 46185102 */ mul.s $f4,$f10,$f24 -/* f121ae8: e7a604d4 */ swc1 $f6,0x4d4($sp) -/* f121aec: 24110003 */ addiu $s1,$zero,0x3 -/* f121af0: 46188182 */ mul.s $f6,$f16,$f24 -/* f121af4: e7a804e4 */ swc1 $f8,0x4e4($sp) -/* f121af8: 27a404b4 */ addiu $a0,$sp,0x4b4 -/* f121afc: 461c9202 */ mul.s $f8,$f18,$f28 -/* f121b00: e7a404e8 */ swc1 $f4,0x4e8($sp) -/* f121b04: 8fa50584 */ lw $a1,0x584($sp) -/* f121b08: 461ca282 */ mul.s $f10,$f20,$f28 -/* f121b0c: e7a604ec */ swc1 $f6,0x4ec($sp) -/* f121b10: 461c6182 */ mul.s $f6,$f12,$f28 -/* f121b14: e7a804c0 */ swc1 $f8,0x4c0($sp) -/* f121b18: 461c7202 */ mul.s $f8,$f14,$f28 -/* f121b1c: 46005100 */ add.s $f4,$f10,$f0 -/* f121b20: e7a604d8 */ swc1 $f6,0x4d8($sp) -/* f121b24: e7a404c4 */ swc1 $f4,0x4c4($sp) -/* f121b28: 461c1102 */ mul.s $f4,$f2,$f28 -/* f121b2c: 46004280 */ add.s $f10,$f8,$f0 -/* f121b30: 461c8182 */ mul.s $f6,$f16,$f28 -/* f121b34: e7aa04dc */ swc1 $f10,0x4dc($sp) -/* f121b38: 44815000 */ mtc1 $at,$f10 -/* f121b3c: e7a404f0 */ swc1 $f4,0x4f0($sp) -/* f121b40: 46185103 */ div.s $f4,$f10,$f24 -/* f121b44: 46003200 */ add.s $f8,$f6,$f0 -/* f121b48: e7a804f4 */ swc1 $f8,0x4f4($sp) -/* f121b4c: 0fc47d0e */ jal func0f11f438 -/* f121b50: e7a40064 */ swc1 $f4,0x64($sp) -/* f121b54: 27a404cc */ addiu $a0,$sp,0x4cc -/* f121b58: 0fc47d0e */ jal func0f11f438 -/* f121b5c: 8fa50574 */ lw $a1,0x574($sp) -/* f121b60: 27a404e4 */ addiu $a0,$sp,0x4e4 -/* f121b64: 0fc47d0e */ jal func0f11f438 -/* f121b68: 8fa50578 */ lw $a1,0x578($sp) -/* f121b6c: 10000205 */ b .L0f122384 -/* f121b70: 8fa906b0 */ lw $t1,0x6b0($sp) -/* f121b74: c7ae0638 */ lwc1 $f14,0x638($sp) -/* f121b78: c7a8063c */ lwc1 $f8,0x63c($sp) -/* f121b7c: c7b00640 */ lwc1 $f16,0x640($sp) -/* f121b80: 46187182 */ mul.s $f6,$f14,$f24 -/* f121b84: c7a205f0 */ lwc1 $f2,0x5f0($sp) -/* f121b88: c7ac05f8 */ lwc1 $f12,0x5f8($sp) -/* f121b8c: 46184282 */ mul.s $f10,$f8,$f24 -/* f121b90: c7a805f4 */ lwc1 $f8,0x5f4($sp) -/* f121b94: c7b40614 */ lwc1 $f20,0x614($sp) -/* f121b98: 46188102 */ mul.s $f4,$f16,$f24 -/* f121b9c: e7a604b4 */ swc1 $f6,0x4b4($sp) -/* f121ba0: c7b2061c */ lwc1 $f18,0x61c($sp) -/* f121ba4: 46181182 */ mul.s $f6,$f2,$f24 -/* f121ba8: e7aa04b8 */ swc1 $f10,0x4b8($sp) -/* f121bac: 3c018008 */ lui $at,%hi(var8007db80) -/* f121bb0: 46184282 */ mul.s $f10,$f8,$f24 -/* f121bb4: e7a404bc */ swc1 $f4,0x4bc($sp) -/* f121bb8: c7a80618 */ lwc1 $f8,0x618($sp) -/* f121bbc: 46186102 */ mul.s $f4,$f12,$f24 -/* f121bc0: e7a604cc */ swc1 $f6,0x4cc($sp) -/* f121bc4: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f121bc8: 4618a182 */ mul.s $f6,$f20,$f24 -/* f121bcc: e7aa04d0 */ swc1 $f10,0x4d0($sp) -/* f121bd0: 3c013f80 */ lui $at,0x3f80 -/* f121bd4: 46184282 */ mul.s $f10,$f8,$f24 -/* f121bd8: e7a404d4 */ swc1 $f4,0x4d4($sp) -/* f121bdc: 24110003 */ addiu $s1,$zero,0x3 -/* f121be0: 46189102 */ mul.s $f4,$f18,$f24 -/* f121be4: e7a604e4 */ swc1 $f6,0x4e4($sp) -/* f121be8: 27a404b4 */ addiu $a0,$sp,0x4b4 -/* f121bec: 461c7182 */ mul.s $f6,$f14,$f28 -/* f121bf0: e7aa04e8 */ swc1 $f10,0x4e8($sp) -/* f121bf4: 8fa50588 */ lw $a1,0x588($sp) -/* f121bf8: 461c8202 */ mul.s $f8,$f16,$f28 -/* f121bfc: e7a404ec */ swc1 $f4,0x4ec($sp) -/* f121c00: 461c1102 */ mul.s $f4,$f2,$f28 -/* f121c04: e7a604c0 */ swc1 $f6,0x4c0($sp) -/* f121c08: 461c6182 */ mul.s $f6,$f12,$f28 -/* f121c0c: 46004280 */ add.s $f10,$f8,$f0 -/* f121c10: e7a404d8 */ swc1 $f4,0x4d8($sp) -/* f121c14: e7aa04c4 */ swc1 $f10,0x4c4($sp) -/* f121c18: 461ca282 */ mul.s $f10,$f20,$f28 -/* f121c1c: 46003200 */ add.s $f8,$f6,$f0 -/* f121c20: 461c9102 */ mul.s $f4,$f18,$f28 -/* f121c24: e7a804dc */ swc1 $f8,0x4dc($sp) -/* f121c28: 44814000 */ mtc1 $at,$f8 -/* f121c2c: e7aa04f0 */ swc1 $f10,0x4f0($sp) -/* f121c30: 46184283 */ div.s $f10,$f8,$f24 -/* f121c34: 46002180 */ add.s $f6,$f4,$f0 -/* f121c38: e7a604f4 */ swc1 $f6,0x4f4($sp) -/* f121c3c: 0fc47d0e */ jal func0f11f438 -/* f121c40: e7aa0064 */ swc1 $f10,0x64($sp) -/* f121c44: 27a404cc */ addiu $a0,$sp,0x4cc -/* f121c48: 0fc47d0e */ jal func0f11f438 -/* f121c4c: 8fa50570 */ lw $a1,0x570($sp) -/* f121c50: 27a404e4 */ addiu $a0,$sp,0x4e4 -/* f121c54: 0fc47d0e */ jal func0f11f438 -/* f121c58: 8fa5057c */ lw $a1,0x57c($sp) -/* f121c5c: 100001c9 */ b .L0f122384 -/* f121c60: 8fa906b0 */ lw $t1,0x6b0($sp) -/* f121c64: c7a20644 */ lwc1 $f2,0x644($sp) -/* f121c68: c7a60648 */ lwc1 $f6,0x648($sp) -/* f121c6c: c7ac064c */ lwc1 $f12,0x64c($sp) -/* f121c70: 46181102 */ mul.s $f4,$f2,$f24 -/* f121c74: c7b20614 */ lwc1 $f18,0x614($sp) -/* f121c78: c7b4061c */ lwc1 $f20,0x61c($sp) -/* f121c7c: 46183202 */ mul.s $f8,$f6,$f24 -/* f121c80: c7a60618 */ lwc1 $f6,0x618($sp) -/* f121c84: c7ae05fc */ lwc1 $f14,0x5fc($sp) -/* f121c88: 46186282 */ mul.s $f10,$f12,$f24 -/* f121c8c: e7a404b4 */ swc1 $f4,0x4b4($sp) -/* f121c90: c7b00604 */ lwc1 $f16,0x604($sp) -/* f121c94: 46189102 */ mul.s $f4,$f18,$f24 -/* f121c98: e7a804b8 */ swc1 $f8,0x4b8($sp) -/* f121c9c: 3c018008 */ lui $at,%hi(var8007db80) -/* f121ca0: 46183202 */ mul.s $f8,$f6,$f24 -/* f121ca4: e7aa04bc */ swc1 $f10,0x4bc($sp) -/* f121ca8: c7a60600 */ lwc1 $f6,0x600($sp) -/* f121cac: 4618a282 */ mul.s $f10,$f20,$f24 -/* f121cb0: e7a404cc */ swc1 $f4,0x4cc($sp) -/* f121cb4: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f121cb8: 46187102 */ mul.s $f4,$f14,$f24 -/* f121cbc: e7a804d0 */ swc1 $f8,0x4d0($sp) -/* f121cc0: 3c013f80 */ lui $at,0x3f80 -/* f121cc4: 46183202 */ mul.s $f8,$f6,$f24 -/* f121cc8: e7aa04d4 */ swc1 $f10,0x4d4($sp) -/* f121ccc: 24110003 */ addiu $s1,$zero,0x3 -/* f121cd0: 46188282 */ mul.s $f10,$f16,$f24 -/* f121cd4: e7a404e4 */ swc1 $f4,0x4e4($sp) -/* f121cd8: 27a404b4 */ addiu $a0,$sp,0x4b4 -/* f121cdc: 461c1102 */ mul.s $f4,$f2,$f28 -/* f121ce0: e7a804e8 */ swc1 $f8,0x4e8($sp) -/* f121ce4: 8fa5058c */ lw $a1,0x58c($sp) -/* f121ce8: 461c6182 */ mul.s $f6,$f12,$f28 -/* f121cec: e7aa04ec */ swc1 $f10,0x4ec($sp) -/* f121cf0: 461c9282 */ mul.s $f10,$f18,$f28 -/* f121cf4: e7a404c0 */ swc1 $f4,0x4c0($sp) -/* f121cf8: 461ca102 */ mul.s $f4,$f20,$f28 -/* f121cfc: 46003200 */ add.s $f8,$f6,$f0 -/* f121d00: e7aa04d8 */ swc1 $f10,0x4d8($sp) -/* f121d04: e7a804c4 */ swc1 $f8,0x4c4($sp) -/* f121d08: 461c7202 */ mul.s $f8,$f14,$f28 -/* f121d0c: 46002180 */ add.s $f6,$f4,$f0 -/* f121d10: 461c8282 */ mul.s $f10,$f16,$f28 -/* f121d14: e7a604dc */ swc1 $f6,0x4dc($sp) -/* f121d18: 44813000 */ mtc1 $at,$f6 -/* f121d1c: e7a804f0 */ swc1 $f8,0x4f0($sp) -/* f121d20: 46183203 */ div.s $f8,$f6,$f24 -/* f121d24: 46005100 */ add.s $f4,$f10,$f0 -/* f121d28: e7a404f4 */ swc1 $f4,0x4f4($sp) -/* f121d2c: 0fc47d0e */ jal func0f11f438 -/* f121d30: e7a80064 */ swc1 $f8,0x64($sp) -/* f121d34: 27a404cc */ addiu $a0,$sp,0x4cc -/* f121d38: 0fc47d0e */ jal func0f11f438 -/* f121d3c: 8fa5057c */ lw $a1,0x57c($sp) -/* f121d40: 27a404e4 */ addiu $a0,$sp,0x4e4 -/* f121d44: 0fc47d0e */ jal func0f11f438 -/* f121d48: 8fa50574 */ lw $a1,0x574($sp) -/* f121d4c: 1000018d */ b .L0f122384 -/* f121d50: 8fa906b0 */ lw $t1,0x6b0($sp) -/* f121d54: c7b2062c */ lwc1 $f18,0x62c($sp) -/* f121d58: c7a40630 */ lwc1 $f4,0x630($sp) -/* f121d5c: c7b40634 */ lwc1 $f20,0x634($sp) -/* f121d60: 46189282 */ mul.s $f10,$f18,$f24 -/* f121d64: c7a20644 */ lwc1 $f2,0x644($sp) -/* f121d68: c7ac064c */ lwc1 $f12,0x64c($sp) -/* f121d6c: 46182182 */ mul.s $f6,$f4,$f24 -/* f121d70: c7a40648 */ lwc1 $f4,0x648($sp) -/* f121d74: c7ae0638 */ lwc1 $f14,0x638($sp) -/* f121d78: 4618a202 */ mul.s $f8,$f20,$f24 -/* f121d7c: e7aa04b4 */ swc1 $f10,0x4b4($sp) -/* f121d80: c7b00640 */ lwc1 $f16,0x640($sp) -/* f121d84: 46181282 */ mul.s $f10,$f2,$f24 -/* f121d88: e7a604b8 */ swc1 $f6,0x4b8($sp) -/* f121d8c: c7b605f0 */ lwc1 $f22,0x5f0($sp) -/* f121d90: 46182182 */ mul.s $f6,$f4,$f24 -/* f121d94: e7a804bc */ swc1 $f8,0x4bc($sp) -/* f121d98: c7a4063c */ lwc1 $f4,0x63c($sp) -/* f121d9c: 46186202 */ mul.s $f8,$f12,$f24 -/* f121da0: e7aa04cc */ swc1 $f10,0x4cc($sp) -/* f121da4: 3c018008 */ lui $at,%hi(var8007db80) -/* f121da8: 46187282 */ mul.s $f10,$f14,$f24 -/* f121dac: e7a604d0 */ swc1 $f6,0x4d0($sp) -/* f121db0: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f121db4: 46182182 */ mul.s $f6,$f4,$f24 -/* f121db8: e7a804d4 */ swc1 $f8,0x4d4($sp) -/* f121dbc: c7a405f4 */ lwc1 $f4,0x5f4($sp) -/* f121dc0: 46188202 */ mul.s $f8,$f16,$f24 -/* f121dc4: e7aa04e4 */ swc1 $f10,0x4e4($sp) -/* f121dc8: 3c013f80 */ lui $at,0x3f80 -/* f121dcc: 4618b282 */ mul.s $f10,$f22,$f24 -/* f121dd0: e7a604e8 */ swc1 $f6,0x4e8($sp) -/* f121dd4: 24110005 */ addiu $s1,$zero,0x5 -/* f121dd8: 46182182 */ mul.s $f6,$f4,$f24 -/* f121ddc: e7a804ec */ swc1 $f8,0x4ec($sp) -/* f121de0: c7a805f8 */ lwc1 $f8,0x5f8($sp) -/* f121de4: c7a40608 */ lwc1 $f4,0x608($sp) -/* f121de8: e7aa04fc */ swc1 $f10,0x4fc($sp) -/* f121dec: 46184282 */ mul.s $f10,$f8,$f24 -/* f121df0: c7a8060c */ lwc1 $f8,0x60c($sp) -/* f121df4: e7a60500 */ swc1 $f6,0x500($sp) -/* f121df8: 46182182 */ mul.s $f6,$f4,$f24 -/* f121dfc: c7a40610 */ lwc1 $f4,0x610($sp) -/* f121e00: 27a404b4 */ addiu $a0,$sp,0x4b4 -/* f121e04: 8fa50584 */ lw $a1,0x584($sp) -/* f121e08: e7aa0504 */ swc1 $f10,0x504($sp) -/* f121e0c: 46184282 */ mul.s $f10,$f8,$f24 -/* f121e10: e7a60514 */ swc1 $f6,0x514($sp) -/* f121e14: 46182182 */ mul.s $f6,$f4,$f24 -/* f121e18: 00000000 */ nop -/* f121e1c: 461c9202 */ mul.s $f8,$f18,$f28 -/* f121e20: e7aa0518 */ swc1 $f10,0x518($sp) -/* f121e24: 461ca282 */ mul.s $f10,$f20,$f28 -/* f121e28: e7a6051c */ swc1 $f6,0x51c($sp) -/* f121e2c: 461c1182 */ mul.s $f6,$f2,$f28 -/* f121e30: e7a804c0 */ swc1 $f8,0x4c0($sp) -/* f121e34: 461c6202 */ mul.s $f8,$f12,$f28 -/* f121e38: 46005100 */ add.s $f4,$f10,$f0 -/* f121e3c: e7a604d8 */ swc1 $f6,0x4d8($sp) -/* f121e40: e7a404c4 */ swc1 $f4,0x4c4($sp) -/* f121e44: 461c7102 */ mul.s $f4,$f14,$f28 -/* f121e48: 46004280 */ add.s $f10,$f8,$f0 -/* f121e4c: 461c8182 */ mul.s $f6,$f16,$f28 -/* f121e50: e7aa04dc */ swc1 $f10,0x4dc($sp) -/* f121e54: 461cb282 */ mul.s $f10,$f22,$f28 -/* f121e58: e7a404f0 */ swc1 $f4,0x4f0($sp) -/* f121e5c: c7a405f8 */ lwc1 $f4,0x5f8($sp) -/* f121e60: 46003200 */ add.s $f8,$f6,$f0 -/* f121e64: 461c2182 */ mul.s $f6,$f4,$f28 -/* f121e68: e7aa0508 */ swc1 $f10,0x508($sp) -/* f121e6c: c7aa0608 */ lwc1 $f10,0x608($sp) -/* f121e70: e7a804f4 */ swc1 $f8,0x4f4($sp) -/* f121e74: 461c5102 */ mul.s $f4,$f10,$f28 -/* f121e78: 46003200 */ add.s $f8,$f6,$f0 -/* f121e7c: c7a60610 */ lwc1 $f6,0x610($sp) -/* f121e80: e7a8050c */ swc1 $f8,0x50c($sp) -/* f121e84: e7a40520 */ swc1 $f4,0x520($sp) -/* f121e88: 44812000 */ mtc1 $at,$f4 -/* f121e8c: 461c3202 */ mul.s $f8,$f6,$f28 -/* f121e90: 46182183 */ div.s $f6,$f4,$f24 -/* f121e94: 46004280 */ add.s $f10,$f8,$f0 -/* f121e98: e7aa0524 */ swc1 $f10,0x524($sp) -/* f121e9c: 0fc47d0e */ jal func0f11f438 -/* f121ea0: e7a60064 */ swc1 $f6,0x64($sp) -/* f121ea4: 27a404cc */ addiu $a0,$sp,0x4cc -/* f121ea8: 0fc47d0e */ jal func0f11f438 -/* f121eac: 8fa5058c */ lw $a1,0x58c($sp) -/* f121eb0: 27a404e4 */ addiu $a0,$sp,0x4e4 -/* f121eb4: 0fc47d0e */ jal func0f11f438 -/* f121eb8: 8fa50588 */ lw $a1,0x588($sp) -/* f121ebc: 27a404fc */ addiu $a0,$sp,0x4fc -/* f121ec0: 0fc47d0e */ jal func0f11f438 -/* f121ec4: 8fa50570 */ lw $a1,0x570($sp) -/* f121ec8: 27a40514 */ addiu $a0,$sp,0x514 -/* f121ecc: 0fc47d0e */ jal func0f11f438 -/* f121ed0: 8fa50578 */ lw $a1,0x578($sp) -/* f121ed4: 1000012b */ b .L0f122384 -/* f121ed8: 8fa906b0 */ lw $t1,0x6b0($sp) -/* f121edc: c7a20644 */ lwc1 $f2,0x644($sp) -/* f121ee0: c7aa0648 */ lwc1 $f10,0x648($sp) -/* f121ee4: c7ac064c */ lwc1 $f12,0x64c($sp) -/* f121ee8: 46181202 */ mul.s $f8,$f2,$f24 -/* f121eec: c7ae0638 */ lwc1 $f14,0x638($sp) -/* f121ef0: c7b00640 */ lwc1 $f16,0x640($sp) -/* f121ef4: 46185102 */ mul.s $f4,$f10,$f24 -/* f121ef8: c7aa063c */ lwc1 $f10,0x63c($sp) -/* f121efc: c7b60620 */ lwc1 $f22,0x620($sp) -/* f121f00: 46186182 */ mul.s $f6,$f12,$f24 -/* f121f04: e7a804b4 */ swc1 $f8,0x4b4($sp) -/* f121f08: c7b205fc */ lwc1 $f18,0x5fc($sp) -/* f121f0c: 46187202 */ mul.s $f8,$f14,$f24 -/* f121f10: e7a404b8 */ swc1 $f4,0x4b8($sp) -/* f121f14: c7b40604 */ lwc1 $f20,0x604($sp) -/* f121f18: 46185102 */ mul.s $f4,$f10,$f24 -/* f121f1c: e7a604bc */ swc1 $f6,0x4bc($sp) -/* f121f20: c7aa0624 */ lwc1 $f10,0x624($sp) -/* f121f24: 46188182 */ mul.s $f6,$f16,$f24 -/* f121f28: e7a804cc */ swc1 $f8,0x4cc($sp) -/* f121f2c: 3c018008 */ lui $at,%hi(var8007db80) -/* f121f30: 4618b202 */ mul.s $f8,$f22,$f24 -/* f121f34: e7a404d0 */ swc1 $f4,0x4d0($sp) -/* f121f38: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f121f3c: 46185102 */ mul.s $f4,$f10,$f24 -/* f121f40: e7a604d4 */ swc1 $f6,0x4d4($sp) -/* f121f44: c7a60628 */ lwc1 $f6,0x628($sp) -/* f121f48: c7aa0608 */ lwc1 $f10,0x608($sp) -/* f121f4c: e7a804e4 */ swc1 $f8,0x4e4($sp) -/* f121f50: 46183202 */ mul.s $f8,$f6,$f24 -/* f121f54: c7a6060c */ lwc1 $f6,0x60c($sp) -/* f121f58: e7a404e8 */ swc1 $f4,0x4e8($sp) -/* f121f5c: 46185102 */ mul.s $f4,$f10,$f24 -/* f121f60: c7aa0610 */ lwc1 $f10,0x610($sp) -/* f121f64: 3c013f80 */ lui $at,0x3f80 -/* f121f68: 24110005 */ addiu $s1,$zero,0x5 -/* f121f6c: e7a804ec */ swc1 $f8,0x4ec($sp) -/* f121f70: 46183202 */ mul.s $f8,$f6,$f24 -/* f121f74: 27a404b4 */ addiu $a0,$sp,0x4b4 -/* f121f78: e7a404fc */ swc1 $f4,0x4fc($sp) -/* f121f7c: 46185102 */ mul.s $f4,$f10,$f24 -/* f121f80: 8fa5058c */ lw $a1,0x58c($sp) -/* f121f84: 46189182 */ mul.s $f6,$f18,$f24 -/* f121f88: e7a80500 */ swc1 $f8,0x500($sp) -/* f121f8c: c7a80600 */ lwc1 $f8,0x600($sp) -/* f121f90: e7a40504 */ swc1 $f4,0x504($sp) -/* f121f94: 46184282 */ mul.s $f10,$f8,$f24 -/* f121f98: e7a60514 */ swc1 $f6,0x514($sp) -/* f121f9c: 4618a102 */ mul.s $f4,$f20,$f24 -/* f121fa0: 00000000 */ nop -/* f121fa4: 461c1182 */ mul.s $f6,$f2,$f28 -/* f121fa8: e7aa0518 */ swc1 $f10,0x518($sp) -/* f121fac: 461c6202 */ mul.s $f8,$f12,$f28 -/* f121fb0: e7a4051c */ swc1 $f4,0x51c($sp) -/* f121fb4: 461c7102 */ mul.s $f4,$f14,$f28 -/* f121fb8: e7a604c0 */ swc1 $f6,0x4c0($sp) -/* f121fbc: 461c8182 */ mul.s $f6,$f16,$f28 -/* f121fc0: 46004280 */ add.s $f10,$f8,$f0 -/* f121fc4: e7a404d8 */ swc1 $f4,0x4d8($sp) -/* f121fc8: c7a40628 */ lwc1 $f4,0x628($sp) -/* f121fcc: e7aa04c4 */ swc1 $f10,0x4c4($sp) -/* f121fd0: 461cb282 */ mul.s $f10,$f22,$f28 -/* f121fd4: 46003200 */ add.s $f8,$f6,$f0 -/* f121fd8: 461c2182 */ mul.s $f6,$f4,$f28 -/* f121fdc: e7a804dc */ swc1 $f8,0x4dc($sp) -/* f121fe0: e7aa04f0 */ swc1 $f10,0x4f0($sp) -/* f121fe4: c7aa0608 */ lwc1 $f10,0x608($sp) -/* f121fe8: 46003200 */ add.s $f8,$f6,$f0 -/* f121fec: 461c5102 */ mul.s $f4,$f10,$f28 -/* f121ff0: c7a60610 */ lwc1 $f6,0x610($sp) -/* f121ff4: e7a804f4 */ swc1 $f8,0x4f4($sp) -/* f121ff8: 461c3202 */ mul.s $f8,$f6,$f28 -/* f121ffc: e7a40508 */ swc1 $f4,0x508($sp) -/* f122000: 461c9102 */ mul.s $f4,$f18,$f28 -/* f122004: 46004280 */ add.s $f10,$f8,$f0 -/* f122008: 461ca182 */ mul.s $f6,$f20,$f28 -/* f12200c: e7a40520 */ swc1 $f4,0x520($sp) -/* f122010: e7aa050c */ swc1 $f10,0x50c($sp) -/* f122014: 44815000 */ mtc1 $at,$f10 -/* f122018: 00000000 */ nop -/* f12201c: 46185103 */ div.s $f4,$f10,$f24 -/* f122020: 46003200 */ add.s $f8,$f6,$f0 -/* f122024: e7a80524 */ swc1 $f8,0x524($sp) -/* f122028: 0fc47d0e */ jal func0f11f438 -/* f12202c: e7a40064 */ swc1 $f4,0x64($sp) -/* f122030: 27a404cc */ addiu $a0,$sp,0x4cc -/* f122034: 0fc47d0e */ jal func0f11f438 -/* f122038: 8fa50588 */ lw $a1,0x588($sp) -/* f12203c: 27a404e4 */ addiu $a0,$sp,0x4e4 -/* f122040: 0fc47d0e */ jal func0f11f438 -/* f122044: 8fa50580 */ lw $a1,0x580($sp) -/* f122048: 27a404fc */ addiu $a0,$sp,0x4fc -/* f12204c: 0fc47d0e */ jal func0f11f438 -/* f122050: 8fa50578 */ lw $a1,0x578($sp) -/* f122054: 27a40514 */ addiu $a0,$sp,0x514 -/* f122058: 0fc47d0e */ jal func0f11f438 -/* f12205c: 8fa50574 */ lw $a1,0x574($sp) -/* f122060: 100000c8 */ b .L0f122384 -/* f122064: 8fa906b0 */ lw $t1,0x6b0($sp) -/* f122068: c7b60620 */ lwc1 $f22,0x620($sp) -/* f12206c: c7a80624 */ lwc1 $f8,0x624($sp) -/* f122070: c7a40628 */ lwc1 $f4,0x628($sp) -/* f122074: 4618b182 */ mul.s $f6,$f22,$f24 -/* f122078: c7b2062c */ lwc1 $f18,0x62c($sp) -/* f12207c: c7b40634 */ lwc1 $f20,0x634($sp) -/* f122080: 46184282 */ mul.s $f10,$f8,$f24 -/* f122084: c7a20644 */ lwc1 $f2,0x644($sp) -/* f122088: c7ac064c */ lwc1 $f12,0x64c($sp) -/* f12208c: c7ae0614 */ lwc1 $f14,0x614($sp) -/* f122090: e7a604b4 */ swc1 $f6,0x4b4($sp) -/* f122094: 46182182 */ mul.s $f6,$f4,$f24 -/* f122098: c7b0061c */ lwc1 $f16,0x61c($sp) -/* f12209c: e7aa04b8 */ swc1 $f10,0x4b8($sp) -/* f1220a0: 46189202 */ mul.s $f8,$f18,$f24 -/* f1220a4: c7aa0630 */ lwc1 $f10,0x630($sp) -/* f1220a8: 3c018008 */ lui $at,%hi(var8007db80) -/* f1220ac: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f1220b0: e7a604bc */ swc1 $f6,0x4bc($sp) -/* f1220b4: 46185182 */ mul.s $f6,$f10,$f24 -/* f1220b8: 3c013f80 */ lui $at,0x3f80 -/* f1220bc: e7a804cc */ swc1 $f8,0x4cc($sp) -/* f1220c0: 4618a202 */ mul.s $f8,$f20,$f24 -/* f1220c4: 24110005 */ addiu $s1,$zero,0x5 -/* f1220c8: 27a404b4 */ addiu $a0,$sp,0x4b4 -/* f1220cc: 46181282 */ mul.s $f10,$f2,$f24 -/* f1220d0: e7a604d0 */ swc1 $f6,0x4d0($sp) -/* f1220d4: c7a60648 */ lwc1 $f6,0x648($sp) -/* f1220d8: 8fa50580 */ lw $a1,0x580($sp) -/* f1220dc: e7a804d4 */ swc1 $f8,0x4d4($sp) -/* f1220e0: 46183202 */ mul.s $f8,$f6,$f24 -/* f1220e4: e7aa04e4 */ swc1 $f10,0x4e4($sp) -/* f1220e8: 46186282 */ mul.s $f10,$f12,$f24 -/* f1220ec: e7a804e8 */ swc1 $f8,0x4e8($sp) -/* f1220f0: 46187182 */ mul.s $f6,$f14,$f24 -/* f1220f4: c7a80618 */ lwc1 $f8,0x618($sp) -/* f1220f8: e7aa04ec */ swc1 $f10,0x4ec($sp) -/* f1220fc: 46184282 */ mul.s $f10,$f8,$f24 -/* f122100: c7a805f0 */ lwc1 $f8,0x5f0($sp) -/* f122104: e7a604fc */ swc1 $f6,0x4fc($sp) -/* f122108: 46188182 */ mul.s $f6,$f16,$f24 -/* f12210c: e7aa0500 */ swc1 $f10,0x500($sp) -/* f122110: 46184282 */ mul.s $f10,$f8,$f24 -/* f122114: e7a60504 */ swc1 $f6,0x504($sp) -/* f122118: c7a605f4 */ lwc1 $f6,0x5f4($sp) -/* f12211c: 46183202 */ mul.s $f8,$f6,$f24 -/* f122120: e7aa0514 */ swc1 $f10,0x514($sp) -/* f122124: c7aa05f8 */ lwc1 $f10,0x5f8($sp) -/* f122128: 46185182 */ mul.s $f6,$f10,$f24 -/* f12212c: e7a80518 */ swc1 $f8,0x518($sp) -/* f122130: 461cb202 */ mul.s $f8,$f22,$f28 -/* f122134: 00000000 */ nop -/* f122138: 461c2282 */ mul.s $f10,$f4,$f28 -/* f12213c: e7a6051c */ swc1 $f6,0x51c($sp) -/* f122140: e7a804c0 */ swc1 $f8,0x4c0($sp) -/* f122144: 461c9202 */ mul.s $f8,$f18,$f28 -/* f122148: 46005180 */ add.s $f6,$f10,$f0 -/* f12214c: 461ca102 */ mul.s $f4,$f20,$f28 -/* f122150: e7a604c4 */ swc1 $f6,0x4c4($sp) -/* f122154: 461c1182 */ mul.s $f6,$f2,$f28 -/* f122158: e7a804d8 */ swc1 $f8,0x4d8($sp) -/* f12215c: 461c6202 */ mul.s $f8,$f12,$f28 -/* f122160: 46002280 */ add.s $f10,$f4,$f0 -/* f122164: e7a604f0 */ swc1 $f6,0x4f0($sp) -/* f122168: e7aa04dc */ swc1 $f10,0x4dc($sp) -/* f12216c: 461c7282 */ mul.s $f10,$f14,$f28 -/* f122170: 46004100 */ add.s $f4,$f8,$f0 -/* f122174: 461c8182 */ mul.s $f6,$f16,$f28 -/* f122178: e7a404f4 */ swc1 $f4,0x4f4($sp) -/* f12217c: c7a405f0 */ lwc1 $f4,0x5f0($sp) -/* f122180: e7aa0508 */ swc1 $f10,0x508($sp) -/* f122184: 461c2282 */ mul.s $f10,$f4,$f28 -/* f122188: 46003200 */ add.s $f8,$f6,$f0 -/* f12218c: c7a605f8 */ lwc1 $f6,0x5f8($sp) -/* f122190: e7a8050c */ swc1 $f8,0x50c($sp) -/* f122194: 461c3202 */ mul.s $f8,$f6,$f28 -/* f122198: e7aa0520 */ swc1 $f10,0x520($sp) -/* f12219c: 44815000 */ mtc1 $at,$f10 -/* f1221a0: 00000000 */ nop -/* f1221a4: 46185183 */ div.s $f6,$f10,$f24 -/* f1221a8: 46004100 */ add.s $f4,$f8,$f0 -/* f1221ac: e7a40524 */ swc1 $f4,0x524($sp) -/* f1221b0: 0fc47d0e */ jal func0f11f438 -/* f1221b4: e7a60064 */ swc1 $f6,0x64($sp) -/* f1221b8: 27a404cc */ addiu $a0,$sp,0x4cc -/* f1221bc: 0fc47d0e */ jal func0f11f438 -/* f1221c0: 8fa50584 */ lw $a1,0x584($sp) -/* f1221c4: 27a404e4 */ addiu $a0,$sp,0x4e4 -/* f1221c8: 0fc47d0e */ jal func0f11f438 -/* f1221cc: 8fa5058c */ lw $a1,0x58c($sp) -/* f1221d0: 27a404fc */ addiu $a0,$sp,0x4fc -/* f1221d4: 0fc47d0e */ jal func0f11f438 -/* f1221d8: 8fa5057c */ lw $a1,0x57c($sp) -/* f1221dc: 27a40514 */ addiu $a0,$sp,0x514 -/* f1221e0: 0fc47d0e */ jal func0f11f438 -/* f1221e4: 8fa50570 */ lw $a1,0x570($sp) -/* f1221e8: 10000066 */ b .L0f122384 -/* f1221ec: 8fa906b0 */ lw $t1,0x6b0($sp) -/* f1221f0: c7ae0638 */ lwc1 $f14,0x638($sp) -/* f1221f4: c7a4063c */ lwc1 $f4,0x63c($sp) -/* f1221f8: c7b00640 */ lwc1 $f16,0x640($sp) -/* f1221fc: 46187202 */ mul.s $f8,$f14,$f24 -/* f122200: c7b60620 */ lwc1 $f22,0x620($sp) -/* f122204: c7a20628 */ lwc1 $f2,0x628($sp) -/* f122208: 46182282 */ mul.s $f10,$f4,$f24 -/* f12220c: c7a40624 */ lwc1 $f4,0x624($sp) -/* f122210: c7b2062c */ lwc1 $f18,0x62c($sp) -/* f122214: 46188182 */ mul.s $f6,$f16,$f24 -/* f122218: e7a804b4 */ swc1 $f8,0x4b4($sp) -/* f12221c: c7b40634 */ lwc1 $f20,0x634($sp) -/* f122220: 4618b202 */ mul.s $f8,$f22,$f24 -/* f122224: e7aa04b8 */ swc1 $f10,0x4b8($sp) -/* f122228: c7ac05fc */ lwc1 $f12,0x5fc($sp) -/* f12222c: 46182282 */ mul.s $f10,$f4,$f24 -/* f122230: e7a604bc */ swc1 $f6,0x4bc($sp) -/* f122234: c7a40630 */ lwc1 $f4,0x630($sp) -/* f122238: 46181182 */ mul.s $f6,$f2,$f24 -/* f12223c: e7a804cc */ swc1 $f8,0x4cc($sp) -/* f122240: 3c018008 */ lui $at,%hi(var8007db80) -/* f122244: 46189202 */ mul.s $f8,$f18,$f24 -/* f122248: e7aa04d0 */ swc1 $f10,0x4d0($sp) -/* f12224c: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) -/* f122250: 46182282 */ mul.s $f10,$f4,$f24 -/* f122254: e7a604d4 */ swc1 $f6,0x4d4($sp) -/* f122258: c7a40600 */ lwc1 $f4,0x600($sp) -/* f12225c: 4618a182 */ mul.s $f6,$f20,$f24 -/* f122260: e7a804e4 */ swc1 $f8,0x4e4($sp) -/* f122264: 3c013f80 */ lui $at,0x3f80 -/* f122268: 46186202 */ mul.s $f8,$f12,$f24 -/* f12226c: e7aa04e8 */ swc1 $f10,0x4e8($sp) -/* f122270: 24110005 */ addiu $s1,$zero,0x5 -/* f122274: 46182282 */ mul.s $f10,$f4,$f24 -/* f122278: e7a604ec */ swc1 $f6,0x4ec($sp) -/* f12227c: c7a60604 */ lwc1 $f6,0x604($sp) -/* f122280: c7a40614 */ lwc1 $f4,0x614($sp) -/* f122284: e7a804fc */ swc1 $f8,0x4fc($sp) -/* f122288: 46183202 */ mul.s $f8,$f6,$f24 -/* f12228c: c7a60618 */ lwc1 $f6,0x618($sp) -/* f122290: e7aa0500 */ swc1 $f10,0x500($sp) -/* f122294: 46182282 */ mul.s $f10,$f4,$f24 -/* f122298: c7a4061c */ lwc1 $f4,0x61c($sp) -/* f12229c: 27a404b4 */ addiu $a0,$sp,0x4b4 -/* f1222a0: 8fa50588 */ lw $a1,0x588($sp) -/* f1222a4: e7a80504 */ swc1 $f8,0x504($sp) -/* f1222a8: 46183202 */ mul.s $f8,$f6,$f24 -/* f1222ac: e7aa0514 */ swc1 $f10,0x514($sp) -/* f1222b0: 46182282 */ mul.s $f10,$f4,$f24 -/* f1222b4: 00000000 */ nop -/* f1222b8: 461c7182 */ mul.s $f6,$f14,$f28 -/* f1222bc: e7a80518 */ swc1 $f8,0x518($sp) -/* f1222c0: 461c8202 */ mul.s $f8,$f16,$f28 -/* f1222c4: e7aa051c */ swc1 $f10,0x51c($sp) -/* f1222c8: 461cb282 */ mul.s $f10,$f22,$f28 -/* f1222cc: e7a604c0 */ swc1 $f6,0x4c0($sp) -/* f1222d0: 461c1182 */ mul.s $f6,$f2,$f28 -/* f1222d4: 46004100 */ add.s $f4,$f8,$f0 -/* f1222d8: e7aa04d8 */ swc1 $f10,0x4d8($sp) -/* f1222dc: e7a404c4 */ swc1 $f4,0x4c4($sp) -/* f1222e0: 461c9102 */ mul.s $f4,$f18,$f28 -/* f1222e4: 46003200 */ add.s $f8,$f6,$f0 -/* f1222e8: 461ca282 */ mul.s $f10,$f20,$f28 -/* f1222ec: e7a804dc */ swc1 $f8,0x4dc($sp) -/* f1222f0: 461c6202 */ mul.s $f8,$f12,$f28 -/* f1222f4: e7a404f0 */ swc1 $f4,0x4f0($sp) -/* f1222f8: c7a40604 */ lwc1 $f4,0x604($sp) -/* f1222fc: 46005180 */ add.s $f6,$f10,$f0 -/* f122300: 461c2282 */ mul.s $f10,$f4,$f28 -/* f122304: e7a80508 */ swc1 $f8,0x508($sp) -/* f122308: c7a80614 */ lwc1 $f8,0x614($sp) -/* f12230c: e7a604f4 */ swc1 $f6,0x4f4($sp) -/* f122310: 461c4102 */ mul.s $f4,$f8,$f28 -/* f122314: 46005180 */ add.s $f6,$f10,$f0 -/* f122318: c7aa061c */ lwc1 $f10,0x61c($sp) -/* f12231c: e7a6050c */ swc1 $f6,0x50c($sp) -/* f122320: e7a40520 */ swc1 $f4,0x520($sp) -/* f122324: 44812000 */ mtc1 $at,$f4 -/* f122328: 461c5182 */ mul.s $f6,$f10,$f28 -/* f12232c: 46182283 */ div.s $f10,$f4,$f24 -/* f122330: 46003200 */ add.s $f8,$f6,$f0 -/* f122334: e7a80524 */ swc1 $f8,0x524($sp) -/* f122338: 0fc47d0e */ jal func0f11f438 -/* f12233c: e7aa0064 */ swc1 $f10,0x64($sp) -/* f122340: 27a404cc */ addiu $a0,$sp,0x4cc -/* f122344: 0fc47d0e */ jal func0f11f438 -/* f122348: 8fa50580 */ lw $a1,0x580($sp) -/* f12234c: 27a404e4 */ addiu $a0,$sp,0x4e4 -/* f122350: 0fc47d0e */ jal func0f11f438 -/* f122354: 8fa50584 */ lw $a1,0x584($sp) -/* f122358: 27a404fc */ addiu $a0,$sp,0x4fc -/* f12235c: 0fc47d0e */ jal func0f11f438 -/* f122360: 8fa50574 */ lw $a1,0x574($sp) -/* f122364: 27a40514 */ addiu $a0,$sp,0x514 -/* f122368: 0fc47d0e */ jal func0f11f438 -/* f12236c: 8fa5057c */ lw $a1,0x57c($sp) -/* f122370: 10000004 */ b .L0f122384 -/* f122374: 8fa906b0 */ lw $t1,0x6b0($sp) -.L0f122378: -/* f122378: 1000014b */ b .L0f1228a8 -/* f12237c: 00601025 */ or $v0,$v1,$zero -/* f122380: 8fa906b0 */ lw $t1,0x6b0($sp) -.L0f122384: -/* f122384: 3c0be700 */ lui $t3,0xe700 -/* f122388: 3c18800b */ lui $t8,%hi(g_TexWaterConfigs) -/* f12238c: 252c0008 */ addiu $t4,$t1,0x8 -/* f122390: afac06b0 */ sw $t4,0x6b0($sp) -/* f122394: ad200004 */ sw $zero,0x4($t1) -/* f122398: ad2b0000 */ sw $t3,0x0($t1) -/* f12239c: 8fb9042c */ lw $t9,0x42c($sp) -/* f1223a0: 8f18b598 */ lw $t8,%lo(g_TexWaterConfigs)($t8) -/* f1223a4: 240a0002 */ addiu $t2,$zero,0x2 -/* f1223a8: 872d0018 */ lh $t5,0x18($t9) -/* f1223ac: 240e0001 */ addiu $t6,$zero,0x1 -/* f1223b0: afae0014 */ sw $t6,0x14($sp) -/* f1223b4: 000d7880 */ sll $t7,$t5,0x2 -/* f1223b8: 01ed7823 */ subu $t7,$t7,$t5 -/* f1223bc: 000f7880 */ sll $t7,$t7,0x2 -/* f1223c0: afa00018 */ sw $zero,0x18($sp) -/* f1223c4: afaa0010 */ sw $t2,0x10($sp) -/* f1223c8: 27a406b0 */ addiu $a0,$sp,0x6b0 -/* f1223cc: 24060001 */ addiu $a2,$zero,0x1 -/* f1223d0: 00003825 */ or $a3,$zero,$zero -/* f1223d4: 0fc2ce70 */ jal func0f0b39c0 -/* f1223d8: 01f82821 */ addu $a1,$t7,$t8 -/* f1223dc: 8fa206b0 */ lw $v0,0x6b0($sp) -/* f1223e0: 3c0bfb00 */ lui $t3,0xfb00 -/* f1223e4: 244c0008 */ addiu $t4,$v0,0x8 -/* f1223e8: afac06b0 */ sw $t4,0x6b0($sp) -/* f1223ec: ac4b0000 */ sw $t3,0x0($v0) -/* f1223f0: 8fb9042c */ lw $t9,0x42c($sp) -/* f1223f4: 3c0b55fe */ lui $t3,0x55fe -/* f1223f8: 356bf97c */ ori $t3,$t3,0xf97c -/* f1223fc: 932f0008 */ lbu $t7,0x8($t9) -/* f122400: 932e0009 */ lbu $t6,0x9($t9) -/* f122404: 932d000a */ lbu $t5,0xa($t9) -/* f122408: 000fc600 */ sll $t8,$t7,0x18 -/* f12240c: 000e4c00 */ sll $t1,$t6,0x10 -/* f122410: 03096025 */ or $t4,$t8,$t1 -/* f122414: 000d7a00 */ sll $t7,$t5,0x8 -/* f122418: 018f5025 */ or $t2,$t4,$t7 -/* f12241c: 354e00ff */ ori $t6,$t2,0xff -/* f122420: ac4e0004 */ sw $t6,0x4($v0) -/* f122424: 8fb806b0 */ lw $t8,0x6b0($sp) -/* f122428: 3c19fc40 */ lui $t9,0xfc40 -/* f12242c: 3739fe81 */ ori $t9,$t9,0xfe81 -/* f122430: 27090008 */ addiu $t1,$t8,0x8 -/* f122434: afa906b0 */ sw $t1,0x6b0($sp) -/* f122438: af0b0004 */ sw $t3,0x4($t8) -/* f12243c: 0fc2d5c6 */ jal currentPlayerGetUnk1754 -/* f122440: af190000 */ sw $t9,0x0($t8) -/* f122444: 0fc2d5be */ jal currentPlayerGetMatrix1740 -/* f122448: 00408025 */ or $s0,$v0,$zero -/* f12244c: 02002025 */ or $a0,$s0,$zero -/* f122450: 00402825 */ or $a1,$v0,$zero -/* f122454: 0c005680 */ jal mtx4MultMtx4 -/* f122458: 27a601ec */ addiu $a2,$sp,0x1ec -/* f12245c: c7a60064 */ lwc1 $f6,0x64($sp) -/* f122460: 3c04800a */ lui $a0,%hi(var800a33a8) -/* f122464: 248433a8 */ addiu $a0,$a0,%lo(var800a33a8) -/* f122468: 44053000 */ mfc1 $a1,$f6 -/* f12246c: 44063000 */ mfc1 $a2,$f6 -/* f122470: 44073000 */ mfc1 $a3,$f6 -/* f122474: 0c014024 */ jal guScaleF -/* f122478: 00000000 */ nop -/* f12247c: 3c05800a */ lui $a1,%hi(var800a33a8) -/* f122480: 24a533a8 */ addiu $a1,$a1,%lo(var800a33a8) -/* f122484: 27a401ec */ addiu $a0,$sp,0x1ec -/* f122488: 0c005680 */ jal mtx4MultMtx4 -/* f12248c: 27a601ac */ addiu $a2,$sp,0x1ac -/* f122490: 1a200036 */ blez $s1,.L0f12256c -/* f122494: afa00090 */ sw $zero,0x90($sp) -/* f122498: 27a404b4 */ addiu $a0,$sp,0x4b4 -/* f12249c: afa40064 */ sw $a0,0x64($sp) -/* f1224a0: 27b00094 */ addiu $s0,$sp,0x94 -.L0f1224a4: -/* f1224a4: 3c017f1b */ lui $at,%hi(var7f1b50c8) -/* f1224a8: c42050c8 */ lwc1 $f0,%lo(var7f1b50c8)($at) -/* f1224ac: 8fa40064 */ lw $a0,0x64($sp) -/* f1224b0: 27a501ac */ addiu $a1,$sp,0x1ac -/* f1224b4: 44070000 */ mfc1 $a3,$f0 -/* f1224b8: 24060082 */ addiu $a2,$zero,0x82 -/* f1224bc: afb00014 */ sw $s0,0x14($sp) -/* f1224c0: 0fc48a34 */ jal func0f1228d0 -/* f1224c4: e7a00010 */ swc1 $f0,0x10($sp) -/* f1224c8: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f1224cc: 00000000 */ nop -/* f1224d0: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f1224d4: 46000506 */ mov.s $f20,$f0 -/* f1224d8: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f1224dc: 46000586 */ mov.s $f22,$f0 -/* f1224e0: 46160200 */ add.s $f8,$f0,$f22 -/* f1224e4: 461aa382 */ mul.s $f14,$f20,$f26 -/* f1224e8: 3c013f80 */ lui $at,0x3f80 -/* f1224ec: 44815000 */ mtc1 $at,$f10 -/* f1224f0: 461a4102 */ mul.s $f4,$f8,$f26 -/* f1224f4: c60c0028 */ lwc1 $f12,0x28($s0) -/* f1224f8: 460a2181 */ sub.s $f6,$f4,$f10 -/* f1224fc: 44063000 */ mfc1 $a2,$f6 -/* f122500: 0fc47cf4 */ jal func0f11f3d0 -/* f122504: 00000000 */ nop -/* f122508: 0fc2d602 */ jal currentPlayerGetScreenTop -/* f12250c: e6000028 */ swc1 $f0,0x28($s0) -/* f122510: 0fc2d602 */ jal currentPlayerGetScreenTop -/* f122514: 46000506 */ mov.s $f20,$f0 -/* f122518: 0fc2d5fa */ jal currentPlayerGetScreenHeight -/* f12251c: 46000586 */ mov.s $f22,$f0 -/* f122520: 46160200 */ add.s $f8,$f0,$f22 -/* f122524: 461aa382 */ mul.s $f14,$f20,$f26 -/* f122528: 3c013f80 */ lui $at,0x3f80 -/* f12252c: 44815000 */ mtc1 $at,$f10 -/* f122530: 461a4102 */ mul.s $f4,$f8,$f26 -/* f122534: c60c002c */ lwc1 $f12,0x2c($s0) -/* f122538: 460a2181 */ sub.s $f6,$f4,$f10 -/* f12253c: 44063000 */ mfc1 $a2,$f6 -/* f122540: 0fc47cf4 */ jal func0f11f3d0 -/* f122544: 00000000 */ nop -/* f122548: 8fa20090 */ lw $v0,0x90($sp) -/* f12254c: e600002c */ swc1 $f0,0x2c($s0) -/* f122550: 8fad0064 */ lw $t5,0x64($sp) -/* f122554: 24420001 */ addiu $v0,$v0,0x1 -/* f122558: afa20090 */ sw $v0,0x90($sp) -/* f12255c: 25ac0018 */ addiu $t4,$t5,0x18 -/* f122560: afac0064 */ sw $t4,0x64($sp) -/* f122564: 1451ffcf */ bne $v0,$s1,.L0f1224a4 -/* f122568: 26100038 */ addiu $s0,$s0,0x38 -.L0f12256c: -/* f12256c: 24010004 */ addiu $at,$zero,0x4 -/* f122570: 16210099 */ bne $s1,$at,.L0f1227d8 -/* f122574: 8faf0068 */ lw $t7,0x68($sp) -/* f122578: 2401000c */ addiu $at,$zero,0xc -/* f12257c: 15e1007e */ bne $t7,$at,.L0f122778 -/* f122580: 27b00094 */ addiu $s0,$sp,0x94 -/* f122584: c7a80548 */ lwc1 $f8,0x548($sp) -/* f122588: c7a4054c */ lwc1 $f4,0x54c($sp) -/* f12258c: c7a600f8 */ lwc1 $f6,0xf8($sp) -/* f122590: 4604403c */ c.lt.s $f8,$f4 -/* f122594: c7a800c0 */ lwc1 $f8,0xc0($sp) -/* f122598: 4502003d */ bc1fl .L0f122690 -/* f12259c: 461a4100 */ add.s $f4,$f8,$f26 -/* f1225a0: 461a3200 */ add.s $f8,$f6,$f26 -/* f1225a4: c7aa0168 */ lwc1 $f10,0x168($sp) -/* f1225a8: 27a50094 */ addiu $a1,$sp,0x94 -/* f1225ac: 8fa406b0 */ lw $a0,0x6b0($sp) -/* f1225b0: 460a403e */ c.le.s $f8,$f10 -/* f1225b4: 27a600cc */ addiu $a2,$sp,0xcc -/* f1225b8: 27a70104 */ addiu $a3,$sp,0x104 -/* f1225bc: 3c014302 */ lui $at,0x4302 -/* f1225c0: 4500002c */ bc1f .L0f122674 -/* f1225c4: 240a0001 */ addiu $t2,$zero,0x1 -/* f1225c8: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f1225cc: 00000000 */ nop -/* f1225d0: 461a0102 */ mul.s $f4,$f0,$f26 -/* f1225d4: 0fc2d602 */ jal currentPlayerGetScreenTop -/* f1225d8: e7a400bc */ swc1 $f4,0xbc($sp) -/* f1225dc: 461a0182 */ mul.s $f6,$f0,$f26 -/* f1225e0: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f1225e4: e7a600c0 */ swc1 $f6,0xc0($sp) -/* f1225e8: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f1225ec: 46000506 */ mov.s $f20,$f0 -/* f1225f0: 46140280 */ add.s $f10,$f0,$f20 -/* f1225f4: 3c013f80 */ lui $at,0x3f80 -/* f1225f8: 44812000 */ mtc1 $at,$f4 -/* f1225fc: 461a5202 */ mul.s $f8,$f10,$f26 -/* f122600: 46044181 */ sub.s $f6,$f8,$f4 -/* f122604: 0fc2d602 */ jal currentPlayerGetScreenTop -/* f122608: e7a600f4 */ swc1 $f6,0xf4($sp) -/* f12260c: 461a0282 */ mul.s $f10,$f0,$f26 -/* f122610: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f122614: e7aa00f8 */ swc1 $f10,0xf8($sp) -/* f122618: 461a0202 */ mul.s $f8,$f0,$f26 -/* f12261c: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f122620: e7a8012c */ swc1 $f8,0x12c($sp) -/* f122624: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f122628: 46000506 */ mov.s $f20,$f0 -/* f12262c: 46140100 */ add.s $f4,$f0,$f20 -/* f122630: 3c013f80 */ lui $at,0x3f80 -/* f122634: 44815000 */ mtc1 $at,$f10 -/* f122638: 3c014302 */ lui $at,0x4302 -/* f12263c: 461a2182 */ mul.s $f6,$f4,$f26 -/* f122640: 44812000 */ mtc1 $at,$f4 -/* f122644: 27b1013c */ addiu $s1,$sp,0x13c -/* f122648: 27a50094 */ addiu $a1,$sp,0x94 -/* f12264c: afb10010 */ sw $s1,0x10($sp) -/* f122650: 8fa406b0 */ lw $a0,0x6b0($sp) -/* f122654: 27a600cc */ addiu $a2,$sp,0xcc -/* f122658: 460a3201 */ sub.s $f8,$f6,$f10 -/* f12265c: 27a70104 */ addiu $a3,$sp,0x104 -/* f122660: e7a40014 */ swc1 $f4,0x14($sp) -/* f122664: 0fc48ff5 */ jal func0f123fd4 -/* f122668: e7a80164 */ swc1 $f8,0x164($sp) -/* f12266c: 1000008d */ b .L0f1228a4 -/* f122670: afa206b0 */ sw $v0,0x6b0($sp) -.L0f122674: -/* f122674: 44813000 */ mtc1 $at,$f6 -/* f122678: afaa0014 */ sw $t2,0x14($sp) -/* f12267c: 0fc48b53 */ jal func0f122d4c -/* f122680: e7a60010 */ swc1 $f6,0x10($sp) -/* f122684: 10000087 */ b .L0f1228a4 -/* f122688: afa206b0 */ sw $v0,0x6b0($sp) -/* f12268c: 461a4100 */ add.s $f4,$f8,$f26 -.L0f122690: -/* f122690: c7aa0130 */ lwc1 $f10,0x130($sp) -/* f122694: 27a60094 */ addiu $a2,$sp,0x94 -/* f122698: 27a7013c */ addiu $a3,$sp,0x13c -/* f12269c: 460a203e */ c.le.s $f4,$f10 -/* f1226a0: 8fa406b0 */ lw $a0,0x6b0($sp) -/* f1226a4: 27a500cc */ addiu $a1,$sp,0xcc -/* f1226a8: 3c014302 */ lui $at,0x4302 -/* f1226ac: 4500002c */ bc1f .L0f122760 -/* f1226b0: 24180001 */ addiu $t8,$zero,0x1 -/* f1226b4: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f1226b8: 00000000 */ nop -/* f1226bc: 461a0182 */ mul.s $f6,$f0,$f26 -/* f1226c0: 0fc2d602 */ jal currentPlayerGetScreenTop -/* f1226c4: e7a600bc */ swc1 $f6,0xbc($sp) -/* f1226c8: 461a0202 */ mul.s $f8,$f0,$f26 -/* f1226cc: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f1226d0: e7a800c0 */ swc1 $f8,0xc0($sp) -/* f1226d4: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f1226d8: 46000506 */ mov.s $f20,$f0 -/* f1226dc: 46140280 */ add.s $f10,$f0,$f20 -/* f1226e0: 3c013f80 */ lui $at,0x3f80 -/* f1226e4: 44813000 */ mtc1 $at,$f6 -/* f1226e8: 461a5102 */ mul.s $f4,$f10,$f26 -/* f1226ec: 46062201 */ sub.s $f8,$f4,$f6 -/* f1226f0: 0fc2d602 */ jal currentPlayerGetScreenTop -/* f1226f4: e7a800f4 */ swc1 $f8,0xf4($sp) -/* f1226f8: 461a0282 */ mul.s $f10,$f0,$f26 -/* f1226fc: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f122700: e7aa00f8 */ swc1 $f10,0xf8($sp) -/* f122704: 461a0102 */ mul.s $f4,$f0,$f26 -/* f122708: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f12270c: e7a4012c */ swc1 $f4,0x12c($sp) -/* f122710: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f122714: 46000506 */ mov.s $f20,$f0 -/* f122718: 46140180 */ add.s $f6,$f0,$f20 -/* f12271c: 3c013f80 */ lui $at,0x3f80 -/* f122720: 44815000 */ mtc1 $at,$f10 -/* f122724: 3c014302 */ lui $at,0x4302 -/* f122728: 461a3202 */ mul.s $f8,$f6,$f26 -/* f12272c: 44813000 */ mtc1 $at,$f6 -/* f122730: 27ae0104 */ addiu $t6,$sp,0x104 -/* f122734: 27a60094 */ addiu $a2,$sp,0x94 -/* f122738: 27a7013c */ addiu $a3,$sp,0x13c -/* f12273c: afae0010 */ sw $t6,0x10($sp) -/* f122740: 8fa406b0 */ lw $a0,0x6b0($sp) -/* f122744: 460a4101 */ sub.s $f4,$f8,$f10 -/* f122748: 27a500cc */ addiu $a1,$sp,0xcc -/* f12274c: e7a60014 */ swc1 $f6,0x14($sp) -/* f122750: 0fc48ff5 */ jal func0f123fd4 -/* f122754: e7a40164 */ swc1 $f4,0x164($sp) -/* f122758: 10000052 */ b .L0f1228a4 -/* f12275c: afa206b0 */ sw $v0,0x6b0($sp) -.L0f122760: -/* f122760: 44814000 */ mtc1 $at,$f8 -/* f122764: afb80014 */ sw $t8,0x14($sp) -/* f122768: 0fc48b53 */ jal func0f122d4c -/* f12276c: e7a80010 */ swc1 $f8,0x10($sp) -/* f122770: 1000004c */ b .L0f1228a4 -/* f122774: afa206b0 */ sw $v0,0x6b0($sp) -.L0f122778: -/* f122778: 3c014302 */ lui $at,0x4302 -/* f12277c: 44815000 */ mtc1 $at,$f10 -/* f122780: 27b1013c */ addiu $s1,$sp,0x13c -/* f122784: 24090001 */ addiu $t1,$zero,0x1 -/* f122788: afa90014 */ sw $t1,0x14($sp) -/* f12278c: 02203825 */ or $a3,$s1,$zero -/* f122790: 8fa406b0 */ lw $a0,0x6b0($sp) -/* f122794: 02002825 */ or $a1,$s0,$zero -/* f122798: 27a600cc */ addiu $a2,$sp,0xcc -/* f12279c: 0fc48b53 */ jal func0f122d4c -/* f1227a0: e7aa0010 */ swc1 $f10,0x10($sp) -/* f1227a4: 3c014302 */ lui $at,0x4302 -/* f1227a8: 44812000 */ mtc1 $at,$f4 -/* f1227ac: 24190001 */ addiu $t9,$zero,0x1 -/* f1227b0: afa206b0 */ sw $v0,0x6b0($sp) -/* f1227b4: afb90014 */ sw $t9,0x14($sp) -/* f1227b8: 00402025 */ or $a0,$v0,$zero -/* f1227bc: 02202825 */ or $a1,$s1,$zero -/* f1227c0: 27a60104 */ addiu $a2,$sp,0x104 -/* f1227c4: 02003825 */ or $a3,$s0,$zero -/* f1227c8: 0fc48b53 */ jal func0f122d4c -/* f1227cc: e7a40010 */ swc1 $f4,0x10($sp) -/* f1227d0: 10000034 */ b .L0f1228a4 -/* f1227d4: afa206b0 */ sw $v0,0x6b0($sp) -.L0f1227d8: -/* f1227d8: 24010005 */ addiu $at,$zero,0x5 -/* f1227dc: 16210024 */ bne $s1,$at,.L0f122870 -/* f1227e0: 27b00094 */ addiu $s0,$sp,0x94 -/* f1227e4: 3c014302 */ lui $at,0x4302 -/* f1227e8: 44813000 */ mtc1 $at,$f6 -/* f1227ec: 240b0001 */ addiu $t3,$zero,0x1 -/* f1227f0: afab0014 */ sw $t3,0x14($sp) -/* f1227f4: 8fa406b0 */ lw $a0,0x6b0($sp) -/* f1227f8: 02002825 */ or $a1,$s0,$zero -/* f1227fc: 27a600cc */ addiu $a2,$sp,0xcc -/* f122800: 27a70104 */ addiu $a3,$sp,0x104 -/* f122804: 0fc48b53 */ jal func0f122d4c -/* f122808: e7a60010 */ swc1 $f6,0x10($sp) -/* f12280c: 3c014302 */ lui $at,0x4302 -/* f122810: 44814000 */ mtc1 $at,$f8 -/* f122814: 27b1013c */ addiu $s1,$sp,0x13c -/* f122818: 240d0001 */ addiu $t5,$zero,0x1 -/* f12281c: afa206b0 */ sw $v0,0x6b0($sp) -/* f122820: afad0014 */ sw $t5,0x14($sp) -/* f122824: 02203825 */ or $a3,$s1,$zero -/* f122828: 00402025 */ or $a0,$v0,$zero -/* f12282c: 02002825 */ or $a1,$s0,$zero -/* f122830: 27a60104 */ addiu $a2,$sp,0x104 -/* f122834: 0fc48b53 */ jal func0f122d4c -/* f122838: e7a80010 */ swc1 $f8,0x10($sp) -/* f12283c: 3c014302 */ lui $at,0x4302 -/* f122840: 44815000 */ mtc1 $at,$f10 -/* f122844: 240c0001 */ addiu $t4,$zero,0x1 -/* f122848: afa206b0 */ sw $v0,0x6b0($sp) -/* f12284c: afac0014 */ sw $t4,0x14($sp) -/* f122850: 00402025 */ or $a0,$v0,$zero -/* f122854: 02002825 */ or $a1,$s0,$zero -/* f122858: 02203025 */ or $a2,$s1,$zero -/* f12285c: 27a70174 */ addiu $a3,$sp,0x174 -/* f122860: 0fc48b53 */ jal func0f122d4c -/* f122864: e7aa0010 */ swc1 $f10,0x10($sp) -/* f122868: 1000000e */ b .L0f1228a4 -/* f12286c: afa206b0 */ sw $v0,0x6b0($sp) -.L0f122870: -/* f122870: 24010003 */ addiu $at,$zero,0x3 -/* f122874: 1621000b */ bne $s1,$at,.L0f1228a4 -/* f122878: 27a50094 */ addiu $a1,$sp,0x94 -/* f12287c: 3c014302 */ lui $at,0x4302 -/* f122880: 44812000 */ mtc1 $at,$f4 -/* f122884: 240f0001 */ addiu $t7,$zero,0x1 -/* f122888: afaf0014 */ sw $t7,0x14($sp) -/* f12288c: 8fa406b0 */ lw $a0,0x6b0($sp) -/* f122890: 27a600cc */ addiu $a2,$sp,0xcc -/* f122894: 27a70104 */ addiu $a3,$sp,0x104 -/* f122898: 0fc48b53 */ jal func0f122d4c -/* f12289c: e7a40010 */ swc1 $f4,0x10($sp) -/* f1228a0: afa206b0 */ sw $v0,0x6b0($sp) -.L0f1228a4: -/* f1228a4: 8fa206b0 */ lw $v0,0x6b0($sp) -.L0f1228a8: -/* f1228a8: 8fbf0054 */ lw $ra,0x54($sp) -/* f1228ac: d7b40020 */ ldc1 $f20,0x20($sp) -/* f1228b0: d7b60028 */ ldc1 $f22,0x28($sp) -/* f1228b4: d7b80030 */ ldc1 $f24,0x30($sp) -/* f1228b8: d7ba0038 */ ldc1 $f26,0x38($sp) -/* f1228bc: d7bc0040 */ ldc1 $f28,0x40($sp) -/* f1228c0: 8fb0004c */ lw $s0,0x4c($sp) -/* f1228c4: 8fb10050 */ lw $s1,0x50($sp) -/* f1228c8: 03e00008 */ jr $ra -/* f1228cc: 27bd06b0 */ addiu $sp,$sp,0x6b0 -); - -GLOBAL_ASM( -glabel func0f1228d0 -.late_rodata -glabel var7f1b50cc -.word 0x46fffe00 -glabel var7f1b50d0 -.word 0x46fffe00 -glabel var7f1b50d4 -.word 0x43ff8000 -glabel var7f1b50d8 -.word 0xc57fa000 -glabel var7f1b50dc -.word 0xc57fa000 -.text -/* f1228d0: 27bdff88 */ addiu $sp,$sp,-120 -/* f1228d4: 30ceffff */ andi $t6,$a2,0xffff -/* f1228d8: 448e2000 */ mtc1 $t6,$f4 -/* f1228dc: afb00028 */ sw $s0,0x28($sp) -/* f1228e0: 44877000 */ mtc1 $a3,$f14 -/* f1228e4: 00808025 */ or $s0,$a0,$zero -/* f1228e8: afbf002c */ sw $ra,0x2c($sp) -/* f1228ec: f7b60020 */ sdc1 $f22,0x20($sp) -/* f1228f0: f7b40018 */ sdc1 $f20,0x18($sp) -/* f1228f4: afa60080 */ sw $a2,0x80($sp) -/* f1228f8: 05c10005 */ bgez $t6,.L0f122910 -/* f1228fc: 468021a0 */ cvt.s.w $f6,$f4 -/* f122900: 3c014f80 */ lui $at,0x4f80 -/* f122904: 44814000 */ mtc1 $at,$f8 -/* f122908: 00000000 */ nop -/* f12290c: 46083180 */ add.s $f6,$f6,$f8 -.L0f122910: -/* f122910: 3c014780 */ lui $at,0x4780 -/* f122914: 44815000 */ mtc1 $at,$f10 -/* f122918: c6120000 */ lwc1 $f18,0x0($s0) -/* f12291c: c4a40000 */ lwc1 $f4,0x0($a1) -/* f122920: 460a3003 */ div.s $f0,$f6,$f10 -/* f122924: c4aa0010 */ lwc1 $f10,0x10($a1) -/* f122928: c6060004 */ lwc1 $f6,0x4($s0) -/* f12292c: 3c013780 */ lui $at,0x3780 -/* f122930: 46049202 */ mul.s $f8,$f18,$f4 -/* f122934: 44816000 */ mtc1 $at,$f12 -/* f122938: 44808000 */ mtc1 $zero,$f16 -/* f12293c: 460a3482 */ mul.s $f18,$f6,$f10 -/* f122940: c4aa0020 */ lwc1 $f10,0x20($a1) -/* f122944: c6060008 */ lwc1 $f6,0x8($s0) -/* f122948: 46124100 */ add.s $f4,$f8,$f18 -/* f12294c: 460a3202 */ mul.s $f8,$f6,$f10 -/* f122950: c4a60030 */ lwc1 $f6,0x30($a1) -/* f122954: 46000086 */ mov.s $f2,$f0 -/* f122958: 46082480 */ add.s $f18,$f4,$f8 -/* f12295c: 46123280 */ add.s $f10,$f6,$f18 -/* f122960: e7aa0068 */ swc1 $f10,0x68($sp) -/* f122964: c6040000 */ lwc1 $f4,0x0($s0) -/* f122968: c4a80004 */ lwc1 $f8,0x4($a1) -/* f12296c: c6120004 */ lwc1 $f18,0x4($s0) -/* f122970: c4aa0014 */ lwc1 $f10,0x14($a1) -/* f122974: 46082182 */ mul.s $f6,$f4,$f8 -/* f122978: 00000000 */ nop -/* f12297c: 460a9102 */ mul.s $f4,$f18,$f10 -/* f122980: c4aa0024 */ lwc1 $f10,0x24($a1) -/* f122984: c6120008 */ lwc1 $f18,0x8($s0) -/* f122988: 46043200 */ add.s $f8,$f6,$f4 -/* f12298c: 460a9182 */ mul.s $f6,$f18,$f10 -/* f122990: c4b20034 */ lwc1 $f18,0x34($a1) -/* f122994: 46064100 */ add.s $f4,$f8,$f6 -/* f122998: 46049280 */ add.s $f10,$f18,$f4 -/* f12299c: e7aa006c */ swc1 $f10,0x6c($sp) -/* f1229a0: c6080000 */ lwc1 $f8,0x0($s0) -/* f1229a4: c4a60008 */ lwc1 $f6,0x8($a1) -/* f1229a8: c6040004 */ lwc1 $f4,0x4($s0) -/* f1229ac: c4aa0018 */ lwc1 $f10,0x18($a1) -/* f1229b0: 46064482 */ mul.s $f18,$f8,$f6 -/* f1229b4: 00000000 */ nop -/* f1229b8: 460a2202 */ mul.s $f8,$f4,$f10 -/* f1229bc: c4aa0028 */ lwc1 $f10,0x28($a1) -/* f1229c0: c6040008 */ lwc1 $f4,0x8($s0) -/* f1229c4: 46089180 */ add.s $f6,$f18,$f8 -/* f1229c8: 460a2482 */ mul.s $f18,$f4,$f10 -/* f1229cc: c4a40038 */ lwc1 $f4,0x38($a1) -/* f1229d0: 46123200 */ add.s $f8,$f6,$f18 -/* f1229d4: 46082280 */ add.s $f10,$f4,$f8 -/* f1229d8: e7aa0070 */ swc1 $f10,0x70($sp) -/* f1229dc: c4b2000c */ lwc1 $f18,0xc($a1) -/* f1229e0: c6060000 */ lwc1 $f6,0x0($s0) -/* f1229e4: c4aa001c */ lwc1 $f10,0x1c($a1) -/* f1229e8: c6080004 */ lwc1 $f8,0x4($s0) -/* f1229ec: 46123102 */ mul.s $f4,$f6,$f18 -/* f1229f0: 00000000 */ nop -/* f1229f4: 460a4182 */ mul.s $f6,$f8,$f10 -/* f1229f8: c4aa002c */ lwc1 $f10,0x2c($a1) -/* f1229fc: c6080008 */ lwc1 $f8,0x8($s0) -/* f122a00: 46062480 */ add.s $f18,$f4,$f6 -/* f122a04: 460a4102 */ mul.s $f4,$f8,$f10 -/* f122a08: c4a8003c */ lwc1 $f8,0x3c($a1) -/* f122a0c: 46049180 */ add.s $f6,$f18,$f4 -/* f122a10: 460c7102 */ mul.s $f4,$f14,$f12 -/* f122a14: 46064280 */ add.s $f10,$f8,$f6 -/* f122a18: e7aa0074 */ swc1 $f10,0x74($sp) -/* f122a1c: c612000c */ lwc1 $f18,0xc($s0) -/* f122a20: c7aa0088 */ lwc1 $f10,0x88($sp) -/* f122a24: 46049202 */ mul.s $f8,$f18,$f4 -/* f122a28: e7a80060 */ swc1 $f8,0x60($sp) -/* f122a2c: 460c5482 */ mul.s $f18,$f10,$f12 -/* f122a30: c6060010 */ lwc1 $f6,0x10($s0) -/* f122a34: c7a80074 */ lwc1 $f8,0x74($sp) -/* f122a38: 46088032 */ c.eq.s $f16,$f8 -/* f122a3c: 46123102 */ mul.s $f4,$f6,$f18 -/* f122a40: e7a40064 */ swc1 $f4,0x64($sp) -/* f122a44: 45000004 */ bc1f .L0f122a58 -/* f122a48: c7a40068 */ lwc1 $f4,0x68($sp) -/* f122a4c: 3c017f1b */ lui $at,%hi(var7f1b50cc) -/* f122a50: 10000006 */ b .L0f122a6c -/* f122a54: c43650cc */ lwc1 $f22,%lo(var7f1b50cc)($at) -.L0f122a58: -/* f122a58: c7a60074 */ lwc1 $f6,0x74($sp) -/* f122a5c: 3c013f80 */ lui $at,0x3f80 -/* f122a60: 44815000 */ mtc1 $at,$f10 -/* f122a64: 46003482 */ mul.s $f18,$f6,$f0 -/* f122a68: 46125583 */ div.s $f22,$f10,$f18 -.L0f122a6c: -/* f122a6c: 4610b03c */ c.lt.s $f22,$f16 -/* f122a70: 4600b006 */ mov.s $f0,$f22 -/* f122a74: 45000002 */ bc1f .L0f122a80 -/* f122a78: 3c017f1b */ lui $at,%hi(var7f1b50d0) -/* f122a7c: c42050d0 */ lwc1 $f0,%lo(var7f1b50d0)($at) -.L0f122a80: -/* f122a80: 46002202 */ mul.s $f8,$f4,$f0 -/* f122a84: c7aa006c */ lwc1 $f10,0x6c($sp) -/* f122a88: 46024182 */ mul.s $f6,$f8,$f2 -/* f122a8c: c7a80070 */ lwc1 $f8,0x70($sp) -/* f122a90: 46005482 */ mul.s $f18,$f10,$f0 -/* f122a94: e7a60048 */ swc1 $f6,0x48($sp) -/* f122a98: 46029102 */ mul.s $f4,$f18,$f2 -/* f122a9c: c7b20074 */ lwc1 $f18,0x74($sp) -/* f122aa0: 46004182 */ mul.s $f6,$f8,$f0 -/* f122aa4: e7a4004c */ swc1 $f4,0x4c($sp) -/* f122aa8: 46023282 */ mul.s $f10,$f6,$f2 -/* f122aac: 00000000 */ nop -/* f122ab0: 46009102 */ mul.s $f4,$f18,$f0 -/* f122ab4: e7aa0050 */ swc1 $f10,0x50($sp) -/* f122ab8: 46022202 */ mul.s $f8,$f4,$f2 -/* f122abc: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f122ac0: e7a80054 */ swc1 $f8,0x54($sp) -/* f122ac4: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f122ac8: 46000506 */ mov.s $f20,$f0 -/* f122acc: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f122ad0: e7a00030 */ swc1 $f0,0x30($sp) -/* f122ad4: 3c014080 */ lui $at,0x4080 -/* f122ad8: 44813000 */ mtc1 $at,$f6 -/* f122adc: c7a20030 */ lwc1 $f2,0x30($sp) -/* f122ae0: c7a80048 */ lwc1 $f8,0x48($sp) -/* f122ae4: 46060282 */ mul.s $f10,$f0,$f6 -/* f122ae8: 46021480 */ add.s $f18,$f2,$f2 -/* f122aec: 4614a180 */ add.s $f6,$f20,$f20 -/* f122af0: 46125100 */ add.s $f4,$f10,$f18 -/* f122af4: 46064282 */ mul.s $f10,$f8,$f6 -/* f122af8: 460a2480 */ add.s $f18,$f4,$f10 -/* f122afc: 0fc2d5fa */ jal currentPlayerGetScreenHeight -/* f122b00: e7b20038 */ swc1 $f18,0x38($sp) -/* f122b04: 0fc2d5fa */ jal currentPlayerGetScreenHeight -/* f122b08: 46000506 */ mov.s $f20,$f0 -/* f122b0c: 0fc2d602 */ jal currentPlayerGetScreenTop -/* f122b10: e7a00030 */ swc1 $f0,0x30($sp) -/* f122b14: 3c017f1b */ lui $at,%hi(var7f1b50d4) -/* f122b18: c43050d4 */ lwc1 $f16,%lo(var7f1b50d4)($at) -/* f122b1c: 3c014080 */ lui $at,0x4080 -/* f122b20: 44814000 */ mtc1 $at,$f8 -/* f122b24: c7a20030 */ lwc1 $f2,0x30($sp) -/* f122b28: c7b2004c */ lwc1 $f18,0x4c($sp) -/* f122b2c: 46080182 */ mul.s $f6,$f0,$f8 -/* f122b30: 46021100 */ add.s $f4,$f2,$f2 -/* f122b34: 3c017f1b */ lui $at,%hi(var7f1b50d8) -/* f122b38: 3c06457f */ lui $a2,0x457f -/* f122b3c: 46009207 */ neg.s $f8,$f18 -/* f122b40: 34c6a000 */ ori $a2,$a2,0xa000 -/* f122b44: c42e50d8 */ lwc1 $f14,%lo(var7f1b50d8)($at) -/* f122b48: 46043280 */ add.s $f10,$f6,$f4 -/* f122b4c: c7ac0038 */ lwc1 $f12,0x38($sp) -/* f122b50: 4614a180 */ add.s $f6,$f20,$f20 -/* f122b54: 46064102 */ mul.s $f4,$f8,$f6 -/* f122b58: c7a80050 */ lwc1 $f8,0x50($sp) -/* f122b5c: 46104182 */ mul.s $f6,$f8,$f16 -/* f122b60: 46045480 */ add.s $f18,$f10,$f4 -/* f122b64: c7a40054 */ lwc1 $f4,0x54($sp) -/* f122b68: 46103280 */ add.s $f10,$f6,$f16 -/* f122b6c: e7b2003c */ swc1 $f18,0x3c($sp) -/* f122b70: 44809000 */ mtc1 $zero,$f18 -/* f122b74: e7aa0040 */ swc1 $f10,0x40($sp) -/* f122b78: 46122202 */ mul.s $f8,$f4,$f18 -/* f122b7c: 0fc47cf4 */ jal func0f11f3d0 -/* f122b80: e7a80044 */ swc1 $f8,0x44($sp) -/* f122b84: 3c017f1b */ lui $at,%hi(var7f1b50dc) -/* f122b88: 3c06457f */ lui $a2,0x457f -/* f122b8c: e7a00038 */ swc1 $f0,0x38($sp) -/* f122b90: 34c6a000 */ ori $a2,$a2,0xa000 -/* f122b94: c42e50dc */ lwc1 $f14,%lo(var7f1b50dc)($at) -/* f122b98: 0fc47cf4 */ jal func0f11f3d0 -/* f122b9c: c7ac003c */ lwc1 $f12,0x3c($sp) -/* f122ba0: 44807000 */ mtc1 $zero,$f14 -/* f122ba4: 3c0646ff */ lui $a2,0x46ff -/* f122ba8: e7a0003c */ swc1 $f0,0x3c($sp) -/* f122bac: 34c6fe00 */ ori $a2,$a2,0xfe00 -/* f122bb0: 0fc47cf4 */ jal func0f11f3d0 -/* f122bb4: c7ac0040 */ lwc1 $f12,0x40($sp) -/* f122bb8: 44807000 */ mtc1 $zero,$f14 -/* f122bbc: 3c0646ff */ lui $a2,0x46ff -/* f122bc0: e7a00040 */ swc1 $f0,0x40($sp) -/* f122bc4: 34c6fe00 */ ori $a2,$a2,0xfe00 -/* f122bc8: 0fc47cf4 */ jal func0f11f3d0 -/* f122bcc: c7ac0044 */ lwc1 $f12,0x44($sp) -/* f122bd0: 8fa3008c */ lw $v1,0x8c($sp) -/* f122bd4: c7a60068 */ lwc1 $f6,0x68($sp) -/* f122bd8: e7a00044 */ swc1 $f0,0x44($sp) -/* f122bdc: e4660000 */ swc1 $f6,0x0($v1) -/* f122be0: c7aa006c */ lwc1 $f10,0x6c($sp) -/* f122be4: e46a0004 */ swc1 $f10,0x4($v1) -/* f122be8: c7a40070 */ lwc1 $f4,0x70($sp) -/* f122bec: e4640008 */ swc1 $f4,0x8($v1) -/* f122bf0: c7b20074 */ lwc1 $f18,0x74($sp) -/* f122bf4: e472000c */ swc1 $f18,0xc($v1) -/* f122bf8: c7a80060 */ lwc1 $f8,0x60($sp) -/* f122bfc: e4680020 */ swc1 $f8,0x20($v1) -/* f122c00: c7a60064 */ lwc1 $f6,0x64($sp) -/* f122c04: e4660024 */ swc1 $f6,0x24($v1) -/* f122c08: c7aa0038 */ lwc1 $f10,0x38($sp) -/* f122c0c: 0fc595f3 */ jal envGetCurrent -/* f122c10: e46a0028 */ swc1 $f10,0x28($v1) -/* f122c14: 3c014080 */ lui $at,0x4080 -/* f122c18: 44819000 */ mtc1 $at,$f18 -/* f122c1c: c4440040 */ lwc1 $f4,0x40($v0) -/* f122c20: c7a6003c */ lwc1 $f6,0x3c($sp) -/* f122c24: 8fa3008c */ lw $v1,0x8c($sp) -/* f122c28: 46122202 */ mul.s $f8,$f4,$f18 -/* f122c2c: 3c014f80 */ lui $at,0x4f80 -/* f122c30: 46083281 */ sub.s $f10,$f6,$f8 -/* f122c34: e46a002c */ swc1 $f10,0x2c($v1) -/* f122c38: c7a40040 */ lwc1 $f4,0x40($sp) -/* f122c3c: e4760034 */ swc1 $f22,0x34($v1) -/* f122c40: e4640030 */ swc1 $f4,0x30($v1) -/* f122c44: 920f0014 */ lbu $t7,0x14($s0) -/* f122c48: 448f9000 */ mtc1 $t7,$f18 -/* f122c4c: 05e10004 */ bgez $t7,.L0f122c60 -/* f122c50: 468091a0 */ cvt.s.w $f6,$f18 -/* f122c54: 44814000 */ mtc1 $at,$f8 -/* f122c58: 00000000 */ nop -/* f122c5c: 46083180 */ add.s $f6,$f6,$f8 -.L0f122c60: -/* f122c60: e4660010 */ swc1 $f6,0x10($v1) -/* f122c64: 92180015 */ lbu $t8,0x15($s0) -/* f122c68: 3c014f80 */ lui $at,0x4f80 -/* f122c6c: 44985000 */ mtc1 $t8,$f10 -/* f122c70: 07010004 */ bgez $t8,.L0f122c84 -/* f122c74: 46805120 */ cvt.s.w $f4,$f10 -/* f122c78: 44819000 */ mtc1 $at,$f18 -/* f122c7c: 00000000 */ nop -/* f122c80: 46122100 */ add.s $f4,$f4,$f18 -.L0f122c84: -/* f122c84: e4640014 */ swc1 $f4,0x14($v1) -/* f122c88: 92190016 */ lbu $t9,0x16($s0) -/* f122c8c: 3c014f80 */ lui $at,0x4f80 -/* f122c90: 44994000 */ mtc1 $t9,$f8 -/* f122c94: 07210004 */ bgez $t9,.L0f122ca8 -/* f122c98: 468041a0 */ cvt.s.w $f6,$f8 -/* f122c9c: 44815000 */ mtc1 $at,$f10 -/* f122ca0: 00000000 */ nop -/* f122ca4: 460a3180 */ add.s $f6,$f6,$f10 -.L0f122ca8: -/* f122ca8: e4660018 */ swc1 $f6,0x18($v1) -/* f122cac: 92080017 */ lbu $t0,0x17($s0) -/* f122cb0: 3c014f80 */ lui $at,0x4f80 -/* f122cb4: 44889000 */ mtc1 $t0,$f18 -/* f122cb8: 05010004 */ bgez $t0,.L0f122ccc -/* f122cbc: 46809120 */ cvt.s.w $f4,$f18 -/* f122cc0: 44814000 */ mtc1 $at,$f8 -/* f122cc4: 00000000 */ nop -/* f122cc8: 46082100 */ add.s $f4,$f4,$f8 -.L0f122ccc: -/* f122ccc: e464001c */ swc1 $f4,0x1c($v1) -/* f122cd0: 8fbf002c */ lw $ra,0x2c($sp) -/* f122cd4: 8fb00028 */ lw $s0,0x28($sp) -/* f122cd8: d7b60020 */ ldc1 $f22,0x20($sp) -/* f122cdc: d7b40018 */ ldc1 $f20,0x18($sp) -/* f122ce0: 03e00008 */ jr $ra -/* f122ce4: 27bd0078 */ addiu $sp,$sp,0x78 -); - -GLOBAL_ASM( -glabel func0f122ce8 -/* f122ce8: 27bdffe8 */ addiu $sp,$sp,-24 -/* f122cec: afbf0014 */ sw $ra,0x14($sp) -/* f122cf0: c4a60028 */ lwc1 $f6,0x28($a1) -/* f122cf4: c4840028 */ lwc1 $f4,0x28($a0) -/* f122cf8: c4aa002c */ lwc1 $f10,0x2c($a1) -/* f122cfc: c488002c */ lwc1 $f8,0x2c($a0) -/* f122d00: 46062001 */ sub.s $f0,$f4,$f6 -/* f122d04: 460a4081 */ sub.s $f2,$f8,$f10 -/* f122d08: 46000402 */ mul.s $f16,$f0,$f0 -/* f122d0c: 00000000 */ nop -/* f122d10: 46021482 */ mul.s $f18,$f2,$f2 -/* f122d14: 0c012974 */ jal sqrtf -/* f122d18: 46128300 */ add.s $f12,$f16,$f18 -/* f122d1c: 3c013f80 */ lui $at,0x3f80 -/* f122d20: 44812000 */ mtc1 $at,$f4 -/* f122d24: 8fbf0014 */ lw $ra,0x14($sp) -/* f122d28: 27bd0018 */ addiu $sp,$sp,0x18 -/* f122d2c: 4604003c */ c.lt.s $f0,$f4 -/* f122d30: 00001825 */ or $v1,$zero,$zero -/* f122d34: 45000003 */ bc1f .L0f122d44 -/* f122d38: 00000000 */ nop -/* f122d3c: 10000001 */ b .L0f122d44 -/* f122d40: 24030001 */ addiu $v1,$zero,0x1 -.L0f122d44: -/* f122d44: 03e00008 */ jr $ra -/* f122d48: 00601025 */ or $v0,$v1,$zero -); - -GLOBAL_ASM( -glabel func0f122d4c -.late_rodata -glabel var7f1b50e0 -.word 0xc4eac000 -glabel var7f1b50e4 -.word 0xc4eac000 -glabel var7f1b50e8 -.word 0xc4eac000 -glabel var7f1b50ec -.word 0x46fffe00 -.text -/* f122d4c: 27bdfb78 */ addiu $sp,$sp,-1160 -/* f122d50: afb00020 */ sw $s0,0x20($sp) -/* f122d54: 00808025 */ or $s0,$a0,$zero -/* f122d58: afbf0024 */ sw $ra,0x24($sp) -/* f122d5c: afa5048c */ sw $a1,0x48c($sp) -/* f122d60: 00a02025 */ or $a0,$a1,$zero -/* f122d64: f7b40018 */ sdc1 $f20,0x18($sp) -/* f122d68: 00c02825 */ or $a1,$a2,$zero -/* f122d6c: afa60490 */ sw $a2,0x490($sp) -/* f122d70: 0fc48b3a */ jal func0f122ce8 -/* f122d74: afa70494 */ sw $a3,0x494($sp) -/* f122d78: 8fa60490 */ lw $a2,0x490($sp) -/* f122d7c: 14400013 */ bnez $v0,.L0f122dcc -/* f122d80: 8fa70494 */ lw $a3,0x494($sp) -/* f122d84: 00c02025 */ or $a0,$a2,$zero -/* f122d88: 00e02825 */ or $a1,$a3,$zero -/* f122d8c: afa60490 */ sw $a2,0x490($sp) -/* f122d90: 0fc48b3a */ jal func0f122ce8 -/* f122d94: afa70494 */ sw $a3,0x494($sp) -/* f122d98: 8faf048c */ lw $t7,0x48c($sp) -/* f122d9c: 8fa60490 */ lw $a2,0x490($sp) -/* f122da0: 1440000a */ bnez $v0,.L0f122dcc -/* f122da4: 8fa70494 */ lw $a3,0x494($sp) -/* f122da8: 00e02025 */ or $a0,$a3,$zero -/* f122dac: 01e02825 */ or $a1,$t7,$zero -/* f122db0: afa60490 */ sw $a2,0x490($sp) -/* f122db4: 0fc48b3a */ jal func0f122ce8 -/* f122db8: afa70494 */ sw $a3,0x494($sp) -/* f122dbc: 8fa3048c */ lw $v1,0x48c($sp) -/* f122dc0: 8fa60490 */ lw $a2,0x490($sp) -/* f122dc4: 10400003 */ beqz $v0,.L0f122dd4 -/* f122dc8: 8fa70494 */ lw $a3,0x494($sp) -.L0f122dcc: -/* f122dcc: 1000047c */ b .L0f123fc0 -/* f122dd0: 02001025 */ or $v0,$s0,$zero -.L0f122dd4: -/* f122dd4: 3c014780 */ lui $at,0x4780 -/* f122dd8: 44813000 */ mtc1 $at,$f6 -/* f122ddc: c7a40498 */ lwc1 $f4,0x498($sp) -/* f122de0: 3c013780 */ lui $at,0x3780 -/* f122de4: 4480a000 */ mtc1 $zero,$f20 -/* f122de8: 46062203 */ div.s $f8,$f4,$f6 -/* f122dec: e7a80378 */ swc1 $f8,0x378($sp) -/* f122df0: c4c4002c */ lwc1 $f4,0x2c($a2) -/* f122df4: c4ca0028 */ lwc1 $f10,0x28($a2) -/* f122df8: c4600028 */ lwc1 $f0,0x28($v1) -/* f122dfc: e7a4005c */ swc1 $f4,0x5c($sp) -/* f122e00: c4e80028 */ lwc1 $f8,0x28($a3) -/* f122e04: 46005301 */ sub.s $f12,$f10,$f0 -/* f122e08: c46e002c */ lwc1 $f14,0x2c($v1) -/* f122e0c: c7a6005c */ lwc1 $f6,0x5c($sp) -/* f122e10: 46004281 */ sub.s $f10,$f8,$f0 -/* f122e14: 460e3401 */ sub.s $f16,$f6,$f14 -/* f122e18: e7aa046c */ swc1 $f10,0x46c($sp) -/* f122e1c: c4e4002c */ lwc1 $f4,0x2c($a3) -/* f122e20: c7a8046c */ lwc1 $f8,0x46c($sp) -/* f122e24: e7a40054 */ swc1 $f4,0x54($sp) -/* f122e28: c7a60054 */ lwc1 $f6,0x54($sp) -/* f122e2c: 46104282 */ mul.s $f10,$f8,$f16 -/* f122e30: 44814000 */ mtc1 $at,$f8 -/* f122e34: 460e3481 */ sub.s $f18,$f6,$f14 -/* f122e38: 46126102 */ mul.s $f4,$f12,$f18 -/* f122e3c: 46045181 */ sub.s $f6,$f10,$f4 -/* f122e40: c7a4005c */ lwc1 $f4,0x5c($sp) -/* f122e44: 46083082 */ mul.s $f2,$f6,$f8 -/* f122e48: 4602a032 */ c.eq.s $f20,$f2 -/* f122e4c: e7a20444 */ swc1 $f2,0x444($sp) -/* f122e50: 45020004 */ bc1fl .L0f122e64 -/* f122e54: 460e203c */ c.lt.s $f4,$f14 -/* f122e58: 10000459 */ b .L0f123fc0 -/* f122e5c: 02001025 */ or $v0,$s0,$zero -/* f122e60: 460e203c */ c.lt.s $f4,$f14 -.L0f122e64: -/* f122e64: 3c013f80 */ lui $at,0x3f80 -/* f122e68: 44815000 */ mtc1 $at,$f10 -/* f122e6c: 00604825 */ or $t1,$v1,$zero -/* f122e70: 00c04025 */ or $t0,$a2,$zero -/* f122e74: 00e05825 */ or $t3,$a3,$zero -/* f122e78: 45000009 */ bc1f .L0f122ea0 -/* f122e7c: 46025403 */ div.s $f16,$f10,$f2 -/* f122e80: 3c01bf80 */ lui $at,0xbf80 -/* f122e84: 44816000 */ mtc1 $at,$f12 -/* f122e88: 00604025 */ or $t0,$v1,$zero -/* f122e8c: 00c04825 */ or $t1,$a2,$zero -/* f122e90: 460c1382 */ mul.s $f14,$f2,$f12 -/* f122e94: e7ae0444 */ swc1 $f14,0x444($sp) -/* f122e98: 460c8402 */ mul.s $f16,$f16,$f12 -/* f122e9c: 00000000 */ nop -.L0f122ea0: -/* f122ea0: c500002c */ lwc1 $f0,0x2c($t0) -/* f122ea4: c7a60054 */ lwc1 $f6,0x54($sp) -/* f122ea8: 3c01bf80 */ lui $at,0xbf80 -/* f122eac: 44816000 */ mtc1 $at,$f12 -/* f122eb0: 4600303c */ c.lt.s $f6,$f0 -/* f122eb4: c7ae0444 */ lwc1 $f14,0x444($sp) -/* f122eb8: 3c013e80 */ lui $at,0x3e80 -/* f122ebc: 45020007 */ bc1fl .L0f122edc -/* f122ec0: e7ae0444 */ swc1 $f14,0x444($sp) -/* f122ec4: 460c7382 */ mul.s $f14,$f14,$f12 -/* f122ec8: 01005825 */ or $t3,$t0,$zero -/* f122ecc: 00e04025 */ or $t0,$a3,$zero -/* f122ed0: 460c8402 */ mul.s $f16,$f16,$f12 -/* f122ed4: c4e0002c */ lwc1 $f0,0x2c($a3) -/* f122ed8: e7ae0444 */ swc1 $f14,0x444($sp) -.L0f122edc: -/* f122edc: e7b00440 */ swc1 $f16,0x440($sp) -/* f122ee0: c528002c */ lwc1 $f8,0x2c($t1) -/* f122ee4: 4608003c */ c.lt.s $f0,$f8 -/* f122ee8: 44810000 */ mtc1 $at,$f0 -/* f122eec: 3c014080 */ lui $at,0x4080 -/* f122ef0: 44811000 */ mtc1 $at,$f2 -/* f122ef4: 45000008 */ bc1f .L0f122f18 -/* f122ef8: 3c013e80 */ lui $at,0x3e80 -/* f122efc: 460c7382 */ mul.s $f14,$f14,$f12 -/* f122f00: 01001025 */ or $v0,$t0,$zero -/* f122f04: 01204025 */ or $t0,$t1,$zero -/* f122f08: 460c8402 */ mul.s $f16,$f16,$f12 -/* f122f0c: 00404825 */ or $t1,$v0,$zero -/* f122f10: e7ae0444 */ swc1 $f14,0x444($sp) -/* f122f14: e7b00440 */ swc1 $f16,0x440($sp) -.L0f122f18: -/* f122f18: c50a0028 */ lwc1 $f10,0x28($t0) -/* f122f1c: 44812000 */ mtc1 $at,$f4 -/* f122f20: e7b40424 */ swc1 $f20,0x424($sp) -/* f122f24: 3c0644ea */ lui $a2,0x44ea -/* f122f28: 46045182 */ mul.s $f6,$f10,$f4 -/* f122f2c: 44815000 */ mtc1 $at,$f10 -/* f122f30: 34c6a000 */ ori $a2,$a2,0xa000 -/* f122f34: e7a60420 */ swc1 $f6,0x420($sp) -/* f122f38: c5280028 */ lwc1 $f8,0x28($t1) -/* f122f3c: e7b4042c */ swc1 $f20,0x42c($sp) -/* f122f40: 460a4102 */ mul.s $f4,$f8,$f10 -/* f122f44: 44814000 */ mtc1 $at,$f8 -/* f122f48: 3c017f1b */ lui $at,%hi(var7f1b50e0) -/* f122f4c: e7a40428 */ swc1 $f4,0x428($sp) -/* f122f50: c5260028 */ lwc1 $f6,0x28($t1) -/* f122f54: e7b40434 */ swc1 $f20,0x434($sp) -/* f122f58: e7b4043c */ swc1 $f20,0x43c($sp) -/* f122f5c: 46083282 */ mul.s $f10,$f6,$f8 -/* f122f60: e7b40438 */ swc1 $f20,0x438($sp) -/* f122f64: e7aa0430 */ swc1 $f10,0x430($sp) -/* f122f68: c5640028 */ lwc1 $f4,0x28($t3) -/* f122f6c: e7a40448 */ swc1 $f4,0x448($sp) -/* f122f70: c566002c */ lwc1 $f6,0x2c($t3) -/* f122f74: e7a6044c */ swc1 $f6,0x44c($sp) -/* f122f78: c5080028 */ lwc1 $f8,0x28($t0) -/* f122f7c: e7a80450 */ swc1 $f8,0x450($sp) -/* f122f80: c50a002c */ lwc1 $f10,0x2c($t0) -/* f122f84: c7a80450 */ lwc1 $f8,0x450($sp) -/* f122f88: e7aa0454 */ swc1 $f10,0x454($sp) -/* f122f8c: c5240028 */ lwc1 $f4,0x28($t1) -/* f122f90: e7a40458 */ swc1 $f4,0x458($sp) -/* f122f94: c7aa0458 */ lwc1 $f10,0x458($sp) -/* f122f98: c526002c */ lwc1 $f6,0x2c($t1) -/* f122f9c: e7a80028 */ swc1 $f8,0x28($sp) -/* f122fa0: 460a4101 */ sub.s $f4,$f8,$f10 -/* f122fa4: e7a6045c */ swc1 $f6,0x45c($sp) -/* f122fa8: c7a60454 */ lwc1 $f6,0x454($sp) -/* f122fac: c7a8045c */ lwc1 $f8,0x45c($sp) -/* f122fb0: e7a40474 */ swc1 $f4,0x474($sp) -/* f122fb4: e7a40030 */ swc1 $f4,0x30($sp) -/* f122fb8: e7aa002c */ swc1 $f10,0x2c($sp) -/* f122fbc: c7a4002c */ lwc1 $f4,0x2c($sp) -/* f122fc0: 46083401 */ sub.s $f16,$f6,$f8 -/* f122fc4: e7a6002c */ swc1 $f6,0x2c($sp) -/* f122fc8: c7a6044c */ lwc1 $f6,0x44c($sp) -/* f122fcc: c7aa0448 */ lwc1 $f10,0x448($sp) -/* f122fd0: e7b403fc */ swc1 $f20,0x3fc($sp) -/* f122fd4: 46083481 */ sub.s $f18,$f6,$f8 -/* f122fd8: c7a80028 */ lwc1 $f8,0x28($sp) -/* f122fdc: e7b403f8 */ swc1 $f20,0x3f8($sp) -/* f122fe0: 46045101 */ sub.s $f4,$f10,$f4 -/* f122fe4: e7b403dc */ swc1 $f20,0x3dc($sp) -/* f122fe8: e7b403d8 */ swc1 $f20,0x3d8($sp) -/* f122fec: 46085301 */ sub.s $f12,$f10,$f8 -/* f122ff0: c7aa002c */ lwc1 $f10,0x2c($sp) -/* f122ff4: e7a4046c */ swc1 $f4,0x46c($sp) -/* f122ff8: e7b403a0 */ swc1 $f20,0x3a0($sp) -/* f122ffc: 46006202 */ mul.s $f8,$f12,$f0 -/* f123000: 460a3381 */ sub.s $f14,$f6,$f10 -/* f123004: c7aa0030 */ lwc1 $f10,0x30($sp) -/* f123008: e7ac0464 */ swc1 $f12,0x464($sp) -/* f12300c: e7b403a8 */ swc1 $f20,0x3a8($sp) -/* f123010: 46007182 */ mul.s $f6,$f14,$f0 -/* f123014: e7ae0460 */ swc1 $f14,0x460($sp) -/* f123018: e7a803e0 */ swc1 $f8,0x3e0($sp) -/* f12301c: 46005202 */ mul.s $f8,$f10,$f0 -/* f123020: e7b403b0 */ swc1 $f20,0x3b0($sp) -/* f123024: e7b403bc */ swc1 $f20,0x3bc($sp) -/* f123028: e7b403b8 */ swc1 $f20,0x3b8($sp) -/* f12302c: e7a603e4 */ swc1 $f6,0x3e4($sp) -/* f123030: 46008182 */ mul.s $f6,$f16,$f0 -/* f123034: e7b40380 */ swc1 $f20,0x380($sp) -/* f123038: e7a803e8 */ swc1 $f8,0x3e8($sp) -/* f12303c: 46002202 */ mul.s $f8,$f4,$f0 -/* f123040: e7b40388 */ swc1 $f20,0x388($sp) -/* f123044: e7b40390 */ swc1 $f20,0x390($sp) -/* f123048: e7b4039c */ swc1 $f20,0x39c($sp) -/* f12304c: e7a603ec */ swc1 $f6,0x3ec($sp) -/* f123050: 46009182 */ mul.s $f6,$f18,$f0 -/* f123054: c7a00460 */ lwc1 $f0,0x460($sp) -/* f123058: e7a803f0 */ swc1 $f8,0x3f0($sp) -/* f12305c: 46026202 */ mul.s $f8,$f12,$f2 -/* f123060: e7b40398 */ swc1 $f20,0x398($sp) -/* f123064: afab047c */ sw $t3,0x47c($sp) -/* f123068: afa90484 */ sw $t1,0x484($sp) -/* f12306c: e7a603f4 */ swc1 $f6,0x3f4($sp) -/* f123070: 46027182 */ mul.s $f6,$f14,$f2 -/* f123074: c42e50e0 */ lwc1 $f14,%lo(var7f1b50e0)($at) -/* f123078: e7a803c0 */ swc1 $f8,0x3c0($sp) -/* f12307c: 46025202 */ mul.s $f8,$f10,$f2 -/* f123080: afa80480 */ sw $t0,0x480($sp) -/* f123084: e7a603c4 */ swc1 $f6,0x3c4($sp) -/* f123088: 46028182 */ mul.s $f6,$f16,$f2 -/* f12308c: e7a803c8 */ swc1 $f8,0x3c8($sp) -/* f123090: 46022202 */ mul.s $f8,$f4,$f2 -/* f123094: e7a603cc */ swc1 $f6,0x3cc($sp) -/* f123098: 46029182 */ mul.s $f6,$f18,$f2 -/* f12309c: e7a803d0 */ swc1 $f8,0x3d0($sp) -/* f1230a0: 46001203 */ div.s $f8,$f2,$f0 -/* f1230a4: e7a603d4 */ swc1 $f6,0x3d4($sp) -/* f1230a8: 46101183 */ div.s $f6,$f2,$f16 -/* f1230ac: e7a803a4 */ swc1 $f8,0x3a4($sp) -/* f1230b0: 46121203 */ div.s $f8,$f2,$f18 -/* f1230b4: e7a603ac */ swc1 $f6,0x3ac($sp) -/* f1230b8: c7a60464 */ lwc1 $f6,0x464($sp) -/* f1230bc: 46003303 */ div.s $f12,$f6,$f0 -/* f1230c0: e7a803b4 */ swc1 $f8,0x3b4($sp) -/* f1230c4: 46122183 */ div.s $f6,$f4,$f18 -/* f1230c8: e7ac0384 */ swc1 $f12,0x384($sp) -/* f1230cc: 46105203 */ div.s $f8,$f10,$f16 -/* f1230d0: e7a60394 */ swc1 $f6,0x394($sp) -/* f1230d4: 0fc47cf4 */ jal func0f11f3d0 -/* f1230d8: e7a8038c */ swc1 $f8,0x38c($sp) -/* f1230dc: 3c017f1b */ lui $at,%hi(var7f1b50e4) -/* f1230e0: 3c0644ea */ lui $a2,0x44ea -/* f1230e4: e7a00384 */ swc1 $f0,0x384($sp) -/* f1230e8: 34c6a000 */ ori $a2,$a2,0xa000 -/* f1230ec: c42e50e4 */ lwc1 $f14,%lo(var7f1b50e4)($at) -/* f1230f0: 0fc47cf4 */ jal func0f11f3d0 -/* f1230f4: c7ac038c */ lwc1 $f12,0x38c($sp) -/* f1230f8: 3c017f1b */ lui $at,%hi(var7f1b50e8) -/* f1230fc: 3c0644ea */ lui $a2,0x44ea -/* f123100: e7a0038c */ swc1 $f0,0x38c($sp) -/* f123104: 34c6a000 */ ori $a2,$a2,0xa000 -/* f123108: c42e50e8 */ lwc1 $f14,%lo(var7f1b50e8)($at) -/* f12310c: 0fc47cf4 */ jal func0f11f3d0 -/* f123110: c7ac0394 */ lwc1 $f12,0x394($sp) -/* f123114: 8fa90484 */ lw $t1,0x484($sp) -/* f123118: e7a00394 */ swc1 $f0,0x394($sp) -/* f12311c: 3c013e80 */ lui $at,0x3e80 -/* f123120: 44814000 */ mtc1 $at,$f8 -/* f123124: c52a002c */ lwc1 $f10,0x2c($t1) -/* f123128: 3c014600 */ lui $at,0x4600 -/* f12312c: 46085082 */ mul.s $f2,$f10,$f8 -/* f123130: 4600110d */ trunc.w.s $f4,$f2 -/* f123134: 44192000 */ mfc1 $t9,$f4 -/* f123138: c7a4038c */ lwc1 $f4,0x38c($sp) -/* f12313c: 44993000 */ mtc1 $t9,$f6 -/* f123140: 00000000 */ nop -/* f123144: 468032a0 */ cvt.s.w $f10,$f6 -/* f123148: 44813000 */ mtc1 $at,$f6 -/* f12314c: 00000000 */ nop -/* f123150: 46062302 */ mul.s $f12,$f4,$f6 -/* f123154: 460a1201 */ sub.s $f8,$f2,$f10 -/* f123158: 0fc47d04 */ jal func0f11f410 -/* f12315c: e7a8037c */ swc1 $f8,0x37c($sp) -/* f123160: 3c013900 */ lui $at,0x3900 -/* f123164: 44815000 */ mtc1 $at,$f10 -/* f123168: c7a4037c */ lwc1 $f4,0x37c($sp) -/* f12316c: 3c014600 */ lui $at,0x4600 -/* f123170: 460a0202 */ mul.s $f8,$f0,$f10 -/* f123174: c7aa0428 */ lwc1 $f10,0x428($sp) -/* f123178: 46044182 */ mul.s $f6,$f8,$f4 -/* f12317c: c7a40394 */ lwc1 $f4,0x394($sp) -/* f123180: 46065201 */ sub.s $f8,$f10,$f6 -/* f123184: 44815000 */ mtc1 $at,$f10 -/* f123188: 00000000 */ nop -/* f12318c: 460a2302 */ mul.s $f12,$f4,$f10 -/* f123190: 0fc47d04 */ jal func0f11f410 -/* f123194: e7a80408 */ swc1 $f8,0x408($sp) -/* f123198: 3c013900 */ lui $at,0x3900 -/* f12319c: 44813000 */ mtc1 $at,$f6 -/* f1231a0: c7a4037c */ lwc1 $f4,0x37c($sp) -/* f1231a4: 3c07b400 */ lui $a3,0xb400 -/* f1231a8: 46060202 */ mul.s $f8,$f0,$f6 -/* f1231ac: c7a60430 */ lwc1 $f6,0x430($sp) -/* f1231b0: 8fa80480 */ lw $t0,0x480($sp) -/* f1231b4: 8fa90484 */ lw $t1,0x484($sp) -/* f1231b8: 8fab047c */ lw $t3,0x47c($sp) -/* f1231bc: 02002825 */ or $a1,$s0,$zero -/* f1231c0: 26100008 */ addiu $s0,$s0,0x8 -/* f1231c4: 46044282 */ mul.s $f10,$f8,$f4 -/* f1231c8: 24190001 */ addiu $t9,$zero,0x1 -/* f1231cc: 3c06c800 */ lui $a2,0xc800 -/* f1231d0: 02001025 */ or $v0,$s0,$zero -/* f1231d4: 460a3201 */ sub.s $f8,$f6,$f10 -/* f1231d8: e7a80410 */ swc1 $f8,0x410($sp) -/* f1231dc: aca70000 */ sw $a3,0x0($a1) -/* f1231e0: 8fb8049c */ lw $t8,0x49c($sp) -/* f1231e4: c7a40444 */ lwc1 $f4,0x444($sp) -/* f1231e8: 13000003 */ beqz $t8,.L0f1231f8 -/* f1231ec: 00000000 */ nop -/* f1231f0: 10000001 */ b .L0f1231f8 -/* f1231f4: 3c06ce00 */ lui $a2,0xce00 -.L0f1231f8: -/* f1231f8: 4614203c */ c.lt.s $f4,$f20 -/* f1231fc: 00001825 */ or $v1,$zero,$zero -/* f123200: 45000003 */ bc1f .L0f123210 -/* f123204: 00000000 */ nop -/* f123208: 10000001 */ b .L0f123210 -/* f12320c: 3c030080 */ lui $v1,0x80 -.L0f123210: -/* f123210: 444ef800 */ cfc1 $t6,$31 -/* f123214: 44d9f800 */ ctc1 $t9,$31 -/* f123218: c566002c */ lwc1 $f6,0x2c($t3) -/* f12321c: 00667825 */ or $t7,$v1,$a2 -/* f123220: 3c014f00 */ lui $at,0x4f00 -/* f123224: 460032a4 */ cvt.w.s $f10,$f6 -/* f123228: 4459f800 */ cfc1 $t9,$31 -/* f12322c: 00000000 */ nop -/* f123230: 33390078 */ andi $t9,$t9,0x78 -/* f123234: 53200013 */ beqzl $t9,.L0f123284 -/* f123238: 44195000 */ mfc1 $t9,$f10 -/* f12323c: 44815000 */ mtc1 $at,$f10 -/* f123240: 24190001 */ addiu $t9,$zero,0x1 -/* f123244: 460a3281 */ sub.s $f10,$f6,$f10 -/* f123248: 44d9f800 */ ctc1 $t9,$31 -/* f12324c: 00000000 */ nop -/* f123250: 460052a4 */ cvt.w.s $f10,$f10 -/* f123254: 4459f800 */ cfc1 $t9,$31 -/* f123258: 00000000 */ nop -/* f12325c: 33390078 */ andi $t9,$t9,0x78 -/* f123260: 17200005 */ bnez $t9,.L0f123278 -/* f123264: 00000000 */ nop -/* f123268: 44195000 */ mfc1 $t9,$f10 -/* f12326c: 3c018000 */ lui $at,0x8000 -/* f123270: 10000007 */ b .L0f123290 -/* f123274: 0321c825 */ or $t9,$t9,$at -.L0f123278: -/* f123278: 10000005 */ b .L0f123290 -/* f12327c: 2419ffff */ addiu $t9,$zero,-1 -/* f123280: 44195000 */ mfc1 $t9,$f10 -.L0f123284: -/* f123284: 00000000 */ nop -/* f123288: 0720fffb */ bltz $t9,.L0f123278 -/* f12328c: 00000000 */ nop -.L0f123290: -/* f123290: 44cef800 */ ctc1 $t6,$31 -/* f123294: 01f9c025 */ or $t8,$t7,$t9 -/* f123298: acb80004 */ sw $t8,0x4($a1) -/* f12329c: 3c0eb200 */ lui $t6,0xb200 -/* f1232a0: ac4e0000 */ sw $t6,0x0($v0) -/* f1232a4: c508002c */ lwc1 $f8,0x2c($t0) -/* f1232a8: c526002c */ lwc1 $f6,0x2c($t1) -/* f1232ac: 26100008 */ addiu $s0,$s0,0x8 -/* f1232b0: 4600410d */ trunc.w.s $f4,$f8 -/* f1232b4: 02002025 */ or $a0,$s0,$zero -/* f1232b8: 3c013e80 */ lui $at,0x3e80 -/* f1232bc: 4600328d */ trunc.w.s $f10,$f6 -/* f1232c0: 44192000 */ mfc1 $t9,$f4 -/* f1232c4: 44812000 */ mtc1 $at,$f4 -/* f1232c8: 26100008 */ addiu $s0,$s0,0x8 -/* f1232cc: 440f5000 */ mfc1 $t7,$f10 -/* f1232d0: 0019c400 */ sll $t8,$t9,0x10 -/* f1232d4: 030fc825 */ or $t9,$t8,$t7 -/* f1232d8: ac590004 */ sw $t9,0x4($v0) -/* f1232dc: ac870000 */ sw $a3,0x0($a0) -/* f1232e0: c5080028 */ lwc1 $f8,0x28($t0) -/* f1232e4: afab047c */ sw $t3,0x47c($sp) -/* f1232e8: afa90484 */ sw $t1,0x484($sp) -/* f1232ec: 46044302 */ mul.s $f12,$f8,$f4 -/* f1232f0: afa80480 */ sw $t0,0x480($sp) -/* f1232f4: 0fc54be8 */ jal func0f152fa0 -/* f1232f8: afa40180 */ sw $a0,0x180($sp) -/* f1232fc: 8fa40180 */ lw $a0,0x180($sp) -/* f123300: 02001825 */ or $v1,$s0,$zero -/* f123304: 3c0eb200 */ lui $t6,0xb200 -/* f123308: ac820004 */ sw $v0,0x4($a0) -/* f12330c: ac6e0000 */ sw $t6,0x0($v1) -/* f123310: afa3017c */ sw $v1,0x17c($sp) -/* f123314: c7ac0384 */ lwc1 $f12,0x384($sp) -/* f123318: 0fc54be8 */ jal func0f152fa0 -/* f12331c: 26100008 */ addiu $s0,$s0,0x8 -/* f123320: 8fa3017c */ lw $v1,0x17c($sp) -/* f123324: 02002025 */ or $a0,$s0,$zero -/* f123328: 3c18b400 */ lui $t8,0xb400 -/* f12332c: ac620004 */ sw $v0,0x4($v1) -/* f123330: ac980000 */ sw $t8,0x0($a0) -/* f123334: afa40178 */ sw $a0,0x178($sp) -/* f123338: c7ac0410 */ lwc1 $f12,0x410($sp) -/* f12333c: 0fc54be8 */ jal func0f152fa0 -/* f123340: 26100008 */ addiu $s0,$s0,0x8 -/* f123344: 8fa40178 */ lw $a0,0x178($sp) -/* f123348: 02001825 */ or $v1,$s0,$zero -/* f12334c: 3c0fb200 */ lui $t7,0xb200 -/* f123350: ac820004 */ sw $v0,0x4($a0) -/* f123354: ac6f0000 */ sw $t7,0x0($v1) -/* f123358: afa30174 */ sw $v1,0x174($sp) -/* f12335c: c7ac0394 */ lwc1 $f12,0x394($sp) -/* f123360: 0fc54be8 */ jal func0f152fa0 -/* f123364: 26100008 */ addiu $s0,$s0,0x8 -/* f123368: 8fa30174 */ lw $v1,0x174($sp) -/* f12336c: 02002025 */ or $a0,$s0,$zero -/* f123370: 3c19b400 */ lui $t9,0xb400 -/* f123374: ac620004 */ sw $v0,0x4($v1) -/* f123378: ac990000 */ sw $t9,0x0($a0) -/* f12337c: afa40170 */ sw $a0,0x170($sp) -/* f123380: c7ac0408 */ lwc1 $f12,0x408($sp) -/* f123384: 0fc54be8 */ jal func0f152fa0 -/* f123388: 26100008 */ addiu $s0,$s0,0x8 -/* f12338c: 8fa40170 */ lw $a0,0x170($sp) -/* f123390: 02001825 */ or $v1,$s0,$zero -/* f123394: 3c0eb200 */ lui $t6,0xb200 -/* f123398: ac820004 */ sw $v0,0x4($a0) -/* f12339c: ac6e0000 */ sw $t6,0x0($v1) -/* f1233a0: afa3016c */ sw $v1,0x16c($sp) -/* f1233a4: c7ac038c */ lwc1 $f12,0x38c($sp) -/* f1233a8: 0fc54be8 */ jal func0f152fa0 -/* f1233ac: 26100008 */ addiu $s0,$s0,0x8 -/* f1233b0: 8fa3016c */ lw $v1,0x16c($sp) -/* f1233b4: 8fa80480 */ lw $t0,0x480($sp) -/* f1233b8: 8fa90484 */ lw $t1,0x484($sp) -/* f1233bc: 8fab047c */ lw $t3,0x47c($sp) -/* f1233c0: ac620004 */ sw $v0,0x4($v1) -/* f1233c4: 8fb8049c */ lw $t8,0x49c($sp) -/* f1233c8: c7a00378 */ lwc1 $f0,0x378($sp) -/* f1233cc: 3c017f1b */ lui $at,%hi(var7f1b50ec) -/* f1233d0: 57000004 */ bnezl $t8,.L0f1233e4 -/* f1233d4: c526000c */ lwc1 $f6,0xc($t1) -/* f1233d8: 100002f9 */ b .L0f123fc0 -/* f1233dc: 02001025 */ or $v0,$s0,$zero -/* f1233e0: c526000c */ lwc1 $f6,0xc($t1) -.L0f1233e4: -/* f1233e4: 46003282 */ mul.s $f10,$f6,$f0 -/* f1233e8: e7aa036c */ swc1 $f10,0x36c($sp) -/* f1233ec: c508000c */ lwc1 $f8,0xc($t0) -/* f1233f0: c7b2036c */ lwc1 $f18,0x36c($sp) -/* f1233f4: 46004102 */ mul.s $f4,$f8,$f0 -/* f1233f8: e7a40370 */ swc1 $f4,0x370($sp) -/* f1233fc: c566000c */ lwc1 $f6,0xc($t3) -/* f123400: c7a80370 */ lwc1 $f8,0x370($sp) -/* f123404: 46003282 */ mul.s $f10,$f6,$f0 -/* f123408: 4612403c */ c.lt.s $f8,$f18 -/* f12340c: e7aa0374 */ swc1 $f10,0x374($sp) -/* f123410: 45000002 */ bc1f .L0f12341c -/* f123414: c7a00374 */ lwc1 $f0,0x374($sp) -/* f123418: 46004486 */ mov.s $f18,$f8 -.L0f12341c: -/* f12341c: 4612003c */ c.lt.s $f0,$f18 -/* f123420: 00000000 */ nop -/* f123424: 45000002 */ bc1f .L0f123430 -/* f123428: 00000000 */ nop -/* f12342c: 46000486 */ mov.s $f18,$f0 -.L0f123430: -/* f123430: c42050ec */ lwc1 $f0,%lo(var7f1b50ec)($at) -/* f123434: 3c013f00 */ lui $at,0x3f00 -/* f123438: 44811000 */ mtc1 $at,$f2 -/* f12343c: c5240034 */ lwc1 $f4,0x34($t1) -/* f123440: 46029482 */ mul.s $f18,$f18,$f2 -/* f123444: 00000000 */ nop -/* f123448: 46122182 */ mul.s $f6,$f4,$f18 -/* f12344c: e7a6035c */ swc1 $f6,0x35c($sp) -/* f123450: c50a0034 */ lwc1 $f10,0x34($t0) -/* f123454: 46125202 */ mul.s $f8,$f10,$f18 -/* f123458: c7aa035c */ lwc1 $f10,0x35c($sp) -/* f12345c: e7a80360 */ swc1 $f8,0x360($sp) -/* f123460: c5640034 */ lwc1 $f4,0x34($t3) -/* f123464: 46122182 */ mul.s $f6,$f4,$f18 -/* f123468: e7a60364 */ swc1 $f6,0x364($sp) -/* f12346c: c5280020 */ lwc1 $f8,0x20($t1) -/* f123470: 46085102 */ mul.s $f4,$f10,$f8 -/* f123474: e7a40338 */ swc1 $f4,0x338($sp) -/* f123478: c5260024 */ lwc1 $f6,0x24($t1) -/* f12347c: 4604a03e */ c.le.s $f20,$f4 -/* f123480: 46065202 */ mul.s $f8,$f10,$f6 -/* f123484: 00000000 */ nop -/* f123488: 46005182 */ mul.s $f6,$f10,$f0 -/* f12348c: e7a8033c */ swc1 $f8,0x33c($sp) -/* f123490: c7a80360 */ lwc1 $f8,0x360($sp) -/* f123494: e7a60340 */ swc1 $f6,0x340($sp) -/* f123498: c50a0020 */ lwc1 $f10,0x20($t0) -/* f12349c: 460a4182 */ mul.s $f6,$f8,$f10 -/* f1234a0: e7a60344 */ swc1 $f6,0x344($sp) -/* f1234a4: c50a0024 */ lwc1 $f10,0x24($t0) -/* f1234a8: 460a4182 */ mul.s $f6,$f8,$f10 -/* f1234ac: 00000000 */ nop -/* f1234b0: 46004282 */ mul.s $f10,$f8,$f0 -/* f1234b4: e7a60348 */ swc1 $f6,0x348($sp) -/* f1234b8: c7a60364 */ lwc1 $f6,0x364($sp) -/* f1234bc: e7aa034c */ swc1 $f10,0x34c($sp) -/* f1234c0: c5680020 */ lwc1 $f8,0x20($t3) -/* f1234c4: 46083282 */ mul.s $f10,$f6,$f8 -/* f1234c8: e7aa0350 */ swc1 $f10,0x350($sp) -/* f1234cc: c5680024 */ lwc1 $f8,0x24($t3) -/* f1234d0: 46083282 */ mul.s $f10,$f6,$f8 -/* f1234d4: 00000000 */ nop -/* f1234d8: 46003202 */ mul.s $f8,$f6,$f0 -/* f1234dc: c7a0033c */ lwc1 $f0,0x33c($sp) -/* f1234e0: e7aa0354 */ swc1 $f10,0x354($sp) -/* f1234e4: 45000003 */ bc1f .L0f1234f4 -/* f1234e8: e7a80358 */ swc1 $f8,0x358($sp) -/* f1234ec: 10000003 */ b .L0f1234fc -/* f1234f0: 46002386 */ mov.s $f14,$f4 -.L0f1234f4: -/* f1234f4: c7ae0338 */ lwc1 $f14,0x338($sp) -/* f1234f8: 46007387 */ neg.s $f14,$f14 -.L0f1234fc: -/* f1234fc: 4600a03e */ c.le.s $f20,$f0 -/* f123500: 00000000 */ nop -/* f123504: 45020004 */ bc1fl .L0f123518 -/* f123508: 46000407 */ neg.s $f16,$f0 -/* f12350c: 10000002 */ b .L0f123518 -/* f123510: 46000406 */ mov.s $f16,$f0 -/* f123514: 46000407 */ neg.s $f16,$f0 -.L0f123518: -/* f123518: c7a00344 */ lwc1 $f0,0x344($sp) -/* f12351c: 4600a03e */ c.le.s $f20,$f0 -/* f123520: 00000000 */ nop -/* f123524: 45020004 */ bc1fl .L0f123538 -/* f123528: 46000307 */ neg.s $f12,$f0 -/* f12352c: 10000002 */ b .L0f123538 -/* f123530: 46000306 */ mov.s $f12,$f0 -/* f123534: 46000307 */ neg.s $f12,$f0 -.L0f123538: -/* f123538: 460c703c */ c.lt.s $f14,$f12 -/* f12353c: 00000000 */ nop -/* f123540: 45020009 */ bc1fl .L0f123568 -/* f123544: c7a00348 */ lwc1 $f0,0x348($sp) -/* f123548: 4600a03e */ c.le.s $f20,$f0 -/* f12354c: 00000000 */ nop -/* f123550: 45020004 */ bc1fl .L0f123564 -/* f123554: 46000387 */ neg.s $f14,$f0 -/* f123558: 10000002 */ b .L0f123564 -/* f12355c: 46000386 */ mov.s $f14,$f0 -/* f123560: 46000387 */ neg.s $f14,$f0 -.L0f123564: -/* f123564: c7a00348 */ lwc1 $f0,0x348($sp) -.L0f123568: -/* f123568: 4600a03e */ c.le.s $f20,$f0 -/* f12356c: 00000000 */ nop -/* f123570: 45020004 */ bc1fl .L0f123584 -/* f123574: 46000307 */ neg.s $f12,$f0 -/* f123578: 10000002 */ b .L0f123584 -/* f12357c: 46000306 */ mov.s $f12,$f0 -/* f123580: 46000307 */ neg.s $f12,$f0 -.L0f123584: -/* f123584: 460c803c */ c.lt.s $f16,$f12 -/* f123588: e7b20368 */ swc1 $f18,0x368($sp) -/* f12358c: 4502000b */ bc1fl .L0f1235bc -/* f123590: c7a00350 */ lwc1 $f0,0x350($sp) -/* f123594: 4600a03e */ c.le.s $f20,$f0 -/* f123598: 00000000 */ nop -/* f12359c: 45020005 */ bc1fl .L0f1235b4 -/* f1235a0: 46000407 */ neg.s $f16,$f0 -/* f1235a4: 46000406 */ mov.s $f16,$f0 -/* f1235a8: 10000003 */ b .L0f1235b8 -/* f1235ac: e7b20368 */ swc1 $f18,0x368($sp) -/* f1235b0: 46000407 */ neg.s $f16,$f0 -.L0f1235b4: -/* f1235b4: e7b20368 */ swc1 $f18,0x368($sp) -.L0f1235b8: -/* f1235b8: c7a00350 */ lwc1 $f0,0x350($sp) -.L0f1235bc: -/* f1235bc: 4600a03e */ c.le.s $f20,$f0 -/* f1235c0: 00000000 */ nop -/* f1235c4: 45020004 */ bc1fl .L0f1235d8 -/* f1235c8: 46000307 */ neg.s $f12,$f0 -/* f1235cc: 10000002 */ b .L0f1235d8 -/* f1235d0: 46000306 */ mov.s $f12,$f0 -/* f1235d4: 46000307 */ neg.s $f12,$f0 -.L0f1235d8: -/* f1235d8: 460c703c */ c.lt.s $f14,$f12 -/* f1235dc: e7ae0330 */ swc1 $f14,0x330($sp) -/* f1235e0: 4502000a */ bc1fl .L0f12360c -/* f1235e4: c7a00354 */ lwc1 $f0,0x354($sp) -/* f1235e8: 4600a03e */ c.le.s $f20,$f0 -/* f1235ec: 00000000 */ nop -/* f1235f0: 45020004 */ bc1fl .L0f123604 -/* f1235f4: 46000387 */ neg.s $f14,$f0 -/* f1235f8: 10000003 */ b .L0f123608 -/* f1235fc: e7a00330 */ swc1 $f0,0x330($sp) -/* f123600: 46000387 */ neg.s $f14,$f0 -.L0f123604: -/* f123604: e7ae0330 */ swc1 $f14,0x330($sp) -.L0f123608: -/* f123608: c7a00354 */ lwc1 $f0,0x354($sp) -.L0f12360c: -/* f12360c: 4600a03e */ c.le.s $f20,$f0 -/* f123610: 00000000 */ nop -/* f123614: 45020004 */ bc1fl .L0f123628 -/* f123618: 46000307 */ neg.s $f12,$f0 -/* f12361c: 10000002 */ b .L0f123628 -/* f123620: 46000306 */ mov.s $f12,$f0 -/* f123624: 46000307 */ neg.s $f12,$f0 -.L0f123628: -/* f123628: 460c803c */ c.lt.s $f16,$f12 -/* f12362c: e7b00334 */ swc1 $f16,0x334($sp) -/* f123630: 4502000a */ bc1fl .L0f12365c -/* f123634: c52a0010 */ lwc1 $f10,0x10($t1) -/* f123638: 4600a03e */ c.le.s $f20,$f0 -/* f12363c: 00000000 */ nop -/* f123640: 45020004 */ bc1fl .L0f123654 -/* f123644: 46000407 */ neg.s $f16,$f0 -/* f123648: 10000003 */ b .L0f123658 -/* f12364c: e7a00334 */ swc1 $f0,0x334($sp) -/* f123650: 46000407 */ neg.s $f16,$f0 -.L0f123654: -/* f123654: e7b00334 */ swc1 $f16,0x334($sp) -.L0f123658: -/* f123658: c52a0010 */ lwc1 $f10,0x10($t1) -.L0f12365c: -/* f12365c: 27a402b0 */ addiu $a0,$sp,0x2b0 -/* f123660: 27a602f0 */ addiu $a2,$sp,0x2f0 -/* f123664: 46025180 */ add.s $f6,$f10,$f2 -/* f123668: 27a20310 */ addiu $v0,$sp,0x310 -/* f12366c: 27a30290 */ addiu $v1,$sp,0x290 -/* f123670: 27a502d0 */ addiu $a1,$sp,0x2d0 -/* f123674: e7a60310 */ swc1 $f6,0x310($sp) -/* f123678: c5280014 */ lwc1 $f8,0x14($t1) -/* f12367c: 27a702f0 */ addiu $a3,$sp,0x2f0 -/* f123680: 46024100 */ add.s $f4,$f8,$f2 -/* f123684: e7a40314 */ swc1 $f4,0x314($sp) -/* f123688: c52a0018 */ lwc1 $f10,0x18($t1) -/* f12368c: 46025180 */ add.s $f6,$f10,$f2 -/* f123690: e7a60318 */ swc1 $f6,0x318($sp) -/* f123694: c528001c */ lwc1 $f8,0x1c($t1) -/* f123698: 46024100 */ add.s $f4,$f8,$f2 -/* f12369c: e7a4031c */ swc1 $f4,0x31c($sp) -/* f1236a0: c50a0010 */ lwc1 $f10,0x10($t0) -/* f1236a4: 46025180 */ add.s $f6,$f10,$f2 -/* f1236a8: e7a602f0 */ swc1 $f6,0x2f0($sp) -/* f1236ac: c5080014 */ lwc1 $f8,0x14($t0) -/* f1236b0: 46024100 */ add.s $f4,$f8,$f2 -/* f1236b4: e7a402f4 */ swc1 $f4,0x2f4($sp) -/* f1236b8: c50a0018 */ lwc1 $f10,0x18($t0) -/* f1236bc: 46025180 */ add.s $f6,$f10,$f2 -/* f1236c0: e7a602f8 */ swc1 $f6,0x2f8($sp) -/* f1236c4: c508001c */ lwc1 $f8,0x1c($t0) -/* f1236c8: 46024100 */ add.s $f4,$f8,$f2 -/* f1236cc: e7a402fc */ swc1 $f4,0x2fc($sp) -/* f1236d0: c56a0010 */ lwc1 $f10,0x10($t3) -/* f1236d4: 46025180 */ add.s $f6,$f10,$f2 -/* f1236d8: e7a602d0 */ swc1 $f6,0x2d0($sp) -/* f1236dc: c5680014 */ lwc1 $f8,0x14($t3) -/* f1236e0: 46024100 */ add.s $f4,$f8,$f2 -/* f1236e4: e7a402d4 */ swc1 $f4,0x2d4($sp) -/* f1236e8: c56a0018 */ lwc1 $f10,0x18($t3) -/* f1236ec: 46025180 */ add.s $f6,$f10,$f2 -/* f1236f0: c7aa0338 */ lwc1 $f10,0x338($sp) -/* f1236f4: e7a602d8 */ swc1 $f6,0x2d8($sp) -/* f1236f8: c568001c */ lwc1 $f8,0x1c($t3) -/* f1236fc: e7aa0320 */ swc1 $f10,0x320($sp) -/* f123700: c7a6033c */ lwc1 $f6,0x33c($sp) -/* f123704: 46024100 */ add.s $f4,$f8,$f2 -/* f123708: c7a80340 */ lwc1 $f8,0x340($sp) -/* f12370c: c7aa0348 */ lwc1 $f10,0x348($sp) -/* f123710: e7a60324 */ swc1 $f6,0x324($sp) -/* f123714: e7a402dc */ swc1 $f4,0x2dc($sp) -/* f123718: c7a40344 */ lwc1 $f4,0x344($sp) -/* f12371c: e7a80328 */ swc1 $f8,0x328($sp) -/* f123720: e7aa0304 */ swc1 $f10,0x304($sp) -/* f123724: e7a40300 */ swc1 $f4,0x300($sp) -/* f123728: c7a6034c */ lwc1 $f6,0x34c($sp) -/* f12372c: c7a40354 */ lwc1 $f4,0x354($sp) -/* f123730: c7aa0358 */ lwc1 $f10,0x358($sp) -/* f123734: c7a80350 */ lwc1 $f8,0x350($sp) -/* f123738: e7a60308 */ swc1 $f6,0x308($sp) -/* f12373c: e7a402e4 */ swc1 $f4,0x2e4($sp) -/* f123740: e7aa02e8 */ swc1 $f10,0x2e8($sp) -/* f123744: e7a802e0 */ swc1 $f8,0x2e0($sp) -/* f123748: c5260030 */ lwc1 $f6,0x30($t1) -/* f12374c: 27a90230 */ addiu $t1,$sp,0x230 -/* f123750: e7a6032c */ swc1 $f6,0x32c($sp) -/* f123754: c5080030 */ lwc1 $f8,0x30($t0) -/* f123758: 27a80230 */ addiu $t0,$sp,0x230 -/* f12375c: e7a8030c */ swc1 $f8,0x30c($sp) -/* f123760: c5640030 */ lwc1 $f4,0x30($t3) -/* f123764: e7a402ec */ swc1 $f4,0x2ec($sp) -.L0f123768: -/* f123768: c4400000 */ lwc1 $f0,0x0($v0) -/* f12376c: c4ca0000 */ lwc1 $f10,0x0($a2) -/* f123770: c4a80000 */ lwc1 $f8,0x0($a1) -/* f123774: 24a50004 */ addiu $a1,$a1,0x4 -/* f123778: 46005181 */ sub.s $f6,$f10,$f0 -/* f12377c: 00a7082b */ sltu $at,$a1,$a3 -/* f123780: 24840004 */ addiu $a0,$a0,0x4 -/* f123784: 46004101 */ sub.s $f4,$f8,$f0 -/* f123788: 24c60004 */ addiu $a2,$a2,0x4 -/* f12378c: 24420004 */ addiu $v0,$v0,0x4 -/* f123790: 24630004 */ addiu $v1,$v1,0x4 -/* f123794: e486fffc */ swc1 $f6,-0x4($a0) -/* f123798: 1420fff3 */ bnez $at,.L0f123768 -/* f12379c: e464fffc */ swc1 $f4,-0x4($v1) -/* f1237a0: 27a402b0 */ addiu $a0,$sp,0x2b0 -/* f1237a4: 27a20310 */ addiu $v0,$sp,0x310 -/* f1237a8: 27a30290 */ addiu $v1,$sp,0x290 -/* f1237ac: 27a70250 */ addiu $a3,$sp,0x250 -/* f1237b0: 27a50270 */ addiu $a1,$sp,0x270 -/* f1237b4: 27a60210 */ addiu $a2,$sp,0x210 -/* f1237b8: c7b203c8 */ lwc1 $f18,0x3c8($sp) -.L0f1237bc: -/* f1237bc: c4600000 */ lwc1 $f0,0x0($v1) -/* f1237c0: c7aa03cc */ lwc1 $f10,0x3cc($sp) -/* f1237c4: c4820000 */ lwc1 $f2,0x0($a0) -/* f1237c8: c7a803d4 */ lwc1 $f8,0x3d4($sp) -/* f1237cc: 460a0182 */ mul.s $f6,$f0,$f10 -/* f1237d0: 3c013780 */ lui $at,0x3780 -/* f1237d4: 24c60004 */ addiu $a2,$a2,0x4 -/* f1237d8: 46024102 */ mul.s $f4,$f8,$f2 -/* f1237dc: 44814000 */ mtc1 $at,$f8 -/* f1237e0: 24840004 */ addiu $a0,$a0,0x4 -/* f1237e4: 24420004 */ addiu $v0,$v0,0x4 -/* f1237e8: 24630004 */ addiu $v1,$v1,0x4 -/* f1237ec: 24e70004 */ addiu $a3,$a3,0x4 -/* f1237f0: 24a50004 */ addiu $a1,$a1,0x4 -/* f1237f4: 46043281 */ sub.s $f10,$f6,$f4 -/* f1237f8: 25080004 */ addiu $t0,$t0,0x4 -/* f1237fc: 46085302 */ mul.s $f12,$f10,$f8 -/* f123800: e4ecfffc */ swc1 $f12,-0x4($a3) -/* f123804: c7a603d0 */ lwc1 $f6,0x3d0($sp) -/* f123808: 46061102 */ mul.s $f4,$f2,$f6 -/* f12380c: 44813000 */ mtc1 $at,$f6 -/* f123810: 00c9082b */ sltu $at,$a2,$t1 -/* f123814: 46009282 */ mul.s $f10,$f18,$f0 -/* f123818: 460a2201 */ sub.s $f8,$f4,$f10 -/* f12381c: 46064102 */ mul.s $f4,$f8,$f6 -/* f123820: e4a4fffc */ swc1 $f4,-0x4($a1) -/* f123824: c7aa0440 */ lwc1 $f10,0x440($sp) -/* f123828: c4a6fffc */ lwc1 $f6,-0x4($a1) -/* f12382c: 460a6202 */ mul.s $f8,$f12,$f10 -/* f123830: e468fffc */ swc1 $f8,-0x4($v1) -/* f123834: c7a40440 */ lwc1 $f4,0x440($sp) -/* f123838: c468fffc */ lwc1 $f8,-0x4($v1) -/* f12383c: 46043382 */ mul.s $f14,$f6,$f4 -/* f123840: c444fffc */ lwc1 $f4,-0x4($v0) -/* f123844: e48efffc */ swc1 $f14,-0x4($a0) -/* f123848: c7aa0394 */ lwc1 $f10,0x394($sp) -/* f12384c: 46085182 */ mul.s $f6,$f10,$f8 -/* f123850: 460e3400 */ add.s $f16,$f6,$f14 -/* f123854: e510fffc */ swc1 $f16,-0x4($t0) -/* f123858: c7aa037c */ lwc1 $f10,0x37c($sp) -/* f12385c: 460a8202 */ mul.s $f8,$f16,$f10 -/* f123860: 46082181 */ sub.s $f6,$f4,$f8 -/* f123864: 1420ffd5 */ bnez $at,.L0f1237bc -/* f123868: e4c6fffc */ swc1 $f6,-0x4($a2) -/* f12386c: 0fc54be8 */ jal func0f152fa0 -/* f123870: c7ac0210 */ lwc1 $f12,0x210($sp) -/* f123874: afa20168 */ sw $v0,0x168($sp) -/* f123878: 0fc54be8 */ jal func0f152fa0 -/* f12387c: c7ac0214 */ lwc1 $f12,0x214($sp) -/* f123880: afa20164 */ sw $v0,0x164($sp) -/* f123884: 0fc54be8 */ jal func0f152fa0 -/* f123888: c7ac0218 */ lwc1 $f12,0x218($sp) -/* f12388c: afa20160 */ sw $v0,0x160($sp) -/* f123890: 0fc54be8 */ jal func0f152fa0 -/* f123894: c7ac021c */ lwc1 $f12,0x21c($sp) -/* f123898: afa2015c */ sw $v0,0x15c($sp) -/* f12389c: 0fc54be8 */ jal func0f152fa0 -/* f1238a0: c7ac0290 */ lwc1 $f12,0x290($sp) -/* f1238a4: afa20158 */ sw $v0,0x158($sp) -/* f1238a8: 0fc54be8 */ jal func0f152fa0 -/* f1238ac: c7ac0294 */ lwc1 $f12,0x294($sp) -/* f1238b0: afa20154 */ sw $v0,0x154($sp) -/* f1238b4: 0fc54be8 */ jal func0f152fa0 -/* f1238b8: c7ac0298 */ lwc1 $f12,0x298($sp) -/* f1238bc: afa20150 */ sw $v0,0x150($sp) -/* f1238c0: 0fc54be8 */ jal func0f152fa0 -/* f1238c4: c7ac029c */ lwc1 $f12,0x29c($sp) -/* f1238c8: afa2014c */ sw $v0,0x14c($sp) -/* f1238cc: 0fc54be8 */ jal func0f152fa0 -/* f1238d0: c7ac02b0 */ lwc1 $f12,0x2b0($sp) -/* f1238d4: afa20138 */ sw $v0,0x138($sp) -/* f1238d8: 0fc54be8 */ jal func0f152fa0 -/* f1238dc: c7ac02b4 */ lwc1 $f12,0x2b4($sp) -/* f1238e0: afa20134 */ sw $v0,0x134($sp) -/* f1238e4: 0fc54be8 */ jal func0f152fa0 -/* f1238e8: c7ac02b8 */ lwc1 $f12,0x2b8($sp) -/* f1238ec: afa20130 */ sw $v0,0x130($sp) -/* f1238f0: 0fc54be8 */ jal func0f152fa0 -/* f1238f4: c7ac02bc */ lwc1 $f12,0x2bc($sp) -/* f1238f8: afa2012c */ sw $v0,0x12c($sp) -/* f1238fc: 0fc54be8 */ jal func0f152fa0 -/* f123900: c7ac0230 */ lwc1 $f12,0x230($sp) -/* f123904: afa20148 */ sw $v0,0x148($sp) -/* f123908: 0fc54be8 */ jal func0f152fa0 -/* f12390c: c7ac0234 */ lwc1 $f12,0x234($sp) -/* f123910: afa20144 */ sw $v0,0x144($sp) -/* f123914: 0fc54be8 */ jal func0f152fa0 -/* f123918: c7ac0238 */ lwc1 $f12,0x238($sp) -/* f12391c: c7ac023c */ lwc1 $f12,0x23c($sp) -/* f123920: 0fc54be8 */ jal func0f152fa0 -/* f123924: afa20140 */ sw $v0,0x140($sp) -/* f123928: 8fac0140 */ lw $t4,0x140($sp) -/* f12392c: 8fad015c */ lw $t5,0x15c($sp) -/* f123930: 8fbf0168 */ lw $ra,0x168($sp) -/* f123934: 3c08b400 */ lui $t0,0xb400 -/* f123938: 02001825 */ or $v1,$s0,$zero -/* f12393c: ac680000 */ sw $t0,0x0($v1) -/* f123940: 8fb90164 */ lw $t9,0x164($sp) -/* f123944: 3c09ffff */ lui $t1,0xffff -/* f123948: 03e97824 */ and $t7,$ra,$t1 -/* f12394c: 03297024 */ and $t6,$t9,$t1 -/* f123950: 000ec402 */ srl $t8,$t6,0x10 -/* f123954: 01f8c825 */ or $t9,$t7,$t8 -/* f123958: 26100008 */ addiu $s0,$s0,0x8 -/* f12395c: 3c0ab200 */ lui $t2,0xb200 -/* f123960: ac790004 */ sw $t9,0x4($v1) -/* f123964: 02002025 */ or $a0,$s0,$zero -/* f123968: ac8a0000 */ sw $t2,0x0($a0) -/* f12396c: 8fae0160 */ lw $t6,0x160($sp) -/* f123970: 01a9c024 */ and $t8,$t5,$t1 -/* f123974: 0018cc02 */ srl $t9,$t8,0x10 -/* f123978: 01c97824 */ and $t7,$t6,$t1 -/* f12397c: 01f97025 */ or $t6,$t7,$t9 -/* f123980: 26100008 */ addiu $s0,$s0,0x8 -/* f123984: ac8e0004 */ sw $t6,0x4($a0) -/* f123988: 02002825 */ or $a1,$s0,$zero -/* f12398c: aca80000 */ sw $t0,0x0($a1) -/* f123990: 8fb90154 */ lw $t9,0x154($sp) -/* f123994: 8fb80158 */ lw $t8,0x158($sp) -/* f123998: 26100008 */ addiu $s0,$s0,0x8 -/* f12399c: 03297024 */ and $t6,$t9,$t1 -/* f1239a0: 03097824 */ and $t7,$t8,$t1 -/* f1239a4: 000ec402 */ srl $t8,$t6,0x10 -/* f1239a8: 01f8c825 */ or $t9,$t7,$t8 -/* f1239ac: acb90004 */ sw $t9,0x4($a1) -/* f1239b0: 8fab014c */ lw $t3,0x14c($sp) -/* f1239b4: 02003025 */ or $a2,$s0,$zero -/* f1239b8: acca0000 */ sw $t2,0x0($a2) -/* f1239bc: 8fae0150 */ lw $t6,0x150($sp) -/* f1239c0: 0169c024 */ and $t8,$t3,$t1 -/* f1239c4: 0018cc02 */ srl $t9,$t8,0x10 -/* f1239c8: 01c97824 */ and $t7,$t6,$t1 -/* f1239cc: 01f97025 */ or $t6,$t7,$t9 -/* f1239d0: 26100008 */ addiu $s0,$s0,0x8 -/* f1239d4: acce0004 */ sw $t6,0x4($a2) -/* f1239d8: 02001825 */ or $v1,$s0,$zero -/* f1239dc: ac680000 */ sw $t0,0x0($v1) -/* f1239e0: 8fb90164 */ lw $t9,0x164($sp) -/* f1239e4: 001f7c00 */ sll $t7,$ra,0x10 -/* f1239e8: 26100008 */ addiu $s0,$s0,0x8 -/* f1239ec: 332effff */ andi $t6,$t9,0xffff -/* f1239f0: 01eec025 */ or $t8,$t7,$t6 -/* f1239f4: ac780004 */ sw $t8,0x4($v1) -/* f1239f8: 02002025 */ or $a0,$s0,$zero -/* f1239fc: ac8a0000 */ sw $t2,0x0($a0) -/* f123a00: 8faf0160 */ lw $t7,0x160($sp) -/* f123a04: 31b8ffff */ andi $t8,$t5,0xffff -/* f123a08: 26100008 */ addiu $s0,$s0,0x8 -/* f123a0c: 000f7400 */ sll $t6,$t7,0x10 -/* f123a10: 01d8c825 */ or $t9,$t6,$t8 -/* f123a14: ac990004 */ sw $t9,0x4($a0) -/* f123a18: 02003825 */ or $a3,$s0,$zero -/* f123a1c: ace80000 */ sw $t0,0x0($a3) -/* f123a20: 8fb90154 */ lw $t9,0x154($sp) -/* f123a24: 8fae0158 */ lw $t6,0x158($sp) -/* f123a28: 8fa80148 */ lw $t0,0x148($sp) -/* f123a2c: 332fffff */ andi $t7,$t9,0xffff -/* f123a30: 000ec400 */ sll $t8,$t6,0x10 -/* f123a34: 8fa60144 */ lw $a2,0x144($sp) -/* f123a38: 030f7025 */ or $t6,$t8,$t7 -/* f123a3c: 26100008 */ addiu $s0,$s0,0x8 -/* f123a40: acee0004 */ sw $t6,0x4($a3) -/* f123a44: 02001825 */ or $v1,$s0,$zero -/* f123a48: ac6a0000 */ sw $t2,0x0($v1) -/* f123a4c: 8fb80150 */ lw $t8,0x150($sp) -/* f123a50: 316effff */ andi $t6,$t3,0xffff -/* f123a54: 26100008 */ addiu $s0,$s0,0x8 -/* f123a58: 00187c00 */ sll $t7,$t8,0x10 -/* f123a5c: 01eec825 */ or $t9,$t7,$t6 -/* f123a60: ac790004 */ sw $t9,0x4($v1) -/* f123a64: 3c18b400 */ lui $t8,0xb400 -/* f123a68: 02002025 */ or $a0,$s0,$zero -/* f123a6c: 00c97024 */ and $t6,$a2,$t1 -/* f123a70: 000ecc02 */ srl $t9,$t6,0x10 -/* f123a74: ac980000 */ sw $t8,0x0($a0) -/* f123a78: 01097824 */ and $t7,$t0,$t1 -/* f123a7c: 01f9c025 */ or $t8,$t7,$t9 -/* f123a80: 26100008 */ addiu $s0,$s0,0x8 -/* f123a84: ac980004 */ sw $t8,0x4($a0) -/* f123a88: 02002825 */ or $a1,$s0,$zero -/* f123a8c: 00497824 */ and $t7,$v0,$t1 -/* f123a90: 000fcc02 */ srl $t9,$t7,0x10 -/* f123a94: 01897024 */ and $t6,$t4,$t1 -/* f123a98: 01d9c025 */ or $t8,$t6,$t9 -/* f123a9c: acb80004 */ sw $t8,0x4($a1) -/* f123aa0: acaa0000 */ sw $t2,0x0($a1) -/* f123aa4: 26100008 */ addiu $s0,$s0,0x8 -/* f123aa8: 8fad0130 */ lw $t5,0x130($sp) -/* f123aac: 3c07b400 */ lui $a3,0xb400 -/* f123ab0: 02001825 */ or $v1,$s0,$zero -/* f123ab4: ac670000 */ sw $a3,0x0($v1) -/* f123ab8: 8fb90134 */ lw $t9,0x134($sp) -/* f123abc: 8faf0138 */ lw $t7,0x138($sp) -/* f123ac0: 26100008 */ addiu $s0,$s0,0x8 -/* f123ac4: 0329c024 */ and $t8,$t9,$t1 -/* f123ac8: 01e97024 */ and $t6,$t7,$t1 -/* f123acc: 00187c02 */ srl $t7,$t8,0x10 -/* f123ad0: 01cfc825 */ or $t9,$t6,$t7 -/* f123ad4: ac790004 */ sw $t9,0x4($v1) -/* f123ad8: 3c18b200 */ lui $t8,0xb200 -/* f123adc: 02002025 */ or $a0,$s0,$zero -/* f123ae0: ac980000 */ sw $t8,0x0($a0) -/* f123ae4: 8faf012c */ lw $t7,0x12c($sp) -/* f123ae8: 01a97024 */ and $t6,$t5,$t1 -/* f123aec: 26100008 */ addiu $s0,$s0,0x8 -/* f123af0: 01e9c824 */ and $t9,$t7,$t1 -/* f123af4: 0019c402 */ srl $t8,$t9,0x10 -/* f123af8: 01d87825 */ or $t7,$t6,$t8 -/* f123afc: ac8f0004 */ sw $t7,0x4($a0) -/* f123b00: 02002825 */ or $a1,$s0,$zero -/* f123b04: 00087400 */ sll $t6,$t0,0x10 -/* f123b08: 30d8ffff */ andi $t8,$a2,0xffff -/* f123b0c: 01d87825 */ or $t7,$t6,$t8 -/* f123b10: 26100008 */ addiu $s0,$s0,0x8 -/* f123b14: acaf0004 */ sw $t7,0x4($a1) -/* f123b18: aca70000 */ sw $a3,0x0($a1) -/* f123b1c: 02005825 */ or $t3,$s0,$zero -/* f123b20: 3058ffff */ andi $t8,$v0,0xffff -/* f123b24: 000c7400 */ sll $t6,$t4,0x10 -/* f123b28: 01d87825 */ or $t7,$t6,$t8 -/* f123b2c: 26100008 */ addiu $s0,$s0,0x8 -/* f123b30: 3c1fb200 */ lui $ra,0xb200 -/* f123b34: ad7f0000 */ sw $ra,0x0($t3) -/* f123b38: ad6f0004 */ sw $t7,0x4($t3) -/* f123b3c: 02003825 */ or $a3,$s0,$zero -/* f123b40: 3c19b400 */ lui $t9,0xb400 -/* f123b44: acf90000 */ sw $t9,0x0($a3) -/* f123b48: 8fb90134 */ lw $t9,0x134($sp) -/* f123b4c: 8fb80138 */ lw $t8,0x138($sp) -/* f123b50: 26100008 */ addiu $s0,$s0,0x8 -/* f123b54: 332effff */ andi $t6,$t9,0xffff -/* f123b58: 00187c00 */ sll $t7,$t8,0x10 -/* f123b5c: 01eec025 */ or $t8,$t7,$t6 -/* f123b60: acf80004 */ sw $t8,0x4($a3) -/* f123b64: 02004025 */ or $t0,$s0,$zero -/* f123b68: ad1f0000 */ sw $ra,0x0($t0) -/* f123b6c: 8fae012c */ lw $t6,0x12c($sp) -/* f123b70: 000d7c00 */ sll $t7,$t5,0x10 -/* f123b74: 3c013d00 */ lui $at,0x3d00 -/* f123b78: 31d8ffff */ andi $t8,$t6,0xffff -/* f123b7c: 01f8c825 */ or $t9,$t7,$t8 -/* f123b80: ad190004 */ sw $t9,0x4($t0) -/* f123b84: 44817000 */ mtc1 $at,$f14 -/* f123b88: c7aa0330 */ lwc1 $f10,0x330($sp) -/* f123b8c: c7a80334 */ lwc1 $f8,0x334($sp) -/* f123b90: 26100008 */ addiu $s0,$s0,0x8 -/* f123b94: 460e5102 */ mul.s $f4,$f10,$f14 -/* f123b98: c7aa0368 */ lwc1 $f10,0x368($sp) -/* f123b9c: 27a201d0 */ addiu $v0,$sp,0x1d0 -/* f123ba0: 460e4182 */ mul.s $f6,$f8,$f14 -/* f123ba4: 27a501b0 */ addiu $a1,$sp,0x1b0 -/* f123ba8: 27a601d0 */ addiu $a2,$sp,0x1d0 -/* f123bac: 27a402b0 */ addiu $a0,$sp,0x2b0 -/* f123bb0: e7a40200 */ swc1 $f4,0x200($sp) -/* f123bb4: 460e5102 */ mul.s $f4,$f10,$f14 -/* f123bb8: 27a30290 */ addiu $v1,$sp,0x290 -/* f123bbc: e7a60204 */ swc1 $f6,0x204($sp) -/* f123bc0: 3c013f80 */ lui $at,0x3f80 -/* f123bc4: e7a40208 */ swc1 $f4,0x208($sp) -.L0f123bc8: -/* f123bc8: c4600000 */ lwc1 $f0,0x0($v1) -/* f123bcc: 4600a03e */ c.le.s $f20,$f0 -/* f123bd0: 00000000 */ nop -/* f123bd4: 45020004 */ bc1fl .L0f123be8 -/* f123bd8: 46000307 */ neg.s $f12,$f0 -/* f123bdc: 10000002 */ b .L0f123be8 -/* f123be0: 46000306 */ mov.s $f12,$f0 -/* f123be4: 46000307 */ neg.s $f12,$f0 -.L0f123be8: -/* f123be8: c4820000 */ lwc1 $f2,0x0($a0) -/* f123bec: 460e6202 */ mul.s $f8,$f12,$f14 -/* f123bf0: 4602a03e */ c.le.s $f20,$f2 -/* f123bf4: 00000000 */ nop -/* f123bf8: 45000003 */ bc1f .L0f123c08 -/* f123bfc: e4c80000 */ swc1 $f8,0x0($a2) -/* f123c00: 10000002 */ b .L0f123c0c -/* f123c04: 46001306 */ mov.s $f12,$f2 -.L0f123c08: -/* f123c08: 46001307 */ neg.s $f12,$f2 -.L0f123c0c: -/* f123c0c: 460e6182 */ mul.s $f6,$f12,$f14 -/* f123c10: 24a50004 */ addiu $a1,$a1,0x4 -/* f123c14: 24840004 */ addiu $a0,$a0,0x4 -/* f123c18: 24630004 */ addiu $v1,$v1,0x4 -/* f123c1c: 24c60004 */ addiu $a2,$a2,0x4 -/* f123c20: 14a2ffe9 */ bne $a1,$v0,.L0f123bc8 -/* f123c24: e4a6fffc */ swc1 $f6,-0x4($a1) -/* f123c28: c7a201e0 */ lwc1 $f2,0x1e0($sp) -/* f123c2c: c7aa0200 */ lwc1 $f10,0x200($sp) -/* f123c30: c7ac01e4 */ lwc1 $f12,0x1e4($sp) -/* f123c34: 46021100 */ add.s $f4,$f2,$f2 -/* f123c38: c7a601c0 */ lwc1 $f6,0x1c0($sp) -/* f123c3c: c7ae01e8 */ lwc1 $f14,0x1e8($sp) -/* f123c40: 44811000 */ mtc1 $at,$f2 -/* f123c44: 46045200 */ add.s $f8,$f10,$f4 -/* f123c48: c7aa0204 */ lwc1 $f10,0x204($sp) -/* f123c4c: 3c013a80 */ lui $at,0x3a80 -/* f123c50: 460c6100 */ add.s $f4,$f12,$f12 -/* f123c54: 46083000 */ add.s $f0,$f6,$f8 -/* f123c58: c7a801c4 */ lwc1 $f8,0x1c4($sp) -/* f123c5c: 46045180 */ add.s $f6,$f10,$f4 -/* f123c60: c7aa0208 */ lwc1 $f10,0x208($sp) -/* f123c64: 460e7100 */ add.s $f4,$f14,$f14 -/* f123c68: 46064400 */ add.s $f16,$f8,$f6 -/* f123c6c: c7a601c8 */ lwc1 $f6,0x1c8($sp) -/* f123c70: 46045200 */ add.s $f8,$f10,$f4 -/* f123c74: 44815000 */ mtc1 $at,$f10 -/* f123c78: e7b001a4 */ swc1 $f16,0x1a4($sp) -/* f123c7c: 4610003c */ c.lt.s $f0,$f16 -/* f123c80: 46083480 */ add.s $f18,$f6,$f8 -/* f123c84: 45020004 */ bc1fl .L0f123c98 -/* f123c88: 4612003c */ c.lt.s $f0,$f18 -/* f123c8c: 46008006 */ mov.s $f0,$f16 -/* f123c90: e7b001a4 */ swc1 $f16,0x1a4($sp) -/* f123c94: 4612003c */ c.lt.s $f0,$f18 -.L0f123c98: -/* f123c98: e7b201a8 */ swc1 $f18,0x1a8($sp) -/* f123c9c: 45000003 */ bc1f .L0f123cac -/* f123ca0: 00000000 */ nop -/* f123ca4: 46009006 */ mov.s $f0,$f18 -/* f123ca8: e7b201a8 */ swc1 $f18,0x1a8($sp) -.L0f123cac: -/* f123cac: 460a0002 */ mul.s $f0,$f0,$f10 -/* f123cb0: 4600103c */ c.lt.s $f2,$f0 -/* f123cb4: 00000000 */ nop -/* f123cb8: 45020005 */ bc1fl .L0f123cd0 -/* f123cbc: e7a001a0 */ swc1 $f0,0x1a0($sp) -/* f123cc0: 46001503 */ div.s $f20,$f2,$f0 -/* f123cc4: 10000003 */ b .L0f123cd4 -/* f123cc8: e7a001a0 */ swc1 $f0,0x1a0($sp) -/* f123ccc: e7a001a0 */ swc1 $f0,0x1a0($sp) -.L0f123cd0: -/* f123cd0: 46001506 */ mov.s $f20,$f2 -.L0f123cd4: -/* f123cd4: c7a40220 */ lwc1 $f4,0x220($sp) -/* f123cd8: e7b40190 */ swc1 $f20,0x190($sp) -/* f123cdc: 4604a302 */ mul.s $f12,$f20,$f4 -/* f123ce0: 0fc54be8 */ jal func0f152fa0 -/* f123ce4: 00000000 */ nop -/* f123ce8: c7b40190 */ lwc1 $f20,0x190($sp) -/* f123cec: c7a60224 */ lwc1 $f6,0x224($sp) -/* f123cf0: afa200e8 */ sw $v0,0xe8($sp) -/* f123cf4: 4606a302 */ mul.s $f12,$f20,$f6 -/* f123cf8: 0fc54be8 */ jal func0f152fa0 -/* f123cfc: 00000000 */ nop -/* f123d00: c7b40190 */ lwc1 $f20,0x190($sp) -/* f123d04: c7a80228 */ lwc1 $f8,0x228($sp) -/* f123d08: afa200e4 */ sw $v0,0xe4($sp) -/* f123d0c: 4608a302 */ mul.s $f12,$f20,$f8 -/* f123d10: 0fc54be8 */ jal func0f152fa0 -/* f123d14: 00000000 */ nop -/* f123d18: c7b40190 */ lwc1 $f20,0x190($sp) -/* f123d1c: c7aa02a0 */ lwc1 $f10,0x2a0($sp) -/* f123d20: afa200e0 */ sw $v0,0xe0($sp) -/* f123d24: 460aa302 */ mul.s $f12,$f20,$f10 -/* f123d28: 0fc54be8 */ jal func0f152fa0 -/* f123d2c: 00000000 */ nop -/* f123d30: c7b40190 */ lwc1 $f20,0x190($sp) -/* f123d34: c7a402a4 */ lwc1 $f4,0x2a4($sp) -/* f123d38: afa200d8 */ sw $v0,0xd8($sp) -/* f123d3c: 4604a302 */ mul.s $f12,$f20,$f4 -/* f123d40: 0fc54be8 */ jal func0f152fa0 -/* f123d44: 00000000 */ nop -/* f123d48: c7b40190 */ lwc1 $f20,0x190($sp) -/* f123d4c: c7a602a8 */ lwc1 $f6,0x2a8($sp) -/* f123d50: afa200d4 */ sw $v0,0xd4($sp) -/* f123d54: 4606a302 */ mul.s $f12,$f20,$f6 -/* f123d58: 0fc54be8 */ jal func0f152fa0 -/* f123d5c: 00000000 */ nop -/* f123d60: c7b40190 */ lwc1 $f20,0x190($sp) -/* f123d64: c7a802c0 */ lwc1 $f8,0x2c0($sp) -/* f123d68: afa200d0 */ sw $v0,0xd0($sp) -/* f123d6c: 4608a302 */ mul.s $f12,$f20,$f8 -/* f123d70: 0fc54be8 */ jal func0f152fa0 -/* f123d74: 00000000 */ nop -/* f123d78: c7b40190 */ lwc1 $f20,0x190($sp) -/* f123d7c: c7aa02c4 */ lwc1 $f10,0x2c4($sp) -/* f123d80: afa200b8 */ sw $v0,0xb8($sp) -/* f123d84: 460aa302 */ mul.s $f12,$f20,$f10 -/* f123d88: 0fc54be8 */ jal func0f152fa0 -/* f123d8c: 00000000 */ nop -/* f123d90: c7b40190 */ lwc1 $f20,0x190($sp) -/* f123d94: c7a402c8 */ lwc1 $f4,0x2c8($sp) -/* f123d98: afa200b4 */ sw $v0,0xb4($sp) -/* f123d9c: 4604a302 */ mul.s $f12,$f20,$f4 -/* f123da0: 0fc54be8 */ jal func0f152fa0 -/* f123da4: 00000000 */ nop -/* f123da8: c7b40190 */ lwc1 $f20,0x190($sp) -/* f123dac: c7a60240 */ lwc1 $f6,0x240($sp) -/* f123db0: afa200b0 */ sw $v0,0xb0($sp) -/* f123db4: 4606a302 */ mul.s $f12,$f20,$f6 -/* f123db8: 0fc54be8 */ jal func0f152fa0 -/* f123dbc: 00000000 */ nop -/* f123dc0: c7b40190 */ lwc1 $f20,0x190($sp) -/* f123dc4: c7a80244 */ lwc1 $f8,0x244($sp) -/* f123dc8: afa200c8 */ sw $v0,0xc8($sp) -/* f123dcc: 4608a302 */ mul.s $f12,$f20,$f8 -/* f123dd0: 0fc54be8 */ jal func0f152fa0 -/* f123dd4: 00000000 */ nop -/* f123dd8: c7b40190 */ lwc1 $f20,0x190($sp) -/* f123ddc: c7aa0248 */ lwc1 $f10,0x248($sp) -/* f123de0: afa200c4 */ sw $v0,0xc4($sp) -/* f123de4: 460aa302 */ mul.s $f12,$f20,$f10 -/* f123de8: 0fc54be8 */ jal func0f152fa0 -/* f123dec: 00000000 */ nop -/* f123df0: 8fad00e4 */ lw $t5,0xe4($sp) -/* f123df4: 8fac00e8 */ lw $t4,0xe8($sp) -/* f123df8: 3c09ffff */ lui $t1,0xffff -/* f123dfc: 8fa600c4 */ lw $a2,0xc4($sp) -/* f123e00: 8fbf00e0 */ lw $ra,0xe0($sp) -/* f123e04: 3c0eb400 */ lui $t6,0xb400 -/* f123e08: 01a9c024 */ and $t8,$t5,$t1 -/* f123e0c: 0018cc02 */ srl $t9,$t8,0x10 -/* f123e10: ae0e0000 */ sw $t6,0x0($s0) -/* f123e14: 01897824 */ and $t7,$t4,$t1 -/* f123e18: 01f97025 */ or $t6,$t7,$t9 -/* f123e1c: 26040008 */ addiu $a0,$s0,0x8 -/* f123e20: ae0e0004 */ sw $t6,0x4($s0) -/* f123e24: 3c18b200 */ lui $t8,0xb200 -/* f123e28: 03e97824 */ and $t7,$ra,$t1 -/* f123e2c: ac8f0004 */ sw $t7,0x4($a0) -/* f123e30: ac980000 */ sw $t8,0x0($a0) -/* f123e34: 24850008 */ addiu $a1,$a0,0x8 -/* f123e38: 3c19b400 */ lui $t9,0xb400 -/* f123e3c: acb90000 */ sw $t9,0x0($a1) -/* f123e40: 8faf00d4 */ lw $t7,0xd4($sp) -/* f123e44: 8fae00d8 */ lw $t6,0xd8($sp) -/* f123e48: 24a70008 */ addiu $a3,$a1,0x8 -/* f123e4c: 01e9c824 */ and $t9,$t7,$t1 -/* f123e50: 01c9c024 */ and $t8,$t6,$t1 -/* f123e54: 00197402 */ srl $t6,$t9,0x10 -/* f123e58: 030e7825 */ or $t7,$t8,$t6 -/* f123e5c: acaf0004 */ sw $t7,0x4($a1) -/* f123e60: 8fab00d0 */ lw $t3,0xd0($sp) -/* f123e64: 3c19b200 */ lui $t9,0xb200 -/* f123e68: acf90000 */ sw $t9,0x0($a3) -/* f123e6c: 0169c024 */ and $t8,$t3,$t1 -/* f123e70: acf80004 */ sw $t8,0x4($a3) -/* f123e74: 24e30008 */ addiu $v1,$a3,0x8 -/* f123e78: 3c0eb400 */ lui $t6,0xb400 -/* f123e7c: ac6e0000 */ sw $t6,0x0($v1) -/* f123e80: 31b8ffff */ andi $t8,$t5,0xffff -/* f123e84: 000ccc00 */ sll $t9,$t4,0x10 -/* f123e88: 03387025 */ or $t6,$t9,$t8 -/* f123e8c: ac6e0004 */ sw $t6,0x4($v1) -/* f123e90: 24700008 */ addiu $s0,$v1,0x8 -/* f123e94: 3c0fb200 */ lui $t7,0xb200 -/* f123e98: 001fc400 */ sll $t8,$ra,0x10 -/* f123e9c: ae180004 */ sw $t8,0x4($s0) -/* f123ea0: ae0f0000 */ sw $t7,0x0($s0) -/* f123ea4: 26080008 */ addiu $t0,$s0,0x8 -/* f123ea8: 3c0eb400 */ lui $t6,0xb400 -/* f123eac: ad0e0000 */ sw $t6,0x0($t0) -/* f123eb0: 8fae00d4 */ lw $t6,0xd4($sp) -/* f123eb4: 8fb900d8 */ lw $t9,0xd8($sp) -/* f123eb8: 8fa700c8 */ lw $a3,0xc8($sp) -/* f123ebc: 31cfffff */ andi $t7,$t6,0xffff -/* f123ec0: 0019c400 */ sll $t8,$t9,0x10 -/* f123ec4: 030fc825 */ or $t9,$t8,$t7 -/* f123ec8: ad190004 */ sw $t9,0x4($t0) -/* f123ecc: 25030008 */ addiu $v1,$t0,0x8 -/* f123ed0: 3c0eb200 */ lui $t6,0xb200 -/* f123ed4: 000b7c00 */ sll $t7,$t3,0x10 -/* f123ed8: ac6f0004 */ sw $t7,0x4($v1) -/* f123edc: ac6e0000 */ sw $t6,0x0($v1) -/* f123ee0: 24640008 */ addiu $a0,$v1,0x8 -/* f123ee4: 3c19b400 */ lui $t9,0xb400 -/* f123ee8: 00c9c024 */ and $t8,$a2,$t1 -/* f123eec: 00187c02 */ srl $t7,$t8,0x10 -/* f123ef0: ac990000 */ sw $t9,0x0($a0) -/* f123ef4: 00e97024 */ and $t6,$a3,$t1 -/* f123ef8: 01cfc825 */ or $t9,$t6,$t7 -/* f123efc: ac990004 */ sw $t9,0x4($a0) -/* f123f00: 24850008 */ addiu $a1,$a0,0x8 -/* f123f04: 00497024 */ and $t6,$v0,$t1 -/* f123f08: 3c18b200 */ lui $t8,0xb200 -/* f123f0c: acb80000 */ sw $t8,0x0($a1) -/* f123f10: acae0004 */ sw $t6,0x4($a1) -/* f123f14: 8fa800b4 */ lw $t0,0xb4($sp) -/* f123f18: 8fac00b8 */ lw $t4,0xb8($sp) -/* f123f1c: 00405025 */ or $t2,$v0,$zero -/* f123f20: 24b00008 */ addiu $s0,$a1,0x8 -/* f123f24: 8fab00b0 */ lw $t3,0xb0($sp) -/* f123f28: 02001025 */ or $v0,$s0,$zero -/* f123f2c: 3c0fb400 */ lui $t7,0xb400 -/* f123f30: 0109c024 */ and $t8,$t0,$t1 -/* f123f34: 00187402 */ srl $t6,$t8,0x10 -/* f123f38: ac4f0000 */ sw $t7,0x0($v0) -/* f123f3c: 0189c824 */ and $t9,$t4,$t1 -/* f123f40: 032e7825 */ or $t7,$t9,$t6 -/* f123f44: ac4f0004 */ sw $t7,0x4($v0) -/* f123f48: 26030008 */ addiu $v1,$s0,0x8 -/* f123f4c: 3c18b200 */ lui $t8,0xb200 -/* f123f50: 0169c824 */ and $t9,$t3,$t1 -/* f123f54: ac790004 */ sw $t9,0x4($v1) -/* f123f58: ac780000 */ sw $t8,0x0($v1) -/* f123f5c: 24700008 */ addiu $s0,$v1,0x8 -/* f123f60: 3c0eb400 */ lui $t6,0xb400 -/* f123f64: ae0e0000 */ sw $t6,0x0($s0) -/* f123f68: 30d9ffff */ andi $t9,$a2,0xffff -/* f123f6c: 0007c400 */ sll $t8,$a3,0x10 -/* f123f70: 03197025 */ or $t6,$t8,$t9 -/* f123f74: ae0e0004 */ sw $t6,0x4($s0) -/* f123f78: 26050008 */ addiu $a1,$s0,0x8 -/* f123f7c: 000acc00 */ sll $t9,$t2,0x10 -/* f123f80: acb90004 */ sw $t9,0x4($a1) -/* f123f84: 3c0fb200 */ lui $t7,0xb200 -/* f123f88: acaf0000 */ sw $t7,0x0($a1) -/* f123f8c: 24a30008 */ addiu $v1,$a1,0x8 -/* f123f90: 3c0eb400 */ lui $t6,0xb400 -/* f123f94: ac6e0000 */ sw $t6,0x0($v1) -/* f123f98: 3119ffff */ andi $t9,$t0,0xffff -/* f123f9c: 000cc400 */ sll $t8,$t4,0x10 -/* f123fa0: 03197025 */ or $t6,$t8,$t9 -/* f123fa4: 24640008 */ addiu $a0,$v1,0x8 -/* f123fa8: ac6e0004 */ sw $t6,0x4($v1) -/* f123fac: 3c0fb300 */ lui $t7,0xb300 -/* f123fb0: 000bcc00 */ sll $t9,$t3,0x10 -/* f123fb4: ac990004 */ sw $t9,0x4($a0) -/* f123fb8: ac8f0000 */ sw $t7,0x0($a0) -/* f123fbc: 24820008 */ addiu $v0,$a0,0x8 -.L0f123fc0: -/* f123fc0: 8fbf0024 */ lw $ra,0x24($sp) -/* f123fc4: d7b40018 */ ldc1 $f20,0x18($sp) -/* f123fc8: 8fb00020 */ lw $s0,0x20($sp) -/* f123fcc: 03e00008 */ jr $ra -/* f123fd0: 27bd0488 */ addiu $sp,$sp,0x488 -); - -GLOBAL_ASM( -glabel func0f123fd4 -.late_rodata -glabel var7f1b50f0 -.word 0xc4eac000 -glabel var7f1b50f4 -.word 0xc4eac000 -glabel var7f1b50f8 -.word 0xc4eac000 -glabel var7f1b50fc -.word 0xc4eac000 -glabel var7f1b5100 -.word 0x44eaa000 -glabel var7f1b5104 -.word 0x46fffe00 -.text -/* f123fd4: 27bdfb30 */ addiu $sp,$sp,-1232 -/* f123fd8: afb00020 */ sw $s0,0x20($sp) -/* f123fdc: 00808025 */ or $s0,$a0,$zero -/* f123fe0: afbf0024 */ sw $ra,0x24($sp) -/* f123fe4: afa504d4 */ sw $a1,0x4d4($sp) -/* f123fe8: 00a02025 */ or $a0,$a1,$zero -/* f123fec: f7b40018 */ sdc1 $f20,0x18($sp) -/* f123ff0: afa604d8 */ sw $a2,0x4d8($sp) -/* f123ff4: afa704dc */ sw $a3,0x4dc($sp) -/* f123ff8: 0fc48b3a */ jal func0f122ce8 -/* f123ffc: 00c02825 */ or $a1,$a2,$zero -/* f124000: 14400015 */ bnez $v0,.L0f124058 -/* f124004: 8fa404d8 */ lw $a0,0x4d8($sp) -/* f124008: 0fc48b3a */ jal func0f122ce8 -/* f12400c: 8fa504dc */ lw $a1,0x4dc($sp) -/* f124010: 14400011 */ bnez $v0,.L0f124058 -/* f124014: 8fa404dc */ lw $a0,0x4dc($sp) -/* f124018: 0fc48b3a */ jal func0f122ce8 -/* f12401c: 8fa504d4 */ lw $a1,0x4d4($sp) -/* f124020: 1440000d */ bnez $v0,.L0f124058 -/* f124024: 8fa404e0 */ lw $a0,0x4e0($sp) -/* f124028: 0fc48b3a */ jal func0f122ce8 -/* f12402c: 8fa504d4 */ lw $a1,0x4d4($sp) -/* f124030: 14400009 */ bnez $v0,.L0f124058 -/* f124034: 8fa404e0 */ lw $a0,0x4e0($sp) -/* f124038: 0fc48b3a */ jal func0f122ce8 -/* f12403c: 8fa504d8 */ lw $a1,0x4d8($sp) -/* f124040: 14400005 */ bnez $v0,.L0f124058 -/* f124044: 8fa404e0 */ lw $a0,0x4e0($sp) -/* f124048: 0fc48b3a */ jal func0f122ce8 -/* f12404c: 8fa504dc */ lw $a1,0x4dc($sp) -/* f124050: 10400003 */ beqz $v0,.L0f124060 -/* f124054: c7aa04e4 */ lwc1 $f10,0x4e4($sp) -.L0f124058: -/* f124058: 10000636 */ b .L0f125934 -/* f12405c: 02001025 */ or $v0,$s0,$zero -.L0f124060: -/* f124060: 3c013780 */ lui $at,0x3780 -/* f124064: 44812000 */ mtc1 $at,$f4 -/* f124068: 8fa304d4 */ lw $v1,0x4d4($sp) -/* f12406c: 8fa404dc */ lw $a0,0x4dc($sp) -/* f124070: 46045202 */ mul.s $f8,$f10,$f4 -/* f124074: 8fa904d8 */ lw $t1,0x4d8($sp) -/* f124078: 00603825 */ or $a3,$v1,$zero -/* f12407c: 00804025 */ or $t0,$a0,$zero -/* f124080: 01202825 */ or $a1,$t1,$zero -/* f124084: e7a803c0 */ swc1 $f8,0x3c0($sp) -/* f124088: c46c0028 */ lwc1 $f12,0x28($v1) -/* f12408c: c48a0028 */ lwc1 $f10,0x28($a0) -/* f124090: c460002c */ lwc1 $f0,0x2c($v1) -/* f124094: c52e002c */ lwc1 $f14,0x2c($t1) -/* f124098: 460c5101 */ sub.s $f4,$f10,$f12 -/* f12409c: c5260028 */ lwc1 $f6,0x28($t1) -/* f1240a0: 46007081 */ sub.s $f2,$f14,$f0 -/* f1240a4: e7a404b0 */ swc1 $f4,0x4b0($sp) -/* f1240a8: c494002c */ lwc1 $f20,0x2c($a0) -/* f1240ac: c7a804b0 */ lwc1 $f8,0x4b0($sp) -/* f1240b0: 460c3481 */ sub.s $f18,$f6,$f12 -/* f1240b4: 46024182 */ mul.s $f6,$f8,$f2 -/* f1240b8: 4600a401 */ sub.s $f16,$f20,$f0 -/* f1240bc: 44814000 */ mtc1 $at,$f8 -/* f1240c0: 3c013f80 */ lui $at,0x3f80 -/* f1240c4: 46109282 */ mul.s $f10,$f18,$f16 -/* f1240c8: 4600703c */ c.lt.s $f14,$f0 -/* f1240cc: 460a3101 */ sub.s $f4,$f6,$f10 -/* f1240d0: 44815000 */ mtc1 $at,$f10 -/* f1240d4: 46082182 */ mul.s $f6,$f4,$f8 -/* f1240d8: 46065103 */ div.s $f4,$f10,$f6 -/* f1240dc: e7a60054 */ swc1 $f6,0x54($sp) -/* f1240e0: e7a60488 */ swc1 $f6,0x488($sp) -/* f1240e4: e7a40050 */ swc1 $f4,0x50($sp) -/* f1240e8: 4500000a */ bc1f .L0f124114 -/* f1240ec: e7a40484 */ swc1 $f4,0x484($sp) -/* f1240f0: 3c01bf80 */ lui $at,0xbf80 -/* f1240f4: 44811000 */ mtc1 $at,$f2 -/* f1240f8: 00602825 */ or $a1,$v1,$zero -/* f1240fc: 01203825 */ or $a3,$t1,$zero -/* f124100: 46023302 */ mul.s $f12,$f6,$f2 -/* f124104: 00000000 */ nop -/* f124108: 46022382 */ mul.s $f14,$f4,$f2 -/* f12410c: e7ac0488 */ swc1 $f12,0x488($sp) -/* f124110: e7ae0484 */ swc1 $f14,0x484($sp) -.L0f124114: -/* f124114: c4a0002c */ lwc1 $f0,0x2c($a1) -/* f124118: 3c01bf80 */ lui $at,0xbf80 -/* f12411c: 44811000 */ mtc1 $at,$f2 -/* f124120: 4600a03c */ c.lt.s $f20,$f0 -/* f124124: c7ac0488 */ lwc1 $f12,0x488($sp) -/* f124128: c7ae0484 */ lwc1 $f14,0x484($sp) -/* f12412c: 3c014080 */ lui $at,0x4080 -/* f124130: 45020006 */ bc1fl .L0f12414c -/* f124134: e7ae0484 */ swc1 $f14,0x484($sp) -/* f124138: 00a04025 */ or $t0,$a1,$zero -/* f12413c: 46027382 */ mul.s $f14,$f14,$f2 -/* f124140: 00802825 */ or $a1,$a0,$zero -/* f124144: c480002c */ lwc1 $f0,0x2c($a0) -/* f124148: e7ae0484 */ swc1 $f14,0x484($sp) -.L0f12414c: -/* f12414c: c4e8002c */ lwc1 $f8,0x2c($a3) -/* f124150: 4608003c */ c.lt.s $f0,$f8 -/* f124154: 44810000 */ mtc1 $at,$f0 -/* f124158: 3c013e80 */ lui $at,0x3e80 -/* f12415c: 44813000 */ mtc1 $at,$f6 -/* f124160: 45020007 */ bc1fl .L0f124180 -/* f124164: c4aa0028 */ lwc1 $f10,0x28($a1) -/* f124168: 46027382 */ mul.s $f14,$f14,$f2 -/* f12416c: 00a01025 */ or $v0,$a1,$zero -/* f124170: 00e02825 */ or $a1,$a3,$zero -/* f124174: 00403825 */ or $a3,$v0,$zero -/* f124178: e7ae0484 */ swc1 $f14,0x484($sp) -/* f12417c: c4aa0028 */ lwc1 $f10,0x28($a1) -.L0f124180: -/* f124180: 4480a000 */ mtc1 $zero,$f20 -/* f124184: 3c0644ea */ lui $a2,0x44ea -/* f124188: 46065102 */ mul.s $f4,$f10,$f6 -/* f12418c: e7b40468 */ swc1 $f20,0x468($sp) -/* f124190: 44815000 */ mtc1 $at,$f10 -/* f124194: 34c6a000 */ ori $a2,$a2,0xa000 -/* f124198: e7a40464 */ swc1 $f4,0x464($sp) -/* f12419c: c4e80028 */ lwc1 $f8,0x28($a3) -/* f1241a0: e7b40470 */ swc1 $f20,0x470($sp) -/* f1241a4: 460a4182 */ mul.s $f6,$f8,$f10 -/* f1241a8: 44814000 */ mtc1 $at,$f8 -/* f1241ac: e7a6046c */ swc1 $f6,0x46c($sp) -/* f1241b0: c4e40028 */ lwc1 $f4,0x28($a3) -/* f1241b4: e7b40478 */ swc1 $f20,0x478($sp) -/* f1241b8: e7b40480 */ swc1 $f20,0x480($sp) -/* f1241bc: 46082282 */ mul.s $f10,$f4,$f8 -/* f1241c0: e7b4047c */ swc1 $f20,0x47c($sp) -/* f1241c4: e7aa0474 */ swc1 $f10,0x474($sp) -/* f1241c8: c5060028 */ lwc1 $f6,0x28($t0) -/* f1241cc: e7a6048c */ swc1 $f6,0x48c($sp) -/* f1241d0: c504002c */ lwc1 $f4,0x2c($t0) -/* f1241d4: e7a40490 */ swc1 $f4,0x490($sp) -/* f1241d8: c4a80028 */ lwc1 $f8,0x28($a1) -/* f1241dc: e7a80494 */ swc1 $f8,0x494($sp) -/* f1241e0: c4aa002c */ lwc1 $f10,0x2c($a1) -/* f1241e4: c7a80494 */ lwc1 $f8,0x494($sp) -/* f1241e8: e7aa0498 */ swc1 $f10,0x498($sp) -/* f1241ec: c4e60028 */ lwc1 $f6,0x28($a3) -/* f1241f0: e7a6049c */ swc1 $f6,0x49c($sp) -/* f1241f4: c4e4002c */ lwc1 $f4,0x2c($a3) -/* f1241f8: c7a60498 */ lwc1 $f6,0x498($sp) -/* f1241fc: c7aa049c */ lwc1 $f10,0x49c($sp) -/* f124200: e7a404a0 */ swc1 $f4,0x4a0($sp) -/* f124204: c7a404a0 */ lwc1 $f4,0x4a0($sp) -/* f124208: e7a6002c */ swc1 $f6,0x2c($sp) -/* f12420c: e7a80028 */ swc1 $f8,0x28($sp) -/* f124210: 46043081 */ sub.s $f2,$f6,$f4 -/* f124214: c7a60490 */ lwc1 $f6,0x490($sp) -/* f124218: afa804c4 */ sw $t0,0x4c4($sp) -/* f12421c: 460a4481 */ sub.s $f18,$f8,$f10 -/* f124220: c7a8048c */ lwc1 $f8,0x48c($sp) -/* f124224: afa704cc */ sw $a3,0x4cc($sp) -/* f124228: 46043401 */ sub.s $f16,$f6,$f4 -/* f12422c: c7a40028 */ lwc1 $f4,0x28($sp) -/* f124230: afa504c8 */ sw $a1,0x4c8($sp) -/* f124234: 460a4281 */ sub.s $f10,$f8,$f10 -/* f124238: e7b40440 */ swc1 $f20,0x440($sp) -/* f12423c: e7b4043c */ swc1 $f20,0x43c($sp) -/* f124240: 46044301 */ sub.s $f12,$f8,$f4 -/* f124244: c7a8002c */ lwc1 $f8,0x2c($sp) -/* f124248: 44812000 */ mtc1 $at,$f4 -/* f12424c: e7aa04b0 */ swc1 $f10,0x4b0($sp) -/* f124250: 46083381 */ sub.s $f14,$f6,$f8 -/* f124254: 46046182 */ mul.s $f6,$f12,$f4 -/* f124258: 44814000 */ mtc1 $at,$f8 -/* f12425c: e7ac04a8 */ swc1 $f12,0x4a8($sp) -/* f124260: e7ae04a4 */ swc1 $f14,0x4a4($sp) -/* f124264: 46087102 */ mul.s $f4,$f14,$f8 -/* f124268: e7b40420 */ swc1 $f20,0x420($sp) -/* f12426c: e7b4041c */ swc1 $f20,0x41c($sp) -/* f124270: e7a60424 */ swc1 $f6,0x424($sp) -/* f124274: 44813000 */ mtc1 $at,$f6 -/* f124278: e7b403e4 */ swc1 $f20,0x3e4($sp) -/* f12427c: e7b403ec */ swc1 $f20,0x3ec($sp) -/* f124280: 46069202 */ mul.s $f8,$f18,$f6 -/* f124284: e7a40428 */ swc1 $f4,0x428($sp) -/* f124288: 44812000 */ mtc1 $at,$f4 -/* f12428c: e7b403f4 */ swc1 $f20,0x3f4($sp) -/* f124290: e7b40400 */ swc1 $f20,0x400($sp) -/* f124294: 46041182 */ mul.s $f6,$f2,$f4 -/* f124298: e7b403fc */ swc1 $f20,0x3fc($sp) -/* f12429c: e7a8042c */ swc1 $f8,0x42c($sp) -/* f1242a0: 44814000 */ mtc1 $at,$f8 -/* f1242a4: e7b403c4 */ swc1 $f20,0x3c4($sp) -/* f1242a8: e7b403cc */ swc1 $f20,0x3cc($sp) -/* f1242ac: 46085102 */ mul.s $f4,$f10,$f8 -/* f1242b0: e7a60430 */ swc1 $f6,0x430($sp) -/* f1242b4: 44813000 */ mtc1 $at,$f6 -/* f1242b8: 3c017f1b */ lui $at,%hi(var7f1b50f0) -/* f1242bc: e7b403d4 */ swc1 $f20,0x3d4($sp) -/* f1242c0: 46068202 */ mul.s $f8,$f16,$f6 -/* f1242c4: e7b403e0 */ swc1 $f20,0x3e0($sp) -/* f1242c8: e7a40434 */ swc1 $f4,0x434($sp) -/* f1242cc: 46006102 */ mul.s $f4,$f12,$f0 -/* f1242d0: e7b403dc */ swc1 $f20,0x3dc($sp) -/* f1242d4: 46007182 */ mul.s $f6,$f14,$f0 -/* f1242d8: e7a80438 */ swc1 $f8,0x438($sp) -/* f1242dc: c42e50f0 */ lwc1 $f14,%lo(var7f1b50f0)($at) -/* f1242e0: 46009202 */ mul.s $f8,$f18,$f0 -/* f1242e4: e7a40404 */ swc1 $f4,0x404($sp) -/* f1242e8: 46001102 */ mul.s $f4,$f2,$f0 -/* f1242ec: e7a60408 */ swc1 $f6,0x408($sp) -/* f1242f0: 46005182 */ mul.s $f6,$f10,$f0 -/* f1242f4: e7a8040c */ swc1 $f8,0x40c($sp) -/* f1242f8: 46008202 */ mul.s $f8,$f16,$f0 -/* f1242fc: e7a40410 */ swc1 $f4,0x410($sp) -/* f124300: c7a404a4 */ lwc1 $f4,0x4a4($sp) -/* f124304: e7a60414 */ swc1 $f6,0x414($sp) -/* f124308: 46040183 */ div.s $f6,$f0,$f4 -/* f12430c: e7a80418 */ swc1 $f8,0x418($sp) -/* f124310: 46020203 */ div.s $f8,$f0,$f2 -/* f124314: e7a603e8 */ swc1 $f6,0x3e8($sp) -/* f124318: 46100183 */ div.s $f6,$f0,$f16 -/* f12431c: e7a803f0 */ swc1 $f8,0x3f0($sp) -/* f124320: c7a804a8 */ lwc1 $f8,0x4a8($sp) -/* f124324: 46044303 */ div.s $f12,$f8,$f4 -/* f124328: e7a603f8 */ swc1 $f6,0x3f8($sp) -/* f12432c: 46029183 */ div.s $f6,$f18,$f2 -/* f124330: e7ac03c8 */ swc1 $f12,0x3c8($sp) -/* f124334: 46105203 */ div.s $f8,$f10,$f16 -/* f124338: e7a603d0 */ swc1 $f6,0x3d0($sp) -/* f12433c: 0fc47cf4 */ jal func0f11f3d0 -/* f124340: e7a803d8 */ swc1 $f8,0x3d8($sp) -/* f124344: 3c017f1b */ lui $at,%hi(var7f1b50f4) -/* f124348: 3c0644ea */ lui $a2,0x44ea -/* f12434c: e7a003c8 */ swc1 $f0,0x3c8($sp) -/* f124350: 34c6a000 */ ori $a2,$a2,0xa000 -/* f124354: c42e50f4 */ lwc1 $f14,%lo(var7f1b50f4)($at) -/* f124358: 0fc47cf4 */ jal func0f11f3d0 -/* f12435c: c7ac03d0 */ lwc1 $f12,0x3d0($sp) -/* f124360: 3c017f1b */ lui $at,%hi(var7f1b50f8) -/* f124364: 3c0644ea */ lui $a2,0x44ea -/* f124368: e7a003d0 */ swc1 $f0,0x3d0($sp) -/* f12436c: 34c6a000 */ ori $a2,$a2,0xa000 -/* f124370: c42e50f8 */ lwc1 $f14,%lo(var7f1b50f8)($at) -/* f124374: 0fc47cf4 */ jal func0f11f3d0 -/* f124378: c7ac03d8 */ lwc1 $f12,0x3d8($sp) -/* f12437c: c7a4046c */ lwc1 $f4,0x46c($sp) -/* f124380: c7a60474 */ lwc1 $f6,0x474($sp) -/* f124384: 8fae04d4 */ lw $t6,0x4d4($sp) -/* f124388: 8fb804d8 */ lw $t8,0x4d8($sp) -/* f12438c: e7a003d8 */ swc1 $f0,0x3d8($sp) -/* f124390: e7a4044c */ swc1 $f4,0x44c($sp) -/* f124394: e7a60454 */ swc1 $f6,0x454($sp) -/* f124398: c5ca0028 */ lwc1 $f10,0x28($t6) -/* f12439c: c7080028 */ lwc1 $f8,0x28($t8) -/* f1243a0: 4608503c */ c.lt.s $f10,$f8 -/* f1243a4: 00000000 */ nop -/* f1243a8: 4502009d */ bc1fl .L0f124620 -/* f1243ac: 8fae04dc */ lw $t6,0x4dc($sp) -/* f1243b0: 8fb904dc */ lw $t9,0x4dc($sp) -/* f1243b4: 8faf04e0 */ lw $t7,0x4e0($sp) -/* f1243b8: 3c013f80 */ lui $at,0x3f80 -/* f1243bc: c724002c */ lwc1 $f4,0x2c($t9) -/* f1243c0: c5e6002c */ lwc1 $f6,0x2c($t7) -/* f1243c4: 44814000 */ mtc1 $at,$f8 -/* f1243c8: 46062281 */ sub.s $f10,$f4,$f6 -/* f1243cc: 4608503c */ c.lt.s $f10,$f8 -/* f1243d0: 00000000 */ nop -/* f1243d4: 45000004 */ bc1f .L0f1243e8 -/* f1243d8: 3c017f1b */ lui $at,%hi(var7f1b50fc) -/* f1243dc: c42450fc */ lwc1 $f4,%lo(var7f1b50fc)($at) -/* f1243e0: 10000010 */ b .L0f124424 -/* f1243e4: e7a401bc */ swc1 $f4,0x1bc($sp) -.L0f1243e8: -/* f1243e8: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f1243ec: 00000000 */ nop -/* f1243f0: 8fae04dc */ lw $t6,0x4dc($sp) -/* f1243f4: 8fb804e0 */ lw $t8,0x4e0($sp) -/* f1243f8: 3c013e80 */ lui $at,0x3e80 -/* f1243fc: c5c6002c */ lwc1 $f6,0x2c($t6) -/* f124400: c70a002c */ lwc1 $f10,0x2c($t8) -/* f124404: 44812000 */ mtc1 $at,$f4 -/* f124408: 460a3201 */ sub.s $f8,$f6,$f10 -/* f12440c: 44815000 */ mtc1 $at,$f10 -/* f124410: 46044182 */ mul.s $f6,$f8,$f4 -/* f124414: 460a0201 */ sub.s $f8,$f0,$f10 -/* f124418: 46004107 */ neg.s $f4,$f8 -/* f12441c: 46062283 */ div.s $f10,$f4,$f6 -/* f124420: e7aa01bc */ swc1 $f10,0x1bc($sp) -.L0f124424: -/* f124424: 3c05b400 */ lui $a1,0xb400 -/* f124428: 02001025 */ or $v0,$s0,$zero -/* f12442c: ac450000 */ sw $a1,0x0($v0) -/* f124430: 8fb904dc */ lw $t9,0x4dc($sp) -/* f124434: 444ff800 */ cfc1 $t7,$31 -/* f124438: 240e0001 */ addiu $t6,$zero,0x1 -/* f12443c: 44cef800 */ ctc1 $t6,$31 -/* f124440: c728002c */ lwc1 $f8,0x2c($t9) -/* f124444: 26100008 */ addiu $s0,$s0,0x8 -/* f124448: 02001825 */ or $v1,$s0,$zero -/* f12444c: 46004124 */ cvt.w.s $f4,$f8 -/* f124450: 3c19b200 */ lui $t9,0xb200 -/* f124454: 444ef800 */ cfc1 $t6,$31 -/* f124458: 00000000 */ nop -/* f12445c: 31ce0078 */ andi $t6,$t6,0x78 -/* f124460: 11c00012 */ beqz $t6,.L0f1244ac -/* f124464: 3c014f00 */ lui $at,0x4f00 -/* f124468: 44812000 */ mtc1 $at,$f4 -/* f12446c: 240e0001 */ addiu $t6,$zero,0x1 -/* f124470: 46044101 */ sub.s $f4,$f8,$f4 -/* f124474: 44cef800 */ ctc1 $t6,$31 -/* f124478: 00000000 */ nop -/* f12447c: 46002124 */ cvt.w.s $f4,$f4 -/* f124480: 444ef800 */ cfc1 $t6,$31 -/* f124484: 00000000 */ nop -/* f124488: 31ce0078 */ andi $t6,$t6,0x78 -/* f12448c: 15c00005 */ bnez $t6,.L0f1244a4 -/* f124490: 00000000 */ nop -/* f124494: 440e2000 */ mfc1 $t6,$f4 -/* f124498: 3c018000 */ lui $at,0x8000 -/* f12449c: 10000007 */ b .L0f1244bc -/* f1244a0: 01c17025 */ or $t6,$t6,$at -.L0f1244a4: -/* f1244a4: 10000005 */ b .L0f1244bc -/* f1244a8: 240effff */ addiu $t6,$zero,-1 -.L0f1244ac: -/* f1244ac: 440e2000 */ mfc1 $t6,$f4 -/* f1244b0: 00000000 */ nop -/* f1244b4: 05c0fffb */ bltz $t6,.L0f1244a4 -/* f1244b8: 00000000 */ nop -.L0f1244bc: -/* f1244bc: 3c01ce80 */ lui $at,0xce80 -/* f1244c0: 01c1c025 */ or $t8,$t6,$at -/* f1244c4: ac580004 */ sw $t8,0x4($v0) -/* f1244c8: 44cff800 */ ctc1 $t7,$31 -/* f1244cc: ac790000 */ sw $t9,0x0($v1) -/* f1244d0: 8faf04e0 */ lw $t7,0x4e0($sp) -/* f1244d4: 26100008 */ addiu $s0,$s0,0x8 -/* f1244d8: 02002025 */ or $a0,$s0,$zero -/* f1244dc: c5e6002c */ lwc1 $f6,0x2c($t7) -/* f1244e0: 8faf04d4 */ lw $t7,0x4d4($sp) -/* f1244e4: 26100008 */ addiu $s0,$s0,0x8 -/* f1244e8: 4600328d */ trunc.w.s $f10,$f6 -/* f1244ec: c5e8002c */ lwc1 $f8,0x2c($t7) -/* f1244f0: 4600410d */ trunc.w.s $f4,$f8 -/* f1244f4: 44185000 */ mfc1 $t8,$f10 -/* f1244f8: 00000000 */ nop -/* f1244fc: 0018cc00 */ sll $t9,$t8,0x10 -/* f124500: 44182000 */ mfc1 $t8,$f4 -/* f124504: 00000000 */ nop -/* f124508: 03387825 */ or $t7,$t9,$t8 -/* f12450c: ac6f0004 */ sw $t7,0x4($v1) -/* f124510: ac850000 */ sw $a1,0x0($a0) -/* f124514: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f124518: afa401b0 */ sw $a0,0x1b0($sp) -/* f12451c: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f124520: e7a0005c */ swc1 $f0,0x5c($sp) -/* f124524: c7a6005c */ lwc1 $f6,0x5c($sp) -/* f124528: 3c013e80 */ lui $at,0x3e80 -/* f12452c: 44814000 */ mtc1 $at,$f8 -/* f124530: 46060280 */ add.s $f10,$f0,$f6 -/* f124534: 0fc54be8 */ jal func0f152fa0 -/* f124538: 46085301 */ sub.s $f12,$f10,$f8 -/* f12453c: 8fae01b0 */ lw $t6,0x1b0($sp) -/* f124540: 02001825 */ or $v1,$s0,$zero -/* f124544: 3c19b200 */ lui $t9,0xb200 -/* f124548: adc20004 */ sw $v0,0x4($t6) -/* f12454c: ac790000 */ sw $t9,0x0($v1) -/* f124550: afa301ac */ sw $v1,0x1ac($sp) -/* f124554: c7ac01bc */ lwc1 $f12,0x1bc($sp) -/* f124558: 0fc54be8 */ jal func0f152fa0 -/* f12455c: 26100008 */ addiu $s0,$s0,0x8 -/* f124560: 8fa301ac */ lw $v1,0x1ac($sp) -/* f124564: 02002025 */ or $a0,$s0,$zero -/* f124568: 3c18b400 */ lui $t8,0xb400 -/* f12456c: ac620004 */ sw $v0,0x4($v1) -/* f124570: ac980000 */ sw $t8,0x0($a0) -/* f124574: afa401a8 */ sw $a0,0x1a8($sp) -/* f124578: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f12457c: 26100008 */ addiu $s0,$s0,0x8 -/* f124580: 0fc54be8 */ jal func0f152fa0 -/* f124584: 46000306 */ mov.s $f12,$f0 -/* f124588: 8faf01a8 */ lw $t7,0x1a8($sp) -/* f12458c: 02001825 */ or $v1,$s0,$zero -/* f124590: 3c0eb200 */ lui $t6,0xb200 -/* f124594: ade20004 */ sw $v0,0x4($t7) -/* f124598: ac6e0000 */ sw $t6,0x0($v1) -/* f12459c: afa301a4 */ sw $v1,0x1a4($sp) -/* f1245a0: 26100008 */ addiu $s0,$s0,0x8 -/* f1245a4: 0fc54be8 */ jal func0f152fa0 -/* f1245a8: 4600a306 */ mov.s $f12,$f20 -/* f1245ac: 8fa301a4 */ lw $v1,0x1a4($sp) -/* f1245b0: 02002025 */ or $a0,$s0,$zero -/* f1245b4: 3c19b400 */ lui $t9,0xb400 -/* f1245b8: ac620004 */ sw $v0,0x4($v1) -/* f1245bc: ac990000 */ sw $t9,0x0($a0) -/* f1245c0: afa401a0 */ sw $a0,0x1a0($sp) -/* f1245c4: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f1245c8: 26100008 */ addiu $s0,$s0,0x8 -/* f1245cc: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f1245d0: e7a0005c */ swc1 $f0,0x5c($sp) -/* f1245d4: c7a4005c */ lwc1 $f4,0x5c($sp) -/* f1245d8: 3c013e80 */ lui $at,0x3e80 -/* f1245dc: 44815000 */ mtc1 $at,$f10 -/* f1245e0: 46040180 */ add.s $f6,$f0,$f4 -/* f1245e4: 0fc54be8 */ jal func0f152fa0 -/* f1245e8: 460a3301 */ sub.s $f12,$f6,$f10 -/* f1245ec: 8fb801a0 */ lw $t8,0x1a0($sp) -/* f1245f0: 02001825 */ or $v1,$s0,$zero -/* f1245f4: 3c0fb200 */ lui $t7,0xb200 -/* f1245f8: af020004 */ sw $v0,0x4($t8) -/* f1245fc: ac6f0000 */ sw $t7,0x0($v1) -/* f124600: afa3019c */ sw $v1,0x19c($sp) -/* f124604: 26100008 */ addiu $s0,$s0,0x8 -/* f124608: 0fc54be8 */ jal func0f152fa0 -/* f12460c: 4600a306 */ mov.s $f12,$f20 -/* f124610: 8fa3019c */ lw $v1,0x19c($sp) -/* f124614: 10000094 */ b .L0f124868 -/* f124618: ac620004 */ sw $v0,0x4($v1) -/* f12461c: 8fae04dc */ lw $t6,0x4dc($sp) -.L0f124620: -/* f124620: 8fb904e0 */ lw $t9,0x4e0($sp) -/* f124624: 3c013f80 */ lui $at,0x3f80 -/* f124628: c5c8002c */ lwc1 $f8,0x2c($t6) -/* f12462c: c724002c */ lwc1 $f4,0x2c($t9) -/* f124630: 44815000 */ mtc1 $at,$f10 -/* f124634: 46044181 */ sub.s $f6,$f8,$f4 -/* f124638: 460a303c */ c.lt.s $f6,$f10 -/* f12463c: 00000000 */ nop -/* f124640: 45000003 */ bc1f .L0f124650 -/* f124644: 3c017f1b */ lui $at,%hi(var7f1b5100) -/* f124648: 1000000e */ b .L0f124684 -/* f12464c: c42e5100 */ lwc1 $f14,%lo(var7f1b5100)($at) -.L0f124650: -/* f124650: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f124654: 00000000 */ nop -/* f124658: 8fb804dc */ lw $t8,0x4dc($sp) -/* f12465c: 8faf04e0 */ lw $t7,0x4e0($sp) -/* f124660: 3c013e80 */ lui $at,0x3e80 -/* f124664: c708002c */ lwc1 $f8,0x2c($t8) -/* f124668: c5e4002c */ lwc1 $f4,0x2c($t7) -/* f12466c: 44815000 */ mtc1 $at,$f10 -/* f124670: 46044181 */ sub.s $f6,$f8,$f4 -/* f124674: 44812000 */ mtc1 $at,$f4 -/* f124678: 460a3202 */ mul.s $f8,$f6,$f10 -/* f12467c: 46040181 */ sub.s $f6,$f0,$f4 -/* f124680: 46083383 */ div.s $f14,$f6,$f8 -.L0f124684: -/* f124684: 02001025 */ or $v0,$s0,$zero -/* f124688: 3c0eb400 */ lui $t6,0xb400 -/* f12468c: ac4e0000 */ sw $t6,0x0($v0) -/* f124690: 8fb904dc */ lw $t9,0x4dc($sp) -/* f124694: 4458f800 */ cfc1 $t8,$31 -/* f124698: 240f0001 */ addiu $t7,$zero,0x1 -/* f12469c: 44cff800 */ ctc1 $t7,$31 -/* f1246a0: c72a002c */ lwc1 $f10,0x2c($t9) -/* f1246a4: 26100008 */ addiu $s0,$s0,0x8 -/* f1246a8: 02001825 */ or $v1,$s0,$zero -/* f1246ac: 46005124 */ cvt.w.s $f4,$f10 -/* f1246b0: 3c19b200 */ lui $t9,0xb200 -/* f1246b4: 444ff800 */ cfc1 $t7,$31 -/* f1246b8: 00000000 */ nop -/* f1246bc: 31ef0078 */ andi $t7,$t7,0x78 -/* f1246c0: 11e00012 */ beqz $t7,.L0f12470c -/* f1246c4: 3c014f00 */ lui $at,0x4f00 -/* f1246c8: 44812000 */ mtc1 $at,$f4 -/* f1246cc: 240f0001 */ addiu $t7,$zero,0x1 -/* f1246d0: 46045101 */ sub.s $f4,$f10,$f4 -/* f1246d4: 44cff800 */ ctc1 $t7,$31 -/* f1246d8: 00000000 */ nop -/* f1246dc: 46002124 */ cvt.w.s $f4,$f4 -/* f1246e0: 444ff800 */ cfc1 $t7,$31 -/* f1246e4: 00000000 */ nop -/* f1246e8: 31ef0078 */ andi $t7,$t7,0x78 -/* f1246ec: 15e00005 */ bnez $t7,.L0f124704 -/* f1246f0: 00000000 */ nop -/* f1246f4: 440f2000 */ mfc1 $t7,$f4 -/* f1246f8: 3c018000 */ lui $at,0x8000 -/* f1246fc: 10000007 */ b .L0f12471c -/* f124700: 01e17825 */ or $t7,$t7,$at -.L0f124704: -/* f124704: 10000005 */ b .L0f12471c -/* f124708: 240fffff */ addiu $t7,$zero,-1 -.L0f12470c: -/* f12470c: 440f2000 */ mfc1 $t7,$f4 -/* f124710: 00000000 */ nop -/* f124714: 05e0fffb */ bltz $t7,.L0f124704 -/* f124718: 00000000 */ nop -.L0f12471c: -/* f12471c: 3c01ce00 */ lui $at,0xce00 -/* f124720: 01e17025 */ or $t6,$t7,$at -/* f124724: ac4e0004 */ sw $t6,0x4($v0) -/* f124728: 44d8f800 */ ctc1 $t8,$31 -/* f12472c: ac790000 */ sw $t9,0x0($v1) -/* f124730: 8fb804e0 */ lw $t8,0x4e0($sp) -/* f124734: 26100008 */ addiu $s0,$s0,0x8 -/* f124738: 02002025 */ or $a0,$s0,$zero -/* f12473c: c706002c */ lwc1 $f6,0x2c($t8) -/* f124740: 8fb804d4 */ lw $t8,0x4d4($sp) -/* f124744: 3c0fb400 */ lui $t7,0xb400 -/* f124748: 4600320d */ trunc.w.s $f8,$f6 -/* f12474c: c70a002c */ lwc1 $f10,0x2c($t8) -/* f124750: 26100008 */ addiu $s0,$s0,0x8 -/* f124754: 4600510d */ trunc.w.s $f4,$f10 -/* f124758: 440e4000 */ mfc1 $t6,$f8 -/* f12475c: 00000000 */ nop -/* f124760: 000ecc00 */ sll $t9,$t6,0x10 -/* f124764: 440e2000 */ mfc1 $t6,$f4 -/* f124768: 00000000 */ nop -/* f12476c: 032ec025 */ or $t8,$t9,$t6 -/* f124770: ac780004 */ sw $t8,0x4($v1) -/* f124774: ac8f0000 */ sw $t7,0x0($a0) -/* f124778: e7ae0198 */ swc1 $f14,0x198($sp) -/* f12477c: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f124780: afa4018c */ sw $a0,0x18c($sp) -/* f124784: 0fc54be8 */ jal func0f152fa0 -/* f124788: 46000306 */ mov.s $f12,$f0 -/* f12478c: 8fb9018c */ lw $t9,0x18c($sp) -/* f124790: c7ac0198 */ lwc1 $f12,0x198($sp) -/* f124794: 02001825 */ or $v1,$s0,$zero -/* f124798: 3c0eb200 */ lui $t6,0xb200 -/* f12479c: af220004 */ sw $v0,0x4($t9) -/* f1247a0: ac6e0000 */ sw $t6,0x0($v1) -/* f1247a4: afa30188 */ sw $v1,0x188($sp) -/* f1247a8: 0fc54be8 */ jal func0f152fa0 -/* f1247ac: 26100008 */ addiu $s0,$s0,0x8 -/* f1247b0: 8fa30188 */ lw $v1,0x188($sp) -/* f1247b4: 02002025 */ or $a0,$s0,$zero -/* f1247b8: 3c18b400 */ lui $t8,0xb400 -/* f1247bc: ac620004 */ sw $v0,0x4($v1) -/* f1247c0: ac980000 */ sw $t8,0x0($a0) -/* f1247c4: afa40184 */ sw $a0,0x184($sp) -/* f1247c8: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f1247cc: 26100008 */ addiu $s0,$s0,0x8 -/* f1247d0: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f1247d4: e7a0005c */ swc1 $f0,0x5c($sp) -/* f1247d8: c7a6005c */ lwc1 $f6,0x5c($sp) -/* f1247dc: 3c013e80 */ lui $at,0x3e80 -/* f1247e0: 44815000 */ mtc1 $at,$f10 -/* f1247e4: 46060200 */ add.s $f8,$f0,$f6 -/* f1247e8: 0fc54be8 */ jal func0f152fa0 -/* f1247ec: 460a4301 */ sub.s $f12,$f8,$f10 -/* f1247f0: 8faf0184 */ lw $t7,0x184($sp) -/* f1247f4: 02001825 */ or $v1,$s0,$zero -/* f1247f8: 3c19b200 */ lui $t9,0xb200 -/* f1247fc: ade20004 */ sw $v0,0x4($t7) -/* f124800: ac790000 */ sw $t9,0x0($v1) -/* f124804: afa30180 */ sw $v1,0x180($sp) -/* f124808: 26100008 */ addiu $s0,$s0,0x8 -/* f12480c: 0fc54be8 */ jal func0f152fa0 -/* f124810: 4600a306 */ mov.s $f12,$f20 -/* f124814: 8fa30180 */ lw $v1,0x180($sp) -/* f124818: 02002025 */ or $a0,$s0,$zero -/* f12481c: 3c0eb400 */ lui $t6,0xb400 -/* f124820: ac620004 */ sw $v0,0x4($v1) -/* f124824: ac8e0000 */ sw $t6,0x0($a0) -/* f124828: afa4017c */ sw $a0,0x17c($sp) -/* f12482c: 0fc2d5fe */ jal currentPlayerGetScreenLeft -/* f124830: 26100008 */ addiu $s0,$s0,0x8 -/* f124834: 0fc54be8 */ jal func0f152fa0 -/* f124838: 46000306 */ mov.s $f12,$f0 -/* f12483c: 8fb8017c */ lw $t8,0x17c($sp) -/* f124840: 02001825 */ or $v1,$s0,$zero -/* f124844: 3c0fb200 */ lui $t7,0xb200 -/* f124848: af020004 */ sw $v0,0x4($t8) -/* f12484c: ac6f0000 */ sw $t7,0x0($v1) -/* f124850: afa30178 */ sw $v1,0x178($sp) -/* f124854: 26100008 */ addiu $s0,$s0,0x8 -/* f124858: 0fc54be8 */ jal func0f152fa0 -/* f12485c: 4600a306 */ mov.s $f12,$f20 -/* f124860: 8fa30178 */ lw $v1,0x178($sp) -/* f124864: ac620004 */ sw $v0,0x4($v1) -.L0f124868: -/* f124868: 8fa804cc */ lw $t0,0x4cc($sp) -/* f12486c: c7a003c0 */ lwc1 $f0,0x3c0($sp) -/* f124870: 8fa704c8 */ lw $a3,0x4c8($sp) -/* f124874: c504000c */ lwc1 $f4,0xc($t0) -/* f124878: 8fa904c4 */ lw $t1,0x4c4($sp) -/* f12487c: 8fab04e0 */ lw $t3,0x4e0($sp) -/* f124880: 46002182 */ mul.s $f6,$f4,$f0 -/* f124884: 3c017f1b */ lui $at,%hi(var7f1b5104) -/* f124888: e7a603b0 */ swc1 $f6,0x3b0($sp) -/* f12488c: c4e8000c */ lwc1 $f8,0xc($a3) -/* f124890: c7b003b0 */ lwc1 $f16,0x3b0($sp) -/* f124894: 46004282 */ mul.s $f10,$f8,$f0 -/* f124898: e7aa03b4 */ swc1 $f10,0x3b4($sp) -/* f12489c: c524000c */ lwc1 $f4,0xc($t1) -/* f1248a0: 46002182 */ mul.s $f6,$f4,$f0 -/* f1248a4: c7a403b4 */ lwc1 $f4,0x3b4($sp) -/* f1248a8: 4610203c */ c.lt.s $f4,$f16 -/* f1248ac: e7a603b8 */ swc1 $f6,0x3b8($sp) -/* f1248b0: c568000c */ lwc1 $f8,0xc($t3) -/* f1248b4: 46004282 */ mul.s $f10,$f8,$f0 -/* f1248b8: c7a003b8 */ lwc1 $f0,0x3b8($sp) -/* f1248bc: 45000002 */ bc1f .L0f1248c8 -/* f1248c0: e7aa03bc */ swc1 $f10,0x3bc($sp) -/* f1248c4: 46002406 */ mov.s $f16,$f4 -.L0f1248c8: -/* f1248c8: 4610003c */ c.lt.s $f0,$f16 -/* f1248cc: 00000000 */ nop -/* f1248d0: 45020003 */ bc1fl .L0f1248e0 -/* f1248d4: c7a003bc */ lwc1 $f0,0x3bc($sp) -/* f1248d8: 46000406 */ mov.s $f16,$f0 -/* f1248dc: c7a003bc */ lwc1 $f0,0x3bc($sp) -.L0f1248e0: -/* f1248e0: 4610003c */ c.lt.s $f0,$f16 -/* f1248e4: 00000000 */ nop -/* f1248e8: 45000002 */ bc1f .L0f1248f4 -/* f1248ec: 00000000 */ nop -/* f1248f0: 46000406 */ mov.s $f16,$f0 -.L0f1248f4: -/* f1248f4: c4205104 */ lwc1 $f0,%lo(var7f1b5104)($at) -/* f1248f8: 3c013f00 */ lui $at,0x3f00 -/* f1248fc: 44813000 */ mtc1 $at,$f6 -/* f124900: c5080034 */ lwc1 $f8,0x34($t0) -/* f124904: 46068402 */ mul.s $f16,$f16,$f6 -/* f124908: 00000000 */ nop -/* f12490c: 46104282 */ mul.s $f10,$f8,$f16 -/* f124910: e7aa039c */ swc1 $f10,0x39c($sp) -/* f124914: c4e40034 */ lwc1 $f4,0x34($a3) -/* f124918: 46102182 */ mul.s $f6,$f4,$f16 -/* f12491c: e7a603a0 */ swc1 $f6,0x3a0($sp) -/* f124920: c5280034 */ lwc1 $f8,0x34($t1) -/* f124924: 46104282 */ mul.s $f10,$f8,$f16 -/* f124928: c7a8039c */ lwc1 $f8,0x39c($sp) -/* f12492c: e7aa03a4 */ swc1 $f10,0x3a4($sp) -/* f124930: c5640034 */ lwc1 $f4,0x34($t3) -/* f124934: 46102182 */ mul.s $f6,$f4,$f16 -/* f124938: e7a603a8 */ swc1 $f6,0x3a8($sp) -/* f12493c: c50a0020 */ lwc1 $f10,0x20($t0) -/* f124940: 460a4102 */ mul.s $f4,$f8,$f10 -/* f124944: e7a4036c */ swc1 $f4,0x36c($sp) -/* f124948: c5060024 */ lwc1 $f6,0x24($t0) -/* f12494c: 4604a03e */ c.le.s $f20,$f4 -/* f124950: 46064282 */ mul.s $f10,$f8,$f6 -/* f124954: 00000000 */ nop -/* f124958: 46004182 */ mul.s $f6,$f8,$f0 -/* f12495c: e7aa0370 */ swc1 $f10,0x370($sp) -/* f124960: c7aa03a0 */ lwc1 $f10,0x3a0($sp) -/* f124964: e7a60374 */ swc1 $f6,0x374($sp) -/* f124968: c4e80020 */ lwc1 $f8,0x20($a3) -/* f12496c: 46085182 */ mul.s $f6,$f10,$f8 -/* f124970: e7a60378 */ swc1 $f6,0x378($sp) -/* f124974: c4e80024 */ lwc1 $f8,0x24($a3) -/* f124978: 46085182 */ mul.s $f6,$f10,$f8 -/* f12497c: 00000000 */ nop -/* f124980: 46005202 */ mul.s $f8,$f10,$f0 -/* f124984: e7a6037c */ swc1 $f6,0x37c($sp) -/* f124988: c7a603a4 */ lwc1 $f6,0x3a4($sp) -/* f12498c: e7a80380 */ swc1 $f8,0x380($sp) -/* f124990: c52a0020 */ lwc1 $f10,0x20($t1) -/* f124994: 460a3202 */ mul.s $f8,$f6,$f10 -/* f124998: e7a80384 */ swc1 $f8,0x384($sp) -/* f12499c: c52a0024 */ lwc1 $f10,0x24($t1) -/* f1249a0: 460a3202 */ mul.s $f8,$f6,$f10 -/* f1249a4: 00000000 */ nop -/* f1249a8: 46003282 */ mul.s $f10,$f6,$f0 -/* f1249ac: e7a80388 */ swc1 $f8,0x388($sp) -/* f1249b0: c7a803a8 */ lwc1 $f8,0x3a8($sp) -/* f1249b4: e7aa038c */ swc1 $f10,0x38c($sp) -/* f1249b8: c5660020 */ lwc1 $f6,0x20($t3) -/* f1249bc: 46064282 */ mul.s $f10,$f8,$f6 -/* f1249c0: c7a803a8 */ lwc1 $f8,0x3a8($sp) -/* f1249c4: e7aa0390 */ swc1 $f10,0x390($sp) -/* f1249c8: c5660024 */ lwc1 $f6,0x24($t3) -/* f1249cc: 46064282 */ mul.s $f10,$f8,$f6 -/* f1249d0: c7a803a8 */ lwc1 $f8,0x3a8($sp) -/* f1249d4: 46004182 */ mul.s $f6,$f8,$f0 -/* f1249d8: c7a00370 */ lwc1 $f0,0x370($sp) -/* f1249dc: e7aa0394 */ swc1 $f10,0x394($sp) -/* f1249e0: 45000003 */ bc1f .L0f1249f0 -/* f1249e4: e7a60398 */ swc1 $f6,0x398($sp) -/* f1249e8: 10000003 */ b .L0f1249f8 -/* f1249ec: 46002086 */ mov.s $f2,$f4 -.L0f1249f0: -/* f1249f0: c7a2036c */ lwc1 $f2,0x36c($sp) -/* f1249f4: 46001087 */ neg.s $f2,$f2 -.L0f1249f8: -/* f1249f8: 4600a03e */ c.le.s $f20,$f0 -/* f1249fc: 00000000 */ nop -/* f124a00: 45020004 */ bc1fl .L0f124a14 -/* f124a04: 46000387 */ neg.s $f14,$f0 -/* f124a08: 10000002 */ b .L0f124a14 -/* f124a0c: 46000386 */ mov.s $f14,$f0 -/* f124a10: 46000387 */ neg.s $f14,$f0 -.L0f124a14: -/* f124a14: c7a00378 */ lwc1 $f0,0x378($sp) -/* f124a18: 4600a03e */ c.le.s $f20,$f0 -/* f124a1c: 00000000 */ nop -/* f124a20: 45020004 */ bc1fl .L0f124a34 -/* f124a24: 46000307 */ neg.s $f12,$f0 -/* f124a28: 10000002 */ b .L0f124a34 -/* f124a2c: 46000306 */ mov.s $f12,$f0 -/* f124a30: 46000307 */ neg.s $f12,$f0 -.L0f124a34: -/* f124a34: 460c103c */ c.lt.s $f2,$f12 -/* f124a38: 00000000 */ nop -/* f124a3c: 45020009 */ bc1fl .L0f124a64 -/* f124a40: c7a0037c */ lwc1 $f0,0x37c($sp) -/* f124a44: 4600a03e */ c.le.s $f20,$f0 -/* f124a48: 00000000 */ nop -/* f124a4c: 45020004 */ bc1fl .L0f124a60 -/* f124a50: 46000087 */ neg.s $f2,$f0 -/* f124a54: 10000002 */ b .L0f124a60 -/* f124a58: 46000086 */ mov.s $f2,$f0 -/* f124a5c: 46000087 */ neg.s $f2,$f0 -.L0f124a60: -/* f124a60: c7a0037c */ lwc1 $f0,0x37c($sp) -.L0f124a64: -/* f124a64: 4600a03e */ c.le.s $f20,$f0 -/* f124a68: 00000000 */ nop -/* f124a6c: 45020004 */ bc1fl .L0f124a80 -/* f124a70: 46000307 */ neg.s $f12,$f0 -/* f124a74: 10000002 */ b .L0f124a80 -/* f124a78: 46000306 */ mov.s $f12,$f0 -/* f124a7c: 46000307 */ neg.s $f12,$f0 -.L0f124a80: -/* f124a80: 460c703c */ c.lt.s $f14,$f12 -/* f124a84: e7b003ac */ swc1 $f16,0x3ac($sp) -/* f124a88: 4502000b */ bc1fl .L0f124ab8 -/* f124a8c: c7a00384 */ lwc1 $f0,0x384($sp) -/* f124a90: 4600a03e */ c.le.s $f20,$f0 -/* f124a94: 00000000 */ nop -/* f124a98: 45020005 */ bc1fl .L0f124ab0 -/* f124a9c: 46000387 */ neg.s $f14,$f0 -/* f124aa0: 46000386 */ mov.s $f14,$f0 -/* f124aa4: 10000003 */ b .L0f124ab4 -/* f124aa8: e7b003ac */ swc1 $f16,0x3ac($sp) -/* f124aac: 46000387 */ neg.s $f14,$f0 -.L0f124ab0: -/* f124ab0: e7b003ac */ swc1 $f16,0x3ac($sp) -.L0f124ab4: -/* f124ab4: c7a00384 */ lwc1 $f0,0x384($sp) -.L0f124ab8: -/* f124ab8: 4600a03e */ c.le.s $f20,$f0 -/* f124abc: 00000000 */ nop -/* f124ac0: 45020004 */ bc1fl .L0f124ad4 -/* f124ac4: 46000307 */ neg.s $f12,$f0 -/* f124ac8: 10000002 */ b .L0f124ad4 -/* f124acc: 46000306 */ mov.s $f12,$f0 -/* f124ad0: 46000307 */ neg.s $f12,$f0 -.L0f124ad4: -/* f124ad4: 460c103c */ c.lt.s $f2,$f12 -/* f124ad8: 00000000 */ nop -/* f124adc: 45020009 */ bc1fl .L0f124b04 -/* f124ae0: c7a00388 */ lwc1 $f0,0x388($sp) -/* f124ae4: 4600a03e */ c.le.s $f20,$f0 -/* f124ae8: 00000000 */ nop -/* f124aec: 45020004 */ bc1fl .L0f124b00 -/* f124af0: 46000087 */ neg.s $f2,$f0 -/* f124af4: 10000002 */ b .L0f124b00 -/* f124af8: 46000086 */ mov.s $f2,$f0 -/* f124afc: 46000087 */ neg.s $f2,$f0 -.L0f124b00: -/* f124b00: c7a00388 */ lwc1 $f0,0x388($sp) -.L0f124b04: -/* f124b04: 4600a03e */ c.le.s $f20,$f0 -/* f124b08: 00000000 */ nop -/* f124b0c: 45020004 */ bc1fl .L0f124b20 -/* f124b10: 46000307 */ neg.s $f12,$f0 -/* f124b14: 10000002 */ b .L0f124b20 -/* f124b18: 46000306 */ mov.s $f12,$f0 -/* f124b1c: 46000307 */ neg.s $f12,$f0 -.L0f124b20: -/* f124b20: 460c703c */ c.lt.s $f14,$f12 -/* f124b24: 00000000 */ nop -/* f124b28: 45020009 */ bc1fl .L0f124b50 -/* f124b2c: c7a00390 */ lwc1 $f0,0x390($sp) -/* f124b30: 4600a03e */ c.le.s $f20,$f0 -/* f124b34: 00000000 */ nop -/* f124b38: 45020004 */ bc1fl .L0f124b4c -/* f124b3c: 46000387 */ neg.s $f14,$f0 -/* f124b40: 10000002 */ b .L0f124b4c -/* f124b44: 46000386 */ mov.s $f14,$f0 -/* f124b48: 46000387 */ neg.s $f14,$f0 -.L0f124b4c: -/* f124b4c: c7a00390 */ lwc1 $f0,0x390($sp) -.L0f124b50: -/* f124b50: 4600a03e */ c.le.s $f20,$f0 -/* f124b54: 00000000 */ nop -/* f124b58: 45020004 */ bc1fl .L0f124b6c -/* f124b5c: 46000307 */ neg.s $f12,$f0 -/* f124b60: 10000002 */ b .L0f124b6c -/* f124b64: 46000306 */ mov.s $f12,$f0 -/* f124b68: 46000307 */ neg.s $f12,$f0 -.L0f124b6c: -/* f124b6c: 460c103c */ c.lt.s $f2,$f12 -/* f124b70: e7a20364 */ swc1 $f2,0x364($sp) -/* f124b74: 4502000a */ bc1fl .L0f124ba0 -/* f124b78: c7a00394 */ lwc1 $f0,0x394($sp) -/* f124b7c: 4600a03e */ c.le.s $f20,$f0 -/* f124b80: 00000000 */ nop -/* f124b84: 45020004 */ bc1fl .L0f124b98 -/* f124b88: 46000087 */ neg.s $f2,$f0 -/* f124b8c: 10000003 */ b .L0f124b9c -/* f124b90: e7a00364 */ swc1 $f0,0x364($sp) -/* f124b94: 46000087 */ neg.s $f2,$f0 -.L0f124b98: -/* f124b98: e7a20364 */ swc1 $f2,0x364($sp) -.L0f124b9c: -/* f124b9c: c7a00394 */ lwc1 $f0,0x394($sp) -.L0f124ba0: -/* f124ba0: 4600a03e */ c.le.s $f20,$f0 -/* f124ba4: 00000000 */ nop -/* f124ba8: 45020004 */ bc1fl .L0f124bbc -/* f124bac: 46000307 */ neg.s $f12,$f0 -/* f124bb0: 10000002 */ b .L0f124bbc -/* f124bb4: 46000306 */ mov.s $f12,$f0 -/* f124bb8: 46000307 */ neg.s $f12,$f0 -.L0f124bbc: -/* f124bbc: 460c703c */ c.lt.s $f14,$f12 -/* f124bc0: e7ae0368 */ swc1 $f14,0x368($sp) -/* f124bc4: 4502000a */ bc1fl .L0f124bf0 -/* f124bc8: c7aa036c */ lwc1 $f10,0x36c($sp) -/* f124bcc: 4600a03e */ c.le.s $f20,$f0 -/* f124bd0: 00000000 */ nop -/* f124bd4: 45020004 */ bc1fl .L0f124be8 -/* f124bd8: 46000387 */ neg.s $f14,$f0 -/* f124bdc: 10000003 */ b .L0f124bec -/* f124be0: e7a00368 */ swc1 $f0,0x368($sp) -/* f124be4: 46000387 */ neg.s $f14,$f0 -.L0f124be8: -/* f124be8: e7ae0368 */ swc1 $f14,0x368($sp) -.L0f124bec: -/* f124bec: c7aa036c */ lwc1 $f10,0x36c($sp) -.L0f124bf0: -/* f124bf0: c7a80370 */ lwc1 $f8,0x370($sp) -/* f124bf4: c7a60374 */ lwc1 $f6,0x374($sp) -/* f124bf8: e7aa0354 */ swc1 $f10,0x354($sp) -/* f124bfc: c7aa037c */ lwc1 $f10,0x37c($sp) -/* f124c00: c7a40378 */ lwc1 $f4,0x378($sp) -/* f124c04: e7a80358 */ swc1 $f8,0x358($sp) -/* f124c08: e7a6035c */ swc1 $f6,0x35c($sp) -/* f124c0c: e7aa0338 */ swc1 $f10,0x338($sp) -/* f124c10: e7a40334 */ swc1 $f4,0x334($sp) -/* f124c14: c7a80380 */ lwc1 $f8,0x380($sp) -/* f124c18: c7a40388 */ lwc1 $f4,0x388($sp) -/* f124c1c: c7aa038c */ lwc1 $f10,0x38c($sp) -/* f124c20: c7a60384 */ lwc1 $f6,0x384($sp) -/* f124c24: e7a8033c */ swc1 $f8,0x33c($sp) -/* f124c28: e7a40318 */ swc1 $f4,0x318($sp) -/* f124c2c: e7aa031c */ swc1 $f10,0x31c($sp) -/* f124c30: e7a60314 */ swc1 $f6,0x314($sp) -/* f124c34: c5080030 */ lwc1 $f8,0x30($t0) -/* f124c38: 27a302f4 */ addiu $v1,$sp,0x2f4 -/* f124c3c: 27a60334 */ addiu $a2,$sp,0x334 -/* f124c40: e7a80360 */ swc1 $f8,0x360($sp) -/* f124c44: c4e60030 */ lwc1 $f6,0x30($a3) -/* f124c48: 27a70324 */ addiu $a3,$sp,0x324 -/* f124c4c: 27a20354 */ addiu $v0,$sp,0x354 -/* f124c50: e7a60340 */ swc1 $f6,0x340($sp) -/* f124c54: c5240030 */ lwc1 $f4,0x30($t1) -/* f124c58: 27a402d4 */ addiu $a0,$sp,0x2d4 -/* f124c5c: 27a50314 */ addiu $a1,$sp,0x314 -/* f124c60: e7a40320 */ swc1 $f4,0x320($sp) -.L0f124c64: -/* f124c64: c4400000 */ lwc1 $f0,0x0($v0) -/* f124c68: c4ca0000 */ lwc1 $f10,0x0($a2) -/* f124c6c: c4a60000 */ lwc1 $f6,0x0($a1) -/* f124c70: 24a50004 */ addiu $a1,$a1,0x4 -/* f124c74: 46005201 */ sub.s $f8,$f10,$f0 -/* f124c78: 00a7082b */ sltu $at,$a1,$a3 -/* f124c7c: 24630004 */ addiu $v1,$v1,0x4 -/* f124c80: 46003101 */ sub.s $f4,$f6,$f0 -/* f124c84: 24c60004 */ addiu $a2,$a2,0x4 -/* f124c88: 24420004 */ addiu $v0,$v0,0x4 -/* f124c8c: 24840004 */ addiu $a0,$a0,0x4 -/* f124c90: e468fffc */ swc1 $f8,-0x4($v1) -/* f124c94: 1420fff3 */ bnez $at,.L0f124c64 -/* f124c98: e484fffc */ swc1 $f4,-0x4($a0) -/* f124c9c: 27a302f4 */ addiu $v1,$sp,0x2f4 -/* f124ca0: 27a20354 */ addiu $v0,$sp,0x354 -/* f124ca4: 27a402d4 */ addiu $a0,$sp,0x2d4 -/* f124ca8: 27a70294 */ addiu $a3,$sp,0x294 -/* f124cac: 27a502b4 */ addiu $a1,$sp,0x2b4 -/* f124cb0: 27a80274 */ addiu $t0,$sp,0x274 -/* f124cb4: 27a60254 */ addiu $a2,$sp,0x254 -/* f124cb8: c7b20410 */ lwc1 $f18,0x410($sp) -/* f124cbc: c7b0040c */ lwc1 $f16,0x40c($sp) -/* f124cc0: 27a90264 */ addiu $t1,$sp,0x264 -.L0f124cc4: -/* f124cc4: c4800000 */ lwc1 $f0,0x0($a0) -/* f124cc8: c4620000 */ lwc1 $f2,0x0($v1) -/* f124ccc: c7a80418 */ lwc1 $f8,0x418($sp) -/* f124cd0: 46120282 */ mul.s $f10,$f0,$f18 -/* f124cd4: 3c013780 */ lui $at,0x3780 -/* f124cd8: 24c60004 */ addiu $a2,$a2,0x4 -/* f124cdc: 46024182 */ mul.s $f6,$f8,$f2 -/* f124ce0: 44814000 */ mtc1 $at,$f8 -/* f124ce4: 24630004 */ addiu $v1,$v1,0x4 -/* f124ce8: 24420004 */ addiu $v0,$v0,0x4 -/* f124cec: 24840004 */ addiu $a0,$a0,0x4 -/* f124cf0: 24e70004 */ addiu $a3,$a3,0x4 -/* f124cf4: 24a50004 */ addiu $a1,$a1,0x4 -/* f124cf8: 46065101 */ sub.s $f4,$f10,$f6 -/* f124cfc: 25080004 */ addiu $t0,$t0,0x4 -/* f124d00: 46082302 */ mul.s $f12,$f4,$f8 -/* f124d04: e4ecfffc */ swc1 $f12,-0x4($a3) -/* f124d08: c7aa0414 */ lwc1 $f10,0x414($sp) -/* f124d0c: 460a1182 */ mul.s $f6,$f2,$f10 -/* f124d10: 44815000 */ mtc1 $at,$f10 -/* f124d14: 00c9082b */ sltu $at,$a2,$t1 -/* f124d18: 46008102 */ mul.s $f4,$f16,$f0 -/* f124d1c: 46043201 */ sub.s $f8,$f6,$f4 -/* f124d20: 460a4182 */ mul.s $f6,$f8,$f10 -/* f124d24: e4a6fffc */ swc1 $f6,-0x4($a1) -/* f124d28: c7a40484 */ lwc1 $f4,0x484($sp) -/* f124d2c: c4aafffc */ lwc1 $f10,-0x4($a1) -/* f124d30: 46046202 */ mul.s $f8,$f12,$f4 -/* f124d34: c444fffc */ lwc1 $f4,-0x4($v0) -/* f124d38: e488fffc */ swc1 $f8,-0x4($a0) -/* f124d3c: c7a60484 */ lwc1 $f6,0x484($sp) -/* f124d40: e4c4fffc */ swc1 $f4,-0x4($a2) -/* f124d44: 46065382 */ mul.s $f14,$f10,$f6 -/* f124d48: e46efffc */ swc1 $f14,-0x4($v1) -/* f124d4c: 1420ffdd */ bnez $at,.L0f124cc4 -/* f124d50: e50efffc */ swc1 $f14,-0x4($t0) -/* f124d54: 8fa304dc */ lw $v1,0x4dc($sp) -/* f124d58: c568002c */ lwc1 $f8,0x2c($t3) -/* f124d5c: 8fa204d4 */ lw $v0,0x4d4($sp) -/* f124d60: c46a002c */ lwc1 $f10,0x2c($v1) -/* f124d64: c4640010 */ lwc1 $f4,0x10($v1) -/* f124d68: c44e0010 */ lwc1 $f14,0x10($v0) -/* f124d6c: 460a4003 */ div.s $f0,$f8,$f10 -/* f124d70: c5660010 */ lwc1 $f6,0x10($t3) -/* f124d74: 3c014780 */ lui $at,0x4780 -/* f124d78: 44816000 */ mtc1 $at,$f12 -/* f124d7c: 46047201 */ sub.s $f8,$f14,$f4 -/* f124d80: 240e0001 */ addiu $t6,$zero,0x1 -/* f124d84: 46004282 */ mul.s $f10,$f8,$f0 -/* f124d88: 460a3100 */ add.s $f4,$f6,$f10 -/* f124d8c: e7a40170 */ swc1 $f4,0x170($sp) -/* f124d90: c4660014 */ lwc1 $f6,0x14($v1) -/* f124d94: c4420014 */ lwc1 $f2,0x14($v0) -/* f124d98: c5680014 */ lwc1 $f8,0x14($t3) -/* f124d9c: 46061281 */ sub.s $f10,$f2,$f6 -/* f124da0: 46005102 */ mul.s $f4,$f10,$f0 -/* f124da4: 46044180 */ add.s $f6,$f8,$f4 -/* f124da8: e7a6016c */ swc1 $f6,0x16c($sp) -/* f124dac: c4680018 */ lwc1 $f8,0x18($v1) -/* f124db0: c4500018 */ lwc1 $f16,0x18($v0) -/* f124db4: c56a0018 */ lwc1 $f10,0x18($t3) -/* f124db8: 46088101 */ sub.s $f4,$f16,$f8 -/* f124dbc: 46002182 */ mul.s $f6,$f4,$f0 -/* f124dc0: 46065200 */ add.s $f8,$f10,$f6 -/* f124dc4: e7a80168 */ swc1 $f8,0x168($sp) -/* f124dc8: c46a001c */ lwc1 $f10,0x1c($v1) -/* f124dcc: c452001c */ lwc1 $f18,0x1c($v0) -/* f124dd0: c564001c */ lwc1 $f4,0x1c($t3) -/* f124dd4: 460a9181 */ sub.s $f6,$f18,$f10 -/* f124dd8: 46003202 */ mul.s $f8,$f6,$f0 -/* f124ddc: 46082280 */ add.s $f10,$f4,$f8 -/* f124de0: 460c7182 */ mul.s $f6,$f14,$f12 -/* f124de4: e7aa0164 */ swc1 $f10,0x164($sp) -/* f124de8: 4459f800 */ cfc1 $t9,$31 -/* f124dec: 44cef800 */ ctc1 $t6,$31 -/* f124df0: 00000000 */ nop -/* f124df4: 46003124 */ cvt.w.s $f4,$f6 -/* f124df8: 444ef800 */ cfc1 $t6,$31 -/* f124dfc: 00000000 */ nop -/* f124e00: 31ce0078 */ andi $t6,$t6,0x78 -/* f124e04: 11c00012 */ beqz $t6,.L0f124e50 -/* f124e08: 3c014f00 */ lui $at,0x4f00 -/* f124e0c: 44812000 */ mtc1 $at,$f4 -/* f124e10: 240e0001 */ addiu $t6,$zero,0x1 -/* f124e14: 46043101 */ sub.s $f4,$f6,$f4 -/* f124e18: 44cef800 */ ctc1 $t6,$31 -/* f124e1c: 00000000 */ nop -/* f124e20: 46002124 */ cvt.w.s $f4,$f4 -/* f124e24: 444ef800 */ cfc1 $t6,$31 -/* f124e28: 00000000 */ nop -/* f124e2c: 31ce0078 */ andi $t6,$t6,0x78 -/* f124e30: 15c00005 */ bnez $t6,.L0f124e48 -/* f124e34: 00000000 */ nop -/* f124e38: 440e2000 */ mfc1 $t6,$f4 -/* f124e3c: 3c018000 */ lui $at,0x8000 -/* f124e40: 10000007 */ b .L0f124e60 -/* f124e44: 01c17025 */ or $t6,$t6,$at -.L0f124e48: -/* f124e48: 10000005 */ b .L0f124e60 -/* f124e4c: 240effff */ addiu $t6,$zero,-1 -.L0f124e50: -/* f124e50: 440e2000 */ mfc1 $t6,$f4 -/* f124e54: 00000000 */ nop -/* f124e58: 05c0fffb */ bltz $t6,.L0f124e48 -/* f124e5c: 00000000 */ nop -.L0f124e60: -/* f124e60: 44d9f800 */ ctc1 $t9,$31 -/* f124e64: 240f0001 */ addiu $t7,$zero,0x1 -/* f124e68: afae0160 */ sw $t6,0x160($sp) -/* f124e6c: 460c1202 */ mul.s $f8,$f2,$f12 -/* f124e70: 4458f800 */ cfc1 $t8,$31 -/* f124e74: 44cff800 */ ctc1 $t7,$31 -/* f124e78: 00000000 */ nop -/* f124e7c: 460042a4 */ cvt.w.s $f10,$f8 -/* f124e80: 444ff800 */ cfc1 $t7,$31 -/* f124e84: 00000000 */ nop -/* f124e88: 31ef0078 */ andi $t7,$t7,0x78 -/* f124e8c: 11e00012 */ beqz $t7,.L0f124ed8 -/* f124e90: 3c014f00 */ lui $at,0x4f00 -/* f124e94: 44815000 */ mtc1 $at,$f10 -/* f124e98: 240f0001 */ addiu $t7,$zero,0x1 -/* f124e9c: 460a4281 */ sub.s $f10,$f8,$f10 -/* f124ea0: 44cff800 */ ctc1 $t7,$31 -/* f124ea4: 00000000 */ nop -/* f124ea8: 460052a4 */ cvt.w.s $f10,$f10 -/* f124eac: 444ff800 */ cfc1 $t7,$31 -/* f124eb0: 00000000 */ nop -/* f124eb4: 31ef0078 */ andi $t7,$t7,0x78 -/* f124eb8: 15e00005 */ bnez $t7,.L0f124ed0 -/* f124ebc: 00000000 */ nop -/* f124ec0: 440f5000 */ mfc1 $t7,$f10 -/* f124ec4: 3c018000 */ lui $at,0x8000 -/* f124ec8: 10000007 */ b .L0f124ee8 -/* f124ecc: 01e17825 */ or $t7,$t7,$at -.L0f124ed0: -/* f124ed0: 10000005 */ b .L0f124ee8 -/* f124ed4: 240fffff */ addiu $t7,$zero,-1 -.L0f124ed8: -/* f124ed8: 440f5000 */ mfc1 $t7,$f10 -/* f124edc: 00000000 */ nop -/* f124ee0: 05e0fffb */ bltz $t7,.L0f124ed0 -/* f124ee4: 00000000 */ nop -.L0f124ee8: -/* f124ee8: 3c014780 */ lui $at,0x4780 -/* f124eec: 44d8f800 */ ctc1 $t8,$31 -/* f124ef0: 44810000 */ mtc1 $at,$f0 -/* f124ef4: 240e0001 */ addiu $t6,$zero,0x1 -/* f124ef8: afaf015c */ sw $t7,0x15c($sp) -/* f124efc: 46008182 */ mul.s $f6,$f16,$f0 -/* f124f00: 4459f800 */ cfc1 $t9,$31 -/* f124f04: 44cef800 */ ctc1 $t6,$31 -/* f124f08: 00000000 */ nop -/* f124f0c: 46003124 */ cvt.w.s $f4,$f6 -/* f124f10: 444ef800 */ cfc1 $t6,$31 -/* f124f14: 00000000 */ nop -/* f124f18: 31ce0078 */ andi $t6,$t6,0x78 -/* f124f1c: 11c00012 */ beqz $t6,.L0f124f68 -/* f124f20: 3c014f00 */ lui $at,0x4f00 -/* f124f24: 44812000 */ mtc1 $at,$f4 -/* f124f28: 240e0001 */ addiu $t6,$zero,0x1 -/* f124f2c: 46043101 */ sub.s $f4,$f6,$f4 -/* f124f30: 44cef800 */ ctc1 $t6,$31 -/* f124f34: 00000000 */ nop -/* f124f38: 46002124 */ cvt.w.s $f4,$f4 -/* f124f3c: 444ef800 */ cfc1 $t6,$31 -/* f124f40: 00000000 */ nop -/* f124f44: 31ce0078 */ andi $t6,$t6,0x78 -/* f124f48: 15c00005 */ bnez $t6,.L0f124f60 -/* f124f4c: 00000000 */ nop -/* f124f50: 440e2000 */ mfc1 $t6,$f4 -/* f124f54: 3c018000 */ lui $at,0x8000 -/* f124f58: 10000007 */ b .L0f124f78 -/* f124f5c: 01c17025 */ or $t6,$t6,$at -.L0f124f60: -/* f124f60: 10000005 */ b .L0f124f78 -/* f124f64: 240effff */ addiu $t6,$zero,-1 -.L0f124f68: -/* f124f68: 440e2000 */ mfc1 $t6,$f4 -/* f124f6c: 00000000 */ nop -/* f124f70: 05c0fffb */ bltz $t6,.L0f124f60 -/* f124f74: 00000000 */ nop -.L0f124f78: -/* f124f78: 44d9f800 */ ctc1 $t9,$31 -/* f124f7c: 240f0001 */ addiu $t7,$zero,0x1 -/* f124f80: afae0158 */ sw $t6,0x158($sp) -/* f124f84: 46009202 */ mul.s $f8,$f18,$f0 -/* f124f88: 4458f800 */ cfc1 $t8,$31 -/* f124f8c: 44cff800 */ ctc1 $t7,$31 -/* f124f90: 00000000 */ nop -/* f124f94: 460042a4 */ cvt.w.s $f10,$f8 -/* f124f98: 444ff800 */ cfc1 $t7,$31 -/* f124f9c: 00000000 */ nop -/* f124fa0: 31ef0078 */ andi $t7,$t7,0x78 -/* f124fa4: 11e00012 */ beqz $t7,.L0f124ff0 -/* f124fa8: 3c014f00 */ lui $at,0x4f00 -/* f124fac: 44815000 */ mtc1 $at,$f10 -/* f124fb0: 240f0001 */ addiu $t7,$zero,0x1 -/* f124fb4: 460a4281 */ sub.s $f10,$f8,$f10 -/* f124fb8: 44cff800 */ ctc1 $t7,$31 -/* f124fbc: 00000000 */ nop -/* f124fc0: 460052a4 */ cvt.w.s $f10,$f10 -/* f124fc4: 444ff800 */ cfc1 $t7,$31 -/* f124fc8: 00000000 */ nop -/* f124fcc: 31ef0078 */ andi $t7,$t7,0x78 -/* f124fd0: 15e00005 */ bnez $t7,.L0f124fe8 -/* f124fd4: 00000000 */ nop -/* f124fd8: 440f5000 */ mfc1 $t7,$f10 -/* f124fdc: 3c018000 */ lui $at,0x8000 -/* f124fe0: 10000007 */ b .L0f125000 -/* f124fe4: 01e17825 */ or $t7,$t7,$at -.L0f124fe8: -/* f124fe8: 10000005 */ b .L0f125000 -/* f124fec: 240fffff */ addiu $t7,$zero,-1 -.L0f124ff0: -/* f124ff0: 440f5000 */ mfc1 $t7,$f10 -/* f124ff4: 00000000 */ nop -/* f124ff8: 05e0fffb */ bltz $t7,.L0f124fe8 -/* f124ffc: 00000000 */ nop -.L0f125000: -/* f125000: 8fb904d8 */ lw $t9,0x4d8($sp) -/* f125004: afaf0154 */ sw $t7,0x154($sp) -/* f125008: 44d8f800 */ ctc1 $t8,$31 -/* f12500c: c4440028 */ lwc1 $f4,0x28($v0) -/* f125010: c7260028 */ lwc1 $f6,0x28($t9) -/* f125014: 3c013e80 */ lui $at,0x3e80 -/* f125018: 44815000 */ mtc1 $at,$f10 -/* f12501c: 46043201 */ sub.s $f8,$f6,$f4 -/* f125020: c7a40170 */ lwc1 $f4,0x170($sp) -/* f125024: 460a4182 */ mul.s $f6,$f8,$f10 -/* f125028: 460e2201 */ sub.s $f8,$f4,$f14 -/* f12502c: 0fc54be8 */ jal func0f152fa0 -/* f125030: 46064303 */ div.s $f12,$f8,$f6 -/* f125034: 8fa304d4 */ lw $v1,0x4d4($sp) -/* f125038: afa20150 */ sw $v0,0x150($sp) -/* f12503c: c7aa016c */ lwc1 $f10,0x16c($sp) -/* f125040: c4640014 */ lwc1 $f4,0x14($v1) -/* f125044: 8fae04d8 */ lw $t6,0x4d8($sp) -/* f125048: 3c013e80 */ lui $at,0x3e80 -/* f12504c: 46045201 */ sub.s $f8,$f10,$f4 -/* f125050: c46a0028 */ lwc1 $f10,0x28($v1) -/* f125054: c5c60028 */ lwc1 $f6,0x28($t6) -/* f125058: 460a3101 */ sub.s $f4,$f6,$f10 -/* f12505c: 44813000 */ mtc1 $at,$f6 -/* f125060: 00000000 */ nop -/* f125064: 46062282 */ mul.s $f10,$f4,$f6 -/* f125068: 0fc54be8 */ jal func0f152fa0 -/* f12506c: 460a4303 */ div.s $f12,$f8,$f10 -/* f125070: 8fa304d4 */ lw $v1,0x4d4($sp) -/* f125074: afa2014c */ sw $v0,0x14c($sp) -/* f125078: c7a40168 */ lwc1 $f4,0x168($sp) -/* f12507c: c4660018 */ lwc1 $f6,0x18($v1) -/* f125080: 8fb804d8 */ lw $t8,0x4d8($sp) -/* f125084: 3c013e80 */ lui $at,0x3e80 -/* f125088: 46062201 */ sub.s $f8,$f4,$f6 -/* f12508c: c4640028 */ lwc1 $f4,0x28($v1) -/* f125090: c70a0028 */ lwc1 $f10,0x28($t8) -/* f125094: 46045181 */ sub.s $f6,$f10,$f4 -/* f125098: 44815000 */ mtc1 $at,$f10 -/* f12509c: 00000000 */ nop -/* f1250a0: 460a3102 */ mul.s $f4,$f6,$f10 -/* f1250a4: 0fc54be8 */ jal func0f152fa0 -/* f1250a8: 46044303 */ div.s $f12,$f8,$f4 -/* f1250ac: 8fa304d4 */ lw $v1,0x4d4($sp) -/* f1250b0: afa20148 */ sw $v0,0x148($sp) -/* f1250b4: c7a60164 */ lwc1 $f6,0x164($sp) -/* f1250b8: c46a001c */ lwc1 $f10,0x1c($v1) -/* f1250bc: 8faf04d8 */ lw $t7,0x4d8($sp) -/* f1250c0: 3c013e80 */ lui $at,0x3e80 -/* f1250c4: 460a3201 */ sub.s $f8,$f6,$f10 -/* f1250c8: c4660028 */ lwc1 $f6,0x28($v1) -/* f1250cc: c5e40028 */ lwc1 $f4,0x28($t7) -/* f1250d0: 46062281 */ sub.s $f10,$f4,$f6 -/* f1250d4: 44812000 */ mtc1 $at,$f4 -/* f1250d8: 00000000 */ nop -/* f1250dc: 46045182 */ mul.s $f6,$f10,$f4 -/* f1250e0: 0fc54be8 */ jal func0f152fa0 -/* f1250e4: 46064303 */ div.s $f12,$f8,$f6 -/* f1250e8: 8fa304dc */ lw $v1,0x4dc($sp) -/* f1250ec: 8fb904d4 */ lw $t9,0x4d4($sp) -/* f1250f0: afa20144 */ sw $v0,0x144($sp) -/* f1250f4: c46a0010 */ lwc1 $f10,0x10($v1) -/* f1250f8: c7240010 */ lwc1 $f4,0x10($t9) -/* f1250fc: c466002c */ lwc1 $f6,0x2c($v1) -/* f125100: 3c013e80 */ lui $at,0x3e80 -/* f125104: 46045201 */ sub.s $f8,$f10,$f4 -/* f125108: c72a002c */ lwc1 $f10,0x2c($t9) -/* f12510c: 460a3101 */ sub.s $f4,$f6,$f10 -/* f125110: 44813000 */ mtc1 $at,$f6 -/* f125114: 00000000 */ nop -/* f125118: 46062282 */ mul.s $f10,$f4,$f6 -/* f12511c: 0fc54be8 */ jal func0f152fa0 -/* f125120: 460a4303 */ div.s $f12,$f8,$f10 -/* f125124: 8fa304dc */ lw $v1,0x4dc($sp) -/* f125128: 8fae04d4 */ lw $t6,0x4d4($sp) -/* f12512c: afa20130 */ sw $v0,0x130($sp) -/* f125130: afa20140 */ sw $v0,0x140($sp) -/* f125134: c4640014 */ lwc1 $f4,0x14($v1) -/* f125138: c5c60014 */ lwc1 $f6,0x14($t6) -/* f12513c: c46a002c */ lwc1 $f10,0x2c($v1) -/* f125140: 3c013e80 */ lui $at,0x3e80 -/* f125144: 46062201 */ sub.s $f8,$f4,$f6 -/* f125148: c5c4002c */ lwc1 $f4,0x2c($t6) -/* f12514c: 46045181 */ sub.s $f6,$f10,$f4 -/* f125150: 44815000 */ mtc1 $at,$f10 -/* f125154: 00000000 */ nop -/* f125158: 460a3102 */ mul.s $f4,$f6,$f10 -/* f12515c: 0fc54be8 */ jal func0f152fa0 -/* f125160: 46044303 */ div.s $f12,$f8,$f4 -/* f125164: 8fb804dc */ lw $t8,0x4dc($sp) -/* f125168: 8faf04d4 */ lw $t7,0x4d4($sp) -/* f12516c: afa2012c */ sw $v0,0x12c($sp) -/* f125170: afa2013c */ sw $v0,0x13c($sp) -/* f125174: c7060018 */ lwc1 $f6,0x18($t8) -/* f125178: c5ea0018 */ lwc1 $f10,0x18($t7) -/* f12517c: c704002c */ lwc1 $f4,0x2c($t8) -/* f125180: 3c013e80 */ lui $at,0x3e80 -/* f125184: 460a3201 */ sub.s $f8,$f6,$f10 -/* f125188: c5e6002c */ lwc1 $f6,0x2c($t7) -/* f12518c: 46062281 */ sub.s $f10,$f4,$f6 -/* f125190: 44812000 */ mtc1 $at,$f4 -/* f125194: 00000000 */ nop -/* f125198: 46045182 */ mul.s $f6,$f10,$f4 -/* f12519c: 0fc54be8 */ jal func0f152fa0 -/* f1251a0: 46064303 */ div.s $f12,$f8,$f6 -/* f1251a4: 8fb904dc */ lw $t9,0x4dc($sp) -/* f1251a8: 8fae04d4 */ lw $t6,0x4d4($sp) -/* f1251ac: 3c013e80 */ lui $at,0x3e80 -/* f1251b0: c72a001c */ lwc1 $f10,0x1c($t9) -/* f1251b4: c5c4001c */ lwc1 $f4,0x1c($t6) -/* f1251b8: c726002c */ lwc1 $f6,0x2c($t9) -/* f1251bc: 46045201 */ sub.s $f8,$f10,$f4 -/* f1251c0: c5ca002c */ lwc1 $f10,0x2c($t6) -/* f1251c4: afa20138 */ sw $v0,0x138($sp) -/* f1251c8: afa20128 */ sw $v0,0x128($sp) -/* f1251cc: 460a3101 */ sub.s $f4,$f6,$f10 -/* f1251d0: 44813000 */ mtc1 $at,$f6 -/* f1251d4: 00000000 */ nop -/* f1251d8: 46062282 */ mul.s $f10,$f4,$f6 -/* f1251dc: 0fc54be8 */ jal func0f152fa0 -/* f1251e0: 460a4303 */ div.s $f12,$f8,$f10 -/* f1251e4: 8fab015c */ lw $t3,0x15c($sp) -/* f1251e8: 8faa0160 */ lw $t2,0x160($sp) -/* f1251ec: 3c09ffff */ lui $t1,0xffff -/* f1251f0: 02001825 */ or $v1,$s0,$zero -/* f1251f4: 01697824 */ and $t7,$t3,$t1 -/* f1251f8: 8fac0128 */ lw $t4,0x128($sp) -/* f1251fc: 8fad0138 */ lw $t5,0x138($sp) -/* f125200: 8fbf0158 */ lw $ra,0x158($sp) -/* f125204: 000fcc02 */ srl $t9,$t7,0x10 -/* f125208: 0149c024 */ and $t8,$t2,$t1 -/* f12520c: 3c08b400 */ lui $t0,0xb400 -/* f125210: 03197025 */ or $t6,$t8,$t9 -/* f125214: 26100008 */ addiu $s0,$s0,0x8 -/* f125218: ac6e0004 */ sw $t6,0x4($v1) -/* f12521c: ac680000 */ sw $t0,0x0($v1) -/* f125220: 02002025 */ or $a0,$s0,$zero -/* f125224: 3c0fb200 */ lui $t7,0xb200 -/* f125228: ac8f0000 */ sw $t7,0x0($a0) -/* f12522c: 8fb90154 */ lw $t9,0x154($sp) -/* f125230: 03e9c024 */ and $t8,$ra,$t1 -/* f125234: 26100008 */ addiu $s0,$s0,0x8 -/* f125238: 03297024 */ and $t6,$t9,$t1 -/* f12523c: 000e7c02 */ srl $t7,$t6,0x10 -/* f125240: 030fc825 */ or $t9,$t8,$t7 -/* f125244: ac990004 */ sw $t9,0x4($a0) -/* f125248: 02002825 */ or $a1,$s0,$zero -/* f12524c: aca80000 */ sw $t0,0x0($a1) -/* f125250: 8faf014c */ lw $t7,0x14c($sp) -/* f125254: 8fae0150 */ lw $t6,0x150($sp) -/* f125258: 26100008 */ addiu $s0,$s0,0x8 -/* f12525c: 01e9c824 */ and $t9,$t7,$t1 -/* f125260: 01c9c024 */ and $t8,$t6,$t1 -/* f125264: 00197402 */ srl $t6,$t9,0x10 -/* f125268: 030e7825 */ or $t7,$t8,$t6 -/* f12526c: acaf0004 */ sw $t7,0x4($a1) -/* f125270: 3c05b200 */ lui $a1,0xb200 -/* f125274: 02003025 */ or $a2,$s0,$zero -/* f125278: acc50000 */ sw $a1,0x0($a2) -/* f12527c: 8fae0144 */ lw $t6,0x144($sp) -/* f125280: 8fb90148 */ lw $t9,0x148($sp) -/* f125284: 26100008 */ addiu $s0,$s0,0x8 -/* f125288: 01c97824 */ and $t7,$t6,$t1 -/* f12528c: 0329c024 */ and $t8,$t9,$t1 -/* f125290: 000fcc02 */ srl $t9,$t7,0x10 -/* f125294: 03197025 */ or $t6,$t8,$t9 -/* f125298: acce0004 */ sw $t6,0x4($a2) -/* f12529c: 02001825 */ or $v1,$s0,$zero -/* f1252a0: 3179ffff */ andi $t9,$t3,0xffff -/* f1252a4: 000ac400 */ sll $t8,$t2,0x10 -/* f1252a8: 03197025 */ or $t6,$t8,$t9 -/* f1252ac: 26100008 */ addiu $s0,$s0,0x8 -/* f1252b0: ac6e0004 */ sw $t6,0x4($v1) -/* f1252b4: ac680000 */ sw $t0,0x0($v1) -/* f1252b8: 02002025 */ or $a0,$s0,$zero -/* f1252bc: ac850000 */ sw $a1,0x0($a0) -/* f1252c0: 8fb90154 */ lw $t9,0x154($sp) -/* f1252c4: 001fc400 */ sll $t8,$ra,0x10 -/* f1252c8: 26100008 */ addiu $s0,$s0,0x8 -/* f1252cc: 332effff */ andi $t6,$t9,0xffff -/* f1252d0: 030e7825 */ or $t7,$t8,$t6 -/* f1252d4: ac8f0004 */ sw $t7,0x4($a0) -/* f1252d8: 02003825 */ or $a3,$s0,$zero -/* f1252dc: ace80000 */ sw $t0,0x0($a3) -/* f1252e0: 8faf014c */ lw $t7,0x14c($sp) -/* f1252e4: 8fb80150 */ lw $t8,0x150($sp) -/* f1252e8: 8faa0140 */ lw $t2,0x140($sp) -/* f1252ec: 31f9ffff */ andi $t9,$t7,0xffff -/* f1252f0: 00187400 */ sll $t6,$t8,0x10 -/* f1252f4: 8fa8013c */ lw $t0,0x13c($sp) -/* f1252f8: 01d9c025 */ or $t8,$t6,$t9 -/* f1252fc: 26100008 */ addiu $s0,$s0,0x8 -/* f125300: acf80004 */ sw $t8,0x4($a3) -/* f125304: 02001825 */ or $v1,$s0,$zero -/* f125308: 3c0fb200 */ lui $t7,0xb200 -/* f12530c: ac6f0000 */ sw $t7,0x0($v1) -/* f125310: 8faf0144 */ lw $t7,0x144($sp) -/* f125314: 8fb90148 */ lw $t9,0x148($sp) -/* f125318: 26100008 */ addiu $s0,$s0,0x8 -/* f12531c: 31eeffff */ andi $t6,$t7,0xffff -/* f125320: 0019c400 */ sll $t8,$t9,0x10 -/* f125324: 030ec825 */ or $t9,$t8,$t6 -/* f125328: 0109c024 */ and $t8,$t0,$t1 -/* f12532c: ac790004 */ sw $t9,0x4($v1) -/* f125330: 00187402 */ srl $t6,$t8,0x10 -/* f125334: 01497824 */ and $t7,$t2,$t1 -/* f125338: 01eec825 */ or $t9,$t7,$t6 -/* f12533c: 02002025 */ or $a0,$s0,$zero -/* f125340: 26100008 */ addiu $s0,$s0,0x8 -/* f125344: 3c1fb400 */ lui $ra,0xb400 -/* f125348: ac990004 */ sw $t9,0x4($a0) -/* f12534c: 02002825 */ or $a1,$s0,$zero -/* f125350: 00493024 */ and $a2,$v0,$t1 -/* f125354: ac9f0000 */ sw $ra,0x0($a0) -/* f125358: 00067c02 */ srl $t7,$a2,0x10 -/* f12535c: 01a97024 */ and $t6,$t5,$t1 -/* f125360: 01cfc825 */ or $t9,$t6,$t7 -/* f125364: 26100008 */ addiu $s0,$s0,0x8 -/* f125368: 3c18b200 */ lui $t8,0xb200 -/* f12536c: acb80000 */ sw $t8,0x0($a1) -/* f125370: acb90004 */ sw $t9,0x4($a1) -/* f125374: 02001825 */ or $v1,$s0,$zero -/* f125378: ac7f0000 */ sw $ra,0x0($v1) -/* f12537c: 8fae012c */ lw $t6,0x12c($sp) -/* f125380: 8fb80130 */ lw $t8,0x130($sp) -/* f125384: 01e03025 */ or $a2,$t7,$zero -/* f125388: 01c9c824 */ and $t9,$t6,$t1 -/* f12538c: 03097824 */ and $t7,$t8,$t1 -/* f125390: 0019c402 */ srl $t8,$t9,0x10 -/* f125394: 01f87025 */ or $t6,$t7,$t8 -/* f125398: 26100008 */ addiu $s0,$s0,0x8 -/* f12539c: 02002025 */ or $a0,$s0,$zero -/* f1253a0: 01897824 */ and $t7,$t4,$t1 -/* f1253a4: ac6e0004 */ sw $t6,0x4($v1) -/* f1253a8: 01e6c025 */ or $t8,$t7,$a2 -/* f1253ac: 3c19b200 */ lui $t9,0xb200 -/* f1253b0: ac990000 */ sw $t9,0x0($a0) -/* f1253b4: 26100008 */ addiu $s0,$s0,0x8 -/* f1253b8: ac980004 */ sw $t8,0x4($a0) -/* f1253bc: 02002825 */ or $a1,$s0,$zero -/* f1253c0: 000acc00 */ sll $t9,$t2,0x10 -/* f1253c4: 310fffff */ andi $t7,$t0,0xffff -/* f1253c8: 032fc025 */ or $t8,$t9,$t7 -/* f1253cc: 26100008 */ addiu $s0,$s0,0x8 -/* f1253d0: acb80004 */ sw $t8,0x4($a1) -/* f1253d4: acbf0000 */ sw $ra,0x0($a1) -/* f1253d8: 02005825 */ or $t3,$s0,$zero -/* f1253dc: 304fffff */ andi $t7,$v0,0xffff -/* f1253e0: 000dcc00 */ sll $t9,$t5,0x10 -/* f1253e4: 032fc025 */ or $t8,$t9,$t7 -/* f1253e8: 26100008 */ addiu $s0,$s0,0x8 -/* f1253ec: 3c1fb200 */ lui $ra,0xb200 -/* f1253f0: ad7f0000 */ sw $ra,0x0($t3) -/* f1253f4: ad780004 */ sw $t8,0x4($t3) -/* f1253f8: 02003825 */ or $a3,$s0,$zero -/* f1253fc: 3c0eb400 */ lui $t6,0xb400 -/* f125400: acee0000 */ sw $t6,0x0($a3) -/* f125404: 8fae012c */ lw $t6,0x12c($sp) -/* f125408: 8faf0130 */ lw $t7,0x130($sp) -/* f12540c: 26100008 */ addiu $s0,$s0,0x8 -/* f125410: 31d9ffff */ andi $t9,$t6,0xffff -/* f125414: 000fc400 */ sll $t8,$t7,0x10 -/* f125418: 03197825 */ or $t7,$t8,$t9 -/* f12541c: acef0004 */ sw $t7,0x4($a3) -/* f125420: 3059ffff */ andi $t9,$v0,0xffff -/* f125424: 02004025 */ or $t0,$s0,$zero -/* f125428: 000cc400 */ sll $t8,$t4,0x10 -/* f12542c: 03197825 */ or $t7,$t8,$t9 -/* f125430: 3c013d00 */ lui $at,0x3d00 -/* f125434: ad0f0004 */ sw $t7,0x4($t0) -/* f125438: ad1f0000 */ sw $ra,0x0($t0) -/* f12543c: 44817000 */ mtc1 $at,$f14 -/* f125440: c7a40364 */ lwc1 $f4,0x364($sp) -/* f125444: c7a80368 */ lwc1 $f8,0x368($sp) -/* f125448: 26100008 */ addiu $s0,$s0,0x8 -/* f12544c: 460e2182 */ mul.s $f6,$f4,$f14 -/* f125450: c7a403ac */ lwc1 $f4,0x3ac($sp) -/* f125454: 27a20204 */ addiu $v0,$sp,0x204 -/* f125458: 460e4282 */ mul.s $f10,$f8,$f14 -/* f12545c: 27a501f4 */ addiu $a1,$sp,0x1f4 -/* f125460: 27a402d4 */ addiu $a0,$sp,0x2d4 -/* f125464: 27a60214 */ addiu $a2,$sp,0x214 -/* f125468: e7a60234 */ swc1 $f6,0x234($sp) -/* f12546c: 460e2182 */ mul.s $f6,$f4,$f14 -/* f125470: 27a302f4 */ addiu $v1,$sp,0x2f4 -/* f125474: e7aa0238 */ swc1 $f10,0x238($sp) -/* f125478: 3c013f80 */ lui $at,0x3f80 -/* f12547c: e7a6023c */ swc1 $f6,0x23c($sp) -.L0f125480: -/* f125480: c4800000 */ lwc1 $f0,0x0($a0) -/* f125484: 4600a03e */ c.le.s $f20,$f0 -/* f125488: 00000000 */ nop -/* f12548c: 45020004 */ bc1fl .L0f1254a0 -/* f125490: 46000307 */ neg.s $f12,$f0 -/* f125494: 10000002 */ b .L0f1254a0 -/* f125498: 46000306 */ mov.s $f12,$f0 -/* f12549c: 46000307 */ neg.s $f12,$f0 -.L0f1254a0: -/* f1254a0: c4620000 */ lwc1 $f2,0x0($v1) -/* f1254a4: 460e6202 */ mul.s $f8,$f12,$f14 -/* f1254a8: 4602a03e */ c.le.s $f20,$f2 -/* f1254ac: 00000000 */ nop -/* f1254b0: 45000003 */ bc1f .L0f1254c0 -/* f1254b4: e4c80000 */ swc1 $f8,0x0($a2) -/* f1254b8: 10000002 */ b .L0f1254c4 -/* f1254bc: 46001306 */ mov.s $f12,$f2 -.L0f1254c0: -/* f1254c0: 46001307 */ neg.s $f12,$f2 -.L0f1254c4: -/* f1254c4: 460e6282 */ mul.s $f10,$f12,$f14 -/* f1254c8: 24a50004 */ addiu $a1,$a1,0x4 -/* f1254cc: 24630004 */ addiu $v1,$v1,0x4 -/* f1254d0: 24840004 */ addiu $a0,$a0,0x4 -/* f1254d4: 24c60004 */ addiu $a2,$a2,0x4 -/* f1254d8: 14a2ffe9 */ bne $a1,$v0,.L0f125480 -/* f1254dc: e4aafffc */ swc1 $f10,-0x4($a1) -/* f1254e0: c7a20214 */ lwc1 $f2,0x214($sp) -/* f1254e4: c7a40234 */ lwc1 $f4,0x234($sp) -/* f1254e8: c7ac0218 */ lwc1 $f12,0x218($sp) -/* f1254ec: 46021180 */ add.s $f6,$f2,$f2 -/* f1254f0: c7aa01f4 */ lwc1 $f10,0x1f4($sp) -/* f1254f4: c7ae021c */ lwc1 $f14,0x21c($sp) -/* f1254f8: 44811000 */ mtc1 $at,$f2 -/* f1254fc: 46062200 */ add.s $f8,$f4,$f6 -/* f125500: c7a40238 */ lwc1 $f4,0x238($sp) -/* f125504: 3c013a80 */ lui $at,0x3a80 -/* f125508: 460c6180 */ add.s $f6,$f12,$f12 -/* f12550c: 46085000 */ add.s $f0,$f10,$f8 -/* f125510: c7a801f8 */ lwc1 $f8,0x1f8($sp) -/* f125514: 46062280 */ add.s $f10,$f4,$f6 -/* f125518: c7a4023c */ lwc1 $f4,0x23c($sp) -/* f12551c: 460e7180 */ add.s $f6,$f14,$f14 -/* f125520: 460a4400 */ add.s $f16,$f8,$f10 -/* f125524: c7aa01fc */ lwc1 $f10,0x1fc($sp) -/* f125528: 46062200 */ add.s $f8,$f4,$f6 -/* f12552c: 44812000 */ mtc1 $at,$f4 -/* f125530: e7b001d8 */ swc1 $f16,0x1d8($sp) -/* f125534: 4610003c */ c.lt.s $f0,$f16 -/* f125538: 46085480 */ add.s $f18,$f10,$f8 -/* f12553c: 45020004 */ bc1fl .L0f125550 -/* f125540: 4612003c */ c.lt.s $f0,$f18 -/* f125544: 46008006 */ mov.s $f0,$f16 -/* f125548: e7b001d8 */ swc1 $f16,0x1d8($sp) -/* f12554c: 4612003c */ c.lt.s $f0,$f18 -.L0f125550: -/* f125550: e7b201dc */ swc1 $f18,0x1dc($sp) -/* f125554: 45000003 */ bc1f .L0f125564 -/* f125558: 00000000 */ nop -/* f12555c: 46009006 */ mov.s $f0,$f18 -/* f125560: e7b201dc */ swc1 $f18,0x1dc($sp) -.L0f125564: -/* f125564: 46040002 */ mul.s $f0,$f0,$f4 -/* f125568: 4600103c */ c.lt.s $f2,$f0 -/* f12556c: 00000000 */ nop -/* f125570: 45020005 */ bc1fl .L0f125588 -/* f125574: e7a001d4 */ swc1 $f0,0x1d4($sp) -/* f125578: 46001503 */ div.s $f20,$f2,$f0 -/* f12557c: 10000003 */ b .L0f12558c -/* f125580: e7a001d4 */ swc1 $f0,0x1d4($sp) -/* f125584: e7a001d4 */ swc1 $f0,0x1d4($sp) -.L0f125588: -/* f125588: 46001506 */ mov.s $f20,$f2 -.L0f12558c: -/* f12558c: c7a60254 */ lwc1 $f6,0x254($sp) -/* f125590: e7b401c4 */ swc1 $f20,0x1c4($sp) -/* f125594: 4606a302 */ mul.s $f12,$f20,$f6 -/* f125598: 0fc54be8 */ jal func0f152fa0 -/* f12559c: 00000000 */ nop -/* f1255a0: c7b401c4 */ lwc1 $f20,0x1c4($sp) -/* f1255a4: c7aa0258 */ lwc1 $f10,0x258($sp) -/* f1255a8: afa200e0 */ sw $v0,0xe0($sp) -/* f1255ac: 460aa302 */ mul.s $f12,$f20,$f10 -/* f1255b0: 0fc54be8 */ jal func0f152fa0 -/* f1255b4: 00000000 */ nop -/* f1255b8: c7b401c4 */ lwc1 $f20,0x1c4($sp) -/* f1255bc: c7a8025c */ lwc1 $f8,0x25c($sp) -/* f1255c0: afa200dc */ sw $v0,0xdc($sp) -/* f1255c4: 4608a302 */ mul.s $f12,$f20,$f8 -/* f1255c8: 0fc54be8 */ jal func0f152fa0 -/* f1255cc: 00000000 */ nop -/* f1255d0: c7b401c4 */ lwc1 $f20,0x1c4($sp) -/* f1255d4: c7a40260 */ lwc1 $f4,0x260($sp) -/* f1255d8: afa200d8 */ sw $v0,0xd8($sp) -/* f1255dc: 4604a302 */ mul.s $f12,$f20,$f4 -/* f1255e0: 0fc54be8 */ jal func0f152fa0 -/* f1255e4: 00000000 */ nop -/* f1255e8: c7b401c4 */ lwc1 $f20,0x1c4($sp) -/* f1255ec: c7a602d4 */ lwc1 $f6,0x2d4($sp) -/* f1255f0: afa200d4 */ sw $v0,0xd4($sp) -/* f1255f4: 4606a302 */ mul.s $f12,$f20,$f6 -/* f1255f8: 0fc54be8 */ jal func0f152fa0 -/* f1255fc: 00000000 */ nop -/* f125600: c7b401c4 */ lwc1 $f20,0x1c4($sp) -/* f125604: c7aa02d8 */ lwc1 $f10,0x2d8($sp) -/* f125608: afa200d0 */ sw $v0,0xd0($sp) -/* f12560c: 460aa302 */ mul.s $f12,$f20,$f10 -/* f125610: 0fc54be8 */ jal func0f152fa0 -/* f125614: 00000000 */ nop -/* f125618: c7b401c4 */ lwc1 $f20,0x1c4($sp) -/* f12561c: c7a802dc */ lwc1 $f8,0x2dc($sp) -/* f125620: afa200cc */ sw $v0,0xcc($sp) -/* f125624: 4608a302 */ mul.s $f12,$f20,$f8 -/* f125628: 0fc54be8 */ jal func0f152fa0 -/* f12562c: 00000000 */ nop -/* f125630: c7b401c4 */ lwc1 $f20,0x1c4($sp) -/* f125634: c7a402e0 */ lwc1 $f4,0x2e0($sp) -/* f125638: afa200c8 */ sw $v0,0xc8($sp) -/* f12563c: 4604a302 */ mul.s $f12,$f20,$f4 -/* f125640: 0fc54be8 */ jal func0f152fa0 -/* f125644: 00000000 */ nop -/* f125648: c7b401c4 */ lwc1 $f20,0x1c4($sp) -/* f12564c: c7a602f4 */ lwc1 $f6,0x2f4($sp) -/* f125650: afa200c4 */ sw $v0,0xc4($sp) -/* f125654: 4606a302 */ mul.s $f12,$f20,$f6 -/* f125658: 0fc54be8 */ jal func0f152fa0 -/* f12565c: 00000000 */ nop -/* f125660: c7b401c4 */ lwc1 $f20,0x1c4($sp) -/* f125664: c7aa02f8 */ lwc1 $f10,0x2f8($sp) -/* f125668: afa200b0 */ sw $v0,0xb0($sp) -/* f12566c: 460aa302 */ mul.s $f12,$f20,$f10 -/* f125670: 0fc54be8 */ jal func0f152fa0 -/* f125674: 00000000 */ nop -/* f125678: c7b401c4 */ lwc1 $f20,0x1c4($sp) -/* f12567c: c7a802fc */ lwc1 $f8,0x2fc($sp) -/* f125680: afa200ac */ sw $v0,0xac($sp) -/* f125684: 4608a302 */ mul.s $f12,$f20,$f8 -/* f125688: 0fc54be8 */ jal func0f152fa0 -/* f12568c: 00000000 */ nop -/* f125690: c7b401c4 */ lwc1 $f20,0x1c4($sp) -/* f125694: c7a40300 */ lwc1 $f4,0x300($sp) -/* f125698: afa200a8 */ sw $v0,0xa8($sp) -/* f12569c: 4604a302 */ mul.s $f12,$f20,$f4 -/* f1256a0: 0fc54be8 */ jal func0f152fa0 -/* f1256a4: 00000000 */ nop -/* f1256a8: c7b401c4 */ lwc1 $f20,0x1c4($sp) -/* f1256ac: c7a60274 */ lwc1 $f6,0x274($sp) -/* f1256b0: afa200a4 */ sw $v0,0xa4($sp) -/* f1256b4: 4606a302 */ mul.s $f12,$f20,$f6 -/* f1256b8: 0fc54be8 */ jal func0f152fa0 -/* f1256bc: 00000000 */ nop -/* f1256c0: c7b401c4 */ lwc1 $f20,0x1c4($sp) -/* f1256c4: c7aa0278 */ lwc1 $f10,0x278($sp) -/* f1256c8: afa200c0 */ sw $v0,0xc0($sp) -/* f1256cc: 460aa302 */ mul.s $f12,$f20,$f10 -/* f1256d0: 0fc54be8 */ jal func0f152fa0 -/* f1256d4: 00000000 */ nop -/* f1256d8: c7b401c4 */ lwc1 $f20,0x1c4($sp) -/* f1256dc: c7a8027c */ lwc1 $f8,0x27c($sp) -/* f1256e0: afa200bc */ sw $v0,0xbc($sp) -/* f1256e4: 4608a302 */ mul.s $f12,$f20,$f8 -/* f1256e8: 0fc54be8 */ jal func0f152fa0 -/* f1256ec: 00000000 */ nop -/* f1256f0: c7b401c4 */ lwc1 $f20,0x1c4($sp) -/* f1256f4: c7a40280 */ lwc1 $f4,0x280($sp) -/* f1256f8: afa200b8 */ sw $v0,0xb8($sp) -/* f1256fc: 4604a302 */ mul.s $f12,$f20,$f4 -/* f125700: 0fc54be8 */ jal func0f152fa0 -/* f125704: 00000000 */ nop -/* f125708: 8fa800b8 */ lw $t0,0xb8($sp) -/* f12570c: 8fab00d4 */ lw $t3,0xd4($sp) -/* f125710: 8fbf00e0 */ lw $ra,0xe0($sp) -/* f125714: 3c0db400 */ lui $t5,0xb400 -/* f125718: ae0d0000 */ sw $t5,0x0($s0) -/* f12571c: 8fb800dc */ lw $t8,0xdc($sp) -/* f125720: 3c09ffff */ lui $t1,0xffff -/* f125724: 03e97024 */ and $t6,$ra,$t1 -/* f125728: 0309c824 */ and $t9,$t8,$t1 -/* f12572c: 00197c02 */ srl $t7,$t9,0x10 -/* f125730: 01cfc025 */ or $t8,$t6,$t7 -/* f125734: ae180004 */ sw $t8,0x4($s0) -/* f125738: 26040008 */ addiu $a0,$s0,0x8 -/* f12573c: 3c19b200 */ lui $t9,0xb200 -/* f125740: ac990000 */ sw $t9,0x0($a0) -/* f125744: 8fae00d8 */ lw $t6,0xd8($sp) -/* f125748: 0169c024 */ and $t8,$t3,$t1 -/* f12574c: 0018cc02 */ srl $t9,$t8,0x10 -/* f125750: 01c97824 */ and $t7,$t6,$t1 -/* f125754: 01f97025 */ or $t6,$t7,$t9 -/* f125758: ac8e0004 */ sw $t6,0x4($a0) -/* f12575c: 24850008 */ addiu $a1,$a0,0x8 -/* f125760: acad0000 */ sw $t5,0x0($a1) -/* f125764: 8fb900cc */ lw $t9,0xcc($sp) -/* f125768: 8fb800d0 */ lw $t8,0xd0($sp) -/* f12576c: 24a60008 */ addiu $a2,$a1,0x8 -/* f125770: 03297024 */ and $t6,$t9,$t1 -/* f125774: 03097824 */ and $t7,$t8,$t1 -/* f125778: 000ec402 */ srl $t8,$t6,0x10 -/* f12577c: 01f8c825 */ or $t9,$t7,$t8 -/* f125780: acb90004 */ sw $t9,0x4($a1) -/* f125784: 8fac00c4 */ lw $t4,0xc4($sp) -/* f125788: 3c0eb200 */ lui $t6,0xb200 -/* f12578c: acce0000 */ sw $t6,0x0($a2) -/* f125790: 8faf00c8 */ lw $t7,0xc8($sp) -/* f125794: 0189c824 */ and $t9,$t4,$t1 -/* f125798: 00197402 */ srl $t6,$t9,0x10 -/* f12579c: 01e9c024 */ and $t8,$t7,$t1 -/* f1257a0: 030e7825 */ or $t7,$t8,$t6 -/* f1257a4: accf0004 */ sw $t7,0x4($a2) -/* f1257a8: 24c30008 */ addiu $v1,$a2,0x8 -/* f1257ac: ac6d0000 */ sw $t5,0x0($v1) -/* f1257b0: 8fae00dc */ lw $t6,0xdc($sp) -/* f1257b4: 001fc400 */ sll $t8,$ra,0x10 -/* f1257b8: 24700008 */ addiu $s0,$v1,0x8 -/* f1257bc: 31cfffff */ andi $t7,$t6,0xffff -/* f1257c0: 030fc825 */ or $t9,$t8,$t7 -/* f1257c4: ac790004 */ sw $t9,0x4($v1) -/* f1257c8: 3c0eb200 */ lui $t6,0xb200 -/* f1257cc: ae0e0000 */ sw $t6,0x0($s0) -/* f1257d0: 8faf00d8 */ lw $t7,0xd8($sp) -/* f1257d4: 316effff */ andi $t6,$t3,0xffff -/* f1257d8: 26070008 */ addiu $a3,$s0,0x8 -/* f1257dc: 000fcc00 */ sll $t9,$t7,0x10 -/* f1257e0: 032ec025 */ or $t8,$t9,$t6 -/* f1257e4: ae180004 */ sw $t8,0x4($s0) -/* f1257e8: aced0000 */ sw $t5,0x0($a3) -/* f1257ec: 8fb800cc */ lw $t8,0xcc($sp) -/* f1257f0: 8fb900d0 */ lw $t9,0xd0($sp) -/* f1257f4: 8fab00c0 */ lw $t3,0xc0($sp) -/* f1257f8: 330fffff */ andi $t7,$t8,0xffff -/* f1257fc: 00197400 */ sll $t6,$t9,0x10 -/* f125800: 8fa600bc */ lw $a2,0xbc($sp) -/* f125804: 01cfc825 */ or $t9,$t6,$t7 -/* f125808: acf90004 */ sw $t9,0x4($a3) -/* f12580c: 3c0db200 */ lui $t5,0xb200 -/* f125810: 24e30008 */ addiu $v1,$a3,0x8 -/* f125814: ac6d0000 */ sw $t5,0x0($v1) -/* f125818: 8fae00c8 */ lw $t6,0xc8($sp) -/* f12581c: 3199ffff */ andi $t9,$t4,0xffff -/* f125820: 24640008 */ addiu $a0,$v1,0x8 -/* f125824: 000e7c00 */ sll $t7,$t6,0x10 -/* f125828: 01f9c025 */ or $t8,$t7,$t9 -/* f12582c: ac780004 */ sw $t8,0x4($v1) -/* f125830: 3c0eb400 */ lui $t6,0xb400 -/* f125834: 00c9c824 */ and $t9,$a2,$t1 -/* f125838: 0019c402 */ srl $t8,$t9,0x10 -/* f12583c: ac8e0000 */ sw $t6,0x0($a0) -/* f125840: 01697824 */ and $t7,$t3,$t1 -/* f125844: 01f87025 */ or $t6,$t7,$t8 -/* f125848: 00497824 */ and $t7,$v0,$t1 -/* f12584c: ac8e0004 */ sw $t6,0x4($a0) -/* f125850: 000fc402 */ srl $t8,$t7,0x10 -/* f125854: 0109c824 */ and $t9,$t0,$t1 -/* f125858: 24850008 */ addiu $a1,$a0,0x8 -/* f12585c: 03387025 */ or $t6,$t9,$t8 -/* f125860: acae0004 */ sw $t6,0x4($a1) -/* f125864: acad0000 */ sw $t5,0x0($a1) -/* f125868: 8fbf00ac */ lw $ra,0xac($sp) -/* f12586c: 8fad00b0 */ lw $t5,0xb0($sp) -/* f125870: 00405025 */ or $t2,$v0,$zero -/* f125874: 24b00008 */ addiu $s0,$a1,0x8 -/* f125878: 8fac00a8 */ lw $t4,0xa8($sp) -/* f12587c: 8fa700a4 */ lw $a3,0xa4($sp) -/* f125880: 02001025 */ or $v0,$s0,$zero -/* f125884: 3c0fb400 */ lui $t7,0xb400 -/* f125888: 03e9c024 */ and $t8,$ra,$t1 -/* f12588c: 00187402 */ srl $t6,$t8,0x10 -/* f125890: ac4f0000 */ sw $t7,0x0($v0) -/* f125894: 01a9c824 */ and $t9,$t5,$t1 -/* f125898: 032e7825 */ or $t7,$t9,$t6 -/* f12589c: ac4f0004 */ sw $t7,0x4($v0) -/* f1258a0: 26030008 */ addiu $v1,$s0,0x8 -/* f1258a4: 3c18b200 */ lui $t8,0xb200 -/* f1258a8: 00e97024 */ and $t6,$a3,$t1 -/* f1258ac: 000e7c02 */ srl $t7,$t6,0x10 -/* f1258b0: ac780000 */ sw $t8,0x0($v1) -/* f1258b4: 0189c824 */ and $t9,$t4,$t1 -/* f1258b8: 032fc025 */ or $t8,$t9,$t7 -/* f1258bc: ac780004 */ sw $t8,0x4($v1) -/* f1258c0: 24700008 */ addiu $s0,$v1,0x8 -/* f1258c4: 3c0eb400 */ lui $t6,0xb400 -/* f1258c8: ae0e0000 */ sw $t6,0x0($s0) -/* f1258cc: 000b7c00 */ sll $t7,$t3,0x10 -/* f1258d0: 30d8ffff */ andi $t8,$a2,0xffff -/* f1258d4: 01f87025 */ or $t6,$t7,$t8 -/* f1258d8: ae0e0004 */ sw $t6,0x4($s0) -/* f1258dc: 26050008 */ addiu $a1,$s0,0x8 -/* f1258e0: 3c19b200 */ lui $t9,0xb200 -/* f1258e4: acb90000 */ sw $t9,0x0($a1) -/* f1258e8: 314effff */ andi $t6,$t2,0xffff -/* f1258ec: 0008c400 */ sll $t8,$t0,0x10 -/* f1258f0: 030ec825 */ or $t9,$t8,$t6 -/* f1258f4: acb90004 */ sw $t9,0x4($a1) -/* f1258f8: 24a30008 */ addiu $v1,$a1,0x8 -/* f1258fc: 3c0fb400 */ lui $t7,0xb400 -/* f125900: ac6f0000 */ sw $t7,0x0($v1) -/* f125904: 33f9ffff */ andi $t9,$ra,0xffff -/* f125908: 000d7400 */ sll $t6,$t5,0x10 -/* f12590c: 01d97825 */ or $t7,$t6,$t9 -/* f125910: ac6f0004 */ sw $t7,0x4($v1) -/* f125914: 24640008 */ addiu $a0,$v1,0x8 -/* f125918: 3c18b300 */ lui $t8,0xb300 -/* f12591c: ac980000 */ sw $t8,0x0($a0) -/* f125920: 000ccc00 */ sll $t9,$t4,0x10 -/* f125924: 30efffff */ andi $t7,$a3,0xffff -/* f125928: 032fc025 */ or $t8,$t9,$t7 -/* f12592c: ac980004 */ sw $t8,0x4($a0) -/* f125930: 24820008 */ addiu $v0,$a0,0x8 -.L0f125934: -/* f125934: 8fbf0024 */ lw $ra,0x24($sp) -/* f125938: d7b40018 */ ldc1 $f20,0x18($sp) -/* f12593c: 8fb00020 */ lw $s0,0x20($sp) -/* f125940: 03e00008 */ jr $ra -/* f125944: 27bd04d0 */ addiu $sp,$sp,0x4d0 -); - -GLOBAL_ASM( -glabel func0f125948 -/* f125948: 27bdffd8 */ addiu $sp,$sp,-40 -/* f12594c: afbf0014 */ sw $ra,0x14($sp) -/* f125950: afa40028 */ sw $a0,0x28($sp) -/* f125954: afa5002c */ sw $a1,0x2c($sp) -/* f125958: 0c002f40 */ jal viGetViewLeft -/* f12595c: afa60030 */ sw $a2,0x30($sp) -/* f125960: 0c002f44 */ jal viGetViewTop -/* f125964: afa20024 */ sw $v0,0x24($sp) -/* f125968: 0c002f22 */ jal viGetViewWidth -/* f12596c: afa20020 */ sw $v0,0x20($sp) -/* f125970: 0c002f26 */ jal viGetViewHeight -/* f125974: afa2001c */ sw $v0,0x1c($sp) -/* f125978: 8fa30024 */ lw $v1,0x24($sp) -/* f12597c: 8fa4002c */ lw $a0,0x2c($sp) -/* f125980: 8fae001c */ lw $t6,0x1c($sp) -/* f125984: 0083082a */ slt $at,$a0,$v1 -/* f125988: 14200020 */ bnez $at,.L0f125a0c -/* f12598c: 006e7821 */ addu $t7,$v1,$t6 -/* f125990: 008f082a */ slt $at,$a0,$t7 -/* f125994: 1020001d */ beqz $at,.L0f125a0c -/* f125998: 8fa30020 */ lw $v1,0x20($sp) -/* f12599c: 8fa50030 */ lw $a1,0x30($sp) -/* f1259a0: 0062c021 */ addu $t8,$v1,$v0 -/* f1259a4: 00a3082a */ slt $at,$a1,$v1 -/* f1259a8: 14200018 */ bnez $at,.L0f125a0c -/* f1259ac: 00b8082a */ slt $at,$a1,$t8 -/* f1259b0: 50200017 */ beqzl $at,.L0f125a10 -/* f1259b4: 8fbf0014 */ lw $ra,0x14($sp) -/* f1259b8: 0fc2d5f6 */ jal currentPlayerGetScreenWidth -/* f1259bc: 00000000 */ nop -/* f1259c0: 4600010d */ trunc.w.s $f4,$f0 -/* f1259c4: 8fa90030 */ lw $t1,0x30($sp) -/* f1259c8: 8fab002c */ lw $t3,0x2c($sp) -/* f1259cc: 3c0e8008 */ lui $t6,%hi(var800844f0) -/* f1259d0: 44082000 */ mfc1 $t0,$f4 -/* f1259d4: 8dce44f0 */ lw $t6,%lo(var800844f0)($t6) -/* f1259d8: 8fa20028 */ lw $v0,0x28($sp) -/* f1259dc: 01090019 */ multu $t0,$t1 -/* f1259e0: 24080001 */ addiu $t0,$zero,0x1 -/* f1259e4: 00005012 */ mflo $t2 -/* f1259e8: 014b6021 */ addu $t4,$t2,$t3 -/* f1259ec: 000c6840 */ sll $t5,$t4,0x1 -/* f1259f0: 01ae7821 */ addu $t7,$t5,$t6 -/* f1259f4: ac4f0008 */ sw $t7,0x8($v0) -/* f1259f8: 8fb8002c */ lw $t8,0x2c($sp) -/* f1259fc: a458000e */ sh $t8,0xe($v0) -/* f125a00: 8fb90030 */ lw $t9,0x30($sp) -/* f125a04: a4480000 */ sh $t0,0x0($v0) -/* f125a08: a459000c */ sh $t9,0xc($v0) -.L0f125a0c: -/* f125a0c: 8fbf0014 */ lw $ra,0x14($sp) -.L0f125a10: -/* f125a10: 27bd0028 */ addiu $sp,$sp,0x28 -/* f125a14: 03e00008 */ jr $ra -/* f125a18: 00000000 */ nop -); - -f32 func0f125a1c(struct bootbufferthingdeep *arg0) -{ - f32 sum = 0; - s32 i; - - for (i = 0; i < 8; i++) { - if (arg0[i].unk00 == 1 && arg0[i].unk02 == 0xfffc) { - sum += 0.125f; - } - } - - return sum; -} - -#if VERSION == VERSION_PAL_FINAL -GLOBAL_ASM( -glabel func0f125a6c -.late_rodata -glabel var7f1b5108 -.word 0x3d888889 -.text -/* f12656c: 27bdfe90 */ addiu $sp,$sp,-368 -/* f126570: afbf008c */ sw $ra,0x8c($sp) -/* f126574: afbe0088 */ sw $s8,0x88($sp) -/* f126578: afb70084 */ sw $s7,0x84($sp) -/* f12657c: afb60080 */ sw $s6,0x80($sp) -/* f126580: afb5007c */ sw $s5,0x7c($sp) -/* f126584: afb40078 */ sw $s4,0x78($sp) -/* f126588: afb30074 */ sw $s3,0x74($sp) -/* f12658c: afb20070 */ sw $s2,0x70($sp) -/* f126590: afb1006c */ sw $s1,0x6c($sp) -/* f126594: afb00068 */ sw $s0,0x68($sp) -/* f126598: f7be0060 */ sdc1 $f30,0x60($sp) -/* f12659c: f7bc0058 */ sdc1 $f28,0x58($sp) -/* f1265a0: f7ba0050 */ sdc1 $f26,0x50($sp) -/* f1265a4: f7b80048 */ sdc1 $f24,0x48($sp) -/* f1265a8: f7b60040 */ sdc1 $f22,0x40($sp) -/* f1265ac: f7b40038 */ sdc1 $f20,0x38($sp) -/* f1265b0: afa40170 */ sw $a0,0x170($sp) -/* f1265b4: 0fc2d706 */ jal currentPlayerGetMatrix1740 -/* f1265b8: afa50174 */ sw $a1,0x174($sp) -/* f1265bc: 0fc2d70e */ jal currentPlayerGetUnk1754 -/* f1265c0: afa2016c */ sw $v0,0x16c($sp) -/* f1265c4: 0fc599d3 */ jal envGetCurrent -/* f1265c8: afa20168 */ sw $v0,0x168($sp) -/* f1265cc: afa20144 */ sw $v0,0x144($sp) -/* f1265d0: 904e000b */ lbu $t6,0xb($v0) -/* f1265d4: 3c0f8008 */ lui $t7,0x8008 -/* f1265d8: 19c00008 */ blez $t6,.PF0f1265fc -/* f1265dc: 00000000 */ nop -/* f1265e0: 8def4a40 */ lw $t7,0x4a40($t7) -/* f1265e4: 3c18800a */ lui $t8,0x800a -/* f1265e8: 11e00004 */ beqz $t7,.PF0f1265fc -/* f1265ec: 00000000 */ nop -/* f1265f0: 8f18a824 */ lw $t8,-0x57dc($t8) -/* f1265f4: 13000003 */ beqz $t8,.PF0f126604 -/* f1265f8: 00000000 */ nop -.PF0f1265fc: -/* f1265fc: 10000208 */ b .PF0f126e20 -/* f126600: 8fa20170 */ lw $v0,0x170($sp) -.PF0f126604: -/* f126604: 0c002e91 */ jal viGetViewLeft -/* f126608: 00000000 */ nop -/* f12660c: 0c002e95 */ jal viGetViewTop -/* f126610: a7a20166 */ sh $v0,0x166($sp) -/* f126614: 0c002e73 */ jal viGetViewWidth -/* f126618: a7a20164 */ sh $v0,0x164($sp) -/* f12661c: 0c002e77 */ jal viGetViewHeight -/* f126620: a7a20162 */ sh $v0,0x162($sp) -/* f126624: 87b90162 */ lh $t9,0x162($sp) -/* f126628: 44824000 */ mtc1 $v0,$f8 -/* f12662c: 8fa30144 */ lw $v1,0x144($sp) -/* f126630: 44992000 */ mtc1 $t9,$f4 -/* f126634: 468042a0 */ cvt.s.w $f10,$f8 -/* f126638: a7a20160 */ sh $v0,0x160($sp) -/* f12663c: 3c14800a */ lui $s4,0x800a -/* f126640: 3c013f80 */ lui $at,0x3f80 -/* f126644: 468021a0 */ cvt.s.w $f6,$f4 -/* f126648: e7aa0150 */ swc1 $f10,0x150($sp) -/* f12664c: e7a600c8 */ swc1 $f6,0xc8($sp) -/* f126650: e7a60154 */ swc1 $f6,0x154($sp) -/* f126654: 8c76000c */ lw $s6,0xc($v1) -/* f126658: afa0013c */ sw $zero,0x13c($sp) -/* f12665c: 9068000b */ lbu $t0,0xb($v1) -/* f126660: 590001ef */ blezl $t0,.PF0f126e20 -/* f126664: 8fa20170 */ lw $v0,0x170($sp) -/* f126668: 4480e000 */ mtc1 $zero,$f28 -/* f12666c: 4481d000 */ mtc1 $at,$f26 -/* f126670: 26943988 */ addiu $s4,$s4,0x3988 -/* f126674: c6d00004 */ lwc1 $f16,0x4($s6) -.PF0f126678: -/* f126678: 8fac0174 */ lw $t4,0x174($sp) -/* f12667c: e6900000 */ swc1 $f16,0x0($s4) -/* f126680: c6d20008 */ lwc1 $f18,0x8($s6) -/* f126684: e6920004 */ swc1 $f18,0x4($s4) -/* f126688: c6c4000c */ lwc1 $f4,0xc($s6) -/* f12668c: e6840008 */ swc1 $f4,0x8($s4) -/* f126690: 92c90001 */ lbu $t1,0x1($s6) -/* f126694: 8fa4016c */ lw $a0,0x16c($sp) -/* f126698: a3a90148 */ sb $t1,0x148($sp) -/* f12669c: 92ca0002 */ lbu $t2,0x2($s6) -/* f1266a0: a3aa0149 */ sb $t2,0x149($sp) -/* f1266a4: 92cb0003 */ lbu $t3,0x3($s6) -/* f1266a8: 158001d2 */ bnez $t4,.PF0f126df4 -/* f1266ac: a3ab014a */ sb $t3,0x14a($sp) -/* f1266b0: 0c00563d */ jal mtx4TransformVecInPlace -/* f1266b4: 02802825 */ move $a1,$s4 -/* f1266b8: 8fa40168 */ lw $a0,0x168($sp) -/* f1266bc: 0c00563d */ jal mtx4TransformVecInPlace -/* f1266c0: 02802825 */ move $a1,$s4 -/* f1266c4: c6800008 */ lwc1 $f0,0x8($s4) -/* f1266c8: 4600d03c */ c.lt.s $f26,$f0 -/* f1266cc: 00000000 */ nop -/* f1266d0: 450201c9 */ bc1fl .PF0f126df8 -/* f1266d4: 8fa9013c */ lw $t1,0x13c($sp) -/* f1266d8: c6880000 */ lwc1 $f8,0x0($s4) -/* f1266dc: 3c013f00 */ lui $at,0x3f00 -/* f1266e0: 44811000 */ mtc1 $at,$f2 -/* f1266e4: 46004283 */ div.s $f10,$f8,$f0 -/* f1266e8: 87af0166 */ lh $t7,0x166($sp) -/* f1266ec: c7a40154 */ lwc1 $f4,0x154($sp) -/* f1266f0: 8fb0013c */ lw $s0,0x13c($sp) -/* f1266f4: 448f3000 */ mtc1 $t7,$f6 -/* f1266f8: 3c0e800a */ lui $t6,0x800a -/* f1266fc: 87b90164 */ lh $t9,0x164($sp) -/* f126700: 46803520 */ cvt.s.w $f20,$f6 -/* f126704: 25ce39b0 */ addiu $t6,$t6,0x39b0 -/* f126708: 00106880 */ sll $t5,$s0,0x2 -/* f12670c: 01ae8821 */ addu $s1,$t5,$t6 -/* f126710: 3c18800a */ lui $t8,0x800a -/* f126714: 3c088008 */ lui $t0,0x8008 -/* f126718: 271839c0 */ addiu $t8,$t8,0x39c0 -/* f12671c: 2508e064 */ addiu $t0,$t0,-8092 -/* f126720: 01b89021 */ addu $s2,$t5,$t8 -/* f126724: 01a84821 */ addu $t1,$t5,$t0 -/* f126728: 01a08025 */ move $s0,$t5 -/* f12672c: afa90094 */ sw $t1,0x94($sp) -/* f126730: afa00120 */ sw $zero,0x120($sp) -/* f126734: 461a5400 */ add.s $f16,$f10,$f26 -/* f126738: 44995000 */ mtc1 $t9,$f10 -/* f12673c: 46028482 */ mul.s $f18,$f16,$f2 -/* f126740: c6900004 */ lwc1 $f16,0x4($s4) -/* f126744: 468055a0 */ cvt.s.w $f22,$f10 -/* f126748: 46049182 */ mul.s $f6,$f18,$f4 -/* f12674c: c7aa0150 */ lwc1 $f10,0x150($sp) -/* f126750: 46008487 */ neg.s $f18,$f16 -/* f126754: 46009103 */ div.s $f4,$f18,$f0 -/* f126758: 46143200 */ add.s $f8,$f6,$f20 -/* f12675c: e6280000 */ swc1 $f8,0x0($s1) -/* f126760: 461a2180 */ add.s $f6,$f4,$f26 -/* f126764: 46023202 */ mul.s $f8,$f6,$f2 -/* f126768: 00000000 */ nop -/* f12676c: 460a4402 */ mul.s $f16,$f8,$f10 -/* f126770: 46168480 */ add.s $f18,$f16,$f22 -/* f126774: 0c002eee */ jal viGetFovY -/* f126778: e6520000 */ swc1 $f18,0x0($s2) -/* f12677c: 3c014270 */ lui $at,0x4270 -/* f126780: 44812000 */ mtc1 $at,$f4 -/* f126784: 86ca0010 */ lh $t2,0x10($s6) -/* f126788: c62c0000 */ lwc1 $f12,0x0($s1) -/* f12678c: 46002183 */ div.s $f6,$f4,$f0 -/* f126790: 448a4000 */ mtc1 $t2,$f8 -/* f126794: c7b200c8 */ lwc1 $f18,0xc8($sp) -/* f126798: 468042a0 */ cvt.s.w $f10,$f8 -/* f12679c: 460a3602 */ mul.s $f24,$f6,$f10 -/* f1267a0: 4618a401 */ sub.s $f16,$f20,$f24 -/* f1267a4: 460c803e */ c.le.s $f16,$f12 -/* f1267a8: 00000000 */ nop -/* f1267ac: 45020182 */ bc1fl .PF0f126db8 -/* f1267b0: 8fad0120 */ lw $t5,0x120($sp) -/* f1267b4: 4612a080 */ add.s $f2,$f20,$f18 -/* f1267b8: 46181100 */ add.s $f4,$f2,$f24 -/* f1267bc: 4604603c */ c.lt.s $f12,$f4 -/* f1267c0: 00000000 */ nop -/* f1267c4: 4502017c */ bc1fl .PF0f126db8 -/* f1267c8: 8fad0120 */ lw $t5,0x120($sp) -/* f1267cc: 4618b201 */ sub.s $f8,$f22,$f24 -/* f1267d0: c64e0000 */ lwc1 $f14,0x0($s2) -/* f1267d4: c7a60150 */ lwc1 $f6,0x150($sp) -/* f1267d8: 460e403e */ c.le.s $f8,$f14 -/* f1267dc: 00000000 */ nop -/* f1267e0: 45020175 */ bc1fl .PF0f126db8 -/* f1267e4: 8fad0120 */ lw $t5,0x120($sp) -/* f1267e8: 4606b000 */ add.s $f0,$f22,$f6 -/* f1267ec: 3c0b8008 */ lui $t3,0x8008 -/* f1267f0: 256be058 */ addiu $t3,$t3,-8104 -/* f1267f4: 020b6021 */ addu $t4,$s0,$t3 -/* f1267f8: 46180280 */ add.s $f10,$f0,$f24 -/* f1267fc: 240f0001 */ li $t7,0x1 -/* f126800: 460a703c */ c.lt.s $f14,$f10 -/* f126804: 00000000 */ nop -/* f126808: 4502016b */ bc1fl .PF0f126db8 -/* f12680c: 8fad0120 */ lw $t5,0x120($sp) -/* f126810: 8fad013c */ lw $t5,0x13c($sp) -/* f126814: 460ca03e */ c.le.s $f20,$f12 -/* f126818: 448f8000 */ mtc1 $t7,$f16 -/* f12681c: 000d7080 */ sll $t6,$t5,0x2 -/* f126820: 01cd7021 */ addu $t6,$t6,$t5 -/* f126824: 000e7140 */ sll $t6,$t6,0x5 -/* f126828: afae0098 */ sw $t6,0x98($sp) -/* f12682c: afac009c */ sw $t4,0x9c($sp) -/* f126830: 450000aa */ bc1f .PF0f126adc -/* f126834: 468087a0 */ cvt.s.w $f30,$f16 -/* f126838: 4602603c */ c.lt.s $f12,$f2 -/* f12683c: 00000000 */ nop -/* f126840: 450200a7 */ bc1fl .PF0f126ae0 -/* f126844: 8fa20094 */ lw $v0,0x94($sp) -/* f126848: 460eb03e */ c.le.s $f22,$f14 -/* f12684c: 00000000 */ nop -/* f126850: 450200a3 */ bc1fl .PF0f126ae0 -/* f126854: 8fa20094 */ lw $v0,0x94($sp) -/* f126858: 4600703c */ c.lt.s $f14,$f0 -/* f12685c: 87a30166 */ lh $v1,0x166($sp) -/* f126860: 87a20164 */ lh $v0,0x164($sp) -/* f126864: 87b80162 */ lh $t8,0x162($sp) -/* f126868: 4500009c */ bc1f .PF0f126adc -/* f12686c: 2470000f */ addiu $s0,$v1,0xf -/* f126870: 87b90160 */ lh $t9,0x160($sp) -/* f126874: 00789821 */ addu $s3,$v1,$t8 -/* f126878: 267efff0 */ addiu $s8,$s3,-16 -/* f12687c: 0059b821 */ addu $s7,$v0,$t9 -/* f126880: 26e8fff0 */ addiu $t0,$s7,-16 -/* f126884: afa800a0 */ sw $t0,0xa0($sp) -/* f126888: 0c00090f */ jal bbufGetIndex0Buffer -/* f12688c: 2455000f */ addiu $s5,$v0,0xf -/* f126890: c62c0000 */ lwc1 $f12,0x0($s1) -/* f126894: 3c01447a */ lui $at,0x447a -/* f126898: 44811000 */ mtc1 $at,$f2 -/* f12689c: 4600648d */ trunc.w.s $f18,$f12 -/* f1268a0: 24090001 */ li $t1,0x1 -/* f1268a4: 00403825 */ move $a3,$v0 -/* f1268a8: afa90120 */ sw $t1,0x120($sp) -/* f1268ac: 44039000 */ mfc1 $v1,$f18 -/* f1268b0: 8fad00a0 */ lw $t5,0xa0($sp) -/* f1268b4: 0070082a */ slt $at,$v1,$s0 -/* f1268b8: 10200008 */ beqz $at,.PF0f1268dc -/* f1268bc: 3c01447a */ lui $at,0x447a -/* f1268c0: 44812000 */ mtc1 $at,$f4 -/* f1268c4: 46006006 */ mov.s $f0,$f12 -/* f1268c8: 4604603c */ c.lt.s $f12,$f4 -/* f1268cc: 00000000 */ nop -/* f1268d0: 45020003 */ bc1fl .PF0f1268e0 -/* f1268d4: c64e0000 */ lwc1 $f14,0x0($s2) -/* f1268d8: 46000086 */ mov.s $f2,$f0 -.PF0f1268dc: -/* f1268dc: c64e0000 */ lwc1 $f14,0x0($s2) -.PF0f1268e0: -/* f1268e0: 4600720d */ trunc.w.s $f8,$f14 -/* f1268e4: 44024000 */ mfc1 $v0,$f8 -/* f1268e8: 00000000 */ nop -/* f1268ec: 0055082a */ slt $at,$v0,$s5 -/* f1268f0: 50200007 */ beqzl $at,.PF0f126910 -/* f1268f4: 03c3082a */ slt $at,$s8,$v1 -/* f1268f8: 4602703c */ c.lt.s $f14,$f2 -/* f1268fc: 46007006 */ mov.s $f0,$f14 -/* f126900: 45020003 */ bc1fl .PF0f126910 -/* f126904: 03c3082a */ slt $at,$s8,$v1 -/* f126908: 46000086 */ mov.s $f2,$f0 -/* f12690c: 03c3082a */ slt $at,$s8,$v1 -.PF0f126910: -/* f126910: 1020000a */ beqz $at,.PF0f12693c -/* f126914: 266cffff */ addiu $t4,$s3,-1 -/* f126918: 448c3000 */ mtc1 $t4,$f6 -/* f12691c: 00000000 */ nop -/* f126920: 468032a0 */ cvt.s.w $f10,$f6 -/* f126924: 460c5001 */ sub.s $f0,$f10,$f12 -/* f126928: 4602003c */ c.lt.s $f0,$f2 -/* f12692c: 00000000 */ nop -/* f126930: 45020003 */ bc1fl .PF0f126940 -/* f126934: 01a2082a */ slt $at,$t5,$v0 -/* f126938: 46000086 */ mov.s $f2,$f0 -.PF0f12693c: -/* f12693c: 01a2082a */ slt $at,$t5,$v0 -.PF0f126940: -/* f126940: 1020000a */ beqz $at,.PF0f12696c -/* f126944: 26eeffff */ addiu $t6,$s7,-1 -/* f126948: 448e8000 */ mtc1 $t6,$f16 -/* f12694c: 00000000 */ nop -/* f126950: 468084a0 */ cvt.s.w $f18,$f16 -/* f126954: 460e9001 */ sub.s $f0,$f18,$f14 -/* f126958: 4602003c */ c.lt.s $f0,$f2 -/* f12695c: 00000000 */ nop -/* f126960: 45020003 */ bc1fl .PF0f126970 -/* f126964: 461a1081 */ sub.s $f2,$f2,$f26 -/* f126968: 46000086 */ mov.s $f2,$f0 -.PF0f12696c: -/* f12696c: 461a1081 */ sub.s $f2,$f2,$f26 -.PF0f126970: -/* f126970: 3c017f1b */ lui $at,0x7f1b -/* f126974: 461c103c */ c.lt.s $f2,$f28 -/* f126978: 00000000 */ nop -/* f12697c: 45000002 */ bc1f .PF0f126988 -/* f126980: 00000000 */ nop -/* f126984: 4600e086 */ mov.s $f2,$f28 -.PF0f126988: -/* f126988: c42463f8 */ lwc1 $f4,0x63f8($at) -/* f12698c: 8faf009c */ lw $t7,0x9c($sp) -/* f126990: 46041002 */ mul.s $f0,$f2,$f4 -/* f126994: 4600d03c */ c.lt.s $f26,$f0 -/* f126998: e5e00000 */ swc1 $f0,0x0($t7) -/* f12699c: 8fb8009c */ lw $t8,0x9c($sp) -/* f1269a0: 45020003 */ bc1fl .PF0f1269b0 -/* f1269a4: 8fb90098 */ lw $t9,0x98($sp) -/* f1269a8: e71a0000 */ swc1 $f26,0x0($t8) -/* f1269ac: 8fb90098 */ lw $t9,0x98($sp) -.PF0f1269b0: -/* f1269b0: 2465fff9 */ addiu $a1,$v1,-7 -/* f1269b4: 24460001 */ addiu $a2,$v0,0x1 -/* f1269b8: 03278021 */ addu $s0,$t9,$a3 -/* f1269bc: 0fc49912 */ jal func0f125948 -/* f1269c0: 02002025 */ move $a0,$s0 -/* f1269c4: c6280000 */ lwc1 $f8,0x0($s1) -/* f1269c8: c64a0000 */ lwc1 $f10,0x0($s2) -/* f1269cc: 26040014 */ addiu $a0,$s0,0x14 -/* f1269d0: 4600418d */ trunc.w.s $f6,$f8 -/* f1269d4: 4600540d */ trunc.w.s $f16,$f10 -/* f1269d8: 44053000 */ mfc1 $a1,$f6 -/* f1269dc: 44068000 */ mfc1 $a2,$f16 -/* f1269e0: 24a5fffb */ addiu $a1,$a1,-5 -/* f1269e4: 0fc49912 */ jal func0f125948 -/* f1269e8: 24c6fffd */ addiu $a2,$a2,-3 -/* f1269ec: c6320000 */ lwc1 $f18,0x0($s1) -/* f1269f0: c6480000 */ lwc1 $f8,0x0($s2) -/* f1269f4: 26040028 */ addiu $a0,$s0,0x28 -/* f1269f8: 4600910d */ trunc.w.s $f4,$f18 -/* f1269fc: 4600418d */ trunc.w.s $f6,$f8 -/* f126a00: 44052000 */ mfc1 $a1,$f4 -/* f126a04: 44063000 */ mfc1 $a2,$f6 -/* f126a08: 24a5fffd */ addiu $a1,$a1,-3 -/* f126a0c: 0fc49912 */ jal func0f125948 -/* f126a10: 24c60005 */ addiu $a2,$a2,0x5 -/* f126a14: c62a0000 */ lwc1 $f10,0x0($s1) -/* f126a18: c6520000 */ lwc1 $f18,0x0($s2) -/* f126a1c: 2604003c */ addiu $a0,$s0,0x3c -/* f126a20: 4600540d */ trunc.w.s $f16,$f10 -/* f126a24: 4600910d */ trunc.w.s $f4,$f18 -/* f126a28: 44058000 */ mfc1 $a1,$f16 -/* f126a2c: 44062000 */ mfc1 $a2,$f4 -/* f126a30: 24a5ffff */ addiu $a1,$a1,-1 -/* f126a34: 0fc49912 */ jal func0f125948 -/* f126a38: 24c6fff9 */ addiu $a2,$a2,-7 -/* f126a3c: c6280000 */ lwc1 $f8,0x0($s1) -/* f126a40: c64a0000 */ lwc1 $f10,0x0($s2) -/* f126a44: 26040050 */ addiu $a0,$s0,0x50 -/* f126a48: 4600418d */ trunc.w.s $f6,$f8 -/* f126a4c: 4600540d */ trunc.w.s $f16,$f10 -/* f126a50: 44053000 */ mfc1 $a1,$f6 -/* f126a54: 44068000 */ mfc1 $a2,$f16 -/* f126a58: 24a50001 */ addiu $a1,$a1,0x1 -/* f126a5c: 0fc49912 */ jal func0f125948 -/* f126a60: 24c60007 */ addiu $a2,$a2,0x7 -/* f126a64: c6320000 */ lwc1 $f18,0x0($s1) -/* f126a68: c6480000 */ lwc1 $f8,0x0($s2) -/* f126a6c: 26040064 */ addiu $a0,$s0,0x64 -/* f126a70: 4600910d */ trunc.w.s $f4,$f18 -/* f126a74: 4600418d */ trunc.w.s $f6,$f8 -/* f126a78: 44052000 */ mfc1 $a1,$f4 -/* f126a7c: 44063000 */ mfc1 $a2,$f6 -/* f126a80: 24a50003 */ addiu $a1,$a1,0x3 -/* f126a84: 0fc49912 */ jal func0f125948 -/* f126a88: 24c6fffb */ addiu $a2,$a2,-5 -/* f126a8c: c62a0000 */ lwc1 $f10,0x0($s1) -/* f126a90: c6520000 */ lwc1 $f18,0x0($s2) -/* f126a94: 26040078 */ addiu $a0,$s0,0x78 -/* f126a98: 4600540d */ trunc.w.s $f16,$f10 -/* f126a9c: 4600910d */ trunc.w.s $f4,$f18 -/* f126aa0: 44058000 */ mfc1 $a1,$f16 -/* f126aa4: 44062000 */ mfc1 $a2,$f4 -/* f126aa8: 24a50005 */ addiu $a1,$a1,0x5 -/* f126aac: 0fc49912 */ jal func0f125948 -/* f126ab0: 24c60003 */ addiu $a2,$a2,0x3 -/* f126ab4: c6280000 */ lwc1 $f8,0x0($s1) -/* f126ab8: c64a0000 */ lwc1 $f10,0x0($s2) -/* f126abc: 2604008c */ addiu $a0,$s0,0x8c -/* f126ac0: 4600418d */ trunc.w.s $f6,$f8 -/* f126ac4: 4600540d */ trunc.w.s $f16,$f10 -/* f126ac8: 44053000 */ mfc1 $a1,$f6 -/* f126acc: 44068000 */ mfc1 $a2,$f16 -/* f126ad0: 24a50007 */ addiu $a1,$a1,0x7 -/* f126ad4: 0fc49912 */ jal func0f125948 -/* f126ad8: 24c6ffff */ addiu $a2,$a2,-1 -.PF0f126adc: -/* f126adc: 8fa20094 */ lw $v0,0x94($sp) -.PF0f126ae0: -/* f126ae0: 3c0d800a */ lui $t5,0x800a -/* f126ae4: 8dada544 */ lw $t5,-0x5abc($t5) -/* f126ae8: 8c4c0000 */ lw $t4,0x0($v0) -/* f126aec: 3c05800b */ lui $a1,0x800b -/* f126af0: 240f0002 */ li $t7,0x2 -/* f126af4: 018d7021 */ addu $t6,$t4,$t5 -/* f126af8: ac4e0000 */ sw $t6,0x0($v0) -/* f126afc: 8ca5bb40 */ lw $a1,-0x44c0($a1) -/* f126b00: 24180001 */ li $t8,0x1 -/* f126b04: afb80014 */ sw $t8,0x14($sp) -/* f126b08: afaf0010 */ sw $t7,0x10($sp) -/* f126b0c: 27a40170 */ addiu $a0,$sp,0x170 -/* f126b10: 24060004 */ li $a2,0x4 -/* f126b14: 00003825 */ move $a3,$zero -/* f126b18: afa00018 */ sw $zero,0x18($sp) -/* f126b1c: 0fc2cfb8 */ jal func0f0b39c0 -/* f126b20: 24a5003c */ addiu $a1,$a1,0x3c -/* f126b24: 8fb90170 */ lw $t9,0x170($sp) -/* f126b28: 3c09ba00 */ lui $t1,0xba00 -/* f126b2c: 35291402 */ ori $t1,$t1,0x1402 -/* f126b30: 27280008 */ addiu $t0,$t9,0x8 -/* f126b34: afa80170 */ sw $t0,0x170($sp) -/* f126b38: af200004 */ sw $zero,0x4($t9) -/* f126b3c: af290000 */ sw $t1,0x0($t9) -/* f126b40: 8faa0170 */ lw $t2,0x170($sp) -/* f126b44: 3c0cba00 */ lui $t4,0xba00 -/* f126b48: 358c0602 */ ori $t4,$t4,0x602 -/* f126b4c: 254b0008 */ addiu $t3,$t2,0x8 -/* f126b50: afab0170 */ sw $t3,0x170($sp) -/* f126b54: 240d00c0 */ li $t5,0xc0 -/* f126b58: ad4d0004 */ sw $t5,0x4($t2) -/* f126b5c: ad4c0000 */ sw $t4,0x0($t2) -/* f126b60: 8fae0170 */ lw $t6,0x170($sp) -/* f126b64: 3c190050 */ lui $t9,0x50 -/* f126b68: 3c18b900 */ lui $t8,0xb900 -/* f126b6c: 25cf0008 */ addiu $t7,$t6,0x8 -/* f126b70: afaf0170 */ sw $t7,0x170($sp) -/* f126b74: 3718031d */ ori $t8,$t8,0x31d -/* f126b78: 373941c8 */ ori $t9,$t9,0x41c8 -/* f126b7c: add90004 */ sw $t9,0x4($t6) -/* f126b80: add80000 */ sw $t8,0x0($t6) -/* f126b84: 8fa80170 */ lw $t0,0x170($sp) -/* f126b88: 3c0aba00 */ lui $t2,0xba00 -/* f126b8c: 354a1301 */ ori $t2,$t2,0x1301 -/* f126b90: 25090008 */ addiu $t1,$t0,0x8 -/* f126b94: afa90170 */ sw $t1,0x170($sp) -/* f126b98: ad000004 */ sw $zero,0x4($t0) -/* f126b9c: ad0a0000 */ sw $t2,0x0($t0) -/* f126ba0: 8fab0170 */ lw $t3,0x170($sp) -/* f126ba4: 3c0db900 */ lui $t5,0xb900 -/* f126ba8: 35ad0002 */ ori $t5,$t5,0x2 -/* f126bac: 256c0008 */ addiu $t4,$t3,0x8 -/* f126bb0: afac0170 */ sw $t4,0x170($sp) -/* f126bb4: ad600004 */ sw $zero,0x4($t3) -/* f126bb8: ad6d0000 */ sw $t5,0x0($t3) -/* f126bbc: 8fae0170 */ lw $t6,0x170($sp) -/* f126bc0: 3c18ba00 */ lui $t8,0xba00 -/* f126bc4: 37181001 */ ori $t8,$t8,0x1001 -/* f126bc8: 25cf0008 */ addiu $t7,$t6,0x8 -/* f126bcc: afaf0170 */ sw $t7,0x170($sp) -/* f126bd0: adc00004 */ sw $zero,0x4($t6) -/* f126bd4: add80000 */ sw $t8,0x0($t6) -/* f126bd8: 8fb90170 */ lw $t9,0x170($sp) -/* f126bdc: 3c09ba00 */ lui $t1,0xba00 -/* f126be0: 35290903 */ ori $t1,$t1,0x903 -/* f126be4: 27280008 */ addiu $t0,$t9,0x8 -/* f126be8: afa80170 */ sw $t0,0x170($sp) -/* f126bec: 240a0c00 */ li $t2,0xc00 -/* f126bf0: af2a0004 */ sw $t2,0x4($t9) -/* f126bf4: af290000 */ sw $t1,0x0($t9) -/* f126bf8: 8fab0170 */ lw $t3,0x170($sp) -/* f126bfc: 3c0dba00 */ lui $t5,0xba00 -/* f126c00: 35ad0e02 */ ori $t5,$t5,0xe02 -/* f126c04: 256c0008 */ addiu $t4,$t3,0x8 -/* f126c08: afac0170 */ sw $t4,0x170($sp) -/* f126c0c: ad600004 */ sw $zero,0x4($t3) -/* f126c10: ad6d0000 */ sw $t5,0x0($t3) -/* f126c14: 8fae0170 */ lw $t6,0x170($sp) -/* f126c18: 3c18ba00 */ lui $t8,0xba00 -/* f126c1c: 37180c02 */ ori $t8,$t8,0xc02 -/* f126c20: 25cf0008 */ addiu $t7,$t6,0x8 -/* f126c24: afaf0170 */ sw $t7,0x170($sp) -/* f126c28: 24192000 */ li $t9,0x2000 -/* f126c2c: add90004 */ sw $t9,0x4($t6) -/* f126c30: add80000 */ sw $t8,0x0($t6) -/* f126c34: 8fa80170 */ lw $t0,0x170($sp) -/* f126c38: 3c0bffa7 */ lui $t3,0xffa7 -/* f126c3c: 3c0afc50 */ lui $t2,0xfc50 -/* f126c40: 25090008 */ addiu $t1,$t0,0x8 -/* f126c44: afa90170 */ sw $t1,0x170($sp) -/* f126c48: 354ad2a1 */ ori $t2,$t2,0xd2a1 -/* f126c4c: 356bffff */ ori $t3,$t3,0xffff -/* f126c50: ad0b0004 */ sw $t3,0x4($t0) -/* f126c54: ad0a0000 */ sw $t2,0x0($t0) -/* f126c58: 8fa30170 */ lw $v1,0x170($sp) -/* f126c5c: 3c0efb00 */ lui $t6,0xfb00 -/* f126c60: 3c01437f */ lui $at,0x437f -/* f126c64: 246d0008 */ addiu $t5,$v1,0x8 -/* f126c68: afad0170 */ sw $t5,0x170($sp) -/* f126c6c: ac6e0000 */ sw $t6,0x0($v1) -/* f126c70: 8faf009c */ lw $t7,0x9c($sp) -/* f126c74: 44812000 */ mtc1 $at,$f4 -/* f126c78: 3c013f00 */ lui $at,0x3f00 -/* f126c7c: c5f20000 */ lwc1 $f18,0x0($t7) -/* f126c80: 93aa0148 */ lbu $t2,0x148($sp) -/* f126c84: 93ae0149 */ lbu $t6,0x149($sp) -/* f126c88: 46049202 */ mul.s $f8,$f18,$f4 -/* f126c8c: 44819000 */ mtc1 $at,$f18 -/* f126c90: 93a9014a */ lbu $t1,0x14a($sp) -/* f126c94: 000a5e00 */ sll $t3,$t2,0x18 -/* f126c98: 4612c002 */ mul.s $f0,$f24,$f18 -/* f126c9c: 000e7c00 */ sll $t7,$t6,0x10 -/* f126ca0: 00095200 */ sll $t2,$t1,0x8 -/* f126ca4: 3c02800b */ lui $v0,0x800b -/* f126ca8: 240e0001 */ li $t6,0x1 -/* f126cac: 240d0001 */ li $t5,0x1 -/* f126cb0: 4600418d */ trunc.w.s $f6,$f8 -/* f126cb4: 461e0102 */ mul.s $f4,$f0,$f30 -/* f126cb8: 27a40170 */ addiu $a0,$sp,0x170 -/* f126cbc: 27a50134 */ addiu $a1,$sp,0x134 -/* f126cc0: 44193000 */ mfc1 $t9,$f6 -/* f126cc4: 27a6012c */ addiu $a2,$sp,0x12c -/* f126cc8: 332800ff */ andi $t0,$t9,0xff -/* f126ccc: 010b6025 */ or $t4,$t0,$t3 -/* f126cd0: 018fc025 */ or $t8,$t4,$t7 -/* f126cd4: 030a4025 */ or $t0,$t8,$t2 -/* f126cd8: ac680004 */ sw $t0,0x4($v1) -/* f126cdc: c62a0000 */ lwc1 $f10,0x0($s1) -/* f126ce0: c6500000 */ lwc1 $f16,0x0($s2) -/* f126ce4: 8c42bb40 */ lw $v0,-0x44c0($v0) -/* f126ce8: e7a4012c */ swc1 $f4,0x12c($sp) -/* f126cec: e7a00130 */ swc1 $f0,0x130($sp) -/* f126cf0: e7aa0134 */ swc1 $f10,0x134($sp) -/* f126cf4: e7b00138 */ swc1 $f16,0x138($sp) -/* f126cf8: 904b0041 */ lbu $t3,0x41($v0) -/* f126cfc: 90470040 */ lbu $a3,0x40($v0) -/* f126d00: 240f0001 */ li $t7,0x1 -/* f126d04: 240c0001 */ li $t4,0x1 -/* f126d08: afac0020 */ sw $t4,0x20($sp) -/* f126d0c: afaf0028 */ sw $t7,0x28($sp) -/* f126d10: afa00024 */ sw $zero,0x24($sp) -/* f126d14: afae001c */ sw $t6,0x1c($sp) -/* f126d18: afad0018 */ sw $t5,0x18($sp) -/* f126d1c: afa00014 */ sw $zero,0x14($sp) -/* f126d20: 0fc2c99c */ jal func0f0b2150 -/* f126d24: afab0010 */ sw $t3,0x10($sp) -/* f126d28: 8fb90170 */ lw $t9,0x170($sp) -/* f126d2c: 3c18e700 */ lui $t8,0xe700 -/* f126d30: 3c0bba00 */ lui $t3,0xba00 -/* f126d34: 27290008 */ addiu $t1,$t9,0x8 -/* f126d38: afa90170 */ sw $t1,0x170($sp) -/* f126d3c: af200004 */ sw $zero,0x4($t9) -/* f126d40: af380000 */ sw $t8,0x0($t9) -/* f126d44: 8faa0170 */ lw $t2,0x170($sp) -/* f126d48: 356b0602 */ ori $t3,$t3,0x602 -/* f126d4c: 240d0040 */ li $t5,0x40 -/* f126d50: 25480008 */ addiu $t0,$t2,0x8 -/* f126d54: afa80170 */ sw $t0,0x170($sp) -/* f126d58: ad4d0004 */ sw $t5,0x4($t2) -/* f126d5c: ad4b0000 */ sw $t3,0x0($t2) -/* f126d60: 8fae0170 */ lw $t6,0x170($sp) -/* f126d64: 3c0fba00 */ lui $t7,0xba00 -/* f126d68: 35ef1301 */ ori $t7,$t7,0x1301 -/* f126d6c: 25cc0008 */ addiu $t4,$t6,0x8 -/* f126d70: afac0170 */ sw $t4,0x170($sp) -/* f126d74: 3c190008 */ lui $t9,0x8 -/* f126d78: add90004 */ sw $t9,0x4($t6) -/* f126d7c: adcf0000 */ sw $t7,0x0($t6) -/* f126d80: 8fa90170 */ lw $t1,0x170($sp) -/* f126d84: 3c0aba00 */ lui $t2,0xba00 -/* f126d88: 354a1001 */ ori $t2,$t2,0x1001 -/* f126d8c: 25380008 */ addiu $t8,$t1,0x8 -/* f126d90: afb80170 */ sw $t8,0x170($sp) -/* f126d94: 3c080001 */ lui $t0,0x1 -/* f126d98: ad280004 */ sw $t0,0x4($t1) -/* f126d9c: 0c00091c */ jal bbufGetIndex1Buffer -/* f126da0: ad2a0000 */ sw $t2,0x0($t1) -/* f126da4: 8fab0098 */ lw $t3,0x98($sp) -/* f126da8: 0fc49947 */ jal func0f125a1c -/* f126dac: 004b2021 */ addu $a0,$v0,$t3 -/* f126db0: e7a00124 */ swc1 $f0,0x124($sp) -/* f126db4: 8fad0120 */ lw $t5,0x120($sp) -.PF0f126db8: -/* f126db8: c7a80124 */ lwc1 $f8,0x124($sp) -/* f126dbc: 51a0000c */ beqzl $t5,.PF0f126df0 -/* f126dc0: 8fb90094 */ lw $t9,0x94($sp) -/* f126dc4: 4608e03c */ c.lt.s $f28,$f8 -/* f126dc8: 8fa20094 */ lw $v0,0x94($sp) -/* f126dcc: 3c0c800a */ lui $t4,0x800a -/* f126dd0: 45020007 */ bc1fl .PF0f126df0 -/* f126dd4: 8fb90094 */ lw $t9,0x94($sp) -/* f126dd8: 8c4e0000 */ lw $t6,0x0($v0) -/* f126ddc: 8d8ca544 */ lw $t4,-0x5abc($t4) -/* f126de0: 01cc7821 */ addu $t7,$t6,$t4 -/* f126de4: 10000003 */ b .PF0f126df4 -/* f126de8: ac4f0000 */ sw $t7,0x0($v0) -/* f126dec: 8fb90094 */ lw $t9,0x94($sp) -.PF0f126df0: -/* f126df0: af200000 */ sw $zero,0x0($t9) -.PF0f126df4: -/* f126df4: 8fa9013c */ lw $t1,0x13c($sp) -.PF0f126df8: -/* f126df8: 8faa0144 */ lw $t2,0x144($sp) -/* f126dfc: 2694000c */ addiu $s4,$s4,0xc -/* f126e00: 25380001 */ addiu $t8,$t1,0x1 -/* f126e04: afb8013c */ sw $t8,0x13c($sp) -/* f126e08: 9148000b */ lbu $t0,0xb($t2) -/* f126e0c: 26d60014 */ addiu $s6,$s6,0x14 -/* f126e10: 0308082a */ slt $at,$t8,$t0 -/* f126e14: 5420fe18 */ bnezl $at,.PF0f126678 -/* f126e18: c6d00004 */ lwc1 $f16,0x4($s6) -/* f126e1c: 8fa20170 */ lw $v0,0x170($sp) -.PF0f126e20: -/* f126e20: 8fbf008c */ lw $ra,0x8c($sp) -/* f126e24: d7b40038 */ ldc1 $f20,0x38($sp) -/* f126e28: d7b60040 */ ldc1 $f22,0x40($sp) -/* f126e2c: d7b80048 */ ldc1 $f24,0x48($sp) -/* f126e30: d7ba0050 */ ldc1 $f26,0x50($sp) -/* f126e34: d7bc0058 */ ldc1 $f28,0x58($sp) -/* f126e38: d7be0060 */ ldc1 $f30,0x60($sp) -/* f126e3c: 8fb00068 */ lw $s0,0x68($sp) -/* f126e40: 8fb1006c */ lw $s1,0x6c($sp) -/* f126e44: 8fb20070 */ lw $s2,0x70($sp) -/* f126e48: 8fb30074 */ lw $s3,0x74($sp) -/* f126e4c: 8fb40078 */ lw $s4,0x78($sp) -/* f126e50: 8fb5007c */ lw $s5,0x7c($sp) -/* f126e54: 8fb60080 */ lw $s6,0x80($sp) -/* f126e58: 8fb70084 */ lw $s7,0x84($sp) -/* f126e5c: 8fbe0088 */ lw $s8,0x88($sp) -/* f126e60: 03e00008 */ jr $ra -/* f126e64: 27bd0170 */ addiu $sp,$sp,0x170 -); -#elif VERSION == VERSION_PAL_BETA -GLOBAL_ASM( -glabel func0f125a6c -.late_rodata -glabel var7f1b5108 -.word 0x3d888889 -.text -/* f126f7c: 27bdfe90 */ addiu $sp,$sp,-368 -/* f126f80: afbf008c */ sw $ra,0x8c($sp) -/* f126f84: afbe0088 */ sw $s8,0x88($sp) -/* f126f88: afb70084 */ sw $s7,0x84($sp) -/* f126f8c: afb60080 */ sw $s6,0x80($sp) -/* f126f90: afb5007c */ sw $s5,0x7c($sp) -/* f126f94: afb40078 */ sw $s4,0x78($sp) -/* f126f98: afb30074 */ sw $s3,0x74($sp) -/* f126f9c: afb20070 */ sw $s2,0x70($sp) -/* f126fa0: afb1006c */ sw $s1,0x6c($sp) -/* f126fa4: afb00068 */ sw $s0,0x68($sp) -/* f126fa8: f7be0060 */ sdc1 $f30,0x60($sp) -/* f126fac: f7bc0058 */ sdc1 $f28,0x58($sp) -/* f126fb0: f7ba0050 */ sdc1 $f26,0x50($sp) -/* f126fb4: f7b80048 */ sdc1 $f24,0x48($sp) -/* f126fb8: f7b60040 */ sdc1 $f22,0x40($sp) -/* f126fbc: f7b40038 */ sdc1 $f20,0x38($sp) -/* f126fc0: afa40170 */ sw $a0,0x170($sp) -/* f126fc4: 0fc2d6c2 */ jal currentPlayerGetMatrix1740 -/* f126fc8: afa50174 */ sw $a1,0x174($sp) -/* f126fcc: 0fc2d6ca */ jal currentPlayerGetUnk1754 -/* f126fd0: afa2016c */ sw $v0,0x16c($sp) -/* f126fd4: 0fc59b8f */ jal envGetCurrent -/* f126fd8: afa20168 */ sw $v0,0x168($sp) -/* f126fdc: afa20144 */ sw $v0,0x144($sp) -/* f126fe0: 904e000b */ lbu $t6,0xb($v0) -/* f126fe4: 3c0f8008 */ lui $t7,0x8008 -/* f126fe8: 19c00008 */ blez $t6,.PB0f12700c -/* f126fec: 00000000 */ nop -/* f126ff0: 8def69d0 */ lw $t7,0x69d0($t7) -/* f126ff4: 3c18800a */ lui $t8,0x800a -/* f126ff8: 11e00004 */ beqz $t7,.PB0f12700c -/* f126ffc: 00000000 */ nop -/* f127000: 8f18e7e4 */ lw $t8,-0x181c($t8) -/* f127004: 13000003 */ beqz $t8,.PB0f127014 -/* f127008: 00000000 */ nop -.PB0f12700c: -/* f12700c: 10000208 */ b .PB0f127830 -/* f127010: 8fa20170 */ lw $v0,0x170($sp) -.PB0f127014: -/* f127014: 0c002e8b */ jal viGetViewLeft -/* f127018: 00000000 */ nop -/* f12701c: 0c002e8f */ jal viGetViewTop -/* f127020: a7a20166 */ sh $v0,0x166($sp) -/* f127024: 0c002e6d */ jal viGetViewWidth -/* f127028: a7a20164 */ sh $v0,0x164($sp) -/* f12702c: 0c002e71 */ jal viGetViewHeight -/* f127030: a7a20162 */ sh $v0,0x162($sp) -/* f127034: 87b90162 */ lh $t9,0x162($sp) -/* f127038: 44824000 */ mtc1 $v0,$f8 -/* f12703c: 8fa30144 */ lw $v1,0x144($sp) -/* f127040: 44992000 */ mtc1 $t9,$f4 -/* f127044: 468042a0 */ cvt.s.w $f10,$f8 -/* f127048: a7a20160 */ sh $v0,0x160($sp) -/* f12704c: 3c14800a */ lui $s4,0x800a -/* f127050: 3c013f80 */ lui $at,0x3f80 -/* f127054: 468021a0 */ cvt.s.w $f6,$f4 -/* f127058: e7aa0150 */ swc1 $f10,0x150($sp) -/* f12705c: e7a600c8 */ swc1 $f6,0xc8($sp) -/* f127060: e7a60154 */ swc1 $f6,0x154($sp) -/* f127064: 8c76000c */ lw $s6,0xc($v1) -/* f127068: afa0013c */ sw $zero,0x13c($sp) -/* f12706c: 9068000b */ lbu $t0,0xb($v1) -/* f127070: 590001ef */ blezl $t0,.PB0f127830 -/* f127074: 8fa20170 */ lw $v0,0x170($sp) -/* f127078: 4480e000 */ mtc1 $zero,$f28 -/* f12707c: 4481d000 */ mtc1 $at,$f26 -/* f127080: 26947a08 */ addiu $s4,$s4,0x7a08 -/* f127084: c6d00004 */ lwc1 $f16,0x4($s6) -.PB0f127088: -/* f127088: 8fac0174 */ lw $t4,0x174($sp) -/* f12708c: e6900000 */ swc1 $f16,0x0($s4) -/* f127090: c6d20008 */ lwc1 $f18,0x8($s6) -/* f127094: e6920004 */ swc1 $f18,0x4($s4) -/* f127098: c6c4000c */ lwc1 $f4,0xc($s6) -/* f12709c: e6840008 */ swc1 $f4,0x8($s4) -/* f1270a0: 92c90001 */ lbu $t1,0x1($s6) -/* f1270a4: 8fa4016c */ lw $a0,0x16c($sp) -/* f1270a8: a3a90148 */ sb $t1,0x148($sp) -/* f1270ac: 92ca0002 */ lbu $t2,0x2($s6) -/* f1270b0: a3aa0149 */ sb $t2,0x149($sp) -/* f1270b4: 92cb0003 */ lbu $t3,0x3($s6) -/* f1270b8: 158001d2 */ bnez $t4,.PB0f127804 -/* f1270bc: a3ab014a */ sb $t3,0x14a($sp) -/* f1270c0: 0c00596d */ jal mtx4TransformVecInPlace -/* f1270c4: 02802825 */ move $a1,$s4 -/* f1270c8: 8fa40168 */ lw $a0,0x168($sp) -/* f1270cc: 0c00596d */ jal mtx4TransformVecInPlace -/* f1270d0: 02802825 */ move $a1,$s4 -/* f1270d4: c6800008 */ lwc1 $f0,0x8($s4) -/* f1270d8: 4600d03c */ c.lt.s $f26,$f0 -/* f1270dc: 00000000 */ nop -/* f1270e0: 450201c9 */ bc1fl .PB0f127808 -/* f1270e4: 8fa9013c */ lw $t1,0x13c($sp) -/* f1270e8: c6880000 */ lwc1 $f8,0x0($s4) -/* f1270ec: 3c013f00 */ lui $at,0x3f00 -/* f1270f0: 44811000 */ mtc1 $at,$f2 -/* f1270f4: 46004283 */ div.s $f10,$f8,$f0 -/* f1270f8: 87af0166 */ lh $t7,0x166($sp) -/* f1270fc: c7a40154 */ lwc1 $f4,0x154($sp) -/* f127100: 8fb0013c */ lw $s0,0x13c($sp) -/* f127104: 448f3000 */ mtc1 $t7,$f6 -/* f127108: 3c0e800a */ lui $t6,0x800a -/* f12710c: 87b90164 */ lh $t9,0x164($sp) -/* f127110: 46803520 */ cvt.s.w $f20,$f6 -/* f127114: 25ce7a30 */ addiu $t6,$t6,0x7a30 -/* f127118: 00106880 */ sll $t5,$s0,0x2 -/* f12711c: 01ae8821 */ addu $s1,$t5,$t6 -/* f127120: 3c18800a */ lui $t8,0x800a -/* f127124: 3c088008 */ lui $t0,0x8008 -/* f127128: 27187a40 */ addiu $t8,$t8,0x7a40 -/* f12712c: 25080064 */ addiu $t0,$t0,0x64 -/* f127130: 01b89021 */ addu $s2,$t5,$t8 -/* f127134: 01a84821 */ addu $t1,$t5,$t0 -/* f127138: 01a08025 */ move $s0,$t5 -/* f12713c: afa90094 */ sw $t1,0x94($sp) -/* f127140: afa00120 */ sw $zero,0x120($sp) -/* f127144: 461a5400 */ add.s $f16,$f10,$f26 -/* f127148: 44995000 */ mtc1 $t9,$f10 -/* f12714c: 46028482 */ mul.s $f18,$f16,$f2 -/* f127150: c6900004 */ lwc1 $f16,0x4($s4) -/* f127154: 468055a0 */ cvt.s.w $f22,$f10 -/* f127158: 46049182 */ mul.s $f6,$f18,$f4 -/* f12715c: c7aa0150 */ lwc1 $f10,0x150($sp) -/* f127160: 46008487 */ neg.s $f18,$f16 -/* f127164: 46009103 */ div.s $f4,$f18,$f0 -/* f127168: 46143200 */ add.s $f8,$f6,$f20 -/* f12716c: e6280000 */ swc1 $f8,0x0($s1) -/* f127170: 461a2180 */ add.s $f6,$f4,$f26 -/* f127174: 46023202 */ mul.s $f8,$f6,$f2 -/* f127178: 00000000 */ nop -/* f12717c: 460a4402 */ mul.s $f16,$f8,$f10 -/* f127180: 46168480 */ add.s $f18,$f16,$f22 -/* f127184: 0c002ee8 */ jal viGetFovY -/* f127188: e6520000 */ swc1 $f18,0x0($s2) -/* f12718c: 3c014270 */ lui $at,0x4270 -/* f127190: 44812000 */ mtc1 $at,$f4 -/* f127194: 86ca0010 */ lh $t2,0x10($s6) -/* f127198: c62c0000 */ lwc1 $f12,0x0($s1) -/* f12719c: 46002183 */ div.s $f6,$f4,$f0 -/* f1271a0: 448a4000 */ mtc1 $t2,$f8 -/* f1271a4: c7b200c8 */ lwc1 $f18,0xc8($sp) -/* f1271a8: 468042a0 */ cvt.s.w $f10,$f8 -/* f1271ac: 460a3602 */ mul.s $f24,$f6,$f10 -/* f1271b0: 4618a401 */ sub.s $f16,$f20,$f24 -/* f1271b4: 460c803e */ c.le.s $f16,$f12 -/* f1271b8: 00000000 */ nop -/* f1271bc: 45020182 */ bc1fl .PB0f1277c8 -/* f1271c0: 8fad0120 */ lw $t5,0x120($sp) -/* f1271c4: 4612a080 */ add.s $f2,$f20,$f18 -/* f1271c8: 46181100 */ add.s $f4,$f2,$f24 -/* f1271cc: 4604603c */ c.lt.s $f12,$f4 -/* f1271d0: 00000000 */ nop -/* f1271d4: 4502017c */ bc1fl .PB0f1277c8 -/* f1271d8: 8fad0120 */ lw $t5,0x120($sp) -/* f1271dc: 4618b201 */ sub.s $f8,$f22,$f24 -/* f1271e0: c64e0000 */ lwc1 $f14,0x0($s2) -/* f1271e4: c7a60150 */ lwc1 $f6,0x150($sp) -/* f1271e8: 460e403e */ c.le.s $f8,$f14 -/* f1271ec: 00000000 */ nop -/* f1271f0: 45020175 */ bc1fl .PB0f1277c8 -/* f1271f4: 8fad0120 */ lw $t5,0x120($sp) -/* f1271f8: 4606b000 */ add.s $f0,$f22,$f6 -/* f1271fc: 3c0b8008 */ lui $t3,0x8008 -/* f127200: 256b0058 */ addiu $t3,$t3,0x58 -/* f127204: 020b6021 */ addu $t4,$s0,$t3 -/* f127208: 46180280 */ add.s $f10,$f0,$f24 -/* f12720c: 240f0001 */ li $t7,0x1 -/* f127210: 460a703c */ c.lt.s $f14,$f10 -/* f127214: 00000000 */ nop -/* f127218: 4502016b */ bc1fl .PB0f1277c8 -/* f12721c: 8fad0120 */ lw $t5,0x120($sp) -/* f127220: 8fad013c */ lw $t5,0x13c($sp) -/* f127224: 460ca03e */ c.le.s $f20,$f12 -/* f127228: 448f8000 */ mtc1 $t7,$f16 -/* f12722c: 000d7080 */ sll $t6,$t5,0x2 -/* f127230: 01cd7021 */ addu $t6,$t6,$t5 -/* f127234: 000e7140 */ sll $t6,$t6,0x5 -/* f127238: afae0098 */ sw $t6,0x98($sp) -/* f12723c: afac009c */ sw $t4,0x9c($sp) -/* f127240: 450000aa */ bc1f .PB0f1274ec -/* f127244: 468087a0 */ cvt.s.w $f30,$f16 -/* f127248: 4602603c */ c.lt.s $f12,$f2 -/* f12724c: 00000000 */ nop -/* f127250: 450200a7 */ bc1fl .PB0f1274f0 -/* f127254: 8fa20094 */ lw $v0,0x94($sp) -/* f127258: 460eb03e */ c.le.s $f22,$f14 -/* f12725c: 00000000 */ nop -/* f127260: 450200a3 */ bc1fl .PB0f1274f0 -/* f127264: 8fa20094 */ lw $v0,0x94($sp) -/* f127268: 4600703c */ c.lt.s $f14,$f0 -/* f12726c: 87a30166 */ lh $v1,0x166($sp) -/* f127270: 87a20164 */ lh $v0,0x164($sp) -/* f127274: 87b80162 */ lh $t8,0x162($sp) -/* f127278: 4500009c */ bc1f .PB0f1274ec -/* f12727c: 2470000f */ addiu $s0,$v1,0xf -/* f127280: 87b90160 */ lh $t9,0x160($sp) -/* f127284: 00789821 */ addu $s3,$v1,$t8 -/* f127288: 267efff0 */ addiu $s8,$s3,-16 -/* f12728c: 0059b821 */ addu $s7,$v0,$t9 -/* f127290: 26e8fff0 */ addiu $t0,$s7,-16 -/* f127294: afa800a0 */ sw $t0,0xa0($sp) -/* f127298: 0c00090f */ jal bbufGetIndex0Buffer -/* f12729c: 2455000f */ addiu $s5,$v0,0xf -/* f1272a0: c62c0000 */ lwc1 $f12,0x0($s1) -/* f1272a4: 3c01447a */ lui $at,0x447a -/* f1272a8: 44811000 */ mtc1 $at,$f2 -/* f1272ac: 4600648d */ trunc.w.s $f18,$f12 -/* f1272b0: 24090001 */ li $t1,0x1 -/* f1272b4: 00403825 */ move $a3,$v0 -/* f1272b8: afa90120 */ sw $t1,0x120($sp) -/* f1272bc: 44039000 */ mfc1 $v1,$f18 -/* f1272c0: 8fad00a0 */ lw $t5,0xa0($sp) -/* f1272c4: 0070082a */ slt $at,$v1,$s0 -/* f1272c8: 10200008 */ beqz $at,.PB0f1272ec -/* f1272cc: 3c01447a */ lui $at,0x447a -/* f1272d0: 44812000 */ mtc1 $at,$f4 -/* f1272d4: 46006006 */ mov.s $f0,$f12 -/* f1272d8: 4604603c */ c.lt.s $f12,$f4 -/* f1272dc: 00000000 */ nop -/* f1272e0: 45020003 */ bc1fl .PB0f1272f0 -/* f1272e4: c64e0000 */ lwc1 $f14,0x0($s2) -/* f1272e8: 46000086 */ mov.s $f2,$f0 -.PB0f1272ec: -/* f1272ec: c64e0000 */ lwc1 $f14,0x0($s2) -.PB0f1272f0: -/* f1272f0: 4600720d */ trunc.w.s $f8,$f14 -/* f1272f4: 44024000 */ mfc1 $v0,$f8 -/* f1272f8: 00000000 */ nop -/* f1272fc: 0055082a */ slt $at,$v0,$s5 -/* f127300: 50200007 */ beqzl $at,.PB0f127320 -/* f127304: 03c3082a */ slt $at,$s8,$v1 -/* f127308: 4602703c */ c.lt.s $f14,$f2 -/* f12730c: 46007006 */ mov.s $f0,$f14 -/* f127310: 45020003 */ bc1fl .PB0f127320 -/* f127314: 03c3082a */ slt $at,$s8,$v1 -/* f127318: 46000086 */ mov.s $f2,$f0 -/* f12731c: 03c3082a */ slt $at,$s8,$v1 -.PB0f127320: -/* f127320: 1020000a */ beqz $at,.PB0f12734c -/* f127324: 266cffff */ addiu $t4,$s3,-1 -/* f127328: 448c3000 */ mtc1 $t4,$f6 -/* f12732c: 00000000 */ nop -/* f127330: 468032a0 */ cvt.s.w $f10,$f6 -/* f127334: 460c5001 */ sub.s $f0,$f10,$f12 -/* f127338: 4602003c */ c.lt.s $f0,$f2 -/* f12733c: 00000000 */ nop -/* f127340: 45020003 */ bc1fl .PB0f127350 -/* f127344: 01a2082a */ slt $at,$t5,$v0 -/* f127348: 46000086 */ mov.s $f2,$f0 -.PB0f12734c: -/* f12734c: 01a2082a */ slt $at,$t5,$v0 -.PB0f127350: -/* f127350: 1020000a */ beqz $at,.PB0f12737c -/* f127354: 26eeffff */ addiu $t6,$s7,-1 -/* f127358: 448e8000 */ mtc1 $t6,$f16 -/* f12735c: 00000000 */ nop -/* f127360: 468084a0 */ cvt.s.w $f18,$f16 -/* f127364: 460e9001 */ sub.s $f0,$f18,$f14 -/* f127368: 4602003c */ c.lt.s $f0,$f2 -/* f12736c: 00000000 */ nop -/* f127370: 45020003 */ bc1fl .PB0f127380 -/* f127374: 461a1081 */ sub.s $f2,$f2,$f26 -/* f127378: 46000086 */ mov.s $f2,$f0 -.PB0f12737c: -/* f12737c: 461a1081 */ sub.s $f2,$f2,$f26 -.PB0f127380: -/* f127380: 3c017f1b */ lui $at,0x7f1b -/* f127384: 461c103c */ c.lt.s $f2,$f28 -/* f127388: 00000000 */ nop -/* f12738c: 45000002 */ bc1f .PB0f127398 -/* f127390: 00000000 */ nop -/* f127394: 4600e086 */ mov.s $f2,$f28 -.PB0f127398: -/* f127398: c42470f8 */ lwc1 $f4,0x70f8($at) -/* f12739c: 8faf009c */ lw $t7,0x9c($sp) -/* f1273a0: 46041002 */ mul.s $f0,$f2,$f4 -/* f1273a4: 4600d03c */ c.lt.s $f26,$f0 -/* f1273a8: e5e00000 */ swc1 $f0,0x0($t7) -/* f1273ac: 8fb8009c */ lw $t8,0x9c($sp) -/* f1273b0: 45020003 */ bc1fl .PB0f1273c0 -/* f1273b4: 8fb90098 */ lw $t9,0x98($sp) -/* f1273b8: e71a0000 */ swc1 $f26,0x0($t8) -/* f1273bc: 8fb90098 */ lw $t9,0x98($sp) -.PB0f1273c0: -/* f1273c0: 2465fff9 */ addiu $a1,$v1,-7 -/* f1273c4: 24460001 */ addiu $a2,$v0,0x1 -/* f1273c8: 03278021 */ addu $s0,$t9,$a3 -/* f1273cc: 0fc49b96 */ jal func0f125948 -/* f1273d0: 02002025 */ move $a0,$s0 -/* f1273d4: c6280000 */ lwc1 $f8,0x0($s1) -/* f1273d8: c64a0000 */ lwc1 $f10,0x0($s2) -/* f1273dc: 26040014 */ addiu $a0,$s0,0x14 -/* f1273e0: 4600418d */ trunc.w.s $f6,$f8 -/* f1273e4: 4600540d */ trunc.w.s $f16,$f10 -/* f1273e8: 44053000 */ mfc1 $a1,$f6 -/* f1273ec: 44068000 */ mfc1 $a2,$f16 -/* f1273f0: 24a5fffb */ addiu $a1,$a1,-5 -/* f1273f4: 0fc49b96 */ jal func0f125948 -/* f1273f8: 24c6fffd */ addiu $a2,$a2,-3 -/* f1273fc: c6320000 */ lwc1 $f18,0x0($s1) -/* f127400: c6480000 */ lwc1 $f8,0x0($s2) -/* f127404: 26040028 */ addiu $a0,$s0,0x28 -/* f127408: 4600910d */ trunc.w.s $f4,$f18 -/* f12740c: 4600418d */ trunc.w.s $f6,$f8 -/* f127410: 44052000 */ mfc1 $a1,$f4 -/* f127414: 44063000 */ mfc1 $a2,$f6 -/* f127418: 24a5fffd */ addiu $a1,$a1,-3 -/* f12741c: 0fc49b96 */ jal func0f125948 -/* f127420: 24c60005 */ addiu $a2,$a2,0x5 -/* f127424: c62a0000 */ lwc1 $f10,0x0($s1) -/* f127428: c6520000 */ lwc1 $f18,0x0($s2) -/* f12742c: 2604003c */ addiu $a0,$s0,0x3c -/* f127430: 4600540d */ trunc.w.s $f16,$f10 -/* f127434: 4600910d */ trunc.w.s $f4,$f18 -/* f127438: 44058000 */ mfc1 $a1,$f16 -/* f12743c: 44062000 */ mfc1 $a2,$f4 -/* f127440: 24a5ffff */ addiu $a1,$a1,-1 -/* f127444: 0fc49b96 */ jal func0f125948 -/* f127448: 24c6fff9 */ addiu $a2,$a2,-7 -/* f12744c: c6280000 */ lwc1 $f8,0x0($s1) -/* f127450: c64a0000 */ lwc1 $f10,0x0($s2) -/* f127454: 26040050 */ addiu $a0,$s0,0x50 -/* f127458: 4600418d */ trunc.w.s $f6,$f8 -/* f12745c: 4600540d */ trunc.w.s $f16,$f10 -/* f127460: 44053000 */ mfc1 $a1,$f6 -/* f127464: 44068000 */ mfc1 $a2,$f16 -/* f127468: 24a50001 */ addiu $a1,$a1,0x1 -/* f12746c: 0fc49b96 */ jal func0f125948 -/* f127470: 24c60007 */ addiu $a2,$a2,0x7 -/* f127474: c6320000 */ lwc1 $f18,0x0($s1) -/* f127478: c6480000 */ lwc1 $f8,0x0($s2) -/* f12747c: 26040064 */ addiu $a0,$s0,0x64 -/* f127480: 4600910d */ trunc.w.s $f4,$f18 -/* f127484: 4600418d */ trunc.w.s $f6,$f8 -/* f127488: 44052000 */ mfc1 $a1,$f4 -/* f12748c: 44063000 */ mfc1 $a2,$f6 -/* f127490: 24a50003 */ addiu $a1,$a1,0x3 -/* f127494: 0fc49b96 */ jal func0f125948 -/* f127498: 24c6fffb */ addiu $a2,$a2,-5 -/* f12749c: c62a0000 */ lwc1 $f10,0x0($s1) -/* f1274a0: c6520000 */ lwc1 $f18,0x0($s2) -/* f1274a4: 26040078 */ addiu $a0,$s0,0x78 -/* f1274a8: 4600540d */ trunc.w.s $f16,$f10 -/* f1274ac: 4600910d */ trunc.w.s $f4,$f18 -/* f1274b0: 44058000 */ mfc1 $a1,$f16 -/* f1274b4: 44062000 */ mfc1 $a2,$f4 -/* f1274b8: 24a50005 */ addiu $a1,$a1,0x5 -/* f1274bc: 0fc49b96 */ jal func0f125948 -/* f1274c0: 24c60003 */ addiu $a2,$a2,0x3 -/* f1274c4: c6280000 */ lwc1 $f8,0x0($s1) -/* f1274c8: c64a0000 */ lwc1 $f10,0x0($s2) -/* f1274cc: 2604008c */ addiu $a0,$s0,0x8c -/* f1274d0: 4600418d */ trunc.w.s $f6,$f8 -/* f1274d4: 4600540d */ trunc.w.s $f16,$f10 -/* f1274d8: 44053000 */ mfc1 $a1,$f6 -/* f1274dc: 44068000 */ mfc1 $a2,$f16 -/* f1274e0: 24a50007 */ addiu $a1,$a1,0x7 -/* f1274e4: 0fc49b96 */ jal func0f125948 -/* f1274e8: 24c6ffff */ addiu $a2,$a2,-1 -.PB0f1274ec: -/* f1274ec: 8fa20094 */ lw $v0,0x94($sp) -.PB0f1274f0: -/* f1274f0: 3c0d800a */ lui $t5,0x800a -/* f1274f4: 8dade504 */ lw $t5,-0x1afc($t5) -/* f1274f8: 8c4c0000 */ lw $t4,0x0($v0) -/* f1274fc: 3c05800b */ lui $a1,0x800b -/* f127500: 240f0002 */ li $t7,0x2 -/* f127504: 018d7021 */ addu $t6,$t4,$t5 -/* f127508: ac4e0000 */ sw $t6,0x0($v0) -/* f12750c: 8ca5fbc0 */ lw $a1,-0x440($a1) -/* f127510: 24180001 */ li $t8,0x1 -/* f127514: afb80014 */ sw $t8,0x14($sp) -/* f127518: afaf0010 */ sw $t7,0x10($sp) -/* f12751c: 27a40170 */ addiu $a0,$sp,0x170 -/* f127520: 24060004 */ li $a2,0x4 -/* f127524: 00003825 */ move $a3,$zero -/* f127528: afa00018 */ sw $zero,0x18($sp) -/* f12752c: 0fc2cf74 */ jal func0f0b39c0 -/* f127530: 24a5003c */ addiu $a1,$a1,0x3c -/* f127534: 8fb90170 */ lw $t9,0x170($sp) -/* f127538: 3c09ba00 */ lui $t1,0xba00 -/* f12753c: 35291402 */ ori $t1,$t1,0x1402 -/* f127540: 27280008 */ addiu $t0,$t9,0x8 -/* f127544: afa80170 */ sw $t0,0x170($sp) -/* f127548: af200004 */ sw $zero,0x4($t9) -/* f12754c: af290000 */ sw $t1,0x0($t9) -/* f127550: 8faa0170 */ lw $t2,0x170($sp) -/* f127554: 3c0cba00 */ lui $t4,0xba00 -/* f127558: 358c0602 */ ori $t4,$t4,0x602 -/* f12755c: 254b0008 */ addiu $t3,$t2,0x8 -/* f127560: afab0170 */ sw $t3,0x170($sp) -/* f127564: 240d00c0 */ li $t5,0xc0 -/* f127568: ad4d0004 */ sw $t5,0x4($t2) -/* f12756c: ad4c0000 */ sw $t4,0x0($t2) -/* f127570: 8fae0170 */ lw $t6,0x170($sp) -/* f127574: 3c190050 */ lui $t9,0x50 -/* f127578: 3c18b900 */ lui $t8,0xb900 -/* f12757c: 25cf0008 */ addiu $t7,$t6,0x8 -/* f127580: afaf0170 */ sw $t7,0x170($sp) -/* f127584: 3718031d */ ori $t8,$t8,0x31d -/* f127588: 373941c8 */ ori $t9,$t9,0x41c8 -/* f12758c: add90004 */ sw $t9,0x4($t6) -/* f127590: add80000 */ sw $t8,0x0($t6) -/* f127594: 8fa80170 */ lw $t0,0x170($sp) -/* f127598: 3c0aba00 */ lui $t2,0xba00 -/* f12759c: 354a1301 */ ori $t2,$t2,0x1301 -/* f1275a0: 25090008 */ addiu $t1,$t0,0x8 -/* f1275a4: afa90170 */ sw $t1,0x170($sp) -/* f1275a8: ad000004 */ sw $zero,0x4($t0) -/* f1275ac: ad0a0000 */ sw $t2,0x0($t0) -/* f1275b0: 8fab0170 */ lw $t3,0x170($sp) -/* f1275b4: 3c0db900 */ lui $t5,0xb900 -/* f1275b8: 35ad0002 */ ori $t5,$t5,0x2 -/* f1275bc: 256c0008 */ addiu $t4,$t3,0x8 -/* f1275c0: afac0170 */ sw $t4,0x170($sp) -/* f1275c4: ad600004 */ sw $zero,0x4($t3) -/* f1275c8: ad6d0000 */ sw $t5,0x0($t3) -/* f1275cc: 8fae0170 */ lw $t6,0x170($sp) -/* f1275d0: 3c18ba00 */ lui $t8,0xba00 -/* f1275d4: 37181001 */ ori $t8,$t8,0x1001 -/* f1275d8: 25cf0008 */ addiu $t7,$t6,0x8 -/* f1275dc: afaf0170 */ sw $t7,0x170($sp) -/* f1275e0: adc00004 */ sw $zero,0x4($t6) -/* f1275e4: add80000 */ sw $t8,0x0($t6) -/* f1275e8: 8fb90170 */ lw $t9,0x170($sp) -/* f1275ec: 3c09ba00 */ lui $t1,0xba00 -/* f1275f0: 35290903 */ ori $t1,$t1,0x903 -/* f1275f4: 27280008 */ addiu $t0,$t9,0x8 -/* f1275f8: afa80170 */ sw $t0,0x170($sp) -/* f1275fc: 240a0c00 */ li $t2,0xc00 -/* f127600: af2a0004 */ sw $t2,0x4($t9) -/* f127604: af290000 */ sw $t1,0x0($t9) -/* f127608: 8fab0170 */ lw $t3,0x170($sp) -/* f12760c: 3c0dba00 */ lui $t5,0xba00 -/* f127610: 35ad0e02 */ ori $t5,$t5,0xe02 -/* f127614: 256c0008 */ addiu $t4,$t3,0x8 -/* f127618: afac0170 */ sw $t4,0x170($sp) -/* f12761c: ad600004 */ sw $zero,0x4($t3) -/* f127620: ad6d0000 */ sw $t5,0x0($t3) -/* f127624: 8fae0170 */ lw $t6,0x170($sp) -/* f127628: 3c18ba00 */ lui $t8,0xba00 -/* f12762c: 37180c02 */ ori $t8,$t8,0xc02 -/* f127630: 25cf0008 */ addiu $t7,$t6,0x8 -/* f127634: afaf0170 */ sw $t7,0x170($sp) -/* f127638: 24192000 */ li $t9,0x2000 -/* f12763c: add90004 */ sw $t9,0x4($t6) -/* f127640: add80000 */ sw $t8,0x0($t6) -/* f127644: 8fa80170 */ lw $t0,0x170($sp) -/* f127648: 3c0bffa7 */ lui $t3,0xffa7 -/* f12764c: 3c0afc50 */ lui $t2,0xfc50 -/* f127650: 25090008 */ addiu $t1,$t0,0x8 -/* f127654: afa90170 */ sw $t1,0x170($sp) -/* f127658: 354ad2a1 */ ori $t2,$t2,0xd2a1 -/* f12765c: 356bffff */ ori $t3,$t3,0xffff -/* f127660: ad0b0004 */ sw $t3,0x4($t0) -/* f127664: ad0a0000 */ sw $t2,0x0($t0) -/* f127668: 8fa30170 */ lw $v1,0x170($sp) -/* f12766c: 3c0efb00 */ lui $t6,0xfb00 -/* f127670: 3c01437f */ lui $at,0x437f -/* f127674: 246d0008 */ addiu $t5,$v1,0x8 -/* f127678: afad0170 */ sw $t5,0x170($sp) -/* f12767c: ac6e0000 */ sw $t6,0x0($v1) -/* f127680: 8faf009c */ lw $t7,0x9c($sp) -/* f127684: 44812000 */ mtc1 $at,$f4 -/* f127688: 3c013f00 */ lui $at,0x3f00 -/* f12768c: c5f20000 */ lwc1 $f18,0x0($t7) -/* f127690: 93aa0148 */ lbu $t2,0x148($sp) -/* f127694: 93ae0149 */ lbu $t6,0x149($sp) -/* f127698: 46049202 */ mul.s $f8,$f18,$f4 -/* f12769c: 44819000 */ mtc1 $at,$f18 -/* f1276a0: 93a9014a */ lbu $t1,0x14a($sp) -/* f1276a4: 000a5e00 */ sll $t3,$t2,0x18 -/* f1276a8: 4612c002 */ mul.s $f0,$f24,$f18 -/* f1276ac: 000e7c00 */ sll $t7,$t6,0x10 -/* f1276b0: 00095200 */ sll $t2,$t1,0x8 -/* f1276b4: 3c02800b */ lui $v0,0x800b -/* f1276b8: 240e0001 */ li $t6,0x1 -/* f1276bc: 240d0001 */ li $t5,0x1 -/* f1276c0: 4600418d */ trunc.w.s $f6,$f8 -/* f1276c4: 461e0102 */ mul.s $f4,$f0,$f30 -/* f1276c8: 27a40170 */ addiu $a0,$sp,0x170 -/* f1276cc: 27a50134 */ addiu $a1,$sp,0x134 -/* f1276d0: 44193000 */ mfc1 $t9,$f6 -/* f1276d4: 27a6012c */ addiu $a2,$sp,0x12c -/* f1276d8: 332800ff */ andi $t0,$t9,0xff -/* f1276dc: 010b6025 */ or $t4,$t0,$t3 -/* f1276e0: 018fc025 */ or $t8,$t4,$t7 -/* f1276e4: 030a4025 */ or $t0,$t8,$t2 -/* f1276e8: ac680004 */ sw $t0,0x4($v1) -/* f1276ec: c62a0000 */ lwc1 $f10,0x0($s1) -/* f1276f0: c6500000 */ lwc1 $f16,0x0($s2) -/* f1276f4: 8c42fbc0 */ lw $v0,-0x440($v0) -/* f1276f8: e7a4012c */ swc1 $f4,0x12c($sp) -/* f1276fc: e7a00130 */ swc1 $f0,0x130($sp) -/* f127700: e7aa0134 */ swc1 $f10,0x134($sp) -/* f127704: e7b00138 */ swc1 $f16,0x138($sp) -/* f127708: 904b0041 */ lbu $t3,0x41($v0) -/* f12770c: 90470040 */ lbu $a3,0x40($v0) -/* f127710: 240f0001 */ li $t7,0x1 -/* f127714: 240c0001 */ li $t4,0x1 -/* f127718: afac0020 */ sw $t4,0x20($sp) -/* f12771c: afaf0028 */ sw $t7,0x28($sp) -/* f127720: afa00024 */ sw $zero,0x24($sp) -/* f127724: afae001c */ sw $t6,0x1c($sp) -/* f127728: afad0018 */ sw $t5,0x18($sp) -/* f12772c: afa00014 */ sw $zero,0x14($sp) -/* f127730: 0fc2c958 */ jal func0f0b2150 -/* f127734: afab0010 */ sw $t3,0x10($sp) -/* f127738: 8fb90170 */ lw $t9,0x170($sp) -/* f12773c: 3c18e700 */ lui $t8,0xe700 -/* f127740: 3c0bba00 */ lui $t3,0xba00 -/* f127744: 27290008 */ addiu $t1,$t9,0x8 -/* f127748: afa90170 */ sw $t1,0x170($sp) -/* f12774c: af200004 */ sw $zero,0x4($t9) -/* f127750: af380000 */ sw $t8,0x0($t9) -/* f127754: 8faa0170 */ lw $t2,0x170($sp) -/* f127758: 356b0602 */ ori $t3,$t3,0x602 -/* f12775c: 240d0040 */ li $t5,0x40 -/* f127760: 25480008 */ addiu $t0,$t2,0x8 -/* f127764: afa80170 */ sw $t0,0x170($sp) -/* f127768: ad4d0004 */ sw $t5,0x4($t2) -/* f12776c: ad4b0000 */ sw $t3,0x0($t2) -/* f127770: 8fae0170 */ lw $t6,0x170($sp) -/* f127774: 3c0fba00 */ lui $t7,0xba00 -/* f127778: 35ef1301 */ ori $t7,$t7,0x1301 -/* f12777c: 25cc0008 */ addiu $t4,$t6,0x8 -/* f127780: afac0170 */ sw $t4,0x170($sp) -/* f127784: 3c190008 */ lui $t9,0x8 -/* f127788: add90004 */ sw $t9,0x4($t6) -/* f12778c: adcf0000 */ sw $t7,0x0($t6) -/* f127790: 8fa90170 */ lw $t1,0x170($sp) -/* f127794: 3c0aba00 */ lui $t2,0xba00 -/* f127798: 354a1001 */ ori $t2,$t2,0x1001 -/* f12779c: 25380008 */ addiu $t8,$t1,0x8 -/* f1277a0: afb80170 */ sw $t8,0x170($sp) -/* f1277a4: 3c080001 */ lui $t0,0x1 -/* f1277a8: ad280004 */ sw $t0,0x4($t1) -/* f1277ac: 0c00091c */ jal bbufGetIndex1Buffer -/* f1277b0: ad2a0000 */ sw $t2,0x0($t1) -/* f1277b4: 8fab0098 */ lw $t3,0x98($sp) -/* f1277b8: 0fc49bcb */ jal func0f125a1c -/* f1277bc: 004b2021 */ addu $a0,$v0,$t3 -/* f1277c0: e7a00124 */ swc1 $f0,0x124($sp) -/* f1277c4: 8fad0120 */ lw $t5,0x120($sp) -.PB0f1277c8: -/* f1277c8: c7a80124 */ lwc1 $f8,0x124($sp) -/* f1277cc: 51a0000c */ beqzl $t5,.PB0f127800 -/* f1277d0: 8fb90094 */ lw $t9,0x94($sp) -/* f1277d4: 4608e03c */ c.lt.s $f28,$f8 -/* f1277d8: 8fa20094 */ lw $v0,0x94($sp) -/* f1277dc: 3c0c800a */ lui $t4,0x800a -/* f1277e0: 45020007 */ bc1fl .PB0f127800 -/* f1277e4: 8fb90094 */ lw $t9,0x94($sp) -/* f1277e8: 8c4e0000 */ lw $t6,0x0($v0) -/* f1277ec: 8d8ce504 */ lw $t4,-0x1afc($t4) -/* f1277f0: 01cc7821 */ addu $t7,$t6,$t4 -/* f1277f4: 10000003 */ b .PB0f127804 -/* f1277f8: ac4f0000 */ sw $t7,0x0($v0) -/* f1277fc: 8fb90094 */ lw $t9,0x94($sp) -.PB0f127800: -/* f127800: af200000 */ sw $zero,0x0($t9) -.PB0f127804: -/* f127804: 8fa9013c */ lw $t1,0x13c($sp) -.PB0f127808: -/* f127808: 8faa0144 */ lw $t2,0x144($sp) -/* f12780c: 2694000c */ addiu $s4,$s4,0xc -/* f127810: 25380001 */ addiu $t8,$t1,0x1 -/* f127814: afb8013c */ sw $t8,0x13c($sp) -/* f127818: 9148000b */ lbu $t0,0xb($t2) -/* f12781c: 26d60014 */ addiu $s6,$s6,0x14 -/* f127820: 0308082a */ slt $at,$t8,$t0 -/* f127824: 5420fe18 */ bnezl $at,.PB0f127088 -/* f127828: c6d00004 */ lwc1 $f16,0x4($s6) -/* f12782c: 8fa20170 */ lw $v0,0x170($sp) -.PB0f127830: -/* f127830: 8fbf008c */ lw $ra,0x8c($sp) -/* f127834: d7b40038 */ ldc1 $f20,0x38($sp) -/* f127838: d7b60040 */ ldc1 $f22,0x40($sp) -/* f12783c: d7b80048 */ ldc1 $f24,0x48($sp) -/* f127840: d7ba0050 */ ldc1 $f26,0x50($sp) -/* f127844: d7bc0058 */ ldc1 $f28,0x58($sp) -/* f127848: d7be0060 */ ldc1 $f30,0x60($sp) -/* f12784c: 8fb00068 */ lw $s0,0x68($sp) -/* f127850: 8fb1006c */ lw $s1,0x6c($sp) -/* f127854: 8fb20070 */ lw $s2,0x70($sp) -/* f127858: 8fb30074 */ lw $s3,0x74($sp) -/* f12785c: 8fb40078 */ lw $s4,0x78($sp) -/* f127860: 8fb5007c */ lw $s5,0x7c($sp) -/* f127864: 8fb60080 */ lw $s6,0x80($sp) -/* f127868: 8fb70084 */ lw $s7,0x84($sp) -/* f12786c: 8fbe0088 */ lw $s8,0x88($sp) -/* f127870: 03e00008 */ jr $ra -/* f127874: 27bd0170 */ addiu $sp,$sp,0x170 -); -#else -GLOBAL_ASM( -glabel func0f125a6c -.late_rodata -glabel var7f1b5108 -.word 0x3d888889 -.text -/* f125a6c: 27bdfe90 */ addiu $sp,$sp,-368 -/* f125a70: afbf008c */ sw $ra,0x8c($sp) -/* f125a74: afbe0088 */ sw $s8,0x88($sp) -/* f125a78: afb70084 */ sw $s7,0x84($sp) -/* f125a7c: afb60080 */ sw $s6,0x80($sp) -/* f125a80: afb5007c */ sw $s5,0x7c($sp) -/* f125a84: afb40078 */ sw $s4,0x78($sp) -/* f125a88: afb30074 */ sw $s3,0x74($sp) -/* f125a8c: afb20070 */ sw $s2,0x70($sp) -/* f125a90: afb1006c */ sw $s1,0x6c($sp) -/* f125a94: afb00068 */ sw $s0,0x68($sp) -/* f125a98: f7be0060 */ sdc1 $f30,0x60($sp) -/* f125a9c: f7bc0058 */ sdc1 $f28,0x58($sp) -/* f125aa0: f7ba0050 */ sdc1 $f26,0x50($sp) -/* f125aa4: f7b80048 */ sdc1 $f24,0x48($sp) -/* f125aa8: f7b60040 */ sdc1 $f22,0x40($sp) -/* f125aac: f7b40038 */ sdc1 $f20,0x38($sp) -/* f125ab0: afa40170 */ sw $a0,0x170($sp) -/* f125ab4: 0fc2d5be */ jal currentPlayerGetMatrix1740 -/* f125ab8: afa50174 */ sw $a1,0x174($sp) -/* f125abc: 0fc2d5c6 */ jal currentPlayerGetUnk1754 -/* f125ac0: afa2016c */ sw $v0,0x16c($sp) -/* f125ac4: 0fc595f3 */ jal envGetCurrent -/* f125ac8: afa20168 */ sw $v0,0x168($sp) -/* f125acc: afa20144 */ sw $v0,0x144($sp) -/* f125ad0: 904e000b */ lbu $t6,0xb($v0) -/* f125ad4: 24030001 */ addiu $v1,$zero,0x1 -/* f125ad8: 3c0f8008 */ lui $t7,%hi(var800844f0) -/* f125adc: 19c00009 */ blez $t6,.L0f125b04 -/* f125ae0: 00000000 */ nop -/* f125ae4: 8def44f0 */ lw $t7,%lo(var800844f0)($t7) -/* f125ae8: 3c18800a */ lui $t8,%hi(g_Vars+0x314) -/* f125aec: 11e00005 */ beqz $t7,.L0f125b04 -/* f125af0: 00000000 */ nop -/* f125af4: 8f18a2d4 */ lw $t8,%lo(g_Vars+0x314)($t8) -/* f125af8: 3c198007 */ lui $t9,%hi(g_ViRes) -/* f125afc: 13000003 */ beqz $t8,.L0f125b0c -/* f125b00: 00000000 */ nop -.L0f125b04: -/* f125b04: 1000020d */ b .L0f12633c -/* f125b08: 8fa20170 */ lw $v0,0x170($sp) -.L0f125b0c: -/* f125b0c: 8f3906c8 */ lw $t9,%lo(g_ViRes)($t9) -/* f125b10: 24010001 */ addiu $at,$zero,0x1 -/* f125b14: 17210002 */ bne $t9,$at,.L0f125b20 -/* f125b18: 00000000 */ nop -/* f125b1c: 24030002 */ addiu $v1,$zero,0x2 -.L0f125b20: -/* f125b20: 0c002f40 */ jal viGetViewLeft -/* f125b24: afa30128 */ sw $v1,0x128($sp) -/* f125b28: 0c002f44 */ jal viGetViewTop -/* f125b2c: a7a20166 */ sh $v0,0x166($sp) -/* f125b30: 0c002f22 */ jal viGetViewWidth -/* f125b34: a7a20164 */ sh $v0,0x164($sp) -/* f125b38: 0c002f26 */ jal viGetViewHeight -/* f125b3c: a7a20162 */ sh $v0,0x162($sp) -/* f125b40: 87a80162 */ lh $t0,0x162($sp) -/* f125b44: 44824000 */ mtc1 $v0,$f8 -/* f125b48: 8fa30144 */ lw $v1,0x144($sp) -/* f125b4c: 44882000 */ mtc1 $t0,$f4 -/* f125b50: 468042a0 */ cvt.s.w $f10,$f8 -/* f125b54: a7a20160 */ sh $v0,0x160($sp) -/* f125b58: 3c14800a */ lui $s4,%hi(var800a33e8) -/* f125b5c: 3c013f80 */ lui $at,0x3f80 -/* f125b60: 468021a0 */ cvt.s.w $f6,$f4 -/* f125b64: e7aa0150 */ swc1 $f10,0x150($sp) -/* f125b68: e7a600c8 */ swc1 $f6,0xc8($sp) -/* f125b6c: e7a60154 */ swc1 $f6,0x154($sp) -/* f125b70: 8c76000c */ lw $s6,0xc($v1) -/* f125b74: afa0013c */ sw $zero,0x13c($sp) -/* f125b78: 9069000b */ lbu $t1,0xb($v1) -/* f125b7c: 592001ef */ blezl $t1,.L0f12633c -/* f125b80: 8fa20170 */ lw $v0,0x170($sp) -/* f125b84: 4480e000 */ mtc1 $zero,$f28 -/* f125b88: 4481d000 */ mtc1 $at,$f26 -/* f125b8c: 269433e8 */ addiu $s4,$s4,%lo(var800a33e8) -/* f125b90: c6d00004 */ lwc1 $f16,0x4($s6) -.L0f125b94: -/* f125b94: 8fad0174 */ lw $t5,0x174($sp) -/* f125b98: e6900000 */ swc1 $f16,0x0($s4) -/* f125b9c: c6d20008 */ lwc1 $f18,0x8($s6) -/* f125ba0: e6920004 */ swc1 $f18,0x4($s4) -/* f125ba4: c6c4000c */ lwc1 $f4,0xc($s6) -/* f125ba8: e6840008 */ swc1 $f4,0x8($s4) -/* f125bac: 92ca0001 */ lbu $t2,0x1($s6) -/* f125bb0: 8fa4016c */ lw $a0,0x16c($sp) -/* f125bb4: a3aa0148 */ sb $t2,0x148($sp) -/* f125bb8: 92cb0002 */ lbu $t3,0x2($s6) -/* f125bbc: a3ab0149 */ sb $t3,0x149($sp) -/* f125bc0: 92cc0003 */ lbu $t4,0x3($s6) -/* f125bc4: 15a001d2 */ bnez $t5,.L0f126310 -/* f125bc8: a3ac014a */ sb $t4,0x14a($sp) -/* f125bcc: 0c0056d9 */ jal mtx4TransformVecInPlace -/* f125bd0: 02802825 */ or $a1,$s4,$zero -/* f125bd4: 8fa40168 */ lw $a0,0x168($sp) -/* f125bd8: 0c0056d9 */ jal mtx4TransformVecInPlace -/* f125bdc: 02802825 */ or $a1,$s4,$zero -/* f125be0: c6800008 */ lwc1 $f0,0x8($s4) -/* f125be4: 4600d03c */ c.lt.s $f26,$f0 -/* f125be8: 00000000 */ nop -/* f125bec: 450201c9 */ bc1fl .L0f126314 -/* f125bf0: 8faa013c */ lw $t2,0x13c($sp) -/* f125bf4: c6880000 */ lwc1 $f8,0x0($s4) -/* f125bf8: 3c013f00 */ lui $at,0x3f00 -/* f125bfc: 44811000 */ mtc1 $at,$f2 -/* f125c00: 46004283 */ div.s $f10,$f8,$f0 -/* f125c04: 87b80166 */ lh $t8,0x166($sp) -/* f125c08: c7a40154 */ lwc1 $f4,0x154($sp) -/* f125c0c: 8fb0013c */ lw $s0,0x13c($sp) -/* f125c10: 44983000 */ mtc1 $t8,$f6 -/* f125c14: 3c0f800a */ lui $t7,%hi(var800a3410) -/* f125c18: 87a80164 */ lh $t0,0x164($sp) -/* f125c1c: 46803520 */ cvt.s.w $f20,$f6 -/* f125c20: 25ef3410 */ addiu $t7,$t7,%lo(var800a3410) -/* f125c24: 00107080 */ sll $t6,$s0,0x2 -/* f125c28: 01cf8821 */ addu $s1,$t6,$t7 -/* f125c2c: 3c19800a */ lui $t9,%hi(var800a3420) -/* f125c30: 3c098008 */ lui $t1,%hi(var8007db94) -/* f125c34: 27393420 */ addiu $t9,$t9,%lo(var800a3420) -/* f125c38: 2529db94 */ addiu $t1,$t1,%lo(var8007db94) -/* f125c3c: 01d99021 */ addu $s2,$t6,$t9 -/* f125c40: 01c95021 */ addu $t2,$t6,$t1 -/* f125c44: 01c08025 */ or $s0,$t6,$zero -/* f125c48: afaa0094 */ sw $t2,0x94($sp) -/* f125c4c: afa00120 */ sw $zero,0x120($sp) -/* f125c50: 461a5400 */ add.s $f16,$f10,$f26 -/* f125c54: 44885000 */ mtc1 $t0,$f10 -/* f125c58: 46028482 */ mul.s $f18,$f16,$f2 -/* f125c5c: c6900004 */ lwc1 $f16,0x4($s4) -/* f125c60: 468055a0 */ cvt.s.w $f22,$f10 -/* f125c64: 46049182 */ mul.s $f6,$f18,$f4 -/* f125c68: c7aa0150 */ lwc1 $f10,0x150($sp) -/* f125c6c: 46008487 */ neg.s $f18,$f16 -/* f125c70: 46009103 */ div.s $f4,$f18,$f0 -/* f125c74: 46143200 */ add.s $f8,$f6,$f20 -/* f125c78: e6280000 */ swc1 $f8,0x0($s1) -/* f125c7c: 461a2180 */ add.s $f6,$f4,$f26 -/* f125c80: 46023202 */ mul.s $f8,$f6,$f2 -/* f125c84: 00000000 */ nop -/* f125c88: 460a4402 */ mul.s $f16,$f8,$f10 -/* f125c8c: 46168480 */ add.s $f18,$f16,$f22 -/* f125c90: 0c002f9d */ jal viGetFovY -/* f125c94: e6520000 */ swc1 $f18,0x0($s2) -/* f125c98: 3c014270 */ lui $at,0x4270 -/* f125c9c: 44812000 */ mtc1 $at,$f4 -/* f125ca0: 86cb0010 */ lh $t3,0x10($s6) -/* f125ca4: c62c0000 */ lwc1 $f12,0x0($s1) -/* f125ca8: 46002183 */ div.s $f6,$f4,$f0 -/* f125cac: 448b4000 */ mtc1 $t3,$f8 -/* f125cb0: c7b200c8 */ lwc1 $f18,0xc8($sp) -/* f125cb4: 468042a0 */ cvt.s.w $f10,$f8 -/* f125cb8: 460a3602 */ mul.s $f24,$f6,$f10 -/* f125cbc: 4618a401 */ sub.s $f16,$f20,$f24 -/* f125cc0: 460c803e */ c.le.s $f16,$f12 -/* f125cc4: 00000000 */ nop -/* f125cc8: 45020182 */ bc1fl .L0f1262d4 -/* f125ccc: 8fae0120 */ lw $t6,0x120($sp) -/* f125cd0: 4612a080 */ add.s $f2,$f20,$f18 -/* f125cd4: 46181100 */ add.s $f4,$f2,$f24 -/* f125cd8: 4604603c */ c.lt.s $f12,$f4 -/* f125cdc: 00000000 */ nop -/* f125ce0: 4502017c */ bc1fl .L0f1262d4 -/* f125ce4: 8fae0120 */ lw $t6,0x120($sp) -/* f125ce8: 4618b201 */ sub.s $f8,$f22,$f24 -/* f125cec: c64e0000 */ lwc1 $f14,0x0($s2) -/* f125cf0: c7a60150 */ lwc1 $f6,0x150($sp) -/* f125cf4: 460e403e */ c.le.s $f8,$f14 -/* f125cf8: 00000000 */ nop -/* f125cfc: 45020175 */ bc1fl .L0f1262d4 -/* f125d00: 8fae0120 */ lw $t6,0x120($sp) -/* f125d04: 4606b000 */ add.s $f0,$f22,$f6 -/* f125d08: 3c0c8008 */ lui $t4,%hi(var8007db88) -/* f125d0c: 258cdb88 */ addiu $t4,$t4,%lo(var8007db88) -/* f125d10: 020c6821 */ addu $t5,$s0,$t4 -/* f125d14: 46180280 */ add.s $f10,$f0,$f24 -/* f125d18: 460a703c */ c.lt.s $f14,$f10 -/* f125d1c: 00000000 */ nop -/* f125d20: 4502016c */ bc1fl .L0f1262d4 -/* f125d24: 8fae0120 */ lw $t6,0x120($sp) -/* f125d28: 8fae013c */ lw $t6,0x13c($sp) -/* f125d2c: 8fb80128 */ lw $t8,0x128($sp) -/* f125d30: 460ca03e */ c.le.s $f20,$f12 -/* f125d34: 000e7880 */ sll $t7,$t6,0x2 -/* f125d38: 44988000 */ mtc1 $t8,$f16 -/* f125d3c: 01ee7821 */ addu $t7,$t7,$t6 -/* f125d40: 000f7940 */ sll $t7,$t7,0x5 -/* f125d44: afaf0098 */ sw $t7,0x98($sp) -/* f125d48: afad009c */ sw $t5,0x9c($sp) -/* f125d4c: 450000aa */ bc1f .L0f125ff8 -/* f125d50: 468087a0 */ cvt.s.w $f30,$f16 -/* f125d54: 4602603c */ c.lt.s $f12,$f2 -/* f125d58: 00000000 */ nop -/* f125d5c: 450200a7 */ bc1fl .L0f125ffc -/* f125d60: 8fa20094 */ lw $v0,0x94($sp) -/* f125d64: 460eb03e */ c.le.s $f22,$f14 -/* f125d68: 00000000 */ nop -/* f125d6c: 450200a3 */ bc1fl .L0f125ffc -/* f125d70: 8fa20094 */ lw $v0,0x94($sp) -/* f125d74: 4600703c */ c.lt.s $f14,$f0 -/* f125d78: 87a30166 */ lh $v1,0x166($sp) -/* f125d7c: 87a20164 */ lh $v0,0x164($sp) -/* f125d80: 87b90162 */ lh $t9,0x162($sp) -/* f125d84: 4500009c */ bc1f .L0f125ff8 -/* f125d88: 2470000f */ addiu $s0,$v1,0xf -/* f125d8c: 87a80160 */ lh $t0,0x160($sp) -/* f125d90: 00799821 */ addu $s3,$v1,$t9 -/* f125d94: 267efff0 */ addiu $s8,$s3,-16 -/* f125d98: 0048b821 */ addu $s7,$v0,$t0 -/* f125d9c: 26e9fff0 */ addiu $t1,$s7,-16 -/* f125da0: afa900a0 */ sw $t1,0xa0($sp) -/* f125da4: 0c000913 */ jal bbufGetIndex0Buffer -/* f125da8: 2455000f */ addiu $s5,$v0,0xf -/* f125dac: c62c0000 */ lwc1 $f12,0x0($s1) -/* f125db0: 3c01447a */ lui $at,0x447a -/* f125db4: 44811000 */ mtc1 $at,$f2 -/* f125db8: 4600648d */ trunc.w.s $f18,$f12 -/* f125dbc: 240a0001 */ addiu $t2,$zero,0x1 -/* f125dc0: 00403825 */ or $a3,$v0,$zero -/* f125dc4: afaa0120 */ sw $t2,0x120($sp) -/* f125dc8: 44039000 */ mfc1 $v1,$f18 -/* f125dcc: 8fae00a0 */ lw $t6,0xa0($sp) -/* f125dd0: 0070082a */ slt $at,$v1,$s0 -/* f125dd4: 10200008 */ beqz $at,.L0f125df8 -/* f125dd8: 3c01447a */ lui $at,0x447a -/* f125ddc: 44812000 */ mtc1 $at,$f4 -/* f125de0: 46006006 */ mov.s $f0,$f12 -/* f125de4: 4604603c */ c.lt.s $f12,$f4 -/* f125de8: 00000000 */ nop -/* f125dec: 45020003 */ bc1fl .L0f125dfc -/* f125df0: c64e0000 */ lwc1 $f14,0x0($s2) -/* f125df4: 46000086 */ mov.s $f2,$f0 -.L0f125df8: -/* f125df8: c64e0000 */ lwc1 $f14,0x0($s2) -.L0f125dfc: -/* f125dfc: 4600720d */ trunc.w.s $f8,$f14 -/* f125e00: 44024000 */ mfc1 $v0,$f8 -/* f125e04: 00000000 */ nop -/* f125e08: 0055082a */ slt $at,$v0,$s5 -/* f125e0c: 50200007 */ beqzl $at,.L0f125e2c -/* f125e10: 03c3082a */ slt $at,$s8,$v1 -/* f125e14: 4602703c */ c.lt.s $f14,$f2 -/* f125e18: 46007006 */ mov.s $f0,$f14 -/* f125e1c: 45020003 */ bc1fl .L0f125e2c -/* f125e20: 03c3082a */ slt $at,$s8,$v1 -/* f125e24: 46000086 */ mov.s $f2,$f0 -/* f125e28: 03c3082a */ slt $at,$s8,$v1 -.L0f125e2c: -/* f125e2c: 1020000a */ beqz $at,.L0f125e58 -/* f125e30: 266dffff */ addiu $t5,$s3,-1 -/* f125e34: 448d3000 */ mtc1 $t5,$f6 -/* f125e38: 00000000 */ nop -/* f125e3c: 468032a0 */ cvt.s.w $f10,$f6 -/* f125e40: 460c5001 */ sub.s $f0,$f10,$f12 -/* f125e44: 4602003c */ c.lt.s $f0,$f2 -/* f125e48: 00000000 */ nop -/* f125e4c: 45020003 */ bc1fl .L0f125e5c -/* f125e50: 01c2082a */ slt $at,$t6,$v0 -/* f125e54: 46000086 */ mov.s $f2,$f0 -.L0f125e58: -/* f125e58: 01c2082a */ slt $at,$t6,$v0 -.L0f125e5c: -/* f125e5c: 1020000a */ beqz $at,.L0f125e88 -/* f125e60: 26efffff */ addiu $t7,$s7,-1 -/* f125e64: 448f8000 */ mtc1 $t7,$f16 -/* f125e68: 00000000 */ nop -/* f125e6c: 468084a0 */ cvt.s.w $f18,$f16 -/* f125e70: 460e9001 */ sub.s $f0,$f18,$f14 -/* f125e74: 4602003c */ c.lt.s $f0,$f2 -/* f125e78: 00000000 */ nop -/* f125e7c: 45020003 */ bc1fl .L0f125e8c -/* f125e80: 461a1081 */ sub.s $f2,$f2,$f26 -/* f125e84: 46000086 */ mov.s $f2,$f0 -.L0f125e88: -/* f125e88: 461a1081 */ sub.s $f2,$f2,$f26 -.L0f125e8c: -/* f125e8c: 3c017f1b */ lui $at,%hi(var7f1b5108) -/* f125e90: 461c103c */ c.lt.s $f2,$f28 -/* f125e94: 00000000 */ nop -/* f125e98: 45000002 */ bc1f .L0f125ea4 -/* f125e9c: 00000000 */ nop -/* f125ea0: 4600e086 */ mov.s $f2,$f28 -.L0f125ea4: -/* f125ea4: c4245108 */ lwc1 $f4,%lo(var7f1b5108)($at) -/* f125ea8: 8fb8009c */ lw $t8,0x9c($sp) -/* f125eac: 46041002 */ mul.s $f0,$f2,$f4 -/* f125eb0: 4600d03c */ c.lt.s $f26,$f0 -/* f125eb4: e7000000 */ swc1 $f0,0x0($t8) -/* f125eb8: 8fb9009c */ lw $t9,0x9c($sp) -/* f125ebc: 45020003 */ bc1fl .L0f125ecc -/* f125ec0: 8fa80098 */ lw $t0,0x98($sp) -/* f125ec4: e73a0000 */ swc1 $f26,0x0($t9) -/* f125ec8: 8fa80098 */ lw $t0,0x98($sp) -.L0f125ecc: -/* f125ecc: 2465fff9 */ addiu $a1,$v1,-7 -/* f125ed0: 24460001 */ addiu $a2,$v0,0x1 -/* f125ed4: 01078021 */ addu $s0,$t0,$a3 -/* f125ed8: 0fc49652 */ jal func0f125948 -/* f125edc: 02002025 */ or $a0,$s0,$zero -/* f125ee0: c6280000 */ lwc1 $f8,0x0($s1) -/* f125ee4: c64a0000 */ lwc1 $f10,0x0($s2) -/* f125ee8: 26040014 */ addiu $a0,$s0,0x14 -/* f125eec: 4600418d */ trunc.w.s $f6,$f8 -/* f125ef0: 4600540d */ trunc.w.s $f16,$f10 -/* f125ef4: 44053000 */ mfc1 $a1,$f6 -/* f125ef8: 44068000 */ mfc1 $a2,$f16 -/* f125efc: 24a5fffb */ addiu $a1,$a1,-5 -/* f125f00: 0fc49652 */ jal func0f125948 -/* f125f04: 24c6fffd */ addiu $a2,$a2,-3 -/* f125f08: c6320000 */ lwc1 $f18,0x0($s1) -/* f125f0c: c6480000 */ lwc1 $f8,0x0($s2) -/* f125f10: 26040028 */ addiu $a0,$s0,0x28 -/* f125f14: 4600910d */ trunc.w.s $f4,$f18 -/* f125f18: 4600418d */ trunc.w.s $f6,$f8 -/* f125f1c: 44052000 */ mfc1 $a1,$f4 -/* f125f20: 44063000 */ mfc1 $a2,$f6 -/* f125f24: 24a5fffd */ addiu $a1,$a1,-3 -/* f125f28: 0fc49652 */ jal func0f125948 -/* f125f2c: 24c60005 */ addiu $a2,$a2,0x5 -/* f125f30: c62a0000 */ lwc1 $f10,0x0($s1) -/* f125f34: c6520000 */ lwc1 $f18,0x0($s2) -/* f125f38: 2604003c */ addiu $a0,$s0,0x3c -/* f125f3c: 4600540d */ trunc.w.s $f16,$f10 -/* f125f40: 4600910d */ trunc.w.s $f4,$f18 -/* f125f44: 44058000 */ mfc1 $a1,$f16 -/* f125f48: 44062000 */ mfc1 $a2,$f4 -/* f125f4c: 24a5ffff */ addiu $a1,$a1,-1 -/* f125f50: 0fc49652 */ jal func0f125948 -/* f125f54: 24c6fff9 */ addiu $a2,$a2,-7 -/* f125f58: c6280000 */ lwc1 $f8,0x0($s1) -/* f125f5c: c64a0000 */ lwc1 $f10,0x0($s2) -/* f125f60: 26040050 */ addiu $a0,$s0,0x50 -/* f125f64: 4600418d */ trunc.w.s $f6,$f8 -/* f125f68: 4600540d */ trunc.w.s $f16,$f10 -/* f125f6c: 44053000 */ mfc1 $a1,$f6 -/* f125f70: 44068000 */ mfc1 $a2,$f16 -/* f125f74: 24a50001 */ addiu $a1,$a1,0x1 -/* f125f78: 0fc49652 */ jal func0f125948 -/* f125f7c: 24c60007 */ addiu $a2,$a2,0x7 -/* f125f80: c6320000 */ lwc1 $f18,0x0($s1) -/* f125f84: c6480000 */ lwc1 $f8,0x0($s2) -/* f125f88: 26040064 */ addiu $a0,$s0,0x64 -/* f125f8c: 4600910d */ trunc.w.s $f4,$f18 -/* f125f90: 4600418d */ trunc.w.s $f6,$f8 -/* f125f94: 44052000 */ mfc1 $a1,$f4 -/* f125f98: 44063000 */ mfc1 $a2,$f6 -/* f125f9c: 24a50003 */ addiu $a1,$a1,0x3 -/* f125fa0: 0fc49652 */ jal func0f125948 -/* f125fa4: 24c6fffb */ addiu $a2,$a2,-5 -/* f125fa8: c62a0000 */ lwc1 $f10,0x0($s1) -/* f125fac: c6520000 */ lwc1 $f18,0x0($s2) -/* f125fb0: 26040078 */ addiu $a0,$s0,0x78 -/* f125fb4: 4600540d */ trunc.w.s $f16,$f10 -/* f125fb8: 4600910d */ trunc.w.s $f4,$f18 -/* f125fbc: 44058000 */ mfc1 $a1,$f16 -/* f125fc0: 44062000 */ mfc1 $a2,$f4 -/* f125fc4: 24a50005 */ addiu $a1,$a1,0x5 -/* f125fc8: 0fc49652 */ jal func0f125948 -/* f125fcc: 24c60003 */ addiu $a2,$a2,0x3 -/* f125fd0: c6280000 */ lwc1 $f8,0x0($s1) -/* f125fd4: c64a0000 */ lwc1 $f10,0x0($s2) -/* f125fd8: 2604008c */ addiu $a0,$s0,0x8c -/* f125fdc: 4600418d */ trunc.w.s $f6,$f8 -/* f125fe0: 4600540d */ trunc.w.s $f16,$f10 -/* f125fe4: 44053000 */ mfc1 $a1,$f6 -/* f125fe8: 44068000 */ mfc1 $a2,$f16 -/* f125fec: 24a50007 */ addiu $a1,$a1,0x7 -/* f125ff0: 0fc49652 */ jal func0f125948 -/* f125ff4: 24c6ffff */ addiu $a2,$a2,-1 -.L0f125ff8: -/* f125ff8: 8fa20094 */ lw $v0,0x94($sp) -.L0f125ffc: -/* f125ffc: 3c0e800a */ lui $t6,%hi(g_Vars+0x34) -/* f126000: 8dce9ff4 */ lw $t6,%lo(g_Vars+0x34)($t6) -/* f126004: 8c4d0000 */ lw $t5,0x0($v0) -/* f126008: 3c05800b */ lui $a1,%hi(g_TexLightGlareConfigs) -/* f12600c: 24180002 */ addiu $t8,$zero,0x2 -/* f126010: 01ae7821 */ addu $t7,$t5,$t6 -/* f126014: ac4f0000 */ sw $t7,0x0($v0) -/* f126018: 8ca5b5a0 */ lw $a1,%lo(g_TexLightGlareConfigs)($a1) -/* f12601c: 24190001 */ addiu $t9,$zero,0x1 -/* f126020: afb90014 */ sw $t9,0x14($sp) -/* f126024: afb80010 */ sw $t8,0x10($sp) -/* f126028: 27a40170 */ addiu $a0,$sp,0x170 -/* f12602c: 24060004 */ addiu $a2,$zero,0x4 -/* f126030: 00003825 */ or $a3,$zero,$zero -/* f126034: afa00018 */ sw $zero,0x18($sp) -/* f126038: 0fc2ce70 */ jal func0f0b39c0 -/* f12603c: 24a5003c */ addiu $a1,$a1,0x003c -/* f126040: 8fa80170 */ lw $t0,0x170($sp) -/* f126044: 3c0aba00 */ lui $t2,0xba00 -/* f126048: 354a1402 */ ori $t2,$t2,0x1402 -/* f12604c: 25090008 */ addiu $t1,$t0,0x8 -/* f126050: afa90170 */ sw $t1,0x170($sp) -/* f126054: ad000004 */ sw $zero,0x4($t0) -/* f126058: ad0a0000 */ sw $t2,0x0($t0) -/* f12605c: 8fab0170 */ lw $t3,0x170($sp) -/* f126060: 3c0dba00 */ lui $t5,0xba00 -/* f126064: 35ad0602 */ ori $t5,$t5,0x602 -/* f126068: 256c0008 */ addiu $t4,$t3,0x8 -/* f12606c: afac0170 */ sw $t4,0x170($sp) -/* f126070: 240e00c0 */ addiu $t6,$zero,0xc0 -/* f126074: ad6e0004 */ sw $t6,0x4($t3) -/* f126078: ad6d0000 */ sw $t5,0x0($t3) -/* f12607c: 8faf0170 */ lw $t7,0x170($sp) -/* f126080: 3c080050 */ lui $t0,0x50 -/* f126084: 3c19b900 */ lui $t9,0xb900 -/* f126088: 25f80008 */ addiu $t8,$t7,0x8 -/* f12608c: afb80170 */ sw $t8,0x170($sp) -/* f126090: 3739031d */ ori $t9,$t9,0x31d -/* f126094: 350841c8 */ ori $t0,$t0,0x41c8 -/* f126098: ade80004 */ sw $t0,0x4($t7) -/* f12609c: adf90000 */ sw $t9,0x0($t7) -/* f1260a0: 8fa90170 */ lw $t1,0x170($sp) -/* f1260a4: 3c0bba00 */ lui $t3,0xba00 -/* f1260a8: 356b1301 */ ori $t3,$t3,0x1301 -/* f1260ac: 252a0008 */ addiu $t2,$t1,0x8 -/* f1260b0: afaa0170 */ sw $t2,0x170($sp) -/* f1260b4: ad200004 */ sw $zero,0x4($t1) -/* f1260b8: ad2b0000 */ sw $t3,0x0($t1) -/* f1260bc: 8fac0170 */ lw $t4,0x170($sp) -/* f1260c0: 3c0eb900 */ lui $t6,0xb900 -/* f1260c4: 35ce0002 */ ori $t6,$t6,0x2 -/* f1260c8: 258d0008 */ addiu $t5,$t4,0x8 -/* f1260cc: afad0170 */ sw $t5,0x170($sp) -/* f1260d0: ad800004 */ sw $zero,0x4($t4) -/* f1260d4: ad8e0000 */ sw $t6,0x0($t4) -/* f1260d8: 8faf0170 */ lw $t7,0x170($sp) -/* f1260dc: 3c19ba00 */ lui $t9,0xba00 -/* f1260e0: 37391001 */ ori $t9,$t9,0x1001 -/* f1260e4: 25f80008 */ addiu $t8,$t7,0x8 -/* f1260e8: afb80170 */ sw $t8,0x170($sp) -/* f1260ec: ade00004 */ sw $zero,0x4($t7) -/* f1260f0: adf90000 */ sw $t9,0x0($t7) -/* f1260f4: 8fa80170 */ lw $t0,0x170($sp) -/* f1260f8: 3c0aba00 */ lui $t2,0xba00 -/* f1260fc: 354a0903 */ ori $t2,$t2,0x903 -/* f126100: 25090008 */ addiu $t1,$t0,0x8 -/* f126104: afa90170 */ sw $t1,0x170($sp) -/* f126108: 240b0c00 */ addiu $t3,$zero,0xc00 -/* f12610c: ad0b0004 */ sw $t3,0x4($t0) -/* f126110: ad0a0000 */ sw $t2,0x0($t0) -/* f126114: 8fac0170 */ lw $t4,0x170($sp) -/* f126118: 3c0eba00 */ lui $t6,0xba00 -/* f12611c: 35ce0e02 */ ori $t6,$t6,0xe02 -/* f126120: 258d0008 */ addiu $t5,$t4,0x8 -/* f126124: afad0170 */ sw $t5,0x170($sp) -/* f126128: ad800004 */ sw $zero,0x4($t4) -/* f12612c: ad8e0000 */ sw $t6,0x0($t4) -/* f126130: 8faf0170 */ lw $t7,0x170($sp) -/* f126134: 3c19ba00 */ lui $t9,0xba00 -/* f126138: 37390c02 */ ori $t9,$t9,0xc02 -/* f12613c: 25f80008 */ addiu $t8,$t7,0x8 -/* f126140: afb80170 */ sw $t8,0x170($sp) -/* f126144: 24082000 */ addiu $t0,$zero,0x2000 -/* f126148: ade80004 */ sw $t0,0x4($t7) -/* f12614c: adf90000 */ sw $t9,0x0($t7) -/* f126150: 8fa90170 */ lw $t1,0x170($sp) -/* f126154: 3c0cffa7 */ lui $t4,0xffa7 -/* f126158: 3c0bfc50 */ lui $t3,0xfc50 -/* f12615c: 252a0008 */ addiu $t2,$t1,0x8 -/* f126160: afaa0170 */ sw $t2,0x170($sp) -/* f126164: 356bd2a1 */ ori $t3,$t3,0xd2a1 -/* f126168: 358cffff */ ori $t4,$t4,0xffff -/* f12616c: ad2c0004 */ sw $t4,0x4($t1) -/* f126170: ad2b0000 */ sw $t3,0x0($t1) -/* f126174: 8fa30170 */ lw $v1,0x170($sp) -/* f126178: 3c0ffb00 */ lui $t7,0xfb00 -/* f12617c: 3c01437f */ lui $at,0x437f -/* f126180: 246e0008 */ addiu $t6,$v1,0x8 -/* f126184: afae0170 */ sw $t6,0x170($sp) -/* f126188: ac6f0000 */ sw $t7,0x0($v1) -/* f12618c: 8fb8009c */ lw $t8,0x9c($sp) -/* f126190: 44812000 */ mtc1 $at,$f4 -/* f126194: 3c013f00 */ lui $at,0x3f00 -/* f126198: c7120000 */ lwc1 $f18,0x0($t8) -/* f12619c: 93ab0148 */ lbu $t3,0x148($sp) -/* f1261a0: 93af0149 */ lbu $t7,0x149($sp) -/* f1261a4: 46049202 */ mul.s $f8,$f18,$f4 -/* f1261a8: 44819000 */ mtc1 $at,$f18 -/* f1261ac: 93aa014a */ lbu $t2,0x14a($sp) -/* f1261b0: 000b6600 */ sll $t4,$t3,0x18 -/* f1261b4: 4612c002 */ mul.s $f0,$f24,$f18 -/* f1261b8: 000fc400 */ sll $t8,$t7,0x10 -/* f1261bc: 000a5a00 */ sll $t3,$t2,0x8 -/* f1261c0: 3c02800b */ lui $v0,%hi(g_TexLightGlareConfigs) -/* f1261c4: 240f0001 */ addiu $t7,$zero,0x1 -/* f1261c8: 240e0001 */ addiu $t6,$zero,0x1 -/* f1261cc: 4600418d */ trunc.w.s $f6,$f8 -/* f1261d0: 461e0102 */ mul.s $f4,$f0,$f30 -/* f1261d4: 27a40170 */ addiu $a0,$sp,0x170 -/* f1261d8: 27a50134 */ addiu $a1,$sp,0x134 -/* f1261dc: 44083000 */ mfc1 $t0,$f6 -/* f1261e0: 27a6012c */ addiu $a2,$sp,0x12c -/* f1261e4: 310900ff */ andi $t1,$t0,0xff -/* f1261e8: 012c6825 */ or $t5,$t1,$t4 -/* f1261ec: 01b8c825 */ or $t9,$t5,$t8 -/* f1261f0: 032b4825 */ or $t1,$t9,$t3 -/* f1261f4: ac690004 */ sw $t1,0x4($v1) -/* f1261f8: c62a0000 */ lwc1 $f10,0x0($s1) -/* f1261fc: c6500000 */ lwc1 $f16,0x0($s2) -/* f126200: 8c42b5a0 */ lw $v0,%lo(g_TexLightGlareConfigs)($v0) -/* f126204: e7a4012c */ swc1 $f4,0x12c($sp) -/* f126208: e7a00130 */ swc1 $f0,0x130($sp) -/* f12620c: e7aa0134 */ swc1 $f10,0x134($sp) -/* f126210: e7b00138 */ swc1 $f16,0x138($sp) -/* f126214: 904c0041 */ lbu $t4,0x41($v0) -/* f126218: 90470040 */ lbu $a3,0x40($v0) -/* f12621c: 24180001 */ addiu $t8,$zero,0x1 -/* f126220: 240d0001 */ addiu $t5,$zero,0x1 -/* f126224: afad0020 */ sw $t5,0x20($sp) -/* f126228: afb80028 */ sw $t8,0x28($sp) -/* f12622c: afa00024 */ sw $zero,0x24($sp) -/* f126230: afaf001c */ sw $t7,0x1c($sp) -/* f126234: afae0018 */ sw $t6,0x18($sp) -/* f126238: afa00014 */ sw $zero,0x14($sp) -/* f12623c: 0fc2c854 */ jal func0f0b2150 -/* f126240: afac0010 */ sw $t4,0x10($sp) -/* f126244: 8fa80170 */ lw $t0,0x170($sp) -/* f126248: 3c19e700 */ lui $t9,0xe700 -/* f12624c: 3c0cba00 */ lui $t4,0xba00 -/* f126250: 250a0008 */ addiu $t2,$t0,0x8 -/* f126254: afaa0170 */ sw $t2,0x170($sp) -/* f126258: ad000004 */ sw $zero,0x4($t0) -/* f12625c: ad190000 */ sw $t9,0x0($t0) -/* f126260: 8fab0170 */ lw $t3,0x170($sp) -/* f126264: 358c0602 */ ori $t4,$t4,0x602 -/* f126268: 240e0040 */ addiu $t6,$zero,0x40 -/* f12626c: 25690008 */ addiu $t1,$t3,0x8 -/* f126270: afa90170 */ sw $t1,0x170($sp) -/* f126274: ad6e0004 */ sw $t6,0x4($t3) -/* f126278: ad6c0000 */ sw $t4,0x0($t3) -/* f12627c: 8faf0170 */ lw $t7,0x170($sp) -/* f126280: 3c18ba00 */ lui $t8,0xba00 -/* f126284: 37181301 */ ori $t8,$t8,0x1301 -/* f126288: 25ed0008 */ addiu $t5,$t7,0x8 -/* f12628c: afad0170 */ sw $t5,0x170($sp) -/* f126290: 3c080008 */ lui $t0,0x8 -/* f126294: ade80004 */ sw $t0,0x4($t7) -/* f126298: adf80000 */ sw $t8,0x0($t7) -/* f12629c: 8faa0170 */ lw $t2,0x170($sp) -/* f1262a0: 3c0bba00 */ lui $t3,0xba00 -/* f1262a4: 356b1001 */ ori $t3,$t3,0x1001 -/* f1262a8: 25590008 */ addiu $t9,$t2,0x8 -/* f1262ac: afb90170 */ sw $t9,0x170($sp) -/* f1262b0: 3c090001 */ lui $t1,0x1 -/* f1262b4: ad490004 */ sw $t1,0x4($t2) -/* f1262b8: 0c000920 */ jal bbufGetIndex1Buffer -/* f1262bc: ad4b0000 */ sw $t3,0x0($t2) -/* f1262c0: 8fac0098 */ lw $t4,0x98($sp) -/* f1262c4: 0fc49687 */ jal func0f125a1c -/* f1262c8: 004c2021 */ addu $a0,$v0,$t4 -/* f1262cc: e7a00124 */ swc1 $f0,0x124($sp) -/* f1262d0: 8fae0120 */ lw $t6,0x120($sp) -.L0f1262d4: -/* f1262d4: c7a80124 */ lwc1 $f8,0x124($sp) -/* f1262d8: 51c0000c */ beqzl $t6,.L0f12630c -/* f1262dc: 8fa80094 */ lw $t0,0x94($sp) -/* f1262e0: 4608e03c */ c.lt.s $f28,$f8 -/* f1262e4: 8fa20094 */ lw $v0,0x94($sp) -/* f1262e8: 3c0d800a */ lui $t5,%hi(g_Vars+0x34) -/* f1262ec: 45020007 */ bc1fl .L0f12630c -/* f1262f0: 8fa80094 */ lw $t0,0x94($sp) -/* f1262f4: 8c4f0000 */ lw $t7,0x0($v0) -/* f1262f8: 8dad9ff4 */ lw $t5,%lo(g_Vars+0x34)($t5) -/* f1262fc: 01edc021 */ addu $t8,$t7,$t5 -/* f126300: 10000003 */ b .L0f126310 -/* f126304: ac580000 */ sw $t8,0x0($v0) -/* f126308: 8fa80094 */ lw $t0,0x94($sp) -.L0f12630c: -/* f12630c: ad000000 */ sw $zero,0x0($t0) -.L0f126310: -/* f126310: 8faa013c */ lw $t2,0x13c($sp) -.L0f126314: -/* f126314: 8fab0144 */ lw $t3,0x144($sp) -/* f126318: 2694000c */ addiu $s4,$s4,0xc -/* f12631c: 25590001 */ addiu $t9,$t2,0x1 -/* f126320: afb9013c */ sw $t9,0x13c($sp) -/* f126324: 9169000b */ lbu $t1,0xb($t3) -/* f126328: 26d60014 */ addiu $s6,$s6,0x14 -/* f12632c: 0329082a */ slt $at,$t9,$t1 -/* f126330: 5420fe18 */ bnezl $at,.L0f125b94 -/* f126334: c6d00004 */ lwc1 $f16,0x4($s6) -/* f126338: 8fa20170 */ lw $v0,0x170($sp) -.L0f12633c: -/* f12633c: 8fbf008c */ lw $ra,0x8c($sp) -/* f126340: d7b40038 */ ldc1 $f20,0x38($sp) -/* f126344: d7b60040 */ ldc1 $f22,0x40($sp) -/* f126348: d7b80048 */ ldc1 $f24,0x48($sp) -/* f12634c: d7ba0050 */ ldc1 $f26,0x50($sp) -/* f126350: d7bc0058 */ ldc1 $f28,0x58($sp) -/* f126354: d7be0060 */ ldc1 $f30,0x60($sp) -/* f126358: 8fb00068 */ lw $s0,0x68($sp) -/* f12635c: 8fb1006c */ lw $s1,0x6c($sp) -/* f126360: 8fb20070 */ lw $s2,0x70($sp) -/* f126364: 8fb30074 */ lw $s3,0x74($sp) -/* f126368: 8fb40078 */ lw $s4,0x78($sp) -/* f12636c: 8fb5007c */ lw $s5,0x7c($sp) -/* f126370: 8fb60080 */ lw $s6,0x80($sp) -/* f126374: 8fb70084 */ lw $s7,0x84($sp) -/* f126378: 8fbe0088 */ lw $s8,0x88($sp) -/* f12637c: 03e00008 */ jr $ra -/* f126380: 27bd0170 */ addiu $sp,$sp,0x170 -); -#endif - -#if VERSION == VERSION_PAL_FINAL -GLOBAL_ASM( -glabel func0f126384 -.late_rodata -glabel var7f1b510c -.word 0x3c23d70a -glabel var7f1b5110 -.word 0x3bda740e -glabel var7f1b5114 -.word 0x3d23d70a -glabel var7f1b5118 -.word 0x3c4ccccd -glabel var7f1b511c -.word 0x3dcccccd -.text -/* f126e68: 27bdfe68 */ addiu $sp,$sp,-408 -/* f126e6c: 3c0f8008 */ lui $t7,0x8008 -/* f126e70: afbf008c */ sw $ra,0x8c($sp) -/* f126e74: afbe0088 */ sw $s8,0x88($sp) -/* f126e78: afb70084 */ sw $s7,0x84($sp) -/* f126e7c: afb60080 */ sw $s6,0x80($sp) -/* f126e80: afb5007c */ sw $s5,0x7c($sp) -/* f126e84: afb40078 */ sw $s4,0x78($sp) -/* f126e88: afb30074 */ sw $s3,0x74($sp) -/* f126e8c: afb20070 */ sw $s2,0x70($sp) -/* f126e90: afb1006c */ sw $s1,0x6c($sp) -/* f126e94: afb00068 */ sw $s0,0x68($sp) -/* f126e98: f7be0060 */ sdc1 $f30,0x60($sp) -/* f126e9c: f7bc0058 */ sdc1 $f28,0x58($sp) -/* f126ea0: f7ba0050 */ sdc1 $f26,0x50($sp) -/* f126ea4: f7b80048 */ sdc1 $f24,0x48($sp) -/* f126ea8: f7b60040 */ sdc1 $f22,0x40($sp) -/* f126eac: f7b40038 */ sdc1 $f20,0x38($sp) -/* f126eb0: afa40198 */ sw $a0,0x198($sp) -/* f126eb4: 25efe070 */ addiu $t7,$t7,-8080 -/* f126eb8: 8de10000 */ lw $at,0x0($t7) -/* f126ebc: 8de80004 */ lw $t0,0x4($t7) -/* f126ec0: 27ae0164 */ addiu $t6,$sp,0x164 -/* f126ec4: adc10000 */ sw $at,0x0($t6) -/* f126ec8: adc80004 */ sw $t0,0x4($t6) -/* f126ecc: 8de8000c */ lw $t0,0xc($t7) -/* f126ed0: 8de10008 */ lw $at,0x8($t7) -/* f126ed4: 3c0a8008 */ lui $t2,0x8008 -/* f126ed8: adc8000c */ sw $t0,0xc($t6) -/* f126edc: adc10008 */ sw $at,0x8($t6) -/* f126ee0: 8de10010 */ lw $at,0x10($t7) -/* f126ee4: 8de80014 */ lw $t0,0x14($t7) -/* f126ee8: 254ae088 */ addiu $t2,$t2,-8056 -/* f126eec: adc10010 */ sw $at,0x10($t6) -/* f126ef0: adc80014 */ sw $t0,0x14($t6) -/* f126ef4: 8d4d0004 */ lw $t5,0x4($t2) -/* f126ef8: 8d410000 */ lw $at,0x0($t2) -/* f126efc: 27a9014c */ addiu $t1,$sp,0x14c -/* f126f00: ad2d0004 */ sw $t5,0x4($t1) -/* f126f04: ad210000 */ sw $at,0x0($t1) -/* f126f08: 8d410008 */ lw $at,0x8($t2) -/* f126f0c: 8d4d000c */ lw $t5,0xc($t2) -/* f126f10: 3c188008 */ lui $t8,0x8008 -/* f126f14: ad210008 */ sw $at,0x8($t1) -/* f126f18: ad2d000c */ sw $t5,0xc($t1) -/* f126f1c: 8d4d0014 */ lw $t5,0x14($t2) -/* f126f20: 8d410010 */ lw $at,0x10($t2) -/* f126f24: 2718e0a0 */ addiu $t8,$t8,-8032 -/* f126f28: ad2d0014 */ sw $t5,0x14($t1) -/* f126f2c: ad210010 */ sw $at,0x10($t1) -/* f126f30: 8f080004 */ lw $t0,0x4($t8) -/* f126f34: 8f010000 */ lw $at,0x0($t8) -/* f126f38: 27b90134 */ addiu $t9,$sp,0x134 -/* f126f3c: af280004 */ sw $t0,0x4($t9) -/* f126f40: af210000 */ sw $at,0x0($t9) -/* f126f44: 8f010008 */ lw $at,0x8($t8) -/* f126f48: 8f08000c */ lw $t0,0xc($t8) -/* f126f4c: 4487b000 */ mtc1 $a3,$f22 -/* f126f50: af210008 */ sw $at,0x8($t9) -/* f126f54: af28000c */ sw $t0,0xc($t9) -/* f126f58: 8f080014 */ lw $t0,0x14($t8) -/* f126f5c: 8f010010 */ lw $at,0x10($t8) -/* f126f60: 4485d000 */ mtc1 $a1,$f26 -/* f126f64: 4486e000 */ mtc1 $a2,$f28 -/* f126f68: af280014 */ sw $t0,0x14($t9) -/* f126f6c: 0c002e73 */ jal viGetViewWidth -/* f126f70: af210010 */ sw $at,0x10($t9) -/* f126f74: 44822000 */ mtc1 $v0,$f4 -/* f126f78: 3c017f1b */ lui $at,0x7f1b -/* f126f7c: c43463fc */ lwc1 $f20,0x63fc($at) -/* f126f80: 468021a0 */ cvt.s.w $f6,$f4 -/* f126f84: 3c013f00 */ lui $at,0x3f00 -/* f126f88: 4481f000 */ mtc1 $at,$f30 -/* f126f8c: 00000000 */ nop -/* f126f90: 461e3202 */ mul.s $f8,$f6,$f30 -/* f126f94: 4608d281 */ sub.s $f10,$f26,$f8 -/* f126f98: 46145102 */ mul.s $f4,$f10,$f20 -/* f126f9c: 0c002e77 */ jal viGetViewHeight -/* f126fa0: e7a40130 */ swc1 $f4,0x130($sp) -/* f126fa4: 44823000 */ mtc1 $v0,$f6 -/* f126fa8: 3c16800b */ lui $s6,0x800b -/* f126fac: 26d6bb40 */ addiu $s6,$s6,-17600 -/* f126fb0: 46803220 */ cvt.s.w $f8,$f6 -/* f126fb4: 8ec50000 */ lw $a1,0x0($s6) -/* f126fb8: 27b50198 */ addiu $s5,$sp,0x198 -/* f126fbc: 240c0002 */ li $t4,0x2 -/* f126fc0: 240b0001 */ li $t3,0x1 -/* f126fc4: afab0014 */ sw $t3,0x14($sp) -/* f126fc8: 461e4282 */ mul.s $f10,$f8,$f30 -/* f126fcc: afac0010 */ sw $t4,0x10($sp) -/* f126fd0: 02a02025 */ move $a0,$s5 -/* f126fd4: 24060004 */ li $a2,0x4 -/* f126fd8: 00003825 */ move $a3,$zero -/* f126fdc: afa00018 */ sw $zero,0x18($sp) -/* f126fe0: 24a50048 */ addiu $a1,$a1,0x48 -/* f126fe4: 460ae101 */ sub.s $f4,$f28,$f10 -/* f126fe8: 46142182 */ mul.s $f6,$f4,$f20 -/* f126fec: 0fc2cfb8 */ jal func0f0b39c0 -/* f126ff0: e7a6012c */ swc1 $f6,0x12c($sp) -/* f126ff4: 8fa90198 */ lw $t1,0x198($sp) -/* f126ff8: 3c10ba00 */ lui $s0,0xba00 -/* f126ffc: 36101402 */ ori $s0,$s0,0x1402 -/* f127000: 252a0008 */ addiu $t2,$t1,0x8 -/* f127004: afaa0198 */ sw $t2,0x198($sp) -/* f127008: ad200004 */ sw $zero,0x4($t1) -/* f12700c: ad300000 */ sw $s0,0x0($t1) -/* f127010: 8fad0198 */ lw $t5,0x198($sp) -/* f127014: 3c0eba00 */ lui $t6,0xba00 -/* f127018: 35ce0602 */ ori $t6,$t6,0x602 -/* f12701c: 25af0008 */ addiu $t7,$t5,0x8 -/* f127020: afaf0198 */ sw $t7,0x198($sp) -/* f127024: 24190040 */ li $t9,0x40 -/* f127028: adb90004 */ sw $t9,0x4($t5) -/* f12702c: adae0000 */ sw $t6,0x0($t5) -/* f127030: 8fb80198 */ lw $t8,0x198($sp) -/* f127034: 3c0cba00 */ lui $t4,0xba00 -/* f127038: 358c0402 */ ori $t4,$t4,0x402 -/* f12703c: 27080008 */ addiu $t0,$t8,0x8 -/* f127040: afa80198 */ sw $t0,0x198($sp) -/* f127044: af000004 */ sw $zero,0x4($t8) -/* f127048: af0c0000 */ sw $t4,0x0($t8) -/* f12704c: 8fab0198 */ lw $t3,0x198($sp) -/* f127050: 3c11b900 */ lui $s1,0xb900 -/* f127054: 3c120050 */ lui $s2,0x50 -/* f127058: 25690008 */ addiu $t1,$t3,0x8 -/* f12705c: afa90198 */ sw $t1,0x198($sp) -/* f127060: 365241c8 */ ori $s2,$s2,0x41c8 -/* f127064: 3631031d */ ori $s1,$s1,0x31d -/* f127068: ad710000 */ sw $s1,0x0($t3) -/* f12706c: ad720004 */ sw $s2,0x4($t3) -/* f127070: 8faa0198 */ lw $t2,0x198($sp) -/* f127074: 3c0fba00 */ lui $t7,0xba00 -/* f127078: 35ef1301 */ ori $t7,$t7,0x1301 -/* f12707c: 254d0008 */ addiu $t5,$t2,0x8 -/* f127080: afad0198 */ sw $t5,0x198($sp) -/* f127084: ad400004 */ sw $zero,0x4($t2) -/* f127088: ad4f0000 */ sw $t7,0x0($t2) -/* f12708c: 8fae0198 */ lw $t6,0x198($sp) -/* f127090: 3c13b900 */ lui $s3,0xb900 -/* f127094: 36730002 */ ori $s3,$s3,0x2 -/* f127098: 25d90008 */ addiu $t9,$t6,0x8 -/* f12709c: afb90198 */ sw $t9,0x198($sp) -/* f1270a0: adc00004 */ sw $zero,0x4($t6) -/* f1270a4: add30000 */ sw $s3,0x0($t6) -/* f1270a8: 8fb80198 */ lw $t8,0x198($sp) -/* f1270ac: 3c0cba00 */ lui $t4,0xba00 -/* f1270b0: 358c1001 */ ori $t4,$t4,0x1001 -/* f1270b4: 27080008 */ addiu $t0,$t8,0x8 -/* f1270b8: afa80198 */ sw $t0,0x198($sp) -/* f1270bc: af000004 */ sw $zero,0x4($t8) -/* f1270c0: af0c0000 */ sw $t4,0x0($t8) -/* f1270c4: 8fab0198 */ lw $t3,0x198($sp) -/* f1270c8: 3c14ba00 */ lui $s4,0xba00 -/* f1270cc: 36940903 */ ori $s4,$s4,0x903 -/* f1270d0: 25690008 */ addiu $t1,$t3,0x8 -/* f1270d4: afa90198 */ sw $t1,0x198($sp) -/* f1270d8: 240a0c00 */ li $t2,0xc00 -/* f1270dc: ad6a0004 */ sw $t2,0x4($t3) -/* f1270e0: ad740000 */ sw $s4,0x0($t3) -/* f1270e4: 8fad0198 */ lw $t5,0x198($sp) -/* f1270e8: 3c0eba00 */ lui $t6,0xba00 -/* f1270ec: 35ce0e02 */ ori $t6,$t6,0xe02 -/* f1270f0: 25af0008 */ addiu $t7,$t5,0x8 -/* f1270f4: afaf0198 */ sw $t7,0x198($sp) -/* f1270f8: ada00004 */ sw $zero,0x4($t5) -/* f1270fc: adae0000 */ sw $t6,0x0($t5) -/* f127100: 8fb90198 */ lw $t9,0x198($sp) -/* f127104: 3c08ba00 */ lui $t0,0xba00 -/* f127108: 35080c02 */ ori $t0,$t0,0xc02 -/* f12710c: 27380008 */ addiu $t8,$t9,0x8 -/* f127110: afb80198 */ sw $t8,0x198($sp) -/* f127114: 240c2000 */ li $t4,0x2000 -/* f127118: af2c0004 */ sw $t4,0x4($t9) -/* f12711c: af280000 */ sw $t0,0x0($t9) -/* f127120: 8fab0198 */ lw $t3,0x198($sp) -/* f127124: 3c0dff36 */ lui $t5,0xff36 -/* f127128: 3c0afcff */ lui $t2,0xfcff -/* f12712c: 25690008 */ addiu $t1,$t3,0x8 -/* f127130: afa90198 */ sw $t1,0x198($sp) -/* f127134: 354a9bff */ ori $t2,$t2,0x9bff -/* f127138: 35adff7f */ ori $t5,$t5,0xff7f -/* f12713c: ad6d0004 */ sw $t5,0x4($t3) -/* f127140: 0c002eee */ jal viGetFovY -/* f127144: ad6a0000 */ sw $t2,0x0($t3) -/* f127148: 8faf0198 */ lw $t7,0x198($sp) -/* f12714c: 3c17fb00 */ lui $s7,0xfb00 -/* f127150: 3c013f00 */ lui $at,0x3f00 -/* f127154: 25ee0008 */ addiu $t6,$t7,0x8 -/* f127158: afae0198 */ sw $t6,0x198($sp) -/* f12715c: adf70000 */ sw $s7,0x0($t7) -/* f127160: c7a801b0 */ lwc1 $f8,0x1b0($sp) -/* f127164: 4481a000 */ mtc1 $at,$f20 -/* f127168: 3c01437f */ lui $at,0x437f -/* f12716c: 46164282 */ mul.s $f10,$f8,$f22 -/* f127170: 44812000 */ mtc1 $at,$f4 -/* f127174: 2401ff00 */ li $at,-256 -/* f127178: 240a0001 */ li $t2,0x1 -/* f12717c: 27be0184 */ addiu $s8,$sp,0x184 -/* f127180: 240e0001 */ li $t6,0x1 -/* f127184: 24190001 */ li $t9,0x1 -/* f127188: 46045182 */ mul.s $f6,$f10,$f4 -/* f12718c: 03c02825 */ move $a1,$s8 -/* f127190: 02a02025 */ move $a0,$s5 -/* f127194: 4616a102 */ mul.s $f4,$f20,$f22 -/* f127198: 27a6017c */ addiu $a2,$sp,0x17c -/* f12719c: 4600320d */ trunc.w.s $f8,$f6 -/* f1271a0: 4604a180 */ add.s $f6,$f20,$f4 -/* f1271a4: 44184000 */ mfc1 $t8,$f8 -/* f1271a8: 00000000 */ nop -/* f1271ac: 330800ff */ andi $t0,$t8,0xff -/* f1271b0: 01016025 */ or $t4,$t0,$at -/* f1271b4: adec0004 */ sw $t4,0x4($t7) -/* f1271b8: c7aa01a8 */ lwc1 $f10,0x1a8($sp) -/* f1271bc: 3c014270 */ lui $at,0x4270 -/* f1271c0: 44812000 */ mtc1 $at,$f4 -/* f1271c4: 46065202 */ mul.s $f8,$f10,$f6 -/* f1271c8: 8ec20000 */ lw $v0,0x0($s6) -/* f1271cc: e7ba0184 */ swc1 $f26,0x184($sp) -/* f1271d0: e7bc0188 */ swc1 $f28,0x188($sp) -/* f1271d4: 240f0001 */ li $t7,0x1 -/* f1271d8: 24180001 */ li $t8,0x1 -/* f1271dc: 46002283 */ div.s $f10,$f4,$f0 -/* f1271e0: 46085182 */ mul.s $f6,$f10,$f8 -/* f1271e4: 4600310d */ trunc.w.s $f4,$f6 -/* f1271e8: 448a3000 */ mtc1 $t2,$f6 -/* f1271ec: 44092000 */ mfc1 $t1,$f4 -/* f1271f0: 46803620 */ cvt.s.w $f24,$f6 -/* f1271f4: 44895000 */ mtc1 $t1,$f10 -/* f1271f8: 00000000 */ nop -/* f1271fc: 46805220 */ cvt.s.w $f8,$f10 -/* f127200: 46144082 */ mul.s $f2,$f8,$f20 -/* f127204: 00000000 */ nop -/* f127208: 46181102 */ mul.s $f4,$f2,$f24 -/* f12720c: e7a20180 */ swc1 $f2,0x180($sp) -/* f127210: e7a4017c */ swc1 $f4,0x17c($sp) -/* f127214: 904d004d */ lbu $t5,0x4d($v0) -/* f127218: 9047004c */ lbu $a3,0x4c($v0) -/* f12721c: afb80028 */ sw $t8,0x28($sp) -/* f127220: afa00024 */ sw $zero,0x24($sp) -/* f127224: afb90020 */ sw $t9,0x20($sp) -/* f127228: afae001c */ sw $t6,0x1c($sp) -/* f12722c: afaf0018 */ sw $t7,0x18($sp) -/* f127230: afa00014 */ sw $zero,0x14($sp) -/* f127234: 0fc2c99c */ jal func0f0b2150 -/* f127238: afad0010 */ sw $t5,0x10($sp) -/* f12723c: 8ec50000 */ lw $a1,0x0($s6) -/* f127240: 24080002 */ li $t0,0x2 -/* f127244: 240c0001 */ li $t4,0x1 -/* f127248: afac0014 */ sw $t4,0x14($sp) -/* f12724c: afa80010 */ sw $t0,0x10($sp) -/* f127250: 02a02025 */ move $a0,$s5 -/* f127254: 24060004 */ li $a2,0x4 -/* f127258: 00003825 */ move $a3,$zero -/* f12725c: afa00018 */ sw $zero,0x18($sp) -/* f127260: 0fc2cfb8 */ jal func0f0b39c0 -/* f127264: 24a5000c */ addiu $a1,$a1,0xc -/* f127268: 8fab0198 */ lw $t3,0x198($sp) -/* f12726c: 3c0fba00 */ lui $t7,0xba00 -/* f127270: 35ef0602 */ ori $t7,$t7,0x602 -/* f127274: 25690008 */ addiu $t1,$t3,0x8 -/* f127278: afa90198 */ sw $t1,0x198($sp) -/* f12727c: ad600004 */ sw $zero,0x4($t3) -/* f127280: ad700000 */ sw $s0,0x0($t3) -/* f127284: 8faa0198 */ lw $t2,0x198($sp) -/* f127288: 240e0040 */ li $t6,0x40 -/* f12728c: 3c08ba00 */ lui $t0,0xba00 -/* f127290: 254d0008 */ addiu $t5,$t2,0x8 -/* f127294: afad0198 */ sw $t5,0x198($sp) -/* f127298: ad4e0004 */ sw $t6,0x4($t2) -/* f12729c: ad4f0000 */ sw $t7,0x0($t2) -/* f1272a0: 8fb90198 */ lw $t9,0x198($sp) -/* f1272a4: 35080402 */ ori $t0,$t0,0x402 -/* f1272a8: 3c0dba00 */ lui $t5,0xba00 -/* f1272ac: 27380008 */ addiu $t8,$t9,0x8 -/* f1272b0: afb80198 */ sw $t8,0x198($sp) -/* f1272b4: af200004 */ sw $zero,0x4($t9) -/* f1272b8: af280000 */ sw $t0,0x0($t9) -/* f1272bc: 8fac0198 */ lw $t4,0x198($sp) -/* f1272c0: 35ad1301 */ ori $t5,$t5,0x1301 -/* f1272c4: 3c08ba00 */ lui $t0,0xba00 -/* f1272c8: 258b0008 */ addiu $t3,$t4,0x8 -/* f1272cc: afab0198 */ sw $t3,0x198($sp) -/* f1272d0: ad920004 */ sw $s2,0x4($t4) -/* f1272d4: ad910000 */ sw $s1,0x0($t4) -/* f1272d8: 8fa90198 */ lw $t1,0x198($sp) -/* f1272dc: 35081001 */ ori $t0,$t0,0x1001 -/* f1272e0: 3c017f1b */ lui $at,0x7f1b -/* f1272e4: 252a0008 */ addiu $t2,$t1,0x8 -/* f1272e8: afaa0198 */ sw $t2,0x198($sp) -/* f1272ec: ad200004 */ sw $zero,0x4($t1) -/* f1272f0: ad2d0000 */ sw $t5,0x0($t1) -/* f1272f4: 8faf0198 */ lw $t7,0x198($sp) -/* f1272f8: 24090c00 */ li $t1,0xc00 -/* f1272fc: 4480b000 */ mtc1 $zero,$f22 -/* f127300: 25ee0008 */ addiu $t6,$t7,0x8 -/* f127304: afae0198 */ sw $t6,0x198($sp) -/* f127308: ade00004 */ sw $zero,0x4($t7) -/* f12730c: adf30000 */ sw $s3,0x0($t7) -/* f127310: 8fb90198 */ lw $t9,0x198($sp) -/* f127314: 3c0fba00 */ lui $t7,0xba00 -/* f127318: 35ef0e02 */ ori $t7,$t7,0xe02 -/* f12731c: 27380008 */ addiu $t8,$t9,0x8 -/* f127320: afb80198 */ sw $t8,0x198($sp) -/* f127324: af200004 */ sw $zero,0x4($t9) -/* f127328: af280000 */ sw $t0,0x0($t9) -/* f12732c: 8fac0198 */ lw $t4,0x198($sp) -/* f127330: 3c18ba00 */ lui $t8,0xba00 -/* f127334: 37180c02 */ ori $t8,$t8,0xc02 -/* f127338: 258b0008 */ addiu $t3,$t4,0x8 -/* f12733c: afab0198 */ sw $t3,0x198($sp) -/* f127340: ad890004 */ sw $t1,0x4($t4) -/* f127344: ad940000 */ sw $s4,0x0($t4) -/* f127348: 8faa0198 */ lw $t2,0x198($sp) -/* f12734c: 24082000 */ li $t0,0x2000 -/* f127350: 3c09fcff */ lui $t1,0xfcff -/* f127354: 254d0008 */ addiu $t5,$t2,0x8 -/* f127358: afad0198 */ sw $t5,0x198($sp) -/* f12735c: ad400004 */ sw $zero,0x4($t2) -/* f127360: ad4f0000 */ sw $t7,0x0($t2) -/* f127364: 8fae0198 */ lw $t6,0x198($sp) -/* f127368: 3c0aff36 */ lui $t2,0xff36 -/* f12736c: 354aff7f */ ori $t2,$t2,0xff7f -/* f127370: 25d90008 */ addiu $t9,$t6,0x8 -/* f127374: afb90198 */ sw $t9,0x198($sp) -/* f127378: adc80004 */ sw $t0,0x4($t6) -/* f12737c: add80000 */ sw $t8,0x0($t6) -/* f127380: 8fac0198 */ lw $t4,0x198($sp) -/* f127384: 35299bff */ ori $t1,$t1,0x9bff -/* f127388: 27b4014c */ addiu $s4,$sp,0x14c -/* f12738c: 258b0008 */ addiu $t3,$t4,0x8 -/* f127390: afab0198 */ sw $t3,0x198($sp) -/* f127394: ad8a0004 */ sw $t2,0x4($t4) -/* f127398: ad890000 */ sw $t1,0x0($t4) -/* f12739c: c43e6400 */ lwc1 $f30,0x6400($at) -/* f1273a0: 3c014316 */ lui $at,0x4316 -/* f1273a4: e7bc01a0 */ swc1 $f28,0x1a0($sp) -/* f1273a8: 4481e000 */ mtc1 $at,$f28 -/* f1273ac: 3c013f80 */ lui $at,0x3f80 -/* f1273b0: e7ba019c */ swc1 $f26,0x19c($sp) -/* f1273b4: 4481d000 */ mtc1 $at,$f26 -/* f1273b8: 3c017f1b */ lui $at,0x7f1b -/* f1273bc: e7b80094 */ swc1 $f24,0x94($sp) -/* f1273c0: c4386404 */ lwc1 $f24,0x6404($at) -/* f1273c4: 8fb301ac */ lw $s3,0x1ac($sp) -/* f1273c8: 27b1014c */ addiu $s1,$sp,0x14c -/* f1273cc: 27b20164 */ addiu $s2,$sp,0x164 -/* f1273d0: 27b00134 */ addiu $s0,$sp,0x134 -.PF0f1273d4: -/* f1273d4: 2a61004b */ slti $at,$s3,0x4b -/* f1273d8: 1020000c */ beqz $at,.PF0f12740c -/* f1273dc: 266dffb5 */ addiu $t5,$s3,-75 -/* f1273e0: 2a610019 */ slti $at,$s3,0x19 -/* f1273e4: 10200007 */ beqz $at,.PF0f127404 -/* f1273e8: 00000000 */ nop -/* f1273ec: 44935000 */ mtc1 $s3,$f10 -/* f1273f0: 00000000 */ nop -/* f1273f4: 46805220 */ cvt.s.w $f8,$f10 -/* f1273f8: 46184082 */ mul.s $f2,$f8,$f24 -/* f1273fc: 10000011 */ b .PF0f127444 -/* f127400: 8e2f0000 */ lw $t7,0x0($s1) -.PF0f127404: -/* f127404: 1000000e */ b .PF0f127440 -/* f127408: 4600d086 */ mov.s $f2,$f26 -.PF0f12740c: -/* f12740c: 448d3000 */ mtc1 $t5,$f6 -/* f127410: 00000000 */ nop -/* f127414: 46803120 */ cvt.s.w $f4,$f6 -/* f127418: 4604e281 */ sub.s $f10,$f28,$f4 -/* f12741c: 461e5202 */ mul.s $f8,$f10,$f30 -/* f127420: 00000000 */ nop -/* f127424: 46144082 */ mul.s $f2,$f8,$f20 -/* f127428: 4616103c */ c.lt.s $f2,$f22 -/* f12742c: 00000000 */ nop -/* f127430: 45000002 */ bc1f .PF0f12743c -/* f127434: 00000000 */ nop -/* f127438: 4600b086 */ mov.s $f2,$f22 -.PF0f12743c: -/* f12743c: 46141080 */ add.s $f2,$f2,$f20 -.PF0f127440: -/* f127440: 8e2f0000 */ lw $t7,0x0($s1) -.PF0f127444: -/* f127444: c7aa0130 */ lwc1 $f10,0x130($sp) -/* f127448: 8fa30198 */ lw $v1,0x198($sp) -/* f12744c: 448f3000 */ mtc1 $t7,$f6 -/* f127450: c7a4019c */ lwc1 $f4,0x19c($sp) -/* f127454: 8e4e0000 */ lw $t6,0x0($s2) -/* f127458: 46803020 */ cvt.s.w $f0,$f6 -/* f12745c: 24780008 */ addiu $t8,$v1,0x8 -/* f127460: c7a601a0 */ lwc1 $f6,0x1a0($sp) -/* f127464: afb80198 */ sw $t8,0x198($sp) -/* f127468: 3c014f80 */ lui $at,0x4f80 -/* f12746c: 460a0202 */ mul.s $f8,$f0,$f10 -/* f127470: c7aa012c */ lwc1 $f10,0x12c($sp) -/* f127474: ac770000 */ sw $s7,0x0($v1) -/* f127478: 8e020000 */ lw $v0,0x0($s0) -/* f12747c: 304800ff */ andi $t0,$v0,0xff -/* f127480: 46082301 */ sub.s $f12,$f4,$f8 -/* f127484: 460a0102 */ mul.s $f4,$f0,$f10 -/* f127488: 448e4000 */ mtc1 $t6,$f8 -/* f12748c: 44885000 */ mtc1 $t0,$f10 -/* f127490: 46804420 */ cvt.s.w $f16,$f8 -/* f127494: c7a801b0 */ lwc1 $f8,0x1b0($sp) -/* f127498: 46043381 */ sub.s $f14,$f6,$f4 -/* f12749c: 468051a0 */ cvt.s.w $f6,$f10 -/* f1274a0: 46024282 */ mul.s $f10,$f8,$f2 -/* f1274a4: 05010004 */ bgez $t0,.PF0f1274b8 -/* f1274a8: 00000000 */ nop -/* f1274ac: 44812000 */ mtc1 $at,$f4 -/* f1274b0: 00000000 */ nop -/* f1274b4: 46043180 */ add.s $f6,$f6,$f4 -.PF0f1274b8: -/* f1274b8: 460a3102 */ mul.s $f4,$f6,$f10 -/* f1274bc: 02a02025 */ move $a0,$s5 -/* f1274c0: 00027e02 */ srl $t7,$v0,0x18 -/* f1274c4: 000f7600 */ sll $t6,$t7,0x18 -/* f1274c8: 00024402 */ srl $t0,$v0,0x10 -/* f1274cc: 310c00ff */ andi $t4,$t0,0xff -/* f1274d0: 00027a02 */ srl $t7,$v0,0x8 -/* f1274d4: 4600220d */ trunc.w.s $f8,$f4 -/* f1274d8: 46148482 */ mul.s $f18,$f16,$f20 -/* f1274dc: 03c02825 */ move $a1,$s8 -/* f1274e0: 27a6017c */ addiu $a2,$sp,0x17c -/* f1274e4: 440b4000 */ mfc1 $t3,$f8 -/* f1274e8: 00000000 */ nop -/* f1274ec: 316900ff */ andi $t1,$t3,0xff -/* f1274f0: 012ec825 */ or $t9,$t1,$t6 -/* f1274f4: 31e900ff */ andi $t1,$t7,0xff -/* f1274f8: 000c5c00 */ sll $t3,$t4,0x10 -/* f1274fc: 032b5025 */ or $t2,$t9,$t3 -/* f127500: 00097200 */ sll $t6,$t1,0x8 -/* f127504: 014ec025 */ or $t8,$t2,$t6 -/* f127508: ac780004 */ sw $t8,0x4($v1) -/* f12750c: c7a60094 */ lwc1 $f6,0x94($sp) -/* f127510: 8ec20000 */ lw $v0,0x0($s6) -/* f127514: e7ac0184 */ swc1 $f12,0x184($sp) -/* f127518: 46069282 */ mul.s $f10,$f18,$f6 -/* f12751c: e7ae0188 */ swc1 $f14,0x188($sp) -/* f127520: e7b20180 */ swc1 $f18,0x180($sp) -/* f127524: 240c0001 */ li $t4,0x1 -/* f127528: e7aa017c */ swc1 $f10,0x17c($sp) -/* f12752c: 90480011 */ lbu $t0,0x11($v0) -/* f127530: 90470010 */ lbu $a3,0x10($v0) -/* f127534: afac0028 */ sw $t4,0x28($sp) -/* f127538: afa00024 */ sw $zero,0x24($sp) -/* f12753c: afa00020 */ sw $zero,0x20($sp) -/* f127540: afa0001c */ sw $zero,0x1c($sp) -/* f127544: afa00018 */ sw $zero,0x18($sp) -/* f127548: afa00014 */ sw $zero,0x14($sp) -/* f12754c: 0fc2c99c */ jal func0f0b2150 -/* f127550: afa80010 */ sw $t0,0x10($sp) -/* f127554: 26100004 */ addiu $s0,$s0,0x4 -/* f127558: 26310004 */ addiu $s1,$s1,0x4 -/* f12755c: 1614ff9d */ bne $s0,$s4,.PF0f1273d4 -/* f127560: 26520004 */ addiu $s2,$s2,0x4 -/* f127564: 0c002e73 */ jal viGetViewWidth -/* f127568: 00000000 */ nop -/* f12756c: 44822000 */ mtc1 $v0,$f4 -/* f127570: 3c013f00 */ lui $at,0x3f00 -/* f127574: 4481c000 */ mtc1 $at,$f24 -/* f127578: 46802220 */ cvt.s.w $f8,$f4 -/* f12757c: c7aa019c */ lwc1 $f10,0x19c($sp) -/* f127580: 46184182 */ mul.s $f6,$f8,$f24 -/* f127584: 0c002e77 */ jal viGetViewHeight -/* f127588: 460a3501 */ sub.s $f20,$f6,$f10 -/* f12758c: 44822000 */ mtc1 $v0,$f4 -/* f127590: c7aa01a0 */ lwc1 $f10,0x1a0($sp) -/* f127594: 46802220 */ cvt.s.w $f8,$f4 -/* f127598: 46184182 */ mul.s $f6,$f8,$f24 -/* f12759c: 460a3001 */ sub.s $f0,$f6,$f10 -/* f1275a0: 4614a102 */ mul.s $f4,$f20,$f20 -/* f1275a4: 00000000 */ nop -/* f1275a8: 46000202 */ mul.s $f8,$f0,$f0 -/* f1275ac: 0c0127b4 */ jal sqrtf -/* f1275b0: 46082300 */ add.s $f12,$f4,$f8 -/* f1275b4: 3c014220 */ lui $at,0x4220 -/* f1275b8: 44813000 */ mtc1 $at,$f6 -/* f1275bc: 3c017f1b */ lui $at,0x7f1b -/* f1275c0: c4246408 */ lwc1 $f4,0x6408($at) -/* f1275c4: 46003281 */ sub.s $f10,$f6,$f0 -/* f1275c8: 3c19800a */ lui $t9,0x800a -/* f1275cc: c7a601b0 */ lwc1 $f6,0x1b0($sp) -/* f1275d0: 46045302 */ mul.s $f12,$f10,$f4 -/* f1275d4: 4616603c */ c.lt.s $f12,$f22 -/* f1275d8: 00000000 */ nop -/* f1275dc: 45000002 */ bc1f .PF0f1275e8 -/* f1275e0: 00000000 */ nop -/* f1275e4: 4600b306 */ mov.s $f12,$f22 -.PF0f1275e8: -/* f1275e8: 8f39a544 */ lw $t9,-0x5abc($t9) -/* f1275ec: 3c017f1b */ lui $at,0x7f1b -/* f1275f0: c428640c */ lwc1 $f8,0x640c($at) -/* f1275f4: 0333082a */ slt $at,$t9,$s3 -/* f1275f8: 14200002 */ bnez $at,.PF0f127604 -/* f1275fc: 46086300 */ add.s $f12,$f12,$f8 -/* f127600: 4600b306 */ mov.s $f12,$f22 -.PF0f127604: -/* f127604: 460cb03c */ c.lt.s $f22,$f12 -/* f127608: 00000000 */ nop -/* f12760c: 4502000d */ bc1fl .PF0f127644 -/* f127610: 8fad0198 */ lw $t5,0x198($sp) -/* f127614: 460c3282 */ mul.s $f10,$f6,$f12 -/* f127618: 3c01437f */ lui $at,0x437f -/* f12761c: 44812000 */ mtc1 $at,$f4 -/* f127620: 00000000 */ nop -/* f127624: 46045202 */ mul.s $f8,$f10,$f4 -/* f127628: 4600418d */ trunc.w.s $f6,$f8 -/* f12762c: 44043000 */ mfc1 $a0,$f6 -/* f127630: 00000000 */ nop -/* f127634: 00802825 */ move $a1,$a0 -/* f127638: 0fc49f81 */ jal func0f127334 -/* f12763c: 00803025 */ move $a2,$a0 -/* f127640: 8fad0198 */ lw $t5,0x198($sp) -.PF0f127644: -/* f127644: 3c09ba00 */ lui $t1,0xba00 -/* f127648: 35290602 */ ori $t1,$t1,0x602 -/* f12764c: 25af0008 */ addiu $t7,$t5,0x8 -/* f127650: afaf0198 */ sw $t7,0x198($sp) -/* f127654: 240a0040 */ li $t2,0x40 -/* f127658: adaa0004 */ sw $t2,0x4($t5) -/* f12765c: ada90000 */ sw $t1,0x0($t5) -/* f127660: 8fae0198 */ lw $t6,0x198($sp) -/* f127664: 3c08ba00 */ lui $t0,0xba00 -/* f127668: 35080402 */ ori $t0,$t0,0x402 -/* f12766c: 25d80008 */ addiu $t8,$t6,0x8 -/* f127670: afb80198 */ sw $t8,0x198($sp) -/* f127674: 240c00c0 */ li $t4,0xc0 -/* f127678: adcc0004 */ sw $t4,0x4($t6) -/* f12767c: adc80000 */ sw $t0,0x0($t6) -/* f127680: 8fb90198 */ lw $t9,0x198($sp) -/* f127684: 3c0dba00 */ lui $t5,0xba00 -/* f127688: 35ad1301 */ ori $t5,$t5,0x1301 -/* f12768c: 272b0008 */ addiu $t3,$t9,0x8 -/* f127690: afab0198 */ sw $t3,0x198($sp) -/* f127694: 3c0f0008 */ lui $t7,0x8 -/* f127698: af2f0004 */ sw $t7,0x4($t9) -/* f12769c: af2d0000 */ sw $t5,0x0($t9) -/* f1276a0: 8fa90198 */ lw $t1,0x198($sp) -/* f1276a4: 3c0eba00 */ lui $t6,0xba00 -/* f1276a8: 35ce1001 */ ori $t6,$t6,0x1001 -/* f1276ac: 252a0008 */ addiu $t2,$t1,0x8 -/* f1276b0: afaa0198 */ sw $t2,0x198($sp) -/* f1276b4: 3c180001 */ lui $t8,0x1 -/* f1276b8: ad380004 */ sw $t8,0x4($t1) -/* f1276bc: ad2e0000 */ sw $t6,0x0($t1) -/* f1276c0: 8fbf008c */ lw $ra,0x8c($sp) -/* f1276c4: 8fbe0088 */ lw $s8,0x88($sp) -/* f1276c8: 8fb70084 */ lw $s7,0x84($sp) -/* f1276cc: 8fb60080 */ lw $s6,0x80($sp) -/* f1276d0: 8fb5007c */ lw $s5,0x7c($sp) -/* f1276d4: 8fb40078 */ lw $s4,0x78($sp) -/* f1276d8: 8fb30074 */ lw $s3,0x74($sp) -/* f1276dc: 8fb20070 */ lw $s2,0x70($sp) -/* f1276e0: 8fb1006c */ lw $s1,0x6c($sp) -/* f1276e4: 8fb00068 */ lw $s0,0x68($sp) -/* f1276e8: d7be0060 */ ldc1 $f30,0x60($sp) -/* f1276ec: d7bc0058 */ ldc1 $f28,0x58($sp) -/* f1276f0: d7ba0050 */ ldc1 $f26,0x50($sp) -/* f1276f4: d7b80048 */ ldc1 $f24,0x48($sp) -/* f1276f8: d7b60040 */ ldc1 $f22,0x40($sp) -/* f1276fc: d7b40038 */ ldc1 $f20,0x38($sp) -/* f127700: 8fa20198 */ lw $v0,0x198($sp) -/* f127704: 03e00008 */ jr $ra -/* f127708: 27bd0198 */ addiu $sp,$sp,0x198 -); -#elif VERSION == VERSION_PAL_BETA -GLOBAL_ASM( -glabel func0f126384 -.late_rodata -glabel var7f1b510c -.word 0x3c23d70a -glabel var7f1b5110 -.word 0x3bda740e -glabel var7f1b5114 -.word 0x3d23d70a -glabel var7f1b5118 -.word 0x3c4ccccd -glabel var7f1b511c -.word 0x3dcccccd -.text -/* f127878: 27bdfe68 */ addiu $sp,$sp,-408 -/* f12787c: 3c0f8008 */ lui $t7,0x8008 -/* f127880: afbf008c */ sw $ra,0x8c($sp) -/* f127884: afbe0088 */ sw $s8,0x88($sp) -/* f127888: afb70084 */ sw $s7,0x84($sp) -/* f12788c: afb60080 */ sw $s6,0x80($sp) -/* f127890: afb5007c */ sw $s5,0x7c($sp) -/* f127894: afb40078 */ sw $s4,0x78($sp) -/* f127898: afb30074 */ sw $s3,0x74($sp) -/* f12789c: afb20070 */ sw $s2,0x70($sp) -/* f1278a0: afb1006c */ sw $s1,0x6c($sp) -/* f1278a4: afb00068 */ sw $s0,0x68($sp) -/* f1278a8: f7be0060 */ sdc1 $f30,0x60($sp) -/* f1278ac: f7bc0058 */ sdc1 $f28,0x58($sp) -/* f1278b0: f7ba0050 */ sdc1 $f26,0x50($sp) -/* f1278b4: f7b80048 */ sdc1 $f24,0x48($sp) -/* f1278b8: f7b60040 */ sdc1 $f22,0x40($sp) -/* f1278bc: f7b40038 */ sdc1 $f20,0x38($sp) -/* f1278c0: afa40198 */ sw $a0,0x198($sp) -/* f1278c4: 25ef0070 */ addiu $t7,$t7,0x70 -/* f1278c8: 8de10000 */ lw $at,0x0($t7) -/* f1278cc: 8de80004 */ lw $t0,0x4($t7) -/* f1278d0: 27ae0164 */ addiu $t6,$sp,0x164 -/* f1278d4: adc10000 */ sw $at,0x0($t6) -/* f1278d8: adc80004 */ sw $t0,0x4($t6) -/* f1278dc: 8de8000c */ lw $t0,0xc($t7) -/* f1278e0: 8de10008 */ lw $at,0x8($t7) -/* f1278e4: 3c0a8008 */ lui $t2,0x8008 -/* f1278e8: adc8000c */ sw $t0,0xc($t6) -/* f1278ec: adc10008 */ sw $at,0x8($t6) -/* f1278f0: 8de10010 */ lw $at,0x10($t7) -/* f1278f4: 8de80014 */ lw $t0,0x14($t7) -/* f1278f8: 254a0088 */ addiu $t2,$t2,0x88 -/* f1278fc: adc10010 */ sw $at,0x10($t6) -/* f127900: adc80014 */ sw $t0,0x14($t6) -/* f127904: 8d4d0004 */ lw $t5,0x4($t2) -/* f127908: 8d410000 */ lw $at,0x0($t2) -/* f12790c: 27a9014c */ addiu $t1,$sp,0x14c -/* f127910: ad2d0004 */ sw $t5,0x4($t1) -/* f127914: ad210000 */ sw $at,0x0($t1) -/* f127918: 8d410008 */ lw $at,0x8($t2) -/* f12791c: 8d4d000c */ lw $t5,0xc($t2) -/* f127920: 3c188008 */ lui $t8,0x8008 -/* f127924: ad210008 */ sw $at,0x8($t1) -/* f127928: ad2d000c */ sw $t5,0xc($t1) -/* f12792c: 8d4d0014 */ lw $t5,0x14($t2) -/* f127930: 8d410010 */ lw $at,0x10($t2) -/* f127934: 271800a0 */ addiu $t8,$t8,0xa0 -/* f127938: ad2d0014 */ sw $t5,0x14($t1) -/* f12793c: ad210010 */ sw $at,0x10($t1) -/* f127940: 8f080004 */ lw $t0,0x4($t8) -/* f127944: 8f010000 */ lw $at,0x0($t8) -/* f127948: 27b90134 */ addiu $t9,$sp,0x134 -/* f12794c: af280004 */ sw $t0,0x4($t9) -/* f127950: af210000 */ sw $at,0x0($t9) -/* f127954: 8f010008 */ lw $at,0x8($t8) -/* f127958: 8f08000c */ lw $t0,0xc($t8) -/* f12795c: 4487b000 */ mtc1 $a3,$f22 -/* f127960: af210008 */ sw $at,0x8($t9) -/* f127964: af28000c */ sw $t0,0xc($t9) -/* f127968: 8f080014 */ lw $t0,0x14($t8) -/* f12796c: 8f010010 */ lw $at,0x10($t8) -/* f127970: 4485d000 */ mtc1 $a1,$f26 -/* f127974: 4486e000 */ mtc1 $a2,$f28 -/* f127978: af280014 */ sw $t0,0x14($t9) -/* f12797c: 0c002e6d */ jal viGetViewWidth -/* f127980: af210010 */ sw $at,0x10($t9) -/* f127984: 44822000 */ mtc1 $v0,$f4 -/* f127988: 3c017f1b */ lui $at,0x7f1b -/* f12798c: c43470fc */ lwc1 $f20,0x70fc($at) -/* f127990: 468021a0 */ cvt.s.w $f6,$f4 -/* f127994: 3c013f00 */ lui $at,0x3f00 -/* f127998: 4481f000 */ mtc1 $at,$f30 -/* f12799c: 00000000 */ nop -/* f1279a0: 461e3202 */ mul.s $f8,$f6,$f30 -/* f1279a4: 4608d281 */ sub.s $f10,$f26,$f8 -/* f1279a8: 46145102 */ mul.s $f4,$f10,$f20 -/* f1279ac: 0c002e71 */ jal viGetViewHeight -/* f1279b0: e7a40130 */ swc1 $f4,0x130($sp) -/* f1279b4: 44823000 */ mtc1 $v0,$f6 -/* f1279b8: 3c16800b */ lui $s6,0x800b -/* f1279bc: 26d6fbc0 */ addiu $s6,$s6,-1088 -/* f1279c0: 46803220 */ cvt.s.w $f8,$f6 -/* f1279c4: 8ec50000 */ lw $a1,0x0($s6) -/* f1279c8: 27b50198 */ addiu $s5,$sp,0x198 -/* f1279cc: 240c0002 */ li $t4,0x2 -/* f1279d0: 240b0001 */ li $t3,0x1 -/* f1279d4: afab0014 */ sw $t3,0x14($sp) -/* f1279d8: 461e4282 */ mul.s $f10,$f8,$f30 -/* f1279dc: afac0010 */ sw $t4,0x10($sp) -/* f1279e0: 02a02025 */ move $a0,$s5 -/* f1279e4: 24060004 */ li $a2,0x4 -/* f1279e8: 00003825 */ move $a3,$zero -/* f1279ec: afa00018 */ sw $zero,0x18($sp) -/* f1279f0: 24a50048 */ addiu $a1,$a1,0x48 -/* f1279f4: 460ae101 */ sub.s $f4,$f28,$f10 -/* f1279f8: 46142182 */ mul.s $f6,$f4,$f20 -/* f1279fc: 0fc2cf74 */ jal func0f0b39c0 -/* f127a00: e7a6012c */ swc1 $f6,0x12c($sp) -/* f127a04: 8fa90198 */ lw $t1,0x198($sp) -/* f127a08: 3c10ba00 */ lui $s0,0xba00 -/* f127a0c: 36101402 */ ori $s0,$s0,0x1402 -/* f127a10: 252a0008 */ addiu $t2,$t1,0x8 -/* f127a14: afaa0198 */ sw $t2,0x198($sp) -/* f127a18: ad200004 */ sw $zero,0x4($t1) -/* f127a1c: ad300000 */ sw $s0,0x0($t1) -/* f127a20: 8fad0198 */ lw $t5,0x198($sp) -/* f127a24: 3c0eba00 */ lui $t6,0xba00 -/* f127a28: 35ce0602 */ ori $t6,$t6,0x602 -/* f127a2c: 25af0008 */ addiu $t7,$t5,0x8 -/* f127a30: afaf0198 */ sw $t7,0x198($sp) -/* f127a34: 24190040 */ li $t9,0x40 -/* f127a38: adb90004 */ sw $t9,0x4($t5) -/* f127a3c: adae0000 */ sw $t6,0x0($t5) -/* f127a40: 8fb80198 */ lw $t8,0x198($sp) -/* f127a44: 3c0cba00 */ lui $t4,0xba00 -/* f127a48: 358c0402 */ ori $t4,$t4,0x402 -/* f127a4c: 27080008 */ addiu $t0,$t8,0x8 -/* f127a50: afa80198 */ sw $t0,0x198($sp) -/* f127a54: af000004 */ sw $zero,0x4($t8) -/* f127a58: af0c0000 */ sw $t4,0x0($t8) -/* f127a5c: 8fab0198 */ lw $t3,0x198($sp) -/* f127a60: 3c11b900 */ lui $s1,0xb900 -/* f127a64: 3c120050 */ lui $s2,0x50 -/* f127a68: 25690008 */ addiu $t1,$t3,0x8 -/* f127a6c: afa90198 */ sw $t1,0x198($sp) -/* f127a70: 365241c8 */ ori $s2,$s2,0x41c8 -/* f127a74: 3631031d */ ori $s1,$s1,0x31d -/* f127a78: ad710000 */ sw $s1,0x0($t3) -/* f127a7c: ad720004 */ sw $s2,0x4($t3) -/* f127a80: 8faa0198 */ lw $t2,0x198($sp) -/* f127a84: 3c0fba00 */ lui $t7,0xba00 -/* f127a88: 35ef1301 */ ori $t7,$t7,0x1301 -/* f127a8c: 254d0008 */ addiu $t5,$t2,0x8 -/* f127a90: afad0198 */ sw $t5,0x198($sp) -/* f127a94: ad400004 */ sw $zero,0x4($t2) -/* f127a98: ad4f0000 */ sw $t7,0x0($t2) -/* f127a9c: 8fae0198 */ lw $t6,0x198($sp) -/* f127aa0: 3c13b900 */ lui $s3,0xb900 -/* f127aa4: 36730002 */ ori $s3,$s3,0x2 -/* f127aa8: 25d90008 */ addiu $t9,$t6,0x8 -/* f127aac: afb90198 */ sw $t9,0x198($sp) -/* f127ab0: adc00004 */ sw $zero,0x4($t6) -/* f127ab4: add30000 */ sw $s3,0x0($t6) -/* f127ab8: 8fb80198 */ lw $t8,0x198($sp) -/* f127abc: 3c0cba00 */ lui $t4,0xba00 -/* f127ac0: 358c1001 */ ori $t4,$t4,0x1001 -/* f127ac4: 27080008 */ addiu $t0,$t8,0x8 -/* f127ac8: afa80198 */ sw $t0,0x198($sp) -/* f127acc: af000004 */ sw $zero,0x4($t8) -/* f127ad0: af0c0000 */ sw $t4,0x0($t8) -/* f127ad4: 8fab0198 */ lw $t3,0x198($sp) -/* f127ad8: 3c14ba00 */ lui $s4,0xba00 -/* f127adc: 36940903 */ ori $s4,$s4,0x903 -/* f127ae0: 25690008 */ addiu $t1,$t3,0x8 -/* f127ae4: afa90198 */ sw $t1,0x198($sp) -/* f127ae8: 240a0c00 */ li $t2,0xc00 -/* f127aec: ad6a0004 */ sw $t2,0x4($t3) -/* f127af0: ad740000 */ sw $s4,0x0($t3) -/* f127af4: 8fad0198 */ lw $t5,0x198($sp) -/* f127af8: 3c0eba00 */ lui $t6,0xba00 -/* f127afc: 35ce0e02 */ ori $t6,$t6,0xe02 -/* f127b00: 25af0008 */ addiu $t7,$t5,0x8 -/* f127b04: afaf0198 */ sw $t7,0x198($sp) -/* f127b08: ada00004 */ sw $zero,0x4($t5) -/* f127b0c: adae0000 */ sw $t6,0x0($t5) -/* f127b10: 8fb90198 */ lw $t9,0x198($sp) -/* f127b14: 3c08ba00 */ lui $t0,0xba00 -/* f127b18: 35080c02 */ ori $t0,$t0,0xc02 -/* f127b1c: 27380008 */ addiu $t8,$t9,0x8 -/* f127b20: afb80198 */ sw $t8,0x198($sp) -/* f127b24: 240c2000 */ li $t4,0x2000 -/* f127b28: af2c0004 */ sw $t4,0x4($t9) -/* f127b2c: af280000 */ sw $t0,0x0($t9) -/* f127b30: 8fab0198 */ lw $t3,0x198($sp) -/* f127b34: 3c0dff36 */ lui $t5,0xff36 -/* f127b38: 3c0afcff */ lui $t2,0xfcff -/* f127b3c: 25690008 */ addiu $t1,$t3,0x8 -/* f127b40: afa90198 */ sw $t1,0x198($sp) -/* f127b44: 354a9bff */ ori $t2,$t2,0x9bff -/* f127b48: 35adff7f */ ori $t5,$t5,0xff7f -/* f127b4c: ad6d0004 */ sw $t5,0x4($t3) -/* f127b50: 0c002ee8 */ jal viGetFovY -/* f127b54: ad6a0000 */ sw $t2,0x0($t3) -/* f127b58: 8faf0198 */ lw $t7,0x198($sp) -/* f127b5c: 3c17fb00 */ lui $s7,0xfb00 -/* f127b60: 3c013f00 */ lui $at,0x3f00 -/* f127b64: 25ee0008 */ addiu $t6,$t7,0x8 -/* f127b68: afae0198 */ sw $t6,0x198($sp) -/* f127b6c: adf70000 */ sw $s7,0x0($t7) -/* f127b70: c7a801b0 */ lwc1 $f8,0x1b0($sp) -/* f127b74: 4481a000 */ mtc1 $at,$f20 -/* f127b78: 3c01437f */ lui $at,0x437f -/* f127b7c: 46164282 */ mul.s $f10,$f8,$f22 -/* f127b80: 44812000 */ mtc1 $at,$f4 -/* f127b84: 2401ff00 */ li $at,-256 -/* f127b88: 240a0001 */ li $t2,0x1 -/* f127b8c: 27be0184 */ addiu $s8,$sp,0x184 -/* f127b90: 240e0001 */ li $t6,0x1 -/* f127b94: 24190001 */ li $t9,0x1 -/* f127b98: 46045182 */ mul.s $f6,$f10,$f4 -/* f127b9c: 03c02825 */ move $a1,$s8 -/* f127ba0: 02a02025 */ move $a0,$s5 -/* f127ba4: 4616a102 */ mul.s $f4,$f20,$f22 -/* f127ba8: 27a6017c */ addiu $a2,$sp,0x17c -/* f127bac: 4600320d */ trunc.w.s $f8,$f6 -/* f127bb0: 4604a180 */ add.s $f6,$f20,$f4 -/* f127bb4: 44184000 */ mfc1 $t8,$f8 -/* f127bb8: 00000000 */ nop -/* f127bbc: 330800ff */ andi $t0,$t8,0xff -/* f127bc0: 01016025 */ or $t4,$t0,$at -/* f127bc4: adec0004 */ sw $t4,0x4($t7) -/* f127bc8: c7aa01a8 */ lwc1 $f10,0x1a8($sp) -/* f127bcc: 3c014270 */ lui $at,0x4270 -/* f127bd0: 44812000 */ mtc1 $at,$f4 -/* f127bd4: 46065202 */ mul.s $f8,$f10,$f6 -/* f127bd8: 8ec20000 */ lw $v0,0x0($s6) -/* f127bdc: e7ba0184 */ swc1 $f26,0x184($sp) -/* f127be0: e7bc0188 */ swc1 $f28,0x188($sp) -/* f127be4: 240f0001 */ li $t7,0x1 -/* f127be8: 24180001 */ li $t8,0x1 -/* f127bec: 46002283 */ div.s $f10,$f4,$f0 -/* f127bf0: 46085182 */ mul.s $f6,$f10,$f8 -/* f127bf4: 4600310d */ trunc.w.s $f4,$f6 -/* f127bf8: 448a3000 */ mtc1 $t2,$f6 -/* f127bfc: 44092000 */ mfc1 $t1,$f4 -/* f127c00: 46803620 */ cvt.s.w $f24,$f6 -/* f127c04: 44895000 */ mtc1 $t1,$f10 -/* f127c08: 00000000 */ nop -/* f127c0c: 46805220 */ cvt.s.w $f8,$f10 -/* f127c10: 46144082 */ mul.s $f2,$f8,$f20 -/* f127c14: 00000000 */ nop -/* f127c18: 46181102 */ mul.s $f4,$f2,$f24 -/* f127c1c: e7a20180 */ swc1 $f2,0x180($sp) -/* f127c20: e7a4017c */ swc1 $f4,0x17c($sp) -/* f127c24: 904d004d */ lbu $t5,0x4d($v0) -/* f127c28: 9047004c */ lbu $a3,0x4c($v0) -/* f127c2c: afb80028 */ sw $t8,0x28($sp) -/* f127c30: afa00024 */ sw $zero,0x24($sp) -/* f127c34: afb90020 */ sw $t9,0x20($sp) -/* f127c38: afae001c */ sw $t6,0x1c($sp) -/* f127c3c: afaf0018 */ sw $t7,0x18($sp) -/* f127c40: afa00014 */ sw $zero,0x14($sp) -/* f127c44: 0fc2c958 */ jal func0f0b2150 -/* f127c48: afad0010 */ sw $t5,0x10($sp) -/* f127c4c: 8ec50000 */ lw $a1,0x0($s6) -/* f127c50: 24080002 */ li $t0,0x2 -/* f127c54: 240c0001 */ li $t4,0x1 -/* f127c58: afac0014 */ sw $t4,0x14($sp) -/* f127c5c: afa80010 */ sw $t0,0x10($sp) -/* f127c60: 02a02025 */ move $a0,$s5 -/* f127c64: 24060004 */ li $a2,0x4 -/* f127c68: 00003825 */ move $a3,$zero -/* f127c6c: afa00018 */ sw $zero,0x18($sp) -/* f127c70: 0fc2cf74 */ jal func0f0b39c0 -/* f127c74: 24a5000c */ addiu $a1,$a1,0xc -/* f127c78: 8fab0198 */ lw $t3,0x198($sp) -/* f127c7c: 3c0fba00 */ lui $t7,0xba00 -/* f127c80: 35ef0602 */ ori $t7,$t7,0x602 -/* f127c84: 25690008 */ addiu $t1,$t3,0x8 -/* f127c88: afa90198 */ sw $t1,0x198($sp) -/* f127c8c: ad600004 */ sw $zero,0x4($t3) -/* f127c90: ad700000 */ sw $s0,0x0($t3) -/* f127c94: 8faa0198 */ lw $t2,0x198($sp) -/* f127c98: 240e0040 */ li $t6,0x40 -/* f127c9c: 3c08ba00 */ lui $t0,0xba00 -/* f127ca0: 254d0008 */ addiu $t5,$t2,0x8 -/* f127ca4: afad0198 */ sw $t5,0x198($sp) -/* f127ca8: ad4e0004 */ sw $t6,0x4($t2) -/* f127cac: ad4f0000 */ sw $t7,0x0($t2) -/* f127cb0: 8fb90198 */ lw $t9,0x198($sp) -/* f127cb4: 35080402 */ ori $t0,$t0,0x402 -/* f127cb8: 3c0dba00 */ lui $t5,0xba00 -/* f127cbc: 27380008 */ addiu $t8,$t9,0x8 -/* f127cc0: afb80198 */ sw $t8,0x198($sp) -/* f127cc4: af200004 */ sw $zero,0x4($t9) -/* f127cc8: af280000 */ sw $t0,0x0($t9) -/* f127ccc: 8fac0198 */ lw $t4,0x198($sp) -/* f127cd0: 35ad1301 */ ori $t5,$t5,0x1301 -/* f127cd4: 3c08ba00 */ lui $t0,0xba00 -/* f127cd8: 258b0008 */ addiu $t3,$t4,0x8 -/* f127cdc: afab0198 */ sw $t3,0x198($sp) -/* f127ce0: ad920004 */ sw $s2,0x4($t4) -/* f127ce4: ad910000 */ sw $s1,0x0($t4) -/* f127ce8: 8fa90198 */ lw $t1,0x198($sp) -/* f127cec: 35081001 */ ori $t0,$t0,0x1001 -/* f127cf0: 3c017f1b */ lui $at,0x7f1b -/* f127cf4: 252a0008 */ addiu $t2,$t1,0x8 -/* f127cf8: afaa0198 */ sw $t2,0x198($sp) -/* f127cfc: ad200004 */ sw $zero,0x4($t1) -/* f127d00: ad2d0000 */ sw $t5,0x0($t1) -/* f127d04: 8faf0198 */ lw $t7,0x198($sp) -/* f127d08: 24090c00 */ li $t1,0xc00 -/* f127d0c: 4480b000 */ mtc1 $zero,$f22 -/* f127d10: 25ee0008 */ addiu $t6,$t7,0x8 -/* f127d14: afae0198 */ sw $t6,0x198($sp) -/* f127d18: ade00004 */ sw $zero,0x4($t7) -/* f127d1c: adf30000 */ sw $s3,0x0($t7) -/* f127d20: 8fb90198 */ lw $t9,0x198($sp) -/* f127d24: 3c0fba00 */ lui $t7,0xba00 -/* f127d28: 35ef0e02 */ ori $t7,$t7,0xe02 -/* f127d2c: 27380008 */ addiu $t8,$t9,0x8 -/* f127d30: afb80198 */ sw $t8,0x198($sp) -/* f127d34: af200004 */ sw $zero,0x4($t9) -/* f127d38: af280000 */ sw $t0,0x0($t9) -/* f127d3c: 8fac0198 */ lw $t4,0x198($sp) -/* f127d40: 3c18ba00 */ lui $t8,0xba00 -/* f127d44: 37180c02 */ ori $t8,$t8,0xc02 -/* f127d48: 258b0008 */ addiu $t3,$t4,0x8 -/* f127d4c: afab0198 */ sw $t3,0x198($sp) -/* f127d50: ad890004 */ sw $t1,0x4($t4) -/* f127d54: ad940000 */ sw $s4,0x0($t4) -/* f127d58: 8faa0198 */ lw $t2,0x198($sp) -/* f127d5c: 24082000 */ li $t0,0x2000 -/* f127d60: 3c09fcff */ lui $t1,0xfcff -/* f127d64: 254d0008 */ addiu $t5,$t2,0x8 -/* f127d68: afad0198 */ sw $t5,0x198($sp) -/* f127d6c: ad400004 */ sw $zero,0x4($t2) -/* f127d70: ad4f0000 */ sw $t7,0x0($t2) -/* f127d74: 8fae0198 */ lw $t6,0x198($sp) -/* f127d78: 3c0aff36 */ lui $t2,0xff36 -/* f127d7c: 354aff7f */ ori $t2,$t2,0xff7f -/* f127d80: 25d90008 */ addiu $t9,$t6,0x8 -/* f127d84: afb90198 */ sw $t9,0x198($sp) -/* f127d88: adc80004 */ sw $t0,0x4($t6) -/* f127d8c: add80000 */ sw $t8,0x0($t6) -/* f127d90: 8fac0198 */ lw $t4,0x198($sp) -/* f127d94: 35299bff */ ori $t1,$t1,0x9bff -/* f127d98: 27b4014c */ addiu $s4,$sp,0x14c -/* f127d9c: 258b0008 */ addiu $t3,$t4,0x8 -/* f127da0: afab0198 */ sw $t3,0x198($sp) -/* f127da4: ad8a0004 */ sw $t2,0x4($t4) -/* f127da8: ad890000 */ sw $t1,0x0($t4) -/* f127dac: c43e7100 */ lwc1 $f30,0x7100($at) -/* f127db0: 3c014316 */ lui $at,0x4316 -/* f127db4: e7bc01a0 */ swc1 $f28,0x1a0($sp) -/* f127db8: 4481e000 */ mtc1 $at,$f28 -/* f127dbc: 3c013f80 */ lui $at,0x3f80 -/* f127dc0: e7ba019c */ swc1 $f26,0x19c($sp) -/* f127dc4: 4481d000 */ mtc1 $at,$f26 -/* f127dc8: 3c017f1b */ lui $at,0x7f1b -/* f127dcc: e7b80094 */ swc1 $f24,0x94($sp) -/* f127dd0: c4387104 */ lwc1 $f24,0x7104($at) -/* f127dd4: 8fb301ac */ lw $s3,0x1ac($sp) -/* f127dd8: 27b1014c */ addiu $s1,$sp,0x14c -/* f127ddc: 27b20164 */ addiu $s2,$sp,0x164 -/* f127de0: 27b00134 */ addiu $s0,$sp,0x134 -.PB0f127de4: -/* f127de4: 2a61004b */ slti $at,$s3,0x4b -/* f127de8: 1020000c */ beqz $at,.PB0f127e1c -/* f127dec: 266dffb5 */ addiu $t5,$s3,-75 -/* f127df0: 2a610019 */ slti $at,$s3,0x19 -/* f127df4: 10200007 */ beqz $at,.PB0f127e14 -/* f127df8: 00000000 */ nop -/* f127dfc: 44935000 */ mtc1 $s3,$f10 -/* f127e00: 00000000 */ nop -/* f127e04: 46805220 */ cvt.s.w $f8,$f10 -/* f127e08: 46184082 */ mul.s $f2,$f8,$f24 -/* f127e0c: 10000011 */ b .PB0f127e54 -/* f127e10: 8e2f0000 */ lw $t7,0x0($s1) -.PB0f127e14: -/* f127e14: 1000000e */ b .PB0f127e50 -/* f127e18: 4600d086 */ mov.s $f2,$f26 -.PB0f127e1c: -/* f127e1c: 448d3000 */ mtc1 $t5,$f6 -/* f127e20: 00000000 */ nop -/* f127e24: 46803120 */ cvt.s.w $f4,$f6 -/* f127e28: 4604e281 */ sub.s $f10,$f28,$f4 -/* f127e2c: 461e5202 */ mul.s $f8,$f10,$f30 -/* f127e30: 00000000 */ nop -/* f127e34: 46144082 */ mul.s $f2,$f8,$f20 -/* f127e38: 4616103c */ c.lt.s $f2,$f22 -/* f127e3c: 00000000 */ nop -/* f127e40: 45000002 */ bc1f .PB0f127e4c -/* f127e44: 00000000 */ nop -/* f127e48: 4600b086 */ mov.s $f2,$f22 -.PB0f127e4c: -/* f127e4c: 46141080 */ add.s $f2,$f2,$f20 -.PB0f127e50: -/* f127e50: 8e2f0000 */ lw $t7,0x0($s1) -.PB0f127e54: -/* f127e54: c7aa0130 */ lwc1 $f10,0x130($sp) -/* f127e58: 8fa30198 */ lw $v1,0x198($sp) -/* f127e5c: 448f3000 */ mtc1 $t7,$f6 -/* f127e60: c7a4019c */ lwc1 $f4,0x19c($sp) -/* f127e64: 8e4e0000 */ lw $t6,0x0($s2) -/* f127e68: 46803020 */ cvt.s.w $f0,$f6 -/* f127e6c: 24780008 */ addiu $t8,$v1,0x8 -/* f127e70: c7a601a0 */ lwc1 $f6,0x1a0($sp) -/* f127e74: afb80198 */ sw $t8,0x198($sp) -/* f127e78: 3c014f80 */ lui $at,0x4f80 -/* f127e7c: 460a0202 */ mul.s $f8,$f0,$f10 -/* f127e80: c7aa012c */ lwc1 $f10,0x12c($sp) -/* f127e84: ac770000 */ sw $s7,0x0($v1) -/* f127e88: 8e020000 */ lw $v0,0x0($s0) -/* f127e8c: 304800ff */ andi $t0,$v0,0xff -/* f127e90: 46082301 */ sub.s $f12,$f4,$f8 -/* f127e94: 460a0102 */ mul.s $f4,$f0,$f10 -/* f127e98: 448e4000 */ mtc1 $t6,$f8 -/* f127e9c: 44885000 */ mtc1 $t0,$f10 -/* f127ea0: 46804420 */ cvt.s.w $f16,$f8 -/* f127ea4: c7a801b0 */ lwc1 $f8,0x1b0($sp) -/* f127ea8: 46043381 */ sub.s $f14,$f6,$f4 -/* f127eac: 468051a0 */ cvt.s.w $f6,$f10 -/* f127eb0: 46024282 */ mul.s $f10,$f8,$f2 -/* f127eb4: 05010004 */ bgez $t0,.PB0f127ec8 -/* f127eb8: 00000000 */ nop -/* f127ebc: 44812000 */ mtc1 $at,$f4 -/* f127ec0: 00000000 */ nop -/* f127ec4: 46043180 */ add.s $f6,$f6,$f4 -.PB0f127ec8: -/* f127ec8: 460a3102 */ mul.s $f4,$f6,$f10 -/* f127ecc: 02a02025 */ move $a0,$s5 -/* f127ed0: 00027e02 */ srl $t7,$v0,0x18 -/* f127ed4: 000f7600 */ sll $t6,$t7,0x18 -/* f127ed8: 00024402 */ srl $t0,$v0,0x10 -/* f127edc: 310c00ff */ andi $t4,$t0,0xff -/* f127ee0: 00027a02 */ srl $t7,$v0,0x8 -/* f127ee4: 4600220d */ trunc.w.s $f8,$f4 -/* f127ee8: 46148482 */ mul.s $f18,$f16,$f20 -/* f127eec: 03c02825 */ move $a1,$s8 -/* f127ef0: 27a6017c */ addiu $a2,$sp,0x17c -/* f127ef4: 440b4000 */ mfc1 $t3,$f8 -/* f127ef8: 00000000 */ nop -/* f127efc: 316900ff */ andi $t1,$t3,0xff -/* f127f00: 012ec825 */ or $t9,$t1,$t6 -/* f127f04: 31e900ff */ andi $t1,$t7,0xff -/* f127f08: 000c5c00 */ sll $t3,$t4,0x10 -/* f127f0c: 032b5025 */ or $t2,$t9,$t3 -/* f127f10: 00097200 */ sll $t6,$t1,0x8 -/* f127f14: 014ec025 */ or $t8,$t2,$t6 -/* f127f18: ac780004 */ sw $t8,0x4($v1) -/* f127f1c: c7a60094 */ lwc1 $f6,0x94($sp) -/* f127f20: 8ec20000 */ lw $v0,0x0($s6) -/* f127f24: e7ac0184 */ swc1 $f12,0x184($sp) -/* f127f28: 46069282 */ mul.s $f10,$f18,$f6 -/* f127f2c: e7ae0188 */ swc1 $f14,0x188($sp) -/* f127f30: e7b20180 */ swc1 $f18,0x180($sp) -/* f127f34: 240c0001 */ li $t4,0x1 -/* f127f38: e7aa017c */ swc1 $f10,0x17c($sp) -/* f127f3c: 90480011 */ lbu $t0,0x11($v0) -/* f127f40: 90470010 */ lbu $a3,0x10($v0) -/* f127f44: afac0028 */ sw $t4,0x28($sp) -/* f127f48: afa00024 */ sw $zero,0x24($sp) -/* f127f4c: afa00020 */ sw $zero,0x20($sp) -/* f127f50: afa0001c */ sw $zero,0x1c($sp) -/* f127f54: afa00018 */ sw $zero,0x18($sp) -/* f127f58: afa00014 */ sw $zero,0x14($sp) -/* f127f5c: 0fc2c958 */ jal func0f0b2150 -/* f127f60: afa80010 */ sw $t0,0x10($sp) -/* f127f64: 26100004 */ addiu $s0,$s0,0x4 -/* f127f68: 26310004 */ addiu $s1,$s1,0x4 -/* f127f6c: 1614ff9d */ bne $s0,$s4,.PB0f127de4 -/* f127f70: 26520004 */ addiu $s2,$s2,0x4 -/* f127f74: 0c002e6d */ jal viGetViewWidth -/* f127f78: 00000000 */ nop -/* f127f7c: 44822000 */ mtc1 $v0,$f4 -/* f127f80: 3c013f00 */ lui $at,0x3f00 -/* f127f84: 4481c000 */ mtc1 $at,$f24 -/* f127f88: 46802220 */ cvt.s.w $f8,$f4 -/* f127f8c: c7aa019c */ lwc1 $f10,0x19c($sp) -/* f127f90: 46184182 */ mul.s $f6,$f8,$f24 -/* f127f94: 0c002e71 */ jal viGetViewHeight -/* f127f98: 460a3501 */ sub.s $f20,$f6,$f10 -/* f127f9c: 44822000 */ mtc1 $v0,$f4 -/* f127fa0: c7aa01a0 */ lwc1 $f10,0x1a0($sp) -/* f127fa4: 46802220 */ cvt.s.w $f8,$f4 -/* f127fa8: 46184182 */ mul.s $f6,$f8,$f24 -/* f127fac: 460a3001 */ sub.s $f0,$f6,$f10 -/* f127fb0: 4614a102 */ mul.s $f4,$f20,$f20 -/* f127fb4: 00000000 */ nop -/* f127fb8: 46000202 */ mul.s $f8,$f0,$f0 -/* f127fbc: 0c012ae4 */ jal sqrtf -/* f127fc0: 46082300 */ add.s $f12,$f4,$f8 -/* f127fc4: 3c014220 */ lui $at,0x4220 -/* f127fc8: 44813000 */ mtc1 $at,$f6 -/* f127fcc: 3c017f1b */ lui $at,0x7f1b -/* f127fd0: c4247108 */ lwc1 $f4,0x7108($at) -/* f127fd4: 46003281 */ sub.s $f10,$f6,$f0 -/* f127fd8: 3c19800a */ lui $t9,0x800a -/* f127fdc: c7a601b0 */ lwc1 $f6,0x1b0($sp) -/* f127fe0: 46045302 */ mul.s $f12,$f10,$f4 -/* f127fe4: 4616603c */ c.lt.s $f12,$f22 -/* f127fe8: 00000000 */ nop -/* f127fec: 45000002 */ bc1f .PB0f127ff8 -/* f127ff0: 00000000 */ nop -/* f127ff4: 4600b306 */ mov.s $f12,$f22 -.PB0f127ff8: -/* f127ff8: 8f39e504 */ lw $t9,-0x1afc($t9) -/* f127ffc: 3c017f1b */ lui $at,0x7f1b -/* f128000: c428710c */ lwc1 $f8,0x710c($at) -/* f128004: 0333082a */ slt $at,$t9,$s3 -/* f128008: 14200002 */ bnez $at,.PB0f128014 -/* f12800c: 46086300 */ add.s $f12,$f12,$f8 -/* f128010: 4600b306 */ mov.s $f12,$f22 -.PB0f128014: -/* f128014: 460cb03c */ c.lt.s $f22,$f12 -/* f128018: 00000000 */ nop -/* f12801c: 4502000d */ bc1fl .PB0f128054 -/* f128020: 8fad0198 */ lw $t5,0x198($sp) -/* f128024: 460c3282 */ mul.s $f10,$f6,$f12 -/* f128028: 3c01437f */ lui $at,0x437f -/* f12802c: 44812000 */ mtc1 $at,$f4 -/* f128030: 00000000 */ nop -/* f128034: 46045202 */ mul.s $f8,$f10,$f4 -/* f128038: 4600418d */ trunc.w.s $f6,$f8 -/* f12803c: 44043000 */ mfc1 $a0,$f6 -/* f128040: 00000000 */ nop -/* f128044: 00802825 */ move $a1,$a0 -/* f128048: 0fc4a205 */ jal func0f127334 -/* f12804c: 00803025 */ move $a2,$a0 -/* f128050: 8fad0198 */ lw $t5,0x198($sp) -.PB0f128054: -/* f128054: 3c09ba00 */ lui $t1,0xba00 -/* f128058: 35290602 */ ori $t1,$t1,0x602 -/* f12805c: 25af0008 */ addiu $t7,$t5,0x8 -/* f128060: afaf0198 */ sw $t7,0x198($sp) -/* f128064: 240a0040 */ li $t2,0x40 -/* f128068: adaa0004 */ sw $t2,0x4($t5) -/* f12806c: ada90000 */ sw $t1,0x0($t5) -/* f128070: 8fae0198 */ lw $t6,0x198($sp) -/* f128074: 3c08ba00 */ lui $t0,0xba00 -/* f128078: 35080402 */ ori $t0,$t0,0x402 -/* f12807c: 25d80008 */ addiu $t8,$t6,0x8 -/* f128080: afb80198 */ sw $t8,0x198($sp) -/* f128084: 240c00c0 */ li $t4,0xc0 -/* f128088: adcc0004 */ sw $t4,0x4($t6) -/* f12808c: adc80000 */ sw $t0,0x0($t6) -/* f128090: 8fb90198 */ lw $t9,0x198($sp) -/* f128094: 3c0dba00 */ lui $t5,0xba00 -/* f128098: 35ad1301 */ ori $t5,$t5,0x1301 -/* f12809c: 272b0008 */ addiu $t3,$t9,0x8 -/* f1280a0: afab0198 */ sw $t3,0x198($sp) -/* f1280a4: 3c0f0008 */ lui $t7,0x8 -/* f1280a8: af2f0004 */ sw $t7,0x4($t9) -/* f1280ac: af2d0000 */ sw $t5,0x0($t9) -/* f1280b0: 8fa90198 */ lw $t1,0x198($sp) -/* f1280b4: 3c0eba00 */ lui $t6,0xba00 -/* f1280b8: 35ce1001 */ ori $t6,$t6,0x1001 -/* f1280bc: 252a0008 */ addiu $t2,$t1,0x8 -/* f1280c0: afaa0198 */ sw $t2,0x198($sp) -/* f1280c4: 3c180001 */ lui $t8,0x1 -/* f1280c8: ad380004 */ sw $t8,0x4($t1) -/* f1280cc: ad2e0000 */ sw $t6,0x0($t1) -/* f1280d0: 8fbf008c */ lw $ra,0x8c($sp) -/* f1280d4: 8fbe0088 */ lw $s8,0x88($sp) -/* f1280d8: 8fb70084 */ lw $s7,0x84($sp) -/* f1280dc: 8fb60080 */ lw $s6,0x80($sp) -/* f1280e0: 8fb5007c */ lw $s5,0x7c($sp) -/* f1280e4: 8fb40078 */ lw $s4,0x78($sp) -/* f1280e8: 8fb30074 */ lw $s3,0x74($sp) -/* f1280ec: 8fb20070 */ lw $s2,0x70($sp) -/* f1280f0: 8fb1006c */ lw $s1,0x6c($sp) -/* f1280f4: 8fb00068 */ lw $s0,0x68($sp) -/* f1280f8: d7be0060 */ ldc1 $f30,0x60($sp) -/* f1280fc: d7bc0058 */ ldc1 $f28,0x58($sp) -/* f128100: d7ba0050 */ ldc1 $f26,0x50($sp) -/* f128104: d7b80048 */ ldc1 $f24,0x48($sp) -/* f128108: d7b60040 */ ldc1 $f22,0x40($sp) -/* f12810c: d7b40038 */ ldc1 $f20,0x38($sp) -/* f128110: 8fa20198 */ lw $v0,0x198($sp) -/* f128114: 03e00008 */ jr $ra -/* f128118: 27bd0198 */ addiu $sp,$sp,0x198 -); -#else -GLOBAL_ASM( -glabel func0f126384 -.late_rodata -glabel var7f1b510c -.word 0x3c23d70a -glabel var7f1b5110 -.word 0x3bb60b61 -glabel var7f1b5114 -.word 0x3d088889 -glabel var7f1b5118 -.word 0x3c4ccccd -glabel var7f1b511c -.word 0x3dcccccd -.text -/* f126384: 27bdfe70 */ addiu $sp,$sp,-400 -/* f126388: 3c0f8008 */ lui $t7,%hi(var8007dba0) -/* f12638c: afbf0084 */ sw $ra,0x84($sp) -/* f126390: afb70080 */ sw $s7,0x80($sp) -/* f126394: afb6007c */ sw $s6,0x7c($sp) -/* f126398: afb50078 */ sw $s5,0x78($sp) -/* f12639c: afb40074 */ sw $s4,0x74($sp) -/* f1263a0: afb30070 */ sw $s3,0x70($sp) -/* f1263a4: afb2006c */ sw $s2,0x6c($sp) -/* f1263a8: afb10068 */ sw $s1,0x68($sp) -/* f1263ac: afb00064 */ sw $s0,0x64($sp) -/* f1263b0: f7be0058 */ sdc1 $f30,0x58($sp) -/* f1263b4: f7bc0050 */ sdc1 $f28,0x50($sp) -/* f1263b8: f7ba0048 */ sdc1 $f26,0x48($sp) -/* f1263bc: f7b80040 */ sdc1 $f24,0x40($sp) -/* f1263c0: f7b60038 */ sdc1 $f22,0x38($sp) -/* f1263c4: f7b40030 */ sdc1 $f20,0x30($sp) -/* f1263c8: afa40190 */ sw $a0,0x190($sp) -/* f1263cc: 25efdba0 */ addiu $t7,$t7,%lo(var8007dba0) -/* f1263d0: 8de10000 */ lw $at,0x0($t7) -/* f1263d4: 8de80004 */ lw $t0,0x4($t7) -/* f1263d8: 27ae015c */ addiu $t6,$sp,0x15c -/* f1263dc: adc10000 */ sw $at,0x0($t6) -/* f1263e0: adc80004 */ sw $t0,0x4($t6) -/* f1263e4: 8de8000c */ lw $t0,0xc($t7) -/* f1263e8: 8de10008 */ lw $at,0x8($t7) -/* f1263ec: 3c0a8008 */ lui $t2,%hi(var8007dbb8) -/* f1263f0: adc8000c */ sw $t0,0xc($t6) -/* f1263f4: adc10008 */ sw $at,0x8($t6) -/* f1263f8: 8de10010 */ lw $at,0x10($t7) -/* f1263fc: 8de80014 */ lw $t0,0x14($t7) -/* f126400: 254adbb8 */ addiu $t2,$t2,%lo(var8007dbb8) -/* f126404: adc10010 */ sw $at,0x10($t6) -/* f126408: adc80014 */ sw $t0,0x14($t6) -/* f12640c: 8d4d0004 */ lw $t5,0x4($t2) -/* f126410: 8d410000 */ lw $at,0x0($t2) -/* f126414: 27a90144 */ addiu $t1,$sp,0x144 -/* f126418: ad2d0004 */ sw $t5,0x4($t1) -/* f12641c: ad210000 */ sw $at,0x0($t1) -/* f126420: 8d410008 */ lw $at,0x8($t2) -/* f126424: 8d4d000c */ lw $t5,0xc($t2) -/* f126428: 3c188008 */ lui $t8,%hi(var8007dbd0) -/* f12642c: ad210008 */ sw $at,0x8($t1) -/* f126430: ad2d000c */ sw $t5,0xc($t1) -/* f126434: 8d4d0014 */ lw $t5,0x14($t2) -/* f126438: 8d410010 */ lw $at,0x10($t2) -/* f12643c: 2718dbd0 */ addiu $t8,$t8,%lo(var8007dbd0) -/* f126440: ad2d0014 */ sw $t5,0x14($t1) -/* f126444: ad210010 */ sw $at,0x10($t1) -/* f126448: 8f080004 */ lw $t0,0x4($t8) -/* f12644c: 8f010000 */ lw $at,0x0($t8) -/* f126450: 27b9012c */ addiu $t9,$sp,0x12c -/* f126454: af280004 */ sw $t0,0x4($t9) -/* f126458: af210000 */ sw $at,0x0($t9) -/* f12645c: 8f010008 */ lw $at,0x8($t8) -/* f126460: 8f08000c */ lw $t0,0xc($t8) -/* f126464: 3c0c8007 */ lui $t4,%hi(g_ViRes) -/* f126468: af210008 */ sw $at,0x8($t9) -/* f12646c: af28000c */ sw $t0,0xc($t9) -/* f126470: 8f080014 */ lw $t0,0x14($t8) -/* f126474: 8f010010 */ lw $at,0x10($t8) -/* f126478: 4487b000 */ mtc1 $a3,$f22 -/* f12647c: af280014 */ sw $t0,0x14($t9) -/* f126480: af210010 */ sw $at,0x10($t9) -/* f126484: 8d8c06c8 */ lw $t4,%lo(g_ViRes)($t4) -/* f126488: 4485d000 */ mtc1 $a1,$f26 -/* f12648c: 4486e000 */ mtc1 $a2,$f28 -/* f126490: 24010001 */ addiu $at,$zero,0x1 -/* f126494: 15810002 */ bne $t4,$at,.L0f1264a0 -/* f126498: 24100001 */ addiu $s0,$zero,0x1 -/* f12649c: 24100002 */ addiu $s0,$zero,0x2 -.L0f1264a0: -/* f1264a0: 0c002f22 */ jal viGetViewWidth -/* f1264a4: 00000000 */ nop -/* f1264a8: 44822000 */ mtc1 $v0,$f4 -/* f1264ac: 3c017f1b */ lui $at,%hi(var7f1b510c) -/* f1264b0: c434510c */ lwc1 $f20,%lo(var7f1b510c)($at) -/* f1264b4: 468021a0 */ cvt.s.w $f6,$f4 -/* f1264b8: 3c013f00 */ lui $at,0x3f00 -/* f1264bc: 4481f000 */ mtc1 $at,$f30 -/* f1264c0: 00000000 */ nop -/* f1264c4: 461e3202 */ mul.s $f8,$f6,$f30 -/* f1264c8: 4608d281 */ sub.s $f10,$f26,$f8 -/* f1264cc: 46145102 */ mul.s $f4,$f10,$f20 -/* f1264d0: 0c002f26 */ jal viGetViewHeight -/* f1264d4: e7a40128 */ swc1 $f4,0x128($sp) -/* f1264d8: 44823000 */ mtc1 $v0,$f6 -/* f1264dc: 3c16800b */ lui $s6,%hi(g_TexLightGlareConfigs) -/* f1264e0: 26d6b5a0 */ addiu $s6,$s6,%lo(g_TexLightGlareConfigs) -/* f1264e4: 46803220 */ cvt.s.w $f8,$f6 -/* f1264e8: 8ec50000 */ lw $a1,0x0($s6) -/* f1264ec: 27b50190 */ addiu $s5,$sp,0x190 -/* f1264f0: 240b0002 */ addiu $t3,$zero,0x2 -/* f1264f4: 24090001 */ addiu $t1,$zero,0x1 -/* f1264f8: afa90014 */ sw $t1,0x14($sp) -/* f1264fc: 461e4282 */ mul.s $f10,$f8,$f30 -/* f126500: afab0010 */ sw $t3,0x10($sp) -/* f126504: 02a02025 */ or $a0,$s5,$zero -/* f126508: 24060004 */ addiu $a2,$zero,0x4 -/* f12650c: 00003825 */ or $a3,$zero,$zero -/* f126510: afa00018 */ sw $zero,0x18($sp) -/* f126514: 24a50048 */ addiu $a1,$a1,0x48 -/* f126518: 460ae101 */ sub.s $f4,$f28,$f10 -/* f12651c: 46142182 */ mul.s $f6,$f4,$f20 -/* f126520: 0fc2ce70 */ jal func0f0b39c0 -/* f126524: e7a60124 */ swc1 $f6,0x124($sp) -/* f126528: 8faa0190 */ lw $t2,0x190($sp) -/* f12652c: 3c11ba00 */ lui $s1,0xba00 -/* f126530: 36311402 */ ori $s1,$s1,0x1402 -/* f126534: 254d0008 */ addiu $t5,$t2,0x8 -/* f126538: afad0190 */ sw $t5,0x190($sp) -/* f12653c: ad400004 */ sw $zero,0x4($t2) -/* f126540: ad510000 */ sw $s1,0x0($t2) -/* f126544: 8faf0190 */ lw $t7,0x190($sp) -/* f126548: 3c19ba00 */ lui $t9,0xba00 -/* f12654c: 37390602 */ ori $t9,$t9,0x602 -/* f126550: 25ee0008 */ addiu $t6,$t7,0x8 -/* f126554: afae0190 */ sw $t6,0x190($sp) -/* f126558: 24180040 */ addiu $t8,$zero,0x40 -/* f12655c: adf80004 */ sw $t8,0x4($t7) -/* f126560: adf90000 */ sw $t9,0x0($t7) -/* f126564: 8fa80190 */ lw $t0,0x190($sp) -/* f126568: 3c0bba00 */ lui $t3,0xba00 -/* f12656c: 356b0402 */ ori $t3,$t3,0x402 -/* f126570: 250c0008 */ addiu $t4,$t0,0x8 -/* f126574: afac0190 */ sw $t4,0x190($sp) -/* f126578: ad000004 */ sw $zero,0x4($t0) -/* f12657c: ad0b0000 */ sw $t3,0x0($t0) -/* f126580: 8fa90190 */ lw $t1,0x190($sp) -/* f126584: 3c12b900 */ lui $s2,0xb900 -/* f126588: 3c130050 */ lui $s3,0x50 -/* f12658c: 252a0008 */ addiu $t2,$t1,0x8 -/* f126590: afaa0190 */ sw $t2,0x190($sp) -/* f126594: 367341c8 */ ori $s3,$s3,0x41c8 -/* f126598: 3652031d */ ori $s2,$s2,0x31d -/* f12659c: ad320000 */ sw $s2,0x0($t1) -/* f1265a0: ad330004 */ sw $s3,0x4($t1) -/* f1265a4: 8fad0190 */ lw $t5,0x190($sp) -/* f1265a8: 3c0eba00 */ lui $t6,0xba00 -/* f1265ac: 35ce1301 */ ori $t6,$t6,0x1301 -/* f1265b0: 25af0008 */ addiu $t7,$t5,0x8 -/* f1265b4: afaf0190 */ sw $t7,0x190($sp) -/* f1265b8: ada00004 */ sw $zero,0x4($t5) -/* f1265bc: adae0000 */ sw $t6,0x0($t5) -/* f1265c0: 8fb90190 */ lw $t9,0x190($sp) -/* f1265c4: 3c14b900 */ lui $s4,0xb900 -/* f1265c8: 36940002 */ ori $s4,$s4,0x2 -/* f1265cc: 27380008 */ addiu $t8,$t9,0x8 -/* f1265d0: afb80190 */ sw $t8,0x190($sp) -/* f1265d4: af200004 */ sw $zero,0x4($t9) -/* f1265d8: af340000 */ sw $s4,0x0($t9) -/* f1265dc: 8fa80190 */ lw $t0,0x190($sp) -/* f1265e0: 3c0bba00 */ lui $t3,0xba00 -/* f1265e4: 356b1001 */ ori $t3,$t3,0x1001 -/* f1265e8: 250c0008 */ addiu $t4,$t0,0x8 -/* f1265ec: afac0190 */ sw $t4,0x190($sp) -/* f1265f0: ad000004 */ sw $zero,0x4($t0) -/* f1265f4: ad0b0000 */ sw $t3,0x0($t0) -/* f1265f8: 8fa90190 */ lw $t1,0x190($sp) -/* f1265fc: 3c0dba00 */ lui $t5,0xba00 -/* f126600: 35ad0903 */ ori $t5,$t5,0x903 -/* f126604: 252a0008 */ addiu $t2,$t1,0x8 -/* f126608: afaa0190 */ sw $t2,0x190($sp) -/* f12660c: 240f0c00 */ addiu $t7,$zero,0xc00 -/* f126610: ad2f0004 */ sw $t7,0x4($t1) -/* f126614: ad2d0000 */ sw $t5,0x0($t1) -/* f126618: 8fae0190 */ lw $t6,0x190($sp) -/* f12661c: 3c18ba00 */ lui $t8,0xba00 -/* f126620: 37180e02 */ ori $t8,$t8,0xe02 -/* f126624: 25d90008 */ addiu $t9,$t6,0x8 -/* f126628: afb90190 */ sw $t9,0x190($sp) -/* f12662c: adc00004 */ sw $zero,0x4($t6) -/* f126630: add80000 */ sw $t8,0x0($t6) -/* f126634: 8fa80190 */ lw $t0,0x190($sp) -/* f126638: 3c0bba00 */ lui $t3,0xba00 -/* f12663c: 356b0c02 */ ori $t3,$t3,0xc02 -/* f126640: 250c0008 */ addiu $t4,$t0,0x8 -/* f126644: afac0190 */ sw $t4,0x190($sp) -/* f126648: 24092000 */ addiu $t1,$zero,0x2000 -/* f12664c: ad090004 */ sw $t1,0x4($t0) -/* f126650: ad0b0000 */ sw $t3,0x0($t0) -/* f126654: 8faa0190 */ lw $t2,0x190($sp) -/* f126658: 3c0eff36 */ lui $t6,0xff36 -/* f12665c: 3c0ffcff */ lui $t7,0xfcff -/* f126660: 254d0008 */ addiu $t5,$t2,0x8 -/* f126664: afad0190 */ sw $t5,0x190($sp) -/* f126668: 35ef9bff */ ori $t7,$t7,0x9bff -/* f12666c: 35ceff7f */ ori $t6,$t6,0xff7f -/* f126670: ad4e0004 */ sw $t6,0x4($t2) -/* f126674: 0c002f9d */ jal viGetFovY -/* f126678: ad4f0000 */ sw $t7,0x0($t2) -/* f12667c: 8fb90190 */ lw $t9,0x190($sp) -/* f126680: 3c17fb00 */ lui $s7,0xfb00 -/* f126684: 3c013f00 */ lui $at,0x3f00 -/* f126688: 27380008 */ addiu $t8,$t9,0x8 -/* f12668c: afb80190 */ sw $t8,0x190($sp) -/* f126690: af370000 */ sw $s7,0x0($t9) -/* f126694: c7a801a8 */ lwc1 $f8,0x1a8($sp) -/* f126698: 4481a000 */ mtc1 $at,$f20 -/* f12669c: 3c01437f */ lui $at,0x437f -/* f1266a0: 46164282 */ mul.s $f10,$f8,$f22 -/* f1266a4: 44812000 */ mtc1 $at,$f4 -/* f1266a8: 2401ff00 */ addiu $at,$zero,-256 -/* f1266ac: 24180001 */ addiu $t8,$zero,0x1 -/* f1266b0: 240e0001 */ addiu $t6,$zero,0x1 -/* f1266b4: 24080001 */ addiu $t0,$zero,0x1 -/* f1266b8: 02a02025 */ or $a0,$s5,$zero -/* f1266bc: 46045182 */ mul.s $f6,$f10,$f4 -/* f1266c0: 27a5017c */ addiu $a1,$sp,0x17c -/* f1266c4: 27a60174 */ addiu $a2,$sp,0x174 -/* f1266c8: 4616a102 */ mul.s $f4,$f20,$f22 -/* f1266cc: 4600320d */ trunc.w.s $f8,$f6 -/* f1266d0: 4604a180 */ add.s $f6,$f20,$f4 -/* f1266d4: 440c4000 */ mfc1 $t4,$f8 -/* f1266d8: 00000000 */ nop -/* f1266dc: 318b00ff */ andi $t3,$t4,0xff -/* f1266e0: 01614825 */ or $t1,$t3,$at -/* f1266e4: af290004 */ sw $t1,0x4($t9) -/* f1266e8: c7aa01a0 */ lwc1 $f10,0x1a0($sp) -/* f1266ec: 3c014270 */ lui $at,0x4270 -/* f1266f0: 44812000 */ mtc1 $at,$f4 -/* f1266f4: 46065202 */ mul.s $f8,$f10,$f6 -/* f1266f8: 8ec20000 */ lw $v0,0x0($s6) -/* f1266fc: e7ba017c */ swc1 $f26,0x17c($sp) -/* f126700: e7bc0180 */ swc1 $f28,0x180($sp) -/* f126704: 24190001 */ addiu $t9,$zero,0x1 -/* f126708: 46002283 */ div.s $f10,$f4,$f0 -/* f12670c: 46085182 */ mul.s $f6,$f10,$f8 -/* f126710: 4600310d */ trunc.w.s $f4,$f6 -/* f126714: 44903000 */ mtc1 $s0,$f6 -/* f126718: 440d2000 */ mfc1 $t5,$f4 -/* f12671c: 46803620 */ cvt.s.w $f24,$f6 -/* f126720: 448d5000 */ mtc1 $t5,$f10 -/* f126724: 00000000 */ nop -/* f126728: 46805220 */ cvt.s.w $f8,$f10 -/* f12672c: 46144082 */ mul.s $f2,$f8,$f20 -/* f126730: 00000000 */ nop -/* f126734: 46181102 */ mul.s $f4,$f2,$f24 -/* f126738: e7a20178 */ swc1 $f2,0x178($sp) -/* f12673c: e7a40174 */ swc1 $f4,0x174($sp) -/* f126740: 904f004d */ lbu $t7,0x4d($v0) -/* f126744: 9047004c */ lbu $a3,0x4c($v0) -/* f126748: afa80028 */ sw $t0,0x28($sp) -/* f12674c: afa00024 */ sw $zero,0x24($sp) -/* f126750: afb80020 */ sw $t8,0x20($sp) -/* f126754: afb9001c */ sw $t9,0x1c($sp) -/* f126758: afae0018 */ sw $t6,0x18($sp) -/* f12675c: afa00014 */ sw $zero,0x14($sp) -/* f126760: 0fc2c854 */ jal func0f0b2150 -/* f126764: afaf0010 */ sw $t7,0x10($sp) -/* f126768: 8ec50000 */ lw $a1,0x0($s6) -/* f12676c: 240c0002 */ addiu $t4,$zero,0x2 -/* f126770: 240b0001 */ addiu $t3,$zero,0x1 -/* f126774: afab0014 */ sw $t3,0x14($sp) -/* f126778: afac0010 */ sw $t4,0x10($sp) -/* f12677c: 02a02025 */ or $a0,$s5,$zero -/* f126780: 24060004 */ addiu $a2,$zero,0x4 -/* f126784: 00003825 */ or $a3,$zero,$zero -/* f126788: afa00018 */ sw $zero,0x18($sp) -/* f12678c: 0fc2ce70 */ jal func0f0b39c0 -/* f126790: 24a5000c */ addiu $a1,$a1,0xc -/* f126794: 8fa90190 */ lw $t1,0x190($sp) -/* f126798: 3c0eba00 */ lui $t6,0xba00 -/* f12679c: 35ce0602 */ ori $t6,$t6,0x602 -/* f1267a0: 252a0008 */ addiu $t2,$t1,0x8 -/* f1267a4: afaa0190 */ sw $t2,0x190($sp) -/* f1267a8: ad200004 */ sw $zero,0x4($t1) -/* f1267ac: ad310000 */ sw $s1,0x0($t1) -/* f1267b0: 8fad0190 */ lw $t5,0x190($sp) -/* f1267b4: 24190040 */ addiu $t9,$zero,0x40 -/* f1267b8: 3c0cba00 */ lui $t4,0xba00 -/* f1267bc: 25af0008 */ addiu $t7,$t5,0x8 -/* f1267c0: afaf0190 */ sw $t7,0x190($sp) -/* f1267c4: adb90004 */ sw $t9,0x4($t5) -/* f1267c8: adae0000 */ sw $t6,0x0($t5) -/* f1267cc: 8fb80190 */ lw $t8,0x190($sp) -/* f1267d0: 358c0402 */ ori $t4,$t4,0x402 -/* f1267d4: 3c0fba00 */ lui $t7,0xba00 -/* f1267d8: 27080008 */ addiu $t0,$t8,0x8 -/* f1267dc: afa80190 */ sw $t0,0x190($sp) -/* f1267e0: af000004 */ sw $zero,0x4($t8) -/* f1267e4: af0c0000 */ sw $t4,0x0($t8) -/* f1267e8: 8fab0190 */ lw $t3,0x190($sp) -/* f1267ec: 35ef1301 */ ori $t7,$t7,0x1301 -/* f1267f0: 3c0cba00 */ lui $t4,0xba00 -/* f1267f4: 25690008 */ addiu $t1,$t3,0x8 -/* f1267f8: afa90190 */ sw $t1,0x190($sp) -/* f1267fc: ad730004 */ sw $s3,0x4($t3) -/* f126800: ad720000 */ sw $s2,0x0($t3) -/* f126804: 8faa0190 */ lw $t2,0x190($sp) -/* f126808: 358c1001 */ ori $t4,$t4,0x1001 -/* f12680c: 3c017f1b */ lui $at,%hi(var7f1b5110) -/* f126810: 254d0008 */ addiu $t5,$t2,0x8 -/* f126814: afad0190 */ sw $t5,0x190($sp) -/* f126818: ad400004 */ sw $zero,0x4($t2) -/* f12681c: ad4f0000 */ sw $t7,0x0($t2) -/* f126820: 8fae0190 */ lw $t6,0x190($sp) -/* f126824: 3c0aba00 */ lui $t2,0xba00 -/* f126828: 354a0903 */ ori $t2,$t2,0x903 -/* f12682c: 25d90008 */ addiu $t9,$t6,0x8 -/* f126830: afb90190 */ sw $t9,0x190($sp) -/* f126834: adc00004 */ sw $zero,0x4($t6) -/* f126838: add40000 */ sw $s4,0x0($t6) -/* f12683c: 8fb80190 */ lw $t8,0x190($sp) -/* f126840: 240d0c00 */ addiu $t5,$zero,0xc00 -/* f126844: 3c19ba00 */ lui $t9,0xba00 -/* f126848: 27080008 */ addiu $t0,$t8,0x8 -/* f12684c: afa80190 */ sw $t0,0x190($sp) -/* f126850: af000004 */ sw $zero,0x4($t8) -/* f126854: af0c0000 */ sw $t4,0x0($t8) -/* f126858: 8fab0190 */ lw $t3,0x190($sp) -/* f12685c: 37390e02 */ ori $t9,$t9,0xe02 -/* f126860: 3c0cba00 */ lui $t4,0xba00 -/* f126864: 25690008 */ addiu $t1,$t3,0x8 -/* f126868: afa90190 */ sw $t1,0x190($sp) -/* f12686c: ad6d0004 */ sw $t5,0x4($t3) -/* f126870: ad6a0000 */ sw $t2,0x0($t3) -/* f126874: 8faf0190 */ lw $t7,0x190($sp) -/* f126878: 240b2000 */ addiu $t3,$zero,0x2000 -/* f12687c: 358c0c02 */ ori $t4,$t4,0xc02 -/* f126880: 25ee0008 */ addiu $t6,$t7,0x8 -/* f126884: afae0190 */ sw $t6,0x190($sp) -/* f126888: ade00004 */ sw $zero,0x4($t7) -/* f12688c: adf90000 */ sw $t9,0x0($t7) -/* f126890: 8fb80190 */ lw $t8,0x190($sp) -/* f126894: 3c0fff36 */ lui $t7,0xff36 -/* f126898: 3c0dfcff */ lui $t5,0xfcff -/* f12689c: 27080008 */ addiu $t0,$t8,0x8 -/* f1268a0: afa80190 */ sw $t0,0x190($sp) -/* f1268a4: af0b0004 */ sw $t3,0x4($t8) -/* f1268a8: af0c0000 */ sw $t4,0x0($t8) -/* f1268ac: 8fa90190 */ lw $t1,0x190($sp) -/* f1268b0: 35ad9bff */ ori $t5,$t5,0x9bff -/* f1268b4: 35efff7f */ ori $t7,$t7,0xff7f -/* f1268b8: 252a0008 */ addiu $t2,$t1,0x8 -/* f1268bc: afaa0190 */ sw $t2,0x190($sp) -/* f1268c0: ad2f0004 */ sw $t7,0x4($t1) -/* f1268c4: ad2d0000 */ sw $t5,0x0($t1) -/* f1268c8: c43e5110 */ lwc1 $f30,%lo(var7f1b5110)($at) -/* f1268cc: 3c014334 */ lui $at,0x4334 -/* f1268d0: e7bc0198 */ swc1 $f28,0x198($sp) -/* f1268d4: 4481e000 */ mtc1 $at,$f28 -/* f1268d8: 3c013f80 */ lui $at,0x3f80 -/* f1268dc: e7ba0194 */ swc1 $f26,0x194($sp) -/* f1268e0: 4481d000 */ mtc1 $at,$f26 -/* f1268e4: 3c017f1b */ lui $at,%hi(var7f1b5114) -/* f1268e8: e7b8009c */ swc1 $f24,0x9c($sp) -/* f1268ec: 4480b000 */ mtc1 $zero,$f22 -/* f1268f0: c4385114 */ lwc1 $f24,%lo(var7f1b5114)($at) -/* f1268f4: 8fb301a4 */ lw $s3,0x1a4($sp) -/* f1268f8: 27b40144 */ addiu $s4,$sp,0x144 -/* f1268fc: 27b2015c */ addiu $s2,$sp,0x15c -/* f126900: 27b10144 */ addiu $s1,$sp,0x144 -/* f126904: 27b0012c */ addiu $s0,$sp,0x12c -.L0f126908: -/* f126908: 2a61005a */ slti $at,$s3,0x5a -/* f12690c: 1020000c */ beqz $at,.L0f126940 -/* f126910: 266effa6 */ addiu $t6,$s3,-90 -/* f126914: 2a61001e */ slti $at,$s3,0x1e -/* f126918: 10200007 */ beqz $at,.L0f126938 -/* f12691c: 00000000 */ nop -/* f126920: 44935000 */ mtc1 $s3,$f10 -/* f126924: 00000000 */ nop -/* f126928: 46805220 */ cvt.s.w $f8,$f10 -/* f12692c: 46184082 */ mul.s $f2,$f8,$f24 -/* f126930: 10000011 */ b .L0f126978 -/* f126934: 8e390000 */ lw $t9,0x0($s1) -.L0f126938: -/* f126938: 1000000e */ b .L0f126974 -/* f12693c: 4600d086 */ mov.s $f2,$f26 -.L0f126940: -/* f126940: 448e3000 */ mtc1 $t6,$f6 -/* f126944: 00000000 */ nop -/* f126948: 46803120 */ cvt.s.w $f4,$f6 -/* f12694c: 4604e281 */ sub.s $f10,$f28,$f4 -/* f126950: 461e5202 */ mul.s $f8,$f10,$f30 -/* f126954: 00000000 */ nop -/* f126958: 46144082 */ mul.s $f2,$f8,$f20 -/* f12695c: 4616103c */ c.lt.s $f2,$f22 -/* f126960: 00000000 */ nop -/* f126964: 45000002 */ bc1f .L0f126970 -/* f126968: 00000000 */ nop -/* f12696c: 4600b086 */ mov.s $f2,$f22 -.L0f126970: -/* f126970: 46141080 */ add.s $f2,$f2,$f20 -.L0f126974: -/* f126974: 8e390000 */ lw $t9,0x0($s1) -.L0f126978: -/* f126978: c7aa0128 */ lwc1 $f10,0x128($sp) -/* f12697c: 8fa30190 */ lw $v1,0x190($sp) -/* f126980: 44993000 */ mtc1 $t9,$f6 -/* f126984: c7a40194 */ lwc1 $f4,0x194($sp) -/* f126988: 8e580000 */ lw $t8,0x0($s2) -/* f12698c: 46803020 */ cvt.s.w $f0,$f6 -/* f126990: 246c0008 */ addiu $t4,$v1,0x8 -/* f126994: c7a60198 */ lwc1 $f6,0x198($sp) -/* f126998: afac0190 */ sw $t4,0x190($sp) -/* f12699c: 3c014f80 */ lui $at,0x4f80 -/* f1269a0: 460a0202 */ mul.s $f8,$f0,$f10 -/* f1269a4: c7aa0124 */ lwc1 $f10,0x124($sp) -/* f1269a8: ac770000 */ sw $s7,0x0($v1) -/* f1269ac: 8e020000 */ lw $v0,0x0($s0) -/* f1269b0: 304b00ff */ andi $t3,$v0,0xff -/* f1269b4: 46082301 */ sub.s $f12,$f4,$f8 -/* f1269b8: 460a0102 */ mul.s $f4,$f0,$f10 -/* f1269bc: 44984000 */ mtc1 $t8,$f8 -/* f1269c0: 448b5000 */ mtc1 $t3,$f10 -/* f1269c4: 46804420 */ cvt.s.w $f16,$f8 -/* f1269c8: c7a801a8 */ lwc1 $f8,0x1a8($sp) -/* f1269cc: 46043381 */ sub.s $f14,$f6,$f4 -/* f1269d0: 468051a0 */ cvt.s.w $f6,$f10 -/* f1269d4: 46024282 */ mul.s $f10,$f8,$f2 -/* f1269d8: 05610004 */ bgez $t3,.L0f1269ec -/* f1269dc: 00000000 */ nop -/* f1269e0: 44812000 */ mtc1 $at,$f4 -/* f1269e4: 00000000 */ nop -/* f1269e8: 46043180 */ add.s $f6,$f6,$f4 -.L0f1269ec: -/* f1269ec: 460a3102 */ mul.s $f4,$f6,$f10 -/* f1269f0: 02a02025 */ or $a0,$s5,$zero -/* f1269f4: 0002ce02 */ srl $t9,$v0,0x18 -/* f1269f8: 0019c600 */ sll $t8,$t9,0x18 -/* f1269fc: 00025c02 */ srl $t3,$v0,0x10 -/* f126a00: 316900ff */ andi $t1,$t3,0xff -/* f126a04: 0002ca02 */ srl $t9,$v0,0x8 -/* f126a08: 4600220d */ trunc.w.s $f8,$f4 -/* f126a0c: 46148482 */ mul.s $f18,$f16,$f20 -/* f126a10: 27a5017c */ addiu $a1,$sp,0x17c -/* f126a14: 27a60174 */ addiu $a2,$sp,0x174 -/* f126a18: 440a4000 */ mfc1 $t2,$f8 -/* f126a1c: 00000000 */ nop -/* f126a20: 314d00ff */ andi $t5,$t2,0xff -/* f126a24: 01b84025 */ or $t0,$t5,$t8 -/* f126a28: 332d00ff */ andi $t5,$t9,0xff -/* f126a2c: 00095400 */ sll $t2,$t1,0x10 -/* f126a30: 010a7825 */ or $t7,$t0,$t2 -/* f126a34: 000dc200 */ sll $t8,$t5,0x8 -/* f126a38: 01f86025 */ or $t4,$t7,$t8 -/* f126a3c: ac6c0004 */ sw $t4,0x4($v1) -/* f126a40: c7a6009c */ lwc1 $f6,0x9c($sp) -/* f126a44: 8ec20000 */ lw $v0,0x0($s6) -/* f126a48: e7ac017c */ swc1 $f12,0x17c($sp) -/* f126a4c: 46069282 */ mul.s $f10,$f18,$f6 -/* f126a50: e7ae0180 */ swc1 $f14,0x180($sp) -/* f126a54: e7b20178 */ swc1 $f18,0x178($sp) -/* f126a58: 24090001 */ addiu $t1,$zero,0x1 -/* f126a5c: e7aa0174 */ swc1 $f10,0x174($sp) -/* f126a60: 904b0011 */ lbu $t3,0x11($v0) -/* f126a64: 90470010 */ lbu $a3,0x10($v0) -/* f126a68: afa90028 */ sw $t1,0x28($sp) -/* f126a6c: afa00024 */ sw $zero,0x24($sp) -/* f126a70: afa00020 */ sw $zero,0x20($sp) -/* f126a74: afa0001c */ sw $zero,0x1c($sp) -/* f126a78: afa00018 */ sw $zero,0x18($sp) -/* f126a7c: afa00014 */ sw $zero,0x14($sp) -/* f126a80: 0fc2c854 */ jal func0f0b2150 -/* f126a84: afab0010 */ sw $t3,0x10($sp) -/* f126a88: 26100004 */ addiu $s0,$s0,0x4 -/* f126a8c: 26310004 */ addiu $s1,$s1,0x4 -/* f126a90: 1614ff9d */ bne $s0,$s4,.L0f126908 -/* f126a94: 26520004 */ addiu $s2,$s2,0x4 -/* f126a98: 0c002f22 */ jal viGetViewWidth -/* f126a9c: 00000000 */ nop -/* f126aa0: 44822000 */ mtc1 $v0,$f4 -/* f126aa4: 3c013f00 */ lui $at,0x3f00 -/* f126aa8: 4481c000 */ mtc1 $at,$f24 -/* f126aac: 46802220 */ cvt.s.w $f8,$f4 -/* f126ab0: c7aa0194 */ lwc1 $f10,0x194($sp) -/* f126ab4: 46184182 */ mul.s $f6,$f8,$f24 -/* f126ab8: 0c002f26 */ jal viGetViewHeight -/* f126abc: 460a3501 */ sub.s $f20,$f6,$f10 -/* f126ac0: 44822000 */ mtc1 $v0,$f4 -/* f126ac4: c7aa0198 */ lwc1 $f10,0x198($sp) -/* f126ac8: 46802220 */ cvt.s.w $f8,$f4 -/* f126acc: 46184182 */ mul.s $f6,$f8,$f24 -/* f126ad0: 460a3001 */ sub.s $f0,$f6,$f10 -/* f126ad4: 4614a102 */ mul.s $f4,$f20,$f20 -/* f126ad8: 00000000 */ nop -/* f126adc: 46000202 */ mul.s $f8,$f0,$f0 -/* f126ae0: 0c012974 */ jal sqrtf -/* f126ae4: 46082300 */ add.s $f12,$f4,$f8 -/* f126ae8: 3c014220 */ lui $at,0x4220 -/* f126aec: 44813000 */ mtc1 $at,$f6 -/* f126af0: 3c017f1b */ lui $at,%hi(var7f1b5118) -/* f126af4: c4245118 */ lwc1 $f4,%lo(var7f1b5118)($at) -/* f126af8: 46003281 */ sub.s $f10,$f6,$f0 -/* f126afc: 3c08800a */ lui $t0,%hi(g_Vars+0x34) -/* f126b00: c7a601a8 */ lwc1 $f6,0x1a8($sp) -/* f126b04: 46045302 */ mul.s $f12,$f10,$f4 -/* f126b08: 4616603c */ c.lt.s $f12,$f22 -/* f126b0c: 00000000 */ nop -/* f126b10: 45000002 */ bc1f .L0f126b1c -/* f126b14: 00000000 */ nop -/* f126b18: 4600b306 */ mov.s $f12,$f22 -.L0f126b1c: -/* f126b1c: 8d089ff4 */ lw $t0,%lo(g_Vars+0x34)($t0) -/* f126b20: 3c017f1b */ lui $at,%hi(var7f1b511c) -/* f126b24: c428511c */ lwc1 $f8,%lo(var7f1b511c)($at) -/* f126b28: 0113082a */ slt $at,$t0,$s3 -/* f126b2c: 14200002 */ bnez $at,.L0f126b38 -/* f126b30: 46086300 */ add.s $f12,$f12,$f8 -/* f126b34: 4600b306 */ mov.s $f12,$f22 -.L0f126b38: -/* f126b38: 460cb03c */ c.lt.s $f22,$f12 -/* f126b3c: 00000000 */ nop -/* f126b40: 4502000d */ bc1fl .L0f126b78 -/* f126b44: 8fae0190 */ lw $t6,0x190($sp) -/* f126b48: 460c3282 */ mul.s $f10,$f6,$f12 -/* f126b4c: 3c01437f */ lui $at,0x437f -/* f126b50: 44812000 */ mtc1 $at,$f4 -/* f126b54: 00000000 */ nop -/* f126b58: 46045202 */ mul.s $f8,$f10,$f4 -/* f126b5c: 4600418d */ trunc.w.s $f6,$f8 -/* f126b60: 44043000 */ mfc1 $a0,$f6 -/* f126b64: 00000000 */ nop -/* f126b68: 00802825 */ or $a1,$a0,$zero -/* f126b6c: 0fc49ccd */ jal func0f127334 -/* f126b70: 00803025 */ or $a2,$a0,$zero -/* f126b74: 8fae0190 */ lw $t6,0x190($sp) -.L0f126b78: -/* f126b78: 3c0dba00 */ lui $t5,0xba00 -/* f126b7c: 35ad0602 */ ori $t5,$t5,0x602 -/* f126b80: 25d90008 */ addiu $t9,$t6,0x8 -/* f126b84: afb90190 */ sw $t9,0x190($sp) -/* f126b88: 240f0040 */ addiu $t7,$zero,0x40 -/* f126b8c: adcf0004 */ sw $t7,0x4($t6) -/* f126b90: adcd0000 */ sw $t5,0x0($t6) -/* f126b94: 8fb80190 */ lw $t8,0x190($sp) -/* f126b98: 3c0bba00 */ lui $t3,0xba00 -/* f126b9c: 356b0402 */ ori $t3,$t3,0x402 -/* f126ba0: 270c0008 */ addiu $t4,$t8,0x8 -/* f126ba4: afac0190 */ sw $t4,0x190($sp) -/* f126ba8: 240900c0 */ addiu $t1,$zero,0xc0 -/* f126bac: af090004 */ sw $t1,0x4($t8) -/* f126bb0: af0b0000 */ sw $t3,0x0($t8) -/* f126bb4: 8fa80190 */ lw $t0,0x190($sp) -/* f126bb8: 3c0eba00 */ lui $t6,0xba00 -/* f126bbc: 35ce1301 */ ori $t6,$t6,0x1301 -/* f126bc0: 250a0008 */ addiu $t2,$t0,0x8 -/* f126bc4: afaa0190 */ sw $t2,0x190($sp) -/* f126bc8: 3c190008 */ lui $t9,0x8 -/* f126bcc: ad190004 */ sw $t9,0x4($t0) -/* f126bd0: ad0e0000 */ sw $t6,0x0($t0) -/* f126bd4: 8fad0190 */ lw $t5,0x190($sp) -/* f126bd8: 3c18ba00 */ lui $t8,0xba00 -/* f126bdc: 37181001 */ ori $t8,$t8,0x1001 -/* f126be0: 25af0008 */ addiu $t7,$t5,0x8 -/* f126be4: afaf0190 */ sw $t7,0x190($sp) -/* f126be8: 3c0c0001 */ lui $t4,0x1 -/* f126bec: adac0004 */ sw $t4,0x4($t5) -/* f126bf0: adb80000 */ sw $t8,0x0($t5) -/* f126bf4: 8fbf0084 */ lw $ra,0x84($sp) -/* f126bf8: 8fb70080 */ lw $s7,0x80($sp) -/* f126bfc: 8fb6007c */ lw $s6,0x7c($sp) -/* f126c00: 8fb50078 */ lw $s5,0x78($sp) -/* f126c04: 8fb40074 */ lw $s4,0x74($sp) -/* f126c08: 8fb30070 */ lw $s3,0x70($sp) -/* f126c0c: 8fb2006c */ lw $s2,0x6c($sp) -/* f126c10: 8fb10068 */ lw $s1,0x68($sp) -/* f126c14: 8fb00064 */ lw $s0,0x64($sp) -/* f126c18: d7be0058 */ ldc1 $f30,0x58($sp) -/* f126c1c: d7bc0050 */ ldc1 $f28,0x50($sp) -/* f126c20: d7ba0048 */ ldc1 $f26,0x48($sp) -/* f126c24: d7b80040 */ ldc1 $f24,0x40($sp) -/* f126c28: d7b60038 */ ldc1 $f22,0x38($sp) -/* f126c2c: d7b40030 */ ldc1 $f20,0x30($sp) -/* f126c30: 8fa20190 */ lw $v0,0x190($sp) -/* f126c34: 03e00008 */ jr $ra -/* f126c38: 27bd0190 */ addiu $sp,$sp,0x190 -); -#endif - -/** - * Render a sun and its artifacts. - */ -//Gfx *func0f126384(Gfx *gdl, f32 x, f32 y, f32 arg3, f32 size, s32 arg5, f32 arg6) -//{ -// f32 fa; -// f32 fb; -// f32 fc; -// f32 sp17c[2]; -// f32 sp174[2]; -// s32 sp15c[] = { 16, 32, 12, 32, 24, 64 }; // diameters? -// s32 sp144[] = { 60, 80, 225, 275, 470, 570 }; // distances from the sun? -// -// u32 colours[] = { // 12c -// 0xff99ffff, // pinkish/purple -// 0x9999ffff, // blue -// 0x99ffffff, // very light blue -// 0x99ff99ff, // green -// 0xffff99ff, // yellow -// 0xff9999ff, // red -// }; -// -// f32 sp128; -// f32 sp124; -// s32 scale; -// s32 i; -// f32 f2; -// f32 f12; -// f32 f20; -// f32 f0; -// -// scale = 1; -// -// if (g_ViRes == VIRES_HI) { -// scale = 2; -// } -// -// sp128 = (x - viGetViewWidth() * 0.5f) * 0.01f; -// sp124 = (y - viGetViewHeight() * 0.5f) * 0.01f; -// -// // Render the sun -// func0f0b39c0(&gdl, &g_TexLightGlareConfigs[6], 4, 0, 2, 1, NULL); -// -// gDPSetCycleType(gdl++, G_CYC_1CYCLE); -// gDPSetColorDither(gdl++, G_CD_BAYER); -// gDPSetAlphaDither(gdl++, G_AD_PATTERN); -// gDPSetRenderMode(gdl++, G_RM_AA_XLU_SURF, G_RM_AA_XLU_SURF2); -// gDPSetTexturePersp(gdl++, G_TP_NONE); -// gDPSetAlphaCompare(gdl++, G_AC_NONE); -// gDPSetTextureLOD(gdl++, G_TL_TILE); -// gDPSetTextureConvert(gdl++, G_TC_FILT); -// gDPSetTextureLUT(gdl++, G_TT_NONE); -// gDPSetTextureFilter(gdl++, G_TF_BILERP); -// gDPSetCombineLERP(gdl++, -// 0, 0, 0, ENVIRONMENT, TEXEL0, 0, ENVIRONMENT, 0, -// 0, 0, 0, ENVIRONMENT, TEXEL0, 0, ENVIRONMENT, 0); -// -// fa = (size * (0.5f + 0.5f * arg3) * (60.0f / viGetFovY())); -// -// gDPSetEnvColor(gdl++, 0xff, 0xff, 0xff, (s32)(arg6 * arg3 * 255.0f)); -// -// sp17c[0] = x; -// sp17c[1] = y; -// sp174[1] = fa; -// sp174[0] = fa * scale; -// -// func0f0b2150(&gdl, sp17c, sp174, g_TexLightGlareConfigs[6].width, g_TexLightGlareConfigs[6].height, 0, 1, 1, 1, 0, 1); -// -// // Render the artifacts -// func0f0b39c0(&gdl, &g_TexLightGlareConfigs[1], 4, 0, 2, 1, NULL); -// -// gDPSetCycleType(gdl++, G_CYC_1CYCLE); -// gDPSetColorDither(gdl++, G_CD_BAYER); -// gDPSetAlphaDither(gdl++, G_AD_PATTERN); -// gDPSetRenderMode(gdl++, G_RM_AA_XLU_SURF, G_RM_AA_XLU_SURF2); -// gDPSetTexturePersp(gdl++, G_TP_NONE); -// gDPSetAlphaCompare(gdl++, G_AC_NONE); -// gDPSetTextureLOD(gdl++, G_TL_TILE); -// gDPSetTextureConvert(gdl++, G_TC_FILT); -// gDPSetTextureLUT(gdl++, G_TT_NONE); -// gDPSetTextureFilter(gdl++, G_TF_BILERP); -// gDPSetCombineLERP(gdl++, -// 0, 0, 0, ENVIRONMENT, TEXEL0, 0, ENVIRONMENT, 0, -// 0, 0, 0, ENVIRONMENT, TEXEL0, 0, ENVIRONMENT, 0); -// -// for (i = 0; i < 6; i++) { -// // 90c -// if (arg5 < 90) { -// if (arg5 < 30) { -// f2 = arg5 * 0.033333335071802f; -// } else { -// f2 = 1.0f; -// } -// } else { -// f2 = (180.0f - (arg5 - 90)) * 0.0055555556900799f * 0.5f; -// -// if (f2 < 0.0f) { -// f2 = 0.0f; -// } -// -// f2 += 0.5f; -// } -// -// // 974 -// fb = x - sp144[i] * sp128; -// fc = y - sp144[i] * sp124; -// fa = sp15c[i] * 0.5f; -// -// gDPSetEnvColor(gdl++, colours[i] >> 24, (colours[i] >> 16) & 0xff, (colours[i] >> 8) & 0xff, (s32)((colours[i] & 0xff) * (arg6 * f2))); -// -// sp17c[0] = fb; -// sp17c[1] = fc; -// -// sp174[1] = fa; -// sp174[0] = fa * scale; -// -// func0f0b2150(&gdl, sp17c, sp174, g_TexLightGlareConfigs[1].width, g_TexLightGlareConfigs[1].height, 0, 0, 0, 0, 0, 1); -// } -// -// f20 = viGetViewWidth() * .5f - x; -// f0 = viGetViewHeight() * .5f - y; -// -// f12 = (40.0f - sqrtf(f20 * f20 + f0 * f0)) * 0.0125f; -// -// if (f12 < 0.0f) { -// f12 = 0.0f; -// } -// -// f12 += 0.1f; -// -// if (arg5 <= g_Vars.lvupdate240) { -// f12 = 0.0f; -// } -// -// if (f12 > 0.0f) { -// func0f127334(arg6 * f12 * 255.0f, arg6 * f12 * 255.0f, arg6 * f12 * 255.0f); -// } -// -// gDPSetColorDither(gdl++, G_CD_BAYER); -// gDPSetAlphaDither(gdl++, G_AD_PATTERN | G_CD_DISABLE); -// gDPSetTexturePersp(gdl++, G_TP_PERSP); -// gDPSetTextureLOD(gdl++, G_TL_LOD); -// -// return gdl; -//} - -/** - * Render a sun and its artifacts if on screen. - */ -Gfx *func0f126c3c(Gfx *gdl, f32 x, f32 y, f32 z, f32 arg4, f32 arg5) -{ - struct coord sp64; - - sp64.x = x; - sp64.y = y; - sp64.z = z; - - mtx4TransformVecInPlace(currentPlayerGetMatrix1740(), &sp64); - mtx4TransformVecInPlace(currentPlayerGetUnk1754(), &sp64); - - if (sp64.z > 1.0f) { - f32 xpos; - f32 ypos; - s16 viewlefti = viGetViewLeft(); - s16 viewtopi = viGetViewTop(); - s16 viewwidthi = viGetViewWidth(); - s16 viewheighti = viGetViewHeight(); - f32 viewleft = viewlefti; - f32 viewwidth = viewwidthi; - f32 viewtop = viewtopi; - f32 viewheight = viewheighti; - - xpos = viewleft + (sp64.f[0] / sp64.f[2] + 1.0f) * 0.5f * viewwidth; - ypos = viewtop + (-sp64.f[1] / sp64.f[2] + 1.0f) * 0.5f * viewheight; - - if (xpos >= viewleft && xpos < viewleft + viewwidth - && ypos >= viewtop && ypos < viewtop + viewheight) { - gdl = func0f126384(gdl, xpos, ypos, arg5, arg4, TICKS(90), 1.0f); - } - } - - return gdl; -} - -/** - * Render lens flares during teleport. - */ -Gfx *func0f126de8(Gfx *gdl) -{ - f32 sp154 = var80061630 * M_BADTAU; - s32 i; - f32 f20 = 0.0f; - f32 f20_2; - f32 f22; - f32 f22_3; - struct pad pad; - struct coord spe0; - f32 spd0[4]; - Mtxf mtx; - f32 f24; - f32 f30; - - if (g_Vars.currentplayer->teleportstate == TELEPORTSTATE_PREENTER) { - f20 = g_Vars.currentplayer->teleporttime / 24.0f * 0.33f; - } else if (g_Vars.currentplayer->teleportstate == TELEPORTSTATE_ENTERING) { - f20 = g_Vars.currentplayer->teleporttime / 48.0f * 0.66f + 0.33f; - } - - f30 = f20 * 6.0f; - f22 = f20 * 1.3f; - - if (f22 > 1.0f) { - f22 = 1.0f; - } - - if (f30 > 1.0f) { - f30 = 1.0f; - } - - f20 *= 1.7f; - - if (f20 > 1.0f) { - f20 = 1.0f; - } - - padUnpack(g_Vars.currentplayer->teleportpad, PADFIELD_POS | PADFIELD_LOOK | PADFIELD_UP, &pad); - - g_TeleportToPos.x = pad.pos.x; - g_TeleportToPos.y = pad.pos.y; - g_TeleportToPos.z = pad.pos.z; - g_TeleportToLook.x = pad.look.x; - g_TeleportToLook.y = pad.look.y; - g_TeleportToLook.z = pad.look.z; - g_TeleportToUp.x = pad.up.x; - g_TeleportToUp.y = pad.up.y; - g_TeleportToUp.z = pad.up.z; - - f22 = -cosf(f22 * M_PI) * 0.5f + .5f; - f24 = 100 * f22; - - for (i = 0; i < 5; i++) { - spe0.x = g_TeleportToLook.f[0] * f24; - spe0.y = g_TeleportToLook.f[1] * f24; - spe0.z = g_TeleportToLook.f[2] * f24; - - f22_3 = sp154 + i * 1.2564370632172f; - f20_2 = sinf(f22_3); - - spd0[0] = cosf(f22_3); - spd0[1] = g_TeleportToUp.f[0] * f20_2; - spd0[2] = g_TeleportToUp.f[1] * f20_2; - spd0[3] = g_TeleportToUp.f[2] * f20_2; - - quaternionToMtx(spd0, &mtx); - mtx4RotateVecInPlace(&mtx, &spe0); - - spe0.x += g_TeleportToPos.x; - spe0.y += g_TeleportToPos.y; - spe0.z += g_TeleportToPos.z; - - gdl = func0f126c3c(gdl, spe0.x, spe0.y, spe0.z, f20 * 200, f30); - } - - return gdl; -} - -/** - * Render teleport artifacts, and all suns and their artifacts. - */ -Gfx *func0f12715c(Gfx *gdl) -{ - struct environment *env = envGetCurrent(); - struct sun *sun; - s32 i; - - if (g_Vars.currentplayer->teleportstate == TELEPORTSTATE_PREENTER - || g_Vars.currentplayer->teleportstate == TELEPORTSTATE_ENTERING) { - gdl = func0f126de8(gdl); - } - - if (env->numsuns <= 0 || !var800844f0 || g_Vars.mplayerisrunning) { - return gdl; - } - - sun = env->suns; - - for (i = 0; i < env->numsuns; i++) { - if (sun->lens_flare && var800a33e8[i][2] > 1) { - struct bootbufferthing *thing = bbufGetIndex1Buffer(); - f32 value = func0f125a1c(thing->unk00[i]); - - if (value > 0.0f) { - gdl = func0f126384(gdl, var800a3410[i], var800a3420[i], value, sun->orb_size, var8007db94[i], var8007db88[i]); - } - } - - sun++; - } - - return gdl; -} - -void func0f127334(s32 arg0, s32 arg1, s32 arg2) -{ - g_Vars.currentplayer->unk1c28 = sqrtf(g_Vars.currentplayer->unk1c28 * g_Vars.currentplayer->unk1c28 + arg0 * arg0); - g_Vars.currentplayer->unk1c2c = sqrtf(g_Vars.currentplayer->unk1c2c * g_Vars.currentplayer->unk1c2c + arg1 * arg1); - g_Vars.currentplayer->unk1c30 = sqrtf(g_Vars.currentplayer->unk1c30 * g_Vars.currentplayer->unk1c30 + arg2 * arg2); - - if (g_Vars.currentplayer->unk1c28 > 0xcc) { - g_Vars.currentplayer->unk1c28 = 0xcc; - } - - if (g_Vars.currentplayer->unk1c2c > 0xcc) { - g_Vars.currentplayer->unk1c2c = 0xcc; - } - - if (g_Vars.currentplayer->unk1c30 > 0xcc) { - g_Vars.currentplayer->unk1c30 = 0xcc; - } -} - -s32 func0f127490(s32 arg0, s32 arg1) -{ - if (arg1 >= arg0) { - if (arg1 - arg0 > 8) { - return arg0 + 8; - } - - return arg1; - } - - if (arg0 - arg1 > 8) { - return arg0 - 8; - } - - return arg1; -} - -Gfx *func0f1274d8(Gfx *gdl) -{ - s32 value; - u32 stack; - - g_Vars.currentplayer->unk1c28 = func0f127490(g_Vars.currentplayer->unk1c34, g_Vars.currentplayer->unk1c28); - g_Vars.currentplayer->unk1c2c = func0f127490(g_Vars.currentplayer->unk1c38, g_Vars.currentplayer->unk1c2c); - g_Vars.currentplayer->unk1c30 = func0f127490(g_Vars.currentplayer->unk1c3c, g_Vars.currentplayer->unk1c30); - - value = (g_Vars.currentplayer->unk1c28 > g_Vars.currentplayer->unk1c2c && g_Vars.currentplayer->unk1c28 > g_Vars.currentplayer->unk1c30) - ? g_Vars.currentplayer->unk1c28 - : g_Vars.currentplayer->unk1c2c > g_Vars.currentplayer->unk1c30 - ? g_Vars.currentplayer->unk1c2c - : g_Vars.currentplayer->unk1c30; - - if (!g_InCutscene && EYESPYINACTIVE() && value > 0) { - f32 r = g_Vars.currentplayer->unk1c28 * (255.0f / value); - f32 g = g_Vars.currentplayer->unk1c2c * (255.0f / value); - f32 b = g_Vars.currentplayer->unk1c30 * (255.0f / value); - - f32 a = (g_Vars.currentplayer->unk1c28 - + g_Vars.currentplayer->unk1c2c - + g_Vars.currentplayer->unk1c30) * (1.0f / 3.0f); - - gDPSetTexturePersp(gdl++, G_TP_NONE); - gDPSetColorDither(gdl++, G_CD_DISABLE); - gDPSetRenderMode(gdl++, G_RM_CLD_SURF, G_RM_CLD_SURF2); - gDPSetCombineMode(gdl++, G_CC_PRIMITIVE, G_CC_PRIMITIVE); - - if (USINGDEVICE(DEVICE_NIGHTVISION)) { - r *= 0.5f; - g *= 0.75f; - b *= 0.5f; - } else if (USINGDEVICE(DEVICE_IRSCANNER)) { - r *= 0.75f; - g *= 0.5f; - b *= 0.5f; - } - - gDPSetPrimColor(gdl++, 0, 0, (s32)r, (s32)g, (s32)b, (s32)a); - - gDPFillRectangle(gdl++, - viGetViewLeft(), - viGetViewTop(), - viGetViewLeft() + viGetViewWidth(), - viGetViewTop() + viGetViewHeight()); - - gDPPipeSync(gdl++); - } - - gDPSetColorDither(gdl++, G_CD_BAYER); - gDPSetTexturePersp(gdl++, G_TP_PERSP); - - g_Vars.currentplayer->unk1c34 = g_Vars.currentplayer->unk1c28; - g_Vars.currentplayer->unk1c38 = g_Vars.currentplayer->unk1c2c; - g_Vars.currentplayer->unk1c3c = g_Vars.currentplayer->unk1c30; - g_Vars.currentplayer->unk1c28 = 0; - g_Vars.currentplayer->unk1c2c = 0; - g_Vars.currentplayer->unk1c30 = 0; - - return gdl; -} diff --git a/src/game/game_13c510.c b/src/game/game_13c510.c index 4a10f757d..1afa45ada 100644 --- a/src/game/game_13c510.c +++ b/src/game/game_13c510.c @@ -3,13 +3,12 @@ #include "constants.h" #include "game/dlights.h" #include "game/game_0b2150.h" -#include "game/game_0b3350.h" -#include "game/game_11f000.h" +#include "game/tex.h" +#include "game/sky.h" #include "game/game_13c510.h" #include "game/bg.h" #include "game/stagetable.h" -#include "game/game_165670.h" -#include "game/game_1668e0.h" +#include "game/room.h" #include "bss.h" #include "lib/vi.h" #include "lib/mtx.h" @@ -316,14 +315,14 @@ glabel func0f13c780 /* f13c854: afab00c0 */ sw $t3,0xc0($sp) /* f13c858: afa601c0 */ sw $a2,0x1c0($sp) /* f13c85c: 02002025 */ or $a0,$s0,$zero -/* f13c860: 0fc59a9b */ jal func0f166a6c +/* f13c860: 0fc59a9b */ jal room0f166a6c /* f13c864: 018d8821 */ addu $s1,$t4,$t5 /* f13c868: 0fc5722e */ jal currentPlayerGetScaleBg2Gfx /* f13c86c: 00000000 */ nop /* f13c870: 46000306 */ mov.s $f12,$f0 /* f13c874: 0c0057e2 */ jal mtx00015f88 /* f13c878: 02002825 */ or $a1,$s0,$zero -/* f13c87c: 0fc2d3f2 */ jal currentPlayerGetUnk006c +/* f13c87c: 0fc2d3f2 */ jal camGetUnk006c /* f13c880: 00000000 */ nop /* f13c884: 00402025 */ or $a0,$v0,$zero /* f13c888: 02002825 */ or $a1,$s0,$zero @@ -1106,7 +1105,7 @@ Gfx *func0f13d40c(Gfx *gdl) { struct stagetableentry *stage = stageGetCurrent(); - func0f0b39c0(&gdl, &g_TexLightGlareConfigs[stage->light_type], 4, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexLightGlareConfigs[stage->light_type], 4, 0, 2, 1, NULL); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetRenderMode(gdl++, G_RM_CLD_SURF, G_RM_CLD_SURF2); @@ -1464,7 +1463,7 @@ glabel func0f13d568 /* f13da30: 44059000 */ mfc1 $a1,$f18 /* f13da34: 4600328d */ trunc.w.s $f10,$f6 /* f13da38: 44065000 */ mfc1 $a2,$f10 -/* f13da3c: 0fc49ccd */ jal func0f127334 +/* f13da3c: 0fc49ccd */ jal sky0f127334 /* f13da40: 00000000 */ nop /* f13da44: 8fac0164 */ lw $t4,0x164($sp) /* f13da48: 3c18800a */ lui $t8,%hi(g_BgRooms) @@ -1511,13 +1510,13 @@ glabel func0f13d568 /* f13dae4: 460a3481 */ sub.s $f18,$f6,$f10 /* f13dae8: 14a8ffe4 */ bne $a1,$t0,.L0f13da7c /* f13daec: e4b2fffc */ swc1 $f18,-0x4($a1) -/* f13daf0: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f13daf0: 0fc2d5be */ jal camGetMatrix1740 /* f13daf4: 00000000 */ nop /* f13daf8: 00402025 */ or $a0,$v0,$zero /* f13dafc: 0c0056c4 */ jal mtx4RotateVecInPlace /* f13db00: 27a500e4 */ addiu $a1,$sp,0xe4 /* f13db04: 27a400e4 */ addiu $a0,$sp,0xe4 -/* f13db08: 0fc2d341 */ jal func0f0b4d04 +/* f13db08: 0fc2d341 */ jal cam0f0b4d04 /* f13db0c: 27a500dc */ addiu $a1,$sp,0xdc /* f13db10: c7a000ec */ lwc1 $f0,0xec($sp) /* f13db14: 3c013f80 */ lui $at,0x3f80 @@ -1645,7 +1644,7 @@ glabel func0f13d568 /* f13dcd8: 3c017f1b */ lui $at,%hi(var7f1b5a00) /* f13dcdc: c4245a00 */ lwc1 $f4,%lo(var7f1b5a00)($at) /* f13dce0: 46045682 */ mul.s $f26,$f10,$f4 -/* f13dce4: 0fc2d60a */ jal currentPlayerGetPerspAspect +/* f13dce4: 0fc2d60a */ jal camGetPerspAspect /* f13dce8: 00000000 */ nop /* f13dcec: 0c002f22 */ jal viGetViewWidth /* f13dcf0: 46000506 */ mov.s $f20,$f0 diff --git a/src/game/game_1531a0.c b/src/game/game_1531a0.c index 3c2e665c0..91c99d546 100644 --- a/src/game/game_1531a0.c +++ b/src/game/game_1531a0.c @@ -160,7 +160,7 @@ u32 var8007fbf8 = 0x00000000; u32 var8007fbfc = 0x00000000; #endif -void func0f1531a0(void) +void fontsInit(void) { // empty } diff --git a/src/game/game_175f90.c b/src/game/game_175f90.c index 8bcaf06f4..e8f400d6d 100644 --- a/src/game/game_175f90.c +++ b/src/game/game_175f90.c @@ -24,18 +24,3 @@ void func0f175fc8(void) mempDisablePool(MEMPOOL_5); filesStop(5); } - -char *func0f175ff0(void) -{ -#if VERSION >= VERSION_JPN_FINAL - return "Jul 19 2000 09:43:24"; -#elif VERSION >= VERSION_PAL_FINAL - return "Apr 28 2000 14:40:49"; -#elif VERSION >= VERSION_PAL_BETA - return "Apr 26 2000 16:36:48"; -#elif VERSION >= VERSION_NTSC_1_0 - return "Apr 6 2000 15:05:01"; -#else - return "Mar 22 2000 00:26:50"; -#endif -} diff --git a/src/game/gamefile.c b/src/game/gamefile.c index 21d9ebb8c..3c821e8ef 100644 --- a/src/game/gamefile.c +++ b/src/game/gamefile.c @@ -6,7 +6,7 @@ #include "game/player.h" #include "game/savebuffer.h" #include "game/bg.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/training.h" #include "game/gamefile.h" #include "game/mplayer/mplayer.h" @@ -231,11 +231,11 @@ void gamefileLoadDefaults(struct gamefile *file) for (i = 0; i < 30; i++) { for (j = 1; j != 5; j++) { - mpSetChallengeCompletedByAnyPlayerWithNumPlayers(i, j, false); + challengeSetCompletedByAnyPlayerWithNumPlayers(i, j, false); } } - mpDetermineUnlockedFeatures(); + challengeDetermineUnlockedFeatures(); for (i = 0; i < ARRAYCOUNT(g_GameFile.coopcompletions); i++) { g_GameFile.coopcompletions[i] = 0; @@ -325,11 +325,11 @@ s32 gamefileLoad(s32 device) for (i = 0; i < 30; i++) { for (j = 1; j < 5; j++) { - mpSetChallengeCompletedByAnyPlayerWithNumPlayers(i, j, savebufferReadBits(&buffer, 1)); + challengeSetCompletedByAnyPlayerWithNumPlayers(i, j, savebufferReadBits(&buffer, 1)); } } - mpDetermineUnlockedFeatures(); + challengeDetermineUnlockedFeatures(); for (i = 0; i < 3; i++) { g_GameFile.coopcompletions[i] = savebufferReadBits(&buffer, 21); @@ -488,7 +488,7 @@ s32 gamefileSave(s32 device, s32 fileid, u16 deviceserial) for (i = 0; i < 30; i++) { for (j = 1; j < 5; j++) { - savebufferOr(&buffer, mpIsChallengeCompletedByAnyPlayerWithNumPlayers(i, j), 1); + savebufferOr(&buffer, challengeIsCompletedByAnyPlayerWithNumPlayers(i, j), 1); } } @@ -891,7 +891,7 @@ glabel gamefileSave .NB0f10a910: /* f10a910: 02202025 */ or $a0,$s1,$zero .NB0f10a914: -/* f10a914: 0fc65912 */ jal mpIsChallengeCompletedByAnyPlayerWithNumPlayers +/* f10a914: 0fc65912 */ jal challengeIsCompletedByAnyPlayerWithNumPlayers /* f10a918: 02002825 */ or $a1,$s0,$zero /* f10a91c: 02802025 */ or $a0,$s4,$zero /* f10a920: 00402825 */ or $a1,$v0,$zero diff --git a/src/game/getitle.c b/src/game/getitle.c index d152b8baa..00483a7b0 100644 --- a/src/game/getitle.c +++ b/src/game/getitle.c @@ -1,6 +1,5 @@ #include #include "constants.h" -#include "game/game_01afc0.h" #include "bss.h" #include "lib/vi.h" #include "lib/dma.h" @@ -61,7 +60,7 @@ glabel getitle0f0155f0 /* f015630: 02001025 */ or $v0,$s0,$zero /* f015634: 13000007 */ beqz $t8,.L0f015654 /* f015638: 3c19ba00 */ lui $t9,0xba00 -/* f01563c: 0fc06bf0 */ jal func0f01afc0 +/* f01563c: 0fc06bf0 */ jal titleClear /* f015640: 02002025 */ or $a0,$s0,$zero /* f015644: 3c018006 */ lui $at,%hi(var80062494) /* f015648: 00408025 */ or $s0,$v0,$zero @@ -591,7 +590,7 @@ Gfx *getitle0f0155f0(Gfx *gdl, s32 arg1, u32 arg2); // gSPDisplayList(gdl++, &var80061360); // // if (var80062494) { -// gdl = func0f01afc0(gdl); +// gdl = titleClear(gdl); // var80062494 = 0; // } else { // gDPSetCycleType(gdl++, G_CYC_FILL); @@ -670,7 +669,7 @@ extern u8 _getitleSegmentRomStart; extern u8 _getitleSegmentStart; extern u8 _getitleSegmentEnd; -void getitleReset(void *addr, u32 arg1) +void getitleLoad(void *addr, u32 arg1) { u32 len = (u32)&_getitleSegmentEnd - (u32)&_getitleSegmentStart; diff --git a/src/game/game_00b420.c b/src/game/getitlereset.c similarity index 93% rename from src/game/game_00b420.c rename to src/game/getitlereset.c index 8c62895c5..1b8ce95f3 100644 --- a/src/game/game_00b420.c +++ b/src/game/getitlereset.c @@ -7,7 +7,7 @@ #include "data.h" #include "types.h" -void func0f00b420(void) +void getitleReset(void) { var80062410 = 0; var8009cc80 = mempAlloc(2 * sizeof(Mtx), MEMPOOL_STAGE); diff --git a/src/game/game_165670.c b/src/game/gfxreplace.c similarity index 99% rename from src/game/game_165670.c rename to src/game/gfxreplace.c index f8ee0bbaa..0ecd21e2d 100644 --- a/src/game/game_165670.c +++ b/src/game/gfxreplace.c @@ -1,8 +1,8 @@ #include #include "constants.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/bg.h" -#include "game/game_165670.h" +#include "game/gfxreplace.h" #include "bss.h" #include "lib/vi.h" #include "data.h" diff --git a/src/game/game_0abe70.c b/src/game/gunfx.c similarity index 98% rename from src/game/game_0abe70.c rename to src/game/gunfx.c index 7acb81dc5..a876e1df9 100644 --- a/src/game/game_0abe70.c +++ b/src/game/gunfx.c @@ -2,10 +2,10 @@ #include "constants.h" #include "game/acosfasinf.h" #include "game/bondgun.h" -#include "game/game_0abe70.h" +#include "game/gunfx.h" #include "game/game_0b0fd0.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/game_0c33f0.h" #include "game/gfxmemory.h" #include "game/file.h" @@ -23,7 +23,7 @@ const u32 var7f1acc1c[] = {0x73706200}; const u32 var7f1acc20[] = {0x73706900}; struct casing g_Casings[20]; -struct var8009da60 var8009da60[8]; +struct boltbeam g_BoltBeams[8]; struct lasersight g_LaserSights[4]; u32 var80070500 = 0x00000000; @@ -129,7 +129,7 @@ glabel var7f1acc48 /* f0ac140: 27bdff88 */ addiu $sp,$sp,-120 /* f0ac144: afbf0014 */ sw $ra,0x14($sp) /* f0ac148: afa40078 */ sw $a0,0x78($sp) -/* f0ac14c: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f0ac14c: 0fc2d5be */ jal camGetMatrix1740 /* f0ac150: afae0074 */ sw $t6,0x74($sp) /* f0ac154: 8fa40078 */ lw $a0,0x78($sp) /* f0ac158: 8faf0074 */ lw $t7,0x74($sp) @@ -372,7 +372,7 @@ glabel var7f1acc48 /* f0a9ea0: 27bdff88 */ addiu $sp,$sp,-120 /* f0a9ea4: afbf0014 */ sw $ra,0x14($sp) /* f0a9ea8: afa40078 */ sw $a0,0x78($sp) -/* f0a9eac: 0fc2cd16 */ jal currentPlayerGetMatrix1740 +/* f0a9eac: 0fc2cd16 */ jal camGetMatrix1740 /* f0a9eb0: afae0074 */ sw $t6,0x74($sp) /* f0a9eb4: 8fa40078 */ lw $a0,0x78($sp) /* f0a9eb8: 8faf0074 */ lw $t7,0x74($sp) @@ -637,7 +637,7 @@ glabel var7f1acc68 /* f0ac4dc: 24040002 */ addiu $a0,$zero,0x2 /* f0ac4e0: 0fc59e73 */ jal gfxAllocateColours /* f0ac4e4: 26101bb0 */ addiu $s0,$s0,7088 -/* f0ac4e8: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f0ac4e8: 0fc2d5be */ jal camGetMatrix1740 /* f0ac4ec: afa200c4 */ sw $v0,0xc4($sp) /* f0ac4f0: 3c0c8007 */ lui $t4,%hi(var80070500) /* f0ac4f4: afa20080 */ sw $v0,0x80($sp) @@ -696,7 +696,7 @@ glabel var7f1acc68 /* f0ac5c4: e7a800e4 */ swc1 $f8,0xe4($sp) /* f0ac5c8: 46023283 */ div.s $f10,$f6,$f2 /* f0ac5cc: e7a400e8 */ swc1 $f4,0xe8($sp) -/* f0ac5d0: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f0ac5d0: 0fc2d5be */ jal camGetMatrix1740 /* f0ac5d4: e7aa00ec */ swc1 $f10,0xec($sp) /* f0ac5d8: 00402025 */ or $a0,$v0,$zero /* f0ac5dc: 8fa500fc */ lw $a1,0xfc($sp) @@ -748,7 +748,7 @@ glabel var7f1acc68 /* f0ac680: 1000013e */ b .L0f0acb7c /* f0ac684: 8fa200f0 */ lw $v0,0xf0($sp) .L0f0ac688: -/* f0ac688: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f0ac688: 0fc2d5be */ jal camGetMatrix1740 /* f0ac68c: 00000000 */ nop /* f0ac690: 00402025 */ or $a0,$v0,$zero /* f0ac694: 8fa50108 */ lw $a1,0x108($sp) @@ -1053,7 +1053,7 @@ glabel var7f1acc68 /* f0acb18: 8fa500f4 */ lw $a1,0xf4($sp) /* f0acb1c: 27a400f0 */ addiu $a0,$sp,0xf0 /* f0acb20: 24060004 */ addiu $a2,$zero,0x4 -/* f0acb24: 0fc2ce70 */ jal func0f0b39c0 +/* f0acb24: 0fc2ce70 */ jal tex0f0b39c0 /* f0acb28: 24070001 */ addiu $a3,$zero,0x1 /* f0acb2c: 8fae00f0 */ lw $t6,0xf0($sp) /* f0acb30: 3c0d0430 */ lui $t5,0x430 @@ -1209,7 +1209,7 @@ glabel var7f1accf4 /* f0acc54: 01cf6821 */ addu $t5,$t6,$t7 /* f0acc58: afad00ec */ sw $t5,0xec($sp) /* f0acc5c: e7a20124 */ swc1 $f2,0x124($sp) -/* f0acc60: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f0acc60: 0fc2d5be */ jal camGetMatrix1740 /* f0acc64: e7aa00f0 */ swc1 $f10,0xf0($sp) /* f0acc68: afa200e4 */ sw $v0,0xe4($sp) /* f0acc6c: 82230001 */ lb $v1,0x1($s1) @@ -1656,7 +1656,7 @@ glabel var7f1accf4 /* f0ad2e8: 46001087 */ neg.s $f2,$f2 /* f0ad2ec: 44051000 */ mfc1 $a1,$f2 /* f0ad2f0: e7a000bc */ swc1 $f0,0xbc($sp) -/* f0ad2f4: 0fc2d39a */ jal func0f0b4e68 +/* f0ad2f4: 0fc2d39a */ jal cam0f0b4e68 /* f0ad2f8: e7a000b8 */ swc1 $f0,0xb8($sp) /* f0ad2fc: 3c014000 */ lui $at,0x4000 /* f0ad300: c7ac00c0 */ lwc1 $f12,0xc0($sp) @@ -1680,7 +1680,7 @@ glabel var7f1accf4 /* f0ad348: e7ae00d0 */ swc1 $f14,0xd0($sp) /* f0ad34c: e7aa00d4 */ swc1 $f10,0xd4($sp) .L0f0ad350: -/* f0ad350: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f0ad350: 0fc2d5de */ jal camGetUnk174c /* f0ad354: 00000000 */ nop /* f0ad358: 00402025 */ or $a0,$v0,$zero /* f0ad35c: 0c0056d9 */ jal mtx4TransformVecInPlace @@ -2153,7 +2153,7 @@ glabel var7f1accf4 /* f0ada94: 02202025 */ or $a0,$s1,$zero /* f0ada98: 24060004 */ addiu $a2,$zero,0x4 /* f0ada9c: 8fa70198 */ lw $a3,0x198($sp) -/* f0adaa0: 0fc2ce70 */ jal func0f0b39c0 +/* f0adaa0: 0fc2ce70 */ jal tex0f0b39c0 /* f0adaa4: afa00018 */ sw $zero,0x18($sp) /* f0adaa8: 8fac0190 */ lw $t4,0x190($sp) /* f0adaac: 3c0e0470 */ lui $t6,0x470 @@ -2182,7 +2182,7 @@ glabel var7f1accf4 /* f0adb08: 8fa70198 */ lw $a3,0x198($sp) /* f0adb0c: 8fa500ec */ lw $a1,0xec($sp) /* f0adb10: 02202025 */ or $a0,$s1,$zero -/* f0adb14: 0fc2ce70 */ jal func0f0b39c0 +/* f0adb14: 0fc2ce70 */ jal tex0f0b39c0 /* f0adb18: 24060004 */ addiu $a2,$zero,0x4 /* f0adb1c: 8fac0190 */ lw $t4,0x190($sp) /* f0adb20: 3c0eb100 */ lui $t6,0xb100 @@ -2198,7 +2198,7 @@ glabel var7f1accf4 /* f0adb44: 240d0001 */ addiu $t5,$zero,0x1 /* f0adb48: afad0014 */ sw $t5,0x14($sp) /* f0adb4c: afaa0010 */ sw $t2,0x10($sp) -/* f0adb50: 0fc2ce70 */ jal func0f0b39c0 +/* f0adb50: 0fc2ce70 */ jal tex0f0b39c0 /* f0adb54: afa00018 */ sw $zero,0x18($sp) /* f0adb58: 8fb80190 */ lw $t8,0x190($sp) /* f0adb5c: 3c190430 */ lui $t9,0x430 @@ -3987,7 +3987,7 @@ void casingRender(struct casing *casing, Gfx **gdlptr) mtx00015f04(0.1000000089407f, &mtx); mtx4SetTranslation(&casing->pos, &mtx); - mtx00015be4(currentPlayerGetMatrix1740(), &mtx, model.matrices); + mtx00015be4(camGetMatrix1740(), &mtx, model.matrices); // Check if any coordinate is out of range for (i = 0; i < 3; i++) { @@ -4032,13 +4032,13 @@ void casingsRender(Gfx **gdlptr) } } -s32 func0f0aec54(struct prop *prop) +s32 boltbeamFindByProp(struct prop *prop) { s32 result = -1; s32 i = 0; for (; i < 8 && result == -1; i++) { - if (var8009da60[i].unk00_prop == prop) { + if (g_BoltBeams[i].unk00_prop == prop) { result = i; } } @@ -4046,47 +4046,47 @@ s32 func0f0aec54(struct prop *prop) return result; } -s32 func0f0aeca8(struct prop *prop) +s32 boltbeamCreate(struct prop *prop) { - s32 index = func0f0aec54((struct prop *) -1); + s32 index = boltbeamFindByProp((struct prop *) -1); if (index >= 0) { - var8009da60[index].unk05 = 0; - var8009da60[index].unk00_prop = prop; + g_BoltBeams[index].unk05 = 0; + g_BoltBeams[index].unk00_prop = prop; } return index; } -void func0f0aecfc(struct prop *prop) +void boltbeamFree(struct prop *prop) { - s32 index = func0f0aec54(prop); + s32 index = boltbeamFindByProp(prop); if (index != -1) { - var8009da60[index].unk00 = -1; + g_BoltBeams[index].unk00 = -1; } } void func0f0aed3c(s32 index, struct coord *coord) { - var8009da60[index].unk14.x = coord->x; - var8009da60[index].unk14.y = coord->y; - var8009da60[index].unk14.z = coord->z; + g_BoltBeams[index].unk14.x = coord->x; + g_BoltBeams[index].unk14.y = coord->y; + g_BoltBeams[index].unk14.z = coord->z; } void func0f0aed70(s32 index, struct coord *coord) { - var8009da60[index].unk20.x = coord->x; - var8009da60[index].unk20.y = coord->y; - var8009da60[index].unk20.z = coord->z; + g_BoltBeams[index].unk20.x = coord->x; + g_BoltBeams[index].unk20.y = coord->y; + g_BoltBeams[index].unk20.z = coord->z; } GLOBAL_ASM( glabel func0f0aeda4 /* f0aeda4: 00047080 */ sll $t6,$a0,0x2 /* f0aeda8: 01c47023 */ subu $t6,$t6,$a0 -/* f0aedac: 3c0f800a */ lui $t7,%hi(var8009da60) -/* f0aedb0: 25efda60 */ addiu $t7,$t7,%lo(var8009da60) +/* f0aedac: 3c0f800a */ lui $t7,%hi(g_BoltBeams) +/* f0aedb0: 25efda60 */ addiu $t7,$t7,%lo(g_BoltBeams) /* f0aedb4: 000e7100 */ sll $t6,$t6,0x4 /* f0aedb8: 01cf1021 */ addu $v0,$t6,$t7 /* f0aedbc: c4440028 */ lwc1 $f4,0x28($v0) @@ -4153,43 +4153,43 @@ glabel func0f0aeda4 void func0f0aeea8(s32 index, f32 arg1) { - var8009da60[index].unk05 = 1; - var8009da60[index].unk00 = 0; - var8009da60[index].unk2c = arg1; + g_BoltBeams[index].unk05 = 1; + g_BoltBeams[index].unk00 = 0; + g_BoltBeams[index].unk2c = arg1; } -Gfx *func0f0aeed8(Gfx *gdl) +Gfx *boltbeamsRender(Gfx *gdl) { s32 i; - for (i = 0; i < ARRAYCOUNT(var8009da60); i++) { - if (var8009da60[i].unk00 != -1) { - gdl = func0f0ac4b8(gdl, g_TexLaserConfigs, 1, &var8009da60[i].unk14, 0xafafff00, 2, &var8009da60[i].unk20, 0xafafff7f); + for (i = 0; i < ARRAYCOUNT(g_BoltBeams); i++) { + if (g_BoltBeams[i].unk00 != -1) { + gdl = func0f0ac4b8(gdl, g_TexLaserConfigs, 1, &g_BoltBeams[i].unk14, 0xafafff00, 2, &g_BoltBeams[i].unk20, 0xafafff7f); } } return gdl; } -void func0f0aefb8(void) +void boltbeamsTick(void) { s32 i; for (i = 0; i < 8; i++) { - if (var8009da60[i].unk00 != -1 && var8009da60[i].unk05 == 1) { + if (g_BoltBeams[i].unk00 != -1 && g_BoltBeams[i].unk05 == 1) { f32 value = sqrtf( - (var8009da60[i].unk20.f[0] - var8009da60[i].unk14.f[0]) * (var8009da60[i].unk20.f[0] - var8009da60[i].unk14.f[0]) + - (var8009da60[i].unk20.f[1] - var8009da60[i].unk14.f[1]) * (var8009da60[i].unk20.f[1] - var8009da60[i].unk14.f[1]) + - (var8009da60[i].unk20.f[2] - var8009da60[i].unk14.f[2]) * (var8009da60[i].unk20.f[2] - var8009da60[i].unk14.f[2])); + (g_BoltBeams[i].unk20.f[0] - g_BoltBeams[i].unk14.f[0]) * (g_BoltBeams[i].unk20.f[0] - g_BoltBeams[i].unk14.f[0]) + + (g_BoltBeams[i].unk20.f[1] - g_BoltBeams[i].unk14.f[1]) * (g_BoltBeams[i].unk20.f[1] - g_BoltBeams[i].unk14.f[1]) + + (g_BoltBeams[i].unk20.f[2] - g_BoltBeams[i].unk14.f[2]) * (g_BoltBeams[i].unk20.f[2] - g_BoltBeams[i].unk14.f[2])); #if VERSION >= VERSION_PAL_BETA - value -= var8009da60[i].unk2c * g_Vars.lvupdate240freal / 60.0f; + value -= g_BoltBeams[i].unk2c * g_Vars.lvupdate240freal / 60.0f; #else - value -= var8009da60[i].unk2c * g_Vars.lvupdate240f / 60.0f; + value -= g_BoltBeams[i].unk2c * g_Vars.lvupdate240f / 60.0f; #endif if (value < 0) { - var8009da60[i].unk00 = -1; + g_BoltBeams[i].unk00 = -1; } else { func0f0aeda4(i, value, 0); } @@ -4376,7 +4376,7 @@ glabel var7f1acd8c /* f0af32c: af090004 */ sw $t1,0x4($t8) /* f0af330: 0c00566c */ jal mtx4LoadIdentity /* f0af334: af080000 */ sw $t0,0x0($t8) -/* f0af338: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f0af338: 0fc2d5be */ jal camGetMatrix1740 /* f0af33c: 00000000 */ nop /* f0af340: 00402025 */ or $a0,$v0,$zero /* f0af344: 0c0056f8 */ jal mtx00015be0 @@ -4384,7 +4384,7 @@ glabel var7f1acd8c /* f0af34c: 27b10124 */ addiu $s1,$sp,0x124 /* f0af350: 0c00566c */ jal mtx4LoadIdentity /* f0af354: 02202025 */ or $a0,$s1,$zero -/* f0af358: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f0af358: 0fc2d5de */ jal camGetUnk174c /* f0af35c: 00000000 */ nop /* f0af360: 00402025 */ or $a0,$v0,$zero /* f0af364: 0c0056f8 */ jal mtx00015be0 @@ -4396,7 +4396,7 @@ glabel var7f1acd8c /* f0af37c: e7a00154 */ swc1 $f0,0x154($sp) /* f0af380: 0c00566c */ jal mtx4LoadIdentity /* f0af384: e7a0015c */ swc1 $f0,0x15c($sp) -/* f0af388: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f0af388: 0fc2d5be */ jal camGetMatrix1740 /* f0af38c: 00000000 */ nop /* f0af390: 00402025 */ or $a0,$v0,$zero /* f0af394: 0c0056f8 */ jal mtx00015be0 @@ -4631,7 +4631,7 @@ glabel var7f1acd8c /* f0af6f8: afaf0010 */ sw $t7,0x10($sp) /* f0af6fc: afb80014 */ sw $t8,0x14($sp) /* f0af700: afa00018 */ sw $zero,0x18($sp) -/* f0af704: 0fc2ce70 */ jal func0f0b39c0 +/* f0af704: 0fc2ce70 */ jal tex0f0b39c0 /* f0af708: 24a50030 */ addiu $a1,$a1,0x0030 /* f0af70c: 44800000 */ mtc1 $zero,$f0 /* f0af710: c7aa00dc */ lwc1 $f10,0xdc($sp) @@ -4886,16 +4886,16 @@ glabel var7f1acd8c // gDPSetCombineMode(gdl++, G_CC_BLENDIA, G_CC_BLENDIA); // // mtx4LoadIdentity(&sp164); -// mtx00015be0(currentPlayerGetMatrix1740(), &sp164); +// mtx00015be0(camGetMatrix1740(), &sp164); // mtx4LoadIdentity(&sp124); -// mtx00015be0(currentPlayerGetUnk174c(), &sp124); +// mtx00015be0(camGetUnk174c(), &sp124); // // sp124.m[3][1] = 0; // sp124.m[3][0] = 0; // sp124.m[3][2] = 0; // // mtx4LoadIdentity(&sp1b0); -// mtx00015be0(currentPlayerGetMatrix1740(), &sp1b0); +// mtx00015be0(camGetMatrix1740(), &sp1b0); // // campos.x = player->cam_pos.x; // campos.y = player->cam_pos.y; @@ -4986,7 +4986,7 @@ glabel var7f1acd8c // } // } // -// func0f0b39c0(&gdl, &g_TexGeneralConfigs[4], 4, 0, 2, 1, NULL); +// tex0f0b39c0(&gdl, &g_TexGeneralConfigs[4], 4, 0, 2, 1, NULL); // // // 724 // if (rot.f[0] == 0 && rot.f[2] == 0) { @@ -5174,18 +5174,18 @@ glabel var7f1acd90 /* f0afc08: 27a401e8 */ addiu $a0,$sp,0x1e8 /* f0afc0c: 24060004 */ addiu $a2,$zero,0x4 /* f0afc10: 00003825 */ or $a3,$zero,$zero -/* f0afc14: 0fc2ce70 */ jal func0f0b39c0 +/* f0afc14: 0fc2ce70 */ jal tex0f0b39c0 /* f0afc18: 24a50024 */ addiu $a1,$a1,0x0024 /* f0afc1c: 0c00566c */ jal mtx4LoadIdentity /* f0afc20: 27a4014c */ addiu $a0,$sp,0x14c -/* f0afc24: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f0afc24: 0fc2d5be */ jal camGetMatrix1740 /* f0afc28: 00000000 */ nop /* f0afc2c: 00402025 */ or $a0,$v0,$zero /* f0afc30: 0c0056f8 */ jal mtx00015be0 /* f0afc34: 27a5014c */ addiu $a1,$sp,0x14c /* f0afc38: 0c00566c */ jal mtx4LoadIdentity /* f0afc3c: 27a4010c */ addiu $a0,$sp,0x10c -/* f0afc40: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f0afc40: 0fc2d5de */ jal camGetUnk174c /* f0afc44: 00000000 */ nop /* f0afc48: 00402025 */ or $a0,$v0,$zero /* f0afc4c: 0c0056f8 */ jal mtx00015be0 @@ -5197,7 +5197,7 @@ glabel var7f1acd90 /* f0afc64: e7b4013c */ swc1 $f20,0x13c($sp) /* f0afc68: 0c00566c */ jal mtx4LoadIdentity /* f0afc6c: e7b40144 */ swc1 $f20,0x144($sp) -/* f0afc70: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f0afc70: 0fc2d5be */ jal camGetMatrix1740 /* f0afc74: 00000000 */ nop /* f0afc78: 00402025 */ or $a0,$v0,$zero /* f0afc7c: 0c0056f8 */ jal mtx00015be0 @@ -5609,19 +5609,19 @@ glabel var7f1acd90 // gDPSetCombineMode(gdl++, G_CC_BLENDIA, G_CC_BLENDIA); // gSPClearGeometryMode(gdl++, G_CULL_BOTH); // -// func0f0b39c0(&gdl, &g_TexGeneralConfigs[3], 4, 0, 2, 1, NULL); +// tex0f0b39c0(&gdl, &g_TexGeneralConfigs[3], 4, 0, 2, 1, NULL); // mtx4LoadIdentity(&sp14c); // -// mtx00015be0(currentPlayerGetMatrix1740(), &sp14c); +// mtx00015be0(camGetMatrix1740(), &sp14c); // mtx4LoadIdentity(&sp10c); -// mtx00015be0(currentPlayerGetUnk174c(), &sp10c); +// mtx00015be0(camGetUnk174c(), &sp10c); // // sp10c.m[3][1] = 0; // sp10c.m[3][0] = 0; // sp10c.m[3][2] = 0; // // mtx4LoadIdentity(&sp198); -// mtx00015be0(currentPlayerGetMatrix1740(), &sp198); +// mtx00015be0(camGetMatrix1740(), &sp198); // // campos.x = player->cam_pos.x; // campos.y = player->cam_pos.y; diff --git a/src/game/lasersightsreset.c b/src/game/gunfxreset.c similarity index 79% rename from src/game/lasersightsreset.c rename to src/game/gunfxreset.c index 0ea68e3d2..ab0ae527b 100644 --- a/src/game/lasersightsreset.c +++ b/src/game/gunfxreset.c @@ -1,8 +1,6 @@ #include #include "constants.h" -#include "game/lasersights.h" #include "game/chr.h" -#include "game/game_02cde0.h" #include "game/prop.h" #include "game/botcmd.h" #include "game/mplayer/mplayer.h" @@ -14,12 +12,12 @@ #include "data.h" #include "types.h" -void func0f0147d0(void) +void boltbeamsReset(void) { s32 i; for (i = 0; i < 8; i++) { - var8009da60[i].unk00 = -1; + g_BoltBeams[i].unk00 = -1; } } diff --git a/src/game/langtick.c b/src/game/langtick.c index b1e9b1e12..d5bb3f195 100644 --- a/src/game/langtick.c +++ b/src/game/langtick.c @@ -1,6 +1,6 @@ #include #include "constants.h" -#include "game/game_1668e0.h" +#include "game/room.h" #include "bss.h" #include "data.h" #include "types.h" diff --git a/src/game/lv.c b/src/game/lv.c index 7449cae48..a0233abb8 100644 --- a/src/game/lv.c +++ b/src/game/lv.c @@ -21,28 +21,21 @@ #include "game/filemgr.h" #include "game/game_006900.h" #include "game/game_00b820.h" -#include "game/game_00c490.h" -#include "game/game_013550.h" -#include "game/game_0147a0.h" -#include "game/game_015010.h" -#include "game/game_01b0a0.h" -#include "game/game_01d990.h" -#include "game/game_0abe70.h" +#include "game/gunfx.h" #include "game/game_0b0fd0.h" #include "game/game_0b28d0.h" -#include "game/game_0b63b0.h" -#include "game/game_10c9c0.h" -#include "game/game_11f000.h" +#include "game/portal.h" +#include "game/fmb.h" +#include "game/sky.h" #include "game/game_13c510.h" #include "game/game_1531a0.h" -#include "game/game_165670.h" #include "game/game_176080.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/gfxmemory.h" +#include "game/gunfx.h" #include "game/hudmsg.h" #include "game/inv.h" #include "game/lang.h" -#include "game/lasersights.h" #include "game/lv.h" #include "game/menu.h" #include "game/mplayer/mplayer.h" @@ -52,17 +45,21 @@ #include "game/nbomb.h" #include "game/objectives.h" #include "game/pak.h" +#include "game/pdmode.h" #include "game/player.h" #include "game/playermgr.h" #include "game/playerreset.h" #include "game/prop.h" #include "game/propobj.h" +#include "game/propobjstop.h" #include "game/propsnd.h" #include "game/savebuffer.h" +#include "game/setup.h" #include "game/shards.h" #include "game/sky.h" #include "game/sparks.h" #include "game/splat.h" +#include "game/stars.h" #include "game/stubs/game_013540.h" #include "game/stubs/game_015260.h" #include "game/stubs/game_015270.h" @@ -292,7 +289,7 @@ void lvReset(s32 stagenum) musicReset(); func0f011124(true); - func0f013b80(); + surfaceReset(); texReset(); fontsReset(); hudmsgsReset(); @@ -316,7 +313,7 @@ void lvReset(s32 stagenum) tilesReset(); bgReset(g_Vars.stagenum); bgBuildTables(g_Vars.stagenum); - func0f0147a0(g_Vars.stagenum); + skyReset(g_Vars.stagenum); if (g_Vars.normmplayerisrunning) { musicSetStageAndStartMusic(stagenum); @@ -362,13 +359,13 @@ void lvReset(s32 stagenum) vtxstoreReset(); func0f011110(); propsndReset(); - setupReset(stagenum); + setupLoadFiles(stagenum); scenarioReset(); varsReset(); propsReset(); chrmgrReset(); - headsReset(stagenum); - propsCreate(stagenum); + bodiesReset(stagenum); + setupCreateProps(stagenum); tagsReset(); explosionsReset(); smokeReset(); @@ -383,12 +380,12 @@ void lvReset(s32 stagenum) case STAGE_DEFECTION: case STAGE_ATTACKSHIP: case STAGE_TEST_OLD: - skyReset(); + starsReset(); break; } func0f0099a4(); - func0f0147d0(); + boltbeamsReset(); lasersightsReset(); stub0f013540(); shardsReset(); @@ -430,7 +427,7 @@ void lvReset(s32 stagenum) } acousticReset(); - func0f0b65f8(); + portalsReset(); lightsReset(); setCurrentPlayerNum(0); } @@ -447,7 +444,7 @@ void lvReset(s32 stagenum) } if (stagenum == STAGE_4MBMENU) { - fmbmenuReset(); + fmbReset(); } if (IS8MB()) { @@ -1179,7 +1176,7 @@ Gfx *lvRender(Gfx *gdl) } gdl = viRenderViewportEdges(gdl); - gdl = func0f11f984(gdl); + gdl = skyRender(gdl); bgTick(); lightsTick(); propsTickPlayer(islastplayer); @@ -1311,7 +1308,7 @@ Gfx *lvRender(Gfx *gdl) gdl = lvRenderManPosIfEnabled(gdl); #endif } else { - gdl = func0f0aeed8(gdl); + gdl = boltbeamsRender(gdl); if (g_Vars.currentplayer->visionmode != VISIONMODE_XRAY) { gdl = func0f15b114(gdl); @@ -1626,7 +1623,7 @@ Gfx *lvRender(Gfx *gdl) #endif } - gdl = func0f1274d8(gdl); + gdl = sky0f1274d8(gdl); gdl = amRender(gdl); mtx00016748(1); @@ -2291,8 +2288,8 @@ void lvTick(void) lvUpdateCutsceneTime(); vtxstoreTick(); lvUpdateSoloHandicaps(); - func0f01d8c0(); - func0f01d990(); + roomsTick(); + skyTick(); casingsTick(); shardsTick(); sparksTick(); @@ -2312,7 +2309,7 @@ void lvTick(void) pakExecuteDebugOperations(); lightingTick(); func0f0b2904(); - func0f0aefb8(); + boltbeamsTick(); amTick(); menuTick(); scenarioTick(); diff --git a/src/game/mainmenu.c b/src/game/mainmenu.c index 878bbbb8b..d718c0cbc 100644 --- a/src/game/mainmenu.c +++ b/src/game/mainmenu.c @@ -1,13 +1,13 @@ #include #include "constants.h" #include "game/cheats.h" -#include "game/game_00c490.h" +#include "game/setup.h" #include "game/title.h" -#include "game/game_01b0a0.h" +#include "game/pdmode.h" #include "game/objectives.h" #include "game/bondgun.h" #include "game/game_0b0fd0.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/player.h" #include "game/menu.h" #include "game/mainmenu.h" @@ -16,7 +16,7 @@ #include "game/game_1531a0.h" #include "game/lv.h" #include "game/mplayer/ingame.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/training.h" #include "game/gamefile.h" #include "game/lang.h" @@ -2693,7 +2693,7 @@ glabel var7f1b2dfc /* f104d1c: afa00018 */ sw $zero,0x18($sp) /* f104d20: 02002025 */ or $a0,$s0,$zero /* f104d24: 24060002 */ addiu $a2,$zero,0x2 -/* f104d28: 0fc2ce70 */ jal func0f0b39c0 +/* f104d28: 0fc2ce70 */ jal tex0f0b39c0 /* f104d2c: 00003825 */ or $a3,$zero,$zero /* f104d30: 8faf0138 */ lw $t7,0x138($sp) /* f104d34: 8faa0134 */ lw $t2,0x134($sp) @@ -2826,7 +2826,7 @@ glabel var7f1b2dfc /* f104f28: 00003825 */ or $a3,$zero,$zero /* f104f2c: afa00018 */ sw $zero,0x18($sp) /* f104f30: afaa0134 */ sw $t2,0x134($sp) -/* f104f34: 0fc2ce70 */ jal func0f0b39c0 +/* f104f34: 0fc2ce70 */ jal tex0f0b39c0 /* f104f38: 24a501b0 */ addiu $a1,$a1,0x1b0 /* f104f3c: 8fb80138 */ lw $t8,0x138($sp) /* f104f40: 8faa0134 */ lw $t2,0x134($sp) @@ -2990,7 +2990,7 @@ glabel var7f1b2dfc /* f1051a0: afae0010 */ sw $t6,0x10($sp) /* f1051a4: afa00018 */ sw $zero,0x18($sp) /* f1051a8: afaa0134 */ sw $t2,0x134($sp) -/* f1051ac: 0fc2ce70 */ jal func0f0b39c0 +/* f1051ac: 0fc2ce70 */ jal tex0f0b39c0 /* f1051b0: 24a50198 */ addiu $a1,$a1,0x198 /* f1051b4: 8fb90138 */ lw $t9,0x138($sp) /* f1051b8: 8faa0134 */ lw $t2,0x134($sp) @@ -3696,7 +3696,7 @@ glabel var7f1ad0fcnb /* f100b1c: afa00018 */ sw $zero,0x18($sp) /* f100b20: 02002025 */ or $a0,$s0,$zero /* f100b24: 24060001 */ addiu $a2,$zero,0x1 -/* f100b28: 0fc2c5c8 */ jal func0f0b39c0 +/* f100b28: 0fc2c5c8 */ jal tex0f0b39c0 /* f100b2c: 00003825 */ or $a3,$zero,$zero /* f100b30: 8faf0130 */ lw $t7,0x130($sp) /* f100b34: 8faa012c */ lw $t2,0x12c($sp) @@ -3815,7 +3815,7 @@ glabel var7f1ad0fcnb /* f100cf0: 00003825 */ or $a3,$zero,$zero /* f100cf4: afa00018 */ sw $zero,0x18($sp) /* f100cf8: afaa012c */ sw $t2,0x12c($sp) -/* f100cfc: 0fc2c5c8 */ jal func0f0b39c0 +/* f100cfc: 0fc2c5c8 */ jal tex0f0b39c0 /* f100d00: 24a501b0 */ addiu $a1,$a1,0x1b0 /* f100d04: 8fae0130 */ lw $t6,0x130($sp) /* f100d08: 8faa012c */ lw $t2,0x12c($sp) @@ -3965,7 +3965,7 @@ glabel var7f1ad0fcnb /* f100f30: afaf0010 */ sw $t7,0x10($sp) /* f100f34: afa00018 */ sw $zero,0x18($sp) /* f100f38: afaa012c */ sw $t2,0x12c($sp) -/* f100f3c: 0fc2c5c8 */ jal func0f0b39c0 +/* f100f3c: 0fc2c5c8 */ jal tex0f0b39c0 /* f100f40: 24a50198 */ addiu $a1,$a1,0x198 /* f100f44: 8fae0130 */ lw $t6,0x130($sp) /* f100f48: 8faa012c */ lw $t2,0x12c($sp) @@ -6184,7 +6184,7 @@ s32 menuhandlerMainMenuCombatSimulator(s32 operation, struct menuitem *item, uni g_Vars.bondplayernum = 0; g_Vars.coopplayernum = -1; g_Vars.antiplayernum = -1; - mpDetermineUnlockedFeatures(); + challengeDetermineUnlockedFeatures(); g_Vars.mpsetupmenu = MPSETUPMENU_GENERAL; func0f0f820c(&g_CombatSimulatorMenuDialog, MENUROOT_MPSETUP); func0f0f8300(); diff --git a/src/game/menu.c b/src/game/menu.c index 1926eb6b1..2c63c9d0e 100644 --- a/src/game/menu.c +++ b/src/game/menu.c @@ -2,15 +2,14 @@ #include "constants.h" #include "game/camdraw.h" #include "game/game_006900.h" -#include "game/game_006bd0.h" -#include "game/game_02cde0.h" +#include "game/body.h" #include "game/objectives.h" -#include "game/game_096ca0.h" +#include "game/quaternion.h" #include "game/bondgun.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/player.h" -#include "game/game_1a7560.h" +#include "game/modeldef.h" #include "game/savebuffer.h" #include "game/menugfx.h" #include "game/menuitem.h" @@ -24,7 +23,7 @@ #include "game/music.h" #include "game/texdecompress.h" #include "game/mplayer/setup.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/training.h" #include "game/game_1a78b0.h" #include "game/gamefile.h" @@ -3900,7 +3899,7 @@ void func0f0f372c(struct menu840 *arg0, f32 x, f32 y, f32 arg3, f32 arg4, f32 ar void func0f0f37a4(struct menu840 *arg0) { if (arg0->unk010 == 0x4fac5ace) { - mpClearCurrentChallenge(); + challengeUnsetCurrent(); } arg0->unk000 = 0; @@ -4054,7 +4053,7 @@ glabel var7f1b3658jf .JF0f0f4620: /* f0f4620: 54610004 */ bnel $v1,$at,.JF0f0f4634 /* f0f4624: 92020000 */ lbu $v0,0x0($s0) -/* f0f4628: 0fc672f2 */ jal mpClearCurrentChallenge +/* f0f4628: 0fc672f2 */ jal challengeUnsetCurrent /* f0f462c: 00000000 */ nop /* f0f4630: 92020000 */ lbu $v0,0x0($s0) .JF0f0f4634: @@ -4224,7 +4223,7 @@ glabel var7f1b3658jf /* f0f489c: afa00010 */ sw $zero,0x10($sp) /* f0f48a0: 8fa50400 */ lw $a1,0x400($sp) /* f0f48a4: 8fa40404 */ lw $a0,0x404($sp) -/* f0f48a8: 0fc0b813 */ jal func0f02ce8c +/* f0f48a8: 0fc0b813 */ jal body0f02ce8c /* f0f48ac: afad0014 */ sw $t5,0x14($sp) /* f0f48b0: 10000027 */ b .JF0f0f4950 /* f0f48b4: 8e0b000c */ lw $t3,0xc($s0) @@ -4850,7 +4849,7 @@ glabel var7f1b3658jf /* f0f51e4: 27a40390 */ addiu $a0,$sp,0x390 .JF0f0f51e8: /* f0f51e8: 27a50398 */ addiu $a1,$sp,0x398 -/* f0f51ec: 0fc2d72f */ jal func0f0b4c3c +/* f0f51ec: 0fc2d72f */ jal cam0f0b4c3c /* f0f51f0: 3c063f80 */ lui $a2,0x3f80 /* f0f51f4: 0c005654 */ jal mtx4LoadIdentity /* f0f51f8: 27a40310 */ addiu $a0,$sp,0x310 @@ -4995,7 +4994,7 @@ glabel var7f1b3658jf /* f0f53f8: 37180040 */ ori $t8,$t8,0x40 /* f0f53fc: afa90440 */ sw $t1,0x440($sp) /* f0f5400: ac580000 */ sw $t8,0x0($v0) -/* f0f5404: 0fc2d81a */ jal currentPlayerGetUnk1750 +/* f0f5404: 0fc2d81a */ jal camGetUnk1750 /* f0f5408: 00408825 */ move $s1,$v0 /* f0f540c: 0c012b34 */ jal osVirtualToPhysical /* f0f5410: 00402025 */ move $a0,$v0 @@ -5341,7 +5340,7 @@ glabel var7f1b3658jf /* f0f590c: c4660034 */ lwc1 $f6,0x34($v1) /* f0f5910: e7a600d4 */ swc1 $f6,0xd4($sp) /* f0f5914: c46a0038 */ lwc1 $f10,0x38($v1) -/* f0f5918: 0fc2d761 */ jal func0f0b4d04 +/* f0f5918: 0fc2d761 */ jal cam0f0b4d04 /* f0f591c: e7aa00d8 */ swc1 $f10,0xd8($sp) /* f0f5920: 0c002eeb */ jal viGetWidth /* f0f5924: 00000000 */ nop @@ -5419,7 +5418,7 @@ glabel var7f1b3658jf /* f0f5a2c: 25ec0008 */ addiu $t4,$t7,0x8 /* f0f5a30: afac0440 */ sw $t4,0x440($sp) /* f0f5a34: adf90000 */ sw $t9,0x0($t7) -/* f0f5a38: 0fc2da0a */ jal currentPlayerGetUnk175c +/* f0f5a38: 0fc2da0a */ jal camGetUnk175c /* f0f5a3c: afaf00b8 */ sw $t7,0xb8($sp) /* f0f5a40: 8fa500b8 */ lw $a1,0xb8($sp) /* f0f5a44: 3c180382 */ lui $t8,0x382 @@ -5429,7 +5428,7 @@ glabel var7f1b3658jf /* f0f5a54: 25cd0008 */ addiu $t5,$t6,0x8 /* f0f5a58: afad0440 */ sw $t5,0x440($sp) /* f0f5a5c: add80000 */ sw $t8,0x0($t6) -/* f0f5a60: 0fc2da0a */ jal currentPlayerGetUnk175c +/* f0f5a60: 0fc2da0a */ jal camGetUnk175c /* f0f5a64: afae00b4 */ sw $t6,0xb4($sp) /* f0f5a68: 8fa600b4 */ lw $a2,0xb4($sp) /* f0f5a6c: 24490010 */ addiu $t1,$v0,0x10 @@ -5544,7 +5543,7 @@ glabel var7f1b3658jf /* f0f5c14: afa00018 */ sw $zero,0x18($sp) /* f0f5c18: 00002825 */ move $a1,$zero /* f0f5c1c: 24060002 */ li $a2,0x2 -/* f0f5c20: 0fc2d290 */ jal func0f0b39c0 +/* f0f5c20: 0fc2d290 */ jal tex0f0b39c0 /* f0f5c24: 00003825 */ move $a3,$zero /* f0f5c28: 8fae0440 */ lw $t6,0x440($sp) /* f0f5c2c: 3c18b900 */ lui $t8,0xb900 @@ -5563,7 +5562,7 @@ glabel var7f1b3658jf /* f0f5c60: 02002025 */ move $a0,$s0 /* f0f5c64: 00002825 */ move $a1,$zero /* f0f5c68: 24060002 */ li $a2,0x2 -/* f0f5c6c: 0fc2d290 */ jal func0f0b39c0 +/* f0f5c6c: 0fc2d290 */ jal tex0f0b39c0 /* f0f5c70: 00003825 */ move $a3,$zero /* f0f5c74: 8faf0440 */ lw $t7,0x440($sp) /* f0f5c78: 3c190600 */ lui $t9,0x600 @@ -5670,7 +5669,7 @@ glabel var7f1b3c40pf .PF0f0f40e0: /* f0f40e0: 54610004 */ bnel $v1,$at,.PF0f0f40f4 /* f0f40e4: 92020000 */ lbu $v0,0x0($s0) -/* f0f40e8: 0fc674da */ jal mpClearCurrentChallenge +/* f0f40e8: 0fc674da */ jal challengeUnsetCurrent /* f0f40ec: 00000000 */ nop /* f0f40f0: 92020000 */ lbu $v0,0x0($s0) .PF0f0f40f4: @@ -5840,7 +5839,7 @@ glabel var7f1b3c40pf /* f0f435c: afa00010 */ sw $zero,0x10($sp) /* f0f4360: 8fa50400 */ lw $a1,0x400($sp) /* f0f4364: 8fa40404 */ lw $a0,0x404($sp) -/* f0f4368: 0fc0b3eb */ jal func0f02ce8c +/* f0f4368: 0fc0b3eb */ jal body0f02ce8c /* f0f436c: afad0014 */ sw $t5,0x14($sp) /* f0f4370: 10000027 */ b .PF0f0f4410 /* f0f4374: 8e0b000c */ lw $t3,0xc($s0) @@ -6456,7 +6455,7 @@ glabel var7f1b3c40pf /* f0f4c84: 27a40390 */ addiu $a0,$sp,0x390 .PF0f0f4c88: /* f0f4c88: 27a50398 */ addiu $a1,$sp,0x398 -/* f0f4c8c: 0fc2d457 */ jal func0f0b4c3c +/* f0f4c8c: 0fc2d457 */ jal cam0f0b4c3c /* f0f4c90: 3c063f80 */ lui $a2,0x3f80 /* f0f4c94: 0c0055d0 */ jal mtx4LoadIdentity /* f0f4c98: 27a40310 */ addiu $a0,$sp,0x310 @@ -6601,7 +6600,7 @@ glabel var7f1b3c40pf /* f0f4e98: 35290040 */ ori $t1,$t1,0x40 /* f0f4e9c: afad0440 */ sw $t5,0x440($sp) /* f0f4ea0: ac490000 */ sw $t1,0x0($v0) -/* f0f4ea4: 0fc2d542 */ jal currentPlayerGetUnk1750 +/* f0f4ea4: 0fc2d542 */ jal camGetUnk1750 /* f0f4ea8: 00408825 */ move $s1,$v0 /* f0f4eac: 0c012ab0 */ jal osVirtualToPhysical /* f0f4eb0: 00402025 */ move $a0,$v0 @@ -6947,7 +6946,7 @@ glabel var7f1b3c40pf /* f0f53ac: c4700034 */ lwc1 $f16,0x34($v1) /* f0f53b0: e7b000d4 */ swc1 $f16,0xd4($sp) /* f0f53b4: c4660038 */ lwc1 $f6,0x38($v1) -/* f0f53b8: 0fc2d489 */ jal func0f0b4d04 +/* f0f53b8: 0fc2d489 */ jal cam0f0b4d04 /* f0f53bc: e7a600d8 */ swc1 $f6,0xd8($sp) /* f0f53c0: 0c002e53 */ jal viGetWidth /* f0f53c4: 00000000 */ nop @@ -7025,7 +7024,7 @@ glabel var7f1b3c40pf /* f0f54cc: 258b0008 */ addiu $t3,$t4,0x8 /* f0f54d0: afab0440 */ sw $t3,0x440($sp) /* f0f54d4: ad8f0000 */ sw $t7,0x0($t4) -/* f0f54d8: 0fc2d732 */ jal currentPlayerGetUnk175c +/* f0f54d8: 0fc2d732 */ jal camGetUnk175c /* f0f54dc: afac00b8 */ sw $t4,0xb8($sp) /* f0f54e0: 8fa500b8 */ lw $a1,0xb8($sp) /* f0f54e4: 3c090382 */ lui $t1,0x382 @@ -7035,7 +7034,7 @@ glabel var7f1b3c40pf /* f0f54f4: 272e0008 */ addiu $t6,$t9,0x8 /* f0f54f8: afae0440 */ sw $t6,0x440($sp) /* f0f54fc: af290000 */ sw $t1,0x0($t9) -/* f0f5500: 0fc2d732 */ jal currentPlayerGetUnk175c +/* f0f5500: 0fc2d732 */ jal camGetUnk175c /* f0f5504: afb900b4 */ sw $t9,0xb4($sp) /* f0f5508: 8fa600b4 */ lw $a2,0xb4($sp) /* f0f550c: 244d0010 */ addiu $t5,$v0,0x10 @@ -7150,7 +7149,7 @@ glabel var7f1b3c40pf /* f0f56b4: afa00018 */ sw $zero,0x18($sp) /* f0f56b8: 00002825 */ move $a1,$zero /* f0f56bc: 24060002 */ li $a2,0x2 -/* f0f56c0: 0fc2cfb8 */ jal func0f0b39c0 +/* f0f56c0: 0fc2cfb8 */ jal tex0f0b39c0 /* f0f56c4: 00003825 */ move $a3,$zero /* f0f56c8: 8fb90440 */ lw $t9,0x440($sp) /* f0f56cc: 3c09b900 */ lui $t1,0xb900 @@ -7169,7 +7168,7 @@ glabel var7f1b3c40pf /* f0f5700: 02002025 */ move $a0,$s0 /* f0f5704: 00002825 */ move $a1,$zero /* f0f5708: 24060002 */ li $a2,0x2 -/* f0f570c: 0fc2cfb8 */ jal func0f0b39c0 +/* f0f570c: 0fc2cfb8 */ jal tex0f0b39c0 /* f0f5710: 00003825 */ move $a3,$zero /* f0f5714: 8fac0440 */ lw $t4,0x440($sp) /* f0f5718: 3c0f0600 */ lui $t7,0x600 @@ -7276,7 +7275,7 @@ glabel var7f1b3c40pf .PB0f0f3ef8: /* f0f3ef8: 54610004 */ bnel $v1,$at,.PB0f0f3f0c /* f0f3efc: 92020000 */ lbu $v0,0x0($s0) -/* f0f3f00: 0fc677c0 */ jal mpClearCurrentChallenge +/* f0f3f00: 0fc677c0 */ jal challengeUnsetCurrent /* f0f3f04: 00000000 */ nop /* f0f3f08: 92020000 */ lbu $v0,0x0($s0) .PB0f0f3f0c: @@ -7446,7 +7445,7 @@ glabel var7f1b3c40pf /* f0f4174: afa00010 */ sw $zero,0x10($sp) /* f0f4178: 8fa50400 */ lw $a1,0x400($sp) /* f0f417c: 8fa40404 */ lw $a0,0x404($sp) -/* f0f4180: 0fc0b3d7 */ jal func0f02ce8c +/* f0f4180: 0fc0b3d7 */ jal body0f02ce8c /* f0f4184: afad0014 */ sw $t5,0x14($sp) /* f0f4188: 10000027 */ b .PB0f0f4228 /* f0f418c: 8e0b000c */ lw $t3,0xc($s0) @@ -8062,7 +8061,7 @@ glabel var7f1b3c40pf /* f0f4a9c: 27a40390 */ addiu $a0,$sp,0x390 .PB0f0f4aa0: /* f0f4aa0: 27a50398 */ addiu $a1,$sp,0x398 -/* f0f4aa4: 0fc2d413 */ jal func0f0b4c3c +/* f0f4aa4: 0fc2d413 */ jal cam0f0b4c3c /* f0f4aa8: 3c063f80 */ lui $a2,0x3f80 /* f0f4aac: 0c005900 */ jal mtx4LoadIdentity /* f0f4ab0: 27a40310 */ addiu $a0,$sp,0x310 @@ -8207,7 +8206,7 @@ glabel var7f1b3c40pf /* f0f4cb0: 35290040 */ ori $t1,$t1,0x40 /* f0f4cb4: afad0440 */ sw $t5,0x440($sp) /* f0f4cb8: ac490000 */ sw $t1,0x0($v0) -/* f0f4cbc: 0fc2d4fe */ jal currentPlayerGetUnk1750 +/* f0f4cbc: 0fc2d4fe */ jal camGetUnk1750 /* f0f4cc0: 00408825 */ move $s1,$v0 /* f0f4cc4: 0c012de0 */ jal osVirtualToPhysical /* f0f4cc8: 00402025 */ move $a0,$v0 @@ -8553,7 +8552,7 @@ glabel var7f1b3c40pf /* f0f51c4: c4700034 */ lwc1 $f16,0x34($v1) /* f0f51c8: e7b000d4 */ swc1 $f16,0xd4($sp) /* f0f51cc: c4660038 */ lwc1 $f6,0x38($v1) -/* f0f51d0: 0fc2d445 */ jal func0f0b4d04 +/* f0f51d0: 0fc2d445 */ jal cam0f0b4d04 /* f0f51d4: e7a600d8 */ swc1 $f6,0xd8($sp) /* f0f51d8: 0c002e4d */ jal viGetWidth /* f0f51dc: 00000000 */ nop @@ -8631,7 +8630,7 @@ glabel var7f1b3c40pf /* f0f52e4: 258b0008 */ addiu $t3,$t4,0x8 /* f0f52e8: afab0440 */ sw $t3,0x440($sp) /* f0f52ec: ad8f0000 */ sw $t7,0x0($t4) -/* f0f52f0: 0fc2d6ee */ jal currentPlayerGetUnk175c +/* f0f52f0: 0fc2d6ee */ jal camGetUnk175c /* f0f52f4: afac00b8 */ sw $t4,0xb8($sp) /* f0f52f8: 8fa500b8 */ lw $a1,0xb8($sp) /* f0f52fc: 3c090382 */ lui $t1,0x382 @@ -8641,7 +8640,7 @@ glabel var7f1b3c40pf /* f0f530c: 272e0008 */ addiu $t6,$t9,0x8 /* f0f5310: afae0440 */ sw $t6,0x440($sp) /* f0f5314: af290000 */ sw $t1,0x0($t9) -/* f0f5318: 0fc2d6ee */ jal currentPlayerGetUnk175c +/* f0f5318: 0fc2d6ee */ jal camGetUnk175c /* f0f531c: afb900b4 */ sw $t9,0xb4($sp) /* f0f5320: 8fa600b4 */ lw $a2,0xb4($sp) /* f0f5324: 244d0010 */ addiu $t5,$v0,0x10 @@ -8756,7 +8755,7 @@ glabel var7f1b3c40pf /* f0f54cc: afa00018 */ sw $zero,0x18($sp) /* f0f54d0: 00002825 */ move $a1,$zero /* f0f54d4: 24060002 */ li $a2,0x2 -/* f0f54d8: 0fc2cf74 */ jal func0f0b39c0 +/* f0f54d8: 0fc2cf74 */ jal tex0f0b39c0 /* f0f54dc: 00003825 */ move $a3,$zero /* f0f54e0: 8fb90440 */ lw $t9,0x440($sp) /* f0f54e4: 3c09b900 */ lui $t1,0xb900 @@ -8775,7 +8774,7 @@ glabel var7f1b3c40pf /* f0f5518: 02002025 */ move $a0,$s0 /* f0f551c: 00002825 */ move $a1,$zero /* f0f5520: 24060002 */ li $a2,0x2 -/* f0f5524: 0fc2cf74 */ jal func0f0b39c0 +/* f0f5524: 0fc2cf74 */ jal tex0f0b39c0 /* f0f5528: 00003825 */ move $a3,$zero /* f0f552c: 8fac0440 */ lw $t4,0x440($sp) /* f0f5530: 3c0f0600 */ lui $t7,0x600 @@ -8878,7 +8877,7 @@ glabel var7f1b2948 .L0f0f398c: /* f0f398c: 54610004 */ bnel $v1,$at,.L0f0f39a0 /* f0f3990: 92020000 */ lbu $v0,0x0($s0) -/* f0f3994: 0fc6709a */ jal mpClearCurrentChallenge +/* f0f3994: 0fc6709a */ jal challengeUnsetCurrent /* f0f3998: 00000000 */ nop /* f0f399c: 92020000 */ lbu $v0,0x0($s0) .L0f0f39a0: @@ -9048,7 +9047,7 @@ glabel var7f1b2948 /* f0f3c08: afa00010 */ sw $zero,0x10($sp) /* f0f3c0c: 8fa50400 */ lw $a1,0x400($sp) /* f0f3c10: 8fa40404 */ lw $a0,0x404($sp) -/* f0f3c14: 0fc0b3a3 */ jal func0f02ce8c +/* f0f3c14: 0fc0b3a3 */ jal body0f02ce8c /* f0f3c18: afaa0014 */ sw $t2,0x14($sp) /* f0f3c1c: 10000027 */ b .L0f0f3cbc /* f0f3c20: 8e19000c */ lw $t9,0xc($s0) @@ -9675,7 +9674,7 @@ glabel var7f1b2948 /* f0f4554: 27a40390 */ addiu $a0,$sp,0x390 .L0f0f4558: /* f0f4558: 27a50398 */ addiu $a1,$sp,0x398 -/* f0f455c: 0fc2d30f */ jal func0f0b4c3c +/* f0f455c: 0fc2d30f */ jal cam0f0b4c3c /* f0f4560: 3c063f80 */ lui $a2,0x3f80 /* f0f4564: 0c00566c */ jal mtx4LoadIdentity /* f0f4568: 27a40310 */ addiu $a0,$sp,0x310 @@ -9820,7 +9819,7 @@ glabel var7f1b2948 /* f0f4768: 35ef0040 */ ori $t7,$t7,0x40 /* f0f476c: afac0440 */ sw $t4,0x440($sp) /* f0f4770: ac4f0000 */ sw $t7,0x0($v0) -/* f0f4774: 0fc2d3fa */ jal currentPlayerGetUnk1750 +/* f0f4774: 0fc2d3fa */ jal camGetUnk1750 /* f0f4778: 00408825 */ or $s1,$v0,$zero /* f0f477c: 0c012d20 */ jal osVirtualToPhysical /* f0f4780: 00402025 */ or $a0,$v0,$zero @@ -10163,7 +10162,7 @@ glabel var7f1b2948 /* f0f4c6c: c46a0034 */ lwc1 $f10,0x34($v1) /* f0f4c70: e7aa00d4 */ swc1 $f10,0xd4($sp) /* f0f4c74: c4680038 */ lwc1 $f8,0x38($v1) -/* f0f4c78: 0fc2d341 */ jal func0f0b4d04 +/* f0f4c78: 0fc2d341 */ jal cam0f0b4d04 /* f0f4c7c: e7a800d8 */ swc1 $f8,0xd8($sp) /* f0f4c80: 0c002f02 */ jal viGetWidth /* f0f4c84: 00000000 */ nop @@ -10241,7 +10240,7 @@ glabel var7f1b2948 /* f0f4d8c: 25ae0008 */ addiu $t6,$t5,0x8 /* f0f4d90: afae0440 */ sw $t6,0x440($sp) /* f0f4d94: adac0000 */ sw $t4,0x0($t5) -/* f0f4d98: 0fc2d5ea */ jal currentPlayerGetUnk175c +/* f0f4d98: 0fc2d5ea */ jal camGetUnk175c /* f0f4d9c: afad00b8 */ sw $t5,0xb8($sp) /* f0f4da0: 8fa500b8 */ lw $a1,0xb8($sp) /* f0f4da4: 3c0a0382 */ lui $t2,0x382 @@ -10251,7 +10250,7 @@ glabel var7f1b2948 /* f0f4db4: 25f80008 */ addiu $t8,$t7,0x8 /* f0f4db8: afb80440 */ sw $t8,0x440($sp) /* f0f4dbc: adea0000 */ sw $t2,0x0($t7) -/* f0f4dc0: 0fc2d5ea */ jal currentPlayerGetUnk175c +/* f0f4dc0: 0fc2d5ea */ jal camGetUnk175c /* f0f4dc4: afaf00b4 */ sw $t7,0xb4($sp) /* f0f4dc8: 8fa600b4 */ lw $a2,0xb4($sp) /* f0f4dcc: 24590010 */ addiu $t9,$v0,0x10 @@ -10365,7 +10364,7 @@ glabel var7f1b2948 /* f0f4f70: afa00018 */ sw $zero,0x18($sp) /* f0f4f74: 00002825 */ or $a1,$zero,$zero /* f0f4f78: 24060002 */ addiu $a2,$zero,0x2 -/* f0f4f7c: 0fc2ce70 */ jal func0f0b39c0 +/* f0f4f7c: 0fc2ce70 */ jal tex0f0b39c0 /* f0f4f80: 00003825 */ or $a3,$zero,$zero /* f0f4f84: 8fad0440 */ lw $t5,0x440($sp) /* f0f4f88: 3c0cb900 */ lui $t4,0xb900 @@ -10384,7 +10383,7 @@ glabel var7f1b2948 /* f0f4fbc: 02002025 */ or $a0,$s0,$zero /* f0f4fc0: 00002825 */ or $a1,$zero,$zero /* f0f4fc4: 24060002 */ addiu $a2,$zero,0x2 -/* f0f4fc8: 0fc2ce70 */ jal func0f0b39c0 +/* f0f4fc8: 0fc2ce70 */ jal tex0f0b39c0 /* f0f4fcc: 00003825 */ or $a3,$zero,$zero /* f0f4fd0: 8fb90440 */ lw $t9,0x440($sp) /* f0f4fd4: 3c0d0600 */ lui $t5,0x600 @@ -10487,7 +10486,7 @@ glabel var7f1b2948 .NB0f0f04d0: /* f0f04d0: 54610004 */ bnel $v1,$at,.NB0f0f04e4 /* f0f04d4: 92220000 */ lbu $v0,0x0($s1) -/* f0f04d8: 0fc658b5 */ jal mpClearCurrentChallenge +/* f0f04d8: 0fc658b5 */ jal challengeUnsetCurrent /* f0f04dc: 00000000 */ sll $zero,$zero,0x0 /* f0f04e0: 92220000 */ lbu $v0,0x0($s1) .NB0f0f04e4: @@ -10657,7 +10656,7 @@ glabel var7f1b2948 /* f0f074c: afa00010 */ sw $zero,0x10($sp) /* f0f0750: 8fa50428 */ lw $a1,0x428($sp) /* f0f0754: 8fa4042c */ lw $a0,0x42c($sp) -/* f0f0758: 0fc0b20b */ jal func0f02ce8c +/* f0f0758: 0fc0b20b */ jal body0f02ce8c /* f0f075c: afaa0014 */ sw $t2,0x14($sp) /* f0f0760: 10000027 */ beqz $zero,.NB0f0f0800 /* f0f0764: 8e39000c */ lw $t9,0xc($s1) @@ -11284,7 +11283,7 @@ glabel var7f1b2948 /* f0f1098: 27a403b8 */ addiu $a0,$sp,0x3b8 .NB0f0f109c: /* f0f109c: 27a503c0 */ addiu $a1,$sp,0x3c0 -/* f0f10a0: 0fc2ca67 */ jal func0f0b4c3c +/* f0f10a0: 0fc2ca67 */ jal cam0f0b4c3c /* f0f10a4: 3c063f80 */ lui $a2,0x3f80 /* f0f10a8: 0c005a28 */ jal mtx4LoadIdentity /* f0f10ac: 27a40338 */ addiu $a0,$sp,0x338 @@ -11454,7 +11453,7 @@ glabel var7f1b2948 /* f0f130c: 35ad0040 */ ori $t5,$t5,0x40 /* f0f1310: afab0468 */ sw $t3,0x468($sp) /* f0f1314: ac4d0000 */ sw $t5,0x0($v0) -/* f0f1318: 0fc2cb52 */ jal currentPlayerGetUnk1750 +/* f0f1318: 0fc2cb52 */ jal camGetUnk1750 /* f0f131c: 00408025 */ or $s0,$v0,$zero /* f0f1320: 0c013100 */ jal osVirtualToPhysical /* f0f1324: 00402025 */ or $a0,$v0,$zero @@ -11797,7 +11796,7 @@ glabel var7f1b2948 /* f0f1810: c46a0034 */ lwc1 $f10,0x34($v1) /* f0f1814: e7aa00d8 */ swc1 $f10,0xd8($sp) /* f0f1818: c4680038 */ lwc1 $f8,0x38($v1) -/* f0f181c: 0fc2ca99 */ jal func0f0b4d04 +/* f0f181c: 0fc2ca99 */ jal cam0f0b4d04 /* f0f1820: e7a800dc */ swc1 $f8,0xdc($sp) /* f0f1824: 0c002f77 */ jal viGetWidth /* f0f1828: 00000000 */ sll $zero,$zero,0x0 @@ -11875,7 +11874,7 @@ glabel var7f1b2948 /* f0f1930: 25590008 */ addiu $t9,$t2,0x8 /* f0f1934: afb90468 */ sw $t9,0x468($sp) /* f0f1938: ad4b0000 */ sw $t3,0x0($t2) -/* f0f193c: 0fc2cd42 */ jal currentPlayerGetUnk175c +/* f0f193c: 0fc2cd42 */ jal camGetUnk175c /* f0f1940: afaa00bc */ sw $t2,0xbc($sp) /* f0f1944: 8fa500bc */ lw $a1,0xbc($sp) /* f0f1948: 3c0f0382 */ lui $t7,0x382 @@ -11885,7 +11884,7 @@ glabel var7f1b2948 /* f0f1958: 25ae0008 */ addiu $t6,$t5,0x8 /* f0f195c: afae0468 */ sw $t6,0x468($sp) /* f0f1960: adaf0000 */ sw $t7,0x0($t5) -/* f0f1964: 0fc2cd42 */ jal currentPlayerGetUnk175c +/* f0f1964: 0fc2cd42 */ jal camGetUnk175c /* f0f1968: afad00b8 */ sw $t5,0xb8($sp) /* f0f196c: 8fa600b8 */ lw $a2,0xb8($sp) /* f0f1970: 244c0010 */ addiu $t4,$v0,0x10 @@ -11999,7 +11998,7 @@ glabel var7f1b2948 /* f0f1b14: afa00018 */ sw $zero,0x18($sp) /* f0f1b18: 00002825 */ or $a1,$zero,$zero /* f0f1b1c: 24060002 */ addiu $a2,$zero,0x2 -/* f0f1b20: 0fc2c5c8 */ jal func0f0b39c0 +/* f0f1b20: 0fc2c5c8 */ jal tex0f0b39c0 /* f0f1b24: 00003825 */ or $a3,$zero,$zero /* f0f1b28: 8faa0468 */ lw $t2,0x468($sp) /* f0f1b2c: 3c0bb900 */ lui $t3,0xb900 @@ -12018,7 +12017,7 @@ glabel var7f1b2948 /* f0f1b60: 02002025 */ or $a0,$s0,$zero /* f0f1b64: 00002825 */ or $a1,$zero,$zero /* f0f1b68: 24060002 */ addiu $a2,$zero,0x2 -/* f0f1b6c: 0fc2c5c8 */ jal func0f0b39c0 +/* f0f1b6c: 0fc2c5c8 */ jal tex0f0b39c0 /* f0f1b70: 00003825 */ or $a3,$zero,$zero /* f0f1b74: 8fac0468 */ lw $t4,0x468($sp) /* f0f1b78: 3c0a0600 */ lui $t2,0x600 @@ -12113,7 +12112,7 @@ glabel var7f1b2948 // thing->unk000 = 0; // } else { // if (thing->unk010 == 0x4fac5ace) { -// mpClearCurrentChallenge(); +// challengeUnsetCurrent(); // } // // if (thing->unk000 == 0) { @@ -12177,7 +12176,7 @@ glabel var7f1b2948 // thing->bodymodel.unk02 = 256; // thing->bodymodel.anim = &thing->bodyanim; // -// func0f02ce8c(bodynum, headnum, thing->bodymodeldef, thing->headmodeldef, false, &thing->bodymodel, false, 1); +// body0f02ce8c(bodynum, headnum, thing->bodymodeldef, thing->headmodeldef, false, &thing->bodymodel, false, 1); // } else { // totalfilelen = ALIGN64(fileGetInflatedSize(thing->unk00c)) + 0x4000; // @@ -12391,7 +12390,7 @@ glabel var7f1b2948 // sp390[1] = viGetViewTop() + viGetViewHeight() * 0.5f + sp42c; // } // -// func0f0b4c3c(sp390, &sp398, 1.0f); +// cam0f0b4c3c(sp390, &sp398, 1.0f); // mtx4LoadIdentity(&sp310); // // if (thing->partvisibility != NULL) { @@ -12474,7 +12473,7 @@ glabel var7f1b2948 // if (arg2 < 3) { // if (arg2 != 0) { // gdl = func0f0d49c8(gdl); -// gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); +// gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); // } else { // static u32 znear = 10; // static u32 zfar = 300; @@ -12577,7 +12576,7 @@ glabel var7f1b2948 // spd0.y = mtx->m[3][1]; // spd0.z = mtx->m[3][2]; // -// func0f0b4d04(&spd0, spc8); +// cam0f0b4d04(&spd0, spc8); // var8009de98 = ((s32)spc8[0] - viGetWidth() / 2) / g_ScaleX; // var8009de9c = (s32)spc8[1] - viGetHeight() / 2; // } @@ -12587,8 +12586,8 @@ glabel var7f1b2948 // gSPNumLights(gdl++, 1); // gSPLight(gdl++, &var80071470, 1); // gSPLight(gdl++, &var80071468, 2); -// gSPLookAtX(gdl++, currentPlayerGetUnk175c()->m[0]); -// gSPLookAtY(gdl++, currentPlayerGetUnk175c()->m[1]); +// gSPLookAtX(gdl++, camGetUnk175c()->m[0]); +// gSPLookAtY(gdl++, camGetUnk175c()->m[1]); // // renderdata.unk30 = 1; // renderdata.envcolour = 0xffffffff; @@ -12622,11 +12621,11 @@ glabel var7f1b2948 // gSPClearGeometryMode(gdl++, G_CULL_BOTH); // gDPSetTextureFilter(gdl++, G_TF_BILERP); // -// func0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); +// tex0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); // // gDPSetRenderMode(gdl++, G_RM_XLU_SURF, G_RM_XLU_SURF2); // -// func0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); +// tex0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); // // gSPDisplayList(gdl++, var800613a0); // } @@ -21264,26 +21263,26 @@ void menuReset(void) g_MenuData.unk5d5_01 = false; - func0f0b3988(&g_TexGeneralConfigs[1]); - func0f0b3988(&g_TexGeneralConfigs[6]); - func0f0b3988(&g_TexGeneralConfigs[51]); - func0f0b3988(&g_TexGeneralConfigs[52]); - func0f0b3988(&g_TexGeneralConfigs[53]); - func0f0b3988(&g_TexGeneralConfigs[54]); - func0f0b3988(&g_TexGeneralConfigs[55]); + tex0f0b3988(&g_TexGeneralConfigs[1]); + tex0f0b3988(&g_TexGeneralConfigs[6]); + tex0f0b3988(&g_TexGeneralConfigs[51]); + tex0f0b3988(&g_TexGeneralConfigs[52]); + tex0f0b3988(&g_TexGeneralConfigs[53]); + tex0f0b3988(&g_TexGeneralConfigs[54]); + tex0f0b3988(&g_TexGeneralConfigs[55]); if (g_Vars.stagenum == STAGE_CITRAINING) { for (i = 12; i < 34; i++) { - func0f0b3988(&g_TexGeneralConfigs[i]); + tex0f0b3988(&g_TexGeneralConfigs[i]); } - func0f0b3988(&g_TexGeneralConfigs[34]); - func0f0b3988(&g_TexGeneralConfigs[36]); - func0f0b3988(&g_TexGeneralConfigs[35]); + tex0f0b3988(&g_TexGeneralConfigs[34]); + tex0f0b3988(&g_TexGeneralConfigs[36]); + tex0f0b3988(&g_TexGeneralConfigs[35]); } if (g_Vars.mplayerisrunning) { - func0f0b3988(&g_TexGeneralConfigs[35]); + tex0f0b3988(&g_TexGeneralConfigs[35]); } for (i = 0; i < 4; i++) { @@ -28269,7 +28268,7 @@ glabel var7f1b381cjf /* f0fce98: 356b0040 */ ori $t3,$t3,0x40 /* f0fce9c: 02a08025 */ move $s0,$s5 /* f0fcea0: ae0b0000 */ sw $t3,0x0($s0) -/* f0fcea4: 0fc2d81a */ jal currentPlayerGetUnk1750 +/* f0fcea4: 0fc2d81a */ jal camGetUnk1750 /* f0fcea8: 26b50008 */ addiu $s5,$s5,0x8 /* f0fceac: 0c012b34 */ jal osVirtualToPhysical /* f0fceb0: 00402025 */ move $a0,$v0 @@ -29005,7 +29004,7 @@ Gfx *menuRender(Gfx *gdl) g_MpPlayerNum = 0; - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); gSPDisplayList(gdl++, var800613a0); func0f153b40(); @@ -29603,10 +29602,10 @@ void func0f0fd494(struct coord *pos) g_MenuData.unk5d5_04 = true; - matrix = currentPlayerGetMatrix1740(); + matrix = camGetMatrix1740(); mtx4TransformVec(matrix, pos, &coord); - func0f0b4d04(&coord, xy); + cam0f0b4d04(&coord, xy); g_MenuData.unk670 = (s32)xy[0] - viGetWidth() / 2; g_MenuData.unk674 = (s32)xy[1] - viGetHeight() / 2; diff --git a/src/game/menugfx.c b/src/game/menugfx.c index 09d759c31..67c72355f 100644 --- a/src/game/menugfx.c +++ b/src/game/menugfx.c @@ -2,7 +2,7 @@ #include "constants.h" #include "game/game_006900.h" #include "game/bondgun.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/savebuffer.h" #include "game/menugfx.h" #include "game/menu.h" @@ -1659,7 +1659,7 @@ glabel var7f1adf18 /* f0e10f4: 27a40118 */ addiu $a0,$sp,0x118 /* f0e10f8: 24060002 */ addiu $a2,$zero,0x2 /* f0e10fc: 00003825 */ or $a3,$zero,$zero -/* f0e1100: 0fc2ce70 */ jal func0f0b39c0 +/* f0e1100: 0fc2ce70 */ jal tex0f0b39c0 /* f0e1104: 24a50048 */ addiu $a1,$a1,0x0048 /* f0e1108: 2406000a */ addiu $a2,$zero,0xa /* f0e110c: 02060019 */ multu $s0,$a2 @@ -2060,7 +2060,7 @@ glabel var7f1adf18 // gSPClearGeometryMode(gdl++, G_CULL_BOTH); // gDPSetTextureFilter(gdl++, G_TF_BILERP); // -// func0f0b39c0(&gdl, &g_TexGeneralConfigs[6], 2, 0, 2, 1, NULL); +// tex0f0b39c0(&gdl, &g_TexGeneralConfigs[6], 2, 0, 2, 1, NULL); // // gDPSetRenderMode(gdl++, G_RM_XLU_SURF, G_RM_XLU_SURF2); // @@ -2219,7 +2219,7 @@ glabel menugfx0f0e1668 /* f0e1760: 27a40078 */ addiu $a0,$sp,0x78 /* f0e1764: 00002825 */ or $a1,$zero,$zero /* f0e1768: 24060002 */ addiu $a2,$zero,0x2 -/* f0e176c: 0fc2ce70 */ jal func0f0b39c0 +/* f0e176c: 0fc2ce70 */ jal tex0f0b39c0 /* f0e1770: 00003825 */ or $a3,$zero,$zero /* f0e1774: 8fac007c */ lw $t4,0x7c($sp) /* f0e1778: 2408000a */ addiu $t0,$zero,0xa @@ -2363,7 +2363,7 @@ Gfx *menugfxDrawListGroupHeader(Gfx *gdl, s32 x1, s32 y1, s32 x2, s32 y2, s32 x3 gSPClearGeometryMode(gdl++, G_CULL_BOTH); gDPSetTextureFilter(gdl++, G_TF_BILERP); - func0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); gDPSetRenderMode(gdl++, G_RM_XLU_SURF, G_RM_XLU_SURF2); @@ -2501,7 +2501,7 @@ glabel menugfxDrawListGroupHeader /* f0dee88: 27a40090 */ addiu $a0,$sp,0x90 /* f0dee8c: 00002825 */ or $a1,$zero,$zero /* f0dee90: 24060002 */ addiu $a2,$zero,0x2 -/* f0dee94: 0fc2c5c8 */ jal func0f0b39c0 +/* f0dee94: 0fc2c5c8 */ jal tex0f0b39c0 /* f0dee98: 00003825 */ or $a3,$zero,$zero /* f0dee9c: 8fab0094 */ lw $t3,0x94($sp) /* f0deea0: 2404000a */ addiu $a0,$zero,0xa @@ -2759,7 +2759,7 @@ glabel menugfxRenderGradient /* f0e1de0: 27a40060 */ addiu $a0,$sp,0x60 /* f0e1de4: 00002825 */ or $a1,$zero,$zero /* f0e1de8: 24060002 */ addiu $a2,$zero,0x2 -/* f0e1dec: 0fc2ce70 */ jal func0f0b39c0 +/* f0e1dec: 0fc2ce70 */ jal tex0f0b39c0 /* f0e1df0: 00003825 */ or $a3,$zero,$zero /* f0e1df4: 8fb90060 */ lw $t9,0x60($sp) /* f0e1df8: 8fab0070 */ lw $t3,0x70($sp) @@ -2889,7 +2889,7 @@ glabel menugfxRenderGradient // gSPClearGeometryMode(gdl++, G_CULL_BOTH); // gDPSetTextureFilter(gdl++, G_TF_BILERP); // -// func0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); +// tex0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); // // gDPSetRenderMode(gdl++, G_RM_XLU_SURF, G_RM_XLU_SURF2); // @@ -2960,7 +2960,7 @@ Gfx *menugfxRenderSlider(Gfx *gdl, s32 x1, s32 y1, s32 x2, s32 y2, s32 markerx, gSPClearGeometryMode(gdl++, G_CULL_BOTH); gDPSetTextureFilter(gdl++, G_TF_BILERP); - func0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); gDPSetRenderMode(gdl++, G_RM_AA_XLU_SURF, G_RM_AA_XLU_SURF2); gDPSetRenderMode(gdl++, G_RM_XLU_SURF, G_RM_XLU_SURF2); @@ -3050,7 +3050,7 @@ Gfx *menugfx0f0e2498(Gfx *gdl) gDPSetCombineMode(gdl++, G_CC_MODULATEI, G_CC_MODULATEI); gSPClearGeometryMode(gdl++, G_CULL_BOTH) - func0f0b39c0(&gdl, 0, 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, 0, 2, 0, 2, 1, NULL); gDPSetRenderMode(gdl++, G_RM_XLU_SURF, G_RM_XLU_SURF2); @@ -3617,7 +3617,7 @@ Gfx *menugfxDrawCarouselChevron(Gfx *gdl, s32 x, s32 y, s32 size, s32 direction, gDPSetCombineMode(gdl++, G_CC_MODULATEI, G_CC_MODULATEI); gSPClearGeometryMode(gdl++, G_CULL_BOTH); - func0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); gDPSetRenderMode(gdl++, G_RM_XLU_SURF, G_RM_XLU_SURF2); @@ -3701,7 +3701,7 @@ Gfx *menugfxDrawDialogChevron(Gfx *gdl, s32 x, s32 y, s32 size, s32 direction, u gDPSetCombineMode(gdl++, G_CC_MODULATEI, G_CC_MODULATEI); gSPClearGeometryMode(gdl++, G_CULL_BOTH); - func0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, NULL, 2, 0, 2, 1, NULL); gDPSetRenderMode(gdl++, G_RM_AA_XLU_SURF, G_RM_AA_XLU_SURF2); @@ -4872,7 +4872,7 @@ glabel var7f1adf90 /* f0e5570: 24070001 */ addiu $a3,$zero,0x1 /* f0e5574: afa00018 */ sw $zero,0x18($sp) /* f0e5578: afa20150 */ sw $v0,0x150($sp) -/* f0e557c: 0fc2ce70 */ jal func0f0b39c0 +/* f0e557c: 0fc2ce70 */ jal tex0f0b39c0 /* f0e5580: 24a5000c */ addiu $a1,$a1,0x000c /* f0e5584: 8fb80150 */ lw $t8,0x150($sp) /* f0e5588: 3c09ba00 */ lui $t1,0xba00 @@ -5757,7 +5757,7 @@ glabel var7f1adf90 /* f0e5570: 24070001 */ addiu $a3,$zero,0x1 /* f0e5574: afa00018 */ sw $zero,0x18($sp) /* f0e5578: afa20150 */ sw $v0,0x150($sp) -/* f0e557c: 0fc2ce70 */ jal func0f0b39c0 +/* f0e557c: 0fc2ce70 */ jal tex0f0b39c0 /* f0e5580: 24a5000c */ addiu $a1,$a1,0x000c /* f0e5584: 8fb80150 */ lw $t8,0x150($sp) /* f0e5588: 3c09ba00 */ lui $t1,0xba00 diff --git a/src/game/menuitem.c b/src/game/menuitem.c index 573eedc3f..27874ec40 100644 --- a/src/game/menuitem.c +++ b/src/game/menuitem.c @@ -3,7 +3,7 @@ #include "game/camdraw.h" #include "game/game_006900.h" #include "game/objectives.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/menugfx.h" #include "game/menuitem.h" #include "game/menu.h" @@ -11,7 +11,7 @@ #include "game/objectives.h" #include "game/game_1531a0.h" #include "game/lv.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/training.h" #include "game/lang.h" #include "game/mplayer/mplayer.h" @@ -8472,13 +8472,13 @@ char *menuitemScrollableGetText(u32 type) { switch (type) { case DESCRIPTION_MPCONFIG: - return mpconfigGetDescription(g_Menus[g_MpPlayerNum].training.mpconfig); + return challengeGetConfigDescription(g_Menus[g_MpPlayerNum].training.mpconfig); case DESCRIPTION_MPCHALLENGE: - if (!mpIsChallengeLoaded()) { + if (!challengeIsLoaded()) { g_Menus[g_MpPlayerNum].unk840.unk010 = 0x4fac5ace; - mpLoadAndStoreCurrentChallenge(g_Menus[g_MpPlayerNum].unk840.unk004, g_Menus[g_MpPlayerNum].unk840.unk008); + challengeLoadAndStoreCurrent(g_Menus[g_MpPlayerNum].unk840.unk004, g_Menus[g_MpPlayerNum].unk840.unk008); } - return mpGetCurrentChallengeDescription(); + return challengeGetCurrentDescription(); case DESCRIPTION_CHRBIO: return ciGetChrBioDescription(); case DESCRIPTION_MISCBIO: return ciGetMiscBioDescription(); case DESCRIPTION_DEVICETRAINING: return dtGetDescription(); @@ -10564,7 +10564,7 @@ Gfx *menuitemControllerRenderTexture(Gfx *gdl, s32 x, s32 y, s32 texturenum, u32 gDPSetTextureLOD(gdl++, G_TL_TILE); gDPSetTextureConvert(gdl++, G_TC_FILT); - func0f0b39c0(&gdl, &g_TexGeneralConfigs[texturenum], 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexGeneralConfigs[texturenum], 2, 0, 2, 1, NULL); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetTextureFilter(gdl++, G_TF_POINT); @@ -10703,7 +10703,7 @@ glabel menuitemControllerRenderLines /* f0f05d8: 00003825 */ move $a3,$zero /* f0f05dc: 24060002 */ li $a2,0x2 /* f0f05e0: 27a40050 */ addiu $a0,$sp,0x50 -/* f0f05e4: 0fc2d290 */ jal func0f0b39c0 +/* f0f05e4: 0fc2d290 */ jal tex0f0b39c0 /* f0f05e8: 24a50294 */ addiu $a1,$a1,0x294 /* f0f05ec: 8fb90050 */ lw $t9,0x50($sp) /* f0f05f0: 3c0dba00 */ lui $t5,0xba00 @@ -10905,7 +10905,7 @@ Gfx *menuitemControllerRenderLines(Gfx *gdl, struct menurendercontext *context, gDPSetTextureLOD(gdl++, G_TL_TILE); gDPSetTextureConvert(gdl++, G_TC_FILT); - func0f0b39c0(&gdl, &g_TexGeneralConfigs[55], 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexGeneralConfigs[55], 2, 0, 2, 1, NULL); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetTextureFilter(gdl++, G_TF_POINT); diff --git a/src/game/menustop.c b/src/game/menustop.c index 6a578f715..d0100308b 100644 --- a/src/game/menustop.c +++ b/src/game/menustop.c @@ -2,7 +2,7 @@ #include "constants.h" #include "game/game_006900.h" #include "game/title.h" -#include "game/game_01b0a0.h" +#include "game/pdmode.h" #include "game/bondgun.h" #include "game/player.h" #include "game/menugfx.h" @@ -15,7 +15,7 @@ #include "game/music.h" #include "game/mplayer/ingame.h" #include "game/mplayer/setup.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/training.h" #include "game/gamefile.h" #include "game/mplayer/mplayer.h" diff --git a/src/game/menutick.c b/src/game/menutick.c index a55aaf8e8..992d29b4f 100644 --- a/src/game/menutick.c +++ b/src/game/menutick.c @@ -2,7 +2,7 @@ #include "constants.h" #include "game/game_006900.h" #include "game/title.h" -#include "game/game_01b0a0.h" +#include "game/pdmode.h" #include "game/bondgun.h" #include "game/player.h" #include "game/menugfx.h" @@ -15,7 +15,7 @@ #include "game/music.h" #include "game/mplayer/ingame.h" #include "game/mplayer/setup.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/training.h" #include "game/gamefile.h" #include "game/mplayer/mplayer.h" @@ -301,7 +301,7 @@ void menuTick(void) } mpCalculateLockIfLastWinnerOrLoser(); - mpPerformSanityChecks(); + challengePerformSanityChecks(); } for (i = 0; i < 4; i++) { diff --git a/src/game/game_1a7560.c b/src/game/modeldef.c similarity index 96% rename from src/game/game_1a7560.c rename to src/game/modeldef.c index 02d6fda2b..54d6aeece 100644 --- a/src/game/game_1a7560.c +++ b/src/game/modeldef.c @@ -4,7 +4,7 @@ #include "game/ceil.h" #include "game/bondgun.h" #include "game/game_0b0fd0.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/menugfx.h" #include "game/menu.h" #include "game/mainmenu.h" @@ -12,8 +12,8 @@ #include "game/game_1531a0.h" #include "game/file.h" #include "game/texdecompress.h" -#include "game/game_173a00.h" -#include "game/game_1a7560.h" +#include "game/surface.h" +#include "game/modeldef.h" #include "game/lang.h" #include "game/mplayer/mplayer.h" #include "game/options.h" @@ -106,7 +106,7 @@ struct skeleton *g_Skeletons[] = { }; GLOBAL_ASM( -glabel func0f1a7560 +glabel modeldef0f1a7560 /* f1a7560: 27bdff70 */ addiu $sp,$sp,-144 /* f1a7564: afb3002c */ sw $s3,0x2c($sp) /* f1a7568: 00809825 */ or $s3,$a0,$zero @@ -148,7 +148,7 @@ glabel func0f1a7560 /* f1a75f8: 02644023 */ subu $t0,$s3,$a0 /* f1a75fc: 00684821 */ addu $t1,$v1,$t0 /* f1a7600: afa90084 */ sw $t1,0x84($sp) -/* f1a7604: 0fc5d7bd */ jal func0f175ef4 +/* f1a7604: 0fc5d7bd */ jal surface0f175ef4 /* f1a7608: 00732821 */ addu $a1,$v1,$s3 /* f1a760c: 8fbe00a0 */ lw $s8,0xa0($sp) /* f1a7610: 8e640018 */ lw $a0,0x18($s3) @@ -199,7 +199,7 @@ glabel func0f1a7560 /* f1a76b0: 01f82021 */ addu $a0,$t7,$t8 /* f1a76b4: 02802825 */ or $a1,$s4,$zero /* f1a76b8: 03c03825 */ or $a3,$s8,$zero -/* f1a76bc: 0fc5d5b0 */ jal func0f1756c0 +/* f1a76bc: 0fc5d5b0 */ jal surface0f1756c0 /* f1a76c0: afa30010 */ sw $v1,0x10($sp) /* f1a76c4: 8fa80074 */ lw $t0,0x74($sp) /* f1a76c8: 02a2a821 */ addu $s5,$s5,$v0 @@ -260,7 +260,7 @@ struct modelfiledata *modeldefLoad(u16 fileid, u8 *dst, s32 size, s32 *arg3) modelPromoteTypeToPointer(filedata); modelPromoteOffsetsToPointers(filedata, 0x5000000, (u32) filedata); - func0f1a7560(filedata, fileid, 0x5000000, filedata, arg3, dst == NULL); + modeldef0f1a7560(filedata, fileid, 0x5000000, filedata, arg3, dst == NULL); return filedata; } diff --git a/src/game/mplayer/ingame.c b/src/game/mplayer/ingame.c index 5ec98ba48..1d89c160d 100644 --- a/src/game/mplayer/ingame.c +++ b/src/game/mplayer/ingame.c @@ -3,14 +3,14 @@ #include "game/game_006900.h" #include "game/title.h" #include "game/game_0b0fd0.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/savebuffer.h" #include "game/menu.h" #include "game/mainmenu.h" #include "game/filemgr.h" #include "game/lv.h" #include "game/mplayer/ingame.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/lang.h" #include "game/mplayer/mplayer.h" #include "game/mplayer/setup.h" @@ -605,7 +605,7 @@ s32 mpAwardsMenuHandler(s32 operation, struct menuitem *item, union handlerdata gDPSetTextureConvert(gdl++, G_TC_FILT); gDPSetTextureFilter(gdl++, G_TF_POINT); - func0f0b39c0(&gdl, &g_TexGeneralConfigs[35], 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexGeneralConfigs[35], 2, 0, 2, 1, NULL); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetCombineMode(gdl++, G_CC_DECALRGBA, G_CC_DECALRGBA); @@ -788,7 +788,7 @@ glabel mpPushEndscreenDialog /* f179560: 10000018 */ b .JF0f1795c4 /* f179564: 00000000 */ nop .JF0f179568: -/* f179568: 0fc673a7 */ jal mpIsChallengeCompleteForEndscreen +/* f179568: 0fc673a7 */ jal challengeIsCompleteForEndscreen /* f17956c: 00000000 */ nop /* f179570: 10400007 */ beqz $v0,.JF0f179590 /* f179574: 3c048008 */ lui $a0,0x8008 @@ -863,7 +863,7 @@ void mpPushEndscreenDialog(u32 arg0, u32 playernum) if (g_BossFile.locktype == MPLOCKTYPE_CHALLENGE) { if (g_CheatsActiveBank0 || g_CheatsActiveBank1) { menuPushRootDialog(&g_MpEndscreenChallengeCheatedMenuDialog, MENUROOT_MPENDSCREEN); - } else if (mpIsChallengeCompleteForEndscreen()) { + } else if (challengeIsCompleteForEndscreen()) { menuPushRootDialog(&g_MpEndscreenChallengeCompletedMenuDialog, MENUROOT_MPENDSCREEN); } else { menuPushRootDialog(&g_MpEndscreenChallengeFailedMenuDialog, MENUROOT_MPENDSCREEN); diff --git a/src/game/mplayer/mplayer.c b/src/game/mplayer/mplayer.c index 77bbde2b2..f9ff063f9 100644 --- a/src/game/mplayer/mplayer.c +++ b/src/game/mplayer/mplayer.c @@ -2,7 +2,7 @@ #include "constants.h" #include "game/camdraw.h" #include "game/title.h" -#include "game/game_01b0a0.h" +#include "game/pdmode.h" #include "game/bondgun.h" #include "game/game_0b0fd0.h" #include "game/player.h" @@ -15,7 +15,7 @@ #include "game/mplayer/setup.h" #include "game/mplayer/scenarios.h" #include "game/mpstats.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/lang.h" #include "game/mplayer/mplayer.h" #include "game/pak.h" @@ -143,11 +143,11 @@ void mpStartMatch(void) mpConfigureQuickTeamSimulants(); - if (!mpIsFeatureUnlocked(MPFEATURE_ONEHITKILLS)) { + if (!challengeIsFeatureUnlocked(MPFEATURE_ONEHITKILLS)) { g_MpSetup.options &= ~MPOPTION_ONEHITKILLS; } - if (!mpIsFeatureUnlocked(MPFEATURE_SLOWMOTION)) { + if (!challengeIsFeatureUnlocked(MPFEATURE_SLOWMOTION)) { g_MpSetup.options &= ~(MPOPTION_SLOWMOTION_ON | MPOPTION_SLOWMOTION_SMART); } @@ -435,11 +435,11 @@ void mpPlayerSetDefaults(s32 playernum, bool autonames) if (playernum < 4) { for (i = 0; i < 30; i++) { for (j = 1; j <= 4; j++) { - mpSetChallengeCompletedByPlayerWithNumPlayers(playernum, i, j, false); + challengeSetCompletedByPlayerWithNumPlayers(playernum, i, j, false); } } - mpDetermineUnlockedFeatures(); + challengeDetermineUnlockedFeatures(); } for (i = 0; i < 6; i++) { @@ -510,7 +510,7 @@ void mpInit(void) g_MpLockInfo.unk03 = -1; g_MpLockInfo.unk04 = -1; - mpForceUnlockSimulantFeatures(); + challengeForceUnlockBotFeatures(); for (i = 0; i < ARRAYCOUNT(g_PlayerConfigsArray); i++) { for (j = 0; j < 6; j++) { @@ -865,7 +865,7 @@ s32 mpGetNumWeaponOptions(void) s32 i; for (i = 0; i < ARRAYCOUNT(g_MpWeapons); i++) { - if (mpIsFeatureUnlocked(g_MpWeapons[i].unlockfeature)) { + if (challengeIsFeatureUnlocked(g_MpWeapons[i].unlockfeature)) { count++; } } @@ -878,7 +878,7 @@ char *mpGetWeaponLabel(s32 weaponnum) s32 i; for (i = 0; i < ARRAYCOUNT(g_MpWeapons); i++) { - if (mpIsFeatureUnlocked(g_MpWeapons[i].unlockfeature)) { + if (challengeIsFeatureUnlocked(g_MpWeapons[i].unlockfeature)) { if (weaponnum == 0) { if (g_MpWeapons[i].weaponnum == WEAPON_NONE) { return langGet(L_MPWEAPONS_058); // "Nothing" @@ -913,7 +913,7 @@ void mpSetWeaponSlot(s32 slot, s32 mpweaponnum) s32 i; for (i = 0; i <= mpweaponnum; i++) { - if (mpIsFeatureUnlocked(g_MpWeapons[i].unlockfeature) == 0) { + if (challengeIsFeatureUnlocked(g_MpWeapons[i].unlockfeature) == 0) { mpweaponnum++; } @@ -929,7 +929,7 @@ s32 mpGetWeaponSlot(s32 slot) s32 i; for (i = 0; i < g_MpSetup.weapons[slot]; i++) { - if (mpIsFeatureUnlocked(g_MpWeapons[i].unlockfeature)) { + if (challengeIsFeatureUnlocked(g_MpWeapons[i].unlockfeature)) { count++; } } @@ -981,10 +981,10 @@ s32 mpCountWeaponSetThing(s32 weaponsetindex) } for (i = 0; i < weaponsetindex; i++) { - if ((mpIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[0]) - && mpIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[1]) - && mpIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[2]) - && mpIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[3])) || g_MpWeaponSets[i].unk0c != WEAPON_DISABLED) { + if ((challengeIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[0]) + && challengeIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[1]) + && challengeIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[2]) + && challengeIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[3])) || g_MpWeaponSets[i].unk0c != WEAPON_DISABLED) { count++; } } @@ -998,10 +998,10 @@ s32 func0f188f9c(s32 arg0) for (i = 0; i < ARRAYCOUNT(g_MpWeaponSets); i++) { // @bug? Shouldn't the disabled check be == WEAPON_DISABLED? - if ((mpIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[0]) - && mpIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[1]) - && mpIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[2]) - && mpIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[3])) + if ((challengeIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[0]) + && challengeIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[1]) + && challengeIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[2]) + && challengeIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[3])) || g_MpWeaponSets[i].unk0c != WEAPON_DISABLED) { if (arg0 == 0) { break; @@ -1051,10 +1051,10 @@ void func0f18913c(void) s32 j; for (i = 0; !done && i < 12; i++) { - if (mpIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[0]) - && mpIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[1]) - && mpIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[2]) - && mpIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[3])) { + if (challengeIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[0]) + && challengeIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[1]) + && challengeIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[2]) + && challengeIsFeatureUnlocked(g_MpWeaponSets[i].requirefeatures[3])) { ptr = &g_MpWeaponSets[i].slots[0]; } else if (g_MpWeaponSets[i].unk0c != WEAPON_DISABLED) { ptr = &g_MpWeaponSets[i].unk0c; @@ -1069,7 +1069,7 @@ void func0f18913c(void) s32 weaponnum = ptr[j]; if (weaponnum == WEAPON_MPSHIELD) { - if (!mpIsFeatureUnlocked(MPFEATURE_WEAPON_SHIELD)) { + if (!challengeIsFeatureUnlocked(MPFEATURE_WEAPON_SHIELD)) { weaponnum = 0; } } @@ -1097,10 +1097,10 @@ void mpApplyWeaponSet(void) u8 *ptr; if (g_MpWeaponSetNum >= 0 && g_MpWeaponSetNum < 12) { - if (mpIsFeatureUnlocked(g_MpWeaponSets[g_MpWeaponSetNum].requirefeatures[0]) - && mpIsFeatureUnlocked(g_MpWeaponSets[g_MpWeaponSetNum].requirefeatures[1]) - && mpIsFeatureUnlocked(g_MpWeaponSets[g_MpWeaponSetNum].requirefeatures[2]) - && mpIsFeatureUnlocked(g_MpWeaponSets[g_MpWeaponSetNum].requirefeatures[3])) { + if (challengeIsFeatureUnlocked(g_MpWeaponSets[g_MpWeaponSetNum].requirefeatures[0]) + && challengeIsFeatureUnlocked(g_MpWeaponSets[g_MpWeaponSetNum].requirefeatures[1]) + && challengeIsFeatureUnlocked(g_MpWeaponSets[g_MpWeaponSetNum].requirefeatures[2]) + && challengeIsFeatureUnlocked(g_MpWeaponSets[g_MpWeaponSetNum].requirefeatures[3])) { ptr = &g_MpWeaponSets[g_MpWeaponSetNum].slots[0]; } else if (g_MpWeaponSets[g_MpWeaponSetNum].unk0c != WEAPON_DISABLED) { ptr = &g_MpWeaponSets[g_MpWeaponSetNum].unk0c; @@ -1115,7 +1115,7 @@ void mpApplyWeaponSet(void) s32 mpweaponnum = MPWEAPON_NONE; s32 weaponnum = ptr[i]; - if (weaponnum == WEAPON_MPSHIELD && !mpIsFeatureUnlocked(MPFEATURE_WEAPON_SHIELD)) { + if (weaponnum == WEAPON_MPSHIELD && !challengeIsFeatureUnlocked(MPFEATURE_WEAPON_SHIELD)) { weaponnum = 0; } @@ -4406,7 +4406,7 @@ void mpEndMatch(void) mpCalculateAwards(); if (g_BossFile.locktype == MPLOCKTYPE_CHALLENGE) { - mpConsiderMarkingCurrentChallengeComplete(); + challengeConsiderMarkingComplete(); } func0f0f820c(NULL, -6); @@ -5723,7 +5723,7 @@ bool mpHasSimulants(void) bool mpHasUnusedBotSlots(void) { - s32 numvacant = mpIsFeatureUnlocked(MPFEATURE_8BOTS) ? MAX_BOTS : 4; + s32 numvacant = challengeIsFeatureUnlocked(MPFEATURE_8BOTS) ? MAX_BOTS : 4; s32 i; for (i = 4; i < MAX_MPCHRS; i++) { @@ -6003,11 +6003,11 @@ void mpplayerfileLoadWad(s32 playernum, struct savebuffer *buffer, s32 arg2) for (i = 0; i < 30; i++) { for (j = 1; j < 5; j++) { - mpSetChallengeCompletedByPlayerWithNumPlayers(playernum, i, j, savebufferReadBits(buffer, 1)); + challengeSetCompletedByPlayerWithNumPlayers(playernum, i, j, savebufferReadBits(buffer, 1)); } } - mpDetermineUnlockedFeatures(); + challengeDetermineUnlockedFeatures(); mpCalculatePlayerTitle(&g_PlayerConfigsArray[playernum]); mpplayerfileLoadGunFuncs(buffer, playernum); } @@ -6136,7 +6136,7 @@ void mpplayerfileSaveWad(s32 playernum, struct savebuffer *buffer) for (i = 0; i < 30; i++) { for (j = 1; j < 5; j++) { - savebufferOr(buffer, mpIsChallengeCompletedByPlayerWithNumPlayers(playernum, i, j), 1); + savebufferOr(buffer, challengeIsCompletedByPlayerWithNumPlayers(playernum, i, j), 1); } } @@ -6236,7 +6236,7 @@ bool mpIsPresetUnlocked(s32 presetnum) s32 i; for (i = 0; i != 16; i++) { - if (!mpIsFeatureUnlocked(g_MpPresets[presetnum].requirefeatures[i]) && + if (!challengeIsFeatureUnlocked(g_MpPresets[presetnum].requirefeatures[i]) && g_MpPresets[presetnum].requirefeatures[i] != MPFEATURE_WEAPON_SHIELD) { return false; } @@ -6346,7 +6346,7 @@ void mpApplyConfig(struct mpconfigfull *config) g_BotConfigsArray[i].base.team = config->config.simulants[i].team; } - if (!mpIsFeatureUnlocked(MPFEATURE_WEAPON_SHIELD)) { + if (!challengeIsFeatureUnlocked(MPFEATURE_WEAPON_SHIELD)) { for (i = 0; i < 6; i++) { if (g_MpSetup.weapons[i] == MPWEAPON_SHIELD) { g_MpSetup.weapons[i] = MPWEAPON_NONE; @@ -6355,7 +6355,7 @@ void mpApplyConfig(struct mpconfigfull *config) } func0f18913c(); - func0f19c190(); + challengeRemoveForceUnlocks(); } #if VERSION >= VERSION_JPN_FINAL @@ -6394,7 +6394,7 @@ glabel func0f18dec4 .JF0f18e844: /* f18e844: 8fa4002c */ lw $a0,0x2c($sp) /* f18e848: 27a50030 */ addiu $a1,$sp,0x30 -/* f18e84c: 0fc6709d */ jal mpLoadConfig +/* f18e84c: 0fc6709d */ jal challengeLoadConfig /* f18e850: 240601ca */ li $a2,0x1ca /* f18e854: 0fc6397e */ jal mpApplyConfig /* f18e858: 00402025 */ move $a0,$v0 @@ -6447,7 +6447,7 @@ void func0f18dec4(s32 slot) } - config = mpLoadConfig(confignum, buffer, sizeof(buffer)); + config = challengeLoadConfig(confignum, buffer, sizeof(buffer)); mpApplyConfig(config); } @@ -6504,7 +6504,7 @@ void mpsetupfileLoadWad(struct savebuffer *buffer) g_PlayerConfigsArray[i].base.team = savebufferReadBits(buffer, 3); } - mpForceUnlockSimulantFeatures(); + challengeForceUnlockBotFeatures(); } void mpsetupfileSaveWad(struct savebuffer *buffer) diff --git a/src/game/mplayer/scenarios.c b/src/game/mplayer/scenarios.c index c11dc404a..d9789ec97 100644 --- a/src/game/mplayer/scenarios.c +++ b/src/game/mplayer/scenarios.c @@ -3,7 +3,7 @@ #include "game/chraction.h" #include "game/dlights.h" #include "game/game_006900.h" -#include "game/game_00c490.h" +#include "game/setup.h" #include "game/prop.h" #include "game/propsnd.h" #include "game/atan2f.h" @@ -19,7 +19,7 @@ #include "game/mplayer/scenarios.h" #include "game/radar.h" #include "game/botcmd.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/lang.h" #include "game/mplayer/mplayer.h" #include "game/pad.h" @@ -110,7 +110,7 @@ s32 menuhandlerMpDisplayTeam(s32 operation, struct menuitem *item, union handler s32 menuhandlerMpOneHitKills(s32 operation, struct menuitem *item, union handlerdata *data) { if (operation == MENUOP_CHECKDISABLED || operation == MENUOP_CHECKHIDDEN) { - if (mpIsFeatureUnlocked(MPFEATURE_ONEHITKILLS)) { + if (challengeIsFeatureUnlocked(MPFEATURE_ONEHITKILLS)) { return false; } @@ -131,7 +131,7 @@ s32 menuhandlerMpSlowMotion(s32 operation, struct menuitem *item, union handlerd switch (operation) { case MENUOP_CHECKDISABLED: case MENUOP_CHECKHIDDEN: - if (mpIsFeatureUnlocked(MPFEATURE_SLOWMOTION)) { + if (challengeIsFeatureUnlocked(MPFEATURE_SLOWMOTION)) { return false; } return true; @@ -323,7 +323,7 @@ s32 scenarioScenarioMenuHandler(s32 operation, struct menuitem *item, union hand switch (operation) { case MENUOP_GETOPTIONCOUNT: for (i = 0; i < ARRAYCOUNT(g_MpScenarioOverviews); i++) { - if (mpIsFeatureUnlocked(g_MpScenarioOverviews[i].requirefeature) + if (challengeIsFeatureUnlocked(g_MpScenarioOverviews[i].requirefeature) && (teamgame || g_MpScenarioOverviews[i].teamonly == false)) { count++; } @@ -333,7 +333,7 @@ s32 scenarioScenarioMenuHandler(s32 operation, struct menuitem *item, union hand break; case MENUOP_GETOPTIONTEXT: for (i = 0; i < ARRAYCOUNT(g_MpScenarioOverviews); i++) { - if (mpIsFeatureUnlocked(g_MpScenarioOverviews[i].requirefeature) + if (challengeIsFeatureUnlocked(g_MpScenarioOverviews[i].requirefeature) && (teamgame || g_MpScenarioOverviews[i].teamonly == false)) { if (count == data->list.value) { return (s32)langGet(g_MpScenarioOverviews[i].name); @@ -346,7 +346,7 @@ s32 scenarioScenarioMenuHandler(s32 operation, struct menuitem *item, union hand break; case MENUOP_SET: for (i = 0; i < ARRAYCOUNT(g_MpScenarioOverviews); i++) { - if (mpIsFeatureUnlocked(g_MpScenarioOverviews[i].requirefeature) + if (challengeIsFeatureUnlocked(g_MpScenarioOverviews[i].requirefeature) && (teamgame || g_MpScenarioOverviews[i].teamonly == false)) { if (count == data->list.value) { g_MpSetup.scenario = i; @@ -361,7 +361,7 @@ s32 scenarioScenarioMenuHandler(s32 operation, struct menuitem *item, union hand break; case MENUOP_GETOPTIONVALUE: for (i = 0; i < ARRAYCOUNT(g_MpScenarioOverviews); i++) { - if (mpIsFeatureUnlocked(g_MpScenarioOverviews[i].requirefeature) + if (challengeIsFeatureUnlocked(g_MpScenarioOverviews[i].requirefeature) && (teamgame || g_MpScenarioOverviews[i].teamonly == false)) { if (i == g_MpSetup.scenario) { data->list.value = count; @@ -376,7 +376,7 @@ s32 scenarioScenarioMenuHandler(s32 operation, struct menuitem *item, union hand case MENUOP_GETOPTGROUPCOUNT: data->list.value = 2; - if (!teamgame || (!mpIsFeatureUnlocked(MPFEATURE_SCENARIO_KOH) && !mpIsFeatureUnlocked(MPFEATURE_SCENARIO_CTC))) { + if (!teamgame || (!challengeIsFeatureUnlocked(MPFEATURE_SCENARIO_KOH) && !challengeIsFeatureUnlocked(MPFEATURE_SCENARIO_CTC))) { data->list.value--; } break; @@ -384,7 +384,7 @@ s32 scenarioScenarioMenuHandler(s32 operation, struct menuitem *item, union hand return (s32)langGet(groups[data->list.value].textid); case MENUOP_GETGROUPSTARTINDEX: for (i = 0; i < groups[data->list.value].startindex; i++) { - if (mpIsFeatureUnlocked(g_MpScenarioOverviews[i].requirefeature) + if (challengeIsFeatureUnlocked(g_MpScenarioOverviews[i].requirefeature) && (teamgame || g_MpScenarioOverviews[i].teamonly == false)) { count++; } @@ -490,9 +490,9 @@ void scenarioCreateMatchStartHudmsgs(void) if (g_BossFile.locktype == MPLOCKTYPE_CHALLENGE) { #if VERSION >= VERSION_JPN_FINAL - sprintf(challengename, "%s\n", mpGetChallengeNameBySlot(mpGetCurrentChallengeIndex())); + sprintf(challengename, "%s\n", challengeGetNameBySlot(challengeGetCurrent())); #else - sprintf(challengename, "%s:\n", mpGetChallengeNameBySlot(mpGetCurrentChallengeIndex())); + sprintf(challengename, "%s:\n", challengeGetNameBySlot(challengeGetCurrent())); #endif } @@ -1008,7 +1008,7 @@ struct prop *scenarioCreateObj(s32 modelnum, s16 padnum, f32 arg2, u32 flags, u3 obj->extrascale = arg2 * 256; obj->hidden2 &= ~OBJHFLAG_REAPABLE; - setupGenericObject(obj, 123); + setupCreateObject(obj, 123); propActivate(obj->prop); propEnable(obj->prop); diff --git a/src/game/mplayer/scenarios/capturethecase.inc b/src/game/mplayer/scenarios/capturethecase.inc index dbee81265..2a2750392 100644 --- a/src/game/mplayer/scenarios/capturethecase.inc +++ b/src/game/mplayer/scenarios/capturethecase.inc @@ -204,7 +204,7 @@ void ctcInitProps(void) tmp = &g_CtcTokenObj0; tmp->base.pad = g_ScenarioData.ctc.spawnpadsperteam[g_ScenarioData.ctc.teamindexes[0]].homepad; - weaponAssignToHome(tmp, 1000); + setupPlaceWeapon(tmp, 1000); g_ScenarioData.ctc.tokens[0] = tmp->base.prop; @@ -219,7 +219,7 @@ void ctcInitProps(void) tmp = &g_CtcTokenObj1; tmp->base.pad = g_ScenarioData.ctc.spawnpadsperteam[g_ScenarioData.ctc.teamindexes[1]].homepad; - weaponAssignToHome(tmp, 1001); + setupPlaceWeapon(tmp, 1001); g_ScenarioData.ctc.tokens[1] = tmp->base.prop; @@ -234,7 +234,7 @@ void ctcInitProps(void) tmp = &g_CtcTokenObj2; tmp->base.pad = g_ScenarioData.ctc.spawnpadsperteam[g_ScenarioData.ctc.teamindexes[2]].homepad; - weaponAssignToHome(tmp, 1002); + setupPlaceWeapon(tmp, 1002); g_ScenarioData.ctc.tokens[2] = tmp->base.prop; @@ -249,7 +249,7 @@ void ctcInitProps(void) tmp = &g_CtcTokenObj3; tmp->base.pad = g_ScenarioData.ctc.spawnpadsperteam[g_ScenarioData.ctc.teamindexes[3]].homepad; - weaponAssignToHome(tmp, 1003); + setupPlaceWeapon(tmp, 1003); g_ScenarioData.ctc.tokens[3] = tmp->base.prop; diff --git a/src/game/mplayer/scenarios/hackthatmac.inc b/src/game/mplayer/scenarios/hackthatmac.inc index 1657c7e69..2559414f2 100644 --- a/src/game/mplayer/scenarios/hackthatmac.inc +++ b/src/game/mplayer/scenarios/hackthatmac.inc @@ -168,7 +168,7 @@ void htbCreateUplink(void) g_HtmUplinkObj = template; g_HtmUplinkObj.base.pad = padnum; - weaponAssignToHome(&g_HtmUplinkObj, 999); + setupPlaceWeapon(&g_HtmUplinkObj, 999); g_HtmUplinkObj.base.hidden2 &= ~OBJH2FLAG_CANREGEN; diff --git a/src/game/mplayer/scenarios/holdthebriefcase.inc b/src/game/mplayer/scenarios/holdthebriefcase.inc index 609bd672c..d86879e83 100644 --- a/src/game/mplayer/scenarios/holdthebriefcase.inc +++ b/src/game/mplayer/scenarios/holdthebriefcase.inc @@ -171,7 +171,7 @@ void htbCreateToken(void) g_HtbTokenObj = template; g_HtbTokenObj.base.pad = g_ScenarioData.htb.tokenpad; - weaponAssignToHome(&g_HtbTokenObj, 999); + setupPlaceWeapon(&g_HtbTokenObj, 999); g_HtbTokenObj.base.hidden2 &= ~OBJH2FLAG_CANREGEN; diff --git a/src/game/mplayer/setup.c b/src/game/mplayer/setup.c index a477dbf28..3c3041f12 100644 --- a/src/game/mplayer/setup.c +++ b/src/game/mplayer/setup.c @@ -1,7 +1,7 @@ #include #include "constants.h" #include "game/camdraw.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/savebuffer.h" #include "game/menu.h" #include "game/mainmenu.h" @@ -11,7 +11,7 @@ #include "game/mplayer/ingame.h" #include "game/mplayer/setup.h" #include "game/mplayer/scenarios.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/lang.h" #include "game/mplayer/mplayer.h" #include "game/options.h" @@ -104,7 +104,7 @@ s16 mpChooseRandomStage(void) s32 index; for (i = 0; i < 16; i++) { - if (mpIsFeatureUnlocked(g_MpArenas[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_MpArenas[i].requirefeature)) { numchallengescomplete++; } } @@ -112,7 +112,7 @@ s16 mpChooseRandomStage(void) index = random() % numchallengescomplete; for (i = 0; i < 16; i++) { - if (mpIsFeatureUnlocked(g_MpArenas[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_MpArenas[i].requirefeature)) { if (index == 0) { return g_MpArenas[i].stagenum; } @@ -139,7 +139,7 @@ s32 mpArenaMenuHandler(s32 operation, struct menuitem *item, union handlerdata * switch (operation) { case MENUOP_GETOPTIONCOUNT: for (i = 0; i < ARRAYCOUNT(g_MpArenas); i++) { - if (mpIsFeatureUnlocked(g_MpArenas[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_MpArenas[i].requirefeature)) { count++; } } @@ -148,7 +148,7 @@ s32 mpArenaMenuHandler(s32 operation, struct menuitem *item, union handlerdata * break; case MENUOP_GETOPTIONTEXT: for (i = 0; i < ARRAYCOUNT(g_MpArenas); i++) { - if (mpIsFeatureUnlocked(g_MpArenas[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_MpArenas[i].requirefeature)) { if (count == data->list.value) { return (s32)langGet(g_MpArenas[i].name); } @@ -159,7 +159,7 @@ s32 mpArenaMenuHandler(s32 operation, struct menuitem *item, union handlerdata * break; case MENUOP_SET: for (i = 0; i < ARRAYCOUNT(g_MpArenas); i++) { - if (mpIsFeatureUnlocked(g_MpArenas[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_MpArenas[i].requirefeature)) { if (count == data->list.value) { break; } @@ -176,7 +176,7 @@ s32 mpArenaMenuHandler(s32 operation, struct menuitem *item, union handlerdata * data->list.value = count; } - if (mpIsFeatureUnlocked(g_MpArenas[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_MpArenas[i].requirefeature)) { count++; } } @@ -184,18 +184,18 @@ s32 mpArenaMenuHandler(s32 operation, struct menuitem *item, union handlerdata * case MENUOP_GETOPTGROUPCOUNT: data->list.value = 3; - if (!mpIsFeatureUnlocked(MPFEATURE_STAGE_COMPLEX) - && !mpIsFeatureUnlocked(MPFEATURE_STAGE_TEMPLE) - && !mpIsFeatureUnlocked(MPFEATURE_STAGE_FELICITY)) { + if (!challengeIsFeatureUnlocked(MPFEATURE_STAGE_COMPLEX) + && !challengeIsFeatureUnlocked(MPFEATURE_STAGE_TEMPLE) + && !challengeIsFeatureUnlocked(MPFEATURE_STAGE_FELICITY)) { data->list.value--; } break; case MENUOP_GETOPTGROUPTEXT: count = data->list.value; - if (!mpIsFeatureUnlocked(MPFEATURE_STAGE_COMPLEX) - && !mpIsFeatureUnlocked(MPFEATURE_STAGE_TEMPLE) - && !mpIsFeatureUnlocked(MPFEATURE_STAGE_FELICITY) + if (!challengeIsFeatureUnlocked(MPFEATURE_STAGE_COMPLEX) + && !challengeIsFeatureUnlocked(MPFEATURE_STAGE_TEMPLE) + && !challengeIsFeatureUnlocked(MPFEATURE_STAGE_FELICITY) && count > 0) { count++; } @@ -203,15 +203,15 @@ s32 mpArenaMenuHandler(s32 operation, struct menuitem *item, union handlerdata * case MENUOP_GETGROUPSTARTINDEX: groupindex = data->list.value; - if (!mpIsFeatureUnlocked(MPFEATURE_STAGE_COMPLEX) - && !mpIsFeatureUnlocked(MPFEATURE_STAGE_TEMPLE) - && !mpIsFeatureUnlocked(MPFEATURE_STAGE_FELICITY) + if (!challengeIsFeatureUnlocked(MPFEATURE_STAGE_COMPLEX) + && !challengeIsFeatureUnlocked(MPFEATURE_STAGE_TEMPLE) + && !challengeIsFeatureUnlocked(MPFEATURE_STAGE_FELICITY) && groupindex == 1) { groupindex++; } for (i = 0; i < groups[groupindex].offset; i++) { - if (mpIsFeatureUnlocked(g_MpArenas[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_MpArenas[i].requirefeature)) { count++; } } @@ -558,7 +558,7 @@ s32 mpCharacterBodyMenuHandler(s32 operation, struct menuitem *item, union handl g_Menus[g_MpPlayerNum].unk840.unk554 = 30; break; case MENUOP_21: - if (!mpIsFeatureUnlocked(mpGetBodyRequiredFeature(data->carousel.value))) { + if (!challengeIsFeatureUnlocked(mpGetBodyRequiredFeature(data->carousel.value))) { return 1; } break; @@ -664,7 +664,7 @@ s32 mpChallengesListHandler(s32 operation, struct menuitem *item, union handlerd switch (operation) { case MENUOP_GETOPTIONCOUNT: - data->list.value = mpGetAutoFocusedChallengeIndex(g_MpPlayerNum); + data->list.value = challengeGetAutoFocusedIndex(g_MpPlayerNum); break; case MENUOP_RENDER: maxplayers = 4; @@ -681,7 +681,7 @@ s32 mpChallengesListHandler(s32 operation, struct menuitem *item, union handlerd gdl = func0f153628(gdl); - name = mpChallengeGetNameWithArg(g_MpPlayerNum, challengeindex); + name = xhallengeGetName(g_MpPlayerNum, challengeindex); gdl = textRenderProjected(gdl, &x, &y, name, g_CharsHandelGothicSm, g_FontHandelGothicSm, renderdata->colour, @@ -695,20 +695,20 @@ s32 mpChallengesListHandler(s32 operation, struct menuitem *item, union handlerd gDPSetTextureLOD(gdl++, G_TL_TILE); gDPSetTextureConvert(gdl++, G_TC_FILT); - func0f0b39c0(&gdl, &g_TexGeneralConfigs[35], 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexGeneralConfigs[35], 2, 0, 2, 1, NULL); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetTextureFilter(gdl++, G_TF_POINT); for (i = 0, loopx = 10; i < maxplayers; i++) { #if VERSION >= VERSION_NTSC_1_0 - if (mpIsChallengeCompletedByPlayerWithNumPlayers2(g_MpPlayerNum, challengeindex, i + 1)) { + if (challengeIsCompletedByPlayerWithNumPlayers2(g_MpPlayerNum, challengeindex, i + 1)) { gDPSetEnvColorViaWord(gdl++, 0xb2efff00 | (renderdata->colour & 0xff) * 255 / 256); } else { gDPSetEnvColorViaWord(gdl++, 0x30407000 | (renderdata->colour & 0xff) * 255 / 256); } #else - if (mpIsChallengeCompletedByPlayerWithNumPlayers2(g_MpPlayerNum, challengeindex, i + 1)) { + if (challengeIsCompletedByPlayerWithNumPlayers2(g_MpPlayerNum, challengeindex, i + 1)) { gDPSetEnvColorViaWord(gdl++, 0xb2efffff); } else { gDPSetEnvColorViaWord(gdl++, 0x304070ff); @@ -928,7 +928,7 @@ s32 mpMedalMenuHandler(s32 operation, struct menuitem *item, union handlerdata * gDPSetTextureConvert(gdl++, G_TC_FILT); gDPSetTextureFilter(gdl++, G_TF_POINT); - func0f0b39c0(&gdl, &g_TexGeneralConfigs[35], 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexGeneralConfigs[35], 2, 0, 2, 1, NULL); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetCombineMode(gdl++, G_CC_DECALRGBA, G_CC_DECALRGBA); @@ -1300,7 +1300,7 @@ s32 mpCharacterHeadMenuHandler(s32 operation, struct menuitem *item, union handl g_Menus[g_MpPlayerNum].unk840.unk554 = 30; break; case MENUOP_21: - if (!mpIsFeatureUnlocked(mpGetHeadRequiredFeature(data->carousel.value))) { + if (!challengeIsFeatureUnlocked(mpGetHeadRequiredFeature(data->carousel.value))) { return 1; } break; @@ -1879,7 +1879,7 @@ s32 mpAddChangeSimulantMenuHandler(s32 operation, struct menuitem *item, union h switch (operation) { case MENUOP_GETOPTIONCOUNT: for (i = 0; i < ARRAYCOUNT(g_BotProfiles); i++) { - if (mpIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { count++; } } @@ -1888,7 +1888,7 @@ s32 mpAddChangeSimulantMenuHandler(s32 operation, struct menuitem *item, union h break; case MENUOP_GETOPTIONTEXT: for (i = 0; i < ARRAYCOUNT(g_BotProfiles); i++) { - if (mpIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { if (count == data->list.value) { return (s32)langGet(g_BotProfiles[i].name); } @@ -1909,7 +1909,7 @@ s32 mpAddChangeSimulantMenuHandler(s32 operation, struct menuitem *item, union h } for (i = 0; i < ARRAYCOUNT(g_BotProfiles); i++) { - if (mpIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { if (count == data->list.value) { break; } @@ -1933,7 +1933,7 @@ s32 mpAddChangeSimulantMenuHandler(s32 operation, struct menuitem *item, union h break; case MENUOP_LISTITEMFOCUS: for (i = 0; i < ARRAYCOUNT(g_BotProfiles); i++) { - if (mpIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { if (count == data->list.value) { break; } @@ -1954,7 +1954,7 @@ s32 mpAddChangeSimulantMenuHandler(s32 operation, struct menuitem *item, union h return (s32)langGet(groups[data->list.value].name); case MENUOP_GETGROUPSTARTINDEX: for (i = 0; i < groups[data->list.value].offset; i++) { - if (mpIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { count++; } } @@ -2046,7 +2046,7 @@ s32 mpBotDifficultyMenuHandler(s32 operation, struct menuitem *item, union handl break; case MENUOP_GETOPTIONCOUNT: for (i = 0; i < BOTDIFF_DISABLED; i++) { - if (mpIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { count++; } } @@ -2055,7 +2055,7 @@ s32 mpBotDifficultyMenuHandler(s32 operation, struct menuitem *item, union handl break; case MENUOP_GETOPTIONTEXT: for (i = 0; i < BOTDIFF_DISABLED; i++) { - if (mpIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { if (count == data->dropdown.value) { // "Meat", "Easy", "Normal" etc return (s32) langGet(L_MISC_082 + i); @@ -2097,7 +2097,7 @@ s32 menuhandlerMpChangeSimulantType(s32 operation, struct menuitem *item, union g_BotConfigsArray[g_Menus[g_MpPlayerNum].mpsetup.slotindex].difficulty); for (i = 0; i < profilenum; i++) { - if (mpIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { count++; } } @@ -2153,7 +2153,7 @@ s32 menuhandlerMpSimulantSlot(s32 operation, struct menuitem *item, union handle } break; case MENUOP_CHECKHIDDEN: - if (item->param >= 4 && !mpIsFeatureUnlocked(MPFEATURE_8BOTS)) { + if (item->param >= 4 && !challengeIsFeatureUnlocked(MPFEATURE_8BOTS)) { return true; } break; @@ -2805,7 +2805,7 @@ s32 menuhandlerMpTeamNameSlot(s32 operation, struct menuitem *item, union handle char *func0f17e318(struct menudialogdef *dialogdef) { - sprintf(g_StringPointer, langGet(L_MPMENU_056), mpGetChallengeNameBySlot(g_Menus[g_MpPlayerNum].mpsetup.slotindex)); + sprintf(g_StringPointer, langGet(L_MPMENU_056), challengeGetNameBySlot(g_Menus[g_MpPlayerNum].mpsetup.slotindex)); return g_StringPointer; } @@ -2816,11 +2816,11 @@ s32 menuhandler0017e38c(s32 operation, struct menuitem *item, union handlerdata { if (operation == MENUOP_SET) { #if VERSION >= VERSION_NTSC_1_0 - mpClearCurrentChallenge(); + challengeUnsetCurrent(); #endif menuPopDialog(); - mpSetCurrentChallenge(g_Menus[g_MpPlayerNum].mpsetup.slotindex); + challengeSetCurrentBySlot(g_Menus[g_MpPlayerNum].mpsetup.slotindex); } return 0; @@ -2832,7 +2832,7 @@ s32 menudialog0017e3fc(s32 operation, struct menudialogdef *dialogdef, union han case MENUOP_OPEN: g_Menus[g_MpPlayerNum].unk840.unk010 = 0; - g_Menus[g_MpPlayerNum].training.mpconfig = mpGetNthAvailableChallengeSomething( + g_Menus[g_MpPlayerNum].training.mpconfig = challengeLoadBySlot( g_Menus[g_MpPlayerNum].training.unke1c, g_Menus[g_MpPlayerNum].unk840.unk004, g_Menus[g_MpPlayerNum].unk840.unk008); @@ -3020,7 +3020,7 @@ s32 mpChallengesListMenuHandler(s32 operation, struct menuitem *item, union hand } break; case MENUOP_GETOPTIONCOUNT: - data->list.value = mpGetNumAvailableChallenges(); + data->list.value = challengeGetNumAvailable(); break; case MENUOP_SET: if (data->list.unk04 != 0) { @@ -3062,7 +3062,7 @@ s32 mpChallengesListMenuHandler(s32 operation, struct menuitem *item, union hand y = renderdata->y + 1; gdl = func0f153628(gdl); - gdl = textRenderProjected(gdl, &x, &y, mpGetChallengeNameBySlot(data->type19.unk04), g_CharsHandelGothicSm, g_FontHandelGothicSm, renderdata->colour, viGetWidth(), viGetHeight(), 0, 0); + gdl = textRenderProjected(gdl, &x, &y, challengeGetNameBySlot(data->type19.unk04), g_CharsHandelGothicSm, g_FontHandelGothicSm, renderdata->colour, viGetWidth(), viGetHeight(), 0, 0); gdl = func0f153780(gdl); gDPPipeSync(gdl++); @@ -3071,20 +3071,20 @@ s32 mpChallengesListMenuHandler(s32 operation, struct menuitem *item, union hand gDPSetTextureLOD(gdl++, G_TL_TILE); gDPSetTextureConvert(gdl++, G_TC_FILT); - func0f0b39c0(&gdl, &g_TexGeneralConfigs[35], 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexGeneralConfigs[35], 2, 0, 2, 1, NULL); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetTextureFilter(gdl++, G_TF_POINT); for (i = 0; i < maxchrs; i++) { #if VERSION >= VERSION_NTSC_1_0 - if (mpIsChallengeCompletedByAnyChrWithNumPlayersBySlot(data->type19.unk04, i + 1)) { + if (challengeIsCompletedByAnyChrWithNumPlayersBySlot(data->type19.unk04, i + 1)) { gDPSetEnvColorViaWord(gdl++, (renderdata->colour & 0xff) * 0xff >> 8 | 0xffe56500); } else { gDPSetEnvColorViaWord(gdl++, (renderdata->colour & 0xff) * 0xff >> 8 | 0x43430000); } #else - if (mpIsChallengeCompletedByAnyChrWithNumPlayersBySlot(data->type19.unk04, i + 1)) { + if (challengeIsCompletedByAnyChrWithNumPlayersBySlot(data->type19.unk04, i + 1)) { gDPSetEnvColorViaWord(gdl++, 0xffe565ff); } else { gDPSetEnvColorViaWord(gdl++, 0x434300ff); @@ -3137,7 +3137,7 @@ s32 menuhandlerMpAbortChallenge(s32 operation, struct menuitem *item, union hand } if (operation == MENUOP_SET) { - mpRemoveLock(); + challengeRemovePlayerLock(); } return 0; @@ -3165,7 +3165,7 @@ char *mpMenuTextChallengeName(struct menuitem *item) } #endif - sprintf(g_StringPointer, "%s:\n", mpChallengeGetName(mpGetCurrentChallengeIndex())); + sprintf(g_StringPointer, "%s:\n", challengeGetName(challengeGetCurrent())); return g_StringPointer; } @@ -3175,10 +3175,10 @@ s32 mpCombatChallengesMenuDialog(s32 operation, struct menudialogdef *dialogdef, if (g_BossFile.locktype == MPLOCKTYPE_CHALLENGE && g_Menus[g_MpPlayerNum].curdialog && g_Menus[g_MpPlayerNum].curdialog->definition == dialogdef - && !mpIsChallengeLoaded()) { + && !challengeIsLoaded()) { g_Menus[g_MpPlayerNum].unk840.unk010 = 0x4fac5ace; - mpLoadAndStoreCurrentChallenge( + challengeLoadAndStoreCurrent( g_Menus[g_MpPlayerNum].unk840.unk004, g_Menus[g_MpPlayerNum].unk840.unk008); } @@ -3186,7 +3186,7 @@ s32 mpCombatChallengesMenuDialog(s32 operation, struct menudialogdef *dialogdef, if (operation == MENUOP_CLOSE) { if (g_Menus[g_MpPlayerNum].unk840.unk010 == 0x4fac5ace) { - mpClearCurrentChallenge(); + challengeUnsetCurrent(); } } @@ -3196,7 +3196,7 @@ s32 mpCombatChallengesMenuDialog(s32 operation, struct menudialogdef *dialogdef, s32 menuhandler0017ec64(s32 operation, struct menuitem *item, union handlerdata *data) { if (operation == MENUOP_SET) { - mpSetCurrentChallenge(g_Menus[g_MpPlayerNum].mpsetup.slotindex); + challengeSetCurrentBySlot(g_Menus[g_MpPlayerNum].mpsetup.slotindex); func0f0f820c(&g_MpQuickGoMenuDialog, 3); } @@ -3526,7 +3526,7 @@ s32 menuhandlerMpNumberOfSimulants(s32 operation, struct menuitem *item, union h { switch (operation) { case MENUOP_GETOPTIONCOUNT: - data->dropdown.value = !mpIsFeatureUnlocked(MPFEATURE_8BOTS) ? 4 : MAX_BOTS; + data->dropdown.value = !challengeIsFeatureUnlocked(MPFEATURE_8BOTS) ? 4 : MAX_BOTS; break; case MENUOP_GETOPTIONTEXT: sprintf(g_StringPointer, "%d\n", data->dropdown.value + 1); @@ -3581,7 +3581,7 @@ s32 mpQuickTeamSimulantDifficultyHandler(s32 operation, struct menuitem *item, u switch (operation) { case MENUOP_GETOPTIONCOUNT: for (i = 0; i < 6; i++) { - if (mpIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { count++; } } @@ -3590,7 +3590,7 @@ s32 mpQuickTeamSimulantDifficultyHandler(s32 operation, struct menuitem *item, u break; case MENUOP_GETOPTIONTEXT: for (i = 0; i < 6; i++) { - if (mpIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { + if (challengeIsFeatureUnlocked(g_BotProfiles[i].requirefeature)) { if (count == data->dropdown.value) { return (s32) langGet(i + L_MISC_082); } @@ -3652,8 +3652,8 @@ s32 menudialogCombatSimulator(s32 operation, struct menudialogdef *dialogdef, un g_Vars.mpsetupmenu = MPSETUPMENU_GENERAL; g_Vars.mpquickteam = MPQUICKTEAM_NONE; g_Vars.usingadvsetup = false; - mpClearCurrentChallenge(); - mpRemoveLock(); + challengeUnsetCurrent(); + challengeRemovePlayerLock(); } return false; diff --git a/src/game/nbomb.c b/src/game/nbomb.c index ead6d025e..247ef968a 100644 --- a/src/game/nbomb.c +++ b/src/game/nbomb.c @@ -9,8 +9,8 @@ #include "game/prop.h" #include "game/objectives.h" #include "game/atan2f.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/savebuffer.h" #include "game/bg.h" #include "game/file.h" @@ -611,7 +611,7 @@ glabel var7f1a7ee8 /* f007440: 8fa40154 */ lw $a0,0x154($sp) /* f007444: 0c0059b7 */ jal mtx4LoadTranslation /* f007448: 02002825 */ or $a1,$s0,$zero -/* f00744c: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f00744c: 0fc2d5be */ jal camGetMatrix1740 /* f007450: 00000000 */ nop /* f007454: 00402025 */ or $a0,$v0,$zero /* f007458: 0c0056f8 */ jal mtx00015be0 @@ -638,7 +638,7 @@ glabel var7f1a7ee8 /* f0074ac: 27a40150 */ addiu $a0,$sp,0x150 /* f0074b0: 24060002 */ addiu $a2,$zero,0x2 /* f0074b4: 24070001 */ addiu $a3,$zero,0x1 -/* f0074b8: 0fc2ce70 */ jal func0f0b39c0 +/* f0074b8: 0fc2ce70 */ jal tex0f0b39c0 /* f0074bc: 24a50078 */ addiu $a1,$a1,0x0078 /* f0074c0: 8fb90150 */ lw $t9,0x150($sp) /* f0074c4: 3c07e700 */ lui $a3,0xe700 @@ -769,7 +769,7 @@ glabel var7f1a7ee8 /* f0076b8: 24180001 */ addiu $t8,$zero,0x1 /* f0076bc: afb80014 */ sw $t8,0x14($sp) /* f0076c0: afae0010 */ sw $t6,0x10($sp) -/* f0076c4: 0fc2ce70 */ jal func0f0b39c0 +/* f0076c4: 0fc2ce70 */ jal tex0f0b39c0 /* f0076c8: afa00018 */ sw $zero,0x18($sp) /* f0076cc: 8fb90150 */ lw $t9,0x150($sp) /* f0076d0: 3c014500 */ lui $at,0x4500 @@ -2806,7 +2806,7 @@ Gfx *nbombCreateGdl(void) gdl = gdlstart = gfxAllocate(gdlsizes[index]); - func0f0b39c0(&gdl, &g_TexGeneralConfigs[0x0a], 2, 1, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexGeneralConfigs[0x0a], 2, 1, 2, 1, NULL); gDPPipeSync(gdl++); gDPSetCycleType(gdl++, G_CYC_1CYCLE); @@ -2879,7 +2879,7 @@ Gfx *nbombRender(Gfx *gdl, struct nbomb *nbomb, Gfx *subgdl) mtx00015f04(nbomb->radius / 2000.0f, &sp88); mtx4MultMtx4(&sp48, &sp88, &spc8); - mtx00015be0(currentPlayerGetMatrix1740(), &spc8); + mtx00015be0(camGetMatrix1740(), &spc8); mtx00016054(&spc8, mtx); gSPMatrix(gdl++, osVirtualToPhysical(mtx), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW); @@ -4095,7 +4095,7 @@ glabel func0f00a490 /* f00a6f4: afa00018 */ sw $zero,0x18($sp) /* f00a6f8: a7a8005e */ sh $t0,0x5e($sp) /* f00a6fc: a7a9003c */ sh $t1,0x3c($sp) -/* f00a700: 0fc2ce70 */ jal func0f0b39c0 +/* f00a700: 0fc2ce70 */ jal tex0f0b39c0 /* f00a704: 24a50078 */ addiu $a1,$a1,0x0078 /* f00a708: 8fae0080 */ lw $t6,0x80($sp) /* f00a70c: 87a8005e */ lh $t0,0x5e($sp) @@ -4406,7 +4406,7 @@ glabel func0f00a490 /* f00a6f4: afa00018 */ sw $zero,0x18($sp) /* f00a6f8: a7a8005e */ sh $t0,0x5e($sp) /* f00a6fc: a7a9003c */ sh $t1,0x3c($sp) -/* f00a700: 0fc2ce70 */ jal func0f0b39c0 +/* f00a700: 0fc2ce70 */ jal tex0f0b39c0 /* f00a704: 24a50078 */ addiu $a1,$a1,0x0078 /* f00a708: 8fae0080 */ lw $t6,0x80($sp) /* f00a70c: 87a8005e */ lh $t0,0x5e($sp) @@ -4899,7 +4899,7 @@ glabel var7f1a7f5c /* f00ae1c: afa00018 */ sw $zero,0x18($sp) /* f00ae20: a7a80072 */ sh $t0,0x72($sp) /* f00ae24: a7a900fa */ sh $t1,0xfa($sp) -/* f00ae28: 0fc2ce70 */ jal func0f0b39c0 +/* f00ae28: 0fc2ce70 */ jal tex0f0b39c0 /* f00ae2c: 24a50048 */ addiu $a1,$a1,0x0048 /* f00ae30: 8fb80110 */ lw $t8,0x110($sp) /* f00ae34: 87a80072 */ lh $t0,0x72($sp) @@ -5259,7 +5259,7 @@ const u32 var7f1a7eac[] = {0x00000090}; // // gdl = func0f0d479c(gdl); // -// func0f0b39c0(&gdl, &g_TexGeneralConfigs[6], 4, 1, 2, 1, NULL); +// tex0f0b39c0(&gdl, &g_TexGeneralConfigs[6], 4, 1, 2, 1, NULL); // // gDPPipeSync(gdl++); // gDPSetCycleType(gdl++, G_CYC_1CYCLE); diff --git a/src/game/objectives.c b/src/game/objectives.c index 74abdfcf6..d12ffdacf 100644 --- a/src/game/objectives.c +++ b/src/game/objectives.c @@ -3,10 +3,10 @@ #include "game/chraction.h" #include "game/debug.h" #include "game/prop.h" -#include "game/game_091e10.h" +#include "game/setuputils.h" #include "game/objectives.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/hudmsg.h" #include "game/inv.h" #include "game/playermgr.h" @@ -326,7 +326,7 @@ s32 objectiveCheck(s32 index) } } - cmd = cmd + setupGetCommandLength(cmd); + cmd = cmd + setupGetCmdLength(cmd); } } } @@ -508,14 +508,14 @@ void objectiveCheckHolograph(f32 maxdist) f32 sp70[2]; func0f06803c(&sp9c, sp94, sp8c, sp78, sp70); - if (sp78[0] > currentPlayerGetScreenLeft() - && sp78[0] < currentPlayerGetScreenLeft() + currentPlayerGetScreenWidth() - && sp70[0] > currentPlayerGetScreenLeft() - && sp70[0] < currentPlayerGetScreenLeft() + currentPlayerGetScreenWidth() - && sp78[1] > currentPlayerGetScreenTop() - && sp78[1] < currentPlayerGetScreenTop() + currentPlayerGetScreenHeight() - && sp70[1] > currentPlayerGetScreenTop() - && sp70[1] < currentPlayerGetScreenTop() + currentPlayerGetScreenHeight()) { + if (sp78[0] > camGetScreenLeft() + && sp78[0] < camGetScreenLeft() + camGetScreenWidth() + && sp70[0] > camGetScreenLeft() + && sp70[0] < camGetScreenLeft() + camGetScreenWidth() + && sp78[1] > camGetScreenTop() + && sp78[1] < camGetScreenTop() + camGetScreenHeight() + && sp70[1] > camGetScreenTop() + && sp70[1] < camGetScreenTop() + camGetScreenHeight()) { criteria->status = OBJECTIVE_COMPLETE; if (g_Vars.stagenum == STAGE_CITRAINING) { @@ -562,10 +562,10 @@ void objectiveCheckHolograph(f32 maxdist) // if (pass && func0f0899dc(obj->prop, a, b, c)) { // func0f06803c(a, b, c, &fStack56); // -// if (currentPlayerGetScreenLeft() < fStack56 && fStack56 < currentPlayerGetScreenWidth() + currentPlayerGetScreenLeft() && -// currentPlayerGetScreenLeft() < fStack64 && fStack64 < currentPlayerGetScreenWidth() + currentPlayerGetScreenLeft() && -// currentPlayerGetScreenTop() < fStack52 && fStack52 < currentPlayerGetScreenHeight() + currentPlayerGetScreenTop() && -// currentPlayerGetScreenTop() < fStack60 && fStack60 < currentPlayerGetScreenHeight() + currentPlayerGetScreenTop()) { +// if (camGetScreenLeft() < fStack56 && fStack56 < camGetScreenWidth() + camGetScreenLeft() && +// camGetScreenLeft() < fStack64 && fStack64 < camGetScreenWidth() + camGetScreenLeft() && +// camGetScreenTop() < fStack52 && fStack52 < camGetScreenHeight() + camGetScreenTop() && +// camGetScreenTop() < fStack60 && fStack60 < camGetScreenHeight() + camGetScreenTop()) { // criteria->status = OBJECTIVE_COMPLETE; // // if (g_Vars.stagenum == STAGE_CITRAINING) { diff --git a/src/game/game_01b0a0.c b/src/game/pdmode.c similarity index 96% rename from src/game/game_01b0a0.c rename to src/game/pdmode.c index e2e4e99f9..93ad30885 100644 --- a/src/game/game_01b0a0.c +++ b/src/game/pdmode.c @@ -1,6 +1,6 @@ #include #include "constants.h" -#include "game/game_01b0a0.h" +#include "game/pdmode.h" #include "game/bondgun.h" #include "game/game_0b0fd0.h" #include "game/inv.h" diff --git a/src/game/player.c b/src/game/player.c index 03507a476..47ee3f9d0 100644 --- a/src/game/player.c +++ b/src/game/player.c @@ -9,20 +9,20 @@ #include "game/nbomb.h" #include "game/title.h" #include "game/chr.h" -#include "game/game_02cde0.h" +#include "game/body.h" #include "game/prop.h" #include "game/propsnd.h" #include "game/objectives.h" #include "game/atan2f.h" -#include "game/game_096ca0.h" +#include "game/quaternion.h" #include "game/bondgun.h" -#include "game/game_0abe70.h" +#include "game/gunfx.h" #include "game/game_0b0fd0.h" #include "game/game_0b2150.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/player.h" -#include "game/game_1a7560.h" +#include "game/modeldef.h" #include "game/healthbar.h" #include "game/hudmsg.h" #include "game/menu.h" @@ -35,8 +35,7 @@ #include "game/game_1531a0.h" #include "game/bg.h" #include "game/stagetable.h" -#include "game/game_165670.h" -#include "game/game_1668e0.h" +#include "game/room.h" #include "game/gfxmemory.h" #include "game/lv.h" #include "game/music.h" @@ -976,8 +975,8 @@ void playerSpawn(void) s32 prevplayernum = g_Vars.currentplayernum; setCurrentPlayerNum(g_Vars.bondplayernum); bgun0f0a0c08(&sp84, &sp9c); - mtx4RotateVec(currentPlayerGetUnk174c(), &sp9c, &sp90); - mtx4TransformVec(currentPlayerGetUnk174c(), &sp84, &sp78); + mtx4RotateVec(camGetUnk174c(), &sp9c, &sp90); + mtx4TransformVec(camGetUnk174c(), &sp84, &sp78); setCurrentPlayerNum(prevplayernum); } @@ -1453,7 +1452,7 @@ void playerTickChrBody(void) } } - g_Vars.currentplayer->model00d4 = func0f02ce8c(bodynum, headnum, bodyfiledata, headfiledata, false, model, true, true); + g_Vars.currentplayer->model00d4 = body0f02ce8c(bodynum, headnum, bodyfiledata, headfiledata, false, model, true, true); chr0f020b14(g_Vars.currentplayer->prop, g_Vars.currentplayer->model00d4, &g_Vars.currentplayer->prop->pos, g_Vars.currentplayer->prop->rooms, turnangle, 0); @@ -2920,7 +2919,7 @@ Gfx *playerRenderHealthBar(Gfx *gdl) gdl = healthbarRender(gdl, 0, 0, 0); - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); return gdl; } @@ -4759,13 +4758,13 @@ struct var80070ba4 var80070ba4[4][7] = { // [wieldmode][turnmode] void playerSetGlobalDrawWorldOffset(s32 room) { - func0f166df0(room, &g_Vars.currentplayer->globaldrawworldoffset); + room0f166df0(room, &g_Vars.currentplayer->globaldrawworldoffset); g_Vars.currentplayer->globaldrawworldbgoffset.x = g_Vars.currentplayer->globaldrawworldoffset.x; g_Vars.currentplayer->globaldrawworldbgoffset.y = g_Vars.currentplayer->globaldrawworldoffset.y; g_Vars.currentplayer->globaldrawworldbgoffset.z = g_Vars.currentplayer->globaldrawworldoffset.z; - currentPlayerSetLastRoomForOffset(room); + roomSetLastForOffset(room); } void playerSetGlobalDrawCameraOffset(void) @@ -4774,7 +4773,7 @@ void playerSetGlobalDrawCameraOffset(void) g_Vars.currentplayer->globaldrawcameraoffset.y = g_Vars.currentplayer->globaldrawworldoffset.y; g_Vars.currentplayer->globaldrawcameraoffset.z = g_Vars.currentplayer->globaldrawworldoffset.z; - mtx4RotateVecInPlace(currentPlayerGetMatrix1740(), &g_Vars.currentplayer->globaldrawcameraoffset); + mtx4RotateVecInPlace(camGetMatrix1740(), &g_Vars.currentplayer->globaldrawcameraoffset); } GLOBAL_ASM( @@ -4915,7 +4914,7 @@ glabel player0f0bfc7c /* f0bfe90: 00000000 */ nop /* f0bfe94: 0fc59e66 */ jal gfxAllocateMatrix /* f0bfe98: 00408825 */ or $s1,$v0,$zero -/* f0bfe9c: 0fc2d5c6 */ jal currentPlayerGetUnk1754 +/* f0bfe9c: 0fc2d5c6 */ jal camGetUnk1754 /* f0bfea0: 00408025 */ or $s0,$v0,$zero /* f0bfea4: 00402025 */ or $a0,$v0,$zero /* f0bfea8: 27a5008c */ addiu $a1,$sp,0x8c @@ -4953,12 +4952,12 @@ glabel player0f0bfc7c /* f0bff18: 24a50001 */ addiu $a1,$a1,0x1 /* f0bff1c: 14a8ffed */ bne $a1,$t0,.L0f0bfed4 /* f0bff20: 24c60010 */ addiu $a2,$a2,0x10 -/* f0bff24: 0fc2d3ee */ jal currentPlayerSetUnk006c +/* f0bff24: 0fc2d3ee */ jal camSetUnk006c /* f0bff28: 02002025 */ or $a0,$s0,$zero /* f0bff2c: 02002025 */ or $a0,$s0,$zero /* f0bff30: 0c0128d8 */ jal guMtxF2L /* f0bff34: 02202825 */ or $a1,$s1,$zero -/* f0bff38: 0fc2d3fe */ jal currentPlayerSetUnk1758 +/* f0bff38: 0fc2d3fe */ jal camSetUnk1758 /* f0bff3c: 02202025 */ or $a0,$s1,$zero /* f0bff40: c7ac0070 */ lwc1 $f12,0x70($sp) /* f0bff44: 0c0057c1 */ jal mtx00015f04 @@ -4972,20 +4971,20 @@ glabel player0f0bfc7c /* f0bff64: 0c005a08 */ jal mtx00016820 /* f0bff68: 8c650060 */ lw $a1,0x60($v1) /* f0bff6c: 8e4e0284 */ lw $t6,0x284($s2) -/* f0bff70: 0fc2d3e6 */ jal currentPlayerSetUnk173c +/* f0bff70: 0fc2d3e6 */ jal camSetUnk173c /* f0bff74: 8dc4005c */ lw $a0,0x5c($t6) /* f0bff78: 8e4f0284 */ lw $t7,0x284($s2) -/* f0bff7c: 0fc2d3de */ jal currentPlayerSetUnk1738 +/* f0bff7c: 0fc2d3de */ jal camSetUnk1738 /* f0bff80: 8de40060 */ lw $a0,0x60($t7) /* f0bff84: 8e580284 */ lw $t8,0x284($s2) -/* f0bff88: 0fc2d406 */ jal currentPlayerSetMatrix1740 +/* f0bff88: 0fc2d406 */ jal camSetMatrix1740 /* f0bff8c: 8f040064 */ lw $a0,0x64($t8) /* f0bff90: 8e590284 */ lw $t9,0x284($s2) -/* f0bff94: 0fc2d5d6 */ jal currentPlayerSetUnk174c +/* f0bff94: 0fc2d5d6 */ jal camSetUnk174c /* f0bff98: 8f240068 */ lw $a0,0x68($t9) -/* f0bff9c: 0fc2d5e6 */ jal currentPlayerSetUnk175c +/* f0bff9c: 0fc2d5e6 */ jal camSetUnk175c /* f0bffa0: 8fa400cc */ lw $a0,0xcc($sp) -/* f0bffa4: 0fc2d60e */ jal func0f0b5838 +/* f0bffa4: 0fc2d60e */ jal cam0f0b5838 /* f0bffa8: 00000000 */ nop /* f0bffac: 0fc2ff07 */ jal playerSetGlobalDrawCameraOffset /* f0bffb0: 00000000 */ nop @@ -5054,7 +5053,7 @@ glabel player0f0bfc7c // // s1 = gfxAllocateMatrix(); // s0 = gfxAllocateMatrix(); -// mtx4MultMtx4(currentPlayerGetUnk1754(), &sp8c, s0); +// mtx4MultMtx4(camGetUnk1754(), &sp8c, s0); // // for (i = 0; i < 4; i++) { // for (j = 0; j < 4; j++) { @@ -5066,18 +5065,18 @@ glabel player0f0bfc7c // } // } // -// currentPlayerSetUnk006c(s0); +// camSetUnk006c(s0); // guMtxF2L(s0, s1); -// currentPlayerSetUnk1758(s1); +// camSetUnk1758(s1); // mtx00015f04(scale, &sp8c); // guMtxF2L(&sp8c, g_Vars.currentplayer->matrix5c); // mtx00016820(g_Vars.currentplayer->matrix5c, g_Vars.currentplayer->matrix60); -// currentPlayerSetUnk173c(g_Vars.currentplayer->matrix5c); -// currentPlayerSetUnk1738(g_Vars.currentplayer->matrix60); -// currentPlayerSetMatrix1740(g_Vars.currentplayer->matrix64); -// currentPlayerSetUnk174c(g_Vars.currentplayer->matrix68); -// currentPlayerSetUnk175c(spcc); -// func0f0b5838(); +// camSetUnk173c(g_Vars.currentplayer->matrix5c); +// camSetUnk1738(g_Vars.currentplayer->matrix60); +// camSetMatrix1740(g_Vars.currentplayer->matrix64); +// camSetUnk174c(g_Vars.currentplayer->matrix68); +// camSetUnk175c(spcc); +// cam0f0b5838(); // playerSetGlobalDrawCameraOffset(); //} @@ -5165,13 +5164,13 @@ Gfx *playerRenderShield(Gfx *gdl) } f20 = (sinf(g_Vars.currentplayer->shieldshowrot * (M_BADTAU / maxrotf)) + 1) * 0.5f; - sp90[0] = currentPlayerGetScreenLeft() + currentPlayerGetScreenWidth() * f20; + sp90[0] = camGetScreenLeft() + camGetScreenWidth() * f20; f20 = (cosf(g_Vars.currentplayer->shieldshowrot * (M_BADTAU / maxrotf)) + 1) * 0.5f; - sp90[1] = currentPlayerGetScreenTop() + currentPlayerGetScreenHeight() * f20; + sp90[1] = camGetScreenTop() + camGetScreenHeight() * f20; - sp88[0] = currentPlayerGetScreenWidth() * (1.0f + 0.002f * ((g_Vars.currentplayer->shieldshowrnd >> 20) % 100) + (g_Vars.currentplayer->shieldshowtime * (0.2f + 0.002f * (g_Vars.currentplayer->shieldshowrnd % 100)) * (1.0f / 60.0f))); - sp88[1] = currentPlayerGetScreenHeight() * (1.0f + 0.002f * ((g_Vars.currentplayer->shieldshowrnd >> 24) % 100) + (g_Vars.currentplayer->shieldshowtime * (0.2f + 0.002f * ((g_Vars.currentplayer->shieldshowrnd >> 8) % 100)) * (1.0f / 60.0f))); + sp88[0] = camGetScreenWidth() * (1.0f + 0.002f * ((g_Vars.currentplayer->shieldshowrnd >> 20) % 100) + (g_Vars.currentplayer->shieldshowtime * (0.2f + 0.002f * (g_Vars.currentplayer->shieldshowrnd % 100)) * (1.0f / 60.0f))); + sp88[1] = camGetScreenHeight() * (1.0f + 0.002f * ((g_Vars.currentplayer->shieldshowrnd >> 24) % 100) + (g_Vars.currentplayer->shieldshowtime * (0.2f + 0.002f * ((g_Vars.currentplayer->shieldshowrnd >> 8) % 100)) * (1.0f / 60.0f))); chr0f0295f8(shield, &red, &green, &blue); @@ -5210,7 +5209,7 @@ Gfx *playerRenderShield(Gfx *gdl) } f20 = 1 - g_Vars.currentplayer->shieldshowtime * (1.0f / 60.0f); - func0f0b39c0(&gdl, &g_TexShieldConfigs[0], 4, 1, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexShieldConfigs[0], 4, 1, 2, 1, NULL); gDPSetCycleType(gdl++, G_CYC_2CYCLE); gDPSetRenderMode(gdl++, G_RM_PASS, G_RM_CLD_SURF2); @@ -5237,7 +5236,7 @@ Gfx *playerRenderShield(Gfx *gdl) Gfx *playerRenderHud(Gfx *gdl) { if (g_Vars.currentplayer->cameramode == CAMERAMODE_THIRDPERSON) { - gdl = func0f0aeed8(gdl); + gdl = boltbeamsRender(gdl); gdl = func0f15b114(gdl); gdl = hudmsgsRender(gdl); @@ -5254,7 +5253,7 @@ Gfx *playerRenderHud(Gfx *gdl) if (g_Vars.currentplayer->cameramode != CAMERAMODE_EYESPY) { bgun0f0a6c30(); - gdl = func0f0aeed8(gdl); + gdl = boltbeamsRender(gdl); bgun0f0a7138(&gdl); gdl = lasersightRenderDot(gdl); @@ -6098,7 +6097,7 @@ s32 playerTickThirdPerson(struct prop *prop) spe8 = player->model00d4->matrices; } - mtx00015be4(currentPlayerGetUnk174c(), spe8, &spa8); + mtx00015be4(camGetUnk174c(), spe8, &spa8); sp9c.x = spa8.m[3][0] + spa8.m[1][0] * 7; sp9c.y = spa8.m[3][1] + spa8.m[1][1] * 7; @@ -6518,7 +6517,7 @@ glabel player0f0c3320 /* f0c3358: 00808025 */ or $s0,$a0,$zero /* f0c335c: 27b20040 */ addiu $s2,$sp,0x40 .L0f0c3360: -/* f0c3360: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f0c3360: 0fc2d5de */ jal camGetUnk174c /* f0c3364: 00000000 */ nop /* f0c3368: 00402025 */ or $a0,$v0,$zero /* f0c336c: 02002825 */ or $a1,$s0,$zero @@ -6566,7 +6565,7 @@ glabel player0f0c3320 // s32 i; // // for (i = 0; i < count; i++) { -// mtx00015be4(currentPlayerGetUnk174c(), &matrices[i], &sp40); +// mtx00015be4(camGetUnk174c(), &matrices[i], &sp40); // // sp40.m[3][0] -= g_Vars.currentplayer->globaldrawworldoffset.x; // sp40.m[3][1] -= g_Vars.currentplayer->globaldrawworldoffset.y; diff --git a/src/game/playerreset.c b/src/game/playerreset.c index e9e2d522d..d34eeab17 100644 --- a/src/game/playerreset.c +++ b/src/game/playerreset.c @@ -6,9 +6,9 @@ #include "game/inv.h" #include "game/playerreset.h" #include "game/chr.h" -#include "game/game_02cde0.h" +#include "game/body.h" #include "game/prop.h" -#include "game/game_091e10.h" +#include "game/setuputils.h" #include "game/bondgun.h" #include "game/player.h" #include "game/inv.h" @@ -366,13 +366,13 @@ bool weaponLoadProjectileModels(s32 weaponnum) struct weaponfunc_shootprojectile *func = (struct weaponfunc_shootprojectile *)genericfunc; if (func->projectilemodelnum >= 0) { - result |= modelLoad(func->projectilemodelnum); + result |= setupLoadModeldef(func->projectilemodelnum); } } else if (genericfunc->type == INVENTORYFUNCTYPE_THROW) { struct weaponfunc_throw *func = (struct weaponfunc_throw *)genericfunc; if (func->projectilemodelnum >= 0) { - result |= modelLoad(func->projectilemodelnum); + result |= setupLoadModeldef(func->projectilemodelnum); } } } @@ -391,7 +391,7 @@ void playerInitEyespy(void) if (g_Vars.currentplayer->eyespy == NULL) { /** - * To create the eyespy's prop, a pad must be passed to propAllocateEyespy. + * To create the eyespy's prop, a pad must be passed to bodyAllocateEyespy. * However the eyespy doesn't have a pad because it's held by the * player, so it needs to choose one from the stage. The method used * will increment the chosen pad number each time the stage is loaded @@ -402,7 +402,7 @@ void playerInitEyespy(void) * causing the mid cutscene to play instead of the intro. */ padUnpack(nextpad++, PADFIELD_ROOM | PADFIELD_POS, &pad); - prop = propAllocateEyespy(&pad, pad.room); + prop = bodyAllocateEyespy(&pad, pad.room); if (prop) { g_Vars.currentplayer->eyespy = mempAlloc(sizeof(struct eyespy), MEMPOOL_STAGE); diff --git a/src/game/game_0b63b0.c b/src/game/portal.c similarity index 95% rename from src/game/game_0b63b0.c rename to src/game/portal.c index 05eb541fe..4976e9686 100644 --- a/src/game/game_0b63b0.c +++ b/src/game/portal.c @@ -8,18 +8,18 @@ #include "game/nbomb.h" #include "game/title.h" #include "game/chr.h" -#include "game/game_02cde0.h" +#include "game/body.h" #include "game/prop.h" #include "game/propsnd.h" #include "game/objectives.h" #include "game/atan2f.h" -#include "game/game_096ca0.h" +#include "game/quaternion.h" #include "game/bondgun.h" -#include "game/game_0abe70.h" +#include "game/gunfx.h" #include "game/game_0b0fd0.h" #include "game/game_0b2150.h" -#include "game/game_0b3350.h" -#include "game/game_0b63b0.h" +#include "game/tex.h" +#include "game/portal.h" #include "game/healthbar.h" #include "game/hudmsg.h" #include "game/menu.h" @@ -32,8 +32,7 @@ #include "game/game_1531a0.h" #include "game/bg.h" #include "game/stagetable.h" -#include "game/game_165670.h" -#include "game/game_1668e0.h" +#include "game/room.h" #include "game/gfxmemory.h" #include "game/lv.h" #include "game/music.h" @@ -80,7 +79,7 @@ struct var8009dd78 var8009dd78[10]; u16 *var8009ddc8; s32 var8009ddcc; -void func0f0b63b0(s32 portalnum, f32 frac) +void portal0f0b63b0(s32 portalnum, f32 frac) { if (portalnum >= 0) { u8 value = (u32)(255 * frac); @@ -89,7 +88,7 @@ void func0f0b63b0(s32 portalnum, f32 frac) } } -void func0f0b6470(s32 portalnum, f32 frac) +void portal0f0b6470(s32 portalnum, f32 frac) { if (portalnum >= 0) { u8 value = (u32)(15 * frac) & 0xf; @@ -97,21 +96,21 @@ void func0f0b6470(s32 portalnum, f32 frac) } } -f32 func0f0b6534(s32 arg0) +f32 portal0f0b6534(s32 arg0) { f32 value = (var8009ddc8[arg0] & 0xff) * 0.0039215688593686f; return value; } -f32 func0f0b656c(s32 arg0) +f32 portal0f0b656c(s32 arg0) { f32 value = ((var8009ddc8[arg0] & 0xf00) >> 8) * 0.06666667f; return value; } -void func0f0b65a8(s32 arg0) +void portal0f0b65a8(s32 arg0) { if (arg0 > 0) { var8009ddcc = arg0; @@ -121,15 +120,15 @@ void func0f0b65a8(s32 arg0) } } -void func0f0b65f8(void) +void portalsReset(void) { if (var8009ddc8) { struct prop *prop; s32 i; for (i = 0; i < var8009ddcc; i++) { - func0f0b6470(i, 1); - func0f0b63b0(i, 1); + portal0f0b6470(i, 1); + portal0f0b63b0(i, 1); } prop = g_Vars.activeprops; @@ -143,13 +142,13 @@ void func0f0b65f8(void) struct tintedglassobj *glass = (struct tintedglassobj *)obj; if (glass->portalnum >= 0) { - func0f0b6470(glass->portalnum, 0); + portal0f0b6470(glass->portalnum, 0); } } else if (obj->type == OBJTYPE_GLASS) { struct glassobj *glass = (struct glassobj *)obj; if (glass->portalnum >= 0) { - func0f0b6470(glass->portalnum, 0); + portal0f0b6470(glass->portalnum, 0); } } } @@ -159,8 +158,8 @@ void func0f0b65f8(void) } for (i = 0; i < var8009ddcc; i++) { - func0f0b656c(i); - func0f0b6534(i); + portal0f0b656c(i); + portal0f0b6534(i); } } } diff --git a/src/game/prop.c b/src/game/prop.c index 1259f41ec..93f51a4f2 100644 --- a/src/game/prop.c +++ b/src/game/prop.c @@ -12,8 +12,8 @@ #include "game/ceil.h" #include "game/bondgun.h" #include "game/game_0b0fd0.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/player.h" #include "game/playermgr.h" #include "game/explosions.h" @@ -716,7 +716,7 @@ struct prop *shotCalculateHits(s32 handnum, bool arg1, struct coord *arg2, struc } if (hitbg && shotdata.gset.weaponnum != WEAPON_FARSIGHT) { - mtx4TransformVec(currentPlayerGetMatrix1740(), &sp694.unk00, &sp658); + mtx4TransformVec(camGetMatrix1740(), &sp694.unk00, &sp658); if (shotdata.unk34 > -sp658.z) { shotdata.unk34 = -sp658.z; @@ -986,8 +986,8 @@ struct prop *func0f061d54(s32 handnum, u32 arg1, u32 arg2) sp58.y -= 15 * (random() * (1.0f / U32_MAX)); } - mtx4TransformVec(currentPlayerGetUnk174c(), &sp58, &sp40); - mtx4RotateVec(currentPlayerGetUnk174c(), &sp64, &sp4c); + mtx4TransformVec(camGetUnk174c(), &sp58, &sp40); + mtx4RotateVec(camGetUnk174c(), &sp64, &sp4c); shotCalculateHits(handnum, arg1, &sp58, &sp64, &sp40, &sp4c, 0, 4294836224, PLAYERCOUNT() >= 2); } @@ -1002,8 +1002,8 @@ void handCreateBulletRaycast(s32 handnum, bool arg1, bool dorandom, s32 arg3, bo bgunCalculateShotSpread(&sp38, &sp44, handnum, dorandom); if (arg3 > 0) { - mtx4TransformVec(currentPlayerGetUnk174c(), &sp38, &shootpos); - mtx4RotateVec(currentPlayerGetUnk174c(), &sp44, &shootdir); + mtx4TransformVec(camGetUnk174c(), &sp38, &shootpos); + mtx4RotateVec(camGetUnk174c(), &sp44, &shootdir); shotCalculateHits(handnum, arg1, &sp38, &sp44, &shootpos, &shootdir, 0, 4294836224, arg4); @@ -1175,10 +1175,10 @@ void handInflictCloseRangeDamage(s32 handnum, struct gset *gset, bool arg2) bgunGetCrossPos(&x, &y); - spfc[0] = (x - currentPlayerGetScreenLeft()) / (currentPlayerGetScreenWidth() * 0.5f) - 1.0f; - spfc[1] = (y - currentPlayerGetScreenTop()) / (currentPlayerGetScreenHeight() * 0.5f) - 1.0f; - spf4[0] = currentPlayerGetScreenHeight() * 0.16666667163372f; - spf4[1] = currentPlayerGetScreenHeight() * 0.125f; + spfc[0] = (x - camGetScreenLeft()) / (camGetScreenWidth() * 0.5f) - 1.0f; + spfc[1] = (y - camGetScreenTop()) / (camGetScreenHeight() * 0.5f) - 1.0f; + spf4[0] = camGetScreenHeight() * 0.16666667163372f; + spf4[1] = camGetScreenHeight() * 0.125f; if (isbreakableobj) { model = obj->model; @@ -1224,7 +1224,7 @@ void handInflictCloseRangeDamage(s32 handnum, struct gset *gset, bool arg2) if (!chrIsAvoiding(chr)) { bgunCalculateShotSpread(&spb8, &vector, handnum, true); skipthething = true; - mtx4RotateVecInPlace(currentPlayerGetUnk174c(), &vector); + mtx4RotateVecInPlace(camGetUnk174c(), &vector); bgunPlayPropHitSound(gset, prop, -1); if (chr->model && chrGetShield(chr) > 0) { @@ -6307,38 +6307,38 @@ f32 func0f06438c(struct prop *prop, struct coord *arg1, f32 *arg2, f32 *arg3, f3 } if (sp50) { - top = currentPlayerGetScreenTop(); - bottom = currentPlayerGetScreenTop() + currentPlayerGetScreenHeight(); - left = currentPlayerGetScreenLeft(); - right = currentPlayerGetScreenLeft() + currentPlayerGetScreenWidth(); + top = camGetScreenTop(); + bottom = camGetScreenTop() + camGetScreenHeight(); + left = camGetScreenLeft(); + right = camGetScreenLeft() + camGetScreenWidth(); } else { - top = currentPlayerGetScreenTop() + currentPlayerGetScreenHeight() * 0.175f; - bottom = currentPlayerGetScreenTop() + currentPlayerGetScreenHeight() * 0.825f; - left = currentPlayerGetScreenLeft() + currentPlayerGetScreenWidth() * 0.25f; - right = currentPlayerGetScreenLeft() + currentPlayerGetScreenWidth() * 0.75f; + top = camGetScreenTop() + camGetScreenHeight() * 0.175f; + bottom = camGetScreenTop() + camGetScreenHeight() * 0.825f; + left = camGetScreenLeft() + camGetScreenWidth() * 0.25f; + right = camGetScreenLeft() + camGetScreenWidth() * 0.75f; } if (arg1->z > -2.5f) { return -1; } - func0f0b4d04(arg1, spa0); + cam0f0b4d04(arg1, spa0); sp94.x = arg2[0]; sp94.y = arg1->y; sp94.z = arg1->z; - func0f0b4d04(&sp94, sp8c); + cam0f0b4d04(&sp94, sp8c); sp94.x = arg2[1]; sp94.y = arg1->y; sp94.z = arg1->z; - func0f0b4d04(&sp94, sp84); + cam0f0b4d04(&sp94, sp84); sp94.x = arg1->x; sp94.y = arg3[1]; sp94.z = arg1->z; - func0f0b4d04(&sp94, sp7c); + cam0f0b4d04(&sp94, sp7c); sp94.x = arg1->x; sp94.y = arg3[0]; sp94.z = arg1->z; - func0f0b4d04(&sp94, sp74); + cam0f0b4d04(&sp94, sp74); if (sp74[1] >= top && bottom >= sp7c[1]) { sp4c = false; @@ -6354,8 +6354,8 @@ f32 func0f06438c(struct prop *prop, struct coord *arg1, f32 *arg2, f32 *arg3, f3 sp48 = sp48 * g_AutoAimScale; } - sp4c = currentPlayerGetScreenLeft() + 0.5f * currentPlayerGetScreenWidth() >= (sp8c[0] + sp84[0]) * 0.5f - sp48 - && currentPlayerGetScreenLeft() + 0.5f * currentPlayerGetScreenWidth() <= (sp8c[0] + sp84[0]) * 0.5f + sp48 + sp4c = camGetScreenLeft() + 0.5f * camGetScreenWidth() >= (sp8c[0] + sp84[0]) * 0.5f - sp48 + && camGetScreenLeft() + 0.5f * camGetScreenWidth() <= (sp8c[0] + sp84[0]) * 0.5f + sp48 && left <= spa0[0] && right >= spa0[0]; } @@ -6397,13 +6397,13 @@ f32 func0f06438c(struct prop *prop, struct coord *arg1, f32 *arg2, f32 *arg3, f3 arg4[0] = value; } - if (currentPlayerGetScreenLeft() + 0.5f * currentPlayerGetScreenWidth() >= sp8c[0] - && currentPlayerGetScreenLeft() + 0.5f * currentPlayerGetScreenWidth() <= sp84[0]) { + if (camGetScreenLeft() + 0.5f * camGetScreenWidth() >= sp8c[0] + && camGetScreenLeft() + 0.5f * camGetScreenWidth() <= sp84[0]) { result = 1; - } else if (currentPlayerGetScreenLeft() + 0.5f * currentPlayerGetScreenWidth() >= sp8c[0]) { - result = 1 - ((currentPlayerGetScreenLeft() + 0.5f * currentPlayerGetScreenWidth()) - sp84[0]) / sp48; + } else if (camGetScreenLeft() + 0.5f * camGetScreenWidth() >= sp8c[0]) { + result = 1 - ((camGetScreenLeft() + 0.5f * camGetScreenWidth()) - sp84[0]) / sp48; } else { - result = 1 - (sp8c[0] - (currentPlayerGetScreenLeft() + 0.5f * currentPlayerGetScreenWidth())) / sp48; + result = 1 - (sp8c[0] - (camGetScreenLeft() + 0.5f * camGetScreenWidth())) / sp48; } } @@ -6504,10 +6504,10 @@ void autoaimTick(void) && (threat->x1 >= 0 || threat->x2 >= 0) && (threat->y1 >= 0 || threat->y2 >= 0)) { // Define the aim limits - f32 top = currentPlayerGetScreenTop() + currentPlayerGetScreenHeight() * 0.125f; - f32 bottom = currentPlayerGetScreenTop() + currentPlayerGetScreenHeight() * 0.875f; - f32 left = currentPlayerGetScreenLeft() + currentPlayerGetScreenWidth() * 0.125f; - f32 right = currentPlayerGetScreenLeft() + currentPlayerGetScreenWidth() * 0.875f; + f32 top = camGetScreenTop() + camGetScreenHeight() * 0.125f; + f32 bottom = camGetScreenTop() + camGetScreenHeight() * 0.875f; + f32 left = camGetScreenLeft() + camGetScreenWidth() * 0.125f; + f32 right = camGetScreenLeft() + camGetScreenWidth() * 0.875f; struct chrdata *chr = NULL; bestprop = threat->prop; @@ -6528,7 +6528,7 @@ void autoaimTick(void) if (spac.z < 0) { spac.x = mtx->m[3][0]; spac.y = mtx->m[3][1]; - func0f0b4d04(&spac, aimpos); + cam0f0b4d04(&spac, aimpos); } } } else { @@ -6633,11 +6633,11 @@ void autoaimTick(void) if (bestprop) { if (bmoveIsAutoAimYEnabledForCurrentWeapon() || iscmpsec) { - bmoveUpdateAutoAimYProp(bestprop, (aimpos[1] - currentPlayerGetScreenTop()) / (currentPlayerGetScreenHeight() * 0.5f) - 1); + bmoveUpdateAutoAimYProp(bestprop, (aimpos[1] - camGetScreenTop()) / (camGetScreenHeight() * 0.5f) - 1); } if (bmoveIsAutoAimXEnabledForCurrentWeapon() || iscmpsec) { - bmoveUpdateAutoAimXProp(bestprop, (aimpos[0] - currentPlayerGetScreenLeft()) / (currentPlayerGetScreenWidth() * 0.5f) - 1); + bmoveUpdateAutoAimXProp(bestprop, (aimpos[0] - camGetScreenLeft()) / (camGetScreenWidth() * 0.5f) - 1); } if (cangangsta) { diff --git a/src/game/propobj.c b/src/game/propobj.c index 27fed5332..5e17a0845 100644 --- a/src/game/propobj.c +++ b/src/game/propobj.c @@ -11,22 +11,22 @@ #include "game/playerreset.h" #include "game/chr.h" #include "game/prop.h" -#include "game/game_091e10.h" +#include "game/setuputils.h" #include "game/propsnd.h" #include "game/objectives.h" #include "game/game_096360.h" #include "game/atan2f.h" #include "game/acosfasinf.h" -#include "game/game_096ca0.h" +#include "game/quaternion.h" #include "game/floor.h" #include "game/ceil.h" #include "game/bondgun.h" -#include "game/game_0abe70.h" +#include "game/gunfx.h" #include "game/game_0b0fd0.h" #include "game/game_0b28d0.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" -#include "game/game_0b63b0.h" +#include "game/tex.h" +#include "game/camera.h" +#include "game/portal.h" #include "game/player.h" #include "game/game_0c33f0.h" #include "game/hudmsg.h" @@ -41,7 +41,6 @@ #include "game/game_1531a0.h" #include "game/bg.h" #include "game/stagetable.h" -#include "game/game_165670.h" #include "game/env.h" #include "game/gfxmemory.h" #include "game/lv.h" @@ -2154,7 +2153,7 @@ glabel func0f06803c /* f0680d4: 27a50044 */ addiu $a1,$sp,0x44 /* f0680d8: e7a60050 */ swc1 $f6,0x50($sp) /* f0680dc: c6080008 */ lwc1 $f8,0x8($s0) -/* f0680e0: 0fc2d3ae */ jal func0f0b4eb8 +/* f0680e0: 0fc2d3ae */ jal cam0f0b4eb8 /* f0680e4: e7a80054 */ swc1 $f8,0x54($sp) /* f0680e8: c7aa0044 */ lwc1 $f10,0x44($sp) /* f0680ec: 8fab0064 */ lw $t3,0x64($sp) @@ -2169,7 +2168,7 @@ glabel func0f06803c /* f068110: c6120004 */ lwc1 $f18,0x4($s0) /* f068114: e7b20050 */ swc1 $f18,0x50($sp) /* f068118: c6040008 */ lwc1 $f4,0x8($s0) -/* f06811c: 0fc2d3ae */ jal func0f0b4eb8 +/* f06811c: 0fc2d3ae */ jal cam0f0b4eb8 /* f068120: e7a40054 */ swc1 $f4,0x54($sp) /* f068124: c7a60044 */ lwc1 $f6,0x44($sp) /* f068128: 8fad0068 */ lw $t5,0x68($sp) @@ -2184,7 +2183,7 @@ glabel func0f06803c /* f06814c: 27a50044 */ addiu $a1,$sp,0x44 /* f068150: e7aa0050 */ swc1 $f10,0x50($sp) /* f068154: c6100008 */ lwc1 $f16,0x8($s0) -/* f068158: 0fc2d3ae */ jal func0f0b4eb8 +/* f068158: 0fc2d3ae */ jal cam0f0b4eb8 /* f06815c: e7b00054 */ swc1 $f16,0x54($sp) /* f068160: c7b20048 */ lwc1 $f18,0x48($sp) /* f068164: 8fae0064 */ lw $t6,0x64($sp) @@ -2199,7 +2198,7 @@ glabel func0f06803c /* f068188: 27a50044 */ addiu $a1,$sp,0x44 /* f06818c: e7a60050 */ swc1 $f6,0x50($sp) /* f068190: c6080008 */ lwc1 $f8,0x8($s0) -/* f068194: 0fc2d3ae */ jal func0f0b4eb8 +/* f068194: 0fc2d3ae */ jal cam0f0b4eb8 /* f068198: e7a80054 */ swc1 $f8,0x54($sp) /* f06819c: c7aa0048 */ lwc1 $f10,0x48($sp) /* f0681a0: 8fb90068 */ lw $t9,0x68($sp) @@ -4823,7 +4822,7 @@ void func0f069c70(struct defaultobj *obj, bool arg1, bool arg2) } if (arg2) { - func0f0923d4(obj); + setup0f0923d4(obj); } prop = obj->prop; @@ -6658,7 +6657,7 @@ void objFree(struct defaultobj *obj, bool freeprop, bool canregen) } if (weapon->weaponnum == WEAPON_BOLT) { - s32 value = func0f0aec54(obj->prop); + s32 value = boltbeamFindByProp(obj->prop); if (value != -1) { func0f0aeea8(value, 1400); @@ -6681,7 +6680,7 @@ void objFree(struct defaultobj *obj, bool freeprop, bool canregen) struct tintedglassobj *glass = (struct tintedglassobj *) obj; if (glass->portalnum >= 0) { - func0f0b6470(glass->portalnum, 1); + portal0f0b6470(glass->portalnum, 1); portalSetEnabled(glass->portalnum, true); g_BgPortals[glass->portalnum].flags |= PORTALFLAG_04; } @@ -6689,7 +6688,7 @@ void objFree(struct defaultobj *obj, bool freeprop, bool canregen) struct glassobj *glass = (struct glassobj *) obj; if (glass->portalnum >= 0) { - func0f0b6470(glass->portalnum, 1); + portal0f0b6470(glass->portalnum, 1); } } else if (obj->type == OBJTYPE_DOOR) { struct doorobj *door = (struct doorobj *) obj; @@ -7398,13 +7397,13 @@ glabel func0f06b610 /* f06b818: 0c0056c5 */ jal mtx4RotateVec /* f06b81c: 01d82021 */ addu $a0,$t6,$t8 /* f06b820: c7a00108 */ lwc1 $f0,0x108($sp) -/* f06b824: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f06b824: 0fc2d5de */ jal camGetUnk174c /* f06b828: e6e00000 */ swc1 $f0,0x0($s7) /* f06b82c: 00402025 */ or $a0,$v0,$zero /* f06b830: 27a500fc */ addiu $a1,$sp,0xfc /* f06b834: 0c0056da */ jal mtx4TransformVec /* f06b838: 8fa6014c */ lw $a2,0x14c($sp) -/* f06b83c: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f06b83c: 0fc2d5de */ jal camGetUnk174c /* f06b840: 00000000 */ nop /* f06b844: 00402025 */ or $a0,$v0,$zero /* f06b848: 27a500f0 */ addiu $a1,$sp,0xf0 @@ -7628,7 +7627,7 @@ glabel func0f06b610 /* f06bb78: 0c0056c5 */ jal mtx4RotateVec /* f06bb7c: 03292021 */ addu $a0,$t9,$t1 /* f06bb80: c7b20118 */ lwc1 $f18,0x118($sp) -/* f06bb84: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f06bb84: 0fc2d5de */ jal camGetUnk174c /* f06bb88: e6f20000 */ swc1 $f18,0x0($s7) /* f06bb8c: 00402025 */ or $a0,$v0,$zero /* f06bb90: 27a500fc */ addiu $a1,$sp,0xfc @@ -7657,7 +7656,7 @@ glabel func0f06b610 /* f06bbec: e7aa00f4 */ swc1 $f10,0xf4($sp) /* f06bbf0: e7a800f8 */ swc1 $f8,0xf8($sp) .L0f06bbf4: -/* f06bbf4: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f06bbf4: 0fc2d5de */ jal camGetUnk174c /* f06bbf8: 00000000 */ nop /* f06bbfc: 8fb00150 */ lw $s0,0x150($sp) /* f06bc00: 00402025 */ or $a0,$v0,$zero @@ -8333,13 +8332,13 @@ glabel func0f06c28c /* f06c508: 0c0056c5 */ jal mtx4RotateVec /* f06c50c: 01af2021 */ addu $a0,$t5,$t7 /* f06c510: c7a800ec */ lwc1 $f8,0xec($sp) -/* f06c514: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f06c514: 0fc2d5de */ jal camGetUnk174c /* f06c518: e7c80000 */ swc1 $f8,0x0($s8) /* f06c51c: 00402025 */ or $a0,$v0,$zero /* f06c520: 02a02825 */ or $a1,$s5,$zero /* f06c524: 0c0056da */ jal mtx4TransformVec /* f06c528: 8fa6010c */ lw $a2,0x10c($sp) -/* f06c52c: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f06c52c: 0fc2d5de */ jal camGetUnk174c /* f06c530: 00000000 */ nop /* f06c534: 00402025 */ or $a0,$v0,$zero /* f06c538: 02c02825 */ or $a1,$s6,$zero @@ -8448,13 +8447,13 @@ glabel func0f06c28c /* f06c6b4: 00000000 */ nop /* f06c6b8: 45000034 */ bc1f .L0f06c78c /* f06c6bc: 00000000 */ nop -/* f06c6c0: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f06c6c0: 0fc2d5de */ jal camGetUnk174c /* f06c6c4: e7c40000 */ swc1 $f4,0x0($s8) /* f06c6c8: 00402025 */ or $a0,$v0,$zero /* f06c6cc: 02e02825 */ or $a1,$s7,$zero /* f06c6d0: 0c0056da */ jal mtx4TransformVec /* f06c6d4: 8fa6010c */ lw $a2,0x10c($sp) -/* f06c6d8: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f06c6d8: 0fc2d5de */ jal camGetUnk174c /* f06c6dc: 00000000 */ nop /* f06c6e0: 8fb10110 */ lw $s1,0x110($sp) /* f06c6e4: 00402025 */ or $a0,$v0,$zero @@ -8653,7 +8652,7 @@ glabel func0f06c8ac /* f06c9a8: c6880004 */ lwc1 $f8,0x4($s4) /* f06c9ac: e7a8008c */ swc1 $f8,0x8c($sp) /* f06c9b0: c68a0008 */ lwc1 $f10,0x8($s4) -/* f06c9b4: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f06c9b4: 0fc2d5be */ jal camGetMatrix1740 /* f06c9b8: e7aa0090 */ swc1 $f10,0x90($sp) /* f06c9bc: 00402025 */ or $a0,$v0,$zero /* f06c9c0: 0c0056d9 */ jal mtx4TransformVecInPlace @@ -8663,7 +8662,7 @@ glabel func0f06c8ac /* f06c9d0: c7b000a0 */ lwc1 $f16,0xa0($sp) /* f06c9d4: e7a6007c */ swc1 $f6,0x7c($sp) /* f06c9d8: e7b20080 */ swc1 $f18,0x80($sp) -/* f06c9dc: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f06c9dc: 0fc2d5be */ jal camGetMatrix1740 /* f06c9e0: e7b00084 */ swc1 $f16,0x84($sp) /* f06c9e4: 00402025 */ or $a0,$v0,$zero /* f06c9e8: 0c0056c4 */ jal mtx4RotateVecInPlace @@ -10744,7 +10743,7 @@ glabel var7f1aa26c /* f06d478: 8fa400a8 */ lw $a0,0xa8($sp) /* f06d47c: 27a50080 */ addiu $a1,$sp,0x80 /* f06d480: 2486001c */ addiu $a2,$a0,0x1c -/* f06d484: 0fc248cf */ jal func0f09233c +/* f06d484: 0fc248cf */ jal setup0f09233c /* f06d488: 27a70070 */ addiu $a3,$sp,0x70 /* f06d48c: 44800000 */ mtc1 $zero,$f0 /* f06d490: 2409003f */ addiu $t1,$zero,0x3f @@ -10996,7 +10995,7 @@ glabel var7f1aa26c /* f06d810: 8fa400a8 */ lw $a0,0xa8($sp) /* f06d814: 02202825 */ or $a1,$s1,$zero /* f06d818: 2486001c */ addiu $a2,$a0,0x1c -/* f06d81c: 0fc248cf */ jal func0f09233c +/* f06d81c: 0fc248cf */ jal setup0f09233c /* f06d820: 27a70070 */ addiu $a3,$sp,0x70 /* f06d824: 44808000 */ mtc1 $zero,$f16 /* f06d828: 44809000 */ mtc1 $zero,$f18 @@ -11135,7 +11134,7 @@ glabel var7f1aa26c /* f06d650: 8fa400a8 */ lw $a0,0xa8($sp) /* f06d654: 27a50080 */ addiu $a1,$sp,0x80 /* f06d658: 2486001c */ addiu $a2,$a0,0x1c -/* f06d65c: 0fc24863 */ jal func0f09233c +/* f06d65c: 0fc24863 */ jal setup0f09233c /* f06d660: 27a70070 */ addiu $a3,$sp,0x70 /* f06d664: 44800000 */ mtc1 $zero,$f0 /* f06d668: 2409003f */ li $t1,0x3f @@ -11387,7 +11386,7 @@ glabel var7f1aa26c /* f06d9e8: 8fa400a8 */ lw $a0,0xa8($sp) /* f06d9ec: 02202825 */ move $a1,$s1 /* f06d9f0: 2486001c */ addiu $a2,$a0,0x1c -/* f06d9f4: 0fc24863 */ jal func0f09233c +/* f06d9f4: 0fc24863 */ jal setup0f09233c /* f06d9f8: 27a70070 */ addiu $a3,$sp,0x70 /* f06d9fc: 44808000 */ mtc1 $zero,$f16 /* f06da00: 44809000 */ mtc1 $zero,$f18 @@ -11526,7 +11525,7 @@ glabel var7f1aa26c /* f06d478: 8fa400a8 */ lw $a0,0xa8($sp) /* f06d47c: 27a50080 */ addiu $a1,$sp,0x80 /* f06d480: 2486001c */ addiu $a2,$a0,0x1c -/* f06d484: 0fc248cf */ jal func0f09233c +/* f06d484: 0fc248cf */ jal setup0f09233c /* f06d488: 27a70070 */ addiu $a3,$sp,0x70 /* f06d48c: 44800000 */ mtc1 $zero,$f0 /* f06d490: 2409003f */ addiu $t1,$zero,0x3f @@ -11778,7 +11777,7 @@ glabel var7f1aa26c /* f06d810: 8fa400a8 */ lw $a0,0xa8($sp) /* f06d814: 02202825 */ or $a1,$s1,$zero /* f06d818: 2486001c */ addiu $a2,$a0,0x1c -/* f06d81c: 0fc248cf */ jal func0f09233c +/* f06d81c: 0fc248cf */ jal setup0f09233c /* f06d820: 27a70070 */ addiu $a3,$sp,0x70 /* f06d824: 44808000 */ mtc1 $zero,$f16 /* f06d828: 44809000 */ mtc1 $zero,$f18 @@ -11917,7 +11916,7 @@ glabel var7f1aa26c /* f06d478: 8fa400a8 */ lw $a0,0xa8($sp) /* f06d47c: 27a50080 */ addiu $a1,$sp,0x80 /* f06d480: 2486001c */ addiu $a2,$a0,0x1c -/* f06d484: 0fc248cf */ jal func0f09233c +/* f06d484: 0fc248cf */ jal setup0f09233c /* f06d488: 27a70070 */ addiu $a3,$sp,0x70 /* f06d48c: 44800000 */ mtc1 $zero,$f0 /* f06d490: 2409003f */ addiu $t1,$zero,0x3f @@ -12169,7 +12168,7 @@ glabel var7f1aa26c /* f06d810: 8fa400a8 */ lw $a0,0xa8($sp) /* f06d814: 02202825 */ or $a1,$s1,$zero /* f06d818: 2486001c */ addiu $a2,$a0,0x1c -/* f06d81c: 0fc248cf */ jal func0f09233c +/* f06d81c: 0fc248cf */ jal setup0f09233c /* f06d820: 27a70070 */ addiu $a3,$sp,0x70 /* f06d824: 44808000 */ mtc1 $zero,$f16 /* f06d828: 44809000 */ mtc1 $zero,$f18 @@ -13735,7 +13734,7 @@ glabel func0f06ec20 /* f06ed14: 27a60058 */ addiu $a2,$sp,0x58 /* f06ed18: 0fc1a960 */ jal func0f06a580 /* f06ed1c: 27a7002c */ addiu $a3,$sp,0x2c -/* f06ed20: 0fc2bb15 */ jal func0f0aec54 +/* f06ed20: 0fc2bb15 */ jal boltbeamFindByProp /* f06ed24: 8fa4003c */ lw $a0,0x3c($sp) /* f06ed28: 2401ffff */ addiu $at,$zero,-1 /* f06ed2c: 10410008 */ beq $v0,$at,.L0f06ed50 @@ -13965,7 +13964,7 @@ glabel func0f06ef44 /* f06f03c: 27a40034 */ addiu $a0,$sp,0x34 /* f06f040: 0c0056f9 */ jal mtx00015be4 /* f06f044: 27a50074 */ addiu $a1,$sp,0x74 -/* f06f048: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f06f048: 0fc2d5de */ jal camGetUnk174c /* f06f04c: 00000000 */ nop /* f06f050: 00402025 */ or $a0,$v0,$zero /* f06f054: 8fa50024 */ lw $a1,0x24($sp) @@ -14363,7 +14362,7 @@ bool propExplode(struct prop *prop, s32 exptype) pos.y = mtx->m[3][1]; pos.z = mtx->m[3][2]; - mtx4TransformVecInPlace(currentPlayerGetUnk174c(), &pos); + mtx4TransformVecInPlace(camGetUnk174c(), &pos); } else { pos.x = parent->pos.x; pos.y = parent->pos.y; @@ -15452,7 +15451,7 @@ glabel var7f1aa2c4 /* f0703f0: 3c0d800a */ lui $t5,%hi(g_Vars) /* f0703f4: 8e030048 */ lw $v1,0x48($s0) /* f0703f8: 8fa401b0 */ lw $a0,0x1b0($sp) -/* f0703fc: 0fc2bb15 */ jal func0f0aec54 +/* f0703fc: 0fc2bb15 */ jal boltbeamFindByProp /* f070400: afa3005c */ sw $v1,0x5c($sp) /* f070404: 2401ffff */ addiu $at,$zero,-1 /* f070408: 8fa3005c */ lw $v1,0x5c($sp) @@ -16661,7 +16660,7 @@ glabel var7f1aa2c4 /* f0703f0: 3c0d800a */ lui $t5,%hi(g_Vars) /* f0703f4: 8e030048 */ lw $v1,0x48($s0) /* f0703f8: 8fa401b0 */ lw $a0,0x1b0($sp) -/* f0703fc: 0fc2bb15 */ jal func0f0aec54 +/* f0703fc: 0fc2bb15 */ jal boltbeamFindByProp /* f070400: afa3005c */ sw $v1,0x5c($sp) /* f070404: 2401ffff */ addiu $at,$zero,-1 /* f070408: 8fa3005c */ lw $v1,0x5c($sp) @@ -17596,7 +17595,7 @@ glabel var7f1aa2c4 /* f06f2c0: 8f230048 */ lw $v1,0x48($t9) /* f06f2c4: afa70170 */ sw $a3,0x170($sp) /* f06f2c8: 8fa40178 */ lw $a0,0x178($sp) -/* f06f2cc: 0fc2b26d */ jal func0f0aec54 +/* f06f2cc: 0fc2b26d */ jal boltbeamFindByProp /* f06f2d0: afa30034 */ sw $v1,0x34($sp) /* f06f2d4: 2401ffff */ addiu $at,$zero,-1 /* f06f2d8: 8fa30034 */ lw $v1,0x34($sp) @@ -18058,7 +18057,7 @@ glabel var7f1aa2c4 // // if (weapon->timer240 < 0) { // struct projectile *projectile = obj->projectile; -// s32 value = func0f0aec54(prop); +// s32 value = boltbeamFindByProp(prop); // // if (value != -1) { // func0f0aed70(value, &prop->pos); @@ -18921,7 +18920,7 @@ void hovUpdateGround(struct defaultobj *obj, struct hov *hov, struct coord *pos, testpos.z = pos->z; roomsCopy(rooms, testrooms); - func0f09233c(obj, &testpos, matrix, testrooms); + setup0f09233c(obj, &testpos, matrix, testrooms); ground = cdFindGroundYSimple(pos, 5, testrooms, &obj->floorcol, NULL); @@ -19117,7 +19116,7 @@ glabel var7f1ab5c0pf /* f071944: 02202025 */ move $a0,$s1 /* f071948: 27a50090 */ addiu $a1,$sp,0x90 /* f07194c: 8fa6005c */ lw $a2,0x5c($sp) -/* f071950: 0fc2488f */ jal func0f09233c +/* f071950: 0fc2488f */ jal setup0f09233c /* f071954: 27a7009c */ addiu $a3,$sp,0x9c /* f071958: 8fa40064 */ lw $a0,0x64($sp) /* f07195c: 8fa50060 */ lw $a1,0x60($sp) @@ -19982,7 +19981,7 @@ glabel var7f1ab5c0pf /* f071894: 02202025 */ move $a0,$s1 /* f071898: 27a50090 */ addiu $a1,$sp,0x90 /* f07189c: 8fa6005c */ lw $a2,0x5c($sp) -/* f0718a0: 0fc24863 */ jal func0f09233c +/* f0718a0: 0fc24863 */ jal setup0f09233c /* f0718a4: 27a7009c */ addiu $a3,$sp,0x9c /* f0718a8: 8fa40064 */ lw $a0,0x64($sp) /* f0718ac: 8fa50060 */ lw $a1,0x60($sp) @@ -20843,7 +20842,7 @@ glabel var7f1aa314 /* f0716bc: 02202025 */ or $a0,$s1,$zero /* f0716c0: 27a50090 */ addiu $a1,$sp,0x90 /* f0716c4: 8fa6005c */ lw $a2,0x5c($sp) -/* f0716c8: 0fc248cf */ jal func0f09233c +/* f0716c8: 0fc248cf */ jal setup0f09233c /* f0716cc: 27a7009c */ addiu $a3,$sp,0x9c /* f0716d0: 8fa40064 */ lw $a0,0x64($sp) /* f0716d4: 8fa50060 */ lw $a1,0x60($sp) @@ -21712,7 +21711,7 @@ glabel var7f1aa31c /* f072354: 02002025 */ or $a0,$s0,$zero /* f072358: 27a50450 */ addiu $a1,$sp,0x450 /* f07235c: 27a60460 */ addiu $a2,$sp,0x460 -/* f072360: 0fc248cf */ jal func0f09233c +/* f072360: 0fc248cf */ jal setup0f09233c /* f072364: 27a70440 */ addiu $a3,$sp,0x440 /* f072368: 92020003 */ lbu $v0,0x3($s0) /* f07236c: 24010033 */ addiu $at,$zero,0x33 @@ -21784,7 +21783,7 @@ glabel var7f1aa31c /* f072460: 02002025 */ or $a0,$s0,$zero /* f072464: 27a50450 */ addiu $a1,$sp,0x450 /* f072468: 27a60460 */ addiu $a2,$sp,0x460 -/* f07246c: 0fc248cf */ jal func0f09233c +/* f07246c: 0fc248cf */ jal setup0f09233c /* f072470: 27a70440 */ addiu $a3,$sp,0x440 .L0f072474: /* f072474: 8fb90484 */ lw $t9,0x484($sp) @@ -28513,7 +28512,7 @@ glabel var7f1ab110jf /* f076a04: 8ca5d534 */ lw $a1,-0x2acc($a1) /* f076a08: 0c00695b */ jal model0001a5cc /* f076a0c: 00003025 */ move $a2,$zero -/* f076a10: 0fc2d9de */ jal currentPlayerGetMatrix1740 +/* f076a10: 0fc2d9de */ jal camGetMatrix1740 /* f076a14: afa20184 */ sw $v0,0x184($sp) /* f076a18: 00402025 */ move $a0,$v0 /* f076a1c: 27a505e8 */ addiu $a1,$sp,0x5e8 @@ -32052,7 +32051,7 @@ glabel var7f1ab6dcpf /* f075b64: 8ca5d3d4 */ lw $a1,-0x2c2c($a1) /* f075b68: 0c0068d7 */ jal model0001a5cc /* f075b6c: 00003025 */ move $a2,$zero -/* f075b70: 0fc2d706 */ jal currentPlayerGetMatrix1740 +/* f075b70: 0fc2d706 */ jal camGetMatrix1740 /* f075b74: afa20184 */ sw $v0,0x184($sp) /* f075b78: 00402025 */ move $a0,$v0 /* f075b7c: 27a505e8 */ addiu $a1,$sp,0x5e8 @@ -35597,7 +35596,7 @@ glabel var7f1ab6dcpf /* f075ab4: 8ca51394 */ lw $a1,0x1394($a1) /* f075ab8: 0c006c07 */ jal model0001a5cc /* f075abc: 00003025 */ move $a2,$zero -/* f075ac0: 0fc2d6c2 */ jal currentPlayerGetMatrix1740 +/* f075ac0: 0fc2d6c2 */ jal camGetMatrix1740 /* f075ac4: afa20184 */ sw $v0,0x184($sp) /* f075ac8: 00402025 */ move $a0,$v0 /* f075acc: 27a505e8 */ addiu $a1,$sp,0x5e8 @@ -39135,7 +39134,7 @@ glabel var7f1aa438 /* f0758e0: 8ca5ce74 */ lw $a1,%lo(var8009ce74)($a1) /* f0758e4: 0c006973 */ jal model0001a5cc /* f0758e8: 00003025 */ or $a2,$zero,$zero -/* f0758ec: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f0758ec: 0fc2d5be */ jal camGetMatrix1740 /* f0758f0: afa20184 */ sw $v0,0x184($sp) /* f0758f4: 00402025 */ or $a0,$v0,$zero /* f0758f8: 27a505e8 */ addiu $a1,$sp,0x5e8 @@ -42637,7 +42636,7 @@ glabel var7f1aa438 /* f07460c: 8ca515a4 */ lw $a1,0x15a4($a1) /* f074610: 0c006dcf */ jal model0001a5cc /* f074614: 00003025 */ or $a2,$zero,$zero -/* f074618: 0fc2cd16 */ jal currentPlayerGetMatrix1740 +/* f074618: 0fc2cd16 */ jal camGetMatrix1740 /* f07461c: afa20188 */ sw $v0,0x188($sp) /* f074620: 00402025 */ or $a0,$v0,$zero /* f074624: 27a505e8 */ addiu $a1,$sp,0x5e8 @@ -44325,7 +44324,7 @@ glabel var7f1aa44c /* f077484: 8ed5000c */ lw $s5,0xc($s6) /* f077488: 0fc23109 */ jal func0f08c424 /* f07748c: 02a02825 */ or $a1,$s5,$zero -/* f077490: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f077490: 0fc2d5be */ jal camGetMatrix1740 /* f077494: 00000000 */ nop /* f077498: 00402025 */ or $a0,$v0,$zero /* f07749c: 0c0056f8 */ jal mtx00015be0 @@ -44460,7 +44459,7 @@ glabel var7f1aa44c // union modelrodata *rodata; // // func0f08c424(door, matrices); -// mtx00015be0(currentPlayerGetMatrix1740(), matrices); +// mtx00015be0(camGetMatrix1740(), matrices); // // if (model->filedata->type == &g_Skel11) { // f32 xrot = M_BADTAU - door->frac * 0.017450513318181f; @@ -46007,7 +46006,7 @@ void cctvInitMatrices(struct prop *prop, Mtxf *mtx) mtx4TransformVecInPlace(mtx, &sp64); mtx4SetTranslation(&sp64, &matrices[1]); - mtx00015be0(currentPlayerGetMatrix1740(), &matrices[1]); + mtx00015be0(camGetMatrix1740(), &matrices[1]); } void fanTick(struct prop *prop) @@ -48552,7 +48551,7 @@ void autogunInitMatrices(struct prop *prop, Mtxf *mtx) mtx4LoadYRotation(yrot, &matrices[1]); mtx4SetTranslation(&sp4c, &matrices[1]); mtx00015f04(autogun->base.model->scale, &matrices[1]); - mtx00015be0(currentPlayerGetMatrix1740(), &matrices[1]); + mtx00015be0(camGetMatrix1740(), &matrices[1]); node2 = modelGetPart(model->filedata, MODELPART_AUTOGUN_0002); rodata = node2->rodata; @@ -48771,7 +48770,7 @@ glabel var7f1aa5a8 /* f07a14c: e7b0016c */ swc1 $f16,0x16c($sp) /* f07a150: e7b20170 */ swc1 $f18,0x170($sp) .L0f07a154: -/* f07a154: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f07a154: 0fc2d5de */ jal camGetUnk174c /* f07a158: afa50108 */ sw $a1,0x108($sp) /* f07a15c: 8fa50108 */ lw $a1,0x108($sp) /* f07a160: 00402025 */ or $a0,$v0,$zero @@ -49733,7 +49732,7 @@ glabel var7f1aa5a8 /* f07a2ec: e7b0016c */ swc1 $f16,0x16c($sp) /* f07a2f0: e7b20170 */ swc1 $f18,0x170($sp) .PB0f07a2f4: -/* f07a2f4: 0fc2d6e2 */ jal currentPlayerGetUnk174c +/* f07a2f4: 0fc2d6e2 */ jal camGetUnk174c /* f07a2f8: afa50108 */ sw $a1,0x108($sp) /* f07a2fc: 8fa50108 */ lw $a1,0x108($sp) /* f07a300: 00402025 */ move $a0,$v0 @@ -50695,7 +50694,7 @@ glabel var7f1aa5a8 /* f07a14c: e7b0016c */ swc1 $f16,0x16c($sp) /* f07a150: e7b20170 */ swc1 $f18,0x170($sp) .L0f07a154: -/* f07a154: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f07a154: 0fc2d5de */ jal camGetUnk174c /* f07a158: afa50108 */ sw $a1,0x108($sp) /* f07a15c: 8fa50108 */ lw $a1,0x108($sp) /* f07a160: 00402025 */ or $a0,$v0,$zero @@ -51657,7 +51656,7 @@ glabel var7f1aa5a8 /* f07a14c: e7b0016c */ swc1 $f16,0x16c($sp) /* f07a150: e7b20170 */ swc1 $f18,0x170($sp) .L0f07a154: -/* f07a154: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f07a154: 0fc2d5de */ jal camGetUnk174c /* f07a158: afa50108 */ sw $a1,0x108($sp) /* f07a15c: 8fa50108 */ lw $a1,0x108($sp) /* f07a160: 00402025 */ or $a0,$v0,$zero @@ -63156,7 +63155,7 @@ void objInitMatrices(struct prop *prop) } else { mtx3ToMtx4(obj->realrot, &mtx); mtx4SetTranslation(&prop->pos, &mtx); - mtx00015be4(currentPlayerGetMatrix1740(), &mtx, obj->model->matrices); + mtx00015be4(camGetMatrix1740(), &mtx, obj->model->matrices); if (obj->type == OBJTYPE_CCTV) { cctvInitMatrices(prop, &mtx); @@ -63232,11 +63231,11 @@ u32 objTick(struct prop *prop) propDeregisterRooms(prop); propDelist(prop); obj->hidden &= ~OBJHFLAG_00000800; - cmdindex = setupGetCommandIndexByProp(prop); + cmdindex = setupGetCmdIndexByProp(prop); // Find the parent obj (pad is repurposed here) padnum = obj->pad; - newparent = setupCommandGetObject(cmdindex + padnum); + newparent = setupGetObjByCmdIndex(cmdindex + padnum); if (newparent && newparent->prop) { modelSetScale(obj->model, obj->model->scale); @@ -63245,7 +63244,7 @@ u32 objTick(struct prop *prop) } } else { propEnable(prop); - func0f0923d4(obj); + setup0f0923d4(obj); obj->hidden &= ~OBJHFLAG_00000800; } } else { @@ -63400,11 +63399,11 @@ s32 objTickPlayer(struct prop *prop) sp556 = true; sp476.unk10 = gfxAllocate(model->filedata->nummatrices * sizeof(Mtxf)); - sp476.unk00 = currentPlayerGetMatrix1740(); + sp476.unk00 = camGetMatrix1740(); model0001cebc(&sp476, model); if (fulltick) { - mtx00015be4(currentPlayerGetUnk174c(), model->matrices, &sp412); + mtx00015be4(camGetUnk174c(), model->matrices, &sp412); mtx4ToMtx3(&sp412, obj->realrot); sp400.x = sp412.m[3][0]; @@ -63494,7 +63493,7 @@ s32 objTickPlayer(struct prop *prop) mtx3ToMtx4(obj->realrot, &sp248); mtx4SetTranslation(&prop->pos, &sp248); - mtx4MultMtx4(currentPlayerGetMatrix1740(), &sp248, &sp152); + mtx4MultMtx4(camGetMatrix1740(), &sp248, &sp152); sp556 = true; sp312.unk10 = gfxAllocate(model->filedata->nummatrices * sizeof(Mtxf)); @@ -63515,7 +63514,7 @@ s32 objTickPlayer(struct prop *prop) if (modelGetCurAnimFrame(model) >= modelGetNumAnimFrames(model) - 1) { animTurnOff(model->anim); model->anim = NULL; - mtx00015be4(currentPlayerGetUnk174c(), model->matrices, &sp248); + mtx00015be4(camGetUnk174c(), model->matrices, &sp248); mtx4ToMtx3(&sp248, obj->realrot); tagnum = objGetTagNum(obj); @@ -65287,7 +65286,7 @@ glabel var7f1aa824 /* f0808ac: afae0014 */ sw $t6,0x14($sp) /* f0808b0: afaf0010 */ sw $t7,0x10($sp) /* f0808b4: 8fa700c8 */ lw $a3,0xc8($sp) -/* f0808b8: 0fc2ce70 */ jal func0f0b39c0 +/* f0808b8: 0fc2ce70 */ jal tex0f0b39c0 /* f0808bc: 8fa600cc */ lw $a2,0xcc($sp) /* f0808c0: 8fb000c4 */ lw $s0,0xc4($sp) /* f0808c4: 3c190102 */ lui $t9,0x102 @@ -65637,7 +65636,7 @@ glabel var7f1aa824 // // Render the image // gSPSetGeometryMode(gdl++, G_CULL_BACK); // -// func0f0b39c0(&gdl, tconfig, arg5, arg4, 2, 1, NULL); +// tex0f0b39c0(&gdl, tconfig, arg5, arg4, 2, 1, NULL); // // gSPMatrix(gdl++, osVirtualToPhysical(model->matrices), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW); // @@ -65665,7 +65664,7 @@ void objRenderProp(struct prop *prop, struct modelrenderdata *renderdata, bool w s32 sp60; sp6c = 0; - sp6c += (obj->flags & OBJFLAG_00000200) && currentPlayerGetUnk1758(); + sp6c += (obj->flags & OBJFLAG_00000200) && camGetUnk1758(); gdl = renderdata->gdl; @@ -65751,7 +65750,7 @@ void objRenderProp(struct prop *prop, struct modelrenderdata *renderdata, bool w } if (sp6c) { - gSPMatrix(gdl++, currentPlayerGetUnk1758(), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, camGetUnk1758(), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); } renderdata->gdl = gdl; @@ -65767,7 +65766,7 @@ void objRenderProp(struct prop *prop, struct modelrenderdata *renderdata, bool w } if (sp6c) { - gSPMatrix(gdl++, currentPlayerGetUnk1750(), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, camGetUnk1750(), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); } renderdata->gdl = gdl; @@ -65830,7 +65829,7 @@ glabel gfxRenderRadialShadow /* f081004: 8fa50110 */ lw $a1,0x110($sp) /* f081008: 0c005892 */ jal mtx4LoadYRotationWithTranslation /* f08100c: 27a600c0 */ addiu $a2,$sp,0xc0 -/* f081010: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f081010: 0fc2d5be */ jal camGetMatrix1740 /* f081014: 00000000 */ nop /* f081018: 00402025 */ or $a0,$v0,$zero /* f08101c: 27a500c0 */ addiu $a1,$sp,0xc0 @@ -65905,14 +65904,14 @@ glabel gfxRenderRadialShadow /* f08112c: a60a002e */ sh $t2,0x2e($s0) /* f081130: afa00018 */ sw $zero,0x18($sp) /* f081134: afac0014 */ sw $t4,0x14($sp) -/* f081138: 0fc2ce70 */ jal func0f0b39c0 +/* f081138: 0fc2ce70 */ jal tex0f0b39c0 /* f08113c: afab0010 */ sw $t3,0x10($sp) /* f081140: 10000006 */ b .L0f08115c /* f081144: 8faf0100 */ lw $t7,0x100($sp) .L0f081148: /* f081148: afad0010 */ sw $t5,0x10($sp) /* f08114c: afae0014 */ sw $t6,0x14($sp) -/* f081150: 0fc2ce70 */ jal func0f0b39c0 +/* f081150: 0fc2ce70 */ jal tex0f0b39c0 /* f081154: afa00018 */ sw $zero,0x18($sp) /* f081158: 8faf0100 */ lw $t7,0x100($sp) .L0f08115c: @@ -67861,7 +67860,7 @@ glabel var7f1aa85c /* f0828ec: c4500004 */ lwc1 $f16,0x4($v0) /* f0828f0: e7b00050 */ swc1 $f16,0x50($sp) /* f0828f4: c44a0008 */ lwc1 $f10,0x8($v0) -/* f0828f8: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f0828f8: 0fc2d5de */ jal camGetUnk174c /* f0828fc: e7aa0054 */ swc1 $f10,0x54($sp) /* f082900: 00402025 */ or $a0,$v0,$zero /* f082904: 0c0056c4 */ jal mtx4RotateVecInPlace @@ -68060,7 +68059,7 @@ glabel var7f1aa85c /* f0828ec: c4500004 */ lwc1 $f16,0x4($v0) /* f0828f0: e7b00050 */ swc1 $f16,0x50($sp) /* f0828f4: c44a0008 */ lwc1 $f10,0x8($v0) -/* f0828f8: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f0828f8: 0fc2d5de */ jal camGetUnk174c /* f0828fc: e7aa0054 */ swc1 $f10,0x54($sp) /* f082900: 00402025 */ or $a0,$v0,$zero /* f082904: 0c0056c4 */ jal mtx4RotateVecInPlace @@ -69124,7 +69123,7 @@ bool objDrop(struct prop *prop, bool lazy) if (!lazy && (prop->flags & PROPFLAG_ONTHISSCREENTHISTICK)) { // Do collision checks Mtxf *sp48 = model0001a60c(model); - mtx00015be4(currentPlayerGetUnk174c(), sp48, &spf0); + mtx00015be4(camGetUnk174c(), sp48, &spf0); propSetPerimEnabled(root, false); spe4.x = spf0.m[3][0]; @@ -71224,7 +71223,7 @@ void func0f084f64(struct defaultobj *obj) if (prop->flags & PROPFLAG_ONTHISSCREENTHISTICK) { rodata = modelGetPartRodata(model->filedata, 2); sp7c = model0001a5cc(model, modelGetPart(model->filedata, 1), 0); - mtx00015be4(currentPlayerGetUnk174c(), sp7c, &matrix); + mtx00015be4(camGetUnk174c(), sp7c, &matrix); shardsCreate((struct coord *) matrix.m[3], matrix.m[0], matrix.m[1], matrix.m[2], rodata->bbox.xmin, rodata->bbox.xmax, rodata->bbox.ymin, rodata->bbox.ymax, @@ -71667,9 +71666,9 @@ void func0f0859a0(struct prop *prop, struct shotdata *shotdata) } } - mtx4TransformVec(currentPlayerGetUnk174c(), &spd8, &sp7c); + mtx4TransformVec(camGetUnk174c(), &spd8, &sp7c); mtx4RotateVec(&model->matrices[spe4], &hitthing1.unk0c, &sp70); - mtx4RotateVecInPlace(currentPlayerGetUnk174c(), &sp70); + mtx4RotateVecInPlace(camGetUnk174c(), &sp70); func0f061fa8(shotdata, prop, spd4, lVar3, node1, &hitthing1, spe4, node2, @@ -71764,7 +71763,7 @@ glabel objHit /* f085f84: c48a0000 */ lwc1 $f10,0x0($a0) /* f085f88: c4480008 */ lwc1 $f8,0x8($v0) /* f085f8c: 460a4481 */ sub.s $f18,$f8,$f10 -/* f085f90: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f085f90: 0fc2d5de */ jal camGetUnk174c /* f085f94: e7b20118 */ swc1 $f18,0x118($sp) /* f085f98: 00402025 */ or $a0,$v0,$zero /* f085f9c: 0c0056d9 */ jal mtx4TransformVecInPlace @@ -72345,7 +72344,7 @@ glabel objHit /* f0867dc: c4440030 */ lwc1 $f4,0x30($v0) /* f0867e0: afb80048 */ sw $t8,0x48($sp) /* f0867e4: 46002402 */ mul.s $f16,$f4,$f0 -/* f0867e8: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f0867e8: 0fc2d5de */ jal camGetUnk174c /* f0867ec: e7b000b8 */ swc1 $f16,0xb8($sp) /* f0867f0: 8fb9011c */ lw $t9,0x11c($sp) /* f0867f4: 8fac0124 */ lw $t4,0x124($sp) @@ -72495,7 +72494,7 @@ glabel objHit /* f0847e8: c48a0000 */ lwc1 $f10,0x0($a0) /* f0847ec: c4480008 */ lwc1 $f8,0x8($v0) /* f0847f0: 460a4481 */ sub.s $f18,$f8,$f10 -/* f0847f4: 0fc2cd36 */ jal currentPlayerGetUnk174c +/* f0847f4: 0fc2cd36 */ jal camGetUnk174c /* f0847f8: e7b20118 */ swc1 $f18,0x118($sp) /* f0847fc: 00402025 */ or $a0,$v0,$zero /* f084800: 0c005a95 */ jal mtx4TransformVecInPlace @@ -73074,7 +73073,7 @@ glabel objHit /* f085038: c4440030 */ lwc1 $f4,0x30($v0) /* f08503c: afb90048 */ sw $t9,0x48($sp) /* f085040: 46002402 */ mul.s $f16,$f4,$f0 -/* f085044: 0fc2cd36 */ jal currentPlayerGetUnk174c +/* f085044: 0fc2cd36 */ jal camGetUnk174c /* f085048: e7b000b8 */ swc1 $f16,0xb8($sp) /* f08504c: 8faf011c */ lw $t7,0x11c($sp) /* f085050: 8fae0124 */ lw $t6,0x124($sp) @@ -78162,7 +78161,7 @@ void hatLoadAndApplyToChr(struct hatobj *hat, struct chrdata *chr) u32 stack; s32 modelnum = hat->base.modelnum; - modelLoad(modelnum); + setupLoadModeldef(modelnum); hatApplyToChr(hat, chr, g_ModelStates[modelnum].filedata, NULL, NULL); } @@ -78179,7 +78178,7 @@ struct prop *hatCreateForChr(struct chrdata *chr, s32 modelnum, u32 flags) struct model *model; struct hatobj *obj; - modelLoad(modelnum); + setupLoadModeldef(modelnum); filedata = g_ModelStates[modelnum].filedata; prop = propAllocate(); model = modelInstantiate(filedata); @@ -78852,7 +78851,7 @@ void func0f08b208(struct weaponobj *weapon, struct chrdata *chr) u32 stack; s32 modelnum = weapon->base.modelnum; - modelLoad(modelnum); + setupLoadModeldef(modelnum); func0f08b108(weapon, chr, g_ModelStates[modelnum].filedata, 0, 0); } @@ -78876,7 +78875,7 @@ struct autogunobj *laptopDeploy(s32 modelnum, struct gset *gset, struct chrdata } if (index >= 0 && index < g_MaxThrownLaptops) { - modelLoad(modelnum); + setupLoadModeldef(modelnum); filedata = g_ModelStates[modelnum].filedata; laptop = &g_ThrownLaptops[index]; @@ -79086,7 +79085,7 @@ glabel var7f1aaf24 /* f08b664: afb00014 */ sw $s0,0x14($sp) /* f08b668: afa400a0 */ sw $a0,0xa0($sp) /* f08b66c: afa500a4 */ sw $a1,0xa4($sp) -/* f08b670: 0fc2486d */ jal modelLoad +/* f08b670: 0fc2486d */ jal setupLoadModeldef /* f08b674: afa600a8 */ sw $a2,0xa8($sp) /* f08b678: 8fae00a0 */ lw $t6,0xa0($sp) /* f08b67c: 3c188008 */ lui $t8,%hi(g_ModelStates) @@ -79311,7 +79310,7 @@ glabel var7f1aaf24 /* f089e9c: afb00014 */ sw $s0,0x14($sp) /* f089ea0: afa400a0 */ sw $a0,0xa0($sp) /* f089ea4: afa500a4 */ sw $a1,0xa4($sp) -/* f089ea8: 0fc241fe */ jal modelLoad +/* f089ea8: 0fc241fe */ jal setupLoadModeldef /* f089eac: afa600a8 */ sw $a2,0xa8($sp) /* f089eb0: 8fae00a0 */ lw $t6,0xa0($sp) /* f089eb4: 3c188008 */ lui $t8,0x8008 @@ -79501,7 +79500,7 @@ struct prop *weaponCreateForChr(struct chrdata *chr, s32 modelnum, s32 weaponnum struct model *model; if (filedata == NULL) { - modelLoad(modelnum); + setupLoadModeldef(modelnum); filedata = g_ModelStates[modelnum].filedata; } @@ -81417,7 +81416,7 @@ f32 func0f08e6bc(struct prop *prop, f32 arg1) struct coord *coord = env0f1667e8(); if (coord != NULL && coord->z < prop->z) { - f32 scalez = currentPlayerGetLodScaleZ(); + f32 scalez = camGetLodScaleZ(); f32 value = ((prop->z - coord->z) * 100.0f / arg1 + coord->z) * scalez; if (value >= coord->y) { @@ -81439,7 +81438,7 @@ bool func0f08e794(struct coord *coord, f32 arg1) if (ptr != NULL) { struct coord *campos = &g_Vars.currentplayer->cam_pos; - Mtxf *mtx = currentPlayerGetMatrix1740(); + Mtxf *mtx = camGetMatrix1740(); tmp.x = coord->x - campos->x; tmp.y = coord->y - campos->y; @@ -81448,7 +81447,7 @@ bool func0f08e794(struct coord *coord, f32 arg1) sp20 = tmp.f[0] * mtx->m[0][0] + tmp.f[1] * mtx->m[0][1] + tmp.f[2] * mtx->m[0][2]; if (sp20 > ptr->z) { - f32 scalez = currentPlayerGetLodScaleZ(); + f32 scalez = camGetLodScaleZ(); sp20 = ((sp20 - ptr->z) * 100 / arg1 + ptr->z) * scalez; if (sp20 >= ptr->y) { @@ -81473,7 +81472,7 @@ u32 func0f08e8ac(struct prop *prop, struct coord *coord, f32 arg2, bool arg3) while (roomnum != -1) { if (g_Rooms[roomnum].flags & ROOMFLAG_VISIBLEBYPLAYER) { if (env0f1666f8(coord, arg2) && (!arg3 || func0f08e794(coord, arg2))) { - result = func0f0b6260(prop->rooms, coord, arg2); + result = cam0f0b6260(prop->rooms, coord, arg2); if (result) { struct coord *campos = &g_Vars.currentplayer->cam_pos; @@ -81695,7 +81694,7 @@ void doorsCalcFrac(struct doorobj *door) struct prop *loopprop; doorUpdateTiles(loopdoor); - func0f0923d4(&loopdoor->base); + setup0f0923d4(&loopdoor->base); loopprop = loopdoor->base.prop; @@ -81803,7 +81802,7 @@ void doorsCalcFrac(struct doorobj *door) loopdoor->frac = *(f32 *)&loopdoor->lastcalc60; doorUpdateTiles(loopdoor); - func0f0923d4(&loopdoor->base); + setup0f0923d4(&loopdoor->base); func0f08d460(loopdoor); } } else { @@ -81843,8 +81842,8 @@ void doorsCalcFrac(struct doorobj *door) } } - func0f0b6470(door->portalnum, frac / numsameportal); - func0f0b63b0(door->portalnum, frac / numsameportal); + portal0f0b6470(door->portalnum, frac / numsameportal); + portal0f0b63b0(door->portalnum, frac / numsameportal); } } diff --git a/src/game/game_015010.c b/src/game/propobjstop.c similarity index 94% rename from src/game/game_015010.c rename to src/game/propobjstop.c index b658e0599..642638708 100644 --- a/src/game/game_015010.c +++ b/src/game/propobjstop.c @@ -1,7 +1,6 @@ #include #include "constants.h" -#include "game/game_015010.h" -#include "game/game_091e10.h" +#include "game/setuputils.h" #include "game/propobj.h" #include "bss.h" #include "data.h" @@ -78,7 +77,7 @@ void objsStop(void) break; } - ptr = ptr + setupGetCommandLength(ptr); + ptr = ptr + setupGetCmdLength(ptr); } } } diff --git a/src/game/game_096ca0.c b/src/game/quaternion.c similarity index 99% rename from src/game/game_096ca0.c rename to src/game/quaternion.c index ae9501fe2..e21ddf900 100644 --- a/src/game/game_096ca0.c +++ b/src/game/quaternion.c @@ -1,7 +1,7 @@ #include #include "constants.h" #include "game/acosfasinf.h" -#include "game/game_096ca0.h" +#include "game/quaternion.h" #include "bss.h" #include "lib/mtx.h" #include "data.h" diff --git a/src/game/race.c b/src/game/race.c new file mode 100644 index 000000000..0aa7ee039 --- /dev/null +++ b/src/game/race.c @@ -0,0 +1,129 @@ +#include +#include "constants.h" +#include "game/race.h" +#include "game/floor.h" +#include "bss.h" +#include "lib/anim.h" +#include "data.h" +#include "types.h" + +u16 raceInitAnim(s16 animnum, s32 frame, s32 endframe) +{ + s16 sp48[4]; + u16 count = 0; + + while (frame < endframe) { + count += anim0002485c(0, 0, &g_SkelChr, animnum, frame, sp48, 0); + frame++; + } + + return count; +} + +s32 race0f000358(s16 animnum, s32 frame, s32 endframe) +{ + s32 count = 0; + s16 sp44[4]; + + while (frame < endframe) { + anim0002485c(0, 0, &g_SkelChr, animnum, frame, sp44, 0); + count += sp44[2]; + frame++; + } + + return count; +} + +s32 raceInitAnimGroup(struct attackanimconfig *configs) +{ + s32 count = 0; + struct attackanimconfig *config = configs; + + while (config->animnum != 0) { + u16 value = raceInitAnim(config->animnum, 0, floor(config->unk04)); + + if (config->unk04 > 0) { + if (value < 0x8000) { + config->unk08 = value * 0.00009585853695171f / config->unk04; + } else { + config->unk08 = (value * 0.00009585853695171f - M_BADTAU) / config->unk04; + } + } else { + config->unk08 = 0; + } + + config++; + count++; + } + + return count; +} + +void raceInitAnimGroups(struct attackanimgroup **groups) +{ + s32 i; + + for (i = 0; i < 32; i++) { + if (groups[i]->len < 0) { + groups[i]->len = raceInitAnimGroup(groups[i]->animcfg); + } + } +} + +s32 raceCountAnims(struct animtablerow *rows) +{ + s32 i; + + for (i = 0; rows[i].animnum > 0; i++); + + return i; +} + +f32 race0f0005c0(s16 animnum) +{ + f32 tmp = race0f000358(animnum, 0, animGetNumFrames(animnum) - 1) / (f32) animGetNumFrames(animnum); + + var8005f014[animnum] = tmp; + + return tmp * 0.1000000089407f; +} + +void raceInitAnims(void) +{ + s32 race; + s32 i; + + for (race = 0; race < 5; race++) { + for (i = 0; g_AnimTablesByRace[race][i].hitpart != -1; i++) { + if (g_AnimTablesByRace[race][i].deathanims) { + g_AnimTablesByRace[race][i].deathanimcount = raceCountAnims(g_AnimTablesByRace[race][i].deathanims); + } else { + g_AnimTablesByRace[race][i].deathanimcount = 0; + } + + if (g_AnimTablesByRace[race][i].injuryanims) { + g_AnimTablesByRace[race][i].injuryanimcount = raceCountAnims(g_AnimTablesByRace[race][i].injuryanims); + } else { + g_AnimTablesByRace[race][i].injuryanimcount = 0; + } + } + + for (i = 0; var80067fdc[race][i].animnum >= 0; i++) { + var80067fdc[race][i].value = race0f0005c0(var80067fdc[race][i].animnum); + } + } + + raceCountAnims(g_AnimTableHumanSlumped); + + for (race = 0; race < 2; race++) { + raceInitAnimGroups(g_StandHeavyAttackAnims[race]); + raceInitAnimGroups(g_StandLightAttackAnims[race]); + raceInitAnimGroups(g_StandDualAttackAnims[race]); + raceInitAnimGroups(g_KneelHeavyAttackAnims[race]); + raceInitAnimGroups(g_KneelLightAttackAnims[race]); + raceInitAnimGroups(g_KneelDualAttackAnims[race]); + } + + raceInitAnimGroup(g_RollAttackAnims); + raceInitAnimGroup(&g_AttackAnimHeavyWalk); +} diff --git a/src/game/game_000100.c b/src/game/raceinit.c similarity index 80% rename from src/game/game_000100.c rename to src/game/raceinit.c index 702c1959e..6e5be2fe5 100644 --- a/src/game/game_000100.c +++ b/src/game/raceinit.c @@ -1,6 +1,6 @@ #include #include "constants.h" -#include "game/game_000130.h" +#include "game/race.h" #include "game/chr.h" #include "bss.h" #include "data.h" @@ -9,5 +9,5 @@ void racesInit(void) { modelSetVtxAllocatorFunc(&chrAllocateVertices); - func0f000648(); + raceInitAnims(); } diff --git a/src/game/radar.c b/src/game/radar.c index ef29af397..8a6424699 100644 --- a/src/game/radar.c +++ b/src/game/radar.c @@ -4,7 +4,7 @@ #include "game/chraction.h" #include "game/atan2f.h" #include "game/game_0b2150.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/game_152fa0.h" #include "game/game_1531a0.h" #include "game/mplayer/scenarios.h" @@ -77,7 +77,7 @@ Gfx *radarRenderBackground(Gfx *gdl, struct textureconfig *tconfig, s32 arg2, s3 spa8[0] = arg4 * g_ScaleX; spa8[1] = arg4; - func0f0b39c0(&gdl, tconfig, 2, 0, 0, 1, NULL); + tex0f0b39c0(&gdl, tconfig, 2, 0, 0, 1, NULL); func0f0b278c(&gdl, spb0, spa8, tconfig->width, tconfig->height, 0, 0, 1, 0, 0xff, 0, 40, tconfig->level > 0, 0); diff --git a/src/game/game_1668e0.c b/src/game/room.c similarity index 81% rename from src/game/game_1668e0.c rename to src/game/room.c index 688986049..3aabe0191 100644 --- a/src/game/game_1668e0.c +++ b/src/game/room.c @@ -1,6 +1,6 @@ #include #include "constants.h" -#include "game/game_1668e0.h" +#include "game/room.h" #include "bss.h" #include "lib/mtx.h" #include "data.h" @@ -14,27 +14,27 @@ Mtxf *var800a6670; s32 var80082050 = 0; -void currentPlayerSetLastRoomForOffset(s32 room) +void roomSetLastForOffset(s32 room) { g_Vars.currentplayer->lastroomforoffset = room; } -void func0f1668f0(s32 index, s32 roomnum) +void room0f1668f0(s32 index, s32 roomnum) { g_Rooms[roomnum].unk10 = index; var800a6664[index] = roomnum; } -void func0f16692c(s32 index, s32 roomnum) +void room0f16692c(s32 index, s32 roomnum) { g_Rooms[roomnum].unk10 = -1; var800a6664[index] = -1; } -void func0f16696c(s32 index) +void room0f16696c(s32 index) { if (var800a6664[index] != -1) { - func0f16692c(index, var800a6664[index]); + room0f16692c(index, var800a6664[index]); } var800a6660[index] = 2; @@ -42,7 +42,7 @@ void func0f16696c(s32 index) var800a666c[index] = 1; } -s32 func0f1669fc(void) +s32 room0f1669fc(void) { s32 i; @@ -55,7 +55,7 @@ s32 func0f1669fc(void) return 0; } -void func0f166a6c(Mtxf *mtx, s32 roomnum) +void room0f166a6c(Mtxf *mtx, s32 roomnum) { s32 stagenum = g_Vars.stagenum; @@ -88,7 +88,7 @@ void func0f166a6c(Mtxf *mtx, s32 roomnum) } } -s32 func0f166c20(s32 roomnum) +s32 room0f166c20(s32 roomnum) { s32 index = g_Rooms[roomnum].unk10; Mtxf mtx; @@ -97,12 +97,12 @@ s32 func0f166c20(s32 roomnum) || g_Vars.currentplayer->lastroomforoffset != var800a6668[index] || var800a666c[index] != var8005ef10[0]) { if (index != -1) { - func0f16692c(index, roomnum); + room0f16692c(index, roomnum); } - index = func0f1669fc(); + index = room0f1669fc(); - func0f1668f0(index, roomnum); + room0f1668f0(index, roomnum); var800a6660[index] = 0; } else { var800a6660[index] = 0; @@ -112,27 +112,27 @@ s32 func0f166c20(s32 roomnum) var800a6668[index] = g_Vars.currentplayer->lastroomforoffset; var800a666c[index] = var8005ef10[0]; - func0f166a6c(&mtx, roomnum); + room0f166a6c(&mtx, roomnum); mtx00016054(&mtx, &var800a6670[index]); return index; } -Gfx *func0f166d7c(Gfx *gdl, s32 roomnum) +Gfx *room0f166d7c(Gfx *gdl, s32 roomnum) { - s32 index = func0f166c20(roomnum); + s32 index = room0f166c20(roomnum); gSPMatrix(gdl++, &var800a6670[index], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW); return gdl; } -struct coord *func0f166dd0(s32 room) +struct coord *room0f166dd0(s32 room) { return &g_BgRooms[room].pos; } -void func0f166df0(s32 room, struct coord *globaldrawworldoffset) +void room0f166df0(s32 room, struct coord *globaldrawworldoffset) { globaldrawworldoffset->x = g_BgRooms[room].pos.x; globaldrawworldoffset->y = g_BgRooms[room].pos.y; diff --git a/src/game/roomreset.c b/src/game/roomreset.c new file mode 100644 index 000000000..c506b0aec --- /dev/null +++ b/src/game/roomreset.c @@ -0,0 +1,37 @@ +#include +#include "constants.h" +#include "game/bg.h" +#include "game/pad.h" +#include "bss.h" +#include "lib/memp.h" +#include "lib/anim.h" +#include "data.h" +#include "types.h" + +void roomsReset(void) +{ + s32 i; + + var80082050 = PLAYERCOUNT() >= 2 ? 200 : 120; + + var800a6660 = mempAlloc(ALIGN16(var80082050), MEMPOOL_STAGE); + var800a6664 = mempAlloc(ALIGN16(var80082050 * sizeof(s16)), MEMPOOL_STAGE); + var800a6668 = mempAlloc(ALIGN16(var80082050 * sizeof(s16)), MEMPOOL_STAGE); + var800a666c = mempAlloc(ALIGN16(var80082050 * sizeof(f32)), MEMPOOL_STAGE); + var800a6670 = mempAlloc(ALIGN16(var80082050 * sizeof(Mtxf)), MEMPOOL_STAGE); + + for (i = 0; i < PLAYERCOUNT(); i++) { + g_Vars.players[i]->lastroomforoffset = -1; + } + + for (i = 0; i < var80082050; i++) { + var800a6664[i] = -1; + var800a6660[i] = 2; + var800a6668[i] = -1; + var800a666c[i] = 1; + } + + for (i = 0; i < g_Vars.roomcount; i++) { + g_Rooms[i].unk10 = -1; + } +} diff --git a/src/game/game_01d8c0.c b/src/game/roomtick.c similarity index 76% rename from src/game/game_01d8c0.c rename to src/game/roomtick.c index 4e4f407c1..4b3415585 100644 --- a/src/game/game_01d8c0.c +++ b/src/game/roomtick.c @@ -1,11 +1,11 @@ #include #include "constants.h" -#include "game/game_1668e0.h" +#include "game/room.h" #include "bss.h" #include "data.h" #include "types.h" -void func0f01d8c0(void) +void roomsTick(void) { s32 i; @@ -14,7 +14,7 @@ void func0f01d8c0(void) var800a6660[i]++; if (var800a6660[i] > 1) { - func0f16696c(i); + room0f16696c(i); } } } diff --git a/src/game/savebuffer.c b/src/game/savebuffer.c index 64ef9e95f..251d237b6 100644 --- a/src/game/savebuffer.c +++ b/src/game/savebuffer.c @@ -1,7 +1,7 @@ #include #include "constants.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/savebuffer.h" #include "game/gfxmemory.h" #include "game/file.h" @@ -133,7 +133,7 @@ Gfx *func0f0d479c(Gfx *gdl) Gfx *func0f0d49c8(Gfx *gdl) { gSPViewport(gdl++, OS_K0_TO_PHYSICAL(viGetCurrentPlayerViewport())); - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); return gdl; } @@ -146,9 +146,9 @@ Gfx *func0f0d4a3c(Gfx *gdl, s32 arg1) gDPPipeSync(gdl++); if (arg1 == 0) { - func0f0b39c0(&gdl, &g_TexGeneralConfigs[6], 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexGeneralConfigs[6], 2, 0, 2, 1, NULL); } else if (arg1 == 1) { - func0f0b39c0(&gdl, &g_TexGeneralConfigs[11], 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexGeneralConfigs[11], 2, 0, 2, 1, NULL); } gDPPipeSync(gdl++); diff --git a/src/game/game_00c490.c b/src/game/setup.c similarity index 95% rename from src/game/game_00c490.c rename to src/game/setup.c index 06ccb37df..51f8ab5da 100644 --- a/src/game/game_00c490.c +++ b/src/game/setup.c @@ -2,15 +2,14 @@ #include "constants.h" #include "game/cheats.h" #include "game/game_00b820.h" -#include "game/game_00c490.h" +#include "game/setup.h" #include "game/objectives.h" #include "game/playerreset.h" -#include "game/game_012d50.h" #include "game/botmgr.h" #include "game/chr.h" -#include "game/game_02cde0.h" +#include "game/body.h" #include "game/prop.h" -#include "game/game_091e10.h" +#include "game/setuputils.h" #include "game/atan2f.h" #include "game/inv.h" #include "game/playermgr.h" @@ -19,7 +18,7 @@ #include "game/file.h" #include "game/lv.h" #include "game/mplayer/scenarios.h" -#include "game/game_19aa80.h" +#include "game/challenge.h" #include "game/lang.h" #include "game/mplayer/mplayer.h" #include "game/pad.h" @@ -196,8 +195,8 @@ void propsReset(void) g_MaxMonitorThings = 0; } - func0f00cc8c(); - setupClearProxyMines(); + setupReset0f00cc8c(); + setupResetProxyMines(); g_AlarmTimer = 0; g_AlarmAudioHandle = NULL; @@ -308,37 +307,37 @@ void propsReset(void) } } -void addLiftDoor(struct linkliftdoorobj *link) +void setupCreateLiftDoor(struct linkliftdoorobj *link) { link->next = g_LiftDoors; g_LiftDoors = link; } -void addPadlockedDoor(struct padlockeddoorobj *link) +void setupCreatePadlockedDoor(struct padlockeddoorobj *link) { link->next = g_PadlockedDoors; g_PadlockedDoors = link; } -void addSafeItem(struct safeitemobj *link) +void setupCreateSafeItem(struct safeitemobj *link) { link->next = g_SafeItems; g_SafeItems = link; } -void addConditionalScenery(struct linksceneryobj *link) +void setupCreateConditionalScenery(struct linksceneryobj *link) { link->next = g_LinkedScenery; g_LinkedScenery = link; } -void addBlockedPath(struct blockedpathobj *blockedpath) +void setupCreateBlockedPath(struct blockedpathobj *blockedpath) { blockedpath->next = g_BlockedPaths; g_BlockedPaths = blockedpath; } -void func0f00cc8c(void) +void setupReset0f00cc8c(void) { struct tvscreen tmp1; struct tvscreen tmp2; @@ -354,7 +353,7 @@ void func0f00cc8c(void) var8009cf88 = tmp3; } -void setupClearProxyMines(void) +void setupResetProxyMines(void) { s32 i; @@ -374,7 +373,7 @@ s32 setupCountCommandType(u32 type) count++; } - obj = (struct defaultobj *)((u32 *)obj + setupGetCommandLength((u32 *)obj)); + obj = (struct defaultobj *)((u32 *)obj + setupGetCmdLength((u32 *)obj)); } } @@ -382,7 +381,7 @@ s32 setupCountCommandType(u32 type) } GLOBAL_ASM( -glabel setupGenericObject +glabel setupCreateObject .late_rodata glabel var7f1a7f80 .word 0x358637bd @@ -393,7 +392,7 @@ glabel var7f1a7f80 /* f00cef0: afbf0034 */ sw $ra,0x34($sp) /* f00cef4: afa5014c */ sw $a1,0x14c($sp) /* f00cef8: 84840004 */ lh $a0,0x4($a0) -/* f00cefc: 0fc2486d */ jal modelLoad +/* f00cefc: 0fc2486d */ jal setupLoadModeldef /* f00cf00: afa40140 */ sw $a0,0x140($sp) /* f00cf04: 960e0000 */ lhu $t6,0x0($s0) /* f00cf08: 3c03800a */ lui $v1,%hi(g_Vars) @@ -917,7 +916,7 @@ glabel var7f1a7f80 /* f00d66c: 00000000 */ nop ); -//void setupGenericObject(struct defaultobj *obj, s32 cmdindex) +//void setupCreateObject(struct defaultobj *obj, s32 cmdindex) //{ // f32 f0; // s32 modelnum; // 140 @@ -933,7 +932,7 @@ glabel var7f1a7f80 // struct prop *prop; // 6c // // modelnum = obj->modelnum; -// modelLoad(modelnum); +// setupLoadModeldef(modelnum); // scale = obj->extrascale * (1.0f / 256.0f); // // if (g_Vars.normmplayerisrunning || g_Vars.lvmpbotlevel) { @@ -1162,7 +1161,7 @@ glabel var7f1a7f80 * The Marquis of Queensbury Rules (everyone unarmed) and Enemy Rockets cheats * are implemented here. */ -void weaponAssignToHome(struct weaponobj *weapon, s32 cmdindex) +void setupPlaceWeapon(struct weaponobj *weapon, s32 cmdindex) { if (weapon->base.flags & OBJFLAG_ASSIGNEDTOCHR) { u32 stack[2]; @@ -1289,7 +1288,7 @@ void weaponAssignToHome(struct weaponobj *weapon, s32 cmdindex) shield->base.flags2 |= OBJFLAG2_00200000 | OBJFLAG2_IMMUNETOGUNFIRE; shield->initialamount = 1; shield->amount = 1; - setupGenericObject(&shield->base, cmdindex); + setupCreateObject(&shield->base, cmdindex); giveweapon = false; } break; @@ -1298,12 +1297,12 @@ void weaponAssignToHome(struct weaponobj *weapon, s32 cmdindex) if (weapon->weaponnum != WEAPON_NONE && giveweapon) { weaponLoadProjectileModels(weapon->weaponnum); - setupGenericObject(&weapon->base, cmdindex); + setupCreateObject(&weapon->base, cmdindex); } } } -void setupHat(struct hatobj *hat, s32 cmdindex) +void setupCreateHat(struct hatobj *hat, s32 cmdindex) { if (hat->base.flags & OBJFLAG_ASSIGNEDTOCHR) { struct chrdata *chr = chrFindByLiteralId(hat->base.pad); @@ -1312,20 +1311,20 @@ void setupHat(struct hatobj *hat, s32 cmdindex) hatAssignToChr(hat, chr); } } else { - setupGenericObject(&hat->base, cmdindex); + setupCreateObject(&hat->base, cmdindex); } } -void setupKey(struct keyobj *key, s32 cmdindex) +void setupCreateKey(struct keyobj *key, s32 cmdindex) { - setupGenericObject(&key->base, cmdindex); + setupCreateObject(&key->base, cmdindex); } -void setupMine(struct mineobj *mine, s32 cmdindex) +void setupCreateMine(struct mineobj *mine, s32 cmdindex) { mine->base.type = OBJTYPE_WEAPON; - setupGenericObject(&mine->base, cmdindex); + setupCreateObject(&mine->base, cmdindex); if (g_Vars.coopplayernum >= 0 || g_Vars.antiplayernum >= 0) { mine->base.hidden = mine->base.hidden & 0x0fffffff | OBJHFLAG_20000000; @@ -1334,11 +1333,11 @@ void setupMine(struct mineobj *mine, s32 cmdindex) mine->base.prop->forcetick = true; } -void setupCctv(struct cctvobj *cctv, s32 cmdindex) +void setupCreateCctv(struct cctvobj *cctv, s32 cmdindex) { struct defaultobj *obj = &cctv->base; - setupGenericObject(obj, cmdindex); + setupCreateObject(obj, cmdindex); if (cctv->lookatpadnum >= 0) { struct coord lenspos; @@ -1392,7 +1391,7 @@ void setupCctv(struct cctvobj *cctv, s32 cmdindex) #if VERSION == VERSION_PAL_FINAL GLOBAL_ASM( -glabel setupAutogun +glabel setupCreateAutogun .late_rodata glabel var7f1a9250pf .word 0x40c907a9 @@ -1404,7 +1403,7 @@ glabel var7f1a9258pf /* f00dbe0: 27bdff70 */ addiu $sp,$sp,-144 /* f00dbe4: afbf001c */ sw $ra,0x1c($sp) /* f00dbe8: afb00018 */ sw $s0,0x18($sp) -/* f00dbec: 0fc033b1 */ jal setupGenericObject +/* f00dbec: 0fc033b1 */ jal setupCreateObject /* f00dbf0: 00808025 */ move $s0,$a0 /* f00dbf4: 8e0e0080 */ lw $t6,0x80($s0) /* f00dbf8: 3c014780 */ lui $at,0x4780 @@ -1511,7 +1510,7 @@ glabel var7f1a9258pf ); #elif VERSION == VERSION_PAL_BETA GLOBAL_ASM( -glabel setupAutogun +glabel setupCreateAutogun .late_rodata glabel var7f1a9250pf .word 0x40c907a9 @@ -1523,7 +1522,7 @@ glabel var7f1a9258pf /* f00dbe0: 27bdff70 */ addiu $sp,$sp,-144 /* f00dbe4: afbf001c */ sw $ra,0x1c($sp) /* f00dbe8: afb00018 */ sw $s0,0x18($sp) -/* f00dbec: 0fc033b1 */ jal setupGenericObject +/* f00dbec: 0fc033b1 */ jal setupCreateObject /* f00dbf0: 00808025 */ move $s0,$a0 /* f00dbf4: 8e0e0080 */ lw $t6,0x80($s0) /* f00dbf8: 3c014780 */ lui $at,0x4780 @@ -1629,9 +1628,9 @@ glabel var7f1a9258pf /* f00dd80: 00000000 */ nop ); #else -void setupAutogun(struct autogunobj *autogun, s32 cmdindex) +void setupCreateAutogun(struct autogunobj *autogun, s32 cmdindex) { - setupGenericObject(&autogun->base, cmdindex); + setupCreateObject(&autogun->base, cmdindex); autogun->firecount = 0; autogun->lastseebond60 = -1; @@ -1678,12 +1677,12 @@ void setupAutogun(struct autogunobj *autogun, s32 cmdindex) } #endif -void setupHangingMonitors(struct hangingmonitorsobj *monitors, s32 cmdindex) +void setupCreateHangingMonitors(struct hangingmonitorsobj *monitors, s32 cmdindex) { - setupGenericObject(&monitors->base, cmdindex); + setupCreateObject(&monitors->base, cmdindex); } -void setupSingleMonitor(struct singlemonitorobj *monitor, s32 cmdindex) +void setupCreateSingleMonitor(struct singlemonitorobj *monitor, s32 cmdindex) { u32 stack[2]; @@ -1694,14 +1693,14 @@ void setupSingleMonitor(struct singlemonitorobj *monitor, s32 cmdindex) // unreachable. It appears to allow attaching monitors to other objects. if (monitor->base.pad < 0 && (monitor->base.flags & OBJFLAG_INSIDEANOTHEROBJ) == 0) { s32 modelnum = monitor->base.modelnum; - struct defaultobj *owner = (struct defaultobj *)setupGetPtrToCommandByIndex(cmdindex + monitor->owneroffset); + struct defaultobj *owner = (struct defaultobj *)setupGetCmdByIndex(cmdindex + monitor->owneroffset); struct prop *prop; f32 scale; struct coord spa4; Mtxf sp64; Mtxf sp24; - modelLoad(modelnum); + setupLoadModeldef(modelnum); scale = monitor->base.extrascale * (1.0f / 256.0f); @@ -1740,7 +1739,7 @@ void setupSingleMonitor(struct singlemonitorobj *monitor, s32 cmdindex) mtx00015be4(&sp64, &sp24, &monitor->base.monitorthing->matrix); } } else { - setupGenericObject(&monitor->base, cmdindex); + setupCreateObject(&monitor->base, cmdindex); } if (monitor->base.prop && (monitor->base.flags & OBJFLAG_MONITOR_RENDERPOSTBG)) { @@ -1748,7 +1747,7 @@ void setupSingleMonitor(struct singlemonitorobj *monitor, s32 cmdindex) } } -void setupMultiMonitor(struct multimonitorobj *monitor, s32 cmdindex) +void setupCreateMultiMonitor(struct multimonitorobj *monitor, s32 cmdindex) { monitor->screens[0] = var8009ce98; tvscreenSetImageByNum(&monitor->screens[0], monitor->imagenums[0]); @@ -1762,10 +1761,10 @@ void setupMultiMonitor(struct multimonitorobj *monitor, s32 cmdindex) monitor->screens[3] = var8009ce98; tvscreenSetImageByNum(&monitor->screens[3], monitor->imagenums[3]); - setupGenericObject(&monitor->base, cmdindex); + setupCreateObject(&monitor->base, cmdindex); } -s32 func0f00e1f8(s32 padnum) +s32 setupGetPortalByPad(s32 padnum) { f32 mult; struct coord centre; @@ -1789,7 +1788,7 @@ s32 func0f00e1f8(s32 padnum) return func0f164e8c(¢re, &coord); } -s32 func0f00e2b0(s32 padnum) +s32 setupGetPortalByDoorPad(s32 padnum) { f32 mult; struct coord centre; @@ -1815,7 +1814,7 @@ s32 func0f00e2b0(s32 padnum) #if VERSION == VERSION_PAL_FINAL GLOBAL_ASM( -glabel setupDoor +glabel setupCreateDoor .late_rodata glabel var7f1a9260pf .word 0x3fc907a9 @@ -1834,7 +1833,7 @@ glabel var7f1a926cpf /* f00e364: 84840004 */ lh $a0,0x4($a0) /* f00e368: 240effff */ li $t6,-1 /* f00e36c: afae01bc */ sw $t6,0x1bc($sp) -/* f00e370: 0fc2482d */ jal modelLoad +/* f00e370: 0fc2482d */ jal setupLoadModeldef /* f00e374: afa401c0 */ sw $a0,0x1c0($sp) /* f00e378: 960f0070 */ lhu $t7,0x70($s0) /* f00e37c: 31f80040 */ andi $t8,$t7,0x40 @@ -1847,7 +1846,7 @@ glabel var7f1a926cpf /* f00e394: 001940c0 */ sll $t0,$t9,0x3 /* f00e398: 05030005 */ bgezl $t0,.PF0f00e3b0 /* f00e39c: 86040006 */ lh $a0,0x6($s0) -/* f00e3a0: 0fc038a6 */ jal func0f00e2b0 +/* f00e3a0: 0fc038a6 */ jal setupGetPortalByDoorPad /* f00e3a4: 86040006 */ lh $a0,0x6($s0) /* f00e3a8: afa201bc */ sw $v0,0x1bc($sp) /* f00e3ac: 86040006 */ lh $a0,0x6($s0) @@ -2140,7 +2139,7 @@ glabel var7f1a926cpf /* f00e804: e608006c */ swc1 $f8,0x6c($s0) /* f00e808: 8e0c00bc */ lw $t4,0xbc($s0) /* f00e80c: 8fad01cc */ lw $t5,0x1cc($sp) -/* f00e810: 0fc247c1 */ jal setupGetPtrToCommandByIndex +/* f00e810: 0fc247c1 */ jal setupGetCmdByIndex /* f00e814: 018d2021 */ addu $a0,$t4,$t5 /* f00e818: ae0200bc */ sw $v0,0xbc($s0) .PF0f00e81c: @@ -2212,7 +2211,7 @@ glabel var7f1a926cpf ); #elif VERSION == VERSION_PAL_BETA GLOBAL_ASM( -glabel setupDoor +glabel setupCreateDoor .late_rodata glabel var7f1a9260pf .word 0x3fc907a9 @@ -2231,7 +2230,7 @@ glabel var7f1a926cpf /* f00e364: 84840004 */ lh $a0,0x4($a0) /* f00e368: 240effff */ li $t6,-1 /* f00e36c: afae01bc */ sw $t6,0x1bc($sp) -/* f00e370: 0fc24801 */ jal modelLoad +/* f00e370: 0fc24801 */ jal setupLoadModeldef /* f00e374: afa401c0 */ sw $a0,0x1c0($sp) /* f00e378: 960f0070 */ lhu $t7,0x70($s0) /* f00e37c: 31f80040 */ andi $t8,$t7,0x40 @@ -2244,7 +2243,7 @@ glabel var7f1a926cpf /* f00e394: 001940c0 */ sll $t0,$t9,0x3 /* f00e398: 05030005 */ bgezl $t0,.PB0f00e3b0 /* f00e39c: 86040006 */ lh $a0,0x6($s0) -/* f00e3a0: 0fc038a6 */ jal func0f00e2b0 +/* f00e3a0: 0fc038a6 */ jal setupGetPortalByDoorPad /* f00e3a4: 86040006 */ lh $a0,0x6($s0) /* f00e3a8: afa201bc */ sw $v0,0x1bc($sp) /* f00e3ac: 86040006 */ lh $a0,0x6($s0) @@ -2537,7 +2536,7 @@ glabel var7f1a926cpf /* f00e804: e608006c */ swc1 $f8,0x6c($s0) /* f00e808: 8e0c00bc */ lw $t4,0xbc($s0) /* f00e80c: 8fad01cc */ lw $t5,0x1cc($sp) -/* f00e810: 0fc24795 */ jal setupGetPtrToCommandByIndex +/* f00e810: 0fc24795 */ jal setupGetCmdByIndex /* f00e814: 018d2021 */ addu $a0,$t4,$t5 /* f00e818: ae0200bc */ sw $v0,0xbc($s0) .PB0f00e81c: @@ -2609,7 +2608,7 @@ glabel var7f1a926cpf ); #else GLOBAL_ASM( -glabel setupDoor +glabel setupCreateDoor .late_rodata glabel var7f1a805c .word 0x3fc907a9 @@ -2626,7 +2625,7 @@ glabel var7f1a8064 /* f00e37c: 84840004 */ lh $a0,0x4($a0) /* f00e380: 240effff */ addiu $t6,$zero,-1 /* f00e384: afae01bc */ sw $t6,0x1bc($sp) -/* f00e388: 0fc2486d */ jal modelLoad +/* f00e388: 0fc2486d */ jal setupLoadModeldef /* f00e38c: afa401c0 */ sw $a0,0x1c0($sp) /* f00e390: 960f0070 */ lhu $t7,0x70($s0) /* f00e394: 31f80040 */ andi $t8,$t7,0x40 @@ -2639,7 +2638,7 @@ glabel var7f1a8064 /* f00e3ac: 001940c0 */ sll $t0,$t9,0x3 /* f00e3b0: 05030005 */ bgezl $t0,.L0f00e3c8 /* f00e3b4: 86040006 */ lh $a0,0x6($s0) -/* f00e3b8: 0fc038ac */ jal func0f00e2b0 +/* f00e3b8: 0fc038ac */ jal setupGetPortalByDoorPad /* f00e3bc: 86040006 */ lh $a0,0x6($s0) /* f00e3c0: afa201bc */ sw $v0,0x1bc($sp) /* f00e3c4: 86040006 */ lh $a0,0x6($s0) @@ -2927,7 +2926,7 @@ glabel var7f1a8064 /* f00e808: e612006c */ swc1 $f18,0x6c($s0) /* f00e80c: 8e0c00bc */ lw $t4,0xbc($s0) /* f00e810: 8fad01cc */ lw $t5,0x1cc($sp) -/* f00e814: 0fc24801 */ jal setupGetPtrToCommandByIndex +/* f00e814: 0fc24801 */ jal setupGetCmdByIndex /* f00e818: 018d2021 */ addu $a0,$t4,$t5 /* f00e81c: ae0200bc */ sw $v0,0xbc($s0) .L0f00e820: @@ -3005,21 +3004,21 @@ glabel var7f1a8064 // 3. Goal seems to have rooms array as rooms[8] instead of rooms[2] but this // causes too much stack usage, because of 4 // 4. Mine allocates too many unused stack slots at the bottom -//void setupDoor(struct doorobj *door, s32 cmdindex) +//void setupCreateDoor(struct doorobj *door, s32 cmdindex) //{ // f32 mult; // s32 modelnum = door->base.modelnum; // 1c0 // s32 portalnum = -1; // 1bc // struct pad pad; // 168 // -// modelLoad(modelnum); +// setupLoadModeldef(modelnum); // // if (door->doorflags & DOORFLAG_ROTATEDPAD) { // padRotateForDoor(door->base.pad); // } // // if (door->base.flags & OBJFLAG_DOOR_HASPORTAL) { -// portalnum = func0f00e2b0(door->base.pad); +// portalnum = setupGetPortalByDoorPad(door->base.pad); // } // // padUnpack(door->base.pad, PADFIELD_POS | PADFIELD_LOOK | PADFIELD_UP | PADFIELD_NORMAL | PADFIELD_BBOX | PADFIELD_ROOM, &pad); @@ -3121,7 +3120,7 @@ glabel var7f1a8064 // door->maxspeed = *(s32 *)&door->maxspeed / 65536.0f; // // if (door->sibling) { -// door->sibling = (struct doorobj *)setupGetPtrToCommandByIndex((s32)door->sibling + cmdindex); +// door->sibling = (struct doorobj *)setupGetCmdByIndex((s32)door->sibling + cmdindex); // } // // prop = doorInit(door, &pos, spac, rooms, &sp54, &spa0); @@ -3156,7 +3155,7 @@ glabel var7f1a8064 // } //} -void setupHov(struct defaultobj *obj, struct hov *hov) +void setupCreateHov(struct defaultobj *obj, struct hov *hov) { hov->unk04 = 0; hov->unk08 = 0; @@ -3290,7 +3289,7 @@ glabel setupLoadBriefing /* f00eb18: 0238c821 */ addu $t9,$s1,$t8 /* f00eb1c: a72e000e */ sh $t6,0xe($t9) .L0f00eb20: -/* f00eb20: 0fc24784 */ jal setupGetCommandLength +/* f00eb20: 0fc24784 */ jal setupGetCmdLength /* f00eb24: 02002025 */ or $a0,$s0,$zero /* f00eb28: 00024080 */ sll $t0,$v0,0x2 /* f00eb2c: 01108021 */ addu $s0,$t0,$s0 @@ -3425,7 +3424,7 @@ glabel setupLoadBriefing /* f00eb18: 0238c821 */ addu $t9,$s1,$t8 /* f00eb1c: a72e000e */ sh $t6,0xe($t9) .L0f00eb20: -/* f00eb20: 0fc24784 */ jal setupGetCommandLength +/* f00eb20: 0fc24784 */ jal setupGetCmdLength /* f00eb24: 02002025 */ or $a0,$s0,$zero /* f00eb28: 00024080 */ sll $t0,$v0,0x2 /* f00eb2c: 01108021 */ addu $s0,$t0,$s0 @@ -3524,13 +3523,13 @@ glabel setupLoadBriefing // break; // } // -// obj = (struct defaultobj *)((u32 *)obj + setupGetCommandLength((u32 *)obj)); +// obj = (struct defaultobj *)((u32 *)obj + setupGetCmdLength((u32 *)obj)); // } // } // } //} -void setupReset(s32 stagenum) +void setupLoadFiles(s32 stagenum) { s32 i; s32 j; @@ -3699,7 +3698,7 @@ void setupReset(s32 stagenum) g_Vars.maxprops = total + numchrs + extra + 40; } -void propsCreate(s32 stagenum) +void setupCreateProps(s32 stagenum) { s32 withchrs = !argFindByPrefix(1, "-nochr") && !argFindByPrefix(1, "-noprop"); s32 withobjs = !argFindByPrefix(1, "-noobj") && !argFindByPrefix(1, "-noprop"); @@ -3726,10 +3725,10 @@ void propsCreate(s32 stagenum) if (stagenum < STAGE_TITLE) { if (g_StageSetup.padfiledata) { - padsPrepare(); + setupPreparePads(); } - waypointsLoad(); + setupLoadWaypoints(); if (withchrs) { s32 numchrs = 0; @@ -3788,12 +3787,12 @@ void propsCreate(s32 stagenum) break; case OBJTYPE_CHR: if (withchrs) { - chrUnpack(stagenum, (struct packedchr *) obj, index); + bodyAllocateChr(stagenum, (struct packedchr *) obj, index); } break; case OBJTYPE_DOOR: if (withobjs && (obj->flags2 & diffflag) == 0) { - setupDoor((struct doorobj *)obj, index); + setupCreateDoor((struct doorobj *)obj, index); } break; case OBJTYPE_DOORSCALE: @@ -3804,42 +3803,42 @@ void propsCreate(s32 stagenum) break; case OBJTYPE_WEAPON: if (withchrs && (obj->flags2 & diffflag) == 0) { - weaponAssignToHome((struct weaponobj *)obj, index); + setupPlaceWeapon((struct weaponobj *)obj, index); } break; case OBJTYPE_KEY: if (withchrs && (obj->flags2 & diffflag) == 0) { - setupKey((struct keyobj *)obj, index); + setupCreateKey((struct keyobj *)obj, index); } break; case OBJTYPE_HAT: if (withchrs && (obj->flags2 & diffflag) == 0) { - setupHat((struct hatobj *)obj, index); + setupCreateHat((struct hatobj *)obj, index); } break; case OBJTYPE_CCTV: if (withobjs && (obj->flags2 & diffflag) == 0) { - setupCctv((struct cctvobj *)obj, index); + setupCreateCctv((struct cctvobj *)obj, index); } break; case OBJTYPE_AUTOGUN: if (withobjs && (obj->flags2 & diffflag) == 0) { - setupAutogun((struct autogunobj *)obj, index); + setupCreateAutogun((struct autogunobj *)obj, index); } break; case OBJTYPE_HANGINGMONITORS: if (withobjs && (obj->flags2 & diffflag) == 0) { - setupHangingMonitors((struct hangingmonitorsobj *)obj, index); + setupCreateHangingMonitors((struct hangingmonitorsobj *)obj, index); } break; case OBJTYPE_SINGLEMONITOR: if (withobjs && (obj->flags2 & diffflag) == 0) { - setupSingleMonitor((struct singlemonitorobj *)obj, index); + setupCreateSingleMonitor((struct singlemonitorobj *)obj, index); } break; case OBJTYPE_MULTIMONITOR: if (withobjs && (obj->flags2 & diffflag) == 0) { - setupMultiMonitor((struct multimonitorobj *)obj, index); + setupCreateMultiMonitor((struct multimonitorobj *)obj, index); } break; case OBJTYPE_SHIELD: @@ -3853,7 +3852,7 @@ void propsCreate(s32 stagenum) struct shieldobj *shield = (struct shieldobj *)obj; shield->initialamount = *(s32 *)&shield->initialamount / 65536.0f; shield->amount = shield->initialamount; - setupGenericObject(obj, index); + setupCreateObject(obj, index); } } break; @@ -3861,11 +3860,11 @@ void propsCreate(s32 stagenum) if (withobjs && (obj->flags2 & diffflag) == 0) { if (obj->flags & OBJFLAG_GLASS_HASPORTAL) { struct tintedglassobj *glass = (struct tintedglassobj *)obj; - glass->portalnum = func0f00e1f8(obj->pad); + glass->portalnum = setupGetPortalByPad(obj->pad); glass->unk64 = *(s32 *)&glass->unk64 / 65536.0f; } - setupGenericObject(obj, index); + setupCreateObject(obj, index); } break; case OBJTYPE_LIFT: @@ -3885,12 +3884,12 @@ void propsCreate(s32 stagenum) for (i = 0; i < 4; i++) { if (lift->doors[i]) { - lift->doors[i] = (struct doorobj *)setupGetPtrToCommandByIndex(index + *(s32*)&lift->doors[i]); + lift->doors[i] = (struct doorobj *)setupGetCmdByIndex(index + *(s32*)&lift->doors[i]); } } obj->numtiles = 1; - modelLoad(modelnum); + setupLoadModeldef(modelnum); modelstate = &g_ModelStates[modelnum]; if (modelstate->filedata) { @@ -3913,7 +3912,7 @@ void propsCreate(s32 stagenum) obj->flags &= ~OBJFLAG_00000100; - setupGenericObject(obj, index); + setupCreateObject(obj, index); prop = obj->prop; @@ -3930,16 +3929,16 @@ void propsCreate(s32 stagenum) if (withobjs && (obj->flags2 & diffflag) == 0) { struct hoverpropobj *hoverprop = (struct hoverpropobj *)obj; - setupGenericObject(obj, index); - setupHov(obj, &hoverprop->hov); + setupCreateObject(obj, index); + setupCreateHov(obj, &hoverprop->hov); } break; case OBJTYPE_HOVERBIKE: if (withobjs && (obj->flags2 & diffflag) == 0) { struct hoverbikeobj *bike = (struct hoverbikeobj *)obj; - setupGenericObject(obj, index); - setupHov(obj, &bike->hov); + setupCreateObject(obj, index); + setupCreateHov(obj, &bike->hov); bike->speed[0] = 0; bike->speed[1] = 0; @@ -3966,17 +3965,17 @@ void propsCreate(s32 stagenum) fan->ymaxspeed = PALUPF(*(s32 *)&fan->ymaxspeed) / 65536.0f; fan->yaccel = PALUPF(*(s32 *)&fan->yaccel) / 65536.0f; - setupGenericObject(obj, index); + setupCreateObject(obj, index); } break; case OBJTYPE_GLASS: if (withobjs && (obj->flags2 & diffflag) == 0) { if (obj->flags & OBJFLAG_GLASS_HASPORTAL) { struct glassobj *glass = (struct glassobj *)obj; - glass->portalnum = func0f00e1f8(obj->pad); + glass->portalnum = setupGetPortalByPad(obj->pad); } - setupGenericObject(obj, index); + setupCreateObject(obj, index); } break; case OBJTYPE_ESCASTEP: @@ -3990,7 +3989,7 @@ void propsCreate(s32 stagenum) f32 sp1a8[12]; f32 sp184[3][3]; - setupGenericObject(obj, index); + setupCreateObject(obj, index); prop = obj->prop; @@ -4023,7 +4022,7 @@ void propsCreate(s32 stagenum) case OBJTYPE_29: case OBJTYPE_SAFE: if (withobjs && (obj->flags2 & diffflag) == 0) { - setupGenericObject(obj, index); + setupCreateObject(obj, index); } break; case OBJTYPE_MULTIAMMOCRATE: @@ -4048,11 +4047,11 @@ void propsCreate(s32 stagenum) if (ammoqty > 0 && withobjs && (obj->flags2 & diffflag) == 0) { for (i = 0; i < 19; i++) { if (crate->slots[i].quantity > 0 && crate->slots[i].modelnum != 0xffff) { - modelLoad(crate->slots[i].modelnum); + setupLoadModeldef(crate->slots[i].modelnum); } } - setupGenericObject(obj, index); + setupCreateObject(obj, index); } } break; @@ -4060,7 +4059,7 @@ void propsCreate(s32 stagenum) if (withobjs && (obj->flags2 & diffflag) == 0) { struct truckobj *truck = (struct truckobj *)obj; - setupGenericObject(obj, index); + setupCreateObject(obj, index); if (obj->model) { struct modelnode *node = modelGetPart(obj->model->filedata, 5); @@ -4090,7 +4089,7 @@ void propsCreate(s32 stagenum) struct hovercarobj *car = (struct hovercarobj *)obj; struct prop *prop; - setupGenericObject(obj, index); + setupCreateObject(obj, index); prop = obj->prop; @@ -4117,7 +4116,7 @@ void propsCreate(s32 stagenum) if (withobjs && (obj->flags2 & diffflag) == 0) { struct chopperobj *chopper = (struct chopperobj *)obj; - setupGenericObject(obj, index); + setupCreateObject(obj, index); obj->flags |= OBJFLAG_20000000; obj->prop->forcetick = true; @@ -4166,7 +4165,7 @@ void propsCreate(s32 stagenum) if (withobjs && (obj->flags2 & diffflag) == 0) { struct heliobj *heli = (struct heliobj *)obj; - setupGenericObject(obj, index); + setupCreateObject(obj, index); heli->speed = 0; heli->speedaim = 0; @@ -4186,7 +4185,7 @@ void propsCreate(s32 stagenum) case OBJTYPE_TAG: { struct tag *tag = (struct tag *)obj; - struct defaultobj *taggedobj = setupCommandGetObject(index + tag->cmdoffset); + struct defaultobj *taggedobj = setupGetObjByCmdIndex(index + tag->cmdoffset); tag->obj = taggedobj; if (taggedobj) { @@ -4199,7 +4198,7 @@ void propsCreate(s32 stagenum) case OBJTYPE_RENAMEOBJ: { struct textoverride *override = (struct textoverride *)obj; - struct defaultobj *targetobj = setupCommandGetObject(override->objoffset + index); + struct defaultobj *targetobj = setupGetObjByCmdIndex(override->objoffset + index); override->obj = targetobj; if (targetobj) { @@ -4271,12 +4270,12 @@ void propsCreate(s32 stagenum) break; case OBJTYPE_MINE: if (withobjs && (obj->flags2 & diffflag) == 0) { - setupMine((struct mineobj *)obj, index); + setupCreateMine((struct mineobj *)obj, index); } break; } - obj = (struct defaultobj *)((u32 *)obj + setupGetCommandLength((u32 *)obj)); + obj = (struct defaultobj *)((u32 *)obj + setupGetCmdLength((u32 *)obj)); index++; } @@ -4290,7 +4289,7 @@ void propsCreate(s32 stagenum) s32 maxsimulants; s32 slotnum; - if (mpIsFeatureUnlocked(MPFEATURE_8BOTS)) { + if (challengeIsFeatureUnlocked(MPFEATURE_8BOTS)) { maxsimulants = MAX_BOTS; } else { maxsimulants = 4; @@ -4340,7 +4339,7 @@ void propsCreate(s32 stagenum) case OBJTYPE_TINTEDGLASS: if (obj->prop && (obj->flags & OBJFLAG_INSIDEANOTHEROBJ)) { s32 offset = obj->pad; - struct defaultobj *owner = setupCommandGetObject(index + offset); + struct defaultobj *owner = setupGetObjByCmdIndex(index + offset); if (owner && owner->prop) { obj->hidden |= OBJHFLAG_HASOWNER; @@ -4352,8 +4351,8 @@ void propsCreate(s32 stagenum) case OBJTYPE_LINKGUNS: { struct linkgunsobj *link = (struct linkgunsobj *)obj; - struct weaponobj *gun1 = (struct weaponobj *)setupGetPtrToCommandByIndex(link->offset1 + index); - struct weaponobj *gun2 = (struct weaponobj *)setupGetPtrToCommandByIndex(link->offset2 + index); + struct weaponobj *gun1 = (struct weaponobj *)setupGetCmdByIndex(link->offset1 + index); + struct weaponobj *gun2 = (struct weaponobj *)setupGetCmdByIndex(link->offset2 + index); if (gun1 && gun2 && gun1->base.type == OBJTYPE_WEAPON @@ -4367,14 +4366,14 @@ void propsCreate(s32 stagenum) struct linkliftdoorobj *link = (struct linkliftdoorobj *)obj; s32 dooroffset = (s32)link->door; s32 liftoffset = (s32)link->lift; - struct defaultobj *door = setupCommandGetObject(index + dooroffset); - struct defaultobj *lift = setupCommandGetObject(index + liftoffset); + struct defaultobj *door = setupGetObjByCmdIndex(index + dooroffset); + struct defaultobj *lift = setupGetObjByCmdIndex(index + liftoffset); if (door && door->prop && lift && lift->prop) { link->door = door->prop; link->lift = lift->prop; - addLiftDoor(link); + setupCreateLiftDoor(link); door->hidden |= OBJHFLAG_LIFTDOOR; } @@ -4386,9 +4385,9 @@ void propsCreate(s32 stagenum) s32 itemoffset = (s32)link->item; s32 safeoffset = (s32)link->safe; s32 dooroffset = (s32)link->door; - struct defaultobj *item = setupCommandGetObject(index + itemoffset); - struct defaultobj *safe = setupCommandGetObject(index + safeoffset); - struct defaultobj *door = setupCommandGetObject(index + dooroffset); + struct defaultobj *item = setupGetObjByCmdIndex(index + itemoffset); + struct defaultobj *safe = setupGetObjByCmdIndex(index + safeoffset); + struct defaultobj *door = setupGetObjByCmdIndex(index + dooroffset); if (item && item->prop && safe && safe->prop && safe->type == OBJTYPE_SAFE @@ -4397,7 +4396,7 @@ void propsCreate(s32 stagenum) link->safe = (struct safeobj *)safe; link->door = (struct doorobj *)door; - addSafeItem(link); + setupCreateSafeItem(link); item->flags2 |= OBJFLAG2_LINKEDTOSAFE; door->flags2 |= OBJFLAG2_LINKEDTOSAFE; @@ -4409,15 +4408,15 @@ void propsCreate(s32 stagenum) struct padlockeddoorobj *link = (struct padlockeddoorobj *)obj; s32 dooroffset = (s32)link->door; s32 lockoffset = (s32)link->lock; - struct defaultobj *door = setupCommandGetObject(index + dooroffset); - struct defaultobj *lock = setupCommandGetObject(index + lockoffset); + struct defaultobj *door = setupGetObjByCmdIndex(index + dooroffset); + struct defaultobj *lock = setupGetObjByCmdIndex(index + lockoffset); if (door && door->prop && lock && lock->prop && door->type == OBJTYPE_DOOR) { link->door = (struct doorobj *)door; link->lock = lock; - addPadlockedDoor(link); + setupCreatePadlockedDoor(link); door->hidden |= OBJHFLAG_PADLOCKEDDOOR; } @@ -4429,17 +4428,17 @@ void propsCreate(s32 stagenum) s32 triggeroffset = (s32)link->trigger; s32 unexpoffset = (s32)link->unexp; s32 expoffset = (s32)link->exp; - struct defaultobj *trigger = setupCommandGetObject(index + triggeroffset); + struct defaultobj *trigger = setupGetObjByCmdIndex(index + triggeroffset); struct defaultobj *unexp = NULL; struct defaultobj *exp = NULL; s32 alwayszero = 0; if (unexpoffset) { - unexp = setupCommandGetObject(index + unexpoffset); + unexp = setupGetObjByCmdIndex(index + unexpoffset); } if (expoffset) { - exp = setupCommandGetObject(index + expoffset); + exp = setupGetObjByCmdIndex(index + expoffset); } if (trigger && trigger->prop @@ -4449,7 +4448,7 @@ void propsCreate(s32 stagenum) link->unexp = unexp; link->exp = exp; - addConditionalScenery(link); + setupCreateConditionalScenery(link); trigger->hidden |= OBJHFLAG_CONDITIONALSCENERY; @@ -4462,7 +4461,7 @@ void propsCreate(s32 stagenum) // for a match. Any function call would work; I just // copied the one above. if (alwayszero) { - addConditionalScenery(link); + setupCreateConditionalScenery(link); } if (expoffset) { @@ -4480,12 +4479,12 @@ void propsCreate(s32 stagenum) { struct blockedpathobj *blockedpath = (struct blockedpathobj *)obj; s32 objoffset = (s32)blockedpath->blocker; - struct defaultobj *blocker = setupCommandGetObject(index + objoffset); + struct defaultobj *blocker = setupGetObjByCmdIndex(index + objoffset); if (blocker && blocker->prop) { blockedpath->blocker = blocker; - addBlockedPath(blockedpath); + setupCreateBlockedPath(blockedpath); blocker->hidden |= OBJHFLAG_02000000; @@ -4497,7 +4496,7 @@ void propsCreate(s32 stagenum) break; } - obj = (struct defaultobj *)((u32 *)obj + setupGetCommandLength((u32 *)obj)); + obj = (struct defaultobj *)((u32 *)obj + setupGetCmdLength((u32 *)obj)); index++; } } diff --git a/src/game/game_013ee0.c b/src/game/setupcover.c similarity index 79% rename from src/game/game_013ee0.c rename to src/game/setupcover.c index 7a82b487d..5e5d193e7 100644 --- a/src/game/game_013ee0.c +++ b/src/game/setupcover.c @@ -1,6 +1,5 @@ #include #include "constants.h" -#include "game/game_013ee0.h" #include "game/bg.h" #include "game/pad.h" #include "bss.h" @@ -9,34 +8,6 @@ #include "data.h" #include "types.h" -void func0f013ee0(void) -{ - s32 i; - - var80082050 = PLAYERCOUNT() >= 2 ? 200 : 120; - - var800a6660 = mempAlloc(ALIGN16(var80082050), MEMPOOL_STAGE); - var800a6664 = mempAlloc(ALIGN16(var80082050 * sizeof(s16)), MEMPOOL_STAGE); - var800a6668 = mempAlloc(ALIGN16(var80082050 * sizeof(s16)), MEMPOOL_STAGE); - var800a666c = mempAlloc(ALIGN16(var80082050 * sizeof(f32)), MEMPOOL_STAGE); - var800a6670 = mempAlloc(ALIGN16(var80082050 * sizeof(Mtxf)), MEMPOOL_STAGE); - - for (i = 0; i < PLAYERCOUNT(); i++) { - g_Vars.players[i]->lastroomforoffset = -1; - } - - for (i = 0; i < var80082050; i++) { - var800a6664[i] = -1; - var800a6660[i] = 2; - var800a6668[i] = -1; - var800a666c[i] = 1; - } - - for (i = 0; i < g_Vars.roomcount; i++) { - g_Rooms[i].unk10 = -1; - } -} - void coverAllocateSpecial(u16 *specialcovernums) { s32 i; @@ -50,7 +21,7 @@ void coverAllocateSpecial(u16 *specialcovernums) } } -void coverPrepare(void) +void setupPrepareCover(void) { s32 i; s32 numcovers = g_PadsFile->numcovers; diff --git a/src/game/game_012aa0.c b/src/game/setuppads.c similarity index 93% rename from src/game/game_012aa0.c rename to src/game/setuppads.c index 2b2c593a0..14b88ba68 100644 --- a/src/game/game_012aa0.c +++ b/src/game/setuppads.c @@ -1,6 +1,5 @@ #include #include "constants.h" -#include "game/game_013ee0.h" #include "game/bondhead.h" #include "game/bg.h" #include "game/pad.h" @@ -17,14 +16,14 @@ * format. During gameplay, the game uses padUnpack as needed to temporarily * populate pad structs from this data. * - * padsPrepare prepares the packed data by doing the following: + * setupPreparePads prepares the packed data by doing the following: * - populates the room field (if -1) * - multiplies each pad's bounding box by 1 (this is effectively a no op) * - sets the g_StageSetup pad/waygroup/waypoint/cover pointers * - promotes file offsets to RAM pointers - * - does similar things for cover by calling coverPrepare() + * - does similar things for cover by calling setupPrepareCover() */ -void padsPrepare(void) +void setupPreparePads(void) { struct packedpad *packedpad; s16 *roomsptr; @@ -91,7 +90,7 @@ void padsPrepare(void) g_StageSetup.cover = (void *) ((s32)g_StageSetup.padfiledata + g_PadsFile->coversoffset); if (g_StageSetup.cover != NULL) { - coverPrepare(); + setupPrepareCover(); } // Promote offsets to pointers in waypoints diff --git a/src/game/game_091e10.c b/src/game/setuputils.c similarity index 88% rename from src/game/game_091e10.c rename to src/game/setuputils.c index a3560cb80..6d4e4ac24 100644 --- a/src/game/game_091e10.c +++ b/src/game/setuputils.c @@ -1,10 +1,10 @@ #include #include "constants.h" #include "game/prop.h" -#include "game/game_091e10.h" +#include "game/setuputils.h" #include "game/game_0b28d0.h" #include "game/bg.h" -#include "game/game_1a7560.h" +#include "game/modeldef.h" #include "game/propobj.h" #include "bss.h" #include "data.h" @@ -13,7 +13,7 @@ struct stagesetup g_StageSetup; u8 *g_GeCreditsData; -u32 setupGetCommandLength(u32 *cmd) +u32 setupGetCmdLength(u32 *cmd) { #if VERSION < VERSION_NTSC_1_0 static u32 crash1 = 0; @@ -89,7 +89,7 @@ u32 setupGetCommandLength(u32 *cmd) return 1; } -u32 *setupGetPtrToCommandByIndex(s32 wantindex) +u32 *setupGetCmdByIndex(s32 wantindex) { u32 *cmd = g_StageSetup.props; @@ -101,7 +101,7 @@ u32 *setupGetPtrToCommandByIndex(s32 wantindex) return cmd; } - cmd = cmd + setupGetCommandLength(cmd); + cmd = cmd + setupGetCmdLength(cmd); cmdindex++; } } @@ -109,7 +109,7 @@ u32 *setupGetPtrToCommandByIndex(s32 wantindex) return NULL; } -s32 tagGetCommandIndex(struct tag *tag) +s32 setupGetCmdIndexByTag(struct tag *tag) { u32 *cmd = g_StageSetup.props; @@ -121,7 +121,7 @@ s32 tagGetCommandIndex(struct tag *tag) return cmdindex; } - cmd = cmd + setupGetCommandLength(cmd); + cmd = cmd + setupGetCmdLength(cmd); cmdindex++; } } @@ -129,7 +129,7 @@ s32 tagGetCommandIndex(struct tag *tag) return -1; } -u32 setupGetCommandIndexByProp(struct prop *prop) +u32 setupGetCmdIndexByProp(struct prop *prop) { u32 *cmd = g_StageSetup.props; @@ -141,7 +141,7 @@ u32 setupGetCommandIndexByProp(struct prop *prop) return cmdindex; } - cmd = cmd + setupGetCommandLength(cmd); + cmd = cmd + setupGetCmdLength(cmd); cmdindex++; } } @@ -149,7 +149,7 @@ u32 setupGetCommandIndexByProp(struct prop *prop) return -1; } -bool modelLoad(s32 propnum) +bool setupLoadModeldef(s32 propnum) { if (g_ModelStates[propnum].filedata == NULL) { g_ModelStates[propnum].filedata = modeldefLoadToNew(g_ModelStates[propnum].fileid); @@ -160,7 +160,7 @@ bool modelLoad(s32 propnum) return false; } -bool func0f09220c(struct defaultobj *obj, struct coord *pos, f32 realrot[3][3], struct coord *arg3, struct coord *arg4) +bool setupGetObjBbox(struct defaultobj *obj, struct coord *pos, f32 realrot[3][3], struct coord *arg3, struct coord *arg4) { struct modelrodata_bbox *bbox = objFindBboxRodata(obj); @@ -179,18 +179,18 @@ bool func0f09220c(struct defaultobj *obj, struct coord *pos, f32 realrot[3][3], return false; } -bool func0f092304(struct defaultobj *obj, struct coord *arg1, struct coord *arg2) +bool setup0f092304(struct defaultobj *obj, struct coord *arg1, struct coord *arg2) { - return func0f09220c(obj, &obj->prop->pos, obj->realrot, arg1, arg2); + return setupGetObjBbox(obj, &obj->prop->pos, obj->realrot, arg1, arg2); } -void func0f09233c(struct defaultobj *obj, struct coord *pos, f32 realrot[3][3], s16 *rooms) +void setup0f09233c(struct defaultobj *obj, struct coord *pos, f32 realrot[3][3], s16 *rooms) { struct coord a; struct coord b; u32 stack; - if (func0f09220c(obj, pos, realrot, &a, &b)) { + if (setupGetObjBbox(obj, pos, realrot, &a, &b)) { a.x -= 1; a.y -= 1; a.z -= 1; @@ -202,16 +202,16 @@ void func0f09233c(struct defaultobj *obj, struct coord *pos, f32 realrot[3][3], } } -void func0f0923d4(struct defaultobj *obj) +void setup0f0923d4(struct defaultobj *obj) { propDeregisterRooms(obj->prop); - func0f09233c(obj, &obj->prop->pos, obj->realrot, obj->prop->rooms); + setup0f09233c(obj, &obj->prop->pos, obj->realrot, obj->prop->rooms); propRegisterRooms(obj->prop); } -struct defaultobj *setupCommandGetObject(u32 cmdindex) +struct defaultobj *setupGetObjByCmdIndex(u32 cmdindex) { - u32 *cmd = setupGetPtrToCommandByIndex(cmdindex); + u32 *cmd = setupGetCmdByIndex(cmdindex); if (cmd) { switch ((u8)cmd[0]) { @@ -333,7 +333,7 @@ struct defaultobj *setupFindObjForReuse(s32 wanttype, struct defaultobj **offscr } } - cmd = cmd + setupGetCommandLength(cmd); + cmd = cmd + setupGetCmdLength(cmd); } } diff --git a/src/game/game_012d50.c b/src/game/setupwaypoints.c similarity index 98% rename from src/game/game_012d50.c rename to src/game/setupwaypoints.c index 4a93b4020..0eb9490a4 100644 --- a/src/game/game_012d50.c +++ b/src/game/setupwaypoints.c @@ -6,7 +6,7 @@ #include "data.h" #include "types.h" -void waypointsLoad(void) +void setupLoadWaypoints(void) { struct waypoint *waypoints; s32 numwaypoints; diff --git a/src/game/shards.c b/src/game/shards.c index 9baadc451..07c9ec068 100644 --- a/src/game/shards.c +++ b/src/game/shards.c @@ -5,8 +5,8 @@ #include "game/dlights.h" #include "game/file.h" #include "game/propsnd.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/gfxmemory.h" #include "bss.h" #include "lib/mtx.h" @@ -226,7 +226,7 @@ Gfx *shardsRenderWood(Gfx *gdl) gDPSetTextureFilter(gdl++, G_TF_BILERP); gDPSetCycleType(gdl++, G_CYC_2CYCLE); gDPSetTextureLOD(gdl++, G_TL_LOD); - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); for (i = 0; i < g_MaxShards; i++) { if (g_Shards[i].age60 > 0 && g_Shards[i].type == SHARDTYPE_WOOD) { @@ -324,8 +324,8 @@ Gfx *shardsRenderWood(Gfx *gdl) } gSPClearGeometryMode(gdl++, G_LIGHTING | G_TEXTURE_GEN); - gSPMatrix(gdl++, currentPlayerGetUnk1750(), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); - gSPMatrix(gdl++, currentPlayerGetUnk173c(), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW); + gSPMatrix(gdl++, camGetUnk1750(), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, camGetUnk173c(), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW); } return gdl; @@ -402,7 +402,7 @@ glabel shardsRenderWood /* f14c050: 02608025 */ or $s0,$s3,$zero /* f14c054: 26f7e6c0 */ addiu $s7,$s7,-6464 /* f14c058: ae190000 */ sw $t9,0x0($s0) -/* f14c05c: 0fc2cb5a */ jal currentPlayerGetUnk1758 +/* f14c05c: 0fc2cb5a */ jal camGetUnk1758 /* f14c060: 26730008 */ addiu $s3,$s3,0x8 /* f14c064: 0c013100 */ jal osVirtualToPhysical /* f14c068: 00402025 */ or $a0,$v0,$zero @@ -769,14 +769,14 @@ glabel shardsRenderWood /* f14c5b0: 35080040 */ ori $t0,$t0,0x40 /* f14c5b4: 02608025 */ or $s0,$s3,$zero /* f14c5b8: ae080000 */ sw $t0,0x0($s0) -/* f14c5bc: 0fc2cb52 */ jal currentPlayerGetUnk1750 +/* f14c5bc: 0fc2cb52 */ jal camGetUnk1750 /* f14c5c0: 26730008 */ addiu $s3,$s3,0x8 /* f14c5c4: 3c090102 */ lui $t1,0x102 /* f14c5c8: ae020004 */ sw $v0,0x4($s0) /* f14c5cc: 35290040 */ ori $t1,$t1,0x40 /* f14c5d0: 02608825 */ or $s1,$s3,$zero /* f14c5d4: ae290000 */ sw $t1,0x0($s1) -/* f14c5d8: 0fc2cb42 */ jal currentPlayerGetUnk173c +/* f14c5d8: 0fc2cb42 */ jal camGetUnk173c /* f14c5dc: 26730008 */ addiu $s3,$s3,0x8 /* f14c5e0: ae220004 */ sw $v0,0x4($s1) .NB0f14c5e4: @@ -811,9 +811,9 @@ Gfx *shardsRenderGlass(Gfx *gdl) s32 j; if (g_Vars.currentplayer->visionmode == VISIONMODE_XRAY) { - func0f0b39c0(&gdl, NULL, 2, 1, 2, 1, NULL); + tex0f0b39c0(&gdl, NULL, 2, 1, 2, 1, NULL); } else { - func0f0b39c0(&gdl, &g_TexShardConfigs[1], 2, 1, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexShardConfigs[1], 2, 1, 2, 1, NULL); } gSPTexture(gdl++, 0x0d80, 0x0d80, 2, G_TX_RENDERTILE, G_ON); @@ -826,7 +826,7 @@ Gfx *shardsRenderGlass(Gfx *gdl) gSPSetGeometryMode(gdl++, G_LIGHTING | G_TEXTURE_GEN); } - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); for (i = 0; i < g_MaxShards; i++) { if (g_Shards[i].age60 > 0 && g_Shards[i].type != SHARDTYPE_WOOD) { @@ -918,8 +918,8 @@ Gfx *shardsRenderGlass(Gfx *gdl) } gSPClearGeometryMode(gdl++, G_LIGHTING | G_TEXTURE_GEN); - gSPMatrix(gdl++, currentPlayerGetUnk1750(), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); - gSPMatrix(gdl++, currentPlayerGetUnk173c(), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW); + gSPMatrix(gdl++, camGetUnk1750(), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, camGetUnk173c(), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW); } return gdl; @@ -967,7 +967,7 @@ glabel shardsRenderGlass /* f14c6b8: 00002825 */ or $a1,$zero,$zero /* f14c6bc: 24060002 */ addiu $a2,$zero,0x2 /* f14c6c0: 24070001 */ addiu $a3,$zero,0x1 -/* f14c6c4: 0fc2c5c8 */ jal func0f0b39c0 +/* f14c6c4: 0fc2c5c8 */ jal tex0f0b39c0 /* f14c6c8: afa00018 */ sw $zero,0x18($sp) /* f14c6cc: 1000000b */ beqz $zero,.NB0f14c6fc /* f14c6d0: 8fab0138 */ lw $t3,0x138($sp) @@ -979,7 +979,7 @@ glabel shardsRenderGlass /* f14c6e4: afa90010 */ sw $t1,0x10($sp) /* f14c6e8: 24070001 */ addiu $a3,$zero,0x1 /* f14c6ec: afa00018 */ sw $zero,0x18($sp) -/* f14c6f0: 0fc2c5c8 */ jal func0f0b39c0 +/* f14c6f0: 0fc2c5c8 */ jal tex0f0b39c0 /* f14c6f4: 24a5000c */ addiu $a1,$a1,0xc /* f14c6f8: 8fab0138 */ lw $t3,0x138($sp) .NB0f14c6fc: @@ -1039,7 +1039,7 @@ glabel shardsRenderGlass /* f14c7cc: 35290040 */ ori $t1,$t1,0x40 /* f14c7d0: 26080008 */ addiu $t0,$s0,0x8 /* f14c7d4: afa80138 */ sw $t0,0x138($sp) -/* f14c7d8: 0fc2cb5a */ jal currentPlayerGetUnk1758 +/* f14c7d8: 0fc2cb5a */ jal camGetUnk1758 /* f14c7dc: ae090000 */ sw $t1,0x0($s0) /* f14c7e0: 0c013100 */ jal osVirtualToPhysical /* f14c7e4: 00402025 */ or $a0,$v0,$zero @@ -1414,7 +1414,7 @@ glabel shardsRenderGlass /* f14cd4c: 35ce0040 */ ori $t6,$t6,0x40 /* f14cd50: 260d0008 */ addiu $t5,$s0,0x8 /* f14cd54: afad0138 */ sw $t5,0x138($sp) -/* f14cd58: 0fc2cb52 */ jal currentPlayerGetUnk1750 +/* f14cd58: 0fc2cb52 */ jal camGetUnk1750 /* f14cd5c: ae0e0000 */ sw $t6,0x0($s0) /* f14cd60: ae020004 */ sw $v0,0x4($s0) /* f14cd64: 8fb10138 */ lw $s1,0x138($sp) @@ -1422,7 +1422,7 @@ glabel shardsRenderGlass /* f14cd6c: 35080040 */ ori $t0,$t0,0x40 /* f14cd70: 26380008 */ addiu $t8,$s1,0x8 /* f14cd74: afb80138 */ sw $t8,0x138($sp) -/* f14cd78: 0fc2cb42 */ jal currentPlayerGetUnk173c +/* f14cd78: 0fc2cb42 */ jal camGetUnk173c /* f14cd7c: ae280000 */ sw $t0,0x0($s1) /* f14cd80: ae220004 */ sw $v0,0x4($s1) .NB0f14cd84: diff --git a/src/game/sight.c b/src/game/sight.c index 9c79c2807..0a410adb8 100644 --- a/src/game/sight.c +++ b/src/game/sight.c @@ -4,7 +4,7 @@ #include "game/bondgun.h" #include "game/game_0b0fd0.h" #include "game/game_0b2150.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/savebuffer.h" #include "game/sight.h" #include "game/game_1531a0.h" @@ -5579,7 +5579,7 @@ glabel sightRenderClassic /* f0d97b0: 448f3000 */ mtc1 $t7,$f6 /* f0d97b4: afa00010 */ sw $zero,0x10($sp) /* f0d97b8: 46803220 */ cvt.s.w $f8,$f6 -/* f0d97bc: 0fc2ce70 */ jal func0f0b39c0 +/* f0d97bc: 0fc2ce70 */ jal tex0f0b39c0 /* f0d97c0: e7a800c0 */ swc1 $f8,0xc0($sp) /* f0d97c4: 92190005 */ lbu $t9,0x5($s0) /* f0d97c8: 92070004 */ lbu $a3,0x4($s0) @@ -5715,7 +5715,7 @@ glabel sightRenderClassic // spbc[0] = (tconfig->width >> 1) * (f32)g_ScaleX; // spbc[1] = tconfig->height >> 1; // -// func0f0b39c0(&gdl, tconfig, 2, 0, 0, 1, NULL); +// tex0f0b39c0(&gdl, tconfig, 2, 0, 0, 1, NULL); // // func0f0b278c(&gdl, spc4, spbc, tconfig->width, tconfig->height, // 0, 0, 1, 0xff, 0xff, 0xff, 0x7f, tconfig->level > 0, 0); diff --git a/src/game/sky.c b/src/game/sky.c index 8986fc671..5baca3785 100644 --- a/src/game/sky.c +++ b/src/game/sky.c @@ -1,1371 +1,11224 @@ #include #include "constants.h" -#include "game/game_006900.h" -#include "game/game_0b3350.h" +#include "game/quaternion.h" +#include "game/game_0b2150.h" +#include "game/camera.h" #include "game/sky.h" -#include "game/game_1531a0.h" +#include "game/game_152fa0.h" +#include "game/env.h" +#include "game/pad.h" #include "bss.h" #include "lib/vi.h" -#include "lib/memp.h" -#include "lib/rng.h" #include "lib/mtx.h" +#include "lib/sched.h" #include "data.h" #include "types.h" -u32 var800a4150; -f32 *var800a4154; -s32 var800a4158; -u32 var800a415c; +u32 g_SkyStageNum; +s32 var800a33a4; +u32 var800a33a8; +u32 var800a33ac; +u32 var800a33b0; +u32 var800a33b4; +u32 var800a33b8; +u32 var800a33bc; +u32 var800a33c0; +u32 var800a33c4; +u32 var800a33c8; +u32 var800a33cc; +u32 var800a33d0; +u32 var800a33d4; +u32 var800a33d8; +u32 var800a33dc; +u32 var800a33e0; +u32 var800a33e4; +f32 var800a33e8[1][3]; +u32 var800a33f4; +u32 var800a33f8; +u32 var800a33fc; +u32 var800a3400; +u32 var800a3404; +u32 var800a3408; +u32 var800a340c; +f32 var800a3410[1]; +u32 var800a3414; +u32 var800a3418; +u32 var800a341c; +f32 var800a3420[1]; +u32 var800a3424; +u32 var800a3428; +u32 var800a342c; -u32 var8007f120 = 0x00000000; -u32 var8007f124 = 0x00000000; -u32 var8007f128 = 0x00000000; -u32 var8007f12c = 0x00000000; +f32 var8007db80 = 0; +f32 var8007db84 = 1; +f32 var8007db88[1] = {0}; +u32 var8007db8c = 0x00000000; +u32 var8007db90 = 0x00000000; +u32 var8007db94[1] = {0}; +u32 var8007db98 = 0x00000000; +u32 var8007db9c = 0x00000000; +u32 var8007dba0 = 0x00000010; +u32 var8007dba4 = 0x00000020; +u32 var8007dba8 = 0x0000000c; +u32 var8007dbac = 0x00000020; +u32 var8007dbb0 = 0x00000018; +u32 var8007dbb4 = 0x00000040; +u32 var8007dbb8 = 0x0000003c; +u32 var8007dbbc = 0x00000050; +u32 var8007dbc0 = 0x000000e1; +u32 var8007dbc4 = 0x00000113; +u32 var8007dbc8 = 0x000001d6; +u32 var8007dbcc = 0x0000023a; +u32 var8007dbd0 = 0xff99ffff; +u32 var8007dbd4 = 0x9999ffff; +u32 var8007dbd8 = 0x99ffffff; +u32 var8007dbdc = 0x99ff99ff; +u32 var8007dbe0 = 0xffff99ff; +u32 var8007dbe4 = 0xff9999ff; +struct coord g_TeleportToPos = {0, 0, 0}; +struct coord g_TeleportToUp = {0, 0, 1}; +struct coord g_TeleportToLook = {0, 1, 0}; -void func0f135c70(void) +void sky0f11f000(f32 left, f32 top, struct coord *arg2) { - u32 stack[4]; - struct coord coord; - f32 mult; - s32 i; - s32 j; - s32 k; - f32 tmp = var800a4158 * 0.5f; + Mtxf *mtx = camGetUnk174c(); + f32 pos[2]; - for (i = 0; i < 6; i++) { - for (j = 0; j <= var800a4158; j++) { - for (k = 0; k <= var800a4158; k++) { - s32 index = ((i * (var800a4158 + 1) * (var800a4158 + 1)) + k + (j * (var800a4158 + 1))) * 3; + pos[0] = left + camGetScreenLeft(); + pos[1] = top + camGetScreenTop() + envGetCurrent()->unk40; - switch (i) { - case 0: - case 1: - coord.x = (i == 0 ? -1.0f : 1.0f); - coord.y = k / tmp - 1; - coord.z = j / tmp - 1; - break; - case 2: - case 3: - coord.y = (i == 2 ? -1.0f : 1.0f); - coord.x = j / tmp - 1; - coord.z = k / tmp - 1; - break; - case 4: - case 5: - coord.z = (i == 4 ? -1.0f : 1.0f); - coord.x = k / tmp - 1; - coord.y = j / tmp - 1; - break; - } - - mult = 1.0f / sqrtf(coord.f[0] * coord.f[0] + coord.f[1] * coord.f[1] + coord.f[2] * coord.f[2]); - - var800a4154[index + 0] = coord.x * mult; - var800a4154[index + 1] = coord.y * mult; - var800a4154[index + 2] = coord.z * mult; - } - } - } + cam0f0b4c3c(pos, arg2, 100); + mtx4RotateVecInPlace(mtx, arg2); } GLOBAL_ASM( -glabel func0f135f08 -/* f135f08: 3c0a800a */ lui $t2,%hi(var800a4158) -/* f135f0c: 254a4158 */ addiu $t2,$t2,%lo(var800a4158) -/* f135f10: 8d460000 */ lw $a2,0x0($t2) -/* f135f14: 240b0006 */ addiu $t3,$zero,0x6 -/* f135f18: 3c09800a */ lui $t1,%hi(var800a415c) -/* f135f1c: 00cb0019 */ multu $a2,$t3 -/* f135f20: 2529415c */ addiu $t1,$t1,%lo(var800a415c) -/* f135f24: 8d230000 */ lw $v1,0x0($t1) -/* f135f28: afa50004 */ sw $a1,0x4($sp) -/* f135f2c: 00043880 */ sll $a3,$a0,0x2 -/* f135f30: 00676821 */ addu $t5,$v1,$a3 -/* f135f34: 8da80004 */ lw $t0,0x4($t5) -/* f135f38: 3c0c8008 */ lui $t4,%hi(var8007f120) -/* f135f3c: 258cf120 */ addiu $t4,$t4,%lo(var8007f120) -/* f135f40: 00007012 */ mflo $t6 -/* f135f44: 00000000 */ nop -/* f135f48: 00000000 */ nop -/* f135f4c: 01c60019 */ multu $t6,$a2 -/* f135f50: 00007812 */ mflo $t7 -/* f135f54: 000fc080 */ sll $t8,$t7,0x2 -/* f135f58: 0078c821 */ addu $t9,$v1,$t8 -/* f135f5c: 8f220000 */ lw $v0,0x0($t9) -/* f135f60: 2442ffff */ addiu $v0,$v0,-1 -/* f135f64: 0048082a */ slt $at,$v0,$t0 -/* f135f68: 14200016 */ bnez $at,.L0f135fc4 -/* f135f6c: 00021880 */ sll $v1,$v0,0x2 -/* f135f70: 00621823 */ subu $v1,$v1,$v0 -/* f135f74: 8d8e0000 */ lw $t6,0x0($t4) -.L0f135f78: -/* f135f78: 2442ffff */ addiu $v0,$v0,-1 -/* f135f7c: 006e2821 */ addu $a1,$v1,$t6 -/* f135f80: 80af0000 */ lb $t7,0x0($a1) -/* f135f84: a0af0003 */ sb $t7,0x3($a1) -/* f135f88: 8d980000 */ lw $t8,0x0($t4) -/* f135f8c: 00782821 */ addu $a1,$v1,$t8 -/* f135f90: 80b90001 */ lb $t9,0x1($a1) -/* f135f94: a0b90004 */ sb $t9,0x4($a1) -/* f135f98: 8d8d0000 */ lw $t5,0x0($t4) -/* f135f9c: 006d2821 */ addu $a1,$v1,$t5 -/* f135fa0: 80ae0002 */ lb $t6,0x2($a1) -/* f135fa4: 2463fffd */ addiu $v1,$v1,-3 -/* f135fa8: a0ae0005 */ sb $t6,0x5($a1) -/* f135fac: 8d2f0000 */ lw $t7,0x0($t1) -/* f135fb0: 01e7c021 */ addu $t8,$t7,$a3 -/* f135fb4: 8f080004 */ lw $t0,0x4($t8) -/* f135fb8: 0048082a */ slt $at,$v0,$t0 -/* f135fbc: 5020ffee */ beqzl $at,.L0f135f78 -/* f135fc0: 8d8e0000 */ lw $t6,0x0($t4) -.L0f135fc4: -/* f135fc4: 8fb90004 */ lw $t9,0x4($sp) -/* f135fc8: 3c0142fe */ lui $at,0x42fe -/* f135fcc: 44810000 */ mtc1 $at,$f0 -/* f135fd0: c7240000 */ lwc1 $f4,0x0($t9) -/* f135fd4: 24050003 */ addiu $a1,$zero,0x3 -/* f135fd8: 01050019 */ multu $t0,$a1 -/* f135fdc: 46002182 */ mul.s $f6,$f4,$f0 -/* f135fe0: 3c0c8008 */ lui $t4,%hi(var8007f120) -/* f135fe4: 258cf120 */ addiu $t4,$t4,%lo(var8007f120) -/* f135fe8: 8d8f0000 */ lw $t7,0x0($t4) -/* f135fec: 24830001 */ addiu $v1,$a0,0x1 -/* f135ff0: 00601025 */ or $v0,$v1,$zero -/* f135ff4: 4600320d */ trunc.w.s $f8,$f6 -/* f135ff8: 0000c012 */ mflo $t8 -/* f135ffc: 01f8c821 */ addu $t9,$t7,$t8 -/* f136000: 440e4000 */ mfc1 $t6,$f8 -/* f136004: 00000000 */ nop -/* f136008: a32e0000 */ sb $t6,0x0($t9) -/* f13600c: 8fad0004 */ lw $t5,0x4($sp) -/* f136010: 8d390000 */ lw $t9,0x0($t1) -/* f136014: 8d8e0000 */ lw $t6,0x0($t4) -/* f136018: c5aa0004 */ lwc1 $f10,0x4($t5) -/* f13601c: 03276821 */ addu $t5,$t9,$a3 -/* f136020: 8daf0004 */ lw $t7,0x4($t5) -/* f136024: 46005402 */ mul.s $f16,$f10,$f0 -/* f136028: 4600848d */ trunc.w.s $f18,$f16 -/* f13602c: 01e50019 */ multu $t7,$a1 -/* f136030: 44189000 */ mfc1 $t8,$f18 -/* f136034: 0000c812 */ mflo $t9 -/* f136038: 01d96821 */ addu $t5,$t6,$t9 -/* f13603c: a1b80001 */ sb $t8,0x1($t5) -/* f136040: 8faf0004 */ lw $t7,0x4($sp) -/* f136044: 8d2d0000 */ lw $t5,0x0($t1) -/* f136048: 8d980000 */ lw $t8,0x0($t4) -/* f13604c: c5e40008 */ lwc1 $f4,0x8($t7) -/* f136050: 01a77821 */ addu $t7,$t5,$a3 -/* f136054: 8dee0004 */ lw $t6,0x4($t7) -/* f136058: 46002182 */ mul.s $f6,$f4,$f0 -/* f13605c: 4600320d */ trunc.w.s $f8,$f6 -/* f136060: 01c50019 */ multu $t6,$a1 -/* f136064: 44194000 */ mfc1 $t9,$f8 -/* f136068: 00006812 */ mflo $t5 -/* f13606c: 030d7821 */ addu $t7,$t8,$t5 -/* f136070: a1f90002 */ sb $t9,0x2($t7) -/* f136074: 8d460000 */ lw $a2,0x0($t2) -/* f136078: 00cb0019 */ multu $a2,$t3 -/* f13607c: 00007012 */ mflo $t6 -/* f136080: 00000000 */ nop -/* f136084: 00000000 */ nop -/* f136088: 01c60019 */ multu $t6,$a2 -/* f13608c: 0000c012 */ mflo $t8 -/* f136090: 0303082a */ slt $at,$t8,$v1 -/* f136094: 14200012 */ bnez $at,.L0f1360e0 -/* f136098: 00031880 */ sll $v1,$v1,0x2 -/* f13609c: 8d2d0000 */ lw $t5,0x0($t1) -.L0f1360a0: -/* f1360a0: 24420001 */ addiu $v0,$v0,0x1 -/* f1360a4: 01a32021 */ addu $a0,$t5,$v1 -/* f1360a8: 8c990000 */ lw $t9,0x0($a0) -/* f1360ac: 24630004 */ addiu $v1,$v1,0x4 -/* f1360b0: 272f0001 */ addiu $t7,$t9,0x1 -/* f1360b4: ac8f0000 */ sw $t7,0x0($a0) -/* f1360b8: 8d460000 */ lw $a2,0x0($t2) -/* f1360bc: 00cb0019 */ multu $a2,$t3 -/* f1360c0: 00007012 */ mflo $t6 -/* f1360c4: 00000000 */ nop -/* f1360c8: 00000000 */ nop -/* f1360cc: 01c60019 */ multu $t6,$a2 -/* f1360d0: 0000c012 */ mflo $t8 -/* f1360d4: 0302082a */ slt $at,$t8,$v0 -/* f1360d8: 5020fff1 */ beqzl $at,.L0f1360a0 -/* f1360dc: 8d2d0000 */ lw $t5,0x0($t1) -.L0f1360e0: -/* f1360e0: 03e00008 */ jr $ra -/* f1360e4: 00000000 */ nop -); - -GLOBAL_ASM( -glabel skyReset -/* f1360e8: 27bdff18 */ addiu $sp,$sp,-232 -/* f1360ec: 3c05800a */ lui $a1,%hi(g_Vars) -/* f1360f0: 24a59fc0 */ addiu $a1,$a1,%lo(g_Vars) -/* f1360f4: 8cae006c */ lw $t6,0x6c($a1) -/* f1360f8: afb00044 */ sw $s0,0x44($sp) -/* f1360fc: 3c108008 */ lui $s0,%hi(var8007f120) -/* f136100: 2610f120 */ addiu $s0,$s0,%lo(var8007f120) -/* f136104: afbf004c */ sw $ra,0x4c($sp) -/* f136108: afb10048 */ sw $s1,0x48($sp) -/* f13610c: f7be0038 */ sdc1 $f30,0x38($sp) -/* f136110: f7bc0030 */ sdc1 $f28,0x30($sp) -/* f136114: f7ba0028 */ sdc1 $f26,0x28($sp) -/* f136118: f7b80020 */ sdc1 $f24,0x20($sp) -/* f13611c: f7b60018 */ sdc1 $f22,0x18($sp) -/* f136120: f7b40010 */ sdc1 $f20,0x10($sp) -/* f136124: 11c00003 */ beqz $t6,.L0f136134 -/* f136128: ae000000 */ sw $zero,0x0($s0) -/* f13612c: 10000002 */ b .L0f136138 -/* f136130: 24060001 */ addiu $a2,$zero,0x1 -.L0f136134: -/* f136134: 00003025 */ or $a2,$zero,$zero -.L0f136138: -/* f136138: 8caf0068 */ lw $t7,0x68($a1) -/* f13613c: 00001825 */ or $v1,$zero,$zero -/* f136140: 00002025 */ or $a0,$zero,$zero -/* f136144: 11e00003 */ beqz $t7,.L0f136154 -/* f136148: 00001025 */ or $v0,$zero,$zero -/* f13614c: 10000001 */ b .L0f136154 -/* f136150: 24030001 */ addiu $v1,$zero,0x1 -.L0f136154: -/* f136154: 8cb80064 */ lw $t8,0x64($a1) -/* f136158: 3c088008 */ lui $t0,%hi(var8007f124) -/* f13615c: 2508f124 */ addiu $t0,$t0,%lo(var8007f124) -/* f136160: 13000003 */ beqz $t8,.L0f136170 -/* f136164: 240c0003 */ addiu $t4,$zero,0x3 -/* f136168: 10000001 */ b .L0f136170 -/* f13616c: 24040001 */ addiu $a0,$zero,0x1 -.L0f136170: -/* f136170: 8cb90070 */ lw $t9,0x70($a1) -/* f136174: 13200003 */ beqz $t9,.L0f136184 -/* f136178: 00000000 */ nop -/* f13617c: 10000001 */ b .L0f136184 -/* f136180: 24020001 */ addiu $v0,$zero,0x1 -.L0f136184: -/* f136184: 00444821 */ addu $t1,$v0,$a0 -/* f136188: 01235021 */ addu $t2,$t1,$v1 -/* f13618c: 01465821 */ addu $t3,$t2,$a2 -/* f136190: 29610002 */ slti $at,$t3,0x2 -/* f136194: 102001ae */ beqz $at,.L0f136850 -/* f136198: 3c03800a */ lui $v1,%hi(var800a4158) -/* f13619c: 8ca204b4 */ lw $v0,0x4b4($a1) -/* f1361a0: 24634158 */ addiu $v1,$v1,%lo(var800a4158) -/* f1361a4: 2401004e */ addiu $at,$zero,0x4e -/* f1361a8: ad000000 */ sw $zero,0x0($t0) -/* f1361ac: 14410007 */ bne $v0,$at,.L0f1361cc -/* f1361b0: ac6c0000 */ sw $t4,0x0($v1) -/* f1361b4: 240d0001 */ addiu $t5,$zero,0x1 -/* f1361b8: ad0d0000 */ sw $t5,0x0($t0) -/* f1361bc: 240e0640 */ addiu $t6,$zero,0x640 -/* f1361c0: 3c01800a */ lui $at,%hi(var800a4150) -/* f1361c4: 10000018 */ b .L0f136228 -/* f1361c8: ac2e4150 */ sw $t6,%lo(var800a4150)($at) -.L0f1361cc: -/* f1361cc: 24010030 */ addiu $at,$zero,0x30 -/* f1361d0: 10410003 */ beq $v0,$at,.L0f1361e0 -/* f1361d4: 240f00c8 */ addiu $t7,$zero,0xc8 -/* f1361d8: 24010022 */ addiu $at,$zero,0x22 -/* f1361dc: 14410005 */ bne $v0,$at,.L0f1361f4 -.L0f1361e0: -/* f1361e0: 3c01800a */ lui $at,%hi(var800a4150) -/* f1361e4: ac2f4150 */ sw $t7,%lo(var800a4150)($at) -/* f1361e8: 24180002 */ addiu $t8,$zero,0x2 -/* f1361ec: 1000000e */ b .L0f136228 -/* f1361f0: ac780000 */ sw $t8,0x0($v1) -.L0f1361f4: -/* f1361f4: 24010034 */ addiu $at,$zero,0x34 -/* f1361f8: 14410007 */ bne $v0,$at,.L0f136218 -/* f1361fc: 240a00c8 */ addiu $t2,$zero,0xc8 -/* f136200: 24190001 */ addiu $t9,$zero,0x1 -/* f136204: ad190000 */ sw $t9,0x0($t0) -/* f136208: 240904b0 */ addiu $t1,$zero,0x4b0 -/* f13620c: 3c01800a */ lui $at,%hi(var800a4150) -/* f136210: 10000005 */ b .L0f136228 -/* f136214: ac294150 */ sw $t1,%lo(var800a4150)($at) -.L0f136218: -/* f136218: 3c01800a */ lui $at,%hi(var800a4150) -/* f13621c: ac2a4150 */ sw $t2,%lo(var800a4150)($at) -/* f136220: 240b0002 */ addiu $t3,$zero,0x2 -/* f136224: ac6b0000 */ sw $t3,0x0($v1) -.L0f136228: -/* f136228: 8c670000 */ lw $a3,0x0($v1) -/* f13622c: 24060006 */ addiu $a2,$zero,0x6 -/* f136230: 3c0c800a */ lui $t4,%hi(var800a4150) -/* f136234: 24e20001 */ addiu $v0,$a3,0x1 -/* f136238: 000270c0 */ sll $t6,$v0,0x3 -/* f13623c: 01c27021 */ addu $t6,$t6,$v0 -/* f136240: 000e70c0 */ sll $t6,$t6,0x3 -/* f136244: 01c20019 */ multu $t6,$v0 -/* f136248: 8d8c4150 */ lw $t4,%lo(var800a4150)($t4) -/* f13624c: 24050004 */ addiu $a1,$zero,0x4 -/* f136250: 000c6880 */ sll $t5,$t4,0x2 -/* f136254: 01ac6823 */ subu $t5,$t5,$t4 -/* f136258: 00007812 */ mflo $t7 -/* f13625c: 01afc021 */ addu $t8,$t5,$t7 -/* f136260: 00000000 */ nop -/* f136264: 00e60019 */ multu $a3,$a2 -/* f136268: 0000c812 */ mflo $t9 -/* f13626c: 00000000 */ nop -/* f136270: 00000000 */ nop -/* f136274: 03270019 */ multu $t9,$a3 -/* f136278: 00004812 */ mflo $t1 -/* f13627c: 00095080 */ sll $t2,$t1,0x2 -/* f136280: 030a2021 */ addu $a0,$t8,$t2 -/* f136284: 24840043 */ addiu $a0,$a0,0x43 -/* f136288: 348b003f */ ori $t3,$a0,0x3f -/* f13628c: 0c0048f2 */ jal mempAlloc -/* f136290: 3964003f */ xori $a0,$t3,0x3f -/* f136294: 24060006 */ addiu $a2,$zero,0x6 -/* f136298: 1040016d */ beqz $v0,.L0f136850 -/* f13629c: ae020000 */ sw $v0,0x0($s0) -/* f1362a0: 3c08800a */ lui $t0,%hi(var800a4158) -/* f1362a4: 25084158 */ addiu $t0,$t0,%lo(var800a4158) -/* f1362a8: 8d070000 */ lw $a3,0x0($t0) -/* f1362ac: 3c0e800a */ lui $t6,%hi(var800a4150) -/* f1362b0: 8dce4150 */ lw $t6,%lo(var800a4150)($t6) -/* f1362b4: 00e60019 */ multu $a3,$a2 -/* f1362b8: 3c04800a */ lui $a0,%hi(var800a415c) -/* f1362bc: 000e6880 */ sll $t5,$t6,0x2 -/* f1362c0: 01ae6823 */ subu $t5,$t5,$t6 -/* f1362c4: 2484415c */ addiu $a0,$a0,%lo(var800a415c) -/* f1362c8: 01a27821 */ addu $t7,$t5,$v0 -/* f1362cc: ac8f0000 */ sw $t7,0x0($a0) -/* f1362d0: 00001025 */ or $v0,$zero,$zero -/* f1362d4: 00008825 */ or $s1,$zero,$zero -/* f1362d8: 0000c812 */ mflo $t9 -/* f1362dc: 00000000 */ nop -/* f1362e0: 00000000 */ nop -/* f1362e4: 03270019 */ multu $t9,$a3 -/* f1362e8: 00001812 */ mflo $v1 -/* f1362ec: 24630001 */ addiu $v1,$v1,0x1 -/* f1362f0: 58600013 */ blezl $v1,.L0f136340 -/* f1362f4: 8c8c0000 */ lw $t4,0x0($a0) -/* f1362f8: 8c890000 */ lw $t1,0x0($a0) -.L0f1362fc: -/* f1362fc: 26310001 */ addiu $s1,$s1,0x1 -/* f136300: 0122c021 */ addu $t8,$t1,$v0 -/* f136304: af000000 */ sw $zero,0x0($t8) -/* f136308: 8d070000 */ lw $a3,0x0($t0) -/* f13630c: 24420004 */ addiu $v0,$v0,0x4 -/* f136310: 00e60019 */ multu $a3,$a2 -/* f136314: 00005012 */ mflo $t2 -/* f136318: 00000000 */ nop -/* f13631c: 00000000 */ nop -/* f136320: 01470019 */ multu $t2,$a3 -/* f136324: 00001812 */ mflo $v1 -/* f136328: 24630001 */ addiu $v1,$v1,0x1 -/* f13632c: 0223082a */ slt $at,$s1,$v1 -/* f136330: 5420fff2 */ bnezl $at,.L0f1362fc -/* f136334: 8c890000 */ lw $t1,0x0($a0) -/* f136338: 00008825 */ or $s1,$zero,$zero -/* f13633c: 8c8c0000 */ lw $t4,0x0($a0) -.L0f136340: -/* f136340: 00035880 */ sll $t3,$v1,0x2 -/* f136344: 3c01800a */ lui $at,%hi(var800a4154) -/* f136348: 016c7021 */ addu $t6,$t3,$t4 -/* f13634c: 0fc4d71c */ jal func0f135c70 -/* f136350: ac2e4154 */ sw $t6,%lo(var800a4154)($at) -/* f136354: 3c0d800a */ lui $t5,%hi(var800a4150) -/* f136358: 8dad4150 */ lw $t5,%lo(var800a4150)($t5) -/* f13635c: 3c013f80 */ lui $at,0x3f80 -/* f136360: c7b800bc */ lwc1 $f24,0xbc($sp) -/* f136364: 19a0013a */ blez $t5,.L0f136850 -/* f136368: c7b600c0 */ lwc1 $f22,0xc0($sp) -/* f13636c: 4481f000 */ mtc1 $at,$f30 -/* f136370: 3c012f80 */ lui $at,0x2f80 -/* f136374: 4481e000 */ mtc1 $at,$f28 -/* f136378: 3c01bf80 */ lui $at,0xbf80 -/* f13637c: 4481d000 */ mtc1 $at,$f26 -/* f136380: 4480a000 */ mtc1 $zero,$f20 -/* f136384: 8fb000b0 */ lw $s0,0xb0($sp) -.L0f136388: -/* f136388: 0c004b70 */ jal random -/* f13638c: 00000000 */ nop -/* f136390: 44822000 */ mtc1 $v0,$f4 -/* f136394: 3c014f80 */ lui $at,0x4f80 -/* f136398: 04410004 */ bgez $v0,.L0f1363ac -/* f13639c: 468021a0 */ cvt.s.w $f6,$f4 -/* f1363a0: 44814000 */ mtc1 $at,$f8 -/* f1363a4: 00000000 */ nop -/* f1363a8: 46083180 */ add.s $f6,$f6,$f8 -.L0f1363ac: -/* f1363ac: 461c3002 */ mul.s $f0,$f6,$f28 -/* f1363b0: 3c0f8008 */ lui $t7,%hi(var8007f124) -/* f1363b4: 8deff124 */ lw $t7,%lo(var8007f124)($t7) -/* f1363b8: 46000280 */ add.s $f10,$f0,$f0 -/* f1363bc: 461e5381 */ sub.s $f14,$f10,$f30 -/* f1363c0: 11e0000f */ beqz $t7,.L0f136400 -/* f1363c4: e7ae00d4 */ swc1 $f14,0xd4($sp) -/* f1363c8: 0c004b70 */ jal random -/* f1363cc: 00000000 */ nop -/* f1363d0: 44822000 */ mtc1 $v0,$f4 -/* f1363d4: 3c014f80 */ lui $at,0x4f80 -/* f1363d8: 04410004 */ bgez $v0,.L0f1363ec -/* f1363dc: 46802220 */ cvt.s.w $f8,$f4 -/* f1363e0: 44813000 */ mtc1 $at,$f6 -/* f1363e4: 00000000 */ nop -/* f1363e8: 46064200 */ add.s $f8,$f8,$f6 -.L0f1363ec: -/* f1363ec: 461c4002 */ mul.s $f0,$f8,$f28 -/* f1363f0: 46000280 */ add.s $f10,$f0,$f0 -/* f1363f4: 461e5401 */ sub.s $f16,$f10,$f30 -/* f1363f8: 1000000c */ b .L0f13642c -/* f1363fc: e7b000d8 */ swc1 $f16,0xd8($sp) -.L0f136400: -/* f136400: 0c004b70 */ jal random -/* f136404: 00000000 */ nop -/* f136408: 44822000 */ mtc1 $v0,$f4 -/* f13640c: 3c014f80 */ lui $at,0x4f80 -/* f136410: 04410004 */ bgez $v0,.L0f136424 -/* f136414: 468021a0 */ cvt.s.w $f6,$f4 -/* f136418: 44814000 */ mtc1 $at,$f8 -/* f13641c: 00000000 */ nop -/* f136420: 46083180 */ add.s $f6,$f6,$f8 -.L0f136424: -/* f136424: 461c3402 */ mul.s $f16,$f6,$f28 -/* f136428: e7b000d8 */ swc1 $f16,0xd8($sp) -.L0f13642c: -/* f13642c: 0c004b70 */ jal random -/* f136430: 00000000 */ nop -/* f136434: 44825000 */ mtc1 $v0,$f10 -/* f136438: 3c014f80 */ lui $at,0x4f80 -/* f13643c: 04410004 */ bgez $v0,.L0f136450 -/* f136440: 46805120 */ cvt.s.w $f4,$f10 -/* f136444: 44814000 */ mtc1 $at,$f8 -/* f136448: 00000000 */ nop -/* f13644c: 46082100 */ add.s $f4,$f4,$f8 -.L0f136450: -/* f136450: 461c2002 */ mul.s $f0,$f4,$f28 -/* f136454: 27a400d4 */ addiu $a0,$sp,0xd4 -/* f136458: 27a500d8 */ addiu $a1,$sp,0xd8 -/* f13645c: 27a600dc */ addiu $a2,$sp,0xdc -/* f136460: 46000180 */ add.s $f6,$f0,$f0 -/* f136464: 461e3301 */ sub.s $f12,$f6,$f30 -/* f136468: 0c0011e4 */ jal guNormalize -/* f13646c: e7ac00dc */ swc1 $f12,0xdc($sp) -/* f136470: c7ae00d4 */ lwc1 $f14,0xd4($sp) -/* f136474: c7b000d8 */ lwc1 $f16,0xd8($sp) -/* f136478: c7ac00dc */ lwc1 $f12,0xdc($sp) -/* f13647c: 4614703c */ c.lt.s $f14,$f20 -/* f136480: 00000000 */ nop -/* f136484: 45020004 */ bc1fl .L0f136498 -/* f136488: 46007086 */ mov.s $f2,$f14 -/* f13648c: 10000002 */ b .L0f136498 -/* f136490: 46007087 */ neg.s $f2,$f14 -/* f136494: 46007086 */ mov.s $f2,$f14 -.L0f136498: -/* f136498: 4614803c */ c.lt.s $f16,$f20 -/* f13649c: 00000000 */ nop -/* f1364a0: 45020004 */ bc1fl .L0f1364b4 -/* f1364a4: 46008006 */ mov.s $f0,$f16 -/* f1364a8: 10000002 */ b .L0f1364b4 -/* f1364ac: 46008007 */ neg.s $f0,$f16 -/* f1364b0: 46008006 */ mov.s $f0,$f16 -.L0f1364b4: -/* f1364b4: 4602003c */ c.lt.s $f0,$f2 -/* f1364b8: 00000000 */ nop -/* f1364bc: 45020027 */ bc1fl .L0f13655c -/* f1364c0: 4614803c */ c.lt.s $f16,$f20 -/* f1364c4: 4614703c */ c.lt.s $f14,$f20 -/* f1364c8: c7ac00dc */ lwc1 $f12,0xdc($sp) -/* f1364cc: 45020004 */ bc1fl .L0f1364e0 -/* f1364d0: 46007086 */ mov.s $f2,$f14 -/* f1364d4: 10000002 */ b .L0f1364e0 -/* f1364d8: 46007087 */ neg.s $f2,$f14 -/* f1364dc: 46007086 */ mov.s $f2,$f14 -.L0f1364e0: -/* f1364e0: 4614603c */ c.lt.s $f12,$f20 -/* f1364e4: 00000000 */ nop -/* f1364e8: 45020004 */ bc1fl .L0f1364fc -/* f1364ec: 46006006 */ mov.s $f0,$f12 -/* f1364f0: 10000002 */ b .L0f1364fc -/* f1364f4: 46006007 */ neg.s $f0,$f12 -/* f1364f8: 46006006 */ mov.s $f0,$f12 -.L0f1364fc: -/* f1364fc: 4602003c */ c.lt.s $f0,$f2 -/* f136500: 00000000 */ nop -/* f136504: 4502000b */ bc1fl .L0f136534 -/* f136508: 4614603c */ c.lt.s $f12,$f20 -/* f13650c: 4614703c */ c.lt.s $f14,$f20 -/* f136510: 00000000 */ nop -/* f136514: 45020004 */ bc1fl .L0f136528 -/* f136518: 46007006 */ mov.s $f0,$f14 -/* f13651c: 10000032 */ b .L0f1365e8 -/* f136520: 46007007 */ neg.s $f0,$f14 -/* f136524: 46007006 */ mov.s $f0,$f14 -.L0f136528: -/* f136528: 10000030 */ b .L0f1365ec -/* f13652c: 46007483 */ div.s $f18,$f14,$f0 -/* f136530: 4614603c */ c.lt.s $f12,$f20 -.L0f136534: -/* f136534: 00000000 */ nop -/* f136538: 45020004 */ bc1fl .L0f13654c -/* f13653c: 46006006 */ mov.s $f0,$f12 -/* f136540: 10000002 */ b .L0f13654c -/* f136544: 46006007 */ neg.s $f0,$f12 -/* f136548: 46006006 */ mov.s $f0,$f12 -.L0f13654c: -/* f13654c: 46000086 */ mov.s $f2,$f0 -/* f136550: 10000025 */ b .L0f1365e8 -/* f136554: 46001006 */ mov.s $f0,$f2 -/* f136558: 4614803c */ c.lt.s $f16,$f20 -.L0f13655c: -/* f13655c: 00000000 */ nop -/* f136560: 45020004 */ bc1fl .L0f136574 -/* f136564: 46008086 */ mov.s $f2,$f16 -/* f136568: 10000002 */ b .L0f136574 -/* f13656c: 46008087 */ neg.s $f2,$f16 -/* f136570: 46008086 */ mov.s $f2,$f16 -.L0f136574: -/* f136574: 4614603c */ c.lt.s $f12,$f20 -/* f136578: 00000000 */ nop -/* f13657c: 45020004 */ bc1fl .L0f136590 -/* f136580: 46006006 */ mov.s $f0,$f12 -/* f136584: 10000002 */ b .L0f136590 -/* f136588: 46006007 */ neg.s $f0,$f12 -/* f13658c: 46006006 */ mov.s $f0,$f12 -.L0f136590: -/* f136590: 4602003c */ c.lt.s $f0,$f2 -/* f136594: 00000000 */ nop -/* f136598: 4502000b */ bc1fl .L0f1365c8 -/* f13659c: 4614603c */ c.lt.s $f12,$f20 -/* f1365a0: 4614803c */ c.lt.s $f16,$f20 -/* f1365a4: 00000000 */ nop -/* f1365a8: 45020004 */ bc1fl .L0f1365bc -/* f1365ac: 46008006 */ mov.s $f0,$f16 -/* f1365b0: 1000000c */ b .L0f1365e4 -/* f1365b4: 46008087 */ neg.s $f2,$f16 -/* f1365b8: 46008006 */ mov.s $f0,$f16 -.L0f1365bc: -/* f1365bc: 10000009 */ b .L0f1365e4 -/* f1365c0: 46000086 */ mov.s $f2,$f0 -/* f1365c4: 4614603c */ c.lt.s $f12,$f20 -.L0f1365c8: -/* f1365c8: 00000000 */ nop -/* f1365cc: 45020004 */ bc1fl .L0f1365e0 -/* f1365d0: 46006006 */ mov.s $f0,$f12 -/* f1365d4: 10000002 */ b .L0f1365e0 -/* f1365d8: 46006007 */ neg.s $f0,$f12 -/* f1365dc: 46006006 */ mov.s $f0,$f12 -.L0f1365e0: -/* f1365e0: 46000086 */ mov.s $f2,$f0 -.L0f1365e4: -/* f1365e4: 46001006 */ mov.s $f0,$f2 -.L0f1365e8: -/* f1365e8: 46007483 */ div.s $f18,$f14,$f0 -.L0f1365ec: -/* f1365ec: 3c07800a */ lui $a3,%hi(var800a4158) -/* f1365f0: 8ce74158 */ lw $a3,%lo(var800a4158)($a3) -/* f1365f4: 3c013f80 */ lui $at,0x3f80 -/* f1365f8: 44812000 */ mtc1 $at,$f4 -/* f1365fc: 00e70019 */ multu $a3,$a3 -/* f136600: e7ac00dc */ swc1 $f12,0xdc($sp) -/* f136604: e7ae00d4 */ swc1 $f14,0xd4($sp) -/* f136608: e7b000d8 */ swc1 $f16,0xd8($sp) -/* f13660c: 3c013f80 */ lui $at,0x3f80 -/* f136610: 00004012 */ mflo $t0 -/* f136614: 46008283 */ div.s $f10,$f16,$f0 -/* f136618: 46122032 */ c.eq.s $f4,$f18 -/* f13661c: 46006203 */ div.s $f8,$f12,$f0 -/* f136620: e7aa00cc */ swc1 $f10,0xcc($sp) -/* f136624: 45010006 */ bc1t .L0f136640 -/* f136628: e7a800d0 */ swc1 $f8,0xd0($sp) -/* f13662c: 4612d032 */ c.eq.s $f26,$f18 -/* f136630: c7a000cc */ lwc1 $f0,0xcc($sp) -/* f136634: c7ae00d0 */ lwc1 $f14,0xd0($sp) -/* f136638: 45020018 */ bc1fl .L0f13669c -/* f13663c: 3c013f80 */ lui $at,0x3f80 -.L0f136640: -/* f136640: 4612d032 */ c.eq.s $f26,$f18 -/* f136644: 44813000 */ mtc1 $at,$f6 -/* f136648: c7a000cc */ lwc1 $f0,0xcc($sp) -/* f13664c: c7ae00d0 */ lwc1 $f14,0xd0($sp) -/* f136650: 45000003 */ bc1f .L0f136660 -/* f136654: e7b200c8 */ swc1 $f18,0xc8($sp) -/* f136658: 10000002 */ b .L0f136664 -/* f13665c: 00008025 */ or $s0,$zero,$zero -.L0f136660: -/* f136660: 24100001 */ addiu $s0,$zero,0x1 -.L0f136664: -/* f136664: 3c014000 */ lui $at,0x4000 -/* f136668: 44814000 */ mtc1 $at,$f8 -/* f13666c: 46060280 */ add.s $f10,$f0,$f6 -/* f136670: 3c013f80 */ lui $at,0x3f80 -/* f136674: 44812000 */ mtc1 $at,$f4 -/* f136678: 3c014000 */ lui $at,0x4000 -/* f13667c: 46085083 */ div.s $f2,$f10,$f8 -/* f136680: 44815000 */ mtc1 $at,$f10 -/* f136684: 46000586 */ mov.s $f22,$f0 -/* f136688: 46007606 */ mov.s $f24,$f14 -/* f13668c: 46047180 */ add.s $f6,$f14,$f4 -/* f136690: 1000004c */ b .L0f1367c4 -/* f136694: 460a3303 */ div.s $f12,$f6,$f10 -/* f136698: 3c013f80 */ lui $at,0x3f80 -.L0f13669c: -/* f13669c: 44814000 */ mtc1 $at,$f8 -/* f1366a0: 3c013f80 */ lui $at,0x3f80 -/* f1366a4: 46004032 */ c.eq.s $f8,$f0 -/* f1366a8: 00000000 */ nop -/* f1366ac: 45030006 */ bc1tl .L0f1366c8 -/* f1366b0: 4600d032 */ c.eq.s $f26,$f0 -/* f1366b4: 4600d032 */ c.eq.s $f26,$f0 -/* f1366b8: 00000000 */ nop -/* f1366bc: 45020016 */ bc1fl .L0f136718 -/* f1366c0: 3c013f80 */ lui $at,0x3f80 -/* f1366c4: 4600d032 */ c.eq.s $f26,$f0 -.L0f1366c8: -/* f1366c8: 44812000 */ mtc1 $at,$f4 -/* f1366cc: 3c014000 */ lui $at,0x4000 -/* f1366d0: 44815000 */ mtc1 $at,$f10 -/* f1366d4: 45000003 */ bc1f .L0f1366e4 -/* f1366d8: 46047180 */ add.s $f6,$f14,$f4 -/* f1366dc: 10000002 */ b .L0f1366e8 -/* f1366e0: 24100002 */ addiu $s0,$zero,0x2 -.L0f1366e4: -/* f1366e4: 24100003 */ addiu $s0,$zero,0x3 -.L0f1366e8: -/* f1366e8: 3c013f80 */ lui $at,0x3f80 -/* f1366ec: 44814000 */ mtc1 $at,$f8 -/* f1366f0: 3c014000 */ lui $at,0x4000 -/* f1366f4: 460a3083 */ div.s $f2,$f6,$f10 -/* f1366f8: 44813000 */ mtc1 $at,$f6 -/* f1366fc: 46007586 */ mov.s $f22,$f14 -/* f136700: 46009606 */ mov.s $f24,$f18 -/* f136704: 46089100 */ add.s $f4,$f18,$f8 -/* f136708: e7b200c8 */ swc1 $f18,0xc8($sp) -/* f13670c: 1000002d */ b .L0f1367c4 -/* f136710: 46062303 */ div.s $f12,$f4,$f6 -/* f136714: 3c013f80 */ lui $at,0x3f80 -.L0f136718: -/* f136718: 44815000 */ mtc1 $at,$f10 -/* f13671c: 3c013f80 */ lui $at,0x3f80 -/* f136720: 460e5032 */ c.eq.s $f10,$f14 -/* f136724: 00000000 */ nop -/* f136728: 45030006 */ bc1tl .L0f136744 -/* f13672c: 460ed032 */ c.eq.s $f26,$f14 -/* f136730: 460ed032 */ c.eq.s $f26,$f14 -/* f136734: 00000000 */ nop -/* f136738: 45020016 */ bc1fl .L0f136794 -/* f13673c: 3c013f80 */ lui $at,0x3f80 -/* f136740: 460ed032 */ c.eq.s $f26,$f14 -.L0f136744: -/* f136744: 44814000 */ mtc1 $at,$f8 -/* f136748: 3c014000 */ lui $at,0x4000 -/* f13674c: 44813000 */ mtc1 $at,$f6 -/* f136750: 45000003 */ bc1f .L0f136760 -/* f136754: 46089100 */ add.s $f4,$f18,$f8 -/* f136758: 10000002 */ b .L0f136764 -/* f13675c: 24100004 */ addiu $s0,$zero,0x4 -.L0f136760: -/* f136760: 24100005 */ addiu $s0,$zero,0x5 -.L0f136764: -/* f136764: 3c013f80 */ lui $at,0x3f80 -/* f136768: 44815000 */ mtc1 $at,$f10 -/* f13676c: 3c014000 */ lui $at,0x4000 -/* f136770: 46062083 */ div.s $f2,$f4,$f6 -/* f136774: 44812000 */ mtc1 $at,$f4 -/* f136778: 46009586 */ mov.s $f22,$f18 -/* f13677c: 46000606 */ mov.s $f24,$f0 -/* f136780: 460a0200 */ add.s $f8,$f0,$f10 -/* f136784: e7b200c8 */ swc1 $f18,0xc8($sp) -/* f136788: 1000000e */ b .L0f1367c4 -/* f13678c: 46044303 */ div.s $f12,$f8,$f4 -/* f136790: 3c013f80 */ lui $at,0x3f80 -.L0f136794: -/* f136794: 44813000 */ mtc1 $at,$f6 -/* f136798: 3c014000 */ lui $at,0x4000 -/* f13679c: 44814000 */ mtc1 $at,$f8 -/* f1367a0: 4606b280 */ add.s $f10,$f22,$f6 -/* f1367a4: 3c013f80 */ lui $at,0x3f80 -/* f1367a8: 44812000 */ mtc1 $at,$f4 -/* f1367ac: 3c014000 */ lui $at,0x4000 -/* f1367b0: 46085083 */ div.s $f2,$f10,$f8 -/* f1367b4: 44815000 */ mtc1 $at,$f10 -/* f1367b8: e7b200c8 */ swc1 $f18,0xc8($sp) -/* f1367bc: 4604c180 */ add.s $f6,$f24,$f4 -/* f1367c0: 460a3303 */ div.s $f12,$f6,$f10 -.L0f1367c4: -/* f1367c4: 44874000 */ mtc1 $a3,$f8 -/* f1367c8: 00000000 */ nop -/* f1367cc: 46804020 */ cvt.s.w $f0,$f8 -/* f1367d0: 46001102 */ mul.s $f4,$f2,$f0 -/* f1367d4: 00000000 */ nop -/* f1367d8: 46006282 */ mul.s $f10,$f12,$f0 -/* f1367dc: 4600218d */ trunc.w.s $f6,$f4 -/* f1367e0: 4600520d */ trunc.w.s $f8,$f10 -/* f1367e4: 44023000 */ mfc1 $v0,$f6 -/* f1367e8: 44034000 */ mfc1 $v1,$f8 -/* f1367ec: 14470002 */ bne $v0,$a3,.L0f1367f8 -/* f1367f0: 00000000 */ nop -/* f1367f4: 2442ffff */ addiu $v0,$v0,-1 -.L0f1367f8: -/* f1367f8: 14670002 */ bne $v1,$a3,.L0f136804 -/* f1367fc: 00000000 */ nop -/* f136800: 2463ffff */ addiu $v1,$v1,-1 -.L0f136804: -/* f136804: 00e30019 */ multu $a3,$v1 -/* f136808: 27a500d4 */ addiu $a1,$sp,0xd4 -/* f13680c: 0000c012 */ mflo $t8 -/* f136810: 03023021 */ addu $a2,$t8,$v0 -/* f136814: 00000000 */ nop -/* f136818: 02080019 */ multu $s0,$t0 -/* f13681c: 00005012 */ mflo $t2 -/* f136820: 01462021 */ addu $a0,$t2,$a2 -/* f136824: 0fc4d7c2 */ jal func0f135f08 -/* f136828: 00000000 */ nop -/* f13682c: 3c0b800a */ lui $t3,%hi(var800a4150) -/* f136830: 8d6b4150 */ lw $t3,%lo(var800a4150)($t3) -/* f136834: 26310001 */ addiu $s1,$s1,0x1 -/* f136838: 022b082a */ slt $at,$s1,$t3 -/* f13683c: 1420fed2 */ bnez $at,.L0f136388 -/* f136840: 00000000 */ nop -/* f136844: e7b800bc */ swc1 $f24,0xbc($sp) -/* f136848: e7b600c0 */ swc1 $f22,0xc0($sp) -/* f13684c: afb000b0 */ sw $s0,0xb0($sp) -.L0f136850: -/* f136850: 8fbf004c */ lw $ra,0x4c($sp) -/* f136854: d7b40010 */ ldc1 $f20,0x10($sp) -/* f136858: d7b60018 */ ldc1 $f22,0x18($sp) -/* f13685c: d7b80020 */ ldc1 $f24,0x20($sp) -/* f136860: d7ba0028 */ ldc1 $f26,0x28($sp) -/* f136864: d7bc0030 */ ldc1 $f28,0x30($sp) -/* f136868: d7be0038 */ ldc1 $f30,0x38($sp) -/* f13686c: 8fb00044 */ lw $s0,0x44($sp) -/* f136870: 8fb10048 */ lw $s1,0x48($sp) -/* f136874: 03e00008 */ jr $ra -/* f136878: 27bd00e8 */ addiu $sp,$sp,0xe8 -); - -GLOBAL_ASM( -glabel func0f13687c +glabel sky0f11f07c .late_rodata -glabel var7f1b57b8 -.word 0x3c8efa03 -glabel var7f1b57bc -.word 0x43837333 +glabel var7f1b4fe0 +.word 0x38d1b717 +glabel var7f1b4fe4 +.word 0x3c23d70a +glabel var7f1b4fe8 +.word 0x48927c00 .text -/* f13687c: 27bdfe50 */ addiu $sp,$sp,-432 -/* f136880: afbf006c */ sw $ra,0x6c($sp) -/* f136884: afb1004c */ sw $s1,0x4c($sp) -/* f136888: afb00048 */ sw $s0,0x48($sp) -/* f13688c: 00808025 */ or $s0,$a0,$zero -/* f136890: afbe0068 */ sw $s8,0x68($sp) -/* f136894: afb70064 */ sw $s7,0x64($sp) -/* f136898: afb60060 */ sw $s6,0x60($sp) -/* f13689c: afb5005c */ sw $s5,0x5c($sp) -/* f1368a0: afb40058 */ sw $s4,0x58($sp) -/* f1368a4: afb30054 */ sw $s3,0x54($sp) -/* f1368a8: afb20050 */ sw $s2,0x50($sp) -/* f1368ac: f7be0040 */ sdc1 $f30,0x40($sp) -/* f1368b0: f7bc0038 */ sdc1 $f28,0x38($sp) -/* f1368b4: f7ba0030 */ sdc1 $f26,0x30($sp) -/* f1368b8: f7b80028 */ sdc1 $f24,0x28($sp) -/* f1368bc: f7b60020 */ sdc1 $f22,0x20($sp) -/* f1368c0: f7b40018 */ sdc1 $f20,0x18($sp) -/* f1368c4: 0c002f40 */ jal viGetViewLeft -/* f1368c8: 00008825 */ or $s1,$zero,$zero -/* f1368cc: 44822000 */ mtc1 $v0,$f4 -/* f1368d0: 0c002f22 */ jal viGetViewWidth -/* f1368d4: 46802520 */ cvt.s.w $f20,$f4 -/* f1368d8: 44823000 */ mtc1 $v0,$f6 -/* f1368dc: 00000000 */ nop -/* f1368e0: 46803220 */ cvt.s.w $f8,$f6 -/* f1368e4: 0c002f44 */ jal viGetViewTop -/* f1368e8: 46144600 */ add.s $f24,$f8,$f20 -/* f1368ec: 44825000 */ mtc1 $v0,$f10 -/* f1368f0: 0c002f26 */ jal viGetViewHeight -/* f1368f4: 468055a0 */ cvt.s.w $f22,$f10 -/* f1368f8: 3c13800a */ lui $s3,%hi(g_Vars) -/* f1368fc: 26739fc0 */ addiu $s3,$s3,%lo(g_Vars) -/* f136900: 44828000 */ mtc1 $v0,$f16 -/* f136904: 8e630284 */ lw $v1,0x284($s3) -/* f136908: 3c0e8008 */ lui $t6,%hi(var8007f120) -/* f13690c: 468084a0 */ cvt.s.w $f18,$f16 -/* f136910: 8dcef120 */ lw $t6,%lo(var8007f120)($t6) -/* f136914: c464170c */ lwc1 $f4,0x170c($v1) -/* f136918: c4661720 */ lwc1 $f6,0x1720($v1) -/* f13691c: c4681710 */ lwc1 $f8,0x1710($v1) -/* f136920: c46a1724 */ lwc1 $f10,0x1724($v1) -/* f136924: 46169680 */ add.s $f26,$f18,$f22 -/* f136928: 46062700 */ add.s $f28,$f4,$f6 -/* f13692c: 15c00003 */ bnez $t6,.L0f13693c -/* f136930: 460a4780 */ add.s $f30,$f8,$f10 -/* f136934: 1000020a */ b .L0f137160 -/* f136938: 02001025 */ or $v0,$s0,$zero -.L0f13693c: -/* f13693c: 8e6204b4 */ lw $v0,0x4b4($s3) -/* f136940: 24010030 */ addiu $at,$zero,0x30 -/* f136944: 10410003 */ beq $v0,$at,.L0f136954 -/* f136948: 24010022 */ addiu $at,$zero,0x22 -/* f13694c: 54410003 */ bnel $v0,$at,.L0f13695c -/* f136950: 3c014000 */ lui $at,0x4000 -.L0f136954: -/* f136954: 24110001 */ addiu $s1,$zero,0x1 -/* f136958: 3c014000 */ lui $at,0x4000 -.L0f13695c: -/* f13695c: 44816000 */ mtc1 $at,$f12 -/* f136960: 0fc01ac2 */ jal func0f006b08 -/* f136964: 00000000 */ nop -/* f136968: 3c01437f */ lui $at,0x437f -/* f13696c: 44818000 */ mtc1 $at,$f16 -/* f136970: 24060001 */ addiu $a2,$zero,0x1 -/* f136974: 3c057777 */ lui $a1,0x7777 -/* f136978: 46100482 */ mul.s $f18,$f0,$f16 -/* f13697c: 34a5777f */ ori $a1,$a1,0x777f -/* f136980: 2404ff7f */ addiu $a0,$zero,-129 -/* f136984: 444ff800 */ cfc1 $t7,$31 -/* f136988: 44c6f800 */ ctc1 $a2,$31 -/* f13698c: 00000000 */ nop -/* f136990: 46009124 */ cvt.w.s $f4,$f18 -/* f136994: 4446f800 */ cfc1 $a2,$31 -/* f136998: 00000000 */ nop -/* f13699c: 30c60078 */ andi $a2,$a2,0x78 -/* f1369a0: 10c00012 */ beqz $a2,.L0f1369ec -/* f1369a4: 3c014f00 */ lui $at,0x4f00 -/* f1369a8: 44812000 */ mtc1 $at,$f4 -/* f1369ac: 24060001 */ addiu $a2,$zero,0x1 -/* f1369b0: 46049101 */ sub.s $f4,$f18,$f4 -/* f1369b4: 44c6f800 */ ctc1 $a2,$31 -/* f1369b8: 00000000 */ nop -/* f1369bc: 46002124 */ cvt.w.s $f4,$f4 -/* f1369c0: 4446f800 */ cfc1 $a2,$31 -/* f1369c4: 00000000 */ nop -/* f1369c8: 30c60078 */ andi $a2,$a2,0x78 -/* f1369cc: 14c00005 */ bnez $a2,.L0f1369e4 -/* f1369d0: 00000000 */ nop -/* f1369d4: 44062000 */ mfc1 $a2,$f4 -/* f1369d8: 3c018000 */ lui $at,0x8000 -/* f1369dc: 10000007 */ b .L0f1369fc -/* f1369e0: 00c13025 */ or $a2,$a2,$at -.L0f1369e4: -/* f1369e4: 10000005 */ b .L0f1369fc -/* f1369e8: 2406ffff */ addiu $a2,$zero,-1 -.L0f1369ec: -/* f1369ec: 44062000 */ mfc1 $a2,$f4 -/* f1369f0: 00000000 */ nop -/* f1369f4: 04c0fffb */ bltz $a2,.L0f1369e4 -/* f1369f8: 00000000 */ nop -.L0f1369fc: -/* f1369fc: 44cff800 */ ctc1 $t7,$31 -/* f136a00: 0fc01a40 */ jal colourBlend -/* f136a04: 00000000 */ nop -/* f136a08: 3c014080 */ lui $at,0x4080 -/* f136a0c: 44816000 */ mtc1 $at,$f12 -/* f136a10: 0fc01ac2 */ jal func0f006b08 -/* f136a14: afa2011c */ sw $v0,0x11c($sp) -/* f136a18: 3c01437f */ lui $at,0x437f -/* f136a1c: 44813000 */ mtc1 $at,$f6 -/* f136a20: 24060001 */ addiu $a2,$zero,0x1 -/* f136a24: 3c052222 */ lui $a1,0x2222 -/* f136a28: 46060202 */ mul.s $f8,$f0,$f6 -/* f136a2c: 34a5ff7f */ ori $a1,$a1,0xff7f -/* f136a30: 3404aa7f */ dli $a0,0xaa7f -/* f136a34: 4458f800 */ cfc1 $t8,$31 -/* f136a38: 44c6f800 */ ctc1 $a2,$31 -/* f136a3c: 00000000 */ nop -/* f136a40: 460042a4 */ cvt.w.s $f10,$f8 -/* f136a44: 4446f800 */ cfc1 $a2,$31 -/* f136a48: 00000000 */ nop -/* f136a4c: 30c60078 */ andi $a2,$a2,0x78 -/* f136a50: 10c00012 */ beqz $a2,.L0f136a9c -/* f136a54: 3c014f00 */ lui $at,0x4f00 -/* f136a58: 44815000 */ mtc1 $at,$f10 -/* f136a5c: 24060001 */ addiu $a2,$zero,0x1 -/* f136a60: 460a4281 */ sub.s $f10,$f8,$f10 -/* f136a64: 44c6f800 */ ctc1 $a2,$31 -/* f136a68: 00000000 */ nop -/* f136a6c: 460052a4 */ cvt.w.s $f10,$f10 -/* f136a70: 4446f800 */ cfc1 $a2,$31 -/* f136a74: 00000000 */ nop -/* f136a78: 30c60078 */ andi $a2,$a2,0x78 -/* f136a7c: 14c00005 */ bnez $a2,.L0f136a94 -/* f136a80: 00000000 */ nop -/* f136a84: 44065000 */ mfc1 $a2,$f10 -/* f136a88: 3c018000 */ lui $at,0x8000 -/* f136a8c: 10000007 */ b .L0f136aac -/* f136a90: 00c13025 */ or $a2,$a2,$at -.L0f136a94: -/* f136a94: 10000005 */ b .L0f136aac -/* f136a98: 2406ffff */ addiu $a2,$zero,-1 -.L0f136a9c: -/* f136a9c: 44065000 */ mfc1 $a2,$f10 -/* f136aa0: 00000000 */ nop -/* f136aa4: 04c0fffb */ bltz $a2,.L0f136a94 -/* f136aa8: 00000000 */ nop -.L0f136aac: -/* f136aac: 44d8f800 */ ctc1 $t8,$31 -/* f136ab0: 0fc01a40 */ jal colourBlend -/* f136ab4: 00000000 */ nop -/* f136ab8: 3c014000 */ lui $at,0x4000 -/* f136abc: 44816000 */ mtc1 $at,$f12 -/* f136ac0: 0fc01ad5 */ jal func0f006b54 -/* f136ac4: afa20120 */ sw $v0,0x120($sp) -/* f136ac8: 3c01437f */ lui $at,0x437f -/* f136acc: 44818000 */ mtc1 $at,$f16 -/* f136ad0: 24060001 */ addiu $a2,$zero,0x1 -/* f136ad4: 3c055555 */ lui $a1,0x5555 -/* f136ad8: 46100482 */ mul.s $f18,$f0,$f16 -/* f136adc: 34a5ff7f */ ori $a1,$a1,0xff7f -/* f136ae0: 3404ff7f */ dli $a0,0xff7f -/* f136ae4: 4459f800 */ cfc1 $t9,$31 -/* f136ae8: 44c6f800 */ ctc1 $a2,$31 -/* f136aec: 00000000 */ nop -/* f136af0: 46009124 */ cvt.w.s $f4,$f18 -/* f136af4: 4446f800 */ cfc1 $a2,$31 -/* f136af8: 00000000 */ nop -/* f136afc: 30c60078 */ andi $a2,$a2,0x78 -/* f136b00: 10c00012 */ beqz $a2,.L0f136b4c -/* f136b04: 3c014f00 */ lui $at,0x4f00 -/* f136b08: 44812000 */ mtc1 $at,$f4 -/* f136b0c: 24060001 */ addiu $a2,$zero,0x1 -/* f136b10: 46049101 */ sub.s $f4,$f18,$f4 -/* f136b14: 44c6f800 */ ctc1 $a2,$31 -/* f136b18: 00000000 */ nop -/* f136b1c: 46002124 */ cvt.w.s $f4,$f4 -/* f136b20: 4446f800 */ cfc1 $a2,$31 -/* f136b24: 00000000 */ nop -/* f136b28: 30c60078 */ andi $a2,$a2,0x78 -/* f136b2c: 14c00005 */ bnez $a2,.L0f136b44 -/* f136b30: 00000000 */ nop -/* f136b34: 44062000 */ mfc1 $a2,$f4 -/* f136b38: 3c018000 */ lui $at,0x8000 -/* f136b3c: 10000007 */ b .L0f136b5c -/* f136b40: 00c13025 */ or $a2,$a2,$at -.L0f136b44: -/* f136b44: 10000005 */ b .L0f136b5c -/* f136b48: 2406ffff */ addiu $a2,$zero,-1 -.L0f136b4c: -/* f136b4c: 44062000 */ mfc1 $a2,$f4 -/* f136b50: 00000000 */ nop -/* f136b54: 04c0fffb */ bltz $a2,.L0f136b44 -/* f136b58: 00000000 */ nop -.L0f136b5c: -/* f136b5c: 44d9f800 */ ctc1 $t9,$31 -/* f136b60: 0fc01a40 */ jal colourBlend -/* f136b64: 00000000 */ nop -/* f136b68: 3c014080 */ lui $at,0x4080 -/* f136b6c: 44816000 */ mtc1 $at,$f12 -/* f136b70: 0fc01ad5 */ jal func0f006b54 -/* f136b74: afa20124 */ sw $v0,0x124($sp) -/* f136b78: 3c01437f */ lui $at,0x437f -/* f136b7c: 44813000 */ mtc1 $at,$f6 -/* f136b80: 24060001 */ addiu $a2,$zero,0x1 -/* f136b84: 3c04aaaa */ lui $a0,0xaaaa -/* f136b88: 46060202 */ mul.s $f8,$f0,$f6 -/* f136b8c: 3c057777 */ lui $a1,0x7777 -/* f136b90: 34a5ff7f */ ori $a1,$a1,0xff7f -/* f136b94: 3484ff7f */ ori $a0,$a0,0xff7f -/* f136b98: 444ef800 */ cfc1 $t6,$31 -/* f136b9c: 44c6f800 */ ctc1 $a2,$31 -/* f136ba0: 00000000 */ nop -/* f136ba4: 460042a4 */ cvt.w.s $f10,$f8 -/* f136ba8: 4446f800 */ cfc1 $a2,$31 -/* f136bac: 00000000 */ nop -/* f136bb0: 30c60078 */ andi $a2,$a2,0x78 -/* f136bb4: 10c00012 */ beqz $a2,.L0f136c00 -/* f136bb8: 3c014f00 */ lui $at,0x4f00 -/* f136bbc: 44815000 */ mtc1 $at,$f10 -/* f136bc0: 24060001 */ addiu $a2,$zero,0x1 -/* f136bc4: 460a4281 */ sub.s $f10,$f8,$f10 -/* f136bc8: 44c6f800 */ ctc1 $a2,$31 -/* f136bcc: 00000000 */ nop -/* f136bd0: 460052a4 */ cvt.w.s $f10,$f10 -/* f136bd4: 4446f800 */ cfc1 $a2,$31 -/* f136bd8: 00000000 */ nop -/* f136bdc: 30c60078 */ andi $a2,$a2,0x78 -/* f136be0: 14c00005 */ bnez $a2,.L0f136bf8 -/* f136be4: 00000000 */ nop -/* f136be8: 44065000 */ mfc1 $a2,$f10 -/* f136bec: 3c018000 */ lui $at,0x8000 -/* f136bf0: 10000007 */ b .L0f136c10 -/* f136bf4: 00c13025 */ or $a2,$a2,$at -.L0f136bf8: -/* f136bf8: 10000005 */ b .L0f136c10 -/* f136bfc: 2406ffff */ addiu $a2,$zero,-1 -.L0f136c00: -/* f136c00: 44065000 */ mfc1 $a2,$f10 -/* f136c04: 00000000 */ nop -/* f136c08: 04c0fffb */ bltz $a2,.L0f136bf8 -/* f136c0c: 00000000 */ nop -.L0f136c10: -/* f136c10: 44cef800 */ ctc1 $t6,$31 -/* f136c14: 0fc01a40 */ jal colourBlend -/* f136c18: 00000000 */ nop -/* f136c1c: 1220000a */ beqz $s1,.L0f136c48 -/* f136c20: afa20128 */ sw $v0,0x128($sp) -/* f136c24: 27b1011c */ addiu $s1,$sp,0x11c -/* f136c28: 27b20128 */ addiu $s2,$sp,0x128 -/* f136c2c: 8e240000 */ lw $a0,0x0($s1) -.L0f136c30: -/* f136c30: 2406005f */ addiu $a2,$zero,0x5f -/* f136c34: 0fc01a40 */ jal colourBlend -/* f136c38: 308500ff */ andi $a1,$a0,0xff -/* f136c3c: 26310004 */ addiu $s1,$s1,0x4 -/* f136c40: 5632fffb */ bnel $s1,$s2,.L0f136c30 -/* f136c44: 8e240000 */ lw $a0,0x0($s1) -.L0f136c48: -/* f136c48: 0c002f9d */ jal viGetFovY -/* f136c4c: 00000000 */ nop -/* f136c50: 0c002f72 */ jal viGetAspect -/* f136c54: e7a00090 */ swc1 $f0,0x90($sp) -/* f136c58: c7b00090 */ lwc1 $f16,0x90($sp) -/* f136c5c: 3c013f00 */ lui $at,0x3f00 -/* f136c60: 44812000 */ mtc1 $at,$f4 -/* f136c64: 46008483 */ div.s $f18,$f16,$f0 -/* f136c68: 3c0142b4 */ lui $at,0x42b4 -/* f136c6c: 44814000 */ mtc1 $at,$f8 -/* f136c70: 3c017f1b */ lui $at,%hi(var7f1b57b8) -/* f136c74: c43057b8 */ lwc1 $f16,%lo(var7f1b57b8)($at) -/* f136c78: 46049182 */ mul.s $f6,$f18,$f4 -/* f136c7c: 46064281 */ sub.s $f10,$f8,$f6 -/* f136c80: 46105302 */ mul.s $f12,$f10,$f16 -/* f136c84: 0c0068f4 */ jal cosf -/* f136c88: 00000000 */ nop -/* f136c8c: 27b1016c */ addiu $s1,$sp,0x16c -/* f136c90: 02202025 */ or $a0,$s1,$zero -/* f136c94: 0c00566c */ jal mtx4LoadIdentity -/* f136c98: e7a00154 */ swc1 $f0,0x154($sp) -/* f136c9c: 0fc2d5be */ jal currentPlayerGetMatrix1740 -/* f136ca0: 00000000 */ nop -/* f136ca4: 00402025 */ or $a0,$v0,$zero -/* f136ca8: 0c0056f8 */ jal mtx00015be0 -/* f136cac: 02202825 */ or $a1,$s1,$zero -/* f136cb0: 44800000 */ mtc1 $zero,$f0 -/* f136cb4: 3c017f1b */ lui $at,%hi(var7f1b57bc) -/* f136cb8: c42c57bc */ lwc1 $f12,%lo(var7f1b57bc)($at) -/* f136cbc: 02202825 */ or $a1,$s1,$zero -/* f136cc0: e7a0019c */ swc1 $f0,0x19c($sp) -/* f136cc4: e7a001a0 */ swc1 $f0,0x1a0($sp) -/* f136cc8: 0c0057e2 */ jal mtx00015f88 -/* f136ccc: e7a001a4 */ swc1 $f0,0x1a4($sp) -/* f136cd0: 8e630284 */ lw $v1,0x284($s3) -/* f136cd4: c7b20170 */ lwc1 $f18,0x170($sp) -/* f136cd8: c7a60180 */ lwc1 $f6,0x180($sp) -/* f136cdc: c4641734 */ lwc1 $f4,0x1734($v1) -/* f136ce0: 02002025 */ or $a0,$s0,$zero -/* f136ce4: 2405ffff */ addiu $a1,$zero,-1 -/* f136ce8: 46049202 */ mul.s $f8,$f18,$f4 -/* f136cec: c7b20190 */ lwc1 $f18,0x190($sp) -/* f136cf0: e7a80170 */ swc1 $f8,0x170($sp) -/* f136cf4: c46a1734 */ lwc1 $f10,0x1734($v1) -/* f136cf8: 460a3402 */ mul.s $f16,$f6,$f10 -/* f136cfc: c7a6016c */ lwc1 $f6,0x16c($sp) -/* f136d00: e7b00180 */ swc1 $f16,0x180($sp) -/* f136d04: c4641734 */ lwc1 $f4,0x1734($v1) -/* f136d08: 46049202 */ mul.s $f8,$f18,$f4 -/* f136d0c: c7b2017c */ lwc1 $f18,0x17c($sp) -/* f136d10: e7a80190 */ swc1 $f8,0x190($sp) -/* f136d14: c46a1730 */ lwc1 $f10,0x1730($v1) -/* f136d18: 460a3402 */ mul.s $f16,$f6,$f10 -/* f136d1c: c7a6018c */ lwc1 $f6,0x18c($sp) -/* f136d20: e7b0016c */ swc1 $f16,0x16c($sp) -/* f136d24: c4641730 */ lwc1 $f4,0x1730($v1) -/* f136d28: 46049202 */ mul.s $f8,$f18,$f4 -/* f136d2c: e7a8017c */ swc1 $f8,0x17c($sp) -/* f136d30: c46a1730 */ lwc1 $f10,0x1730($v1) -/* f136d34: 460a3402 */ mul.s $f16,$f6,$f10 -/* f136d38: e7b0018c */ swc1 $f16,0x18c($sp) -/* f136d3c: c4721bbc */ lwc1 $f18,0x1bbc($v1) -/* f136d40: e7b20148 */ swc1 $f18,0x148($sp) -/* f136d44: c4641bc0 */ lwc1 $f4,0x1bc0($v1) -/* f136d48: e7a4014c */ swc1 $f4,0x14c($sp) -/* f136d4c: c4681bc4 */ lwc1 $f8,0x1bc4($v1) -/* f136d50: 0fc54df7 */ jal gfxSetPrimColour -/* f136d54: e7a80150 */ swc1 $f8,0x150($sp) -/* f136d58: c7ae0154 */ lwc1 $f14,0x154($sp) -/* f136d5c: 3c0fb900 */ lui $t7,0xb900 -/* f136d60: 3c180050 */ lui $t8,0x50 -/* f136d64: 3c013f80 */ lui $at,0x3f80 -/* f136d68: 37184340 */ ori $t8,$t8,0x4340 -/* f136d6c: 35ef031d */ ori $t7,$t7,0x31d -/* f136d70: 3c1f800a */ lui $ra,%hi(var800a415c) -/* f136d74: 44816000 */ mtc1 $at,$f12 -/* f136d78: ac4f0000 */ sw $t7,0x0($v0) -/* f136d7c: ac580004 */ sw $t8,0x4($v0) -/* f136d80: 24500008 */ addiu $s0,$v0,0x8 -/* f136d84: 27ff415c */ addiu $ra,$ra,%lo(var800a415c) -/* f136d88: 0000b825 */ or $s7,$zero,$zero -/* f136d8c: 241e0001 */ addiu $s8,$zero,0x1 -/* f136d90: 24160003 */ addiu $s6,$zero,0x3 -/* f136d94: 3c14f600 */ lui $s4,0xf600 -/* f136d98: 27b3011c */ addiu $s3,$sp,0x11c -/* f136d9c: 3c12fa00 */ lui $s2,0xfa00 -.L0f136da0: -/* f136da0: 3c198008 */ lui $t9,%hi(var8007f124) -/* f136da4: 8f39f124 */ lw $t9,%lo(var8007f124)($t9) -/* f136da8: 24010002 */ addiu $at,$zero,0x2 -/* f136dac: 3c11800a */ lui $s1,%hi(var800a4158) -/* f136db0: 17200003 */ bnez $t9,.L0f136dc0 -/* f136db4: 00000000 */ nop -/* f136db8: 52e100e4 */ beql $s7,$at,.L0f13714c -/* f136dbc: 26f70001 */ addiu $s7,$s7,0x1 -.L0f136dc0: -/* f136dc0: 8e314158 */ lw $s1,%lo(var800a4158)($s1) -/* f136dc4: 0000a825 */ or $s5,$zero,$zero -/* f136dc8: 06200036 */ bltz $s1,.L0f136ea4 -/* f136dcc: 00000000 */ nop -.L0f136dd0: -/* f136dd0: 0620002f */ bltz $s1,.L0f136e90 -/* f136dd4: 00006825 */ or $t5,$zero,$zero -/* f136dd8: 26220001 */ addiu $v0,$s1,0x1 -/* f136ddc: 00570019 */ multu $v0,$s7 -/* f136de0: 3c06800a */ lui $a2,%hi(var800a4154) -/* f136de4: 00157880 */ sll $t7,$s5,0x2 -/* f136de8: 27b800d0 */ addiu $t8,$sp,0xd0 -/* f136dec: 01f86021 */ addu $t4,$t7,$t8 -/* f136df0: 8cc64154 */ lw $a2,%lo(var800a4154)($a2) -/* f136df4: 00007012 */ mflo $t6 -/* f136df8: 00000000 */ nop -/* f136dfc: 00000000 */ nop -/* f136e00: 01c20019 */ multu $t6,$v0 -/* f136e04: 00002012 */ mflo $a0 -/* f136e08: 00000000 */ nop -/* f136e0c: 00000000 */ nop -/* f136e10: 02a20019 */ multu $s5,$v0 -/* f136e14: 00002812 */ mflo $a1 -/* f136e18: 00000000 */ nop -/* f136e1c: 00000000 */ nop -.L0f136e20: -/* f136e20: 008dc821 */ addu $t9,$a0,$t5 -/* f136e24: 03257021 */ addu $t6,$t9,$a1 -/* f136e28: 01d60019 */ multu $t6,$s6 -/* f136e2c: c7a60148 */ lwc1 $f6,0x148($sp) -/* f136e30: c7b2014c */ lwc1 $f18,0x14c($sp) -/* f136e34: 25ad0001 */ addiu $t5,$t5,0x1 -/* f136e38: 022d082a */ slt $at,$s1,$t5 -/* f136e3c: 00001812 */ mflo $v1 -/* f136e40: 00037880 */ sll $t7,$v1,0x2 -/* f136e44: 00cf1021 */ addu $v0,$a2,$t7 -/* f136e48: c44a0000 */ lwc1 $f10,0x0($v0) -/* f136e4c: c4440004 */ lwc1 $f4,0x4($v0) -/* f136e50: 460a3402 */ mul.s $f16,$f6,$f10 -/* f136e54: c44a0008 */ lwc1 $f10,0x8($v0) -/* f136e58: 46049202 */ mul.s $f8,$f18,$f4 -/* f136e5c: c7b20150 */ lwc1 $f18,0x150($sp) -/* f136e60: 46125102 */ mul.s $f4,$f10,$f18 -/* f136e64: 46088180 */ add.s $f6,$f16,$f8 -/* f136e68: 46062000 */ add.s $f0,$f4,$f6 -/* f136e6c: 460e003e */ c.le.s $f0,$f14 -/* f136e70: 00000000 */ nop -/* f136e74: 45020004 */ bc1fl .L0f136e88 -/* f136e78: ad800000 */ sw $zero,0x0($t4) -/* f136e7c: 10000002 */ b .L0f136e88 -/* f136e80: ad9e0000 */ sw $s8,0x0($t4) -/* f136e84: ad800000 */ sw $zero,0x0($t4) -.L0f136e88: -/* f136e88: 1020ffe5 */ beqz $at,.L0f136e20 -/* f136e8c: 258c0010 */ addiu $t4,$t4,0x10 -.L0f136e90: -/* f136e90: 26b50001 */ addiu $s5,$s5,0x1 -/* f136e94: 0235082a */ slt $at,$s1,$s5 -/* f136e98: 1020ffcd */ beqz $at,.L0f136dd0 -/* f136e9c: 00000000 */ nop -/* f136ea0: 0000a825 */ or $s5,$zero,$zero -.L0f136ea4: -/* f136ea4: 5a2000a9 */ blezl $s1,.L0f13714c -/* f136ea8: 26f70001 */ addiu $s7,$s7,0x1 -.L0f136eac: -/* f136eac: 1a2000a2 */ blez $s1,.L0f137138 -/* f136eb0: 00006825 */ or $t5,$zero,$zero -/* f136eb4: 0015c080 */ sll $t8,$s5,0x2 -/* f136eb8: 27b900d0 */ addiu $t9,$sp,0xd0 -/* f136ebc: 03196021 */ addu $t4,$t8,$t9 -.L0f136ec0: -/* f136ec0: 8d8e0000 */ lw $t6,0x0($t4) -/* f136ec4: 11c0000a */ beqz $t6,.L0f136ef0 -/* f136ec8: 00000000 */ nop -/* f136ecc: 8d8f0010 */ lw $t7,0x10($t4) -/* f136ed0: 11e00007 */ beqz $t7,.L0f136ef0 -/* f136ed4: 00000000 */ nop -/* f136ed8: 8d980004 */ lw $t8,0x4($t4) -/* f136edc: 13000004 */ beqz $t8,.L0f136ef0 -/* f136ee0: 00000000 */ nop -/* f136ee4: 8d990014 */ lw $t9,0x14($t4) -/* f136ee8: 57200090 */ bnezl $t9,.L0f13712c -/* f136eec: 25ad0001 */ addiu $t5,$t5,0x1 -.L0f136ef0: -/* f136ef0: 02310019 */ multu $s1,$s1 -/* f136ef4: 00002825 */ or $a1,$zero,$zero -/* f136ef8: 00007012 */ mflo $t6 -/* f136efc: 00000000 */ nop -/* f136f00: 00000000 */ nop -/* f136f04: 01d70019 */ multu $t6,$s7 -/* f136f08: 8fee0000 */ lw $t6,0x0($ra) -/* f136f0c: 00007812 */ mflo $t7 -/* f136f10: 01edc021 */ addu $t8,$t7,$t5 -/* f136f14: 00000000 */ nop -/* f136f18: 02b10019 */ multu $s5,$s1 -/* f136f1c: 0000c812 */ mflo $t9 -/* f136f20: 03195821 */ addu $t3,$t8,$t9 -/* f136f24: 000b3880 */ sll $a3,$t3,0x2 -/* f136f28: 01c74021 */ addu $t0,$t6,$a3 -/* f136f2c: 8d020000 */ lw $v0,0x0($t0) -/* f136f30: 8d090004 */ lw $t1,0x4($t0) -/* f136f34: 3c198008 */ lui $t9,%hi(var8007f120) -/* f136f38: 00560019 */ multu $v0,$s6 -/* f136f3c: 01225023 */ subu $t2,$t1,$v0 -/* f136f40: 8f39f120 */ lw $t9,%lo(var8007f120)($t9) -/* f136f44: 00403025 */ or $a2,$v0,$zero -/* f136f48: 05410003 */ bgez $t2,.L0f136f58 -/* f136f4c: 000a7883 */ sra $t7,$t2,0x2 -/* f136f50: 25410003 */ addiu $at,$t2,0x3 -/* f136f54: 00017883 */ sra $t7,$at,0x2 -.L0f136f58: -/* f136f58: 0000c012 */ mflo $t8 -/* f136f5c: 0049082a */ slt $at,$v0,$t1 -/* f136f60: 25ea0001 */ addiu $t2,$t7,0x1 -/* f136f64: 00402025 */ or $a0,$v0,$zero -/* f136f68: 1020006f */ beqz $at,.L0f137128 -/* f136f6c: 03191821 */ addu $v1,$t8,$t9 -.L0f136f70: -/* f136f70: 14c40009 */ bne $a2,$a0,.L0f136f98 -/* f136f74: 02001025 */ or $v0,$s0,$zero -/* f136f78: 00057080 */ sll $t6,$a1,0x2 -/* f136f7c: 026e7821 */ addu $t7,$s3,$t6 -/* f136f80: ac520000 */ sw $s2,0x0($v0) -/* f136f84: 8df80000 */ lw $t8,0x0($t7) -/* f136f88: 26100008 */ addiu $s0,$s0,0x8 -/* f136f8c: 24a50001 */ addiu $a1,$a1,0x1 -/* f136f90: 00ca3021 */ addu $a2,$a2,$t2 -/* f136f94: ac580004 */ sw $t8,0x4($v0) -.L0f136f98: -/* f136f98: 80790000 */ lb $t9,0x0($v1) -/* f136f9c: 24630003 */ addiu $v1,$v1,0x3 -/* f136fa0: 44998000 */ mtc1 $t9,$f16 -/* f136fa4: 00000000 */ nop -/* f136fa8: 46808220 */ cvt.s.w $f8,$f16 -/* f136fac: c7b00174 */ lwc1 $f16,0x174($sp) -/* f136fb0: e7a800c4 */ swc1 $f8,0xc4($sp) -/* f136fb4: 806efffe */ lb $t6,-0x2($v1) -/* f136fb8: c7a800c4 */ lwc1 $f8,0xc4($sp) -/* f136fbc: 448e5000 */ mtc1 $t6,$f10 -/* f136fc0: 00000000 */ nop -/* f136fc4: 468054a0 */ cvt.s.w $f18,$f10 -/* f136fc8: 46088282 */ mul.s $f10,$f16,$f8 -/* f136fcc: e7b200c8 */ swc1 $f18,0xc8($sp) -/* f136fd0: 806fffff */ lb $t7,-0x1($v1) -/* f136fd4: c7b20184 */ lwc1 $f18,0x184($sp) -/* f136fd8: 448f2000 */ mtc1 $t7,$f4 -/* f136fdc: 00000000 */ nop -/* f136fe0: 468021a0 */ cvt.s.w $f6,$f4 -/* f136fe4: c7a400c8 */ lwc1 $f4,0xc8($sp) -/* f136fe8: e7a600cc */ swc1 $f6,0xcc($sp) -/* f136fec: 46049182 */ mul.s $f6,$f18,$f4 -/* f136ff0: c7b200cc */ lwc1 $f18,0xcc($sp) -/* f136ff4: 46065400 */ add.s $f16,$f10,$f6 -/* f136ff8: c7aa0194 */ lwc1 $f10,0x194($sp) -/* f136ffc: 460a9182 */ mul.s $f6,$f18,$f10 -/* f137000: 46103280 */ add.s $f10,$f6,$f16 -/* f137004: c7a60170 */ lwc1 $f6,0x170($sp) -/* f137008: 460a6003 */ div.s $f0,$f12,$f10 -/* f13700c: c7aa0180 */ lwc1 $f10,0x180($sp) -/* f137010: 46083402 */ mul.s $f16,$f6,$f8 -/* f137014: 00000000 */ nop -/* f137018: 46045182 */ mul.s $f6,$f10,$f4 -/* f13701c: 46068280 */ add.s $f10,$f16,$f6 -/* f137020: c7b00190 */ lwc1 $f16,0x190($sp) -/* f137024: 46109182 */ mul.s $f6,$f18,$f16 -/* f137028: 460a3400 */ add.s $f16,$f6,$f10 -/* f13702c: 46008182 */ mul.s $f6,$f16,$f0 -/* f137030: 461e3280 */ add.s $f10,$f6,$f30 -/* f137034: 460ab03c */ c.lt.s $f22,$f10 -/* f137038: e7aa00b8 */ swc1 $f10,0xb8($sp) -/* f13703c: 45000031 */ bc1f .L0f137104 -/* f137040: 00000000 */ nop -/* f137044: 461a503c */ c.lt.s $f10,$f26 -/* f137048: c7b0016c */ lwc1 $f16,0x16c($sp) -/* f13704c: 4502002e */ bc1fl .L0f137108 -/* f137050: 8fef0000 */ lw $t7,0x0($ra) -/* f137054: 46088182 */ mul.s $f6,$f16,$f8 -/* f137058: c7b0017c */ lwc1 $f16,0x17c($sp) -/* f13705c: 46048202 */ mul.s $f8,$f16,$f4 -/* f137060: c7a4018c */ lwc1 $f4,0x18c($sp) -/* f137064: 46083400 */ add.s $f16,$f6,$f8 -/* f137068: 46049182 */ mul.s $f6,$f18,$f4 -/* f13706c: 46103200 */ add.s $f8,$f6,$f16 -/* f137070: 46004482 */ mul.s $f18,$f8,$f0 -/* f137074: 4612e081 */ sub.s $f2,$f28,$f18 -/* f137078: 4602a03c */ c.lt.s $f20,$f2 -/* f13707c: e7a200b4 */ swc1 $f2,0xb4($sp) -/* f137080: 45020021 */ bc1fl .L0f137108 -/* f137084: 8fef0000 */ lw $t7,0x0($ra) -/* f137088: 4618103c */ c.lt.s $f2,$f24 -/* f13708c: e7a200b4 */ swc1 $f2,0xb4($sp) -/* f137090: c7a400b4 */ lwc1 $f4,0xb4($sp) -/* f137094: 4502001c */ bc1fl .L0f137108 -/* f137098: 8fef0000 */ lw $t7,0x0($ra) -/* f13709c: 4600218d */ trunc.w.s $f6,$f4 -/* f1370a0: 02001025 */ or $v0,$s0,$zero -/* f1370a4: 26100008 */ addiu $s0,$s0,0x8 -/* f1370a8: 4600540d */ trunc.w.s $f16,$f10 -/* f1370ac: 44193000 */ mfc1 $t9,$f6 -/* f1370b0: 440f8000 */ mfc1 $t7,$f16 -/* f1370b4: afb900ac */ sw $t9,0xac($sp) -/* f1370b8: 25f90001 */ addiu $t9,$t7,0x1 -/* f1370bc: 332e03ff */ andi $t6,$t9,0x3ff -/* f1370c0: 8fb900ac */ lw $t9,0xac($sp) -/* f1370c4: afaf00b0 */ sw $t7,0xb0($sp) -/* f1370c8: 000e7880 */ sll $t7,$t6,0x2 -/* f1370cc: 01f4c025 */ or $t8,$t7,$s4 -/* f1370d0: 272e0001 */ addiu $t6,$t9,0x1 -/* f1370d4: 31cf03ff */ andi $t7,$t6,0x3ff -/* f1370d8: 000fcb80 */ sll $t9,$t7,0xe -/* f1370dc: 03197025 */ or $t6,$t8,$t9 -/* f1370e0: ac4e0000 */ sw $t6,0x0($v0) -/* f1370e4: 8faf00b0 */ lw $t7,0xb0($sp) -/* f1370e8: 8fae00ac */ lw $t6,0xac($sp) -/* f1370ec: 31f803ff */ andi $t8,$t7,0x3ff -/* f1370f0: 0018c880 */ sll $t9,$t8,0x2 -/* f1370f4: 31cf03ff */ andi $t7,$t6,0x3ff -/* f1370f8: 000fc380 */ sll $t8,$t7,0xe -/* f1370fc: 03387025 */ or $t6,$t9,$t8 -/* f137100: ac4e0004 */ sw $t6,0x4($v0) -.L0f137104: -/* f137104: 8fef0000 */ lw $t7,0x0($ra) -.L0f137108: -/* f137108: 24840001 */ addiu $a0,$a0,0x1 -/* f13710c: 01e7c821 */ addu $t9,$t7,$a3 -/* f137110: 8f380004 */ lw $t8,0x4($t9) -/* f137114: 0098082a */ slt $at,$a0,$t8 -/* f137118: 1420ff95 */ bnez $at,.L0f136f70 -/* f13711c: 00000000 */ nop -/* f137120: 3c11800a */ lui $s1,%hi(var800a4158) -/* f137124: 8e314158 */ lw $s1,%lo(var800a4158)($s1) -.L0f137128: -/* f137128: 25ad0001 */ addiu $t5,$t5,0x1 -.L0f13712c: -/* f13712c: 01b1082a */ slt $at,$t5,$s1 -/* f137130: 1420ff63 */ bnez $at,.L0f136ec0 -/* f137134: 258c0010 */ addiu $t4,$t4,0x10 -.L0f137138: -/* f137138: 26b50001 */ addiu $s5,$s5,0x1 -/* f13713c: 02b1082a */ slt $at,$s5,$s1 -/* f137140: 1420ff5a */ bnez $at,.L0f136eac -/* f137144: 00000000 */ nop -/* f137148: 26f70001 */ addiu $s7,$s7,0x1 -.L0f13714c: -/* f13714c: 24010006 */ addiu $at,$zero,0x6 -/* f137150: 16e1ff13 */ bne $s7,$at,.L0f136da0 -/* f137154: 00000000 */ nop -/* f137158: 0fc54e0e */ jal func0f153838 -/* f13715c: 02002025 */ or $a0,$s0,$zero -.L0f137160: -/* f137160: 8fbf006c */ lw $ra,0x6c($sp) -/* f137164: d7b40018 */ ldc1 $f20,0x18($sp) -/* f137168: d7b60020 */ ldc1 $f22,0x20($sp) -/* f13716c: d7b80028 */ ldc1 $f24,0x28($sp) -/* f137170: d7ba0030 */ ldc1 $f26,0x30($sp) -/* f137174: d7bc0038 */ ldc1 $f28,0x38($sp) -/* f137178: d7be0040 */ ldc1 $f30,0x40($sp) -/* f13717c: 8fb00048 */ lw $s0,0x48($sp) -/* f137180: 8fb1004c */ lw $s1,0x4c($sp) -/* f137184: 8fb20050 */ lw $s2,0x50($sp) -/* f137188: 8fb30054 */ lw $s3,0x54($sp) -/* f13718c: 8fb40058 */ lw $s4,0x58($sp) -/* f137190: 8fb5005c */ lw $s5,0x5c($sp) -/* f137194: 8fb60060 */ lw $s6,0x60($sp) -/* f137198: 8fb70064 */ lw $s7,0x64($sp) -/* f13719c: 8fbe0068 */ lw $s8,0x68($sp) -/* f1371a0: 03e00008 */ jr $ra -/* f1371a4: 27bd01b0 */ addiu $sp,$sp,0x1b0 +/* f11f07c: 27bdffc8 */ addiu $sp,$sp,-56 +/* f11f080: afbf001c */ sw $ra,0x1c($sp) +/* f11f084: afb10018 */ sw $s1,0x18($sp) +/* f11f088: afb00014 */ sw $s0,0x14($sp) +/* f11f08c: afa5003c */ sw $a1,0x3c($sp) +/* f11f090: afa60040 */ sw $a2,0x40($sp) +/* f11f094: c4800008 */ lwc1 $f0,0x8($a0) +/* f11f098: c48e0000 */ lwc1 $f14,0x0($a0) +/* f11f09c: 3c11800a */ lui $s1,%hi(g_Vars+0x284) +/* f11f0a0: 46000102 */ mul.s $f4,$f0,$f0 +/* f11f0a4: 3c017f1b */ lui $at,%hi(var7f1b4fe0) +/* f11f0a8: 8e31a244 */ lw $s1,%lo(g_Vars+0x284)($s1) +/* f11f0ac: 460e7182 */ mul.s $f6,$f14,$f14 +/* f11f0b0: c42a4fe0 */ lwc1 $f10,%lo(var7f1b4fe0)($at) +/* f11f0b4: 00808025 */ or $s0,$a0,$zero +/* f11f0b8: 26311bb0 */ addiu $s1,$s1,7088 +/* f11f0bc: 46062200 */ add.s $f8,$f4,$f6 +/* f11f0c0: 0c012974 */ jal sqrtf +/* f11f0c4: 460a4300 */ add.s $f12,$f8,$f10 +/* f11f0c8: c6020004 */ lwc1 $f2,0x4($s0) +/* f11f0cc: 3c013f80 */ lui $at,0x3f80 +/* f11f0d0: 44817000 */ mtc1 $at,$f14 +/* f11f0d4: 46021100 */ add.s $f4,$f2,$f2 +/* f11f0d8: 3c017f1b */ lui $at,%hi(var7f1b4fe4) +/* f11f0dc: 00001025 */ or $v0,$zero,$zero +/* f11f0e0: 46002303 */ div.s $f12,$f4,$f0 +/* f11f0e4: 460c703c */ c.lt.s $f14,$f12 +/* f11f0e8: 00000000 */ nop +/* f11f0ec: 45020003 */ bc1fl .L0f11f0fc +/* f11f0f0: 460c7181 */ sub.s $f6,$f14,$f12 +/* f11f0f4: 46007306 */ mov.s $f12,$f14 +/* f11f0f8: 460c7181 */ sub.s $f6,$f14,$f12 +.L0f11f0fc: +/* f11f0fc: 8fae0040 */ lw $t6,0x40($sp) +/* f11f100: 44800000 */ mtc1 $zero,$f0 +/* f11f104: e5c60000 */ swc1 $f6,0x0($t6) +/* f11f108: c6020004 */ lwc1 $f2,0x4($s0) +/* f11f10c: 46020032 */ c.eq.s $f0,$f2 +/* f11f110: 00000000 */ nop +/* f11f114: 45020004 */ bc1fl .L0f11f128 +/* f11f118: 46001406 */ mov.s $f16,$f2 +/* f11f11c: 10000002 */ b .L0f11f128 +/* f11f120: c4304fe4 */ lwc1 $f16,%lo(var7f1b4fe4)($at) +/* f11f124: 46001406 */ mov.s $f16,$f2 +.L0f11f128: +/* f11f128: 4610003c */ c.lt.s $f0,$f16 +/* f11f12c: 00000000 */ nop +/* f11f130: 4500002d */ bc1f .L0f11f1e8 +/* f11f134: 00000000 */ nop +/* f11f138: 0fc595f3 */ jal envGetCurrent +/* f11f13c: e7b00024 */ swc1 $f16,0x24($sp) +/* f11f140: c4480014 */ lwc1 $f8,0x14($v0) +/* f11f144: c62a0004 */ lwc1 $f10,0x4($s1) +/* f11f148: c7b00024 */ lwc1 $f16,0x24($sp) +/* f11f14c: c6000008 */ lwc1 $f0,0x8($s0) +/* f11f150: 460a4101 */ sub.s $f4,$f8,$f10 +/* f11f154: c60e0000 */ lwc1 $f14,0x0($s0) +/* f11f158: 46000182 */ mul.s $f6,$f0,$f0 +/* f11f15c: 00000000 */ nop +/* f11f160: 460e7202 */ mul.s $f8,$f14,$f14 +/* f11f164: 46102083 */ div.s $f2,$f4,$f16 +/* f11f168: 46083300 */ add.s $f12,$f6,$f8 +/* f11f16c: 0c012974 */ jal sqrtf +/* f11f170: e7a2002c */ swc1 $f2,0x2c($sp) +/* f11f174: c7a2002c */ lwc1 $f2,0x2c($sp) +/* f11f178: 3c017f1b */ lui $at,%hi(var7f1b4fe8) +/* f11f17c: c4324fe8 */ lwc1 $f18,%lo(var7f1b4fe8)($at) +/* f11f180: 46020302 */ mul.s $f12,$f0,$f2 +/* f11f184: c7b00024 */ lwc1 $f16,0x24($sp) +/* f11f188: 460c903c */ c.lt.s $f18,$f12 +/* f11f18c: 00000000 */ nop +/* f11f190: 45020005 */ bc1fl .L0f11f1a8 +/* f11f194: c6040000 */ lwc1 $f4,0x0($s0) +/* f11f198: 460c9283 */ div.s $f10,$f18,$f12 +/* f11f19c: 460a1082 */ mul.s $f2,$f2,$f10 +/* f11f1a0: 00000000 */ nop +/* f11f1a4: c6040000 */ lwc1 $f4,0x0($s0) +.L0f11f1a8: +/* f11f1a8: c6280000 */ lwc1 $f8,0x0($s1) +/* f11f1ac: 8fa3003c */ lw $v1,0x3c($sp) +/* f11f1b0: 46022182 */ mul.s $f6,$f4,$f2 +/* f11f1b4: 24020001 */ addiu $v0,$zero,0x1 +/* f11f1b8: 46083280 */ add.s $f10,$f6,$f8 +/* f11f1bc: 46101182 */ mul.s $f6,$f2,$f16 +/* f11f1c0: e46a0000 */ swc1 $f10,0x0($v1) +/* f11f1c4: c6240004 */ lwc1 $f4,0x4($s1) +/* f11f1c8: 46062200 */ add.s $f8,$f4,$f6 +/* f11f1cc: e4680004 */ swc1 $f8,0x4($v1) +/* f11f1d0: c60a0008 */ lwc1 $f10,0x8($s0) +/* f11f1d4: c6260008 */ lwc1 $f6,0x8($s1) +/* f11f1d8: 46025102 */ mul.s $f4,$f10,$f2 +/* f11f1dc: 46062200 */ add.s $f8,$f4,$f6 +/* f11f1e0: 10000001 */ b .L0f11f1e8 +/* f11f1e4: e4680008 */ swc1 $f8,0x8($v1) +.L0f11f1e8: +/* f11f1e8: 8fbf001c */ lw $ra,0x1c($sp) +/* f11f1ec: 8fb00014 */ lw $s0,0x14($sp) +/* f11f1f0: 8fb10018 */ lw $s1,0x18($sp) +/* f11f1f4: 03e00008 */ jr $ra +/* f11f1f8: 27bd0038 */ addiu $sp,$sp,0x38 ); + +GLOBAL_ASM( +glabel sky0f11f1fc +.late_rodata +glabel var7f1b4fec +.word 0x38d1b717 +glabel var7f1b4ff0 +.word 0xbc23d70a +glabel var7f1b4ff4 +.word 0x48927c00 +.text +/* f11f1fc: 27bdffc8 */ addiu $sp,$sp,-56 +/* f11f200: afbf001c */ sw $ra,0x1c($sp) +/* f11f204: afb10018 */ sw $s1,0x18($sp) +/* f11f208: afb00014 */ sw $s0,0x14($sp) +/* f11f20c: afa5003c */ sw $a1,0x3c($sp) +/* f11f210: afa60040 */ sw $a2,0x40($sp) +/* f11f214: c4800008 */ lwc1 $f0,0x8($a0) +/* f11f218: c48e0000 */ lwc1 $f14,0x0($a0) +/* f11f21c: 3c11800a */ lui $s1,%hi(g_Vars+0x284) +/* f11f220: 46000102 */ mul.s $f4,$f0,$f0 +/* f11f224: 3c017f1b */ lui $at,%hi(var7f1b4fec) +/* f11f228: 8e31a244 */ lw $s1,%lo(g_Vars+0x284)($s1) +/* f11f22c: 460e7182 */ mul.s $f6,$f14,$f14 +/* f11f230: c42a4fec */ lwc1 $f10,%lo(var7f1b4fec)($at) +/* f11f234: 00808025 */ or $s0,$a0,$zero +/* f11f238: 26311bb0 */ addiu $s1,$s1,7088 +/* f11f23c: 46062200 */ add.s $f8,$f4,$f6 +/* f11f240: 0c012974 */ jal sqrtf +/* f11f244: 460a4300 */ add.s $f12,$f8,$f10 +/* f11f248: 3c013f80 */ lui $at,0x3f80 +/* f11f24c: 44816000 */ mtc1 $at,$f12 +/* f11f250: 3c01c000 */ lui $at,0xc000 +/* f11f254: 44812000 */ mtc1 $at,$f4 +/* f11f258: c6060004 */ lwc1 $f6,0x4($s0) +/* f11f25c: 3c017f1b */ lui $at,%hi(var7f1b4ff0) +/* f11f260: 00001025 */ or $v0,$zero,$zero +/* f11f264: 46062202 */ mul.s $f8,$f4,$f6 +/* f11f268: 46004083 */ div.s $f2,$f8,$f0 +/* f11f26c: 4602603c */ c.lt.s $f12,$f2 +/* f11f270: 00000000 */ nop +/* f11f274: 45020003 */ bc1fl .L0f11f284 +/* f11f278: 46026281 */ sub.s $f10,$f12,$f2 +/* f11f27c: 46006086 */ mov.s $f2,$f12 +/* f11f280: 46026281 */ sub.s $f10,$f12,$f2 +.L0f11f284: +/* f11f284: 8fae0040 */ lw $t6,0x40($sp) +/* f11f288: 44807000 */ mtc1 $zero,$f14 +/* f11f28c: e5ca0000 */ swc1 $f10,0x0($t6) +/* f11f290: c6000004 */ lwc1 $f0,0x4($s0) +/* f11f294: 46007032 */ c.eq.s $f14,$f0 +/* f11f298: 00000000 */ nop +/* f11f29c: 45020004 */ bc1fl .L0f11f2b0 +/* f11f2a0: 46000406 */ mov.s $f16,$f0 +/* f11f2a4: 10000002 */ b .L0f11f2b0 +/* f11f2a8: c4304ff0 */ lwc1 $f16,%lo(var7f1b4ff0)($at) +/* f11f2ac: 46000406 */ mov.s $f16,$f0 +.L0f11f2b0: +/* f11f2b0: 460e803c */ c.lt.s $f16,$f14 +/* f11f2b4: 00000000 */ nop +/* f11f2b8: 4500002d */ bc1f .L0f11f370 +/* f11f2bc: 00000000 */ nop +/* f11f2c0: 0fc595f3 */ jal envGetCurrent +/* f11f2c4: e7b00024 */ swc1 $f16,0x24($sp) +/* f11f2c8: c444002c */ lwc1 $f4,0x2c($v0) +/* f11f2cc: c6260004 */ lwc1 $f6,0x4($s1) +/* f11f2d0: c7b00024 */ lwc1 $f16,0x24($sp) +/* f11f2d4: c6000008 */ lwc1 $f0,0x8($s0) +/* f11f2d8: 46062201 */ sub.s $f8,$f4,$f6 +/* f11f2dc: c60e0000 */ lwc1 $f14,0x0($s0) +/* f11f2e0: 46000282 */ mul.s $f10,$f0,$f0 +/* f11f2e4: 00000000 */ nop +/* f11f2e8: 460e7102 */ mul.s $f4,$f14,$f14 +/* f11f2ec: 46104083 */ div.s $f2,$f8,$f16 +/* f11f2f0: 46045300 */ add.s $f12,$f10,$f4 +/* f11f2f4: 0c012974 */ jal sqrtf +/* f11f2f8: e7a2002c */ swc1 $f2,0x2c($sp) +/* f11f2fc: c7a2002c */ lwc1 $f2,0x2c($sp) +/* f11f300: 3c017f1b */ lui $at,%hi(var7f1b4ff4) +/* f11f304: c4324ff4 */ lwc1 $f18,%lo(var7f1b4ff4)($at) +/* f11f308: 46020302 */ mul.s $f12,$f0,$f2 +/* f11f30c: c7b00024 */ lwc1 $f16,0x24($sp) +/* f11f310: 460c903c */ c.lt.s $f18,$f12 +/* f11f314: 00000000 */ nop +/* f11f318: 45020005 */ bc1fl .L0f11f330 +/* f11f31c: c6080000 */ lwc1 $f8,0x0($s0) +/* f11f320: 460c9183 */ div.s $f6,$f18,$f12 +/* f11f324: 46061082 */ mul.s $f2,$f2,$f6 +/* f11f328: 00000000 */ nop +/* f11f32c: c6080000 */ lwc1 $f8,0x0($s0) +.L0f11f330: +/* f11f330: c6240000 */ lwc1 $f4,0x0($s1) +/* f11f334: 8fa3003c */ lw $v1,0x3c($sp) +/* f11f338: 46024282 */ mul.s $f10,$f8,$f2 +/* f11f33c: 24020001 */ addiu $v0,$zero,0x1 +/* f11f340: 46045180 */ add.s $f6,$f10,$f4 +/* f11f344: 46101282 */ mul.s $f10,$f2,$f16 +/* f11f348: e4660000 */ swc1 $f6,0x0($v1) +/* f11f34c: c6280004 */ lwc1 $f8,0x4($s1) +/* f11f350: 460a4100 */ add.s $f4,$f8,$f10 +/* f11f354: e4640004 */ swc1 $f4,0x4($v1) +/* f11f358: c6060008 */ lwc1 $f6,0x8($s0) +/* f11f35c: c62a0008 */ lwc1 $f10,0x8($s1) +/* f11f360: 46023202 */ mul.s $f8,$f6,$f2 +/* f11f364: 460a4100 */ add.s $f4,$f8,$f10 +/* f11f368: 10000001 */ b .L0f11f370 +/* f11f36c: e4640008 */ swc1 $f4,0x8($v1) +.L0f11f370: +/* f11f370: 8fbf001c */ lw $ra,0x1c($sp) +/* f11f374: 8fb00014 */ lw $s0,0x14($sp) +/* f11f378: 8fb10018 */ lw $s1,0x18($sp) +/* f11f37c: 03e00008 */ jr $ra +/* f11f380: 27bd0038 */ addiu $sp,$sp,0x38 +); + +/** + * Scale base based on the height percentage between base and ref... + * except the new y is zero. + */ +void sky0f11f384(struct coord *base, struct coord *ref, struct coord *out) +{ + f32 mult = base->y / (base->y - ref->y); + + out->x = (ref->x - base->x) * mult + base->x; + out->y = 0; + out->z = (ref->z - base->z) * mult + base->z; +} + +/** + * A clamp function. + */ +f32 sky0f11f3d0(f32 value, f32 min, f32 max) +{ + if (value < min) { + return min; + } + + if (value > max) { + return max; + } + + return value; +} + +/** + * A round function. + */ +f32 sky0f11f410(f32 value) +{ + return (s32)(value + 0.5f); +} + +GLOBAL_ASM( +glabel sky0f11f438 +.late_rodata +glabel var7f1b4ff8 +.word 0x3b808081 +.text +/* f11f438: 27bdffe8 */ addiu $sp,$sp,-24 +/* f11f43c: afbf0014 */ sw $ra,0x14($sp) +/* f11f440: afa5001c */ sw $a1,0x1c($sp) +/* f11f444: 0fc595f3 */ jal envGetCurrent +/* f11f448: afa40018 */ sw $a0,0x18($sp) +/* f11f44c: 904e0008 */ lbu $t6,0x8($v0) +/* f11f450: 3c013f80 */ lui $at,0x3f80 +/* f11f454: 44818000 */ mtc1 $at,$f16 +/* f11f458: 448e2000 */ mtc1 $t6,$f4 +/* f11f45c: 3c017f1b */ lui $at,%hi(var7f1b4ff8) +/* f11f460: c4324ff8 */ lwc1 $f18,%lo(var7f1b4ff8)($at) +/* f11f464: 8fa40018 */ lw $a0,0x18($sp) +/* f11f468: 05c10005 */ bgez $t6,.L0f11f480 +/* f11f46c: 468020a0 */ cvt.s.w $f2,$f4 +/* f11f470: 3c014f80 */ lui $at,0x4f80 +/* f11f474: 44813000 */ mtc1 $at,$f6 +/* f11f478: 00000000 */ nop +/* f11f47c: 46061080 */ add.s $f2,$f2,$f6 +.L0f11f480: +/* f11f480: 904f0009 */ lbu $t7,0x9($v0) +/* f11f484: 3c014f80 */ lui $at,0x4f80 +/* f11f488: 3c0d800a */ lui $t5,%hi(var800a33a4) +/* f11f48c: 448f4000 */ mtc1 $t7,$f8 +/* f11f490: 05e10004 */ bgez $t7,.L0f11f4a4 +/* f11f494: 46804320 */ cvt.s.w $f12,$f8 +/* f11f498: 44815000 */ mtc1 $at,$f10 +/* f11f49c: 00000000 */ nop +/* f11f4a0: 460a6300 */ add.s $f12,$f12,$f10 +.L0f11f4a4: +/* f11f4a4: 9058000a */ lbu $t8,0xa($v0) +/* f11f4a8: 3c014f80 */ lui $at,0x4f80 +/* f11f4ac: c7a8001c */ lwc1 $f8,0x1c($sp) +/* f11f4b0: 44982000 */ mtc1 $t8,$f4 +/* f11f4b4: 240f00ff */ addiu $t7,$zero,0xff +/* f11f4b8: 468023a0 */ cvt.s.w $f14,$f4 +/* f11f4bc: 46121102 */ mul.s $f4,$f2,$f18 +/* f11f4c0: 07030005 */ bgezl $t8,.L0f11f4d8 +/* f11f4c4: 46048181 */ sub.s $f6,$f16,$f4 +/* f11f4c8: 44813000 */ mtc1 $at,$f6 +/* f11f4cc: 00000000 */ nop +/* f11f4d0: 46067380 */ add.s $f14,$f14,$f6 +/* f11f4d4: 46048181 */ sub.s $f6,$f16,$f4 +.L0f11f4d8: +/* f11f4d8: c44a001c */ lwc1 $f10,0x1c($v0) +/* f11f4dc: 24080001 */ addiu $t0,$zero,0x1 +/* f11f4e0: 46088001 */ sub.s $f0,$f16,$f8 +/* f11f4e4: 46065202 */ mul.s $f8,$f10,$f6 +/* f11f4e8: 3c014f00 */ lui $at,0x4f00 +/* f11f4ec: 46004102 */ mul.s $f4,$f8,$f0 +/* f11f4f0: 46022280 */ add.s $f10,$f4,$f2 +/* f11f4f4: 4459f800 */ cfc1 $t9,$31 +/* f11f4f8: 44c8f800 */ ctc1 $t0,$31 +/* f11f4fc: 00000000 */ nop +/* f11f500: 460051a4 */ cvt.w.s $f6,$f10 +/* f11f504: 4448f800 */ cfc1 $t0,$31 +/* f11f508: 00000000 */ nop +/* f11f50c: 31080078 */ andi $t0,$t0,0x78 +/* f11f510: 51000013 */ beqzl $t0,.L0f11f560 +/* f11f514: 44083000 */ mfc1 $t0,$f6 +/* f11f518: 44813000 */ mtc1 $at,$f6 +/* f11f51c: 24080001 */ addiu $t0,$zero,0x1 +/* f11f520: 46065181 */ sub.s $f6,$f10,$f6 +/* f11f524: 44c8f800 */ ctc1 $t0,$31 +/* f11f528: 00000000 */ nop +/* f11f52c: 460031a4 */ cvt.w.s $f6,$f6 +/* f11f530: 4448f800 */ cfc1 $t0,$31 +/* f11f534: 00000000 */ nop +/* f11f538: 31080078 */ andi $t0,$t0,0x78 +/* f11f53c: 15000005 */ bnez $t0,.L0f11f554 +/* f11f540: 00000000 */ nop +/* f11f544: 44083000 */ mfc1 $t0,$f6 +/* f11f548: 3c018000 */ lui $at,0x8000 +/* f11f54c: 10000007 */ b .L0f11f56c +/* f11f550: 01014025 */ or $t0,$t0,$at +.L0f11f554: +/* f11f554: 10000005 */ b .L0f11f56c +/* f11f558: 2408ffff */ addiu $t0,$zero,-1 +/* f11f55c: 44083000 */ mfc1 $t0,$f6 +.L0f11f560: +/* f11f560: 00000000 */ nop +/* f11f564: 0500fffb */ bltz $t0,.L0f11f554 +/* f11f568: 00000000 */ nop +.L0f11f56c: +/* f11f56c: 44d9f800 */ ctc1 $t9,$31 +/* f11f570: a0880014 */ sb $t0,0x14($a0) +/* f11f574: c4480020 */ lwc1 $f8,0x20($v0) +/* f11f578: 46126102 */ mul.s $f4,$f12,$f18 +/* f11f57c: 240a0001 */ addiu $t2,$zero,0x1 +/* f11f580: 3c014f00 */ lui $at,0x4f00 +/* f11f584: 46048281 */ sub.s $f10,$f16,$f4 +/* f11f588: 460a4182 */ mul.s $f6,$f8,$f10 +/* f11f58c: 00000000 */ nop +/* f11f590: 46003102 */ mul.s $f4,$f6,$f0 +/* f11f594: 460c2200 */ add.s $f8,$f4,$f12 +/* f11f598: 4449f800 */ cfc1 $t1,$31 +/* f11f59c: 44caf800 */ ctc1 $t2,$31 +/* f11f5a0: 00000000 */ nop +/* f11f5a4: 460042a4 */ cvt.w.s $f10,$f8 +/* f11f5a8: 444af800 */ cfc1 $t2,$31 +/* f11f5ac: 00000000 */ nop +/* f11f5b0: 314a0078 */ andi $t2,$t2,0x78 +/* f11f5b4: 11400012 */ beqz $t2,.L0f11f600 +/* f11f5b8: 00000000 */ nop +/* f11f5bc: 44815000 */ mtc1 $at,$f10 +/* f11f5c0: 240a0001 */ addiu $t2,$zero,0x1 +/* f11f5c4: 460a4281 */ sub.s $f10,$f8,$f10 +/* f11f5c8: 44caf800 */ ctc1 $t2,$31 +/* f11f5cc: 00000000 */ nop +/* f11f5d0: 460052a4 */ cvt.w.s $f10,$f10 +/* f11f5d4: 444af800 */ cfc1 $t2,$31 +/* f11f5d8: 00000000 */ nop +/* f11f5dc: 314a0078 */ andi $t2,$t2,0x78 +/* f11f5e0: 15400005 */ bnez $t2,.L0f11f5f8 +/* f11f5e4: 00000000 */ nop +/* f11f5e8: 440a5000 */ mfc1 $t2,$f10 +/* f11f5ec: 3c018000 */ lui $at,0x8000 +/* f11f5f0: 10000007 */ b .L0f11f610 +/* f11f5f4: 01415025 */ or $t2,$t2,$at +.L0f11f5f8: +/* f11f5f8: 10000005 */ b .L0f11f610 +/* f11f5fc: 240affff */ addiu $t2,$zero,-1 +.L0f11f600: +/* f11f600: 440a5000 */ mfc1 $t2,$f10 +/* f11f604: 00000000 */ nop +/* f11f608: 0540fffb */ bltz $t2,.L0f11f5f8 +/* f11f60c: 00000000 */ nop +.L0f11f610: +/* f11f610: 44c9f800 */ ctc1 $t1,$31 +/* f11f614: a08a0015 */ sb $t2,0x15($a0) +/* f11f618: c4460024 */ lwc1 $f6,0x24($v0) +/* f11f61c: 46127102 */ mul.s $f4,$f14,$f18 +/* f11f620: 240c0001 */ addiu $t4,$zero,0x1 +/* f11f624: 3c014f00 */ lui $at,0x4f00 +/* f11f628: 240200ff */ addiu $v0,$zero,0xff +/* f11f62c: 46048201 */ sub.s $f8,$f16,$f4 +/* f11f630: 46083282 */ mul.s $f10,$f6,$f8 +/* f11f634: 00000000 */ nop +/* f11f638: 46005102 */ mul.s $f4,$f10,$f0 +/* f11f63c: 460e2180 */ add.s $f6,$f4,$f14 +/* f11f640: 444bf800 */ cfc1 $t3,$31 +/* f11f644: 44ccf800 */ ctc1 $t4,$31 +/* f11f648: 00000000 */ nop +/* f11f64c: 46003224 */ cvt.w.s $f8,$f6 +/* f11f650: 444cf800 */ cfc1 $t4,$31 +/* f11f654: 00000000 */ nop +/* f11f658: 318c0078 */ andi $t4,$t4,0x78 +/* f11f65c: 11800012 */ beqz $t4,.L0f11f6a8 +/* f11f660: 00000000 */ nop +/* f11f664: 44814000 */ mtc1 $at,$f8 +/* f11f668: 240c0001 */ addiu $t4,$zero,0x1 +/* f11f66c: 46083201 */ sub.s $f8,$f6,$f8 +/* f11f670: 44ccf800 */ ctc1 $t4,$31 +/* f11f674: 00000000 */ nop +/* f11f678: 46004224 */ cvt.w.s $f8,$f8 +/* f11f67c: 444cf800 */ cfc1 $t4,$31 +/* f11f680: 00000000 */ nop +/* f11f684: 318c0078 */ andi $t4,$t4,0x78 +/* f11f688: 15800005 */ bnez $t4,.L0f11f6a0 +/* f11f68c: 00000000 */ nop +/* f11f690: 440c4000 */ mfc1 $t4,$f8 +/* f11f694: 3c018000 */ lui $at,0x8000 +/* f11f698: 10000007 */ b .L0f11f6b8 +/* f11f69c: 01816025 */ or $t4,$t4,$at +.L0f11f6a0: +/* f11f6a0: 10000005 */ b .L0f11f6b8 +/* f11f6a4: 240cffff */ addiu $t4,$zero,-1 +.L0f11f6a8: +/* f11f6a8: 440c4000 */ mfc1 $t4,$f8 +/* f11f6ac: 00000000 */ nop +/* f11f6b0: 0580fffb */ bltz $t4,.L0f11f6a0 +/* f11f6b4: 00000000 */ nop +.L0f11f6b8: +/* f11f6b8: a08c0016 */ sb $t4,0x16($a0) +/* f11f6bc: 8dad33a4 */ lw $t5,%lo(var800a33a4)($t5) +/* f11f6c0: 44cbf800 */ ctc1 $t3,$31 +/* f11f6c4: 51a00005 */ beqzl $t5,.L0f11f6dc +/* f11f6c8: a08f0017 */ sb $t7,0x17($a0) +/* f11f6cc: a0820016 */ sb $v0,0x16($a0) +/* f11f6d0: a0820015 */ sb $v0,0x15($a0) +/* f11f6d4: a0820014 */ sb $v0,0x14($a0) +/* f11f6d8: a08f0017 */ sb $t7,0x17($a0) +.L0f11f6dc: +/* f11f6dc: 8fbf0014 */ lw $ra,0x14($sp) +/* f11f6e0: 27bd0018 */ addiu $sp,$sp,0x18 +/* f11f6e4: 03e00008 */ jr $ra +/* f11f6e8: 00000000 */ nop +); + +GLOBAL_ASM( +glabel sky0f11f6ec +.late_rodata +glabel var7f1b4ffc +.word 0x3b808081 +.text +/* f11f6ec: 27bdffe8 */ addiu $sp,$sp,-24 +/* f11f6f0: afbf0014 */ sw $ra,0x14($sp) +/* f11f6f4: afa5001c */ sw $a1,0x1c($sp) +/* f11f6f8: 0fc595f3 */ jal envGetCurrent +/* f11f6fc: afa40018 */ sw $a0,0x18($sp) +/* f11f700: 904e0008 */ lbu $t6,0x8($v0) +/* f11f704: 3c013f80 */ lui $at,0x3f80 +/* f11f708: 44818000 */ mtc1 $at,$f16 +/* f11f70c: 448e2000 */ mtc1 $t6,$f4 +/* f11f710: 3c017f1b */ lui $at,%hi(var7f1b4ffc) +/* f11f714: c4324ffc */ lwc1 $f18,%lo(var7f1b4ffc)($at) +/* f11f718: 8fa40018 */ lw $a0,0x18($sp) +/* f11f71c: 05c10005 */ bgez $t6,.L0f11f734 +/* f11f720: 468020a0 */ cvt.s.w $f2,$f4 +/* f11f724: 3c014f80 */ lui $at,0x4f80 +/* f11f728: 44813000 */ mtc1 $at,$f6 +/* f11f72c: 00000000 */ nop +/* f11f730: 46061080 */ add.s $f2,$f2,$f6 +.L0f11f734: +/* f11f734: 904f0009 */ lbu $t7,0x9($v0) +/* f11f738: 3c014f80 */ lui $at,0x4f80 +/* f11f73c: 240d00ff */ addiu $t5,$zero,0xff +/* f11f740: 448f4000 */ mtc1 $t7,$f8 +/* f11f744: 05e10004 */ bgez $t7,.L0f11f758 +/* f11f748: 46804320 */ cvt.s.w $f12,$f8 +/* f11f74c: 44815000 */ mtc1 $at,$f10 +/* f11f750: 00000000 */ nop +/* f11f754: 460a6300 */ add.s $f12,$f12,$f10 +.L0f11f758: +/* f11f758: 9058000a */ lbu $t8,0xa($v0) +/* f11f75c: 3c014f80 */ lui $at,0x4f80 +/* f11f760: c7a8001c */ lwc1 $f8,0x1c($sp) +/* f11f764: 44982000 */ mtc1 $t8,$f4 +/* f11f768: 00000000 */ nop +/* f11f76c: 468023a0 */ cvt.s.w $f14,$f4 +/* f11f770: 46121102 */ mul.s $f4,$f2,$f18 +/* f11f774: 07030005 */ bgezl $t8,.L0f11f78c +/* f11f778: 46048181 */ sub.s $f6,$f16,$f4 +/* f11f77c: 44813000 */ mtc1 $at,$f6 +/* f11f780: 00000000 */ nop +/* f11f784: 46067380 */ add.s $f14,$f14,$f6 +/* f11f788: 46048181 */ sub.s $f6,$f16,$f4 +.L0f11f78c: +/* f11f78c: c44a0034 */ lwc1 $f10,0x34($v0) +/* f11f790: 24080001 */ addiu $t0,$zero,0x1 +/* f11f794: 46088001 */ sub.s $f0,$f16,$f8 +/* f11f798: 46065202 */ mul.s $f8,$f10,$f6 +/* f11f79c: 3c014f00 */ lui $at,0x4f00 +/* f11f7a0: 46004102 */ mul.s $f4,$f8,$f0 +/* f11f7a4: 46022280 */ add.s $f10,$f4,$f2 +/* f11f7a8: 4459f800 */ cfc1 $t9,$31 +/* f11f7ac: 44c8f800 */ ctc1 $t0,$31 +/* f11f7b0: 00000000 */ nop +/* f11f7b4: 460051a4 */ cvt.w.s $f6,$f10 +/* f11f7b8: 4448f800 */ cfc1 $t0,$31 +/* f11f7bc: 00000000 */ nop +/* f11f7c0: 31080078 */ andi $t0,$t0,0x78 +/* f11f7c4: 51000013 */ beqzl $t0,.L0f11f814 +/* f11f7c8: 44083000 */ mfc1 $t0,$f6 +/* f11f7cc: 44813000 */ mtc1 $at,$f6 +/* f11f7d0: 24080001 */ addiu $t0,$zero,0x1 +/* f11f7d4: 46065181 */ sub.s $f6,$f10,$f6 +/* f11f7d8: 44c8f800 */ ctc1 $t0,$31 +/* f11f7dc: 00000000 */ nop +/* f11f7e0: 460031a4 */ cvt.w.s $f6,$f6 +/* f11f7e4: 4448f800 */ cfc1 $t0,$31 +/* f11f7e8: 00000000 */ nop +/* f11f7ec: 31080078 */ andi $t0,$t0,0x78 +/* f11f7f0: 15000005 */ bnez $t0,.L0f11f808 +/* f11f7f4: 00000000 */ nop +/* f11f7f8: 44083000 */ mfc1 $t0,$f6 +/* f11f7fc: 3c018000 */ lui $at,0x8000 +/* f11f800: 10000007 */ b .L0f11f820 +/* f11f804: 01014025 */ or $t0,$t0,$at +.L0f11f808: +/* f11f808: 10000005 */ b .L0f11f820 +/* f11f80c: 2408ffff */ addiu $t0,$zero,-1 +/* f11f810: 44083000 */ mfc1 $t0,$f6 +.L0f11f814: +/* f11f814: 00000000 */ nop +/* f11f818: 0500fffb */ bltz $t0,.L0f11f808 +/* f11f81c: 00000000 */ nop +.L0f11f820: +/* f11f820: 44d9f800 */ ctc1 $t9,$31 +/* f11f824: a0880014 */ sb $t0,0x14($a0) +/* f11f828: c4480038 */ lwc1 $f8,0x38($v0) +/* f11f82c: 46126102 */ mul.s $f4,$f12,$f18 +/* f11f830: 240a0001 */ addiu $t2,$zero,0x1 +/* f11f834: 3c014f00 */ lui $at,0x4f00 +/* f11f838: 46048281 */ sub.s $f10,$f16,$f4 +/* f11f83c: 460a4182 */ mul.s $f6,$f8,$f10 +/* f11f840: 00000000 */ nop +/* f11f844: 46003102 */ mul.s $f4,$f6,$f0 +/* f11f848: 460c2200 */ add.s $f8,$f4,$f12 +/* f11f84c: 4449f800 */ cfc1 $t1,$31 +/* f11f850: 44caf800 */ ctc1 $t2,$31 +/* f11f854: 00000000 */ nop +/* f11f858: 460042a4 */ cvt.w.s $f10,$f8 +/* f11f85c: 444af800 */ cfc1 $t2,$31 +/* f11f860: 00000000 */ nop +/* f11f864: 314a0078 */ andi $t2,$t2,0x78 +/* f11f868: 11400012 */ beqz $t2,.L0f11f8b4 +/* f11f86c: 00000000 */ nop +/* f11f870: 44815000 */ mtc1 $at,$f10 +/* f11f874: 240a0001 */ addiu $t2,$zero,0x1 +/* f11f878: 460a4281 */ sub.s $f10,$f8,$f10 +/* f11f87c: 44caf800 */ ctc1 $t2,$31 +/* f11f880: 00000000 */ nop +/* f11f884: 460052a4 */ cvt.w.s $f10,$f10 +/* f11f888: 444af800 */ cfc1 $t2,$31 +/* f11f88c: 00000000 */ nop +/* f11f890: 314a0078 */ andi $t2,$t2,0x78 +/* f11f894: 15400005 */ bnez $t2,.L0f11f8ac +/* f11f898: 00000000 */ nop +/* f11f89c: 440a5000 */ mfc1 $t2,$f10 +/* f11f8a0: 3c018000 */ lui $at,0x8000 +/* f11f8a4: 10000007 */ b .L0f11f8c4 +/* f11f8a8: 01415025 */ or $t2,$t2,$at +.L0f11f8ac: +/* f11f8ac: 10000005 */ b .L0f11f8c4 +/* f11f8b0: 240affff */ addiu $t2,$zero,-1 +.L0f11f8b4: +/* f11f8b4: 440a5000 */ mfc1 $t2,$f10 +/* f11f8b8: 00000000 */ nop +/* f11f8bc: 0540fffb */ bltz $t2,.L0f11f8ac +/* f11f8c0: 00000000 */ nop +.L0f11f8c4: +/* f11f8c4: 44c9f800 */ ctc1 $t1,$31 +/* f11f8c8: a08a0015 */ sb $t2,0x15($a0) +/* f11f8cc: c446003c */ lwc1 $f6,0x3c($v0) +/* f11f8d0: 46127102 */ mul.s $f4,$f14,$f18 +/* f11f8d4: 240c0001 */ addiu $t4,$zero,0x1 +/* f11f8d8: 3c014f00 */ lui $at,0x4f00 +/* f11f8dc: 46048201 */ sub.s $f8,$f16,$f4 +/* f11f8e0: 46083282 */ mul.s $f10,$f6,$f8 +/* f11f8e4: 00000000 */ nop +/* f11f8e8: 46005102 */ mul.s $f4,$f10,$f0 +/* f11f8ec: 460e2180 */ add.s $f6,$f4,$f14 +/* f11f8f0: 444bf800 */ cfc1 $t3,$31 +/* f11f8f4: 44ccf800 */ ctc1 $t4,$31 +/* f11f8f8: 00000000 */ nop +/* f11f8fc: 46003224 */ cvt.w.s $f8,$f6 +/* f11f900: 444cf800 */ cfc1 $t4,$31 +/* f11f904: 00000000 */ nop +/* f11f908: 318c0078 */ andi $t4,$t4,0x78 +/* f11f90c: 11800012 */ beqz $t4,.L0f11f958 +/* f11f910: 00000000 */ nop +/* f11f914: 44814000 */ mtc1 $at,$f8 +/* f11f918: 240c0001 */ addiu $t4,$zero,0x1 +/* f11f91c: 46083201 */ sub.s $f8,$f6,$f8 +/* f11f920: 44ccf800 */ ctc1 $t4,$31 +/* f11f924: 00000000 */ nop +/* f11f928: 46004224 */ cvt.w.s $f8,$f8 +/* f11f92c: 444cf800 */ cfc1 $t4,$31 +/* f11f930: 00000000 */ nop +/* f11f934: 318c0078 */ andi $t4,$t4,0x78 +/* f11f938: 15800005 */ bnez $t4,.L0f11f950 +/* f11f93c: 00000000 */ nop +/* f11f940: 440c4000 */ mfc1 $t4,$f8 +/* f11f944: 3c018000 */ lui $at,0x8000 +/* f11f948: 10000007 */ b .L0f11f968 +/* f11f94c: 01816025 */ or $t4,$t4,$at +.L0f11f950: +/* f11f950: 10000005 */ b .L0f11f968 +/* f11f954: 240cffff */ addiu $t4,$zero,-1 +.L0f11f958: +/* f11f958: 440c4000 */ mfc1 $t4,$f8 +/* f11f95c: 00000000 */ nop +/* f11f960: 0580fffb */ bltz $t4,.L0f11f950 +/* f11f964: 00000000 */ nop +.L0f11f968: +/* f11f968: a08c0016 */ sb $t4,0x16($a0) +/* f11f96c: a08d0017 */ sb $t5,0x17($a0) +/* f11f970: 8fbf0014 */ lw $ra,0x14($sp) +/* f11f974: 44cbf800 */ ctc1 $t3,$31 +/* f11f978: 27bd0018 */ addiu $sp,$sp,0x18 +/* f11f97c: 03e00008 */ jr $ra +/* f11f980: 00000000 */ nop +); + +GLOBAL_ASM( +glabel skyRender +.late_rodata +glabel var7f1b5000 +.word 0x3dcccccd +glabel var7f1b5004 +.word skyRender+0x6a0 # f120024 +glabel var7f1b5008 +.word skyRender+0xf24 # f1208a8 +glabel var7f1b500c +.word skyRender+0x1074 # f1209f8 +glabel var7f1b5010 +.word skyRender+0x7ac # f120130 +glabel var7f1b5014 +.word skyRender+0x11c4 # f120b48 +glabel var7f1b5018 +.word skyRender+0xad8 # f12045c +glabel var7f1b501c +.word skyRender+0x1464 # f120de8 +glabel var7f1b5020 +.word skyRender+0xe54 # f1207d8 +glabel var7f1b5024 +.word skyRender+0x1314 # f120c98 +glabel var7f1b5028 +.word skyRender+0x1464 # f120de8 +glabel var7f1b502c +.word skyRender+0x9cc # f120350 +glabel var7f1b5030 +.word skyRender+0xd84 # f120708 +glabel var7f1b5034 +.word skyRender+0x8b8 # f12023c +glabel var7f1b5038 +.word skyRender+0xcb4 # f120638 +glabel var7f1b503c +.word skyRender+0xbe4 # f120568 +glabel var7f1b5040 +.word skyRender+0x690 # f120014 +glabel var7f1b5044 +.word 0x3d088889 +glabel var7f1b5048 +.word 0x3d088889 +glabel var7f1b504c +.word 0x3d088889 +glabel var7f1b5050 +.word 0x3d088889 +glabel var7f1b5054 +.word 0x3d088889 +glabel var7f1b5058 +.word 0x3d088889 +glabel var7f1b505c +.word 0x3d088889 +glabel var7f1b5060 +.word 0x3d088889 +glabel var7f1b5064 +.word 0x3d088889 +glabel var7f1b5068 +.word 0x3d088889 +glabel var7f1b506c +.word 0x3d088889 +glabel var7f1b5070 +.word 0x3d088889 +glabel var7f1b5074 +.word 0x3d088889 +glabel var7f1b5078 +.word 0x3d088889 +glabel var7f1b507c +.word 0x477fff00 +glabel var7f1b5080 +.word 0x449fe000 +glabel var7f1b5084 +.word 0x446fc000 +glabel var7f1b5088 +.word skyRender+0x19e8 # f12136c +glabel var7f1b508c +.word skyRender+0x2010 # f121994 +glabel var7f1b5090 +.word skyRender+0x2100 # f121a84 +glabel var7f1b5094 +.word skyRender+0x1c68 # f1215ec +glabel var7f1b5098 +.word skyRender+0x21f0 # f121b74 +glabel var7f1b509c +.word skyRender+0x1da0 # f121724 +glabel var7f1b50a0 +.word skyRender+0x29f4 # f122378 +glabel var7f1b50a4 +.word skyRender+0x286c # f1221f0 +glabel var7f1b50a8 +.word skyRender+0x22e0 # f121c64 +glabel var7f1b50ac +.word skyRender+0x29f4 # f122378 +glabel var7f1b50b0 +.word skyRender+0x1ed8 # f12185c +glabel var7f1b50b4 +.word skyRender+0x26e4 # f122068 +glabel var7f1b50b8 +.word skyRender+0x1b2c # f1214b0 +glabel var7f1b50bc +.word skyRender+0x2558 # f121edc +glabel var7f1b50c0 +.word skyRender+0x23d0 # f121d54 +glabel var7f1b50c4 +.word skyRender+0x19f0 # f121374 +glabel var7f1b50c8 +.word 0x477fff00 +.text +/* f11f984: 27bdf950 */ addiu $sp,$sp,-1712 +/* f11f988: afbf0054 */ sw $ra,0x54($sp) +/* f11f98c: afb10050 */ sw $s1,0x50($sp) +/* f11f990: afb0004c */ sw $s0,0x4c($sp) +/* f11f994: f7bc0040 */ sdc1 $f28,0x40($sp) +/* f11f998: f7ba0038 */ sdc1 $f26,0x38($sp) +/* f11f99c: f7b80030 */ sdc1 $f24,0x30($sp) +/* f11f9a0: f7b60028 */ sdc1 $f22,0x28($sp) +/* f11f9a4: f7b40020 */ sdc1 $f20,0x20($sp) +/* f11f9a8: afa406b0 */ sw $a0,0x6b0($sp) +/* f11f9ac: 0fc595f3 */ jal envGetCurrent +/* f11f9b0: afa00430 */ sw $zero,0x430($sp) +/* f11f9b4: 904e0010 */ lbu $t6,0x10($v0) +/* f11f9b8: 3c11800a */ lui $s1,%hi(g_Vars) +/* f11f9bc: 00404025 */ or $t0,$v0,$zero +/* f11f9c0: 11c00005 */ beqz $t6,.L0f11f9d8 +/* f11f9c4: 26319fc0 */ addiu $s1,$s1,%lo(g_Vars) +/* f11f9c8: 8e2f0284 */ lw $t7,0x284($s1) +/* f11f9cc: 24050001 */ addiu $a1,$zero,0x1 +/* f11f9d0: 95f80010 */ lhu $t8,0x10($t7) +/* f11f9d4: 14b800ae */ bne $a1,$t8,.L0f11fc90 +.L0f11f9d8: +/* f11f9d8: 3c11800a */ lui $s1,%hi(g_Vars) +/* f11f9dc: 26319fc0 */ addiu $s1,$s1,%lo(g_Vars) +/* f11f9e0: 8e39006c */ lw $t9,0x6c($s1) +/* f11f9e4: 24050001 */ addiu $a1,$zero,0x1 +/* f11f9e8: 00002025 */ or $a0,$zero,$zero +/* f11f9ec: 13200003 */ beqz $t9,.L0f11f9fc +/* f11f9f0: 00001825 */ or $v1,$zero,$zero +/* f11f9f4: 10000001 */ b .L0f11f9fc +/* f11f9f8: 00a02025 */ or $a0,$a1,$zero +.L0f11f9fc: +/* f11f9fc: 8e290068 */ lw $t1,0x68($s1) +/* f11fa00: 00008025 */ or $s0,$zero,$zero +/* f11fa04: 00001025 */ or $v0,$zero,$zero +/* f11fa08: 11200003 */ beqz $t1,.L0f11fa18 +/* f11fa0c: 8fb806b0 */ lw $t8,0x6b0($sp) +/* f11fa10: 10000001 */ b .L0f11fa18 +/* f11fa14: 00a01825 */ or $v1,$a1,$zero +.L0f11fa18: +/* f11fa18: 8e2a0064 */ lw $t2,0x64($s1) +/* f11fa1c: 8faf06b0 */ lw $t7,0x6b0($sp) +/* f11fa20: 3c090030 */ lui $t1,0x30 +/* f11fa24: 11400003 */ beqz $t2,.L0f11fa34 +/* f11fa28: 27190008 */ addiu $t9,$t8,0x8 +/* f11fa2c: 10000001 */ b .L0f11fa34 +/* f11fa30: 00a08025 */ or $s0,$a1,$zero +.L0f11fa34: +/* f11fa34: 8e2b0070 */ lw $t3,0x70($s1) +/* f11fa38: 11600003 */ beqz $t3,.L0f11fa48 +/* f11fa3c: 00000000 */ nop +/* f11fa40: 10000001 */ b .L0f11fa48 +/* f11fa44: 00a01025 */ or $v0,$a1,$zero +.L0f11fa48: +/* f11fa48: 00506021 */ addu $t4,$v0,$s0 +/* f11fa4c: 01836821 */ addu $t5,$t4,$v1 +/* f11fa50: 01a47021 */ addu $t6,$t5,$a0 +/* f11fa54: 14ae0046 */ bne $a1,$t6,.L0f11fb70 +/* f11fa58: 3c0be700 */ lui $t3,0xe700 +/* f11fa5c: 25f80008 */ addiu $t8,$t7,0x8 +/* f11fa60: afb806b0 */ sw $t8,0x6b0($sp) +/* f11fa64: 3c19ba00 */ lui $t9,0xba00 +/* f11fa68: 37391402 */ ori $t9,$t9,0x1402 +/* f11fa6c: adf90000 */ sw $t9,0x0($t7) +/* f11fa70: ade90004 */ sw $t1,0x4($t7) +/* f11fa74: 8e2a0284 */ lw $t2,0x284($s1) +/* f11fa78: 00003025 */ or $a2,$zero,$zero +/* f11fa7c: 00003825 */ or $a3,$zero,$zero +/* f11fa80: 954b0010 */ lhu $t3,0x10($t2) +/* f11fa84: 8fa406b0 */ lw $a0,0x6b0($sp) +/* f11fa88: 54ab0007 */ bnel $a1,$t3,.L0f11faa8 +/* f11fa8c: 91050008 */ lbu $a1,0x8($t0) +/* f11fa90: 8fa406b0 */ lw $a0,0x6b0($sp) +/* f11fa94: 0c002fc1 */ jal viSetFillColour +/* f11fa98: 00002825 */ or $a1,$zero,$zero +/* f11fa9c: 10000007 */ b .L0f11fabc +/* f11faa0: 00401825 */ or $v1,$v0,$zero +/* f11faa4: 91050008 */ lbu $a1,0x8($t0) +.L0f11faa8: +/* f11faa8: 91060009 */ lbu $a2,0x9($t0) +/* f11faac: 0c002fc1 */ jal viSetFillColour +/* f11fab0: 9107000a */ lbu $a3,0xa($t0) +/* f11fab4: afa206b0 */ sw $v0,0x6b0($sp) +/* f11fab8: 00401825 */ or $v1,$v0,$zero +.L0f11fabc: +/* f11fabc: 00608825 */ or $s1,$v1,$zero +/* f11fac0: 24630008 */ addiu $v1,$v1,0x8 +/* f11fac4: 0c002f22 */ jal viGetViewWidth +/* f11fac8: afa306b0 */ sw $v1,0x6b0($sp) +/* f11facc: 0c002f40 */ jal viGetViewLeft +/* f11fad0: a7a2007a */ sh $v0,0x7a($sp) +/* f11fad4: 0c002f44 */ jal viGetViewTop +/* f11fad8: a7a2007c */ sh $v0,0x7c($sp) +/* f11fadc: 00028400 */ sll $s0,$v0,0x10 +/* f11fae0: 00106403 */ sra $t4,$s0,0x10 +/* f11fae4: 0c002f26 */ jal viGetViewHeight +/* f11fae8: 01808025 */ or $s0,$t4,$zero +/* f11faec: 87ad007c */ lh $t5,0x7c($sp) +/* f11faf0: 87ae007a */ lh $t6,0x7a($sp) +/* f11faf4: 00505021 */ addu $t2,$v0,$s0 +/* f11faf8: 254bffff */ addiu $t3,$t2,-1 +/* f11fafc: 01ae7821 */ addu $t7,$t5,$t6 +/* f11fb00: 25f8ffff */ addiu $t8,$t7,-1 +/* f11fb04: 316c03ff */ andi $t4,$t3,0x3ff +/* f11fb08: 000c6880 */ sll $t5,$t4,0x2 +/* f11fb0c: 331903ff */ andi $t9,$t8,0x3ff +/* f11fb10: 3c01f600 */ lui $at,0xf600 +/* f11fb14: 01a17025 */ or $t6,$t5,$at +/* f11fb18: 00194b80 */ sll $t1,$t9,0xe +/* f11fb1c: 01c97825 */ or $t7,$t6,$t1 +/* f11fb20: 0c002f40 */ jal viGetViewLeft +/* f11fb24: ae2f0000 */ sw $t7,0x0($s1) +/* f11fb28: 00028400 */ sll $s0,$v0,0x10 +/* f11fb2c: 0010c403 */ sra $t8,$s0,0x10 +/* f11fb30: 0c002f44 */ jal viGetViewTop +/* f11fb34: 03008025 */ or $s0,$t8,$zero +/* f11fb38: 305903ff */ andi $t9,$v0,0x3ff +/* f11fb3c: 320b03ff */ andi $t3,$s0,0x3ff +/* f11fb40: 000b6380 */ sll $t4,$t3,0xe +/* f11fb44: 00195080 */ sll $t2,$t9,0x2 +/* f11fb48: 014c6825 */ or $t5,$t2,$t4 +/* f11fb4c: ae2d0004 */ sw $t5,0x4($s1) +/* f11fb50: 8fae06b0 */ lw $t6,0x6b0($sp) +/* f11fb54: 3c0fe700 */ lui $t7,0xe700 +/* f11fb58: 25c90008 */ addiu $t1,$t6,0x8 +/* f11fb5c: afa906b0 */ sw $t1,0x6b0($sp) +/* f11fb60: adc00004 */ sw $zero,0x4($t6) +/* f11fb64: adcf0000 */ sw $t7,0x0($t6) +/* f11fb68: 10000b4f */ b .L0f1228a8 +/* f11fb6c: 8fa206b0 */ lw $v0,0x6b0($sp) +.L0f11fb70: +/* f11fb70: afb906b0 */ sw $t9,0x6b0($sp) +/* f11fb74: af000004 */ sw $zero,0x4($t8) +/* f11fb78: af0b0000 */ sw $t3,0x0($t8) +/* f11fb7c: 8faa06b0 */ lw $t2,0x6b0($sp) +/* f11fb80: 3c0dba00 */ lui $t5,0xba00 +/* f11fb84: 35ad1402 */ ori $t5,$t5,0x1402 +/* f11fb88: 254c0008 */ addiu $t4,$t2,0x8 +/* f11fb8c: afac06b0 */ sw $t4,0x6b0($sp) +/* f11fb90: 3c0e0030 */ lui $t6,0x30 +/* f11fb94: ad4e0004 */ sw $t6,0x4($t2) +/* f11fb98: ad4d0000 */ sw $t5,0x0($t2) +/* f11fb9c: 8e290284 */ lw $t1,0x284($s1) +/* f11fba0: 00003025 */ or $a2,$zero,$zero +/* f11fba4: 00003825 */ or $a3,$zero,$zero +/* f11fba8: 952f0010 */ lhu $t7,0x10($t1) +/* f11fbac: 8fa406b0 */ lw $a0,0x6b0($sp) +/* f11fbb0: 54af0007 */ bnel $a1,$t7,.L0f11fbd0 +/* f11fbb4: 91050008 */ lbu $a1,0x8($t0) +/* f11fbb8: 8fa406b0 */ lw $a0,0x6b0($sp) +/* f11fbbc: 0c002fc1 */ jal viSetFillColour +/* f11fbc0: 00002825 */ or $a1,$zero,$zero +/* f11fbc4: 10000006 */ b .L0f11fbe0 +/* f11fbc8: afa206b0 */ sw $v0,0x6b0($sp) +/* f11fbcc: 91050008 */ lbu $a1,0x8($t0) +.L0f11fbd0: +/* f11fbd0: 91060009 */ lbu $a2,0x9($t0) +/* f11fbd4: 0c002fc1 */ jal viSetFillColour +/* f11fbd8: 9107000a */ lbu $a3,0xa($t0) +/* f11fbdc: afa206b0 */ sw $v0,0x6b0($sp) +.L0f11fbe0: +/* f11fbe0: 8fb806b0 */ lw $t8,0x6b0($sp) +/* f11fbe4: 3c0bb900 */ lui $t3,0xb900 +/* f11fbe8: 356b031d */ ori $t3,$t3,0x31d +/* f11fbec: 27190008 */ addiu $t9,$t8,0x8 +/* f11fbf0: afb906b0 */ sw $t9,0x6b0($sp) +/* f11fbf4: af000004 */ sw $zero,0x4($t8) +/* f11fbf8: af0b0000 */ sw $t3,0x0($t8) +/* f11fbfc: 8fa506b0 */ lw $a1,0x6b0($sp) +/* f11fc00: 8e230284 */ lw $v1,0x284($s1) +/* f11fc04: 3c01f600 */ lui $at,0xf600 +/* f11fc08: 24ac0008 */ addiu $t4,$a1,0x8 +/* f11fc0c: afac06b0 */ sw $t4,0x6b0($sp) +/* f11fc10: 846d0634 */ lh $t5,0x634($v1) +/* f11fc14: 846e0630 */ lh $t6,0x630($v1) +/* f11fc18: 846a0636 */ lh $t2,0x636($v1) +/* f11fc1c: 846c0632 */ lh $t4,0x632($v1) +/* f11fc20: 01ae4821 */ addu $t1,$t5,$t6 +/* f11fc24: 252fffff */ addiu $t7,$t1,-1 +/* f11fc28: 014c6821 */ addu $t5,$t2,$t4 +/* f11fc2c: 25aeffff */ addiu $t6,$t5,-1 +/* f11fc30: 31f803ff */ andi $t8,$t7,0x3ff +/* f11fc34: 0018cb80 */ sll $t9,$t8,0xe +/* f11fc38: 31c903ff */ andi $t1,$t6,0x3ff +/* f11fc3c: 00097880 */ sll $t7,$t1,0x2 +/* f11fc40: 03215825 */ or $t3,$t9,$at +/* f11fc44: 016fc025 */ or $t8,$t3,$t7 +/* f11fc48: acb80000 */ sw $t8,0x0($a1) +/* f11fc4c: 8e230284 */ lw $v1,0x284($s1) +/* f11fc50: 84790634 */ lh $t9,0x634($v1) +/* f11fc54: 846d0636 */ lh $t5,0x636($v1) +/* f11fc58: 332a03ff */ andi $t2,$t9,0x3ff +/* f11fc5c: 31ae03ff */ andi $t6,$t5,0x3ff +/* f11fc60: 000e4880 */ sll $t1,$t6,0x2 +/* f11fc64: 000a6380 */ sll $t4,$t2,0xe +/* f11fc68: 01895825 */ or $t3,$t4,$t1 +/* f11fc6c: acab0004 */ sw $t3,0x4($a1) +/* f11fc70: 8faf06b0 */ lw $t7,0x6b0($sp) +/* f11fc74: 3c19e700 */ lui $t9,0xe700 +/* f11fc78: 25f80008 */ addiu $t8,$t7,0x8 +/* f11fc7c: afb806b0 */ sw $t8,0x6b0($sp) +/* f11fc80: ade00004 */ sw $zero,0x4($t7) +/* f11fc84: adf90000 */ sw $t9,0x0($t7) +/* f11fc88: 10000b07 */ b .L0f1228a8 +/* f11fc8c: 8fa206b0 */ lw $v0,0x6b0($sp) +.L0f11fc90: +/* f11fc90: 91050008 */ lbu $a1,0x8($t0) +/* f11fc94: 91060009 */ lbu $a2,0x9($t0) +/* f11fc98: 9107000a */ lbu $a3,0xa($t0) +/* f11fc9c: afa8042c */ sw $t0,0x42c($sp) +/* f11fca0: 0c002fc1 */ jal viSetFillColour +/* f11fca4: 8fa406b0 */ lw $a0,0x6b0($sp) +/* f11fca8: 44806000 */ mtc1 $zero,$f12 +/* f11fcac: 27b106a4 */ addiu $s1,$sp,0x6a4 +/* f11fcb0: afa206b0 */ sw $v0,0x6b0($sp) +/* f11fcb4: 02203025 */ or $a2,$s1,$zero +/* f11fcb8: 0fc47c00 */ jal sky0f11f000 +/* f11fcbc: 46006386 */ mov.s $f14,$f12 +/* f11fcc0: 0fc2d5f6 */ jal camGetScreenWidth +/* f11fcc4: 00000000 */ nop +/* f11fcc8: 3c017f1b */ lui $at,%hi(var7f1b5000) +/* f11fccc: c43c5000 */ lwc1 $f28,%lo(var7f1b5000)($at) +/* f11fcd0: 44807000 */ mtc1 $zero,$f14 +/* f11fcd4: 27a60698 */ addiu $a2,$sp,0x698 +/* f11fcd8: 0fc47c00 */ jal sky0f11f000 +/* f11fcdc: 461c0301 */ sub.s $f12,$f0,$f28 +/* f11fce0: 0fc2d5fa */ jal camGetScreenHeight +/* f11fce4: 00000000 */ nop +/* f11fce8: 44806000 */ mtc1 $zero,$f12 +/* f11fcec: 461c0381 */ sub.s $f14,$f0,$f28 +/* f11fcf0: 0fc47c00 */ jal sky0f11f000 +/* f11fcf4: 27a6068c */ addiu $a2,$sp,0x68c +/* f11fcf8: 0fc2d5f6 */ jal camGetScreenWidth +/* f11fcfc: 00000000 */ nop +/* f11fd00: 0fc2d5fa */ jal camGetScreenHeight +/* f11fd04: 46000586 */ mov.s $f22,$f0 +/* f11fd08: 461cb301 */ sub.s $f12,$f22,$f28 +/* f11fd0c: 27a60680 */ addiu $a2,$sp,0x680 +/* f11fd10: 0fc47c00 */ jal sky0f11f000 +/* f11fd14: 461c0381 */ sub.s $f14,$f0,$f28 +/* f11fd18: 02202025 */ or $a0,$s1,$zero +/* f11fd1c: 27a50644 */ addiu $a1,$sp,0x644 +/* f11fd20: 0fc47c1f */ jal sky0f11f07c +/* f11fd24: 27a6058c */ addiu $a2,$sp,0x58c +/* f11fd28: afa20538 */ sw $v0,0x538($sp) +/* f11fd2c: 27a40698 */ addiu $a0,$sp,0x698 +/* f11fd30: 27a50638 */ addiu $a1,$sp,0x638 +/* f11fd34: 0fc47c1f */ jal sky0f11f07c +/* f11fd38: 27a60588 */ addiu $a2,$sp,0x588 +/* f11fd3c: afa20534 */ sw $v0,0x534($sp) +/* f11fd40: 27a4068c */ addiu $a0,$sp,0x68c +/* f11fd44: 27a5062c */ addiu $a1,$sp,0x62c +/* f11fd48: 0fc47c1f */ jal sky0f11f07c +/* f11fd4c: 27a60584 */ addiu $a2,$sp,0x584 +/* f11fd50: afa20530 */ sw $v0,0x530($sp) +/* f11fd54: 27a40680 */ addiu $a0,$sp,0x680 +/* f11fd58: 27a50620 */ addiu $a1,$sp,0x620 +/* f11fd5c: 0fc47c1f */ jal sky0f11f07c +/* f11fd60: 27a60580 */ addiu $a2,$sp,0x580 +/* f11fd64: afa2052c */ sw $v0,0x52c($sp) +/* f11fd68: 02202025 */ or $a0,$s1,$zero +/* f11fd6c: 27a505e4 */ addiu $a1,$sp,0x5e4 +/* f11fd70: 0fc47c7f */ jal sky0f11f1fc +/* f11fd74: 27a6056c */ addiu $a2,$sp,0x56c +/* f11fd78: 27a40698 */ addiu $a0,$sp,0x698 +/* f11fd7c: 27a505d8 */ addiu $a1,$sp,0x5d8 +/* f11fd80: 0fc47c7f */ jal sky0f11f1fc +/* f11fd84: 27a60568 */ addiu $a2,$sp,0x568 +/* f11fd88: 27a4068c */ addiu $a0,$sp,0x68c +/* f11fd8c: 27a505cc */ addiu $a1,$sp,0x5cc +/* f11fd90: 0fc47c7f */ jal sky0f11f1fc +/* f11fd94: 27a60564 */ addiu $a2,$sp,0x564 +/* f11fd98: 27a40680 */ addiu $a0,$sp,0x680 +/* f11fd9c: 27a505c0 */ addiu $a1,$sp,0x5c0 +/* f11fda0: 0fc47c7f */ jal sky0f11f1fc +/* f11fda4: 27a60560 */ addiu $a2,$sp,0x560 +/* f11fda8: 8faa0538 */ lw $t2,0x538($sp) +/* f11fdac: 8fad0530 */ lw $t5,0x530($sp) +/* f11fdb0: 514d001f */ beql $t2,$t5,.L0f11fe30 +/* f11fdb4: 44805000 */ mtc1 $zero,$f10 +/* f11fdb8: 0fc2d602 */ jal camGetScreenTop +/* f11fdbc: 00000000 */ nop +/* f11fdc0: 0fc2d5fa */ jal camGetScreenHeight +/* f11fdc4: 46000586 */ mov.s $f22,$f0 +/* f11fdc8: c7a206a8 */ lwc1 $f2,0x6a8($sp) +/* f11fdcc: c7b00690 */ lwc1 $f16,0x690($sp) +/* f11fdd0: 27b0065c */ addiu $s0,$sp,0x65c +/* f11fdd4: 44806000 */ mtc1 $zero,$f12 +/* f11fdd8: 46101101 */ sub.s $f4,$f2,$f16 +/* f11fddc: 02003025 */ or $a2,$s0,$zero +/* f11fde0: 46041183 */ div.s $f6,$f2,$f4 +/* f11fde4: 46003202 */ mul.s $f8,$f6,$f0 +/* f11fde8: 46164380 */ add.s $f14,$f8,$f22 +/* f11fdec: 0fc47c00 */ jal sky0f11f000 +/* f11fdf0: e7ae054c */ swc1 $f14,0x54c($sp) +/* f11fdf4: 02202025 */ or $a0,$s1,$zero +/* f11fdf8: 27a5068c */ addiu $a1,$sp,0x68c +/* f11fdfc: 0fc47ce1 */ jal sky0f11f384 +/* f11fe00: 02003025 */ or $a2,$s0,$zero +/* f11fe04: 02002025 */ or $a0,$s0,$zero +/* f11fe08: 27a505fc */ addiu $a1,$sp,0x5fc +/* f11fe0c: 0fc47c1f */ jal sky0f11f07c +/* f11fe10: 27a60574 */ addiu $a2,$sp,0x574 +/* f11fe14: 02002025 */ or $a0,$s0,$zero +/* f11fe18: 27a5059c */ addiu $a1,$sp,0x59c +/* f11fe1c: 0fc47c7f */ jal sky0f11f1fc +/* f11fe20: 27a60554 */ addiu $a2,$sp,0x554 +/* f11fe24: 10000005 */ b .L0f11fe3c +/* f11fe28: 8fae0534 */ lw $t6,0x534($sp) +/* f11fe2c: 44805000 */ mtc1 $zero,$f10 +.L0f11fe30: +/* f11fe30: 00000000 */ nop +/* f11fe34: e7aa054c */ swc1 $f10,0x54c($sp) +/* f11fe38: 8fae0534 */ lw $t6,0x534($sp) +.L0f11fe3c: +/* f11fe3c: 8fac052c */ lw $t4,0x52c($sp) +/* f11fe40: 51cc0021 */ beql $t6,$t4,.L0f11fec8 +/* f11fe44: 44803000 */ mtc1 $zero,$f6 +/* f11fe48: 0fc2d602 */ jal camGetScreenTop +/* f11fe4c: 00000000 */ nop +/* f11fe50: 0fc2d5fa */ jal camGetScreenHeight +/* f11fe54: 46000586 */ mov.s $f22,$f0 +/* f11fe58: c7b0069c */ lwc1 $f16,0x69c($sp) +/* f11fe5c: c7a40684 */ lwc1 $f4,0x684($sp) +/* f11fe60: 46048181 */ sub.s $f6,$f16,$f4 +/* f11fe64: 46068203 */ div.s $f8,$f16,$f6 +/* f11fe68: 46004282 */ mul.s $f10,$f8,$f0 +/* f11fe6c: 46165100 */ add.s $f4,$f10,$f22 +/* f11fe70: 0fc2d5f6 */ jal camGetScreenWidth +/* f11fe74: e7a40548 */ swc1 $f4,0x548($sp) +/* f11fe78: 27b00650 */ addiu $s0,$sp,0x650 +/* f11fe7c: 02003025 */ or $a2,$s0,$zero +/* f11fe80: 461c0301 */ sub.s $f12,$f0,$f28 +/* f11fe84: 0fc47c00 */ jal sky0f11f000 +/* f11fe88: c7ae0548 */ lwc1 $f14,0x548($sp) +/* f11fe8c: 27a40698 */ addiu $a0,$sp,0x698 +/* f11fe90: 27a50680 */ addiu $a1,$sp,0x680 +/* f11fe94: 0fc47ce1 */ jal sky0f11f384 +/* f11fe98: 02003025 */ or $a2,$s0,$zero +/* f11fe9c: 02002025 */ or $a0,$s0,$zero +/* f11fea0: 27a505f0 */ addiu $a1,$sp,0x5f0 +/* f11fea4: 0fc47c1f */ jal sky0f11f07c +/* f11fea8: 27a60570 */ addiu $a2,$sp,0x570 +/* f11feac: 02002025 */ or $a0,$s0,$zero +/* f11feb0: 27a50590 */ addiu $a1,$sp,0x590 +/* f11feb4: 0fc47c7f */ jal sky0f11f1fc +/* f11feb8: 27a60550 */ addiu $a2,$sp,0x550 +/* f11febc: 10000005 */ b .L0f11fed4 +/* f11fec0: 8fa90538 */ lw $t1,0x538($sp) +/* f11fec4: 44803000 */ mtc1 $zero,$f6 +.L0f11fec8: +/* f11fec8: 00000000 */ nop +/* f11fecc: e7a60548 */ swc1 $f6,0x548($sp) +/* f11fed0: 8fa90538 */ lw $t1,0x538($sp) +.L0f11fed4: +/* f11fed4: 8fab0534 */ lw $t3,0x534($sp) +/* f11fed8: 512b001c */ beql $t1,$t3,.L0f11ff4c +/* f11fedc: 8faf0530 */ lw $t7,0x530($sp) +/* f11fee0: 0fc2d5fe */ jal camGetScreenLeft +/* f11fee4: 00000000 */ nop +/* f11fee8: 0fc2d5f6 */ jal camGetScreenWidth +/* f11feec: 46000586 */ mov.s $f22,$f0 +/* f11fef0: c7a206a8 */ lwc1 $f2,0x6a8($sp) +/* f11fef4: c7b0069c */ lwc1 $f16,0x69c($sp) +/* f11fef8: 27b00674 */ addiu $s0,$sp,0x674 +/* f11fefc: 44807000 */ mtc1 $zero,$f14 +/* f11ff00: 46101201 */ sub.s $f8,$f2,$f16 +/* f11ff04: 02003025 */ or $a2,$s0,$zero +/* f11ff08: 46081283 */ div.s $f10,$f2,$f8 +/* f11ff0c: 46005102 */ mul.s $f4,$f10,$f0 +/* f11ff10: 0fc47c00 */ jal sky0f11f000 +/* f11ff14: 46162300 */ add.s $f12,$f4,$f22 +/* f11ff18: 02202025 */ or $a0,$s1,$zero +/* f11ff1c: 27a50698 */ addiu $a1,$sp,0x698 +/* f11ff20: 0fc47ce1 */ jal sky0f11f384 +/* f11ff24: 02003025 */ or $a2,$s0,$zero +/* f11ff28: 02002025 */ or $a0,$s0,$zero +/* f11ff2c: 27a50614 */ addiu $a1,$sp,0x614 +/* f11ff30: 0fc47c1f */ jal sky0f11f07c +/* f11ff34: 27a6057c */ addiu $a2,$sp,0x57c +/* f11ff38: 02002025 */ or $a0,$s0,$zero +/* f11ff3c: 27a505b4 */ addiu $a1,$sp,0x5b4 +/* f11ff40: 0fc47c7f */ jal sky0f11f1fc +/* f11ff44: 27a6055c */ addiu $a2,$sp,0x55c +/* f11ff48: 8faf0530 */ lw $t7,0x530($sp) +.L0f11ff4c: +/* f11ff4c: 8fb8052c */ lw $t8,0x52c($sp) +/* f11ff50: 51f8001e */ beql $t7,$t8,.L0f11ffcc +/* f11ff54: 8fb90538 */ lw $t9,0x538($sp) +/* f11ff58: 0fc2d5fe */ jal camGetScreenLeft +/* f11ff5c: 00000000 */ nop +/* f11ff60: 0fc2d5f6 */ jal camGetScreenWidth +/* f11ff64: 46000586 */ mov.s $f22,$f0 +/* f11ff68: c7b00690 */ lwc1 $f16,0x690($sp) +/* f11ff6c: c7a60684 */ lwc1 $f6,0x684($sp) +/* f11ff70: 46068201 */ sub.s $f8,$f16,$f6 +/* f11ff74: 46088283 */ div.s $f10,$f16,$f8 +/* f11ff78: 46005102 */ mul.s $f4,$f10,$f0 +/* f11ff7c: 0fc2d5fa */ jal camGetScreenHeight +/* f11ff80: 46162500 */ add.s $f20,$f4,$f22 +/* f11ff84: 27b00668 */ addiu $s0,$sp,0x668 +/* f11ff88: 02003025 */ or $a2,$s0,$zero +/* f11ff8c: 4600a306 */ mov.s $f12,$f20 +/* f11ff90: 0fc47c00 */ jal sky0f11f000 +/* f11ff94: 461c0381 */ sub.s $f14,$f0,$f28 +/* f11ff98: 27a4068c */ addiu $a0,$sp,0x68c +/* f11ff9c: 27a50680 */ addiu $a1,$sp,0x680 +/* f11ffa0: 0fc47ce1 */ jal sky0f11f384 +/* f11ffa4: 02003025 */ or $a2,$s0,$zero +/* f11ffa8: 02002025 */ or $a0,$s0,$zero +/* f11ffac: 27a50608 */ addiu $a1,$sp,0x608 +/* f11ffb0: 0fc47c1f */ jal sky0f11f07c +/* f11ffb4: 27a60578 */ addiu $a2,$sp,0x578 +/* f11ffb8: 02002025 */ or $a0,$s0,$zero +/* f11ffbc: 27a505a8 */ addiu $a1,$sp,0x5a8 +/* f11ffc0: 0fc47c7f */ jal sky0f11f1fc +/* f11ffc4: 27a60558 */ addiu $a2,$sp,0x558 +/* f11ffc8: 8fb90538 */ lw $t9,0x538($sp) +.L0f11ffcc: +/* f11ffcc: 8fad0534 */ lw $t5,0x534($sp) +/* f11ffd0: 8fa90530 */ lw $t1,0x530($sp) +/* f11ffd4: 8fb8052c */ lw $t8,0x52c($sp) +/* f11ffd8: 001950c0 */ sll $t2,$t9,0x3 +/* f11ffdc: 000d7080 */ sll $t6,$t5,0x2 +/* f11ffe0: 014e6025 */ or $t4,$t2,$t6 +/* f11ffe4: 00095840 */ sll $t3,$t1,0x1 +/* f11ffe8: 018b7825 */ or $t7,$t4,$t3 +/* f11ffec: 01f8c825 */ or $t9,$t7,$t8 +/* f11fff0: 2f210010 */ sltiu $at,$t9,0x10 +/* f11fff4: 1020037c */ beqz $at,.L0f120de8 +/* f11fff8: afb90068 */ sw $t9,0x68($sp) +/* f11fffc: 00196880 */ sll $t5,$t9,0x2 +/* f120000: 3c017f1b */ lui $at,%hi(var7f1b5004) +/* f120004: 002d0821 */ addu $at,$at,$t5 +/* f120008: 8c2d5004 */ lw $t5,%lo(var7f1b5004)($at) +/* f12000c: 01a00008 */ jr $t5 +/* f120010: 00000000 */ nop +/* f120014: 3c017f1b */ lui $at,%hi(var7f1b5044) +/* f120018: 00008825 */ or $s1,$zero,$zero +/* f12001c: 10000374 */ b .L0f120df0 +/* f120020: c4385044 */ lwc1 $f24,%lo(var7f1b5044)($at) +/* f120024: 3c017f1b */ lui $at,%hi(var7f1b5048) +/* f120028: c4385048 */ lwc1 $f24,%lo(var7f1b5048)($at) +/* f12002c: c7a205e4 */ lwc1 $f2,0x5e4($sp) +/* f120030: c7a805e8 */ lwc1 $f8,0x5e8($sp) +/* f120034: c7ac05ec */ lwc1 $f12,0x5ec($sp) +/* f120038: 46181182 */ mul.s $f6,$f2,$f24 +/* f12003c: c7ae05d8 */ lwc1 $f14,0x5d8($sp) +/* f120040: c7b005e0 */ lwc1 $f16,0x5e0($sp) +/* f120044: 46184282 */ mul.s $f10,$f8,$f24 +/* f120048: c7a805dc */ lwc1 $f8,0x5dc($sp) +/* f12004c: c7b205cc */ lwc1 $f18,0x5cc($sp) +/* f120050: 46186102 */ mul.s $f4,$f12,$f24 +/* f120054: e7a6043c */ swc1 $f6,0x43c($sp) +/* f120058: c7b405d4 */ lwc1 $f20,0x5d4($sp) +/* f12005c: 46187182 */ mul.s $f6,$f14,$f24 +/* f120060: e7aa0440 */ swc1 $f10,0x440($sp) +/* f120064: c7b605c0 */ lwc1 $f22,0x5c0($sp) +/* f120068: 46184282 */ mul.s $f10,$f8,$f24 +/* f12006c: e7a40444 */ swc1 $f4,0x444($sp) +/* f120070: c7a805d0 */ lwc1 $f8,0x5d0($sp) +/* f120074: 46188102 */ mul.s $f4,$f16,$f24 +/* f120078: e7a60454 */ swc1 $f6,0x454($sp) +/* f12007c: c7ba05c8 */ lwc1 $f26,0x5c8($sp) +/* f120080: 46189182 */ mul.s $f6,$f18,$f24 +/* f120084: e7aa0458 */ swc1 $f10,0x458($sp) +/* f120088: 3c018008 */ lui $at,%hi(var8007db80) +/* f12008c: 46184282 */ mul.s $f10,$f8,$f24 +/* f120090: e7a4045c */ swc1 $f4,0x45c($sp) +/* f120094: c7a805c4 */ lwc1 $f8,0x5c4($sp) +/* f120098: 4618a102 */ mul.s $f4,$f20,$f24 +/* f12009c: e7a6046c */ swc1 $f6,0x46c($sp) +/* f1200a0: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f1200a4: 4618b182 */ mul.s $f6,$f22,$f24 +/* f1200a8: e7aa0470 */ swc1 $f10,0x470($sp) +/* f1200ac: 24110004 */ addiu $s1,$zero,0x4 +/* f1200b0: 46184282 */ mul.s $f10,$f8,$f24 +/* f1200b4: e7a40474 */ swc1 $f4,0x474($sp) +/* f1200b8: 46008200 */ add.s $f8,$f16,$f0 +/* f1200bc: 4618d102 */ mul.s $f4,$f26,$f24 +/* f1200c0: e7a60484 */ swc1 $f6,0x484($sp) +/* f1200c4: 46006180 */ add.s $f6,$f12,$f0 +/* f1200c8: e7a80464 */ swc1 $f8,0x464($sp) +/* f1200cc: e7aa0488 */ swc1 $f10,0x488($sp) +/* f1200d0: 4600a280 */ add.s $f10,$f20,$f0 +/* f1200d4: e7a6044c */ swc1 $f6,0x44c($sp) +/* f1200d8: e7a4048c */ swc1 $f4,0x48c($sp) +/* f1200dc: 4600d100 */ add.s $f4,$f26,$f0 +/* f1200e0: e7aa047c */ swc1 $f10,0x47c($sp) +/* f1200e4: 27a4043c */ addiu $a0,$sp,0x43c +/* f1200e8: 8fa5056c */ lw $a1,0x56c($sp) +/* f1200ec: e7a40494 */ swc1 $f4,0x494($sp) +/* f1200f0: e7a20448 */ swc1 $f2,0x448($sp) +/* f1200f4: e7ae0460 */ swc1 $f14,0x460($sp) +/* f1200f8: e7b20478 */ swc1 $f18,0x478($sp) +/* f1200fc: 0fc47dbb */ jal sky0f11f6ec +/* f120100: e7b60490 */ swc1 $f22,0x490($sp) +/* f120104: 27a40454 */ addiu $a0,$sp,0x454 +/* f120108: 0fc47dbb */ jal sky0f11f6ec +/* f12010c: 8fa50568 */ lw $a1,0x568($sp) +/* f120110: 27a4046c */ addiu $a0,$sp,0x46c +/* f120114: 0fc47dbb */ jal sky0f11f6ec +/* f120118: 8fa50564 */ lw $a1,0x564($sp) +/* f12011c: 27a40484 */ addiu $a0,$sp,0x484 +/* f120120: 0fc47dbb */ jal sky0f11f6ec +/* f120124: 8fa50560 */ lw $a1,0x560($sp) +/* f120128: 10000331 */ b .L0f120df0 +/* f12012c: 00000000 */ nop +/* f120130: 3c017f1b */ lui $at,%hi(var7f1b504c) +/* f120134: c438504c */ lwc1 $f24,%lo(var7f1b504c)($at) +/* f120138: c7a205e4 */ lwc1 $f2,0x5e4($sp) +/* f12013c: c7a805e8 */ lwc1 $f8,0x5e8($sp) +/* f120140: c7ac05ec */ lwc1 $f12,0x5ec($sp) +/* f120144: 46181182 */ mul.s $f6,$f2,$f24 +/* f120148: c7ae05d8 */ lwc1 $f14,0x5d8($sp) +/* f12014c: c7b005e0 */ lwc1 $f16,0x5e0($sp) +/* f120150: 46184282 */ mul.s $f10,$f8,$f24 +/* f120154: c7a805dc */ lwc1 $f8,0x5dc($sp) +/* f120158: c7b2059c */ lwc1 $f18,0x59c($sp) +/* f12015c: 46186102 */ mul.s $f4,$f12,$f24 +/* f120160: e7a6043c */ swc1 $f6,0x43c($sp) +/* f120164: c7b405a4 */ lwc1 $f20,0x5a4($sp) +/* f120168: 46187182 */ mul.s $f6,$f14,$f24 +/* f12016c: e7aa0440 */ swc1 $f10,0x440($sp) +/* f120170: c7b60590 */ lwc1 $f22,0x590($sp) +/* f120174: 46184282 */ mul.s $f10,$f8,$f24 +/* f120178: e7a40444 */ swc1 $f4,0x444($sp) +/* f12017c: c7a805a0 */ lwc1 $f8,0x5a0($sp) +/* f120180: 46188102 */ mul.s $f4,$f16,$f24 +/* f120184: e7a60454 */ swc1 $f6,0x454($sp) +/* f120188: c7ba0598 */ lwc1 $f26,0x598($sp) +/* f12018c: 46189182 */ mul.s $f6,$f18,$f24 +/* f120190: e7aa0458 */ swc1 $f10,0x458($sp) +/* f120194: 3c018008 */ lui $at,%hi(var8007db80) +/* f120198: 46184282 */ mul.s $f10,$f8,$f24 +/* f12019c: e7a4045c */ swc1 $f4,0x45c($sp) +/* f1201a0: c7a80594 */ lwc1 $f8,0x594($sp) +/* f1201a4: 4618a102 */ mul.s $f4,$f20,$f24 +/* f1201a8: e7a6046c */ swc1 $f6,0x46c($sp) +/* f1201ac: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f1201b0: 4618b182 */ mul.s $f6,$f22,$f24 +/* f1201b4: e7aa0470 */ swc1 $f10,0x470($sp) +/* f1201b8: 24110004 */ addiu $s1,$zero,0x4 +/* f1201bc: 46184282 */ mul.s $f10,$f8,$f24 +/* f1201c0: e7a40474 */ swc1 $f4,0x474($sp) +/* f1201c4: 46008200 */ add.s $f8,$f16,$f0 +/* f1201c8: 4618d102 */ mul.s $f4,$f26,$f24 +/* f1201cc: e7a60484 */ swc1 $f6,0x484($sp) +/* f1201d0: 46006180 */ add.s $f6,$f12,$f0 +/* f1201d4: e7a80464 */ swc1 $f8,0x464($sp) +/* f1201d8: e7aa0488 */ swc1 $f10,0x488($sp) +/* f1201dc: 4600a280 */ add.s $f10,$f20,$f0 +/* f1201e0: e7a6044c */ swc1 $f6,0x44c($sp) +/* f1201e4: e7a4048c */ swc1 $f4,0x48c($sp) +/* f1201e8: 4600d100 */ add.s $f4,$f26,$f0 +/* f1201ec: e7aa047c */ swc1 $f10,0x47c($sp) +/* f1201f0: 27a4043c */ addiu $a0,$sp,0x43c +/* f1201f4: 8fa5056c */ lw $a1,0x56c($sp) +/* f1201f8: e7a40494 */ swc1 $f4,0x494($sp) +/* f1201fc: e7a20448 */ swc1 $f2,0x448($sp) +/* f120200: e7ae0460 */ swc1 $f14,0x460($sp) +/* f120204: e7b20478 */ swc1 $f18,0x478($sp) +/* f120208: 0fc47dbb */ jal sky0f11f6ec +/* f12020c: e7b60490 */ swc1 $f22,0x490($sp) +/* f120210: 27a40454 */ addiu $a0,$sp,0x454 +/* f120214: 0fc47dbb */ jal sky0f11f6ec +/* f120218: 8fa50568 */ lw $a1,0x568($sp) +/* f12021c: 27a4046c */ addiu $a0,$sp,0x46c +/* f120220: 0fc47dbb */ jal sky0f11f6ec +/* f120224: 8fa50554 */ lw $a1,0x554($sp) +/* f120228: 27a40484 */ addiu $a0,$sp,0x484 +/* f12022c: 0fc47dbb */ jal sky0f11f6ec +/* f120230: 8fa50550 */ lw $a1,0x550($sp) +/* f120234: 100002ee */ b .L0f120df0 +/* f120238: 00000000 */ nop +/* f12023c: 3c017f1b */ lui $at,%hi(var7f1b5050) +/* f120240: c4385050 */ lwc1 $f24,%lo(var7f1b5050)($at) +/* f120244: c7b605c0 */ lwc1 $f22,0x5c0($sp) +/* f120248: c7a805c4 */ lwc1 $f8,0x5c4($sp) +/* f12024c: c7ba05c8 */ lwc1 $f26,0x5c8($sp) +/* f120250: 4618b182 */ mul.s $f6,$f22,$f24 +/* f120254: c7b205cc */ lwc1 $f18,0x5cc($sp) +/* f120258: c7b405d4 */ lwc1 $f20,0x5d4($sp) +/* f12025c: 46184282 */ mul.s $f10,$f8,$f24 +/* f120260: c7a805d0 */ lwc1 $f8,0x5d0($sp) +/* f120264: c7ae0590 */ lwc1 $f14,0x590($sp) +/* f120268: 4618d102 */ mul.s $f4,$f26,$f24 +/* f12026c: e7a6043c */ swc1 $f6,0x43c($sp) +/* f120270: c7b00598 */ lwc1 $f16,0x598($sp) +/* f120274: 46189182 */ mul.s $f6,$f18,$f24 +/* f120278: e7aa0440 */ swc1 $f10,0x440($sp) +/* f12027c: c7a2059c */ lwc1 $f2,0x59c($sp) +/* f120280: 46184282 */ mul.s $f10,$f8,$f24 +/* f120284: e7a40444 */ swc1 $f4,0x444($sp) +/* f120288: c7a80594 */ lwc1 $f8,0x594($sp) +/* f12028c: 4618a102 */ mul.s $f4,$f20,$f24 +/* f120290: e7a60454 */ swc1 $f6,0x454($sp) +/* f120294: c7ac05a4 */ lwc1 $f12,0x5a4($sp) +/* f120298: 46187182 */ mul.s $f6,$f14,$f24 +/* f12029c: e7aa0458 */ swc1 $f10,0x458($sp) +/* f1202a0: 3c018008 */ lui $at,%hi(var8007db80) +/* f1202a4: 46184282 */ mul.s $f10,$f8,$f24 +/* f1202a8: e7a4045c */ swc1 $f4,0x45c($sp) +/* f1202ac: c7a805a0 */ lwc1 $f8,0x5a0($sp) +/* f1202b0: 46188102 */ mul.s $f4,$f16,$f24 +/* f1202b4: e7a6046c */ swc1 $f6,0x46c($sp) +/* f1202b8: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f1202bc: 46181182 */ mul.s $f6,$f2,$f24 +/* f1202c0: e7aa0470 */ swc1 $f10,0x470($sp) +/* f1202c4: 240a0001 */ addiu $t2,$zero,0x1 +/* f1202c8: 46184282 */ mul.s $f10,$f8,$f24 +/* f1202cc: e7a40474 */ swc1 $f4,0x474($sp) +/* f1202d0: 4600a200 */ add.s $f8,$f20,$f0 +/* f1202d4: 46186102 */ mul.s $f4,$f12,$f24 +/* f1202d8: e7a60484 */ swc1 $f6,0x484($sp) +/* f1202dc: 4600d180 */ add.s $f6,$f26,$f0 +/* f1202e0: 24110004 */ addiu $s1,$zero,0x4 +/* f1202e4: e7aa0488 */ swc1 $f10,0x488($sp) +/* f1202e8: 46008280 */ add.s $f10,$f16,$f0 +/* f1202ec: afaa0430 */ sw $t2,0x430($sp) +/* f1202f0: e7a4048c */ swc1 $f4,0x48c($sp) +/* f1202f4: 46006100 */ add.s $f4,$f12,$f0 +/* f1202f8: e7a6044c */ swc1 $f6,0x44c($sp) +/* f1202fc: e7a80464 */ swc1 $f8,0x464($sp) +/* f120300: e7aa047c */ swc1 $f10,0x47c($sp) +/* f120304: e7a40494 */ swc1 $f4,0x494($sp) +/* f120308: 27a4043c */ addiu $a0,$sp,0x43c +/* f12030c: 8fa50560 */ lw $a1,0x560($sp) +/* f120310: e7b60448 */ swc1 $f22,0x448($sp) +/* f120314: e7b20460 */ swc1 $f18,0x460($sp) +/* f120318: e7ae0478 */ swc1 $f14,0x478($sp) +/* f12031c: 0fc47dbb */ jal sky0f11f6ec +/* f120320: e7a20490 */ swc1 $f2,0x490($sp) +/* f120324: 27a40454 */ addiu $a0,$sp,0x454 +/* f120328: 0fc47dbb */ jal sky0f11f6ec +/* f12032c: 8fa50564 */ lw $a1,0x564($sp) +/* f120330: 27a4046c */ addiu $a0,$sp,0x46c +/* f120334: 0fc47dbb */ jal sky0f11f6ec +/* f120338: 8fa50550 */ lw $a1,0x550($sp) +/* f12033c: 27a40484 */ addiu $a0,$sp,0x484 +/* f120340: 0fc47dbb */ jal sky0f11f6ec +/* f120344: 8fa50554 */ lw $a1,0x554($sp) +/* f120348: 100002a9 */ b .L0f120df0 +/* f12034c: 00000000 */ nop +/* f120350: 3c017f1b */ lui $at,%hi(var7f1b5054) +/* f120354: c4385054 */ lwc1 $f24,%lo(var7f1b5054)($at) +/* f120358: c7ae05d8 */ lwc1 $f14,0x5d8($sp) +/* f12035c: c7a805dc */ lwc1 $f8,0x5dc($sp) +/* f120360: c7b005e0 */ lwc1 $f16,0x5e0($sp) +/* f120364: 46187182 */ mul.s $f6,$f14,$f24 +/* f120368: c7b605c0 */ lwc1 $f22,0x5c0($sp) +/* f12036c: c7ba05c8 */ lwc1 $f26,0x5c8($sp) +/* f120370: 46184282 */ mul.s $f10,$f8,$f24 +/* f120374: c7a805c4 */ lwc1 $f8,0x5c4($sp) +/* f120378: c7a205b4 */ lwc1 $f2,0x5b4($sp) +/* f12037c: 46188102 */ mul.s $f4,$f16,$f24 +/* f120380: e7a6043c */ swc1 $f6,0x43c($sp) +/* f120384: c7ac05bc */ lwc1 $f12,0x5bc($sp) +/* f120388: 4618b182 */ mul.s $f6,$f22,$f24 +/* f12038c: e7aa0440 */ swc1 $f10,0x440($sp) +/* f120390: c7b205a8 */ lwc1 $f18,0x5a8($sp) +/* f120394: 46184282 */ mul.s $f10,$f8,$f24 +/* f120398: e7a40444 */ swc1 $f4,0x444($sp) +/* f12039c: c7a805b8 */ lwc1 $f8,0x5b8($sp) +/* f1203a0: 4618d102 */ mul.s $f4,$f26,$f24 +/* f1203a4: e7a60454 */ swc1 $f6,0x454($sp) +/* f1203a8: c7b405b0 */ lwc1 $f20,0x5b0($sp) +/* f1203ac: 46181182 */ mul.s $f6,$f2,$f24 +/* f1203b0: e7aa0458 */ swc1 $f10,0x458($sp) +/* f1203b4: 3c018008 */ lui $at,%hi(var8007db80) +/* f1203b8: 46184282 */ mul.s $f10,$f8,$f24 +/* f1203bc: e7a4045c */ swc1 $f4,0x45c($sp) +/* f1203c0: c7a805ac */ lwc1 $f8,0x5ac($sp) +/* f1203c4: 46186102 */ mul.s $f4,$f12,$f24 +/* f1203c8: e7a6046c */ swc1 $f6,0x46c($sp) +/* f1203cc: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f1203d0: 46189182 */ mul.s $f6,$f18,$f24 +/* f1203d4: e7aa0470 */ swc1 $f10,0x470($sp) +/* f1203d8: 24110004 */ addiu $s1,$zero,0x4 +/* f1203dc: 46184282 */ mul.s $f10,$f8,$f24 +/* f1203e0: e7a40474 */ swc1 $f4,0x474($sp) +/* f1203e4: 4600d200 */ add.s $f8,$f26,$f0 +/* f1203e8: 4618a102 */ mul.s $f4,$f20,$f24 +/* f1203ec: e7a60484 */ swc1 $f6,0x484($sp) +/* f1203f0: 46008180 */ add.s $f6,$f16,$f0 +/* f1203f4: e7a80464 */ swc1 $f8,0x464($sp) +/* f1203f8: e7aa0488 */ swc1 $f10,0x488($sp) +/* f1203fc: 46006280 */ add.s $f10,$f12,$f0 +/* f120400: e7a6044c */ swc1 $f6,0x44c($sp) +/* f120404: e7a4048c */ swc1 $f4,0x48c($sp) +/* f120408: 4600a100 */ add.s $f4,$f20,$f0 +/* f12040c: e7aa047c */ swc1 $f10,0x47c($sp) +/* f120410: 27a4043c */ addiu $a0,$sp,0x43c +/* f120414: 8fa50568 */ lw $a1,0x568($sp) +/* f120418: e7a40494 */ swc1 $f4,0x494($sp) +/* f12041c: e7ae0448 */ swc1 $f14,0x448($sp) +/* f120420: e7b60460 */ swc1 $f22,0x460($sp) +/* f120424: e7a20478 */ swc1 $f2,0x478($sp) +/* f120428: 0fc47dbb */ jal sky0f11f6ec +/* f12042c: e7b20490 */ swc1 $f18,0x490($sp) +/* f120430: 27a40454 */ addiu $a0,$sp,0x454 +/* f120434: 0fc47dbb */ jal sky0f11f6ec +/* f120438: 8fa50560 */ lw $a1,0x560($sp) +/* f12043c: 27a4046c */ addiu $a0,$sp,0x46c +/* f120440: 0fc47dbb */ jal sky0f11f6ec +/* f120444: 8fa5055c */ lw $a1,0x55c($sp) +/* f120448: 27a40484 */ addiu $a0,$sp,0x484 +/* f12044c: 0fc47dbb */ jal sky0f11f6ec +/* f120450: 8fa50558 */ lw $a1,0x558($sp) +/* f120454: 10000266 */ b .L0f120df0 +/* f120458: 00000000 */ nop +/* f12045c: 3c017f1b */ lui $at,%hi(var7f1b5058) +/* f120460: c4385058 */ lwc1 $f24,%lo(var7f1b5058)($at) +/* f120464: c7b205cc */ lwc1 $f18,0x5cc($sp) +/* f120468: c7a805d0 */ lwc1 $f8,0x5d0($sp) +/* f12046c: c7b405d4 */ lwc1 $f20,0x5d4($sp) +/* f120470: 46189182 */ mul.s $f6,$f18,$f24 +/* f120474: c7a205e4 */ lwc1 $f2,0x5e4($sp) +/* f120478: c7ac05ec */ lwc1 $f12,0x5ec($sp) +/* f12047c: 46184282 */ mul.s $f10,$f8,$f24 +/* f120480: c7a805e8 */ lwc1 $f8,0x5e8($sp) +/* f120484: c7b605a8 */ lwc1 $f22,0x5a8($sp) +/* f120488: 4618a102 */ mul.s $f4,$f20,$f24 +/* f12048c: e7a6043c */ swc1 $f6,0x43c($sp) +/* f120490: c7ba05b0 */ lwc1 $f26,0x5b0($sp) +/* f120494: 46181182 */ mul.s $f6,$f2,$f24 +/* f120498: e7aa0440 */ swc1 $f10,0x440($sp) +/* f12049c: c7ae05b4 */ lwc1 $f14,0x5b4($sp) +/* f1204a0: 46184282 */ mul.s $f10,$f8,$f24 +/* f1204a4: e7a40444 */ swc1 $f4,0x444($sp) +/* f1204a8: c7a805ac */ lwc1 $f8,0x5ac($sp) +/* f1204ac: 46186102 */ mul.s $f4,$f12,$f24 +/* f1204b0: e7a60454 */ swc1 $f6,0x454($sp) +/* f1204b4: c7b005bc */ lwc1 $f16,0x5bc($sp) +/* f1204b8: 4618b182 */ mul.s $f6,$f22,$f24 +/* f1204bc: e7aa0458 */ swc1 $f10,0x458($sp) +/* f1204c0: 3c018008 */ lui $at,%hi(var8007db80) +/* f1204c4: 46184282 */ mul.s $f10,$f8,$f24 +/* f1204c8: e7a4045c */ swc1 $f4,0x45c($sp) +/* f1204cc: c7a805b8 */ lwc1 $f8,0x5b8($sp) +/* f1204d0: 4618d102 */ mul.s $f4,$f26,$f24 +/* f1204d4: e7a6046c */ swc1 $f6,0x46c($sp) +/* f1204d8: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f1204dc: 46187182 */ mul.s $f6,$f14,$f24 +/* f1204e0: e7aa0470 */ swc1 $f10,0x470($sp) +/* f1204e4: 24110004 */ addiu $s1,$zero,0x4 +/* f1204e8: 46184282 */ mul.s $f10,$f8,$f24 +/* f1204ec: e7a40474 */ swc1 $f4,0x474($sp) +/* f1204f0: 46006200 */ add.s $f8,$f12,$f0 +/* f1204f4: 46188102 */ mul.s $f4,$f16,$f24 +/* f1204f8: e7a60484 */ swc1 $f6,0x484($sp) +/* f1204fc: 4600a180 */ add.s $f6,$f20,$f0 +/* f120500: e7a80464 */ swc1 $f8,0x464($sp) +/* f120504: e7aa0488 */ swc1 $f10,0x488($sp) +/* f120508: 4600d280 */ add.s $f10,$f26,$f0 +/* f12050c: e7a6044c */ swc1 $f6,0x44c($sp) +/* f120510: e7a4048c */ swc1 $f4,0x48c($sp) +/* f120514: 46008100 */ add.s $f4,$f16,$f0 +/* f120518: e7aa047c */ swc1 $f10,0x47c($sp) +/* f12051c: 27a4043c */ addiu $a0,$sp,0x43c +/* f120520: 8fa50564 */ lw $a1,0x564($sp) +/* f120524: e7a40494 */ swc1 $f4,0x494($sp) +/* f120528: e7b20448 */ swc1 $f18,0x448($sp) +/* f12052c: e7a20460 */ swc1 $f2,0x460($sp) +/* f120530: e7b60478 */ swc1 $f22,0x478($sp) +/* f120534: 0fc47dbb */ jal sky0f11f6ec +/* f120538: e7ae0490 */ swc1 $f14,0x490($sp) +/* f12053c: 27a40454 */ addiu $a0,$sp,0x454 +/* f120540: 0fc47dbb */ jal sky0f11f6ec +/* f120544: 8fa5056c */ lw $a1,0x56c($sp) +/* f120548: 27a4046c */ addiu $a0,$sp,0x46c +/* f12054c: 0fc47dbb */ jal sky0f11f6ec +/* f120550: 8fa50558 */ lw $a1,0x558($sp) +/* f120554: 27a40484 */ addiu $a0,$sp,0x484 +/* f120558: 0fc47dbb */ jal sky0f11f6ec +/* f12055c: 8fa5055c */ lw $a1,0x55c($sp) +/* f120560: 10000223 */ b .L0f120df0 +/* f120564: 00000000 */ nop +/* f120568: 3c017f1b */ lui $at,%hi(var7f1b505c) +/* f12056c: c438505c */ lwc1 $f24,%lo(var7f1b505c)($at) +/* f120570: c7b605c0 */ lwc1 $f22,0x5c0($sp) +/* f120574: c7a805c4 */ lwc1 $f8,0x5c4($sp) +/* f120578: c7ba05c8 */ lwc1 $f26,0x5c8($sp) +/* f12057c: 4618b182 */ mul.s $f6,$f22,$f24 +/* f120580: c7ae05a8 */ lwc1 $f14,0x5a8($sp) +/* f120584: c7b005b0 */ lwc1 $f16,0x5b0($sp) +/* f120588: 46184282 */ mul.s $f10,$f8,$f24 +/* f12058c: c7a805ac */ lwc1 $f8,0x5ac($sp) +/* f120590: c7a20590 */ lwc1 $f2,0x590($sp) +/* f120594: 4618d102 */ mul.s $f4,$f26,$f24 +/* f120598: e7a6043c */ swc1 $f6,0x43c($sp) +/* f12059c: c7ac0598 */ lwc1 $f12,0x598($sp) +/* f1205a0: 46187182 */ mul.s $f6,$f14,$f24 +/* f1205a4: e7aa0440 */ swc1 $f10,0x440($sp) +/* f1205a8: 3c018008 */ lui $at,%hi(var8007db80) +/* f1205ac: 46184282 */ mul.s $f10,$f8,$f24 +/* f1205b0: e7a40444 */ swc1 $f4,0x444($sp) +/* f1205b4: c7a80594 */ lwc1 $f8,0x594($sp) +/* f1205b8: 46188102 */ mul.s $f4,$f16,$f24 +/* f1205bc: e7a60454 */ swc1 $f6,0x454($sp) +/* f1205c0: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f1205c4: 46181182 */ mul.s $f6,$f2,$f24 +/* f1205c8: e7aa0458 */ swc1 $f10,0x458($sp) +/* f1205cc: 24110003 */ addiu $s1,$zero,0x3 +/* f1205d0: 46184282 */ mul.s $f10,$f8,$f24 +/* f1205d4: e7a4045c */ swc1 $f4,0x45c($sp) +/* f1205d8: 46008200 */ add.s $f8,$f16,$f0 +/* f1205dc: 46186102 */ mul.s $f4,$f12,$f24 +/* f1205e0: e7a6046c */ swc1 $f6,0x46c($sp) +/* f1205e4: 4600d180 */ add.s $f6,$f26,$f0 +/* f1205e8: e7a80464 */ swc1 $f8,0x464($sp) +/* f1205ec: e7aa0470 */ swc1 $f10,0x470($sp) +/* f1205f0: 46006280 */ add.s $f10,$f12,$f0 +/* f1205f4: e7a6044c */ swc1 $f6,0x44c($sp) +/* f1205f8: e7a40474 */ swc1 $f4,0x474($sp) +/* f1205fc: 27a4043c */ addiu $a0,$sp,0x43c +/* f120600: e7aa047c */ swc1 $f10,0x47c($sp) +/* f120604: 8fa50560 */ lw $a1,0x560($sp) +/* f120608: e7b60448 */ swc1 $f22,0x448($sp) +/* f12060c: e7ae0460 */ swc1 $f14,0x460($sp) +/* f120610: 0fc47dbb */ jal sky0f11f6ec +/* f120614: e7a20478 */ swc1 $f2,0x478($sp) +/* f120618: 27a40454 */ addiu $a0,$sp,0x454 +/* f12061c: 0fc47dbb */ jal sky0f11f6ec +/* f120620: 8fa50558 */ lw $a1,0x558($sp) +/* f120624: 27a4046c */ addiu $a0,$sp,0x46c +/* f120628: 0fc47dbb */ jal sky0f11f6ec +/* f12062c: 8fa50550 */ lw $a1,0x550($sp) +/* f120630: 100001ef */ b .L0f120df0 +/* f120634: 00000000 */ nop +/* f120638: 3c017f1b */ lui $at,%hi(var7f1b5060) +/* f12063c: c4385060 */ lwc1 $f24,%lo(var7f1b5060)($at) +/* f120640: c7b205cc */ lwc1 $f18,0x5cc($sp) +/* f120644: c7a605d0 */ lwc1 $f6,0x5d0($sp) +/* f120648: c7b405d4 */ lwc1 $f20,0x5d4($sp) +/* f12064c: 46189102 */ mul.s $f4,$f18,$f24 +/* f120650: c7a2059c */ lwc1 $f2,0x59c($sp) +/* f120654: c7ac05a4 */ lwc1 $f12,0x5a4($sp) +/* f120658: 46183202 */ mul.s $f8,$f6,$f24 +/* f12065c: c7a605a0 */ lwc1 $f6,0x5a0($sp) +/* f120660: c7ae05a8 */ lwc1 $f14,0x5a8($sp) +/* f120664: 4618a282 */ mul.s $f10,$f20,$f24 +/* f120668: e7a4043c */ swc1 $f4,0x43c($sp) +/* f12066c: c7b005b0 */ lwc1 $f16,0x5b0($sp) +/* f120670: 46181102 */ mul.s $f4,$f2,$f24 +/* f120674: e7a80440 */ swc1 $f8,0x440($sp) +/* f120678: 3c018008 */ lui $at,%hi(var8007db80) +/* f12067c: 46183202 */ mul.s $f8,$f6,$f24 +/* f120680: e7aa0444 */ swc1 $f10,0x444($sp) +/* f120684: c7a605ac */ lwc1 $f6,0x5ac($sp) +/* f120688: 46186282 */ mul.s $f10,$f12,$f24 +/* f12068c: e7a40454 */ swc1 $f4,0x454($sp) +/* f120690: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f120694: 46187102 */ mul.s $f4,$f14,$f24 +/* f120698: e7a80458 */ swc1 $f8,0x458($sp) +/* f12069c: 24110003 */ addiu $s1,$zero,0x3 +/* f1206a0: 46183202 */ mul.s $f8,$f6,$f24 +/* f1206a4: e7aa045c */ swc1 $f10,0x45c($sp) +/* f1206a8: 46006180 */ add.s $f6,$f12,$f0 +/* f1206ac: 46188282 */ mul.s $f10,$f16,$f24 +/* f1206b0: e7a4046c */ swc1 $f4,0x46c($sp) +/* f1206b4: 4600a100 */ add.s $f4,$f20,$f0 +/* f1206b8: e7a60464 */ swc1 $f6,0x464($sp) +/* f1206bc: e7a80470 */ swc1 $f8,0x470($sp) +/* f1206c0: 46008200 */ add.s $f8,$f16,$f0 +/* f1206c4: e7a4044c */ swc1 $f4,0x44c($sp) +/* f1206c8: e7aa0474 */ swc1 $f10,0x474($sp) +/* f1206cc: 27a4043c */ addiu $a0,$sp,0x43c +/* f1206d0: e7a8047c */ swc1 $f8,0x47c($sp) +/* f1206d4: 8fa50564 */ lw $a1,0x564($sp) +/* f1206d8: e7b20448 */ swc1 $f18,0x448($sp) +/* f1206dc: e7a20460 */ swc1 $f2,0x460($sp) +/* f1206e0: 0fc47dbb */ jal sky0f11f6ec +/* f1206e4: e7ae0478 */ swc1 $f14,0x478($sp) +/* f1206e8: 27a40454 */ addiu $a0,$sp,0x454 +/* f1206ec: 0fc47dbb */ jal sky0f11f6ec +/* f1206f0: 8fa50554 */ lw $a1,0x554($sp) +/* f1206f4: 27a4046c */ addiu $a0,$sp,0x46c +/* f1206f8: 0fc47dbb */ jal sky0f11f6ec +/* f1206fc: 8fa50558 */ lw $a1,0x558($sp) +/* f120700: 100001bb */ b .L0f120df0 +/* f120704: 00000000 */ nop +/* f120708: 3c017f1b */ lui $at,%hi(var7f1b5064) +/* f12070c: c4385064 */ lwc1 $f24,%lo(var7f1b5064)($at) +/* f120710: c7ae05d8 */ lwc1 $f14,0x5d8($sp) +/* f120714: c7a405dc */ lwc1 $f4,0x5dc($sp) +/* f120718: c7b005e0 */ lwc1 $f16,0x5e0($sp) +/* f12071c: 46187282 */ mul.s $f10,$f14,$f24 +/* f120720: c7b20590 */ lwc1 $f18,0x590($sp) +/* f120724: c7b40598 */ lwc1 $f20,0x598($sp) +/* f120728: 46182182 */ mul.s $f6,$f4,$f24 +/* f12072c: c7a40594 */ lwc1 $f4,0x594($sp) +/* f120730: c7a205b4 */ lwc1 $f2,0x5b4($sp) +/* f120734: 46188202 */ mul.s $f8,$f16,$f24 +/* f120738: e7aa043c */ swc1 $f10,0x43c($sp) +/* f12073c: c7ac05bc */ lwc1 $f12,0x5bc($sp) +/* f120740: 46189282 */ mul.s $f10,$f18,$f24 +/* f120744: e7a60440 */ swc1 $f6,0x440($sp) +/* f120748: 3c018008 */ lui $at,%hi(var8007db80) +/* f12074c: 46182182 */ mul.s $f6,$f4,$f24 +/* f120750: e7a80444 */ swc1 $f8,0x444($sp) +/* f120754: c7a405b8 */ lwc1 $f4,0x5b8($sp) +/* f120758: 4618a202 */ mul.s $f8,$f20,$f24 +/* f12075c: e7aa0454 */ swc1 $f10,0x454($sp) +/* f120760: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f120764: 46181282 */ mul.s $f10,$f2,$f24 +/* f120768: e7a60458 */ swc1 $f6,0x458($sp) +/* f12076c: 24110003 */ addiu $s1,$zero,0x3 +/* f120770: 46182182 */ mul.s $f6,$f4,$f24 +/* f120774: e7a8045c */ swc1 $f8,0x45c($sp) +/* f120778: 4600a100 */ add.s $f4,$f20,$f0 +/* f12077c: 46186202 */ mul.s $f8,$f12,$f24 +/* f120780: e7aa046c */ swc1 $f10,0x46c($sp) +/* f120784: 46008280 */ add.s $f10,$f16,$f0 +/* f120788: e7a40464 */ swc1 $f4,0x464($sp) +/* f12078c: e7a60470 */ swc1 $f6,0x470($sp) +/* f120790: 46006180 */ add.s $f6,$f12,$f0 +/* f120794: e7aa044c */ swc1 $f10,0x44c($sp) +/* f120798: e7a80474 */ swc1 $f8,0x474($sp) +/* f12079c: 27a4043c */ addiu $a0,$sp,0x43c +/* f1207a0: e7a6047c */ swc1 $f6,0x47c($sp) +/* f1207a4: 8fa50568 */ lw $a1,0x568($sp) +/* f1207a8: e7ae0448 */ swc1 $f14,0x448($sp) +/* f1207ac: e7b20460 */ swc1 $f18,0x460($sp) +/* f1207b0: 0fc47dbb */ jal sky0f11f6ec +/* f1207b4: e7a20478 */ swc1 $f2,0x478($sp) +/* f1207b8: 27a40454 */ addiu $a0,$sp,0x454 +/* f1207bc: 0fc47dbb */ jal sky0f11f6ec +/* f1207c0: 8fa50550 */ lw $a1,0x550($sp) +/* f1207c4: 27a4046c */ addiu $a0,$sp,0x46c +/* f1207c8: 0fc47dbb */ jal sky0f11f6ec +/* f1207cc: 8fa5055c */ lw $a1,0x55c($sp) +/* f1207d0: 10000187 */ b .L0f120df0 +/* f1207d4: 00000000 */ nop +/* f1207d8: 3c017f1b */ lui $at,%hi(var7f1b5068) +/* f1207dc: c4385068 */ lwc1 $f24,%lo(var7f1b5068)($at) +/* f1207e0: c7a205e4 */ lwc1 $f2,0x5e4($sp) +/* f1207e4: c7aa05e8 */ lwc1 $f10,0x5e8($sp) +/* f1207e8: c7ac05ec */ lwc1 $f12,0x5ec($sp) +/* f1207ec: 46181202 */ mul.s $f8,$f2,$f24 +/* f1207f0: c7ae05b4 */ lwc1 $f14,0x5b4($sp) +/* f1207f4: c7b005bc */ lwc1 $f16,0x5bc($sp) +/* f1207f8: 46185102 */ mul.s $f4,$f10,$f24 +/* f1207fc: c7aa05b8 */ lwc1 $f10,0x5b8($sp) +/* f120800: c7b2059c */ lwc1 $f18,0x59c($sp) +/* f120804: 46186182 */ mul.s $f6,$f12,$f24 +/* f120808: e7a8043c */ swc1 $f8,0x43c($sp) +/* f12080c: c7b405a4 */ lwc1 $f20,0x5a4($sp) +/* f120810: 46187202 */ mul.s $f8,$f14,$f24 +/* f120814: e7a40440 */ swc1 $f4,0x440($sp) +/* f120818: 3c018008 */ lui $at,%hi(var8007db80) +/* f12081c: 46185102 */ mul.s $f4,$f10,$f24 +/* f120820: e7a60444 */ swc1 $f6,0x444($sp) +/* f120824: c7aa05a0 */ lwc1 $f10,0x5a0($sp) +/* f120828: 46188182 */ mul.s $f6,$f16,$f24 +/* f12082c: e7a80454 */ swc1 $f8,0x454($sp) +/* f120830: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f120834: 46189202 */ mul.s $f8,$f18,$f24 +/* f120838: e7a40458 */ swc1 $f4,0x458($sp) +/* f12083c: 24110003 */ addiu $s1,$zero,0x3 +/* f120840: 46185102 */ mul.s $f4,$f10,$f24 +/* f120844: e7a6045c */ swc1 $f6,0x45c($sp) +/* f120848: 46008280 */ add.s $f10,$f16,$f0 +/* f12084c: 4618a182 */ mul.s $f6,$f20,$f24 +/* f120850: e7a8046c */ swc1 $f8,0x46c($sp) +/* f120854: 46006200 */ add.s $f8,$f12,$f0 +/* f120858: e7aa0464 */ swc1 $f10,0x464($sp) +/* f12085c: e7a40470 */ swc1 $f4,0x470($sp) +/* f120860: 4600a100 */ add.s $f4,$f20,$f0 +/* f120864: e7a8044c */ swc1 $f8,0x44c($sp) +/* f120868: e7a60474 */ swc1 $f6,0x474($sp) +/* f12086c: 27a4043c */ addiu $a0,$sp,0x43c +/* f120870: e7a4047c */ swc1 $f4,0x47c($sp) +/* f120874: 8fa5056c */ lw $a1,0x56c($sp) +/* f120878: e7a20448 */ swc1 $f2,0x448($sp) +/* f12087c: e7ae0460 */ swc1 $f14,0x460($sp) +/* f120880: 0fc47dbb */ jal sky0f11f6ec +/* f120884: e7b20478 */ swc1 $f18,0x478($sp) +/* f120888: 27a40454 */ addiu $a0,$sp,0x454 +/* f12088c: 0fc47dbb */ jal sky0f11f6ec +/* f120890: 8fa5055c */ lw $a1,0x55c($sp) +/* f120894: 27a4046c */ addiu $a0,$sp,0x46c +/* f120898: 0fc47dbb */ jal sky0f11f6ec +/* f12089c: 8fa50554 */ lw $a1,0x554($sp) +/* f1208a0: 10000153 */ b .L0f120df0 +/* f1208a4: 00000000 */ nop +/* f1208a8: 3c017f1b */ lui $at,%hi(var7f1b506c) +/* f1208ac: c438506c */ lwc1 $f24,%lo(var7f1b506c)($at) +/* f1208b0: c7b205cc */ lwc1 $f18,0x5cc($sp) +/* f1208b4: c7a805d0 */ lwc1 $f8,0x5d0($sp) +/* f1208b8: c7b405d4 */ lwc1 $f20,0x5d4($sp) +/* f1208bc: 46189182 */ mul.s $f6,$f18,$f24 +/* f1208c0: c7a205e4 */ lwc1 $f2,0x5e4($sp) +/* f1208c4: c7ac05ec */ lwc1 $f12,0x5ec($sp) +/* f1208c8: 46184282 */ mul.s $f10,$f8,$f24 +/* f1208cc: c7a805e8 */ lwc1 $f8,0x5e8($sp) +/* f1208d0: c7ae05d8 */ lwc1 $f14,0x5d8($sp) +/* f1208d4: 4618a102 */ mul.s $f4,$f20,$f24 +/* f1208d8: e7a6043c */ swc1 $f6,0x43c($sp) +/* f1208dc: c7b005e0 */ lwc1 $f16,0x5e0($sp) +/* f1208e0: 46181182 */ mul.s $f6,$f2,$f24 +/* f1208e4: e7aa0440 */ swc1 $f10,0x440($sp) +/* f1208e8: c7b60590 */ lwc1 $f22,0x590($sp) +/* f1208ec: 46184282 */ mul.s $f10,$f8,$f24 +/* f1208f0: e7a40444 */ swc1 $f4,0x444($sp) +/* f1208f4: c7a805dc */ lwc1 $f8,0x5dc($sp) +/* f1208f8: 46186102 */ mul.s $f4,$f12,$f24 +/* f1208fc: e7a60454 */ swc1 $f6,0x454($sp) +/* f120900: c7ba0598 */ lwc1 $f26,0x598($sp) +/* f120904: 46187182 */ mul.s $f6,$f14,$f24 +/* f120908: e7aa0458 */ swc1 $f10,0x458($sp) +/* f12090c: 3c018008 */ lui $at,%hi(var8007db80) +/* f120910: 46184282 */ mul.s $f10,$f8,$f24 +/* f120914: e7a4045c */ swc1 $f4,0x45c($sp) +/* f120918: c7a80594 */ lwc1 $f8,0x594($sp) +/* f12091c: 46188102 */ mul.s $f4,$f16,$f24 +/* f120920: e7a6046c */ swc1 $f6,0x46c($sp) +/* f120924: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f120928: 4618b182 */ mul.s $f6,$f22,$f24 +/* f12092c: e7aa0470 */ swc1 $f10,0x470($sp) +/* f120930: 24110005 */ addiu $s1,$zero,0x5 +/* f120934: 46184282 */ mul.s $f10,$f8,$f24 +/* f120938: e7a40474 */ swc1 $f4,0x474($sp) +/* f12093c: 27a4043c */ addiu $a0,$sp,0x43c +/* f120940: 4618d102 */ mul.s $f4,$f26,$f24 +/* f120944: e7a60484 */ swc1 $f6,0x484($sp) +/* f120948: c7a605a8 */ lwc1 $f6,0x5a8($sp) +/* f12094c: 8fa50564 */ lw $a1,0x564($sp) +/* f120950: e7aa0488 */ swc1 $f10,0x488($sp) +/* f120954: 46183202 */ mul.s $f8,$f6,$f24 +/* f120958: c7aa05ac */ lwc1 $f10,0x5ac($sp) +/* f12095c: e7a4048c */ swc1 $f4,0x48c($sp) +/* f120960: c7a605b0 */ lwc1 $f6,0x5b0($sp) +/* f120964: 46185102 */ mul.s $f4,$f10,$f24 +/* f120968: 4600a280 */ add.s $f10,$f20,$f0 +/* f12096c: e7b20448 */ swc1 $f18,0x448($sp) +/* f120970: e7a8049c */ swc1 $f8,0x49c($sp) +/* f120974: 46183202 */ mul.s $f8,$f6,$f24 +/* f120978: 46008180 */ add.s $f6,$f16,$f0 +/* f12097c: e7aa044c */ swc1 $f10,0x44c($sp) +/* f120980: e7a404a0 */ swc1 $f4,0x4a0($sp) +/* f120984: c7aa05a8 */ lwc1 $f10,0x5a8($sp) +/* f120988: 46006100 */ add.s $f4,$f12,$f0 +/* f12098c: e7a6047c */ swc1 $f6,0x47c($sp) +/* f120990: e7a804a4 */ swc1 $f8,0x4a4($sp) +/* f120994: 4600d200 */ add.s $f8,$f26,$f0 +/* f120998: e7a40464 */ swc1 $f4,0x464($sp) +/* f12099c: c7a405b0 */ lwc1 $f4,0x5b0($sp) +/* f1209a0: e7a20460 */ swc1 $f2,0x460($sp) +/* f1209a4: e7a80494 */ swc1 $f8,0x494($sp) +/* f1209a8: 46002180 */ add.s $f6,$f4,$f0 +/* f1209ac: e7ae0478 */ swc1 $f14,0x478($sp) +/* f1209b0: e7b60490 */ swc1 $f22,0x490($sp) +/* f1209b4: e7aa04a8 */ swc1 $f10,0x4a8($sp) +/* f1209b8: 0fc47dbb */ jal sky0f11f6ec +/* f1209bc: e7a604ac */ swc1 $f6,0x4ac($sp) +/* f1209c0: 27a40454 */ addiu $a0,$sp,0x454 +/* f1209c4: 0fc47dbb */ jal sky0f11f6ec +/* f1209c8: 8fa5056c */ lw $a1,0x56c($sp) +/* f1209cc: 27a4046c */ addiu $a0,$sp,0x46c +/* f1209d0: 0fc47dbb */ jal sky0f11f6ec +/* f1209d4: 8fa50568 */ lw $a1,0x568($sp) +/* f1209d8: 27a40484 */ addiu $a0,$sp,0x484 +/* f1209dc: 0fc47dbb */ jal sky0f11f6ec +/* f1209e0: 8fa50550 */ lw $a1,0x550($sp) +/* f1209e4: 27a4049c */ addiu $a0,$sp,0x49c +/* f1209e8: 0fc47dbb */ jal sky0f11f6ec +/* f1209ec: 8fa50558 */ lw $a1,0x558($sp) +/* f1209f0: 100000ff */ b .L0f120df0 +/* f1209f4: 00000000 */ nop +/* f1209f8: c7ba05e4 */ lwc1 $f26,0x5e4($sp) +/* f1209fc: c7b605ec */ lwc1 $f22,0x5ec($sp) +/* f120a00: c7b405d8 */ lwc1 $f20,0x5d8($sp) +/* f120a04: c7b205e0 */ lwc1 $f18,0x5e0($sp) +/* f120a08: c7b005c0 */ lwc1 $f16,0x5c0($sp) +/* f120a0c: c7ae059c */ lwc1 $f14,0x59c($sp) +/* f120a10: c7ac05a4 */ lwc1 $f12,0x5a4($sp) +/* f120a14: c7aa05e8 */ lwc1 $f10,0x5e8($sp) +/* f120a18: c7a805c8 */ lwc1 $f8,0x5c8($sp) +/* f120a1c: c7a605dc */ lwc1 $f6,0x5dc($sp) +/* f120a20: 3c017f1b */ lui $at,%hi(var7f1b5070) +/* f120a24: c4385070 */ lwc1 $f24,%lo(var7f1b5070)($at) +/* f120a28: c7a405c4 */ lwc1 $f4,0x5c4($sp) +/* f120a2c: c7a205a8 */ lwc1 $f2,0x5a8($sp) +/* f120a30: 46185282 */ mul.s $f10,$f10,$f24 +/* f120a34: c7a005ac */ lwc1 $f0,0x5ac($sp) +/* f120a38: 3c018008 */ lui $at,%hi(var8007db80) +/* f120a3c: 46183182 */ mul.s $f6,$f6,$f24 +/* f120a40: 24110005 */ addiu $s1,$zero,0x5 +/* f120a44: e7ba0448 */ swc1 $f26,0x448($sp) +/* f120a48: 4618d682 */ mul.s $f26,$f26,$f24 +/* f120a4c: e7aa0440 */ swc1 $f10,0x440($sp) +/* f120a50: c7aa05b0 */ lwc1 $f10,0x5b0($sp) +/* f120a54: 46182102 */ mul.s $f4,$f4,$f24 +/* f120a58: e7a60458 */ swc1 $f6,0x458($sp) +/* f120a5c: c7a605a0 */ lwc1 $f6,0x5a0($sp) +/* f120a60: 46181082 */ mul.s $f2,$f2,$f24 +/* f120a64: e7ba043c */ swc1 $f26,0x43c($sp) +/* f120a68: c43adb80 */ lwc1 $f26,%lo(var8007db80)($at) +/* f120a6c: 46185282 */ mul.s $f10,$f10,$f24 +/* f120a70: e7a40470 */ swc1 $f4,0x470($sp) +/* f120a74: c7a405b0 */ lwc1 $f4,0x5b0($sp) +/* f120a78: e7b40460 */ swc1 $f20,0x460($sp) +/* f120a7c: 4618a502 */ mul.s $f20,$f20,$f24 +/* f120a80: e7a20484 */ swc1 $f2,0x484($sp) +/* f120a84: c7a205a8 */ lwc1 $f2,0x5a8($sp) +/* f120a88: e7aa048c */ swc1 $f10,0x48c($sp) +/* f120a8c: 4618b282 */ mul.s $f10,$f22,$f24 +/* f120a90: e7a20490 */ swc1 $f2,0x490($sp) +/* f120a94: e7b00478 */ swc1 $f16,0x478($sp) +/* f120a98: 46188402 */ mul.s $f16,$f16,$f24 +/* f120a9c: e7b40454 */ swc1 $f20,0x454($sp) +/* f120aa0: e7ae04a8 */ swc1 $f14,0x4a8($sp) +/* f120aa4: 46189502 */ mul.s $f20,$f18,$f24 +/* f120aa8: e7aa0444 */ swc1 $f10,0x444($sp) +/* f120aac: 27a4043c */ addiu $a0,$sp,0x43c +/* f120ab0: 46184282 */ mul.s $f10,$f8,$f24 +/* f120ab4: e7b0046c */ swc1 $f16,0x46c($sp) +/* f120ab8: 8fa5056c */ lw $a1,0x56c($sp) +/* f120abc: 46180002 */ mul.s $f0,$f0,$f24 +/* f120ac0: e7b4045c */ swc1 $f20,0x45c($sp) +/* f120ac4: 461a9480 */ add.s $f18,$f18,$f26 +/* f120ac8: 46187382 */ mul.s $f14,$f14,$f24 +/* f120acc: e7aa0474 */ swc1 $f10,0x474($sp) +/* f120ad0: 461ab580 */ add.s $f22,$f22,$f26 +/* f120ad4: 46183182 */ mul.s $f6,$f6,$f24 +/* f120ad8: e7a00488 */ swc1 $f0,0x488($sp) +/* f120adc: 461a4200 */ add.s $f8,$f8,$f26 +/* f120ae0: 46186002 */ mul.s $f0,$f12,$f24 +/* f120ae4: e7ae049c */ swc1 $f14,0x49c($sp) +/* f120ae8: 461a2100 */ add.s $f4,$f4,$f26 +/* f120aec: e7b6044c */ swc1 $f22,0x44c($sp) +/* f120af0: e7a604a0 */ swc1 $f6,0x4a0($sp) +/* f120af4: 461a6680 */ add.s $f26,$f12,$f26 +/* f120af8: e7b20464 */ swc1 $f18,0x464($sp) +/* f120afc: e7a004a4 */ swc1 $f0,0x4a4($sp) +/* f120b00: e7a8047c */ swc1 $f8,0x47c($sp) +/* f120b04: e7a40494 */ swc1 $f4,0x494($sp) +/* f120b08: 0fc47dbb */ jal sky0f11f6ec +/* f120b0c: e7ba04ac */ swc1 $f26,0x4ac($sp) +/* f120b10: 27a40454 */ addiu $a0,$sp,0x454 +/* f120b14: 0fc47dbb */ jal sky0f11f6ec +/* f120b18: 8fa50568 */ lw $a1,0x568($sp) +/* f120b1c: 27a4046c */ addiu $a0,$sp,0x46c +/* f120b20: 0fc47dbb */ jal sky0f11f6ec +/* f120b24: 8fa50560 */ lw $a1,0x560($sp) +/* f120b28: 27a40484 */ addiu $a0,$sp,0x484 +/* f120b2c: 0fc47dbb */ jal sky0f11f6ec +/* f120b30: 8fa50558 */ lw $a1,0x558($sp) +/* f120b34: 27a4049c */ addiu $a0,$sp,0x49c +/* f120b38: 0fc47dbb */ jal sky0f11f6ec +/* f120b3c: 8fa50554 */ lw $a1,0x554($sp) +/* f120b40: 100000ab */ b .L0f120df0 +/* f120b44: 00000000 */ nop +/* f120b48: 3c017f1b */ lui $at,%hi(var7f1b5074) +/* f120b4c: c4385074 */ lwc1 $f24,%lo(var7f1b5074)($at) +/* f120b50: c7b605c0 */ lwc1 $f22,0x5c0($sp) +/* f120b54: c7a405c4 */ lwc1 $f4,0x5c4($sp) +/* f120b58: c7ba05c8 */ lwc1 $f26,0x5c8($sp) +/* f120b5c: 4618b282 */ mul.s $f10,$f22,$f24 +/* f120b60: c7b205cc */ lwc1 $f18,0x5cc($sp) +/* f120b64: c7b405d4 */ lwc1 $f20,0x5d4($sp) +/* f120b68: 46182182 */ mul.s $f6,$f4,$f24 +/* f120b6c: c7a405d0 */ lwc1 $f4,0x5d0($sp) +/* f120b70: c7a205e4 */ lwc1 $f2,0x5e4($sp) +/* f120b74: 4618d202 */ mul.s $f8,$f26,$f24 +/* f120b78: e7aa043c */ swc1 $f10,0x43c($sp) +/* f120b7c: c7ac05ec */ lwc1 $f12,0x5ec($sp) +/* f120b80: 46189282 */ mul.s $f10,$f18,$f24 +/* f120b84: e7a60440 */ swc1 $f6,0x440($sp) +/* f120b88: c7ae05b4 */ lwc1 $f14,0x5b4($sp) +/* f120b8c: 46182182 */ mul.s $f6,$f4,$f24 +/* f120b90: e7a80444 */ swc1 $f8,0x444($sp) +/* f120b94: c7a405e8 */ lwc1 $f4,0x5e8($sp) +/* f120b98: 4618a202 */ mul.s $f8,$f20,$f24 +/* f120b9c: e7aa0454 */ swc1 $f10,0x454($sp) +/* f120ba0: c7b005bc */ lwc1 $f16,0x5bc($sp) +/* f120ba4: 46181282 */ mul.s $f10,$f2,$f24 +/* f120ba8: e7a60458 */ swc1 $f6,0x458($sp) +/* f120bac: 3c018008 */ lui $at,%hi(var8007db80) +/* f120bb0: 46182182 */ mul.s $f6,$f4,$f24 +/* f120bb4: e7a8045c */ swc1 $f8,0x45c($sp) +/* f120bb8: c7a405b8 */ lwc1 $f4,0x5b8($sp) +/* f120bbc: 46186202 */ mul.s $f8,$f12,$f24 +/* f120bc0: e7aa046c */ swc1 $f10,0x46c($sp) +/* f120bc4: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f120bc8: 46187282 */ mul.s $f10,$f14,$f24 +/* f120bcc: e7a60470 */ swc1 $f6,0x470($sp) +/* f120bd0: 24110005 */ addiu $s1,$zero,0x5 +/* f120bd4: 46182182 */ mul.s $f6,$f4,$f24 +/* f120bd8: e7a80474 */ swc1 $f8,0x474($sp) +/* f120bdc: 27a4043c */ addiu $a0,$sp,0x43c +/* f120be0: 46188202 */ mul.s $f8,$f16,$f24 +/* f120be4: e7aa0484 */ swc1 $f10,0x484($sp) +/* f120be8: c7aa0590 */ lwc1 $f10,0x590($sp) +/* f120bec: 8fa50560 */ lw $a1,0x560($sp) +/* f120bf0: e7a60488 */ swc1 $f6,0x488($sp) +/* f120bf4: 46185102 */ mul.s $f4,$f10,$f24 +/* f120bf8: c7a60594 */ lwc1 $f6,0x594($sp) +/* f120bfc: e7a8048c */ swc1 $f8,0x48c($sp) +/* f120c00: c7aa0598 */ lwc1 $f10,0x598($sp) +/* f120c04: 46183202 */ mul.s $f8,$f6,$f24 +/* f120c08: 4600d180 */ add.s $f6,$f26,$f0 +/* f120c0c: e7b60448 */ swc1 $f22,0x448($sp) +/* f120c10: e7a4049c */ swc1 $f4,0x49c($sp) +/* f120c14: 46185102 */ mul.s $f4,$f10,$f24 +/* f120c18: 46006280 */ add.s $f10,$f12,$f0 +/* f120c1c: e7a6044c */ swc1 $f6,0x44c($sp) +/* f120c20: e7a804a0 */ swc1 $f8,0x4a0($sp) +/* f120c24: c7a60590 */ lwc1 $f6,0x590($sp) +/* f120c28: 4600a200 */ add.s $f8,$f20,$f0 +/* f120c2c: e7aa047c */ swc1 $f10,0x47c($sp) +/* f120c30: e7a404a4 */ swc1 $f4,0x4a4($sp) +/* f120c34: 46008100 */ add.s $f4,$f16,$f0 +/* f120c38: e7a80464 */ swc1 $f8,0x464($sp) +/* f120c3c: c7a80598 */ lwc1 $f8,0x598($sp) +/* f120c40: e7b20460 */ swc1 $f18,0x460($sp) +/* f120c44: e7a40494 */ swc1 $f4,0x494($sp) +/* f120c48: 46004280 */ add.s $f10,$f8,$f0 +/* f120c4c: e7a20478 */ swc1 $f2,0x478($sp) +/* f120c50: e7ae0490 */ swc1 $f14,0x490($sp) +/* f120c54: e7a604a8 */ swc1 $f6,0x4a8($sp) +/* f120c58: 0fc47dbb */ jal sky0f11f6ec +/* f120c5c: e7aa04ac */ swc1 $f10,0x4ac($sp) +/* f120c60: 27a40454 */ addiu $a0,$sp,0x454 +/* f120c64: 0fc47dbb */ jal sky0f11f6ec +/* f120c68: 8fa50564 */ lw $a1,0x564($sp) +/* f120c6c: 27a4046c */ addiu $a0,$sp,0x46c +/* f120c70: 0fc47dbb */ jal sky0f11f6ec +/* f120c74: 8fa5056c */ lw $a1,0x56c($sp) +/* f120c78: 27a40484 */ addiu $a0,$sp,0x484 +/* f120c7c: 0fc47dbb */ jal sky0f11f6ec +/* f120c80: 8fa5055c */ lw $a1,0x55c($sp) +/* f120c84: 27a4049c */ addiu $a0,$sp,0x49c +/* f120c88: 0fc47dbb */ jal sky0f11f6ec +/* f120c8c: 8fa50550 */ lw $a1,0x550($sp) +/* f120c90: 10000057 */ b .L0f120df0 +/* f120c94: 00000000 */ nop +/* f120c98: 3c017f1b */ lui $at,%hi(var7f1b5078) +/* f120c9c: c4385078 */ lwc1 $f24,%lo(var7f1b5078)($at) +/* f120ca0: c7ae05d8 */ lwc1 $f14,0x5d8($sp) +/* f120ca4: c7a605dc */ lwc1 $f6,0x5dc($sp) +/* f120ca8: c7b005e0 */ lwc1 $f16,0x5e0($sp) +/* f120cac: 46187102 */ mul.s $f4,$f14,$f24 +/* f120cb0: c7b605c0 */ lwc1 $f22,0x5c0($sp) +/* f120cb4: c7ba05c8 */ lwc1 $f26,0x5c8($sp) +/* f120cb8: 46183202 */ mul.s $f8,$f6,$f24 +/* f120cbc: c7a605c4 */ lwc1 $f6,0x5c4($sp) +/* f120cc0: c7b205cc */ lwc1 $f18,0x5cc($sp) +/* f120cc4: 46188282 */ mul.s $f10,$f16,$f24 +/* f120cc8: e7a4043c */ swc1 $f4,0x43c($sp) +/* f120ccc: c7b405d4 */ lwc1 $f20,0x5d4($sp) +/* f120cd0: 4618b102 */ mul.s $f4,$f22,$f24 +/* f120cd4: e7a80440 */ swc1 $f8,0x440($sp) +/* f120cd8: c7a2059c */ lwc1 $f2,0x59c($sp) +/* f120cdc: 46183202 */ mul.s $f8,$f6,$f24 +/* f120ce0: e7aa0444 */ swc1 $f10,0x444($sp) +/* f120ce4: c7a605d0 */ lwc1 $f6,0x5d0($sp) +/* f120ce8: 4618d282 */ mul.s $f10,$f26,$f24 +/* f120cec: e7a40454 */ swc1 $f4,0x454($sp) +/* f120cf0: c7ac05a4 */ lwc1 $f12,0x5a4($sp) +/* f120cf4: 46189102 */ mul.s $f4,$f18,$f24 +/* f120cf8: e7a80458 */ swc1 $f8,0x458($sp) +/* f120cfc: 3c018008 */ lui $at,%hi(var8007db80) +/* f120d00: 46183202 */ mul.s $f8,$f6,$f24 +/* f120d04: e7aa045c */ swc1 $f10,0x45c($sp) +/* f120d08: c7a605a0 */ lwc1 $f6,0x5a0($sp) +/* f120d0c: 4618a282 */ mul.s $f10,$f20,$f24 +/* f120d10: e7a4046c */ swc1 $f4,0x46c($sp) +/* f120d14: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f120d18: 46181102 */ mul.s $f4,$f2,$f24 +/* f120d1c: e7a80470 */ swc1 $f8,0x470($sp) +/* f120d20: 24110005 */ addiu $s1,$zero,0x5 +/* f120d24: 46183202 */ mul.s $f8,$f6,$f24 +/* f120d28: e7aa0474 */ swc1 $f10,0x474($sp) +/* f120d2c: 27a4043c */ addiu $a0,$sp,0x43c +/* f120d30: 46186282 */ mul.s $f10,$f12,$f24 +/* f120d34: e7a40484 */ swc1 $f4,0x484($sp) +/* f120d38: c7a405b4 */ lwc1 $f4,0x5b4($sp) +/* f120d3c: 8fa50568 */ lw $a1,0x568($sp) +/* f120d40: e7a80488 */ swc1 $f8,0x488($sp) +/* f120d44: 46182182 */ mul.s $f6,$f4,$f24 +/* f120d48: c7a805b8 */ lwc1 $f8,0x5b8($sp) +/* f120d4c: e7aa048c */ swc1 $f10,0x48c($sp) +/* f120d50: c7a405bc */ lwc1 $f4,0x5bc($sp) +/* f120d54: 46184282 */ mul.s $f10,$f8,$f24 +/* f120d58: 46008200 */ add.s $f8,$f16,$f0 +/* f120d5c: e7ae0448 */ swc1 $f14,0x448($sp) +/* f120d60: e7a6049c */ swc1 $f6,0x49c($sp) +/* f120d64: 46182182 */ mul.s $f6,$f4,$f24 +/* f120d68: 4600a100 */ add.s $f4,$f20,$f0 +/* f120d6c: e7a8044c */ swc1 $f8,0x44c($sp) +/* f120d70: e7aa04a0 */ swc1 $f10,0x4a0($sp) +/* f120d74: c7a805b4 */ lwc1 $f8,0x5b4($sp) +/* f120d78: 4600d280 */ add.s $f10,$f26,$f0 +/* f120d7c: e7a4047c */ swc1 $f4,0x47c($sp) +/* f120d80: e7a604a4 */ swc1 $f6,0x4a4($sp) +/* f120d84: 46006180 */ add.s $f6,$f12,$f0 +/* f120d88: e7aa0464 */ swc1 $f10,0x464($sp) +/* f120d8c: c7aa05bc */ lwc1 $f10,0x5bc($sp) +/* f120d90: e7b60460 */ swc1 $f22,0x460($sp) +/* f120d94: e7a60494 */ swc1 $f6,0x494($sp) +/* f120d98: 46005100 */ add.s $f4,$f10,$f0 +/* f120d9c: e7b20478 */ swc1 $f18,0x478($sp) +/* f120da0: e7a20490 */ swc1 $f2,0x490($sp) +/* f120da4: e7a804a8 */ swc1 $f8,0x4a8($sp) +/* f120da8: 0fc47dbb */ jal sky0f11f6ec +/* f120dac: e7a404ac */ swc1 $f4,0x4ac($sp) +/* f120db0: 27a40454 */ addiu $a0,$sp,0x454 +/* f120db4: 0fc47dbb */ jal sky0f11f6ec +/* f120db8: 8fa50560 */ lw $a1,0x560($sp) +/* f120dbc: 27a4046c */ addiu $a0,$sp,0x46c +/* f120dc0: 0fc47dbb */ jal sky0f11f6ec +/* f120dc4: 8fa50564 */ lw $a1,0x564($sp) +/* f120dc8: 27a40484 */ addiu $a0,$sp,0x484 +/* f120dcc: 0fc47dbb */ jal sky0f11f6ec +/* f120dd0: 8fa50554 */ lw $a1,0x554($sp) +/* f120dd4: 27a4049c */ addiu $a0,$sp,0x49c +/* f120dd8: 0fc47dbb */ jal sky0f11f6ec +/* f120ddc: 8fa5055c */ lw $a1,0x55c($sp) +/* f120de0: 10000003 */ b .L0f120df0 +/* f120de4: 00000000 */ nop +.L0f120de8: +/* f120de8: 100006af */ b .L0f1228a8 +/* f120dec: 8fa206b0 */ lw $v0,0x6b0($sp) +.L0f120df0: +/* f120df0: 5a200153 */ blezl $s1,.L0f121340 +/* f120df4: 8fae0068 */ lw $t6,0x68($sp) +/* f120df8: 0fc2d5c6 */ jal camGetUnk1754 +/* f120dfc: 00000000 */ nop +/* f120e00: 0fc2d5be */ jal camGetMatrix1740 +/* f120e04: 00408025 */ or $s0,$v0,$zero +/* f120e08: 02002025 */ or $a0,$s0,$zero +/* f120e0c: 00402825 */ or $a1,$v0,$zero +/* f120e10: 0c005680 */ jal mtx4MultMtx4 +/* f120e14: 27a603cc */ addiu $a2,$sp,0x3cc +/* f120e18: 3c013f80 */ lui $at,0x3f80 +/* f120e1c: 44813000 */ mtc1 $at,$f6 +/* f120e20: 3c04800a */ lui $a0,%hi(var800a33a8) +/* f120e24: 248433a8 */ addiu $a0,$a0,%lo(var800a33a8) +/* f120e28: 46183003 */ div.s $f0,$f6,$f24 +/* f120e2c: 44050000 */ mfc1 $a1,$f0 +/* f120e30: 44060000 */ mfc1 $a2,$f0 +/* f120e34: 44070000 */ mfc1 $a3,$f0 +/* f120e38: 0c014024 */ jal guScaleF +/* f120e3c: 00000000 */ nop +/* f120e40: 3c05800a */ lui $a1,%hi(var800a33a8) +/* f120e44: 24a533a8 */ addiu $a1,$a1,%lo(var800a33a8) +/* f120e48: 27a403cc */ addiu $a0,$sp,0x3cc +/* f120e4c: 0c005680 */ jal mtx4MultMtx4 +/* f120e50: 27a6038c */ addiu $a2,$sp,0x38c +/* f120e54: 1a20004e */ blez $s1,.L0f120f90 +/* f120e58: afa00270 */ sw $zero,0x270($sp) +/* f120e5c: 3c014080 */ lui $at,0x4080 +/* f120e60: 27a4043c */ addiu $a0,$sp,0x43c +/* f120e64: 4481d000 */ mtc1 $at,$f26 +/* f120e68: afa40064 */ sw $a0,0x64($sp) +/* f120e6c: 27b00274 */ addiu $s0,$sp,0x274 +.L0f120e70: +/* f120e70: 3c017f1b */ lui $at,%hi(var7f1b507c) +/* f120e74: c420507c */ lwc1 $f0,%lo(var7f1b507c)($at) +/* f120e78: 8fa40064 */ lw $a0,0x64($sp) +/* f120e7c: 27a5038c */ addiu $a1,$sp,0x38c +/* f120e80: 44070000 */ mfc1 $a3,$f0 +/* f120e84: 24060082 */ addiu $a2,$zero,0x82 +/* f120e88: afb00014 */ sw $s0,0x14($sp) +/* f120e8c: 0fc48a34 */ jal sky0f1228d0 +/* f120e90: e7a00010 */ swc1 $f0,0x10($sp) +/* f120e94: 0fc2d5fe */ jal camGetScreenLeft +/* f120e98: 00000000 */ nop +/* f120e9c: 0fc2d5fe */ jal camGetScreenLeft +/* f120ea0: 46000506 */ mov.s $f20,$f0 +/* f120ea4: 0fc2d5f6 */ jal camGetScreenWidth +/* f120ea8: 46000586 */ mov.s $f22,$f0 +/* f120eac: 46160200 */ add.s $f8,$f0,$f22 +/* f120eb0: 461aa382 */ mul.s $f14,$f20,$f26 +/* f120eb4: 3c013f80 */ lui $at,0x3f80 +/* f120eb8: 44812000 */ mtc1 $at,$f4 +/* f120ebc: 461a4282 */ mul.s $f10,$f8,$f26 +/* f120ec0: c60c0028 */ lwc1 $f12,0x28($s0) +/* f120ec4: 46045181 */ sub.s $f6,$f10,$f4 +/* f120ec8: 44063000 */ mfc1 $a2,$f6 +/* f120ecc: 0fc47cf4 */ jal sky0f11f3d0 +/* f120ed0: 00000000 */ nop +/* f120ed4: 0fc2d602 */ jal camGetScreenTop +/* f120ed8: e6000028 */ swc1 $f0,0x28($s0) +/* f120edc: 0fc2d602 */ jal camGetScreenTop +/* f120ee0: 46000506 */ mov.s $f20,$f0 +/* f120ee4: 0fc2d5fa */ jal camGetScreenHeight +/* f120ee8: 46000586 */ mov.s $f22,$f0 +/* f120eec: 46160200 */ add.s $f8,$f0,$f22 +/* f120ef0: 461aa382 */ mul.s $f14,$f20,$f26 +/* f120ef4: 3c013f80 */ lui $at,0x3f80 +/* f120ef8: 44812000 */ mtc1 $at,$f4 +/* f120efc: 461a4282 */ mul.s $f10,$f8,$f26 +/* f120f00: c60c002c */ lwc1 $f12,0x2c($s0) +/* f120f04: 46045181 */ sub.s $f6,$f10,$f4 +/* f120f08: 44063000 */ mfc1 $a2,$f6 +/* f120f0c: 0fc47cf4 */ jal sky0f11f3d0 +/* f120f10: 00000000 */ nop +/* f120f14: 0fc2d602 */ jal camGetScreenTop +/* f120f18: e600002c */ swc1 $f0,0x2c($s0) +/* f120f1c: 461a0202 */ mul.s $f8,$f0,$f26 +/* f120f20: c604002c */ lwc1 $f4,0x2c($s0) +/* f120f24: 461a4280 */ add.s $f10,$f8,$f26 +/* f120f28: 4604503c */ c.lt.s $f10,$f4 +/* f120f2c: 00000000 */ nop +/* f120f30: 45020010 */ bc1fl .L0f120f74 +/* f120f34: 8fae0064 */ lw $t6,0x64($sp) +/* f120f38: 0fc2d602 */ jal camGetScreenTop +/* f120f3c: 00000000 */ nop +/* f120f40: 0fc2d5fa */ jal camGetScreenHeight +/* f120f44: 46000506 */ mov.s $f20,$f0 +/* f120f48: 46140180 */ add.s $f6,$f0,$f20 +/* f120f4c: c602002c */ lwc1 $f2,0x2c($s0) +/* f120f50: 461a3202 */ mul.s $f8,$f6,$f26 +/* f120f54: 461a4281 */ sub.s $f10,$f8,$f26 +/* f120f58: 460a103c */ c.lt.s $f2,$f10 +/* f120f5c: 00000000 */ nop +/* f120f60: 45020004 */ bc1fl .L0f120f74 +/* f120f64: 8fae0064 */ lw $t6,0x64($sp) +/* f120f68: 461a1101 */ sub.s $f4,$f2,$f26 +/* f120f6c: e604002c */ swc1 $f4,0x2c($s0) +/* f120f70: 8fae0064 */ lw $t6,0x64($sp) +.L0f120f74: +/* f120f74: 8fa20270 */ lw $v0,0x270($sp) +/* f120f78: 26100038 */ addiu $s0,$s0,0x38 +/* f120f7c: 25c90018 */ addiu $t1,$t6,0x18 +/* f120f80: 24420001 */ addiu $v0,$v0,0x1 +/* f120f84: afa20270 */ sw $v0,0x270($sp) +/* f120f88: 1451ffb9 */ bne $v0,$s1,.L0f120e70 +/* f120f8c: afa90064 */ sw $t1,0x64($sp) +.L0f120f90: +/* f120f90: 8fac042c */ lw $t4,0x42c($sp) +/* f120f94: 8fb806b0 */ lw $t8,0x6b0($sp) +/* f120f98: 3c0ee700 */ lui $t6,0xe700 +/* f120f9c: 918b0028 */ lbu $t3,0x28($t4) +/* f120fa0: 27a406b0 */ addiu $a0,$sp,0x6b0 +/* f120fa4: 3c19800b */ lui $t9,%hi(g_TexWaterConfigs) +/* f120fa8: 1560006b */ bnez $t3,.L0f121158 +/* f120fac: 270a0008 */ addiu $t2,$t8,0x8 +/* f120fb0: 3c017f1b */ lui $at,%hi(var7f1b5080) +/* f120fb4: c42e5080 */ lwc1 $f14,%lo(var7f1b5080)($at) +/* f120fb8: 3c017f1b */ lui $at,%hi(var7f1b5084) +/* f120fbc: 44801000 */ mtc1 $zero,$f2 +/* f120fc0: 44806000 */ mtc1 $zero,$f12 +/* f120fc4: c4305084 */ lwc1 $f16,%lo(var7f1b5084)($at) +/* f120fc8: 1a20001b */ blez $s1,.L0f121038 +/* f120fcc: 00001825 */ or $v1,$zero,$zero +/* f120fd0: 27a20274 */ addiu $v0,$sp,0x274 +.L0f120fd4: +/* f120fd4: c4400028 */ lwc1 $f0,0x28($v0) +/* f120fd8: 24630001 */ addiu $v1,$v1,0x1 +/* f120fdc: 460e003c */ c.lt.s $f0,$f14 +/* f120fe0: 00000000 */ nop +/* f120fe4: 45020003 */ bc1fl .L0f120ff4 +/* f120fe8: 4600103c */ c.lt.s $f2,$f0 +/* f120fec: 46000386 */ mov.s $f14,$f0 +/* f120ff0: 4600103c */ c.lt.s $f2,$f0 +.L0f120ff4: +/* f120ff4: 00000000 */ nop +/* f120ff8: 45020003 */ bc1fl .L0f121008 +/* f120ffc: c440002c */ lwc1 $f0,0x2c($v0) +/* f121000: 46000086 */ mov.s $f2,$f0 +/* f121004: c440002c */ lwc1 $f0,0x2c($v0) +.L0f121008: +/* f121008: 4610003c */ c.lt.s $f0,$f16 +/* f12100c: 00000000 */ nop +/* f121010: 45020003 */ bc1fl .L0f121020 +/* f121014: 4600603c */ c.lt.s $f12,$f0 +/* f121018: 46000406 */ mov.s $f16,$f0 +/* f12101c: 4600603c */ c.lt.s $f12,$f0 +.L0f121020: +/* f121020: 00000000 */ nop +/* f121024: 45000002 */ bc1f .L0f121030 +/* f121028: 00000000 */ nop +/* f12102c: 46000306 */ mov.s $f12,$f0 +.L0f121030: +/* f121030: 1471ffe8 */ bne $v1,$s1,.L0f120fd4 +/* f121034: 24420038 */ addiu $v0,$v0,0x38 +.L0f121038: +/* f121038: 8faf06b0 */ lw $t7,0x6b0($sp) +/* f12103c: 3c19e700 */ lui $t9,0xe700 +/* f121040: 3c013e80 */ lui $at,0x3e80 +/* f121044: 25f80008 */ addiu $t8,$t7,0x8 +/* f121048: afb806b0 */ sw $t8,0x6b0($sp) +/* f12104c: ade00004 */ sw $zero,0x4($t7) +/* f121050: adf90000 */ sw $t9,0x0($t7) +/* f121054: 8fad06b0 */ lw $t5,0x6b0($sp) +/* f121058: 44810000 */ mtc1 $at,$f0 +/* f12105c: 3c0eba00 */ lui $t6,0xba00 +/* f121060: 25aa0008 */ addiu $t2,$t5,0x8 +/* f121064: afaa06b0 */ sw $t2,0x6b0($sp) +/* f121068: 46001182 */ mul.s $f6,$f2,$f0 +/* f12106c: 35ce1402 */ ori $t6,$t6,0x1402 +/* f121070: 3c090030 */ lui $t1,0x30 +/* f121074: ada90004 */ sw $t1,0x4($t5) +/* f121078: adae0000 */ sw $t6,0x0($t5) +/* f12107c: 8fac06b0 */ lw $t4,0x6b0($sp) +/* f121080: 46006282 */ mul.s $f10,$f12,$f0 +/* f121084: 3c0fb900 */ lui $t7,0xb900 +/* f121088: 258b0008 */ addiu $t3,$t4,0x8 +/* f12108c: afab06b0 */ sw $t3,0x6b0($sp) +/* f121090: 35ef031d */ ori $t7,$t7,0x31d +/* f121094: ad8f0000 */ sw $t7,0x0($t4) +/* f121098: 4600320d */ trunc.w.s $f8,$f6 +/* f12109c: ad800004 */ sw $zero,0x4($t4) +/* f1210a0: 46007182 */ mul.s $f6,$f14,$f0 +/* f1210a4: 8fb806b0 */ lw $t8,0x6b0($sp) +/* f1210a8: 3c07ba00 */ lui $a3,0xba00 +/* f1210ac: 34e71301 */ ori $a3,$a3,0x1301 +/* f1210b0: 27190008 */ addiu $t9,$t8,0x8 +/* f1210b4: afb906b0 */ sw $t9,0x6b0($sp) +/* f1210b8: 4600510d */ trunc.w.s $f4,$f10 +/* f1210bc: 46008282 */ mul.s $f10,$f16,$f0 +/* f1210c0: af000004 */ sw $zero,0x4($t8) +/* f1210c4: af070000 */ sw $a3,0x0($t8) +/* f1210c8: 8fa606b0 */ lw $a2,0x6b0($sp) +/* f1210cc: 44192000 */ mfc1 $t9,$f4 +/* f1210d0: 44094000 */ mfc1 $t1,$f8 +/* f1210d4: 4600320d */ trunc.w.s $f8,$f6 +/* f1210d8: 24ca0008 */ addiu $t2,$a2,0x8 +/* f1210dc: 312c03ff */ andi $t4,$t1,0x3ff +/* f1210e0: 4600510d */ trunc.w.s $f4,$f10 +/* f1210e4: 000c5b80 */ sll $t3,$t4,0xe +/* f1210e8: afaa06b0 */ sw $t2,0x6b0($sp) +/* f1210ec: 332d03ff */ andi $t5,$t9,0x3ff +/* f1210f0: 000d5080 */ sll $t2,$t5,0x2 +/* f1210f4: 3c01f600 */ lui $at,0xf600 +/* f1210f8: 440d2000 */ mfc1 $t5,$f4 +/* f1210fc: 440c4000 */ mfc1 $t4,$f8 +/* f121100: 01617825 */ or $t7,$t3,$at +/* f121104: 01ea7025 */ or $t6,$t7,$t2 +/* f121108: 31af03ff */ andi $t7,$t5,0x3ff +/* f12110c: 318b03ff */ andi $t3,$t4,0x3ff +/* f121110: 000bc380 */ sll $t8,$t3,0xe +/* f121114: 000f5080 */ sll $t2,$t7,0x2 +/* f121118: acce0000 */ sw $t6,0x0($a2) +/* f12111c: 030a7025 */ or $t6,$t8,$t2 +/* f121120: acce0004 */ sw $t6,0x4($a2) +/* f121124: 8fa906b0 */ lw $t1,0x6b0($sp) +/* f121128: 3c0be700 */ lui $t3,0xe700 +/* f12112c: 3c0f0008 */ lui $t7,0x8 +/* f121130: 252c0008 */ addiu $t4,$t1,0x8 +/* f121134: afac06b0 */ sw $t4,0x6b0($sp) +/* f121138: ad200004 */ sw $zero,0x4($t1) +/* f12113c: ad2b0000 */ sw $t3,0x0($t1) +/* f121140: 8fb906b0 */ lw $t9,0x6b0($sp) +/* f121144: 272d0008 */ addiu $t5,$t9,0x8 +/* f121148: afad06b0 */ sw $t5,0x6b0($sp) +/* f12114c: af2f0004 */ sw $t7,0x4($t9) +/* f121150: 1000007a */ b .L0f12133c +/* f121154: af270000 */ sw $a3,0x0($t9) +.L0f121158: +/* f121158: afaa06b0 */ sw $t2,0x6b0($sp) +/* f12115c: af000004 */ sw $zero,0x4($t8) +/* f121160: af0e0000 */ sw $t6,0x0($t8) +/* f121164: 8fa9042c */ lw $t1,0x42c($sp) +/* f121168: 8f39b598 */ lw $t9,%lo(g_TexWaterConfigs)($t9) +/* f12116c: 240d0002 */ addiu $t5,$zero,0x2 +/* f121170: 852c0030 */ lh $t4,0x30($t1) +/* f121174: 240f0001 */ addiu $t7,$zero,0x1 +/* f121178: afaf0014 */ sw $t7,0x14($sp) +/* f12117c: 000c5880 */ sll $t3,$t4,0x2 +/* f121180: 016c5823 */ subu $t3,$t3,$t4 +/* f121184: 000b5880 */ sll $t3,$t3,0x2 +/* f121188: afa00018 */ sw $zero,0x18($sp) +/* f12118c: afad0010 */ sw $t5,0x10($sp) +/* f121190: 24060001 */ addiu $a2,$zero,0x1 +/* f121194: 00003825 */ or $a3,$zero,$zero +/* f121198: 0fc2ce70 */ jal tex0f0b39c0 +/* f12119c: 01792821 */ addu $a1,$t3,$t9 +/* f1211a0: 8fb806b0 */ lw $t8,0x6b0($sp) +/* f1211a4: 3c0eb900 */ lui $t6,0xb900 +/* f1211a8: 3c090f0a */ lui $t1,0xf0a +/* f1211ac: 270a0008 */ addiu $t2,$t8,0x8 +/* f1211b0: afaa06b0 */ sw $t2,0x6b0($sp) +/* f1211b4: 35294000 */ ori $t1,$t1,0x4000 +/* f1211b8: 35ce031d */ ori $t6,$t6,0x31d +/* f1211bc: 24010004 */ addiu $at,$zero,0x4 +/* f1211c0: af0e0000 */ sw $t6,0x0($t8) +/* f1211c4: 1621002a */ bne $s1,$at,.L0f121270 +/* f1211c8: af090004 */ sw $t1,0x4($t8) +/* f1211cc: 3c014302 */ lui $at,0x4302 +/* f1211d0: 44813000 */ mtc1 $at,$f6 +/* f1211d4: 27b00274 */ addiu $s0,$sp,0x274 +/* f1211d8: 27b1031c */ addiu $s1,$sp,0x31c +/* f1211dc: 240c0001 */ addiu $t4,$zero,0x1 +/* f1211e0: afac0014 */ sw $t4,0x14($sp) +/* f1211e4: 02203825 */ or $a3,$s1,$zero +/* f1211e8: 02002825 */ or $a1,$s0,$zero +/* f1211ec: 8fa406b0 */ lw $a0,0x6b0($sp) +/* f1211f0: 27a602ac */ addiu $a2,$sp,0x2ac +/* f1211f4: 0fc48b53 */ jal sky0f122d4c +/* f1211f8: e7a60010 */ swc1 $f6,0x10($sp) +/* f1211fc: 8fab0430 */ lw $t3,0x430($sp) +/* f121200: 00402025 */ or $a0,$v0,$zero +/* f121204: 02202825 */ or $a1,$s1,$zero +/* f121208: 1160000f */ beqz $t3,.L0f121248 +/* f12120c: 27a602e4 */ addiu $a2,$sp,0x2e4 +/* f121210: 3c013f80 */ lui $at,0x3f80 +/* f121214: 44810000 */ mtc1 $at,$f0 +/* f121218: c7a802a0 */ lwc1 $f8,0x2a0($sp) +/* f12121c: c7a402d8 */ lwc1 $f4,0x2d8($sp) +/* f121220: 46004280 */ add.s $f10,$f8,$f0 +/* f121224: c7a80310 */ lwc1 $f8,0x310($sp) +/* f121228: 46002180 */ add.s $f6,$f4,$f0 +/* f12122c: c7a40348 */ lwc1 $f4,0x348($sp) +/* f121230: e7aa02a0 */ swc1 $f10,0x2a0($sp) +/* f121234: 46004280 */ add.s $f10,$f8,$f0 +/* f121238: e7a602d8 */ swc1 $f6,0x2d8($sp) +/* f12123c: 46002180 */ add.s $f6,$f4,$f0 +/* f121240: e7aa0310 */ swc1 $f10,0x310($sp) +/* f121244: e7a60348 */ swc1 $f6,0x348($sp) +.L0f121248: +/* f121248: 3c014302 */ lui $at,0x4302 +/* f12124c: 44814000 */ mtc1 $at,$f8 +/* f121250: 24190001 */ addiu $t9,$zero,0x1 +/* f121254: afb90014 */ sw $t9,0x14($sp) +/* f121258: 02003825 */ or $a3,$s0,$zero +/* f12125c: afa406b0 */ sw $a0,0x6b0($sp) +/* f121260: 0fc48b53 */ jal sky0f122d4c +/* f121264: e7a80010 */ swc1 $f8,0x10($sp) +/* f121268: 10000034 */ b .L0f12133c +/* f12126c: afa206b0 */ sw $v0,0x6b0($sp) +.L0f121270: +/* f121270: 24010005 */ addiu $at,$zero,0x5 +/* f121274: 16210024 */ bne $s1,$at,.L0f121308 +/* f121278: 27b00274 */ addiu $s0,$sp,0x274 +/* f12127c: 3c014302 */ lui $at,0x4302 +/* f121280: 44815000 */ mtc1 $at,$f10 +/* f121284: 240d0001 */ addiu $t5,$zero,0x1 +/* f121288: afad0014 */ sw $t5,0x14($sp) +/* f12128c: 8fa406b0 */ lw $a0,0x6b0($sp) +/* f121290: 02002825 */ or $a1,$s0,$zero +/* f121294: 27a602ac */ addiu $a2,$sp,0x2ac +/* f121298: 27a702e4 */ addiu $a3,$sp,0x2e4 +/* f12129c: 0fc48b53 */ jal sky0f122d4c +/* f1212a0: e7aa0010 */ swc1 $f10,0x10($sp) +/* f1212a4: 3c014302 */ lui $at,0x4302 +/* f1212a8: 44812000 */ mtc1 $at,$f4 +/* f1212ac: 27b1031c */ addiu $s1,$sp,0x31c +/* f1212b0: 240f0001 */ addiu $t7,$zero,0x1 +/* f1212b4: afa206b0 */ sw $v0,0x6b0($sp) +/* f1212b8: afaf0014 */ sw $t7,0x14($sp) +/* f1212bc: 02203825 */ or $a3,$s1,$zero +/* f1212c0: 00402025 */ or $a0,$v0,$zero +/* f1212c4: 02002825 */ or $a1,$s0,$zero +/* f1212c8: 27a602e4 */ addiu $a2,$sp,0x2e4 +/* f1212cc: 0fc48b53 */ jal sky0f122d4c +/* f1212d0: e7a40010 */ swc1 $f4,0x10($sp) +/* f1212d4: 3c014302 */ lui $at,0x4302 +/* f1212d8: 44813000 */ mtc1 $at,$f6 +/* f1212dc: 24180001 */ addiu $t8,$zero,0x1 +/* f1212e0: afa206b0 */ sw $v0,0x6b0($sp) +/* f1212e4: afb80014 */ sw $t8,0x14($sp) +/* f1212e8: 00402025 */ or $a0,$v0,$zero +/* f1212ec: 02002825 */ or $a1,$s0,$zero +/* f1212f0: 02203025 */ or $a2,$s1,$zero +/* f1212f4: 27a70354 */ addiu $a3,$sp,0x354 +/* f1212f8: 0fc48b53 */ jal sky0f122d4c +/* f1212fc: e7a60010 */ swc1 $f6,0x10($sp) +/* f121300: 1000000e */ b .L0f12133c +/* f121304: afa206b0 */ sw $v0,0x6b0($sp) +.L0f121308: +/* f121308: 24010003 */ addiu $at,$zero,0x3 +/* f12130c: 1621000b */ bne $s1,$at,.L0f12133c +/* f121310: 27a50274 */ addiu $a1,$sp,0x274 +/* f121314: 3c014302 */ lui $at,0x4302 +/* f121318: 44814000 */ mtc1 $at,$f8 +/* f12131c: 240a0001 */ addiu $t2,$zero,0x1 +/* f121320: afaa0014 */ sw $t2,0x14($sp) +/* f121324: 8fa406b0 */ lw $a0,0x6b0($sp) +/* f121328: 27a602ac */ addiu $a2,$sp,0x2ac +/* f12132c: 27a702e4 */ addiu $a3,$sp,0x2e4 +/* f121330: 0fc48b53 */ jal sky0f122d4c +/* f121334: e7a80010 */ swc1 $f8,0x10($sp) +/* f121338: afa206b0 */ sw $v0,0x6b0($sp) +.L0f12133c: +/* f12133c: 8fae0068 */ lw $t6,0x68($sp) +.L0f121340: +/* f121340: 3c014080 */ lui $at,0x4080 +/* f121344: 4481d000 */ mtc1 $at,$f26 +/* f121348: 2dc10010 */ sltiu $at,$t6,0x10 +/* f12134c: 1020040a */ beqz $at,.L0f122378 +/* f121350: 8fa306b0 */ lw $v1,0x6b0($sp) +/* f121354: 000e7080 */ sll $t6,$t6,0x2 +/* f121358: 3c017f1b */ lui $at,%hi(var7f1b5088) +/* f12135c: 002e0821 */ addu $at,$at,$t6 +/* f121360: 8c2e5088 */ lw $t6,%lo(var7f1b5088)($at) +/* f121364: 01c00008 */ jr $t6 +/* f121368: 00000000 */ nop +/* f12136c: 1000054e */ b .L0f1228a8 +/* f121370: 00601025 */ or $v0,$v1,$zero +/* f121374: c7a20644 */ lwc1 $f2,0x644($sp) +/* f121378: c7a40648 */ lwc1 $f4,0x648($sp) +/* f12137c: c7ac064c */ lwc1 $f12,0x64c($sp) +/* f121380: 46181282 */ mul.s $f10,$f2,$f24 +/* f121384: c7ae0638 */ lwc1 $f14,0x638($sp) +/* f121388: c7b00640 */ lwc1 $f16,0x640($sp) +/* f12138c: 46182182 */ mul.s $f6,$f4,$f24 +/* f121390: c7a4063c */ lwc1 $f4,0x63c($sp) +/* f121394: c7b2062c */ lwc1 $f18,0x62c($sp) +/* f121398: 46186202 */ mul.s $f8,$f12,$f24 +/* f12139c: e7aa04b4 */ swc1 $f10,0x4b4($sp) +/* f1213a0: c7b40634 */ lwc1 $f20,0x634($sp) +/* f1213a4: 46187282 */ mul.s $f10,$f14,$f24 +/* f1213a8: e7a604b8 */ swc1 $f6,0x4b8($sp) +/* f1213ac: c7b60620 */ lwc1 $f22,0x620($sp) +/* f1213b0: 46182182 */ mul.s $f6,$f4,$f24 +/* f1213b4: e7a804bc */ swc1 $f8,0x4bc($sp) +/* f1213b8: c7a40630 */ lwc1 $f4,0x630($sp) +/* f1213bc: 46188202 */ mul.s $f8,$f16,$f24 +/* f1213c0: e7aa04cc */ swc1 $f10,0x4cc($sp) +/* f1213c4: 3c018008 */ lui $at,%hi(var8007db80) +/* f1213c8: 46189282 */ mul.s $f10,$f18,$f24 +/* f1213cc: e7a604d0 */ swc1 $f6,0x4d0($sp) +/* f1213d0: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f1213d4: 46182182 */ mul.s $f6,$f4,$f24 +/* f1213d8: e7a804d4 */ swc1 $f8,0x4d4($sp) +/* f1213dc: c7a40624 */ lwc1 $f4,0x624($sp) +/* f1213e0: 4618a202 */ mul.s $f8,$f20,$f24 +/* f1213e4: e7aa04e4 */ swc1 $f10,0x4e4($sp) +/* f1213e8: 3c013f80 */ lui $at,0x3f80 +/* f1213ec: 4618b282 */ mul.s $f10,$f22,$f24 +/* f1213f0: e7a604e8 */ swc1 $f6,0x4e8($sp) +/* f1213f4: 24110004 */ addiu $s1,$zero,0x4 +/* f1213f8: 46182182 */ mul.s $f6,$f4,$f24 +/* f1213fc: e7a804ec */ swc1 $f8,0x4ec($sp) +/* f121400: c7a80628 */ lwc1 $f8,0x628($sp) +/* f121404: 27a404b4 */ addiu $a0,$sp,0x4b4 +/* f121408: e7aa04fc */ swc1 $f10,0x4fc($sp) +/* f12140c: 46184282 */ mul.s $f10,$f8,$f24 +/* f121410: 8fa5058c */ lw $a1,0x58c($sp) +/* f121414: e7a60500 */ swc1 $f6,0x500($sp) +/* f121418: 461c1102 */ mul.s $f4,$f2,$f28 +/* f12141c: 00000000 */ nop +/* f121420: 461c6182 */ mul.s $f6,$f12,$f28 +/* f121424: e7aa0504 */ swc1 $f10,0x504($sp) +/* f121428: 461c7282 */ mul.s $f10,$f14,$f28 +/* f12142c: e7a404c0 */ swc1 $f4,0x4c0($sp) +/* f121430: 461c8102 */ mul.s $f4,$f16,$f28 +/* f121434: 46003200 */ add.s $f8,$f6,$f0 +/* f121438: e7aa04d8 */ swc1 $f10,0x4d8($sp) +/* f12143c: e7a804c4 */ swc1 $f8,0x4c4($sp) +/* f121440: 461c9202 */ mul.s $f8,$f18,$f28 +/* f121444: 46002180 */ add.s $f6,$f4,$f0 +/* f121448: 461ca282 */ mul.s $f10,$f20,$f28 +/* f12144c: e7a604dc */ swc1 $f6,0x4dc($sp) +/* f121450: 461cb182 */ mul.s $f6,$f22,$f28 +/* f121454: e7a804f0 */ swc1 $f8,0x4f0($sp) +/* f121458: c7a80628 */ lwc1 $f8,0x628($sp) +/* f12145c: 46005100 */ add.s $f4,$f10,$f0 +/* f121460: 461c4282 */ mul.s $f10,$f8,$f28 +/* f121464: e7a60508 */ swc1 $f6,0x508($sp) +/* f121468: 44813000 */ mtc1 $at,$f6 +/* f12146c: e7a404f4 */ swc1 $f4,0x4f4($sp) +/* f121470: 46183203 */ div.s $f8,$f6,$f24 +/* f121474: 46005100 */ add.s $f4,$f10,$f0 +/* f121478: e7a4050c */ swc1 $f4,0x50c($sp) +/* f12147c: 0fc47d0e */ jal sky0f11f438 +/* f121480: e7a80064 */ swc1 $f8,0x64($sp) +/* f121484: 27a404cc */ addiu $a0,$sp,0x4cc +/* f121488: 0fc47d0e */ jal sky0f11f438 +/* f12148c: 8fa50588 */ lw $a1,0x588($sp) +/* f121490: 27a404e4 */ addiu $a0,$sp,0x4e4 +/* f121494: 0fc47d0e */ jal sky0f11f438 +/* f121498: 8fa50584 */ lw $a1,0x584($sp) +/* f12149c: 27a404fc */ addiu $a0,$sp,0x4fc +/* f1214a0: 0fc47d0e */ jal sky0f11f438 +/* f1214a4: 8fa50580 */ lw $a1,0x580($sp) +/* f1214a8: 100003b6 */ b .L0f122384 +/* f1214ac: 8fa906b0 */ lw $t1,0x6b0($sp) +/* f1214b0: c7a20644 */ lwc1 $f2,0x644($sp) +/* f1214b4: c7a40648 */ lwc1 $f4,0x648($sp) +/* f1214b8: c7ac064c */ lwc1 $f12,0x64c($sp) +/* f1214bc: 46181282 */ mul.s $f10,$f2,$f24 +/* f1214c0: c7ae0638 */ lwc1 $f14,0x638($sp) +/* f1214c4: c7b00640 */ lwc1 $f16,0x640($sp) +/* f1214c8: 46182182 */ mul.s $f6,$f4,$f24 +/* f1214cc: c7a4063c */ lwc1 $f4,0x63c($sp) +/* f1214d0: c7b205fc */ lwc1 $f18,0x5fc($sp) +/* f1214d4: 46186202 */ mul.s $f8,$f12,$f24 +/* f1214d8: e7aa04b4 */ swc1 $f10,0x4b4($sp) +/* f1214dc: c7b40604 */ lwc1 $f20,0x604($sp) +/* f1214e0: 46187282 */ mul.s $f10,$f14,$f24 +/* f1214e4: e7a604b8 */ swc1 $f6,0x4b8($sp) +/* f1214e8: c7b605f0 */ lwc1 $f22,0x5f0($sp) +/* f1214ec: 46182182 */ mul.s $f6,$f4,$f24 +/* f1214f0: e7a804bc */ swc1 $f8,0x4bc($sp) +/* f1214f4: c7a40600 */ lwc1 $f4,0x600($sp) +/* f1214f8: 46188202 */ mul.s $f8,$f16,$f24 +/* f1214fc: e7aa04cc */ swc1 $f10,0x4cc($sp) +/* f121500: 3c018008 */ lui $at,%hi(var8007db80) +/* f121504: 46189282 */ mul.s $f10,$f18,$f24 +/* f121508: e7a604d0 */ swc1 $f6,0x4d0($sp) +/* f12150c: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f121510: 46182182 */ mul.s $f6,$f4,$f24 +/* f121514: e7a804d4 */ swc1 $f8,0x4d4($sp) +/* f121518: c7a405f4 */ lwc1 $f4,0x5f4($sp) +/* f12151c: 4618a202 */ mul.s $f8,$f20,$f24 +/* f121520: e7aa04e4 */ swc1 $f10,0x4e4($sp) +/* f121524: 3c013f80 */ lui $at,0x3f80 +/* f121528: 4618b282 */ mul.s $f10,$f22,$f24 +/* f12152c: e7a604e8 */ swc1 $f6,0x4e8($sp) +/* f121530: 24110004 */ addiu $s1,$zero,0x4 +/* f121534: 46182182 */ mul.s $f6,$f4,$f24 +/* f121538: e7a804ec */ swc1 $f8,0x4ec($sp) +/* f12153c: c7a805f8 */ lwc1 $f8,0x5f8($sp) +/* f121540: 27a404b4 */ addiu $a0,$sp,0x4b4 +/* f121544: e7aa04fc */ swc1 $f10,0x4fc($sp) +/* f121548: 46184282 */ mul.s $f10,$f8,$f24 +/* f12154c: 8fa5058c */ lw $a1,0x58c($sp) +/* f121550: e7a60500 */ swc1 $f6,0x500($sp) +/* f121554: 461c1102 */ mul.s $f4,$f2,$f28 +/* f121558: 00000000 */ nop +/* f12155c: 461c6182 */ mul.s $f6,$f12,$f28 +/* f121560: e7aa0504 */ swc1 $f10,0x504($sp) +/* f121564: 461c7282 */ mul.s $f10,$f14,$f28 +/* f121568: e7a404c0 */ swc1 $f4,0x4c0($sp) +/* f12156c: 461c8102 */ mul.s $f4,$f16,$f28 +/* f121570: 46003200 */ add.s $f8,$f6,$f0 +/* f121574: e7aa04d8 */ swc1 $f10,0x4d8($sp) +/* f121578: e7a804c4 */ swc1 $f8,0x4c4($sp) +/* f12157c: 461c9202 */ mul.s $f8,$f18,$f28 +/* f121580: 46002180 */ add.s $f6,$f4,$f0 +/* f121584: 461ca282 */ mul.s $f10,$f20,$f28 +/* f121588: e7a604dc */ swc1 $f6,0x4dc($sp) +/* f12158c: 461cb182 */ mul.s $f6,$f22,$f28 +/* f121590: e7a804f0 */ swc1 $f8,0x4f0($sp) +/* f121594: c7a805f8 */ lwc1 $f8,0x5f8($sp) +/* f121598: 46005100 */ add.s $f4,$f10,$f0 +/* f12159c: 461c4282 */ mul.s $f10,$f8,$f28 +/* f1215a0: e7a60508 */ swc1 $f6,0x508($sp) +/* f1215a4: 44813000 */ mtc1 $at,$f6 +/* f1215a8: e7a404f4 */ swc1 $f4,0x4f4($sp) +/* f1215ac: 46183203 */ div.s $f8,$f6,$f24 +/* f1215b0: 46005100 */ add.s $f4,$f10,$f0 +/* f1215b4: e7a4050c */ swc1 $f4,0x50c($sp) +/* f1215b8: 0fc47d0e */ jal sky0f11f438 +/* f1215bc: e7a80064 */ swc1 $f8,0x64($sp) +/* f1215c0: 27a404cc */ addiu $a0,$sp,0x4cc +/* f1215c4: 0fc47d0e */ jal sky0f11f438 +/* f1215c8: 8fa50588 */ lw $a1,0x588($sp) +/* f1215cc: 27a404e4 */ addiu $a0,$sp,0x4e4 +/* f1215d0: 0fc47d0e */ jal sky0f11f438 +/* f1215d4: 8fa50574 */ lw $a1,0x574($sp) +/* f1215d8: 27a404fc */ addiu $a0,$sp,0x4fc +/* f1215dc: 0fc47d0e */ jal sky0f11f438 +/* f1215e0: 8fa50570 */ lw $a1,0x570($sp) +/* f1215e4: 10000367 */ b .L0f122384 +/* f1215e8: 8fa906b0 */ lw $t1,0x6b0($sp) +/* f1215ec: c7b60620 */ lwc1 $f22,0x620($sp) +/* f1215f0: c7a40624 */ lwc1 $f4,0x624($sp) +/* f1215f4: c7a20628 */ lwc1 $f2,0x628($sp) +/* f1215f8: 4618b282 */ mul.s $f10,$f22,$f24 +/* f1215fc: c7b2062c */ lwc1 $f18,0x62c($sp) +/* f121600: c7b40634 */ lwc1 $f20,0x634($sp) +/* f121604: 46182182 */ mul.s $f6,$f4,$f24 +/* f121608: c7a40630 */ lwc1 $f4,0x630($sp) +/* f12160c: c7b005f0 */ lwc1 $f16,0x5f0($sp) +/* f121610: 46181202 */ mul.s $f8,$f2,$f24 +/* f121614: e7aa04b4 */ swc1 $f10,0x4b4($sp) +/* f121618: c7ac05fc */ lwc1 $f12,0x5fc($sp) +/* f12161c: 46189282 */ mul.s $f10,$f18,$f24 +/* f121620: e7a604b8 */ swc1 $f6,0x4b8($sp) +/* f121624: c7ae0604 */ lwc1 $f14,0x604($sp) +/* f121628: 46182182 */ mul.s $f6,$f4,$f24 +/* f12162c: e7a804bc */ swc1 $f8,0x4bc($sp) +/* f121630: c7a405f4 */ lwc1 $f4,0x5f4($sp) +/* f121634: 4618a202 */ mul.s $f8,$f20,$f24 +/* f121638: e7aa04cc */ swc1 $f10,0x4cc($sp) +/* f12163c: 3c018008 */ lui $at,%hi(var8007db80) +/* f121640: 46188282 */ mul.s $f10,$f16,$f24 +/* f121644: e7a604d0 */ swc1 $f6,0x4d0($sp) +/* f121648: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f12164c: 46182182 */ mul.s $f6,$f4,$f24 +/* f121650: e7a804d4 */ swc1 $f8,0x4d4($sp) +/* f121654: c7a805f8 */ lwc1 $f8,0x5f8($sp) +/* f121658: 3c013f80 */ lui $at,0x3f80 +/* f12165c: e7aa04e4 */ swc1 $f10,0x4e4($sp) +/* f121660: 46184282 */ mul.s $f10,$f8,$f24 +/* f121664: 24110004 */ addiu $s1,$zero,0x4 +/* f121668: e7a604e8 */ swc1 $f6,0x4e8($sp) +/* f12166c: 46186102 */ mul.s $f4,$f12,$f24 +/* f121670: c7a60600 */ lwc1 $f6,0x600($sp) +/* f121674: 27a404b4 */ addiu $a0,$sp,0x4b4 +/* f121678: 8fa50580 */ lw $a1,0x580($sp) +/* f12167c: 46183202 */ mul.s $f8,$f6,$f24 +/* f121680: e7aa04ec */ swc1 $f10,0x4ec($sp) +/* f121684: 46187282 */ mul.s $f10,$f14,$f24 +/* f121688: e7a404fc */ swc1 $f4,0x4fc($sp) +/* f12168c: 461cb102 */ mul.s $f4,$f22,$f28 +/* f121690: e7a80500 */ swc1 $f8,0x500($sp) +/* f121694: 461c1182 */ mul.s $f6,$f2,$f28 +/* f121698: e7aa0504 */ swc1 $f10,0x504($sp) +/* f12169c: 461c9282 */ mul.s $f10,$f18,$f28 +/* f1216a0: e7a404c0 */ swc1 $f4,0x4c0($sp) +/* f1216a4: 461ca102 */ mul.s $f4,$f20,$f28 +/* f1216a8: 46003200 */ add.s $f8,$f6,$f0 +/* f1216ac: e7aa04d8 */ swc1 $f10,0x4d8($sp) +/* f1216b0: c7aa05f8 */ lwc1 $f10,0x5f8($sp) +/* f1216b4: e7a804c4 */ swc1 $f8,0x4c4($sp) +/* f1216b8: 461c8202 */ mul.s $f8,$f16,$f28 +/* f1216bc: 46002180 */ add.s $f6,$f4,$f0 +/* f1216c0: 461c5102 */ mul.s $f4,$f10,$f28 +/* f1216c4: e7a604dc */ swc1 $f6,0x4dc($sp) +/* f1216c8: e7a804f0 */ swc1 $f8,0x4f0($sp) +/* f1216cc: 461c6202 */ mul.s $f8,$f12,$f28 +/* f1216d0: 46002180 */ add.s $f6,$f4,$f0 +/* f1216d4: 461c7282 */ mul.s $f10,$f14,$f28 +/* f1216d8: e7a604f4 */ swc1 $f6,0x4f4($sp) +/* f1216dc: 44813000 */ mtc1 $at,$f6 +/* f1216e0: e7a80508 */ swc1 $f8,0x508($sp) +/* f1216e4: 46183203 */ div.s $f8,$f6,$f24 +/* f1216e8: 46005100 */ add.s $f4,$f10,$f0 +/* f1216ec: e7a4050c */ swc1 $f4,0x50c($sp) +/* f1216f0: 0fc47d0e */ jal sky0f11f438 +/* f1216f4: e7a80064 */ swc1 $f8,0x64($sp) +/* f1216f8: 27a404cc */ addiu $a0,$sp,0x4cc +/* f1216fc: 0fc47d0e */ jal sky0f11f438 +/* f121700: 8fa50584 */ lw $a1,0x584($sp) +/* f121704: 27a404e4 */ addiu $a0,$sp,0x4e4 +/* f121708: 0fc47d0e */ jal sky0f11f438 +/* f12170c: 8fa50570 */ lw $a1,0x570($sp) +/* f121710: 27a404fc */ addiu $a0,$sp,0x4fc +/* f121714: 0fc47d0e */ jal sky0f11f438 +/* f121718: 8fa50574 */ lw $a1,0x574($sp) +/* f12171c: 10000319 */ b .L0f122384 +/* f121720: 8fa906b0 */ lw $t1,0x6b0($sp) +/* f121724: c7ae0638 */ lwc1 $f14,0x638($sp) +/* f121728: c7a4063c */ lwc1 $f4,0x63c($sp) +/* f12172c: c7b00640 */ lwc1 $f16,0x640($sp) +/* f121730: 46187282 */ mul.s $f10,$f14,$f24 +/* f121734: c7b60620 */ lwc1 $f22,0x620($sp) +/* f121738: c7a20628 */ lwc1 $f2,0x628($sp) +/* f12173c: 46182182 */ mul.s $f6,$f4,$f24 +/* f121740: c7a40624 */ lwc1 $f4,0x624($sp) +/* f121744: c7b40614 */ lwc1 $f20,0x614($sp) +/* f121748: 46188202 */ mul.s $f8,$f16,$f24 +/* f12174c: e7aa04b4 */ swc1 $f10,0x4b4($sp) +/* f121750: c7ac0608 */ lwc1 $f12,0x608($sp) +/* f121754: 4618b282 */ mul.s $f10,$f22,$f24 +/* f121758: e7a604b8 */ swc1 $f6,0x4b8($sp) +/* f12175c: c7b20610 */ lwc1 $f18,0x610($sp) +/* f121760: 46182182 */ mul.s $f6,$f4,$f24 +/* f121764: e7a804bc */ swc1 $f8,0x4bc($sp) +/* f121768: c7a40618 */ lwc1 $f4,0x618($sp) +/* f12176c: 46181202 */ mul.s $f8,$f2,$f24 +/* f121770: e7aa04cc */ swc1 $f10,0x4cc($sp) +/* f121774: 3c018008 */ lui $at,%hi(var8007db80) +/* f121778: 4618a282 */ mul.s $f10,$f20,$f24 +/* f12177c: e7a604d0 */ swc1 $f6,0x4d0($sp) +/* f121780: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f121784: 46182182 */ mul.s $f6,$f4,$f24 +/* f121788: e7a804d4 */ swc1 $f8,0x4d4($sp) +/* f12178c: c7a8061c */ lwc1 $f8,0x61c($sp) +/* f121790: 3c013f80 */ lui $at,0x3f80 +/* f121794: e7aa04e4 */ swc1 $f10,0x4e4($sp) +/* f121798: 46184282 */ mul.s $f10,$f8,$f24 +/* f12179c: 24110004 */ addiu $s1,$zero,0x4 +/* f1217a0: e7a604e8 */ swc1 $f6,0x4e8($sp) +/* f1217a4: 46186102 */ mul.s $f4,$f12,$f24 +/* f1217a8: c7a6060c */ lwc1 $f6,0x60c($sp) +/* f1217ac: 27a404b4 */ addiu $a0,$sp,0x4b4 +/* f1217b0: 8fa50588 */ lw $a1,0x588($sp) +/* f1217b4: 46183202 */ mul.s $f8,$f6,$f24 +/* f1217b8: e7aa04ec */ swc1 $f10,0x4ec($sp) +/* f1217bc: 46189282 */ mul.s $f10,$f18,$f24 +/* f1217c0: e7a404fc */ swc1 $f4,0x4fc($sp) +/* f1217c4: 461c7102 */ mul.s $f4,$f14,$f28 +/* f1217c8: e7a80500 */ swc1 $f8,0x500($sp) +/* f1217cc: 461c8182 */ mul.s $f6,$f16,$f28 +/* f1217d0: e7aa0504 */ swc1 $f10,0x504($sp) +/* f1217d4: 461cb282 */ mul.s $f10,$f22,$f28 +/* f1217d8: e7a404c0 */ swc1 $f4,0x4c0($sp) +/* f1217dc: 461c1102 */ mul.s $f4,$f2,$f28 +/* f1217e0: 46003200 */ add.s $f8,$f6,$f0 +/* f1217e4: e7aa04d8 */ swc1 $f10,0x4d8($sp) +/* f1217e8: c7aa061c */ lwc1 $f10,0x61c($sp) +/* f1217ec: e7a804c4 */ swc1 $f8,0x4c4($sp) +/* f1217f0: 461ca202 */ mul.s $f8,$f20,$f28 +/* f1217f4: 46002180 */ add.s $f6,$f4,$f0 +/* f1217f8: 461c5102 */ mul.s $f4,$f10,$f28 +/* f1217fc: e7a604dc */ swc1 $f6,0x4dc($sp) +/* f121800: e7a804f0 */ swc1 $f8,0x4f0($sp) +/* f121804: 461c6202 */ mul.s $f8,$f12,$f28 +/* f121808: 46002180 */ add.s $f6,$f4,$f0 +/* f12180c: 461c9282 */ mul.s $f10,$f18,$f28 +/* f121810: e7a604f4 */ swc1 $f6,0x4f4($sp) +/* f121814: 44813000 */ mtc1 $at,$f6 +/* f121818: e7a80508 */ swc1 $f8,0x508($sp) +/* f12181c: 46183203 */ div.s $f8,$f6,$f24 +/* f121820: 46005100 */ add.s $f4,$f10,$f0 +/* f121824: e7a4050c */ swc1 $f4,0x50c($sp) +/* f121828: 0fc47d0e */ jal sky0f11f438 +/* f12182c: e7a80064 */ swc1 $f8,0x64($sp) +/* f121830: 27a404cc */ addiu $a0,$sp,0x4cc +/* f121834: 0fc47d0e */ jal sky0f11f438 +/* f121838: 8fa50580 */ lw $a1,0x580($sp) +/* f12183c: 27a404e4 */ addiu $a0,$sp,0x4e4 +/* f121840: 0fc47d0e */ jal sky0f11f438 +/* f121844: 8fa5057c */ lw $a1,0x57c($sp) +/* f121848: 27a404fc */ addiu $a0,$sp,0x4fc +/* f12184c: 0fc47d0e */ jal sky0f11f438 +/* f121850: 8fa50578 */ lw $a1,0x578($sp) +/* f121854: 100002cb */ b .L0f122384 +/* f121858: 8fa906b0 */ lw $t1,0x6b0($sp) +/* f12185c: c7b2062c */ lwc1 $f18,0x62c($sp) +/* f121860: c7a40630 */ lwc1 $f4,0x630($sp) +/* f121864: c7b40634 */ lwc1 $f20,0x634($sp) +/* f121868: 46189282 */ mul.s $f10,$f18,$f24 +/* f12186c: c7a20644 */ lwc1 $f2,0x644($sp) +/* f121870: c7ac064c */ lwc1 $f12,0x64c($sp) +/* f121874: 46182182 */ mul.s $f6,$f4,$f24 +/* f121878: c7a40648 */ lwc1 $f4,0x648($sp) +/* f12187c: c7b60608 */ lwc1 $f22,0x608($sp) +/* f121880: 4618a202 */ mul.s $f8,$f20,$f24 +/* f121884: e7aa04b4 */ swc1 $f10,0x4b4($sp) +/* f121888: c7ae0614 */ lwc1 $f14,0x614($sp) +/* f12188c: 46181282 */ mul.s $f10,$f2,$f24 +/* f121890: e7a604b8 */ swc1 $f6,0x4b8($sp) +/* f121894: c7b0061c */ lwc1 $f16,0x61c($sp) +/* f121898: 46182182 */ mul.s $f6,$f4,$f24 +/* f12189c: e7a804bc */ swc1 $f8,0x4bc($sp) +/* f1218a0: c7a4060c */ lwc1 $f4,0x60c($sp) +/* f1218a4: 46186202 */ mul.s $f8,$f12,$f24 +/* f1218a8: e7aa04cc */ swc1 $f10,0x4cc($sp) +/* f1218ac: 3c018008 */ lui $at,%hi(var8007db80) +/* f1218b0: 4618b282 */ mul.s $f10,$f22,$f24 +/* f1218b4: e7a604d0 */ swc1 $f6,0x4d0($sp) +/* f1218b8: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f1218bc: 46182182 */ mul.s $f6,$f4,$f24 +/* f1218c0: e7a804d4 */ swc1 $f8,0x4d4($sp) +/* f1218c4: c7a80610 */ lwc1 $f8,0x610($sp) +/* f1218c8: 3c013f80 */ lui $at,0x3f80 +/* f1218cc: e7aa04e4 */ swc1 $f10,0x4e4($sp) +/* f1218d0: 46184282 */ mul.s $f10,$f8,$f24 +/* f1218d4: 24110004 */ addiu $s1,$zero,0x4 +/* f1218d8: e7a604e8 */ swc1 $f6,0x4e8($sp) +/* f1218dc: 46187102 */ mul.s $f4,$f14,$f24 +/* f1218e0: c7a60618 */ lwc1 $f6,0x618($sp) +/* f1218e4: 27a404b4 */ addiu $a0,$sp,0x4b4 +/* f1218e8: 8fa50584 */ lw $a1,0x584($sp) +/* f1218ec: 46183202 */ mul.s $f8,$f6,$f24 +/* f1218f0: e7aa04ec */ swc1 $f10,0x4ec($sp) +/* f1218f4: 46188282 */ mul.s $f10,$f16,$f24 +/* f1218f8: e7a404fc */ swc1 $f4,0x4fc($sp) +/* f1218fc: 461c9102 */ mul.s $f4,$f18,$f28 +/* f121900: e7a80500 */ swc1 $f8,0x500($sp) +/* f121904: 461ca182 */ mul.s $f6,$f20,$f28 +/* f121908: e7aa0504 */ swc1 $f10,0x504($sp) +/* f12190c: 461c1282 */ mul.s $f10,$f2,$f28 +/* f121910: e7a404c0 */ swc1 $f4,0x4c0($sp) +/* f121914: 461c6102 */ mul.s $f4,$f12,$f28 +/* f121918: 46003200 */ add.s $f8,$f6,$f0 +/* f12191c: e7aa04d8 */ swc1 $f10,0x4d8($sp) +/* f121920: c7aa0610 */ lwc1 $f10,0x610($sp) +/* f121924: e7a804c4 */ swc1 $f8,0x4c4($sp) +/* f121928: 461cb202 */ mul.s $f8,$f22,$f28 +/* f12192c: 46002180 */ add.s $f6,$f4,$f0 +/* f121930: 461c5102 */ mul.s $f4,$f10,$f28 +/* f121934: e7a604dc */ swc1 $f6,0x4dc($sp) +/* f121938: e7a804f0 */ swc1 $f8,0x4f0($sp) +/* f12193c: 461c7202 */ mul.s $f8,$f14,$f28 +/* f121940: 46002180 */ add.s $f6,$f4,$f0 +/* f121944: 461c8282 */ mul.s $f10,$f16,$f28 +/* f121948: e7a604f4 */ swc1 $f6,0x4f4($sp) +/* f12194c: 44813000 */ mtc1 $at,$f6 +/* f121950: e7a80508 */ swc1 $f8,0x508($sp) +/* f121954: 46183203 */ div.s $f8,$f6,$f24 +/* f121958: 46005100 */ add.s $f4,$f10,$f0 +/* f12195c: e7a4050c */ swc1 $f4,0x50c($sp) +/* f121960: 0fc47d0e */ jal sky0f11f438 +/* f121964: e7a80064 */ swc1 $f8,0x64($sp) +/* f121968: 27a404cc */ addiu $a0,$sp,0x4cc +/* f12196c: 0fc47d0e */ jal sky0f11f438 +/* f121970: 8fa5058c */ lw $a1,0x58c($sp) +/* f121974: 27a404e4 */ addiu $a0,$sp,0x4e4 +/* f121978: 0fc47d0e */ jal sky0f11f438 +/* f12197c: 8fa50578 */ lw $a1,0x578($sp) +/* f121980: 27a404fc */ addiu $a0,$sp,0x4fc +/* f121984: 0fc47d0e */ jal sky0f11f438 +/* f121988: 8fa5057c */ lw $a1,0x57c($sp) +/* f12198c: 1000027d */ b .L0f122384 +/* f121990: 8fa906b0 */ lw $t1,0x6b0($sp) +/* f121994: c7b60620 */ lwc1 $f22,0x620($sp) +/* f121998: c7a40624 */ lwc1 $f4,0x624($sp) +/* f12199c: c7a20628 */ lwc1 $f2,0x628($sp) +/* f1219a0: 4618b282 */ mul.s $f10,$f22,$f24 +/* f1219a4: c7ae0608 */ lwc1 $f14,0x608($sp) +/* f1219a8: c7b20610 */ lwc1 $f18,0x610($sp) +/* f1219ac: 46182182 */ mul.s $f6,$f4,$f24 +/* f1219b0: c7a4060c */ lwc1 $f4,0x60c($sp) +/* f1219b4: c7b005f0 */ lwc1 $f16,0x5f0($sp) +/* f1219b8: 46181202 */ mul.s $f8,$f2,$f24 +/* f1219bc: e7aa04b4 */ swc1 $f10,0x4b4($sp) +/* f1219c0: c7ac05f8 */ lwc1 $f12,0x5f8($sp) +/* f1219c4: 46187282 */ mul.s $f10,$f14,$f24 +/* f1219c8: e7a604b8 */ swc1 $f6,0x4b8($sp) +/* f1219cc: 3c018008 */ lui $at,%hi(var8007db80) +/* f1219d0: 46182182 */ mul.s $f6,$f4,$f24 +/* f1219d4: e7a804bc */ swc1 $f8,0x4bc($sp) +/* f1219d8: c7a405f4 */ lwc1 $f4,0x5f4($sp) +/* f1219dc: 46189202 */ mul.s $f8,$f18,$f24 +/* f1219e0: e7aa04cc */ swc1 $f10,0x4cc($sp) +/* f1219e4: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f1219e8: 46188282 */ mul.s $f10,$f16,$f24 +/* f1219ec: e7a604d0 */ swc1 $f6,0x4d0($sp) +/* f1219f0: 3c013f80 */ lui $at,0x3f80 +/* f1219f4: 46182182 */ mul.s $f6,$f4,$f24 +/* f1219f8: e7a804d4 */ swc1 $f8,0x4d4($sp) +/* f1219fc: 24110003 */ addiu $s1,$zero,0x3 +/* f121a00: 46186202 */ mul.s $f8,$f12,$f24 +/* f121a04: e7aa04e4 */ swc1 $f10,0x4e4($sp) +/* f121a08: 27a404b4 */ addiu $a0,$sp,0x4b4 +/* f121a0c: 461cb282 */ mul.s $f10,$f22,$f28 +/* f121a10: e7a604e8 */ swc1 $f6,0x4e8($sp) +/* f121a14: 8fa50580 */ lw $a1,0x580($sp) +/* f121a18: 461c1102 */ mul.s $f4,$f2,$f28 +/* f121a1c: e7a804ec */ swc1 $f8,0x4ec($sp) +/* f121a20: 461c7202 */ mul.s $f8,$f14,$f28 +/* f121a24: e7aa04c0 */ swc1 $f10,0x4c0($sp) +/* f121a28: 461c9282 */ mul.s $f10,$f18,$f28 +/* f121a2c: 46002180 */ add.s $f6,$f4,$f0 +/* f121a30: e7a804d8 */ swc1 $f8,0x4d8($sp) +/* f121a34: e7a604c4 */ swc1 $f6,0x4c4($sp) +/* f121a38: 461c8182 */ mul.s $f6,$f16,$f28 +/* f121a3c: 46005100 */ add.s $f4,$f10,$f0 +/* f121a40: 461c6202 */ mul.s $f8,$f12,$f28 +/* f121a44: e7a404dc */ swc1 $f4,0x4dc($sp) +/* f121a48: 44812000 */ mtc1 $at,$f4 +/* f121a4c: e7a604f0 */ swc1 $f6,0x4f0($sp) +/* f121a50: 46182183 */ div.s $f6,$f4,$f24 +/* f121a54: 46004280 */ add.s $f10,$f8,$f0 +/* f121a58: e7aa04f4 */ swc1 $f10,0x4f4($sp) +/* f121a5c: 0fc47d0e */ jal sky0f11f438 +/* f121a60: e7a60064 */ swc1 $f6,0x64($sp) +/* f121a64: 27a404cc */ addiu $a0,$sp,0x4cc +/* f121a68: 0fc47d0e */ jal sky0f11f438 +/* f121a6c: 8fa50578 */ lw $a1,0x578($sp) +/* f121a70: 27a404e4 */ addiu $a0,$sp,0x4e4 +/* f121a74: 0fc47d0e */ jal sky0f11f438 +/* f121a78: 8fa50570 */ lw $a1,0x570($sp) +/* f121a7c: 10000241 */ b .L0f122384 +/* f121a80: 8fa906b0 */ lw $t1,0x6b0($sp) +/* f121a84: c7b2062c */ lwc1 $f18,0x62c($sp) +/* f121a88: c7aa0630 */ lwc1 $f10,0x630($sp) +/* f121a8c: c7b40634 */ lwc1 $f20,0x634($sp) +/* f121a90: 46189202 */ mul.s $f8,$f18,$f24 +/* f121a94: c7ac05fc */ lwc1 $f12,0x5fc($sp) +/* f121a98: c7ae0604 */ lwc1 $f14,0x604($sp) +/* f121a9c: 46185102 */ mul.s $f4,$f10,$f24 +/* f121aa0: c7aa0600 */ lwc1 $f10,0x600($sp) +/* f121aa4: c7a20608 */ lwc1 $f2,0x608($sp) +/* f121aa8: 4618a182 */ mul.s $f6,$f20,$f24 +/* f121aac: e7a804b4 */ swc1 $f8,0x4b4($sp) +/* f121ab0: c7b00610 */ lwc1 $f16,0x610($sp) +/* f121ab4: 46186202 */ mul.s $f8,$f12,$f24 +/* f121ab8: e7a404b8 */ swc1 $f4,0x4b8($sp) +/* f121abc: 3c018008 */ lui $at,%hi(var8007db80) +/* f121ac0: 46185102 */ mul.s $f4,$f10,$f24 +/* f121ac4: e7a604bc */ swc1 $f6,0x4bc($sp) +/* f121ac8: c7aa060c */ lwc1 $f10,0x60c($sp) +/* f121acc: 46187182 */ mul.s $f6,$f14,$f24 +/* f121ad0: e7a804cc */ swc1 $f8,0x4cc($sp) +/* f121ad4: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f121ad8: 46181202 */ mul.s $f8,$f2,$f24 +/* f121adc: e7a404d0 */ swc1 $f4,0x4d0($sp) +/* f121ae0: 3c013f80 */ lui $at,0x3f80 +/* f121ae4: 46185102 */ mul.s $f4,$f10,$f24 +/* f121ae8: e7a604d4 */ swc1 $f6,0x4d4($sp) +/* f121aec: 24110003 */ addiu $s1,$zero,0x3 +/* f121af0: 46188182 */ mul.s $f6,$f16,$f24 +/* f121af4: e7a804e4 */ swc1 $f8,0x4e4($sp) +/* f121af8: 27a404b4 */ addiu $a0,$sp,0x4b4 +/* f121afc: 461c9202 */ mul.s $f8,$f18,$f28 +/* f121b00: e7a404e8 */ swc1 $f4,0x4e8($sp) +/* f121b04: 8fa50584 */ lw $a1,0x584($sp) +/* f121b08: 461ca282 */ mul.s $f10,$f20,$f28 +/* f121b0c: e7a604ec */ swc1 $f6,0x4ec($sp) +/* f121b10: 461c6182 */ mul.s $f6,$f12,$f28 +/* f121b14: e7a804c0 */ swc1 $f8,0x4c0($sp) +/* f121b18: 461c7202 */ mul.s $f8,$f14,$f28 +/* f121b1c: 46005100 */ add.s $f4,$f10,$f0 +/* f121b20: e7a604d8 */ swc1 $f6,0x4d8($sp) +/* f121b24: e7a404c4 */ swc1 $f4,0x4c4($sp) +/* f121b28: 461c1102 */ mul.s $f4,$f2,$f28 +/* f121b2c: 46004280 */ add.s $f10,$f8,$f0 +/* f121b30: 461c8182 */ mul.s $f6,$f16,$f28 +/* f121b34: e7aa04dc */ swc1 $f10,0x4dc($sp) +/* f121b38: 44815000 */ mtc1 $at,$f10 +/* f121b3c: e7a404f0 */ swc1 $f4,0x4f0($sp) +/* f121b40: 46185103 */ div.s $f4,$f10,$f24 +/* f121b44: 46003200 */ add.s $f8,$f6,$f0 +/* f121b48: e7a804f4 */ swc1 $f8,0x4f4($sp) +/* f121b4c: 0fc47d0e */ jal sky0f11f438 +/* f121b50: e7a40064 */ swc1 $f4,0x64($sp) +/* f121b54: 27a404cc */ addiu $a0,$sp,0x4cc +/* f121b58: 0fc47d0e */ jal sky0f11f438 +/* f121b5c: 8fa50574 */ lw $a1,0x574($sp) +/* f121b60: 27a404e4 */ addiu $a0,$sp,0x4e4 +/* f121b64: 0fc47d0e */ jal sky0f11f438 +/* f121b68: 8fa50578 */ lw $a1,0x578($sp) +/* f121b6c: 10000205 */ b .L0f122384 +/* f121b70: 8fa906b0 */ lw $t1,0x6b0($sp) +/* f121b74: c7ae0638 */ lwc1 $f14,0x638($sp) +/* f121b78: c7a8063c */ lwc1 $f8,0x63c($sp) +/* f121b7c: c7b00640 */ lwc1 $f16,0x640($sp) +/* f121b80: 46187182 */ mul.s $f6,$f14,$f24 +/* f121b84: c7a205f0 */ lwc1 $f2,0x5f0($sp) +/* f121b88: c7ac05f8 */ lwc1 $f12,0x5f8($sp) +/* f121b8c: 46184282 */ mul.s $f10,$f8,$f24 +/* f121b90: c7a805f4 */ lwc1 $f8,0x5f4($sp) +/* f121b94: c7b40614 */ lwc1 $f20,0x614($sp) +/* f121b98: 46188102 */ mul.s $f4,$f16,$f24 +/* f121b9c: e7a604b4 */ swc1 $f6,0x4b4($sp) +/* f121ba0: c7b2061c */ lwc1 $f18,0x61c($sp) +/* f121ba4: 46181182 */ mul.s $f6,$f2,$f24 +/* f121ba8: e7aa04b8 */ swc1 $f10,0x4b8($sp) +/* f121bac: 3c018008 */ lui $at,%hi(var8007db80) +/* f121bb0: 46184282 */ mul.s $f10,$f8,$f24 +/* f121bb4: e7a404bc */ swc1 $f4,0x4bc($sp) +/* f121bb8: c7a80618 */ lwc1 $f8,0x618($sp) +/* f121bbc: 46186102 */ mul.s $f4,$f12,$f24 +/* f121bc0: e7a604cc */ swc1 $f6,0x4cc($sp) +/* f121bc4: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f121bc8: 4618a182 */ mul.s $f6,$f20,$f24 +/* f121bcc: e7aa04d0 */ swc1 $f10,0x4d0($sp) +/* f121bd0: 3c013f80 */ lui $at,0x3f80 +/* f121bd4: 46184282 */ mul.s $f10,$f8,$f24 +/* f121bd8: e7a404d4 */ swc1 $f4,0x4d4($sp) +/* f121bdc: 24110003 */ addiu $s1,$zero,0x3 +/* f121be0: 46189102 */ mul.s $f4,$f18,$f24 +/* f121be4: e7a604e4 */ swc1 $f6,0x4e4($sp) +/* f121be8: 27a404b4 */ addiu $a0,$sp,0x4b4 +/* f121bec: 461c7182 */ mul.s $f6,$f14,$f28 +/* f121bf0: e7aa04e8 */ swc1 $f10,0x4e8($sp) +/* f121bf4: 8fa50588 */ lw $a1,0x588($sp) +/* f121bf8: 461c8202 */ mul.s $f8,$f16,$f28 +/* f121bfc: e7a404ec */ swc1 $f4,0x4ec($sp) +/* f121c00: 461c1102 */ mul.s $f4,$f2,$f28 +/* f121c04: e7a604c0 */ swc1 $f6,0x4c0($sp) +/* f121c08: 461c6182 */ mul.s $f6,$f12,$f28 +/* f121c0c: 46004280 */ add.s $f10,$f8,$f0 +/* f121c10: e7a404d8 */ swc1 $f4,0x4d8($sp) +/* f121c14: e7aa04c4 */ swc1 $f10,0x4c4($sp) +/* f121c18: 461ca282 */ mul.s $f10,$f20,$f28 +/* f121c1c: 46003200 */ add.s $f8,$f6,$f0 +/* f121c20: 461c9102 */ mul.s $f4,$f18,$f28 +/* f121c24: e7a804dc */ swc1 $f8,0x4dc($sp) +/* f121c28: 44814000 */ mtc1 $at,$f8 +/* f121c2c: e7aa04f0 */ swc1 $f10,0x4f0($sp) +/* f121c30: 46184283 */ div.s $f10,$f8,$f24 +/* f121c34: 46002180 */ add.s $f6,$f4,$f0 +/* f121c38: e7a604f4 */ swc1 $f6,0x4f4($sp) +/* f121c3c: 0fc47d0e */ jal sky0f11f438 +/* f121c40: e7aa0064 */ swc1 $f10,0x64($sp) +/* f121c44: 27a404cc */ addiu $a0,$sp,0x4cc +/* f121c48: 0fc47d0e */ jal sky0f11f438 +/* f121c4c: 8fa50570 */ lw $a1,0x570($sp) +/* f121c50: 27a404e4 */ addiu $a0,$sp,0x4e4 +/* f121c54: 0fc47d0e */ jal sky0f11f438 +/* f121c58: 8fa5057c */ lw $a1,0x57c($sp) +/* f121c5c: 100001c9 */ b .L0f122384 +/* f121c60: 8fa906b0 */ lw $t1,0x6b0($sp) +/* f121c64: c7a20644 */ lwc1 $f2,0x644($sp) +/* f121c68: c7a60648 */ lwc1 $f6,0x648($sp) +/* f121c6c: c7ac064c */ lwc1 $f12,0x64c($sp) +/* f121c70: 46181102 */ mul.s $f4,$f2,$f24 +/* f121c74: c7b20614 */ lwc1 $f18,0x614($sp) +/* f121c78: c7b4061c */ lwc1 $f20,0x61c($sp) +/* f121c7c: 46183202 */ mul.s $f8,$f6,$f24 +/* f121c80: c7a60618 */ lwc1 $f6,0x618($sp) +/* f121c84: c7ae05fc */ lwc1 $f14,0x5fc($sp) +/* f121c88: 46186282 */ mul.s $f10,$f12,$f24 +/* f121c8c: e7a404b4 */ swc1 $f4,0x4b4($sp) +/* f121c90: c7b00604 */ lwc1 $f16,0x604($sp) +/* f121c94: 46189102 */ mul.s $f4,$f18,$f24 +/* f121c98: e7a804b8 */ swc1 $f8,0x4b8($sp) +/* f121c9c: 3c018008 */ lui $at,%hi(var8007db80) +/* f121ca0: 46183202 */ mul.s $f8,$f6,$f24 +/* f121ca4: e7aa04bc */ swc1 $f10,0x4bc($sp) +/* f121ca8: c7a60600 */ lwc1 $f6,0x600($sp) +/* f121cac: 4618a282 */ mul.s $f10,$f20,$f24 +/* f121cb0: e7a404cc */ swc1 $f4,0x4cc($sp) +/* f121cb4: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f121cb8: 46187102 */ mul.s $f4,$f14,$f24 +/* f121cbc: e7a804d0 */ swc1 $f8,0x4d0($sp) +/* f121cc0: 3c013f80 */ lui $at,0x3f80 +/* f121cc4: 46183202 */ mul.s $f8,$f6,$f24 +/* f121cc8: e7aa04d4 */ swc1 $f10,0x4d4($sp) +/* f121ccc: 24110003 */ addiu $s1,$zero,0x3 +/* f121cd0: 46188282 */ mul.s $f10,$f16,$f24 +/* f121cd4: e7a404e4 */ swc1 $f4,0x4e4($sp) +/* f121cd8: 27a404b4 */ addiu $a0,$sp,0x4b4 +/* f121cdc: 461c1102 */ mul.s $f4,$f2,$f28 +/* f121ce0: e7a804e8 */ swc1 $f8,0x4e8($sp) +/* f121ce4: 8fa5058c */ lw $a1,0x58c($sp) +/* f121ce8: 461c6182 */ mul.s $f6,$f12,$f28 +/* f121cec: e7aa04ec */ swc1 $f10,0x4ec($sp) +/* f121cf0: 461c9282 */ mul.s $f10,$f18,$f28 +/* f121cf4: e7a404c0 */ swc1 $f4,0x4c0($sp) +/* f121cf8: 461ca102 */ mul.s $f4,$f20,$f28 +/* f121cfc: 46003200 */ add.s $f8,$f6,$f0 +/* f121d00: e7aa04d8 */ swc1 $f10,0x4d8($sp) +/* f121d04: e7a804c4 */ swc1 $f8,0x4c4($sp) +/* f121d08: 461c7202 */ mul.s $f8,$f14,$f28 +/* f121d0c: 46002180 */ add.s $f6,$f4,$f0 +/* f121d10: 461c8282 */ mul.s $f10,$f16,$f28 +/* f121d14: e7a604dc */ swc1 $f6,0x4dc($sp) +/* f121d18: 44813000 */ mtc1 $at,$f6 +/* f121d1c: e7a804f0 */ swc1 $f8,0x4f0($sp) +/* f121d20: 46183203 */ div.s $f8,$f6,$f24 +/* f121d24: 46005100 */ add.s $f4,$f10,$f0 +/* f121d28: e7a404f4 */ swc1 $f4,0x4f4($sp) +/* f121d2c: 0fc47d0e */ jal sky0f11f438 +/* f121d30: e7a80064 */ swc1 $f8,0x64($sp) +/* f121d34: 27a404cc */ addiu $a0,$sp,0x4cc +/* f121d38: 0fc47d0e */ jal sky0f11f438 +/* f121d3c: 8fa5057c */ lw $a1,0x57c($sp) +/* f121d40: 27a404e4 */ addiu $a0,$sp,0x4e4 +/* f121d44: 0fc47d0e */ jal sky0f11f438 +/* f121d48: 8fa50574 */ lw $a1,0x574($sp) +/* f121d4c: 1000018d */ b .L0f122384 +/* f121d50: 8fa906b0 */ lw $t1,0x6b0($sp) +/* f121d54: c7b2062c */ lwc1 $f18,0x62c($sp) +/* f121d58: c7a40630 */ lwc1 $f4,0x630($sp) +/* f121d5c: c7b40634 */ lwc1 $f20,0x634($sp) +/* f121d60: 46189282 */ mul.s $f10,$f18,$f24 +/* f121d64: c7a20644 */ lwc1 $f2,0x644($sp) +/* f121d68: c7ac064c */ lwc1 $f12,0x64c($sp) +/* f121d6c: 46182182 */ mul.s $f6,$f4,$f24 +/* f121d70: c7a40648 */ lwc1 $f4,0x648($sp) +/* f121d74: c7ae0638 */ lwc1 $f14,0x638($sp) +/* f121d78: 4618a202 */ mul.s $f8,$f20,$f24 +/* f121d7c: e7aa04b4 */ swc1 $f10,0x4b4($sp) +/* f121d80: c7b00640 */ lwc1 $f16,0x640($sp) +/* f121d84: 46181282 */ mul.s $f10,$f2,$f24 +/* f121d88: e7a604b8 */ swc1 $f6,0x4b8($sp) +/* f121d8c: c7b605f0 */ lwc1 $f22,0x5f0($sp) +/* f121d90: 46182182 */ mul.s $f6,$f4,$f24 +/* f121d94: e7a804bc */ swc1 $f8,0x4bc($sp) +/* f121d98: c7a4063c */ lwc1 $f4,0x63c($sp) +/* f121d9c: 46186202 */ mul.s $f8,$f12,$f24 +/* f121da0: e7aa04cc */ swc1 $f10,0x4cc($sp) +/* f121da4: 3c018008 */ lui $at,%hi(var8007db80) +/* f121da8: 46187282 */ mul.s $f10,$f14,$f24 +/* f121dac: e7a604d0 */ swc1 $f6,0x4d0($sp) +/* f121db0: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f121db4: 46182182 */ mul.s $f6,$f4,$f24 +/* f121db8: e7a804d4 */ swc1 $f8,0x4d4($sp) +/* f121dbc: c7a405f4 */ lwc1 $f4,0x5f4($sp) +/* f121dc0: 46188202 */ mul.s $f8,$f16,$f24 +/* f121dc4: e7aa04e4 */ swc1 $f10,0x4e4($sp) +/* f121dc8: 3c013f80 */ lui $at,0x3f80 +/* f121dcc: 4618b282 */ mul.s $f10,$f22,$f24 +/* f121dd0: e7a604e8 */ swc1 $f6,0x4e8($sp) +/* f121dd4: 24110005 */ addiu $s1,$zero,0x5 +/* f121dd8: 46182182 */ mul.s $f6,$f4,$f24 +/* f121ddc: e7a804ec */ swc1 $f8,0x4ec($sp) +/* f121de0: c7a805f8 */ lwc1 $f8,0x5f8($sp) +/* f121de4: c7a40608 */ lwc1 $f4,0x608($sp) +/* f121de8: e7aa04fc */ swc1 $f10,0x4fc($sp) +/* f121dec: 46184282 */ mul.s $f10,$f8,$f24 +/* f121df0: c7a8060c */ lwc1 $f8,0x60c($sp) +/* f121df4: e7a60500 */ swc1 $f6,0x500($sp) +/* f121df8: 46182182 */ mul.s $f6,$f4,$f24 +/* f121dfc: c7a40610 */ lwc1 $f4,0x610($sp) +/* f121e00: 27a404b4 */ addiu $a0,$sp,0x4b4 +/* f121e04: 8fa50584 */ lw $a1,0x584($sp) +/* f121e08: e7aa0504 */ swc1 $f10,0x504($sp) +/* f121e0c: 46184282 */ mul.s $f10,$f8,$f24 +/* f121e10: e7a60514 */ swc1 $f6,0x514($sp) +/* f121e14: 46182182 */ mul.s $f6,$f4,$f24 +/* f121e18: 00000000 */ nop +/* f121e1c: 461c9202 */ mul.s $f8,$f18,$f28 +/* f121e20: e7aa0518 */ swc1 $f10,0x518($sp) +/* f121e24: 461ca282 */ mul.s $f10,$f20,$f28 +/* f121e28: e7a6051c */ swc1 $f6,0x51c($sp) +/* f121e2c: 461c1182 */ mul.s $f6,$f2,$f28 +/* f121e30: e7a804c0 */ swc1 $f8,0x4c0($sp) +/* f121e34: 461c6202 */ mul.s $f8,$f12,$f28 +/* f121e38: 46005100 */ add.s $f4,$f10,$f0 +/* f121e3c: e7a604d8 */ swc1 $f6,0x4d8($sp) +/* f121e40: e7a404c4 */ swc1 $f4,0x4c4($sp) +/* f121e44: 461c7102 */ mul.s $f4,$f14,$f28 +/* f121e48: 46004280 */ add.s $f10,$f8,$f0 +/* f121e4c: 461c8182 */ mul.s $f6,$f16,$f28 +/* f121e50: e7aa04dc */ swc1 $f10,0x4dc($sp) +/* f121e54: 461cb282 */ mul.s $f10,$f22,$f28 +/* f121e58: e7a404f0 */ swc1 $f4,0x4f0($sp) +/* f121e5c: c7a405f8 */ lwc1 $f4,0x5f8($sp) +/* f121e60: 46003200 */ add.s $f8,$f6,$f0 +/* f121e64: 461c2182 */ mul.s $f6,$f4,$f28 +/* f121e68: e7aa0508 */ swc1 $f10,0x508($sp) +/* f121e6c: c7aa0608 */ lwc1 $f10,0x608($sp) +/* f121e70: e7a804f4 */ swc1 $f8,0x4f4($sp) +/* f121e74: 461c5102 */ mul.s $f4,$f10,$f28 +/* f121e78: 46003200 */ add.s $f8,$f6,$f0 +/* f121e7c: c7a60610 */ lwc1 $f6,0x610($sp) +/* f121e80: e7a8050c */ swc1 $f8,0x50c($sp) +/* f121e84: e7a40520 */ swc1 $f4,0x520($sp) +/* f121e88: 44812000 */ mtc1 $at,$f4 +/* f121e8c: 461c3202 */ mul.s $f8,$f6,$f28 +/* f121e90: 46182183 */ div.s $f6,$f4,$f24 +/* f121e94: 46004280 */ add.s $f10,$f8,$f0 +/* f121e98: e7aa0524 */ swc1 $f10,0x524($sp) +/* f121e9c: 0fc47d0e */ jal sky0f11f438 +/* f121ea0: e7a60064 */ swc1 $f6,0x64($sp) +/* f121ea4: 27a404cc */ addiu $a0,$sp,0x4cc +/* f121ea8: 0fc47d0e */ jal sky0f11f438 +/* f121eac: 8fa5058c */ lw $a1,0x58c($sp) +/* f121eb0: 27a404e4 */ addiu $a0,$sp,0x4e4 +/* f121eb4: 0fc47d0e */ jal sky0f11f438 +/* f121eb8: 8fa50588 */ lw $a1,0x588($sp) +/* f121ebc: 27a404fc */ addiu $a0,$sp,0x4fc +/* f121ec0: 0fc47d0e */ jal sky0f11f438 +/* f121ec4: 8fa50570 */ lw $a1,0x570($sp) +/* f121ec8: 27a40514 */ addiu $a0,$sp,0x514 +/* f121ecc: 0fc47d0e */ jal sky0f11f438 +/* f121ed0: 8fa50578 */ lw $a1,0x578($sp) +/* f121ed4: 1000012b */ b .L0f122384 +/* f121ed8: 8fa906b0 */ lw $t1,0x6b0($sp) +/* f121edc: c7a20644 */ lwc1 $f2,0x644($sp) +/* f121ee0: c7aa0648 */ lwc1 $f10,0x648($sp) +/* f121ee4: c7ac064c */ lwc1 $f12,0x64c($sp) +/* f121ee8: 46181202 */ mul.s $f8,$f2,$f24 +/* f121eec: c7ae0638 */ lwc1 $f14,0x638($sp) +/* f121ef0: c7b00640 */ lwc1 $f16,0x640($sp) +/* f121ef4: 46185102 */ mul.s $f4,$f10,$f24 +/* f121ef8: c7aa063c */ lwc1 $f10,0x63c($sp) +/* f121efc: c7b60620 */ lwc1 $f22,0x620($sp) +/* f121f00: 46186182 */ mul.s $f6,$f12,$f24 +/* f121f04: e7a804b4 */ swc1 $f8,0x4b4($sp) +/* f121f08: c7b205fc */ lwc1 $f18,0x5fc($sp) +/* f121f0c: 46187202 */ mul.s $f8,$f14,$f24 +/* f121f10: e7a404b8 */ swc1 $f4,0x4b8($sp) +/* f121f14: c7b40604 */ lwc1 $f20,0x604($sp) +/* f121f18: 46185102 */ mul.s $f4,$f10,$f24 +/* f121f1c: e7a604bc */ swc1 $f6,0x4bc($sp) +/* f121f20: c7aa0624 */ lwc1 $f10,0x624($sp) +/* f121f24: 46188182 */ mul.s $f6,$f16,$f24 +/* f121f28: e7a804cc */ swc1 $f8,0x4cc($sp) +/* f121f2c: 3c018008 */ lui $at,%hi(var8007db80) +/* f121f30: 4618b202 */ mul.s $f8,$f22,$f24 +/* f121f34: e7a404d0 */ swc1 $f4,0x4d0($sp) +/* f121f38: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f121f3c: 46185102 */ mul.s $f4,$f10,$f24 +/* f121f40: e7a604d4 */ swc1 $f6,0x4d4($sp) +/* f121f44: c7a60628 */ lwc1 $f6,0x628($sp) +/* f121f48: c7aa0608 */ lwc1 $f10,0x608($sp) +/* f121f4c: e7a804e4 */ swc1 $f8,0x4e4($sp) +/* f121f50: 46183202 */ mul.s $f8,$f6,$f24 +/* f121f54: c7a6060c */ lwc1 $f6,0x60c($sp) +/* f121f58: e7a404e8 */ swc1 $f4,0x4e8($sp) +/* f121f5c: 46185102 */ mul.s $f4,$f10,$f24 +/* f121f60: c7aa0610 */ lwc1 $f10,0x610($sp) +/* f121f64: 3c013f80 */ lui $at,0x3f80 +/* f121f68: 24110005 */ addiu $s1,$zero,0x5 +/* f121f6c: e7a804ec */ swc1 $f8,0x4ec($sp) +/* f121f70: 46183202 */ mul.s $f8,$f6,$f24 +/* f121f74: 27a404b4 */ addiu $a0,$sp,0x4b4 +/* f121f78: e7a404fc */ swc1 $f4,0x4fc($sp) +/* f121f7c: 46185102 */ mul.s $f4,$f10,$f24 +/* f121f80: 8fa5058c */ lw $a1,0x58c($sp) +/* f121f84: 46189182 */ mul.s $f6,$f18,$f24 +/* f121f88: e7a80500 */ swc1 $f8,0x500($sp) +/* f121f8c: c7a80600 */ lwc1 $f8,0x600($sp) +/* f121f90: e7a40504 */ swc1 $f4,0x504($sp) +/* f121f94: 46184282 */ mul.s $f10,$f8,$f24 +/* f121f98: e7a60514 */ swc1 $f6,0x514($sp) +/* f121f9c: 4618a102 */ mul.s $f4,$f20,$f24 +/* f121fa0: 00000000 */ nop +/* f121fa4: 461c1182 */ mul.s $f6,$f2,$f28 +/* f121fa8: e7aa0518 */ swc1 $f10,0x518($sp) +/* f121fac: 461c6202 */ mul.s $f8,$f12,$f28 +/* f121fb0: e7a4051c */ swc1 $f4,0x51c($sp) +/* f121fb4: 461c7102 */ mul.s $f4,$f14,$f28 +/* f121fb8: e7a604c0 */ swc1 $f6,0x4c0($sp) +/* f121fbc: 461c8182 */ mul.s $f6,$f16,$f28 +/* f121fc0: 46004280 */ add.s $f10,$f8,$f0 +/* f121fc4: e7a404d8 */ swc1 $f4,0x4d8($sp) +/* f121fc8: c7a40628 */ lwc1 $f4,0x628($sp) +/* f121fcc: e7aa04c4 */ swc1 $f10,0x4c4($sp) +/* f121fd0: 461cb282 */ mul.s $f10,$f22,$f28 +/* f121fd4: 46003200 */ add.s $f8,$f6,$f0 +/* f121fd8: 461c2182 */ mul.s $f6,$f4,$f28 +/* f121fdc: e7a804dc */ swc1 $f8,0x4dc($sp) +/* f121fe0: e7aa04f0 */ swc1 $f10,0x4f0($sp) +/* f121fe4: c7aa0608 */ lwc1 $f10,0x608($sp) +/* f121fe8: 46003200 */ add.s $f8,$f6,$f0 +/* f121fec: 461c5102 */ mul.s $f4,$f10,$f28 +/* f121ff0: c7a60610 */ lwc1 $f6,0x610($sp) +/* f121ff4: e7a804f4 */ swc1 $f8,0x4f4($sp) +/* f121ff8: 461c3202 */ mul.s $f8,$f6,$f28 +/* f121ffc: e7a40508 */ swc1 $f4,0x508($sp) +/* f122000: 461c9102 */ mul.s $f4,$f18,$f28 +/* f122004: 46004280 */ add.s $f10,$f8,$f0 +/* f122008: 461ca182 */ mul.s $f6,$f20,$f28 +/* f12200c: e7a40520 */ swc1 $f4,0x520($sp) +/* f122010: e7aa050c */ swc1 $f10,0x50c($sp) +/* f122014: 44815000 */ mtc1 $at,$f10 +/* f122018: 00000000 */ nop +/* f12201c: 46185103 */ div.s $f4,$f10,$f24 +/* f122020: 46003200 */ add.s $f8,$f6,$f0 +/* f122024: e7a80524 */ swc1 $f8,0x524($sp) +/* f122028: 0fc47d0e */ jal sky0f11f438 +/* f12202c: e7a40064 */ swc1 $f4,0x64($sp) +/* f122030: 27a404cc */ addiu $a0,$sp,0x4cc +/* f122034: 0fc47d0e */ jal sky0f11f438 +/* f122038: 8fa50588 */ lw $a1,0x588($sp) +/* f12203c: 27a404e4 */ addiu $a0,$sp,0x4e4 +/* f122040: 0fc47d0e */ jal sky0f11f438 +/* f122044: 8fa50580 */ lw $a1,0x580($sp) +/* f122048: 27a404fc */ addiu $a0,$sp,0x4fc +/* f12204c: 0fc47d0e */ jal sky0f11f438 +/* f122050: 8fa50578 */ lw $a1,0x578($sp) +/* f122054: 27a40514 */ addiu $a0,$sp,0x514 +/* f122058: 0fc47d0e */ jal sky0f11f438 +/* f12205c: 8fa50574 */ lw $a1,0x574($sp) +/* f122060: 100000c8 */ b .L0f122384 +/* f122064: 8fa906b0 */ lw $t1,0x6b0($sp) +/* f122068: c7b60620 */ lwc1 $f22,0x620($sp) +/* f12206c: c7a80624 */ lwc1 $f8,0x624($sp) +/* f122070: c7a40628 */ lwc1 $f4,0x628($sp) +/* f122074: 4618b182 */ mul.s $f6,$f22,$f24 +/* f122078: c7b2062c */ lwc1 $f18,0x62c($sp) +/* f12207c: c7b40634 */ lwc1 $f20,0x634($sp) +/* f122080: 46184282 */ mul.s $f10,$f8,$f24 +/* f122084: c7a20644 */ lwc1 $f2,0x644($sp) +/* f122088: c7ac064c */ lwc1 $f12,0x64c($sp) +/* f12208c: c7ae0614 */ lwc1 $f14,0x614($sp) +/* f122090: e7a604b4 */ swc1 $f6,0x4b4($sp) +/* f122094: 46182182 */ mul.s $f6,$f4,$f24 +/* f122098: c7b0061c */ lwc1 $f16,0x61c($sp) +/* f12209c: e7aa04b8 */ swc1 $f10,0x4b8($sp) +/* f1220a0: 46189202 */ mul.s $f8,$f18,$f24 +/* f1220a4: c7aa0630 */ lwc1 $f10,0x630($sp) +/* f1220a8: 3c018008 */ lui $at,%hi(var8007db80) +/* f1220ac: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f1220b0: e7a604bc */ swc1 $f6,0x4bc($sp) +/* f1220b4: 46185182 */ mul.s $f6,$f10,$f24 +/* f1220b8: 3c013f80 */ lui $at,0x3f80 +/* f1220bc: e7a804cc */ swc1 $f8,0x4cc($sp) +/* f1220c0: 4618a202 */ mul.s $f8,$f20,$f24 +/* f1220c4: 24110005 */ addiu $s1,$zero,0x5 +/* f1220c8: 27a404b4 */ addiu $a0,$sp,0x4b4 +/* f1220cc: 46181282 */ mul.s $f10,$f2,$f24 +/* f1220d0: e7a604d0 */ swc1 $f6,0x4d0($sp) +/* f1220d4: c7a60648 */ lwc1 $f6,0x648($sp) +/* f1220d8: 8fa50580 */ lw $a1,0x580($sp) +/* f1220dc: e7a804d4 */ swc1 $f8,0x4d4($sp) +/* f1220e0: 46183202 */ mul.s $f8,$f6,$f24 +/* f1220e4: e7aa04e4 */ swc1 $f10,0x4e4($sp) +/* f1220e8: 46186282 */ mul.s $f10,$f12,$f24 +/* f1220ec: e7a804e8 */ swc1 $f8,0x4e8($sp) +/* f1220f0: 46187182 */ mul.s $f6,$f14,$f24 +/* f1220f4: c7a80618 */ lwc1 $f8,0x618($sp) +/* f1220f8: e7aa04ec */ swc1 $f10,0x4ec($sp) +/* f1220fc: 46184282 */ mul.s $f10,$f8,$f24 +/* f122100: c7a805f0 */ lwc1 $f8,0x5f0($sp) +/* f122104: e7a604fc */ swc1 $f6,0x4fc($sp) +/* f122108: 46188182 */ mul.s $f6,$f16,$f24 +/* f12210c: e7aa0500 */ swc1 $f10,0x500($sp) +/* f122110: 46184282 */ mul.s $f10,$f8,$f24 +/* f122114: e7a60504 */ swc1 $f6,0x504($sp) +/* f122118: c7a605f4 */ lwc1 $f6,0x5f4($sp) +/* f12211c: 46183202 */ mul.s $f8,$f6,$f24 +/* f122120: e7aa0514 */ swc1 $f10,0x514($sp) +/* f122124: c7aa05f8 */ lwc1 $f10,0x5f8($sp) +/* f122128: 46185182 */ mul.s $f6,$f10,$f24 +/* f12212c: e7a80518 */ swc1 $f8,0x518($sp) +/* f122130: 461cb202 */ mul.s $f8,$f22,$f28 +/* f122134: 00000000 */ nop +/* f122138: 461c2282 */ mul.s $f10,$f4,$f28 +/* f12213c: e7a6051c */ swc1 $f6,0x51c($sp) +/* f122140: e7a804c0 */ swc1 $f8,0x4c0($sp) +/* f122144: 461c9202 */ mul.s $f8,$f18,$f28 +/* f122148: 46005180 */ add.s $f6,$f10,$f0 +/* f12214c: 461ca102 */ mul.s $f4,$f20,$f28 +/* f122150: e7a604c4 */ swc1 $f6,0x4c4($sp) +/* f122154: 461c1182 */ mul.s $f6,$f2,$f28 +/* f122158: e7a804d8 */ swc1 $f8,0x4d8($sp) +/* f12215c: 461c6202 */ mul.s $f8,$f12,$f28 +/* f122160: 46002280 */ add.s $f10,$f4,$f0 +/* f122164: e7a604f0 */ swc1 $f6,0x4f0($sp) +/* f122168: e7aa04dc */ swc1 $f10,0x4dc($sp) +/* f12216c: 461c7282 */ mul.s $f10,$f14,$f28 +/* f122170: 46004100 */ add.s $f4,$f8,$f0 +/* f122174: 461c8182 */ mul.s $f6,$f16,$f28 +/* f122178: e7a404f4 */ swc1 $f4,0x4f4($sp) +/* f12217c: c7a405f0 */ lwc1 $f4,0x5f0($sp) +/* f122180: e7aa0508 */ swc1 $f10,0x508($sp) +/* f122184: 461c2282 */ mul.s $f10,$f4,$f28 +/* f122188: 46003200 */ add.s $f8,$f6,$f0 +/* f12218c: c7a605f8 */ lwc1 $f6,0x5f8($sp) +/* f122190: e7a8050c */ swc1 $f8,0x50c($sp) +/* f122194: 461c3202 */ mul.s $f8,$f6,$f28 +/* f122198: e7aa0520 */ swc1 $f10,0x520($sp) +/* f12219c: 44815000 */ mtc1 $at,$f10 +/* f1221a0: 00000000 */ nop +/* f1221a4: 46185183 */ div.s $f6,$f10,$f24 +/* f1221a8: 46004100 */ add.s $f4,$f8,$f0 +/* f1221ac: e7a40524 */ swc1 $f4,0x524($sp) +/* f1221b0: 0fc47d0e */ jal sky0f11f438 +/* f1221b4: e7a60064 */ swc1 $f6,0x64($sp) +/* f1221b8: 27a404cc */ addiu $a0,$sp,0x4cc +/* f1221bc: 0fc47d0e */ jal sky0f11f438 +/* f1221c0: 8fa50584 */ lw $a1,0x584($sp) +/* f1221c4: 27a404e4 */ addiu $a0,$sp,0x4e4 +/* f1221c8: 0fc47d0e */ jal sky0f11f438 +/* f1221cc: 8fa5058c */ lw $a1,0x58c($sp) +/* f1221d0: 27a404fc */ addiu $a0,$sp,0x4fc +/* f1221d4: 0fc47d0e */ jal sky0f11f438 +/* f1221d8: 8fa5057c */ lw $a1,0x57c($sp) +/* f1221dc: 27a40514 */ addiu $a0,$sp,0x514 +/* f1221e0: 0fc47d0e */ jal sky0f11f438 +/* f1221e4: 8fa50570 */ lw $a1,0x570($sp) +/* f1221e8: 10000066 */ b .L0f122384 +/* f1221ec: 8fa906b0 */ lw $t1,0x6b0($sp) +/* f1221f0: c7ae0638 */ lwc1 $f14,0x638($sp) +/* f1221f4: c7a4063c */ lwc1 $f4,0x63c($sp) +/* f1221f8: c7b00640 */ lwc1 $f16,0x640($sp) +/* f1221fc: 46187202 */ mul.s $f8,$f14,$f24 +/* f122200: c7b60620 */ lwc1 $f22,0x620($sp) +/* f122204: c7a20628 */ lwc1 $f2,0x628($sp) +/* f122208: 46182282 */ mul.s $f10,$f4,$f24 +/* f12220c: c7a40624 */ lwc1 $f4,0x624($sp) +/* f122210: c7b2062c */ lwc1 $f18,0x62c($sp) +/* f122214: 46188182 */ mul.s $f6,$f16,$f24 +/* f122218: e7a804b4 */ swc1 $f8,0x4b4($sp) +/* f12221c: c7b40634 */ lwc1 $f20,0x634($sp) +/* f122220: 4618b202 */ mul.s $f8,$f22,$f24 +/* f122224: e7aa04b8 */ swc1 $f10,0x4b8($sp) +/* f122228: c7ac05fc */ lwc1 $f12,0x5fc($sp) +/* f12222c: 46182282 */ mul.s $f10,$f4,$f24 +/* f122230: e7a604bc */ swc1 $f6,0x4bc($sp) +/* f122234: c7a40630 */ lwc1 $f4,0x630($sp) +/* f122238: 46181182 */ mul.s $f6,$f2,$f24 +/* f12223c: e7a804cc */ swc1 $f8,0x4cc($sp) +/* f122240: 3c018008 */ lui $at,%hi(var8007db80) +/* f122244: 46189202 */ mul.s $f8,$f18,$f24 +/* f122248: e7aa04d0 */ swc1 $f10,0x4d0($sp) +/* f12224c: c420db80 */ lwc1 $f0,%lo(var8007db80)($at) +/* f122250: 46182282 */ mul.s $f10,$f4,$f24 +/* f122254: e7a604d4 */ swc1 $f6,0x4d4($sp) +/* f122258: c7a40600 */ lwc1 $f4,0x600($sp) +/* f12225c: 4618a182 */ mul.s $f6,$f20,$f24 +/* f122260: e7a804e4 */ swc1 $f8,0x4e4($sp) +/* f122264: 3c013f80 */ lui $at,0x3f80 +/* f122268: 46186202 */ mul.s $f8,$f12,$f24 +/* f12226c: e7aa04e8 */ swc1 $f10,0x4e8($sp) +/* f122270: 24110005 */ addiu $s1,$zero,0x5 +/* f122274: 46182282 */ mul.s $f10,$f4,$f24 +/* f122278: e7a604ec */ swc1 $f6,0x4ec($sp) +/* f12227c: c7a60604 */ lwc1 $f6,0x604($sp) +/* f122280: c7a40614 */ lwc1 $f4,0x614($sp) +/* f122284: e7a804fc */ swc1 $f8,0x4fc($sp) +/* f122288: 46183202 */ mul.s $f8,$f6,$f24 +/* f12228c: c7a60618 */ lwc1 $f6,0x618($sp) +/* f122290: e7aa0500 */ swc1 $f10,0x500($sp) +/* f122294: 46182282 */ mul.s $f10,$f4,$f24 +/* f122298: c7a4061c */ lwc1 $f4,0x61c($sp) +/* f12229c: 27a404b4 */ addiu $a0,$sp,0x4b4 +/* f1222a0: 8fa50588 */ lw $a1,0x588($sp) +/* f1222a4: e7a80504 */ swc1 $f8,0x504($sp) +/* f1222a8: 46183202 */ mul.s $f8,$f6,$f24 +/* f1222ac: e7aa0514 */ swc1 $f10,0x514($sp) +/* f1222b0: 46182282 */ mul.s $f10,$f4,$f24 +/* f1222b4: 00000000 */ nop +/* f1222b8: 461c7182 */ mul.s $f6,$f14,$f28 +/* f1222bc: e7a80518 */ swc1 $f8,0x518($sp) +/* f1222c0: 461c8202 */ mul.s $f8,$f16,$f28 +/* f1222c4: e7aa051c */ swc1 $f10,0x51c($sp) +/* f1222c8: 461cb282 */ mul.s $f10,$f22,$f28 +/* f1222cc: e7a604c0 */ swc1 $f6,0x4c0($sp) +/* f1222d0: 461c1182 */ mul.s $f6,$f2,$f28 +/* f1222d4: 46004100 */ add.s $f4,$f8,$f0 +/* f1222d8: e7aa04d8 */ swc1 $f10,0x4d8($sp) +/* f1222dc: e7a404c4 */ swc1 $f4,0x4c4($sp) +/* f1222e0: 461c9102 */ mul.s $f4,$f18,$f28 +/* f1222e4: 46003200 */ add.s $f8,$f6,$f0 +/* f1222e8: 461ca282 */ mul.s $f10,$f20,$f28 +/* f1222ec: e7a804dc */ swc1 $f8,0x4dc($sp) +/* f1222f0: 461c6202 */ mul.s $f8,$f12,$f28 +/* f1222f4: e7a404f0 */ swc1 $f4,0x4f0($sp) +/* f1222f8: c7a40604 */ lwc1 $f4,0x604($sp) +/* f1222fc: 46005180 */ add.s $f6,$f10,$f0 +/* f122300: 461c2282 */ mul.s $f10,$f4,$f28 +/* f122304: e7a80508 */ swc1 $f8,0x508($sp) +/* f122308: c7a80614 */ lwc1 $f8,0x614($sp) +/* f12230c: e7a604f4 */ swc1 $f6,0x4f4($sp) +/* f122310: 461c4102 */ mul.s $f4,$f8,$f28 +/* f122314: 46005180 */ add.s $f6,$f10,$f0 +/* f122318: c7aa061c */ lwc1 $f10,0x61c($sp) +/* f12231c: e7a6050c */ swc1 $f6,0x50c($sp) +/* f122320: e7a40520 */ swc1 $f4,0x520($sp) +/* f122324: 44812000 */ mtc1 $at,$f4 +/* f122328: 461c5182 */ mul.s $f6,$f10,$f28 +/* f12232c: 46182283 */ div.s $f10,$f4,$f24 +/* f122330: 46003200 */ add.s $f8,$f6,$f0 +/* f122334: e7a80524 */ swc1 $f8,0x524($sp) +/* f122338: 0fc47d0e */ jal sky0f11f438 +/* f12233c: e7aa0064 */ swc1 $f10,0x64($sp) +/* f122340: 27a404cc */ addiu $a0,$sp,0x4cc +/* f122344: 0fc47d0e */ jal sky0f11f438 +/* f122348: 8fa50580 */ lw $a1,0x580($sp) +/* f12234c: 27a404e4 */ addiu $a0,$sp,0x4e4 +/* f122350: 0fc47d0e */ jal sky0f11f438 +/* f122354: 8fa50584 */ lw $a1,0x584($sp) +/* f122358: 27a404fc */ addiu $a0,$sp,0x4fc +/* f12235c: 0fc47d0e */ jal sky0f11f438 +/* f122360: 8fa50574 */ lw $a1,0x574($sp) +/* f122364: 27a40514 */ addiu $a0,$sp,0x514 +/* f122368: 0fc47d0e */ jal sky0f11f438 +/* f12236c: 8fa5057c */ lw $a1,0x57c($sp) +/* f122370: 10000004 */ b .L0f122384 +/* f122374: 8fa906b0 */ lw $t1,0x6b0($sp) +.L0f122378: +/* f122378: 1000014b */ b .L0f1228a8 +/* f12237c: 00601025 */ or $v0,$v1,$zero +/* f122380: 8fa906b0 */ lw $t1,0x6b0($sp) +.L0f122384: +/* f122384: 3c0be700 */ lui $t3,0xe700 +/* f122388: 3c18800b */ lui $t8,%hi(g_TexWaterConfigs) +/* f12238c: 252c0008 */ addiu $t4,$t1,0x8 +/* f122390: afac06b0 */ sw $t4,0x6b0($sp) +/* f122394: ad200004 */ sw $zero,0x4($t1) +/* f122398: ad2b0000 */ sw $t3,0x0($t1) +/* f12239c: 8fb9042c */ lw $t9,0x42c($sp) +/* f1223a0: 8f18b598 */ lw $t8,%lo(g_TexWaterConfigs)($t8) +/* f1223a4: 240a0002 */ addiu $t2,$zero,0x2 +/* f1223a8: 872d0018 */ lh $t5,0x18($t9) +/* f1223ac: 240e0001 */ addiu $t6,$zero,0x1 +/* f1223b0: afae0014 */ sw $t6,0x14($sp) +/* f1223b4: 000d7880 */ sll $t7,$t5,0x2 +/* f1223b8: 01ed7823 */ subu $t7,$t7,$t5 +/* f1223bc: 000f7880 */ sll $t7,$t7,0x2 +/* f1223c0: afa00018 */ sw $zero,0x18($sp) +/* f1223c4: afaa0010 */ sw $t2,0x10($sp) +/* f1223c8: 27a406b0 */ addiu $a0,$sp,0x6b0 +/* f1223cc: 24060001 */ addiu $a2,$zero,0x1 +/* f1223d0: 00003825 */ or $a3,$zero,$zero +/* f1223d4: 0fc2ce70 */ jal tex0f0b39c0 +/* f1223d8: 01f82821 */ addu $a1,$t7,$t8 +/* f1223dc: 8fa206b0 */ lw $v0,0x6b0($sp) +/* f1223e0: 3c0bfb00 */ lui $t3,0xfb00 +/* f1223e4: 244c0008 */ addiu $t4,$v0,0x8 +/* f1223e8: afac06b0 */ sw $t4,0x6b0($sp) +/* f1223ec: ac4b0000 */ sw $t3,0x0($v0) +/* f1223f0: 8fb9042c */ lw $t9,0x42c($sp) +/* f1223f4: 3c0b55fe */ lui $t3,0x55fe +/* f1223f8: 356bf97c */ ori $t3,$t3,0xf97c +/* f1223fc: 932f0008 */ lbu $t7,0x8($t9) +/* f122400: 932e0009 */ lbu $t6,0x9($t9) +/* f122404: 932d000a */ lbu $t5,0xa($t9) +/* f122408: 000fc600 */ sll $t8,$t7,0x18 +/* f12240c: 000e4c00 */ sll $t1,$t6,0x10 +/* f122410: 03096025 */ or $t4,$t8,$t1 +/* f122414: 000d7a00 */ sll $t7,$t5,0x8 +/* f122418: 018f5025 */ or $t2,$t4,$t7 +/* f12241c: 354e00ff */ ori $t6,$t2,0xff +/* f122420: ac4e0004 */ sw $t6,0x4($v0) +/* f122424: 8fb806b0 */ lw $t8,0x6b0($sp) +/* f122428: 3c19fc40 */ lui $t9,0xfc40 +/* f12242c: 3739fe81 */ ori $t9,$t9,0xfe81 +/* f122430: 27090008 */ addiu $t1,$t8,0x8 +/* f122434: afa906b0 */ sw $t1,0x6b0($sp) +/* f122438: af0b0004 */ sw $t3,0x4($t8) +/* f12243c: 0fc2d5c6 */ jal camGetUnk1754 +/* f122440: af190000 */ sw $t9,0x0($t8) +/* f122444: 0fc2d5be */ jal camGetMatrix1740 +/* f122448: 00408025 */ or $s0,$v0,$zero +/* f12244c: 02002025 */ or $a0,$s0,$zero +/* f122450: 00402825 */ or $a1,$v0,$zero +/* f122454: 0c005680 */ jal mtx4MultMtx4 +/* f122458: 27a601ec */ addiu $a2,$sp,0x1ec +/* f12245c: c7a60064 */ lwc1 $f6,0x64($sp) +/* f122460: 3c04800a */ lui $a0,%hi(var800a33a8) +/* f122464: 248433a8 */ addiu $a0,$a0,%lo(var800a33a8) +/* f122468: 44053000 */ mfc1 $a1,$f6 +/* f12246c: 44063000 */ mfc1 $a2,$f6 +/* f122470: 44073000 */ mfc1 $a3,$f6 +/* f122474: 0c014024 */ jal guScaleF +/* f122478: 00000000 */ nop +/* f12247c: 3c05800a */ lui $a1,%hi(var800a33a8) +/* f122480: 24a533a8 */ addiu $a1,$a1,%lo(var800a33a8) +/* f122484: 27a401ec */ addiu $a0,$sp,0x1ec +/* f122488: 0c005680 */ jal mtx4MultMtx4 +/* f12248c: 27a601ac */ addiu $a2,$sp,0x1ac +/* f122490: 1a200036 */ blez $s1,.L0f12256c +/* f122494: afa00090 */ sw $zero,0x90($sp) +/* f122498: 27a404b4 */ addiu $a0,$sp,0x4b4 +/* f12249c: afa40064 */ sw $a0,0x64($sp) +/* f1224a0: 27b00094 */ addiu $s0,$sp,0x94 +.L0f1224a4: +/* f1224a4: 3c017f1b */ lui $at,%hi(var7f1b50c8) +/* f1224a8: c42050c8 */ lwc1 $f0,%lo(var7f1b50c8)($at) +/* f1224ac: 8fa40064 */ lw $a0,0x64($sp) +/* f1224b0: 27a501ac */ addiu $a1,$sp,0x1ac +/* f1224b4: 44070000 */ mfc1 $a3,$f0 +/* f1224b8: 24060082 */ addiu $a2,$zero,0x82 +/* f1224bc: afb00014 */ sw $s0,0x14($sp) +/* f1224c0: 0fc48a34 */ jal sky0f1228d0 +/* f1224c4: e7a00010 */ swc1 $f0,0x10($sp) +/* f1224c8: 0fc2d5fe */ jal camGetScreenLeft +/* f1224cc: 00000000 */ nop +/* f1224d0: 0fc2d5fe */ jal camGetScreenLeft +/* f1224d4: 46000506 */ mov.s $f20,$f0 +/* f1224d8: 0fc2d5f6 */ jal camGetScreenWidth +/* f1224dc: 46000586 */ mov.s $f22,$f0 +/* f1224e0: 46160200 */ add.s $f8,$f0,$f22 +/* f1224e4: 461aa382 */ mul.s $f14,$f20,$f26 +/* f1224e8: 3c013f80 */ lui $at,0x3f80 +/* f1224ec: 44815000 */ mtc1 $at,$f10 +/* f1224f0: 461a4102 */ mul.s $f4,$f8,$f26 +/* f1224f4: c60c0028 */ lwc1 $f12,0x28($s0) +/* f1224f8: 460a2181 */ sub.s $f6,$f4,$f10 +/* f1224fc: 44063000 */ mfc1 $a2,$f6 +/* f122500: 0fc47cf4 */ jal sky0f11f3d0 +/* f122504: 00000000 */ nop +/* f122508: 0fc2d602 */ jal camGetScreenTop +/* f12250c: e6000028 */ swc1 $f0,0x28($s0) +/* f122510: 0fc2d602 */ jal camGetScreenTop +/* f122514: 46000506 */ mov.s $f20,$f0 +/* f122518: 0fc2d5fa */ jal camGetScreenHeight +/* f12251c: 46000586 */ mov.s $f22,$f0 +/* f122520: 46160200 */ add.s $f8,$f0,$f22 +/* f122524: 461aa382 */ mul.s $f14,$f20,$f26 +/* f122528: 3c013f80 */ lui $at,0x3f80 +/* f12252c: 44815000 */ mtc1 $at,$f10 +/* f122530: 461a4102 */ mul.s $f4,$f8,$f26 +/* f122534: c60c002c */ lwc1 $f12,0x2c($s0) +/* f122538: 460a2181 */ sub.s $f6,$f4,$f10 +/* f12253c: 44063000 */ mfc1 $a2,$f6 +/* f122540: 0fc47cf4 */ jal sky0f11f3d0 +/* f122544: 00000000 */ nop +/* f122548: 8fa20090 */ lw $v0,0x90($sp) +/* f12254c: e600002c */ swc1 $f0,0x2c($s0) +/* f122550: 8fad0064 */ lw $t5,0x64($sp) +/* f122554: 24420001 */ addiu $v0,$v0,0x1 +/* f122558: afa20090 */ sw $v0,0x90($sp) +/* f12255c: 25ac0018 */ addiu $t4,$t5,0x18 +/* f122560: afac0064 */ sw $t4,0x64($sp) +/* f122564: 1451ffcf */ bne $v0,$s1,.L0f1224a4 +/* f122568: 26100038 */ addiu $s0,$s0,0x38 +.L0f12256c: +/* f12256c: 24010004 */ addiu $at,$zero,0x4 +/* f122570: 16210099 */ bne $s1,$at,.L0f1227d8 +/* f122574: 8faf0068 */ lw $t7,0x68($sp) +/* f122578: 2401000c */ addiu $at,$zero,0xc +/* f12257c: 15e1007e */ bne $t7,$at,.L0f122778 +/* f122580: 27b00094 */ addiu $s0,$sp,0x94 +/* f122584: c7a80548 */ lwc1 $f8,0x548($sp) +/* f122588: c7a4054c */ lwc1 $f4,0x54c($sp) +/* f12258c: c7a600f8 */ lwc1 $f6,0xf8($sp) +/* f122590: 4604403c */ c.lt.s $f8,$f4 +/* f122594: c7a800c0 */ lwc1 $f8,0xc0($sp) +/* f122598: 4502003d */ bc1fl .L0f122690 +/* f12259c: 461a4100 */ add.s $f4,$f8,$f26 +/* f1225a0: 461a3200 */ add.s $f8,$f6,$f26 +/* f1225a4: c7aa0168 */ lwc1 $f10,0x168($sp) +/* f1225a8: 27a50094 */ addiu $a1,$sp,0x94 +/* f1225ac: 8fa406b0 */ lw $a0,0x6b0($sp) +/* f1225b0: 460a403e */ c.le.s $f8,$f10 +/* f1225b4: 27a600cc */ addiu $a2,$sp,0xcc +/* f1225b8: 27a70104 */ addiu $a3,$sp,0x104 +/* f1225bc: 3c014302 */ lui $at,0x4302 +/* f1225c0: 4500002c */ bc1f .L0f122674 +/* f1225c4: 240a0001 */ addiu $t2,$zero,0x1 +/* f1225c8: 0fc2d5fe */ jal camGetScreenLeft +/* f1225cc: 00000000 */ nop +/* f1225d0: 461a0102 */ mul.s $f4,$f0,$f26 +/* f1225d4: 0fc2d602 */ jal camGetScreenTop +/* f1225d8: e7a400bc */ swc1 $f4,0xbc($sp) +/* f1225dc: 461a0182 */ mul.s $f6,$f0,$f26 +/* f1225e0: 0fc2d5fe */ jal camGetScreenLeft +/* f1225e4: e7a600c0 */ swc1 $f6,0xc0($sp) +/* f1225e8: 0fc2d5f6 */ jal camGetScreenWidth +/* f1225ec: 46000506 */ mov.s $f20,$f0 +/* f1225f0: 46140280 */ add.s $f10,$f0,$f20 +/* f1225f4: 3c013f80 */ lui $at,0x3f80 +/* f1225f8: 44812000 */ mtc1 $at,$f4 +/* f1225fc: 461a5202 */ mul.s $f8,$f10,$f26 +/* f122600: 46044181 */ sub.s $f6,$f8,$f4 +/* f122604: 0fc2d602 */ jal camGetScreenTop +/* f122608: e7a600f4 */ swc1 $f6,0xf4($sp) +/* f12260c: 461a0282 */ mul.s $f10,$f0,$f26 +/* f122610: 0fc2d5fe */ jal camGetScreenLeft +/* f122614: e7aa00f8 */ swc1 $f10,0xf8($sp) +/* f122618: 461a0202 */ mul.s $f8,$f0,$f26 +/* f12261c: 0fc2d5fe */ jal camGetScreenLeft +/* f122620: e7a8012c */ swc1 $f8,0x12c($sp) +/* f122624: 0fc2d5f6 */ jal camGetScreenWidth +/* f122628: 46000506 */ mov.s $f20,$f0 +/* f12262c: 46140100 */ add.s $f4,$f0,$f20 +/* f122630: 3c013f80 */ lui $at,0x3f80 +/* f122634: 44815000 */ mtc1 $at,$f10 +/* f122638: 3c014302 */ lui $at,0x4302 +/* f12263c: 461a2182 */ mul.s $f6,$f4,$f26 +/* f122640: 44812000 */ mtc1 $at,$f4 +/* f122644: 27b1013c */ addiu $s1,$sp,0x13c +/* f122648: 27a50094 */ addiu $a1,$sp,0x94 +/* f12264c: afb10010 */ sw $s1,0x10($sp) +/* f122650: 8fa406b0 */ lw $a0,0x6b0($sp) +/* f122654: 27a600cc */ addiu $a2,$sp,0xcc +/* f122658: 460a3201 */ sub.s $f8,$f6,$f10 +/* f12265c: 27a70104 */ addiu $a3,$sp,0x104 +/* f122660: e7a40014 */ swc1 $f4,0x14($sp) +/* f122664: 0fc48ff5 */ jal sky0f123fd4 +/* f122668: e7a80164 */ swc1 $f8,0x164($sp) +/* f12266c: 1000008d */ b .L0f1228a4 +/* f122670: afa206b0 */ sw $v0,0x6b0($sp) +.L0f122674: +/* f122674: 44813000 */ mtc1 $at,$f6 +/* f122678: afaa0014 */ sw $t2,0x14($sp) +/* f12267c: 0fc48b53 */ jal sky0f122d4c +/* f122680: e7a60010 */ swc1 $f6,0x10($sp) +/* f122684: 10000087 */ b .L0f1228a4 +/* f122688: afa206b0 */ sw $v0,0x6b0($sp) +/* f12268c: 461a4100 */ add.s $f4,$f8,$f26 +.L0f122690: +/* f122690: c7aa0130 */ lwc1 $f10,0x130($sp) +/* f122694: 27a60094 */ addiu $a2,$sp,0x94 +/* f122698: 27a7013c */ addiu $a3,$sp,0x13c +/* f12269c: 460a203e */ c.le.s $f4,$f10 +/* f1226a0: 8fa406b0 */ lw $a0,0x6b0($sp) +/* f1226a4: 27a500cc */ addiu $a1,$sp,0xcc +/* f1226a8: 3c014302 */ lui $at,0x4302 +/* f1226ac: 4500002c */ bc1f .L0f122760 +/* f1226b0: 24180001 */ addiu $t8,$zero,0x1 +/* f1226b4: 0fc2d5fe */ jal camGetScreenLeft +/* f1226b8: 00000000 */ nop +/* f1226bc: 461a0182 */ mul.s $f6,$f0,$f26 +/* f1226c0: 0fc2d602 */ jal camGetScreenTop +/* f1226c4: e7a600bc */ swc1 $f6,0xbc($sp) +/* f1226c8: 461a0202 */ mul.s $f8,$f0,$f26 +/* f1226cc: 0fc2d5fe */ jal camGetScreenLeft +/* f1226d0: e7a800c0 */ swc1 $f8,0xc0($sp) +/* f1226d4: 0fc2d5f6 */ jal camGetScreenWidth +/* f1226d8: 46000506 */ mov.s $f20,$f0 +/* f1226dc: 46140280 */ add.s $f10,$f0,$f20 +/* f1226e0: 3c013f80 */ lui $at,0x3f80 +/* f1226e4: 44813000 */ mtc1 $at,$f6 +/* f1226e8: 461a5102 */ mul.s $f4,$f10,$f26 +/* f1226ec: 46062201 */ sub.s $f8,$f4,$f6 +/* f1226f0: 0fc2d602 */ jal camGetScreenTop +/* f1226f4: e7a800f4 */ swc1 $f8,0xf4($sp) +/* f1226f8: 461a0282 */ mul.s $f10,$f0,$f26 +/* f1226fc: 0fc2d5fe */ jal camGetScreenLeft +/* f122700: e7aa00f8 */ swc1 $f10,0xf8($sp) +/* f122704: 461a0102 */ mul.s $f4,$f0,$f26 +/* f122708: 0fc2d5fe */ jal camGetScreenLeft +/* f12270c: e7a4012c */ swc1 $f4,0x12c($sp) +/* f122710: 0fc2d5f6 */ jal camGetScreenWidth +/* f122714: 46000506 */ mov.s $f20,$f0 +/* f122718: 46140180 */ add.s $f6,$f0,$f20 +/* f12271c: 3c013f80 */ lui $at,0x3f80 +/* f122720: 44815000 */ mtc1 $at,$f10 +/* f122724: 3c014302 */ lui $at,0x4302 +/* f122728: 461a3202 */ mul.s $f8,$f6,$f26 +/* f12272c: 44813000 */ mtc1 $at,$f6 +/* f122730: 27ae0104 */ addiu $t6,$sp,0x104 +/* f122734: 27a60094 */ addiu $a2,$sp,0x94 +/* f122738: 27a7013c */ addiu $a3,$sp,0x13c +/* f12273c: afae0010 */ sw $t6,0x10($sp) +/* f122740: 8fa406b0 */ lw $a0,0x6b0($sp) +/* f122744: 460a4101 */ sub.s $f4,$f8,$f10 +/* f122748: 27a500cc */ addiu $a1,$sp,0xcc +/* f12274c: e7a60014 */ swc1 $f6,0x14($sp) +/* f122750: 0fc48ff5 */ jal sky0f123fd4 +/* f122754: e7a40164 */ swc1 $f4,0x164($sp) +/* f122758: 10000052 */ b .L0f1228a4 +/* f12275c: afa206b0 */ sw $v0,0x6b0($sp) +.L0f122760: +/* f122760: 44814000 */ mtc1 $at,$f8 +/* f122764: afb80014 */ sw $t8,0x14($sp) +/* f122768: 0fc48b53 */ jal sky0f122d4c +/* f12276c: e7a80010 */ swc1 $f8,0x10($sp) +/* f122770: 1000004c */ b .L0f1228a4 +/* f122774: afa206b0 */ sw $v0,0x6b0($sp) +.L0f122778: +/* f122778: 3c014302 */ lui $at,0x4302 +/* f12277c: 44815000 */ mtc1 $at,$f10 +/* f122780: 27b1013c */ addiu $s1,$sp,0x13c +/* f122784: 24090001 */ addiu $t1,$zero,0x1 +/* f122788: afa90014 */ sw $t1,0x14($sp) +/* f12278c: 02203825 */ or $a3,$s1,$zero +/* f122790: 8fa406b0 */ lw $a0,0x6b0($sp) +/* f122794: 02002825 */ or $a1,$s0,$zero +/* f122798: 27a600cc */ addiu $a2,$sp,0xcc +/* f12279c: 0fc48b53 */ jal sky0f122d4c +/* f1227a0: e7aa0010 */ swc1 $f10,0x10($sp) +/* f1227a4: 3c014302 */ lui $at,0x4302 +/* f1227a8: 44812000 */ mtc1 $at,$f4 +/* f1227ac: 24190001 */ addiu $t9,$zero,0x1 +/* f1227b0: afa206b0 */ sw $v0,0x6b0($sp) +/* f1227b4: afb90014 */ sw $t9,0x14($sp) +/* f1227b8: 00402025 */ or $a0,$v0,$zero +/* f1227bc: 02202825 */ or $a1,$s1,$zero +/* f1227c0: 27a60104 */ addiu $a2,$sp,0x104 +/* f1227c4: 02003825 */ or $a3,$s0,$zero +/* f1227c8: 0fc48b53 */ jal sky0f122d4c +/* f1227cc: e7a40010 */ swc1 $f4,0x10($sp) +/* f1227d0: 10000034 */ b .L0f1228a4 +/* f1227d4: afa206b0 */ sw $v0,0x6b0($sp) +.L0f1227d8: +/* f1227d8: 24010005 */ addiu $at,$zero,0x5 +/* f1227dc: 16210024 */ bne $s1,$at,.L0f122870 +/* f1227e0: 27b00094 */ addiu $s0,$sp,0x94 +/* f1227e4: 3c014302 */ lui $at,0x4302 +/* f1227e8: 44813000 */ mtc1 $at,$f6 +/* f1227ec: 240b0001 */ addiu $t3,$zero,0x1 +/* f1227f0: afab0014 */ sw $t3,0x14($sp) +/* f1227f4: 8fa406b0 */ lw $a0,0x6b0($sp) +/* f1227f8: 02002825 */ or $a1,$s0,$zero +/* f1227fc: 27a600cc */ addiu $a2,$sp,0xcc +/* f122800: 27a70104 */ addiu $a3,$sp,0x104 +/* f122804: 0fc48b53 */ jal sky0f122d4c +/* f122808: e7a60010 */ swc1 $f6,0x10($sp) +/* f12280c: 3c014302 */ lui $at,0x4302 +/* f122810: 44814000 */ mtc1 $at,$f8 +/* f122814: 27b1013c */ addiu $s1,$sp,0x13c +/* f122818: 240d0001 */ addiu $t5,$zero,0x1 +/* f12281c: afa206b0 */ sw $v0,0x6b0($sp) +/* f122820: afad0014 */ sw $t5,0x14($sp) +/* f122824: 02203825 */ or $a3,$s1,$zero +/* f122828: 00402025 */ or $a0,$v0,$zero +/* f12282c: 02002825 */ or $a1,$s0,$zero +/* f122830: 27a60104 */ addiu $a2,$sp,0x104 +/* f122834: 0fc48b53 */ jal sky0f122d4c +/* f122838: e7a80010 */ swc1 $f8,0x10($sp) +/* f12283c: 3c014302 */ lui $at,0x4302 +/* f122840: 44815000 */ mtc1 $at,$f10 +/* f122844: 240c0001 */ addiu $t4,$zero,0x1 +/* f122848: afa206b0 */ sw $v0,0x6b0($sp) +/* f12284c: afac0014 */ sw $t4,0x14($sp) +/* f122850: 00402025 */ or $a0,$v0,$zero +/* f122854: 02002825 */ or $a1,$s0,$zero +/* f122858: 02203025 */ or $a2,$s1,$zero +/* f12285c: 27a70174 */ addiu $a3,$sp,0x174 +/* f122860: 0fc48b53 */ jal sky0f122d4c +/* f122864: e7aa0010 */ swc1 $f10,0x10($sp) +/* f122868: 1000000e */ b .L0f1228a4 +/* f12286c: afa206b0 */ sw $v0,0x6b0($sp) +.L0f122870: +/* f122870: 24010003 */ addiu $at,$zero,0x3 +/* f122874: 1621000b */ bne $s1,$at,.L0f1228a4 +/* f122878: 27a50094 */ addiu $a1,$sp,0x94 +/* f12287c: 3c014302 */ lui $at,0x4302 +/* f122880: 44812000 */ mtc1 $at,$f4 +/* f122884: 240f0001 */ addiu $t7,$zero,0x1 +/* f122888: afaf0014 */ sw $t7,0x14($sp) +/* f12288c: 8fa406b0 */ lw $a0,0x6b0($sp) +/* f122890: 27a600cc */ addiu $a2,$sp,0xcc +/* f122894: 27a70104 */ addiu $a3,$sp,0x104 +/* f122898: 0fc48b53 */ jal sky0f122d4c +/* f12289c: e7a40010 */ swc1 $f4,0x10($sp) +/* f1228a0: afa206b0 */ sw $v0,0x6b0($sp) +.L0f1228a4: +/* f1228a4: 8fa206b0 */ lw $v0,0x6b0($sp) +.L0f1228a8: +/* f1228a8: 8fbf0054 */ lw $ra,0x54($sp) +/* f1228ac: d7b40020 */ ldc1 $f20,0x20($sp) +/* f1228b0: d7b60028 */ ldc1 $f22,0x28($sp) +/* f1228b4: d7b80030 */ ldc1 $f24,0x30($sp) +/* f1228b8: d7ba0038 */ ldc1 $f26,0x38($sp) +/* f1228bc: d7bc0040 */ ldc1 $f28,0x40($sp) +/* f1228c0: 8fb0004c */ lw $s0,0x4c($sp) +/* f1228c4: 8fb10050 */ lw $s1,0x50($sp) +/* f1228c8: 03e00008 */ jr $ra +/* f1228cc: 27bd06b0 */ addiu $sp,$sp,0x6b0 +); + +GLOBAL_ASM( +glabel sky0f1228d0 +.late_rodata +glabel var7f1b50cc +.word 0x46fffe00 +glabel var7f1b50d0 +.word 0x46fffe00 +glabel var7f1b50d4 +.word 0x43ff8000 +glabel var7f1b50d8 +.word 0xc57fa000 +glabel var7f1b50dc +.word 0xc57fa000 +.text +/* f1228d0: 27bdff88 */ addiu $sp,$sp,-120 +/* f1228d4: 30ceffff */ andi $t6,$a2,0xffff +/* f1228d8: 448e2000 */ mtc1 $t6,$f4 +/* f1228dc: afb00028 */ sw $s0,0x28($sp) +/* f1228e0: 44877000 */ mtc1 $a3,$f14 +/* f1228e4: 00808025 */ or $s0,$a0,$zero +/* f1228e8: afbf002c */ sw $ra,0x2c($sp) +/* f1228ec: f7b60020 */ sdc1 $f22,0x20($sp) +/* f1228f0: f7b40018 */ sdc1 $f20,0x18($sp) +/* f1228f4: afa60080 */ sw $a2,0x80($sp) +/* f1228f8: 05c10005 */ bgez $t6,.L0f122910 +/* f1228fc: 468021a0 */ cvt.s.w $f6,$f4 +/* f122900: 3c014f80 */ lui $at,0x4f80 +/* f122904: 44814000 */ mtc1 $at,$f8 +/* f122908: 00000000 */ nop +/* f12290c: 46083180 */ add.s $f6,$f6,$f8 +.L0f122910: +/* f122910: 3c014780 */ lui $at,0x4780 +/* f122914: 44815000 */ mtc1 $at,$f10 +/* f122918: c6120000 */ lwc1 $f18,0x0($s0) +/* f12291c: c4a40000 */ lwc1 $f4,0x0($a1) +/* f122920: 460a3003 */ div.s $f0,$f6,$f10 +/* f122924: c4aa0010 */ lwc1 $f10,0x10($a1) +/* f122928: c6060004 */ lwc1 $f6,0x4($s0) +/* f12292c: 3c013780 */ lui $at,0x3780 +/* f122930: 46049202 */ mul.s $f8,$f18,$f4 +/* f122934: 44816000 */ mtc1 $at,$f12 +/* f122938: 44808000 */ mtc1 $zero,$f16 +/* f12293c: 460a3482 */ mul.s $f18,$f6,$f10 +/* f122940: c4aa0020 */ lwc1 $f10,0x20($a1) +/* f122944: c6060008 */ lwc1 $f6,0x8($s0) +/* f122948: 46124100 */ add.s $f4,$f8,$f18 +/* f12294c: 460a3202 */ mul.s $f8,$f6,$f10 +/* f122950: c4a60030 */ lwc1 $f6,0x30($a1) +/* f122954: 46000086 */ mov.s $f2,$f0 +/* f122958: 46082480 */ add.s $f18,$f4,$f8 +/* f12295c: 46123280 */ add.s $f10,$f6,$f18 +/* f122960: e7aa0068 */ swc1 $f10,0x68($sp) +/* f122964: c6040000 */ lwc1 $f4,0x0($s0) +/* f122968: c4a80004 */ lwc1 $f8,0x4($a1) +/* f12296c: c6120004 */ lwc1 $f18,0x4($s0) +/* f122970: c4aa0014 */ lwc1 $f10,0x14($a1) +/* f122974: 46082182 */ mul.s $f6,$f4,$f8 +/* f122978: 00000000 */ nop +/* f12297c: 460a9102 */ mul.s $f4,$f18,$f10 +/* f122980: c4aa0024 */ lwc1 $f10,0x24($a1) +/* f122984: c6120008 */ lwc1 $f18,0x8($s0) +/* f122988: 46043200 */ add.s $f8,$f6,$f4 +/* f12298c: 460a9182 */ mul.s $f6,$f18,$f10 +/* f122990: c4b20034 */ lwc1 $f18,0x34($a1) +/* f122994: 46064100 */ add.s $f4,$f8,$f6 +/* f122998: 46049280 */ add.s $f10,$f18,$f4 +/* f12299c: e7aa006c */ swc1 $f10,0x6c($sp) +/* f1229a0: c6080000 */ lwc1 $f8,0x0($s0) +/* f1229a4: c4a60008 */ lwc1 $f6,0x8($a1) +/* f1229a8: c6040004 */ lwc1 $f4,0x4($s0) +/* f1229ac: c4aa0018 */ lwc1 $f10,0x18($a1) +/* f1229b0: 46064482 */ mul.s $f18,$f8,$f6 +/* f1229b4: 00000000 */ nop +/* f1229b8: 460a2202 */ mul.s $f8,$f4,$f10 +/* f1229bc: c4aa0028 */ lwc1 $f10,0x28($a1) +/* f1229c0: c6040008 */ lwc1 $f4,0x8($s0) +/* f1229c4: 46089180 */ add.s $f6,$f18,$f8 +/* f1229c8: 460a2482 */ mul.s $f18,$f4,$f10 +/* f1229cc: c4a40038 */ lwc1 $f4,0x38($a1) +/* f1229d0: 46123200 */ add.s $f8,$f6,$f18 +/* f1229d4: 46082280 */ add.s $f10,$f4,$f8 +/* f1229d8: e7aa0070 */ swc1 $f10,0x70($sp) +/* f1229dc: c4b2000c */ lwc1 $f18,0xc($a1) +/* f1229e0: c6060000 */ lwc1 $f6,0x0($s0) +/* f1229e4: c4aa001c */ lwc1 $f10,0x1c($a1) +/* f1229e8: c6080004 */ lwc1 $f8,0x4($s0) +/* f1229ec: 46123102 */ mul.s $f4,$f6,$f18 +/* f1229f0: 00000000 */ nop +/* f1229f4: 460a4182 */ mul.s $f6,$f8,$f10 +/* f1229f8: c4aa002c */ lwc1 $f10,0x2c($a1) +/* f1229fc: c6080008 */ lwc1 $f8,0x8($s0) +/* f122a00: 46062480 */ add.s $f18,$f4,$f6 +/* f122a04: 460a4102 */ mul.s $f4,$f8,$f10 +/* f122a08: c4a8003c */ lwc1 $f8,0x3c($a1) +/* f122a0c: 46049180 */ add.s $f6,$f18,$f4 +/* f122a10: 460c7102 */ mul.s $f4,$f14,$f12 +/* f122a14: 46064280 */ add.s $f10,$f8,$f6 +/* f122a18: e7aa0074 */ swc1 $f10,0x74($sp) +/* f122a1c: c612000c */ lwc1 $f18,0xc($s0) +/* f122a20: c7aa0088 */ lwc1 $f10,0x88($sp) +/* f122a24: 46049202 */ mul.s $f8,$f18,$f4 +/* f122a28: e7a80060 */ swc1 $f8,0x60($sp) +/* f122a2c: 460c5482 */ mul.s $f18,$f10,$f12 +/* f122a30: c6060010 */ lwc1 $f6,0x10($s0) +/* f122a34: c7a80074 */ lwc1 $f8,0x74($sp) +/* f122a38: 46088032 */ c.eq.s $f16,$f8 +/* f122a3c: 46123102 */ mul.s $f4,$f6,$f18 +/* f122a40: e7a40064 */ swc1 $f4,0x64($sp) +/* f122a44: 45000004 */ bc1f .L0f122a58 +/* f122a48: c7a40068 */ lwc1 $f4,0x68($sp) +/* f122a4c: 3c017f1b */ lui $at,%hi(var7f1b50cc) +/* f122a50: 10000006 */ b .L0f122a6c +/* f122a54: c43650cc */ lwc1 $f22,%lo(var7f1b50cc)($at) +.L0f122a58: +/* f122a58: c7a60074 */ lwc1 $f6,0x74($sp) +/* f122a5c: 3c013f80 */ lui $at,0x3f80 +/* f122a60: 44815000 */ mtc1 $at,$f10 +/* f122a64: 46003482 */ mul.s $f18,$f6,$f0 +/* f122a68: 46125583 */ div.s $f22,$f10,$f18 +.L0f122a6c: +/* f122a6c: 4610b03c */ c.lt.s $f22,$f16 +/* f122a70: 4600b006 */ mov.s $f0,$f22 +/* f122a74: 45000002 */ bc1f .L0f122a80 +/* f122a78: 3c017f1b */ lui $at,%hi(var7f1b50d0) +/* f122a7c: c42050d0 */ lwc1 $f0,%lo(var7f1b50d0)($at) +.L0f122a80: +/* f122a80: 46002202 */ mul.s $f8,$f4,$f0 +/* f122a84: c7aa006c */ lwc1 $f10,0x6c($sp) +/* f122a88: 46024182 */ mul.s $f6,$f8,$f2 +/* f122a8c: c7a80070 */ lwc1 $f8,0x70($sp) +/* f122a90: 46005482 */ mul.s $f18,$f10,$f0 +/* f122a94: e7a60048 */ swc1 $f6,0x48($sp) +/* f122a98: 46029102 */ mul.s $f4,$f18,$f2 +/* f122a9c: c7b20074 */ lwc1 $f18,0x74($sp) +/* f122aa0: 46004182 */ mul.s $f6,$f8,$f0 +/* f122aa4: e7a4004c */ swc1 $f4,0x4c($sp) +/* f122aa8: 46023282 */ mul.s $f10,$f6,$f2 +/* f122aac: 00000000 */ nop +/* f122ab0: 46009102 */ mul.s $f4,$f18,$f0 +/* f122ab4: e7aa0050 */ swc1 $f10,0x50($sp) +/* f122ab8: 46022202 */ mul.s $f8,$f4,$f2 +/* f122abc: 0fc2d5f6 */ jal camGetScreenWidth +/* f122ac0: e7a80054 */ swc1 $f8,0x54($sp) +/* f122ac4: 0fc2d5f6 */ jal camGetScreenWidth +/* f122ac8: 46000506 */ mov.s $f20,$f0 +/* f122acc: 0fc2d5fe */ jal camGetScreenLeft +/* f122ad0: e7a00030 */ swc1 $f0,0x30($sp) +/* f122ad4: 3c014080 */ lui $at,0x4080 +/* f122ad8: 44813000 */ mtc1 $at,$f6 +/* f122adc: c7a20030 */ lwc1 $f2,0x30($sp) +/* f122ae0: c7a80048 */ lwc1 $f8,0x48($sp) +/* f122ae4: 46060282 */ mul.s $f10,$f0,$f6 +/* f122ae8: 46021480 */ add.s $f18,$f2,$f2 +/* f122aec: 4614a180 */ add.s $f6,$f20,$f20 +/* f122af0: 46125100 */ add.s $f4,$f10,$f18 +/* f122af4: 46064282 */ mul.s $f10,$f8,$f6 +/* f122af8: 460a2480 */ add.s $f18,$f4,$f10 +/* f122afc: 0fc2d5fa */ jal camGetScreenHeight +/* f122b00: e7b20038 */ swc1 $f18,0x38($sp) +/* f122b04: 0fc2d5fa */ jal camGetScreenHeight +/* f122b08: 46000506 */ mov.s $f20,$f0 +/* f122b0c: 0fc2d602 */ jal camGetScreenTop +/* f122b10: e7a00030 */ swc1 $f0,0x30($sp) +/* f122b14: 3c017f1b */ lui $at,%hi(var7f1b50d4) +/* f122b18: c43050d4 */ lwc1 $f16,%lo(var7f1b50d4)($at) +/* f122b1c: 3c014080 */ lui $at,0x4080 +/* f122b20: 44814000 */ mtc1 $at,$f8 +/* f122b24: c7a20030 */ lwc1 $f2,0x30($sp) +/* f122b28: c7b2004c */ lwc1 $f18,0x4c($sp) +/* f122b2c: 46080182 */ mul.s $f6,$f0,$f8 +/* f122b30: 46021100 */ add.s $f4,$f2,$f2 +/* f122b34: 3c017f1b */ lui $at,%hi(var7f1b50d8) +/* f122b38: 3c06457f */ lui $a2,0x457f +/* f122b3c: 46009207 */ neg.s $f8,$f18 +/* f122b40: 34c6a000 */ ori $a2,$a2,0xa000 +/* f122b44: c42e50d8 */ lwc1 $f14,%lo(var7f1b50d8)($at) +/* f122b48: 46043280 */ add.s $f10,$f6,$f4 +/* f122b4c: c7ac0038 */ lwc1 $f12,0x38($sp) +/* f122b50: 4614a180 */ add.s $f6,$f20,$f20 +/* f122b54: 46064102 */ mul.s $f4,$f8,$f6 +/* f122b58: c7a80050 */ lwc1 $f8,0x50($sp) +/* f122b5c: 46104182 */ mul.s $f6,$f8,$f16 +/* f122b60: 46045480 */ add.s $f18,$f10,$f4 +/* f122b64: c7a40054 */ lwc1 $f4,0x54($sp) +/* f122b68: 46103280 */ add.s $f10,$f6,$f16 +/* f122b6c: e7b2003c */ swc1 $f18,0x3c($sp) +/* f122b70: 44809000 */ mtc1 $zero,$f18 +/* f122b74: e7aa0040 */ swc1 $f10,0x40($sp) +/* f122b78: 46122202 */ mul.s $f8,$f4,$f18 +/* f122b7c: 0fc47cf4 */ jal sky0f11f3d0 +/* f122b80: e7a80044 */ swc1 $f8,0x44($sp) +/* f122b84: 3c017f1b */ lui $at,%hi(var7f1b50dc) +/* f122b88: 3c06457f */ lui $a2,0x457f +/* f122b8c: e7a00038 */ swc1 $f0,0x38($sp) +/* f122b90: 34c6a000 */ ori $a2,$a2,0xa000 +/* f122b94: c42e50dc */ lwc1 $f14,%lo(var7f1b50dc)($at) +/* f122b98: 0fc47cf4 */ jal sky0f11f3d0 +/* f122b9c: c7ac003c */ lwc1 $f12,0x3c($sp) +/* f122ba0: 44807000 */ mtc1 $zero,$f14 +/* f122ba4: 3c0646ff */ lui $a2,0x46ff +/* f122ba8: e7a0003c */ swc1 $f0,0x3c($sp) +/* f122bac: 34c6fe00 */ ori $a2,$a2,0xfe00 +/* f122bb0: 0fc47cf4 */ jal sky0f11f3d0 +/* f122bb4: c7ac0040 */ lwc1 $f12,0x40($sp) +/* f122bb8: 44807000 */ mtc1 $zero,$f14 +/* f122bbc: 3c0646ff */ lui $a2,0x46ff +/* f122bc0: e7a00040 */ swc1 $f0,0x40($sp) +/* f122bc4: 34c6fe00 */ ori $a2,$a2,0xfe00 +/* f122bc8: 0fc47cf4 */ jal sky0f11f3d0 +/* f122bcc: c7ac0044 */ lwc1 $f12,0x44($sp) +/* f122bd0: 8fa3008c */ lw $v1,0x8c($sp) +/* f122bd4: c7a60068 */ lwc1 $f6,0x68($sp) +/* f122bd8: e7a00044 */ swc1 $f0,0x44($sp) +/* f122bdc: e4660000 */ swc1 $f6,0x0($v1) +/* f122be0: c7aa006c */ lwc1 $f10,0x6c($sp) +/* f122be4: e46a0004 */ swc1 $f10,0x4($v1) +/* f122be8: c7a40070 */ lwc1 $f4,0x70($sp) +/* f122bec: e4640008 */ swc1 $f4,0x8($v1) +/* f122bf0: c7b20074 */ lwc1 $f18,0x74($sp) +/* f122bf4: e472000c */ swc1 $f18,0xc($v1) +/* f122bf8: c7a80060 */ lwc1 $f8,0x60($sp) +/* f122bfc: e4680020 */ swc1 $f8,0x20($v1) +/* f122c00: c7a60064 */ lwc1 $f6,0x64($sp) +/* f122c04: e4660024 */ swc1 $f6,0x24($v1) +/* f122c08: c7aa0038 */ lwc1 $f10,0x38($sp) +/* f122c0c: 0fc595f3 */ jal envGetCurrent +/* f122c10: e46a0028 */ swc1 $f10,0x28($v1) +/* f122c14: 3c014080 */ lui $at,0x4080 +/* f122c18: 44819000 */ mtc1 $at,$f18 +/* f122c1c: c4440040 */ lwc1 $f4,0x40($v0) +/* f122c20: c7a6003c */ lwc1 $f6,0x3c($sp) +/* f122c24: 8fa3008c */ lw $v1,0x8c($sp) +/* f122c28: 46122202 */ mul.s $f8,$f4,$f18 +/* f122c2c: 3c014f80 */ lui $at,0x4f80 +/* f122c30: 46083281 */ sub.s $f10,$f6,$f8 +/* f122c34: e46a002c */ swc1 $f10,0x2c($v1) +/* f122c38: c7a40040 */ lwc1 $f4,0x40($sp) +/* f122c3c: e4760034 */ swc1 $f22,0x34($v1) +/* f122c40: e4640030 */ swc1 $f4,0x30($v1) +/* f122c44: 920f0014 */ lbu $t7,0x14($s0) +/* f122c48: 448f9000 */ mtc1 $t7,$f18 +/* f122c4c: 05e10004 */ bgez $t7,.L0f122c60 +/* f122c50: 468091a0 */ cvt.s.w $f6,$f18 +/* f122c54: 44814000 */ mtc1 $at,$f8 +/* f122c58: 00000000 */ nop +/* f122c5c: 46083180 */ add.s $f6,$f6,$f8 +.L0f122c60: +/* f122c60: e4660010 */ swc1 $f6,0x10($v1) +/* f122c64: 92180015 */ lbu $t8,0x15($s0) +/* f122c68: 3c014f80 */ lui $at,0x4f80 +/* f122c6c: 44985000 */ mtc1 $t8,$f10 +/* f122c70: 07010004 */ bgez $t8,.L0f122c84 +/* f122c74: 46805120 */ cvt.s.w $f4,$f10 +/* f122c78: 44819000 */ mtc1 $at,$f18 +/* f122c7c: 00000000 */ nop +/* f122c80: 46122100 */ add.s $f4,$f4,$f18 +.L0f122c84: +/* f122c84: e4640014 */ swc1 $f4,0x14($v1) +/* f122c88: 92190016 */ lbu $t9,0x16($s0) +/* f122c8c: 3c014f80 */ lui $at,0x4f80 +/* f122c90: 44994000 */ mtc1 $t9,$f8 +/* f122c94: 07210004 */ bgez $t9,.L0f122ca8 +/* f122c98: 468041a0 */ cvt.s.w $f6,$f8 +/* f122c9c: 44815000 */ mtc1 $at,$f10 +/* f122ca0: 00000000 */ nop +/* f122ca4: 460a3180 */ add.s $f6,$f6,$f10 +.L0f122ca8: +/* f122ca8: e4660018 */ swc1 $f6,0x18($v1) +/* f122cac: 92080017 */ lbu $t0,0x17($s0) +/* f122cb0: 3c014f80 */ lui $at,0x4f80 +/* f122cb4: 44889000 */ mtc1 $t0,$f18 +/* f122cb8: 05010004 */ bgez $t0,.L0f122ccc +/* f122cbc: 46809120 */ cvt.s.w $f4,$f18 +/* f122cc0: 44814000 */ mtc1 $at,$f8 +/* f122cc4: 00000000 */ nop +/* f122cc8: 46082100 */ add.s $f4,$f4,$f8 +.L0f122ccc: +/* f122ccc: e464001c */ swc1 $f4,0x1c($v1) +/* f122cd0: 8fbf002c */ lw $ra,0x2c($sp) +/* f122cd4: 8fb00028 */ lw $s0,0x28($sp) +/* f122cd8: d7b60020 */ ldc1 $f22,0x20($sp) +/* f122cdc: d7b40018 */ ldc1 $f20,0x18($sp) +/* f122ce0: 03e00008 */ jr $ra +/* f122ce4: 27bd0078 */ addiu $sp,$sp,0x78 +); + +GLOBAL_ASM( +glabel sky0f122ce8 +/* f122ce8: 27bdffe8 */ addiu $sp,$sp,-24 +/* f122cec: afbf0014 */ sw $ra,0x14($sp) +/* f122cf0: c4a60028 */ lwc1 $f6,0x28($a1) +/* f122cf4: c4840028 */ lwc1 $f4,0x28($a0) +/* f122cf8: c4aa002c */ lwc1 $f10,0x2c($a1) +/* f122cfc: c488002c */ lwc1 $f8,0x2c($a0) +/* f122d00: 46062001 */ sub.s $f0,$f4,$f6 +/* f122d04: 460a4081 */ sub.s $f2,$f8,$f10 +/* f122d08: 46000402 */ mul.s $f16,$f0,$f0 +/* f122d0c: 00000000 */ nop +/* f122d10: 46021482 */ mul.s $f18,$f2,$f2 +/* f122d14: 0c012974 */ jal sqrtf +/* f122d18: 46128300 */ add.s $f12,$f16,$f18 +/* f122d1c: 3c013f80 */ lui $at,0x3f80 +/* f122d20: 44812000 */ mtc1 $at,$f4 +/* f122d24: 8fbf0014 */ lw $ra,0x14($sp) +/* f122d28: 27bd0018 */ addiu $sp,$sp,0x18 +/* f122d2c: 4604003c */ c.lt.s $f0,$f4 +/* f122d30: 00001825 */ or $v1,$zero,$zero +/* f122d34: 45000003 */ bc1f .L0f122d44 +/* f122d38: 00000000 */ nop +/* f122d3c: 10000001 */ b .L0f122d44 +/* f122d40: 24030001 */ addiu $v1,$zero,0x1 +.L0f122d44: +/* f122d44: 03e00008 */ jr $ra +/* f122d48: 00601025 */ or $v0,$v1,$zero +); + +GLOBAL_ASM( +glabel sky0f122d4c +.late_rodata +glabel var7f1b50e0 +.word 0xc4eac000 +glabel var7f1b50e4 +.word 0xc4eac000 +glabel var7f1b50e8 +.word 0xc4eac000 +glabel var7f1b50ec +.word 0x46fffe00 +.text +/* f122d4c: 27bdfb78 */ addiu $sp,$sp,-1160 +/* f122d50: afb00020 */ sw $s0,0x20($sp) +/* f122d54: 00808025 */ or $s0,$a0,$zero +/* f122d58: afbf0024 */ sw $ra,0x24($sp) +/* f122d5c: afa5048c */ sw $a1,0x48c($sp) +/* f122d60: 00a02025 */ or $a0,$a1,$zero +/* f122d64: f7b40018 */ sdc1 $f20,0x18($sp) +/* f122d68: 00c02825 */ or $a1,$a2,$zero +/* f122d6c: afa60490 */ sw $a2,0x490($sp) +/* f122d70: 0fc48b3a */ jal sky0f122ce8 +/* f122d74: afa70494 */ sw $a3,0x494($sp) +/* f122d78: 8fa60490 */ lw $a2,0x490($sp) +/* f122d7c: 14400013 */ bnez $v0,.L0f122dcc +/* f122d80: 8fa70494 */ lw $a3,0x494($sp) +/* f122d84: 00c02025 */ or $a0,$a2,$zero +/* f122d88: 00e02825 */ or $a1,$a3,$zero +/* f122d8c: afa60490 */ sw $a2,0x490($sp) +/* f122d90: 0fc48b3a */ jal sky0f122ce8 +/* f122d94: afa70494 */ sw $a3,0x494($sp) +/* f122d98: 8faf048c */ lw $t7,0x48c($sp) +/* f122d9c: 8fa60490 */ lw $a2,0x490($sp) +/* f122da0: 1440000a */ bnez $v0,.L0f122dcc +/* f122da4: 8fa70494 */ lw $a3,0x494($sp) +/* f122da8: 00e02025 */ or $a0,$a3,$zero +/* f122dac: 01e02825 */ or $a1,$t7,$zero +/* f122db0: afa60490 */ sw $a2,0x490($sp) +/* f122db4: 0fc48b3a */ jal sky0f122ce8 +/* f122db8: afa70494 */ sw $a3,0x494($sp) +/* f122dbc: 8fa3048c */ lw $v1,0x48c($sp) +/* f122dc0: 8fa60490 */ lw $a2,0x490($sp) +/* f122dc4: 10400003 */ beqz $v0,.L0f122dd4 +/* f122dc8: 8fa70494 */ lw $a3,0x494($sp) +.L0f122dcc: +/* f122dcc: 1000047c */ b .L0f123fc0 +/* f122dd0: 02001025 */ or $v0,$s0,$zero +.L0f122dd4: +/* f122dd4: 3c014780 */ lui $at,0x4780 +/* f122dd8: 44813000 */ mtc1 $at,$f6 +/* f122ddc: c7a40498 */ lwc1 $f4,0x498($sp) +/* f122de0: 3c013780 */ lui $at,0x3780 +/* f122de4: 4480a000 */ mtc1 $zero,$f20 +/* f122de8: 46062203 */ div.s $f8,$f4,$f6 +/* f122dec: e7a80378 */ swc1 $f8,0x378($sp) +/* f122df0: c4c4002c */ lwc1 $f4,0x2c($a2) +/* f122df4: c4ca0028 */ lwc1 $f10,0x28($a2) +/* f122df8: c4600028 */ lwc1 $f0,0x28($v1) +/* f122dfc: e7a4005c */ swc1 $f4,0x5c($sp) +/* f122e00: c4e80028 */ lwc1 $f8,0x28($a3) +/* f122e04: 46005301 */ sub.s $f12,$f10,$f0 +/* f122e08: c46e002c */ lwc1 $f14,0x2c($v1) +/* f122e0c: c7a6005c */ lwc1 $f6,0x5c($sp) +/* f122e10: 46004281 */ sub.s $f10,$f8,$f0 +/* f122e14: 460e3401 */ sub.s $f16,$f6,$f14 +/* f122e18: e7aa046c */ swc1 $f10,0x46c($sp) +/* f122e1c: c4e4002c */ lwc1 $f4,0x2c($a3) +/* f122e20: c7a8046c */ lwc1 $f8,0x46c($sp) +/* f122e24: e7a40054 */ swc1 $f4,0x54($sp) +/* f122e28: c7a60054 */ lwc1 $f6,0x54($sp) +/* f122e2c: 46104282 */ mul.s $f10,$f8,$f16 +/* f122e30: 44814000 */ mtc1 $at,$f8 +/* f122e34: 460e3481 */ sub.s $f18,$f6,$f14 +/* f122e38: 46126102 */ mul.s $f4,$f12,$f18 +/* f122e3c: 46045181 */ sub.s $f6,$f10,$f4 +/* f122e40: c7a4005c */ lwc1 $f4,0x5c($sp) +/* f122e44: 46083082 */ mul.s $f2,$f6,$f8 +/* f122e48: 4602a032 */ c.eq.s $f20,$f2 +/* f122e4c: e7a20444 */ swc1 $f2,0x444($sp) +/* f122e50: 45020004 */ bc1fl .L0f122e64 +/* f122e54: 460e203c */ c.lt.s $f4,$f14 +/* f122e58: 10000459 */ b .L0f123fc0 +/* f122e5c: 02001025 */ or $v0,$s0,$zero +/* f122e60: 460e203c */ c.lt.s $f4,$f14 +.L0f122e64: +/* f122e64: 3c013f80 */ lui $at,0x3f80 +/* f122e68: 44815000 */ mtc1 $at,$f10 +/* f122e6c: 00604825 */ or $t1,$v1,$zero +/* f122e70: 00c04025 */ or $t0,$a2,$zero +/* f122e74: 00e05825 */ or $t3,$a3,$zero +/* f122e78: 45000009 */ bc1f .L0f122ea0 +/* f122e7c: 46025403 */ div.s $f16,$f10,$f2 +/* f122e80: 3c01bf80 */ lui $at,0xbf80 +/* f122e84: 44816000 */ mtc1 $at,$f12 +/* f122e88: 00604025 */ or $t0,$v1,$zero +/* f122e8c: 00c04825 */ or $t1,$a2,$zero +/* f122e90: 460c1382 */ mul.s $f14,$f2,$f12 +/* f122e94: e7ae0444 */ swc1 $f14,0x444($sp) +/* f122e98: 460c8402 */ mul.s $f16,$f16,$f12 +/* f122e9c: 00000000 */ nop +.L0f122ea0: +/* f122ea0: c500002c */ lwc1 $f0,0x2c($t0) +/* f122ea4: c7a60054 */ lwc1 $f6,0x54($sp) +/* f122ea8: 3c01bf80 */ lui $at,0xbf80 +/* f122eac: 44816000 */ mtc1 $at,$f12 +/* f122eb0: 4600303c */ c.lt.s $f6,$f0 +/* f122eb4: c7ae0444 */ lwc1 $f14,0x444($sp) +/* f122eb8: 3c013e80 */ lui $at,0x3e80 +/* f122ebc: 45020007 */ bc1fl .L0f122edc +/* f122ec0: e7ae0444 */ swc1 $f14,0x444($sp) +/* f122ec4: 460c7382 */ mul.s $f14,$f14,$f12 +/* f122ec8: 01005825 */ or $t3,$t0,$zero +/* f122ecc: 00e04025 */ or $t0,$a3,$zero +/* f122ed0: 460c8402 */ mul.s $f16,$f16,$f12 +/* f122ed4: c4e0002c */ lwc1 $f0,0x2c($a3) +/* f122ed8: e7ae0444 */ swc1 $f14,0x444($sp) +.L0f122edc: +/* f122edc: e7b00440 */ swc1 $f16,0x440($sp) +/* f122ee0: c528002c */ lwc1 $f8,0x2c($t1) +/* f122ee4: 4608003c */ c.lt.s $f0,$f8 +/* f122ee8: 44810000 */ mtc1 $at,$f0 +/* f122eec: 3c014080 */ lui $at,0x4080 +/* f122ef0: 44811000 */ mtc1 $at,$f2 +/* f122ef4: 45000008 */ bc1f .L0f122f18 +/* f122ef8: 3c013e80 */ lui $at,0x3e80 +/* f122efc: 460c7382 */ mul.s $f14,$f14,$f12 +/* f122f00: 01001025 */ or $v0,$t0,$zero +/* f122f04: 01204025 */ or $t0,$t1,$zero +/* f122f08: 460c8402 */ mul.s $f16,$f16,$f12 +/* f122f0c: 00404825 */ or $t1,$v0,$zero +/* f122f10: e7ae0444 */ swc1 $f14,0x444($sp) +/* f122f14: e7b00440 */ swc1 $f16,0x440($sp) +.L0f122f18: +/* f122f18: c50a0028 */ lwc1 $f10,0x28($t0) +/* f122f1c: 44812000 */ mtc1 $at,$f4 +/* f122f20: e7b40424 */ swc1 $f20,0x424($sp) +/* f122f24: 3c0644ea */ lui $a2,0x44ea +/* f122f28: 46045182 */ mul.s $f6,$f10,$f4 +/* f122f2c: 44815000 */ mtc1 $at,$f10 +/* f122f30: 34c6a000 */ ori $a2,$a2,0xa000 +/* f122f34: e7a60420 */ swc1 $f6,0x420($sp) +/* f122f38: c5280028 */ lwc1 $f8,0x28($t1) +/* f122f3c: e7b4042c */ swc1 $f20,0x42c($sp) +/* f122f40: 460a4102 */ mul.s $f4,$f8,$f10 +/* f122f44: 44814000 */ mtc1 $at,$f8 +/* f122f48: 3c017f1b */ lui $at,%hi(var7f1b50e0) +/* f122f4c: e7a40428 */ swc1 $f4,0x428($sp) +/* f122f50: c5260028 */ lwc1 $f6,0x28($t1) +/* f122f54: e7b40434 */ swc1 $f20,0x434($sp) +/* f122f58: e7b4043c */ swc1 $f20,0x43c($sp) +/* f122f5c: 46083282 */ mul.s $f10,$f6,$f8 +/* f122f60: e7b40438 */ swc1 $f20,0x438($sp) +/* f122f64: e7aa0430 */ swc1 $f10,0x430($sp) +/* f122f68: c5640028 */ lwc1 $f4,0x28($t3) +/* f122f6c: e7a40448 */ swc1 $f4,0x448($sp) +/* f122f70: c566002c */ lwc1 $f6,0x2c($t3) +/* f122f74: e7a6044c */ swc1 $f6,0x44c($sp) +/* f122f78: c5080028 */ lwc1 $f8,0x28($t0) +/* f122f7c: e7a80450 */ swc1 $f8,0x450($sp) +/* f122f80: c50a002c */ lwc1 $f10,0x2c($t0) +/* f122f84: c7a80450 */ lwc1 $f8,0x450($sp) +/* f122f88: e7aa0454 */ swc1 $f10,0x454($sp) +/* f122f8c: c5240028 */ lwc1 $f4,0x28($t1) +/* f122f90: e7a40458 */ swc1 $f4,0x458($sp) +/* f122f94: c7aa0458 */ lwc1 $f10,0x458($sp) +/* f122f98: c526002c */ lwc1 $f6,0x2c($t1) +/* f122f9c: e7a80028 */ swc1 $f8,0x28($sp) +/* f122fa0: 460a4101 */ sub.s $f4,$f8,$f10 +/* f122fa4: e7a6045c */ swc1 $f6,0x45c($sp) +/* f122fa8: c7a60454 */ lwc1 $f6,0x454($sp) +/* f122fac: c7a8045c */ lwc1 $f8,0x45c($sp) +/* f122fb0: e7a40474 */ swc1 $f4,0x474($sp) +/* f122fb4: e7a40030 */ swc1 $f4,0x30($sp) +/* f122fb8: e7aa002c */ swc1 $f10,0x2c($sp) +/* f122fbc: c7a4002c */ lwc1 $f4,0x2c($sp) +/* f122fc0: 46083401 */ sub.s $f16,$f6,$f8 +/* f122fc4: e7a6002c */ swc1 $f6,0x2c($sp) +/* f122fc8: c7a6044c */ lwc1 $f6,0x44c($sp) +/* f122fcc: c7aa0448 */ lwc1 $f10,0x448($sp) +/* f122fd0: e7b403fc */ swc1 $f20,0x3fc($sp) +/* f122fd4: 46083481 */ sub.s $f18,$f6,$f8 +/* f122fd8: c7a80028 */ lwc1 $f8,0x28($sp) +/* f122fdc: e7b403f8 */ swc1 $f20,0x3f8($sp) +/* f122fe0: 46045101 */ sub.s $f4,$f10,$f4 +/* f122fe4: e7b403dc */ swc1 $f20,0x3dc($sp) +/* f122fe8: e7b403d8 */ swc1 $f20,0x3d8($sp) +/* f122fec: 46085301 */ sub.s $f12,$f10,$f8 +/* f122ff0: c7aa002c */ lwc1 $f10,0x2c($sp) +/* f122ff4: e7a4046c */ swc1 $f4,0x46c($sp) +/* f122ff8: e7b403a0 */ swc1 $f20,0x3a0($sp) +/* f122ffc: 46006202 */ mul.s $f8,$f12,$f0 +/* f123000: 460a3381 */ sub.s $f14,$f6,$f10 +/* f123004: c7aa0030 */ lwc1 $f10,0x30($sp) +/* f123008: e7ac0464 */ swc1 $f12,0x464($sp) +/* f12300c: e7b403a8 */ swc1 $f20,0x3a8($sp) +/* f123010: 46007182 */ mul.s $f6,$f14,$f0 +/* f123014: e7ae0460 */ swc1 $f14,0x460($sp) +/* f123018: e7a803e0 */ swc1 $f8,0x3e0($sp) +/* f12301c: 46005202 */ mul.s $f8,$f10,$f0 +/* f123020: e7b403b0 */ swc1 $f20,0x3b0($sp) +/* f123024: e7b403bc */ swc1 $f20,0x3bc($sp) +/* f123028: e7b403b8 */ swc1 $f20,0x3b8($sp) +/* f12302c: e7a603e4 */ swc1 $f6,0x3e4($sp) +/* f123030: 46008182 */ mul.s $f6,$f16,$f0 +/* f123034: e7b40380 */ swc1 $f20,0x380($sp) +/* f123038: e7a803e8 */ swc1 $f8,0x3e8($sp) +/* f12303c: 46002202 */ mul.s $f8,$f4,$f0 +/* f123040: e7b40388 */ swc1 $f20,0x388($sp) +/* f123044: e7b40390 */ swc1 $f20,0x390($sp) +/* f123048: e7b4039c */ swc1 $f20,0x39c($sp) +/* f12304c: e7a603ec */ swc1 $f6,0x3ec($sp) +/* f123050: 46009182 */ mul.s $f6,$f18,$f0 +/* f123054: c7a00460 */ lwc1 $f0,0x460($sp) +/* f123058: e7a803f0 */ swc1 $f8,0x3f0($sp) +/* f12305c: 46026202 */ mul.s $f8,$f12,$f2 +/* f123060: e7b40398 */ swc1 $f20,0x398($sp) +/* f123064: afab047c */ sw $t3,0x47c($sp) +/* f123068: afa90484 */ sw $t1,0x484($sp) +/* f12306c: e7a603f4 */ swc1 $f6,0x3f4($sp) +/* f123070: 46027182 */ mul.s $f6,$f14,$f2 +/* f123074: c42e50e0 */ lwc1 $f14,%lo(var7f1b50e0)($at) +/* f123078: e7a803c0 */ swc1 $f8,0x3c0($sp) +/* f12307c: 46025202 */ mul.s $f8,$f10,$f2 +/* f123080: afa80480 */ sw $t0,0x480($sp) +/* f123084: e7a603c4 */ swc1 $f6,0x3c4($sp) +/* f123088: 46028182 */ mul.s $f6,$f16,$f2 +/* f12308c: e7a803c8 */ swc1 $f8,0x3c8($sp) +/* f123090: 46022202 */ mul.s $f8,$f4,$f2 +/* f123094: e7a603cc */ swc1 $f6,0x3cc($sp) +/* f123098: 46029182 */ mul.s $f6,$f18,$f2 +/* f12309c: e7a803d0 */ swc1 $f8,0x3d0($sp) +/* f1230a0: 46001203 */ div.s $f8,$f2,$f0 +/* f1230a4: e7a603d4 */ swc1 $f6,0x3d4($sp) +/* f1230a8: 46101183 */ div.s $f6,$f2,$f16 +/* f1230ac: e7a803a4 */ swc1 $f8,0x3a4($sp) +/* f1230b0: 46121203 */ div.s $f8,$f2,$f18 +/* f1230b4: e7a603ac */ swc1 $f6,0x3ac($sp) +/* f1230b8: c7a60464 */ lwc1 $f6,0x464($sp) +/* f1230bc: 46003303 */ div.s $f12,$f6,$f0 +/* f1230c0: e7a803b4 */ swc1 $f8,0x3b4($sp) +/* f1230c4: 46122183 */ div.s $f6,$f4,$f18 +/* f1230c8: e7ac0384 */ swc1 $f12,0x384($sp) +/* f1230cc: 46105203 */ div.s $f8,$f10,$f16 +/* f1230d0: e7a60394 */ swc1 $f6,0x394($sp) +/* f1230d4: 0fc47cf4 */ jal sky0f11f3d0 +/* f1230d8: e7a8038c */ swc1 $f8,0x38c($sp) +/* f1230dc: 3c017f1b */ lui $at,%hi(var7f1b50e4) +/* f1230e0: 3c0644ea */ lui $a2,0x44ea +/* f1230e4: e7a00384 */ swc1 $f0,0x384($sp) +/* f1230e8: 34c6a000 */ ori $a2,$a2,0xa000 +/* f1230ec: c42e50e4 */ lwc1 $f14,%lo(var7f1b50e4)($at) +/* f1230f0: 0fc47cf4 */ jal sky0f11f3d0 +/* f1230f4: c7ac038c */ lwc1 $f12,0x38c($sp) +/* f1230f8: 3c017f1b */ lui $at,%hi(var7f1b50e8) +/* f1230fc: 3c0644ea */ lui $a2,0x44ea +/* f123100: e7a0038c */ swc1 $f0,0x38c($sp) +/* f123104: 34c6a000 */ ori $a2,$a2,0xa000 +/* f123108: c42e50e8 */ lwc1 $f14,%lo(var7f1b50e8)($at) +/* f12310c: 0fc47cf4 */ jal sky0f11f3d0 +/* f123110: c7ac0394 */ lwc1 $f12,0x394($sp) +/* f123114: 8fa90484 */ lw $t1,0x484($sp) +/* f123118: e7a00394 */ swc1 $f0,0x394($sp) +/* f12311c: 3c013e80 */ lui $at,0x3e80 +/* f123120: 44814000 */ mtc1 $at,$f8 +/* f123124: c52a002c */ lwc1 $f10,0x2c($t1) +/* f123128: 3c014600 */ lui $at,0x4600 +/* f12312c: 46085082 */ mul.s $f2,$f10,$f8 +/* f123130: 4600110d */ trunc.w.s $f4,$f2 +/* f123134: 44192000 */ mfc1 $t9,$f4 +/* f123138: c7a4038c */ lwc1 $f4,0x38c($sp) +/* f12313c: 44993000 */ mtc1 $t9,$f6 +/* f123140: 00000000 */ nop +/* f123144: 468032a0 */ cvt.s.w $f10,$f6 +/* f123148: 44813000 */ mtc1 $at,$f6 +/* f12314c: 00000000 */ nop +/* f123150: 46062302 */ mul.s $f12,$f4,$f6 +/* f123154: 460a1201 */ sub.s $f8,$f2,$f10 +/* f123158: 0fc47d04 */ jal sky0f11f410 +/* f12315c: e7a8037c */ swc1 $f8,0x37c($sp) +/* f123160: 3c013900 */ lui $at,0x3900 +/* f123164: 44815000 */ mtc1 $at,$f10 +/* f123168: c7a4037c */ lwc1 $f4,0x37c($sp) +/* f12316c: 3c014600 */ lui $at,0x4600 +/* f123170: 460a0202 */ mul.s $f8,$f0,$f10 +/* f123174: c7aa0428 */ lwc1 $f10,0x428($sp) +/* f123178: 46044182 */ mul.s $f6,$f8,$f4 +/* f12317c: c7a40394 */ lwc1 $f4,0x394($sp) +/* f123180: 46065201 */ sub.s $f8,$f10,$f6 +/* f123184: 44815000 */ mtc1 $at,$f10 +/* f123188: 00000000 */ nop +/* f12318c: 460a2302 */ mul.s $f12,$f4,$f10 +/* f123190: 0fc47d04 */ jal sky0f11f410 +/* f123194: e7a80408 */ swc1 $f8,0x408($sp) +/* f123198: 3c013900 */ lui $at,0x3900 +/* f12319c: 44813000 */ mtc1 $at,$f6 +/* f1231a0: c7a4037c */ lwc1 $f4,0x37c($sp) +/* f1231a4: 3c07b400 */ lui $a3,0xb400 +/* f1231a8: 46060202 */ mul.s $f8,$f0,$f6 +/* f1231ac: c7a60430 */ lwc1 $f6,0x430($sp) +/* f1231b0: 8fa80480 */ lw $t0,0x480($sp) +/* f1231b4: 8fa90484 */ lw $t1,0x484($sp) +/* f1231b8: 8fab047c */ lw $t3,0x47c($sp) +/* f1231bc: 02002825 */ or $a1,$s0,$zero +/* f1231c0: 26100008 */ addiu $s0,$s0,0x8 +/* f1231c4: 46044282 */ mul.s $f10,$f8,$f4 +/* f1231c8: 24190001 */ addiu $t9,$zero,0x1 +/* f1231cc: 3c06c800 */ lui $a2,0xc800 +/* f1231d0: 02001025 */ or $v0,$s0,$zero +/* f1231d4: 460a3201 */ sub.s $f8,$f6,$f10 +/* f1231d8: e7a80410 */ swc1 $f8,0x410($sp) +/* f1231dc: aca70000 */ sw $a3,0x0($a1) +/* f1231e0: 8fb8049c */ lw $t8,0x49c($sp) +/* f1231e4: c7a40444 */ lwc1 $f4,0x444($sp) +/* f1231e8: 13000003 */ beqz $t8,.L0f1231f8 +/* f1231ec: 00000000 */ nop +/* f1231f0: 10000001 */ b .L0f1231f8 +/* f1231f4: 3c06ce00 */ lui $a2,0xce00 +.L0f1231f8: +/* f1231f8: 4614203c */ c.lt.s $f4,$f20 +/* f1231fc: 00001825 */ or $v1,$zero,$zero +/* f123200: 45000003 */ bc1f .L0f123210 +/* f123204: 00000000 */ nop +/* f123208: 10000001 */ b .L0f123210 +/* f12320c: 3c030080 */ lui $v1,0x80 +.L0f123210: +/* f123210: 444ef800 */ cfc1 $t6,$31 +/* f123214: 44d9f800 */ ctc1 $t9,$31 +/* f123218: c566002c */ lwc1 $f6,0x2c($t3) +/* f12321c: 00667825 */ or $t7,$v1,$a2 +/* f123220: 3c014f00 */ lui $at,0x4f00 +/* f123224: 460032a4 */ cvt.w.s $f10,$f6 +/* f123228: 4459f800 */ cfc1 $t9,$31 +/* f12322c: 00000000 */ nop +/* f123230: 33390078 */ andi $t9,$t9,0x78 +/* f123234: 53200013 */ beqzl $t9,.L0f123284 +/* f123238: 44195000 */ mfc1 $t9,$f10 +/* f12323c: 44815000 */ mtc1 $at,$f10 +/* f123240: 24190001 */ addiu $t9,$zero,0x1 +/* f123244: 460a3281 */ sub.s $f10,$f6,$f10 +/* f123248: 44d9f800 */ ctc1 $t9,$31 +/* f12324c: 00000000 */ nop +/* f123250: 460052a4 */ cvt.w.s $f10,$f10 +/* f123254: 4459f800 */ cfc1 $t9,$31 +/* f123258: 00000000 */ nop +/* f12325c: 33390078 */ andi $t9,$t9,0x78 +/* f123260: 17200005 */ bnez $t9,.L0f123278 +/* f123264: 00000000 */ nop +/* f123268: 44195000 */ mfc1 $t9,$f10 +/* f12326c: 3c018000 */ lui $at,0x8000 +/* f123270: 10000007 */ b .L0f123290 +/* f123274: 0321c825 */ or $t9,$t9,$at +.L0f123278: +/* f123278: 10000005 */ b .L0f123290 +/* f12327c: 2419ffff */ addiu $t9,$zero,-1 +/* f123280: 44195000 */ mfc1 $t9,$f10 +.L0f123284: +/* f123284: 00000000 */ nop +/* f123288: 0720fffb */ bltz $t9,.L0f123278 +/* f12328c: 00000000 */ nop +.L0f123290: +/* f123290: 44cef800 */ ctc1 $t6,$31 +/* f123294: 01f9c025 */ or $t8,$t7,$t9 +/* f123298: acb80004 */ sw $t8,0x4($a1) +/* f12329c: 3c0eb200 */ lui $t6,0xb200 +/* f1232a0: ac4e0000 */ sw $t6,0x0($v0) +/* f1232a4: c508002c */ lwc1 $f8,0x2c($t0) +/* f1232a8: c526002c */ lwc1 $f6,0x2c($t1) +/* f1232ac: 26100008 */ addiu $s0,$s0,0x8 +/* f1232b0: 4600410d */ trunc.w.s $f4,$f8 +/* f1232b4: 02002025 */ or $a0,$s0,$zero +/* f1232b8: 3c013e80 */ lui $at,0x3e80 +/* f1232bc: 4600328d */ trunc.w.s $f10,$f6 +/* f1232c0: 44192000 */ mfc1 $t9,$f4 +/* f1232c4: 44812000 */ mtc1 $at,$f4 +/* f1232c8: 26100008 */ addiu $s0,$s0,0x8 +/* f1232cc: 440f5000 */ mfc1 $t7,$f10 +/* f1232d0: 0019c400 */ sll $t8,$t9,0x10 +/* f1232d4: 030fc825 */ or $t9,$t8,$t7 +/* f1232d8: ac590004 */ sw $t9,0x4($v0) +/* f1232dc: ac870000 */ sw $a3,0x0($a0) +/* f1232e0: c5080028 */ lwc1 $f8,0x28($t0) +/* f1232e4: afab047c */ sw $t3,0x47c($sp) +/* f1232e8: afa90484 */ sw $t1,0x484($sp) +/* f1232ec: 46044302 */ mul.s $f12,$f8,$f4 +/* f1232f0: afa80480 */ sw $t0,0x480($sp) +/* f1232f4: 0fc54be8 */ jal func0f152fa0 +/* f1232f8: afa40180 */ sw $a0,0x180($sp) +/* f1232fc: 8fa40180 */ lw $a0,0x180($sp) +/* f123300: 02001825 */ or $v1,$s0,$zero +/* f123304: 3c0eb200 */ lui $t6,0xb200 +/* f123308: ac820004 */ sw $v0,0x4($a0) +/* f12330c: ac6e0000 */ sw $t6,0x0($v1) +/* f123310: afa3017c */ sw $v1,0x17c($sp) +/* f123314: c7ac0384 */ lwc1 $f12,0x384($sp) +/* f123318: 0fc54be8 */ jal func0f152fa0 +/* f12331c: 26100008 */ addiu $s0,$s0,0x8 +/* f123320: 8fa3017c */ lw $v1,0x17c($sp) +/* f123324: 02002025 */ or $a0,$s0,$zero +/* f123328: 3c18b400 */ lui $t8,0xb400 +/* f12332c: ac620004 */ sw $v0,0x4($v1) +/* f123330: ac980000 */ sw $t8,0x0($a0) +/* f123334: afa40178 */ sw $a0,0x178($sp) +/* f123338: c7ac0410 */ lwc1 $f12,0x410($sp) +/* f12333c: 0fc54be8 */ jal func0f152fa0 +/* f123340: 26100008 */ addiu $s0,$s0,0x8 +/* f123344: 8fa40178 */ lw $a0,0x178($sp) +/* f123348: 02001825 */ or $v1,$s0,$zero +/* f12334c: 3c0fb200 */ lui $t7,0xb200 +/* f123350: ac820004 */ sw $v0,0x4($a0) +/* f123354: ac6f0000 */ sw $t7,0x0($v1) +/* f123358: afa30174 */ sw $v1,0x174($sp) +/* f12335c: c7ac0394 */ lwc1 $f12,0x394($sp) +/* f123360: 0fc54be8 */ jal func0f152fa0 +/* f123364: 26100008 */ addiu $s0,$s0,0x8 +/* f123368: 8fa30174 */ lw $v1,0x174($sp) +/* f12336c: 02002025 */ or $a0,$s0,$zero +/* f123370: 3c19b400 */ lui $t9,0xb400 +/* f123374: ac620004 */ sw $v0,0x4($v1) +/* f123378: ac990000 */ sw $t9,0x0($a0) +/* f12337c: afa40170 */ sw $a0,0x170($sp) +/* f123380: c7ac0408 */ lwc1 $f12,0x408($sp) +/* f123384: 0fc54be8 */ jal func0f152fa0 +/* f123388: 26100008 */ addiu $s0,$s0,0x8 +/* f12338c: 8fa40170 */ lw $a0,0x170($sp) +/* f123390: 02001825 */ or $v1,$s0,$zero +/* f123394: 3c0eb200 */ lui $t6,0xb200 +/* f123398: ac820004 */ sw $v0,0x4($a0) +/* f12339c: ac6e0000 */ sw $t6,0x0($v1) +/* f1233a0: afa3016c */ sw $v1,0x16c($sp) +/* f1233a4: c7ac038c */ lwc1 $f12,0x38c($sp) +/* f1233a8: 0fc54be8 */ jal func0f152fa0 +/* f1233ac: 26100008 */ addiu $s0,$s0,0x8 +/* f1233b0: 8fa3016c */ lw $v1,0x16c($sp) +/* f1233b4: 8fa80480 */ lw $t0,0x480($sp) +/* f1233b8: 8fa90484 */ lw $t1,0x484($sp) +/* f1233bc: 8fab047c */ lw $t3,0x47c($sp) +/* f1233c0: ac620004 */ sw $v0,0x4($v1) +/* f1233c4: 8fb8049c */ lw $t8,0x49c($sp) +/* f1233c8: c7a00378 */ lwc1 $f0,0x378($sp) +/* f1233cc: 3c017f1b */ lui $at,%hi(var7f1b50ec) +/* f1233d0: 57000004 */ bnezl $t8,.L0f1233e4 +/* f1233d4: c526000c */ lwc1 $f6,0xc($t1) +/* f1233d8: 100002f9 */ b .L0f123fc0 +/* f1233dc: 02001025 */ or $v0,$s0,$zero +/* f1233e0: c526000c */ lwc1 $f6,0xc($t1) +.L0f1233e4: +/* f1233e4: 46003282 */ mul.s $f10,$f6,$f0 +/* f1233e8: e7aa036c */ swc1 $f10,0x36c($sp) +/* f1233ec: c508000c */ lwc1 $f8,0xc($t0) +/* f1233f0: c7b2036c */ lwc1 $f18,0x36c($sp) +/* f1233f4: 46004102 */ mul.s $f4,$f8,$f0 +/* f1233f8: e7a40370 */ swc1 $f4,0x370($sp) +/* f1233fc: c566000c */ lwc1 $f6,0xc($t3) +/* f123400: c7a80370 */ lwc1 $f8,0x370($sp) +/* f123404: 46003282 */ mul.s $f10,$f6,$f0 +/* f123408: 4612403c */ c.lt.s $f8,$f18 +/* f12340c: e7aa0374 */ swc1 $f10,0x374($sp) +/* f123410: 45000002 */ bc1f .L0f12341c +/* f123414: c7a00374 */ lwc1 $f0,0x374($sp) +/* f123418: 46004486 */ mov.s $f18,$f8 +.L0f12341c: +/* f12341c: 4612003c */ c.lt.s $f0,$f18 +/* f123420: 00000000 */ nop +/* f123424: 45000002 */ bc1f .L0f123430 +/* f123428: 00000000 */ nop +/* f12342c: 46000486 */ mov.s $f18,$f0 +.L0f123430: +/* f123430: c42050ec */ lwc1 $f0,%lo(var7f1b50ec)($at) +/* f123434: 3c013f00 */ lui $at,0x3f00 +/* f123438: 44811000 */ mtc1 $at,$f2 +/* f12343c: c5240034 */ lwc1 $f4,0x34($t1) +/* f123440: 46029482 */ mul.s $f18,$f18,$f2 +/* f123444: 00000000 */ nop +/* f123448: 46122182 */ mul.s $f6,$f4,$f18 +/* f12344c: e7a6035c */ swc1 $f6,0x35c($sp) +/* f123450: c50a0034 */ lwc1 $f10,0x34($t0) +/* f123454: 46125202 */ mul.s $f8,$f10,$f18 +/* f123458: c7aa035c */ lwc1 $f10,0x35c($sp) +/* f12345c: e7a80360 */ swc1 $f8,0x360($sp) +/* f123460: c5640034 */ lwc1 $f4,0x34($t3) +/* f123464: 46122182 */ mul.s $f6,$f4,$f18 +/* f123468: e7a60364 */ swc1 $f6,0x364($sp) +/* f12346c: c5280020 */ lwc1 $f8,0x20($t1) +/* f123470: 46085102 */ mul.s $f4,$f10,$f8 +/* f123474: e7a40338 */ swc1 $f4,0x338($sp) +/* f123478: c5260024 */ lwc1 $f6,0x24($t1) +/* f12347c: 4604a03e */ c.le.s $f20,$f4 +/* f123480: 46065202 */ mul.s $f8,$f10,$f6 +/* f123484: 00000000 */ nop +/* f123488: 46005182 */ mul.s $f6,$f10,$f0 +/* f12348c: e7a8033c */ swc1 $f8,0x33c($sp) +/* f123490: c7a80360 */ lwc1 $f8,0x360($sp) +/* f123494: e7a60340 */ swc1 $f6,0x340($sp) +/* f123498: c50a0020 */ lwc1 $f10,0x20($t0) +/* f12349c: 460a4182 */ mul.s $f6,$f8,$f10 +/* f1234a0: e7a60344 */ swc1 $f6,0x344($sp) +/* f1234a4: c50a0024 */ lwc1 $f10,0x24($t0) +/* f1234a8: 460a4182 */ mul.s $f6,$f8,$f10 +/* f1234ac: 00000000 */ nop +/* f1234b0: 46004282 */ mul.s $f10,$f8,$f0 +/* f1234b4: e7a60348 */ swc1 $f6,0x348($sp) +/* f1234b8: c7a60364 */ lwc1 $f6,0x364($sp) +/* f1234bc: e7aa034c */ swc1 $f10,0x34c($sp) +/* f1234c0: c5680020 */ lwc1 $f8,0x20($t3) +/* f1234c4: 46083282 */ mul.s $f10,$f6,$f8 +/* f1234c8: e7aa0350 */ swc1 $f10,0x350($sp) +/* f1234cc: c5680024 */ lwc1 $f8,0x24($t3) +/* f1234d0: 46083282 */ mul.s $f10,$f6,$f8 +/* f1234d4: 00000000 */ nop +/* f1234d8: 46003202 */ mul.s $f8,$f6,$f0 +/* f1234dc: c7a0033c */ lwc1 $f0,0x33c($sp) +/* f1234e0: e7aa0354 */ swc1 $f10,0x354($sp) +/* f1234e4: 45000003 */ bc1f .L0f1234f4 +/* f1234e8: e7a80358 */ swc1 $f8,0x358($sp) +/* f1234ec: 10000003 */ b .L0f1234fc +/* f1234f0: 46002386 */ mov.s $f14,$f4 +.L0f1234f4: +/* f1234f4: c7ae0338 */ lwc1 $f14,0x338($sp) +/* f1234f8: 46007387 */ neg.s $f14,$f14 +.L0f1234fc: +/* f1234fc: 4600a03e */ c.le.s $f20,$f0 +/* f123500: 00000000 */ nop +/* f123504: 45020004 */ bc1fl .L0f123518 +/* f123508: 46000407 */ neg.s $f16,$f0 +/* f12350c: 10000002 */ b .L0f123518 +/* f123510: 46000406 */ mov.s $f16,$f0 +/* f123514: 46000407 */ neg.s $f16,$f0 +.L0f123518: +/* f123518: c7a00344 */ lwc1 $f0,0x344($sp) +/* f12351c: 4600a03e */ c.le.s $f20,$f0 +/* f123520: 00000000 */ nop +/* f123524: 45020004 */ bc1fl .L0f123538 +/* f123528: 46000307 */ neg.s $f12,$f0 +/* f12352c: 10000002 */ b .L0f123538 +/* f123530: 46000306 */ mov.s $f12,$f0 +/* f123534: 46000307 */ neg.s $f12,$f0 +.L0f123538: +/* f123538: 460c703c */ c.lt.s $f14,$f12 +/* f12353c: 00000000 */ nop +/* f123540: 45020009 */ bc1fl .L0f123568 +/* f123544: c7a00348 */ lwc1 $f0,0x348($sp) +/* f123548: 4600a03e */ c.le.s $f20,$f0 +/* f12354c: 00000000 */ nop +/* f123550: 45020004 */ bc1fl .L0f123564 +/* f123554: 46000387 */ neg.s $f14,$f0 +/* f123558: 10000002 */ b .L0f123564 +/* f12355c: 46000386 */ mov.s $f14,$f0 +/* f123560: 46000387 */ neg.s $f14,$f0 +.L0f123564: +/* f123564: c7a00348 */ lwc1 $f0,0x348($sp) +.L0f123568: +/* f123568: 4600a03e */ c.le.s $f20,$f0 +/* f12356c: 00000000 */ nop +/* f123570: 45020004 */ bc1fl .L0f123584 +/* f123574: 46000307 */ neg.s $f12,$f0 +/* f123578: 10000002 */ b .L0f123584 +/* f12357c: 46000306 */ mov.s $f12,$f0 +/* f123580: 46000307 */ neg.s $f12,$f0 +.L0f123584: +/* f123584: 460c803c */ c.lt.s $f16,$f12 +/* f123588: e7b20368 */ swc1 $f18,0x368($sp) +/* f12358c: 4502000b */ bc1fl .L0f1235bc +/* f123590: c7a00350 */ lwc1 $f0,0x350($sp) +/* f123594: 4600a03e */ c.le.s $f20,$f0 +/* f123598: 00000000 */ nop +/* f12359c: 45020005 */ bc1fl .L0f1235b4 +/* f1235a0: 46000407 */ neg.s $f16,$f0 +/* f1235a4: 46000406 */ mov.s $f16,$f0 +/* f1235a8: 10000003 */ b .L0f1235b8 +/* f1235ac: e7b20368 */ swc1 $f18,0x368($sp) +/* f1235b0: 46000407 */ neg.s $f16,$f0 +.L0f1235b4: +/* f1235b4: e7b20368 */ swc1 $f18,0x368($sp) +.L0f1235b8: +/* f1235b8: c7a00350 */ lwc1 $f0,0x350($sp) +.L0f1235bc: +/* f1235bc: 4600a03e */ c.le.s $f20,$f0 +/* f1235c0: 00000000 */ nop +/* f1235c4: 45020004 */ bc1fl .L0f1235d8 +/* f1235c8: 46000307 */ neg.s $f12,$f0 +/* f1235cc: 10000002 */ b .L0f1235d8 +/* f1235d0: 46000306 */ mov.s $f12,$f0 +/* f1235d4: 46000307 */ neg.s $f12,$f0 +.L0f1235d8: +/* f1235d8: 460c703c */ c.lt.s $f14,$f12 +/* f1235dc: e7ae0330 */ swc1 $f14,0x330($sp) +/* f1235e0: 4502000a */ bc1fl .L0f12360c +/* f1235e4: c7a00354 */ lwc1 $f0,0x354($sp) +/* f1235e8: 4600a03e */ c.le.s $f20,$f0 +/* f1235ec: 00000000 */ nop +/* f1235f0: 45020004 */ bc1fl .L0f123604 +/* f1235f4: 46000387 */ neg.s $f14,$f0 +/* f1235f8: 10000003 */ b .L0f123608 +/* f1235fc: e7a00330 */ swc1 $f0,0x330($sp) +/* f123600: 46000387 */ neg.s $f14,$f0 +.L0f123604: +/* f123604: e7ae0330 */ swc1 $f14,0x330($sp) +.L0f123608: +/* f123608: c7a00354 */ lwc1 $f0,0x354($sp) +.L0f12360c: +/* f12360c: 4600a03e */ c.le.s $f20,$f0 +/* f123610: 00000000 */ nop +/* f123614: 45020004 */ bc1fl .L0f123628 +/* f123618: 46000307 */ neg.s $f12,$f0 +/* f12361c: 10000002 */ b .L0f123628 +/* f123620: 46000306 */ mov.s $f12,$f0 +/* f123624: 46000307 */ neg.s $f12,$f0 +.L0f123628: +/* f123628: 460c803c */ c.lt.s $f16,$f12 +/* f12362c: e7b00334 */ swc1 $f16,0x334($sp) +/* f123630: 4502000a */ bc1fl .L0f12365c +/* f123634: c52a0010 */ lwc1 $f10,0x10($t1) +/* f123638: 4600a03e */ c.le.s $f20,$f0 +/* f12363c: 00000000 */ nop +/* f123640: 45020004 */ bc1fl .L0f123654 +/* f123644: 46000407 */ neg.s $f16,$f0 +/* f123648: 10000003 */ b .L0f123658 +/* f12364c: e7a00334 */ swc1 $f0,0x334($sp) +/* f123650: 46000407 */ neg.s $f16,$f0 +.L0f123654: +/* f123654: e7b00334 */ swc1 $f16,0x334($sp) +.L0f123658: +/* f123658: c52a0010 */ lwc1 $f10,0x10($t1) +.L0f12365c: +/* f12365c: 27a402b0 */ addiu $a0,$sp,0x2b0 +/* f123660: 27a602f0 */ addiu $a2,$sp,0x2f0 +/* f123664: 46025180 */ add.s $f6,$f10,$f2 +/* f123668: 27a20310 */ addiu $v0,$sp,0x310 +/* f12366c: 27a30290 */ addiu $v1,$sp,0x290 +/* f123670: 27a502d0 */ addiu $a1,$sp,0x2d0 +/* f123674: e7a60310 */ swc1 $f6,0x310($sp) +/* f123678: c5280014 */ lwc1 $f8,0x14($t1) +/* f12367c: 27a702f0 */ addiu $a3,$sp,0x2f0 +/* f123680: 46024100 */ add.s $f4,$f8,$f2 +/* f123684: e7a40314 */ swc1 $f4,0x314($sp) +/* f123688: c52a0018 */ lwc1 $f10,0x18($t1) +/* f12368c: 46025180 */ add.s $f6,$f10,$f2 +/* f123690: e7a60318 */ swc1 $f6,0x318($sp) +/* f123694: c528001c */ lwc1 $f8,0x1c($t1) +/* f123698: 46024100 */ add.s $f4,$f8,$f2 +/* f12369c: e7a4031c */ swc1 $f4,0x31c($sp) +/* f1236a0: c50a0010 */ lwc1 $f10,0x10($t0) +/* f1236a4: 46025180 */ add.s $f6,$f10,$f2 +/* f1236a8: e7a602f0 */ swc1 $f6,0x2f0($sp) +/* f1236ac: c5080014 */ lwc1 $f8,0x14($t0) +/* f1236b0: 46024100 */ add.s $f4,$f8,$f2 +/* f1236b4: e7a402f4 */ swc1 $f4,0x2f4($sp) +/* f1236b8: c50a0018 */ lwc1 $f10,0x18($t0) +/* f1236bc: 46025180 */ add.s $f6,$f10,$f2 +/* f1236c0: e7a602f8 */ swc1 $f6,0x2f8($sp) +/* f1236c4: c508001c */ lwc1 $f8,0x1c($t0) +/* f1236c8: 46024100 */ add.s $f4,$f8,$f2 +/* f1236cc: e7a402fc */ swc1 $f4,0x2fc($sp) +/* f1236d0: c56a0010 */ lwc1 $f10,0x10($t3) +/* f1236d4: 46025180 */ add.s $f6,$f10,$f2 +/* f1236d8: e7a602d0 */ swc1 $f6,0x2d0($sp) +/* f1236dc: c5680014 */ lwc1 $f8,0x14($t3) +/* f1236e0: 46024100 */ add.s $f4,$f8,$f2 +/* f1236e4: e7a402d4 */ swc1 $f4,0x2d4($sp) +/* f1236e8: c56a0018 */ lwc1 $f10,0x18($t3) +/* f1236ec: 46025180 */ add.s $f6,$f10,$f2 +/* f1236f0: c7aa0338 */ lwc1 $f10,0x338($sp) +/* f1236f4: e7a602d8 */ swc1 $f6,0x2d8($sp) +/* f1236f8: c568001c */ lwc1 $f8,0x1c($t3) +/* f1236fc: e7aa0320 */ swc1 $f10,0x320($sp) +/* f123700: c7a6033c */ lwc1 $f6,0x33c($sp) +/* f123704: 46024100 */ add.s $f4,$f8,$f2 +/* f123708: c7a80340 */ lwc1 $f8,0x340($sp) +/* f12370c: c7aa0348 */ lwc1 $f10,0x348($sp) +/* f123710: e7a60324 */ swc1 $f6,0x324($sp) +/* f123714: e7a402dc */ swc1 $f4,0x2dc($sp) +/* f123718: c7a40344 */ lwc1 $f4,0x344($sp) +/* f12371c: e7a80328 */ swc1 $f8,0x328($sp) +/* f123720: e7aa0304 */ swc1 $f10,0x304($sp) +/* f123724: e7a40300 */ swc1 $f4,0x300($sp) +/* f123728: c7a6034c */ lwc1 $f6,0x34c($sp) +/* f12372c: c7a40354 */ lwc1 $f4,0x354($sp) +/* f123730: c7aa0358 */ lwc1 $f10,0x358($sp) +/* f123734: c7a80350 */ lwc1 $f8,0x350($sp) +/* f123738: e7a60308 */ swc1 $f6,0x308($sp) +/* f12373c: e7a402e4 */ swc1 $f4,0x2e4($sp) +/* f123740: e7aa02e8 */ swc1 $f10,0x2e8($sp) +/* f123744: e7a802e0 */ swc1 $f8,0x2e0($sp) +/* f123748: c5260030 */ lwc1 $f6,0x30($t1) +/* f12374c: 27a90230 */ addiu $t1,$sp,0x230 +/* f123750: e7a6032c */ swc1 $f6,0x32c($sp) +/* f123754: c5080030 */ lwc1 $f8,0x30($t0) +/* f123758: 27a80230 */ addiu $t0,$sp,0x230 +/* f12375c: e7a8030c */ swc1 $f8,0x30c($sp) +/* f123760: c5640030 */ lwc1 $f4,0x30($t3) +/* f123764: e7a402ec */ swc1 $f4,0x2ec($sp) +.L0f123768: +/* f123768: c4400000 */ lwc1 $f0,0x0($v0) +/* f12376c: c4ca0000 */ lwc1 $f10,0x0($a2) +/* f123770: c4a80000 */ lwc1 $f8,0x0($a1) +/* f123774: 24a50004 */ addiu $a1,$a1,0x4 +/* f123778: 46005181 */ sub.s $f6,$f10,$f0 +/* f12377c: 00a7082b */ sltu $at,$a1,$a3 +/* f123780: 24840004 */ addiu $a0,$a0,0x4 +/* f123784: 46004101 */ sub.s $f4,$f8,$f0 +/* f123788: 24c60004 */ addiu $a2,$a2,0x4 +/* f12378c: 24420004 */ addiu $v0,$v0,0x4 +/* f123790: 24630004 */ addiu $v1,$v1,0x4 +/* f123794: e486fffc */ swc1 $f6,-0x4($a0) +/* f123798: 1420fff3 */ bnez $at,.L0f123768 +/* f12379c: e464fffc */ swc1 $f4,-0x4($v1) +/* f1237a0: 27a402b0 */ addiu $a0,$sp,0x2b0 +/* f1237a4: 27a20310 */ addiu $v0,$sp,0x310 +/* f1237a8: 27a30290 */ addiu $v1,$sp,0x290 +/* f1237ac: 27a70250 */ addiu $a3,$sp,0x250 +/* f1237b0: 27a50270 */ addiu $a1,$sp,0x270 +/* f1237b4: 27a60210 */ addiu $a2,$sp,0x210 +/* f1237b8: c7b203c8 */ lwc1 $f18,0x3c8($sp) +.L0f1237bc: +/* f1237bc: c4600000 */ lwc1 $f0,0x0($v1) +/* f1237c0: c7aa03cc */ lwc1 $f10,0x3cc($sp) +/* f1237c4: c4820000 */ lwc1 $f2,0x0($a0) +/* f1237c8: c7a803d4 */ lwc1 $f8,0x3d4($sp) +/* f1237cc: 460a0182 */ mul.s $f6,$f0,$f10 +/* f1237d0: 3c013780 */ lui $at,0x3780 +/* f1237d4: 24c60004 */ addiu $a2,$a2,0x4 +/* f1237d8: 46024102 */ mul.s $f4,$f8,$f2 +/* f1237dc: 44814000 */ mtc1 $at,$f8 +/* f1237e0: 24840004 */ addiu $a0,$a0,0x4 +/* f1237e4: 24420004 */ addiu $v0,$v0,0x4 +/* f1237e8: 24630004 */ addiu $v1,$v1,0x4 +/* f1237ec: 24e70004 */ addiu $a3,$a3,0x4 +/* f1237f0: 24a50004 */ addiu $a1,$a1,0x4 +/* f1237f4: 46043281 */ sub.s $f10,$f6,$f4 +/* f1237f8: 25080004 */ addiu $t0,$t0,0x4 +/* f1237fc: 46085302 */ mul.s $f12,$f10,$f8 +/* f123800: e4ecfffc */ swc1 $f12,-0x4($a3) +/* f123804: c7a603d0 */ lwc1 $f6,0x3d0($sp) +/* f123808: 46061102 */ mul.s $f4,$f2,$f6 +/* f12380c: 44813000 */ mtc1 $at,$f6 +/* f123810: 00c9082b */ sltu $at,$a2,$t1 +/* f123814: 46009282 */ mul.s $f10,$f18,$f0 +/* f123818: 460a2201 */ sub.s $f8,$f4,$f10 +/* f12381c: 46064102 */ mul.s $f4,$f8,$f6 +/* f123820: e4a4fffc */ swc1 $f4,-0x4($a1) +/* f123824: c7aa0440 */ lwc1 $f10,0x440($sp) +/* f123828: c4a6fffc */ lwc1 $f6,-0x4($a1) +/* f12382c: 460a6202 */ mul.s $f8,$f12,$f10 +/* f123830: e468fffc */ swc1 $f8,-0x4($v1) +/* f123834: c7a40440 */ lwc1 $f4,0x440($sp) +/* f123838: c468fffc */ lwc1 $f8,-0x4($v1) +/* f12383c: 46043382 */ mul.s $f14,$f6,$f4 +/* f123840: c444fffc */ lwc1 $f4,-0x4($v0) +/* f123844: e48efffc */ swc1 $f14,-0x4($a0) +/* f123848: c7aa0394 */ lwc1 $f10,0x394($sp) +/* f12384c: 46085182 */ mul.s $f6,$f10,$f8 +/* f123850: 460e3400 */ add.s $f16,$f6,$f14 +/* f123854: e510fffc */ swc1 $f16,-0x4($t0) +/* f123858: c7aa037c */ lwc1 $f10,0x37c($sp) +/* f12385c: 460a8202 */ mul.s $f8,$f16,$f10 +/* f123860: 46082181 */ sub.s $f6,$f4,$f8 +/* f123864: 1420ffd5 */ bnez $at,.L0f1237bc +/* f123868: e4c6fffc */ swc1 $f6,-0x4($a2) +/* f12386c: 0fc54be8 */ jal func0f152fa0 +/* f123870: c7ac0210 */ lwc1 $f12,0x210($sp) +/* f123874: afa20168 */ sw $v0,0x168($sp) +/* f123878: 0fc54be8 */ jal func0f152fa0 +/* f12387c: c7ac0214 */ lwc1 $f12,0x214($sp) +/* f123880: afa20164 */ sw $v0,0x164($sp) +/* f123884: 0fc54be8 */ jal func0f152fa0 +/* f123888: c7ac0218 */ lwc1 $f12,0x218($sp) +/* f12388c: afa20160 */ sw $v0,0x160($sp) +/* f123890: 0fc54be8 */ jal func0f152fa0 +/* f123894: c7ac021c */ lwc1 $f12,0x21c($sp) +/* f123898: afa2015c */ sw $v0,0x15c($sp) +/* f12389c: 0fc54be8 */ jal func0f152fa0 +/* f1238a0: c7ac0290 */ lwc1 $f12,0x290($sp) +/* f1238a4: afa20158 */ sw $v0,0x158($sp) +/* f1238a8: 0fc54be8 */ jal func0f152fa0 +/* f1238ac: c7ac0294 */ lwc1 $f12,0x294($sp) +/* f1238b0: afa20154 */ sw $v0,0x154($sp) +/* f1238b4: 0fc54be8 */ jal func0f152fa0 +/* f1238b8: c7ac0298 */ lwc1 $f12,0x298($sp) +/* f1238bc: afa20150 */ sw $v0,0x150($sp) +/* f1238c0: 0fc54be8 */ jal func0f152fa0 +/* f1238c4: c7ac029c */ lwc1 $f12,0x29c($sp) +/* f1238c8: afa2014c */ sw $v0,0x14c($sp) +/* f1238cc: 0fc54be8 */ jal func0f152fa0 +/* f1238d0: c7ac02b0 */ lwc1 $f12,0x2b0($sp) +/* f1238d4: afa20138 */ sw $v0,0x138($sp) +/* f1238d8: 0fc54be8 */ jal func0f152fa0 +/* f1238dc: c7ac02b4 */ lwc1 $f12,0x2b4($sp) +/* f1238e0: afa20134 */ sw $v0,0x134($sp) +/* f1238e4: 0fc54be8 */ jal func0f152fa0 +/* f1238e8: c7ac02b8 */ lwc1 $f12,0x2b8($sp) +/* f1238ec: afa20130 */ sw $v0,0x130($sp) +/* f1238f0: 0fc54be8 */ jal func0f152fa0 +/* f1238f4: c7ac02bc */ lwc1 $f12,0x2bc($sp) +/* f1238f8: afa2012c */ sw $v0,0x12c($sp) +/* f1238fc: 0fc54be8 */ jal func0f152fa0 +/* f123900: c7ac0230 */ lwc1 $f12,0x230($sp) +/* f123904: afa20148 */ sw $v0,0x148($sp) +/* f123908: 0fc54be8 */ jal func0f152fa0 +/* f12390c: c7ac0234 */ lwc1 $f12,0x234($sp) +/* f123910: afa20144 */ sw $v0,0x144($sp) +/* f123914: 0fc54be8 */ jal func0f152fa0 +/* f123918: c7ac0238 */ lwc1 $f12,0x238($sp) +/* f12391c: c7ac023c */ lwc1 $f12,0x23c($sp) +/* f123920: 0fc54be8 */ jal func0f152fa0 +/* f123924: afa20140 */ sw $v0,0x140($sp) +/* f123928: 8fac0140 */ lw $t4,0x140($sp) +/* f12392c: 8fad015c */ lw $t5,0x15c($sp) +/* f123930: 8fbf0168 */ lw $ra,0x168($sp) +/* f123934: 3c08b400 */ lui $t0,0xb400 +/* f123938: 02001825 */ or $v1,$s0,$zero +/* f12393c: ac680000 */ sw $t0,0x0($v1) +/* f123940: 8fb90164 */ lw $t9,0x164($sp) +/* f123944: 3c09ffff */ lui $t1,0xffff +/* f123948: 03e97824 */ and $t7,$ra,$t1 +/* f12394c: 03297024 */ and $t6,$t9,$t1 +/* f123950: 000ec402 */ srl $t8,$t6,0x10 +/* f123954: 01f8c825 */ or $t9,$t7,$t8 +/* f123958: 26100008 */ addiu $s0,$s0,0x8 +/* f12395c: 3c0ab200 */ lui $t2,0xb200 +/* f123960: ac790004 */ sw $t9,0x4($v1) +/* f123964: 02002025 */ or $a0,$s0,$zero +/* f123968: ac8a0000 */ sw $t2,0x0($a0) +/* f12396c: 8fae0160 */ lw $t6,0x160($sp) +/* f123970: 01a9c024 */ and $t8,$t5,$t1 +/* f123974: 0018cc02 */ srl $t9,$t8,0x10 +/* f123978: 01c97824 */ and $t7,$t6,$t1 +/* f12397c: 01f97025 */ or $t6,$t7,$t9 +/* f123980: 26100008 */ addiu $s0,$s0,0x8 +/* f123984: ac8e0004 */ sw $t6,0x4($a0) +/* f123988: 02002825 */ or $a1,$s0,$zero +/* f12398c: aca80000 */ sw $t0,0x0($a1) +/* f123990: 8fb90154 */ lw $t9,0x154($sp) +/* f123994: 8fb80158 */ lw $t8,0x158($sp) +/* f123998: 26100008 */ addiu $s0,$s0,0x8 +/* f12399c: 03297024 */ and $t6,$t9,$t1 +/* f1239a0: 03097824 */ and $t7,$t8,$t1 +/* f1239a4: 000ec402 */ srl $t8,$t6,0x10 +/* f1239a8: 01f8c825 */ or $t9,$t7,$t8 +/* f1239ac: acb90004 */ sw $t9,0x4($a1) +/* f1239b0: 8fab014c */ lw $t3,0x14c($sp) +/* f1239b4: 02003025 */ or $a2,$s0,$zero +/* f1239b8: acca0000 */ sw $t2,0x0($a2) +/* f1239bc: 8fae0150 */ lw $t6,0x150($sp) +/* f1239c0: 0169c024 */ and $t8,$t3,$t1 +/* f1239c4: 0018cc02 */ srl $t9,$t8,0x10 +/* f1239c8: 01c97824 */ and $t7,$t6,$t1 +/* f1239cc: 01f97025 */ or $t6,$t7,$t9 +/* f1239d0: 26100008 */ addiu $s0,$s0,0x8 +/* f1239d4: acce0004 */ sw $t6,0x4($a2) +/* f1239d8: 02001825 */ or $v1,$s0,$zero +/* f1239dc: ac680000 */ sw $t0,0x0($v1) +/* f1239e0: 8fb90164 */ lw $t9,0x164($sp) +/* f1239e4: 001f7c00 */ sll $t7,$ra,0x10 +/* f1239e8: 26100008 */ addiu $s0,$s0,0x8 +/* f1239ec: 332effff */ andi $t6,$t9,0xffff +/* f1239f0: 01eec025 */ or $t8,$t7,$t6 +/* f1239f4: ac780004 */ sw $t8,0x4($v1) +/* f1239f8: 02002025 */ or $a0,$s0,$zero +/* f1239fc: ac8a0000 */ sw $t2,0x0($a0) +/* f123a00: 8faf0160 */ lw $t7,0x160($sp) +/* f123a04: 31b8ffff */ andi $t8,$t5,0xffff +/* f123a08: 26100008 */ addiu $s0,$s0,0x8 +/* f123a0c: 000f7400 */ sll $t6,$t7,0x10 +/* f123a10: 01d8c825 */ or $t9,$t6,$t8 +/* f123a14: ac990004 */ sw $t9,0x4($a0) +/* f123a18: 02003825 */ or $a3,$s0,$zero +/* f123a1c: ace80000 */ sw $t0,0x0($a3) +/* f123a20: 8fb90154 */ lw $t9,0x154($sp) +/* f123a24: 8fae0158 */ lw $t6,0x158($sp) +/* f123a28: 8fa80148 */ lw $t0,0x148($sp) +/* f123a2c: 332fffff */ andi $t7,$t9,0xffff +/* f123a30: 000ec400 */ sll $t8,$t6,0x10 +/* f123a34: 8fa60144 */ lw $a2,0x144($sp) +/* f123a38: 030f7025 */ or $t6,$t8,$t7 +/* f123a3c: 26100008 */ addiu $s0,$s0,0x8 +/* f123a40: acee0004 */ sw $t6,0x4($a3) +/* f123a44: 02001825 */ or $v1,$s0,$zero +/* f123a48: ac6a0000 */ sw $t2,0x0($v1) +/* f123a4c: 8fb80150 */ lw $t8,0x150($sp) +/* f123a50: 316effff */ andi $t6,$t3,0xffff +/* f123a54: 26100008 */ addiu $s0,$s0,0x8 +/* f123a58: 00187c00 */ sll $t7,$t8,0x10 +/* f123a5c: 01eec825 */ or $t9,$t7,$t6 +/* f123a60: ac790004 */ sw $t9,0x4($v1) +/* f123a64: 3c18b400 */ lui $t8,0xb400 +/* f123a68: 02002025 */ or $a0,$s0,$zero +/* f123a6c: 00c97024 */ and $t6,$a2,$t1 +/* f123a70: 000ecc02 */ srl $t9,$t6,0x10 +/* f123a74: ac980000 */ sw $t8,0x0($a0) +/* f123a78: 01097824 */ and $t7,$t0,$t1 +/* f123a7c: 01f9c025 */ or $t8,$t7,$t9 +/* f123a80: 26100008 */ addiu $s0,$s0,0x8 +/* f123a84: ac980004 */ sw $t8,0x4($a0) +/* f123a88: 02002825 */ or $a1,$s0,$zero +/* f123a8c: 00497824 */ and $t7,$v0,$t1 +/* f123a90: 000fcc02 */ srl $t9,$t7,0x10 +/* f123a94: 01897024 */ and $t6,$t4,$t1 +/* f123a98: 01d9c025 */ or $t8,$t6,$t9 +/* f123a9c: acb80004 */ sw $t8,0x4($a1) +/* f123aa0: acaa0000 */ sw $t2,0x0($a1) +/* f123aa4: 26100008 */ addiu $s0,$s0,0x8 +/* f123aa8: 8fad0130 */ lw $t5,0x130($sp) +/* f123aac: 3c07b400 */ lui $a3,0xb400 +/* f123ab0: 02001825 */ or $v1,$s0,$zero +/* f123ab4: ac670000 */ sw $a3,0x0($v1) +/* f123ab8: 8fb90134 */ lw $t9,0x134($sp) +/* f123abc: 8faf0138 */ lw $t7,0x138($sp) +/* f123ac0: 26100008 */ addiu $s0,$s0,0x8 +/* f123ac4: 0329c024 */ and $t8,$t9,$t1 +/* f123ac8: 01e97024 */ and $t6,$t7,$t1 +/* f123acc: 00187c02 */ srl $t7,$t8,0x10 +/* f123ad0: 01cfc825 */ or $t9,$t6,$t7 +/* f123ad4: ac790004 */ sw $t9,0x4($v1) +/* f123ad8: 3c18b200 */ lui $t8,0xb200 +/* f123adc: 02002025 */ or $a0,$s0,$zero +/* f123ae0: ac980000 */ sw $t8,0x0($a0) +/* f123ae4: 8faf012c */ lw $t7,0x12c($sp) +/* f123ae8: 01a97024 */ and $t6,$t5,$t1 +/* f123aec: 26100008 */ addiu $s0,$s0,0x8 +/* f123af0: 01e9c824 */ and $t9,$t7,$t1 +/* f123af4: 0019c402 */ srl $t8,$t9,0x10 +/* f123af8: 01d87825 */ or $t7,$t6,$t8 +/* f123afc: ac8f0004 */ sw $t7,0x4($a0) +/* f123b00: 02002825 */ or $a1,$s0,$zero +/* f123b04: 00087400 */ sll $t6,$t0,0x10 +/* f123b08: 30d8ffff */ andi $t8,$a2,0xffff +/* f123b0c: 01d87825 */ or $t7,$t6,$t8 +/* f123b10: 26100008 */ addiu $s0,$s0,0x8 +/* f123b14: acaf0004 */ sw $t7,0x4($a1) +/* f123b18: aca70000 */ sw $a3,0x0($a1) +/* f123b1c: 02005825 */ or $t3,$s0,$zero +/* f123b20: 3058ffff */ andi $t8,$v0,0xffff +/* f123b24: 000c7400 */ sll $t6,$t4,0x10 +/* f123b28: 01d87825 */ or $t7,$t6,$t8 +/* f123b2c: 26100008 */ addiu $s0,$s0,0x8 +/* f123b30: 3c1fb200 */ lui $ra,0xb200 +/* f123b34: ad7f0000 */ sw $ra,0x0($t3) +/* f123b38: ad6f0004 */ sw $t7,0x4($t3) +/* f123b3c: 02003825 */ or $a3,$s0,$zero +/* f123b40: 3c19b400 */ lui $t9,0xb400 +/* f123b44: acf90000 */ sw $t9,0x0($a3) +/* f123b48: 8fb90134 */ lw $t9,0x134($sp) +/* f123b4c: 8fb80138 */ lw $t8,0x138($sp) +/* f123b50: 26100008 */ addiu $s0,$s0,0x8 +/* f123b54: 332effff */ andi $t6,$t9,0xffff +/* f123b58: 00187c00 */ sll $t7,$t8,0x10 +/* f123b5c: 01eec025 */ or $t8,$t7,$t6 +/* f123b60: acf80004 */ sw $t8,0x4($a3) +/* f123b64: 02004025 */ or $t0,$s0,$zero +/* f123b68: ad1f0000 */ sw $ra,0x0($t0) +/* f123b6c: 8fae012c */ lw $t6,0x12c($sp) +/* f123b70: 000d7c00 */ sll $t7,$t5,0x10 +/* f123b74: 3c013d00 */ lui $at,0x3d00 +/* f123b78: 31d8ffff */ andi $t8,$t6,0xffff +/* f123b7c: 01f8c825 */ or $t9,$t7,$t8 +/* f123b80: ad190004 */ sw $t9,0x4($t0) +/* f123b84: 44817000 */ mtc1 $at,$f14 +/* f123b88: c7aa0330 */ lwc1 $f10,0x330($sp) +/* f123b8c: c7a80334 */ lwc1 $f8,0x334($sp) +/* f123b90: 26100008 */ addiu $s0,$s0,0x8 +/* f123b94: 460e5102 */ mul.s $f4,$f10,$f14 +/* f123b98: c7aa0368 */ lwc1 $f10,0x368($sp) +/* f123b9c: 27a201d0 */ addiu $v0,$sp,0x1d0 +/* f123ba0: 460e4182 */ mul.s $f6,$f8,$f14 +/* f123ba4: 27a501b0 */ addiu $a1,$sp,0x1b0 +/* f123ba8: 27a601d0 */ addiu $a2,$sp,0x1d0 +/* f123bac: 27a402b0 */ addiu $a0,$sp,0x2b0 +/* f123bb0: e7a40200 */ swc1 $f4,0x200($sp) +/* f123bb4: 460e5102 */ mul.s $f4,$f10,$f14 +/* f123bb8: 27a30290 */ addiu $v1,$sp,0x290 +/* f123bbc: e7a60204 */ swc1 $f6,0x204($sp) +/* f123bc0: 3c013f80 */ lui $at,0x3f80 +/* f123bc4: e7a40208 */ swc1 $f4,0x208($sp) +.L0f123bc8: +/* f123bc8: c4600000 */ lwc1 $f0,0x0($v1) +/* f123bcc: 4600a03e */ c.le.s $f20,$f0 +/* f123bd0: 00000000 */ nop +/* f123bd4: 45020004 */ bc1fl .L0f123be8 +/* f123bd8: 46000307 */ neg.s $f12,$f0 +/* f123bdc: 10000002 */ b .L0f123be8 +/* f123be0: 46000306 */ mov.s $f12,$f0 +/* f123be4: 46000307 */ neg.s $f12,$f0 +.L0f123be8: +/* f123be8: c4820000 */ lwc1 $f2,0x0($a0) +/* f123bec: 460e6202 */ mul.s $f8,$f12,$f14 +/* f123bf0: 4602a03e */ c.le.s $f20,$f2 +/* f123bf4: 00000000 */ nop +/* f123bf8: 45000003 */ bc1f .L0f123c08 +/* f123bfc: e4c80000 */ swc1 $f8,0x0($a2) +/* f123c00: 10000002 */ b .L0f123c0c +/* f123c04: 46001306 */ mov.s $f12,$f2 +.L0f123c08: +/* f123c08: 46001307 */ neg.s $f12,$f2 +.L0f123c0c: +/* f123c0c: 460e6182 */ mul.s $f6,$f12,$f14 +/* f123c10: 24a50004 */ addiu $a1,$a1,0x4 +/* f123c14: 24840004 */ addiu $a0,$a0,0x4 +/* f123c18: 24630004 */ addiu $v1,$v1,0x4 +/* f123c1c: 24c60004 */ addiu $a2,$a2,0x4 +/* f123c20: 14a2ffe9 */ bne $a1,$v0,.L0f123bc8 +/* f123c24: e4a6fffc */ swc1 $f6,-0x4($a1) +/* f123c28: c7a201e0 */ lwc1 $f2,0x1e0($sp) +/* f123c2c: c7aa0200 */ lwc1 $f10,0x200($sp) +/* f123c30: c7ac01e4 */ lwc1 $f12,0x1e4($sp) +/* f123c34: 46021100 */ add.s $f4,$f2,$f2 +/* f123c38: c7a601c0 */ lwc1 $f6,0x1c0($sp) +/* f123c3c: c7ae01e8 */ lwc1 $f14,0x1e8($sp) +/* f123c40: 44811000 */ mtc1 $at,$f2 +/* f123c44: 46045200 */ add.s $f8,$f10,$f4 +/* f123c48: c7aa0204 */ lwc1 $f10,0x204($sp) +/* f123c4c: 3c013a80 */ lui $at,0x3a80 +/* f123c50: 460c6100 */ add.s $f4,$f12,$f12 +/* f123c54: 46083000 */ add.s $f0,$f6,$f8 +/* f123c58: c7a801c4 */ lwc1 $f8,0x1c4($sp) +/* f123c5c: 46045180 */ add.s $f6,$f10,$f4 +/* f123c60: c7aa0208 */ lwc1 $f10,0x208($sp) +/* f123c64: 460e7100 */ add.s $f4,$f14,$f14 +/* f123c68: 46064400 */ add.s $f16,$f8,$f6 +/* f123c6c: c7a601c8 */ lwc1 $f6,0x1c8($sp) +/* f123c70: 46045200 */ add.s $f8,$f10,$f4 +/* f123c74: 44815000 */ mtc1 $at,$f10 +/* f123c78: e7b001a4 */ swc1 $f16,0x1a4($sp) +/* f123c7c: 4610003c */ c.lt.s $f0,$f16 +/* f123c80: 46083480 */ add.s $f18,$f6,$f8 +/* f123c84: 45020004 */ bc1fl .L0f123c98 +/* f123c88: 4612003c */ c.lt.s $f0,$f18 +/* f123c8c: 46008006 */ mov.s $f0,$f16 +/* f123c90: e7b001a4 */ swc1 $f16,0x1a4($sp) +/* f123c94: 4612003c */ c.lt.s $f0,$f18 +.L0f123c98: +/* f123c98: e7b201a8 */ swc1 $f18,0x1a8($sp) +/* f123c9c: 45000003 */ bc1f .L0f123cac +/* f123ca0: 00000000 */ nop +/* f123ca4: 46009006 */ mov.s $f0,$f18 +/* f123ca8: e7b201a8 */ swc1 $f18,0x1a8($sp) +.L0f123cac: +/* f123cac: 460a0002 */ mul.s $f0,$f0,$f10 +/* f123cb0: 4600103c */ c.lt.s $f2,$f0 +/* f123cb4: 00000000 */ nop +/* f123cb8: 45020005 */ bc1fl .L0f123cd0 +/* f123cbc: e7a001a0 */ swc1 $f0,0x1a0($sp) +/* f123cc0: 46001503 */ div.s $f20,$f2,$f0 +/* f123cc4: 10000003 */ b .L0f123cd4 +/* f123cc8: e7a001a0 */ swc1 $f0,0x1a0($sp) +/* f123ccc: e7a001a0 */ swc1 $f0,0x1a0($sp) +.L0f123cd0: +/* f123cd0: 46001506 */ mov.s $f20,$f2 +.L0f123cd4: +/* f123cd4: c7a40220 */ lwc1 $f4,0x220($sp) +/* f123cd8: e7b40190 */ swc1 $f20,0x190($sp) +/* f123cdc: 4604a302 */ mul.s $f12,$f20,$f4 +/* f123ce0: 0fc54be8 */ jal func0f152fa0 +/* f123ce4: 00000000 */ nop +/* f123ce8: c7b40190 */ lwc1 $f20,0x190($sp) +/* f123cec: c7a60224 */ lwc1 $f6,0x224($sp) +/* f123cf0: afa200e8 */ sw $v0,0xe8($sp) +/* f123cf4: 4606a302 */ mul.s $f12,$f20,$f6 +/* f123cf8: 0fc54be8 */ jal func0f152fa0 +/* f123cfc: 00000000 */ nop +/* f123d00: c7b40190 */ lwc1 $f20,0x190($sp) +/* f123d04: c7a80228 */ lwc1 $f8,0x228($sp) +/* f123d08: afa200e4 */ sw $v0,0xe4($sp) +/* f123d0c: 4608a302 */ mul.s $f12,$f20,$f8 +/* f123d10: 0fc54be8 */ jal func0f152fa0 +/* f123d14: 00000000 */ nop +/* f123d18: c7b40190 */ lwc1 $f20,0x190($sp) +/* f123d1c: c7aa02a0 */ lwc1 $f10,0x2a0($sp) +/* f123d20: afa200e0 */ sw $v0,0xe0($sp) +/* f123d24: 460aa302 */ mul.s $f12,$f20,$f10 +/* f123d28: 0fc54be8 */ jal func0f152fa0 +/* f123d2c: 00000000 */ nop +/* f123d30: c7b40190 */ lwc1 $f20,0x190($sp) +/* f123d34: c7a402a4 */ lwc1 $f4,0x2a4($sp) +/* f123d38: afa200d8 */ sw $v0,0xd8($sp) +/* f123d3c: 4604a302 */ mul.s $f12,$f20,$f4 +/* f123d40: 0fc54be8 */ jal func0f152fa0 +/* f123d44: 00000000 */ nop +/* f123d48: c7b40190 */ lwc1 $f20,0x190($sp) +/* f123d4c: c7a602a8 */ lwc1 $f6,0x2a8($sp) +/* f123d50: afa200d4 */ sw $v0,0xd4($sp) +/* f123d54: 4606a302 */ mul.s $f12,$f20,$f6 +/* f123d58: 0fc54be8 */ jal func0f152fa0 +/* f123d5c: 00000000 */ nop +/* f123d60: c7b40190 */ lwc1 $f20,0x190($sp) +/* f123d64: c7a802c0 */ lwc1 $f8,0x2c0($sp) +/* f123d68: afa200d0 */ sw $v0,0xd0($sp) +/* f123d6c: 4608a302 */ mul.s $f12,$f20,$f8 +/* f123d70: 0fc54be8 */ jal func0f152fa0 +/* f123d74: 00000000 */ nop +/* f123d78: c7b40190 */ lwc1 $f20,0x190($sp) +/* f123d7c: c7aa02c4 */ lwc1 $f10,0x2c4($sp) +/* f123d80: afa200b8 */ sw $v0,0xb8($sp) +/* f123d84: 460aa302 */ mul.s $f12,$f20,$f10 +/* f123d88: 0fc54be8 */ jal func0f152fa0 +/* f123d8c: 00000000 */ nop +/* f123d90: c7b40190 */ lwc1 $f20,0x190($sp) +/* f123d94: c7a402c8 */ lwc1 $f4,0x2c8($sp) +/* f123d98: afa200b4 */ sw $v0,0xb4($sp) +/* f123d9c: 4604a302 */ mul.s $f12,$f20,$f4 +/* f123da0: 0fc54be8 */ jal func0f152fa0 +/* f123da4: 00000000 */ nop +/* f123da8: c7b40190 */ lwc1 $f20,0x190($sp) +/* f123dac: c7a60240 */ lwc1 $f6,0x240($sp) +/* f123db0: afa200b0 */ sw $v0,0xb0($sp) +/* f123db4: 4606a302 */ mul.s $f12,$f20,$f6 +/* f123db8: 0fc54be8 */ jal func0f152fa0 +/* f123dbc: 00000000 */ nop +/* f123dc0: c7b40190 */ lwc1 $f20,0x190($sp) +/* f123dc4: c7a80244 */ lwc1 $f8,0x244($sp) +/* f123dc8: afa200c8 */ sw $v0,0xc8($sp) +/* f123dcc: 4608a302 */ mul.s $f12,$f20,$f8 +/* f123dd0: 0fc54be8 */ jal func0f152fa0 +/* f123dd4: 00000000 */ nop +/* f123dd8: c7b40190 */ lwc1 $f20,0x190($sp) +/* f123ddc: c7aa0248 */ lwc1 $f10,0x248($sp) +/* f123de0: afa200c4 */ sw $v0,0xc4($sp) +/* f123de4: 460aa302 */ mul.s $f12,$f20,$f10 +/* f123de8: 0fc54be8 */ jal func0f152fa0 +/* f123dec: 00000000 */ nop +/* f123df0: 8fad00e4 */ lw $t5,0xe4($sp) +/* f123df4: 8fac00e8 */ lw $t4,0xe8($sp) +/* f123df8: 3c09ffff */ lui $t1,0xffff +/* f123dfc: 8fa600c4 */ lw $a2,0xc4($sp) +/* f123e00: 8fbf00e0 */ lw $ra,0xe0($sp) +/* f123e04: 3c0eb400 */ lui $t6,0xb400 +/* f123e08: 01a9c024 */ and $t8,$t5,$t1 +/* f123e0c: 0018cc02 */ srl $t9,$t8,0x10 +/* f123e10: ae0e0000 */ sw $t6,0x0($s0) +/* f123e14: 01897824 */ and $t7,$t4,$t1 +/* f123e18: 01f97025 */ or $t6,$t7,$t9 +/* f123e1c: 26040008 */ addiu $a0,$s0,0x8 +/* f123e20: ae0e0004 */ sw $t6,0x4($s0) +/* f123e24: 3c18b200 */ lui $t8,0xb200 +/* f123e28: 03e97824 */ and $t7,$ra,$t1 +/* f123e2c: ac8f0004 */ sw $t7,0x4($a0) +/* f123e30: ac980000 */ sw $t8,0x0($a0) +/* f123e34: 24850008 */ addiu $a1,$a0,0x8 +/* f123e38: 3c19b400 */ lui $t9,0xb400 +/* f123e3c: acb90000 */ sw $t9,0x0($a1) +/* f123e40: 8faf00d4 */ lw $t7,0xd4($sp) +/* f123e44: 8fae00d8 */ lw $t6,0xd8($sp) +/* f123e48: 24a70008 */ addiu $a3,$a1,0x8 +/* f123e4c: 01e9c824 */ and $t9,$t7,$t1 +/* f123e50: 01c9c024 */ and $t8,$t6,$t1 +/* f123e54: 00197402 */ srl $t6,$t9,0x10 +/* f123e58: 030e7825 */ or $t7,$t8,$t6 +/* f123e5c: acaf0004 */ sw $t7,0x4($a1) +/* f123e60: 8fab00d0 */ lw $t3,0xd0($sp) +/* f123e64: 3c19b200 */ lui $t9,0xb200 +/* f123e68: acf90000 */ sw $t9,0x0($a3) +/* f123e6c: 0169c024 */ and $t8,$t3,$t1 +/* f123e70: acf80004 */ sw $t8,0x4($a3) +/* f123e74: 24e30008 */ addiu $v1,$a3,0x8 +/* f123e78: 3c0eb400 */ lui $t6,0xb400 +/* f123e7c: ac6e0000 */ sw $t6,0x0($v1) +/* f123e80: 31b8ffff */ andi $t8,$t5,0xffff +/* f123e84: 000ccc00 */ sll $t9,$t4,0x10 +/* f123e88: 03387025 */ or $t6,$t9,$t8 +/* f123e8c: ac6e0004 */ sw $t6,0x4($v1) +/* f123e90: 24700008 */ addiu $s0,$v1,0x8 +/* f123e94: 3c0fb200 */ lui $t7,0xb200 +/* f123e98: 001fc400 */ sll $t8,$ra,0x10 +/* f123e9c: ae180004 */ sw $t8,0x4($s0) +/* f123ea0: ae0f0000 */ sw $t7,0x0($s0) +/* f123ea4: 26080008 */ addiu $t0,$s0,0x8 +/* f123ea8: 3c0eb400 */ lui $t6,0xb400 +/* f123eac: ad0e0000 */ sw $t6,0x0($t0) +/* f123eb0: 8fae00d4 */ lw $t6,0xd4($sp) +/* f123eb4: 8fb900d8 */ lw $t9,0xd8($sp) +/* f123eb8: 8fa700c8 */ lw $a3,0xc8($sp) +/* f123ebc: 31cfffff */ andi $t7,$t6,0xffff +/* f123ec0: 0019c400 */ sll $t8,$t9,0x10 +/* f123ec4: 030fc825 */ or $t9,$t8,$t7 +/* f123ec8: ad190004 */ sw $t9,0x4($t0) +/* f123ecc: 25030008 */ addiu $v1,$t0,0x8 +/* f123ed0: 3c0eb200 */ lui $t6,0xb200 +/* f123ed4: 000b7c00 */ sll $t7,$t3,0x10 +/* f123ed8: ac6f0004 */ sw $t7,0x4($v1) +/* f123edc: ac6e0000 */ sw $t6,0x0($v1) +/* f123ee0: 24640008 */ addiu $a0,$v1,0x8 +/* f123ee4: 3c19b400 */ lui $t9,0xb400 +/* f123ee8: 00c9c024 */ and $t8,$a2,$t1 +/* f123eec: 00187c02 */ srl $t7,$t8,0x10 +/* f123ef0: ac990000 */ sw $t9,0x0($a0) +/* f123ef4: 00e97024 */ and $t6,$a3,$t1 +/* f123ef8: 01cfc825 */ or $t9,$t6,$t7 +/* f123efc: ac990004 */ sw $t9,0x4($a0) +/* f123f00: 24850008 */ addiu $a1,$a0,0x8 +/* f123f04: 00497024 */ and $t6,$v0,$t1 +/* f123f08: 3c18b200 */ lui $t8,0xb200 +/* f123f0c: acb80000 */ sw $t8,0x0($a1) +/* f123f10: acae0004 */ sw $t6,0x4($a1) +/* f123f14: 8fa800b4 */ lw $t0,0xb4($sp) +/* f123f18: 8fac00b8 */ lw $t4,0xb8($sp) +/* f123f1c: 00405025 */ or $t2,$v0,$zero +/* f123f20: 24b00008 */ addiu $s0,$a1,0x8 +/* f123f24: 8fab00b0 */ lw $t3,0xb0($sp) +/* f123f28: 02001025 */ or $v0,$s0,$zero +/* f123f2c: 3c0fb400 */ lui $t7,0xb400 +/* f123f30: 0109c024 */ and $t8,$t0,$t1 +/* f123f34: 00187402 */ srl $t6,$t8,0x10 +/* f123f38: ac4f0000 */ sw $t7,0x0($v0) +/* f123f3c: 0189c824 */ and $t9,$t4,$t1 +/* f123f40: 032e7825 */ or $t7,$t9,$t6 +/* f123f44: ac4f0004 */ sw $t7,0x4($v0) +/* f123f48: 26030008 */ addiu $v1,$s0,0x8 +/* f123f4c: 3c18b200 */ lui $t8,0xb200 +/* f123f50: 0169c824 */ and $t9,$t3,$t1 +/* f123f54: ac790004 */ sw $t9,0x4($v1) +/* f123f58: ac780000 */ sw $t8,0x0($v1) +/* f123f5c: 24700008 */ addiu $s0,$v1,0x8 +/* f123f60: 3c0eb400 */ lui $t6,0xb400 +/* f123f64: ae0e0000 */ sw $t6,0x0($s0) +/* f123f68: 30d9ffff */ andi $t9,$a2,0xffff +/* f123f6c: 0007c400 */ sll $t8,$a3,0x10 +/* f123f70: 03197025 */ or $t6,$t8,$t9 +/* f123f74: ae0e0004 */ sw $t6,0x4($s0) +/* f123f78: 26050008 */ addiu $a1,$s0,0x8 +/* f123f7c: 000acc00 */ sll $t9,$t2,0x10 +/* f123f80: acb90004 */ sw $t9,0x4($a1) +/* f123f84: 3c0fb200 */ lui $t7,0xb200 +/* f123f88: acaf0000 */ sw $t7,0x0($a1) +/* f123f8c: 24a30008 */ addiu $v1,$a1,0x8 +/* f123f90: 3c0eb400 */ lui $t6,0xb400 +/* f123f94: ac6e0000 */ sw $t6,0x0($v1) +/* f123f98: 3119ffff */ andi $t9,$t0,0xffff +/* f123f9c: 000cc400 */ sll $t8,$t4,0x10 +/* f123fa0: 03197025 */ or $t6,$t8,$t9 +/* f123fa4: 24640008 */ addiu $a0,$v1,0x8 +/* f123fa8: ac6e0004 */ sw $t6,0x4($v1) +/* f123fac: 3c0fb300 */ lui $t7,0xb300 +/* f123fb0: 000bcc00 */ sll $t9,$t3,0x10 +/* f123fb4: ac990004 */ sw $t9,0x4($a0) +/* f123fb8: ac8f0000 */ sw $t7,0x0($a0) +/* f123fbc: 24820008 */ addiu $v0,$a0,0x8 +.L0f123fc0: +/* f123fc0: 8fbf0024 */ lw $ra,0x24($sp) +/* f123fc4: d7b40018 */ ldc1 $f20,0x18($sp) +/* f123fc8: 8fb00020 */ lw $s0,0x20($sp) +/* f123fcc: 03e00008 */ jr $ra +/* f123fd0: 27bd0488 */ addiu $sp,$sp,0x488 +); + +GLOBAL_ASM( +glabel sky0f123fd4 +.late_rodata +glabel var7f1b50f0 +.word 0xc4eac000 +glabel var7f1b50f4 +.word 0xc4eac000 +glabel var7f1b50f8 +.word 0xc4eac000 +glabel var7f1b50fc +.word 0xc4eac000 +glabel var7f1b5100 +.word 0x44eaa000 +glabel var7f1b5104 +.word 0x46fffe00 +.text +/* f123fd4: 27bdfb30 */ addiu $sp,$sp,-1232 +/* f123fd8: afb00020 */ sw $s0,0x20($sp) +/* f123fdc: 00808025 */ or $s0,$a0,$zero +/* f123fe0: afbf0024 */ sw $ra,0x24($sp) +/* f123fe4: afa504d4 */ sw $a1,0x4d4($sp) +/* f123fe8: 00a02025 */ or $a0,$a1,$zero +/* f123fec: f7b40018 */ sdc1 $f20,0x18($sp) +/* f123ff0: afa604d8 */ sw $a2,0x4d8($sp) +/* f123ff4: afa704dc */ sw $a3,0x4dc($sp) +/* f123ff8: 0fc48b3a */ jal sky0f122ce8 +/* f123ffc: 00c02825 */ or $a1,$a2,$zero +/* f124000: 14400015 */ bnez $v0,.L0f124058 +/* f124004: 8fa404d8 */ lw $a0,0x4d8($sp) +/* f124008: 0fc48b3a */ jal sky0f122ce8 +/* f12400c: 8fa504dc */ lw $a1,0x4dc($sp) +/* f124010: 14400011 */ bnez $v0,.L0f124058 +/* f124014: 8fa404dc */ lw $a0,0x4dc($sp) +/* f124018: 0fc48b3a */ jal sky0f122ce8 +/* f12401c: 8fa504d4 */ lw $a1,0x4d4($sp) +/* f124020: 1440000d */ bnez $v0,.L0f124058 +/* f124024: 8fa404e0 */ lw $a0,0x4e0($sp) +/* f124028: 0fc48b3a */ jal sky0f122ce8 +/* f12402c: 8fa504d4 */ lw $a1,0x4d4($sp) +/* f124030: 14400009 */ bnez $v0,.L0f124058 +/* f124034: 8fa404e0 */ lw $a0,0x4e0($sp) +/* f124038: 0fc48b3a */ jal sky0f122ce8 +/* f12403c: 8fa504d8 */ lw $a1,0x4d8($sp) +/* f124040: 14400005 */ bnez $v0,.L0f124058 +/* f124044: 8fa404e0 */ lw $a0,0x4e0($sp) +/* f124048: 0fc48b3a */ jal sky0f122ce8 +/* f12404c: 8fa504dc */ lw $a1,0x4dc($sp) +/* f124050: 10400003 */ beqz $v0,.L0f124060 +/* f124054: c7aa04e4 */ lwc1 $f10,0x4e4($sp) +.L0f124058: +/* f124058: 10000636 */ b .L0f125934 +/* f12405c: 02001025 */ or $v0,$s0,$zero +.L0f124060: +/* f124060: 3c013780 */ lui $at,0x3780 +/* f124064: 44812000 */ mtc1 $at,$f4 +/* f124068: 8fa304d4 */ lw $v1,0x4d4($sp) +/* f12406c: 8fa404dc */ lw $a0,0x4dc($sp) +/* f124070: 46045202 */ mul.s $f8,$f10,$f4 +/* f124074: 8fa904d8 */ lw $t1,0x4d8($sp) +/* f124078: 00603825 */ or $a3,$v1,$zero +/* f12407c: 00804025 */ or $t0,$a0,$zero +/* f124080: 01202825 */ or $a1,$t1,$zero +/* f124084: e7a803c0 */ swc1 $f8,0x3c0($sp) +/* f124088: c46c0028 */ lwc1 $f12,0x28($v1) +/* f12408c: c48a0028 */ lwc1 $f10,0x28($a0) +/* f124090: c460002c */ lwc1 $f0,0x2c($v1) +/* f124094: c52e002c */ lwc1 $f14,0x2c($t1) +/* f124098: 460c5101 */ sub.s $f4,$f10,$f12 +/* f12409c: c5260028 */ lwc1 $f6,0x28($t1) +/* f1240a0: 46007081 */ sub.s $f2,$f14,$f0 +/* f1240a4: e7a404b0 */ swc1 $f4,0x4b0($sp) +/* f1240a8: c494002c */ lwc1 $f20,0x2c($a0) +/* f1240ac: c7a804b0 */ lwc1 $f8,0x4b0($sp) +/* f1240b0: 460c3481 */ sub.s $f18,$f6,$f12 +/* f1240b4: 46024182 */ mul.s $f6,$f8,$f2 +/* f1240b8: 4600a401 */ sub.s $f16,$f20,$f0 +/* f1240bc: 44814000 */ mtc1 $at,$f8 +/* f1240c0: 3c013f80 */ lui $at,0x3f80 +/* f1240c4: 46109282 */ mul.s $f10,$f18,$f16 +/* f1240c8: 4600703c */ c.lt.s $f14,$f0 +/* f1240cc: 460a3101 */ sub.s $f4,$f6,$f10 +/* f1240d0: 44815000 */ mtc1 $at,$f10 +/* f1240d4: 46082182 */ mul.s $f6,$f4,$f8 +/* f1240d8: 46065103 */ div.s $f4,$f10,$f6 +/* f1240dc: e7a60054 */ swc1 $f6,0x54($sp) +/* f1240e0: e7a60488 */ swc1 $f6,0x488($sp) +/* f1240e4: e7a40050 */ swc1 $f4,0x50($sp) +/* f1240e8: 4500000a */ bc1f .L0f124114 +/* f1240ec: e7a40484 */ swc1 $f4,0x484($sp) +/* f1240f0: 3c01bf80 */ lui $at,0xbf80 +/* f1240f4: 44811000 */ mtc1 $at,$f2 +/* f1240f8: 00602825 */ or $a1,$v1,$zero +/* f1240fc: 01203825 */ or $a3,$t1,$zero +/* f124100: 46023302 */ mul.s $f12,$f6,$f2 +/* f124104: 00000000 */ nop +/* f124108: 46022382 */ mul.s $f14,$f4,$f2 +/* f12410c: e7ac0488 */ swc1 $f12,0x488($sp) +/* f124110: e7ae0484 */ swc1 $f14,0x484($sp) +.L0f124114: +/* f124114: c4a0002c */ lwc1 $f0,0x2c($a1) +/* f124118: 3c01bf80 */ lui $at,0xbf80 +/* f12411c: 44811000 */ mtc1 $at,$f2 +/* f124120: 4600a03c */ c.lt.s $f20,$f0 +/* f124124: c7ac0488 */ lwc1 $f12,0x488($sp) +/* f124128: c7ae0484 */ lwc1 $f14,0x484($sp) +/* f12412c: 3c014080 */ lui $at,0x4080 +/* f124130: 45020006 */ bc1fl .L0f12414c +/* f124134: e7ae0484 */ swc1 $f14,0x484($sp) +/* f124138: 00a04025 */ or $t0,$a1,$zero +/* f12413c: 46027382 */ mul.s $f14,$f14,$f2 +/* f124140: 00802825 */ or $a1,$a0,$zero +/* f124144: c480002c */ lwc1 $f0,0x2c($a0) +/* f124148: e7ae0484 */ swc1 $f14,0x484($sp) +.L0f12414c: +/* f12414c: c4e8002c */ lwc1 $f8,0x2c($a3) +/* f124150: 4608003c */ c.lt.s $f0,$f8 +/* f124154: 44810000 */ mtc1 $at,$f0 +/* f124158: 3c013e80 */ lui $at,0x3e80 +/* f12415c: 44813000 */ mtc1 $at,$f6 +/* f124160: 45020007 */ bc1fl .L0f124180 +/* f124164: c4aa0028 */ lwc1 $f10,0x28($a1) +/* f124168: 46027382 */ mul.s $f14,$f14,$f2 +/* f12416c: 00a01025 */ or $v0,$a1,$zero +/* f124170: 00e02825 */ or $a1,$a3,$zero +/* f124174: 00403825 */ or $a3,$v0,$zero +/* f124178: e7ae0484 */ swc1 $f14,0x484($sp) +/* f12417c: c4aa0028 */ lwc1 $f10,0x28($a1) +.L0f124180: +/* f124180: 4480a000 */ mtc1 $zero,$f20 +/* f124184: 3c0644ea */ lui $a2,0x44ea +/* f124188: 46065102 */ mul.s $f4,$f10,$f6 +/* f12418c: e7b40468 */ swc1 $f20,0x468($sp) +/* f124190: 44815000 */ mtc1 $at,$f10 +/* f124194: 34c6a000 */ ori $a2,$a2,0xa000 +/* f124198: e7a40464 */ swc1 $f4,0x464($sp) +/* f12419c: c4e80028 */ lwc1 $f8,0x28($a3) +/* f1241a0: e7b40470 */ swc1 $f20,0x470($sp) +/* f1241a4: 460a4182 */ mul.s $f6,$f8,$f10 +/* f1241a8: 44814000 */ mtc1 $at,$f8 +/* f1241ac: e7a6046c */ swc1 $f6,0x46c($sp) +/* f1241b0: c4e40028 */ lwc1 $f4,0x28($a3) +/* f1241b4: e7b40478 */ swc1 $f20,0x478($sp) +/* f1241b8: e7b40480 */ swc1 $f20,0x480($sp) +/* f1241bc: 46082282 */ mul.s $f10,$f4,$f8 +/* f1241c0: e7b4047c */ swc1 $f20,0x47c($sp) +/* f1241c4: e7aa0474 */ swc1 $f10,0x474($sp) +/* f1241c8: c5060028 */ lwc1 $f6,0x28($t0) +/* f1241cc: e7a6048c */ swc1 $f6,0x48c($sp) +/* f1241d0: c504002c */ lwc1 $f4,0x2c($t0) +/* f1241d4: e7a40490 */ swc1 $f4,0x490($sp) +/* f1241d8: c4a80028 */ lwc1 $f8,0x28($a1) +/* f1241dc: e7a80494 */ swc1 $f8,0x494($sp) +/* f1241e0: c4aa002c */ lwc1 $f10,0x2c($a1) +/* f1241e4: c7a80494 */ lwc1 $f8,0x494($sp) +/* f1241e8: e7aa0498 */ swc1 $f10,0x498($sp) +/* f1241ec: c4e60028 */ lwc1 $f6,0x28($a3) +/* f1241f0: e7a6049c */ swc1 $f6,0x49c($sp) +/* f1241f4: c4e4002c */ lwc1 $f4,0x2c($a3) +/* f1241f8: c7a60498 */ lwc1 $f6,0x498($sp) +/* f1241fc: c7aa049c */ lwc1 $f10,0x49c($sp) +/* f124200: e7a404a0 */ swc1 $f4,0x4a0($sp) +/* f124204: c7a404a0 */ lwc1 $f4,0x4a0($sp) +/* f124208: e7a6002c */ swc1 $f6,0x2c($sp) +/* f12420c: e7a80028 */ swc1 $f8,0x28($sp) +/* f124210: 46043081 */ sub.s $f2,$f6,$f4 +/* f124214: c7a60490 */ lwc1 $f6,0x490($sp) +/* f124218: afa804c4 */ sw $t0,0x4c4($sp) +/* f12421c: 460a4481 */ sub.s $f18,$f8,$f10 +/* f124220: c7a8048c */ lwc1 $f8,0x48c($sp) +/* f124224: afa704cc */ sw $a3,0x4cc($sp) +/* f124228: 46043401 */ sub.s $f16,$f6,$f4 +/* f12422c: c7a40028 */ lwc1 $f4,0x28($sp) +/* f124230: afa504c8 */ sw $a1,0x4c8($sp) +/* f124234: 460a4281 */ sub.s $f10,$f8,$f10 +/* f124238: e7b40440 */ swc1 $f20,0x440($sp) +/* f12423c: e7b4043c */ swc1 $f20,0x43c($sp) +/* f124240: 46044301 */ sub.s $f12,$f8,$f4 +/* f124244: c7a8002c */ lwc1 $f8,0x2c($sp) +/* f124248: 44812000 */ mtc1 $at,$f4 +/* f12424c: e7aa04b0 */ swc1 $f10,0x4b0($sp) +/* f124250: 46083381 */ sub.s $f14,$f6,$f8 +/* f124254: 46046182 */ mul.s $f6,$f12,$f4 +/* f124258: 44814000 */ mtc1 $at,$f8 +/* f12425c: e7ac04a8 */ swc1 $f12,0x4a8($sp) +/* f124260: e7ae04a4 */ swc1 $f14,0x4a4($sp) +/* f124264: 46087102 */ mul.s $f4,$f14,$f8 +/* f124268: e7b40420 */ swc1 $f20,0x420($sp) +/* f12426c: e7b4041c */ swc1 $f20,0x41c($sp) +/* f124270: e7a60424 */ swc1 $f6,0x424($sp) +/* f124274: 44813000 */ mtc1 $at,$f6 +/* f124278: e7b403e4 */ swc1 $f20,0x3e4($sp) +/* f12427c: e7b403ec */ swc1 $f20,0x3ec($sp) +/* f124280: 46069202 */ mul.s $f8,$f18,$f6 +/* f124284: e7a40428 */ swc1 $f4,0x428($sp) +/* f124288: 44812000 */ mtc1 $at,$f4 +/* f12428c: e7b403f4 */ swc1 $f20,0x3f4($sp) +/* f124290: e7b40400 */ swc1 $f20,0x400($sp) +/* f124294: 46041182 */ mul.s $f6,$f2,$f4 +/* f124298: e7b403fc */ swc1 $f20,0x3fc($sp) +/* f12429c: e7a8042c */ swc1 $f8,0x42c($sp) +/* f1242a0: 44814000 */ mtc1 $at,$f8 +/* f1242a4: e7b403c4 */ swc1 $f20,0x3c4($sp) +/* f1242a8: e7b403cc */ swc1 $f20,0x3cc($sp) +/* f1242ac: 46085102 */ mul.s $f4,$f10,$f8 +/* f1242b0: e7a60430 */ swc1 $f6,0x430($sp) +/* f1242b4: 44813000 */ mtc1 $at,$f6 +/* f1242b8: 3c017f1b */ lui $at,%hi(var7f1b50f0) +/* f1242bc: e7b403d4 */ swc1 $f20,0x3d4($sp) +/* f1242c0: 46068202 */ mul.s $f8,$f16,$f6 +/* f1242c4: e7b403e0 */ swc1 $f20,0x3e0($sp) +/* f1242c8: e7a40434 */ swc1 $f4,0x434($sp) +/* f1242cc: 46006102 */ mul.s $f4,$f12,$f0 +/* f1242d0: e7b403dc */ swc1 $f20,0x3dc($sp) +/* f1242d4: 46007182 */ mul.s $f6,$f14,$f0 +/* f1242d8: e7a80438 */ swc1 $f8,0x438($sp) +/* f1242dc: c42e50f0 */ lwc1 $f14,%lo(var7f1b50f0)($at) +/* f1242e0: 46009202 */ mul.s $f8,$f18,$f0 +/* f1242e4: e7a40404 */ swc1 $f4,0x404($sp) +/* f1242e8: 46001102 */ mul.s $f4,$f2,$f0 +/* f1242ec: e7a60408 */ swc1 $f6,0x408($sp) +/* f1242f0: 46005182 */ mul.s $f6,$f10,$f0 +/* f1242f4: e7a8040c */ swc1 $f8,0x40c($sp) +/* f1242f8: 46008202 */ mul.s $f8,$f16,$f0 +/* f1242fc: e7a40410 */ swc1 $f4,0x410($sp) +/* f124300: c7a404a4 */ lwc1 $f4,0x4a4($sp) +/* f124304: e7a60414 */ swc1 $f6,0x414($sp) +/* f124308: 46040183 */ div.s $f6,$f0,$f4 +/* f12430c: e7a80418 */ swc1 $f8,0x418($sp) +/* f124310: 46020203 */ div.s $f8,$f0,$f2 +/* f124314: e7a603e8 */ swc1 $f6,0x3e8($sp) +/* f124318: 46100183 */ div.s $f6,$f0,$f16 +/* f12431c: e7a803f0 */ swc1 $f8,0x3f0($sp) +/* f124320: c7a804a8 */ lwc1 $f8,0x4a8($sp) +/* f124324: 46044303 */ div.s $f12,$f8,$f4 +/* f124328: e7a603f8 */ swc1 $f6,0x3f8($sp) +/* f12432c: 46029183 */ div.s $f6,$f18,$f2 +/* f124330: e7ac03c8 */ swc1 $f12,0x3c8($sp) +/* f124334: 46105203 */ div.s $f8,$f10,$f16 +/* f124338: e7a603d0 */ swc1 $f6,0x3d0($sp) +/* f12433c: 0fc47cf4 */ jal sky0f11f3d0 +/* f124340: e7a803d8 */ swc1 $f8,0x3d8($sp) +/* f124344: 3c017f1b */ lui $at,%hi(var7f1b50f4) +/* f124348: 3c0644ea */ lui $a2,0x44ea +/* f12434c: e7a003c8 */ swc1 $f0,0x3c8($sp) +/* f124350: 34c6a000 */ ori $a2,$a2,0xa000 +/* f124354: c42e50f4 */ lwc1 $f14,%lo(var7f1b50f4)($at) +/* f124358: 0fc47cf4 */ jal sky0f11f3d0 +/* f12435c: c7ac03d0 */ lwc1 $f12,0x3d0($sp) +/* f124360: 3c017f1b */ lui $at,%hi(var7f1b50f8) +/* f124364: 3c0644ea */ lui $a2,0x44ea +/* f124368: e7a003d0 */ swc1 $f0,0x3d0($sp) +/* f12436c: 34c6a000 */ ori $a2,$a2,0xa000 +/* f124370: c42e50f8 */ lwc1 $f14,%lo(var7f1b50f8)($at) +/* f124374: 0fc47cf4 */ jal sky0f11f3d0 +/* f124378: c7ac03d8 */ lwc1 $f12,0x3d8($sp) +/* f12437c: c7a4046c */ lwc1 $f4,0x46c($sp) +/* f124380: c7a60474 */ lwc1 $f6,0x474($sp) +/* f124384: 8fae04d4 */ lw $t6,0x4d4($sp) +/* f124388: 8fb804d8 */ lw $t8,0x4d8($sp) +/* f12438c: e7a003d8 */ swc1 $f0,0x3d8($sp) +/* f124390: e7a4044c */ swc1 $f4,0x44c($sp) +/* f124394: e7a60454 */ swc1 $f6,0x454($sp) +/* f124398: c5ca0028 */ lwc1 $f10,0x28($t6) +/* f12439c: c7080028 */ lwc1 $f8,0x28($t8) +/* f1243a0: 4608503c */ c.lt.s $f10,$f8 +/* f1243a4: 00000000 */ nop +/* f1243a8: 4502009d */ bc1fl .L0f124620 +/* f1243ac: 8fae04dc */ lw $t6,0x4dc($sp) +/* f1243b0: 8fb904dc */ lw $t9,0x4dc($sp) +/* f1243b4: 8faf04e0 */ lw $t7,0x4e0($sp) +/* f1243b8: 3c013f80 */ lui $at,0x3f80 +/* f1243bc: c724002c */ lwc1 $f4,0x2c($t9) +/* f1243c0: c5e6002c */ lwc1 $f6,0x2c($t7) +/* f1243c4: 44814000 */ mtc1 $at,$f8 +/* f1243c8: 46062281 */ sub.s $f10,$f4,$f6 +/* f1243cc: 4608503c */ c.lt.s $f10,$f8 +/* f1243d0: 00000000 */ nop +/* f1243d4: 45000004 */ bc1f .L0f1243e8 +/* f1243d8: 3c017f1b */ lui $at,%hi(var7f1b50fc) +/* f1243dc: c42450fc */ lwc1 $f4,%lo(var7f1b50fc)($at) +/* f1243e0: 10000010 */ b .L0f124424 +/* f1243e4: e7a401bc */ swc1 $f4,0x1bc($sp) +.L0f1243e8: +/* f1243e8: 0fc2d5f6 */ jal camGetScreenWidth +/* f1243ec: 00000000 */ nop +/* f1243f0: 8fae04dc */ lw $t6,0x4dc($sp) +/* f1243f4: 8fb804e0 */ lw $t8,0x4e0($sp) +/* f1243f8: 3c013e80 */ lui $at,0x3e80 +/* f1243fc: c5c6002c */ lwc1 $f6,0x2c($t6) +/* f124400: c70a002c */ lwc1 $f10,0x2c($t8) +/* f124404: 44812000 */ mtc1 $at,$f4 +/* f124408: 460a3201 */ sub.s $f8,$f6,$f10 +/* f12440c: 44815000 */ mtc1 $at,$f10 +/* f124410: 46044182 */ mul.s $f6,$f8,$f4 +/* f124414: 460a0201 */ sub.s $f8,$f0,$f10 +/* f124418: 46004107 */ neg.s $f4,$f8 +/* f12441c: 46062283 */ div.s $f10,$f4,$f6 +/* f124420: e7aa01bc */ swc1 $f10,0x1bc($sp) +.L0f124424: +/* f124424: 3c05b400 */ lui $a1,0xb400 +/* f124428: 02001025 */ or $v0,$s0,$zero +/* f12442c: ac450000 */ sw $a1,0x0($v0) +/* f124430: 8fb904dc */ lw $t9,0x4dc($sp) +/* f124434: 444ff800 */ cfc1 $t7,$31 +/* f124438: 240e0001 */ addiu $t6,$zero,0x1 +/* f12443c: 44cef800 */ ctc1 $t6,$31 +/* f124440: c728002c */ lwc1 $f8,0x2c($t9) +/* f124444: 26100008 */ addiu $s0,$s0,0x8 +/* f124448: 02001825 */ or $v1,$s0,$zero +/* f12444c: 46004124 */ cvt.w.s $f4,$f8 +/* f124450: 3c19b200 */ lui $t9,0xb200 +/* f124454: 444ef800 */ cfc1 $t6,$31 +/* f124458: 00000000 */ nop +/* f12445c: 31ce0078 */ andi $t6,$t6,0x78 +/* f124460: 11c00012 */ beqz $t6,.L0f1244ac +/* f124464: 3c014f00 */ lui $at,0x4f00 +/* f124468: 44812000 */ mtc1 $at,$f4 +/* f12446c: 240e0001 */ addiu $t6,$zero,0x1 +/* f124470: 46044101 */ sub.s $f4,$f8,$f4 +/* f124474: 44cef800 */ ctc1 $t6,$31 +/* f124478: 00000000 */ nop +/* f12447c: 46002124 */ cvt.w.s $f4,$f4 +/* f124480: 444ef800 */ cfc1 $t6,$31 +/* f124484: 00000000 */ nop +/* f124488: 31ce0078 */ andi $t6,$t6,0x78 +/* f12448c: 15c00005 */ bnez $t6,.L0f1244a4 +/* f124490: 00000000 */ nop +/* f124494: 440e2000 */ mfc1 $t6,$f4 +/* f124498: 3c018000 */ lui $at,0x8000 +/* f12449c: 10000007 */ b .L0f1244bc +/* f1244a0: 01c17025 */ or $t6,$t6,$at +.L0f1244a4: +/* f1244a4: 10000005 */ b .L0f1244bc +/* f1244a8: 240effff */ addiu $t6,$zero,-1 +.L0f1244ac: +/* f1244ac: 440e2000 */ mfc1 $t6,$f4 +/* f1244b0: 00000000 */ nop +/* f1244b4: 05c0fffb */ bltz $t6,.L0f1244a4 +/* f1244b8: 00000000 */ nop +.L0f1244bc: +/* f1244bc: 3c01ce80 */ lui $at,0xce80 +/* f1244c0: 01c1c025 */ or $t8,$t6,$at +/* f1244c4: ac580004 */ sw $t8,0x4($v0) +/* f1244c8: 44cff800 */ ctc1 $t7,$31 +/* f1244cc: ac790000 */ sw $t9,0x0($v1) +/* f1244d0: 8faf04e0 */ lw $t7,0x4e0($sp) +/* f1244d4: 26100008 */ addiu $s0,$s0,0x8 +/* f1244d8: 02002025 */ or $a0,$s0,$zero +/* f1244dc: c5e6002c */ lwc1 $f6,0x2c($t7) +/* f1244e0: 8faf04d4 */ lw $t7,0x4d4($sp) +/* f1244e4: 26100008 */ addiu $s0,$s0,0x8 +/* f1244e8: 4600328d */ trunc.w.s $f10,$f6 +/* f1244ec: c5e8002c */ lwc1 $f8,0x2c($t7) +/* f1244f0: 4600410d */ trunc.w.s $f4,$f8 +/* f1244f4: 44185000 */ mfc1 $t8,$f10 +/* f1244f8: 00000000 */ nop +/* f1244fc: 0018cc00 */ sll $t9,$t8,0x10 +/* f124500: 44182000 */ mfc1 $t8,$f4 +/* f124504: 00000000 */ nop +/* f124508: 03387825 */ or $t7,$t9,$t8 +/* f12450c: ac6f0004 */ sw $t7,0x4($v1) +/* f124510: ac850000 */ sw $a1,0x0($a0) +/* f124514: 0fc2d5fe */ jal camGetScreenLeft +/* f124518: afa401b0 */ sw $a0,0x1b0($sp) +/* f12451c: 0fc2d5f6 */ jal camGetScreenWidth +/* f124520: e7a0005c */ swc1 $f0,0x5c($sp) +/* f124524: c7a6005c */ lwc1 $f6,0x5c($sp) +/* f124528: 3c013e80 */ lui $at,0x3e80 +/* f12452c: 44814000 */ mtc1 $at,$f8 +/* f124530: 46060280 */ add.s $f10,$f0,$f6 +/* f124534: 0fc54be8 */ jal func0f152fa0 +/* f124538: 46085301 */ sub.s $f12,$f10,$f8 +/* f12453c: 8fae01b0 */ lw $t6,0x1b0($sp) +/* f124540: 02001825 */ or $v1,$s0,$zero +/* f124544: 3c19b200 */ lui $t9,0xb200 +/* f124548: adc20004 */ sw $v0,0x4($t6) +/* f12454c: ac790000 */ sw $t9,0x0($v1) +/* f124550: afa301ac */ sw $v1,0x1ac($sp) +/* f124554: c7ac01bc */ lwc1 $f12,0x1bc($sp) +/* f124558: 0fc54be8 */ jal func0f152fa0 +/* f12455c: 26100008 */ addiu $s0,$s0,0x8 +/* f124560: 8fa301ac */ lw $v1,0x1ac($sp) +/* f124564: 02002025 */ or $a0,$s0,$zero +/* f124568: 3c18b400 */ lui $t8,0xb400 +/* f12456c: ac620004 */ sw $v0,0x4($v1) +/* f124570: ac980000 */ sw $t8,0x0($a0) +/* f124574: afa401a8 */ sw $a0,0x1a8($sp) +/* f124578: 0fc2d5fe */ jal camGetScreenLeft +/* f12457c: 26100008 */ addiu $s0,$s0,0x8 +/* f124580: 0fc54be8 */ jal func0f152fa0 +/* f124584: 46000306 */ mov.s $f12,$f0 +/* f124588: 8faf01a8 */ lw $t7,0x1a8($sp) +/* f12458c: 02001825 */ or $v1,$s0,$zero +/* f124590: 3c0eb200 */ lui $t6,0xb200 +/* f124594: ade20004 */ sw $v0,0x4($t7) +/* f124598: ac6e0000 */ sw $t6,0x0($v1) +/* f12459c: afa301a4 */ sw $v1,0x1a4($sp) +/* f1245a0: 26100008 */ addiu $s0,$s0,0x8 +/* f1245a4: 0fc54be8 */ jal func0f152fa0 +/* f1245a8: 4600a306 */ mov.s $f12,$f20 +/* f1245ac: 8fa301a4 */ lw $v1,0x1a4($sp) +/* f1245b0: 02002025 */ or $a0,$s0,$zero +/* f1245b4: 3c19b400 */ lui $t9,0xb400 +/* f1245b8: ac620004 */ sw $v0,0x4($v1) +/* f1245bc: ac990000 */ sw $t9,0x0($a0) +/* f1245c0: afa401a0 */ sw $a0,0x1a0($sp) +/* f1245c4: 0fc2d5fe */ jal camGetScreenLeft +/* f1245c8: 26100008 */ addiu $s0,$s0,0x8 +/* f1245cc: 0fc2d5f6 */ jal camGetScreenWidth +/* f1245d0: e7a0005c */ swc1 $f0,0x5c($sp) +/* f1245d4: c7a4005c */ lwc1 $f4,0x5c($sp) +/* f1245d8: 3c013e80 */ lui $at,0x3e80 +/* f1245dc: 44815000 */ mtc1 $at,$f10 +/* f1245e0: 46040180 */ add.s $f6,$f0,$f4 +/* f1245e4: 0fc54be8 */ jal func0f152fa0 +/* f1245e8: 460a3301 */ sub.s $f12,$f6,$f10 +/* f1245ec: 8fb801a0 */ lw $t8,0x1a0($sp) +/* f1245f0: 02001825 */ or $v1,$s0,$zero +/* f1245f4: 3c0fb200 */ lui $t7,0xb200 +/* f1245f8: af020004 */ sw $v0,0x4($t8) +/* f1245fc: ac6f0000 */ sw $t7,0x0($v1) +/* f124600: afa3019c */ sw $v1,0x19c($sp) +/* f124604: 26100008 */ addiu $s0,$s0,0x8 +/* f124608: 0fc54be8 */ jal func0f152fa0 +/* f12460c: 4600a306 */ mov.s $f12,$f20 +/* f124610: 8fa3019c */ lw $v1,0x19c($sp) +/* f124614: 10000094 */ b .L0f124868 +/* f124618: ac620004 */ sw $v0,0x4($v1) +/* f12461c: 8fae04dc */ lw $t6,0x4dc($sp) +.L0f124620: +/* f124620: 8fb904e0 */ lw $t9,0x4e0($sp) +/* f124624: 3c013f80 */ lui $at,0x3f80 +/* f124628: c5c8002c */ lwc1 $f8,0x2c($t6) +/* f12462c: c724002c */ lwc1 $f4,0x2c($t9) +/* f124630: 44815000 */ mtc1 $at,$f10 +/* f124634: 46044181 */ sub.s $f6,$f8,$f4 +/* f124638: 460a303c */ c.lt.s $f6,$f10 +/* f12463c: 00000000 */ nop +/* f124640: 45000003 */ bc1f .L0f124650 +/* f124644: 3c017f1b */ lui $at,%hi(var7f1b5100) +/* f124648: 1000000e */ b .L0f124684 +/* f12464c: c42e5100 */ lwc1 $f14,%lo(var7f1b5100)($at) +.L0f124650: +/* f124650: 0fc2d5f6 */ jal camGetScreenWidth +/* f124654: 00000000 */ nop +/* f124658: 8fb804dc */ lw $t8,0x4dc($sp) +/* f12465c: 8faf04e0 */ lw $t7,0x4e0($sp) +/* f124660: 3c013e80 */ lui $at,0x3e80 +/* f124664: c708002c */ lwc1 $f8,0x2c($t8) +/* f124668: c5e4002c */ lwc1 $f4,0x2c($t7) +/* f12466c: 44815000 */ mtc1 $at,$f10 +/* f124670: 46044181 */ sub.s $f6,$f8,$f4 +/* f124674: 44812000 */ mtc1 $at,$f4 +/* f124678: 460a3202 */ mul.s $f8,$f6,$f10 +/* f12467c: 46040181 */ sub.s $f6,$f0,$f4 +/* f124680: 46083383 */ div.s $f14,$f6,$f8 +.L0f124684: +/* f124684: 02001025 */ or $v0,$s0,$zero +/* f124688: 3c0eb400 */ lui $t6,0xb400 +/* f12468c: ac4e0000 */ sw $t6,0x0($v0) +/* f124690: 8fb904dc */ lw $t9,0x4dc($sp) +/* f124694: 4458f800 */ cfc1 $t8,$31 +/* f124698: 240f0001 */ addiu $t7,$zero,0x1 +/* f12469c: 44cff800 */ ctc1 $t7,$31 +/* f1246a0: c72a002c */ lwc1 $f10,0x2c($t9) +/* f1246a4: 26100008 */ addiu $s0,$s0,0x8 +/* f1246a8: 02001825 */ or $v1,$s0,$zero +/* f1246ac: 46005124 */ cvt.w.s $f4,$f10 +/* f1246b0: 3c19b200 */ lui $t9,0xb200 +/* f1246b4: 444ff800 */ cfc1 $t7,$31 +/* f1246b8: 00000000 */ nop +/* f1246bc: 31ef0078 */ andi $t7,$t7,0x78 +/* f1246c0: 11e00012 */ beqz $t7,.L0f12470c +/* f1246c4: 3c014f00 */ lui $at,0x4f00 +/* f1246c8: 44812000 */ mtc1 $at,$f4 +/* f1246cc: 240f0001 */ addiu $t7,$zero,0x1 +/* f1246d0: 46045101 */ sub.s $f4,$f10,$f4 +/* f1246d4: 44cff800 */ ctc1 $t7,$31 +/* f1246d8: 00000000 */ nop +/* f1246dc: 46002124 */ cvt.w.s $f4,$f4 +/* f1246e0: 444ff800 */ cfc1 $t7,$31 +/* f1246e4: 00000000 */ nop +/* f1246e8: 31ef0078 */ andi $t7,$t7,0x78 +/* f1246ec: 15e00005 */ bnez $t7,.L0f124704 +/* f1246f0: 00000000 */ nop +/* f1246f4: 440f2000 */ mfc1 $t7,$f4 +/* f1246f8: 3c018000 */ lui $at,0x8000 +/* f1246fc: 10000007 */ b .L0f12471c +/* f124700: 01e17825 */ or $t7,$t7,$at +.L0f124704: +/* f124704: 10000005 */ b .L0f12471c +/* f124708: 240fffff */ addiu $t7,$zero,-1 +.L0f12470c: +/* f12470c: 440f2000 */ mfc1 $t7,$f4 +/* f124710: 00000000 */ nop +/* f124714: 05e0fffb */ bltz $t7,.L0f124704 +/* f124718: 00000000 */ nop +.L0f12471c: +/* f12471c: 3c01ce00 */ lui $at,0xce00 +/* f124720: 01e17025 */ or $t6,$t7,$at +/* f124724: ac4e0004 */ sw $t6,0x4($v0) +/* f124728: 44d8f800 */ ctc1 $t8,$31 +/* f12472c: ac790000 */ sw $t9,0x0($v1) +/* f124730: 8fb804e0 */ lw $t8,0x4e0($sp) +/* f124734: 26100008 */ addiu $s0,$s0,0x8 +/* f124738: 02002025 */ or $a0,$s0,$zero +/* f12473c: c706002c */ lwc1 $f6,0x2c($t8) +/* f124740: 8fb804d4 */ lw $t8,0x4d4($sp) +/* f124744: 3c0fb400 */ lui $t7,0xb400 +/* f124748: 4600320d */ trunc.w.s $f8,$f6 +/* f12474c: c70a002c */ lwc1 $f10,0x2c($t8) +/* f124750: 26100008 */ addiu $s0,$s0,0x8 +/* f124754: 4600510d */ trunc.w.s $f4,$f10 +/* f124758: 440e4000 */ mfc1 $t6,$f8 +/* f12475c: 00000000 */ nop +/* f124760: 000ecc00 */ sll $t9,$t6,0x10 +/* f124764: 440e2000 */ mfc1 $t6,$f4 +/* f124768: 00000000 */ nop +/* f12476c: 032ec025 */ or $t8,$t9,$t6 +/* f124770: ac780004 */ sw $t8,0x4($v1) +/* f124774: ac8f0000 */ sw $t7,0x0($a0) +/* f124778: e7ae0198 */ swc1 $f14,0x198($sp) +/* f12477c: 0fc2d5fe */ jal camGetScreenLeft +/* f124780: afa4018c */ sw $a0,0x18c($sp) +/* f124784: 0fc54be8 */ jal func0f152fa0 +/* f124788: 46000306 */ mov.s $f12,$f0 +/* f12478c: 8fb9018c */ lw $t9,0x18c($sp) +/* f124790: c7ac0198 */ lwc1 $f12,0x198($sp) +/* f124794: 02001825 */ or $v1,$s0,$zero +/* f124798: 3c0eb200 */ lui $t6,0xb200 +/* f12479c: af220004 */ sw $v0,0x4($t9) +/* f1247a0: ac6e0000 */ sw $t6,0x0($v1) +/* f1247a4: afa30188 */ sw $v1,0x188($sp) +/* f1247a8: 0fc54be8 */ jal func0f152fa0 +/* f1247ac: 26100008 */ addiu $s0,$s0,0x8 +/* f1247b0: 8fa30188 */ lw $v1,0x188($sp) +/* f1247b4: 02002025 */ or $a0,$s0,$zero +/* f1247b8: 3c18b400 */ lui $t8,0xb400 +/* f1247bc: ac620004 */ sw $v0,0x4($v1) +/* f1247c0: ac980000 */ sw $t8,0x0($a0) +/* f1247c4: afa40184 */ sw $a0,0x184($sp) +/* f1247c8: 0fc2d5fe */ jal camGetScreenLeft +/* f1247cc: 26100008 */ addiu $s0,$s0,0x8 +/* f1247d0: 0fc2d5f6 */ jal camGetScreenWidth +/* f1247d4: e7a0005c */ swc1 $f0,0x5c($sp) +/* f1247d8: c7a6005c */ lwc1 $f6,0x5c($sp) +/* f1247dc: 3c013e80 */ lui $at,0x3e80 +/* f1247e0: 44815000 */ mtc1 $at,$f10 +/* f1247e4: 46060200 */ add.s $f8,$f0,$f6 +/* f1247e8: 0fc54be8 */ jal func0f152fa0 +/* f1247ec: 460a4301 */ sub.s $f12,$f8,$f10 +/* f1247f0: 8faf0184 */ lw $t7,0x184($sp) +/* f1247f4: 02001825 */ or $v1,$s0,$zero +/* f1247f8: 3c19b200 */ lui $t9,0xb200 +/* f1247fc: ade20004 */ sw $v0,0x4($t7) +/* f124800: ac790000 */ sw $t9,0x0($v1) +/* f124804: afa30180 */ sw $v1,0x180($sp) +/* f124808: 26100008 */ addiu $s0,$s0,0x8 +/* f12480c: 0fc54be8 */ jal func0f152fa0 +/* f124810: 4600a306 */ mov.s $f12,$f20 +/* f124814: 8fa30180 */ lw $v1,0x180($sp) +/* f124818: 02002025 */ or $a0,$s0,$zero +/* f12481c: 3c0eb400 */ lui $t6,0xb400 +/* f124820: ac620004 */ sw $v0,0x4($v1) +/* f124824: ac8e0000 */ sw $t6,0x0($a0) +/* f124828: afa4017c */ sw $a0,0x17c($sp) +/* f12482c: 0fc2d5fe */ jal camGetScreenLeft +/* f124830: 26100008 */ addiu $s0,$s0,0x8 +/* f124834: 0fc54be8 */ jal func0f152fa0 +/* f124838: 46000306 */ mov.s $f12,$f0 +/* f12483c: 8fb8017c */ lw $t8,0x17c($sp) +/* f124840: 02001825 */ or $v1,$s0,$zero +/* f124844: 3c0fb200 */ lui $t7,0xb200 +/* f124848: af020004 */ sw $v0,0x4($t8) +/* f12484c: ac6f0000 */ sw $t7,0x0($v1) +/* f124850: afa30178 */ sw $v1,0x178($sp) +/* f124854: 26100008 */ addiu $s0,$s0,0x8 +/* f124858: 0fc54be8 */ jal func0f152fa0 +/* f12485c: 4600a306 */ mov.s $f12,$f20 +/* f124860: 8fa30178 */ lw $v1,0x178($sp) +/* f124864: ac620004 */ sw $v0,0x4($v1) +.L0f124868: +/* f124868: 8fa804cc */ lw $t0,0x4cc($sp) +/* f12486c: c7a003c0 */ lwc1 $f0,0x3c0($sp) +/* f124870: 8fa704c8 */ lw $a3,0x4c8($sp) +/* f124874: c504000c */ lwc1 $f4,0xc($t0) +/* f124878: 8fa904c4 */ lw $t1,0x4c4($sp) +/* f12487c: 8fab04e0 */ lw $t3,0x4e0($sp) +/* f124880: 46002182 */ mul.s $f6,$f4,$f0 +/* f124884: 3c017f1b */ lui $at,%hi(var7f1b5104) +/* f124888: e7a603b0 */ swc1 $f6,0x3b0($sp) +/* f12488c: c4e8000c */ lwc1 $f8,0xc($a3) +/* f124890: c7b003b0 */ lwc1 $f16,0x3b0($sp) +/* f124894: 46004282 */ mul.s $f10,$f8,$f0 +/* f124898: e7aa03b4 */ swc1 $f10,0x3b4($sp) +/* f12489c: c524000c */ lwc1 $f4,0xc($t1) +/* f1248a0: 46002182 */ mul.s $f6,$f4,$f0 +/* f1248a4: c7a403b4 */ lwc1 $f4,0x3b4($sp) +/* f1248a8: 4610203c */ c.lt.s $f4,$f16 +/* f1248ac: e7a603b8 */ swc1 $f6,0x3b8($sp) +/* f1248b0: c568000c */ lwc1 $f8,0xc($t3) +/* f1248b4: 46004282 */ mul.s $f10,$f8,$f0 +/* f1248b8: c7a003b8 */ lwc1 $f0,0x3b8($sp) +/* f1248bc: 45000002 */ bc1f .L0f1248c8 +/* f1248c0: e7aa03bc */ swc1 $f10,0x3bc($sp) +/* f1248c4: 46002406 */ mov.s $f16,$f4 +.L0f1248c8: +/* f1248c8: 4610003c */ c.lt.s $f0,$f16 +/* f1248cc: 00000000 */ nop +/* f1248d0: 45020003 */ bc1fl .L0f1248e0 +/* f1248d4: c7a003bc */ lwc1 $f0,0x3bc($sp) +/* f1248d8: 46000406 */ mov.s $f16,$f0 +/* f1248dc: c7a003bc */ lwc1 $f0,0x3bc($sp) +.L0f1248e0: +/* f1248e0: 4610003c */ c.lt.s $f0,$f16 +/* f1248e4: 00000000 */ nop +/* f1248e8: 45000002 */ bc1f .L0f1248f4 +/* f1248ec: 00000000 */ nop +/* f1248f0: 46000406 */ mov.s $f16,$f0 +.L0f1248f4: +/* f1248f4: c4205104 */ lwc1 $f0,%lo(var7f1b5104)($at) +/* f1248f8: 3c013f00 */ lui $at,0x3f00 +/* f1248fc: 44813000 */ mtc1 $at,$f6 +/* f124900: c5080034 */ lwc1 $f8,0x34($t0) +/* f124904: 46068402 */ mul.s $f16,$f16,$f6 +/* f124908: 00000000 */ nop +/* f12490c: 46104282 */ mul.s $f10,$f8,$f16 +/* f124910: e7aa039c */ swc1 $f10,0x39c($sp) +/* f124914: c4e40034 */ lwc1 $f4,0x34($a3) +/* f124918: 46102182 */ mul.s $f6,$f4,$f16 +/* f12491c: e7a603a0 */ swc1 $f6,0x3a0($sp) +/* f124920: c5280034 */ lwc1 $f8,0x34($t1) +/* f124924: 46104282 */ mul.s $f10,$f8,$f16 +/* f124928: c7a8039c */ lwc1 $f8,0x39c($sp) +/* f12492c: e7aa03a4 */ swc1 $f10,0x3a4($sp) +/* f124930: c5640034 */ lwc1 $f4,0x34($t3) +/* f124934: 46102182 */ mul.s $f6,$f4,$f16 +/* f124938: e7a603a8 */ swc1 $f6,0x3a8($sp) +/* f12493c: c50a0020 */ lwc1 $f10,0x20($t0) +/* f124940: 460a4102 */ mul.s $f4,$f8,$f10 +/* f124944: e7a4036c */ swc1 $f4,0x36c($sp) +/* f124948: c5060024 */ lwc1 $f6,0x24($t0) +/* f12494c: 4604a03e */ c.le.s $f20,$f4 +/* f124950: 46064282 */ mul.s $f10,$f8,$f6 +/* f124954: 00000000 */ nop +/* f124958: 46004182 */ mul.s $f6,$f8,$f0 +/* f12495c: e7aa0370 */ swc1 $f10,0x370($sp) +/* f124960: c7aa03a0 */ lwc1 $f10,0x3a0($sp) +/* f124964: e7a60374 */ swc1 $f6,0x374($sp) +/* f124968: c4e80020 */ lwc1 $f8,0x20($a3) +/* f12496c: 46085182 */ mul.s $f6,$f10,$f8 +/* f124970: e7a60378 */ swc1 $f6,0x378($sp) +/* f124974: c4e80024 */ lwc1 $f8,0x24($a3) +/* f124978: 46085182 */ mul.s $f6,$f10,$f8 +/* f12497c: 00000000 */ nop +/* f124980: 46005202 */ mul.s $f8,$f10,$f0 +/* f124984: e7a6037c */ swc1 $f6,0x37c($sp) +/* f124988: c7a603a4 */ lwc1 $f6,0x3a4($sp) +/* f12498c: e7a80380 */ swc1 $f8,0x380($sp) +/* f124990: c52a0020 */ lwc1 $f10,0x20($t1) +/* f124994: 460a3202 */ mul.s $f8,$f6,$f10 +/* f124998: e7a80384 */ swc1 $f8,0x384($sp) +/* f12499c: c52a0024 */ lwc1 $f10,0x24($t1) +/* f1249a0: 460a3202 */ mul.s $f8,$f6,$f10 +/* f1249a4: 00000000 */ nop +/* f1249a8: 46003282 */ mul.s $f10,$f6,$f0 +/* f1249ac: e7a80388 */ swc1 $f8,0x388($sp) +/* f1249b0: c7a803a8 */ lwc1 $f8,0x3a8($sp) +/* f1249b4: e7aa038c */ swc1 $f10,0x38c($sp) +/* f1249b8: c5660020 */ lwc1 $f6,0x20($t3) +/* f1249bc: 46064282 */ mul.s $f10,$f8,$f6 +/* f1249c0: c7a803a8 */ lwc1 $f8,0x3a8($sp) +/* f1249c4: e7aa0390 */ swc1 $f10,0x390($sp) +/* f1249c8: c5660024 */ lwc1 $f6,0x24($t3) +/* f1249cc: 46064282 */ mul.s $f10,$f8,$f6 +/* f1249d0: c7a803a8 */ lwc1 $f8,0x3a8($sp) +/* f1249d4: 46004182 */ mul.s $f6,$f8,$f0 +/* f1249d8: c7a00370 */ lwc1 $f0,0x370($sp) +/* f1249dc: e7aa0394 */ swc1 $f10,0x394($sp) +/* f1249e0: 45000003 */ bc1f .L0f1249f0 +/* f1249e4: e7a60398 */ swc1 $f6,0x398($sp) +/* f1249e8: 10000003 */ b .L0f1249f8 +/* f1249ec: 46002086 */ mov.s $f2,$f4 +.L0f1249f0: +/* f1249f0: c7a2036c */ lwc1 $f2,0x36c($sp) +/* f1249f4: 46001087 */ neg.s $f2,$f2 +.L0f1249f8: +/* f1249f8: 4600a03e */ c.le.s $f20,$f0 +/* f1249fc: 00000000 */ nop +/* f124a00: 45020004 */ bc1fl .L0f124a14 +/* f124a04: 46000387 */ neg.s $f14,$f0 +/* f124a08: 10000002 */ b .L0f124a14 +/* f124a0c: 46000386 */ mov.s $f14,$f0 +/* f124a10: 46000387 */ neg.s $f14,$f0 +.L0f124a14: +/* f124a14: c7a00378 */ lwc1 $f0,0x378($sp) +/* f124a18: 4600a03e */ c.le.s $f20,$f0 +/* f124a1c: 00000000 */ nop +/* f124a20: 45020004 */ bc1fl .L0f124a34 +/* f124a24: 46000307 */ neg.s $f12,$f0 +/* f124a28: 10000002 */ b .L0f124a34 +/* f124a2c: 46000306 */ mov.s $f12,$f0 +/* f124a30: 46000307 */ neg.s $f12,$f0 +.L0f124a34: +/* f124a34: 460c103c */ c.lt.s $f2,$f12 +/* f124a38: 00000000 */ nop +/* f124a3c: 45020009 */ bc1fl .L0f124a64 +/* f124a40: c7a0037c */ lwc1 $f0,0x37c($sp) +/* f124a44: 4600a03e */ c.le.s $f20,$f0 +/* f124a48: 00000000 */ nop +/* f124a4c: 45020004 */ bc1fl .L0f124a60 +/* f124a50: 46000087 */ neg.s $f2,$f0 +/* f124a54: 10000002 */ b .L0f124a60 +/* f124a58: 46000086 */ mov.s $f2,$f0 +/* f124a5c: 46000087 */ neg.s $f2,$f0 +.L0f124a60: +/* f124a60: c7a0037c */ lwc1 $f0,0x37c($sp) +.L0f124a64: +/* f124a64: 4600a03e */ c.le.s $f20,$f0 +/* f124a68: 00000000 */ nop +/* f124a6c: 45020004 */ bc1fl .L0f124a80 +/* f124a70: 46000307 */ neg.s $f12,$f0 +/* f124a74: 10000002 */ b .L0f124a80 +/* f124a78: 46000306 */ mov.s $f12,$f0 +/* f124a7c: 46000307 */ neg.s $f12,$f0 +.L0f124a80: +/* f124a80: 460c703c */ c.lt.s $f14,$f12 +/* f124a84: e7b003ac */ swc1 $f16,0x3ac($sp) +/* f124a88: 4502000b */ bc1fl .L0f124ab8 +/* f124a8c: c7a00384 */ lwc1 $f0,0x384($sp) +/* f124a90: 4600a03e */ c.le.s $f20,$f0 +/* f124a94: 00000000 */ nop +/* f124a98: 45020005 */ bc1fl .L0f124ab0 +/* f124a9c: 46000387 */ neg.s $f14,$f0 +/* f124aa0: 46000386 */ mov.s $f14,$f0 +/* f124aa4: 10000003 */ b .L0f124ab4 +/* f124aa8: e7b003ac */ swc1 $f16,0x3ac($sp) +/* f124aac: 46000387 */ neg.s $f14,$f0 +.L0f124ab0: +/* f124ab0: e7b003ac */ swc1 $f16,0x3ac($sp) +.L0f124ab4: +/* f124ab4: c7a00384 */ lwc1 $f0,0x384($sp) +.L0f124ab8: +/* f124ab8: 4600a03e */ c.le.s $f20,$f0 +/* f124abc: 00000000 */ nop +/* f124ac0: 45020004 */ bc1fl .L0f124ad4 +/* f124ac4: 46000307 */ neg.s $f12,$f0 +/* f124ac8: 10000002 */ b .L0f124ad4 +/* f124acc: 46000306 */ mov.s $f12,$f0 +/* f124ad0: 46000307 */ neg.s $f12,$f0 +.L0f124ad4: +/* f124ad4: 460c103c */ c.lt.s $f2,$f12 +/* f124ad8: 00000000 */ nop +/* f124adc: 45020009 */ bc1fl .L0f124b04 +/* f124ae0: c7a00388 */ lwc1 $f0,0x388($sp) +/* f124ae4: 4600a03e */ c.le.s $f20,$f0 +/* f124ae8: 00000000 */ nop +/* f124aec: 45020004 */ bc1fl .L0f124b00 +/* f124af0: 46000087 */ neg.s $f2,$f0 +/* f124af4: 10000002 */ b .L0f124b00 +/* f124af8: 46000086 */ mov.s $f2,$f0 +/* f124afc: 46000087 */ neg.s $f2,$f0 +.L0f124b00: +/* f124b00: c7a00388 */ lwc1 $f0,0x388($sp) +.L0f124b04: +/* f124b04: 4600a03e */ c.le.s $f20,$f0 +/* f124b08: 00000000 */ nop +/* f124b0c: 45020004 */ bc1fl .L0f124b20 +/* f124b10: 46000307 */ neg.s $f12,$f0 +/* f124b14: 10000002 */ b .L0f124b20 +/* f124b18: 46000306 */ mov.s $f12,$f0 +/* f124b1c: 46000307 */ neg.s $f12,$f0 +.L0f124b20: +/* f124b20: 460c703c */ c.lt.s $f14,$f12 +/* f124b24: 00000000 */ nop +/* f124b28: 45020009 */ bc1fl .L0f124b50 +/* f124b2c: c7a00390 */ lwc1 $f0,0x390($sp) +/* f124b30: 4600a03e */ c.le.s $f20,$f0 +/* f124b34: 00000000 */ nop +/* f124b38: 45020004 */ bc1fl .L0f124b4c +/* f124b3c: 46000387 */ neg.s $f14,$f0 +/* f124b40: 10000002 */ b .L0f124b4c +/* f124b44: 46000386 */ mov.s $f14,$f0 +/* f124b48: 46000387 */ neg.s $f14,$f0 +.L0f124b4c: +/* f124b4c: c7a00390 */ lwc1 $f0,0x390($sp) +.L0f124b50: +/* f124b50: 4600a03e */ c.le.s $f20,$f0 +/* f124b54: 00000000 */ nop +/* f124b58: 45020004 */ bc1fl .L0f124b6c +/* f124b5c: 46000307 */ neg.s $f12,$f0 +/* f124b60: 10000002 */ b .L0f124b6c +/* f124b64: 46000306 */ mov.s $f12,$f0 +/* f124b68: 46000307 */ neg.s $f12,$f0 +.L0f124b6c: +/* f124b6c: 460c103c */ c.lt.s $f2,$f12 +/* f124b70: e7a20364 */ swc1 $f2,0x364($sp) +/* f124b74: 4502000a */ bc1fl .L0f124ba0 +/* f124b78: c7a00394 */ lwc1 $f0,0x394($sp) +/* f124b7c: 4600a03e */ c.le.s $f20,$f0 +/* f124b80: 00000000 */ nop +/* f124b84: 45020004 */ bc1fl .L0f124b98 +/* f124b88: 46000087 */ neg.s $f2,$f0 +/* f124b8c: 10000003 */ b .L0f124b9c +/* f124b90: e7a00364 */ swc1 $f0,0x364($sp) +/* f124b94: 46000087 */ neg.s $f2,$f0 +.L0f124b98: +/* f124b98: e7a20364 */ swc1 $f2,0x364($sp) +.L0f124b9c: +/* f124b9c: c7a00394 */ lwc1 $f0,0x394($sp) +.L0f124ba0: +/* f124ba0: 4600a03e */ c.le.s $f20,$f0 +/* f124ba4: 00000000 */ nop +/* f124ba8: 45020004 */ bc1fl .L0f124bbc +/* f124bac: 46000307 */ neg.s $f12,$f0 +/* f124bb0: 10000002 */ b .L0f124bbc +/* f124bb4: 46000306 */ mov.s $f12,$f0 +/* f124bb8: 46000307 */ neg.s $f12,$f0 +.L0f124bbc: +/* f124bbc: 460c703c */ c.lt.s $f14,$f12 +/* f124bc0: e7ae0368 */ swc1 $f14,0x368($sp) +/* f124bc4: 4502000a */ bc1fl .L0f124bf0 +/* f124bc8: c7aa036c */ lwc1 $f10,0x36c($sp) +/* f124bcc: 4600a03e */ c.le.s $f20,$f0 +/* f124bd0: 00000000 */ nop +/* f124bd4: 45020004 */ bc1fl .L0f124be8 +/* f124bd8: 46000387 */ neg.s $f14,$f0 +/* f124bdc: 10000003 */ b .L0f124bec +/* f124be0: e7a00368 */ swc1 $f0,0x368($sp) +/* f124be4: 46000387 */ neg.s $f14,$f0 +.L0f124be8: +/* f124be8: e7ae0368 */ swc1 $f14,0x368($sp) +.L0f124bec: +/* f124bec: c7aa036c */ lwc1 $f10,0x36c($sp) +.L0f124bf0: +/* f124bf0: c7a80370 */ lwc1 $f8,0x370($sp) +/* f124bf4: c7a60374 */ lwc1 $f6,0x374($sp) +/* f124bf8: e7aa0354 */ swc1 $f10,0x354($sp) +/* f124bfc: c7aa037c */ lwc1 $f10,0x37c($sp) +/* f124c00: c7a40378 */ lwc1 $f4,0x378($sp) +/* f124c04: e7a80358 */ swc1 $f8,0x358($sp) +/* f124c08: e7a6035c */ swc1 $f6,0x35c($sp) +/* f124c0c: e7aa0338 */ swc1 $f10,0x338($sp) +/* f124c10: e7a40334 */ swc1 $f4,0x334($sp) +/* f124c14: c7a80380 */ lwc1 $f8,0x380($sp) +/* f124c18: c7a40388 */ lwc1 $f4,0x388($sp) +/* f124c1c: c7aa038c */ lwc1 $f10,0x38c($sp) +/* f124c20: c7a60384 */ lwc1 $f6,0x384($sp) +/* f124c24: e7a8033c */ swc1 $f8,0x33c($sp) +/* f124c28: e7a40318 */ swc1 $f4,0x318($sp) +/* f124c2c: e7aa031c */ swc1 $f10,0x31c($sp) +/* f124c30: e7a60314 */ swc1 $f6,0x314($sp) +/* f124c34: c5080030 */ lwc1 $f8,0x30($t0) +/* f124c38: 27a302f4 */ addiu $v1,$sp,0x2f4 +/* f124c3c: 27a60334 */ addiu $a2,$sp,0x334 +/* f124c40: e7a80360 */ swc1 $f8,0x360($sp) +/* f124c44: c4e60030 */ lwc1 $f6,0x30($a3) +/* f124c48: 27a70324 */ addiu $a3,$sp,0x324 +/* f124c4c: 27a20354 */ addiu $v0,$sp,0x354 +/* f124c50: e7a60340 */ swc1 $f6,0x340($sp) +/* f124c54: c5240030 */ lwc1 $f4,0x30($t1) +/* f124c58: 27a402d4 */ addiu $a0,$sp,0x2d4 +/* f124c5c: 27a50314 */ addiu $a1,$sp,0x314 +/* f124c60: e7a40320 */ swc1 $f4,0x320($sp) +.L0f124c64: +/* f124c64: c4400000 */ lwc1 $f0,0x0($v0) +/* f124c68: c4ca0000 */ lwc1 $f10,0x0($a2) +/* f124c6c: c4a60000 */ lwc1 $f6,0x0($a1) +/* f124c70: 24a50004 */ addiu $a1,$a1,0x4 +/* f124c74: 46005201 */ sub.s $f8,$f10,$f0 +/* f124c78: 00a7082b */ sltu $at,$a1,$a3 +/* f124c7c: 24630004 */ addiu $v1,$v1,0x4 +/* f124c80: 46003101 */ sub.s $f4,$f6,$f0 +/* f124c84: 24c60004 */ addiu $a2,$a2,0x4 +/* f124c88: 24420004 */ addiu $v0,$v0,0x4 +/* f124c8c: 24840004 */ addiu $a0,$a0,0x4 +/* f124c90: e468fffc */ swc1 $f8,-0x4($v1) +/* f124c94: 1420fff3 */ bnez $at,.L0f124c64 +/* f124c98: e484fffc */ swc1 $f4,-0x4($a0) +/* f124c9c: 27a302f4 */ addiu $v1,$sp,0x2f4 +/* f124ca0: 27a20354 */ addiu $v0,$sp,0x354 +/* f124ca4: 27a402d4 */ addiu $a0,$sp,0x2d4 +/* f124ca8: 27a70294 */ addiu $a3,$sp,0x294 +/* f124cac: 27a502b4 */ addiu $a1,$sp,0x2b4 +/* f124cb0: 27a80274 */ addiu $t0,$sp,0x274 +/* f124cb4: 27a60254 */ addiu $a2,$sp,0x254 +/* f124cb8: c7b20410 */ lwc1 $f18,0x410($sp) +/* f124cbc: c7b0040c */ lwc1 $f16,0x40c($sp) +/* f124cc0: 27a90264 */ addiu $t1,$sp,0x264 +.L0f124cc4: +/* f124cc4: c4800000 */ lwc1 $f0,0x0($a0) +/* f124cc8: c4620000 */ lwc1 $f2,0x0($v1) +/* f124ccc: c7a80418 */ lwc1 $f8,0x418($sp) +/* f124cd0: 46120282 */ mul.s $f10,$f0,$f18 +/* f124cd4: 3c013780 */ lui $at,0x3780 +/* f124cd8: 24c60004 */ addiu $a2,$a2,0x4 +/* f124cdc: 46024182 */ mul.s $f6,$f8,$f2 +/* f124ce0: 44814000 */ mtc1 $at,$f8 +/* f124ce4: 24630004 */ addiu $v1,$v1,0x4 +/* f124ce8: 24420004 */ addiu $v0,$v0,0x4 +/* f124cec: 24840004 */ addiu $a0,$a0,0x4 +/* f124cf0: 24e70004 */ addiu $a3,$a3,0x4 +/* f124cf4: 24a50004 */ addiu $a1,$a1,0x4 +/* f124cf8: 46065101 */ sub.s $f4,$f10,$f6 +/* f124cfc: 25080004 */ addiu $t0,$t0,0x4 +/* f124d00: 46082302 */ mul.s $f12,$f4,$f8 +/* f124d04: e4ecfffc */ swc1 $f12,-0x4($a3) +/* f124d08: c7aa0414 */ lwc1 $f10,0x414($sp) +/* f124d0c: 460a1182 */ mul.s $f6,$f2,$f10 +/* f124d10: 44815000 */ mtc1 $at,$f10 +/* f124d14: 00c9082b */ sltu $at,$a2,$t1 +/* f124d18: 46008102 */ mul.s $f4,$f16,$f0 +/* f124d1c: 46043201 */ sub.s $f8,$f6,$f4 +/* f124d20: 460a4182 */ mul.s $f6,$f8,$f10 +/* f124d24: e4a6fffc */ swc1 $f6,-0x4($a1) +/* f124d28: c7a40484 */ lwc1 $f4,0x484($sp) +/* f124d2c: c4aafffc */ lwc1 $f10,-0x4($a1) +/* f124d30: 46046202 */ mul.s $f8,$f12,$f4 +/* f124d34: c444fffc */ lwc1 $f4,-0x4($v0) +/* f124d38: e488fffc */ swc1 $f8,-0x4($a0) +/* f124d3c: c7a60484 */ lwc1 $f6,0x484($sp) +/* f124d40: e4c4fffc */ swc1 $f4,-0x4($a2) +/* f124d44: 46065382 */ mul.s $f14,$f10,$f6 +/* f124d48: e46efffc */ swc1 $f14,-0x4($v1) +/* f124d4c: 1420ffdd */ bnez $at,.L0f124cc4 +/* f124d50: e50efffc */ swc1 $f14,-0x4($t0) +/* f124d54: 8fa304dc */ lw $v1,0x4dc($sp) +/* f124d58: c568002c */ lwc1 $f8,0x2c($t3) +/* f124d5c: 8fa204d4 */ lw $v0,0x4d4($sp) +/* f124d60: c46a002c */ lwc1 $f10,0x2c($v1) +/* f124d64: c4640010 */ lwc1 $f4,0x10($v1) +/* f124d68: c44e0010 */ lwc1 $f14,0x10($v0) +/* f124d6c: 460a4003 */ div.s $f0,$f8,$f10 +/* f124d70: c5660010 */ lwc1 $f6,0x10($t3) +/* f124d74: 3c014780 */ lui $at,0x4780 +/* f124d78: 44816000 */ mtc1 $at,$f12 +/* f124d7c: 46047201 */ sub.s $f8,$f14,$f4 +/* f124d80: 240e0001 */ addiu $t6,$zero,0x1 +/* f124d84: 46004282 */ mul.s $f10,$f8,$f0 +/* f124d88: 460a3100 */ add.s $f4,$f6,$f10 +/* f124d8c: e7a40170 */ swc1 $f4,0x170($sp) +/* f124d90: c4660014 */ lwc1 $f6,0x14($v1) +/* f124d94: c4420014 */ lwc1 $f2,0x14($v0) +/* f124d98: c5680014 */ lwc1 $f8,0x14($t3) +/* f124d9c: 46061281 */ sub.s $f10,$f2,$f6 +/* f124da0: 46005102 */ mul.s $f4,$f10,$f0 +/* f124da4: 46044180 */ add.s $f6,$f8,$f4 +/* f124da8: e7a6016c */ swc1 $f6,0x16c($sp) +/* f124dac: c4680018 */ lwc1 $f8,0x18($v1) +/* f124db0: c4500018 */ lwc1 $f16,0x18($v0) +/* f124db4: c56a0018 */ lwc1 $f10,0x18($t3) +/* f124db8: 46088101 */ sub.s $f4,$f16,$f8 +/* f124dbc: 46002182 */ mul.s $f6,$f4,$f0 +/* f124dc0: 46065200 */ add.s $f8,$f10,$f6 +/* f124dc4: e7a80168 */ swc1 $f8,0x168($sp) +/* f124dc8: c46a001c */ lwc1 $f10,0x1c($v1) +/* f124dcc: c452001c */ lwc1 $f18,0x1c($v0) +/* f124dd0: c564001c */ lwc1 $f4,0x1c($t3) +/* f124dd4: 460a9181 */ sub.s $f6,$f18,$f10 +/* f124dd8: 46003202 */ mul.s $f8,$f6,$f0 +/* f124ddc: 46082280 */ add.s $f10,$f4,$f8 +/* f124de0: 460c7182 */ mul.s $f6,$f14,$f12 +/* f124de4: e7aa0164 */ swc1 $f10,0x164($sp) +/* f124de8: 4459f800 */ cfc1 $t9,$31 +/* f124dec: 44cef800 */ ctc1 $t6,$31 +/* f124df0: 00000000 */ nop +/* f124df4: 46003124 */ cvt.w.s $f4,$f6 +/* f124df8: 444ef800 */ cfc1 $t6,$31 +/* f124dfc: 00000000 */ nop +/* f124e00: 31ce0078 */ andi $t6,$t6,0x78 +/* f124e04: 11c00012 */ beqz $t6,.L0f124e50 +/* f124e08: 3c014f00 */ lui $at,0x4f00 +/* f124e0c: 44812000 */ mtc1 $at,$f4 +/* f124e10: 240e0001 */ addiu $t6,$zero,0x1 +/* f124e14: 46043101 */ sub.s $f4,$f6,$f4 +/* f124e18: 44cef800 */ ctc1 $t6,$31 +/* f124e1c: 00000000 */ nop +/* f124e20: 46002124 */ cvt.w.s $f4,$f4 +/* f124e24: 444ef800 */ cfc1 $t6,$31 +/* f124e28: 00000000 */ nop +/* f124e2c: 31ce0078 */ andi $t6,$t6,0x78 +/* f124e30: 15c00005 */ bnez $t6,.L0f124e48 +/* f124e34: 00000000 */ nop +/* f124e38: 440e2000 */ mfc1 $t6,$f4 +/* f124e3c: 3c018000 */ lui $at,0x8000 +/* f124e40: 10000007 */ b .L0f124e60 +/* f124e44: 01c17025 */ or $t6,$t6,$at +.L0f124e48: +/* f124e48: 10000005 */ b .L0f124e60 +/* f124e4c: 240effff */ addiu $t6,$zero,-1 +.L0f124e50: +/* f124e50: 440e2000 */ mfc1 $t6,$f4 +/* f124e54: 00000000 */ nop +/* f124e58: 05c0fffb */ bltz $t6,.L0f124e48 +/* f124e5c: 00000000 */ nop +.L0f124e60: +/* f124e60: 44d9f800 */ ctc1 $t9,$31 +/* f124e64: 240f0001 */ addiu $t7,$zero,0x1 +/* f124e68: afae0160 */ sw $t6,0x160($sp) +/* f124e6c: 460c1202 */ mul.s $f8,$f2,$f12 +/* f124e70: 4458f800 */ cfc1 $t8,$31 +/* f124e74: 44cff800 */ ctc1 $t7,$31 +/* f124e78: 00000000 */ nop +/* f124e7c: 460042a4 */ cvt.w.s $f10,$f8 +/* f124e80: 444ff800 */ cfc1 $t7,$31 +/* f124e84: 00000000 */ nop +/* f124e88: 31ef0078 */ andi $t7,$t7,0x78 +/* f124e8c: 11e00012 */ beqz $t7,.L0f124ed8 +/* f124e90: 3c014f00 */ lui $at,0x4f00 +/* f124e94: 44815000 */ mtc1 $at,$f10 +/* f124e98: 240f0001 */ addiu $t7,$zero,0x1 +/* f124e9c: 460a4281 */ sub.s $f10,$f8,$f10 +/* f124ea0: 44cff800 */ ctc1 $t7,$31 +/* f124ea4: 00000000 */ nop +/* f124ea8: 460052a4 */ cvt.w.s $f10,$f10 +/* f124eac: 444ff800 */ cfc1 $t7,$31 +/* f124eb0: 00000000 */ nop +/* f124eb4: 31ef0078 */ andi $t7,$t7,0x78 +/* f124eb8: 15e00005 */ bnez $t7,.L0f124ed0 +/* f124ebc: 00000000 */ nop +/* f124ec0: 440f5000 */ mfc1 $t7,$f10 +/* f124ec4: 3c018000 */ lui $at,0x8000 +/* f124ec8: 10000007 */ b .L0f124ee8 +/* f124ecc: 01e17825 */ or $t7,$t7,$at +.L0f124ed0: +/* f124ed0: 10000005 */ b .L0f124ee8 +/* f124ed4: 240fffff */ addiu $t7,$zero,-1 +.L0f124ed8: +/* f124ed8: 440f5000 */ mfc1 $t7,$f10 +/* f124edc: 00000000 */ nop +/* f124ee0: 05e0fffb */ bltz $t7,.L0f124ed0 +/* f124ee4: 00000000 */ nop +.L0f124ee8: +/* f124ee8: 3c014780 */ lui $at,0x4780 +/* f124eec: 44d8f800 */ ctc1 $t8,$31 +/* f124ef0: 44810000 */ mtc1 $at,$f0 +/* f124ef4: 240e0001 */ addiu $t6,$zero,0x1 +/* f124ef8: afaf015c */ sw $t7,0x15c($sp) +/* f124efc: 46008182 */ mul.s $f6,$f16,$f0 +/* f124f00: 4459f800 */ cfc1 $t9,$31 +/* f124f04: 44cef800 */ ctc1 $t6,$31 +/* f124f08: 00000000 */ nop +/* f124f0c: 46003124 */ cvt.w.s $f4,$f6 +/* f124f10: 444ef800 */ cfc1 $t6,$31 +/* f124f14: 00000000 */ nop +/* f124f18: 31ce0078 */ andi $t6,$t6,0x78 +/* f124f1c: 11c00012 */ beqz $t6,.L0f124f68 +/* f124f20: 3c014f00 */ lui $at,0x4f00 +/* f124f24: 44812000 */ mtc1 $at,$f4 +/* f124f28: 240e0001 */ addiu $t6,$zero,0x1 +/* f124f2c: 46043101 */ sub.s $f4,$f6,$f4 +/* f124f30: 44cef800 */ ctc1 $t6,$31 +/* f124f34: 00000000 */ nop +/* f124f38: 46002124 */ cvt.w.s $f4,$f4 +/* f124f3c: 444ef800 */ cfc1 $t6,$31 +/* f124f40: 00000000 */ nop +/* f124f44: 31ce0078 */ andi $t6,$t6,0x78 +/* f124f48: 15c00005 */ bnez $t6,.L0f124f60 +/* f124f4c: 00000000 */ nop +/* f124f50: 440e2000 */ mfc1 $t6,$f4 +/* f124f54: 3c018000 */ lui $at,0x8000 +/* f124f58: 10000007 */ b .L0f124f78 +/* f124f5c: 01c17025 */ or $t6,$t6,$at +.L0f124f60: +/* f124f60: 10000005 */ b .L0f124f78 +/* f124f64: 240effff */ addiu $t6,$zero,-1 +.L0f124f68: +/* f124f68: 440e2000 */ mfc1 $t6,$f4 +/* f124f6c: 00000000 */ nop +/* f124f70: 05c0fffb */ bltz $t6,.L0f124f60 +/* f124f74: 00000000 */ nop +.L0f124f78: +/* f124f78: 44d9f800 */ ctc1 $t9,$31 +/* f124f7c: 240f0001 */ addiu $t7,$zero,0x1 +/* f124f80: afae0158 */ sw $t6,0x158($sp) +/* f124f84: 46009202 */ mul.s $f8,$f18,$f0 +/* f124f88: 4458f800 */ cfc1 $t8,$31 +/* f124f8c: 44cff800 */ ctc1 $t7,$31 +/* f124f90: 00000000 */ nop +/* f124f94: 460042a4 */ cvt.w.s $f10,$f8 +/* f124f98: 444ff800 */ cfc1 $t7,$31 +/* f124f9c: 00000000 */ nop +/* f124fa0: 31ef0078 */ andi $t7,$t7,0x78 +/* f124fa4: 11e00012 */ beqz $t7,.L0f124ff0 +/* f124fa8: 3c014f00 */ lui $at,0x4f00 +/* f124fac: 44815000 */ mtc1 $at,$f10 +/* f124fb0: 240f0001 */ addiu $t7,$zero,0x1 +/* f124fb4: 460a4281 */ sub.s $f10,$f8,$f10 +/* f124fb8: 44cff800 */ ctc1 $t7,$31 +/* f124fbc: 00000000 */ nop +/* f124fc0: 460052a4 */ cvt.w.s $f10,$f10 +/* f124fc4: 444ff800 */ cfc1 $t7,$31 +/* f124fc8: 00000000 */ nop +/* f124fcc: 31ef0078 */ andi $t7,$t7,0x78 +/* f124fd0: 15e00005 */ bnez $t7,.L0f124fe8 +/* f124fd4: 00000000 */ nop +/* f124fd8: 440f5000 */ mfc1 $t7,$f10 +/* f124fdc: 3c018000 */ lui $at,0x8000 +/* f124fe0: 10000007 */ b .L0f125000 +/* f124fe4: 01e17825 */ or $t7,$t7,$at +.L0f124fe8: +/* f124fe8: 10000005 */ b .L0f125000 +/* f124fec: 240fffff */ addiu $t7,$zero,-1 +.L0f124ff0: +/* f124ff0: 440f5000 */ mfc1 $t7,$f10 +/* f124ff4: 00000000 */ nop +/* f124ff8: 05e0fffb */ bltz $t7,.L0f124fe8 +/* f124ffc: 00000000 */ nop +.L0f125000: +/* f125000: 8fb904d8 */ lw $t9,0x4d8($sp) +/* f125004: afaf0154 */ sw $t7,0x154($sp) +/* f125008: 44d8f800 */ ctc1 $t8,$31 +/* f12500c: c4440028 */ lwc1 $f4,0x28($v0) +/* f125010: c7260028 */ lwc1 $f6,0x28($t9) +/* f125014: 3c013e80 */ lui $at,0x3e80 +/* f125018: 44815000 */ mtc1 $at,$f10 +/* f12501c: 46043201 */ sub.s $f8,$f6,$f4 +/* f125020: c7a40170 */ lwc1 $f4,0x170($sp) +/* f125024: 460a4182 */ mul.s $f6,$f8,$f10 +/* f125028: 460e2201 */ sub.s $f8,$f4,$f14 +/* f12502c: 0fc54be8 */ jal func0f152fa0 +/* f125030: 46064303 */ div.s $f12,$f8,$f6 +/* f125034: 8fa304d4 */ lw $v1,0x4d4($sp) +/* f125038: afa20150 */ sw $v0,0x150($sp) +/* f12503c: c7aa016c */ lwc1 $f10,0x16c($sp) +/* f125040: c4640014 */ lwc1 $f4,0x14($v1) +/* f125044: 8fae04d8 */ lw $t6,0x4d8($sp) +/* f125048: 3c013e80 */ lui $at,0x3e80 +/* f12504c: 46045201 */ sub.s $f8,$f10,$f4 +/* f125050: c46a0028 */ lwc1 $f10,0x28($v1) +/* f125054: c5c60028 */ lwc1 $f6,0x28($t6) +/* f125058: 460a3101 */ sub.s $f4,$f6,$f10 +/* f12505c: 44813000 */ mtc1 $at,$f6 +/* f125060: 00000000 */ nop +/* f125064: 46062282 */ mul.s $f10,$f4,$f6 +/* f125068: 0fc54be8 */ jal func0f152fa0 +/* f12506c: 460a4303 */ div.s $f12,$f8,$f10 +/* f125070: 8fa304d4 */ lw $v1,0x4d4($sp) +/* f125074: afa2014c */ sw $v0,0x14c($sp) +/* f125078: c7a40168 */ lwc1 $f4,0x168($sp) +/* f12507c: c4660018 */ lwc1 $f6,0x18($v1) +/* f125080: 8fb804d8 */ lw $t8,0x4d8($sp) +/* f125084: 3c013e80 */ lui $at,0x3e80 +/* f125088: 46062201 */ sub.s $f8,$f4,$f6 +/* f12508c: c4640028 */ lwc1 $f4,0x28($v1) +/* f125090: c70a0028 */ lwc1 $f10,0x28($t8) +/* f125094: 46045181 */ sub.s $f6,$f10,$f4 +/* f125098: 44815000 */ mtc1 $at,$f10 +/* f12509c: 00000000 */ nop +/* f1250a0: 460a3102 */ mul.s $f4,$f6,$f10 +/* f1250a4: 0fc54be8 */ jal func0f152fa0 +/* f1250a8: 46044303 */ div.s $f12,$f8,$f4 +/* f1250ac: 8fa304d4 */ lw $v1,0x4d4($sp) +/* f1250b0: afa20148 */ sw $v0,0x148($sp) +/* f1250b4: c7a60164 */ lwc1 $f6,0x164($sp) +/* f1250b8: c46a001c */ lwc1 $f10,0x1c($v1) +/* f1250bc: 8faf04d8 */ lw $t7,0x4d8($sp) +/* f1250c0: 3c013e80 */ lui $at,0x3e80 +/* f1250c4: 460a3201 */ sub.s $f8,$f6,$f10 +/* f1250c8: c4660028 */ lwc1 $f6,0x28($v1) +/* f1250cc: c5e40028 */ lwc1 $f4,0x28($t7) +/* f1250d0: 46062281 */ sub.s $f10,$f4,$f6 +/* f1250d4: 44812000 */ mtc1 $at,$f4 +/* f1250d8: 00000000 */ nop +/* f1250dc: 46045182 */ mul.s $f6,$f10,$f4 +/* f1250e0: 0fc54be8 */ jal func0f152fa0 +/* f1250e4: 46064303 */ div.s $f12,$f8,$f6 +/* f1250e8: 8fa304dc */ lw $v1,0x4dc($sp) +/* f1250ec: 8fb904d4 */ lw $t9,0x4d4($sp) +/* f1250f0: afa20144 */ sw $v0,0x144($sp) +/* f1250f4: c46a0010 */ lwc1 $f10,0x10($v1) +/* f1250f8: c7240010 */ lwc1 $f4,0x10($t9) +/* f1250fc: c466002c */ lwc1 $f6,0x2c($v1) +/* f125100: 3c013e80 */ lui $at,0x3e80 +/* f125104: 46045201 */ sub.s $f8,$f10,$f4 +/* f125108: c72a002c */ lwc1 $f10,0x2c($t9) +/* f12510c: 460a3101 */ sub.s $f4,$f6,$f10 +/* f125110: 44813000 */ mtc1 $at,$f6 +/* f125114: 00000000 */ nop +/* f125118: 46062282 */ mul.s $f10,$f4,$f6 +/* f12511c: 0fc54be8 */ jal func0f152fa0 +/* f125120: 460a4303 */ div.s $f12,$f8,$f10 +/* f125124: 8fa304dc */ lw $v1,0x4dc($sp) +/* f125128: 8fae04d4 */ lw $t6,0x4d4($sp) +/* f12512c: afa20130 */ sw $v0,0x130($sp) +/* f125130: afa20140 */ sw $v0,0x140($sp) +/* f125134: c4640014 */ lwc1 $f4,0x14($v1) +/* f125138: c5c60014 */ lwc1 $f6,0x14($t6) +/* f12513c: c46a002c */ lwc1 $f10,0x2c($v1) +/* f125140: 3c013e80 */ lui $at,0x3e80 +/* f125144: 46062201 */ sub.s $f8,$f4,$f6 +/* f125148: c5c4002c */ lwc1 $f4,0x2c($t6) +/* f12514c: 46045181 */ sub.s $f6,$f10,$f4 +/* f125150: 44815000 */ mtc1 $at,$f10 +/* f125154: 00000000 */ nop +/* f125158: 460a3102 */ mul.s $f4,$f6,$f10 +/* f12515c: 0fc54be8 */ jal func0f152fa0 +/* f125160: 46044303 */ div.s $f12,$f8,$f4 +/* f125164: 8fb804dc */ lw $t8,0x4dc($sp) +/* f125168: 8faf04d4 */ lw $t7,0x4d4($sp) +/* f12516c: afa2012c */ sw $v0,0x12c($sp) +/* f125170: afa2013c */ sw $v0,0x13c($sp) +/* f125174: c7060018 */ lwc1 $f6,0x18($t8) +/* f125178: c5ea0018 */ lwc1 $f10,0x18($t7) +/* f12517c: c704002c */ lwc1 $f4,0x2c($t8) +/* f125180: 3c013e80 */ lui $at,0x3e80 +/* f125184: 460a3201 */ sub.s $f8,$f6,$f10 +/* f125188: c5e6002c */ lwc1 $f6,0x2c($t7) +/* f12518c: 46062281 */ sub.s $f10,$f4,$f6 +/* f125190: 44812000 */ mtc1 $at,$f4 +/* f125194: 00000000 */ nop +/* f125198: 46045182 */ mul.s $f6,$f10,$f4 +/* f12519c: 0fc54be8 */ jal func0f152fa0 +/* f1251a0: 46064303 */ div.s $f12,$f8,$f6 +/* f1251a4: 8fb904dc */ lw $t9,0x4dc($sp) +/* f1251a8: 8fae04d4 */ lw $t6,0x4d4($sp) +/* f1251ac: 3c013e80 */ lui $at,0x3e80 +/* f1251b0: c72a001c */ lwc1 $f10,0x1c($t9) +/* f1251b4: c5c4001c */ lwc1 $f4,0x1c($t6) +/* f1251b8: c726002c */ lwc1 $f6,0x2c($t9) +/* f1251bc: 46045201 */ sub.s $f8,$f10,$f4 +/* f1251c0: c5ca002c */ lwc1 $f10,0x2c($t6) +/* f1251c4: afa20138 */ sw $v0,0x138($sp) +/* f1251c8: afa20128 */ sw $v0,0x128($sp) +/* f1251cc: 460a3101 */ sub.s $f4,$f6,$f10 +/* f1251d0: 44813000 */ mtc1 $at,$f6 +/* f1251d4: 00000000 */ nop +/* f1251d8: 46062282 */ mul.s $f10,$f4,$f6 +/* f1251dc: 0fc54be8 */ jal func0f152fa0 +/* f1251e0: 460a4303 */ div.s $f12,$f8,$f10 +/* f1251e4: 8fab015c */ lw $t3,0x15c($sp) +/* f1251e8: 8faa0160 */ lw $t2,0x160($sp) +/* f1251ec: 3c09ffff */ lui $t1,0xffff +/* f1251f0: 02001825 */ or $v1,$s0,$zero +/* f1251f4: 01697824 */ and $t7,$t3,$t1 +/* f1251f8: 8fac0128 */ lw $t4,0x128($sp) +/* f1251fc: 8fad0138 */ lw $t5,0x138($sp) +/* f125200: 8fbf0158 */ lw $ra,0x158($sp) +/* f125204: 000fcc02 */ srl $t9,$t7,0x10 +/* f125208: 0149c024 */ and $t8,$t2,$t1 +/* f12520c: 3c08b400 */ lui $t0,0xb400 +/* f125210: 03197025 */ or $t6,$t8,$t9 +/* f125214: 26100008 */ addiu $s0,$s0,0x8 +/* f125218: ac6e0004 */ sw $t6,0x4($v1) +/* f12521c: ac680000 */ sw $t0,0x0($v1) +/* f125220: 02002025 */ or $a0,$s0,$zero +/* f125224: 3c0fb200 */ lui $t7,0xb200 +/* f125228: ac8f0000 */ sw $t7,0x0($a0) +/* f12522c: 8fb90154 */ lw $t9,0x154($sp) +/* f125230: 03e9c024 */ and $t8,$ra,$t1 +/* f125234: 26100008 */ addiu $s0,$s0,0x8 +/* f125238: 03297024 */ and $t6,$t9,$t1 +/* f12523c: 000e7c02 */ srl $t7,$t6,0x10 +/* f125240: 030fc825 */ or $t9,$t8,$t7 +/* f125244: ac990004 */ sw $t9,0x4($a0) +/* f125248: 02002825 */ or $a1,$s0,$zero +/* f12524c: aca80000 */ sw $t0,0x0($a1) +/* f125250: 8faf014c */ lw $t7,0x14c($sp) +/* f125254: 8fae0150 */ lw $t6,0x150($sp) +/* f125258: 26100008 */ addiu $s0,$s0,0x8 +/* f12525c: 01e9c824 */ and $t9,$t7,$t1 +/* f125260: 01c9c024 */ and $t8,$t6,$t1 +/* f125264: 00197402 */ srl $t6,$t9,0x10 +/* f125268: 030e7825 */ or $t7,$t8,$t6 +/* f12526c: acaf0004 */ sw $t7,0x4($a1) +/* f125270: 3c05b200 */ lui $a1,0xb200 +/* f125274: 02003025 */ or $a2,$s0,$zero +/* f125278: acc50000 */ sw $a1,0x0($a2) +/* f12527c: 8fae0144 */ lw $t6,0x144($sp) +/* f125280: 8fb90148 */ lw $t9,0x148($sp) +/* f125284: 26100008 */ addiu $s0,$s0,0x8 +/* f125288: 01c97824 */ and $t7,$t6,$t1 +/* f12528c: 0329c024 */ and $t8,$t9,$t1 +/* f125290: 000fcc02 */ srl $t9,$t7,0x10 +/* f125294: 03197025 */ or $t6,$t8,$t9 +/* f125298: acce0004 */ sw $t6,0x4($a2) +/* f12529c: 02001825 */ or $v1,$s0,$zero +/* f1252a0: 3179ffff */ andi $t9,$t3,0xffff +/* f1252a4: 000ac400 */ sll $t8,$t2,0x10 +/* f1252a8: 03197025 */ or $t6,$t8,$t9 +/* f1252ac: 26100008 */ addiu $s0,$s0,0x8 +/* f1252b0: ac6e0004 */ sw $t6,0x4($v1) +/* f1252b4: ac680000 */ sw $t0,0x0($v1) +/* f1252b8: 02002025 */ or $a0,$s0,$zero +/* f1252bc: ac850000 */ sw $a1,0x0($a0) +/* f1252c0: 8fb90154 */ lw $t9,0x154($sp) +/* f1252c4: 001fc400 */ sll $t8,$ra,0x10 +/* f1252c8: 26100008 */ addiu $s0,$s0,0x8 +/* f1252cc: 332effff */ andi $t6,$t9,0xffff +/* f1252d0: 030e7825 */ or $t7,$t8,$t6 +/* f1252d4: ac8f0004 */ sw $t7,0x4($a0) +/* f1252d8: 02003825 */ or $a3,$s0,$zero +/* f1252dc: ace80000 */ sw $t0,0x0($a3) +/* f1252e0: 8faf014c */ lw $t7,0x14c($sp) +/* f1252e4: 8fb80150 */ lw $t8,0x150($sp) +/* f1252e8: 8faa0140 */ lw $t2,0x140($sp) +/* f1252ec: 31f9ffff */ andi $t9,$t7,0xffff +/* f1252f0: 00187400 */ sll $t6,$t8,0x10 +/* f1252f4: 8fa8013c */ lw $t0,0x13c($sp) +/* f1252f8: 01d9c025 */ or $t8,$t6,$t9 +/* f1252fc: 26100008 */ addiu $s0,$s0,0x8 +/* f125300: acf80004 */ sw $t8,0x4($a3) +/* f125304: 02001825 */ or $v1,$s0,$zero +/* f125308: 3c0fb200 */ lui $t7,0xb200 +/* f12530c: ac6f0000 */ sw $t7,0x0($v1) +/* f125310: 8faf0144 */ lw $t7,0x144($sp) +/* f125314: 8fb90148 */ lw $t9,0x148($sp) +/* f125318: 26100008 */ addiu $s0,$s0,0x8 +/* f12531c: 31eeffff */ andi $t6,$t7,0xffff +/* f125320: 0019c400 */ sll $t8,$t9,0x10 +/* f125324: 030ec825 */ or $t9,$t8,$t6 +/* f125328: 0109c024 */ and $t8,$t0,$t1 +/* f12532c: ac790004 */ sw $t9,0x4($v1) +/* f125330: 00187402 */ srl $t6,$t8,0x10 +/* f125334: 01497824 */ and $t7,$t2,$t1 +/* f125338: 01eec825 */ or $t9,$t7,$t6 +/* f12533c: 02002025 */ or $a0,$s0,$zero +/* f125340: 26100008 */ addiu $s0,$s0,0x8 +/* f125344: 3c1fb400 */ lui $ra,0xb400 +/* f125348: ac990004 */ sw $t9,0x4($a0) +/* f12534c: 02002825 */ or $a1,$s0,$zero +/* f125350: 00493024 */ and $a2,$v0,$t1 +/* f125354: ac9f0000 */ sw $ra,0x0($a0) +/* f125358: 00067c02 */ srl $t7,$a2,0x10 +/* f12535c: 01a97024 */ and $t6,$t5,$t1 +/* f125360: 01cfc825 */ or $t9,$t6,$t7 +/* f125364: 26100008 */ addiu $s0,$s0,0x8 +/* f125368: 3c18b200 */ lui $t8,0xb200 +/* f12536c: acb80000 */ sw $t8,0x0($a1) +/* f125370: acb90004 */ sw $t9,0x4($a1) +/* f125374: 02001825 */ or $v1,$s0,$zero +/* f125378: ac7f0000 */ sw $ra,0x0($v1) +/* f12537c: 8fae012c */ lw $t6,0x12c($sp) +/* f125380: 8fb80130 */ lw $t8,0x130($sp) +/* f125384: 01e03025 */ or $a2,$t7,$zero +/* f125388: 01c9c824 */ and $t9,$t6,$t1 +/* f12538c: 03097824 */ and $t7,$t8,$t1 +/* f125390: 0019c402 */ srl $t8,$t9,0x10 +/* f125394: 01f87025 */ or $t6,$t7,$t8 +/* f125398: 26100008 */ addiu $s0,$s0,0x8 +/* f12539c: 02002025 */ or $a0,$s0,$zero +/* f1253a0: 01897824 */ and $t7,$t4,$t1 +/* f1253a4: ac6e0004 */ sw $t6,0x4($v1) +/* f1253a8: 01e6c025 */ or $t8,$t7,$a2 +/* f1253ac: 3c19b200 */ lui $t9,0xb200 +/* f1253b0: ac990000 */ sw $t9,0x0($a0) +/* f1253b4: 26100008 */ addiu $s0,$s0,0x8 +/* f1253b8: ac980004 */ sw $t8,0x4($a0) +/* f1253bc: 02002825 */ or $a1,$s0,$zero +/* f1253c0: 000acc00 */ sll $t9,$t2,0x10 +/* f1253c4: 310fffff */ andi $t7,$t0,0xffff +/* f1253c8: 032fc025 */ or $t8,$t9,$t7 +/* f1253cc: 26100008 */ addiu $s0,$s0,0x8 +/* f1253d0: acb80004 */ sw $t8,0x4($a1) +/* f1253d4: acbf0000 */ sw $ra,0x0($a1) +/* f1253d8: 02005825 */ or $t3,$s0,$zero +/* f1253dc: 304fffff */ andi $t7,$v0,0xffff +/* f1253e0: 000dcc00 */ sll $t9,$t5,0x10 +/* f1253e4: 032fc025 */ or $t8,$t9,$t7 +/* f1253e8: 26100008 */ addiu $s0,$s0,0x8 +/* f1253ec: 3c1fb200 */ lui $ra,0xb200 +/* f1253f0: ad7f0000 */ sw $ra,0x0($t3) +/* f1253f4: ad780004 */ sw $t8,0x4($t3) +/* f1253f8: 02003825 */ or $a3,$s0,$zero +/* f1253fc: 3c0eb400 */ lui $t6,0xb400 +/* f125400: acee0000 */ sw $t6,0x0($a3) +/* f125404: 8fae012c */ lw $t6,0x12c($sp) +/* f125408: 8faf0130 */ lw $t7,0x130($sp) +/* f12540c: 26100008 */ addiu $s0,$s0,0x8 +/* f125410: 31d9ffff */ andi $t9,$t6,0xffff +/* f125414: 000fc400 */ sll $t8,$t7,0x10 +/* f125418: 03197825 */ or $t7,$t8,$t9 +/* f12541c: acef0004 */ sw $t7,0x4($a3) +/* f125420: 3059ffff */ andi $t9,$v0,0xffff +/* f125424: 02004025 */ or $t0,$s0,$zero +/* f125428: 000cc400 */ sll $t8,$t4,0x10 +/* f12542c: 03197825 */ or $t7,$t8,$t9 +/* f125430: 3c013d00 */ lui $at,0x3d00 +/* f125434: ad0f0004 */ sw $t7,0x4($t0) +/* f125438: ad1f0000 */ sw $ra,0x0($t0) +/* f12543c: 44817000 */ mtc1 $at,$f14 +/* f125440: c7a40364 */ lwc1 $f4,0x364($sp) +/* f125444: c7a80368 */ lwc1 $f8,0x368($sp) +/* f125448: 26100008 */ addiu $s0,$s0,0x8 +/* f12544c: 460e2182 */ mul.s $f6,$f4,$f14 +/* f125450: c7a403ac */ lwc1 $f4,0x3ac($sp) +/* f125454: 27a20204 */ addiu $v0,$sp,0x204 +/* f125458: 460e4282 */ mul.s $f10,$f8,$f14 +/* f12545c: 27a501f4 */ addiu $a1,$sp,0x1f4 +/* f125460: 27a402d4 */ addiu $a0,$sp,0x2d4 +/* f125464: 27a60214 */ addiu $a2,$sp,0x214 +/* f125468: e7a60234 */ swc1 $f6,0x234($sp) +/* f12546c: 460e2182 */ mul.s $f6,$f4,$f14 +/* f125470: 27a302f4 */ addiu $v1,$sp,0x2f4 +/* f125474: e7aa0238 */ swc1 $f10,0x238($sp) +/* f125478: 3c013f80 */ lui $at,0x3f80 +/* f12547c: e7a6023c */ swc1 $f6,0x23c($sp) +.L0f125480: +/* f125480: c4800000 */ lwc1 $f0,0x0($a0) +/* f125484: 4600a03e */ c.le.s $f20,$f0 +/* f125488: 00000000 */ nop +/* f12548c: 45020004 */ bc1fl .L0f1254a0 +/* f125490: 46000307 */ neg.s $f12,$f0 +/* f125494: 10000002 */ b .L0f1254a0 +/* f125498: 46000306 */ mov.s $f12,$f0 +/* f12549c: 46000307 */ neg.s $f12,$f0 +.L0f1254a0: +/* f1254a0: c4620000 */ lwc1 $f2,0x0($v1) +/* f1254a4: 460e6202 */ mul.s $f8,$f12,$f14 +/* f1254a8: 4602a03e */ c.le.s $f20,$f2 +/* f1254ac: 00000000 */ nop +/* f1254b0: 45000003 */ bc1f .L0f1254c0 +/* f1254b4: e4c80000 */ swc1 $f8,0x0($a2) +/* f1254b8: 10000002 */ b .L0f1254c4 +/* f1254bc: 46001306 */ mov.s $f12,$f2 +.L0f1254c0: +/* f1254c0: 46001307 */ neg.s $f12,$f2 +.L0f1254c4: +/* f1254c4: 460e6282 */ mul.s $f10,$f12,$f14 +/* f1254c8: 24a50004 */ addiu $a1,$a1,0x4 +/* f1254cc: 24630004 */ addiu $v1,$v1,0x4 +/* f1254d0: 24840004 */ addiu $a0,$a0,0x4 +/* f1254d4: 24c60004 */ addiu $a2,$a2,0x4 +/* f1254d8: 14a2ffe9 */ bne $a1,$v0,.L0f125480 +/* f1254dc: e4aafffc */ swc1 $f10,-0x4($a1) +/* f1254e0: c7a20214 */ lwc1 $f2,0x214($sp) +/* f1254e4: c7a40234 */ lwc1 $f4,0x234($sp) +/* f1254e8: c7ac0218 */ lwc1 $f12,0x218($sp) +/* f1254ec: 46021180 */ add.s $f6,$f2,$f2 +/* f1254f0: c7aa01f4 */ lwc1 $f10,0x1f4($sp) +/* f1254f4: c7ae021c */ lwc1 $f14,0x21c($sp) +/* f1254f8: 44811000 */ mtc1 $at,$f2 +/* f1254fc: 46062200 */ add.s $f8,$f4,$f6 +/* f125500: c7a40238 */ lwc1 $f4,0x238($sp) +/* f125504: 3c013a80 */ lui $at,0x3a80 +/* f125508: 460c6180 */ add.s $f6,$f12,$f12 +/* f12550c: 46085000 */ add.s $f0,$f10,$f8 +/* f125510: c7a801f8 */ lwc1 $f8,0x1f8($sp) +/* f125514: 46062280 */ add.s $f10,$f4,$f6 +/* f125518: c7a4023c */ lwc1 $f4,0x23c($sp) +/* f12551c: 460e7180 */ add.s $f6,$f14,$f14 +/* f125520: 460a4400 */ add.s $f16,$f8,$f10 +/* f125524: c7aa01fc */ lwc1 $f10,0x1fc($sp) +/* f125528: 46062200 */ add.s $f8,$f4,$f6 +/* f12552c: 44812000 */ mtc1 $at,$f4 +/* f125530: e7b001d8 */ swc1 $f16,0x1d8($sp) +/* f125534: 4610003c */ c.lt.s $f0,$f16 +/* f125538: 46085480 */ add.s $f18,$f10,$f8 +/* f12553c: 45020004 */ bc1fl .L0f125550 +/* f125540: 4612003c */ c.lt.s $f0,$f18 +/* f125544: 46008006 */ mov.s $f0,$f16 +/* f125548: e7b001d8 */ swc1 $f16,0x1d8($sp) +/* f12554c: 4612003c */ c.lt.s $f0,$f18 +.L0f125550: +/* f125550: e7b201dc */ swc1 $f18,0x1dc($sp) +/* f125554: 45000003 */ bc1f .L0f125564 +/* f125558: 00000000 */ nop +/* f12555c: 46009006 */ mov.s $f0,$f18 +/* f125560: e7b201dc */ swc1 $f18,0x1dc($sp) +.L0f125564: +/* f125564: 46040002 */ mul.s $f0,$f0,$f4 +/* f125568: 4600103c */ c.lt.s $f2,$f0 +/* f12556c: 00000000 */ nop +/* f125570: 45020005 */ bc1fl .L0f125588 +/* f125574: e7a001d4 */ swc1 $f0,0x1d4($sp) +/* f125578: 46001503 */ div.s $f20,$f2,$f0 +/* f12557c: 10000003 */ b .L0f12558c +/* f125580: e7a001d4 */ swc1 $f0,0x1d4($sp) +/* f125584: e7a001d4 */ swc1 $f0,0x1d4($sp) +.L0f125588: +/* f125588: 46001506 */ mov.s $f20,$f2 +.L0f12558c: +/* f12558c: c7a60254 */ lwc1 $f6,0x254($sp) +/* f125590: e7b401c4 */ swc1 $f20,0x1c4($sp) +/* f125594: 4606a302 */ mul.s $f12,$f20,$f6 +/* f125598: 0fc54be8 */ jal func0f152fa0 +/* f12559c: 00000000 */ nop +/* f1255a0: c7b401c4 */ lwc1 $f20,0x1c4($sp) +/* f1255a4: c7aa0258 */ lwc1 $f10,0x258($sp) +/* f1255a8: afa200e0 */ sw $v0,0xe0($sp) +/* f1255ac: 460aa302 */ mul.s $f12,$f20,$f10 +/* f1255b0: 0fc54be8 */ jal func0f152fa0 +/* f1255b4: 00000000 */ nop +/* f1255b8: c7b401c4 */ lwc1 $f20,0x1c4($sp) +/* f1255bc: c7a8025c */ lwc1 $f8,0x25c($sp) +/* f1255c0: afa200dc */ sw $v0,0xdc($sp) +/* f1255c4: 4608a302 */ mul.s $f12,$f20,$f8 +/* f1255c8: 0fc54be8 */ jal func0f152fa0 +/* f1255cc: 00000000 */ nop +/* f1255d0: c7b401c4 */ lwc1 $f20,0x1c4($sp) +/* f1255d4: c7a40260 */ lwc1 $f4,0x260($sp) +/* f1255d8: afa200d8 */ sw $v0,0xd8($sp) +/* f1255dc: 4604a302 */ mul.s $f12,$f20,$f4 +/* f1255e0: 0fc54be8 */ jal func0f152fa0 +/* f1255e4: 00000000 */ nop +/* f1255e8: c7b401c4 */ lwc1 $f20,0x1c4($sp) +/* f1255ec: c7a602d4 */ lwc1 $f6,0x2d4($sp) +/* f1255f0: afa200d4 */ sw $v0,0xd4($sp) +/* f1255f4: 4606a302 */ mul.s $f12,$f20,$f6 +/* f1255f8: 0fc54be8 */ jal func0f152fa0 +/* f1255fc: 00000000 */ nop +/* f125600: c7b401c4 */ lwc1 $f20,0x1c4($sp) +/* f125604: c7aa02d8 */ lwc1 $f10,0x2d8($sp) +/* f125608: afa200d0 */ sw $v0,0xd0($sp) +/* f12560c: 460aa302 */ mul.s $f12,$f20,$f10 +/* f125610: 0fc54be8 */ jal func0f152fa0 +/* f125614: 00000000 */ nop +/* f125618: c7b401c4 */ lwc1 $f20,0x1c4($sp) +/* f12561c: c7a802dc */ lwc1 $f8,0x2dc($sp) +/* f125620: afa200cc */ sw $v0,0xcc($sp) +/* f125624: 4608a302 */ mul.s $f12,$f20,$f8 +/* f125628: 0fc54be8 */ jal func0f152fa0 +/* f12562c: 00000000 */ nop +/* f125630: c7b401c4 */ lwc1 $f20,0x1c4($sp) +/* f125634: c7a402e0 */ lwc1 $f4,0x2e0($sp) +/* f125638: afa200c8 */ sw $v0,0xc8($sp) +/* f12563c: 4604a302 */ mul.s $f12,$f20,$f4 +/* f125640: 0fc54be8 */ jal func0f152fa0 +/* f125644: 00000000 */ nop +/* f125648: c7b401c4 */ lwc1 $f20,0x1c4($sp) +/* f12564c: c7a602f4 */ lwc1 $f6,0x2f4($sp) +/* f125650: afa200c4 */ sw $v0,0xc4($sp) +/* f125654: 4606a302 */ mul.s $f12,$f20,$f6 +/* f125658: 0fc54be8 */ jal func0f152fa0 +/* f12565c: 00000000 */ nop +/* f125660: c7b401c4 */ lwc1 $f20,0x1c4($sp) +/* f125664: c7aa02f8 */ lwc1 $f10,0x2f8($sp) +/* f125668: afa200b0 */ sw $v0,0xb0($sp) +/* f12566c: 460aa302 */ mul.s $f12,$f20,$f10 +/* f125670: 0fc54be8 */ jal func0f152fa0 +/* f125674: 00000000 */ nop +/* f125678: c7b401c4 */ lwc1 $f20,0x1c4($sp) +/* f12567c: c7a802fc */ lwc1 $f8,0x2fc($sp) +/* f125680: afa200ac */ sw $v0,0xac($sp) +/* f125684: 4608a302 */ mul.s $f12,$f20,$f8 +/* f125688: 0fc54be8 */ jal func0f152fa0 +/* f12568c: 00000000 */ nop +/* f125690: c7b401c4 */ lwc1 $f20,0x1c4($sp) +/* f125694: c7a40300 */ lwc1 $f4,0x300($sp) +/* f125698: afa200a8 */ sw $v0,0xa8($sp) +/* f12569c: 4604a302 */ mul.s $f12,$f20,$f4 +/* f1256a0: 0fc54be8 */ jal func0f152fa0 +/* f1256a4: 00000000 */ nop +/* f1256a8: c7b401c4 */ lwc1 $f20,0x1c4($sp) +/* f1256ac: c7a60274 */ lwc1 $f6,0x274($sp) +/* f1256b0: afa200a4 */ sw $v0,0xa4($sp) +/* f1256b4: 4606a302 */ mul.s $f12,$f20,$f6 +/* f1256b8: 0fc54be8 */ jal func0f152fa0 +/* f1256bc: 00000000 */ nop +/* f1256c0: c7b401c4 */ lwc1 $f20,0x1c4($sp) +/* f1256c4: c7aa0278 */ lwc1 $f10,0x278($sp) +/* f1256c8: afa200c0 */ sw $v0,0xc0($sp) +/* f1256cc: 460aa302 */ mul.s $f12,$f20,$f10 +/* f1256d0: 0fc54be8 */ jal func0f152fa0 +/* f1256d4: 00000000 */ nop +/* f1256d8: c7b401c4 */ lwc1 $f20,0x1c4($sp) +/* f1256dc: c7a8027c */ lwc1 $f8,0x27c($sp) +/* f1256e0: afa200bc */ sw $v0,0xbc($sp) +/* f1256e4: 4608a302 */ mul.s $f12,$f20,$f8 +/* f1256e8: 0fc54be8 */ jal func0f152fa0 +/* f1256ec: 00000000 */ nop +/* f1256f0: c7b401c4 */ lwc1 $f20,0x1c4($sp) +/* f1256f4: c7a40280 */ lwc1 $f4,0x280($sp) +/* f1256f8: afa200b8 */ sw $v0,0xb8($sp) +/* f1256fc: 4604a302 */ mul.s $f12,$f20,$f4 +/* f125700: 0fc54be8 */ jal func0f152fa0 +/* f125704: 00000000 */ nop +/* f125708: 8fa800b8 */ lw $t0,0xb8($sp) +/* f12570c: 8fab00d4 */ lw $t3,0xd4($sp) +/* f125710: 8fbf00e0 */ lw $ra,0xe0($sp) +/* f125714: 3c0db400 */ lui $t5,0xb400 +/* f125718: ae0d0000 */ sw $t5,0x0($s0) +/* f12571c: 8fb800dc */ lw $t8,0xdc($sp) +/* f125720: 3c09ffff */ lui $t1,0xffff +/* f125724: 03e97024 */ and $t6,$ra,$t1 +/* f125728: 0309c824 */ and $t9,$t8,$t1 +/* f12572c: 00197c02 */ srl $t7,$t9,0x10 +/* f125730: 01cfc025 */ or $t8,$t6,$t7 +/* f125734: ae180004 */ sw $t8,0x4($s0) +/* f125738: 26040008 */ addiu $a0,$s0,0x8 +/* f12573c: 3c19b200 */ lui $t9,0xb200 +/* f125740: ac990000 */ sw $t9,0x0($a0) +/* f125744: 8fae00d8 */ lw $t6,0xd8($sp) +/* f125748: 0169c024 */ and $t8,$t3,$t1 +/* f12574c: 0018cc02 */ srl $t9,$t8,0x10 +/* f125750: 01c97824 */ and $t7,$t6,$t1 +/* f125754: 01f97025 */ or $t6,$t7,$t9 +/* f125758: ac8e0004 */ sw $t6,0x4($a0) +/* f12575c: 24850008 */ addiu $a1,$a0,0x8 +/* f125760: acad0000 */ sw $t5,0x0($a1) +/* f125764: 8fb900cc */ lw $t9,0xcc($sp) +/* f125768: 8fb800d0 */ lw $t8,0xd0($sp) +/* f12576c: 24a60008 */ addiu $a2,$a1,0x8 +/* f125770: 03297024 */ and $t6,$t9,$t1 +/* f125774: 03097824 */ and $t7,$t8,$t1 +/* f125778: 000ec402 */ srl $t8,$t6,0x10 +/* f12577c: 01f8c825 */ or $t9,$t7,$t8 +/* f125780: acb90004 */ sw $t9,0x4($a1) +/* f125784: 8fac00c4 */ lw $t4,0xc4($sp) +/* f125788: 3c0eb200 */ lui $t6,0xb200 +/* f12578c: acce0000 */ sw $t6,0x0($a2) +/* f125790: 8faf00c8 */ lw $t7,0xc8($sp) +/* f125794: 0189c824 */ and $t9,$t4,$t1 +/* f125798: 00197402 */ srl $t6,$t9,0x10 +/* f12579c: 01e9c024 */ and $t8,$t7,$t1 +/* f1257a0: 030e7825 */ or $t7,$t8,$t6 +/* f1257a4: accf0004 */ sw $t7,0x4($a2) +/* f1257a8: 24c30008 */ addiu $v1,$a2,0x8 +/* f1257ac: ac6d0000 */ sw $t5,0x0($v1) +/* f1257b0: 8fae00dc */ lw $t6,0xdc($sp) +/* f1257b4: 001fc400 */ sll $t8,$ra,0x10 +/* f1257b8: 24700008 */ addiu $s0,$v1,0x8 +/* f1257bc: 31cfffff */ andi $t7,$t6,0xffff +/* f1257c0: 030fc825 */ or $t9,$t8,$t7 +/* f1257c4: ac790004 */ sw $t9,0x4($v1) +/* f1257c8: 3c0eb200 */ lui $t6,0xb200 +/* f1257cc: ae0e0000 */ sw $t6,0x0($s0) +/* f1257d0: 8faf00d8 */ lw $t7,0xd8($sp) +/* f1257d4: 316effff */ andi $t6,$t3,0xffff +/* f1257d8: 26070008 */ addiu $a3,$s0,0x8 +/* f1257dc: 000fcc00 */ sll $t9,$t7,0x10 +/* f1257e0: 032ec025 */ or $t8,$t9,$t6 +/* f1257e4: ae180004 */ sw $t8,0x4($s0) +/* f1257e8: aced0000 */ sw $t5,0x0($a3) +/* f1257ec: 8fb800cc */ lw $t8,0xcc($sp) +/* f1257f0: 8fb900d0 */ lw $t9,0xd0($sp) +/* f1257f4: 8fab00c0 */ lw $t3,0xc0($sp) +/* f1257f8: 330fffff */ andi $t7,$t8,0xffff +/* f1257fc: 00197400 */ sll $t6,$t9,0x10 +/* f125800: 8fa600bc */ lw $a2,0xbc($sp) +/* f125804: 01cfc825 */ or $t9,$t6,$t7 +/* f125808: acf90004 */ sw $t9,0x4($a3) +/* f12580c: 3c0db200 */ lui $t5,0xb200 +/* f125810: 24e30008 */ addiu $v1,$a3,0x8 +/* f125814: ac6d0000 */ sw $t5,0x0($v1) +/* f125818: 8fae00c8 */ lw $t6,0xc8($sp) +/* f12581c: 3199ffff */ andi $t9,$t4,0xffff +/* f125820: 24640008 */ addiu $a0,$v1,0x8 +/* f125824: 000e7c00 */ sll $t7,$t6,0x10 +/* f125828: 01f9c025 */ or $t8,$t7,$t9 +/* f12582c: ac780004 */ sw $t8,0x4($v1) +/* f125830: 3c0eb400 */ lui $t6,0xb400 +/* f125834: 00c9c824 */ and $t9,$a2,$t1 +/* f125838: 0019c402 */ srl $t8,$t9,0x10 +/* f12583c: ac8e0000 */ sw $t6,0x0($a0) +/* f125840: 01697824 */ and $t7,$t3,$t1 +/* f125844: 01f87025 */ or $t6,$t7,$t8 +/* f125848: 00497824 */ and $t7,$v0,$t1 +/* f12584c: ac8e0004 */ sw $t6,0x4($a0) +/* f125850: 000fc402 */ srl $t8,$t7,0x10 +/* f125854: 0109c824 */ and $t9,$t0,$t1 +/* f125858: 24850008 */ addiu $a1,$a0,0x8 +/* f12585c: 03387025 */ or $t6,$t9,$t8 +/* f125860: acae0004 */ sw $t6,0x4($a1) +/* f125864: acad0000 */ sw $t5,0x0($a1) +/* f125868: 8fbf00ac */ lw $ra,0xac($sp) +/* f12586c: 8fad00b0 */ lw $t5,0xb0($sp) +/* f125870: 00405025 */ or $t2,$v0,$zero +/* f125874: 24b00008 */ addiu $s0,$a1,0x8 +/* f125878: 8fac00a8 */ lw $t4,0xa8($sp) +/* f12587c: 8fa700a4 */ lw $a3,0xa4($sp) +/* f125880: 02001025 */ or $v0,$s0,$zero +/* f125884: 3c0fb400 */ lui $t7,0xb400 +/* f125888: 03e9c024 */ and $t8,$ra,$t1 +/* f12588c: 00187402 */ srl $t6,$t8,0x10 +/* f125890: ac4f0000 */ sw $t7,0x0($v0) +/* f125894: 01a9c824 */ and $t9,$t5,$t1 +/* f125898: 032e7825 */ or $t7,$t9,$t6 +/* f12589c: ac4f0004 */ sw $t7,0x4($v0) +/* f1258a0: 26030008 */ addiu $v1,$s0,0x8 +/* f1258a4: 3c18b200 */ lui $t8,0xb200 +/* f1258a8: 00e97024 */ and $t6,$a3,$t1 +/* f1258ac: 000e7c02 */ srl $t7,$t6,0x10 +/* f1258b0: ac780000 */ sw $t8,0x0($v1) +/* f1258b4: 0189c824 */ and $t9,$t4,$t1 +/* f1258b8: 032fc025 */ or $t8,$t9,$t7 +/* f1258bc: ac780004 */ sw $t8,0x4($v1) +/* f1258c0: 24700008 */ addiu $s0,$v1,0x8 +/* f1258c4: 3c0eb400 */ lui $t6,0xb400 +/* f1258c8: ae0e0000 */ sw $t6,0x0($s0) +/* f1258cc: 000b7c00 */ sll $t7,$t3,0x10 +/* f1258d0: 30d8ffff */ andi $t8,$a2,0xffff +/* f1258d4: 01f87025 */ or $t6,$t7,$t8 +/* f1258d8: ae0e0004 */ sw $t6,0x4($s0) +/* f1258dc: 26050008 */ addiu $a1,$s0,0x8 +/* f1258e0: 3c19b200 */ lui $t9,0xb200 +/* f1258e4: acb90000 */ sw $t9,0x0($a1) +/* f1258e8: 314effff */ andi $t6,$t2,0xffff +/* f1258ec: 0008c400 */ sll $t8,$t0,0x10 +/* f1258f0: 030ec825 */ or $t9,$t8,$t6 +/* f1258f4: acb90004 */ sw $t9,0x4($a1) +/* f1258f8: 24a30008 */ addiu $v1,$a1,0x8 +/* f1258fc: 3c0fb400 */ lui $t7,0xb400 +/* f125900: ac6f0000 */ sw $t7,0x0($v1) +/* f125904: 33f9ffff */ andi $t9,$ra,0xffff +/* f125908: 000d7400 */ sll $t6,$t5,0x10 +/* f12590c: 01d97825 */ or $t7,$t6,$t9 +/* f125910: ac6f0004 */ sw $t7,0x4($v1) +/* f125914: 24640008 */ addiu $a0,$v1,0x8 +/* f125918: 3c18b300 */ lui $t8,0xb300 +/* f12591c: ac980000 */ sw $t8,0x0($a0) +/* f125920: 000ccc00 */ sll $t9,$t4,0x10 +/* f125924: 30efffff */ andi $t7,$a3,0xffff +/* f125928: 032fc025 */ or $t8,$t9,$t7 +/* f12592c: ac980004 */ sw $t8,0x4($a0) +/* f125930: 24820008 */ addiu $v0,$a0,0x8 +.L0f125934: +/* f125934: 8fbf0024 */ lw $ra,0x24($sp) +/* f125938: d7b40018 */ ldc1 $f20,0x18($sp) +/* f12593c: 8fb00020 */ lw $s0,0x20($sp) +/* f125940: 03e00008 */ jr $ra +/* f125944: 27bd04d0 */ addiu $sp,$sp,0x4d0 +); + +GLOBAL_ASM( +glabel sky0f125948 +/* f125948: 27bdffd8 */ addiu $sp,$sp,-40 +/* f12594c: afbf0014 */ sw $ra,0x14($sp) +/* f125950: afa40028 */ sw $a0,0x28($sp) +/* f125954: afa5002c */ sw $a1,0x2c($sp) +/* f125958: 0c002f40 */ jal viGetViewLeft +/* f12595c: afa60030 */ sw $a2,0x30($sp) +/* f125960: 0c002f44 */ jal viGetViewTop +/* f125964: afa20024 */ sw $v0,0x24($sp) +/* f125968: 0c002f22 */ jal viGetViewWidth +/* f12596c: afa20020 */ sw $v0,0x20($sp) +/* f125970: 0c002f26 */ jal viGetViewHeight +/* f125974: afa2001c */ sw $v0,0x1c($sp) +/* f125978: 8fa30024 */ lw $v1,0x24($sp) +/* f12597c: 8fa4002c */ lw $a0,0x2c($sp) +/* f125980: 8fae001c */ lw $t6,0x1c($sp) +/* f125984: 0083082a */ slt $at,$a0,$v1 +/* f125988: 14200020 */ bnez $at,.L0f125a0c +/* f12598c: 006e7821 */ addu $t7,$v1,$t6 +/* f125990: 008f082a */ slt $at,$a0,$t7 +/* f125994: 1020001d */ beqz $at,.L0f125a0c +/* f125998: 8fa30020 */ lw $v1,0x20($sp) +/* f12599c: 8fa50030 */ lw $a1,0x30($sp) +/* f1259a0: 0062c021 */ addu $t8,$v1,$v0 +/* f1259a4: 00a3082a */ slt $at,$a1,$v1 +/* f1259a8: 14200018 */ bnez $at,.L0f125a0c +/* f1259ac: 00b8082a */ slt $at,$a1,$t8 +/* f1259b0: 50200017 */ beqzl $at,.L0f125a10 +/* f1259b4: 8fbf0014 */ lw $ra,0x14($sp) +/* f1259b8: 0fc2d5f6 */ jal camGetScreenWidth +/* f1259bc: 00000000 */ nop +/* f1259c0: 4600010d */ trunc.w.s $f4,$f0 +/* f1259c4: 8fa90030 */ lw $t1,0x30($sp) +/* f1259c8: 8fab002c */ lw $t3,0x2c($sp) +/* f1259cc: 3c0e8008 */ lui $t6,%hi(var800844f0) +/* f1259d0: 44082000 */ mfc1 $t0,$f4 +/* f1259d4: 8dce44f0 */ lw $t6,%lo(var800844f0)($t6) +/* f1259d8: 8fa20028 */ lw $v0,0x28($sp) +/* f1259dc: 01090019 */ multu $t0,$t1 +/* f1259e0: 24080001 */ addiu $t0,$zero,0x1 +/* f1259e4: 00005012 */ mflo $t2 +/* f1259e8: 014b6021 */ addu $t4,$t2,$t3 +/* f1259ec: 000c6840 */ sll $t5,$t4,0x1 +/* f1259f0: 01ae7821 */ addu $t7,$t5,$t6 +/* f1259f4: ac4f0008 */ sw $t7,0x8($v0) +/* f1259f8: 8fb8002c */ lw $t8,0x2c($sp) +/* f1259fc: a458000e */ sh $t8,0xe($v0) +/* f125a00: 8fb90030 */ lw $t9,0x30($sp) +/* f125a04: a4480000 */ sh $t0,0x0($v0) +/* f125a08: a459000c */ sh $t9,0xc($v0) +.L0f125a0c: +/* f125a0c: 8fbf0014 */ lw $ra,0x14($sp) +.L0f125a10: +/* f125a10: 27bd0028 */ addiu $sp,$sp,0x28 +/* f125a14: 03e00008 */ jr $ra +/* f125a18: 00000000 */ nop +); + +f32 sky0f125a1c(struct bootbufferthingdeep *arg0) +{ + f32 sum = 0; + s32 i; + + for (i = 0; i < 8; i++) { + if (arg0[i].unk00 == 1 && arg0[i].unk02 == 0xfffc) { + sum += 0.125f; + } + } + + return sum; +} + +#if VERSION == VERSION_PAL_FINAL +GLOBAL_ASM( +glabel sky0f125a6c +.late_rodata +glabel var7f1b5108 +.word 0x3d888889 +.text +/* f12656c: 27bdfe90 */ addiu $sp,$sp,-368 +/* f126570: afbf008c */ sw $ra,0x8c($sp) +/* f126574: afbe0088 */ sw $s8,0x88($sp) +/* f126578: afb70084 */ sw $s7,0x84($sp) +/* f12657c: afb60080 */ sw $s6,0x80($sp) +/* f126580: afb5007c */ sw $s5,0x7c($sp) +/* f126584: afb40078 */ sw $s4,0x78($sp) +/* f126588: afb30074 */ sw $s3,0x74($sp) +/* f12658c: afb20070 */ sw $s2,0x70($sp) +/* f126590: afb1006c */ sw $s1,0x6c($sp) +/* f126594: afb00068 */ sw $s0,0x68($sp) +/* f126598: f7be0060 */ sdc1 $f30,0x60($sp) +/* f12659c: f7bc0058 */ sdc1 $f28,0x58($sp) +/* f1265a0: f7ba0050 */ sdc1 $f26,0x50($sp) +/* f1265a4: f7b80048 */ sdc1 $f24,0x48($sp) +/* f1265a8: f7b60040 */ sdc1 $f22,0x40($sp) +/* f1265ac: f7b40038 */ sdc1 $f20,0x38($sp) +/* f1265b0: afa40170 */ sw $a0,0x170($sp) +/* f1265b4: 0fc2d706 */ jal camGetMatrix1740 +/* f1265b8: afa50174 */ sw $a1,0x174($sp) +/* f1265bc: 0fc2d70e */ jal camGetUnk1754 +/* f1265c0: afa2016c */ sw $v0,0x16c($sp) +/* f1265c4: 0fc599d3 */ jal envGetCurrent +/* f1265c8: afa20168 */ sw $v0,0x168($sp) +/* f1265cc: afa20144 */ sw $v0,0x144($sp) +/* f1265d0: 904e000b */ lbu $t6,0xb($v0) +/* f1265d4: 3c0f8008 */ lui $t7,0x8008 +/* f1265d8: 19c00008 */ blez $t6,.PF0f1265fc +/* f1265dc: 00000000 */ nop +/* f1265e0: 8def4a40 */ lw $t7,0x4a40($t7) +/* f1265e4: 3c18800a */ lui $t8,0x800a +/* f1265e8: 11e00004 */ beqz $t7,.PF0f1265fc +/* f1265ec: 00000000 */ nop +/* f1265f0: 8f18a824 */ lw $t8,-0x57dc($t8) +/* f1265f4: 13000003 */ beqz $t8,.PF0f126604 +/* f1265f8: 00000000 */ nop +.PF0f1265fc: +/* f1265fc: 10000208 */ b .PF0f126e20 +/* f126600: 8fa20170 */ lw $v0,0x170($sp) +.PF0f126604: +/* f126604: 0c002e91 */ jal viGetViewLeft +/* f126608: 00000000 */ nop +/* f12660c: 0c002e95 */ jal viGetViewTop +/* f126610: a7a20166 */ sh $v0,0x166($sp) +/* f126614: 0c002e73 */ jal viGetViewWidth +/* f126618: a7a20164 */ sh $v0,0x164($sp) +/* f12661c: 0c002e77 */ jal viGetViewHeight +/* f126620: a7a20162 */ sh $v0,0x162($sp) +/* f126624: 87b90162 */ lh $t9,0x162($sp) +/* f126628: 44824000 */ mtc1 $v0,$f8 +/* f12662c: 8fa30144 */ lw $v1,0x144($sp) +/* f126630: 44992000 */ mtc1 $t9,$f4 +/* f126634: 468042a0 */ cvt.s.w $f10,$f8 +/* f126638: a7a20160 */ sh $v0,0x160($sp) +/* f12663c: 3c14800a */ lui $s4,0x800a +/* f126640: 3c013f80 */ lui $at,0x3f80 +/* f126644: 468021a0 */ cvt.s.w $f6,$f4 +/* f126648: e7aa0150 */ swc1 $f10,0x150($sp) +/* f12664c: e7a600c8 */ swc1 $f6,0xc8($sp) +/* f126650: e7a60154 */ swc1 $f6,0x154($sp) +/* f126654: 8c76000c */ lw $s6,0xc($v1) +/* f126658: afa0013c */ sw $zero,0x13c($sp) +/* f12665c: 9068000b */ lbu $t0,0xb($v1) +/* f126660: 590001ef */ blezl $t0,.PF0f126e20 +/* f126664: 8fa20170 */ lw $v0,0x170($sp) +/* f126668: 4480e000 */ mtc1 $zero,$f28 +/* f12666c: 4481d000 */ mtc1 $at,$f26 +/* f126670: 26943988 */ addiu $s4,$s4,0x3988 +/* f126674: c6d00004 */ lwc1 $f16,0x4($s6) +.PF0f126678: +/* f126678: 8fac0174 */ lw $t4,0x174($sp) +/* f12667c: e6900000 */ swc1 $f16,0x0($s4) +/* f126680: c6d20008 */ lwc1 $f18,0x8($s6) +/* f126684: e6920004 */ swc1 $f18,0x4($s4) +/* f126688: c6c4000c */ lwc1 $f4,0xc($s6) +/* f12668c: e6840008 */ swc1 $f4,0x8($s4) +/* f126690: 92c90001 */ lbu $t1,0x1($s6) +/* f126694: 8fa4016c */ lw $a0,0x16c($sp) +/* f126698: a3a90148 */ sb $t1,0x148($sp) +/* f12669c: 92ca0002 */ lbu $t2,0x2($s6) +/* f1266a0: a3aa0149 */ sb $t2,0x149($sp) +/* f1266a4: 92cb0003 */ lbu $t3,0x3($s6) +/* f1266a8: 158001d2 */ bnez $t4,.PF0f126df4 +/* f1266ac: a3ab014a */ sb $t3,0x14a($sp) +/* f1266b0: 0c00563d */ jal mtx4TransformVecInPlace +/* f1266b4: 02802825 */ move $a1,$s4 +/* f1266b8: 8fa40168 */ lw $a0,0x168($sp) +/* f1266bc: 0c00563d */ jal mtx4TransformVecInPlace +/* f1266c0: 02802825 */ move $a1,$s4 +/* f1266c4: c6800008 */ lwc1 $f0,0x8($s4) +/* f1266c8: 4600d03c */ c.lt.s $f26,$f0 +/* f1266cc: 00000000 */ nop +/* f1266d0: 450201c9 */ bc1fl .PF0f126df8 +/* f1266d4: 8fa9013c */ lw $t1,0x13c($sp) +/* f1266d8: c6880000 */ lwc1 $f8,0x0($s4) +/* f1266dc: 3c013f00 */ lui $at,0x3f00 +/* f1266e0: 44811000 */ mtc1 $at,$f2 +/* f1266e4: 46004283 */ div.s $f10,$f8,$f0 +/* f1266e8: 87af0166 */ lh $t7,0x166($sp) +/* f1266ec: c7a40154 */ lwc1 $f4,0x154($sp) +/* f1266f0: 8fb0013c */ lw $s0,0x13c($sp) +/* f1266f4: 448f3000 */ mtc1 $t7,$f6 +/* f1266f8: 3c0e800a */ lui $t6,0x800a +/* f1266fc: 87b90164 */ lh $t9,0x164($sp) +/* f126700: 46803520 */ cvt.s.w $f20,$f6 +/* f126704: 25ce39b0 */ addiu $t6,$t6,0x39b0 +/* f126708: 00106880 */ sll $t5,$s0,0x2 +/* f12670c: 01ae8821 */ addu $s1,$t5,$t6 +/* f126710: 3c18800a */ lui $t8,0x800a +/* f126714: 3c088008 */ lui $t0,0x8008 +/* f126718: 271839c0 */ addiu $t8,$t8,0x39c0 +/* f12671c: 2508e064 */ addiu $t0,$t0,-8092 +/* f126720: 01b89021 */ addu $s2,$t5,$t8 +/* f126724: 01a84821 */ addu $t1,$t5,$t0 +/* f126728: 01a08025 */ move $s0,$t5 +/* f12672c: afa90094 */ sw $t1,0x94($sp) +/* f126730: afa00120 */ sw $zero,0x120($sp) +/* f126734: 461a5400 */ add.s $f16,$f10,$f26 +/* f126738: 44995000 */ mtc1 $t9,$f10 +/* f12673c: 46028482 */ mul.s $f18,$f16,$f2 +/* f126740: c6900004 */ lwc1 $f16,0x4($s4) +/* f126744: 468055a0 */ cvt.s.w $f22,$f10 +/* f126748: 46049182 */ mul.s $f6,$f18,$f4 +/* f12674c: c7aa0150 */ lwc1 $f10,0x150($sp) +/* f126750: 46008487 */ neg.s $f18,$f16 +/* f126754: 46009103 */ div.s $f4,$f18,$f0 +/* f126758: 46143200 */ add.s $f8,$f6,$f20 +/* f12675c: e6280000 */ swc1 $f8,0x0($s1) +/* f126760: 461a2180 */ add.s $f6,$f4,$f26 +/* f126764: 46023202 */ mul.s $f8,$f6,$f2 +/* f126768: 00000000 */ nop +/* f12676c: 460a4402 */ mul.s $f16,$f8,$f10 +/* f126770: 46168480 */ add.s $f18,$f16,$f22 +/* f126774: 0c002eee */ jal viGetFovY +/* f126778: e6520000 */ swc1 $f18,0x0($s2) +/* f12677c: 3c014270 */ lui $at,0x4270 +/* f126780: 44812000 */ mtc1 $at,$f4 +/* f126784: 86ca0010 */ lh $t2,0x10($s6) +/* f126788: c62c0000 */ lwc1 $f12,0x0($s1) +/* f12678c: 46002183 */ div.s $f6,$f4,$f0 +/* f126790: 448a4000 */ mtc1 $t2,$f8 +/* f126794: c7b200c8 */ lwc1 $f18,0xc8($sp) +/* f126798: 468042a0 */ cvt.s.w $f10,$f8 +/* f12679c: 460a3602 */ mul.s $f24,$f6,$f10 +/* f1267a0: 4618a401 */ sub.s $f16,$f20,$f24 +/* f1267a4: 460c803e */ c.le.s $f16,$f12 +/* f1267a8: 00000000 */ nop +/* f1267ac: 45020182 */ bc1fl .PF0f126db8 +/* f1267b0: 8fad0120 */ lw $t5,0x120($sp) +/* f1267b4: 4612a080 */ add.s $f2,$f20,$f18 +/* f1267b8: 46181100 */ add.s $f4,$f2,$f24 +/* f1267bc: 4604603c */ c.lt.s $f12,$f4 +/* f1267c0: 00000000 */ nop +/* f1267c4: 4502017c */ bc1fl .PF0f126db8 +/* f1267c8: 8fad0120 */ lw $t5,0x120($sp) +/* f1267cc: 4618b201 */ sub.s $f8,$f22,$f24 +/* f1267d0: c64e0000 */ lwc1 $f14,0x0($s2) +/* f1267d4: c7a60150 */ lwc1 $f6,0x150($sp) +/* f1267d8: 460e403e */ c.le.s $f8,$f14 +/* f1267dc: 00000000 */ nop +/* f1267e0: 45020175 */ bc1fl .PF0f126db8 +/* f1267e4: 8fad0120 */ lw $t5,0x120($sp) +/* f1267e8: 4606b000 */ add.s $f0,$f22,$f6 +/* f1267ec: 3c0b8008 */ lui $t3,0x8008 +/* f1267f0: 256be058 */ addiu $t3,$t3,-8104 +/* f1267f4: 020b6021 */ addu $t4,$s0,$t3 +/* f1267f8: 46180280 */ add.s $f10,$f0,$f24 +/* f1267fc: 240f0001 */ li $t7,0x1 +/* f126800: 460a703c */ c.lt.s $f14,$f10 +/* f126804: 00000000 */ nop +/* f126808: 4502016b */ bc1fl .PF0f126db8 +/* f12680c: 8fad0120 */ lw $t5,0x120($sp) +/* f126810: 8fad013c */ lw $t5,0x13c($sp) +/* f126814: 460ca03e */ c.le.s $f20,$f12 +/* f126818: 448f8000 */ mtc1 $t7,$f16 +/* f12681c: 000d7080 */ sll $t6,$t5,0x2 +/* f126820: 01cd7021 */ addu $t6,$t6,$t5 +/* f126824: 000e7140 */ sll $t6,$t6,0x5 +/* f126828: afae0098 */ sw $t6,0x98($sp) +/* f12682c: afac009c */ sw $t4,0x9c($sp) +/* f126830: 450000aa */ bc1f .PF0f126adc +/* f126834: 468087a0 */ cvt.s.w $f30,$f16 +/* f126838: 4602603c */ c.lt.s $f12,$f2 +/* f12683c: 00000000 */ nop +/* f126840: 450200a7 */ bc1fl .PF0f126ae0 +/* f126844: 8fa20094 */ lw $v0,0x94($sp) +/* f126848: 460eb03e */ c.le.s $f22,$f14 +/* f12684c: 00000000 */ nop +/* f126850: 450200a3 */ bc1fl .PF0f126ae0 +/* f126854: 8fa20094 */ lw $v0,0x94($sp) +/* f126858: 4600703c */ c.lt.s $f14,$f0 +/* f12685c: 87a30166 */ lh $v1,0x166($sp) +/* f126860: 87a20164 */ lh $v0,0x164($sp) +/* f126864: 87b80162 */ lh $t8,0x162($sp) +/* f126868: 4500009c */ bc1f .PF0f126adc +/* f12686c: 2470000f */ addiu $s0,$v1,0xf +/* f126870: 87b90160 */ lh $t9,0x160($sp) +/* f126874: 00789821 */ addu $s3,$v1,$t8 +/* f126878: 267efff0 */ addiu $s8,$s3,-16 +/* f12687c: 0059b821 */ addu $s7,$v0,$t9 +/* f126880: 26e8fff0 */ addiu $t0,$s7,-16 +/* f126884: afa800a0 */ sw $t0,0xa0($sp) +/* f126888: 0c00090f */ jal bbufGetIndex0Buffer +/* f12688c: 2455000f */ addiu $s5,$v0,0xf +/* f126890: c62c0000 */ lwc1 $f12,0x0($s1) +/* f126894: 3c01447a */ lui $at,0x447a +/* f126898: 44811000 */ mtc1 $at,$f2 +/* f12689c: 4600648d */ trunc.w.s $f18,$f12 +/* f1268a0: 24090001 */ li $t1,0x1 +/* f1268a4: 00403825 */ move $a3,$v0 +/* f1268a8: afa90120 */ sw $t1,0x120($sp) +/* f1268ac: 44039000 */ mfc1 $v1,$f18 +/* f1268b0: 8fad00a0 */ lw $t5,0xa0($sp) +/* f1268b4: 0070082a */ slt $at,$v1,$s0 +/* f1268b8: 10200008 */ beqz $at,.PF0f1268dc +/* f1268bc: 3c01447a */ lui $at,0x447a +/* f1268c0: 44812000 */ mtc1 $at,$f4 +/* f1268c4: 46006006 */ mov.s $f0,$f12 +/* f1268c8: 4604603c */ c.lt.s $f12,$f4 +/* f1268cc: 00000000 */ nop +/* f1268d0: 45020003 */ bc1fl .PF0f1268e0 +/* f1268d4: c64e0000 */ lwc1 $f14,0x0($s2) +/* f1268d8: 46000086 */ mov.s $f2,$f0 +.PF0f1268dc: +/* f1268dc: c64e0000 */ lwc1 $f14,0x0($s2) +.PF0f1268e0: +/* f1268e0: 4600720d */ trunc.w.s $f8,$f14 +/* f1268e4: 44024000 */ mfc1 $v0,$f8 +/* f1268e8: 00000000 */ nop +/* f1268ec: 0055082a */ slt $at,$v0,$s5 +/* f1268f0: 50200007 */ beqzl $at,.PF0f126910 +/* f1268f4: 03c3082a */ slt $at,$s8,$v1 +/* f1268f8: 4602703c */ c.lt.s $f14,$f2 +/* f1268fc: 46007006 */ mov.s $f0,$f14 +/* f126900: 45020003 */ bc1fl .PF0f126910 +/* f126904: 03c3082a */ slt $at,$s8,$v1 +/* f126908: 46000086 */ mov.s $f2,$f0 +/* f12690c: 03c3082a */ slt $at,$s8,$v1 +.PF0f126910: +/* f126910: 1020000a */ beqz $at,.PF0f12693c +/* f126914: 266cffff */ addiu $t4,$s3,-1 +/* f126918: 448c3000 */ mtc1 $t4,$f6 +/* f12691c: 00000000 */ nop +/* f126920: 468032a0 */ cvt.s.w $f10,$f6 +/* f126924: 460c5001 */ sub.s $f0,$f10,$f12 +/* f126928: 4602003c */ c.lt.s $f0,$f2 +/* f12692c: 00000000 */ nop +/* f126930: 45020003 */ bc1fl .PF0f126940 +/* f126934: 01a2082a */ slt $at,$t5,$v0 +/* f126938: 46000086 */ mov.s $f2,$f0 +.PF0f12693c: +/* f12693c: 01a2082a */ slt $at,$t5,$v0 +.PF0f126940: +/* f126940: 1020000a */ beqz $at,.PF0f12696c +/* f126944: 26eeffff */ addiu $t6,$s7,-1 +/* f126948: 448e8000 */ mtc1 $t6,$f16 +/* f12694c: 00000000 */ nop +/* f126950: 468084a0 */ cvt.s.w $f18,$f16 +/* f126954: 460e9001 */ sub.s $f0,$f18,$f14 +/* f126958: 4602003c */ c.lt.s $f0,$f2 +/* f12695c: 00000000 */ nop +/* f126960: 45020003 */ bc1fl .PF0f126970 +/* f126964: 461a1081 */ sub.s $f2,$f2,$f26 +/* f126968: 46000086 */ mov.s $f2,$f0 +.PF0f12696c: +/* f12696c: 461a1081 */ sub.s $f2,$f2,$f26 +.PF0f126970: +/* f126970: 3c017f1b */ lui $at,0x7f1b +/* f126974: 461c103c */ c.lt.s $f2,$f28 +/* f126978: 00000000 */ nop +/* f12697c: 45000002 */ bc1f .PF0f126988 +/* f126980: 00000000 */ nop +/* f126984: 4600e086 */ mov.s $f2,$f28 +.PF0f126988: +/* f126988: c42463f8 */ lwc1 $f4,0x63f8($at) +/* f12698c: 8faf009c */ lw $t7,0x9c($sp) +/* f126990: 46041002 */ mul.s $f0,$f2,$f4 +/* f126994: 4600d03c */ c.lt.s $f26,$f0 +/* f126998: e5e00000 */ swc1 $f0,0x0($t7) +/* f12699c: 8fb8009c */ lw $t8,0x9c($sp) +/* f1269a0: 45020003 */ bc1fl .PF0f1269b0 +/* f1269a4: 8fb90098 */ lw $t9,0x98($sp) +/* f1269a8: e71a0000 */ swc1 $f26,0x0($t8) +/* f1269ac: 8fb90098 */ lw $t9,0x98($sp) +.PF0f1269b0: +/* f1269b0: 2465fff9 */ addiu $a1,$v1,-7 +/* f1269b4: 24460001 */ addiu $a2,$v0,0x1 +/* f1269b8: 03278021 */ addu $s0,$t9,$a3 +/* f1269bc: 0fc49912 */ jal sky0f125948 +/* f1269c0: 02002025 */ move $a0,$s0 +/* f1269c4: c6280000 */ lwc1 $f8,0x0($s1) +/* f1269c8: c64a0000 */ lwc1 $f10,0x0($s2) +/* f1269cc: 26040014 */ addiu $a0,$s0,0x14 +/* f1269d0: 4600418d */ trunc.w.s $f6,$f8 +/* f1269d4: 4600540d */ trunc.w.s $f16,$f10 +/* f1269d8: 44053000 */ mfc1 $a1,$f6 +/* f1269dc: 44068000 */ mfc1 $a2,$f16 +/* f1269e0: 24a5fffb */ addiu $a1,$a1,-5 +/* f1269e4: 0fc49912 */ jal sky0f125948 +/* f1269e8: 24c6fffd */ addiu $a2,$a2,-3 +/* f1269ec: c6320000 */ lwc1 $f18,0x0($s1) +/* f1269f0: c6480000 */ lwc1 $f8,0x0($s2) +/* f1269f4: 26040028 */ addiu $a0,$s0,0x28 +/* f1269f8: 4600910d */ trunc.w.s $f4,$f18 +/* f1269fc: 4600418d */ trunc.w.s $f6,$f8 +/* f126a00: 44052000 */ mfc1 $a1,$f4 +/* f126a04: 44063000 */ mfc1 $a2,$f6 +/* f126a08: 24a5fffd */ addiu $a1,$a1,-3 +/* f126a0c: 0fc49912 */ jal sky0f125948 +/* f126a10: 24c60005 */ addiu $a2,$a2,0x5 +/* f126a14: c62a0000 */ lwc1 $f10,0x0($s1) +/* f126a18: c6520000 */ lwc1 $f18,0x0($s2) +/* f126a1c: 2604003c */ addiu $a0,$s0,0x3c +/* f126a20: 4600540d */ trunc.w.s $f16,$f10 +/* f126a24: 4600910d */ trunc.w.s $f4,$f18 +/* f126a28: 44058000 */ mfc1 $a1,$f16 +/* f126a2c: 44062000 */ mfc1 $a2,$f4 +/* f126a30: 24a5ffff */ addiu $a1,$a1,-1 +/* f126a34: 0fc49912 */ jal sky0f125948 +/* f126a38: 24c6fff9 */ addiu $a2,$a2,-7 +/* f126a3c: c6280000 */ lwc1 $f8,0x0($s1) +/* f126a40: c64a0000 */ lwc1 $f10,0x0($s2) +/* f126a44: 26040050 */ addiu $a0,$s0,0x50 +/* f126a48: 4600418d */ trunc.w.s $f6,$f8 +/* f126a4c: 4600540d */ trunc.w.s $f16,$f10 +/* f126a50: 44053000 */ mfc1 $a1,$f6 +/* f126a54: 44068000 */ mfc1 $a2,$f16 +/* f126a58: 24a50001 */ addiu $a1,$a1,0x1 +/* f126a5c: 0fc49912 */ jal sky0f125948 +/* f126a60: 24c60007 */ addiu $a2,$a2,0x7 +/* f126a64: c6320000 */ lwc1 $f18,0x0($s1) +/* f126a68: c6480000 */ lwc1 $f8,0x0($s2) +/* f126a6c: 26040064 */ addiu $a0,$s0,0x64 +/* f126a70: 4600910d */ trunc.w.s $f4,$f18 +/* f126a74: 4600418d */ trunc.w.s $f6,$f8 +/* f126a78: 44052000 */ mfc1 $a1,$f4 +/* f126a7c: 44063000 */ mfc1 $a2,$f6 +/* f126a80: 24a50003 */ addiu $a1,$a1,0x3 +/* f126a84: 0fc49912 */ jal sky0f125948 +/* f126a88: 24c6fffb */ addiu $a2,$a2,-5 +/* f126a8c: c62a0000 */ lwc1 $f10,0x0($s1) +/* f126a90: c6520000 */ lwc1 $f18,0x0($s2) +/* f126a94: 26040078 */ addiu $a0,$s0,0x78 +/* f126a98: 4600540d */ trunc.w.s $f16,$f10 +/* f126a9c: 4600910d */ trunc.w.s $f4,$f18 +/* f126aa0: 44058000 */ mfc1 $a1,$f16 +/* f126aa4: 44062000 */ mfc1 $a2,$f4 +/* f126aa8: 24a50005 */ addiu $a1,$a1,0x5 +/* f126aac: 0fc49912 */ jal sky0f125948 +/* f126ab0: 24c60003 */ addiu $a2,$a2,0x3 +/* f126ab4: c6280000 */ lwc1 $f8,0x0($s1) +/* f126ab8: c64a0000 */ lwc1 $f10,0x0($s2) +/* f126abc: 2604008c */ addiu $a0,$s0,0x8c +/* f126ac0: 4600418d */ trunc.w.s $f6,$f8 +/* f126ac4: 4600540d */ trunc.w.s $f16,$f10 +/* f126ac8: 44053000 */ mfc1 $a1,$f6 +/* f126acc: 44068000 */ mfc1 $a2,$f16 +/* f126ad0: 24a50007 */ addiu $a1,$a1,0x7 +/* f126ad4: 0fc49912 */ jal sky0f125948 +/* f126ad8: 24c6ffff */ addiu $a2,$a2,-1 +.PF0f126adc: +/* f126adc: 8fa20094 */ lw $v0,0x94($sp) +.PF0f126ae0: +/* f126ae0: 3c0d800a */ lui $t5,0x800a +/* f126ae4: 8dada544 */ lw $t5,-0x5abc($t5) +/* f126ae8: 8c4c0000 */ lw $t4,0x0($v0) +/* f126aec: 3c05800b */ lui $a1,0x800b +/* f126af0: 240f0002 */ li $t7,0x2 +/* f126af4: 018d7021 */ addu $t6,$t4,$t5 +/* f126af8: ac4e0000 */ sw $t6,0x0($v0) +/* f126afc: 8ca5bb40 */ lw $a1,-0x44c0($a1) +/* f126b00: 24180001 */ li $t8,0x1 +/* f126b04: afb80014 */ sw $t8,0x14($sp) +/* f126b08: afaf0010 */ sw $t7,0x10($sp) +/* f126b0c: 27a40170 */ addiu $a0,$sp,0x170 +/* f126b10: 24060004 */ li $a2,0x4 +/* f126b14: 00003825 */ move $a3,$zero +/* f126b18: afa00018 */ sw $zero,0x18($sp) +/* f126b1c: 0fc2cfb8 */ jal tex0f0b39c0 +/* f126b20: 24a5003c */ addiu $a1,$a1,0x3c +/* f126b24: 8fb90170 */ lw $t9,0x170($sp) +/* f126b28: 3c09ba00 */ lui $t1,0xba00 +/* f126b2c: 35291402 */ ori $t1,$t1,0x1402 +/* f126b30: 27280008 */ addiu $t0,$t9,0x8 +/* f126b34: afa80170 */ sw $t0,0x170($sp) +/* f126b38: af200004 */ sw $zero,0x4($t9) +/* f126b3c: af290000 */ sw $t1,0x0($t9) +/* f126b40: 8faa0170 */ lw $t2,0x170($sp) +/* f126b44: 3c0cba00 */ lui $t4,0xba00 +/* f126b48: 358c0602 */ ori $t4,$t4,0x602 +/* f126b4c: 254b0008 */ addiu $t3,$t2,0x8 +/* f126b50: afab0170 */ sw $t3,0x170($sp) +/* f126b54: 240d00c0 */ li $t5,0xc0 +/* f126b58: ad4d0004 */ sw $t5,0x4($t2) +/* f126b5c: ad4c0000 */ sw $t4,0x0($t2) +/* f126b60: 8fae0170 */ lw $t6,0x170($sp) +/* f126b64: 3c190050 */ lui $t9,0x50 +/* f126b68: 3c18b900 */ lui $t8,0xb900 +/* f126b6c: 25cf0008 */ addiu $t7,$t6,0x8 +/* f126b70: afaf0170 */ sw $t7,0x170($sp) +/* f126b74: 3718031d */ ori $t8,$t8,0x31d +/* f126b78: 373941c8 */ ori $t9,$t9,0x41c8 +/* f126b7c: add90004 */ sw $t9,0x4($t6) +/* f126b80: add80000 */ sw $t8,0x0($t6) +/* f126b84: 8fa80170 */ lw $t0,0x170($sp) +/* f126b88: 3c0aba00 */ lui $t2,0xba00 +/* f126b8c: 354a1301 */ ori $t2,$t2,0x1301 +/* f126b90: 25090008 */ addiu $t1,$t0,0x8 +/* f126b94: afa90170 */ sw $t1,0x170($sp) +/* f126b98: ad000004 */ sw $zero,0x4($t0) +/* f126b9c: ad0a0000 */ sw $t2,0x0($t0) +/* f126ba0: 8fab0170 */ lw $t3,0x170($sp) +/* f126ba4: 3c0db900 */ lui $t5,0xb900 +/* f126ba8: 35ad0002 */ ori $t5,$t5,0x2 +/* f126bac: 256c0008 */ addiu $t4,$t3,0x8 +/* f126bb0: afac0170 */ sw $t4,0x170($sp) +/* f126bb4: ad600004 */ sw $zero,0x4($t3) +/* f126bb8: ad6d0000 */ sw $t5,0x0($t3) +/* f126bbc: 8fae0170 */ lw $t6,0x170($sp) +/* f126bc0: 3c18ba00 */ lui $t8,0xba00 +/* f126bc4: 37181001 */ ori $t8,$t8,0x1001 +/* f126bc8: 25cf0008 */ addiu $t7,$t6,0x8 +/* f126bcc: afaf0170 */ sw $t7,0x170($sp) +/* f126bd0: adc00004 */ sw $zero,0x4($t6) +/* f126bd4: add80000 */ sw $t8,0x0($t6) +/* f126bd8: 8fb90170 */ lw $t9,0x170($sp) +/* f126bdc: 3c09ba00 */ lui $t1,0xba00 +/* f126be0: 35290903 */ ori $t1,$t1,0x903 +/* f126be4: 27280008 */ addiu $t0,$t9,0x8 +/* f126be8: afa80170 */ sw $t0,0x170($sp) +/* f126bec: 240a0c00 */ li $t2,0xc00 +/* f126bf0: af2a0004 */ sw $t2,0x4($t9) +/* f126bf4: af290000 */ sw $t1,0x0($t9) +/* f126bf8: 8fab0170 */ lw $t3,0x170($sp) +/* f126bfc: 3c0dba00 */ lui $t5,0xba00 +/* f126c00: 35ad0e02 */ ori $t5,$t5,0xe02 +/* f126c04: 256c0008 */ addiu $t4,$t3,0x8 +/* f126c08: afac0170 */ sw $t4,0x170($sp) +/* f126c0c: ad600004 */ sw $zero,0x4($t3) +/* f126c10: ad6d0000 */ sw $t5,0x0($t3) +/* f126c14: 8fae0170 */ lw $t6,0x170($sp) +/* f126c18: 3c18ba00 */ lui $t8,0xba00 +/* f126c1c: 37180c02 */ ori $t8,$t8,0xc02 +/* f126c20: 25cf0008 */ addiu $t7,$t6,0x8 +/* f126c24: afaf0170 */ sw $t7,0x170($sp) +/* f126c28: 24192000 */ li $t9,0x2000 +/* f126c2c: add90004 */ sw $t9,0x4($t6) +/* f126c30: add80000 */ sw $t8,0x0($t6) +/* f126c34: 8fa80170 */ lw $t0,0x170($sp) +/* f126c38: 3c0bffa7 */ lui $t3,0xffa7 +/* f126c3c: 3c0afc50 */ lui $t2,0xfc50 +/* f126c40: 25090008 */ addiu $t1,$t0,0x8 +/* f126c44: afa90170 */ sw $t1,0x170($sp) +/* f126c48: 354ad2a1 */ ori $t2,$t2,0xd2a1 +/* f126c4c: 356bffff */ ori $t3,$t3,0xffff +/* f126c50: ad0b0004 */ sw $t3,0x4($t0) +/* f126c54: ad0a0000 */ sw $t2,0x0($t0) +/* f126c58: 8fa30170 */ lw $v1,0x170($sp) +/* f126c5c: 3c0efb00 */ lui $t6,0xfb00 +/* f126c60: 3c01437f */ lui $at,0x437f +/* f126c64: 246d0008 */ addiu $t5,$v1,0x8 +/* f126c68: afad0170 */ sw $t5,0x170($sp) +/* f126c6c: ac6e0000 */ sw $t6,0x0($v1) +/* f126c70: 8faf009c */ lw $t7,0x9c($sp) +/* f126c74: 44812000 */ mtc1 $at,$f4 +/* f126c78: 3c013f00 */ lui $at,0x3f00 +/* f126c7c: c5f20000 */ lwc1 $f18,0x0($t7) +/* f126c80: 93aa0148 */ lbu $t2,0x148($sp) +/* f126c84: 93ae0149 */ lbu $t6,0x149($sp) +/* f126c88: 46049202 */ mul.s $f8,$f18,$f4 +/* f126c8c: 44819000 */ mtc1 $at,$f18 +/* f126c90: 93a9014a */ lbu $t1,0x14a($sp) +/* f126c94: 000a5e00 */ sll $t3,$t2,0x18 +/* f126c98: 4612c002 */ mul.s $f0,$f24,$f18 +/* f126c9c: 000e7c00 */ sll $t7,$t6,0x10 +/* f126ca0: 00095200 */ sll $t2,$t1,0x8 +/* f126ca4: 3c02800b */ lui $v0,0x800b +/* f126ca8: 240e0001 */ li $t6,0x1 +/* f126cac: 240d0001 */ li $t5,0x1 +/* f126cb0: 4600418d */ trunc.w.s $f6,$f8 +/* f126cb4: 461e0102 */ mul.s $f4,$f0,$f30 +/* f126cb8: 27a40170 */ addiu $a0,$sp,0x170 +/* f126cbc: 27a50134 */ addiu $a1,$sp,0x134 +/* f126cc0: 44193000 */ mfc1 $t9,$f6 +/* f126cc4: 27a6012c */ addiu $a2,$sp,0x12c +/* f126cc8: 332800ff */ andi $t0,$t9,0xff +/* f126ccc: 010b6025 */ or $t4,$t0,$t3 +/* f126cd0: 018fc025 */ or $t8,$t4,$t7 +/* f126cd4: 030a4025 */ or $t0,$t8,$t2 +/* f126cd8: ac680004 */ sw $t0,0x4($v1) +/* f126cdc: c62a0000 */ lwc1 $f10,0x0($s1) +/* f126ce0: c6500000 */ lwc1 $f16,0x0($s2) +/* f126ce4: 8c42bb40 */ lw $v0,-0x44c0($v0) +/* f126ce8: e7a4012c */ swc1 $f4,0x12c($sp) +/* f126cec: e7a00130 */ swc1 $f0,0x130($sp) +/* f126cf0: e7aa0134 */ swc1 $f10,0x134($sp) +/* f126cf4: e7b00138 */ swc1 $f16,0x138($sp) +/* f126cf8: 904b0041 */ lbu $t3,0x41($v0) +/* f126cfc: 90470040 */ lbu $a3,0x40($v0) +/* f126d00: 240f0001 */ li $t7,0x1 +/* f126d04: 240c0001 */ li $t4,0x1 +/* f126d08: afac0020 */ sw $t4,0x20($sp) +/* f126d0c: afaf0028 */ sw $t7,0x28($sp) +/* f126d10: afa00024 */ sw $zero,0x24($sp) +/* f126d14: afae001c */ sw $t6,0x1c($sp) +/* f126d18: afad0018 */ sw $t5,0x18($sp) +/* f126d1c: afa00014 */ sw $zero,0x14($sp) +/* f126d20: 0fc2c99c */ jal func0f0b2150 +/* f126d24: afab0010 */ sw $t3,0x10($sp) +/* f126d28: 8fb90170 */ lw $t9,0x170($sp) +/* f126d2c: 3c18e700 */ lui $t8,0xe700 +/* f126d30: 3c0bba00 */ lui $t3,0xba00 +/* f126d34: 27290008 */ addiu $t1,$t9,0x8 +/* f126d38: afa90170 */ sw $t1,0x170($sp) +/* f126d3c: af200004 */ sw $zero,0x4($t9) +/* f126d40: af380000 */ sw $t8,0x0($t9) +/* f126d44: 8faa0170 */ lw $t2,0x170($sp) +/* f126d48: 356b0602 */ ori $t3,$t3,0x602 +/* f126d4c: 240d0040 */ li $t5,0x40 +/* f126d50: 25480008 */ addiu $t0,$t2,0x8 +/* f126d54: afa80170 */ sw $t0,0x170($sp) +/* f126d58: ad4d0004 */ sw $t5,0x4($t2) +/* f126d5c: ad4b0000 */ sw $t3,0x0($t2) +/* f126d60: 8fae0170 */ lw $t6,0x170($sp) +/* f126d64: 3c0fba00 */ lui $t7,0xba00 +/* f126d68: 35ef1301 */ ori $t7,$t7,0x1301 +/* f126d6c: 25cc0008 */ addiu $t4,$t6,0x8 +/* f126d70: afac0170 */ sw $t4,0x170($sp) +/* f126d74: 3c190008 */ lui $t9,0x8 +/* f126d78: add90004 */ sw $t9,0x4($t6) +/* f126d7c: adcf0000 */ sw $t7,0x0($t6) +/* f126d80: 8fa90170 */ lw $t1,0x170($sp) +/* f126d84: 3c0aba00 */ lui $t2,0xba00 +/* f126d88: 354a1001 */ ori $t2,$t2,0x1001 +/* f126d8c: 25380008 */ addiu $t8,$t1,0x8 +/* f126d90: afb80170 */ sw $t8,0x170($sp) +/* f126d94: 3c080001 */ lui $t0,0x1 +/* f126d98: ad280004 */ sw $t0,0x4($t1) +/* f126d9c: 0c00091c */ jal bbufGetIndex1Buffer +/* f126da0: ad2a0000 */ sw $t2,0x0($t1) +/* f126da4: 8fab0098 */ lw $t3,0x98($sp) +/* f126da8: 0fc49947 */ jal sky0f125a1c +/* f126dac: 004b2021 */ addu $a0,$v0,$t3 +/* f126db0: e7a00124 */ swc1 $f0,0x124($sp) +/* f126db4: 8fad0120 */ lw $t5,0x120($sp) +.PF0f126db8: +/* f126db8: c7a80124 */ lwc1 $f8,0x124($sp) +/* f126dbc: 51a0000c */ beqzl $t5,.PF0f126df0 +/* f126dc0: 8fb90094 */ lw $t9,0x94($sp) +/* f126dc4: 4608e03c */ c.lt.s $f28,$f8 +/* f126dc8: 8fa20094 */ lw $v0,0x94($sp) +/* f126dcc: 3c0c800a */ lui $t4,0x800a +/* f126dd0: 45020007 */ bc1fl .PF0f126df0 +/* f126dd4: 8fb90094 */ lw $t9,0x94($sp) +/* f126dd8: 8c4e0000 */ lw $t6,0x0($v0) +/* f126ddc: 8d8ca544 */ lw $t4,-0x5abc($t4) +/* f126de0: 01cc7821 */ addu $t7,$t6,$t4 +/* f126de4: 10000003 */ b .PF0f126df4 +/* f126de8: ac4f0000 */ sw $t7,0x0($v0) +/* f126dec: 8fb90094 */ lw $t9,0x94($sp) +.PF0f126df0: +/* f126df0: af200000 */ sw $zero,0x0($t9) +.PF0f126df4: +/* f126df4: 8fa9013c */ lw $t1,0x13c($sp) +.PF0f126df8: +/* f126df8: 8faa0144 */ lw $t2,0x144($sp) +/* f126dfc: 2694000c */ addiu $s4,$s4,0xc +/* f126e00: 25380001 */ addiu $t8,$t1,0x1 +/* f126e04: afb8013c */ sw $t8,0x13c($sp) +/* f126e08: 9148000b */ lbu $t0,0xb($t2) +/* f126e0c: 26d60014 */ addiu $s6,$s6,0x14 +/* f126e10: 0308082a */ slt $at,$t8,$t0 +/* f126e14: 5420fe18 */ bnezl $at,.PF0f126678 +/* f126e18: c6d00004 */ lwc1 $f16,0x4($s6) +/* f126e1c: 8fa20170 */ lw $v0,0x170($sp) +.PF0f126e20: +/* f126e20: 8fbf008c */ lw $ra,0x8c($sp) +/* f126e24: d7b40038 */ ldc1 $f20,0x38($sp) +/* f126e28: d7b60040 */ ldc1 $f22,0x40($sp) +/* f126e2c: d7b80048 */ ldc1 $f24,0x48($sp) +/* f126e30: d7ba0050 */ ldc1 $f26,0x50($sp) +/* f126e34: d7bc0058 */ ldc1 $f28,0x58($sp) +/* f126e38: d7be0060 */ ldc1 $f30,0x60($sp) +/* f126e3c: 8fb00068 */ lw $s0,0x68($sp) +/* f126e40: 8fb1006c */ lw $s1,0x6c($sp) +/* f126e44: 8fb20070 */ lw $s2,0x70($sp) +/* f126e48: 8fb30074 */ lw $s3,0x74($sp) +/* f126e4c: 8fb40078 */ lw $s4,0x78($sp) +/* f126e50: 8fb5007c */ lw $s5,0x7c($sp) +/* f126e54: 8fb60080 */ lw $s6,0x80($sp) +/* f126e58: 8fb70084 */ lw $s7,0x84($sp) +/* f126e5c: 8fbe0088 */ lw $s8,0x88($sp) +/* f126e60: 03e00008 */ jr $ra +/* f126e64: 27bd0170 */ addiu $sp,$sp,0x170 +); +#elif VERSION == VERSION_PAL_BETA +GLOBAL_ASM( +glabel sky0f125a6c +.late_rodata +glabel var7f1b5108 +.word 0x3d888889 +.text +/* f126f7c: 27bdfe90 */ addiu $sp,$sp,-368 +/* f126f80: afbf008c */ sw $ra,0x8c($sp) +/* f126f84: afbe0088 */ sw $s8,0x88($sp) +/* f126f88: afb70084 */ sw $s7,0x84($sp) +/* f126f8c: afb60080 */ sw $s6,0x80($sp) +/* f126f90: afb5007c */ sw $s5,0x7c($sp) +/* f126f94: afb40078 */ sw $s4,0x78($sp) +/* f126f98: afb30074 */ sw $s3,0x74($sp) +/* f126f9c: afb20070 */ sw $s2,0x70($sp) +/* f126fa0: afb1006c */ sw $s1,0x6c($sp) +/* f126fa4: afb00068 */ sw $s0,0x68($sp) +/* f126fa8: f7be0060 */ sdc1 $f30,0x60($sp) +/* f126fac: f7bc0058 */ sdc1 $f28,0x58($sp) +/* f126fb0: f7ba0050 */ sdc1 $f26,0x50($sp) +/* f126fb4: f7b80048 */ sdc1 $f24,0x48($sp) +/* f126fb8: f7b60040 */ sdc1 $f22,0x40($sp) +/* f126fbc: f7b40038 */ sdc1 $f20,0x38($sp) +/* f126fc0: afa40170 */ sw $a0,0x170($sp) +/* f126fc4: 0fc2d6c2 */ jal camGetMatrix1740 +/* f126fc8: afa50174 */ sw $a1,0x174($sp) +/* f126fcc: 0fc2d6ca */ jal camGetUnk1754 +/* f126fd0: afa2016c */ sw $v0,0x16c($sp) +/* f126fd4: 0fc59b8f */ jal envGetCurrent +/* f126fd8: afa20168 */ sw $v0,0x168($sp) +/* f126fdc: afa20144 */ sw $v0,0x144($sp) +/* f126fe0: 904e000b */ lbu $t6,0xb($v0) +/* f126fe4: 3c0f8008 */ lui $t7,0x8008 +/* f126fe8: 19c00008 */ blez $t6,.PB0f12700c +/* f126fec: 00000000 */ nop +/* f126ff0: 8def69d0 */ lw $t7,0x69d0($t7) +/* f126ff4: 3c18800a */ lui $t8,0x800a +/* f126ff8: 11e00004 */ beqz $t7,.PB0f12700c +/* f126ffc: 00000000 */ nop +/* f127000: 8f18e7e4 */ lw $t8,-0x181c($t8) +/* f127004: 13000003 */ beqz $t8,.PB0f127014 +/* f127008: 00000000 */ nop +.PB0f12700c: +/* f12700c: 10000208 */ b .PB0f127830 +/* f127010: 8fa20170 */ lw $v0,0x170($sp) +.PB0f127014: +/* f127014: 0c002e8b */ jal viGetViewLeft +/* f127018: 00000000 */ nop +/* f12701c: 0c002e8f */ jal viGetViewTop +/* f127020: a7a20166 */ sh $v0,0x166($sp) +/* f127024: 0c002e6d */ jal viGetViewWidth +/* f127028: a7a20164 */ sh $v0,0x164($sp) +/* f12702c: 0c002e71 */ jal viGetViewHeight +/* f127030: a7a20162 */ sh $v0,0x162($sp) +/* f127034: 87b90162 */ lh $t9,0x162($sp) +/* f127038: 44824000 */ mtc1 $v0,$f8 +/* f12703c: 8fa30144 */ lw $v1,0x144($sp) +/* f127040: 44992000 */ mtc1 $t9,$f4 +/* f127044: 468042a0 */ cvt.s.w $f10,$f8 +/* f127048: a7a20160 */ sh $v0,0x160($sp) +/* f12704c: 3c14800a */ lui $s4,0x800a +/* f127050: 3c013f80 */ lui $at,0x3f80 +/* f127054: 468021a0 */ cvt.s.w $f6,$f4 +/* f127058: e7aa0150 */ swc1 $f10,0x150($sp) +/* f12705c: e7a600c8 */ swc1 $f6,0xc8($sp) +/* f127060: e7a60154 */ swc1 $f6,0x154($sp) +/* f127064: 8c76000c */ lw $s6,0xc($v1) +/* f127068: afa0013c */ sw $zero,0x13c($sp) +/* f12706c: 9068000b */ lbu $t0,0xb($v1) +/* f127070: 590001ef */ blezl $t0,.PB0f127830 +/* f127074: 8fa20170 */ lw $v0,0x170($sp) +/* f127078: 4480e000 */ mtc1 $zero,$f28 +/* f12707c: 4481d000 */ mtc1 $at,$f26 +/* f127080: 26947a08 */ addiu $s4,$s4,0x7a08 +/* f127084: c6d00004 */ lwc1 $f16,0x4($s6) +.PB0f127088: +/* f127088: 8fac0174 */ lw $t4,0x174($sp) +/* f12708c: e6900000 */ swc1 $f16,0x0($s4) +/* f127090: c6d20008 */ lwc1 $f18,0x8($s6) +/* f127094: e6920004 */ swc1 $f18,0x4($s4) +/* f127098: c6c4000c */ lwc1 $f4,0xc($s6) +/* f12709c: e6840008 */ swc1 $f4,0x8($s4) +/* f1270a0: 92c90001 */ lbu $t1,0x1($s6) +/* f1270a4: 8fa4016c */ lw $a0,0x16c($sp) +/* f1270a8: a3a90148 */ sb $t1,0x148($sp) +/* f1270ac: 92ca0002 */ lbu $t2,0x2($s6) +/* f1270b0: a3aa0149 */ sb $t2,0x149($sp) +/* f1270b4: 92cb0003 */ lbu $t3,0x3($s6) +/* f1270b8: 158001d2 */ bnez $t4,.PB0f127804 +/* f1270bc: a3ab014a */ sb $t3,0x14a($sp) +/* f1270c0: 0c00596d */ jal mtx4TransformVecInPlace +/* f1270c4: 02802825 */ move $a1,$s4 +/* f1270c8: 8fa40168 */ lw $a0,0x168($sp) +/* f1270cc: 0c00596d */ jal mtx4TransformVecInPlace +/* f1270d0: 02802825 */ move $a1,$s4 +/* f1270d4: c6800008 */ lwc1 $f0,0x8($s4) +/* f1270d8: 4600d03c */ c.lt.s $f26,$f0 +/* f1270dc: 00000000 */ nop +/* f1270e0: 450201c9 */ bc1fl .PB0f127808 +/* f1270e4: 8fa9013c */ lw $t1,0x13c($sp) +/* f1270e8: c6880000 */ lwc1 $f8,0x0($s4) +/* f1270ec: 3c013f00 */ lui $at,0x3f00 +/* f1270f0: 44811000 */ mtc1 $at,$f2 +/* f1270f4: 46004283 */ div.s $f10,$f8,$f0 +/* f1270f8: 87af0166 */ lh $t7,0x166($sp) +/* f1270fc: c7a40154 */ lwc1 $f4,0x154($sp) +/* f127100: 8fb0013c */ lw $s0,0x13c($sp) +/* f127104: 448f3000 */ mtc1 $t7,$f6 +/* f127108: 3c0e800a */ lui $t6,0x800a +/* f12710c: 87b90164 */ lh $t9,0x164($sp) +/* f127110: 46803520 */ cvt.s.w $f20,$f6 +/* f127114: 25ce7a30 */ addiu $t6,$t6,0x7a30 +/* f127118: 00106880 */ sll $t5,$s0,0x2 +/* f12711c: 01ae8821 */ addu $s1,$t5,$t6 +/* f127120: 3c18800a */ lui $t8,0x800a +/* f127124: 3c088008 */ lui $t0,0x8008 +/* f127128: 27187a40 */ addiu $t8,$t8,0x7a40 +/* f12712c: 25080064 */ addiu $t0,$t0,0x64 +/* f127130: 01b89021 */ addu $s2,$t5,$t8 +/* f127134: 01a84821 */ addu $t1,$t5,$t0 +/* f127138: 01a08025 */ move $s0,$t5 +/* f12713c: afa90094 */ sw $t1,0x94($sp) +/* f127140: afa00120 */ sw $zero,0x120($sp) +/* f127144: 461a5400 */ add.s $f16,$f10,$f26 +/* f127148: 44995000 */ mtc1 $t9,$f10 +/* f12714c: 46028482 */ mul.s $f18,$f16,$f2 +/* f127150: c6900004 */ lwc1 $f16,0x4($s4) +/* f127154: 468055a0 */ cvt.s.w $f22,$f10 +/* f127158: 46049182 */ mul.s $f6,$f18,$f4 +/* f12715c: c7aa0150 */ lwc1 $f10,0x150($sp) +/* f127160: 46008487 */ neg.s $f18,$f16 +/* f127164: 46009103 */ div.s $f4,$f18,$f0 +/* f127168: 46143200 */ add.s $f8,$f6,$f20 +/* f12716c: e6280000 */ swc1 $f8,0x0($s1) +/* f127170: 461a2180 */ add.s $f6,$f4,$f26 +/* f127174: 46023202 */ mul.s $f8,$f6,$f2 +/* f127178: 00000000 */ nop +/* f12717c: 460a4402 */ mul.s $f16,$f8,$f10 +/* f127180: 46168480 */ add.s $f18,$f16,$f22 +/* f127184: 0c002ee8 */ jal viGetFovY +/* f127188: e6520000 */ swc1 $f18,0x0($s2) +/* f12718c: 3c014270 */ lui $at,0x4270 +/* f127190: 44812000 */ mtc1 $at,$f4 +/* f127194: 86ca0010 */ lh $t2,0x10($s6) +/* f127198: c62c0000 */ lwc1 $f12,0x0($s1) +/* f12719c: 46002183 */ div.s $f6,$f4,$f0 +/* f1271a0: 448a4000 */ mtc1 $t2,$f8 +/* f1271a4: c7b200c8 */ lwc1 $f18,0xc8($sp) +/* f1271a8: 468042a0 */ cvt.s.w $f10,$f8 +/* f1271ac: 460a3602 */ mul.s $f24,$f6,$f10 +/* f1271b0: 4618a401 */ sub.s $f16,$f20,$f24 +/* f1271b4: 460c803e */ c.le.s $f16,$f12 +/* f1271b8: 00000000 */ nop +/* f1271bc: 45020182 */ bc1fl .PB0f1277c8 +/* f1271c0: 8fad0120 */ lw $t5,0x120($sp) +/* f1271c4: 4612a080 */ add.s $f2,$f20,$f18 +/* f1271c8: 46181100 */ add.s $f4,$f2,$f24 +/* f1271cc: 4604603c */ c.lt.s $f12,$f4 +/* f1271d0: 00000000 */ nop +/* f1271d4: 4502017c */ bc1fl .PB0f1277c8 +/* f1271d8: 8fad0120 */ lw $t5,0x120($sp) +/* f1271dc: 4618b201 */ sub.s $f8,$f22,$f24 +/* f1271e0: c64e0000 */ lwc1 $f14,0x0($s2) +/* f1271e4: c7a60150 */ lwc1 $f6,0x150($sp) +/* f1271e8: 460e403e */ c.le.s $f8,$f14 +/* f1271ec: 00000000 */ nop +/* f1271f0: 45020175 */ bc1fl .PB0f1277c8 +/* f1271f4: 8fad0120 */ lw $t5,0x120($sp) +/* f1271f8: 4606b000 */ add.s $f0,$f22,$f6 +/* f1271fc: 3c0b8008 */ lui $t3,0x8008 +/* f127200: 256b0058 */ addiu $t3,$t3,0x58 +/* f127204: 020b6021 */ addu $t4,$s0,$t3 +/* f127208: 46180280 */ add.s $f10,$f0,$f24 +/* f12720c: 240f0001 */ li $t7,0x1 +/* f127210: 460a703c */ c.lt.s $f14,$f10 +/* f127214: 00000000 */ nop +/* f127218: 4502016b */ bc1fl .PB0f1277c8 +/* f12721c: 8fad0120 */ lw $t5,0x120($sp) +/* f127220: 8fad013c */ lw $t5,0x13c($sp) +/* f127224: 460ca03e */ c.le.s $f20,$f12 +/* f127228: 448f8000 */ mtc1 $t7,$f16 +/* f12722c: 000d7080 */ sll $t6,$t5,0x2 +/* f127230: 01cd7021 */ addu $t6,$t6,$t5 +/* f127234: 000e7140 */ sll $t6,$t6,0x5 +/* f127238: afae0098 */ sw $t6,0x98($sp) +/* f12723c: afac009c */ sw $t4,0x9c($sp) +/* f127240: 450000aa */ bc1f .PB0f1274ec +/* f127244: 468087a0 */ cvt.s.w $f30,$f16 +/* f127248: 4602603c */ c.lt.s $f12,$f2 +/* f12724c: 00000000 */ nop +/* f127250: 450200a7 */ bc1fl .PB0f1274f0 +/* f127254: 8fa20094 */ lw $v0,0x94($sp) +/* f127258: 460eb03e */ c.le.s $f22,$f14 +/* f12725c: 00000000 */ nop +/* f127260: 450200a3 */ bc1fl .PB0f1274f0 +/* f127264: 8fa20094 */ lw $v0,0x94($sp) +/* f127268: 4600703c */ c.lt.s $f14,$f0 +/* f12726c: 87a30166 */ lh $v1,0x166($sp) +/* f127270: 87a20164 */ lh $v0,0x164($sp) +/* f127274: 87b80162 */ lh $t8,0x162($sp) +/* f127278: 4500009c */ bc1f .PB0f1274ec +/* f12727c: 2470000f */ addiu $s0,$v1,0xf +/* f127280: 87b90160 */ lh $t9,0x160($sp) +/* f127284: 00789821 */ addu $s3,$v1,$t8 +/* f127288: 267efff0 */ addiu $s8,$s3,-16 +/* f12728c: 0059b821 */ addu $s7,$v0,$t9 +/* f127290: 26e8fff0 */ addiu $t0,$s7,-16 +/* f127294: afa800a0 */ sw $t0,0xa0($sp) +/* f127298: 0c00090f */ jal bbufGetIndex0Buffer +/* f12729c: 2455000f */ addiu $s5,$v0,0xf +/* f1272a0: c62c0000 */ lwc1 $f12,0x0($s1) +/* f1272a4: 3c01447a */ lui $at,0x447a +/* f1272a8: 44811000 */ mtc1 $at,$f2 +/* f1272ac: 4600648d */ trunc.w.s $f18,$f12 +/* f1272b0: 24090001 */ li $t1,0x1 +/* f1272b4: 00403825 */ move $a3,$v0 +/* f1272b8: afa90120 */ sw $t1,0x120($sp) +/* f1272bc: 44039000 */ mfc1 $v1,$f18 +/* f1272c0: 8fad00a0 */ lw $t5,0xa0($sp) +/* f1272c4: 0070082a */ slt $at,$v1,$s0 +/* f1272c8: 10200008 */ beqz $at,.PB0f1272ec +/* f1272cc: 3c01447a */ lui $at,0x447a +/* f1272d0: 44812000 */ mtc1 $at,$f4 +/* f1272d4: 46006006 */ mov.s $f0,$f12 +/* f1272d8: 4604603c */ c.lt.s $f12,$f4 +/* f1272dc: 00000000 */ nop +/* f1272e0: 45020003 */ bc1fl .PB0f1272f0 +/* f1272e4: c64e0000 */ lwc1 $f14,0x0($s2) +/* f1272e8: 46000086 */ mov.s $f2,$f0 +.PB0f1272ec: +/* f1272ec: c64e0000 */ lwc1 $f14,0x0($s2) +.PB0f1272f0: +/* f1272f0: 4600720d */ trunc.w.s $f8,$f14 +/* f1272f4: 44024000 */ mfc1 $v0,$f8 +/* f1272f8: 00000000 */ nop +/* f1272fc: 0055082a */ slt $at,$v0,$s5 +/* f127300: 50200007 */ beqzl $at,.PB0f127320 +/* f127304: 03c3082a */ slt $at,$s8,$v1 +/* f127308: 4602703c */ c.lt.s $f14,$f2 +/* f12730c: 46007006 */ mov.s $f0,$f14 +/* f127310: 45020003 */ bc1fl .PB0f127320 +/* f127314: 03c3082a */ slt $at,$s8,$v1 +/* f127318: 46000086 */ mov.s $f2,$f0 +/* f12731c: 03c3082a */ slt $at,$s8,$v1 +.PB0f127320: +/* f127320: 1020000a */ beqz $at,.PB0f12734c +/* f127324: 266cffff */ addiu $t4,$s3,-1 +/* f127328: 448c3000 */ mtc1 $t4,$f6 +/* f12732c: 00000000 */ nop +/* f127330: 468032a0 */ cvt.s.w $f10,$f6 +/* f127334: 460c5001 */ sub.s $f0,$f10,$f12 +/* f127338: 4602003c */ c.lt.s $f0,$f2 +/* f12733c: 00000000 */ nop +/* f127340: 45020003 */ bc1fl .PB0f127350 +/* f127344: 01a2082a */ slt $at,$t5,$v0 +/* f127348: 46000086 */ mov.s $f2,$f0 +.PB0f12734c: +/* f12734c: 01a2082a */ slt $at,$t5,$v0 +.PB0f127350: +/* f127350: 1020000a */ beqz $at,.PB0f12737c +/* f127354: 26eeffff */ addiu $t6,$s7,-1 +/* f127358: 448e8000 */ mtc1 $t6,$f16 +/* f12735c: 00000000 */ nop +/* f127360: 468084a0 */ cvt.s.w $f18,$f16 +/* f127364: 460e9001 */ sub.s $f0,$f18,$f14 +/* f127368: 4602003c */ c.lt.s $f0,$f2 +/* f12736c: 00000000 */ nop +/* f127370: 45020003 */ bc1fl .PB0f127380 +/* f127374: 461a1081 */ sub.s $f2,$f2,$f26 +/* f127378: 46000086 */ mov.s $f2,$f0 +.PB0f12737c: +/* f12737c: 461a1081 */ sub.s $f2,$f2,$f26 +.PB0f127380: +/* f127380: 3c017f1b */ lui $at,0x7f1b +/* f127384: 461c103c */ c.lt.s $f2,$f28 +/* f127388: 00000000 */ nop +/* f12738c: 45000002 */ bc1f .PB0f127398 +/* f127390: 00000000 */ nop +/* f127394: 4600e086 */ mov.s $f2,$f28 +.PB0f127398: +/* f127398: c42470f8 */ lwc1 $f4,0x70f8($at) +/* f12739c: 8faf009c */ lw $t7,0x9c($sp) +/* f1273a0: 46041002 */ mul.s $f0,$f2,$f4 +/* f1273a4: 4600d03c */ c.lt.s $f26,$f0 +/* f1273a8: e5e00000 */ swc1 $f0,0x0($t7) +/* f1273ac: 8fb8009c */ lw $t8,0x9c($sp) +/* f1273b0: 45020003 */ bc1fl .PB0f1273c0 +/* f1273b4: 8fb90098 */ lw $t9,0x98($sp) +/* f1273b8: e71a0000 */ swc1 $f26,0x0($t8) +/* f1273bc: 8fb90098 */ lw $t9,0x98($sp) +.PB0f1273c0: +/* f1273c0: 2465fff9 */ addiu $a1,$v1,-7 +/* f1273c4: 24460001 */ addiu $a2,$v0,0x1 +/* f1273c8: 03278021 */ addu $s0,$t9,$a3 +/* f1273cc: 0fc49b96 */ jal sky0f125948 +/* f1273d0: 02002025 */ move $a0,$s0 +/* f1273d4: c6280000 */ lwc1 $f8,0x0($s1) +/* f1273d8: c64a0000 */ lwc1 $f10,0x0($s2) +/* f1273dc: 26040014 */ addiu $a0,$s0,0x14 +/* f1273e0: 4600418d */ trunc.w.s $f6,$f8 +/* f1273e4: 4600540d */ trunc.w.s $f16,$f10 +/* f1273e8: 44053000 */ mfc1 $a1,$f6 +/* f1273ec: 44068000 */ mfc1 $a2,$f16 +/* f1273f0: 24a5fffb */ addiu $a1,$a1,-5 +/* f1273f4: 0fc49b96 */ jal sky0f125948 +/* f1273f8: 24c6fffd */ addiu $a2,$a2,-3 +/* f1273fc: c6320000 */ lwc1 $f18,0x0($s1) +/* f127400: c6480000 */ lwc1 $f8,0x0($s2) +/* f127404: 26040028 */ addiu $a0,$s0,0x28 +/* f127408: 4600910d */ trunc.w.s $f4,$f18 +/* f12740c: 4600418d */ trunc.w.s $f6,$f8 +/* f127410: 44052000 */ mfc1 $a1,$f4 +/* f127414: 44063000 */ mfc1 $a2,$f6 +/* f127418: 24a5fffd */ addiu $a1,$a1,-3 +/* f12741c: 0fc49b96 */ jal sky0f125948 +/* f127420: 24c60005 */ addiu $a2,$a2,0x5 +/* f127424: c62a0000 */ lwc1 $f10,0x0($s1) +/* f127428: c6520000 */ lwc1 $f18,0x0($s2) +/* f12742c: 2604003c */ addiu $a0,$s0,0x3c +/* f127430: 4600540d */ trunc.w.s $f16,$f10 +/* f127434: 4600910d */ trunc.w.s $f4,$f18 +/* f127438: 44058000 */ mfc1 $a1,$f16 +/* f12743c: 44062000 */ mfc1 $a2,$f4 +/* f127440: 24a5ffff */ addiu $a1,$a1,-1 +/* f127444: 0fc49b96 */ jal sky0f125948 +/* f127448: 24c6fff9 */ addiu $a2,$a2,-7 +/* f12744c: c6280000 */ lwc1 $f8,0x0($s1) +/* f127450: c64a0000 */ lwc1 $f10,0x0($s2) +/* f127454: 26040050 */ addiu $a0,$s0,0x50 +/* f127458: 4600418d */ trunc.w.s $f6,$f8 +/* f12745c: 4600540d */ trunc.w.s $f16,$f10 +/* f127460: 44053000 */ mfc1 $a1,$f6 +/* f127464: 44068000 */ mfc1 $a2,$f16 +/* f127468: 24a50001 */ addiu $a1,$a1,0x1 +/* f12746c: 0fc49b96 */ jal sky0f125948 +/* f127470: 24c60007 */ addiu $a2,$a2,0x7 +/* f127474: c6320000 */ lwc1 $f18,0x0($s1) +/* f127478: c6480000 */ lwc1 $f8,0x0($s2) +/* f12747c: 26040064 */ addiu $a0,$s0,0x64 +/* f127480: 4600910d */ trunc.w.s $f4,$f18 +/* f127484: 4600418d */ trunc.w.s $f6,$f8 +/* f127488: 44052000 */ mfc1 $a1,$f4 +/* f12748c: 44063000 */ mfc1 $a2,$f6 +/* f127490: 24a50003 */ addiu $a1,$a1,0x3 +/* f127494: 0fc49b96 */ jal sky0f125948 +/* f127498: 24c6fffb */ addiu $a2,$a2,-5 +/* f12749c: c62a0000 */ lwc1 $f10,0x0($s1) +/* f1274a0: c6520000 */ lwc1 $f18,0x0($s2) +/* f1274a4: 26040078 */ addiu $a0,$s0,0x78 +/* f1274a8: 4600540d */ trunc.w.s $f16,$f10 +/* f1274ac: 4600910d */ trunc.w.s $f4,$f18 +/* f1274b0: 44058000 */ mfc1 $a1,$f16 +/* f1274b4: 44062000 */ mfc1 $a2,$f4 +/* f1274b8: 24a50005 */ addiu $a1,$a1,0x5 +/* f1274bc: 0fc49b96 */ jal sky0f125948 +/* f1274c0: 24c60003 */ addiu $a2,$a2,0x3 +/* f1274c4: c6280000 */ lwc1 $f8,0x0($s1) +/* f1274c8: c64a0000 */ lwc1 $f10,0x0($s2) +/* f1274cc: 2604008c */ addiu $a0,$s0,0x8c +/* f1274d0: 4600418d */ trunc.w.s $f6,$f8 +/* f1274d4: 4600540d */ trunc.w.s $f16,$f10 +/* f1274d8: 44053000 */ mfc1 $a1,$f6 +/* f1274dc: 44068000 */ mfc1 $a2,$f16 +/* f1274e0: 24a50007 */ addiu $a1,$a1,0x7 +/* f1274e4: 0fc49b96 */ jal sky0f125948 +/* f1274e8: 24c6ffff */ addiu $a2,$a2,-1 +.PB0f1274ec: +/* f1274ec: 8fa20094 */ lw $v0,0x94($sp) +.PB0f1274f0: +/* f1274f0: 3c0d800a */ lui $t5,0x800a +/* f1274f4: 8dade504 */ lw $t5,-0x1afc($t5) +/* f1274f8: 8c4c0000 */ lw $t4,0x0($v0) +/* f1274fc: 3c05800b */ lui $a1,0x800b +/* f127500: 240f0002 */ li $t7,0x2 +/* f127504: 018d7021 */ addu $t6,$t4,$t5 +/* f127508: ac4e0000 */ sw $t6,0x0($v0) +/* f12750c: 8ca5fbc0 */ lw $a1,-0x440($a1) +/* f127510: 24180001 */ li $t8,0x1 +/* f127514: afb80014 */ sw $t8,0x14($sp) +/* f127518: afaf0010 */ sw $t7,0x10($sp) +/* f12751c: 27a40170 */ addiu $a0,$sp,0x170 +/* f127520: 24060004 */ li $a2,0x4 +/* f127524: 00003825 */ move $a3,$zero +/* f127528: afa00018 */ sw $zero,0x18($sp) +/* f12752c: 0fc2cf74 */ jal tex0f0b39c0 +/* f127530: 24a5003c */ addiu $a1,$a1,0x3c +/* f127534: 8fb90170 */ lw $t9,0x170($sp) +/* f127538: 3c09ba00 */ lui $t1,0xba00 +/* f12753c: 35291402 */ ori $t1,$t1,0x1402 +/* f127540: 27280008 */ addiu $t0,$t9,0x8 +/* f127544: afa80170 */ sw $t0,0x170($sp) +/* f127548: af200004 */ sw $zero,0x4($t9) +/* f12754c: af290000 */ sw $t1,0x0($t9) +/* f127550: 8faa0170 */ lw $t2,0x170($sp) +/* f127554: 3c0cba00 */ lui $t4,0xba00 +/* f127558: 358c0602 */ ori $t4,$t4,0x602 +/* f12755c: 254b0008 */ addiu $t3,$t2,0x8 +/* f127560: afab0170 */ sw $t3,0x170($sp) +/* f127564: 240d00c0 */ li $t5,0xc0 +/* f127568: ad4d0004 */ sw $t5,0x4($t2) +/* f12756c: ad4c0000 */ sw $t4,0x0($t2) +/* f127570: 8fae0170 */ lw $t6,0x170($sp) +/* f127574: 3c190050 */ lui $t9,0x50 +/* f127578: 3c18b900 */ lui $t8,0xb900 +/* f12757c: 25cf0008 */ addiu $t7,$t6,0x8 +/* f127580: afaf0170 */ sw $t7,0x170($sp) +/* f127584: 3718031d */ ori $t8,$t8,0x31d +/* f127588: 373941c8 */ ori $t9,$t9,0x41c8 +/* f12758c: add90004 */ sw $t9,0x4($t6) +/* f127590: add80000 */ sw $t8,0x0($t6) +/* f127594: 8fa80170 */ lw $t0,0x170($sp) +/* f127598: 3c0aba00 */ lui $t2,0xba00 +/* f12759c: 354a1301 */ ori $t2,$t2,0x1301 +/* f1275a0: 25090008 */ addiu $t1,$t0,0x8 +/* f1275a4: afa90170 */ sw $t1,0x170($sp) +/* f1275a8: ad000004 */ sw $zero,0x4($t0) +/* f1275ac: ad0a0000 */ sw $t2,0x0($t0) +/* f1275b0: 8fab0170 */ lw $t3,0x170($sp) +/* f1275b4: 3c0db900 */ lui $t5,0xb900 +/* f1275b8: 35ad0002 */ ori $t5,$t5,0x2 +/* f1275bc: 256c0008 */ addiu $t4,$t3,0x8 +/* f1275c0: afac0170 */ sw $t4,0x170($sp) +/* f1275c4: ad600004 */ sw $zero,0x4($t3) +/* f1275c8: ad6d0000 */ sw $t5,0x0($t3) +/* f1275cc: 8fae0170 */ lw $t6,0x170($sp) +/* f1275d0: 3c18ba00 */ lui $t8,0xba00 +/* f1275d4: 37181001 */ ori $t8,$t8,0x1001 +/* f1275d8: 25cf0008 */ addiu $t7,$t6,0x8 +/* f1275dc: afaf0170 */ sw $t7,0x170($sp) +/* f1275e0: adc00004 */ sw $zero,0x4($t6) +/* f1275e4: add80000 */ sw $t8,0x0($t6) +/* f1275e8: 8fb90170 */ lw $t9,0x170($sp) +/* f1275ec: 3c09ba00 */ lui $t1,0xba00 +/* f1275f0: 35290903 */ ori $t1,$t1,0x903 +/* f1275f4: 27280008 */ addiu $t0,$t9,0x8 +/* f1275f8: afa80170 */ sw $t0,0x170($sp) +/* f1275fc: 240a0c00 */ li $t2,0xc00 +/* f127600: af2a0004 */ sw $t2,0x4($t9) +/* f127604: af290000 */ sw $t1,0x0($t9) +/* f127608: 8fab0170 */ lw $t3,0x170($sp) +/* f12760c: 3c0dba00 */ lui $t5,0xba00 +/* f127610: 35ad0e02 */ ori $t5,$t5,0xe02 +/* f127614: 256c0008 */ addiu $t4,$t3,0x8 +/* f127618: afac0170 */ sw $t4,0x170($sp) +/* f12761c: ad600004 */ sw $zero,0x4($t3) +/* f127620: ad6d0000 */ sw $t5,0x0($t3) +/* f127624: 8fae0170 */ lw $t6,0x170($sp) +/* f127628: 3c18ba00 */ lui $t8,0xba00 +/* f12762c: 37180c02 */ ori $t8,$t8,0xc02 +/* f127630: 25cf0008 */ addiu $t7,$t6,0x8 +/* f127634: afaf0170 */ sw $t7,0x170($sp) +/* f127638: 24192000 */ li $t9,0x2000 +/* f12763c: add90004 */ sw $t9,0x4($t6) +/* f127640: add80000 */ sw $t8,0x0($t6) +/* f127644: 8fa80170 */ lw $t0,0x170($sp) +/* f127648: 3c0bffa7 */ lui $t3,0xffa7 +/* f12764c: 3c0afc50 */ lui $t2,0xfc50 +/* f127650: 25090008 */ addiu $t1,$t0,0x8 +/* f127654: afa90170 */ sw $t1,0x170($sp) +/* f127658: 354ad2a1 */ ori $t2,$t2,0xd2a1 +/* f12765c: 356bffff */ ori $t3,$t3,0xffff +/* f127660: ad0b0004 */ sw $t3,0x4($t0) +/* f127664: ad0a0000 */ sw $t2,0x0($t0) +/* f127668: 8fa30170 */ lw $v1,0x170($sp) +/* f12766c: 3c0efb00 */ lui $t6,0xfb00 +/* f127670: 3c01437f */ lui $at,0x437f +/* f127674: 246d0008 */ addiu $t5,$v1,0x8 +/* f127678: afad0170 */ sw $t5,0x170($sp) +/* f12767c: ac6e0000 */ sw $t6,0x0($v1) +/* f127680: 8faf009c */ lw $t7,0x9c($sp) +/* f127684: 44812000 */ mtc1 $at,$f4 +/* f127688: 3c013f00 */ lui $at,0x3f00 +/* f12768c: c5f20000 */ lwc1 $f18,0x0($t7) +/* f127690: 93aa0148 */ lbu $t2,0x148($sp) +/* f127694: 93ae0149 */ lbu $t6,0x149($sp) +/* f127698: 46049202 */ mul.s $f8,$f18,$f4 +/* f12769c: 44819000 */ mtc1 $at,$f18 +/* f1276a0: 93a9014a */ lbu $t1,0x14a($sp) +/* f1276a4: 000a5e00 */ sll $t3,$t2,0x18 +/* f1276a8: 4612c002 */ mul.s $f0,$f24,$f18 +/* f1276ac: 000e7c00 */ sll $t7,$t6,0x10 +/* f1276b0: 00095200 */ sll $t2,$t1,0x8 +/* f1276b4: 3c02800b */ lui $v0,0x800b +/* f1276b8: 240e0001 */ li $t6,0x1 +/* f1276bc: 240d0001 */ li $t5,0x1 +/* f1276c0: 4600418d */ trunc.w.s $f6,$f8 +/* f1276c4: 461e0102 */ mul.s $f4,$f0,$f30 +/* f1276c8: 27a40170 */ addiu $a0,$sp,0x170 +/* f1276cc: 27a50134 */ addiu $a1,$sp,0x134 +/* f1276d0: 44193000 */ mfc1 $t9,$f6 +/* f1276d4: 27a6012c */ addiu $a2,$sp,0x12c +/* f1276d8: 332800ff */ andi $t0,$t9,0xff +/* f1276dc: 010b6025 */ or $t4,$t0,$t3 +/* f1276e0: 018fc025 */ or $t8,$t4,$t7 +/* f1276e4: 030a4025 */ or $t0,$t8,$t2 +/* f1276e8: ac680004 */ sw $t0,0x4($v1) +/* f1276ec: c62a0000 */ lwc1 $f10,0x0($s1) +/* f1276f0: c6500000 */ lwc1 $f16,0x0($s2) +/* f1276f4: 8c42fbc0 */ lw $v0,-0x440($v0) +/* f1276f8: e7a4012c */ swc1 $f4,0x12c($sp) +/* f1276fc: e7a00130 */ swc1 $f0,0x130($sp) +/* f127700: e7aa0134 */ swc1 $f10,0x134($sp) +/* f127704: e7b00138 */ swc1 $f16,0x138($sp) +/* f127708: 904b0041 */ lbu $t3,0x41($v0) +/* f12770c: 90470040 */ lbu $a3,0x40($v0) +/* f127710: 240f0001 */ li $t7,0x1 +/* f127714: 240c0001 */ li $t4,0x1 +/* f127718: afac0020 */ sw $t4,0x20($sp) +/* f12771c: afaf0028 */ sw $t7,0x28($sp) +/* f127720: afa00024 */ sw $zero,0x24($sp) +/* f127724: afae001c */ sw $t6,0x1c($sp) +/* f127728: afad0018 */ sw $t5,0x18($sp) +/* f12772c: afa00014 */ sw $zero,0x14($sp) +/* f127730: 0fc2c958 */ jal func0f0b2150 +/* f127734: afab0010 */ sw $t3,0x10($sp) +/* f127738: 8fb90170 */ lw $t9,0x170($sp) +/* f12773c: 3c18e700 */ lui $t8,0xe700 +/* f127740: 3c0bba00 */ lui $t3,0xba00 +/* f127744: 27290008 */ addiu $t1,$t9,0x8 +/* f127748: afa90170 */ sw $t1,0x170($sp) +/* f12774c: af200004 */ sw $zero,0x4($t9) +/* f127750: af380000 */ sw $t8,0x0($t9) +/* f127754: 8faa0170 */ lw $t2,0x170($sp) +/* f127758: 356b0602 */ ori $t3,$t3,0x602 +/* f12775c: 240d0040 */ li $t5,0x40 +/* f127760: 25480008 */ addiu $t0,$t2,0x8 +/* f127764: afa80170 */ sw $t0,0x170($sp) +/* f127768: ad4d0004 */ sw $t5,0x4($t2) +/* f12776c: ad4b0000 */ sw $t3,0x0($t2) +/* f127770: 8fae0170 */ lw $t6,0x170($sp) +/* f127774: 3c0fba00 */ lui $t7,0xba00 +/* f127778: 35ef1301 */ ori $t7,$t7,0x1301 +/* f12777c: 25cc0008 */ addiu $t4,$t6,0x8 +/* f127780: afac0170 */ sw $t4,0x170($sp) +/* f127784: 3c190008 */ lui $t9,0x8 +/* f127788: add90004 */ sw $t9,0x4($t6) +/* f12778c: adcf0000 */ sw $t7,0x0($t6) +/* f127790: 8fa90170 */ lw $t1,0x170($sp) +/* f127794: 3c0aba00 */ lui $t2,0xba00 +/* f127798: 354a1001 */ ori $t2,$t2,0x1001 +/* f12779c: 25380008 */ addiu $t8,$t1,0x8 +/* f1277a0: afb80170 */ sw $t8,0x170($sp) +/* f1277a4: 3c080001 */ lui $t0,0x1 +/* f1277a8: ad280004 */ sw $t0,0x4($t1) +/* f1277ac: 0c00091c */ jal bbufGetIndex1Buffer +/* f1277b0: ad2a0000 */ sw $t2,0x0($t1) +/* f1277b4: 8fab0098 */ lw $t3,0x98($sp) +/* f1277b8: 0fc49bcb */ jal sky0f125a1c +/* f1277bc: 004b2021 */ addu $a0,$v0,$t3 +/* f1277c0: e7a00124 */ swc1 $f0,0x124($sp) +/* f1277c4: 8fad0120 */ lw $t5,0x120($sp) +.PB0f1277c8: +/* f1277c8: c7a80124 */ lwc1 $f8,0x124($sp) +/* f1277cc: 51a0000c */ beqzl $t5,.PB0f127800 +/* f1277d0: 8fb90094 */ lw $t9,0x94($sp) +/* f1277d4: 4608e03c */ c.lt.s $f28,$f8 +/* f1277d8: 8fa20094 */ lw $v0,0x94($sp) +/* f1277dc: 3c0c800a */ lui $t4,0x800a +/* f1277e0: 45020007 */ bc1fl .PB0f127800 +/* f1277e4: 8fb90094 */ lw $t9,0x94($sp) +/* f1277e8: 8c4e0000 */ lw $t6,0x0($v0) +/* f1277ec: 8d8ce504 */ lw $t4,-0x1afc($t4) +/* f1277f0: 01cc7821 */ addu $t7,$t6,$t4 +/* f1277f4: 10000003 */ b .PB0f127804 +/* f1277f8: ac4f0000 */ sw $t7,0x0($v0) +/* f1277fc: 8fb90094 */ lw $t9,0x94($sp) +.PB0f127800: +/* f127800: af200000 */ sw $zero,0x0($t9) +.PB0f127804: +/* f127804: 8fa9013c */ lw $t1,0x13c($sp) +.PB0f127808: +/* f127808: 8faa0144 */ lw $t2,0x144($sp) +/* f12780c: 2694000c */ addiu $s4,$s4,0xc +/* f127810: 25380001 */ addiu $t8,$t1,0x1 +/* f127814: afb8013c */ sw $t8,0x13c($sp) +/* f127818: 9148000b */ lbu $t0,0xb($t2) +/* f12781c: 26d60014 */ addiu $s6,$s6,0x14 +/* f127820: 0308082a */ slt $at,$t8,$t0 +/* f127824: 5420fe18 */ bnezl $at,.PB0f127088 +/* f127828: c6d00004 */ lwc1 $f16,0x4($s6) +/* f12782c: 8fa20170 */ lw $v0,0x170($sp) +.PB0f127830: +/* f127830: 8fbf008c */ lw $ra,0x8c($sp) +/* f127834: d7b40038 */ ldc1 $f20,0x38($sp) +/* f127838: d7b60040 */ ldc1 $f22,0x40($sp) +/* f12783c: d7b80048 */ ldc1 $f24,0x48($sp) +/* f127840: d7ba0050 */ ldc1 $f26,0x50($sp) +/* f127844: d7bc0058 */ ldc1 $f28,0x58($sp) +/* f127848: d7be0060 */ ldc1 $f30,0x60($sp) +/* f12784c: 8fb00068 */ lw $s0,0x68($sp) +/* f127850: 8fb1006c */ lw $s1,0x6c($sp) +/* f127854: 8fb20070 */ lw $s2,0x70($sp) +/* f127858: 8fb30074 */ lw $s3,0x74($sp) +/* f12785c: 8fb40078 */ lw $s4,0x78($sp) +/* f127860: 8fb5007c */ lw $s5,0x7c($sp) +/* f127864: 8fb60080 */ lw $s6,0x80($sp) +/* f127868: 8fb70084 */ lw $s7,0x84($sp) +/* f12786c: 8fbe0088 */ lw $s8,0x88($sp) +/* f127870: 03e00008 */ jr $ra +/* f127874: 27bd0170 */ addiu $sp,$sp,0x170 +); +#else +GLOBAL_ASM( +glabel sky0f125a6c +.late_rodata +glabel var7f1b5108 +.word 0x3d888889 +.text +/* f125a6c: 27bdfe90 */ addiu $sp,$sp,-368 +/* f125a70: afbf008c */ sw $ra,0x8c($sp) +/* f125a74: afbe0088 */ sw $s8,0x88($sp) +/* f125a78: afb70084 */ sw $s7,0x84($sp) +/* f125a7c: afb60080 */ sw $s6,0x80($sp) +/* f125a80: afb5007c */ sw $s5,0x7c($sp) +/* f125a84: afb40078 */ sw $s4,0x78($sp) +/* f125a88: afb30074 */ sw $s3,0x74($sp) +/* f125a8c: afb20070 */ sw $s2,0x70($sp) +/* f125a90: afb1006c */ sw $s1,0x6c($sp) +/* f125a94: afb00068 */ sw $s0,0x68($sp) +/* f125a98: f7be0060 */ sdc1 $f30,0x60($sp) +/* f125a9c: f7bc0058 */ sdc1 $f28,0x58($sp) +/* f125aa0: f7ba0050 */ sdc1 $f26,0x50($sp) +/* f125aa4: f7b80048 */ sdc1 $f24,0x48($sp) +/* f125aa8: f7b60040 */ sdc1 $f22,0x40($sp) +/* f125aac: f7b40038 */ sdc1 $f20,0x38($sp) +/* f125ab0: afa40170 */ sw $a0,0x170($sp) +/* f125ab4: 0fc2d5be */ jal camGetMatrix1740 +/* f125ab8: afa50174 */ sw $a1,0x174($sp) +/* f125abc: 0fc2d5c6 */ jal camGetUnk1754 +/* f125ac0: afa2016c */ sw $v0,0x16c($sp) +/* f125ac4: 0fc595f3 */ jal envGetCurrent +/* f125ac8: afa20168 */ sw $v0,0x168($sp) +/* f125acc: afa20144 */ sw $v0,0x144($sp) +/* f125ad0: 904e000b */ lbu $t6,0xb($v0) +/* f125ad4: 24030001 */ addiu $v1,$zero,0x1 +/* f125ad8: 3c0f8008 */ lui $t7,%hi(var800844f0) +/* f125adc: 19c00009 */ blez $t6,.L0f125b04 +/* f125ae0: 00000000 */ nop +/* f125ae4: 8def44f0 */ lw $t7,%lo(var800844f0)($t7) +/* f125ae8: 3c18800a */ lui $t8,%hi(g_Vars+0x314) +/* f125aec: 11e00005 */ beqz $t7,.L0f125b04 +/* f125af0: 00000000 */ nop +/* f125af4: 8f18a2d4 */ lw $t8,%lo(g_Vars+0x314)($t8) +/* f125af8: 3c198007 */ lui $t9,%hi(g_ViRes) +/* f125afc: 13000003 */ beqz $t8,.L0f125b0c +/* f125b00: 00000000 */ nop +.L0f125b04: +/* f125b04: 1000020d */ b .L0f12633c +/* f125b08: 8fa20170 */ lw $v0,0x170($sp) +.L0f125b0c: +/* f125b0c: 8f3906c8 */ lw $t9,%lo(g_ViRes)($t9) +/* f125b10: 24010001 */ addiu $at,$zero,0x1 +/* f125b14: 17210002 */ bne $t9,$at,.L0f125b20 +/* f125b18: 00000000 */ nop +/* f125b1c: 24030002 */ addiu $v1,$zero,0x2 +.L0f125b20: +/* f125b20: 0c002f40 */ jal viGetViewLeft +/* f125b24: afa30128 */ sw $v1,0x128($sp) +/* f125b28: 0c002f44 */ jal viGetViewTop +/* f125b2c: a7a20166 */ sh $v0,0x166($sp) +/* f125b30: 0c002f22 */ jal viGetViewWidth +/* f125b34: a7a20164 */ sh $v0,0x164($sp) +/* f125b38: 0c002f26 */ jal viGetViewHeight +/* f125b3c: a7a20162 */ sh $v0,0x162($sp) +/* f125b40: 87a80162 */ lh $t0,0x162($sp) +/* f125b44: 44824000 */ mtc1 $v0,$f8 +/* f125b48: 8fa30144 */ lw $v1,0x144($sp) +/* f125b4c: 44882000 */ mtc1 $t0,$f4 +/* f125b50: 468042a0 */ cvt.s.w $f10,$f8 +/* f125b54: a7a20160 */ sh $v0,0x160($sp) +/* f125b58: 3c14800a */ lui $s4,%hi(var800a33e8) +/* f125b5c: 3c013f80 */ lui $at,0x3f80 +/* f125b60: 468021a0 */ cvt.s.w $f6,$f4 +/* f125b64: e7aa0150 */ swc1 $f10,0x150($sp) +/* f125b68: e7a600c8 */ swc1 $f6,0xc8($sp) +/* f125b6c: e7a60154 */ swc1 $f6,0x154($sp) +/* f125b70: 8c76000c */ lw $s6,0xc($v1) +/* f125b74: afa0013c */ sw $zero,0x13c($sp) +/* f125b78: 9069000b */ lbu $t1,0xb($v1) +/* f125b7c: 592001ef */ blezl $t1,.L0f12633c +/* f125b80: 8fa20170 */ lw $v0,0x170($sp) +/* f125b84: 4480e000 */ mtc1 $zero,$f28 +/* f125b88: 4481d000 */ mtc1 $at,$f26 +/* f125b8c: 269433e8 */ addiu $s4,$s4,%lo(var800a33e8) +/* f125b90: c6d00004 */ lwc1 $f16,0x4($s6) +.L0f125b94: +/* f125b94: 8fad0174 */ lw $t5,0x174($sp) +/* f125b98: e6900000 */ swc1 $f16,0x0($s4) +/* f125b9c: c6d20008 */ lwc1 $f18,0x8($s6) +/* f125ba0: e6920004 */ swc1 $f18,0x4($s4) +/* f125ba4: c6c4000c */ lwc1 $f4,0xc($s6) +/* f125ba8: e6840008 */ swc1 $f4,0x8($s4) +/* f125bac: 92ca0001 */ lbu $t2,0x1($s6) +/* f125bb0: 8fa4016c */ lw $a0,0x16c($sp) +/* f125bb4: a3aa0148 */ sb $t2,0x148($sp) +/* f125bb8: 92cb0002 */ lbu $t3,0x2($s6) +/* f125bbc: a3ab0149 */ sb $t3,0x149($sp) +/* f125bc0: 92cc0003 */ lbu $t4,0x3($s6) +/* f125bc4: 15a001d2 */ bnez $t5,.L0f126310 +/* f125bc8: a3ac014a */ sb $t4,0x14a($sp) +/* f125bcc: 0c0056d9 */ jal mtx4TransformVecInPlace +/* f125bd0: 02802825 */ or $a1,$s4,$zero +/* f125bd4: 8fa40168 */ lw $a0,0x168($sp) +/* f125bd8: 0c0056d9 */ jal mtx4TransformVecInPlace +/* f125bdc: 02802825 */ or $a1,$s4,$zero +/* f125be0: c6800008 */ lwc1 $f0,0x8($s4) +/* f125be4: 4600d03c */ c.lt.s $f26,$f0 +/* f125be8: 00000000 */ nop +/* f125bec: 450201c9 */ bc1fl .L0f126314 +/* f125bf0: 8faa013c */ lw $t2,0x13c($sp) +/* f125bf4: c6880000 */ lwc1 $f8,0x0($s4) +/* f125bf8: 3c013f00 */ lui $at,0x3f00 +/* f125bfc: 44811000 */ mtc1 $at,$f2 +/* f125c00: 46004283 */ div.s $f10,$f8,$f0 +/* f125c04: 87b80166 */ lh $t8,0x166($sp) +/* f125c08: c7a40154 */ lwc1 $f4,0x154($sp) +/* f125c0c: 8fb0013c */ lw $s0,0x13c($sp) +/* f125c10: 44983000 */ mtc1 $t8,$f6 +/* f125c14: 3c0f800a */ lui $t7,%hi(var800a3410) +/* f125c18: 87a80164 */ lh $t0,0x164($sp) +/* f125c1c: 46803520 */ cvt.s.w $f20,$f6 +/* f125c20: 25ef3410 */ addiu $t7,$t7,%lo(var800a3410) +/* f125c24: 00107080 */ sll $t6,$s0,0x2 +/* f125c28: 01cf8821 */ addu $s1,$t6,$t7 +/* f125c2c: 3c19800a */ lui $t9,%hi(var800a3420) +/* f125c30: 3c098008 */ lui $t1,%hi(var8007db94) +/* f125c34: 27393420 */ addiu $t9,$t9,%lo(var800a3420) +/* f125c38: 2529db94 */ addiu $t1,$t1,%lo(var8007db94) +/* f125c3c: 01d99021 */ addu $s2,$t6,$t9 +/* f125c40: 01c95021 */ addu $t2,$t6,$t1 +/* f125c44: 01c08025 */ or $s0,$t6,$zero +/* f125c48: afaa0094 */ sw $t2,0x94($sp) +/* f125c4c: afa00120 */ sw $zero,0x120($sp) +/* f125c50: 461a5400 */ add.s $f16,$f10,$f26 +/* f125c54: 44885000 */ mtc1 $t0,$f10 +/* f125c58: 46028482 */ mul.s $f18,$f16,$f2 +/* f125c5c: c6900004 */ lwc1 $f16,0x4($s4) +/* f125c60: 468055a0 */ cvt.s.w $f22,$f10 +/* f125c64: 46049182 */ mul.s $f6,$f18,$f4 +/* f125c68: c7aa0150 */ lwc1 $f10,0x150($sp) +/* f125c6c: 46008487 */ neg.s $f18,$f16 +/* f125c70: 46009103 */ div.s $f4,$f18,$f0 +/* f125c74: 46143200 */ add.s $f8,$f6,$f20 +/* f125c78: e6280000 */ swc1 $f8,0x0($s1) +/* f125c7c: 461a2180 */ add.s $f6,$f4,$f26 +/* f125c80: 46023202 */ mul.s $f8,$f6,$f2 +/* f125c84: 00000000 */ nop +/* f125c88: 460a4402 */ mul.s $f16,$f8,$f10 +/* f125c8c: 46168480 */ add.s $f18,$f16,$f22 +/* f125c90: 0c002f9d */ jal viGetFovY +/* f125c94: e6520000 */ swc1 $f18,0x0($s2) +/* f125c98: 3c014270 */ lui $at,0x4270 +/* f125c9c: 44812000 */ mtc1 $at,$f4 +/* f125ca0: 86cb0010 */ lh $t3,0x10($s6) +/* f125ca4: c62c0000 */ lwc1 $f12,0x0($s1) +/* f125ca8: 46002183 */ div.s $f6,$f4,$f0 +/* f125cac: 448b4000 */ mtc1 $t3,$f8 +/* f125cb0: c7b200c8 */ lwc1 $f18,0xc8($sp) +/* f125cb4: 468042a0 */ cvt.s.w $f10,$f8 +/* f125cb8: 460a3602 */ mul.s $f24,$f6,$f10 +/* f125cbc: 4618a401 */ sub.s $f16,$f20,$f24 +/* f125cc0: 460c803e */ c.le.s $f16,$f12 +/* f125cc4: 00000000 */ nop +/* f125cc8: 45020182 */ bc1fl .L0f1262d4 +/* f125ccc: 8fae0120 */ lw $t6,0x120($sp) +/* f125cd0: 4612a080 */ add.s $f2,$f20,$f18 +/* f125cd4: 46181100 */ add.s $f4,$f2,$f24 +/* f125cd8: 4604603c */ c.lt.s $f12,$f4 +/* f125cdc: 00000000 */ nop +/* f125ce0: 4502017c */ bc1fl .L0f1262d4 +/* f125ce4: 8fae0120 */ lw $t6,0x120($sp) +/* f125ce8: 4618b201 */ sub.s $f8,$f22,$f24 +/* f125cec: c64e0000 */ lwc1 $f14,0x0($s2) +/* f125cf0: c7a60150 */ lwc1 $f6,0x150($sp) +/* f125cf4: 460e403e */ c.le.s $f8,$f14 +/* f125cf8: 00000000 */ nop +/* f125cfc: 45020175 */ bc1fl .L0f1262d4 +/* f125d00: 8fae0120 */ lw $t6,0x120($sp) +/* f125d04: 4606b000 */ add.s $f0,$f22,$f6 +/* f125d08: 3c0c8008 */ lui $t4,%hi(var8007db88) +/* f125d0c: 258cdb88 */ addiu $t4,$t4,%lo(var8007db88) +/* f125d10: 020c6821 */ addu $t5,$s0,$t4 +/* f125d14: 46180280 */ add.s $f10,$f0,$f24 +/* f125d18: 460a703c */ c.lt.s $f14,$f10 +/* f125d1c: 00000000 */ nop +/* f125d20: 4502016c */ bc1fl .L0f1262d4 +/* f125d24: 8fae0120 */ lw $t6,0x120($sp) +/* f125d28: 8fae013c */ lw $t6,0x13c($sp) +/* f125d2c: 8fb80128 */ lw $t8,0x128($sp) +/* f125d30: 460ca03e */ c.le.s $f20,$f12 +/* f125d34: 000e7880 */ sll $t7,$t6,0x2 +/* f125d38: 44988000 */ mtc1 $t8,$f16 +/* f125d3c: 01ee7821 */ addu $t7,$t7,$t6 +/* f125d40: 000f7940 */ sll $t7,$t7,0x5 +/* f125d44: afaf0098 */ sw $t7,0x98($sp) +/* f125d48: afad009c */ sw $t5,0x9c($sp) +/* f125d4c: 450000aa */ bc1f .L0f125ff8 +/* f125d50: 468087a0 */ cvt.s.w $f30,$f16 +/* f125d54: 4602603c */ c.lt.s $f12,$f2 +/* f125d58: 00000000 */ nop +/* f125d5c: 450200a7 */ bc1fl .L0f125ffc +/* f125d60: 8fa20094 */ lw $v0,0x94($sp) +/* f125d64: 460eb03e */ c.le.s $f22,$f14 +/* f125d68: 00000000 */ nop +/* f125d6c: 450200a3 */ bc1fl .L0f125ffc +/* f125d70: 8fa20094 */ lw $v0,0x94($sp) +/* f125d74: 4600703c */ c.lt.s $f14,$f0 +/* f125d78: 87a30166 */ lh $v1,0x166($sp) +/* f125d7c: 87a20164 */ lh $v0,0x164($sp) +/* f125d80: 87b90162 */ lh $t9,0x162($sp) +/* f125d84: 4500009c */ bc1f .L0f125ff8 +/* f125d88: 2470000f */ addiu $s0,$v1,0xf +/* f125d8c: 87a80160 */ lh $t0,0x160($sp) +/* f125d90: 00799821 */ addu $s3,$v1,$t9 +/* f125d94: 267efff0 */ addiu $s8,$s3,-16 +/* f125d98: 0048b821 */ addu $s7,$v0,$t0 +/* f125d9c: 26e9fff0 */ addiu $t1,$s7,-16 +/* f125da0: afa900a0 */ sw $t1,0xa0($sp) +/* f125da4: 0c000913 */ jal bbufGetIndex0Buffer +/* f125da8: 2455000f */ addiu $s5,$v0,0xf +/* f125dac: c62c0000 */ lwc1 $f12,0x0($s1) +/* f125db0: 3c01447a */ lui $at,0x447a +/* f125db4: 44811000 */ mtc1 $at,$f2 +/* f125db8: 4600648d */ trunc.w.s $f18,$f12 +/* f125dbc: 240a0001 */ addiu $t2,$zero,0x1 +/* f125dc0: 00403825 */ or $a3,$v0,$zero +/* f125dc4: afaa0120 */ sw $t2,0x120($sp) +/* f125dc8: 44039000 */ mfc1 $v1,$f18 +/* f125dcc: 8fae00a0 */ lw $t6,0xa0($sp) +/* f125dd0: 0070082a */ slt $at,$v1,$s0 +/* f125dd4: 10200008 */ beqz $at,.L0f125df8 +/* f125dd8: 3c01447a */ lui $at,0x447a +/* f125ddc: 44812000 */ mtc1 $at,$f4 +/* f125de0: 46006006 */ mov.s $f0,$f12 +/* f125de4: 4604603c */ c.lt.s $f12,$f4 +/* f125de8: 00000000 */ nop +/* f125dec: 45020003 */ bc1fl .L0f125dfc +/* f125df0: c64e0000 */ lwc1 $f14,0x0($s2) +/* f125df4: 46000086 */ mov.s $f2,$f0 +.L0f125df8: +/* f125df8: c64e0000 */ lwc1 $f14,0x0($s2) +.L0f125dfc: +/* f125dfc: 4600720d */ trunc.w.s $f8,$f14 +/* f125e00: 44024000 */ mfc1 $v0,$f8 +/* f125e04: 00000000 */ nop +/* f125e08: 0055082a */ slt $at,$v0,$s5 +/* f125e0c: 50200007 */ beqzl $at,.L0f125e2c +/* f125e10: 03c3082a */ slt $at,$s8,$v1 +/* f125e14: 4602703c */ c.lt.s $f14,$f2 +/* f125e18: 46007006 */ mov.s $f0,$f14 +/* f125e1c: 45020003 */ bc1fl .L0f125e2c +/* f125e20: 03c3082a */ slt $at,$s8,$v1 +/* f125e24: 46000086 */ mov.s $f2,$f0 +/* f125e28: 03c3082a */ slt $at,$s8,$v1 +.L0f125e2c: +/* f125e2c: 1020000a */ beqz $at,.L0f125e58 +/* f125e30: 266dffff */ addiu $t5,$s3,-1 +/* f125e34: 448d3000 */ mtc1 $t5,$f6 +/* f125e38: 00000000 */ nop +/* f125e3c: 468032a0 */ cvt.s.w $f10,$f6 +/* f125e40: 460c5001 */ sub.s $f0,$f10,$f12 +/* f125e44: 4602003c */ c.lt.s $f0,$f2 +/* f125e48: 00000000 */ nop +/* f125e4c: 45020003 */ bc1fl .L0f125e5c +/* f125e50: 01c2082a */ slt $at,$t6,$v0 +/* f125e54: 46000086 */ mov.s $f2,$f0 +.L0f125e58: +/* f125e58: 01c2082a */ slt $at,$t6,$v0 +.L0f125e5c: +/* f125e5c: 1020000a */ beqz $at,.L0f125e88 +/* f125e60: 26efffff */ addiu $t7,$s7,-1 +/* f125e64: 448f8000 */ mtc1 $t7,$f16 +/* f125e68: 00000000 */ nop +/* f125e6c: 468084a0 */ cvt.s.w $f18,$f16 +/* f125e70: 460e9001 */ sub.s $f0,$f18,$f14 +/* f125e74: 4602003c */ c.lt.s $f0,$f2 +/* f125e78: 00000000 */ nop +/* f125e7c: 45020003 */ bc1fl .L0f125e8c +/* f125e80: 461a1081 */ sub.s $f2,$f2,$f26 +/* f125e84: 46000086 */ mov.s $f2,$f0 +.L0f125e88: +/* f125e88: 461a1081 */ sub.s $f2,$f2,$f26 +.L0f125e8c: +/* f125e8c: 3c017f1b */ lui $at,%hi(var7f1b5108) +/* f125e90: 461c103c */ c.lt.s $f2,$f28 +/* f125e94: 00000000 */ nop +/* f125e98: 45000002 */ bc1f .L0f125ea4 +/* f125e9c: 00000000 */ nop +/* f125ea0: 4600e086 */ mov.s $f2,$f28 +.L0f125ea4: +/* f125ea4: c4245108 */ lwc1 $f4,%lo(var7f1b5108)($at) +/* f125ea8: 8fb8009c */ lw $t8,0x9c($sp) +/* f125eac: 46041002 */ mul.s $f0,$f2,$f4 +/* f125eb0: 4600d03c */ c.lt.s $f26,$f0 +/* f125eb4: e7000000 */ swc1 $f0,0x0($t8) +/* f125eb8: 8fb9009c */ lw $t9,0x9c($sp) +/* f125ebc: 45020003 */ bc1fl .L0f125ecc +/* f125ec0: 8fa80098 */ lw $t0,0x98($sp) +/* f125ec4: e73a0000 */ swc1 $f26,0x0($t9) +/* f125ec8: 8fa80098 */ lw $t0,0x98($sp) +.L0f125ecc: +/* f125ecc: 2465fff9 */ addiu $a1,$v1,-7 +/* f125ed0: 24460001 */ addiu $a2,$v0,0x1 +/* f125ed4: 01078021 */ addu $s0,$t0,$a3 +/* f125ed8: 0fc49652 */ jal sky0f125948 +/* f125edc: 02002025 */ or $a0,$s0,$zero +/* f125ee0: c6280000 */ lwc1 $f8,0x0($s1) +/* f125ee4: c64a0000 */ lwc1 $f10,0x0($s2) +/* f125ee8: 26040014 */ addiu $a0,$s0,0x14 +/* f125eec: 4600418d */ trunc.w.s $f6,$f8 +/* f125ef0: 4600540d */ trunc.w.s $f16,$f10 +/* f125ef4: 44053000 */ mfc1 $a1,$f6 +/* f125ef8: 44068000 */ mfc1 $a2,$f16 +/* f125efc: 24a5fffb */ addiu $a1,$a1,-5 +/* f125f00: 0fc49652 */ jal sky0f125948 +/* f125f04: 24c6fffd */ addiu $a2,$a2,-3 +/* f125f08: c6320000 */ lwc1 $f18,0x0($s1) +/* f125f0c: c6480000 */ lwc1 $f8,0x0($s2) +/* f125f10: 26040028 */ addiu $a0,$s0,0x28 +/* f125f14: 4600910d */ trunc.w.s $f4,$f18 +/* f125f18: 4600418d */ trunc.w.s $f6,$f8 +/* f125f1c: 44052000 */ mfc1 $a1,$f4 +/* f125f20: 44063000 */ mfc1 $a2,$f6 +/* f125f24: 24a5fffd */ addiu $a1,$a1,-3 +/* f125f28: 0fc49652 */ jal sky0f125948 +/* f125f2c: 24c60005 */ addiu $a2,$a2,0x5 +/* f125f30: c62a0000 */ lwc1 $f10,0x0($s1) +/* f125f34: c6520000 */ lwc1 $f18,0x0($s2) +/* f125f38: 2604003c */ addiu $a0,$s0,0x3c +/* f125f3c: 4600540d */ trunc.w.s $f16,$f10 +/* f125f40: 4600910d */ trunc.w.s $f4,$f18 +/* f125f44: 44058000 */ mfc1 $a1,$f16 +/* f125f48: 44062000 */ mfc1 $a2,$f4 +/* f125f4c: 24a5ffff */ addiu $a1,$a1,-1 +/* f125f50: 0fc49652 */ jal sky0f125948 +/* f125f54: 24c6fff9 */ addiu $a2,$a2,-7 +/* f125f58: c6280000 */ lwc1 $f8,0x0($s1) +/* f125f5c: c64a0000 */ lwc1 $f10,0x0($s2) +/* f125f60: 26040050 */ addiu $a0,$s0,0x50 +/* f125f64: 4600418d */ trunc.w.s $f6,$f8 +/* f125f68: 4600540d */ trunc.w.s $f16,$f10 +/* f125f6c: 44053000 */ mfc1 $a1,$f6 +/* f125f70: 44068000 */ mfc1 $a2,$f16 +/* f125f74: 24a50001 */ addiu $a1,$a1,0x1 +/* f125f78: 0fc49652 */ jal sky0f125948 +/* f125f7c: 24c60007 */ addiu $a2,$a2,0x7 +/* f125f80: c6320000 */ lwc1 $f18,0x0($s1) +/* f125f84: c6480000 */ lwc1 $f8,0x0($s2) +/* f125f88: 26040064 */ addiu $a0,$s0,0x64 +/* f125f8c: 4600910d */ trunc.w.s $f4,$f18 +/* f125f90: 4600418d */ trunc.w.s $f6,$f8 +/* f125f94: 44052000 */ mfc1 $a1,$f4 +/* f125f98: 44063000 */ mfc1 $a2,$f6 +/* f125f9c: 24a50003 */ addiu $a1,$a1,0x3 +/* f125fa0: 0fc49652 */ jal sky0f125948 +/* f125fa4: 24c6fffb */ addiu $a2,$a2,-5 +/* f125fa8: c62a0000 */ lwc1 $f10,0x0($s1) +/* f125fac: c6520000 */ lwc1 $f18,0x0($s2) +/* f125fb0: 26040078 */ addiu $a0,$s0,0x78 +/* f125fb4: 4600540d */ trunc.w.s $f16,$f10 +/* f125fb8: 4600910d */ trunc.w.s $f4,$f18 +/* f125fbc: 44058000 */ mfc1 $a1,$f16 +/* f125fc0: 44062000 */ mfc1 $a2,$f4 +/* f125fc4: 24a50005 */ addiu $a1,$a1,0x5 +/* f125fc8: 0fc49652 */ jal sky0f125948 +/* f125fcc: 24c60003 */ addiu $a2,$a2,0x3 +/* f125fd0: c6280000 */ lwc1 $f8,0x0($s1) +/* f125fd4: c64a0000 */ lwc1 $f10,0x0($s2) +/* f125fd8: 2604008c */ addiu $a0,$s0,0x8c +/* f125fdc: 4600418d */ trunc.w.s $f6,$f8 +/* f125fe0: 4600540d */ trunc.w.s $f16,$f10 +/* f125fe4: 44053000 */ mfc1 $a1,$f6 +/* f125fe8: 44068000 */ mfc1 $a2,$f16 +/* f125fec: 24a50007 */ addiu $a1,$a1,0x7 +/* f125ff0: 0fc49652 */ jal sky0f125948 +/* f125ff4: 24c6ffff */ addiu $a2,$a2,-1 +.L0f125ff8: +/* f125ff8: 8fa20094 */ lw $v0,0x94($sp) +.L0f125ffc: +/* f125ffc: 3c0e800a */ lui $t6,%hi(g_Vars+0x34) +/* f126000: 8dce9ff4 */ lw $t6,%lo(g_Vars+0x34)($t6) +/* f126004: 8c4d0000 */ lw $t5,0x0($v0) +/* f126008: 3c05800b */ lui $a1,%hi(g_TexLightGlareConfigs) +/* f12600c: 24180002 */ addiu $t8,$zero,0x2 +/* f126010: 01ae7821 */ addu $t7,$t5,$t6 +/* f126014: ac4f0000 */ sw $t7,0x0($v0) +/* f126018: 8ca5b5a0 */ lw $a1,%lo(g_TexLightGlareConfigs)($a1) +/* f12601c: 24190001 */ addiu $t9,$zero,0x1 +/* f126020: afb90014 */ sw $t9,0x14($sp) +/* f126024: afb80010 */ sw $t8,0x10($sp) +/* f126028: 27a40170 */ addiu $a0,$sp,0x170 +/* f12602c: 24060004 */ addiu $a2,$zero,0x4 +/* f126030: 00003825 */ or $a3,$zero,$zero +/* f126034: afa00018 */ sw $zero,0x18($sp) +/* f126038: 0fc2ce70 */ jal tex0f0b39c0 +/* f12603c: 24a5003c */ addiu $a1,$a1,0x003c +/* f126040: 8fa80170 */ lw $t0,0x170($sp) +/* f126044: 3c0aba00 */ lui $t2,0xba00 +/* f126048: 354a1402 */ ori $t2,$t2,0x1402 +/* f12604c: 25090008 */ addiu $t1,$t0,0x8 +/* f126050: afa90170 */ sw $t1,0x170($sp) +/* f126054: ad000004 */ sw $zero,0x4($t0) +/* f126058: ad0a0000 */ sw $t2,0x0($t0) +/* f12605c: 8fab0170 */ lw $t3,0x170($sp) +/* f126060: 3c0dba00 */ lui $t5,0xba00 +/* f126064: 35ad0602 */ ori $t5,$t5,0x602 +/* f126068: 256c0008 */ addiu $t4,$t3,0x8 +/* f12606c: afac0170 */ sw $t4,0x170($sp) +/* f126070: 240e00c0 */ addiu $t6,$zero,0xc0 +/* f126074: ad6e0004 */ sw $t6,0x4($t3) +/* f126078: ad6d0000 */ sw $t5,0x0($t3) +/* f12607c: 8faf0170 */ lw $t7,0x170($sp) +/* f126080: 3c080050 */ lui $t0,0x50 +/* f126084: 3c19b900 */ lui $t9,0xb900 +/* f126088: 25f80008 */ addiu $t8,$t7,0x8 +/* f12608c: afb80170 */ sw $t8,0x170($sp) +/* f126090: 3739031d */ ori $t9,$t9,0x31d +/* f126094: 350841c8 */ ori $t0,$t0,0x41c8 +/* f126098: ade80004 */ sw $t0,0x4($t7) +/* f12609c: adf90000 */ sw $t9,0x0($t7) +/* f1260a0: 8fa90170 */ lw $t1,0x170($sp) +/* f1260a4: 3c0bba00 */ lui $t3,0xba00 +/* f1260a8: 356b1301 */ ori $t3,$t3,0x1301 +/* f1260ac: 252a0008 */ addiu $t2,$t1,0x8 +/* f1260b0: afaa0170 */ sw $t2,0x170($sp) +/* f1260b4: ad200004 */ sw $zero,0x4($t1) +/* f1260b8: ad2b0000 */ sw $t3,0x0($t1) +/* f1260bc: 8fac0170 */ lw $t4,0x170($sp) +/* f1260c0: 3c0eb900 */ lui $t6,0xb900 +/* f1260c4: 35ce0002 */ ori $t6,$t6,0x2 +/* f1260c8: 258d0008 */ addiu $t5,$t4,0x8 +/* f1260cc: afad0170 */ sw $t5,0x170($sp) +/* f1260d0: ad800004 */ sw $zero,0x4($t4) +/* f1260d4: ad8e0000 */ sw $t6,0x0($t4) +/* f1260d8: 8faf0170 */ lw $t7,0x170($sp) +/* f1260dc: 3c19ba00 */ lui $t9,0xba00 +/* f1260e0: 37391001 */ ori $t9,$t9,0x1001 +/* f1260e4: 25f80008 */ addiu $t8,$t7,0x8 +/* f1260e8: afb80170 */ sw $t8,0x170($sp) +/* f1260ec: ade00004 */ sw $zero,0x4($t7) +/* f1260f0: adf90000 */ sw $t9,0x0($t7) +/* f1260f4: 8fa80170 */ lw $t0,0x170($sp) +/* f1260f8: 3c0aba00 */ lui $t2,0xba00 +/* f1260fc: 354a0903 */ ori $t2,$t2,0x903 +/* f126100: 25090008 */ addiu $t1,$t0,0x8 +/* f126104: afa90170 */ sw $t1,0x170($sp) +/* f126108: 240b0c00 */ addiu $t3,$zero,0xc00 +/* f12610c: ad0b0004 */ sw $t3,0x4($t0) +/* f126110: ad0a0000 */ sw $t2,0x0($t0) +/* f126114: 8fac0170 */ lw $t4,0x170($sp) +/* f126118: 3c0eba00 */ lui $t6,0xba00 +/* f12611c: 35ce0e02 */ ori $t6,$t6,0xe02 +/* f126120: 258d0008 */ addiu $t5,$t4,0x8 +/* f126124: afad0170 */ sw $t5,0x170($sp) +/* f126128: ad800004 */ sw $zero,0x4($t4) +/* f12612c: ad8e0000 */ sw $t6,0x0($t4) +/* f126130: 8faf0170 */ lw $t7,0x170($sp) +/* f126134: 3c19ba00 */ lui $t9,0xba00 +/* f126138: 37390c02 */ ori $t9,$t9,0xc02 +/* f12613c: 25f80008 */ addiu $t8,$t7,0x8 +/* f126140: afb80170 */ sw $t8,0x170($sp) +/* f126144: 24082000 */ addiu $t0,$zero,0x2000 +/* f126148: ade80004 */ sw $t0,0x4($t7) +/* f12614c: adf90000 */ sw $t9,0x0($t7) +/* f126150: 8fa90170 */ lw $t1,0x170($sp) +/* f126154: 3c0cffa7 */ lui $t4,0xffa7 +/* f126158: 3c0bfc50 */ lui $t3,0xfc50 +/* f12615c: 252a0008 */ addiu $t2,$t1,0x8 +/* f126160: afaa0170 */ sw $t2,0x170($sp) +/* f126164: 356bd2a1 */ ori $t3,$t3,0xd2a1 +/* f126168: 358cffff */ ori $t4,$t4,0xffff +/* f12616c: ad2c0004 */ sw $t4,0x4($t1) +/* f126170: ad2b0000 */ sw $t3,0x0($t1) +/* f126174: 8fa30170 */ lw $v1,0x170($sp) +/* f126178: 3c0ffb00 */ lui $t7,0xfb00 +/* f12617c: 3c01437f */ lui $at,0x437f +/* f126180: 246e0008 */ addiu $t6,$v1,0x8 +/* f126184: afae0170 */ sw $t6,0x170($sp) +/* f126188: ac6f0000 */ sw $t7,0x0($v1) +/* f12618c: 8fb8009c */ lw $t8,0x9c($sp) +/* f126190: 44812000 */ mtc1 $at,$f4 +/* f126194: 3c013f00 */ lui $at,0x3f00 +/* f126198: c7120000 */ lwc1 $f18,0x0($t8) +/* f12619c: 93ab0148 */ lbu $t3,0x148($sp) +/* f1261a0: 93af0149 */ lbu $t7,0x149($sp) +/* f1261a4: 46049202 */ mul.s $f8,$f18,$f4 +/* f1261a8: 44819000 */ mtc1 $at,$f18 +/* f1261ac: 93aa014a */ lbu $t2,0x14a($sp) +/* f1261b0: 000b6600 */ sll $t4,$t3,0x18 +/* f1261b4: 4612c002 */ mul.s $f0,$f24,$f18 +/* f1261b8: 000fc400 */ sll $t8,$t7,0x10 +/* f1261bc: 000a5a00 */ sll $t3,$t2,0x8 +/* f1261c0: 3c02800b */ lui $v0,%hi(g_TexLightGlareConfigs) +/* f1261c4: 240f0001 */ addiu $t7,$zero,0x1 +/* f1261c8: 240e0001 */ addiu $t6,$zero,0x1 +/* f1261cc: 4600418d */ trunc.w.s $f6,$f8 +/* f1261d0: 461e0102 */ mul.s $f4,$f0,$f30 +/* f1261d4: 27a40170 */ addiu $a0,$sp,0x170 +/* f1261d8: 27a50134 */ addiu $a1,$sp,0x134 +/* f1261dc: 44083000 */ mfc1 $t0,$f6 +/* f1261e0: 27a6012c */ addiu $a2,$sp,0x12c +/* f1261e4: 310900ff */ andi $t1,$t0,0xff +/* f1261e8: 012c6825 */ or $t5,$t1,$t4 +/* f1261ec: 01b8c825 */ or $t9,$t5,$t8 +/* f1261f0: 032b4825 */ or $t1,$t9,$t3 +/* f1261f4: ac690004 */ sw $t1,0x4($v1) +/* f1261f8: c62a0000 */ lwc1 $f10,0x0($s1) +/* f1261fc: c6500000 */ lwc1 $f16,0x0($s2) +/* f126200: 8c42b5a0 */ lw $v0,%lo(g_TexLightGlareConfigs)($v0) +/* f126204: e7a4012c */ swc1 $f4,0x12c($sp) +/* f126208: e7a00130 */ swc1 $f0,0x130($sp) +/* f12620c: e7aa0134 */ swc1 $f10,0x134($sp) +/* f126210: e7b00138 */ swc1 $f16,0x138($sp) +/* f126214: 904c0041 */ lbu $t4,0x41($v0) +/* f126218: 90470040 */ lbu $a3,0x40($v0) +/* f12621c: 24180001 */ addiu $t8,$zero,0x1 +/* f126220: 240d0001 */ addiu $t5,$zero,0x1 +/* f126224: afad0020 */ sw $t5,0x20($sp) +/* f126228: afb80028 */ sw $t8,0x28($sp) +/* f12622c: afa00024 */ sw $zero,0x24($sp) +/* f126230: afaf001c */ sw $t7,0x1c($sp) +/* f126234: afae0018 */ sw $t6,0x18($sp) +/* f126238: afa00014 */ sw $zero,0x14($sp) +/* f12623c: 0fc2c854 */ jal func0f0b2150 +/* f126240: afac0010 */ sw $t4,0x10($sp) +/* f126244: 8fa80170 */ lw $t0,0x170($sp) +/* f126248: 3c19e700 */ lui $t9,0xe700 +/* f12624c: 3c0cba00 */ lui $t4,0xba00 +/* f126250: 250a0008 */ addiu $t2,$t0,0x8 +/* f126254: afaa0170 */ sw $t2,0x170($sp) +/* f126258: ad000004 */ sw $zero,0x4($t0) +/* f12625c: ad190000 */ sw $t9,0x0($t0) +/* f126260: 8fab0170 */ lw $t3,0x170($sp) +/* f126264: 358c0602 */ ori $t4,$t4,0x602 +/* f126268: 240e0040 */ addiu $t6,$zero,0x40 +/* f12626c: 25690008 */ addiu $t1,$t3,0x8 +/* f126270: afa90170 */ sw $t1,0x170($sp) +/* f126274: ad6e0004 */ sw $t6,0x4($t3) +/* f126278: ad6c0000 */ sw $t4,0x0($t3) +/* f12627c: 8faf0170 */ lw $t7,0x170($sp) +/* f126280: 3c18ba00 */ lui $t8,0xba00 +/* f126284: 37181301 */ ori $t8,$t8,0x1301 +/* f126288: 25ed0008 */ addiu $t5,$t7,0x8 +/* f12628c: afad0170 */ sw $t5,0x170($sp) +/* f126290: 3c080008 */ lui $t0,0x8 +/* f126294: ade80004 */ sw $t0,0x4($t7) +/* f126298: adf80000 */ sw $t8,0x0($t7) +/* f12629c: 8faa0170 */ lw $t2,0x170($sp) +/* f1262a0: 3c0bba00 */ lui $t3,0xba00 +/* f1262a4: 356b1001 */ ori $t3,$t3,0x1001 +/* f1262a8: 25590008 */ addiu $t9,$t2,0x8 +/* f1262ac: afb90170 */ sw $t9,0x170($sp) +/* f1262b0: 3c090001 */ lui $t1,0x1 +/* f1262b4: ad490004 */ sw $t1,0x4($t2) +/* f1262b8: 0c000920 */ jal bbufGetIndex1Buffer +/* f1262bc: ad4b0000 */ sw $t3,0x0($t2) +/* f1262c0: 8fac0098 */ lw $t4,0x98($sp) +/* f1262c4: 0fc49687 */ jal sky0f125a1c +/* f1262c8: 004c2021 */ addu $a0,$v0,$t4 +/* f1262cc: e7a00124 */ swc1 $f0,0x124($sp) +/* f1262d0: 8fae0120 */ lw $t6,0x120($sp) +.L0f1262d4: +/* f1262d4: c7a80124 */ lwc1 $f8,0x124($sp) +/* f1262d8: 51c0000c */ beqzl $t6,.L0f12630c +/* f1262dc: 8fa80094 */ lw $t0,0x94($sp) +/* f1262e0: 4608e03c */ c.lt.s $f28,$f8 +/* f1262e4: 8fa20094 */ lw $v0,0x94($sp) +/* f1262e8: 3c0d800a */ lui $t5,%hi(g_Vars+0x34) +/* f1262ec: 45020007 */ bc1fl .L0f12630c +/* f1262f0: 8fa80094 */ lw $t0,0x94($sp) +/* f1262f4: 8c4f0000 */ lw $t7,0x0($v0) +/* f1262f8: 8dad9ff4 */ lw $t5,%lo(g_Vars+0x34)($t5) +/* f1262fc: 01edc021 */ addu $t8,$t7,$t5 +/* f126300: 10000003 */ b .L0f126310 +/* f126304: ac580000 */ sw $t8,0x0($v0) +/* f126308: 8fa80094 */ lw $t0,0x94($sp) +.L0f12630c: +/* f12630c: ad000000 */ sw $zero,0x0($t0) +.L0f126310: +/* f126310: 8faa013c */ lw $t2,0x13c($sp) +.L0f126314: +/* f126314: 8fab0144 */ lw $t3,0x144($sp) +/* f126318: 2694000c */ addiu $s4,$s4,0xc +/* f12631c: 25590001 */ addiu $t9,$t2,0x1 +/* f126320: afb9013c */ sw $t9,0x13c($sp) +/* f126324: 9169000b */ lbu $t1,0xb($t3) +/* f126328: 26d60014 */ addiu $s6,$s6,0x14 +/* f12632c: 0329082a */ slt $at,$t9,$t1 +/* f126330: 5420fe18 */ bnezl $at,.L0f125b94 +/* f126334: c6d00004 */ lwc1 $f16,0x4($s6) +/* f126338: 8fa20170 */ lw $v0,0x170($sp) +.L0f12633c: +/* f12633c: 8fbf008c */ lw $ra,0x8c($sp) +/* f126340: d7b40038 */ ldc1 $f20,0x38($sp) +/* f126344: d7b60040 */ ldc1 $f22,0x40($sp) +/* f126348: d7b80048 */ ldc1 $f24,0x48($sp) +/* f12634c: d7ba0050 */ ldc1 $f26,0x50($sp) +/* f126350: d7bc0058 */ ldc1 $f28,0x58($sp) +/* f126354: d7be0060 */ ldc1 $f30,0x60($sp) +/* f126358: 8fb00068 */ lw $s0,0x68($sp) +/* f12635c: 8fb1006c */ lw $s1,0x6c($sp) +/* f126360: 8fb20070 */ lw $s2,0x70($sp) +/* f126364: 8fb30074 */ lw $s3,0x74($sp) +/* f126368: 8fb40078 */ lw $s4,0x78($sp) +/* f12636c: 8fb5007c */ lw $s5,0x7c($sp) +/* f126370: 8fb60080 */ lw $s6,0x80($sp) +/* f126374: 8fb70084 */ lw $s7,0x84($sp) +/* f126378: 8fbe0088 */ lw $s8,0x88($sp) +/* f12637c: 03e00008 */ jr $ra +/* f126380: 27bd0170 */ addiu $sp,$sp,0x170 +); +#endif + +#if VERSION == VERSION_PAL_FINAL +GLOBAL_ASM( +glabel sky0f126384 +.late_rodata +glabel var7f1b510c +.word 0x3c23d70a +glabel var7f1b5110 +.word 0x3bda740e +glabel var7f1b5114 +.word 0x3d23d70a +glabel var7f1b5118 +.word 0x3c4ccccd +glabel var7f1b511c +.word 0x3dcccccd +.text +/* f126e68: 27bdfe68 */ addiu $sp,$sp,-408 +/* f126e6c: 3c0f8008 */ lui $t7,0x8008 +/* f126e70: afbf008c */ sw $ra,0x8c($sp) +/* f126e74: afbe0088 */ sw $s8,0x88($sp) +/* f126e78: afb70084 */ sw $s7,0x84($sp) +/* f126e7c: afb60080 */ sw $s6,0x80($sp) +/* f126e80: afb5007c */ sw $s5,0x7c($sp) +/* f126e84: afb40078 */ sw $s4,0x78($sp) +/* f126e88: afb30074 */ sw $s3,0x74($sp) +/* f126e8c: afb20070 */ sw $s2,0x70($sp) +/* f126e90: afb1006c */ sw $s1,0x6c($sp) +/* f126e94: afb00068 */ sw $s0,0x68($sp) +/* f126e98: f7be0060 */ sdc1 $f30,0x60($sp) +/* f126e9c: f7bc0058 */ sdc1 $f28,0x58($sp) +/* f126ea0: f7ba0050 */ sdc1 $f26,0x50($sp) +/* f126ea4: f7b80048 */ sdc1 $f24,0x48($sp) +/* f126ea8: f7b60040 */ sdc1 $f22,0x40($sp) +/* f126eac: f7b40038 */ sdc1 $f20,0x38($sp) +/* f126eb0: afa40198 */ sw $a0,0x198($sp) +/* f126eb4: 25efe070 */ addiu $t7,$t7,-8080 +/* f126eb8: 8de10000 */ lw $at,0x0($t7) +/* f126ebc: 8de80004 */ lw $t0,0x4($t7) +/* f126ec0: 27ae0164 */ addiu $t6,$sp,0x164 +/* f126ec4: adc10000 */ sw $at,0x0($t6) +/* f126ec8: adc80004 */ sw $t0,0x4($t6) +/* f126ecc: 8de8000c */ lw $t0,0xc($t7) +/* f126ed0: 8de10008 */ lw $at,0x8($t7) +/* f126ed4: 3c0a8008 */ lui $t2,0x8008 +/* f126ed8: adc8000c */ sw $t0,0xc($t6) +/* f126edc: adc10008 */ sw $at,0x8($t6) +/* f126ee0: 8de10010 */ lw $at,0x10($t7) +/* f126ee4: 8de80014 */ lw $t0,0x14($t7) +/* f126ee8: 254ae088 */ addiu $t2,$t2,-8056 +/* f126eec: adc10010 */ sw $at,0x10($t6) +/* f126ef0: adc80014 */ sw $t0,0x14($t6) +/* f126ef4: 8d4d0004 */ lw $t5,0x4($t2) +/* f126ef8: 8d410000 */ lw $at,0x0($t2) +/* f126efc: 27a9014c */ addiu $t1,$sp,0x14c +/* f126f00: ad2d0004 */ sw $t5,0x4($t1) +/* f126f04: ad210000 */ sw $at,0x0($t1) +/* f126f08: 8d410008 */ lw $at,0x8($t2) +/* f126f0c: 8d4d000c */ lw $t5,0xc($t2) +/* f126f10: 3c188008 */ lui $t8,0x8008 +/* f126f14: ad210008 */ sw $at,0x8($t1) +/* f126f18: ad2d000c */ sw $t5,0xc($t1) +/* f126f1c: 8d4d0014 */ lw $t5,0x14($t2) +/* f126f20: 8d410010 */ lw $at,0x10($t2) +/* f126f24: 2718e0a0 */ addiu $t8,$t8,-8032 +/* f126f28: ad2d0014 */ sw $t5,0x14($t1) +/* f126f2c: ad210010 */ sw $at,0x10($t1) +/* f126f30: 8f080004 */ lw $t0,0x4($t8) +/* f126f34: 8f010000 */ lw $at,0x0($t8) +/* f126f38: 27b90134 */ addiu $t9,$sp,0x134 +/* f126f3c: af280004 */ sw $t0,0x4($t9) +/* f126f40: af210000 */ sw $at,0x0($t9) +/* f126f44: 8f010008 */ lw $at,0x8($t8) +/* f126f48: 8f08000c */ lw $t0,0xc($t8) +/* f126f4c: 4487b000 */ mtc1 $a3,$f22 +/* f126f50: af210008 */ sw $at,0x8($t9) +/* f126f54: af28000c */ sw $t0,0xc($t9) +/* f126f58: 8f080014 */ lw $t0,0x14($t8) +/* f126f5c: 8f010010 */ lw $at,0x10($t8) +/* f126f60: 4485d000 */ mtc1 $a1,$f26 +/* f126f64: 4486e000 */ mtc1 $a2,$f28 +/* f126f68: af280014 */ sw $t0,0x14($t9) +/* f126f6c: 0c002e73 */ jal viGetViewWidth +/* f126f70: af210010 */ sw $at,0x10($t9) +/* f126f74: 44822000 */ mtc1 $v0,$f4 +/* f126f78: 3c017f1b */ lui $at,0x7f1b +/* f126f7c: c43463fc */ lwc1 $f20,0x63fc($at) +/* f126f80: 468021a0 */ cvt.s.w $f6,$f4 +/* f126f84: 3c013f00 */ lui $at,0x3f00 +/* f126f88: 4481f000 */ mtc1 $at,$f30 +/* f126f8c: 00000000 */ nop +/* f126f90: 461e3202 */ mul.s $f8,$f6,$f30 +/* f126f94: 4608d281 */ sub.s $f10,$f26,$f8 +/* f126f98: 46145102 */ mul.s $f4,$f10,$f20 +/* f126f9c: 0c002e77 */ jal viGetViewHeight +/* f126fa0: e7a40130 */ swc1 $f4,0x130($sp) +/* f126fa4: 44823000 */ mtc1 $v0,$f6 +/* f126fa8: 3c16800b */ lui $s6,0x800b +/* f126fac: 26d6bb40 */ addiu $s6,$s6,-17600 +/* f126fb0: 46803220 */ cvt.s.w $f8,$f6 +/* f126fb4: 8ec50000 */ lw $a1,0x0($s6) +/* f126fb8: 27b50198 */ addiu $s5,$sp,0x198 +/* f126fbc: 240c0002 */ li $t4,0x2 +/* f126fc0: 240b0001 */ li $t3,0x1 +/* f126fc4: afab0014 */ sw $t3,0x14($sp) +/* f126fc8: 461e4282 */ mul.s $f10,$f8,$f30 +/* f126fcc: afac0010 */ sw $t4,0x10($sp) +/* f126fd0: 02a02025 */ move $a0,$s5 +/* f126fd4: 24060004 */ li $a2,0x4 +/* f126fd8: 00003825 */ move $a3,$zero +/* f126fdc: afa00018 */ sw $zero,0x18($sp) +/* f126fe0: 24a50048 */ addiu $a1,$a1,0x48 +/* f126fe4: 460ae101 */ sub.s $f4,$f28,$f10 +/* f126fe8: 46142182 */ mul.s $f6,$f4,$f20 +/* f126fec: 0fc2cfb8 */ jal tex0f0b39c0 +/* f126ff0: e7a6012c */ swc1 $f6,0x12c($sp) +/* f126ff4: 8fa90198 */ lw $t1,0x198($sp) +/* f126ff8: 3c10ba00 */ lui $s0,0xba00 +/* f126ffc: 36101402 */ ori $s0,$s0,0x1402 +/* f127000: 252a0008 */ addiu $t2,$t1,0x8 +/* f127004: afaa0198 */ sw $t2,0x198($sp) +/* f127008: ad200004 */ sw $zero,0x4($t1) +/* f12700c: ad300000 */ sw $s0,0x0($t1) +/* f127010: 8fad0198 */ lw $t5,0x198($sp) +/* f127014: 3c0eba00 */ lui $t6,0xba00 +/* f127018: 35ce0602 */ ori $t6,$t6,0x602 +/* f12701c: 25af0008 */ addiu $t7,$t5,0x8 +/* f127020: afaf0198 */ sw $t7,0x198($sp) +/* f127024: 24190040 */ li $t9,0x40 +/* f127028: adb90004 */ sw $t9,0x4($t5) +/* f12702c: adae0000 */ sw $t6,0x0($t5) +/* f127030: 8fb80198 */ lw $t8,0x198($sp) +/* f127034: 3c0cba00 */ lui $t4,0xba00 +/* f127038: 358c0402 */ ori $t4,$t4,0x402 +/* f12703c: 27080008 */ addiu $t0,$t8,0x8 +/* f127040: afa80198 */ sw $t0,0x198($sp) +/* f127044: af000004 */ sw $zero,0x4($t8) +/* f127048: af0c0000 */ sw $t4,0x0($t8) +/* f12704c: 8fab0198 */ lw $t3,0x198($sp) +/* f127050: 3c11b900 */ lui $s1,0xb900 +/* f127054: 3c120050 */ lui $s2,0x50 +/* f127058: 25690008 */ addiu $t1,$t3,0x8 +/* f12705c: afa90198 */ sw $t1,0x198($sp) +/* f127060: 365241c8 */ ori $s2,$s2,0x41c8 +/* f127064: 3631031d */ ori $s1,$s1,0x31d +/* f127068: ad710000 */ sw $s1,0x0($t3) +/* f12706c: ad720004 */ sw $s2,0x4($t3) +/* f127070: 8faa0198 */ lw $t2,0x198($sp) +/* f127074: 3c0fba00 */ lui $t7,0xba00 +/* f127078: 35ef1301 */ ori $t7,$t7,0x1301 +/* f12707c: 254d0008 */ addiu $t5,$t2,0x8 +/* f127080: afad0198 */ sw $t5,0x198($sp) +/* f127084: ad400004 */ sw $zero,0x4($t2) +/* f127088: ad4f0000 */ sw $t7,0x0($t2) +/* f12708c: 8fae0198 */ lw $t6,0x198($sp) +/* f127090: 3c13b900 */ lui $s3,0xb900 +/* f127094: 36730002 */ ori $s3,$s3,0x2 +/* f127098: 25d90008 */ addiu $t9,$t6,0x8 +/* f12709c: afb90198 */ sw $t9,0x198($sp) +/* f1270a0: adc00004 */ sw $zero,0x4($t6) +/* f1270a4: add30000 */ sw $s3,0x0($t6) +/* f1270a8: 8fb80198 */ lw $t8,0x198($sp) +/* f1270ac: 3c0cba00 */ lui $t4,0xba00 +/* f1270b0: 358c1001 */ ori $t4,$t4,0x1001 +/* f1270b4: 27080008 */ addiu $t0,$t8,0x8 +/* f1270b8: afa80198 */ sw $t0,0x198($sp) +/* f1270bc: af000004 */ sw $zero,0x4($t8) +/* f1270c0: af0c0000 */ sw $t4,0x0($t8) +/* f1270c4: 8fab0198 */ lw $t3,0x198($sp) +/* f1270c8: 3c14ba00 */ lui $s4,0xba00 +/* f1270cc: 36940903 */ ori $s4,$s4,0x903 +/* f1270d0: 25690008 */ addiu $t1,$t3,0x8 +/* f1270d4: afa90198 */ sw $t1,0x198($sp) +/* f1270d8: 240a0c00 */ li $t2,0xc00 +/* f1270dc: ad6a0004 */ sw $t2,0x4($t3) +/* f1270e0: ad740000 */ sw $s4,0x0($t3) +/* f1270e4: 8fad0198 */ lw $t5,0x198($sp) +/* f1270e8: 3c0eba00 */ lui $t6,0xba00 +/* f1270ec: 35ce0e02 */ ori $t6,$t6,0xe02 +/* f1270f0: 25af0008 */ addiu $t7,$t5,0x8 +/* f1270f4: afaf0198 */ sw $t7,0x198($sp) +/* f1270f8: ada00004 */ sw $zero,0x4($t5) +/* f1270fc: adae0000 */ sw $t6,0x0($t5) +/* f127100: 8fb90198 */ lw $t9,0x198($sp) +/* f127104: 3c08ba00 */ lui $t0,0xba00 +/* f127108: 35080c02 */ ori $t0,$t0,0xc02 +/* f12710c: 27380008 */ addiu $t8,$t9,0x8 +/* f127110: afb80198 */ sw $t8,0x198($sp) +/* f127114: 240c2000 */ li $t4,0x2000 +/* f127118: af2c0004 */ sw $t4,0x4($t9) +/* f12711c: af280000 */ sw $t0,0x0($t9) +/* f127120: 8fab0198 */ lw $t3,0x198($sp) +/* f127124: 3c0dff36 */ lui $t5,0xff36 +/* f127128: 3c0afcff */ lui $t2,0xfcff +/* f12712c: 25690008 */ addiu $t1,$t3,0x8 +/* f127130: afa90198 */ sw $t1,0x198($sp) +/* f127134: 354a9bff */ ori $t2,$t2,0x9bff +/* f127138: 35adff7f */ ori $t5,$t5,0xff7f +/* f12713c: ad6d0004 */ sw $t5,0x4($t3) +/* f127140: 0c002eee */ jal viGetFovY +/* f127144: ad6a0000 */ sw $t2,0x0($t3) +/* f127148: 8faf0198 */ lw $t7,0x198($sp) +/* f12714c: 3c17fb00 */ lui $s7,0xfb00 +/* f127150: 3c013f00 */ lui $at,0x3f00 +/* f127154: 25ee0008 */ addiu $t6,$t7,0x8 +/* f127158: afae0198 */ sw $t6,0x198($sp) +/* f12715c: adf70000 */ sw $s7,0x0($t7) +/* f127160: c7a801b0 */ lwc1 $f8,0x1b0($sp) +/* f127164: 4481a000 */ mtc1 $at,$f20 +/* f127168: 3c01437f */ lui $at,0x437f +/* f12716c: 46164282 */ mul.s $f10,$f8,$f22 +/* f127170: 44812000 */ mtc1 $at,$f4 +/* f127174: 2401ff00 */ li $at,-256 +/* f127178: 240a0001 */ li $t2,0x1 +/* f12717c: 27be0184 */ addiu $s8,$sp,0x184 +/* f127180: 240e0001 */ li $t6,0x1 +/* f127184: 24190001 */ li $t9,0x1 +/* f127188: 46045182 */ mul.s $f6,$f10,$f4 +/* f12718c: 03c02825 */ move $a1,$s8 +/* f127190: 02a02025 */ move $a0,$s5 +/* f127194: 4616a102 */ mul.s $f4,$f20,$f22 +/* f127198: 27a6017c */ addiu $a2,$sp,0x17c +/* f12719c: 4600320d */ trunc.w.s $f8,$f6 +/* f1271a0: 4604a180 */ add.s $f6,$f20,$f4 +/* f1271a4: 44184000 */ mfc1 $t8,$f8 +/* f1271a8: 00000000 */ nop +/* f1271ac: 330800ff */ andi $t0,$t8,0xff +/* f1271b0: 01016025 */ or $t4,$t0,$at +/* f1271b4: adec0004 */ sw $t4,0x4($t7) +/* f1271b8: c7aa01a8 */ lwc1 $f10,0x1a8($sp) +/* f1271bc: 3c014270 */ lui $at,0x4270 +/* f1271c0: 44812000 */ mtc1 $at,$f4 +/* f1271c4: 46065202 */ mul.s $f8,$f10,$f6 +/* f1271c8: 8ec20000 */ lw $v0,0x0($s6) +/* f1271cc: e7ba0184 */ swc1 $f26,0x184($sp) +/* f1271d0: e7bc0188 */ swc1 $f28,0x188($sp) +/* f1271d4: 240f0001 */ li $t7,0x1 +/* f1271d8: 24180001 */ li $t8,0x1 +/* f1271dc: 46002283 */ div.s $f10,$f4,$f0 +/* f1271e0: 46085182 */ mul.s $f6,$f10,$f8 +/* f1271e4: 4600310d */ trunc.w.s $f4,$f6 +/* f1271e8: 448a3000 */ mtc1 $t2,$f6 +/* f1271ec: 44092000 */ mfc1 $t1,$f4 +/* f1271f0: 46803620 */ cvt.s.w $f24,$f6 +/* f1271f4: 44895000 */ mtc1 $t1,$f10 +/* f1271f8: 00000000 */ nop +/* f1271fc: 46805220 */ cvt.s.w $f8,$f10 +/* f127200: 46144082 */ mul.s $f2,$f8,$f20 +/* f127204: 00000000 */ nop +/* f127208: 46181102 */ mul.s $f4,$f2,$f24 +/* f12720c: e7a20180 */ swc1 $f2,0x180($sp) +/* f127210: e7a4017c */ swc1 $f4,0x17c($sp) +/* f127214: 904d004d */ lbu $t5,0x4d($v0) +/* f127218: 9047004c */ lbu $a3,0x4c($v0) +/* f12721c: afb80028 */ sw $t8,0x28($sp) +/* f127220: afa00024 */ sw $zero,0x24($sp) +/* f127224: afb90020 */ sw $t9,0x20($sp) +/* f127228: afae001c */ sw $t6,0x1c($sp) +/* f12722c: afaf0018 */ sw $t7,0x18($sp) +/* f127230: afa00014 */ sw $zero,0x14($sp) +/* f127234: 0fc2c99c */ jal func0f0b2150 +/* f127238: afad0010 */ sw $t5,0x10($sp) +/* f12723c: 8ec50000 */ lw $a1,0x0($s6) +/* f127240: 24080002 */ li $t0,0x2 +/* f127244: 240c0001 */ li $t4,0x1 +/* f127248: afac0014 */ sw $t4,0x14($sp) +/* f12724c: afa80010 */ sw $t0,0x10($sp) +/* f127250: 02a02025 */ move $a0,$s5 +/* f127254: 24060004 */ li $a2,0x4 +/* f127258: 00003825 */ move $a3,$zero +/* f12725c: afa00018 */ sw $zero,0x18($sp) +/* f127260: 0fc2cfb8 */ jal tex0f0b39c0 +/* f127264: 24a5000c */ addiu $a1,$a1,0xc +/* f127268: 8fab0198 */ lw $t3,0x198($sp) +/* f12726c: 3c0fba00 */ lui $t7,0xba00 +/* f127270: 35ef0602 */ ori $t7,$t7,0x602 +/* f127274: 25690008 */ addiu $t1,$t3,0x8 +/* f127278: afa90198 */ sw $t1,0x198($sp) +/* f12727c: ad600004 */ sw $zero,0x4($t3) +/* f127280: ad700000 */ sw $s0,0x0($t3) +/* f127284: 8faa0198 */ lw $t2,0x198($sp) +/* f127288: 240e0040 */ li $t6,0x40 +/* f12728c: 3c08ba00 */ lui $t0,0xba00 +/* f127290: 254d0008 */ addiu $t5,$t2,0x8 +/* f127294: afad0198 */ sw $t5,0x198($sp) +/* f127298: ad4e0004 */ sw $t6,0x4($t2) +/* f12729c: ad4f0000 */ sw $t7,0x0($t2) +/* f1272a0: 8fb90198 */ lw $t9,0x198($sp) +/* f1272a4: 35080402 */ ori $t0,$t0,0x402 +/* f1272a8: 3c0dba00 */ lui $t5,0xba00 +/* f1272ac: 27380008 */ addiu $t8,$t9,0x8 +/* f1272b0: afb80198 */ sw $t8,0x198($sp) +/* f1272b4: af200004 */ sw $zero,0x4($t9) +/* f1272b8: af280000 */ sw $t0,0x0($t9) +/* f1272bc: 8fac0198 */ lw $t4,0x198($sp) +/* f1272c0: 35ad1301 */ ori $t5,$t5,0x1301 +/* f1272c4: 3c08ba00 */ lui $t0,0xba00 +/* f1272c8: 258b0008 */ addiu $t3,$t4,0x8 +/* f1272cc: afab0198 */ sw $t3,0x198($sp) +/* f1272d0: ad920004 */ sw $s2,0x4($t4) +/* f1272d4: ad910000 */ sw $s1,0x0($t4) +/* f1272d8: 8fa90198 */ lw $t1,0x198($sp) +/* f1272dc: 35081001 */ ori $t0,$t0,0x1001 +/* f1272e0: 3c017f1b */ lui $at,0x7f1b +/* f1272e4: 252a0008 */ addiu $t2,$t1,0x8 +/* f1272e8: afaa0198 */ sw $t2,0x198($sp) +/* f1272ec: ad200004 */ sw $zero,0x4($t1) +/* f1272f0: ad2d0000 */ sw $t5,0x0($t1) +/* f1272f4: 8faf0198 */ lw $t7,0x198($sp) +/* f1272f8: 24090c00 */ li $t1,0xc00 +/* f1272fc: 4480b000 */ mtc1 $zero,$f22 +/* f127300: 25ee0008 */ addiu $t6,$t7,0x8 +/* f127304: afae0198 */ sw $t6,0x198($sp) +/* f127308: ade00004 */ sw $zero,0x4($t7) +/* f12730c: adf30000 */ sw $s3,0x0($t7) +/* f127310: 8fb90198 */ lw $t9,0x198($sp) +/* f127314: 3c0fba00 */ lui $t7,0xba00 +/* f127318: 35ef0e02 */ ori $t7,$t7,0xe02 +/* f12731c: 27380008 */ addiu $t8,$t9,0x8 +/* f127320: afb80198 */ sw $t8,0x198($sp) +/* f127324: af200004 */ sw $zero,0x4($t9) +/* f127328: af280000 */ sw $t0,0x0($t9) +/* f12732c: 8fac0198 */ lw $t4,0x198($sp) +/* f127330: 3c18ba00 */ lui $t8,0xba00 +/* f127334: 37180c02 */ ori $t8,$t8,0xc02 +/* f127338: 258b0008 */ addiu $t3,$t4,0x8 +/* f12733c: afab0198 */ sw $t3,0x198($sp) +/* f127340: ad890004 */ sw $t1,0x4($t4) +/* f127344: ad940000 */ sw $s4,0x0($t4) +/* f127348: 8faa0198 */ lw $t2,0x198($sp) +/* f12734c: 24082000 */ li $t0,0x2000 +/* f127350: 3c09fcff */ lui $t1,0xfcff +/* f127354: 254d0008 */ addiu $t5,$t2,0x8 +/* f127358: afad0198 */ sw $t5,0x198($sp) +/* f12735c: ad400004 */ sw $zero,0x4($t2) +/* f127360: ad4f0000 */ sw $t7,0x0($t2) +/* f127364: 8fae0198 */ lw $t6,0x198($sp) +/* f127368: 3c0aff36 */ lui $t2,0xff36 +/* f12736c: 354aff7f */ ori $t2,$t2,0xff7f +/* f127370: 25d90008 */ addiu $t9,$t6,0x8 +/* f127374: afb90198 */ sw $t9,0x198($sp) +/* f127378: adc80004 */ sw $t0,0x4($t6) +/* f12737c: add80000 */ sw $t8,0x0($t6) +/* f127380: 8fac0198 */ lw $t4,0x198($sp) +/* f127384: 35299bff */ ori $t1,$t1,0x9bff +/* f127388: 27b4014c */ addiu $s4,$sp,0x14c +/* f12738c: 258b0008 */ addiu $t3,$t4,0x8 +/* f127390: afab0198 */ sw $t3,0x198($sp) +/* f127394: ad8a0004 */ sw $t2,0x4($t4) +/* f127398: ad890000 */ sw $t1,0x0($t4) +/* f12739c: c43e6400 */ lwc1 $f30,0x6400($at) +/* f1273a0: 3c014316 */ lui $at,0x4316 +/* f1273a4: e7bc01a0 */ swc1 $f28,0x1a0($sp) +/* f1273a8: 4481e000 */ mtc1 $at,$f28 +/* f1273ac: 3c013f80 */ lui $at,0x3f80 +/* f1273b0: e7ba019c */ swc1 $f26,0x19c($sp) +/* f1273b4: 4481d000 */ mtc1 $at,$f26 +/* f1273b8: 3c017f1b */ lui $at,0x7f1b +/* f1273bc: e7b80094 */ swc1 $f24,0x94($sp) +/* f1273c0: c4386404 */ lwc1 $f24,0x6404($at) +/* f1273c4: 8fb301ac */ lw $s3,0x1ac($sp) +/* f1273c8: 27b1014c */ addiu $s1,$sp,0x14c +/* f1273cc: 27b20164 */ addiu $s2,$sp,0x164 +/* f1273d0: 27b00134 */ addiu $s0,$sp,0x134 +.PF0f1273d4: +/* f1273d4: 2a61004b */ slti $at,$s3,0x4b +/* f1273d8: 1020000c */ beqz $at,.PF0f12740c +/* f1273dc: 266dffb5 */ addiu $t5,$s3,-75 +/* f1273e0: 2a610019 */ slti $at,$s3,0x19 +/* f1273e4: 10200007 */ beqz $at,.PF0f127404 +/* f1273e8: 00000000 */ nop +/* f1273ec: 44935000 */ mtc1 $s3,$f10 +/* f1273f0: 00000000 */ nop +/* f1273f4: 46805220 */ cvt.s.w $f8,$f10 +/* f1273f8: 46184082 */ mul.s $f2,$f8,$f24 +/* f1273fc: 10000011 */ b .PF0f127444 +/* f127400: 8e2f0000 */ lw $t7,0x0($s1) +.PF0f127404: +/* f127404: 1000000e */ b .PF0f127440 +/* f127408: 4600d086 */ mov.s $f2,$f26 +.PF0f12740c: +/* f12740c: 448d3000 */ mtc1 $t5,$f6 +/* f127410: 00000000 */ nop +/* f127414: 46803120 */ cvt.s.w $f4,$f6 +/* f127418: 4604e281 */ sub.s $f10,$f28,$f4 +/* f12741c: 461e5202 */ mul.s $f8,$f10,$f30 +/* f127420: 00000000 */ nop +/* f127424: 46144082 */ mul.s $f2,$f8,$f20 +/* f127428: 4616103c */ c.lt.s $f2,$f22 +/* f12742c: 00000000 */ nop +/* f127430: 45000002 */ bc1f .PF0f12743c +/* f127434: 00000000 */ nop +/* f127438: 4600b086 */ mov.s $f2,$f22 +.PF0f12743c: +/* f12743c: 46141080 */ add.s $f2,$f2,$f20 +.PF0f127440: +/* f127440: 8e2f0000 */ lw $t7,0x0($s1) +.PF0f127444: +/* f127444: c7aa0130 */ lwc1 $f10,0x130($sp) +/* f127448: 8fa30198 */ lw $v1,0x198($sp) +/* f12744c: 448f3000 */ mtc1 $t7,$f6 +/* f127450: c7a4019c */ lwc1 $f4,0x19c($sp) +/* f127454: 8e4e0000 */ lw $t6,0x0($s2) +/* f127458: 46803020 */ cvt.s.w $f0,$f6 +/* f12745c: 24780008 */ addiu $t8,$v1,0x8 +/* f127460: c7a601a0 */ lwc1 $f6,0x1a0($sp) +/* f127464: afb80198 */ sw $t8,0x198($sp) +/* f127468: 3c014f80 */ lui $at,0x4f80 +/* f12746c: 460a0202 */ mul.s $f8,$f0,$f10 +/* f127470: c7aa012c */ lwc1 $f10,0x12c($sp) +/* f127474: ac770000 */ sw $s7,0x0($v1) +/* f127478: 8e020000 */ lw $v0,0x0($s0) +/* f12747c: 304800ff */ andi $t0,$v0,0xff +/* f127480: 46082301 */ sub.s $f12,$f4,$f8 +/* f127484: 460a0102 */ mul.s $f4,$f0,$f10 +/* f127488: 448e4000 */ mtc1 $t6,$f8 +/* f12748c: 44885000 */ mtc1 $t0,$f10 +/* f127490: 46804420 */ cvt.s.w $f16,$f8 +/* f127494: c7a801b0 */ lwc1 $f8,0x1b0($sp) +/* f127498: 46043381 */ sub.s $f14,$f6,$f4 +/* f12749c: 468051a0 */ cvt.s.w $f6,$f10 +/* f1274a0: 46024282 */ mul.s $f10,$f8,$f2 +/* f1274a4: 05010004 */ bgez $t0,.PF0f1274b8 +/* f1274a8: 00000000 */ nop +/* f1274ac: 44812000 */ mtc1 $at,$f4 +/* f1274b0: 00000000 */ nop +/* f1274b4: 46043180 */ add.s $f6,$f6,$f4 +.PF0f1274b8: +/* f1274b8: 460a3102 */ mul.s $f4,$f6,$f10 +/* f1274bc: 02a02025 */ move $a0,$s5 +/* f1274c0: 00027e02 */ srl $t7,$v0,0x18 +/* f1274c4: 000f7600 */ sll $t6,$t7,0x18 +/* f1274c8: 00024402 */ srl $t0,$v0,0x10 +/* f1274cc: 310c00ff */ andi $t4,$t0,0xff +/* f1274d0: 00027a02 */ srl $t7,$v0,0x8 +/* f1274d4: 4600220d */ trunc.w.s $f8,$f4 +/* f1274d8: 46148482 */ mul.s $f18,$f16,$f20 +/* f1274dc: 03c02825 */ move $a1,$s8 +/* f1274e0: 27a6017c */ addiu $a2,$sp,0x17c +/* f1274e4: 440b4000 */ mfc1 $t3,$f8 +/* f1274e8: 00000000 */ nop +/* f1274ec: 316900ff */ andi $t1,$t3,0xff +/* f1274f0: 012ec825 */ or $t9,$t1,$t6 +/* f1274f4: 31e900ff */ andi $t1,$t7,0xff +/* f1274f8: 000c5c00 */ sll $t3,$t4,0x10 +/* f1274fc: 032b5025 */ or $t2,$t9,$t3 +/* f127500: 00097200 */ sll $t6,$t1,0x8 +/* f127504: 014ec025 */ or $t8,$t2,$t6 +/* f127508: ac780004 */ sw $t8,0x4($v1) +/* f12750c: c7a60094 */ lwc1 $f6,0x94($sp) +/* f127510: 8ec20000 */ lw $v0,0x0($s6) +/* f127514: e7ac0184 */ swc1 $f12,0x184($sp) +/* f127518: 46069282 */ mul.s $f10,$f18,$f6 +/* f12751c: e7ae0188 */ swc1 $f14,0x188($sp) +/* f127520: e7b20180 */ swc1 $f18,0x180($sp) +/* f127524: 240c0001 */ li $t4,0x1 +/* f127528: e7aa017c */ swc1 $f10,0x17c($sp) +/* f12752c: 90480011 */ lbu $t0,0x11($v0) +/* f127530: 90470010 */ lbu $a3,0x10($v0) +/* f127534: afac0028 */ sw $t4,0x28($sp) +/* f127538: afa00024 */ sw $zero,0x24($sp) +/* f12753c: afa00020 */ sw $zero,0x20($sp) +/* f127540: afa0001c */ sw $zero,0x1c($sp) +/* f127544: afa00018 */ sw $zero,0x18($sp) +/* f127548: afa00014 */ sw $zero,0x14($sp) +/* f12754c: 0fc2c99c */ jal func0f0b2150 +/* f127550: afa80010 */ sw $t0,0x10($sp) +/* f127554: 26100004 */ addiu $s0,$s0,0x4 +/* f127558: 26310004 */ addiu $s1,$s1,0x4 +/* f12755c: 1614ff9d */ bne $s0,$s4,.PF0f1273d4 +/* f127560: 26520004 */ addiu $s2,$s2,0x4 +/* f127564: 0c002e73 */ jal viGetViewWidth +/* f127568: 00000000 */ nop +/* f12756c: 44822000 */ mtc1 $v0,$f4 +/* f127570: 3c013f00 */ lui $at,0x3f00 +/* f127574: 4481c000 */ mtc1 $at,$f24 +/* f127578: 46802220 */ cvt.s.w $f8,$f4 +/* f12757c: c7aa019c */ lwc1 $f10,0x19c($sp) +/* f127580: 46184182 */ mul.s $f6,$f8,$f24 +/* f127584: 0c002e77 */ jal viGetViewHeight +/* f127588: 460a3501 */ sub.s $f20,$f6,$f10 +/* f12758c: 44822000 */ mtc1 $v0,$f4 +/* f127590: c7aa01a0 */ lwc1 $f10,0x1a0($sp) +/* f127594: 46802220 */ cvt.s.w $f8,$f4 +/* f127598: 46184182 */ mul.s $f6,$f8,$f24 +/* f12759c: 460a3001 */ sub.s $f0,$f6,$f10 +/* f1275a0: 4614a102 */ mul.s $f4,$f20,$f20 +/* f1275a4: 00000000 */ nop +/* f1275a8: 46000202 */ mul.s $f8,$f0,$f0 +/* f1275ac: 0c0127b4 */ jal sqrtf +/* f1275b0: 46082300 */ add.s $f12,$f4,$f8 +/* f1275b4: 3c014220 */ lui $at,0x4220 +/* f1275b8: 44813000 */ mtc1 $at,$f6 +/* f1275bc: 3c017f1b */ lui $at,0x7f1b +/* f1275c0: c4246408 */ lwc1 $f4,0x6408($at) +/* f1275c4: 46003281 */ sub.s $f10,$f6,$f0 +/* f1275c8: 3c19800a */ lui $t9,0x800a +/* f1275cc: c7a601b0 */ lwc1 $f6,0x1b0($sp) +/* f1275d0: 46045302 */ mul.s $f12,$f10,$f4 +/* f1275d4: 4616603c */ c.lt.s $f12,$f22 +/* f1275d8: 00000000 */ nop +/* f1275dc: 45000002 */ bc1f .PF0f1275e8 +/* f1275e0: 00000000 */ nop +/* f1275e4: 4600b306 */ mov.s $f12,$f22 +.PF0f1275e8: +/* f1275e8: 8f39a544 */ lw $t9,-0x5abc($t9) +/* f1275ec: 3c017f1b */ lui $at,0x7f1b +/* f1275f0: c428640c */ lwc1 $f8,0x640c($at) +/* f1275f4: 0333082a */ slt $at,$t9,$s3 +/* f1275f8: 14200002 */ bnez $at,.PF0f127604 +/* f1275fc: 46086300 */ add.s $f12,$f12,$f8 +/* f127600: 4600b306 */ mov.s $f12,$f22 +.PF0f127604: +/* f127604: 460cb03c */ c.lt.s $f22,$f12 +/* f127608: 00000000 */ nop +/* f12760c: 4502000d */ bc1fl .PF0f127644 +/* f127610: 8fad0198 */ lw $t5,0x198($sp) +/* f127614: 460c3282 */ mul.s $f10,$f6,$f12 +/* f127618: 3c01437f */ lui $at,0x437f +/* f12761c: 44812000 */ mtc1 $at,$f4 +/* f127620: 00000000 */ nop +/* f127624: 46045202 */ mul.s $f8,$f10,$f4 +/* f127628: 4600418d */ trunc.w.s $f6,$f8 +/* f12762c: 44043000 */ mfc1 $a0,$f6 +/* f127630: 00000000 */ nop +/* f127634: 00802825 */ move $a1,$a0 +/* f127638: 0fc49f81 */ jal sky0f127334 +/* f12763c: 00803025 */ move $a2,$a0 +/* f127640: 8fad0198 */ lw $t5,0x198($sp) +.PF0f127644: +/* f127644: 3c09ba00 */ lui $t1,0xba00 +/* f127648: 35290602 */ ori $t1,$t1,0x602 +/* f12764c: 25af0008 */ addiu $t7,$t5,0x8 +/* f127650: afaf0198 */ sw $t7,0x198($sp) +/* f127654: 240a0040 */ li $t2,0x40 +/* f127658: adaa0004 */ sw $t2,0x4($t5) +/* f12765c: ada90000 */ sw $t1,0x0($t5) +/* f127660: 8fae0198 */ lw $t6,0x198($sp) +/* f127664: 3c08ba00 */ lui $t0,0xba00 +/* f127668: 35080402 */ ori $t0,$t0,0x402 +/* f12766c: 25d80008 */ addiu $t8,$t6,0x8 +/* f127670: afb80198 */ sw $t8,0x198($sp) +/* f127674: 240c00c0 */ li $t4,0xc0 +/* f127678: adcc0004 */ sw $t4,0x4($t6) +/* f12767c: adc80000 */ sw $t0,0x0($t6) +/* f127680: 8fb90198 */ lw $t9,0x198($sp) +/* f127684: 3c0dba00 */ lui $t5,0xba00 +/* f127688: 35ad1301 */ ori $t5,$t5,0x1301 +/* f12768c: 272b0008 */ addiu $t3,$t9,0x8 +/* f127690: afab0198 */ sw $t3,0x198($sp) +/* f127694: 3c0f0008 */ lui $t7,0x8 +/* f127698: af2f0004 */ sw $t7,0x4($t9) +/* f12769c: af2d0000 */ sw $t5,0x0($t9) +/* f1276a0: 8fa90198 */ lw $t1,0x198($sp) +/* f1276a4: 3c0eba00 */ lui $t6,0xba00 +/* f1276a8: 35ce1001 */ ori $t6,$t6,0x1001 +/* f1276ac: 252a0008 */ addiu $t2,$t1,0x8 +/* f1276b0: afaa0198 */ sw $t2,0x198($sp) +/* f1276b4: 3c180001 */ lui $t8,0x1 +/* f1276b8: ad380004 */ sw $t8,0x4($t1) +/* f1276bc: ad2e0000 */ sw $t6,0x0($t1) +/* f1276c0: 8fbf008c */ lw $ra,0x8c($sp) +/* f1276c4: 8fbe0088 */ lw $s8,0x88($sp) +/* f1276c8: 8fb70084 */ lw $s7,0x84($sp) +/* f1276cc: 8fb60080 */ lw $s6,0x80($sp) +/* f1276d0: 8fb5007c */ lw $s5,0x7c($sp) +/* f1276d4: 8fb40078 */ lw $s4,0x78($sp) +/* f1276d8: 8fb30074 */ lw $s3,0x74($sp) +/* f1276dc: 8fb20070 */ lw $s2,0x70($sp) +/* f1276e0: 8fb1006c */ lw $s1,0x6c($sp) +/* f1276e4: 8fb00068 */ lw $s0,0x68($sp) +/* f1276e8: d7be0060 */ ldc1 $f30,0x60($sp) +/* f1276ec: d7bc0058 */ ldc1 $f28,0x58($sp) +/* f1276f0: d7ba0050 */ ldc1 $f26,0x50($sp) +/* f1276f4: d7b80048 */ ldc1 $f24,0x48($sp) +/* f1276f8: d7b60040 */ ldc1 $f22,0x40($sp) +/* f1276fc: d7b40038 */ ldc1 $f20,0x38($sp) +/* f127700: 8fa20198 */ lw $v0,0x198($sp) +/* f127704: 03e00008 */ jr $ra +/* f127708: 27bd0198 */ addiu $sp,$sp,0x198 +); +#elif VERSION == VERSION_PAL_BETA +GLOBAL_ASM( +glabel sky0f126384 +.late_rodata +glabel var7f1b510c +.word 0x3c23d70a +glabel var7f1b5110 +.word 0x3bda740e +glabel var7f1b5114 +.word 0x3d23d70a +glabel var7f1b5118 +.word 0x3c4ccccd +glabel var7f1b511c +.word 0x3dcccccd +.text +/* f127878: 27bdfe68 */ addiu $sp,$sp,-408 +/* f12787c: 3c0f8008 */ lui $t7,0x8008 +/* f127880: afbf008c */ sw $ra,0x8c($sp) +/* f127884: afbe0088 */ sw $s8,0x88($sp) +/* f127888: afb70084 */ sw $s7,0x84($sp) +/* f12788c: afb60080 */ sw $s6,0x80($sp) +/* f127890: afb5007c */ sw $s5,0x7c($sp) +/* f127894: afb40078 */ sw $s4,0x78($sp) +/* f127898: afb30074 */ sw $s3,0x74($sp) +/* f12789c: afb20070 */ sw $s2,0x70($sp) +/* f1278a0: afb1006c */ sw $s1,0x6c($sp) +/* f1278a4: afb00068 */ sw $s0,0x68($sp) +/* f1278a8: f7be0060 */ sdc1 $f30,0x60($sp) +/* f1278ac: f7bc0058 */ sdc1 $f28,0x58($sp) +/* f1278b0: f7ba0050 */ sdc1 $f26,0x50($sp) +/* f1278b4: f7b80048 */ sdc1 $f24,0x48($sp) +/* f1278b8: f7b60040 */ sdc1 $f22,0x40($sp) +/* f1278bc: f7b40038 */ sdc1 $f20,0x38($sp) +/* f1278c0: afa40198 */ sw $a0,0x198($sp) +/* f1278c4: 25ef0070 */ addiu $t7,$t7,0x70 +/* f1278c8: 8de10000 */ lw $at,0x0($t7) +/* f1278cc: 8de80004 */ lw $t0,0x4($t7) +/* f1278d0: 27ae0164 */ addiu $t6,$sp,0x164 +/* f1278d4: adc10000 */ sw $at,0x0($t6) +/* f1278d8: adc80004 */ sw $t0,0x4($t6) +/* f1278dc: 8de8000c */ lw $t0,0xc($t7) +/* f1278e0: 8de10008 */ lw $at,0x8($t7) +/* f1278e4: 3c0a8008 */ lui $t2,0x8008 +/* f1278e8: adc8000c */ sw $t0,0xc($t6) +/* f1278ec: adc10008 */ sw $at,0x8($t6) +/* f1278f0: 8de10010 */ lw $at,0x10($t7) +/* f1278f4: 8de80014 */ lw $t0,0x14($t7) +/* f1278f8: 254a0088 */ addiu $t2,$t2,0x88 +/* f1278fc: adc10010 */ sw $at,0x10($t6) +/* f127900: adc80014 */ sw $t0,0x14($t6) +/* f127904: 8d4d0004 */ lw $t5,0x4($t2) +/* f127908: 8d410000 */ lw $at,0x0($t2) +/* f12790c: 27a9014c */ addiu $t1,$sp,0x14c +/* f127910: ad2d0004 */ sw $t5,0x4($t1) +/* f127914: ad210000 */ sw $at,0x0($t1) +/* f127918: 8d410008 */ lw $at,0x8($t2) +/* f12791c: 8d4d000c */ lw $t5,0xc($t2) +/* f127920: 3c188008 */ lui $t8,0x8008 +/* f127924: ad210008 */ sw $at,0x8($t1) +/* f127928: ad2d000c */ sw $t5,0xc($t1) +/* f12792c: 8d4d0014 */ lw $t5,0x14($t2) +/* f127930: 8d410010 */ lw $at,0x10($t2) +/* f127934: 271800a0 */ addiu $t8,$t8,0xa0 +/* f127938: ad2d0014 */ sw $t5,0x14($t1) +/* f12793c: ad210010 */ sw $at,0x10($t1) +/* f127940: 8f080004 */ lw $t0,0x4($t8) +/* f127944: 8f010000 */ lw $at,0x0($t8) +/* f127948: 27b90134 */ addiu $t9,$sp,0x134 +/* f12794c: af280004 */ sw $t0,0x4($t9) +/* f127950: af210000 */ sw $at,0x0($t9) +/* f127954: 8f010008 */ lw $at,0x8($t8) +/* f127958: 8f08000c */ lw $t0,0xc($t8) +/* f12795c: 4487b000 */ mtc1 $a3,$f22 +/* f127960: af210008 */ sw $at,0x8($t9) +/* f127964: af28000c */ sw $t0,0xc($t9) +/* f127968: 8f080014 */ lw $t0,0x14($t8) +/* f12796c: 8f010010 */ lw $at,0x10($t8) +/* f127970: 4485d000 */ mtc1 $a1,$f26 +/* f127974: 4486e000 */ mtc1 $a2,$f28 +/* f127978: af280014 */ sw $t0,0x14($t9) +/* f12797c: 0c002e6d */ jal viGetViewWidth +/* f127980: af210010 */ sw $at,0x10($t9) +/* f127984: 44822000 */ mtc1 $v0,$f4 +/* f127988: 3c017f1b */ lui $at,0x7f1b +/* f12798c: c43470fc */ lwc1 $f20,0x70fc($at) +/* f127990: 468021a0 */ cvt.s.w $f6,$f4 +/* f127994: 3c013f00 */ lui $at,0x3f00 +/* f127998: 4481f000 */ mtc1 $at,$f30 +/* f12799c: 00000000 */ nop +/* f1279a0: 461e3202 */ mul.s $f8,$f6,$f30 +/* f1279a4: 4608d281 */ sub.s $f10,$f26,$f8 +/* f1279a8: 46145102 */ mul.s $f4,$f10,$f20 +/* f1279ac: 0c002e71 */ jal viGetViewHeight +/* f1279b0: e7a40130 */ swc1 $f4,0x130($sp) +/* f1279b4: 44823000 */ mtc1 $v0,$f6 +/* f1279b8: 3c16800b */ lui $s6,0x800b +/* f1279bc: 26d6fbc0 */ addiu $s6,$s6,-1088 +/* f1279c0: 46803220 */ cvt.s.w $f8,$f6 +/* f1279c4: 8ec50000 */ lw $a1,0x0($s6) +/* f1279c8: 27b50198 */ addiu $s5,$sp,0x198 +/* f1279cc: 240c0002 */ li $t4,0x2 +/* f1279d0: 240b0001 */ li $t3,0x1 +/* f1279d4: afab0014 */ sw $t3,0x14($sp) +/* f1279d8: 461e4282 */ mul.s $f10,$f8,$f30 +/* f1279dc: afac0010 */ sw $t4,0x10($sp) +/* f1279e0: 02a02025 */ move $a0,$s5 +/* f1279e4: 24060004 */ li $a2,0x4 +/* f1279e8: 00003825 */ move $a3,$zero +/* f1279ec: afa00018 */ sw $zero,0x18($sp) +/* f1279f0: 24a50048 */ addiu $a1,$a1,0x48 +/* f1279f4: 460ae101 */ sub.s $f4,$f28,$f10 +/* f1279f8: 46142182 */ mul.s $f6,$f4,$f20 +/* f1279fc: 0fc2cf74 */ jal tex0f0b39c0 +/* f127a00: e7a6012c */ swc1 $f6,0x12c($sp) +/* f127a04: 8fa90198 */ lw $t1,0x198($sp) +/* f127a08: 3c10ba00 */ lui $s0,0xba00 +/* f127a0c: 36101402 */ ori $s0,$s0,0x1402 +/* f127a10: 252a0008 */ addiu $t2,$t1,0x8 +/* f127a14: afaa0198 */ sw $t2,0x198($sp) +/* f127a18: ad200004 */ sw $zero,0x4($t1) +/* f127a1c: ad300000 */ sw $s0,0x0($t1) +/* f127a20: 8fad0198 */ lw $t5,0x198($sp) +/* f127a24: 3c0eba00 */ lui $t6,0xba00 +/* f127a28: 35ce0602 */ ori $t6,$t6,0x602 +/* f127a2c: 25af0008 */ addiu $t7,$t5,0x8 +/* f127a30: afaf0198 */ sw $t7,0x198($sp) +/* f127a34: 24190040 */ li $t9,0x40 +/* f127a38: adb90004 */ sw $t9,0x4($t5) +/* f127a3c: adae0000 */ sw $t6,0x0($t5) +/* f127a40: 8fb80198 */ lw $t8,0x198($sp) +/* f127a44: 3c0cba00 */ lui $t4,0xba00 +/* f127a48: 358c0402 */ ori $t4,$t4,0x402 +/* f127a4c: 27080008 */ addiu $t0,$t8,0x8 +/* f127a50: afa80198 */ sw $t0,0x198($sp) +/* f127a54: af000004 */ sw $zero,0x4($t8) +/* f127a58: af0c0000 */ sw $t4,0x0($t8) +/* f127a5c: 8fab0198 */ lw $t3,0x198($sp) +/* f127a60: 3c11b900 */ lui $s1,0xb900 +/* f127a64: 3c120050 */ lui $s2,0x50 +/* f127a68: 25690008 */ addiu $t1,$t3,0x8 +/* f127a6c: afa90198 */ sw $t1,0x198($sp) +/* f127a70: 365241c8 */ ori $s2,$s2,0x41c8 +/* f127a74: 3631031d */ ori $s1,$s1,0x31d +/* f127a78: ad710000 */ sw $s1,0x0($t3) +/* f127a7c: ad720004 */ sw $s2,0x4($t3) +/* f127a80: 8faa0198 */ lw $t2,0x198($sp) +/* f127a84: 3c0fba00 */ lui $t7,0xba00 +/* f127a88: 35ef1301 */ ori $t7,$t7,0x1301 +/* f127a8c: 254d0008 */ addiu $t5,$t2,0x8 +/* f127a90: afad0198 */ sw $t5,0x198($sp) +/* f127a94: ad400004 */ sw $zero,0x4($t2) +/* f127a98: ad4f0000 */ sw $t7,0x0($t2) +/* f127a9c: 8fae0198 */ lw $t6,0x198($sp) +/* f127aa0: 3c13b900 */ lui $s3,0xb900 +/* f127aa4: 36730002 */ ori $s3,$s3,0x2 +/* f127aa8: 25d90008 */ addiu $t9,$t6,0x8 +/* f127aac: afb90198 */ sw $t9,0x198($sp) +/* f127ab0: adc00004 */ sw $zero,0x4($t6) +/* f127ab4: add30000 */ sw $s3,0x0($t6) +/* f127ab8: 8fb80198 */ lw $t8,0x198($sp) +/* f127abc: 3c0cba00 */ lui $t4,0xba00 +/* f127ac0: 358c1001 */ ori $t4,$t4,0x1001 +/* f127ac4: 27080008 */ addiu $t0,$t8,0x8 +/* f127ac8: afa80198 */ sw $t0,0x198($sp) +/* f127acc: af000004 */ sw $zero,0x4($t8) +/* f127ad0: af0c0000 */ sw $t4,0x0($t8) +/* f127ad4: 8fab0198 */ lw $t3,0x198($sp) +/* f127ad8: 3c14ba00 */ lui $s4,0xba00 +/* f127adc: 36940903 */ ori $s4,$s4,0x903 +/* f127ae0: 25690008 */ addiu $t1,$t3,0x8 +/* f127ae4: afa90198 */ sw $t1,0x198($sp) +/* f127ae8: 240a0c00 */ li $t2,0xc00 +/* f127aec: ad6a0004 */ sw $t2,0x4($t3) +/* f127af0: ad740000 */ sw $s4,0x0($t3) +/* f127af4: 8fad0198 */ lw $t5,0x198($sp) +/* f127af8: 3c0eba00 */ lui $t6,0xba00 +/* f127afc: 35ce0e02 */ ori $t6,$t6,0xe02 +/* f127b00: 25af0008 */ addiu $t7,$t5,0x8 +/* f127b04: afaf0198 */ sw $t7,0x198($sp) +/* f127b08: ada00004 */ sw $zero,0x4($t5) +/* f127b0c: adae0000 */ sw $t6,0x0($t5) +/* f127b10: 8fb90198 */ lw $t9,0x198($sp) +/* f127b14: 3c08ba00 */ lui $t0,0xba00 +/* f127b18: 35080c02 */ ori $t0,$t0,0xc02 +/* f127b1c: 27380008 */ addiu $t8,$t9,0x8 +/* f127b20: afb80198 */ sw $t8,0x198($sp) +/* f127b24: 240c2000 */ li $t4,0x2000 +/* f127b28: af2c0004 */ sw $t4,0x4($t9) +/* f127b2c: af280000 */ sw $t0,0x0($t9) +/* f127b30: 8fab0198 */ lw $t3,0x198($sp) +/* f127b34: 3c0dff36 */ lui $t5,0xff36 +/* f127b38: 3c0afcff */ lui $t2,0xfcff +/* f127b3c: 25690008 */ addiu $t1,$t3,0x8 +/* f127b40: afa90198 */ sw $t1,0x198($sp) +/* f127b44: 354a9bff */ ori $t2,$t2,0x9bff +/* f127b48: 35adff7f */ ori $t5,$t5,0xff7f +/* f127b4c: ad6d0004 */ sw $t5,0x4($t3) +/* f127b50: 0c002ee8 */ jal viGetFovY +/* f127b54: ad6a0000 */ sw $t2,0x0($t3) +/* f127b58: 8faf0198 */ lw $t7,0x198($sp) +/* f127b5c: 3c17fb00 */ lui $s7,0xfb00 +/* f127b60: 3c013f00 */ lui $at,0x3f00 +/* f127b64: 25ee0008 */ addiu $t6,$t7,0x8 +/* f127b68: afae0198 */ sw $t6,0x198($sp) +/* f127b6c: adf70000 */ sw $s7,0x0($t7) +/* f127b70: c7a801b0 */ lwc1 $f8,0x1b0($sp) +/* f127b74: 4481a000 */ mtc1 $at,$f20 +/* f127b78: 3c01437f */ lui $at,0x437f +/* f127b7c: 46164282 */ mul.s $f10,$f8,$f22 +/* f127b80: 44812000 */ mtc1 $at,$f4 +/* f127b84: 2401ff00 */ li $at,-256 +/* f127b88: 240a0001 */ li $t2,0x1 +/* f127b8c: 27be0184 */ addiu $s8,$sp,0x184 +/* f127b90: 240e0001 */ li $t6,0x1 +/* f127b94: 24190001 */ li $t9,0x1 +/* f127b98: 46045182 */ mul.s $f6,$f10,$f4 +/* f127b9c: 03c02825 */ move $a1,$s8 +/* f127ba0: 02a02025 */ move $a0,$s5 +/* f127ba4: 4616a102 */ mul.s $f4,$f20,$f22 +/* f127ba8: 27a6017c */ addiu $a2,$sp,0x17c +/* f127bac: 4600320d */ trunc.w.s $f8,$f6 +/* f127bb0: 4604a180 */ add.s $f6,$f20,$f4 +/* f127bb4: 44184000 */ mfc1 $t8,$f8 +/* f127bb8: 00000000 */ nop +/* f127bbc: 330800ff */ andi $t0,$t8,0xff +/* f127bc0: 01016025 */ or $t4,$t0,$at +/* f127bc4: adec0004 */ sw $t4,0x4($t7) +/* f127bc8: c7aa01a8 */ lwc1 $f10,0x1a8($sp) +/* f127bcc: 3c014270 */ lui $at,0x4270 +/* f127bd0: 44812000 */ mtc1 $at,$f4 +/* f127bd4: 46065202 */ mul.s $f8,$f10,$f6 +/* f127bd8: 8ec20000 */ lw $v0,0x0($s6) +/* f127bdc: e7ba0184 */ swc1 $f26,0x184($sp) +/* f127be0: e7bc0188 */ swc1 $f28,0x188($sp) +/* f127be4: 240f0001 */ li $t7,0x1 +/* f127be8: 24180001 */ li $t8,0x1 +/* f127bec: 46002283 */ div.s $f10,$f4,$f0 +/* f127bf0: 46085182 */ mul.s $f6,$f10,$f8 +/* f127bf4: 4600310d */ trunc.w.s $f4,$f6 +/* f127bf8: 448a3000 */ mtc1 $t2,$f6 +/* f127bfc: 44092000 */ mfc1 $t1,$f4 +/* f127c00: 46803620 */ cvt.s.w $f24,$f6 +/* f127c04: 44895000 */ mtc1 $t1,$f10 +/* f127c08: 00000000 */ nop +/* f127c0c: 46805220 */ cvt.s.w $f8,$f10 +/* f127c10: 46144082 */ mul.s $f2,$f8,$f20 +/* f127c14: 00000000 */ nop +/* f127c18: 46181102 */ mul.s $f4,$f2,$f24 +/* f127c1c: e7a20180 */ swc1 $f2,0x180($sp) +/* f127c20: e7a4017c */ swc1 $f4,0x17c($sp) +/* f127c24: 904d004d */ lbu $t5,0x4d($v0) +/* f127c28: 9047004c */ lbu $a3,0x4c($v0) +/* f127c2c: afb80028 */ sw $t8,0x28($sp) +/* f127c30: afa00024 */ sw $zero,0x24($sp) +/* f127c34: afb90020 */ sw $t9,0x20($sp) +/* f127c38: afae001c */ sw $t6,0x1c($sp) +/* f127c3c: afaf0018 */ sw $t7,0x18($sp) +/* f127c40: afa00014 */ sw $zero,0x14($sp) +/* f127c44: 0fc2c958 */ jal func0f0b2150 +/* f127c48: afad0010 */ sw $t5,0x10($sp) +/* f127c4c: 8ec50000 */ lw $a1,0x0($s6) +/* f127c50: 24080002 */ li $t0,0x2 +/* f127c54: 240c0001 */ li $t4,0x1 +/* f127c58: afac0014 */ sw $t4,0x14($sp) +/* f127c5c: afa80010 */ sw $t0,0x10($sp) +/* f127c60: 02a02025 */ move $a0,$s5 +/* f127c64: 24060004 */ li $a2,0x4 +/* f127c68: 00003825 */ move $a3,$zero +/* f127c6c: afa00018 */ sw $zero,0x18($sp) +/* f127c70: 0fc2cf74 */ jal tex0f0b39c0 +/* f127c74: 24a5000c */ addiu $a1,$a1,0xc +/* f127c78: 8fab0198 */ lw $t3,0x198($sp) +/* f127c7c: 3c0fba00 */ lui $t7,0xba00 +/* f127c80: 35ef0602 */ ori $t7,$t7,0x602 +/* f127c84: 25690008 */ addiu $t1,$t3,0x8 +/* f127c88: afa90198 */ sw $t1,0x198($sp) +/* f127c8c: ad600004 */ sw $zero,0x4($t3) +/* f127c90: ad700000 */ sw $s0,0x0($t3) +/* f127c94: 8faa0198 */ lw $t2,0x198($sp) +/* f127c98: 240e0040 */ li $t6,0x40 +/* f127c9c: 3c08ba00 */ lui $t0,0xba00 +/* f127ca0: 254d0008 */ addiu $t5,$t2,0x8 +/* f127ca4: afad0198 */ sw $t5,0x198($sp) +/* f127ca8: ad4e0004 */ sw $t6,0x4($t2) +/* f127cac: ad4f0000 */ sw $t7,0x0($t2) +/* f127cb0: 8fb90198 */ lw $t9,0x198($sp) +/* f127cb4: 35080402 */ ori $t0,$t0,0x402 +/* f127cb8: 3c0dba00 */ lui $t5,0xba00 +/* f127cbc: 27380008 */ addiu $t8,$t9,0x8 +/* f127cc0: afb80198 */ sw $t8,0x198($sp) +/* f127cc4: af200004 */ sw $zero,0x4($t9) +/* f127cc8: af280000 */ sw $t0,0x0($t9) +/* f127ccc: 8fac0198 */ lw $t4,0x198($sp) +/* f127cd0: 35ad1301 */ ori $t5,$t5,0x1301 +/* f127cd4: 3c08ba00 */ lui $t0,0xba00 +/* f127cd8: 258b0008 */ addiu $t3,$t4,0x8 +/* f127cdc: afab0198 */ sw $t3,0x198($sp) +/* f127ce0: ad920004 */ sw $s2,0x4($t4) +/* f127ce4: ad910000 */ sw $s1,0x0($t4) +/* f127ce8: 8fa90198 */ lw $t1,0x198($sp) +/* f127cec: 35081001 */ ori $t0,$t0,0x1001 +/* f127cf0: 3c017f1b */ lui $at,0x7f1b +/* f127cf4: 252a0008 */ addiu $t2,$t1,0x8 +/* f127cf8: afaa0198 */ sw $t2,0x198($sp) +/* f127cfc: ad200004 */ sw $zero,0x4($t1) +/* f127d00: ad2d0000 */ sw $t5,0x0($t1) +/* f127d04: 8faf0198 */ lw $t7,0x198($sp) +/* f127d08: 24090c00 */ li $t1,0xc00 +/* f127d0c: 4480b000 */ mtc1 $zero,$f22 +/* f127d10: 25ee0008 */ addiu $t6,$t7,0x8 +/* f127d14: afae0198 */ sw $t6,0x198($sp) +/* f127d18: ade00004 */ sw $zero,0x4($t7) +/* f127d1c: adf30000 */ sw $s3,0x0($t7) +/* f127d20: 8fb90198 */ lw $t9,0x198($sp) +/* f127d24: 3c0fba00 */ lui $t7,0xba00 +/* f127d28: 35ef0e02 */ ori $t7,$t7,0xe02 +/* f127d2c: 27380008 */ addiu $t8,$t9,0x8 +/* f127d30: afb80198 */ sw $t8,0x198($sp) +/* f127d34: af200004 */ sw $zero,0x4($t9) +/* f127d38: af280000 */ sw $t0,0x0($t9) +/* f127d3c: 8fac0198 */ lw $t4,0x198($sp) +/* f127d40: 3c18ba00 */ lui $t8,0xba00 +/* f127d44: 37180c02 */ ori $t8,$t8,0xc02 +/* f127d48: 258b0008 */ addiu $t3,$t4,0x8 +/* f127d4c: afab0198 */ sw $t3,0x198($sp) +/* f127d50: ad890004 */ sw $t1,0x4($t4) +/* f127d54: ad940000 */ sw $s4,0x0($t4) +/* f127d58: 8faa0198 */ lw $t2,0x198($sp) +/* f127d5c: 24082000 */ li $t0,0x2000 +/* f127d60: 3c09fcff */ lui $t1,0xfcff +/* f127d64: 254d0008 */ addiu $t5,$t2,0x8 +/* f127d68: afad0198 */ sw $t5,0x198($sp) +/* f127d6c: ad400004 */ sw $zero,0x4($t2) +/* f127d70: ad4f0000 */ sw $t7,0x0($t2) +/* f127d74: 8fae0198 */ lw $t6,0x198($sp) +/* f127d78: 3c0aff36 */ lui $t2,0xff36 +/* f127d7c: 354aff7f */ ori $t2,$t2,0xff7f +/* f127d80: 25d90008 */ addiu $t9,$t6,0x8 +/* f127d84: afb90198 */ sw $t9,0x198($sp) +/* f127d88: adc80004 */ sw $t0,0x4($t6) +/* f127d8c: add80000 */ sw $t8,0x0($t6) +/* f127d90: 8fac0198 */ lw $t4,0x198($sp) +/* f127d94: 35299bff */ ori $t1,$t1,0x9bff +/* f127d98: 27b4014c */ addiu $s4,$sp,0x14c +/* f127d9c: 258b0008 */ addiu $t3,$t4,0x8 +/* f127da0: afab0198 */ sw $t3,0x198($sp) +/* f127da4: ad8a0004 */ sw $t2,0x4($t4) +/* f127da8: ad890000 */ sw $t1,0x0($t4) +/* f127dac: c43e7100 */ lwc1 $f30,0x7100($at) +/* f127db0: 3c014316 */ lui $at,0x4316 +/* f127db4: e7bc01a0 */ swc1 $f28,0x1a0($sp) +/* f127db8: 4481e000 */ mtc1 $at,$f28 +/* f127dbc: 3c013f80 */ lui $at,0x3f80 +/* f127dc0: e7ba019c */ swc1 $f26,0x19c($sp) +/* f127dc4: 4481d000 */ mtc1 $at,$f26 +/* f127dc8: 3c017f1b */ lui $at,0x7f1b +/* f127dcc: e7b80094 */ swc1 $f24,0x94($sp) +/* f127dd0: c4387104 */ lwc1 $f24,0x7104($at) +/* f127dd4: 8fb301ac */ lw $s3,0x1ac($sp) +/* f127dd8: 27b1014c */ addiu $s1,$sp,0x14c +/* f127ddc: 27b20164 */ addiu $s2,$sp,0x164 +/* f127de0: 27b00134 */ addiu $s0,$sp,0x134 +.PB0f127de4: +/* f127de4: 2a61004b */ slti $at,$s3,0x4b +/* f127de8: 1020000c */ beqz $at,.PB0f127e1c +/* f127dec: 266dffb5 */ addiu $t5,$s3,-75 +/* f127df0: 2a610019 */ slti $at,$s3,0x19 +/* f127df4: 10200007 */ beqz $at,.PB0f127e14 +/* f127df8: 00000000 */ nop +/* f127dfc: 44935000 */ mtc1 $s3,$f10 +/* f127e00: 00000000 */ nop +/* f127e04: 46805220 */ cvt.s.w $f8,$f10 +/* f127e08: 46184082 */ mul.s $f2,$f8,$f24 +/* f127e0c: 10000011 */ b .PB0f127e54 +/* f127e10: 8e2f0000 */ lw $t7,0x0($s1) +.PB0f127e14: +/* f127e14: 1000000e */ b .PB0f127e50 +/* f127e18: 4600d086 */ mov.s $f2,$f26 +.PB0f127e1c: +/* f127e1c: 448d3000 */ mtc1 $t5,$f6 +/* f127e20: 00000000 */ nop +/* f127e24: 46803120 */ cvt.s.w $f4,$f6 +/* f127e28: 4604e281 */ sub.s $f10,$f28,$f4 +/* f127e2c: 461e5202 */ mul.s $f8,$f10,$f30 +/* f127e30: 00000000 */ nop +/* f127e34: 46144082 */ mul.s $f2,$f8,$f20 +/* f127e38: 4616103c */ c.lt.s $f2,$f22 +/* f127e3c: 00000000 */ nop +/* f127e40: 45000002 */ bc1f .PB0f127e4c +/* f127e44: 00000000 */ nop +/* f127e48: 4600b086 */ mov.s $f2,$f22 +.PB0f127e4c: +/* f127e4c: 46141080 */ add.s $f2,$f2,$f20 +.PB0f127e50: +/* f127e50: 8e2f0000 */ lw $t7,0x0($s1) +.PB0f127e54: +/* f127e54: c7aa0130 */ lwc1 $f10,0x130($sp) +/* f127e58: 8fa30198 */ lw $v1,0x198($sp) +/* f127e5c: 448f3000 */ mtc1 $t7,$f6 +/* f127e60: c7a4019c */ lwc1 $f4,0x19c($sp) +/* f127e64: 8e4e0000 */ lw $t6,0x0($s2) +/* f127e68: 46803020 */ cvt.s.w $f0,$f6 +/* f127e6c: 24780008 */ addiu $t8,$v1,0x8 +/* f127e70: c7a601a0 */ lwc1 $f6,0x1a0($sp) +/* f127e74: afb80198 */ sw $t8,0x198($sp) +/* f127e78: 3c014f80 */ lui $at,0x4f80 +/* f127e7c: 460a0202 */ mul.s $f8,$f0,$f10 +/* f127e80: c7aa012c */ lwc1 $f10,0x12c($sp) +/* f127e84: ac770000 */ sw $s7,0x0($v1) +/* f127e88: 8e020000 */ lw $v0,0x0($s0) +/* f127e8c: 304800ff */ andi $t0,$v0,0xff +/* f127e90: 46082301 */ sub.s $f12,$f4,$f8 +/* f127e94: 460a0102 */ mul.s $f4,$f0,$f10 +/* f127e98: 448e4000 */ mtc1 $t6,$f8 +/* f127e9c: 44885000 */ mtc1 $t0,$f10 +/* f127ea0: 46804420 */ cvt.s.w $f16,$f8 +/* f127ea4: c7a801b0 */ lwc1 $f8,0x1b0($sp) +/* f127ea8: 46043381 */ sub.s $f14,$f6,$f4 +/* f127eac: 468051a0 */ cvt.s.w $f6,$f10 +/* f127eb0: 46024282 */ mul.s $f10,$f8,$f2 +/* f127eb4: 05010004 */ bgez $t0,.PB0f127ec8 +/* f127eb8: 00000000 */ nop +/* f127ebc: 44812000 */ mtc1 $at,$f4 +/* f127ec0: 00000000 */ nop +/* f127ec4: 46043180 */ add.s $f6,$f6,$f4 +.PB0f127ec8: +/* f127ec8: 460a3102 */ mul.s $f4,$f6,$f10 +/* f127ecc: 02a02025 */ move $a0,$s5 +/* f127ed0: 00027e02 */ srl $t7,$v0,0x18 +/* f127ed4: 000f7600 */ sll $t6,$t7,0x18 +/* f127ed8: 00024402 */ srl $t0,$v0,0x10 +/* f127edc: 310c00ff */ andi $t4,$t0,0xff +/* f127ee0: 00027a02 */ srl $t7,$v0,0x8 +/* f127ee4: 4600220d */ trunc.w.s $f8,$f4 +/* f127ee8: 46148482 */ mul.s $f18,$f16,$f20 +/* f127eec: 03c02825 */ move $a1,$s8 +/* f127ef0: 27a6017c */ addiu $a2,$sp,0x17c +/* f127ef4: 440b4000 */ mfc1 $t3,$f8 +/* f127ef8: 00000000 */ nop +/* f127efc: 316900ff */ andi $t1,$t3,0xff +/* f127f00: 012ec825 */ or $t9,$t1,$t6 +/* f127f04: 31e900ff */ andi $t1,$t7,0xff +/* f127f08: 000c5c00 */ sll $t3,$t4,0x10 +/* f127f0c: 032b5025 */ or $t2,$t9,$t3 +/* f127f10: 00097200 */ sll $t6,$t1,0x8 +/* f127f14: 014ec025 */ or $t8,$t2,$t6 +/* f127f18: ac780004 */ sw $t8,0x4($v1) +/* f127f1c: c7a60094 */ lwc1 $f6,0x94($sp) +/* f127f20: 8ec20000 */ lw $v0,0x0($s6) +/* f127f24: e7ac0184 */ swc1 $f12,0x184($sp) +/* f127f28: 46069282 */ mul.s $f10,$f18,$f6 +/* f127f2c: e7ae0188 */ swc1 $f14,0x188($sp) +/* f127f30: e7b20180 */ swc1 $f18,0x180($sp) +/* f127f34: 240c0001 */ li $t4,0x1 +/* f127f38: e7aa017c */ swc1 $f10,0x17c($sp) +/* f127f3c: 90480011 */ lbu $t0,0x11($v0) +/* f127f40: 90470010 */ lbu $a3,0x10($v0) +/* f127f44: afac0028 */ sw $t4,0x28($sp) +/* f127f48: afa00024 */ sw $zero,0x24($sp) +/* f127f4c: afa00020 */ sw $zero,0x20($sp) +/* f127f50: afa0001c */ sw $zero,0x1c($sp) +/* f127f54: afa00018 */ sw $zero,0x18($sp) +/* f127f58: afa00014 */ sw $zero,0x14($sp) +/* f127f5c: 0fc2c958 */ jal func0f0b2150 +/* f127f60: afa80010 */ sw $t0,0x10($sp) +/* f127f64: 26100004 */ addiu $s0,$s0,0x4 +/* f127f68: 26310004 */ addiu $s1,$s1,0x4 +/* f127f6c: 1614ff9d */ bne $s0,$s4,.PB0f127de4 +/* f127f70: 26520004 */ addiu $s2,$s2,0x4 +/* f127f74: 0c002e6d */ jal viGetViewWidth +/* f127f78: 00000000 */ nop +/* f127f7c: 44822000 */ mtc1 $v0,$f4 +/* f127f80: 3c013f00 */ lui $at,0x3f00 +/* f127f84: 4481c000 */ mtc1 $at,$f24 +/* f127f88: 46802220 */ cvt.s.w $f8,$f4 +/* f127f8c: c7aa019c */ lwc1 $f10,0x19c($sp) +/* f127f90: 46184182 */ mul.s $f6,$f8,$f24 +/* f127f94: 0c002e71 */ jal viGetViewHeight +/* f127f98: 460a3501 */ sub.s $f20,$f6,$f10 +/* f127f9c: 44822000 */ mtc1 $v0,$f4 +/* f127fa0: c7aa01a0 */ lwc1 $f10,0x1a0($sp) +/* f127fa4: 46802220 */ cvt.s.w $f8,$f4 +/* f127fa8: 46184182 */ mul.s $f6,$f8,$f24 +/* f127fac: 460a3001 */ sub.s $f0,$f6,$f10 +/* f127fb0: 4614a102 */ mul.s $f4,$f20,$f20 +/* f127fb4: 00000000 */ nop +/* f127fb8: 46000202 */ mul.s $f8,$f0,$f0 +/* f127fbc: 0c012ae4 */ jal sqrtf +/* f127fc0: 46082300 */ add.s $f12,$f4,$f8 +/* f127fc4: 3c014220 */ lui $at,0x4220 +/* f127fc8: 44813000 */ mtc1 $at,$f6 +/* f127fcc: 3c017f1b */ lui $at,0x7f1b +/* f127fd0: c4247108 */ lwc1 $f4,0x7108($at) +/* f127fd4: 46003281 */ sub.s $f10,$f6,$f0 +/* f127fd8: 3c19800a */ lui $t9,0x800a +/* f127fdc: c7a601b0 */ lwc1 $f6,0x1b0($sp) +/* f127fe0: 46045302 */ mul.s $f12,$f10,$f4 +/* f127fe4: 4616603c */ c.lt.s $f12,$f22 +/* f127fe8: 00000000 */ nop +/* f127fec: 45000002 */ bc1f .PB0f127ff8 +/* f127ff0: 00000000 */ nop +/* f127ff4: 4600b306 */ mov.s $f12,$f22 +.PB0f127ff8: +/* f127ff8: 8f39e504 */ lw $t9,-0x1afc($t9) +/* f127ffc: 3c017f1b */ lui $at,0x7f1b +/* f128000: c428710c */ lwc1 $f8,0x710c($at) +/* f128004: 0333082a */ slt $at,$t9,$s3 +/* f128008: 14200002 */ bnez $at,.PB0f128014 +/* f12800c: 46086300 */ add.s $f12,$f12,$f8 +/* f128010: 4600b306 */ mov.s $f12,$f22 +.PB0f128014: +/* f128014: 460cb03c */ c.lt.s $f22,$f12 +/* f128018: 00000000 */ nop +/* f12801c: 4502000d */ bc1fl .PB0f128054 +/* f128020: 8fad0198 */ lw $t5,0x198($sp) +/* f128024: 460c3282 */ mul.s $f10,$f6,$f12 +/* f128028: 3c01437f */ lui $at,0x437f +/* f12802c: 44812000 */ mtc1 $at,$f4 +/* f128030: 00000000 */ nop +/* f128034: 46045202 */ mul.s $f8,$f10,$f4 +/* f128038: 4600418d */ trunc.w.s $f6,$f8 +/* f12803c: 44043000 */ mfc1 $a0,$f6 +/* f128040: 00000000 */ nop +/* f128044: 00802825 */ move $a1,$a0 +/* f128048: 0fc4a205 */ jal sky0f127334 +/* f12804c: 00803025 */ move $a2,$a0 +/* f128050: 8fad0198 */ lw $t5,0x198($sp) +.PB0f128054: +/* f128054: 3c09ba00 */ lui $t1,0xba00 +/* f128058: 35290602 */ ori $t1,$t1,0x602 +/* f12805c: 25af0008 */ addiu $t7,$t5,0x8 +/* f128060: afaf0198 */ sw $t7,0x198($sp) +/* f128064: 240a0040 */ li $t2,0x40 +/* f128068: adaa0004 */ sw $t2,0x4($t5) +/* f12806c: ada90000 */ sw $t1,0x0($t5) +/* f128070: 8fae0198 */ lw $t6,0x198($sp) +/* f128074: 3c08ba00 */ lui $t0,0xba00 +/* f128078: 35080402 */ ori $t0,$t0,0x402 +/* f12807c: 25d80008 */ addiu $t8,$t6,0x8 +/* f128080: afb80198 */ sw $t8,0x198($sp) +/* f128084: 240c00c0 */ li $t4,0xc0 +/* f128088: adcc0004 */ sw $t4,0x4($t6) +/* f12808c: adc80000 */ sw $t0,0x0($t6) +/* f128090: 8fb90198 */ lw $t9,0x198($sp) +/* f128094: 3c0dba00 */ lui $t5,0xba00 +/* f128098: 35ad1301 */ ori $t5,$t5,0x1301 +/* f12809c: 272b0008 */ addiu $t3,$t9,0x8 +/* f1280a0: afab0198 */ sw $t3,0x198($sp) +/* f1280a4: 3c0f0008 */ lui $t7,0x8 +/* f1280a8: af2f0004 */ sw $t7,0x4($t9) +/* f1280ac: af2d0000 */ sw $t5,0x0($t9) +/* f1280b0: 8fa90198 */ lw $t1,0x198($sp) +/* f1280b4: 3c0eba00 */ lui $t6,0xba00 +/* f1280b8: 35ce1001 */ ori $t6,$t6,0x1001 +/* f1280bc: 252a0008 */ addiu $t2,$t1,0x8 +/* f1280c0: afaa0198 */ sw $t2,0x198($sp) +/* f1280c4: 3c180001 */ lui $t8,0x1 +/* f1280c8: ad380004 */ sw $t8,0x4($t1) +/* f1280cc: ad2e0000 */ sw $t6,0x0($t1) +/* f1280d0: 8fbf008c */ lw $ra,0x8c($sp) +/* f1280d4: 8fbe0088 */ lw $s8,0x88($sp) +/* f1280d8: 8fb70084 */ lw $s7,0x84($sp) +/* f1280dc: 8fb60080 */ lw $s6,0x80($sp) +/* f1280e0: 8fb5007c */ lw $s5,0x7c($sp) +/* f1280e4: 8fb40078 */ lw $s4,0x78($sp) +/* f1280e8: 8fb30074 */ lw $s3,0x74($sp) +/* f1280ec: 8fb20070 */ lw $s2,0x70($sp) +/* f1280f0: 8fb1006c */ lw $s1,0x6c($sp) +/* f1280f4: 8fb00068 */ lw $s0,0x68($sp) +/* f1280f8: d7be0060 */ ldc1 $f30,0x60($sp) +/* f1280fc: d7bc0058 */ ldc1 $f28,0x58($sp) +/* f128100: d7ba0050 */ ldc1 $f26,0x50($sp) +/* f128104: d7b80048 */ ldc1 $f24,0x48($sp) +/* f128108: d7b60040 */ ldc1 $f22,0x40($sp) +/* f12810c: d7b40038 */ ldc1 $f20,0x38($sp) +/* f128110: 8fa20198 */ lw $v0,0x198($sp) +/* f128114: 03e00008 */ jr $ra +/* f128118: 27bd0198 */ addiu $sp,$sp,0x198 +); +#else +GLOBAL_ASM( +glabel sky0f126384 +.late_rodata +glabel var7f1b510c +.word 0x3c23d70a +glabel var7f1b5110 +.word 0x3bb60b61 +glabel var7f1b5114 +.word 0x3d088889 +glabel var7f1b5118 +.word 0x3c4ccccd +glabel var7f1b511c +.word 0x3dcccccd +.text +/* f126384: 27bdfe70 */ addiu $sp,$sp,-400 +/* f126388: 3c0f8008 */ lui $t7,%hi(var8007dba0) +/* f12638c: afbf0084 */ sw $ra,0x84($sp) +/* f126390: afb70080 */ sw $s7,0x80($sp) +/* f126394: afb6007c */ sw $s6,0x7c($sp) +/* f126398: afb50078 */ sw $s5,0x78($sp) +/* f12639c: afb40074 */ sw $s4,0x74($sp) +/* f1263a0: afb30070 */ sw $s3,0x70($sp) +/* f1263a4: afb2006c */ sw $s2,0x6c($sp) +/* f1263a8: afb10068 */ sw $s1,0x68($sp) +/* f1263ac: afb00064 */ sw $s0,0x64($sp) +/* f1263b0: f7be0058 */ sdc1 $f30,0x58($sp) +/* f1263b4: f7bc0050 */ sdc1 $f28,0x50($sp) +/* f1263b8: f7ba0048 */ sdc1 $f26,0x48($sp) +/* f1263bc: f7b80040 */ sdc1 $f24,0x40($sp) +/* f1263c0: f7b60038 */ sdc1 $f22,0x38($sp) +/* f1263c4: f7b40030 */ sdc1 $f20,0x30($sp) +/* f1263c8: afa40190 */ sw $a0,0x190($sp) +/* f1263cc: 25efdba0 */ addiu $t7,$t7,%lo(var8007dba0) +/* f1263d0: 8de10000 */ lw $at,0x0($t7) +/* f1263d4: 8de80004 */ lw $t0,0x4($t7) +/* f1263d8: 27ae015c */ addiu $t6,$sp,0x15c +/* f1263dc: adc10000 */ sw $at,0x0($t6) +/* f1263e0: adc80004 */ sw $t0,0x4($t6) +/* f1263e4: 8de8000c */ lw $t0,0xc($t7) +/* f1263e8: 8de10008 */ lw $at,0x8($t7) +/* f1263ec: 3c0a8008 */ lui $t2,%hi(var8007dbb8) +/* f1263f0: adc8000c */ sw $t0,0xc($t6) +/* f1263f4: adc10008 */ sw $at,0x8($t6) +/* f1263f8: 8de10010 */ lw $at,0x10($t7) +/* f1263fc: 8de80014 */ lw $t0,0x14($t7) +/* f126400: 254adbb8 */ addiu $t2,$t2,%lo(var8007dbb8) +/* f126404: adc10010 */ sw $at,0x10($t6) +/* f126408: adc80014 */ sw $t0,0x14($t6) +/* f12640c: 8d4d0004 */ lw $t5,0x4($t2) +/* f126410: 8d410000 */ lw $at,0x0($t2) +/* f126414: 27a90144 */ addiu $t1,$sp,0x144 +/* f126418: ad2d0004 */ sw $t5,0x4($t1) +/* f12641c: ad210000 */ sw $at,0x0($t1) +/* f126420: 8d410008 */ lw $at,0x8($t2) +/* f126424: 8d4d000c */ lw $t5,0xc($t2) +/* f126428: 3c188008 */ lui $t8,%hi(var8007dbd0) +/* f12642c: ad210008 */ sw $at,0x8($t1) +/* f126430: ad2d000c */ sw $t5,0xc($t1) +/* f126434: 8d4d0014 */ lw $t5,0x14($t2) +/* f126438: 8d410010 */ lw $at,0x10($t2) +/* f12643c: 2718dbd0 */ addiu $t8,$t8,%lo(var8007dbd0) +/* f126440: ad2d0014 */ sw $t5,0x14($t1) +/* f126444: ad210010 */ sw $at,0x10($t1) +/* f126448: 8f080004 */ lw $t0,0x4($t8) +/* f12644c: 8f010000 */ lw $at,0x0($t8) +/* f126450: 27b9012c */ addiu $t9,$sp,0x12c +/* f126454: af280004 */ sw $t0,0x4($t9) +/* f126458: af210000 */ sw $at,0x0($t9) +/* f12645c: 8f010008 */ lw $at,0x8($t8) +/* f126460: 8f08000c */ lw $t0,0xc($t8) +/* f126464: 3c0c8007 */ lui $t4,%hi(g_ViRes) +/* f126468: af210008 */ sw $at,0x8($t9) +/* f12646c: af28000c */ sw $t0,0xc($t9) +/* f126470: 8f080014 */ lw $t0,0x14($t8) +/* f126474: 8f010010 */ lw $at,0x10($t8) +/* f126478: 4487b000 */ mtc1 $a3,$f22 +/* f12647c: af280014 */ sw $t0,0x14($t9) +/* f126480: af210010 */ sw $at,0x10($t9) +/* f126484: 8d8c06c8 */ lw $t4,%lo(g_ViRes)($t4) +/* f126488: 4485d000 */ mtc1 $a1,$f26 +/* f12648c: 4486e000 */ mtc1 $a2,$f28 +/* f126490: 24010001 */ addiu $at,$zero,0x1 +/* f126494: 15810002 */ bne $t4,$at,.L0f1264a0 +/* f126498: 24100001 */ addiu $s0,$zero,0x1 +/* f12649c: 24100002 */ addiu $s0,$zero,0x2 +.L0f1264a0: +/* f1264a0: 0c002f22 */ jal viGetViewWidth +/* f1264a4: 00000000 */ nop +/* f1264a8: 44822000 */ mtc1 $v0,$f4 +/* f1264ac: 3c017f1b */ lui $at,%hi(var7f1b510c) +/* f1264b0: c434510c */ lwc1 $f20,%lo(var7f1b510c)($at) +/* f1264b4: 468021a0 */ cvt.s.w $f6,$f4 +/* f1264b8: 3c013f00 */ lui $at,0x3f00 +/* f1264bc: 4481f000 */ mtc1 $at,$f30 +/* f1264c0: 00000000 */ nop +/* f1264c4: 461e3202 */ mul.s $f8,$f6,$f30 +/* f1264c8: 4608d281 */ sub.s $f10,$f26,$f8 +/* f1264cc: 46145102 */ mul.s $f4,$f10,$f20 +/* f1264d0: 0c002f26 */ jal viGetViewHeight +/* f1264d4: e7a40128 */ swc1 $f4,0x128($sp) +/* f1264d8: 44823000 */ mtc1 $v0,$f6 +/* f1264dc: 3c16800b */ lui $s6,%hi(g_TexLightGlareConfigs) +/* f1264e0: 26d6b5a0 */ addiu $s6,$s6,%lo(g_TexLightGlareConfigs) +/* f1264e4: 46803220 */ cvt.s.w $f8,$f6 +/* f1264e8: 8ec50000 */ lw $a1,0x0($s6) +/* f1264ec: 27b50190 */ addiu $s5,$sp,0x190 +/* f1264f0: 240b0002 */ addiu $t3,$zero,0x2 +/* f1264f4: 24090001 */ addiu $t1,$zero,0x1 +/* f1264f8: afa90014 */ sw $t1,0x14($sp) +/* f1264fc: 461e4282 */ mul.s $f10,$f8,$f30 +/* f126500: afab0010 */ sw $t3,0x10($sp) +/* f126504: 02a02025 */ or $a0,$s5,$zero +/* f126508: 24060004 */ addiu $a2,$zero,0x4 +/* f12650c: 00003825 */ or $a3,$zero,$zero +/* f126510: afa00018 */ sw $zero,0x18($sp) +/* f126514: 24a50048 */ addiu $a1,$a1,0x48 +/* f126518: 460ae101 */ sub.s $f4,$f28,$f10 +/* f12651c: 46142182 */ mul.s $f6,$f4,$f20 +/* f126520: 0fc2ce70 */ jal tex0f0b39c0 +/* f126524: e7a60124 */ swc1 $f6,0x124($sp) +/* f126528: 8faa0190 */ lw $t2,0x190($sp) +/* f12652c: 3c11ba00 */ lui $s1,0xba00 +/* f126530: 36311402 */ ori $s1,$s1,0x1402 +/* f126534: 254d0008 */ addiu $t5,$t2,0x8 +/* f126538: afad0190 */ sw $t5,0x190($sp) +/* f12653c: ad400004 */ sw $zero,0x4($t2) +/* f126540: ad510000 */ sw $s1,0x0($t2) +/* f126544: 8faf0190 */ lw $t7,0x190($sp) +/* f126548: 3c19ba00 */ lui $t9,0xba00 +/* f12654c: 37390602 */ ori $t9,$t9,0x602 +/* f126550: 25ee0008 */ addiu $t6,$t7,0x8 +/* f126554: afae0190 */ sw $t6,0x190($sp) +/* f126558: 24180040 */ addiu $t8,$zero,0x40 +/* f12655c: adf80004 */ sw $t8,0x4($t7) +/* f126560: adf90000 */ sw $t9,0x0($t7) +/* f126564: 8fa80190 */ lw $t0,0x190($sp) +/* f126568: 3c0bba00 */ lui $t3,0xba00 +/* f12656c: 356b0402 */ ori $t3,$t3,0x402 +/* f126570: 250c0008 */ addiu $t4,$t0,0x8 +/* f126574: afac0190 */ sw $t4,0x190($sp) +/* f126578: ad000004 */ sw $zero,0x4($t0) +/* f12657c: ad0b0000 */ sw $t3,0x0($t0) +/* f126580: 8fa90190 */ lw $t1,0x190($sp) +/* f126584: 3c12b900 */ lui $s2,0xb900 +/* f126588: 3c130050 */ lui $s3,0x50 +/* f12658c: 252a0008 */ addiu $t2,$t1,0x8 +/* f126590: afaa0190 */ sw $t2,0x190($sp) +/* f126594: 367341c8 */ ori $s3,$s3,0x41c8 +/* f126598: 3652031d */ ori $s2,$s2,0x31d +/* f12659c: ad320000 */ sw $s2,0x0($t1) +/* f1265a0: ad330004 */ sw $s3,0x4($t1) +/* f1265a4: 8fad0190 */ lw $t5,0x190($sp) +/* f1265a8: 3c0eba00 */ lui $t6,0xba00 +/* f1265ac: 35ce1301 */ ori $t6,$t6,0x1301 +/* f1265b0: 25af0008 */ addiu $t7,$t5,0x8 +/* f1265b4: afaf0190 */ sw $t7,0x190($sp) +/* f1265b8: ada00004 */ sw $zero,0x4($t5) +/* f1265bc: adae0000 */ sw $t6,0x0($t5) +/* f1265c0: 8fb90190 */ lw $t9,0x190($sp) +/* f1265c4: 3c14b900 */ lui $s4,0xb900 +/* f1265c8: 36940002 */ ori $s4,$s4,0x2 +/* f1265cc: 27380008 */ addiu $t8,$t9,0x8 +/* f1265d0: afb80190 */ sw $t8,0x190($sp) +/* f1265d4: af200004 */ sw $zero,0x4($t9) +/* f1265d8: af340000 */ sw $s4,0x0($t9) +/* f1265dc: 8fa80190 */ lw $t0,0x190($sp) +/* f1265e0: 3c0bba00 */ lui $t3,0xba00 +/* f1265e4: 356b1001 */ ori $t3,$t3,0x1001 +/* f1265e8: 250c0008 */ addiu $t4,$t0,0x8 +/* f1265ec: afac0190 */ sw $t4,0x190($sp) +/* f1265f0: ad000004 */ sw $zero,0x4($t0) +/* f1265f4: ad0b0000 */ sw $t3,0x0($t0) +/* f1265f8: 8fa90190 */ lw $t1,0x190($sp) +/* f1265fc: 3c0dba00 */ lui $t5,0xba00 +/* f126600: 35ad0903 */ ori $t5,$t5,0x903 +/* f126604: 252a0008 */ addiu $t2,$t1,0x8 +/* f126608: afaa0190 */ sw $t2,0x190($sp) +/* f12660c: 240f0c00 */ addiu $t7,$zero,0xc00 +/* f126610: ad2f0004 */ sw $t7,0x4($t1) +/* f126614: ad2d0000 */ sw $t5,0x0($t1) +/* f126618: 8fae0190 */ lw $t6,0x190($sp) +/* f12661c: 3c18ba00 */ lui $t8,0xba00 +/* f126620: 37180e02 */ ori $t8,$t8,0xe02 +/* f126624: 25d90008 */ addiu $t9,$t6,0x8 +/* f126628: afb90190 */ sw $t9,0x190($sp) +/* f12662c: adc00004 */ sw $zero,0x4($t6) +/* f126630: add80000 */ sw $t8,0x0($t6) +/* f126634: 8fa80190 */ lw $t0,0x190($sp) +/* f126638: 3c0bba00 */ lui $t3,0xba00 +/* f12663c: 356b0c02 */ ori $t3,$t3,0xc02 +/* f126640: 250c0008 */ addiu $t4,$t0,0x8 +/* f126644: afac0190 */ sw $t4,0x190($sp) +/* f126648: 24092000 */ addiu $t1,$zero,0x2000 +/* f12664c: ad090004 */ sw $t1,0x4($t0) +/* f126650: ad0b0000 */ sw $t3,0x0($t0) +/* f126654: 8faa0190 */ lw $t2,0x190($sp) +/* f126658: 3c0eff36 */ lui $t6,0xff36 +/* f12665c: 3c0ffcff */ lui $t7,0xfcff +/* f126660: 254d0008 */ addiu $t5,$t2,0x8 +/* f126664: afad0190 */ sw $t5,0x190($sp) +/* f126668: 35ef9bff */ ori $t7,$t7,0x9bff +/* f12666c: 35ceff7f */ ori $t6,$t6,0xff7f +/* f126670: ad4e0004 */ sw $t6,0x4($t2) +/* f126674: 0c002f9d */ jal viGetFovY +/* f126678: ad4f0000 */ sw $t7,0x0($t2) +/* f12667c: 8fb90190 */ lw $t9,0x190($sp) +/* f126680: 3c17fb00 */ lui $s7,0xfb00 +/* f126684: 3c013f00 */ lui $at,0x3f00 +/* f126688: 27380008 */ addiu $t8,$t9,0x8 +/* f12668c: afb80190 */ sw $t8,0x190($sp) +/* f126690: af370000 */ sw $s7,0x0($t9) +/* f126694: c7a801a8 */ lwc1 $f8,0x1a8($sp) +/* f126698: 4481a000 */ mtc1 $at,$f20 +/* f12669c: 3c01437f */ lui $at,0x437f +/* f1266a0: 46164282 */ mul.s $f10,$f8,$f22 +/* f1266a4: 44812000 */ mtc1 $at,$f4 +/* f1266a8: 2401ff00 */ addiu $at,$zero,-256 +/* f1266ac: 24180001 */ addiu $t8,$zero,0x1 +/* f1266b0: 240e0001 */ addiu $t6,$zero,0x1 +/* f1266b4: 24080001 */ addiu $t0,$zero,0x1 +/* f1266b8: 02a02025 */ or $a0,$s5,$zero +/* f1266bc: 46045182 */ mul.s $f6,$f10,$f4 +/* f1266c0: 27a5017c */ addiu $a1,$sp,0x17c +/* f1266c4: 27a60174 */ addiu $a2,$sp,0x174 +/* f1266c8: 4616a102 */ mul.s $f4,$f20,$f22 +/* f1266cc: 4600320d */ trunc.w.s $f8,$f6 +/* f1266d0: 4604a180 */ add.s $f6,$f20,$f4 +/* f1266d4: 440c4000 */ mfc1 $t4,$f8 +/* f1266d8: 00000000 */ nop +/* f1266dc: 318b00ff */ andi $t3,$t4,0xff +/* f1266e0: 01614825 */ or $t1,$t3,$at +/* f1266e4: af290004 */ sw $t1,0x4($t9) +/* f1266e8: c7aa01a0 */ lwc1 $f10,0x1a0($sp) +/* f1266ec: 3c014270 */ lui $at,0x4270 +/* f1266f0: 44812000 */ mtc1 $at,$f4 +/* f1266f4: 46065202 */ mul.s $f8,$f10,$f6 +/* f1266f8: 8ec20000 */ lw $v0,0x0($s6) +/* f1266fc: e7ba017c */ swc1 $f26,0x17c($sp) +/* f126700: e7bc0180 */ swc1 $f28,0x180($sp) +/* f126704: 24190001 */ addiu $t9,$zero,0x1 +/* f126708: 46002283 */ div.s $f10,$f4,$f0 +/* f12670c: 46085182 */ mul.s $f6,$f10,$f8 +/* f126710: 4600310d */ trunc.w.s $f4,$f6 +/* f126714: 44903000 */ mtc1 $s0,$f6 +/* f126718: 440d2000 */ mfc1 $t5,$f4 +/* f12671c: 46803620 */ cvt.s.w $f24,$f6 +/* f126720: 448d5000 */ mtc1 $t5,$f10 +/* f126724: 00000000 */ nop +/* f126728: 46805220 */ cvt.s.w $f8,$f10 +/* f12672c: 46144082 */ mul.s $f2,$f8,$f20 +/* f126730: 00000000 */ nop +/* f126734: 46181102 */ mul.s $f4,$f2,$f24 +/* f126738: e7a20178 */ swc1 $f2,0x178($sp) +/* f12673c: e7a40174 */ swc1 $f4,0x174($sp) +/* f126740: 904f004d */ lbu $t7,0x4d($v0) +/* f126744: 9047004c */ lbu $a3,0x4c($v0) +/* f126748: afa80028 */ sw $t0,0x28($sp) +/* f12674c: afa00024 */ sw $zero,0x24($sp) +/* f126750: afb80020 */ sw $t8,0x20($sp) +/* f126754: afb9001c */ sw $t9,0x1c($sp) +/* f126758: afae0018 */ sw $t6,0x18($sp) +/* f12675c: afa00014 */ sw $zero,0x14($sp) +/* f126760: 0fc2c854 */ jal func0f0b2150 +/* f126764: afaf0010 */ sw $t7,0x10($sp) +/* f126768: 8ec50000 */ lw $a1,0x0($s6) +/* f12676c: 240c0002 */ addiu $t4,$zero,0x2 +/* f126770: 240b0001 */ addiu $t3,$zero,0x1 +/* f126774: afab0014 */ sw $t3,0x14($sp) +/* f126778: afac0010 */ sw $t4,0x10($sp) +/* f12677c: 02a02025 */ or $a0,$s5,$zero +/* f126780: 24060004 */ addiu $a2,$zero,0x4 +/* f126784: 00003825 */ or $a3,$zero,$zero +/* f126788: afa00018 */ sw $zero,0x18($sp) +/* f12678c: 0fc2ce70 */ jal tex0f0b39c0 +/* f126790: 24a5000c */ addiu $a1,$a1,0xc +/* f126794: 8fa90190 */ lw $t1,0x190($sp) +/* f126798: 3c0eba00 */ lui $t6,0xba00 +/* f12679c: 35ce0602 */ ori $t6,$t6,0x602 +/* f1267a0: 252a0008 */ addiu $t2,$t1,0x8 +/* f1267a4: afaa0190 */ sw $t2,0x190($sp) +/* f1267a8: ad200004 */ sw $zero,0x4($t1) +/* f1267ac: ad310000 */ sw $s1,0x0($t1) +/* f1267b0: 8fad0190 */ lw $t5,0x190($sp) +/* f1267b4: 24190040 */ addiu $t9,$zero,0x40 +/* f1267b8: 3c0cba00 */ lui $t4,0xba00 +/* f1267bc: 25af0008 */ addiu $t7,$t5,0x8 +/* f1267c0: afaf0190 */ sw $t7,0x190($sp) +/* f1267c4: adb90004 */ sw $t9,0x4($t5) +/* f1267c8: adae0000 */ sw $t6,0x0($t5) +/* f1267cc: 8fb80190 */ lw $t8,0x190($sp) +/* f1267d0: 358c0402 */ ori $t4,$t4,0x402 +/* f1267d4: 3c0fba00 */ lui $t7,0xba00 +/* f1267d8: 27080008 */ addiu $t0,$t8,0x8 +/* f1267dc: afa80190 */ sw $t0,0x190($sp) +/* f1267e0: af000004 */ sw $zero,0x4($t8) +/* f1267e4: af0c0000 */ sw $t4,0x0($t8) +/* f1267e8: 8fab0190 */ lw $t3,0x190($sp) +/* f1267ec: 35ef1301 */ ori $t7,$t7,0x1301 +/* f1267f0: 3c0cba00 */ lui $t4,0xba00 +/* f1267f4: 25690008 */ addiu $t1,$t3,0x8 +/* f1267f8: afa90190 */ sw $t1,0x190($sp) +/* f1267fc: ad730004 */ sw $s3,0x4($t3) +/* f126800: ad720000 */ sw $s2,0x0($t3) +/* f126804: 8faa0190 */ lw $t2,0x190($sp) +/* f126808: 358c1001 */ ori $t4,$t4,0x1001 +/* f12680c: 3c017f1b */ lui $at,%hi(var7f1b5110) +/* f126810: 254d0008 */ addiu $t5,$t2,0x8 +/* f126814: afad0190 */ sw $t5,0x190($sp) +/* f126818: ad400004 */ sw $zero,0x4($t2) +/* f12681c: ad4f0000 */ sw $t7,0x0($t2) +/* f126820: 8fae0190 */ lw $t6,0x190($sp) +/* f126824: 3c0aba00 */ lui $t2,0xba00 +/* f126828: 354a0903 */ ori $t2,$t2,0x903 +/* f12682c: 25d90008 */ addiu $t9,$t6,0x8 +/* f126830: afb90190 */ sw $t9,0x190($sp) +/* f126834: adc00004 */ sw $zero,0x4($t6) +/* f126838: add40000 */ sw $s4,0x0($t6) +/* f12683c: 8fb80190 */ lw $t8,0x190($sp) +/* f126840: 240d0c00 */ addiu $t5,$zero,0xc00 +/* f126844: 3c19ba00 */ lui $t9,0xba00 +/* f126848: 27080008 */ addiu $t0,$t8,0x8 +/* f12684c: afa80190 */ sw $t0,0x190($sp) +/* f126850: af000004 */ sw $zero,0x4($t8) +/* f126854: af0c0000 */ sw $t4,0x0($t8) +/* f126858: 8fab0190 */ lw $t3,0x190($sp) +/* f12685c: 37390e02 */ ori $t9,$t9,0xe02 +/* f126860: 3c0cba00 */ lui $t4,0xba00 +/* f126864: 25690008 */ addiu $t1,$t3,0x8 +/* f126868: afa90190 */ sw $t1,0x190($sp) +/* f12686c: ad6d0004 */ sw $t5,0x4($t3) +/* f126870: ad6a0000 */ sw $t2,0x0($t3) +/* f126874: 8faf0190 */ lw $t7,0x190($sp) +/* f126878: 240b2000 */ addiu $t3,$zero,0x2000 +/* f12687c: 358c0c02 */ ori $t4,$t4,0xc02 +/* f126880: 25ee0008 */ addiu $t6,$t7,0x8 +/* f126884: afae0190 */ sw $t6,0x190($sp) +/* f126888: ade00004 */ sw $zero,0x4($t7) +/* f12688c: adf90000 */ sw $t9,0x0($t7) +/* f126890: 8fb80190 */ lw $t8,0x190($sp) +/* f126894: 3c0fff36 */ lui $t7,0xff36 +/* f126898: 3c0dfcff */ lui $t5,0xfcff +/* f12689c: 27080008 */ addiu $t0,$t8,0x8 +/* f1268a0: afa80190 */ sw $t0,0x190($sp) +/* f1268a4: af0b0004 */ sw $t3,0x4($t8) +/* f1268a8: af0c0000 */ sw $t4,0x0($t8) +/* f1268ac: 8fa90190 */ lw $t1,0x190($sp) +/* f1268b0: 35ad9bff */ ori $t5,$t5,0x9bff +/* f1268b4: 35efff7f */ ori $t7,$t7,0xff7f +/* f1268b8: 252a0008 */ addiu $t2,$t1,0x8 +/* f1268bc: afaa0190 */ sw $t2,0x190($sp) +/* f1268c0: ad2f0004 */ sw $t7,0x4($t1) +/* f1268c4: ad2d0000 */ sw $t5,0x0($t1) +/* f1268c8: c43e5110 */ lwc1 $f30,%lo(var7f1b5110)($at) +/* f1268cc: 3c014334 */ lui $at,0x4334 +/* f1268d0: e7bc0198 */ swc1 $f28,0x198($sp) +/* f1268d4: 4481e000 */ mtc1 $at,$f28 +/* f1268d8: 3c013f80 */ lui $at,0x3f80 +/* f1268dc: e7ba0194 */ swc1 $f26,0x194($sp) +/* f1268e0: 4481d000 */ mtc1 $at,$f26 +/* f1268e4: 3c017f1b */ lui $at,%hi(var7f1b5114) +/* f1268e8: e7b8009c */ swc1 $f24,0x9c($sp) +/* f1268ec: 4480b000 */ mtc1 $zero,$f22 +/* f1268f0: c4385114 */ lwc1 $f24,%lo(var7f1b5114)($at) +/* f1268f4: 8fb301a4 */ lw $s3,0x1a4($sp) +/* f1268f8: 27b40144 */ addiu $s4,$sp,0x144 +/* f1268fc: 27b2015c */ addiu $s2,$sp,0x15c +/* f126900: 27b10144 */ addiu $s1,$sp,0x144 +/* f126904: 27b0012c */ addiu $s0,$sp,0x12c +.L0f126908: +/* f126908: 2a61005a */ slti $at,$s3,0x5a +/* f12690c: 1020000c */ beqz $at,.L0f126940 +/* f126910: 266effa6 */ addiu $t6,$s3,-90 +/* f126914: 2a61001e */ slti $at,$s3,0x1e +/* f126918: 10200007 */ beqz $at,.L0f126938 +/* f12691c: 00000000 */ nop +/* f126920: 44935000 */ mtc1 $s3,$f10 +/* f126924: 00000000 */ nop +/* f126928: 46805220 */ cvt.s.w $f8,$f10 +/* f12692c: 46184082 */ mul.s $f2,$f8,$f24 +/* f126930: 10000011 */ b .L0f126978 +/* f126934: 8e390000 */ lw $t9,0x0($s1) +.L0f126938: +/* f126938: 1000000e */ b .L0f126974 +/* f12693c: 4600d086 */ mov.s $f2,$f26 +.L0f126940: +/* f126940: 448e3000 */ mtc1 $t6,$f6 +/* f126944: 00000000 */ nop +/* f126948: 46803120 */ cvt.s.w $f4,$f6 +/* f12694c: 4604e281 */ sub.s $f10,$f28,$f4 +/* f126950: 461e5202 */ mul.s $f8,$f10,$f30 +/* f126954: 00000000 */ nop +/* f126958: 46144082 */ mul.s $f2,$f8,$f20 +/* f12695c: 4616103c */ c.lt.s $f2,$f22 +/* f126960: 00000000 */ nop +/* f126964: 45000002 */ bc1f .L0f126970 +/* f126968: 00000000 */ nop +/* f12696c: 4600b086 */ mov.s $f2,$f22 +.L0f126970: +/* f126970: 46141080 */ add.s $f2,$f2,$f20 +.L0f126974: +/* f126974: 8e390000 */ lw $t9,0x0($s1) +.L0f126978: +/* f126978: c7aa0128 */ lwc1 $f10,0x128($sp) +/* f12697c: 8fa30190 */ lw $v1,0x190($sp) +/* f126980: 44993000 */ mtc1 $t9,$f6 +/* f126984: c7a40194 */ lwc1 $f4,0x194($sp) +/* f126988: 8e580000 */ lw $t8,0x0($s2) +/* f12698c: 46803020 */ cvt.s.w $f0,$f6 +/* f126990: 246c0008 */ addiu $t4,$v1,0x8 +/* f126994: c7a60198 */ lwc1 $f6,0x198($sp) +/* f126998: afac0190 */ sw $t4,0x190($sp) +/* f12699c: 3c014f80 */ lui $at,0x4f80 +/* f1269a0: 460a0202 */ mul.s $f8,$f0,$f10 +/* f1269a4: c7aa0124 */ lwc1 $f10,0x124($sp) +/* f1269a8: ac770000 */ sw $s7,0x0($v1) +/* f1269ac: 8e020000 */ lw $v0,0x0($s0) +/* f1269b0: 304b00ff */ andi $t3,$v0,0xff +/* f1269b4: 46082301 */ sub.s $f12,$f4,$f8 +/* f1269b8: 460a0102 */ mul.s $f4,$f0,$f10 +/* f1269bc: 44984000 */ mtc1 $t8,$f8 +/* f1269c0: 448b5000 */ mtc1 $t3,$f10 +/* f1269c4: 46804420 */ cvt.s.w $f16,$f8 +/* f1269c8: c7a801a8 */ lwc1 $f8,0x1a8($sp) +/* f1269cc: 46043381 */ sub.s $f14,$f6,$f4 +/* f1269d0: 468051a0 */ cvt.s.w $f6,$f10 +/* f1269d4: 46024282 */ mul.s $f10,$f8,$f2 +/* f1269d8: 05610004 */ bgez $t3,.L0f1269ec +/* f1269dc: 00000000 */ nop +/* f1269e0: 44812000 */ mtc1 $at,$f4 +/* f1269e4: 00000000 */ nop +/* f1269e8: 46043180 */ add.s $f6,$f6,$f4 +.L0f1269ec: +/* f1269ec: 460a3102 */ mul.s $f4,$f6,$f10 +/* f1269f0: 02a02025 */ or $a0,$s5,$zero +/* f1269f4: 0002ce02 */ srl $t9,$v0,0x18 +/* f1269f8: 0019c600 */ sll $t8,$t9,0x18 +/* f1269fc: 00025c02 */ srl $t3,$v0,0x10 +/* f126a00: 316900ff */ andi $t1,$t3,0xff +/* f126a04: 0002ca02 */ srl $t9,$v0,0x8 +/* f126a08: 4600220d */ trunc.w.s $f8,$f4 +/* f126a0c: 46148482 */ mul.s $f18,$f16,$f20 +/* f126a10: 27a5017c */ addiu $a1,$sp,0x17c +/* f126a14: 27a60174 */ addiu $a2,$sp,0x174 +/* f126a18: 440a4000 */ mfc1 $t2,$f8 +/* f126a1c: 00000000 */ nop +/* f126a20: 314d00ff */ andi $t5,$t2,0xff +/* f126a24: 01b84025 */ or $t0,$t5,$t8 +/* f126a28: 332d00ff */ andi $t5,$t9,0xff +/* f126a2c: 00095400 */ sll $t2,$t1,0x10 +/* f126a30: 010a7825 */ or $t7,$t0,$t2 +/* f126a34: 000dc200 */ sll $t8,$t5,0x8 +/* f126a38: 01f86025 */ or $t4,$t7,$t8 +/* f126a3c: ac6c0004 */ sw $t4,0x4($v1) +/* f126a40: c7a6009c */ lwc1 $f6,0x9c($sp) +/* f126a44: 8ec20000 */ lw $v0,0x0($s6) +/* f126a48: e7ac017c */ swc1 $f12,0x17c($sp) +/* f126a4c: 46069282 */ mul.s $f10,$f18,$f6 +/* f126a50: e7ae0180 */ swc1 $f14,0x180($sp) +/* f126a54: e7b20178 */ swc1 $f18,0x178($sp) +/* f126a58: 24090001 */ addiu $t1,$zero,0x1 +/* f126a5c: e7aa0174 */ swc1 $f10,0x174($sp) +/* f126a60: 904b0011 */ lbu $t3,0x11($v0) +/* f126a64: 90470010 */ lbu $a3,0x10($v0) +/* f126a68: afa90028 */ sw $t1,0x28($sp) +/* f126a6c: afa00024 */ sw $zero,0x24($sp) +/* f126a70: afa00020 */ sw $zero,0x20($sp) +/* f126a74: afa0001c */ sw $zero,0x1c($sp) +/* f126a78: afa00018 */ sw $zero,0x18($sp) +/* f126a7c: afa00014 */ sw $zero,0x14($sp) +/* f126a80: 0fc2c854 */ jal func0f0b2150 +/* f126a84: afab0010 */ sw $t3,0x10($sp) +/* f126a88: 26100004 */ addiu $s0,$s0,0x4 +/* f126a8c: 26310004 */ addiu $s1,$s1,0x4 +/* f126a90: 1614ff9d */ bne $s0,$s4,.L0f126908 +/* f126a94: 26520004 */ addiu $s2,$s2,0x4 +/* f126a98: 0c002f22 */ jal viGetViewWidth +/* f126a9c: 00000000 */ nop +/* f126aa0: 44822000 */ mtc1 $v0,$f4 +/* f126aa4: 3c013f00 */ lui $at,0x3f00 +/* f126aa8: 4481c000 */ mtc1 $at,$f24 +/* f126aac: 46802220 */ cvt.s.w $f8,$f4 +/* f126ab0: c7aa0194 */ lwc1 $f10,0x194($sp) +/* f126ab4: 46184182 */ mul.s $f6,$f8,$f24 +/* f126ab8: 0c002f26 */ jal viGetViewHeight +/* f126abc: 460a3501 */ sub.s $f20,$f6,$f10 +/* f126ac0: 44822000 */ mtc1 $v0,$f4 +/* f126ac4: c7aa0198 */ lwc1 $f10,0x198($sp) +/* f126ac8: 46802220 */ cvt.s.w $f8,$f4 +/* f126acc: 46184182 */ mul.s $f6,$f8,$f24 +/* f126ad0: 460a3001 */ sub.s $f0,$f6,$f10 +/* f126ad4: 4614a102 */ mul.s $f4,$f20,$f20 +/* f126ad8: 00000000 */ nop +/* f126adc: 46000202 */ mul.s $f8,$f0,$f0 +/* f126ae0: 0c012974 */ jal sqrtf +/* f126ae4: 46082300 */ add.s $f12,$f4,$f8 +/* f126ae8: 3c014220 */ lui $at,0x4220 +/* f126aec: 44813000 */ mtc1 $at,$f6 +/* f126af0: 3c017f1b */ lui $at,%hi(var7f1b5118) +/* f126af4: c4245118 */ lwc1 $f4,%lo(var7f1b5118)($at) +/* f126af8: 46003281 */ sub.s $f10,$f6,$f0 +/* f126afc: 3c08800a */ lui $t0,%hi(g_Vars+0x34) +/* f126b00: c7a601a8 */ lwc1 $f6,0x1a8($sp) +/* f126b04: 46045302 */ mul.s $f12,$f10,$f4 +/* f126b08: 4616603c */ c.lt.s $f12,$f22 +/* f126b0c: 00000000 */ nop +/* f126b10: 45000002 */ bc1f .L0f126b1c +/* f126b14: 00000000 */ nop +/* f126b18: 4600b306 */ mov.s $f12,$f22 +.L0f126b1c: +/* f126b1c: 8d089ff4 */ lw $t0,%lo(g_Vars+0x34)($t0) +/* f126b20: 3c017f1b */ lui $at,%hi(var7f1b511c) +/* f126b24: c428511c */ lwc1 $f8,%lo(var7f1b511c)($at) +/* f126b28: 0113082a */ slt $at,$t0,$s3 +/* f126b2c: 14200002 */ bnez $at,.L0f126b38 +/* f126b30: 46086300 */ add.s $f12,$f12,$f8 +/* f126b34: 4600b306 */ mov.s $f12,$f22 +.L0f126b38: +/* f126b38: 460cb03c */ c.lt.s $f22,$f12 +/* f126b3c: 00000000 */ nop +/* f126b40: 4502000d */ bc1fl .L0f126b78 +/* f126b44: 8fae0190 */ lw $t6,0x190($sp) +/* f126b48: 460c3282 */ mul.s $f10,$f6,$f12 +/* f126b4c: 3c01437f */ lui $at,0x437f +/* f126b50: 44812000 */ mtc1 $at,$f4 +/* f126b54: 00000000 */ nop +/* f126b58: 46045202 */ mul.s $f8,$f10,$f4 +/* f126b5c: 4600418d */ trunc.w.s $f6,$f8 +/* f126b60: 44043000 */ mfc1 $a0,$f6 +/* f126b64: 00000000 */ nop +/* f126b68: 00802825 */ or $a1,$a0,$zero +/* f126b6c: 0fc49ccd */ jal sky0f127334 +/* f126b70: 00803025 */ or $a2,$a0,$zero +/* f126b74: 8fae0190 */ lw $t6,0x190($sp) +.L0f126b78: +/* f126b78: 3c0dba00 */ lui $t5,0xba00 +/* f126b7c: 35ad0602 */ ori $t5,$t5,0x602 +/* f126b80: 25d90008 */ addiu $t9,$t6,0x8 +/* f126b84: afb90190 */ sw $t9,0x190($sp) +/* f126b88: 240f0040 */ addiu $t7,$zero,0x40 +/* f126b8c: adcf0004 */ sw $t7,0x4($t6) +/* f126b90: adcd0000 */ sw $t5,0x0($t6) +/* f126b94: 8fb80190 */ lw $t8,0x190($sp) +/* f126b98: 3c0bba00 */ lui $t3,0xba00 +/* f126b9c: 356b0402 */ ori $t3,$t3,0x402 +/* f126ba0: 270c0008 */ addiu $t4,$t8,0x8 +/* f126ba4: afac0190 */ sw $t4,0x190($sp) +/* f126ba8: 240900c0 */ addiu $t1,$zero,0xc0 +/* f126bac: af090004 */ sw $t1,0x4($t8) +/* f126bb0: af0b0000 */ sw $t3,0x0($t8) +/* f126bb4: 8fa80190 */ lw $t0,0x190($sp) +/* f126bb8: 3c0eba00 */ lui $t6,0xba00 +/* f126bbc: 35ce1301 */ ori $t6,$t6,0x1301 +/* f126bc0: 250a0008 */ addiu $t2,$t0,0x8 +/* f126bc4: afaa0190 */ sw $t2,0x190($sp) +/* f126bc8: 3c190008 */ lui $t9,0x8 +/* f126bcc: ad190004 */ sw $t9,0x4($t0) +/* f126bd0: ad0e0000 */ sw $t6,0x0($t0) +/* f126bd4: 8fad0190 */ lw $t5,0x190($sp) +/* f126bd8: 3c18ba00 */ lui $t8,0xba00 +/* f126bdc: 37181001 */ ori $t8,$t8,0x1001 +/* f126be0: 25af0008 */ addiu $t7,$t5,0x8 +/* f126be4: afaf0190 */ sw $t7,0x190($sp) +/* f126be8: 3c0c0001 */ lui $t4,0x1 +/* f126bec: adac0004 */ sw $t4,0x4($t5) +/* f126bf0: adb80000 */ sw $t8,0x0($t5) +/* f126bf4: 8fbf0084 */ lw $ra,0x84($sp) +/* f126bf8: 8fb70080 */ lw $s7,0x80($sp) +/* f126bfc: 8fb6007c */ lw $s6,0x7c($sp) +/* f126c00: 8fb50078 */ lw $s5,0x78($sp) +/* f126c04: 8fb40074 */ lw $s4,0x74($sp) +/* f126c08: 8fb30070 */ lw $s3,0x70($sp) +/* f126c0c: 8fb2006c */ lw $s2,0x6c($sp) +/* f126c10: 8fb10068 */ lw $s1,0x68($sp) +/* f126c14: 8fb00064 */ lw $s0,0x64($sp) +/* f126c18: d7be0058 */ ldc1 $f30,0x58($sp) +/* f126c1c: d7bc0050 */ ldc1 $f28,0x50($sp) +/* f126c20: d7ba0048 */ ldc1 $f26,0x48($sp) +/* f126c24: d7b80040 */ ldc1 $f24,0x40($sp) +/* f126c28: d7b60038 */ ldc1 $f22,0x38($sp) +/* f126c2c: d7b40030 */ ldc1 $f20,0x30($sp) +/* f126c30: 8fa20190 */ lw $v0,0x190($sp) +/* f126c34: 03e00008 */ jr $ra +/* f126c38: 27bd0190 */ addiu $sp,$sp,0x190 +); +#endif + +/** + * Render a sun and its artifacts. + */ +//Gfx *sky0f126384(Gfx *gdl, f32 x, f32 y, f32 arg3, f32 size, s32 arg5, f32 arg6) +//{ +// f32 fa; +// f32 fb; +// f32 fc; +// f32 sp17c[2]; +// f32 sp174[2]; +// s32 sp15c[] = { 16, 32, 12, 32, 24, 64 }; // diameters? +// s32 sp144[] = { 60, 80, 225, 275, 470, 570 }; // distances from the sun? +// +// u32 colours[] = { // 12c +// 0xff99ffff, // pinkish/purple +// 0x9999ffff, // blue +// 0x99ffffff, // very light blue +// 0x99ff99ff, // green +// 0xffff99ff, // yellow +// 0xff9999ff, // red +// }; +// +// f32 sp128; +// f32 sp124; +// s32 scale; +// s32 i; +// f32 f2; +// f32 f12; +// f32 f20; +// f32 f0; +// +// scale = 1; +// +// if (g_ViRes == VIRES_HI) { +// scale = 2; +// } +// +// sp128 = (x - viGetViewWidth() * 0.5f) * 0.01f; +// sp124 = (y - viGetViewHeight() * 0.5f) * 0.01f; +// +// // Render the sun +// tex0f0b39c0(&gdl, &g_TexLightGlareConfigs[6], 4, 0, 2, 1, NULL); +// +// gDPSetCycleType(gdl++, G_CYC_1CYCLE); +// gDPSetColorDither(gdl++, G_CD_BAYER); +// gDPSetAlphaDither(gdl++, G_AD_PATTERN); +// gDPSetRenderMode(gdl++, G_RM_AA_XLU_SURF, G_RM_AA_XLU_SURF2); +// gDPSetTexturePersp(gdl++, G_TP_NONE); +// gDPSetAlphaCompare(gdl++, G_AC_NONE); +// gDPSetTextureLOD(gdl++, G_TL_TILE); +// gDPSetTextureConvert(gdl++, G_TC_FILT); +// gDPSetTextureLUT(gdl++, G_TT_NONE); +// gDPSetTextureFilter(gdl++, G_TF_BILERP); +// gDPSetCombineLERP(gdl++, +// 0, 0, 0, ENVIRONMENT, TEXEL0, 0, ENVIRONMENT, 0, +// 0, 0, 0, ENVIRONMENT, TEXEL0, 0, ENVIRONMENT, 0); +// +// fa = (size * (0.5f + 0.5f * arg3) * (60.0f / viGetFovY())); +// +// gDPSetEnvColor(gdl++, 0xff, 0xff, 0xff, (s32)(arg6 * arg3 * 255.0f)); +// +// sp17c[0] = x; +// sp17c[1] = y; +// sp174[1] = fa; +// sp174[0] = fa * scale; +// +// func0f0b2150(&gdl, sp17c, sp174, g_TexLightGlareConfigs[6].width, g_TexLightGlareConfigs[6].height, 0, 1, 1, 1, 0, 1); +// +// // Render the artifacts +// tex0f0b39c0(&gdl, &g_TexLightGlareConfigs[1], 4, 0, 2, 1, NULL); +// +// gDPSetCycleType(gdl++, G_CYC_1CYCLE); +// gDPSetColorDither(gdl++, G_CD_BAYER); +// gDPSetAlphaDither(gdl++, G_AD_PATTERN); +// gDPSetRenderMode(gdl++, G_RM_AA_XLU_SURF, G_RM_AA_XLU_SURF2); +// gDPSetTexturePersp(gdl++, G_TP_NONE); +// gDPSetAlphaCompare(gdl++, G_AC_NONE); +// gDPSetTextureLOD(gdl++, G_TL_TILE); +// gDPSetTextureConvert(gdl++, G_TC_FILT); +// gDPSetTextureLUT(gdl++, G_TT_NONE); +// gDPSetTextureFilter(gdl++, G_TF_BILERP); +// gDPSetCombineLERP(gdl++, +// 0, 0, 0, ENVIRONMENT, TEXEL0, 0, ENVIRONMENT, 0, +// 0, 0, 0, ENVIRONMENT, TEXEL0, 0, ENVIRONMENT, 0); +// +// for (i = 0; i < 6; i++) { +// // 90c +// if (arg5 < 90) { +// if (arg5 < 30) { +// f2 = arg5 * 0.033333335071802f; +// } else { +// f2 = 1.0f; +// } +// } else { +// f2 = (180.0f - (arg5 - 90)) * 0.0055555556900799f * 0.5f; +// +// if (f2 < 0.0f) { +// f2 = 0.0f; +// } +// +// f2 += 0.5f; +// } +// +// // 974 +// fb = x - sp144[i] * sp128; +// fc = y - sp144[i] * sp124; +// fa = sp15c[i] * 0.5f; +// +// gDPSetEnvColor(gdl++, colours[i] >> 24, (colours[i] >> 16) & 0xff, (colours[i] >> 8) & 0xff, (s32)((colours[i] & 0xff) * (arg6 * f2))); +// +// sp17c[0] = fb; +// sp17c[1] = fc; +// +// sp174[1] = fa; +// sp174[0] = fa * scale; +// +// func0f0b2150(&gdl, sp17c, sp174, g_TexLightGlareConfigs[1].width, g_TexLightGlareConfigs[1].height, 0, 0, 0, 0, 0, 1); +// } +// +// f20 = viGetViewWidth() * .5f - x; +// f0 = viGetViewHeight() * .5f - y; +// +// f12 = (40.0f - sqrtf(f20 * f20 + f0 * f0)) * 0.0125f; +// +// if (f12 < 0.0f) { +// f12 = 0.0f; +// } +// +// f12 += 0.1f; +// +// if (arg5 <= g_Vars.lvupdate240) { +// f12 = 0.0f; +// } +// +// if (f12 > 0.0f) { +// sky0f127334(arg6 * f12 * 255.0f, arg6 * f12 * 255.0f, arg6 * f12 * 255.0f); +// } +// +// gDPSetColorDither(gdl++, G_CD_BAYER); +// gDPSetAlphaDither(gdl++, G_AD_PATTERN | G_CD_DISABLE); +// gDPSetTexturePersp(gdl++, G_TP_PERSP); +// gDPSetTextureLOD(gdl++, G_TL_LOD); +// +// return gdl; +//} + +/** + * Render a sun and its artifacts if on screen. + */ +Gfx *sky0f126c3c(Gfx *gdl, f32 x, f32 y, f32 z, f32 arg4, f32 arg5) +{ + struct coord sp64; + + sp64.x = x; + sp64.y = y; + sp64.z = z; + + mtx4TransformVecInPlace(camGetMatrix1740(), &sp64); + mtx4TransformVecInPlace(camGetUnk1754(), &sp64); + + if (sp64.z > 1.0f) { + f32 xpos; + f32 ypos; + s16 viewlefti = viGetViewLeft(); + s16 viewtopi = viGetViewTop(); + s16 viewwidthi = viGetViewWidth(); + s16 viewheighti = viGetViewHeight(); + f32 viewleft = viewlefti; + f32 viewwidth = viewwidthi; + f32 viewtop = viewtopi; + f32 viewheight = viewheighti; + + xpos = viewleft + (sp64.f[0] / sp64.f[2] + 1.0f) * 0.5f * viewwidth; + ypos = viewtop + (-sp64.f[1] / sp64.f[2] + 1.0f) * 0.5f * viewheight; + + if (xpos >= viewleft && xpos < viewleft + viewwidth + && ypos >= viewtop && ypos < viewtop + viewheight) { + gdl = sky0f126384(gdl, xpos, ypos, arg5, arg4, TICKS(90), 1.0f); + } + } + + return gdl; +} + +/** + * Render lens flares during teleport. + */ +Gfx *sky0f126de8(Gfx *gdl) +{ + f32 sp154 = var80061630 * M_BADTAU; + s32 i; + f32 f20 = 0.0f; + f32 f20_2; + f32 f22; + f32 f22_3; + struct pad pad; + struct coord spe0; + f32 spd0[4]; + Mtxf mtx; + f32 f24; + f32 f30; + + if (g_Vars.currentplayer->teleportstate == TELEPORTSTATE_PREENTER) { + f20 = g_Vars.currentplayer->teleporttime / 24.0f * 0.33f; + } else if (g_Vars.currentplayer->teleportstate == TELEPORTSTATE_ENTERING) { + f20 = g_Vars.currentplayer->teleporttime / 48.0f * 0.66f + 0.33f; + } + + f30 = f20 * 6.0f; + f22 = f20 * 1.3f; + + if (f22 > 1.0f) { + f22 = 1.0f; + } + + if (f30 > 1.0f) { + f30 = 1.0f; + } + + f20 *= 1.7f; + + if (f20 > 1.0f) { + f20 = 1.0f; + } + + padUnpack(g_Vars.currentplayer->teleportpad, PADFIELD_POS | PADFIELD_LOOK | PADFIELD_UP, &pad); + + g_TeleportToPos.x = pad.pos.x; + g_TeleportToPos.y = pad.pos.y; + g_TeleportToPos.z = pad.pos.z; + g_TeleportToLook.x = pad.look.x; + g_TeleportToLook.y = pad.look.y; + g_TeleportToLook.z = pad.look.z; + g_TeleportToUp.x = pad.up.x; + g_TeleportToUp.y = pad.up.y; + g_TeleportToUp.z = pad.up.z; + + f22 = -cosf(f22 * M_PI) * 0.5f + .5f; + f24 = 100 * f22; + + for (i = 0; i < 5; i++) { + spe0.x = g_TeleportToLook.f[0] * f24; + spe0.y = g_TeleportToLook.f[1] * f24; + spe0.z = g_TeleportToLook.f[2] * f24; + + f22_3 = sp154 + i * 1.2564370632172f; + f20_2 = sinf(f22_3); + + spd0[0] = cosf(f22_3); + spd0[1] = g_TeleportToUp.f[0] * f20_2; + spd0[2] = g_TeleportToUp.f[1] * f20_2; + spd0[3] = g_TeleportToUp.f[2] * f20_2; + + quaternionToMtx(spd0, &mtx); + mtx4RotateVecInPlace(&mtx, &spe0); + + spe0.x += g_TeleportToPos.x; + spe0.y += g_TeleportToPos.y; + spe0.z += g_TeleportToPos.z; + + gdl = sky0f126c3c(gdl, spe0.x, spe0.y, spe0.z, f20 * 200, f30); + } + + return gdl; +} + +/** + * Render teleport artifacts, and all suns and their artifacts. + */ +Gfx *sky0f12715c(Gfx *gdl) +{ + struct environment *env = envGetCurrent(); + struct sun *sun; + s32 i; + + if (g_Vars.currentplayer->teleportstate == TELEPORTSTATE_PREENTER + || g_Vars.currentplayer->teleportstate == TELEPORTSTATE_ENTERING) { + gdl = sky0f126de8(gdl); + } + + if (env->numsuns <= 0 || !var800844f0 || g_Vars.mplayerisrunning) { + return gdl; + } + + sun = env->suns; + + for (i = 0; i < env->numsuns; i++) { + if (sun->lens_flare && var800a33e8[i][2] > 1) { + struct bootbufferthing *thing = bbufGetIndex1Buffer(); + f32 value = sky0f125a1c(thing->unk00[i]); + + if (value > 0.0f) { + gdl = sky0f126384(gdl, var800a3410[i], var800a3420[i], value, sun->orb_size, var8007db94[i], var8007db88[i]); + } + } + + sun++; + } + + return gdl; +} + +void sky0f127334(s32 arg0, s32 arg1, s32 arg2) +{ + g_Vars.currentplayer->unk1c28 = sqrtf(g_Vars.currentplayer->unk1c28 * g_Vars.currentplayer->unk1c28 + arg0 * arg0); + g_Vars.currentplayer->unk1c2c = sqrtf(g_Vars.currentplayer->unk1c2c * g_Vars.currentplayer->unk1c2c + arg1 * arg1); + g_Vars.currentplayer->unk1c30 = sqrtf(g_Vars.currentplayer->unk1c30 * g_Vars.currentplayer->unk1c30 + arg2 * arg2); + + if (g_Vars.currentplayer->unk1c28 > 0xcc) { + g_Vars.currentplayer->unk1c28 = 0xcc; + } + + if (g_Vars.currentplayer->unk1c2c > 0xcc) { + g_Vars.currentplayer->unk1c2c = 0xcc; + } + + if (g_Vars.currentplayer->unk1c30 > 0xcc) { + g_Vars.currentplayer->unk1c30 = 0xcc; + } +} + +s32 sky0f127490(s32 arg0, s32 arg1) +{ + if (arg1 >= arg0) { + if (arg1 - arg0 > 8) { + return arg0 + 8; + } + + return arg1; + } + + if (arg0 - arg1 > 8) { + return arg0 - 8; + } + + return arg1; +} + +Gfx *sky0f1274d8(Gfx *gdl) +{ + s32 value; + u32 stack; + + g_Vars.currentplayer->unk1c28 = sky0f127490(g_Vars.currentplayer->unk1c34, g_Vars.currentplayer->unk1c28); + g_Vars.currentplayer->unk1c2c = sky0f127490(g_Vars.currentplayer->unk1c38, g_Vars.currentplayer->unk1c2c); + g_Vars.currentplayer->unk1c30 = sky0f127490(g_Vars.currentplayer->unk1c3c, g_Vars.currentplayer->unk1c30); + + value = (g_Vars.currentplayer->unk1c28 > g_Vars.currentplayer->unk1c2c && g_Vars.currentplayer->unk1c28 > g_Vars.currentplayer->unk1c30) + ? g_Vars.currentplayer->unk1c28 + : g_Vars.currentplayer->unk1c2c > g_Vars.currentplayer->unk1c30 + ? g_Vars.currentplayer->unk1c2c + : g_Vars.currentplayer->unk1c30; + + if (!g_InCutscene && EYESPYINACTIVE() && value > 0) { + f32 r = g_Vars.currentplayer->unk1c28 * (255.0f / value); + f32 g = g_Vars.currentplayer->unk1c2c * (255.0f / value); + f32 b = g_Vars.currentplayer->unk1c30 * (255.0f / value); + + f32 a = (g_Vars.currentplayer->unk1c28 + + g_Vars.currentplayer->unk1c2c + + g_Vars.currentplayer->unk1c30) * (1.0f / 3.0f); + + gDPSetTexturePersp(gdl++, G_TP_NONE); + gDPSetColorDither(gdl++, G_CD_DISABLE); + gDPSetRenderMode(gdl++, G_RM_CLD_SURF, G_RM_CLD_SURF2); + gDPSetCombineMode(gdl++, G_CC_PRIMITIVE, G_CC_PRIMITIVE); + + if (USINGDEVICE(DEVICE_NIGHTVISION)) { + r *= 0.5f; + g *= 0.75f; + b *= 0.5f; + } else if (USINGDEVICE(DEVICE_IRSCANNER)) { + r *= 0.75f; + g *= 0.5f; + b *= 0.5f; + } + + gDPSetPrimColor(gdl++, 0, 0, (s32)r, (s32)g, (s32)b, (s32)a); + + gDPFillRectangle(gdl++, + viGetViewLeft(), + viGetViewTop(), + viGetViewLeft() + viGetViewWidth(), + viGetViewTop() + viGetViewHeight()); + + gDPPipeSync(gdl++); + } + + gDPSetColorDither(gdl++, G_CD_BAYER); + gDPSetTexturePersp(gdl++, G_TP_PERSP); + + g_Vars.currentplayer->unk1c34 = g_Vars.currentplayer->unk1c28; + g_Vars.currentplayer->unk1c38 = g_Vars.currentplayer->unk1c2c; + g_Vars.currentplayer->unk1c3c = g_Vars.currentplayer->unk1c30; + g_Vars.currentplayer->unk1c28 = 0; + g_Vars.currentplayer->unk1c2c = 0; + g_Vars.currentplayer->unk1c30 = 0; + + return gdl; +} diff --git a/src/game/game_0147a0.c b/src/game/skyreset.c similarity index 70% rename from src/game/game_0147a0.c rename to src/game/skyreset.c index 39ecfb802..d15da0535 100644 --- a/src/game/game_0147a0.c +++ b/src/game/skyreset.c @@ -4,9 +4,9 @@ #include "data.h" #include "types.h" -void func0f0147a0(u32 stagenum) +void skyReset(u32 stagenum) { - var800a33a0 = stagenum; + g_SkyStageNum = stagenum; var800a33a4 = 0; var8007db84 = 1; } diff --git a/src/game/game_01d990.c b/src/game/skytick.c similarity index 79% rename from src/game/game_01d990.c rename to src/game/skytick.c index ad5239ebe..b7156e0e2 100644 --- a/src/game/game_01d990.c +++ b/src/game/skytick.c @@ -1,11 +1,11 @@ #include #include "constants.h" -#include "game/game_01d990.h" +#include "game/sky.h" #include "bss.h" #include "data.h" #include "types.h" -void func0f01d990(void) +void skyTick(void) { var8007db80 += g_Vars.lvupdate240freal * var8007db84; diff --git a/src/game/smoke.c b/src/game/smoke.c index d57538a27..9d5560243 100644 --- a/src/game/smoke.c +++ b/src/game/smoke.c @@ -2,11 +2,11 @@ #include "constants.h" #include "game/dlights.h" #include "game/prop.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/smoke.h" #include "game/bg.h" -#include "game/game_1668e0.h" +#include "game/room.h" #include "game/file.h" #include "game/propobj.h" #include "bss.h" @@ -106,7 +106,7 @@ glabel var7f1b55dc /* f12d418: 24040001 */ addiu $a0,$zero,0x1 /* f12d41c: 0fc59e73 */ jal gfxAllocateColours /* f12d420: afa200b4 */ sw $v0,0xb4($sp) -/* f12d424: 0fc2d5de */ jal currentPlayerGetUnk174c +/* f12d424: 0fc2d5de */ jal camGetUnk174c /* f12d428: 00408025 */ or $s0,$v0,$zero /* f12d42c: 8fae00b8 */ lw $t6,0xb8($sp) /* f12d430: 8fa700bc */ lw $a3,0xbc($sp) @@ -1542,7 +1542,7 @@ u32 smokeTick(struct prop *prop) u32 smokeTickPlayer(struct prop *prop) { - Mtxf *matrix = currentPlayerGetMatrix1740(); + Mtxf *matrix = camGetMatrix1740(); prop->z = -(matrix->m[0][2] * prop->pos.x + matrix->m[1][2] * prop->pos.y + matrix->m[2][2] * prop->pos.z + matrix->m[3][2]); @@ -1588,9 +1588,9 @@ Gfx *smokeRender(struct prop *prop, Gfx *gdl, bool withalpha) } if (roomnum != -1) { - coord = func0f166dd0(roomnum); + coord = room0f166dd0(roomnum); - func0f166df0(roomnum, &worldoffset); + room0f166df0(roomnum, &worldoffset); if (smoke->parts[0].size > 0) { f32 x = smoke->parts[0].pos.x - worldoffset.x; @@ -1609,9 +1609,9 @@ Gfx *smokeRender(struct prop *prop, Gfx *gdl, bool withalpha) } gSPClearGeometryMode(gdl++, G_CULL_BOTH | G_FOG); - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1758()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); - gdl = func0f166d7c(gdl, roomnum); + gdl = room0f166d7c(gdl, roomnum); if (near) { gSPMatrix(gdl++, osVirtualToPhysical(&var800a3448), G_MTX_NOPUSH | G_MTX_MUL | G_MTX_MODELVIEW); @@ -1643,7 +1643,7 @@ Gfx *smokeRender(struct prop *prop, Gfx *gdl, bool withalpha) } gDPSetColorDither(gdl++, G_CD_BAYER); - gSPMatrix(gdl++, osVirtualToPhysical(currentPlayerGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); + gSPMatrix(gdl++, osVirtualToPhysical(camGetUnk1750()), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); } return gdl; diff --git a/src/game/game_000880.c b/src/game/smokeinit.c similarity index 96% rename from src/game/game_000880.c rename to src/game/smokeinit.c index c2f1188ee..66dddada1 100644 --- a/src/game/game_000880.c +++ b/src/game/smokeinit.c @@ -1,6 +1,6 @@ #include #include "constants.h" -#include "game/game_000880.h" +#include "game/smoke.h" #include "bss.h" #include "data.h" #include "types.h" @@ -41,7 +41,7 @@ Gfx var800613a0[] = { gsSPEndDisplayList(), }; -void func0f000880(void) +void smokesInit(void) { guScale(&var800a3448, 0.1, 0.1, 0.1); guScale(&var800a3488, 0.2, 0.2, 0.2); diff --git a/src/game/sparks.c b/src/game/sparks.c index 9555f5244..a4d7eeffc 100644 --- a/src/game/sparks.c +++ b/src/game/sparks.c @@ -2,7 +2,7 @@ #include "constants.h" #include "game/dlights.h" #include "game/chr.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/sparks.h" #include "game/file.h" #include "bss.h" @@ -1248,7 +1248,7 @@ glabel sparksRender /* f1301b8: 8ca5b5a4 */ lw $a1,%lo(g_TexSparkConfigs)($a1) /* f1301bc: afaf0010 */ sw $t7,0x10($sp) /* f1301c0: afb80014 */ sw $t8,0x14($sp) -/* f1301c4: 0fc2ce70 */ jal func0f0b39c0 +/* f1301c4: 0fc2ce70 */ jal tex0f0b39c0 /* f1301c8: afa00018 */ sw $zero,0x18($sp) /* f1301cc: 8fb90170 */ lw $t9,0x170($sp) /* f1301d0: 3c09ba00 */ lui $t1,0xba00 @@ -1836,7 +1836,7 @@ glabel sparksRender /* f130a48: 02a02025 */ or $a0,$s5,$zero /* f130a4c: 0c005775 */ jal mtx4SetTranslation /* f130a50: 27a500d4 */ addiu $a1,$sp,0xd4 -/* f130a54: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f130a54: 0fc2d5be */ jal camGetMatrix1740 /* f130a58: 00000000 */ nop /* f130a5c: 00402025 */ or $a0,$v0,$zero /* f130a60: 0c0056f8 */ jal mtx00015be0 diff --git a/src/game/stars.c b/src/game/stars.c new file mode 100644 index 000000000..0defc8e21 --- /dev/null +++ b/src/game/stars.c @@ -0,0 +1,1371 @@ +#include +#include "constants.h" +#include "game/game_006900.h" +#include "game/tex.h" +#include "game/stars.h" +#include "game/game_1531a0.h" +#include "bss.h" +#include "lib/vi.h" +#include "lib/memp.h" +#include "lib/rng.h" +#include "lib/mtx.h" +#include "data.h" +#include "types.h" + +u32 var800a4150; +f32 *var800a4154; +s32 var800a4158; +u32 var800a415c; + +u32 var8007f120 = 0x00000000; +u32 var8007f124 = 0x00000000; +u32 var8007f128 = 0x00000000; +u32 var8007f12c = 0x00000000; + +void func0f135c70(void) +{ + u32 stack[4]; + struct coord coord; + f32 mult; + s32 i; + s32 j; + s32 k; + f32 tmp = var800a4158 * 0.5f; + + for (i = 0; i < 6; i++) { + for (j = 0; j <= var800a4158; j++) { + for (k = 0; k <= var800a4158; k++) { + s32 index = ((i * (var800a4158 + 1) * (var800a4158 + 1)) + k + (j * (var800a4158 + 1))) * 3; + + switch (i) { + case 0: + case 1: + coord.x = (i == 0 ? -1.0f : 1.0f); + coord.y = k / tmp - 1; + coord.z = j / tmp - 1; + break; + case 2: + case 3: + coord.y = (i == 2 ? -1.0f : 1.0f); + coord.x = j / tmp - 1; + coord.z = k / tmp - 1; + break; + case 4: + case 5: + coord.z = (i == 4 ? -1.0f : 1.0f); + coord.x = k / tmp - 1; + coord.y = j / tmp - 1; + break; + } + + mult = 1.0f / sqrtf(coord.f[0] * coord.f[0] + coord.f[1] * coord.f[1] + coord.f[2] * coord.f[2]); + + var800a4154[index + 0] = coord.x * mult; + var800a4154[index + 1] = coord.y * mult; + var800a4154[index + 2] = coord.z * mult; + } + } + } +} + +GLOBAL_ASM( +glabel func0f135f08 +/* f135f08: 3c0a800a */ lui $t2,%hi(var800a4158) +/* f135f0c: 254a4158 */ addiu $t2,$t2,%lo(var800a4158) +/* f135f10: 8d460000 */ lw $a2,0x0($t2) +/* f135f14: 240b0006 */ addiu $t3,$zero,0x6 +/* f135f18: 3c09800a */ lui $t1,%hi(var800a415c) +/* f135f1c: 00cb0019 */ multu $a2,$t3 +/* f135f20: 2529415c */ addiu $t1,$t1,%lo(var800a415c) +/* f135f24: 8d230000 */ lw $v1,0x0($t1) +/* f135f28: afa50004 */ sw $a1,0x4($sp) +/* f135f2c: 00043880 */ sll $a3,$a0,0x2 +/* f135f30: 00676821 */ addu $t5,$v1,$a3 +/* f135f34: 8da80004 */ lw $t0,0x4($t5) +/* f135f38: 3c0c8008 */ lui $t4,%hi(var8007f120) +/* f135f3c: 258cf120 */ addiu $t4,$t4,%lo(var8007f120) +/* f135f40: 00007012 */ mflo $t6 +/* f135f44: 00000000 */ nop +/* f135f48: 00000000 */ nop +/* f135f4c: 01c60019 */ multu $t6,$a2 +/* f135f50: 00007812 */ mflo $t7 +/* f135f54: 000fc080 */ sll $t8,$t7,0x2 +/* f135f58: 0078c821 */ addu $t9,$v1,$t8 +/* f135f5c: 8f220000 */ lw $v0,0x0($t9) +/* f135f60: 2442ffff */ addiu $v0,$v0,-1 +/* f135f64: 0048082a */ slt $at,$v0,$t0 +/* f135f68: 14200016 */ bnez $at,.L0f135fc4 +/* f135f6c: 00021880 */ sll $v1,$v0,0x2 +/* f135f70: 00621823 */ subu $v1,$v1,$v0 +/* f135f74: 8d8e0000 */ lw $t6,0x0($t4) +.L0f135f78: +/* f135f78: 2442ffff */ addiu $v0,$v0,-1 +/* f135f7c: 006e2821 */ addu $a1,$v1,$t6 +/* f135f80: 80af0000 */ lb $t7,0x0($a1) +/* f135f84: a0af0003 */ sb $t7,0x3($a1) +/* f135f88: 8d980000 */ lw $t8,0x0($t4) +/* f135f8c: 00782821 */ addu $a1,$v1,$t8 +/* f135f90: 80b90001 */ lb $t9,0x1($a1) +/* f135f94: a0b90004 */ sb $t9,0x4($a1) +/* f135f98: 8d8d0000 */ lw $t5,0x0($t4) +/* f135f9c: 006d2821 */ addu $a1,$v1,$t5 +/* f135fa0: 80ae0002 */ lb $t6,0x2($a1) +/* f135fa4: 2463fffd */ addiu $v1,$v1,-3 +/* f135fa8: a0ae0005 */ sb $t6,0x5($a1) +/* f135fac: 8d2f0000 */ lw $t7,0x0($t1) +/* f135fb0: 01e7c021 */ addu $t8,$t7,$a3 +/* f135fb4: 8f080004 */ lw $t0,0x4($t8) +/* f135fb8: 0048082a */ slt $at,$v0,$t0 +/* f135fbc: 5020ffee */ beqzl $at,.L0f135f78 +/* f135fc0: 8d8e0000 */ lw $t6,0x0($t4) +.L0f135fc4: +/* f135fc4: 8fb90004 */ lw $t9,0x4($sp) +/* f135fc8: 3c0142fe */ lui $at,0x42fe +/* f135fcc: 44810000 */ mtc1 $at,$f0 +/* f135fd0: c7240000 */ lwc1 $f4,0x0($t9) +/* f135fd4: 24050003 */ addiu $a1,$zero,0x3 +/* f135fd8: 01050019 */ multu $t0,$a1 +/* f135fdc: 46002182 */ mul.s $f6,$f4,$f0 +/* f135fe0: 3c0c8008 */ lui $t4,%hi(var8007f120) +/* f135fe4: 258cf120 */ addiu $t4,$t4,%lo(var8007f120) +/* f135fe8: 8d8f0000 */ lw $t7,0x0($t4) +/* f135fec: 24830001 */ addiu $v1,$a0,0x1 +/* f135ff0: 00601025 */ or $v0,$v1,$zero +/* f135ff4: 4600320d */ trunc.w.s $f8,$f6 +/* f135ff8: 0000c012 */ mflo $t8 +/* f135ffc: 01f8c821 */ addu $t9,$t7,$t8 +/* f136000: 440e4000 */ mfc1 $t6,$f8 +/* f136004: 00000000 */ nop +/* f136008: a32e0000 */ sb $t6,0x0($t9) +/* f13600c: 8fad0004 */ lw $t5,0x4($sp) +/* f136010: 8d390000 */ lw $t9,0x0($t1) +/* f136014: 8d8e0000 */ lw $t6,0x0($t4) +/* f136018: c5aa0004 */ lwc1 $f10,0x4($t5) +/* f13601c: 03276821 */ addu $t5,$t9,$a3 +/* f136020: 8daf0004 */ lw $t7,0x4($t5) +/* f136024: 46005402 */ mul.s $f16,$f10,$f0 +/* f136028: 4600848d */ trunc.w.s $f18,$f16 +/* f13602c: 01e50019 */ multu $t7,$a1 +/* f136030: 44189000 */ mfc1 $t8,$f18 +/* f136034: 0000c812 */ mflo $t9 +/* f136038: 01d96821 */ addu $t5,$t6,$t9 +/* f13603c: a1b80001 */ sb $t8,0x1($t5) +/* f136040: 8faf0004 */ lw $t7,0x4($sp) +/* f136044: 8d2d0000 */ lw $t5,0x0($t1) +/* f136048: 8d980000 */ lw $t8,0x0($t4) +/* f13604c: c5e40008 */ lwc1 $f4,0x8($t7) +/* f136050: 01a77821 */ addu $t7,$t5,$a3 +/* f136054: 8dee0004 */ lw $t6,0x4($t7) +/* f136058: 46002182 */ mul.s $f6,$f4,$f0 +/* f13605c: 4600320d */ trunc.w.s $f8,$f6 +/* f136060: 01c50019 */ multu $t6,$a1 +/* f136064: 44194000 */ mfc1 $t9,$f8 +/* f136068: 00006812 */ mflo $t5 +/* f13606c: 030d7821 */ addu $t7,$t8,$t5 +/* f136070: a1f90002 */ sb $t9,0x2($t7) +/* f136074: 8d460000 */ lw $a2,0x0($t2) +/* f136078: 00cb0019 */ multu $a2,$t3 +/* f13607c: 00007012 */ mflo $t6 +/* f136080: 00000000 */ nop +/* f136084: 00000000 */ nop +/* f136088: 01c60019 */ multu $t6,$a2 +/* f13608c: 0000c012 */ mflo $t8 +/* f136090: 0303082a */ slt $at,$t8,$v1 +/* f136094: 14200012 */ bnez $at,.L0f1360e0 +/* f136098: 00031880 */ sll $v1,$v1,0x2 +/* f13609c: 8d2d0000 */ lw $t5,0x0($t1) +.L0f1360a0: +/* f1360a0: 24420001 */ addiu $v0,$v0,0x1 +/* f1360a4: 01a32021 */ addu $a0,$t5,$v1 +/* f1360a8: 8c990000 */ lw $t9,0x0($a0) +/* f1360ac: 24630004 */ addiu $v1,$v1,0x4 +/* f1360b0: 272f0001 */ addiu $t7,$t9,0x1 +/* f1360b4: ac8f0000 */ sw $t7,0x0($a0) +/* f1360b8: 8d460000 */ lw $a2,0x0($t2) +/* f1360bc: 00cb0019 */ multu $a2,$t3 +/* f1360c0: 00007012 */ mflo $t6 +/* f1360c4: 00000000 */ nop +/* f1360c8: 00000000 */ nop +/* f1360cc: 01c60019 */ multu $t6,$a2 +/* f1360d0: 0000c012 */ mflo $t8 +/* f1360d4: 0302082a */ slt $at,$t8,$v0 +/* f1360d8: 5020fff1 */ beqzl $at,.L0f1360a0 +/* f1360dc: 8d2d0000 */ lw $t5,0x0($t1) +.L0f1360e0: +/* f1360e0: 03e00008 */ jr $ra +/* f1360e4: 00000000 */ nop +); + +GLOBAL_ASM( +glabel starsReset +/* f1360e8: 27bdff18 */ addiu $sp,$sp,-232 +/* f1360ec: 3c05800a */ lui $a1,%hi(g_Vars) +/* f1360f0: 24a59fc0 */ addiu $a1,$a1,%lo(g_Vars) +/* f1360f4: 8cae006c */ lw $t6,0x6c($a1) +/* f1360f8: afb00044 */ sw $s0,0x44($sp) +/* f1360fc: 3c108008 */ lui $s0,%hi(var8007f120) +/* f136100: 2610f120 */ addiu $s0,$s0,%lo(var8007f120) +/* f136104: afbf004c */ sw $ra,0x4c($sp) +/* f136108: afb10048 */ sw $s1,0x48($sp) +/* f13610c: f7be0038 */ sdc1 $f30,0x38($sp) +/* f136110: f7bc0030 */ sdc1 $f28,0x30($sp) +/* f136114: f7ba0028 */ sdc1 $f26,0x28($sp) +/* f136118: f7b80020 */ sdc1 $f24,0x20($sp) +/* f13611c: f7b60018 */ sdc1 $f22,0x18($sp) +/* f136120: f7b40010 */ sdc1 $f20,0x10($sp) +/* f136124: 11c00003 */ beqz $t6,.L0f136134 +/* f136128: ae000000 */ sw $zero,0x0($s0) +/* f13612c: 10000002 */ b .L0f136138 +/* f136130: 24060001 */ addiu $a2,$zero,0x1 +.L0f136134: +/* f136134: 00003025 */ or $a2,$zero,$zero +.L0f136138: +/* f136138: 8caf0068 */ lw $t7,0x68($a1) +/* f13613c: 00001825 */ or $v1,$zero,$zero +/* f136140: 00002025 */ or $a0,$zero,$zero +/* f136144: 11e00003 */ beqz $t7,.L0f136154 +/* f136148: 00001025 */ or $v0,$zero,$zero +/* f13614c: 10000001 */ b .L0f136154 +/* f136150: 24030001 */ addiu $v1,$zero,0x1 +.L0f136154: +/* f136154: 8cb80064 */ lw $t8,0x64($a1) +/* f136158: 3c088008 */ lui $t0,%hi(var8007f124) +/* f13615c: 2508f124 */ addiu $t0,$t0,%lo(var8007f124) +/* f136160: 13000003 */ beqz $t8,.L0f136170 +/* f136164: 240c0003 */ addiu $t4,$zero,0x3 +/* f136168: 10000001 */ b .L0f136170 +/* f13616c: 24040001 */ addiu $a0,$zero,0x1 +.L0f136170: +/* f136170: 8cb90070 */ lw $t9,0x70($a1) +/* f136174: 13200003 */ beqz $t9,.L0f136184 +/* f136178: 00000000 */ nop +/* f13617c: 10000001 */ b .L0f136184 +/* f136180: 24020001 */ addiu $v0,$zero,0x1 +.L0f136184: +/* f136184: 00444821 */ addu $t1,$v0,$a0 +/* f136188: 01235021 */ addu $t2,$t1,$v1 +/* f13618c: 01465821 */ addu $t3,$t2,$a2 +/* f136190: 29610002 */ slti $at,$t3,0x2 +/* f136194: 102001ae */ beqz $at,.L0f136850 +/* f136198: 3c03800a */ lui $v1,%hi(var800a4158) +/* f13619c: 8ca204b4 */ lw $v0,0x4b4($a1) +/* f1361a0: 24634158 */ addiu $v1,$v1,%lo(var800a4158) +/* f1361a4: 2401004e */ addiu $at,$zero,0x4e +/* f1361a8: ad000000 */ sw $zero,0x0($t0) +/* f1361ac: 14410007 */ bne $v0,$at,.L0f1361cc +/* f1361b0: ac6c0000 */ sw $t4,0x0($v1) +/* f1361b4: 240d0001 */ addiu $t5,$zero,0x1 +/* f1361b8: ad0d0000 */ sw $t5,0x0($t0) +/* f1361bc: 240e0640 */ addiu $t6,$zero,0x640 +/* f1361c0: 3c01800a */ lui $at,%hi(var800a4150) +/* f1361c4: 10000018 */ b .L0f136228 +/* f1361c8: ac2e4150 */ sw $t6,%lo(var800a4150)($at) +.L0f1361cc: +/* f1361cc: 24010030 */ addiu $at,$zero,0x30 +/* f1361d0: 10410003 */ beq $v0,$at,.L0f1361e0 +/* f1361d4: 240f00c8 */ addiu $t7,$zero,0xc8 +/* f1361d8: 24010022 */ addiu $at,$zero,0x22 +/* f1361dc: 14410005 */ bne $v0,$at,.L0f1361f4 +.L0f1361e0: +/* f1361e0: 3c01800a */ lui $at,%hi(var800a4150) +/* f1361e4: ac2f4150 */ sw $t7,%lo(var800a4150)($at) +/* f1361e8: 24180002 */ addiu $t8,$zero,0x2 +/* f1361ec: 1000000e */ b .L0f136228 +/* f1361f0: ac780000 */ sw $t8,0x0($v1) +.L0f1361f4: +/* f1361f4: 24010034 */ addiu $at,$zero,0x34 +/* f1361f8: 14410007 */ bne $v0,$at,.L0f136218 +/* f1361fc: 240a00c8 */ addiu $t2,$zero,0xc8 +/* f136200: 24190001 */ addiu $t9,$zero,0x1 +/* f136204: ad190000 */ sw $t9,0x0($t0) +/* f136208: 240904b0 */ addiu $t1,$zero,0x4b0 +/* f13620c: 3c01800a */ lui $at,%hi(var800a4150) +/* f136210: 10000005 */ b .L0f136228 +/* f136214: ac294150 */ sw $t1,%lo(var800a4150)($at) +.L0f136218: +/* f136218: 3c01800a */ lui $at,%hi(var800a4150) +/* f13621c: ac2a4150 */ sw $t2,%lo(var800a4150)($at) +/* f136220: 240b0002 */ addiu $t3,$zero,0x2 +/* f136224: ac6b0000 */ sw $t3,0x0($v1) +.L0f136228: +/* f136228: 8c670000 */ lw $a3,0x0($v1) +/* f13622c: 24060006 */ addiu $a2,$zero,0x6 +/* f136230: 3c0c800a */ lui $t4,%hi(var800a4150) +/* f136234: 24e20001 */ addiu $v0,$a3,0x1 +/* f136238: 000270c0 */ sll $t6,$v0,0x3 +/* f13623c: 01c27021 */ addu $t6,$t6,$v0 +/* f136240: 000e70c0 */ sll $t6,$t6,0x3 +/* f136244: 01c20019 */ multu $t6,$v0 +/* f136248: 8d8c4150 */ lw $t4,%lo(var800a4150)($t4) +/* f13624c: 24050004 */ addiu $a1,$zero,0x4 +/* f136250: 000c6880 */ sll $t5,$t4,0x2 +/* f136254: 01ac6823 */ subu $t5,$t5,$t4 +/* f136258: 00007812 */ mflo $t7 +/* f13625c: 01afc021 */ addu $t8,$t5,$t7 +/* f136260: 00000000 */ nop +/* f136264: 00e60019 */ multu $a3,$a2 +/* f136268: 0000c812 */ mflo $t9 +/* f13626c: 00000000 */ nop +/* f136270: 00000000 */ nop +/* f136274: 03270019 */ multu $t9,$a3 +/* f136278: 00004812 */ mflo $t1 +/* f13627c: 00095080 */ sll $t2,$t1,0x2 +/* f136280: 030a2021 */ addu $a0,$t8,$t2 +/* f136284: 24840043 */ addiu $a0,$a0,0x43 +/* f136288: 348b003f */ ori $t3,$a0,0x3f +/* f13628c: 0c0048f2 */ jal mempAlloc +/* f136290: 3964003f */ xori $a0,$t3,0x3f +/* f136294: 24060006 */ addiu $a2,$zero,0x6 +/* f136298: 1040016d */ beqz $v0,.L0f136850 +/* f13629c: ae020000 */ sw $v0,0x0($s0) +/* f1362a0: 3c08800a */ lui $t0,%hi(var800a4158) +/* f1362a4: 25084158 */ addiu $t0,$t0,%lo(var800a4158) +/* f1362a8: 8d070000 */ lw $a3,0x0($t0) +/* f1362ac: 3c0e800a */ lui $t6,%hi(var800a4150) +/* f1362b0: 8dce4150 */ lw $t6,%lo(var800a4150)($t6) +/* f1362b4: 00e60019 */ multu $a3,$a2 +/* f1362b8: 3c04800a */ lui $a0,%hi(var800a415c) +/* f1362bc: 000e6880 */ sll $t5,$t6,0x2 +/* f1362c0: 01ae6823 */ subu $t5,$t5,$t6 +/* f1362c4: 2484415c */ addiu $a0,$a0,%lo(var800a415c) +/* f1362c8: 01a27821 */ addu $t7,$t5,$v0 +/* f1362cc: ac8f0000 */ sw $t7,0x0($a0) +/* f1362d0: 00001025 */ or $v0,$zero,$zero +/* f1362d4: 00008825 */ or $s1,$zero,$zero +/* f1362d8: 0000c812 */ mflo $t9 +/* f1362dc: 00000000 */ nop +/* f1362e0: 00000000 */ nop +/* f1362e4: 03270019 */ multu $t9,$a3 +/* f1362e8: 00001812 */ mflo $v1 +/* f1362ec: 24630001 */ addiu $v1,$v1,0x1 +/* f1362f0: 58600013 */ blezl $v1,.L0f136340 +/* f1362f4: 8c8c0000 */ lw $t4,0x0($a0) +/* f1362f8: 8c890000 */ lw $t1,0x0($a0) +.L0f1362fc: +/* f1362fc: 26310001 */ addiu $s1,$s1,0x1 +/* f136300: 0122c021 */ addu $t8,$t1,$v0 +/* f136304: af000000 */ sw $zero,0x0($t8) +/* f136308: 8d070000 */ lw $a3,0x0($t0) +/* f13630c: 24420004 */ addiu $v0,$v0,0x4 +/* f136310: 00e60019 */ multu $a3,$a2 +/* f136314: 00005012 */ mflo $t2 +/* f136318: 00000000 */ nop +/* f13631c: 00000000 */ nop +/* f136320: 01470019 */ multu $t2,$a3 +/* f136324: 00001812 */ mflo $v1 +/* f136328: 24630001 */ addiu $v1,$v1,0x1 +/* f13632c: 0223082a */ slt $at,$s1,$v1 +/* f136330: 5420fff2 */ bnezl $at,.L0f1362fc +/* f136334: 8c890000 */ lw $t1,0x0($a0) +/* f136338: 00008825 */ or $s1,$zero,$zero +/* f13633c: 8c8c0000 */ lw $t4,0x0($a0) +.L0f136340: +/* f136340: 00035880 */ sll $t3,$v1,0x2 +/* f136344: 3c01800a */ lui $at,%hi(var800a4154) +/* f136348: 016c7021 */ addu $t6,$t3,$t4 +/* f13634c: 0fc4d71c */ jal func0f135c70 +/* f136350: ac2e4154 */ sw $t6,%lo(var800a4154)($at) +/* f136354: 3c0d800a */ lui $t5,%hi(var800a4150) +/* f136358: 8dad4150 */ lw $t5,%lo(var800a4150)($t5) +/* f13635c: 3c013f80 */ lui $at,0x3f80 +/* f136360: c7b800bc */ lwc1 $f24,0xbc($sp) +/* f136364: 19a0013a */ blez $t5,.L0f136850 +/* f136368: c7b600c0 */ lwc1 $f22,0xc0($sp) +/* f13636c: 4481f000 */ mtc1 $at,$f30 +/* f136370: 3c012f80 */ lui $at,0x2f80 +/* f136374: 4481e000 */ mtc1 $at,$f28 +/* f136378: 3c01bf80 */ lui $at,0xbf80 +/* f13637c: 4481d000 */ mtc1 $at,$f26 +/* f136380: 4480a000 */ mtc1 $zero,$f20 +/* f136384: 8fb000b0 */ lw $s0,0xb0($sp) +.L0f136388: +/* f136388: 0c004b70 */ jal random +/* f13638c: 00000000 */ nop +/* f136390: 44822000 */ mtc1 $v0,$f4 +/* f136394: 3c014f80 */ lui $at,0x4f80 +/* f136398: 04410004 */ bgez $v0,.L0f1363ac +/* f13639c: 468021a0 */ cvt.s.w $f6,$f4 +/* f1363a0: 44814000 */ mtc1 $at,$f8 +/* f1363a4: 00000000 */ nop +/* f1363a8: 46083180 */ add.s $f6,$f6,$f8 +.L0f1363ac: +/* f1363ac: 461c3002 */ mul.s $f0,$f6,$f28 +/* f1363b0: 3c0f8008 */ lui $t7,%hi(var8007f124) +/* f1363b4: 8deff124 */ lw $t7,%lo(var8007f124)($t7) +/* f1363b8: 46000280 */ add.s $f10,$f0,$f0 +/* f1363bc: 461e5381 */ sub.s $f14,$f10,$f30 +/* f1363c0: 11e0000f */ beqz $t7,.L0f136400 +/* f1363c4: e7ae00d4 */ swc1 $f14,0xd4($sp) +/* f1363c8: 0c004b70 */ jal random +/* f1363cc: 00000000 */ nop +/* f1363d0: 44822000 */ mtc1 $v0,$f4 +/* f1363d4: 3c014f80 */ lui $at,0x4f80 +/* f1363d8: 04410004 */ bgez $v0,.L0f1363ec +/* f1363dc: 46802220 */ cvt.s.w $f8,$f4 +/* f1363e0: 44813000 */ mtc1 $at,$f6 +/* f1363e4: 00000000 */ nop +/* f1363e8: 46064200 */ add.s $f8,$f8,$f6 +.L0f1363ec: +/* f1363ec: 461c4002 */ mul.s $f0,$f8,$f28 +/* f1363f0: 46000280 */ add.s $f10,$f0,$f0 +/* f1363f4: 461e5401 */ sub.s $f16,$f10,$f30 +/* f1363f8: 1000000c */ b .L0f13642c +/* f1363fc: e7b000d8 */ swc1 $f16,0xd8($sp) +.L0f136400: +/* f136400: 0c004b70 */ jal random +/* f136404: 00000000 */ nop +/* f136408: 44822000 */ mtc1 $v0,$f4 +/* f13640c: 3c014f80 */ lui $at,0x4f80 +/* f136410: 04410004 */ bgez $v0,.L0f136424 +/* f136414: 468021a0 */ cvt.s.w $f6,$f4 +/* f136418: 44814000 */ mtc1 $at,$f8 +/* f13641c: 00000000 */ nop +/* f136420: 46083180 */ add.s $f6,$f6,$f8 +.L0f136424: +/* f136424: 461c3402 */ mul.s $f16,$f6,$f28 +/* f136428: e7b000d8 */ swc1 $f16,0xd8($sp) +.L0f13642c: +/* f13642c: 0c004b70 */ jal random +/* f136430: 00000000 */ nop +/* f136434: 44825000 */ mtc1 $v0,$f10 +/* f136438: 3c014f80 */ lui $at,0x4f80 +/* f13643c: 04410004 */ bgez $v0,.L0f136450 +/* f136440: 46805120 */ cvt.s.w $f4,$f10 +/* f136444: 44814000 */ mtc1 $at,$f8 +/* f136448: 00000000 */ nop +/* f13644c: 46082100 */ add.s $f4,$f4,$f8 +.L0f136450: +/* f136450: 461c2002 */ mul.s $f0,$f4,$f28 +/* f136454: 27a400d4 */ addiu $a0,$sp,0xd4 +/* f136458: 27a500d8 */ addiu $a1,$sp,0xd8 +/* f13645c: 27a600dc */ addiu $a2,$sp,0xdc +/* f136460: 46000180 */ add.s $f6,$f0,$f0 +/* f136464: 461e3301 */ sub.s $f12,$f6,$f30 +/* f136468: 0c0011e4 */ jal guNormalize +/* f13646c: e7ac00dc */ swc1 $f12,0xdc($sp) +/* f136470: c7ae00d4 */ lwc1 $f14,0xd4($sp) +/* f136474: c7b000d8 */ lwc1 $f16,0xd8($sp) +/* f136478: c7ac00dc */ lwc1 $f12,0xdc($sp) +/* f13647c: 4614703c */ c.lt.s $f14,$f20 +/* f136480: 00000000 */ nop +/* f136484: 45020004 */ bc1fl .L0f136498 +/* f136488: 46007086 */ mov.s $f2,$f14 +/* f13648c: 10000002 */ b .L0f136498 +/* f136490: 46007087 */ neg.s $f2,$f14 +/* f136494: 46007086 */ mov.s $f2,$f14 +.L0f136498: +/* f136498: 4614803c */ c.lt.s $f16,$f20 +/* f13649c: 00000000 */ nop +/* f1364a0: 45020004 */ bc1fl .L0f1364b4 +/* f1364a4: 46008006 */ mov.s $f0,$f16 +/* f1364a8: 10000002 */ b .L0f1364b4 +/* f1364ac: 46008007 */ neg.s $f0,$f16 +/* f1364b0: 46008006 */ mov.s $f0,$f16 +.L0f1364b4: +/* f1364b4: 4602003c */ c.lt.s $f0,$f2 +/* f1364b8: 00000000 */ nop +/* f1364bc: 45020027 */ bc1fl .L0f13655c +/* f1364c0: 4614803c */ c.lt.s $f16,$f20 +/* f1364c4: 4614703c */ c.lt.s $f14,$f20 +/* f1364c8: c7ac00dc */ lwc1 $f12,0xdc($sp) +/* f1364cc: 45020004 */ bc1fl .L0f1364e0 +/* f1364d0: 46007086 */ mov.s $f2,$f14 +/* f1364d4: 10000002 */ b .L0f1364e0 +/* f1364d8: 46007087 */ neg.s $f2,$f14 +/* f1364dc: 46007086 */ mov.s $f2,$f14 +.L0f1364e0: +/* f1364e0: 4614603c */ c.lt.s $f12,$f20 +/* f1364e4: 00000000 */ nop +/* f1364e8: 45020004 */ bc1fl .L0f1364fc +/* f1364ec: 46006006 */ mov.s $f0,$f12 +/* f1364f0: 10000002 */ b .L0f1364fc +/* f1364f4: 46006007 */ neg.s $f0,$f12 +/* f1364f8: 46006006 */ mov.s $f0,$f12 +.L0f1364fc: +/* f1364fc: 4602003c */ c.lt.s $f0,$f2 +/* f136500: 00000000 */ nop +/* f136504: 4502000b */ bc1fl .L0f136534 +/* f136508: 4614603c */ c.lt.s $f12,$f20 +/* f13650c: 4614703c */ c.lt.s $f14,$f20 +/* f136510: 00000000 */ nop +/* f136514: 45020004 */ bc1fl .L0f136528 +/* f136518: 46007006 */ mov.s $f0,$f14 +/* f13651c: 10000032 */ b .L0f1365e8 +/* f136520: 46007007 */ neg.s $f0,$f14 +/* f136524: 46007006 */ mov.s $f0,$f14 +.L0f136528: +/* f136528: 10000030 */ b .L0f1365ec +/* f13652c: 46007483 */ div.s $f18,$f14,$f0 +/* f136530: 4614603c */ c.lt.s $f12,$f20 +.L0f136534: +/* f136534: 00000000 */ nop +/* f136538: 45020004 */ bc1fl .L0f13654c +/* f13653c: 46006006 */ mov.s $f0,$f12 +/* f136540: 10000002 */ b .L0f13654c +/* f136544: 46006007 */ neg.s $f0,$f12 +/* f136548: 46006006 */ mov.s $f0,$f12 +.L0f13654c: +/* f13654c: 46000086 */ mov.s $f2,$f0 +/* f136550: 10000025 */ b .L0f1365e8 +/* f136554: 46001006 */ mov.s $f0,$f2 +/* f136558: 4614803c */ c.lt.s $f16,$f20 +.L0f13655c: +/* f13655c: 00000000 */ nop +/* f136560: 45020004 */ bc1fl .L0f136574 +/* f136564: 46008086 */ mov.s $f2,$f16 +/* f136568: 10000002 */ b .L0f136574 +/* f13656c: 46008087 */ neg.s $f2,$f16 +/* f136570: 46008086 */ mov.s $f2,$f16 +.L0f136574: +/* f136574: 4614603c */ c.lt.s $f12,$f20 +/* f136578: 00000000 */ nop +/* f13657c: 45020004 */ bc1fl .L0f136590 +/* f136580: 46006006 */ mov.s $f0,$f12 +/* f136584: 10000002 */ b .L0f136590 +/* f136588: 46006007 */ neg.s $f0,$f12 +/* f13658c: 46006006 */ mov.s $f0,$f12 +.L0f136590: +/* f136590: 4602003c */ c.lt.s $f0,$f2 +/* f136594: 00000000 */ nop +/* f136598: 4502000b */ bc1fl .L0f1365c8 +/* f13659c: 4614603c */ c.lt.s $f12,$f20 +/* f1365a0: 4614803c */ c.lt.s $f16,$f20 +/* f1365a4: 00000000 */ nop +/* f1365a8: 45020004 */ bc1fl .L0f1365bc +/* f1365ac: 46008006 */ mov.s $f0,$f16 +/* f1365b0: 1000000c */ b .L0f1365e4 +/* f1365b4: 46008087 */ neg.s $f2,$f16 +/* f1365b8: 46008006 */ mov.s $f0,$f16 +.L0f1365bc: +/* f1365bc: 10000009 */ b .L0f1365e4 +/* f1365c0: 46000086 */ mov.s $f2,$f0 +/* f1365c4: 4614603c */ c.lt.s $f12,$f20 +.L0f1365c8: +/* f1365c8: 00000000 */ nop +/* f1365cc: 45020004 */ bc1fl .L0f1365e0 +/* f1365d0: 46006006 */ mov.s $f0,$f12 +/* f1365d4: 10000002 */ b .L0f1365e0 +/* f1365d8: 46006007 */ neg.s $f0,$f12 +/* f1365dc: 46006006 */ mov.s $f0,$f12 +.L0f1365e0: +/* f1365e0: 46000086 */ mov.s $f2,$f0 +.L0f1365e4: +/* f1365e4: 46001006 */ mov.s $f0,$f2 +.L0f1365e8: +/* f1365e8: 46007483 */ div.s $f18,$f14,$f0 +.L0f1365ec: +/* f1365ec: 3c07800a */ lui $a3,%hi(var800a4158) +/* f1365f0: 8ce74158 */ lw $a3,%lo(var800a4158)($a3) +/* f1365f4: 3c013f80 */ lui $at,0x3f80 +/* f1365f8: 44812000 */ mtc1 $at,$f4 +/* f1365fc: 00e70019 */ multu $a3,$a3 +/* f136600: e7ac00dc */ swc1 $f12,0xdc($sp) +/* f136604: e7ae00d4 */ swc1 $f14,0xd4($sp) +/* f136608: e7b000d8 */ swc1 $f16,0xd8($sp) +/* f13660c: 3c013f80 */ lui $at,0x3f80 +/* f136610: 00004012 */ mflo $t0 +/* f136614: 46008283 */ div.s $f10,$f16,$f0 +/* f136618: 46122032 */ c.eq.s $f4,$f18 +/* f13661c: 46006203 */ div.s $f8,$f12,$f0 +/* f136620: e7aa00cc */ swc1 $f10,0xcc($sp) +/* f136624: 45010006 */ bc1t .L0f136640 +/* f136628: e7a800d0 */ swc1 $f8,0xd0($sp) +/* f13662c: 4612d032 */ c.eq.s $f26,$f18 +/* f136630: c7a000cc */ lwc1 $f0,0xcc($sp) +/* f136634: c7ae00d0 */ lwc1 $f14,0xd0($sp) +/* f136638: 45020018 */ bc1fl .L0f13669c +/* f13663c: 3c013f80 */ lui $at,0x3f80 +.L0f136640: +/* f136640: 4612d032 */ c.eq.s $f26,$f18 +/* f136644: 44813000 */ mtc1 $at,$f6 +/* f136648: c7a000cc */ lwc1 $f0,0xcc($sp) +/* f13664c: c7ae00d0 */ lwc1 $f14,0xd0($sp) +/* f136650: 45000003 */ bc1f .L0f136660 +/* f136654: e7b200c8 */ swc1 $f18,0xc8($sp) +/* f136658: 10000002 */ b .L0f136664 +/* f13665c: 00008025 */ or $s0,$zero,$zero +.L0f136660: +/* f136660: 24100001 */ addiu $s0,$zero,0x1 +.L0f136664: +/* f136664: 3c014000 */ lui $at,0x4000 +/* f136668: 44814000 */ mtc1 $at,$f8 +/* f13666c: 46060280 */ add.s $f10,$f0,$f6 +/* f136670: 3c013f80 */ lui $at,0x3f80 +/* f136674: 44812000 */ mtc1 $at,$f4 +/* f136678: 3c014000 */ lui $at,0x4000 +/* f13667c: 46085083 */ div.s $f2,$f10,$f8 +/* f136680: 44815000 */ mtc1 $at,$f10 +/* f136684: 46000586 */ mov.s $f22,$f0 +/* f136688: 46007606 */ mov.s $f24,$f14 +/* f13668c: 46047180 */ add.s $f6,$f14,$f4 +/* f136690: 1000004c */ b .L0f1367c4 +/* f136694: 460a3303 */ div.s $f12,$f6,$f10 +/* f136698: 3c013f80 */ lui $at,0x3f80 +.L0f13669c: +/* f13669c: 44814000 */ mtc1 $at,$f8 +/* f1366a0: 3c013f80 */ lui $at,0x3f80 +/* f1366a4: 46004032 */ c.eq.s $f8,$f0 +/* f1366a8: 00000000 */ nop +/* f1366ac: 45030006 */ bc1tl .L0f1366c8 +/* f1366b0: 4600d032 */ c.eq.s $f26,$f0 +/* f1366b4: 4600d032 */ c.eq.s $f26,$f0 +/* f1366b8: 00000000 */ nop +/* f1366bc: 45020016 */ bc1fl .L0f136718 +/* f1366c0: 3c013f80 */ lui $at,0x3f80 +/* f1366c4: 4600d032 */ c.eq.s $f26,$f0 +.L0f1366c8: +/* f1366c8: 44812000 */ mtc1 $at,$f4 +/* f1366cc: 3c014000 */ lui $at,0x4000 +/* f1366d0: 44815000 */ mtc1 $at,$f10 +/* f1366d4: 45000003 */ bc1f .L0f1366e4 +/* f1366d8: 46047180 */ add.s $f6,$f14,$f4 +/* f1366dc: 10000002 */ b .L0f1366e8 +/* f1366e0: 24100002 */ addiu $s0,$zero,0x2 +.L0f1366e4: +/* f1366e4: 24100003 */ addiu $s0,$zero,0x3 +.L0f1366e8: +/* f1366e8: 3c013f80 */ lui $at,0x3f80 +/* f1366ec: 44814000 */ mtc1 $at,$f8 +/* f1366f0: 3c014000 */ lui $at,0x4000 +/* f1366f4: 460a3083 */ div.s $f2,$f6,$f10 +/* f1366f8: 44813000 */ mtc1 $at,$f6 +/* f1366fc: 46007586 */ mov.s $f22,$f14 +/* f136700: 46009606 */ mov.s $f24,$f18 +/* f136704: 46089100 */ add.s $f4,$f18,$f8 +/* f136708: e7b200c8 */ swc1 $f18,0xc8($sp) +/* f13670c: 1000002d */ b .L0f1367c4 +/* f136710: 46062303 */ div.s $f12,$f4,$f6 +/* f136714: 3c013f80 */ lui $at,0x3f80 +.L0f136718: +/* f136718: 44815000 */ mtc1 $at,$f10 +/* f13671c: 3c013f80 */ lui $at,0x3f80 +/* f136720: 460e5032 */ c.eq.s $f10,$f14 +/* f136724: 00000000 */ nop +/* f136728: 45030006 */ bc1tl .L0f136744 +/* f13672c: 460ed032 */ c.eq.s $f26,$f14 +/* f136730: 460ed032 */ c.eq.s $f26,$f14 +/* f136734: 00000000 */ nop +/* f136738: 45020016 */ bc1fl .L0f136794 +/* f13673c: 3c013f80 */ lui $at,0x3f80 +/* f136740: 460ed032 */ c.eq.s $f26,$f14 +.L0f136744: +/* f136744: 44814000 */ mtc1 $at,$f8 +/* f136748: 3c014000 */ lui $at,0x4000 +/* f13674c: 44813000 */ mtc1 $at,$f6 +/* f136750: 45000003 */ bc1f .L0f136760 +/* f136754: 46089100 */ add.s $f4,$f18,$f8 +/* f136758: 10000002 */ b .L0f136764 +/* f13675c: 24100004 */ addiu $s0,$zero,0x4 +.L0f136760: +/* f136760: 24100005 */ addiu $s0,$zero,0x5 +.L0f136764: +/* f136764: 3c013f80 */ lui $at,0x3f80 +/* f136768: 44815000 */ mtc1 $at,$f10 +/* f13676c: 3c014000 */ lui $at,0x4000 +/* f136770: 46062083 */ div.s $f2,$f4,$f6 +/* f136774: 44812000 */ mtc1 $at,$f4 +/* f136778: 46009586 */ mov.s $f22,$f18 +/* f13677c: 46000606 */ mov.s $f24,$f0 +/* f136780: 460a0200 */ add.s $f8,$f0,$f10 +/* f136784: e7b200c8 */ swc1 $f18,0xc8($sp) +/* f136788: 1000000e */ b .L0f1367c4 +/* f13678c: 46044303 */ div.s $f12,$f8,$f4 +/* f136790: 3c013f80 */ lui $at,0x3f80 +.L0f136794: +/* f136794: 44813000 */ mtc1 $at,$f6 +/* f136798: 3c014000 */ lui $at,0x4000 +/* f13679c: 44814000 */ mtc1 $at,$f8 +/* f1367a0: 4606b280 */ add.s $f10,$f22,$f6 +/* f1367a4: 3c013f80 */ lui $at,0x3f80 +/* f1367a8: 44812000 */ mtc1 $at,$f4 +/* f1367ac: 3c014000 */ lui $at,0x4000 +/* f1367b0: 46085083 */ div.s $f2,$f10,$f8 +/* f1367b4: 44815000 */ mtc1 $at,$f10 +/* f1367b8: e7b200c8 */ swc1 $f18,0xc8($sp) +/* f1367bc: 4604c180 */ add.s $f6,$f24,$f4 +/* f1367c0: 460a3303 */ div.s $f12,$f6,$f10 +.L0f1367c4: +/* f1367c4: 44874000 */ mtc1 $a3,$f8 +/* f1367c8: 00000000 */ nop +/* f1367cc: 46804020 */ cvt.s.w $f0,$f8 +/* f1367d0: 46001102 */ mul.s $f4,$f2,$f0 +/* f1367d4: 00000000 */ nop +/* f1367d8: 46006282 */ mul.s $f10,$f12,$f0 +/* f1367dc: 4600218d */ trunc.w.s $f6,$f4 +/* f1367e0: 4600520d */ trunc.w.s $f8,$f10 +/* f1367e4: 44023000 */ mfc1 $v0,$f6 +/* f1367e8: 44034000 */ mfc1 $v1,$f8 +/* f1367ec: 14470002 */ bne $v0,$a3,.L0f1367f8 +/* f1367f0: 00000000 */ nop +/* f1367f4: 2442ffff */ addiu $v0,$v0,-1 +.L0f1367f8: +/* f1367f8: 14670002 */ bne $v1,$a3,.L0f136804 +/* f1367fc: 00000000 */ nop +/* f136800: 2463ffff */ addiu $v1,$v1,-1 +.L0f136804: +/* f136804: 00e30019 */ multu $a3,$v1 +/* f136808: 27a500d4 */ addiu $a1,$sp,0xd4 +/* f13680c: 0000c012 */ mflo $t8 +/* f136810: 03023021 */ addu $a2,$t8,$v0 +/* f136814: 00000000 */ nop +/* f136818: 02080019 */ multu $s0,$t0 +/* f13681c: 00005012 */ mflo $t2 +/* f136820: 01462021 */ addu $a0,$t2,$a2 +/* f136824: 0fc4d7c2 */ jal func0f135f08 +/* f136828: 00000000 */ nop +/* f13682c: 3c0b800a */ lui $t3,%hi(var800a4150) +/* f136830: 8d6b4150 */ lw $t3,%lo(var800a4150)($t3) +/* f136834: 26310001 */ addiu $s1,$s1,0x1 +/* f136838: 022b082a */ slt $at,$s1,$t3 +/* f13683c: 1420fed2 */ bnez $at,.L0f136388 +/* f136840: 00000000 */ nop +/* f136844: e7b800bc */ swc1 $f24,0xbc($sp) +/* f136848: e7b600c0 */ swc1 $f22,0xc0($sp) +/* f13684c: afb000b0 */ sw $s0,0xb0($sp) +.L0f136850: +/* f136850: 8fbf004c */ lw $ra,0x4c($sp) +/* f136854: d7b40010 */ ldc1 $f20,0x10($sp) +/* f136858: d7b60018 */ ldc1 $f22,0x18($sp) +/* f13685c: d7b80020 */ ldc1 $f24,0x20($sp) +/* f136860: d7ba0028 */ ldc1 $f26,0x28($sp) +/* f136864: d7bc0030 */ ldc1 $f28,0x30($sp) +/* f136868: d7be0038 */ ldc1 $f30,0x38($sp) +/* f13686c: 8fb00044 */ lw $s0,0x44($sp) +/* f136870: 8fb10048 */ lw $s1,0x48($sp) +/* f136874: 03e00008 */ jr $ra +/* f136878: 27bd00e8 */ addiu $sp,$sp,0xe8 +); + +GLOBAL_ASM( +glabel starsRender +.late_rodata +glabel var7f1b57b8 +.word 0x3c8efa03 +glabel var7f1b57bc +.word 0x43837333 +.text +/* f13687c: 27bdfe50 */ addiu $sp,$sp,-432 +/* f136880: afbf006c */ sw $ra,0x6c($sp) +/* f136884: afb1004c */ sw $s1,0x4c($sp) +/* f136888: afb00048 */ sw $s0,0x48($sp) +/* f13688c: 00808025 */ or $s0,$a0,$zero +/* f136890: afbe0068 */ sw $s8,0x68($sp) +/* f136894: afb70064 */ sw $s7,0x64($sp) +/* f136898: afb60060 */ sw $s6,0x60($sp) +/* f13689c: afb5005c */ sw $s5,0x5c($sp) +/* f1368a0: afb40058 */ sw $s4,0x58($sp) +/* f1368a4: afb30054 */ sw $s3,0x54($sp) +/* f1368a8: afb20050 */ sw $s2,0x50($sp) +/* f1368ac: f7be0040 */ sdc1 $f30,0x40($sp) +/* f1368b0: f7bc0038 */ sdc1 $f28,0x38($sp) +/* f1368b4: f7ba0030 */ sdc1 $f26,0x30($sp) +/* f1368b8: f7b80028 */ sdc1 $f24,0x28($sp) +/* f1368bc: f7b60020 */ sdc1 $f22,0x20($sp) +/* f1368c0: f7b40018 */ sdc1 $f20,0x18($sp) +/* f1368c4: 0c002f40 */ jal viGetViewLeft +/* f1368c8: 00008825 */ or $s1,$zero,$zero +/* f1368cc: 44822000 */ mtc1 $v0,$f4 +/* f1368d0: 0c002f22 */ jal viGetViewWidth +/* f1368d4: 46802520 */ cvt.s.w $f20,$f4 +/* f1368d8: 44823000 */ mtc1 $v0,$f6 +/* f1368dc: 00000000 */ nop +/* f1368e0: 46803220 */ cvt.s.w $f8,$f6 +/* f1368e4: 0c002f44 */ jal viGetViewTop +/* f1368e8: 46144600 */ add.s $f24,$f8,$f20 +/* f1368ec: 44825000 */ mtc1 $v0,$f10 +/* f1368f0: 0c002f26 */ jal viGetViewHeight +/* f1368f4: 468055a0 */ cvt.s.w $f22,$f10 +/* f1368f8: 3c13800a */ lui $s3,%hi(g_Vars) +/* f1368fc: 26739fc0 */ addiu $s3,$s3,%lo(g_Vars) +/* f136900: 44828000 */ mtc1 $v0,$f16 +/* f136904: 8e630284 */ lw $v1,0x284($s3) +/* f136908: 3c0e8008 */ lui $t6,%hi(var8007f120) +/* f13690c: 468084a0 */ cvt.s.w $f18,$f16 +/* f136910: 8dcef120 */ lw $t6,%lo(var8007f120)($t6) +/* f136914: c464170c */ lwc1 $f4,0x170c($v1) +/* f136918: c4661720 */ lwc1 $f6,0x1720($v1) +/* f13691c: c4681710 */ lwc1 $f8,0x1710($v1) +/* f136920: c46a1724 */ lwc1 $f10,0x1724($v1) +/* f136924: 46169680 */ add.s $f26,$f18,$f22 +/* f136928: 46062700 */ add.s $f28,$f4,$f6 +/* f13692c: 15c00003 */ bnez $t6,.L0f13693c +/* f136930: 460a4780 */ add.s $f30,$f8,$f10 +/* f136934: 1000020a */ b .L0f137160 +/* f136938: 02001025 */ or $v0,$s0,$zero +.L0f13693c: +/* f13693c: 8e6204b4 */ lw $v0,0x4b4($s3) +/* f136940: 24010030 */ addiu $at,$zero,0x30 +/* f136944: 10410003 */ beq $v0,$at,.L0f136954 +/* f136948: 24010022 */ addiu $at,$zero,0x22 +/* f13694c: 54410003 */ bnel $v0,$at,.L0f13695c +/* f136950: 3c014000 */ lui $at,0x4000 +.L0f136954: +/* f136954: 24110001 */ addiu $s1,$zero,0x1 +/* f136958: 3c014000 */ lui $at,0x4000 +.L0f13695c: +/* f13695c: 44816000 */ mtc1 $at,$f12 +/* f136960: 0fc01ac2 */ jal func0f006b08 +/* f136964: 00000000 */ nop +/* f136968: 3c01437f */ lui $at,0x437f +/* f13696c: 44818000 */ mtc1 $at,$f16 +/* f136970: 24060001 */ addiu $a2,$zero,0x1 +/* f136974: 3c057777 */ lui $a1,0x7777 +/* f136978: 46100482 */ mul.s $f18,$f0,$f16 +/* f13697c: 34a5777f */ ori $a1,$a1,0x777f +/* f136980: 2404ff7f */ addiu $a0,$zero,-129 +/* f136984: 444ff800 */ cfc1 $t7,$31 +/* f136988: 44c6f800 */ ctc1 $a2,$31 +/* f13698c: 00000000 */ nop +/* f136990: 46009124 */ cvt.w.s $f4,$f18 +/* f136994: 4446f800 */ cfc1 $a2,$31 +/* f136998: 00000000 */ nop +/* f13699c: 30c60078 */ andi $a2,$a2,0x78 +/* f1369a0: 10c00012 */ beqz $a2,.L0f1369ec +/* f1369a4: 3c014f00 */ lui $at,0x4f00 +/* f1369a8: 44812000 */ mtc1 $at,$f4 +/* f1369ac: 24060001 */ addiu $a2,$zero,0x1 +/* f1369b0: 46049101 */ sub.s $f4,$f18,$f4 +/* f1369b4: 44c6f800 */ ctc1 $a2,$31 +/* f1369b8: 00000000 */ nop +/* f1369bc: 46002124 */ cvt.w.s $f4,$f4 +/* f1369c0: 4446f800 */ cfc1 $a2,$31 +/* f1369c4: 00000000 */ nop +/* f1369c8: 30c60078 */ andi $a2,$a2,0x78 +/* f1369cc: 14c00005 */ bnez $a2,.L0f1369e4 +/* f1369d0: 00000000 */ nop +/* f1369d4: 44062000 */ mfc1 $a2,$f4 +/* f1369d8: 3c018000 */ lui $at,0x8000 +/* f1369dc: 10000007 */ b .L0f1369fc +/* f1369e0: 00c13025 */ or $a2,$a2,$at +.L0f1369e4: +/* f1369e4: 10000005 */ b .L0f1369fc +/* f1369e8: 2406ffff */ addiu $a2,$zero,-1 +.L0f1369ec: +/* f1369ec: 44062000 */ mfc1 $a2,$f4 +/* f1369f0: 00000000 */ nop +/* f1369f4: 04c0fffb */ bltz $a2,.L0f1369e4 +/* f1369f8: 00000000 */ nop +.L0f1369fc: +/* f1369fc: 44cff800 */ ctc1 $t7,$31 +/* f136a00: 0fc01a40 */ jal colourBlend +/* f136a04: 00000000 */ nop +/* f136a08: 3c014080 */ lui $at,0x4080 +/* f136a0c: 44816000 */ mtc1 $at,$f12 +/* f136a10: 0fc01ac2 */ jal func0f006b08 +/* f136a14: afa2011c */ sw $v0,0x11c($sp) +/* f136a18: 3c01437f */ lui $at,0x437f +/* f136a1c: 44813000 */ mtc1 $at,$f6 +/* f136a20: 24060001 */ addiu $a2,$zero,0x1 +/* f136a24: 3c052222 */ lui $a1,0x2222 +/* f136a28: 46060202 */ mul.s $f8,$f0,$f6 +/* f136a2c: 34a5ff7f */ ori $a1,$a1,0xff7f +/* f136a30: 3404aa7f */ dli $a0,0xaa7f +/* f136a34: 4458f800 */ cfc1 $t8,$31 +/* f136a38: 44c6f800 */ ctc1 $a2,$31 +/* f136a3c: 00000000 */ nop +/* f136a40: 460042a4 */ cvt.w.s $f10,$f8 +/* f136a44: 4446f800 */ cfc1 $a2,$31 +/* f136a48: 00000000 */ nop +/* f136a4c: 30c60078 */ andi $a2,$a2,0x78 +/* f136a50: 10c00012 */ beqz $a2,.L0f136a9c +/* f136a54: 3c014f00 */ lui $at,0x4f00 +/* f136a58: 44815000 */ mtc1 $at,$f10 +/* f136a5c: 24060001 */ addiu $a2,$zero,0x1 +/* f136a60: 460a4281 */ sub.s $f10,$f8,$f10 +/* f136a64: 44c6f800 */ ctc1 $a2,$31 +/* f136a68: 00000000 */ nop +/* f136a6c: 460052a4 */ cvt.w.s $f10,$f10 +/* f136a70: 4446f800 */ cfc1 $a2,$31 +/* f136a74: 00000000 */ nop +/* f136a78: 30c60078 */ andi $a2,$a2,0x78 +/* f136a7c: 14c00005 */ bnez $a2,.L0f136a94 +/* f136a80: 00000000 */ nop +/* f136a84: 44065000 */ mfc1 $a2,$f10 +/* f136a88: 3c018000 */ lui $at,0x8000 +/* f136a8c: 10000007 */ b .L0f136aac +/* f136a90: 00c13025 */ or $a2,$a2,$at +.L0f136a94: +/* f136a94: 10000005 */ b .L0f136aac +/* f136a98: 2406ffff */ addiu $a2,$zero,-1 +.L0f136a9c: +/* f136a9c: 44065000 */ mfc1 $a2,$f10 +/* f136aa0: 00000000 */ nop +/* f136aa4: 04c0fffb */ bltz $a2,.L0f136a94 +/* f136aa8: 00000000 */ nop +.L0f136aac: +/* f136aac: 44d8f800 */ ctc1 $t8,$31 +/* f136ab0: 0fc01a40 */ jal colourBlend +/* f136ab4: 00000000 */ nop +/* f136ab8: 3c014000 */ lui $at,0x4000 +/* f136abc: 44816000 */ mtc1 $at,$f12 +/* f136ac0: 0fc01ad5 */ jal func0f006b54 +/* f136ac4: afa20120 */ sw $v0,0x120($sp) +/* f136ac8: 3c01437f */ lui $at,0x437f +/* f136acc: 44818000 */ mtc1 $at,$f16 +/* f136ad0: 24060001 */ addiu $a2,$zero,0x1 +/* f136ad4: 3c055555 */ lui $a1,0x5555 +/* f136ad8: 46100482 */ mul.s $f18,$f0,$f16 +/* f136adc: 34a5ff7f */ ori $a1,$a1,0xff7f +/* f136ae0: 3404ff7f */ dli $a0,0xff7f +/* f136ae4: 4459f800 */ cfc1 $t9,$31 +/* f136ae8: 44c6f800 */ ctc1 $a2,$31 +/* f136aec: 00000000 */ nop +/* f136af0: 46009124 */ cvt.w.s $f4,$f18 +/* f136af4: 4446f800 */ cfc1 $a2,$31 +/* f136af8: 00000000 */ nop +/* f136afc: 30c60078 */ andi $a2,$a2,0x78 +/* f136b00: 10c00012 */ beqz $a2,.L0f136b4c +/* f136b04: 3c014f00 */ lui $at,0x4f00 +/* f136b08: 44812000 */ mtc1 $at,$f4 +/* f136b0c: 24060001 */ addiu $a2,$zero,0x1 +/* f136b10: 46049101 */ sub.s $f4,$f18,$f4 +/* f136b14: 44c6f800 */ ctc1 $a2,$31 +/* f136b18: 00000000 */ nop +/* f136b1c: 46002124 */ cvt.w.s $f4,$f4 +/* f136b20: 4446f800 */ cfc1 $a2,$31 +/* f136b24: 00000000 */ nop +/* f136b28: 30c60078 */ andi $a2,$a2,0x78 +/* f136b2c: 14c00005 */ bnez $a2,.L0f136b44 +/* f136b30: 00000000 */ nop +/* f136b34: 44062000 */ mfc1 $a2,$f4 +/* f136b38: 3c018000 */ lui $at,0x8000 +/* f136b3c: 10000007 */ b .L0f136b5c +/* f136b40: 00c13025 */ or $a2,$a2,$at +.L0f136b44: +/* f136b44: 10000005 */ b .L0f136b5c +/* f136b48: 2406ffff */ addiu $a2,$zero,-1 +.L0f136b4c: +/* f136b4c: 44062000 */ mfc1 $a2,$f4 +/* f136b50: 00000000 */ nop +/* f136b54: 04c0fffb */ bltz $a2,.L0f136b44 +/* f136b58: 00000000 */ nop +.L0f136b5c: +/* f136b5c: 44d9f800 */ ctc1 $t9,$31 +/* f136b60: 0fc01a40 */ jal colourBlend +/* f136b64: 00000000 */ nop +/* f136b68: 3c014080 */ lui $at,0x4080 +/* f136b6c: 44816000 */ mtc1 $at,$f12 +/* f136b70: 0fc01ad5 */ jal func0f006b54 +/* f136b74: afa20124 */ sw $v0,0x124($sp) +/* f136b78: 3c01437f */ lui $at,0x437f +/* f136b7c: 44813000 */ mtc1 $at,$f6 +/* f136b80: 24060001 */ addiu $a2,$zero,0x1 +/* f136b84: 3c04aaaa */ lui $a0,0xaaaa +/* f136b88: 46060202 */ mul.s $f8,$f0,$f6 +/* f136b8c: 3c057777 */ lui $a1,0x7777 +/* f136b90: 34a5ff7f */ ori $a1,$a1,0xff7f +/* f136b94: 3484ff7f */ ori $a0,$a0,0xff7f +/* f136b98: 444ef800 */ cfc1 $t6,$31 +/* f136b9c: 44c6f800 */ ctc1 $a2,$31 +/* f136ba0: 00000000 */ nop +/* f136ba4: 460042a4 */ cvt.w.s $f10,$f8 +/* f136ba8: 4446f800 */ cfc1 $a2,$31 +/* f136bac: 00000000 */ nop +/* f136bb0: 30c60078 */ andi $a2,$a2,0x78 +/* f136bb4: 10c00012 */ beqz $a2,.L0f136c00 +/* f136bb8: 3c014f00 */ lui $at,0x4f00 +/* f136bbc: 44815000 */ mtc1 $at,$f10 +/* f136bc0: 24060001 */ addiu $a2,$zero,0x1 +/* f136bc4: 460a4281 */ sub.s $f10,$f8,$f10 +/* f136bc8: 44c6f800 */ ctc1 $a2,$31 +/* f136bcc: 00000000 */ nop +/* f136bd0: 460052a4 */ cvt.w.s $f10,$f10 +/* f136bd4: 4446f800 */ cfc1 $a2,$31 +/* f136bd8: 00000000 */ nop +/* f136bdc: 30c60078 */ andi $a2,$a2,0x78 +/* f136be0: 14c00005 */ bnez $a2,.L0f136bf8 +/* f136be4: 00000000 */ nop +/* f136be8: 44065000 */ mfc1 $a2,$f10 +/* f136bec: 3c018000 */ lui $at,0x8000 +/* f136bf0: 10000007 */ b .L0f136c10 +/* f136bf4: 00c13025 */ or $a2,$a2,$at +.L0f136bf8: +/* f136bf8: 10000005 */ b .L0f136c10 +/* f136bfc: 2406ffff */ addiu $a2,$zero,-1 +.L0f136c00: +/* f136c00: 44065000 */ mfc1 $a2,$f10 +/* f136c04: 00000000 */ nop +/* f136c08: 04c0fffb */ bltz $a2,.L0f136bf8 +/* f136c0c: 00000000 */ nop +.L0f136c10: +/* f136c10: 44cef800 */ ctc1 $t6,$31 +/* f136c14: 0fc01a40 */ jal colourBlend +/* f136c18: 00000000 */ nop +/* f136c1c: 1220000a */ beqz $s1,.L0f136c48 +/* f136c20: afa20128 */ sw $v0,0x128($sp) +/* f136c24: 27b1011c */ addiu $s1,$sp,0x11c +/* f136c28: 27b20128 */ addiu $s2,$sp,0x128 +/* f136c2c: 8e240000 */ lw $a0,0x0($s1) +.L0f136c30: +/* f136c30: 2406005f */ addiu $a2,$zero,0x5f +/* f136c34: 0fc01a40 */ jal colourBlend +/* f136c38: 308500ff */ andi $a1,$a0,0xff +/* f136c3c: 26310004 */ addiu $s1,$s1,0x4 +/* f136c40: 5632fffb */ bnel $s1,$s2,.L0f136c30 +/* f136c44: 8e240000 */ lw $a0,0x0($s1) +.L0f136c48: +/* f136c48: 0c002f9d */ jal viGetFovY +/* f136c4c: 00000000 */ nop +/* f136c50: 0c002f72 */ jal viGetAspect +/* f136c54: e7a00090 */ swc1 $f0,0x90($sp) +/* f136c58: c7b00090 */ lwc1 $f16,0x90($sp) +/* f136c5c: 3c013f00 */ lui $at,0x3f00 +/* f136c60: 44812000 */ mtc1 $at,$f4 +/* f136c64: 46008483 */ div.s $f18,$f16,$f0 +/* f136c68: 3c0142b4 */ lui $at,0x42b4 +/* f136c6c: 44814000 */ mtc1 $at,$f8 +/* f136c70: 3c017f1b */ lui $at,%hi(var7f1b57b8) +/* f136c74: c43057b8 */ lwc1 $f16,%lo(var7f1b57b8)($at) +/* f136c78: 46049182 */ mul.s $f6,$f18,$f4 +/* f136c7c: 46064281 */ sub.s $f10,$f8,$f6 +/* f136c80: 46105302 */ mul.s $f12,$f10,$f16 +/* f136c84: 0c0068f4 */ jal cosf +/* f136c88: 00000000 */ nop +/* f136c8c: 27b1016c */ addiu $s1,$sp,0x16c +/* f136c90: 02202025 */ or $a0,$s1,$zero +/* f136c94: 0c00566c */ jal mtx4LoadIdentity +/* f136c98: e7a00154 */ swc1 $f0,0x154($sp) +/* f136c9c: 0fc2d5be */ jal camGetMatrix1740 +/* f136ca0: 00000000 */ nop +/* f136ca4: 00402025 */ or $a0,$v0,$zero +/* f136ca8: 0c0056f8 */ jal mtx00015be0 +/* f136cac: 02202825 */ or $a1,$s1,$zero +/* f136cb0: 44800000 */ mtc1 $zero,$f0 +/* f136cb4: 3c017f1b */ lui $at,%hi(var7f1b57bc) +/* f136cb8: c42c57bc */ lwc1 $f12,%lo(var7f1b57bc)($at) +/* f136cbc: 02202825 */ or $a1,$s1,$zero +/* f136cc0: e7a0019c */ swc1 $f0,0x19c($sp) +/* f136cc4: e7a001a0 */ swc1 $f0,0x1a0($sp) +/* f136cc8: 0c0057e2 */ jal mtx00015f88 +/* f136ccc: e7a001a4 */ swc1 $f0,0x1a4($sp) +/* f136cd0: 8e630284 */ lw $v1,0x284($s3) +/* f136cd4: c7b20170 */ lwc1 $f18,0x170($sp) +/* f136cd8: c7a60180 */ lwc1 $f6,0x180($sp) +/* f136cdc: c4641734 */ lwc1 $f4,0x1734($v1) +/* f136ce0: 02002025 */ or $a0,$s0,$zero +/* f136ce4: 2405ffff */ addiu $a1,$zero,-1 +/* f136ce8: 46049202 */ mul.s $f8,$f18,$f4 +/* f136cec: c7b20190 */ lwc1 $f18,0x190($sp) +/* f136cf0: e7a80170 */ swc1 $f8,0x170($sp) +/* f136cf4: c46a1734 */ lwc1 $f10,0x1734($v1) +/* f136cf8: 460a3402 */ mul.s $f16,$f6,$f10 +/* f136cfc: c7a6016c */ lwc1 $f6,0x16c($sp) +/* f136d00: e7b00180 */ swc1 $f16,0x180($sp) +/* f136d04: c4641734 */ lwc1 $f4,0x1734($v1) +/* f136d08: 46049202 */ mul.s $f8,$f18,$f4 +/* f136d0c: c7b2017c */ lwc1 $f18,0x17c($sp) +/* f136d10: e7a80190 */ swc1 $f8,0x190($sp) +/* f136d14: c46a1730 */ lwc1 $f10,0x1730($v1) +/* f136d18: 460a3402 */ mul.s $f16,$f6,$f10 +/* f136d1c: c7a6018c */ lwc1 $f6,0x18c($sp) +/* f136d20: e7b0016c */ swc1 $f16,0x16c($sp) +/* f136d24: c4641730 */ lwc1 $f4,0x1730($v1) +/* f136d28: 46049202 */ mul.s $f8,$f18,$f4 +/* f136d2c: e7a8017c */ swc1 $f8,0x17c($sp) +/* f136d30: c46a1730 */ lwc1 $f10,0x1730($v1) +/* f136d34: 460a3402 */ mul.s $f16,$f6,$f10 +/* f136d38: e7b0018c */ swc1 $f16,0x18c($sp) +/* f136d3c: c4721bbc */ lwc1 $f18,0x1bbc($v1) +/* f136d40: e7b20148 */ swc1 $f18,0x148($sp) +/* f136d44: c4641bc0 */ lwc1 $f4,0x1bc0($v1) +/* f136d48: e7a4014c */ swc1 $f4,0x14c($sp) +/* f136d4c: c4681bc4 */ lwc1 $f8,0x1bc4($v1) +/* f136d50: 0fc54df7 */ jal gfxSetPrimColour +/* f136d54: e7a80150 */ swc1 $f8,0x150($sp) +/* f136d58: c7ae0154 */ lwc1 $f14,0x154($sp) +/* f136d5c: 3c0fb900 */ lui $t7,0xb900 +/* f136d60: 3c180050 */ lui $t8,0x50 +/* f136d64: 3c013f80 */ lui $at,0x3f80 +/* f136d68: 37184340 */ ori $t8,$t8,0x4340 +/* f136d6c: 35ef031d */ ori $t7,$t7,0x31d +/* f136d70: 3c1f800a */ lui $ra,%hi(var800a415c) +/* f136d74: 44816000 */ mtc1 $at,$f12 +/* f136d78: ac4f0000 */ sw $t7,0x0($v0) +/* f136d7c: ac580004 */ sw $t8,0x4($v0) +/* f136d80: 24500008 */ addiu $s0,$v0,0x8 +/* f136d84: 27ff415c */ addiu $ra,$ra,%lo(var800a415c) +/* f136d88: 0000b825 */ or $s7,$zero,$zero +/* f136d8c: 241e0001 */ addiu $s8,$zero,0x1 +/* f136d90: 24160003 */ addiu $s6,$zero,0x3 +/* f136d94: 3c14f600 */ lui $s4,0xf600 +/* f136d98: 27b3011c */ addiu $s3,$sp,0x11c +/* f136d9c: 3c12fa00 */ lui $s2,0xfa00 +.L0f136da0: +/* f136da0: 3c198008 */ lui $t9,%hi(var8007f124) +/* f136da4: 8f39f124 */ lw $t9,%lo(var8007f124)($t9) +/* f136da8: 24010002 */ addiu $at,$zero,0x2 +/* f136dac: 3c11800a */ lui $s1,%hi(var800a4158) +/* f136db0: 17200003 */ bnez $t9,.L0f136dc0 +/* f136db4: 00000000 */ nop +/* f136db8: 52e100e4 */ beql $s7,$at,.L0f13714c +/* f136dbc: 26f70001 */ addiu $s7,$s7,0x1 +.L0f136dc0: +/* f136dc0: 8e314158 */ lw $s1,%lo(var800a4158)($s1) +/* f136dc4: 0000a825 */ or $s5,$zero,$zero +/* f136dc8: 06200036 */ bltz $s1,.L0f136ea4 +/* f136dcc: 00000000 */ nop +.L0f136dd0: +/* f136dd0: 0620002f */ bltz $s1,.L0f136e90 +/* f136dd4: 00006825 */ or $t5,$zero,$zero +/* f136dd8: 26220001 */ addiu $v0,$s1,0x1 +/* f136ddc: 00570019 */ multu $v0,$s7 +/* f136de0: 3c06800a */ lui $a2,%hi(var800a4154) +/* f136de4: 00157880 */ sll $t7,$s5,0x2 +/* f136de8: 27b800d0 */ addiu $t8,$sp,0xd0 +/* f136dec: 01f86021 */ addu $t4,$t7,$t8 +/* f136df0: 8cc64154 */ lw $a2,%lo(var800a4154)($a2) +/* f136df4: 00007012 */ mflo $t6 +/* f136df8: 00000000 */ nop +/* f136dfc: 00000000 */ nop +/* f136e00: 01c20019 */ multu $t6,$v0 +/* f136e04: 00002012 */ mflo $a0 +/* f136e08: 00000000 */ nop +/* f136e0c: 00000000 */ nop +/* f136e10: 02a20019 */ multu $s5,$v0 +/* f136e14: 00002812 */ mflo $a1 +/* f136e18: 00000000 */ nop +/* f136e1c: 00000000 */ nop +.L0f136e20: +/* f136e20: 008dc821 */ addu $t9,$a0,$t5 +/* f136e24: 03257021 */ addu $t6,$t9,$a1 +/* f136e28: 01d60019 */ multu $t6,$s6 +/* f136e2c: c7a60148 */ lwc1 $f6,0x148($sp) +/* f136e30: c7b2014c */ lwc1 $f18,0x14c($sp) +/* f136e34: 25ad0001 */ addiu $t5,$t5,0x1 +/* f136e38: 022d082a */ slt $at,$s1,$t5 +/* f136e3c: 00001812 */ mflo $v1 +/* f136e40: 00037880 */ sll $t7,$v1,0x2 +/* f136e44: 00cf1021 */ addu $v0,$a2,$t7 +/* f136e48: c44a0000 */ lwc1 $f10,0x0($v0) +/* f136e4c: c4440004 */ lwc1 $f4,0x4($v0) +/* f136e50: 460a3402 */ mul.s $f16,$f6,$f10 +/* f136e54: c44a0008 */ lwc1 $f10,0x8($v0) +/* f136e58: 46049202 */ mul.s $f8,$f18,$f4 +/* f136e5c: c7b20150 */ lwc1 $f18,0x150($sp) +/* f136e60: 46125102 */ mul.s $f4,$f10,$f18 +/* f136e64: 46088180 */ add.s $f6,$f16,$f8 +/* f136e68: 46062000 */ add.s $f0,$f4,$f6 +/* f136e6c: 460e003e */ c.le.s $f0,$f14 +/* f136e70: 00000000 */ nop +/* f136e74: 45020004 */ bc1fl .L0f136e88 +/* f136e78: ad800000 */ sw $zero,0x0($t4) +/* f136e7c: 10000002 */ b .L0f136e88 +/* f136e80: ad9e0000 */ sw $s8,0x0($t4) +/* f136e84: ad800000 */ sw $zero,0x0($t4) +.L0f136e88: +/* f136e88: 1020ffe5 */ beqz $at,.L0f136e20 +/* f136e8c: 258c0010 */ addiu $t4,$t4,0x10 +.L0f136e90: +/* f136e90: 26b50001 */ addiu $s5,$s5,0x1 +/* f136e94: 0235082a */ slt $at,$s1,$s5 +/* f136e98: 1020ffcd */ beqz $at,.L0f136dd0 +/* f136e9c: 00000000 */ nop +/* f136ea0: 0000a825 */ or $s5,$zero,$zero +.L0f136ea4: +/* f136ea4: 5a2000a9 */ blezl $s1,.L0f13714c +/* f136ea8: 26f70001 */ addiu $s7,$s7,0x1 +.L0f136eac: +/* f136eac: 1a2000a2 */ blez $s1,.L0f137138 +/* f136eb0: 00006825 */ or $t5,$zero,$zero +/* f136eb4: 0015c080 */ sll $t8,$s5,0x2 +/* f136eb8: 27b900d0 */ addiu $t9,$sp,0xd0 +/* f136ebc: 03196021 */ addu $t4,$t8,$t9 +.L0f136ec0: +/* f136ec0: 8d8e0000 */ lw $t6,0x0($t4) +/* f136ec4: 11c0000a */ beqz $t6,.L0f136ef0 +/* f136ec8: 00000000 */ nop +/* f136ecc: 8d8f0010 */ lw $t7,0x10($t4) +/* f136ed0: 11e00007 */ beqz $t7,.L0f136ef0 +/* f136ed4: 00000000 */ nop +/* f136ed8: 8d980004 */ lw $t8,0x4($t4) +/* f136edc: 13000004 */ beqz $t8,.L0f136ef0 +/* f136ee0: 00000000 */ nop +/* f136ee4: 8d990014 */ lw $t9,0x14($t4) +/* f136ee8: 57200090 */ bnezl $t9,.L0f13712c +/* f136eec: 25ad0001 */ addiu $t5,$t5,0x1 +.L0f136ef0: +/* f136ef0: 02310019 */ multu $s1,$s1 +/* f136ef4: 00002825 */ or $a1,$zero,$zero +/* f136ef8: 00007012 */ mflo $t6 +/* f136efc: 00000000 */ nop +/* f136f00: 00000000 */ nop +/* f136f04: 01d70019 */ multu $t6,$s7 +/* f136f08: 8fee0000 */ lw $t6,0x0($ra) +/* f136f0c: 00007812 */ mflo $t7 +/* f136f10: 01edc021 */ addu $t8,$t7,$t5 +/* f136f14: 00000000 */ nop +/* f136f18: 02b10019 */ multu $s5,$s1 +/* f136f1c: 0000c812 */ mflo $t9 +/* f136f20: 03195821 */ addu $t3,$t8,$t9 +/* f136f24: 000b3880 */ sll $a3,$t3,0x2 +/* f136f28: 01c74021 */ addu $t0,$t6,$a3 +/* f136f2c: 8d020000 */ lw $v0,0x0($t0) +/* f136f30: 8d090004 */ lw $t1,0x4($t0) +/* f136f34: 3c198008 */ lui $t9,%hi(var8007f120) +/* f136f38: 00560019 */ multu $v0,$s6 +/* f136f3c: 01225023 */ subu $t2,$t1,$v0 +/* f136f40: 8f39f120 */ lw $t9,%lo(var8007f120)($t9) +/* f136f44: 00403025 */ or $a2,$v0,$zero +/* f136f48: 05410003 */ bgez $t2,.L0f136f58 +/* f136f4c: 000a7883 */ sra $t7,$t2,0x2 +/* f136f50: 25410003 */ addiu $at,$t2,0x3 +/* f136f54: 00017883 */ sra $t7,$at,0x2 +.L0f136f58: +/* f136f58: 0000c012 */ mflo $t8 +/* f136f5c: 0049082a */ slt $at,$v0,$t1 +/* f136f60: 25ea0001 */ addiu $t2,$t7,0x1 +/* f136f64: 00402025 */ or $a0,$v0,$zero +/* f136f68: 1020006f */ beqz $at,.L0f137128 +/* f136f6c: 03191821 */ addu $v1,$t8,$t9 +.L0f136f70: +/* f136f70: 14c40009 */ bne $a2,$a0,.L0f136f98 +/* f136f74: 02001025 */ or $v0,$s0,$zero +/* f136f78: 00057080 */ sll $t6,$a1,0x2 +/* f136f7c: 026e7821 */ addu $t7,$s3,$t6 +/* f136f80: ac520000 */ sw $s2,0x0($v0) +/* f136f84: 8df80000 */ lw $t8,0x0($t7) +/* f136f88: 26100008 */ addiu $s0,$s0,0x8 +/* f136f8c: 24a50001 */ addiu $a1,$a1,0x1 +/* f136f90: 00ca3021 */ addu $a2,$a2,$t2 +/* f136f94: ac580004 */ sw $t8,0x4($v0) +.L0f136f98: +/* f136f98: 80790000 */ lb $t9,0x0($v1) +/* f136f9c: 24630003 */ addiu $v1,$v1,0x3 +/* f136fa0: 44998000 */ mtc1 $t9,$f16 +/* f136fa4: 00000000 */ nop +/* f136fa8: 46808220 */ cvt.s.w $f8,$f16 +/* f136fac: c7b00174 */ lwc1 $f16,0x174($sp) +/* f136fb0: e7a800c4 */ swc1 $f8,0xc4($sp) +/* f136fb4: 806efffe */ lb $t6,-0x2($v1) +/* f136fb8: c7a800c4 */ lwc1 $f8,0xc4($sp) +/* f136fbc: 448e5000 */ mtc1 $t6,$f10 +/* f136fc0: 00000000 */ nop +/* f136fc4: 468054a0 */ cvt.s.w $f18,$f10 +/* f136fc8: 46088282 */ mul.s $f10,$f16,$f8 +/* f136fcc: e7b200c8 */ swc1 $f18,0xc8($sp) +/* f136fd0: 806fffff */ lb $t7,-0x1($v1) +/* f136fd4: c7b20184 */ lwc1 $f18,0x184($sp) +/* f136fd8: 448f2000 */ mtc1 $t7,$f4 +/* f136fdc: 00000000 */ nop +/* f136fe0: 468021a0 */ cvt.s.w $f6,$f4 +/* f136fe4: c7a400c8 */ lwc1 $f4,0xc8($sp) +/* f136fe8: e7a600cc */ swc1 $f6,0xcc($sp) +/* f136fec: 46049182 */ mul.s $f6,$f18,$f4 +/* f136ff0: c7b200cc */ lwc1 $f18,0xcc($sp) +/* f136ff4: 46065400 */ add.s $f16,$f10,$f6 +/* f136ff8: c7aa0194 */ lwc1 $f10,0x194($sp) +/* f136ffc: 460a9182 */ mul.s $f6,$f18,$f10 +/* f137000: 46103280 */ add.s $f10,$f6,$f16 +/* f137004: c7a60170 */ lwc1 $f6,0x170($sp) +/* f137008: 460a6003 */ div.s $f0,$f12,$f10 +/* f13700c: c7aa0180 */ lwc1 $f10,0x180($sp) +/* f137010: 46083402 */ mul.s $f16,$f6,$f8 +/* f137014: 00000000 */ nop +/* f137018: 46045182 */ mul.s $f6,$f10,$f4 +/* f13701c: 46068280 */ add.s $f10,$f16,$f6 +/* f137020: c7b00190 */ lwc1 $f16,0x190($sp) +/* f137024: 46109182 */ mul.s $f6,$f18,$f16 +/* f137028: 460a3400 */ add.s $f16,$f6,$f10 +/* f13702c: 46008182 */ mul.s $f6,$f16,$f0 +/* f137030: 461e3280 */ add.s $f10,$f6,$f30 +/* f137034: 460ab03c */ c.lt.s $f22,$f10 +/* f137038: e7aa00b8 */ swc1 $f10,0xb8($sp) +/* f13703c: 45000031 */ bc1f .L0f137104 +/* f137040: 00000000 */ nop +/* f137044: 461a503c */ c.lt.s $f10,$f26 +/* f137048: c7b0016c */ lwc1 $f16,0x16c($sp) +/* f13704c: 4502002e */ bc1fl .L0f137108 +/* f137050: 8fef0000 */ lw $t7,0x0($ra) +/* f137054: 46088182 */ mul.s $f6,$f16,$f8 +/* f137058: c7b0017c */ lwc1 $f16,0x17c($sp) +/* f13705c: 46048202 */ mul.s $f8,$f16,$f4 +/* f137060: c7a4018c */ lwc1 $f4,0x18c($sp) +/* f137064: 46083400 */ add.s $f16,$f6,$f8 +/* f137068: 46049182 */ mul.s $f6,$f18,$f4 +/* f13706c: 46103200 */ add.s $f8,$f6,$f16 +/* f137070: 46004482 */ mul.s $f18,$f8,$f0 +/* f137074: 4612e081 */ sub.s $f2,$f28,$f18 +/* f137078: 4602a03c */ c.lt.s $f20,$f2 +/* f13707c: e7a200b4 */ swc1 $f2,0xb4($sp) +/* f137080: 45020021 */ bc1fl .L0f137108 +/* f137084: 8fef0000 */ lw $t7,0x0($ra) +/* f137088: 4618103c */ c.lt.s $f2,$f24 +/* f13708c: e7a200b4 */ swc1 $f2,0xb4($sp) +/* f137090: c7a400b4 */ lwc1 $f4,0xb4($sp) +/* f137094: 4502001c */ bc1fl .L0f137108 +/* f137098: 8fef0000 */ lw $t7,0x0($ra) +/* f13709c: 4600218d */ trunc.w.s $f6,$f4 +/* f1370a0: 02001025 */ or $v0,$s0,$zero +/* f1370a4: 26100008 */ addiu $s0,$s0,0x8 +/* f1370a8: 4600540d */ trunc.w.s $f16,$f10 +/* f1370ac: 44193000 */ mfc1 $t9,$f6 +/* f1370b0: 440f8000 */ mfc1 $t7,$f16 +/* f1370b4: afb900ac */ sw $t9,0xac($sp) +/* f1370b8: 25f90001 */ addiu $t9,$t7,0x1 +/* f1370bc: 332e03ff */ andi $t6,$t9,0x3ff +/* f1370c0: 8fb900ac */ lw $t9,0xac($sp) +/* f1370c4: afaf00b0 */ sw $t7,0xb0($sp) +/* f1370c8: 000e7880 */ sll $t7,$t6,0x2 +/* f1370cc: 01f4c025 */ or $t8,$t7,$s4 +/* f1370d0: 272e0001 */ addiu $t6,$t9,0x1 +/* f1370d4: 31cf03ff */ andi $t7,$t6,0x3ff +/* f1370d8: 000fcb80 */ sll $t9,$t7,0xe +/* f1370dc: 03197025 */ or $t6,$t8,$t9 +/* f1370e0: ac4e0000 */ sw $t6,0x0($v0) +/* f1370e4: 8faf00b0 */ lw $t7,0xb0($sp) +/* f1370e8: 8fae00ac */ lw $t6,0xac($sp) +/* f1370ec: 31f803ff */ andi $t8,$t7,0x3ff +/* f1370f0: 0018c880 */ sll $t9,$t8,0x2 +/* f1370f4: 31cf03ff */ andi $t7,$t6,0x3ff +/* f1370f8: 000fc380 */ sll $t8,$t7,0xe +/* f1370fc: 03387025 */ or $t6,$t9,$t8 +/* f137100: ac4e0004 */ sw $t6,0x4($v0) +.L0f137104: +/* f137104: 8fef0000 */ lw $t7,0x0($ra) +.L0f137108: +/* f137108: 24840001 */ addiu $a0,$a0,0x1 +/* f13710c: 01e7c821 */ addu $t9,$t7,$a3 +/* f137110: 8f380004 */ lw $t8,0x4($t9) +/* f137114: 0098082a */ slt $at,$a0,$t8 +/* f137118: 1420ff95 */ bnez $at,.L0f136f70 +/* f13711c: 00000000 */ nop +/* f137120: 3c11800a */ lui $s1,%hi(var800a4158) +/* f137124: 8e314158 */ lw $s1,%lo(var800a4158)($s1) +.L0f137128: +/* f137128: 25ad0001 */ addiu $t5,$t5,0x1 +.L0f13712c: +/* f13712c: 01b1082a */ slt $at,$t5,$s1 +/* f137130: 1420ff63 */ bnez $at,.L0f136ec0 +/* f137134: 258c0010 */ addiu $t4,$t4,0x10 +.L0f137138: +/* f137138: 26b50001 */ addiu $s5,$s5,0x1 +/* f13713c: 02b1082a */ slt $at,$s5,$s1 +/* f137140: 1420ff5a */ bnez $at,.L0f136eac +/* f137144: 00000000 */ nop +/* f137148: 26f70001 */ addiu $s7,$s7,0x1 +.L0f13714c: +/* f13714c: 24010006 */ addiu $at,$zero,0x6 +/* f137150: 16e1ff13 */ bne $s7,$at,.L0f136da0 +/* f137154: 00000000 */ nop +/* f137158: 0fc54e0e */ jal func0f153838 +/* f13715c: 02002025 */ or $a0,$s0,$zero +.L0f137160: +/* f137160: 8fbf006c */ lw $ra,0x6c($sp) +/* f137164: d7b40018 */ ldc1 $f20,0x18($sp) +/* f137168: d7b60020 */ ldc1 $f22,0x20($sp) +/* f13716c: d7b80028 */ ldc1 $f24,0x28($sp) +/* f137170: d7ba0030 */ ldc1 $f26,0x30($sp) +/* f137174: d7bc0038 */ ldc1 $f28,0x38($sp) +/* f137178: d7be0040 */ ldc1 $f30,0x40($sp) +/* f13717c: 8fb00048 */ lw $s0,0x48($sp) +/* f137180: 8fb1004c */ lw $s1,0x4c($sp) +/* f137184: 8fb20050 */ lw $s2,0x50($sp) +/* f137188: 8fb30054 */ lw $s3,0x54($sp) +/* f13718c: 8fb40058 */ lw $s4,0x58($sp) +/* f137190: 8fb5005c */ lw $s5,0x5c($sp) +/* f137194: 8fb60060 */ lw $s6,0x60($sp) +/* f137198: 8fb70064 */ lw $s7,0x64($sp) +/* f13719c: 8fbe0068 */ lw $s8,0x68($sp) +/* f1371a0: 03e00008 */ jr $ra +/* f1371a4: 27bd01b0 */ addiu $sp,$sp,0x1b0 +); diff --git a/src/game/game_173a00.c b/src/game/surface.c similarity index 95% rename from src/game/game_173a00.c rename to src/game/surface.c index f91c61c80..80b38cf5c 100644 --- a/src/game/game_173a00.c +++ b/src/game/surface.c @@ -2,7 +2,7 @@ #include "constants.h" #include "game/game_13b670.h" #include "game/texdecompress.h" -#include "game/game_173a00.h" +#include "game/surface.h" #include "bss.h" #include "data.h" #include "types.h" @@ -178,12 +178,12 @@ u32 var800844e4 = 0x00000000; u32 var800844e8 = 0x00000000; u32 var800844ec = 0x00000000; -void func0f173a00(void) +void surface0f173a00(void) { // empty } -void func0f173a08(void) +void surface0f173a08(void) { s32 i; @@ -195,7 +195,7 @@ void func0f173a08(void) var800ab5b0 = -1; } -bool func0f173a44(u32 value) +bool surface0f173a44(u32 value) { if (var800ab5b0 == value) { return false; @@ -205,7 +205,7 @@ bool func0f173a44(u32 value) return true; } -bool func0f173a70(s32 index, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9, s32 arg10) +bool surface0f173a70(s32 index, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9, s32 arg10) { bool result = false; @@ -237,7 +237,7 @@ bool func0f173a70(s32 index, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s return result; } -bool func0f173b8c(s32 index, s32 arg1, s32 arg2, s32 arg3, s32 arg4) +bool surface0f173b8c(s32 index, s32 arg1, s32 arg2, s32 arg3, s32 arg4) { bool result = false; @@ -258,7 +258,7 @@ bool func0f173b8c(s32 index, s32 arg1, s32 arg2, s32 arg3, s32 arg4) } GLOBAL_ASM( -glabel func0f173c10 +glabel surface0f173c10 /* f173c10: 14a00003 */ bnez $a1,.L0f173c20 /* f173c14: 90830008 */ lbu $v1,0x8($a0) /* f173c18: 03e00008 */ jr $ra @@ -311,7 +311,7 @@ glabel func0f173c10 ); GLOBAL_ASM( -glabel func0f173cb8 +glabel surface0f173cb8 /* f173cb8: 14a00003 */ bnez $a1,.L0f173cc8 /* f173cbc: 90830009 */ lbu $v1,0x9($a0) /* f173cc0: 03e00008 */ jr $ra @@ -364,12 +364,12 @@ glabel func0f173cb8 ); GLOBAL_ASM( -glabel func0f173d60 +glabel surface0f173d60 /* f173d60: 27bdffe0 */ addiu $sp,$sp,-32 /* f173d64: afbf0014 */ sw $ra,0x14($sp) /* f173d68: 8c830008 */ lw $v1,0x8($a0) /* f173d6c: 306e0003 */ andi $t6,$v1,0x3 -/* f173d70: 0fc5cf04 */ jal func0f173c10 +/* f173d70: 0fc5cf04 */ jal surface0f173c10 /* f173d74: afae001c */ sw $t6,0x1c($sp) /* f173d78: 8fa3001c */ lw $v1,0x1c($sp) /* f173d7c: 24010003 */ addiu $at,$zero,0x3 @@ -420,15 +420,15 @@ glabel func0f173d60 ); GLOBAL_ASM( -glabel func0f173e10 +glabel surface0f173e10 /* f173e10: 27bdffe0 */ addiu $sp,$sp,-32 /* f173e14: afbf0014 */ sw $ra,0x14($sp) /* f173e18: afa40020 */ sw $a0,0x20($sp) -/* f173e1c: 0fc5cf2e */ jal func0f173cb8 +/* f173e1c: 0fc5cf2e */ jal surface0f173cb8 /* f173e20: afa50024 */ sw $a1,0x24($sp) /* f173e24: afa2001c */ sw $v0,0x1c($sp) /* f173e28: 8fa40020 */ lw $a0,0x20($sp) -/* f173e2c: 0fc5cf58 */ jal func0f173d60 +/* f173e2c: 0fc5cf58 */ jal surface0f173d60 /* f173e30: 8fa50024 */ lw $a1,0x24($sp) /* f173e34: 8fae001c */ lw $t6,0x1c($sp) /* f173e38: 8fbf0014 */ lw $ra,0x14($sp) @@ -440,7 +440,7 @@ glabel func0f173e10 ); GLOBAL_ASM( -glabel func0f173e50 +glabel surface0f173e50 /* f173e50: 27bdffd8 */ addiu $sp,$sp,-40 /* f173e54: afbf0024 */ sw $ra,0x24($sp) /* f173e58: afb30020 */ sw $s3,0x20($sp) @@ -482,7 +482,7 @@ glabel func0f173e50 /* f173ed4: 00008025 */ or $s0,$zero,$zero .L0f173ed8: /* f173ed8: 02602025 */ or $a0,$s3,$zero -/* f173edc: 0fc5cf84 */ jal func0f173e10 +/* f173edc: 0fc5cf84 */ jal surface0f173e10 /* f173ee0: 02002825 */ or $a1,$s0,$zero /* f173ee4: 8e380000 */ lw $t8,0x0($s1) /* f173ee8: 0002c880 */ sll $t9,$v0,0x2 @@ -500,7 +500,7 @@ glabel func0f173e50 /* f173f14: 27bd0028 */ addiu $sp,$sp,0x28 ); -s32 func0f173f18(s32 arg0) +s32 surface0f173f18(s32 arg0) { s32 i = 0; @@ -514,7 +514,7 @@ s32 func0f173f18(s32 arg0) return i; } -u32 func0f173f48(u32 arg0) +u32 surface0f173f48(u32 arg0) { if (arg0 == 1) { return 2; @@ -528,7 +528,7 @@ u32 func0f173f48(u32 arg0) } GLOBAL_ASM( -glabel func0f173f78 +glabel surface0f173f78 /* f173f78: 27bdff70 */ addiu $sp,$sp,-144 /* f173f7c: afbf0044 */ sw $ra,0x44($sp) /* f173f80: afb20040 */ sw $s2,0x40($sp) @@ -544,14 +544,14 @@ glabel func0f173f78 /* f173fa8: 000fc0c0 */ sll $t8,$t7,0x3 /* f173fac: 00a08825 */ or $s1,$a1,$zero /* f173fb0: 90a40008 */ lbu $a0,0x8($a1) -/* f173fb4: 0fc5cfc6 */ jal func0f173f18 +/* f173fb4: 0fc5cfc6 */ jal surface0f173f18 /* f173fb8: 03198021 */ addu $s0,$t8,$t9 /* f173fbc: afa20088 */ sw $v0,0x88($sp) -/* f173fc0: 0fc5cfc6 */ jal func0f173f18 +/* f173fc0: 0fc5cfc6 */ jal surface0f173f18 /* f173fc4: 92240009 */ lbu $a0,0x9($s1) /* f173fc8: afa20084 */ sw $v0,0x84($sp) /* f173fcc: 02202025 */ or $a0,$s1,$zero -/* f173fd0: 0fc5cf58 */ jal func0f173d60 +/* f173fd0: 0fc5cf58 */ jal surface0f173d60 /* f173fd4: 00002825 */ or $a1,$zero,$zero /* f173fd8: 8fa800a4 */ lw $t0,0xa4($sp) /* f173fdc: 02401825 */ or $v1,$s2,$zero @@ -566,7 +566,7 @@ glabel func0f173f78 /* f174000: 26520008 */ addiu $s2,$s2,0x8 /* f174004: afa20080 */ sw $v0,0x80($sp) /* f174008: 00046f82 */ srl $t5,$a0,0x1e -/* f17400c: 0fc5ce91 */ jal func0f173a44 +/* f17400c: 0fc5ce91 */ jal surface0f173a44 /* f174010: 000d2380 */ sll $a0,$t5,0xe /* f174014: 1040000a */ beqz $v0,.L0f174040 /* f174018: 8fa70080 */ lw $a3,0x80($sp) @@ -610,7 +610,7 @@ glabel func0f173f78 /* f1740ac: 014d5823 */ subu $t3,$t2,$t5 /* f1740b0: afab0020 */ sw $t3,0x20($sp) /* f1740b4: afaf0028 */ sw $t7,0x28($sp) -/* f1740b8: 0fc5ce9c */ jal func0f173a70 +/* f1740b8: 0fc5ce9c */ jal surface0f173a70 /* f1740bc: afae0024 */ sw $t6,0x24($sp) /* f1740c0: 1040003c */ beqz $v0,.L0f1741b4 /* f1740c4: 8fa70080 */ lw $a3,0x80($sp) @@ -640,10 +640,10 @@ glabel func0f173f78 /* f174124: ac6e0000 */ sw $t6,0x0($v1) /* f174128: afa30054 */ sw $v1,0x54($sp) /* f17412c: 26520008 */ addiu $s2,$s2,0x8 -/* f174130: 0fc5cfd2 */ jal func0f173f48 +/* f174130: 0fc5cfd2 */ jal surface0f173f48 /* f174134: 00002025 */ or $a0,$zero,$zero /* f174138: 00002025 */ or $a0,$zero,$zero -/* f17413c: 0fc5cfd2 */ jal func0f173f48 +/* f17413c: 0fc5cfd2 */ jal surface0f173f48 /* f174140: afa2004c */ sw $v0,0x4c($sp) /* f174144: 8fa3004c */ lw $v1,0x4c($sp) /* f174148: 8fac0084 */ lw $t4,0x84($sp) @@ -730,7 +730,7 @@ glabel func0f173f78 /* f17426c: 006b8021 */ addu $s0,$v1,$t3 /* f174270: afb00010 */ sw $s0,0x10($sp) /* f174274: afa5006c */ sw $a1,0x6c($sp) -/* f174278: 0fc5cee3 */ jal func0f173b8c +/* f174278: 0fc5cee3 */ jal surface0f173b8c /* f17427c: 00002025 */ or $a0,$zero,$zero /* f174280: 8fa5006c */ lw $a1,0x6c($sp) /* f174284: 8fa60068 */ lw $a2,0x68($sp) @@ -761,7 +761,7 @@ glabel func0f173f78 ); GLOBAL_ASM( -glabel func0f1742e4 +glabel surface0f1742e4 /* f1742e4: 27bdfff8 */ addiu $sp,$sp,-8 /* f1742e8: afb00004 */ sw $s0,0x4($sp) /* f1742ec: 90c2000b */ lbu $v0,0xb($a2) @@ -817,7 +817,7 @@ glabel func0f1742e4 ); GLOBAL_ASM( -glabel func0f1743a0 +glabel surface0f1743a0 /* f1743a0: 27bdff68 */ addiu $sp,$sp,-152 /* f1743a4: afb00038 */ sw $s0,0x38($sp) /* f1743a8: 00808025 */ or $s0,$a0,$zero @@ -826,7 +826,7 @@ glabel func0f1743a0 /* f1743b4: afa600a0 */ sw $a2,0xa0($sp) /* f1743b8: 00a02025 */ or $a0,$a1,$zero /* f1743bc: 27a50094 */ addiu $a1,$sp,0x94 -/* f1743c0: 0fc5cf94 */ jal func0f173e50 +/* f1743c0: 0fc5cf94 */ jal surface0f173e50 /* f1743c4: 27a60090 */ addiu $a2,$sp,0x90 /* f1743c8: 8fa9009c */ lw $t1,0x9c($sp) /* f1743cc: 8fa800a0 */ lw $t0,0xa0($sp) @@ -901,7 +901,7 @@ glabel func0f1743a0 /* f1744d4: afa0001c */ sw $zero,0x1c($sp) /* f1744d8: afa00020 */ sw $zero,0x20($sp) /* f1744dc: afa00024 */ sw $zero,0x24($sp) -/* f1744e0: 0fc5ce9c */ jal func0f173a70 +/* f1744e0: 0fc5ce9c */ jal surface0f173a70 /* f1744e4: afa00028 */ sw $zero,0x28($sp) /* f1744e8: 1040000d */ beqz $v0,.L0f174520 /* f1744ec: 8fa800a0 */ lw $t0,0xa0($sp) @@ -1007,7 +1007,7 @@ glabel func0f1743a0 /* f174664: afa0001c */ sw $zero,0x1c($sp) /* f174668: afa00020 */ sw $zero,0x20($sp) /* f17466c: afa00024 */ sw $zero,0x24($sp) -/* f174670: 0fc5ce9c */ jal func0f173a70 +/* f174670: 0fc5ce9c */ jal surface0f173a70 /* f174674: afa00028 */ sw $zero,0x28($sp) /* f174678: 8fa800a0 */ lw $t0,0xa0($sp) /* f17467c: 1040000d */ beqz $v0,.L0f1746b4 @@ -1092,7 +1092,7 @@ glabel func0f1743a0 ); GLOBAL_ASM( -glabel func0f1747a4 +glabel surface0f1747a4 /* f1747a4: 27bdff48 */ addiu $sp,$sp,-184 /* f1747a8: 8fae00d4 */ lw $t6,0xd4($sp) /* f1747ac: afbf005c */ sw $ra,0x5c($sp) @@ -1132,23 +1132,23 @@ glabel func0f1747a4 /* f17482c: afa60064 */ sw $a2,0x64($sp) /* f174830: 02a02025 */ or $a0,$s5,$zero .L0f174834: -/* f174834: 0fc5cf04 */ jal func0f173c10 +/* f174834: 0fc5cf04 */ jal surface0f173c10 /* f174838: 02402825 */ or $a1,$s2,$zero -/* f17483c: 0fc5cfc6 */ jal func0f173f18 +/* f17483c: 0fc5cfc6 */ jal surface0f173f18 /* f174840: 00402025 */ or $a0,$v0,$zero /* f174844: 00409825 */ or $s3,$v0,$zero /* f174848: 02a02025 */ or $a0,$s5,$zero -/* f17484c: 0fc5cf2e */ jal func0f173cb8 +/* f17484c: 0fc5cf2e */ jal surface0f173cb8 /* f174850: 02402825 */ or $a1,$s2,$zero -/* f174854: 0fc5cfc6 */ jal func0f173f18 +/* f174854: 0fc5cfc6 */ jal surface0f173f18 /* f174858: 00402025 */ or $a0,$v0,$zero /* f17485c: 0040a025 */ or $s4,$v0,$zero /* f174860: 02a02025 */ or $a0,$s5,$zero -/* f174864: 0fc5cf58 */ jal func0f173d60 +/* f174864: 0fc5cf58 */ jal surface0f173d60 /* f174868: 02402825 */ or $a1,$s2,$zero /* f17486c: 00408025 */ or $s0,$v0,$zero /* f174870: 02a02025 */ or $a0,$s5,$zero -/* f174874: 0fc5cf84 */ jal func0f173e10 +/* f174874: 0fc5cf84 */ jal surface0f173e10 /* f174878: 02402825 */ or $a1,$s2,$zero /* f17487c: afa20080 */ sw $v0,0x80($sp) /* f174880: 8ea3000c */ lw $v1,0xc($s5) @@ -1157,7 +1157,7 @@ glabel func0f1747a4 /* f17488c: 0018cfc2 */ srl $t9,$t8,0x1f /* f174890: 00044380 */ sll $t0,$a0,0xe /* f174894: afb9007c */ sw $t9,0x7c($sp) -/* f174898: 0fc5ce91 */ jal func0f173a44 +/* f174898: 0fc5ce91 */ jal surface0f173a44 /* f17489c: 01002025 */ or $a0,$t0,$zero /* f1748a0: 1040000a */ beqz $v0,.L0f1748cc /* f1748a4: 03c02025 */ or $a0,$s8,$zero @@ -1186,7 +1186,7 @@ glabel func0f1747a4 /* f1748fc: 30460003 */ andi $a2,$v0,0x3 /* f174900: afae0010 */ sw $t6,0x10($sp) /* f174904: afaf0014 */ sw $t7,0x14($sp) -/* f174908: 0fc5ce9c */ jal func0f173a70 +/* f174908: 0fc5ce9c */ jal surface0f173a70 /* f17490c: afb80018 */ sw $t8,0x18($sp) /* f174910: 1040002c */ beqz $v0,.L0f1749c4 /* f174914: 02c08825 */ or $s1,$s6,$zero @@ -1208,10 +1208,10 @@ glabel func0f1747a4 /* f174954: 010a6025 */ or $t4,$t0,$t2 /* f174958: ae2c0000 */ sw $t4,0x0($s1) /* f17495c: 8fa400c4 */ lw $a0,0xc4($sp) -/* f174960: 0fc5cfd2 */ jal func0f173f48 +/* f174960: 0fc5cfd2 */ jal surface0f173f48 /* f174964: 26d60008 */ addiu $s6,$s6,0x8 /* f174968: 00408025 */ or $s0,$v0,$zero -/* f17496c: 0fc5cfd2 */ jal func0f173f48 +/* f17496c: 0fc5cfd2 */ jal surface0f173f48 /* f174970: 8fa400c0 */ lw $a0,0xc0($sp) /* f174974: 304d0003 */ andi $t5,$v0,0x3 /* f174978: 33ce0007 */ andi $t6,$s8,0x7 @@ -1257,7 +1257,7 @@ glabel func0f1747a4 .L0f174a0c: /* f174a0c: 00008025 */ or $s0,$zero,$zero .L0f174a10: -/* f174a10: 0fc5cf04 */ jal func0f173c10 +/* f174a10: 0fc5cf04 */ jal surface0f173c10 /* f174a14: 0200b825 */ or $s7,$s0,$zero /* f174a18: 8fad00c8 */ lw $t5,0xc8($sp) /* f174a1c: 00409825 */ or $s3,$v0,$zero @@ -1275,7 +1275,7 @@ glabel func0f1747a4 /* f174a44: 0019c080 */ sll $t8,$t9,0x2 /* f174a48: 0218a021 */ addu $s4,$s0,$t8 /* f174a4c: 02a02025 */ or $a0,$s5,$zero -/* f174a50: 0fc5cf2e */ jal func0f173cb8 +/* f174a50: 0fc5cf2e */ jal surface0f173cb8 /* f174a54: 02402825 */ or $a1,$s2,$zero /* f174a58: 8faf00c8 */ lw $t7,0xc8($sp) /* f174a5c: 24010002 */ addiu $at,$zero,0x2 @@ -1296,7 +1296,7 @@ glabel func0f1747a4 /* f174a90: afb10010 */ sw $s1,0x10($sp) /* f174a94: 8fa50090 */ lw $a1,0x90($sp) /* f174a98: 02e03025 */ or $a2,$s7,$zero -/* f174a9c: 0fc5cee3 */ jal func0f173b8c +/* f174a9c: 0fc5cee3 */ jal surface0f173b8c /* f174aa0: 02803825 */ or $a3,$s4,$zero /* f174aa4: 10400013 */ beqz $v0,.L0f174af4 /* f174aa8: 26520001 */ addiu $s2,$s2,0x1 @@ -1347,7 +1347,7 @@ glabel func0f1747a4 ); GLOBAL_ASM( -glabel func0f174b54 +glabel surface0f174b54 /* f174b54: 27bdff68 */ addiu $sp,$sp,-152 /* f174b58: afb00038 */ sw $s0,0x38($sp) /* f174b5c: 00808025 */ or $s0,$a0,$zero @@ -1355,7 +1355,7 @@ glabel func0f174b54 /* f174b64: afa5009c */ sw $a1,0x9c($sp) /* f174b68: 00a02025 */ or $a0,$a1,$zero /* f174b6c: 27a50094 */ addiu $a1,$sp,0x94 -/* f174b70: 0fc5cf94 */ jal func0f173e50 +/* f174b70: 0fc5cf94 */ jal surface0f173e50 /* f174b74: 27a60090 */ addiu $a2,$sp,0x90 /* f174b78: 8fa8009c */ lw $t0,0x9c($sp) /* f174b7c: 3c01fd00 */ lui $at,0xfd00 @@ -1428,7 +1428,7 @@ glabel func0f174b54 /* f174c7c: afa0001c */ sw $zero,0x1c($sp) /* f174c80: afa00020 */ sw $zero,0x20($sp) /* f174c84: afa00024 */ sw $zero,0x24($sp) -/* f174c88: 0fc5ce9c */ jal func0f173a70 +/* f174c88: 0fc5ce9c */ jal surface0f173a70 /* f174c8c: afa00028 */ sw $zero,0x28($sp) /* f174c90: 1040000b */ beqz $v0,.L0f174cc0 /* f174c94: 3c07e600 */ lui $a3,0xe600 @@ -1530,7 +1530,7 @@ glabel func0f174b54 /* f174dfc: afa0001c */ sw $zero,0x1c($sp) /* f174e00: afa00020 */ sw $zero,0x20($sp) /* f174e04: afa00024 */ sw $zero,0x24($sp) -/* f174e08: 0fc5ce9c */ jal func0f173a70 +/* f174e08: 0fc5ce9c */ jal surface0f173a70 /* f174e0c: afa00028 */ sw $zero,0x28($sp) /* f174e10: 1040000b */ beqz $v0,.L0f174e40 /* f174e14: 8fa8009c */ lw $t0,0x9c($sp) @@ -1612,7 +1612,7 @@ glabel func0f174b54 ); GLOBAL_ASM( -glabel func0f174f30 +glabel surface0f174f30 /* f174f30: 27bdff90 */ addiu $sp,$sp,-112 /* f174f34: afb10038 */ sw $s1,0x38($sp) /* f174f38: 00808825 */ or $s1,$a0,$zero @@ -1621,14 +1621,14 @@ glabel func0f174f30 /* f174f44: afa60078 */ sw $a2,0x78($sp) /* f174f48: afa7007c */ sw $a3,0x7c($sp) /* f174f4c: 00a08025 */ or $s0,$a1,$zero -/* f174f50: 0fc5cfc6 */ jal func0f173f18 +/* f174f50: 0fc5cfc6 */ jal surface0f173f18 /* f174f54: 90a40008 */ lbu $a0,0x8($a1) /* f174f58: afa2006c */ sw $v0,0x6c($sp) -/* f174f5c: 0fc5cfc6 */ jal func0f173f18 +/* f174f5c: 0fc5cfc6 */ jal surface0f173f18 /* f174f60: 92040009 */ lbu $a0,0x9($s0) /* f174f64: afa20068 */ sw $v0,0x68($sp) /* f174f68: 02002025 */ or $a0,$s0,$zero -/* f174f6c: 0fc5cf58 */ jal func0f173d60 +/* f174f6c: 0fc5cf58 */ jal surface0f173d60 /* f174f70: 00002825 */ or $a1,$zero,$zero /* f174f74: afa20064 */ sw $v0,0x64($sp) /* f174f78: 8e03000c */ lw $v1,0xc($s0) @@ -1637,7 +1637,7 @@ glabel func0f174f30 /* f174f84: 000e7fc2 */ srl $t7,$t6,0x1f /* f174f88: 0004c380 */ sll $t8,$a0,0xe /* f174f8c: afaf0050 */ sw $t7,0x50($sp) -/* f174f90: 0fc5ce91 */ jal func0f173a44 +/* f174f90: 0fc5ce91 */ jal surface0f173a44 /* f174f94: 03002025 */ or $a0,$t8,$zero /* f174f98: 10400009 */ beqz $v0,.L0f174fc0 /* f174f9c: 3c19ba00 */ lui $t9,0xba00 @@ -1667,7 +1667,7 @@ glabel func0f174f30 /* f174ff8: afad0014 */ sw $t5,0x14($sp) /* f174ffc: afae0018 */ sw $t6,0x18($sp) /* f175000: afaf001c */ sw $t7,0x1c($sp) -/* f175004: 0fc5ce9c */ jal func0f173a70 +/* f175004: 0fc5ce9c */ jal surface0f173a70 /* f175008: afb80020 */ sw $t8,0x20($sp) /* f17500c: 1040002b */ beqz $v0,.L0f1750bc /* f175010: 02201825 */ or $v1,$s1,$zero @@ -1688,10 +1688,10 @@ glabel func0f174f30 /* f17504c: 030a5825 */ or $t3,$t8,$t2 /* f175050: ac6b0000 */ sw $t3,0x0($v1) /* f175054: afa30048 */ sw $v1,0x48($sp) -/* f175058: 0fc5cfd2 */ jal func0f173f48 +/* f175058: 0fc5cfd2 */ jal surface0f173f48 /* f17505c: 8fa4007c */ lw $a0,0x7c($sp) /* f175060: 8fa40078 */ lw $a0,0x78($sp) -/* f175064: 0fc5cfd2 */ jal func0f173f48 +/* f175064: 0fc5cfd2 */ jal surface0f173f48 /* f175068: afa20040 */ sw $v0,0x40($sp) /* f17506c: 8fac0084 */ lw $t4,0x84($sp) /* f175070: 304d0003 */ andi $t5,$v0,0x3 @@ -1765,7 +1765,7 @@ glabel func0f174f30 /* f17515c: afa80010 */ sw $t0,0x10($sp) /* f175160: afa80054 */ sw $t0,0x54($sp) /* f175164: afa50060 */ sw $a1,0x60($sp) -/* f175168: 0fc5cee3 */ jal func0f173b8c +/* f175168: 0fc5cee3 */ jal surface0f173b8c /* f17516c: 8fa40084 */ lw $a0,0x84($sp) /* f175170: 8fa50060 */ lw $a1,0x60($sp) /* f175174: 8fa6005c */ lw $a2,0x5c($sp) @@ -1800,7 +1800,7 @@ glabel func0f174f30 ); GLOBAL_ASM( -glabel func0f1751e4 +glabel surface0f1751e4 /* f1751e4: 27bdffc8 */ addiu $sp,$sp,-56 /* f1751e8: afbf002c */ sw $ra,0x2c($sp) /* f1751ec: afb10028 */ sw $s1,0x28($sp) @@ -1809,7 +1809,7 @@ glabel func0f1751e4 /* f1751f8: afb00024 */ sw $s0,0x24($sp) /* f1751fc: afa70044 */ sw $a3,0x44($sp) /* f175200: 00003025 */ or $a2,$zero,$zero -/* f175204: 0fc5d0e8 */ jal func0f1743a0 +/* f175204: 0fc5d0e8 */ jal surface0f1743a0 /* f175208: afa00034 */ sw $zero,0x34($sp) /* f17520c: 8fae004c */ lw $t6,0x4c($sp) /* f175210: 8fa30034 */ lw $v1,0x34($sp) @@ -1824,7 +1824,7 @@ glabel func0f1751e4 /* f175234: 8fa70044 */ lw $a3,0x44($sp) /* f175238: afa00014 */ sw $zero,0x14($sp) /* f17523c: afa0001c */ sw $zero,0x1c($sp) -/* f175240: 0fc5d1e9 */ jal func0f1747a4 +/* f175240: 0fc5d1e9 */ jal surface0f1747a4 /* f175244: afaf0010 */ sw $t7,0x10($sp) /* f175248: 00408025 */ or $s0,$v0,$zero /* f17524c: 24030001 */ addiu $v1,$zero,0x1 @@ -1839,7 +1839,7 @@ glabel func0f1751e4 /* f17526c: afa30014 */ sw $v1,0x14($sp) /* f175270: afa0001c */ sw $zero,0x1c($sp) /* f175274: afa30034 */ sw $v1,0x34($sp) -/* f175278: 0fc5d1e9 */ jal func0f1747a4 +/* f175278: 0fc5d1e9 */ jal surface0f1747a4 /* f17527c: afb90010 */ sw $t9,0x10($sp) /* f175280: 9224000b */ lbu $a0,0xb($s1) /* f175284: 8faa004c */ lw $t2,0x4c($sp) @@ -1859,7 +1859,7 @@ glabel func0f1751e4 /* f1752bc: 8fa70044 */ lw $a3,0x44($sp) /* f1752c0: afa30014 */ sw $v1,0x14($sp) /* f1752c4: afa0001c */ sw $zero,0x1c($sp) -/* f1752c8: 0fc5d1e9 */ jal func0f1747a4 +/* f1752c8: 0fc5d1e9 */ jal surface0f1747a4 /* f1752cc: afab0010 */ sw $t3,0x10($sp) /* f1752d0: 00408025 */ or $s0,$v0,$zero .L0f1752d4: @@ -1879,7 +1879,7 @@ glabel func0f1751e4 ); GLOBAL_ASM( -glabel func0f175308 +glabel surface0f175308 /* f175308: 27bdffc0 */ addiu $sp,$sp,-64 /* f17530c: afb20030 */ sw $s2,0x30($sp) /* f175310: afb00028 */ sw $s0,0x28($sp) @@ -1890,18 +1890,18 @@ glabel func0f175308 /* f175324: afa60048 */ sw $a2,0x48($sp) /* f175328: afa7004c */ sw $a3,0x4c($sp) /* f17532c: 00002825 */ or $a1,$zero,$zero -/* f175330: 0fc5cf84 */ jal func0f173e10 +/* f175330: 0fc5cf84 */ jal surface0f173e10 /* f175334: 8fa40054 */ lw $a0,0x54($sp) /* f175338: 00408825 */ or $s1,$v0,$zero /* f17533c: 02002025 */ or $a0,$s0,$zero -/* f175340: 0fc5d2d5 */ jal func0f174b54 +/* f175340: 0fc5d2d5 */ jal surface0f174b54 /* f175344: 8fa50054 */ lw $a1,0x54($sp) /* f175348: 3c0ee800 */ lui $t6,0xe800 /* f17534c: ac4e0000 */ sw $t6,0x0($v0) /* f175350: ac400004 */ sw $zero,0x4($v0) /* f175354: 24440008 */ addiu $a0,$v0,0x8 /* f175358: 02402825 */ or $a1,$s2,$zero -/* f17535c: 0fc5d0e8 */ jal func0f1743a0 +/* f17535c: 0fc5d0e8 */ jal surface0f1743a0 /* f175360: 02203025 */ or $a2,$s1,$zero /* f175364: 8faf005c */ lw $t7,0x5c($sp) /* f175368: 8fb80060 */ lw $t8,0x60($sp) @@ -1910,7 +1910,7 @@ glabel func0f175308 /* f175374: 8fa60050 */ lw $a2,0x50($sp) /* f175378: 8fa70058 */ lw $a3,0x58($sp) /* f17537c: afaf0010 */ sw $t7,0x10($sp) -/* f175380: 0fc5cfde */ jal func0f173f78 +/* f175380: 0fc5cfde */ jal surface0f173f78 /* f175384: afb80014 */ sw $t8,0x14($sp) /* f175388: 8fb90064 */ lw $t9,0x64($sp) /* f17538c: 00408025 */ or $s0,$v0,$zero @@ -1926,7 +1926,7 @@ glabel func0f175308 /* f1753b4: afa30014 */ sw $v1,0x14($sp) /* f1753b8: afb1001c */ sw $s1,0x1c($sp) /* f1753bc: afa30038 */ sw $v1,0x38($sp) -/* f1753c0: 0fc5d1e9 */ jal func0f1747a4 +/* f1753c0: 0fc5d1e9 */ jal surface0f1747a4 /* f1753c4: afa80010 */ sw $t0,0x10($sp) /* f1753c8: 8fa30038 */ lw $v1,0x38($sp) /* f1753cc: 00408025 */ or $s0,$v0,$zero @@ -1942,7 +1942,7 @@ glabel func0f175308 /* f1753f0: afa30014 */ sw $v1,0x14($sp) /* f1753f4: afb1001c */ sw $s1,0x1c($sp) /* f1753f8: afa30038 */ sw $v1,0x38($sp) -/* f1753fc: 0fc5d1e9 */ jal func0f1747a4 +/* f1753fc: 0fc5d1e9 */ jal surface0f1747a4 /* f175400: afaa0010 */ sw $t2,0x10($sp) /* f175404: 9244000b */ lbu $a0,0xb($s2) /* f175408: 8fad0064 */ lw $t5,0x64($sp) @@ -1962,7 +1962,7 @@ glabel func0f175308 /* f175440: 8fa7004c */ lw $a3,0x4c($sp) /* f175444: afa30014 */ sw $v1,0x14($sp) /* f175448: afb1001c */ sw $s1,0x1c($sp) -/* f17544c: 0fc5d1e9 */ jal func0f1747a4 +/* f17544c: 0fc5d1e9 */ jal surface0f1747a4 /* f175450: afae0010 */ sw $t6,0x10($sp) /* f175454: 00408025 */ or $s0,$v0,$zero .L0f175458: @@ -1983,7 +1983,7 @@ glabel func0f175308 ); GLOBAL_ASM( -glabel func0f175490 +glabel surface0f175490 /* f175490: 27bdffc8 */ addiu $sp,$sp,-56 /* f175494: afbf002c */ sw $ra,0x2c($sp) /* f175498: afb10028 */ sw $s1,0x28($sp) @@ -1991,7 +1991,7 @@ glabel func0f175490 /* f1754a0: 00a08825 */ or $s1,$a1,$zero /* f1754a4: afb00024 */ sw $s0,0x24($sp) /* f1754a8: afa70044 */ sw $a3,0x44($sp) -/* f1754ac: 0fc5d0e8 */ jal func0f1743a0 +/* f1754ac: 0fc5d0e8 */ jal surface0f1743a0 /* f1754b0: 00003025 */ or $a2,$zero,$zero /* f1754b4: 8fae0050 */ lw $t6,0x50($sp) /* f1754b8: 8faf0054 */ lw $t7,0x54($sp) @@ -2000,7 +2000,7 @@ glabel func0f175490 /* f1754c4: 8fa60048 */ lw $a2,0x48($sp) /* f1754c8: 8fa7004c */ lw $a3,0x4c($sp) /* f1754cc: afae0010 */ sw $t6,0x10($sp) -/* f1754d0: 0fc5cfde */ jal func0f173f78 +/* f1754d0: 0fc5cfde */ jal surface0f173f78 /* f1754d4: afaf0014 */ sw $t7,0x14($sp) /* f1754d8: 8fb80058 */ lw $t8,0x58($sp) /* f1754dc: 00408025 */ or $s0,$v0,$zero @@ -2016,7 +2016,7 @@ glabel func0f175490 /* f175504: afa30014 */ sw $v1,0x14($sp) /* f175508: afa0001c */ sw $zero,0x1c($sp) /* f17550c: afa30034 */ sw $v1,0x34($sp) -/* f175510: 0fc5d1e9 */ jal func0f1747a4 +/* f175510: 0fc5d1e9 */ jal surface0f1747a4 /* f175514: afb90010 */ sw $t9,0x10($sp) /* f175518: 8fa30034 */ lw $v1,0x34($sp) /* f17551c: 00408025 */ or $s0,$v0,$zero @@ -2032,7 +2032,7 @@ glabel func0f175490 /* f175540: afa30014 */ sw $v1,0x14($sp) /* f175544: afa0001c */ sw $zero,0x1c($sp) /* f175548: afa30034 */ sw $v1,0x34($sp) -/* f17554c: 0fc5d1e9 */ jal func0f1747a4 +/* f17554c: 0fc5d1e9 */ jal surface0f1747a4 /* f175550: afa90010 */ sw $t1,0x10($sp) /* f175554: 9224000b */ lbu $a0,0xb($s1) /* f175558: 8fac0058 */ lw $t4,0x58($sp) @@ -2052,7 +2052,7 @@ glabel func0f175490 /* f175590: 8fa70044 */ lw $a3,0x44($sp) /* f175594: afa30014 */ sw $v1,0x14($sp) /* f175598: afa0001c */ sw $zero,0x1c($sp) -/* f17559c: 0fc5d1e9 */ jal func0f1747a4 +/* f17559c: 0fc5d1e9 */ jal surface0f1747a4 /* f1755a0: afad0010 */ sw $t5,0x10($sp) /* f1755a4: 00408025 */ or $s0,$v0,$zero .L0f1755a8: @@ -2072,12 +2072,12 @@ glabel func0f175490 ); GLOBAL_ASM( -glabel func0f1755dc +glabel surface0f1755dc /* f1755dc: 27bdffe0 */ addiu $sp,$sp,-32 /* f1755e0: afbf001c */ sw $ra,0x1c($sp) /* f1755e4: afa50024 */ sw $a1,0x24($sp) /* f1755e8: afa60028 */ sw $a2,0x28($sp) -/* f1755ec: 0fc5d2d5 */ jal func0f174b54 +/* f1755ec: 0fc5d2d5 */ jal surface0f174b54 /* f1755f0: afa7002c */ sw $a3,0x2c($sp) /* f1755f4: 8fae0030 */ lw $t6,0x30($sp) /* f1755f8: 00402025 */ or $a0,$v0,$zero @@ -2085,7 +2085,7 @@ glabel func0f1755dc /* f175600: 8fa60028 */ lw $a2,0x28($sp) /* f175604: 8fa7002c */ lw $a3,0x2c($sp) /* f175608: afa00014 */ sw $zero,0x14($sp) -/* f17560c: 0fc5d3cc */ jal func0f174f30 +/* f17560c: 0fc5d3cc */ jal surface0f174f30 /* f175610: afae0010 */ sw $t6,0x10($sp) /* f175614: 3c0fe700 */ lui $t7,0xe700 /* f175618: ac4f0000 */ sw $t7,0x0($v0) @@ -2100,12 +2100,12 @@ glabel func0f1755dc ); GLOBAL_ASM( -glabel func0f17563c +glabel surface0f17563c /* f17563c: 27bdffe0 */ addiu $sp,$sp,-32 /* f175640: afbf001c */ sw $ra,0x1c($sp) /* f175644: afa50024 */ sw $a1,0x24($sp) /* f175648: afa60028 */ sw $a2,0x28($sp) -/* f17564c: 0fc5d2d5 */ jal func0f174b54 +/* f17564c: 0fc5d2d5 */ jal surface0f174b54 /* f175650: afa7002c */ sw $a3,0x2c($sp) /* f175654: 8fae0030 */ lw $t6,0x30($sp) /* f175658: 00402025 */ or $a0,$v0,$zero @@ -2113,7 +2113,7 @@ glabel func0f17563c /* f175660: 8fa60028 */ lw $a2,0x28($sp) /* f175664: 8fa7002c */ lw $a3,0x2c($sp) /* f175668: afa00014 */ sw $zero,0x14($sp) -/* f17566c: 0fc5d3cc */ jal func0f174f30 +/* f17566c: 0fc5d3cc */ jal surface0f174f30 /* f175670: afae0010 */ sw $t6,0x10($sp) /* f175674: 8faf0030 */ lw $t7,0x30($sp) /* f175678: 24180001 */ addiu $t8,$zero,0x1 @@ -2122,7 +2122,7 @@ glabel func0f17563c /* f175684: 8fa50024 */ lw $a1,0x24($sp) /* f175688: 8fa60028 */ lw $a2,0x28($sp) /* f17568c: 8fa7002c */ lw $a3,0x2c($sp) -/* f175690: 0fc5d3cc */ jal func0f174f30 +/* f175690: 0fc5d3cc */ jal surface0f174f30 /* f175694: afaf0010 */ sw $t7,0x10($sp) /* f175698: 3c19e700 */ lui $t9,0xe700 /* f17569c: ac590000 */ sw $t9,0x0($v0) @@ -2137,50 +2137,50 @@ glabel func0f17563c ); GLOBAL_ASM( -glabel func0f1756c0 +glabel surface0f1756c0 .late_rodata glabel var7f1b7c30 -.word func0f1756c0+0x544 # f175c04 +.word surface0f1756c0+0x544 # f175c04 glabel var7f1b7c34 -.word func0f1756c0+0x768 # f175e28 +.word surface0f1756c0+0x768 # f175e28 glabel var7f1b7c38 -.word func0f1756c0+0x768 # f175e28 +.word surface0f1756c0+0x768 # f175e28 glabel var7f1b7c3c -.word func0f1756c0+0x768 # f175e28 +.word surface0f1756c0+0x768 # f175e28 glabel var7f1b7c40 -.word func0f1756c0+0x768 # f175e28 +.word surface0f1756c0+0x768 # f175e28 glabel var7f1b7c44 -.word func0f1756c0+0x768 # f175e28 +.word surface0f1756c0+0x768 # f175e28 glabel var7f1b7c48 -.word func0f1756c0+0x768 # f175e28 +.word surface0f1756c0+0x768 # f175e28 glabel var7f1b7c4c -.word func0f1756c0+0x768 # f175e28 +.word surface0f1756c0+0x768 # f175e28 glabel var7f1b7c50 -.word func0f1756c0+0x768 # f175e28 +.word surface0f1756c0+0x768 # f175e28 glabel var7f1b7c54 -.word func0f1756c0+0x74c # f175e0c +.word surface0f1756c0+0x74c # f175e0c glabel var7f1b7c58 -.word func0f1756c0+0x70c # f175dcc +.word surface0f1756c0+0x70c # f175dcc glabel var7f1b7c5c -.word func0f1756c0+0x768 # f175e28 +.word surface0f1756c0+0x768 # f175e28 glabel var7f1b7c60 -.word func0f1756c0+0x768 # f175e28 +.word surface0f1756c0+0x768 # f175e28 glabel var7f1b7c64 -.word func0f1756c0+0x768 # f175e28 +.word surface0f1756c0+0x768 # f175e28 glabel var7f1b7c68 -.word func0f1756c0+0x544 # f175c04 +.word surface0f1756c0+0x544 # f175c04 glabel var7f1b7c6c -.word func0f1756c0+0x114 # f1757d4 +.word surface0f1756c0+0x114 # f1757d4 glabel var7f1b7c70 -.word func0f1756c0+0x1c0 # f175880 +.word surface0f1756c0+0x1c0 # f175880 glabel var7f1b7c74 -.word func0f1756c0+0x224 # f1758e4 +.word surface0f1756c0+0x224 # f1758e4 glabel var7f1b7c78 -.word func0f1756c0+0x2bc # f17597c +.word surface0f1756c0+0x2bc # f17597c glabel var7f1b7c7c -.word func0f1756c0+0x2f8 # f1759b8 +.word surface0f1756c0+0x2f8 # f1759b8 glabel var7f1b7c80 -.word func0f1756c0+0x330 # f1759f0 +.word surface0f1756c0+0x330 # f1759f0 .text /* f1756c0: 27bdfec8 */ addiu $sp,$sp,-312 /* f1756c4: afb00030 */ sw $s0,0x30($sp) @@ -2207,7 +2207,7 @@ glabel var7f1b7c80 /* f175718: afa000f4 */ sw $zero,0xf4($sp) /* f17571c: 0080a825 */ or $s5,$a0,$zero /* f175720: 00c0b025 */ or $s6,$a2,$zero -/* f175724: 0fc5ce82 */ jal func0f173a08 +/* f175724: 0fc5ce82 */ jal surface0f173a08 /* f175728: afb00128 */ sw $s0,0x128($sp) /* f17572c: 0fc4f13c */ jal func0f13c4f0 /* f175730: 00000000 */ nop @@ -2290,7 +2290,7 @@ glabel var7f1b7c80 /* f175840: afa00104 */ sw $zero,0x104($sp) /* f175844: 8fa5012c */ lw $a1,0x12c($sp) /* f175848: 02203025 */ or $a2,$s1,$zero -/* f17584c: 0fc5d0b9 */ jal func0f1742e4 +/* f17584c: 0fc5d0b9 */ jal surface0f1742e4 /* f175850: 0000f025 */ or $s8,$zero,$zero /* f175854: 8ea30000 */ lw $v1,0x0($s5) /* f175858: 0040b025 */ or $s6,$v0,$zero @@ -2324,7 +2324,7 @@ glabel var7f1b7c80 /* f1758c8: afaf001c */ sw $t7,0x1c($sp) /* f1758cc: afb30020 */ sw $s3,0x20($sp) /* f1758d0: 02c02025 */ or $a0,$s6,$zero -/* f1758d4: 0fc5d524 */ jal func0f175490 +/* f1758d4: 0fc5d524 */ jal surface0f175490 /* f1758d8: 02202825 */ or $a1,$s1,$zero /* f1758dc: 10000051 */ b .L0f175a24 /* f1758e0: 0040b025 */ or $s6,$v0,$zero @@ -2362,7 +2362,7 @@ glabel var7f1b7c80 /* f175960: afac0020 */ sw $t4,0x20($sp) /* f175964: afab0014 */ sw $t3,0x14($sp) /* f175968: 02c02025 */ or $a0,$s6,$zero -/* f17596c: 0fc5d4c2 */ jal func0f175308 +/* f17596c: 0fc5d4c2 */ jal surface0f175308 /* f175970: 02202825 */ or $a1,$s1,$zero /* f175974: 1000002b */ b .L0f175a24 /* f175978: 0040b025 */ or $s6,$v0,$zero @@ -2377,7 +2377,7 @@ glabel var7f1b7c80 /* f17599c: afae0010 */ sw $t6,0x10($sp) /* f1759a0: 02c02025 */ or $a0,$s6,$zero /* f1759a4: 02202825 */ or $a1,$s1,$zero -/* f1759a8: 0fc5d479 */ jal func0f1751e4 +/* f1759a8: 0fc5d479 */ jal surface0f1751e4 /* f1759ac: afb30014 */ sw $s3,0x14($sp) /* f1759b0: 1000001c */ b .L0f175a24 /* f1759b4: 0040b025 */ or $s6,$v0,$zero @@ -2391,7 +2391,7 @@ glabel var7f1b7c80 /* f1759d4: 03003825 */ or $a3,$t8,$zero /* f1759d8: afb90010 */ sw $t9,0x10($sp) /* f1759dc: 02c02025 */ or $a0,$s6,$zero -/* f1759e0: 0fc5d58f */ jal func0f17563c +/* f1759e0: 0fc5d58f */ jal surface0f17563c /* f1759e4: 02202825 */ or $a1,$s1,$zero /* f1759e8: 1000000e */ b .L0f175a24 /* f1759ec: 0040b025 */ or $s6,$v0,$zero @@ -2405,7 +2405,7 @@ glabel var7f1b7c80 /* f175a0c: 01a03825 */ or $a3,$t5,$zero /* f175a10: afae0010 */ sw $t6,0x10($sp) /* f175a14: 02c02025 */ or $a0,$s6,$zero -/* f175a18: 0fc5d577 */ jal func0f1755dc +/* f175a18: 0fc5d577 */ jal surface0f1755dc /* f175a1c: 02202825 */ or $a1,$s1,$zero /* f175a20: 0040b025 */ or $s6,$v0,$zero .L0f175a24: @@ -2757,7 +2757,7 @@ glabel var7f1b7c80 ); GLOBAL_ASM( -glabel func0f175ef4 +glabel surface0f175ef4 /* f175ef4: 000670c3 */ sra $t6,$a2,0x3 /* f175ef8: 25c2ffff */ addiu $v0,$t6,-1 /* f175efc: 01c03025 */ or $a2,$t6,$zero diff --git a/src/game/game_013b80.c b/src/game/surfacereset.c similarity index 90% rename from src/game/game_013b80.c rename to src/game/surfacereset.c index 33df07aef..6d993effb 100644 --- a/src/game/game_013b80.c +++ b/src/game/surfacereset.c @@ -5,7 +5,7 @@ #include "data.h" #include "types.h" -void func0f013b80(void) +void surfaceReset(void) { g_TexCacheCount = 0; var800aabc8.unk00 = NULL; diff --git a/src/game/game_0b3350.c b/src/game/tex.c similarity index 98% rename from src/game/game_0b3350.c rename to src/game/tex.c index 4c94fd512..734fec1a2 100644 --- a/src/game/game_0b3350.c +++ b/src/game/tex.c @@ -1,17 +1,17 @@ #include #include "constants.h" #include "game/atan2f.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/playermgr.h" #include "game/bg.h" #include "game/texdecompress.h" -#include "game/game_173a00.h" +#include "game/surface.h" #include "bss.h" #include "lib/mtx.h" #include "data.h" #include "types.h" -s32 func0f0b3350(s32 value) +s32 tex0f0b3350(s32 value) { if (value < 2) { return 0; @@ -49,7 +49,7 @@ s32 func0f0b3350(s32 value) } GLOBAL_ASM( -glabel func0f0b33f8 +glabel tex0f0b33f8 /* f0b33f8: 1cc00002 */ bgtz $a2,.L0f0b3404 /* f0b33fc: 00001825 */ or $v1,$zero,$zero /* f0b3400: 24060001 */ addiu $a2,$zero,0x1 @@ -87,7 +87,7 @@ glabel func0f0b33f8 ); GLOBAL_ASM( -glabel func0f0b3468 +glabel tex0f0b3468 /* f0b3468: 1cc00002 */ bgtz $a2,.L0f0b3474 /* f0b346c: 00001825 */ or $v1,$zero,$zero /* f0b3470: 24060001 */ addiu $a2,$zero,0x1 @@ -125,7 +125,7 @@ glabel func0f0b3468 ); GLOBAL_ASM( -glabel func0f0b34d8 +glabel tex0f0b34d8 /* f0b34d8: 1cc00002 */ bgtz $a2,.L0f0b34e4 /* f0b34dc: 00001825 */ or $v1,$zero,$zero /* f0b34e0: 24060001 */ addiu $a2,$zero,0x1 @@ -163,7 +163,7 @@ glabel func0f0b34d8 ); GLOBAL_ASM( -glabel func0f0b3548 +glabel tex0f0b3548 /* f0b3548: 1cc00002 */ bgtz $a2,.L0f0b3554 /* f0b354c: 00001825 */ or $v1,$zero,$zero /* f0b3550: 24060001 */ addiu $a2,$zero,0x1 @@ -201,7 +201,7 @@ glabel func0f0b3548 ); GLOBAL_ASM( -glabel func0f0b35b8 +glabel tex0f0b35b8 /* f0b35b8: afa50004 */ sw $a1,0x4($sp) /* f0b35bc: 24080001 */ addiu $t0,$zero,0x1 /* f0b35c0: 14c80078 */ bne $a2,$t0,.L0f0b37a4 @@ -470,7 +470,7 @@ glabel func0f0b35b8 /* f0b3984: ac820000 */ sw $v0,0x0($a0) ); -void func0f0b3988(struct textureconfig *config) +void tex0f0b3988(struct textureconfig *config) { if ((u32)config->texturenum < NUM_TEXTURES) { texLoadFromConfigs(config, 1, 0, 0); @@ -478,7 +478,7 @@ void func0f0b3988(struct textureconfig *config) } GLOBAL_ASM( -glabel func0f0b39c0 +glabel tex0f0b39c0 /* f0b39c0: 27bdfe90 */ addiu $sp,$sp,-368 /* f0b39c4: afbf002c */ sw $ra,0x2c($sp) /* f0b39c8: afb40028 */ sw $s4,0x28($sp) @@ -495,7 +495,7 @@ glabel func0f0b39c0 /* f0b39f4: afaf0168 */ sw $t7,0x168($sp) /* f0b39f8: 00c02825 */ or $a1,$a2,$zero /* f0b39fc: 24060001 */ addiu $a2,$zero,0x1 -/* f0b3a00: 0fc2cd6e */ jal func0f0b35b8 +/* f0b3a00: 0fc2cd6e */ jal tex0f0b35b8 /* f0b3a04: 27a40168 */ addiu $a0,$sp,0x168 /* f0b3a08: 2a210002 */ slti $at,$s1,0x2 /* f0b3a0c: 1420000d */ bnez $at,.L0f0b3a44 @@ -633,7 +633,7 @@ glabel func0f0b39c0 /* f0b3bf4: afae013c */ sw $t6,0x13c($sp) /* f0b3bf8: 02602025 */ or $a0,$s3,$zero /* f0b3bfc: 02402825 */ or $a1,$s2,$zero -/* f0b3c00: 0fc2cd52 */ jal func0f0b3548 +/* f0b3c00: 0fc2cd52 */ jal tex0f0b3548 /* f0b3c04: 24060001 */ addiu $a2,$zero,0x1 /* f0b3c08: 266d0003 */ addiu $t5,$s3,0x3 /* f0b3c0c: 000dc883 */ sra $t9,$t5,0x2 @@ -644,7 +644,7 @@ glabel func0f0b39c0 /* f0b3c1c: afaf013c */ sw $t7,0x13c($sp) /* f0b3c20: 02602025 */ or $a0,$s3,$zero /* f0b3c24: 02402825 */ or $a1,$s2,$zero -/* f0b3c28: 0fc2cd36 */ jal func0f0b34d8 +/* f0b3c28: 0fc2cd36 */ jal tex0f0b34d8 /* f0b3c2c: 24060001 */ addiu $a2,$zero,0x1 /* f0b3c30: 26780003 */ addiu $t8,$s3,0x3 /* f0b3c34: 00187083 */ sra $t6,$t8,0x2 @@ -655,7 +655,7 @@ glabel func0f0b39c0 /* f0b3c44: afad013c */ sw $t5,0x13c($sp) /* f0b3c48: 02602025 */ or $a0,$s3,$zero /* f0b3c4c: 02402825 */ or $a1,$s2,$zero -/* f0b3c50: 0fc2cd1a */ jal func0f0b3468 +/* f0b3c50: 0fc2cd1a */ jal tex0f0b3468 /* f0b3c54: 24060001 */ addiu $a2,$zero,0x1 /* f0b3c58: 26790007 */ addiu $t9,$s3,0x7 /* f0b3c5c: 001978c3 */ sra $t7,$t9,0x3 @@ -664,7 +664,7 @@ glabel func0f0b39c0 /* f0b3c68: afaf0134 */ sw $t7,0x134($sp) .L0f0b3c6c: /* f0b3c6c: afb8013c */ sw $t8,0x13c($sp) -/* f0b3c70: 0fc2ccfe */ jal func0f0b33f8 +/* f0b3c70: 0fc2ccfe */ jal tex0f0b33f8 /* f0b3c74: 24060001 */ addiu $a2,$zero,0x1 /* f0b3c78: 266e000f */ addiu $t6,$s3,0xf /* f0b3c7c: 000e6903 */ sra $t5,$t6,0x4 @@ -677,7 +677,7 @@ glabel func0f0b39c0 /* f0b3c94: 13200063 */ beqz $t9,.L0f0b3e24 /* f0b3c98: 24060001 */ addiu $a2,$zero,0x1 /* f0b3c9c: 02203825 */ or $a3,$s1,$zero -/* f0b3ca0: 0fc2cd6e */ jal func0f0b35b8 +/* f0b3ca0: 0fc2cd6e */ jal tex0f0b35b8 /* f0b3ca4: afab0138 */ sw $t3,0x138($sp) /* f0b3ca8: 2a210002 */ slti $at,$s1,0x2 /* f0b3cac: 1420000d */ bnez $at,.L0f0b3ce4 @@ -947,10 +947,10 @@ glabel func0f0b39c0 /* f0b4080: 0019c240 */ sll $t8,$t9,0x9 /* f0b4084: 01d87825 */ or $t7,$t6,$t8 /* f0b4088: ae0f0000 */ sw $t7,0x0($s0) -/* f0b408c: 0fc2ccd4 */ jal func0f0b3350 +/* f0b408c: 0fc2ccd4 */ jal tex0f0b3350 /* f0b4090: 02402025 */ or $a0,$s2,$zero /* f0b4094: 02602025 */ or $a0,$s3,$zero -/* f0b4098: 0fc2ccd4 */ jal func0f0b3350 +/* f0b4098: 0fc2ccd4 */ jal tex0f0b3350 /* f0b409c: afa20050 */ sw $v0,0x50($sp) /* f0b40a0: 8fa60174 */ lw $a2,0x174($sp) /* f0b40a4: 8fa70050 */ lw $a3,0x50($sp) @@ -1023,7 +1023,7 @@ glabel func0f0b39c0 /* f0b41a0: 000ec080 */ sll $t8,$t6,0x2 /* f0b41a4: 07010005 */ bgez $t8,.L0f0b41bc /* f0b41a8: 00000000 */ nop -/* f0b41ac: 0fc5cf94 */ jal func0f173e50 +/* f0b41ac: 0fc5cf94 */ jal surface0f173e50 /* f0b41b0: 27a600b8 */ addiu $a2,$sp,0xb8 /* f0b41b4: 1000002c */ b .L0f0b4268 /* f0b41b8: 8fb90184 */ lw $t9,0x184($sp) @@ -1042,7 +1042,7 @@ glabel func0f0b39c0 /* f0b41e8: afad00bc */ sw $t5,0xbc($sp) /* f0b41ec: 02602025 */ or $a0,$s3,$zero /* f0b41f0: 02402825 */ or $a1,$s2,$zero -/* f0b41f4: 0fc2cd52 */ jal func0f0b3548 +/* f0b41f4: 0fc2cd52 */ jal tex0f0b3548 /* f0b41f8: 8fa600c8 */ lw $a2,0xc8($sp) /* f0b41fc: 244fffff */ addiu $t7,$v0,-1 /* f0b4200: 10000018 */ b .L0f0b4264 @@ -1051,7 +1051,7 @@ glabel func0f0b39c0 /* f0b4208: afae00bc */ sw $t6,0xbc($sp) /* f0b420c: 02602025 */ or $a0,$s3,$zero /* f0b4210: 02402825 */ or $a1,$s2,$zero -/* f0b4214: 0fc2cd36 */ jal func0f0b34d8 +/* f0b4214: 0fc2cd36 */ jal tex0f0b34d8 /* f0b4218: 8fa600c8 */ lw $a2,0xc8($sp) /* f0b421c: 2459ffff */ addiu $t9,$v0,-1 /* f0b4220: 10000010 */ b .L0f0b4264 @@ -1060,7 +1060,7 @@ glabel func0f0b39c0 /* f0b4228: afb800bc */ sw $t8,0xbc($sp) /* f0b422c: 02602025 */ or $a0,$s3,$zero /* f0b4230: 02402825 */ or $a1,$s2,$zero -/* f0b4234: 0fc2cd1a */ jal func0f0b3468 +/* f0b4234: 0fc2cd1a */ jal tex0f0b3468 /* f0b4238: 8fa600c8 */ lw $a2,0xc8($sp) /* f0b423c: 244dffff */ addiu $t5,$v0,-1 /* f0b4240: 10000008 */ b .L0f0b4264 @@ -1069,7 +1069,7 @@ glabel func0f0b39c0 /* f0b4248: afaf00bc */ sw $t7,0xbc($sp) /* f0b424c: 02602025 */ or $a0,$s3,$zero /* f0b4250: 02402825 */ or $a1,$s2,$zero -/* f0b4254: 0fc2ccfe */ jal func0f0b33f8 +/* f0b4254: 0fc2ccfe */ jal tex0f0b33f8 /* f0b4258: 8fa600c8 */ lw $a2,0xc8($sp) /* f0b425c: 244effff */ addiu $t6,$v0,-1 /* f0b4260: afae00b8 */ sw $t6,0xb8($sp) @@ -1080,7 +1080,7 @@ glabel func0f0b39c0 /* f0b426c: 8fa50178 */ lw $a1,0x178($sp) /* f0b4270: 1320006d */ beqz $t9,.L0f0b4428 /* f0b4274: 24060002 */ addiu $a2,$zero,0x2 -/* f0b4278: 0fc2cd6e */ jal func0f0b35b8 +/* f0b4278: 0fc2cd6e */ jal tex0f0b35b8 /* f0b427c: 02203825 */ or $a3,$s1,$zero /* f0b4280: 2a210002 */ slti $at,$s1,0x2 /* f0b4284: 14200012 */ bnez $at,.L0f0b42d0 @@ -1368,11 +1368,11 @@ glabel func0f0b39c0 /* f0b46a0: 000ec080 */ sll $t8,$t6,0x2 /* f0b46a4: 0701000a */ bgez $t8,.L0f0b46d0 /* f0b46a8: 00000000 */ nop -/* f0b46ac: 0fc5cf04 */ jal func0f173c10 +/* f0b46ac: 0fc5cf04 */ jal surface0f173c10 /* f0b46b0: afa8003c */ sw $t0,0x3c($sp) /* f0b46b4: 00409825 */ or $s3,$v0,$zero /* f0b46b8: 02802025 */ or $a0,$s4,$zero -/* f0b46bc: 0fc5cf2e */ jal func0f173cb8 +/* f0b46bc: 0fc5cf2e */ jal surface0f173cb8 /* f0b46c0: 02202825 */ or $a1,$s1,$zero /* f0b46c4: 8fa8003c */ lw $t0,0x3c($sp) /* f0b46c8: 10000008 */ b .L0f0b46ec @@ -1488,10 +1488,10 @@ glabel func0f0b39c0 /* f0b4850: afa8003c */ sw $t0,0x3c($sp) /* f0b4854: afa60034 */ sw $a2,0x34($sp) /* f0b4858: 02402025 */ or $a0,$s2,$zero -/* f0b485c: 0fc2ccd4 */ jal func0f0b3350 +/* f0b485c: 0fc2ccd4 */ jal tex0f0b3350 /* f0b4860: afa20058 */ sw $v0,0x58($sp) /* f0b4864: 02602025 */ or $a0,$s3,$zero -/* f0b4868: 0fc2ccd4 */ jal func0f0b3350 +/* f0b4868: 0fc2ccd4 */ jal tex0f0b3350 /* f0b486c: afa20050 */ sw $v0,0x50($sp) /* f0b4870: 32230007 */ andi $v1,$s1,0x7 /* f0b4874: 8faf0174 */ lw $t7,0x174($sp) diff --git a/src/game/texdecompress.c b/src/game/texdecompress.c index d2225624d..ce81dc666 100644 --- a/src/game/texdecompress.c +++ b/src/game/texdecompress.c @@ -1,6 +1,6 @@ #include #include "constants.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/texdecompress.h" #include "bss.h" #include "lib/rzip.h" diff --git a/src/game/game_00b190.c b/src/game/texinit.c similarity index 100% rename from src/game/game_00b190.c rename to src/game/texinit.c diff --git a/src/game/texreset.c b/src/game/texreset.c index 2341e9091..ae3d421a3 100644 --- a/src/game/texreset.c +++ b/src/game/texreset.c @@ -1,6 +1,6 @@ #include #include "constants.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/texdecompress.h" #include "bss.h" #include "lib/rzip.h" @@ -91,31 +91,31 @@ void texReset(void) if (IS4MB() && stage != STAGE_TITLE && stage != STAGE_CITRAINING && stage != STAGE_4MBMENU) { for (i = 0; i < ARRAYCOUNT(g_TcWallhitConfigs); i++) { - func0f0b3988(&g_TexWallhitConfigs[i]); + tex0f0b3988(&g_TexWallhitConfigs[i]); } for (i = 0; i < ARRAYCOUNT(g_TcBeamConfigs); i++) { - func0f0b3988(&g_TexBeamConfigs[i]); + tex0f0b3988(&g_TexBeamConfigs[i]); } for (i = 0; i < ARRAYCOUNT(g_TcWaterConfigs); i++) { - func0f0b3988(&g_TexWaterConfigs[i]); + tex0f0b3988(&g_TexWaterConfigs[i]); } for (i = 0; i < ARRAYCOUNT(g_TcGroup06Configs); i++) { - func0f0b3988(&g_TexGroup06Configs[i]); + tex0f0b3988(&g_TexGroup06Configs[i]); } for (i = 0; i < ARRAYCOUNT(g_TcShieldConfigs); i++) { - func0f0b3988(&g_TexShieldConfigs[i]); + tex0f0b3988(&g_TexShieldConfigs[i]); } for (i = 0; i < ARRAYCOUNT(g_TcRadarConfigs); i++) { - func0f0b3988(&g_TexRadarConfigs[i]); + tex0f0b3988(&g_TexRadarConfigs[i]); } for (i = 0; i < ARRAYCOUNT(g_TcSparkConfigs); i++) { - func0f0b3988(&g_TexSparkConfigs[i]); + tex0f0b3988(&g_TexSparkConfigs[i]); } } } diff --git a/src/game/title.c b/src/game/title.c index 3083b7cc1..82d23b455 100644 --- a/src/game/title.c +++ b/src/game/title.c @@ -1,10 +1,9 @@ #include #include "constants.h" #include "game/title.h" -#include "game/game_01afc0.h" #include "game/bondgun.h" #include "game/game_0b28d0.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/inv.h" #include "game/playermgr.h" #include "game/gfxmemory.h" @@ -15,7 +14,7 @@ #include "game/lv.h" #include "game/music.h" #include "game/training.h" -#include "game/game_1a7560.h" +#include "game/modeldef.h" #include "game/lang.h" #include "game/propobj.h" #include "bss.h" @@ -430,7 +429,7 @@ void titleTickCheckControllers(void) Gfx *titleRenderCheckControllers(Gfx *gdl) { if (g_TitleTimer > 2 && g_TitleTimer < 6) { - gdl = func0f01afc0(gdl); + gdl = titleClear(gdl); } return gdl; @@ -577,7 +576,7 @@ glabel var7f1a84fcjf /* f0167b0: 8d8c2664 */ lw $t4,0x2664($t4) /* f0167b4: 518001c9 */ beqzl $t4,.JF0f016edc /* f0167b8: 8fbf005c */ lw $ra,0x5c($sp) -/* f0167bc: 0fc07058 */ jal func0f01afc0 +/* f0167bc: 0fc07058 */ jal titleClear /* f0167c0: 8fa40130 */ lw $a0,0x130($sp) /* f0167c4: afa20130 */ sw $v0,0x130($sp) /* f0167c8: 0fc35617 */ jal func0f0d479c @@ -730,7 +729,7 @@ glabel var7f1a84fcjf /* f0169fc: 27a40130 */ addiu $a0,$sp,0x130 /* f016a00: 24060001 */ li $a2,0x1 /* f016a04: 00003825 */ move $a3,$zero -/* f016a08: 0fc2d290 */ jal func0f0b39c0 +/* f016a08: 0fc2d290 */ jal tex0f0b39c0 /* f016a0c: 24a50234 */ addiu $a1,$a1,0x234 /* f016a10: 8fab0130 */ lw $t3,0x130($sp) /* f016a14: 3c0eba00 */ lui $t6,0xba00 @@ -849,7 +848,7 @@ glabel var7f1a84fcjf /* f016bd4: 27a40130 */ addiu $a0,$sp,0x130 /* f016bd8: 24060001 */ li $a2,0x1 /* f016bdc: 00003825 */ move $a3,$zero -/* f016be0: 0fc2d290 */ jal func0f0b39c0 +/* f016be0: 0fc2d290 */ jal tex0f0b39c0 /* f016be4: 24a5024c */ addiu $a1,$a1,0x24c /* f016be8: 8fb80130 */ lw $t8,0x130($sp) /* f016bec: 3c0eba00 */ lui $t6,0xba00 @@ -1109,7 +1108,7 @@ glabel var7f1aa08cnb /* f0167cc: 8d8c3dec */ lw $t4,0x3dec($t4) /* f0167d0: 5180016f */ beqzl $t4,.PB0f016d90 /* f0167d4: 8fbf005c */ lw $ra,0x5c($sp) -/* f0167d8: 0fc06c14 */ jal func0f01afc0 +/* f0167d8: 0fc06c14 */ jal titleClear /* f0167dc: 8fa40128 */ lw $a0,0x128($sp) /* f0167e0: afa20128 */ sw $v0,0x128($sp) /* f0167e4: 0fc5528f */ jal func0f153628 @@ -1254,7 +1253,7 @@ glabel var7f1aa08cnb /* f0169f8: 27a40128 */ addiu $a0,$sp,0x128 /* f0169fc: 24060001 */ li $a2,0x1 /* f016a00: 00003825 */ move $a3,$zero -/* f016a04: 0fc2cf74 */ jal func0f0b39c0 +/* f016a04: 0fc2cf74 */ jal tex0f0b39c0 /* f016a08: 24a50234 */ addiu $a1,$a1,0x234 /* f016a0c: 8fab0128 */ lw $t3,0x128($sp) /* f016a10: 3c0eba00 */ lui $t6,0xba00 @@ -1373,7 +1372,7 @@ glabel var7f1aa08cnb /* f016bd0: 27a40128 */ addiu $a0,$sp,0x128 /* f016bd4: 24060001 */ li $a2,0x1 /* f016bd8: 00003825 */ move $a3,$zero -/* f016bdc: 0fc2cf74 */ jal func0f0b39c0 +/* f016bdc: 0fc2cf74 */ jal tex0f0b39c0 /* f016be0: 24a5024c */ addiu $a1,$a1,0x24c /* f016be4: 8fb80128 */ lw $t8,0x128($sp) /* f016be8: 3c0eba00 */ lui $t6,0xba00 @@ -1514,7 +1513,7 @@ Gfx *titleRenderLegal(Gfx *gdl) struct font *font2; if (g_LegalEnabled) { - gdl = func0f01afc0(gdl); + gdl = titleClear(gdl); gdl = func0f153628(gdl); elem = g_LegalElements; @@ -1578,7 +1577,7 @@ Gfx *titleRenderLegal(Gfx *gdl) gDPSetTextureLOD(gdl++, G_TL_TILE); gDPSetTextureConvert(gdl++, G_TC_FILT); - func0f0b39c0(&gdl, &g_TexGeneralConfigs[47], 1, 0, 2, 1, 0); + tex0f0b39c0(&gdl, &g_TexGeneralConfigs[47], 1, 0, 2, 1, 0); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetCombineMode(gdl++, G_CC_DECALRGBA, G_CC_DECALRGBA); @@ -1601,7 +1600,7 @@ Gfx *titleRenderLegal(Gfx *gdl) gDPSetTextureLOD(gdl++, G_TL_TILE); gDPSetTextureConvert(gdl++, G_TC_FILT); - func0f0b39c0(&gdl, &g_TexGeneralConfigs[49], 1, 0, 2, 1, 0); + tex0f0b39c0(&gdl, &g_TexGeneralConfigs[49], 1, 0, 2, 1, 0); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetCombineMode(gdl++, G_CC_DECALRGBA, G_CC_DECALRGBA); @@ -9614,7 +9613,7 @@ Gfx *titleRenderRarePresents(Gfx *gdl) s32 y; s32 colourcomponent = 255; - gdl = func0f01afc0(gdl); + gdl = titleClear(gdl); gdl = func0f153628(gdl); x = viGetViewLeft() + 50; @@ -9754,7 +9753,7 @@ Gfx *titleRenderNintendoLogo(Gfx *gdl) struct coord spf8 = {0, 0, 0}; s32 v0; - gdl = func0f01afc0(gdl); + gdl = titleClear(gdl); gSPSetLights1(gdl++, var80062590); @@ -9934,7 +9933,7 @@ Gfx *titleRenderRareLogo(Gfx *gdl) static f32 var80062920 = 0; - gdl = func0f01afc0(gdl); + gdl = titleClear(gdl); if (g_TitleTimer < 0) { return gdl; @@ -10166,7 +10165,7 @@ glabel titleRenderNoController /* f01b2f8: 00808825 */ move $s1,$a0 /* f01b2fc: 0c004ff9 */ jal joyGetConnectedControllers /* f01b300: afb00034 */ sw $s0,0x34($sp) -/* f01b304: 0fc07058 */ jal func0f01afc0 +/* f01b304: 0fc07058 */ jal titleClear /* f01b308: 02202025 */ move $a0,$s1 /* f01b30c: 0fc54b55 */ jal func0f153628 /* f01b310: 00402025 */ move $a0,$v0 @@ -10377,7 +10376,7 @@ glabel titleRenderNoController /* f01a518: afb00038 */ sw $s0,0x38($sp) /* f01a51c: 0c005013 */ jal joyGetConnectedControllers /* f01a520: 00808025 */ or $s0,$a0,$zero -/* f01a524: 0fc06bf0 */ jal func0f01afc0 +/* f01a524: 0fc06bf0 */ jal titleClear /* f01a528: 02002025 */ or $a0,$s0,$zero /* f01a52c: 0fc54d8a */ jal func0f153628 /* f01a530: 00402025 */ or $a0,$v0,$zero @@ -10582,7 +10581,7 @@ glabel titleRenderNoController // // This was likely printed to console // joyGetConnectedControllers(); // -// gdl = func0f01afc0(gdl); +// gdl = titleClear(gdl); // gdl = func0f153628(gdl); // // // First line @@ -10656,7 +10655,7 @@ glabel titleRenderNoExpansion /* f01b6a8: afbf0034 */ sw $ra,0x34($sp) /* f01b6ac: 0c004ff9 */ jal joyGetConnectedControllers /* f01b6b0: afa40060 */ sw $a0,0x60($sp) -/* f01b6b4: 0fc07058 */ jal func0f01afc0 +/* f01b6b4: 0fc07058 */ jal titleClear /* f01b6b8: 8fa40060 */ lw $a0,0x60($sp) /* f01b6bc: 0fc54b55 */ jal func0f153628 /* f01b6c0: 00402025 */ move $a0,$v0 @@ -10828,7 +10827,7 @@ glabel titleRenderNoExpansion // // joyGetConnectedControllers(); // -// gdl = func0f01afc0(gdl); +// gdl = titleClear(gdl); // gdl = func0f153628(gdl); // // x = 50; diff --git a/src/game/game_01afc0.c b/src/game/titleclear.c similarity index 93% rename from src/game/game_01afc0.c rename to src/game/titleclear.c index 3b0ce42e8..5d8e89e75 100644 --- a/src/game/game_01afc0.c +++ b/src/game/titleclear.c @@ -5,7 +5,7 @@ #include "data.h" #include "types.h" -Gfx *func0f01afc0(Gfx *gdl) +Gfx *titleClear(Gfx *gdl) { gDPSetCycleType(gdl++, G_CYC_FILL); gDPSetColorImage(gdl++, G_IM_FMT_RGBA, G_IM_SIZ_16b, viGetWidth(), osVirtualToPhysical((void *)viGetBackBuffer())); diff --git a/src/game/titlereset.c b/src/game/titlereset.c index caebb72ec..b2d080193 100644 --- a/src/game/titlereset.c +++ b/src/game/titlereset.c @@ -23,5 +23,5 @@ void titleReset(void) var8009cca0 = mempAlloc(0x47800, MEMPOOL_STAGE); - func0f00b420(); + getitleReset(); } diff --git a/src/game/trainingmenus.c b/src/game/trainingmenus.c index 612cfe655..1b2875a8e 100644 --- a/src/game/trainingmenus.c +++ b/src/game/trainingmenus.c @@ -4,7 +4,7 @@ #include "game/ceil.h" #include "game/bondgun.h" #include "game/game_0b0fd0.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/menugfx.h" #include "game/menu.h" #include "game/mainmenu.h" @@ -12,7 +12,7 @@ #include "game/game_1531a0.h" #include "game/file.h" #include "game/texdecompress.h" -#include "game/game_173a00.h" +#include "game/surface.h" #include "game/trainingmenus.h" #include "game/training.h" #include "game/lang.h" @@ -165,7 +165,7 @@ s32 frWeaponListMenuHandler(s32 operation, struct menuitem *item, union handlerd gDPSetTextureConvert(gdl++, G_TC_FILT); gDPSetTextureFilter(gdl++, G_TF_POINT); - func0f0b39c0(&gdl, &g_TexGeneralConfigs[35], 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexGeneralConfigs[35], 2, 0, 2, 1, NULL); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetCombineMode(gdl++, G_CC_DECALRGBA, G_CC_DECALRGBA); @@ -627,7 +627,7 @@ s32 frScoringMenuHandler(s32 operation, struct menuitem *item, union handlerdata gDPSetTextureConvert(gdl++, G_TC_FILT); gDPSetTextureFilter(gdl++, G_TF_POINT); - func0f0b39c0(&gdl, tconfig, 2, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, tconfig, 2, 0, 2, 1, NULL); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetCombineMode(gdl++, G_CC_DECALRGBA, G_CC_DECALRGBA); @@ -1860,7 +1860,7 @@ s32 ciHangarTitleMenuHandler(s32 operation, struct menuitem *item, union handler gDPSetTextureLOD(gdl++, G_TL_TILE); gDPSetTextureConvert(gdl++, G_TC_FILT); - func0f0b39c0(&gdl, &g_TexGeneralConfigs[texturenum], 1, 0, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexGeneralConfigs[texturenum], 1, 0, 2, 1, NULL); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetCombineMode(gdl++, G_CC_DECALRGBA, G_CC_DECALRGBA); diff --git a/src/game/wallhit.c b/src/game/wallhit.c index c1603c0a2..cbe817e02 100644 --- a/src/game/wallhit.c +++ b/src/game/wallhit.c @@ -3,9 +3,9 @@ #include "game/dlights.h" #include "game/chr.h" #include "game/game_0b0fd0.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/playermgr.h" -#include "game/game_1668e0.h" +#include "game/room.h" #include "game/gfxmemory.h" #include "game/file.h" #include "game/options.h" @@ -2158,7 +2158,7 @@ glabel var7f1b5d6c /* f13fe60: 10000045 */ b .L0f13ff78 /* f13fe64: a20e0002 */ sb $t6,0x2($s0) .L0f13fe68: -/* f13fe68: 0fc59b74 */ jal func0f166dd0 +/* f13fe68: 0fc59b74 */ jal room0f166dd0 /* f13fe6c: e7ae01d0 */ swc1 $f14,0x1d0($sp) /* f13fe70: 8fa30208 */ lw $v1,0x208($sp) /* f13fe74: c7ae01d0 */ lwc1 $f14,0x1d0($sp) @@ -3457,7 +3457,7 @@ glabel var7f1b5d6c /* f13fe60: 10000045 */ b .L0f13ff78 /* f13fe64: a20e0002 */ sb $t6,0x2($s0) .L0f13fe68: -/* f13fe68: 0fc59b74 */ jal func0f166dd0 +/* f13fe68: 0fc59b74 */ jal room0f166dd0 /* f13fe6c: e7ae01d0 */ swc1 $f14,0x1d0($sp) /* f13fe70: 8fa30208 */ lw $v1,0x208($sp) /* f13fe74: c7ae01d0 */ lwc1 $f14,0x1d0($sp) @@ -4754,7 +4754,7 @@ glabel var7f1b02acnb /* f13a95c: 10000045 */ beqz $zero,.NB0f13aa74 /* f13a960: a2080002 */ sb $t0,0x2($s0) .NB0f13a964: -/* f13a964: 0fc58574 */ jal func0f166dd0 +/* f13a964: 0fc58574 */ jal room0f166dd0 /* f13a968: e7ae01d0 */ swc1 $f14,0x1d0($sp) /* f13a96c: 8fa30208 */ lw $v1,0x208($sp) /* f13a970: c7ae01d0 */ lwc1 $f14,0x1d0($sp) @@ -5449,7 +5449,7 @@ Gfx *wallhitRenderBgHitsLayer1(s32 roomnum, Gfx *gdl) prevtexturenum = -1; prev6b = -1; - gdl = func0f166d7c(gdl, roomnum); + gdl = room0f166d7c(gdl, roomnum); hit = g_Rooms[roomnum].wallhits1; @@ -5462,7 +5462,7 @@ Gfx *wallhitRenderBgHitsLayer1(s32 roomnum, Gfx *gdl) } if (hit->texturenum != prevtexturenum || hit->unk6b != prev6b) { - func0f0b39c0(&gdl, &g_TexWallhitConfigs[hit->texturenum], 2, hit->unk6b, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexWallhitConfigs[hit->texturenum], 2, hit->unk6b, 2, 1, NULL); prevtexturenum = hit->texturenum; prev6b = hit->unk6b; @@ -5511,7 +5511,7 @@ Gfx *wallhitRenderBgHitsLayer2(s32 roomnum, Gfx *gdl) prevtexturenum = -1; prev6b = -1; - gdl = func0f166d7c(gdl, roomnum); + gdl = room0f166d7c(gdl, roomnum); hit = g_Rooms[roomnum].wallhits2; @@ -5520,7 +5520,7 @@ Gfx *wallhitRenderBgHitsLayer2(s32 roomnum, Gfx *gdl) hit->unk6b = 1; if (hit->texturenum != prevtexturenum || hit->unk6b != prev6b) { - func0f0b39c0(&gdl, &g_TexWallhitConfigs[hit->texturenum], 2, hit->unk6b, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexWallhitConfigs[hit->texturenum], 2, hit->unk6b, 2, 1, NULL); prevtexturenum = hit->texturenum; prev6b = hit->unk6b; @@ -5607,7 +5607,7 @@ Gfx *wallhitRenderPropHits(Gfx *gdl, struct prop *prop, bool withalpha) } if (prevtexturenum != hit->texturenum || prev6b != hit->unk6b) { - func0f0b39c0(&gdl, &g_TexWallhitConfigs[hit->texturenum], 2, hit->unk6b, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexWallhitConfigs[hit->texturenum], 2, hit->unk6b, 2, 1, NULL); prevtexturenum = hit->texturenum; prev6b = hit->unk6b; diff --git a/src/game/game_013550.c b/src/game/wallhitreset.c similarity index 99% rename from src/game/game_013550.c rename to src/game/wallhitreset.c index 935ecbed7..6d4ee2183 100644 --- a/src/game/game_013550.c +++ b/src/game/wallhitreset.c @@ -27,7 +27,7 @@ f32 var8009cc78; * Related to blood splats, bullet holes and scorch marks. * With this function nopped they do not appear. */ -void func0f013550(void) +void wallhitReset(void) { s32 stack; s32 type = 2; diff --git a/src/game/weather.c b/src/game/weather.c index d770644a5..9b14c79ad 100644 --- a/src/game/weather.c +++ b/src/game/weather.c @@ -1,8 +1,8 @@ #include #include "constants.h" #include "game/dlights.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/gfxmemory.h" #include "game/sparks.h" #include "game/weather.h" @@ -56,7 +56,7 @@ Gfx *weatherRender(Gfx *gdl) gSPDisplayList(gdl++, &var80061380); if (weather->type == WEATHERTYPE_SNOW) { - func0f0b39c0(&gdl, &g_TexGeneralConfigs[1], 2, 1, 2, 1, NULL); + tex0f0b39c0(&gdl, &g_TexGeneralConfigs[1], 2, 1, 2, 1, NULL); gDPSetCycleType(gdl++, G_CYC_1CYCLE); gDPSetColorDither(gdl++, G_CD_NOISE); @@ -898,7 +898,7 @@ glabel var7f1b5780 /* f132f6c: 24060002 */ addiu $a2,$zero,0x2 /* f132f70: 24070001 */ addiu $a3,$zero,0x1 /* f132f74: afa00018 */ sw $zero,0x18($sp) -/* f132f78: 0fc2ce70 */ jal func0f0b39c0 +/* f132f78: 0fc2ce70 */ jal tex0f0b39c0 /* f132f7c: 24a5000c */ addiu $a1,$a1,0x000c /* f132f80: 8fab0de8 */ lw $t3,0xde8($sp) /* f132f84: 3c0dba00 */ lui $t5,0xba00 @@ -963,7 +963,7 @@ glabel var7f1b5780 /* f133070: afa00194 */ sw $zero,0x194($sp) /* f133074: 0c00566c */ jal mtx4LoadIdentity /* f133078: 02002025 */ or $a0,$s0,$zero -/* f13307c: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f13307c: 0fc2d5be */ jal camGetMatrix1740 /* f133080: 00000000 */ nop /* f133084: 00402025 */ or $a0,$v0,$zero /* f133088: 0c0056f8 */ jal mtx00015be0 @@ -1829,7 +1829,7 @@ glabel var7f1b5780 /* f133cec: c6480008 */ lwc1 $f8,0x8($s2) /* f133cf0: c6ea3e88 */ lwc1 $f10,0x3e88($s7) /* f133cf4: 46085180 */ add.s $f6,$f10,$f8 -/* f133cf8: 0fc2d6e7 */ jal func0f0b5b9c +/* f133cf8: 0fc2d6e7 */ jal cam0f0b5b9c /* f133cfc: e7a60110 */ swc1 $f6,0x110($sp) /* f133d00: 50400227 */ beqzl $v0,.L0f1345a0 /* f133d04: 8fa30088 */ lw $v1,0x88($sp) @@ -2588,7 +2588,7 @@ u32 var8007f0fc = 22000; // spdb0[i] = 0; // } // -// func0f0b39c0(&gdl, &g_TexGeneralConfigs[1], 2, 1, 2, 1, NULL); +// tex0f0b39c0(&gdl, &g_TexGeneralConfigs[1], 2, 1, 2, 1, NULL); // // gDPSetCycleType(gdl++, G_CYC_1CYCLE); // gDPSetColorDither(gdl++, G_CD_DISABLE); @@ -2604,7 +2604,7 @@ u32 var8007f0fc = 22000; // sp194 = 0; // // mtx4LoadIdentity(&sp1c8); -// mtx00015be0(currentPlayerGetMatrix1740(), &sp1c8); +// mtx00015be0(camGetMatrix1740(), &sp1c8); // // sp1c8.m[3][0] = 0.0f; // sp1c8.m[3][1] = 0.0f; @@ -2898,7 +2898,7 @@ u32 var8007f0fc = 22000; // sp108.f[1] = particledata->unk3e80.f[1] + particledata->particles[p].pos.f[1]; // sp108.f[2] = particledata->unk3e80.f[2] + particledata->particles[p].pos.f[2]; // -// if (func0f0b5b9c(&sp108, 150)) { +// if (cam0f0b5b9c(&sp108, 150)) { // spdb0[7] = spdb0[7] + osGetCount() - spd84[7]; // // sp218[0] = particledata->particles[p].pos.f[0]; @@ -3146,7 +3146,7 @@ glabel var7f1b5790 /* f134720: 24060004 */ addiu $a2,$zero,0x4 /* f134724: afa00018 */ sw $zero,0x18($sp) /* f134728: afa01268 */ sw $zero,0x1268($sp) -/* f13472c: 0fc2ce70 */ jal func0f0b39c0 +/* f13472c: 0fc2ce70 */ jal tex0f0b39c0 /* f134730: 00003825 */ or $a3,$zero,$zero /* f134734: 8fb81398 */ lw $t8,0x1398($sp) /* f134738: 8fa81268 */ lw $t0,0x1268($sp) @@ -3232,7 +3232,7 @@ glabel var7f1b5790 /* f134878: afa00198 */ sw $zero,0x198($sp) /* f13487c: 0c00566c */ jal mtx4LoadIdentity /* f134880: 02002025 */ or $a0,$s0,$zero -/* f134884: 0fc2d5be */ jal currentPlayerGetMatrix1740 +/* f134884: 0fc2d5be */ jal camGetMatrix1740 /* f134888: 00000000 */ nop /* f13488c: 00402025 */ or $a0,$v0,$zero /* f134890: 0c0056f8 */ jal mtx00015be0 @@ -3904,7 +3904,7 @@ glabel var7f1b5790 /* f135240: c6080008 */ lwc1 $f8,0x8($s0) /* f135244: c6463e88 */ lwc1 $f6,0x3e88($s2) /* f135248: 46083280 */ add.s $f10,$f6,$f8 -/* f13524c: 0fc2d6e7 */ jal func0f0b5b9c +/* f13524c: 0fc2d6e7 */ jal cam0f0b5b9c /* f135250: e7aa012c */ swc1 $f10,0x12c($sp) /* f135254: 50400237 */ beqzl $v0,.L0f135b34 /* f135258: 27de0001 */ addiu $s8,$s8,0x1 @@ -4634,7 +4634,7 @@ u32 var8007f110 = 0xffffff7f; // s7 = 0; // sp1268 = 0; // -// func0f0b39c0(&gdl, &g_TexGeneralConfigs[0], 4, 0, 2, 1, NULL); +// tex0f0b39c0(&gdl, &g_TexGeneralConfigs[0], 4, 0, 2, 1, NULL); // // gDPSetCycleType(gdl++, G_CYC_1CYCLE); // gDPSetColorDither(gdl++, G_CD_DISABLE); @@ -4656,7 +4656,7 @@ u32 var8007f110 = 0xffffff7f; // sp198 = 0; // // mtx4LoadIdentity(&sp1cc); -// mtx00015be0(currentPlayerGetMatrix1740(), &sp1cc); +// mtx00015be0(camGetMatrix1740(), &sp1cc); // // sp1cc.m[3][0] = 0.0f; // sp1cc.m[3][1] = 0.0f; @@ -4853,7 +4853,7 @@ u32 var8007f110 = 0xffffff7f; // sp124.f[1] = particledata->unk3e80.f[1] + particledata->particles[s8].pos.f[1]; // sp124.f[2] = particledata->unk3e80.f[2] + particledata->particles[s8].pos.f[2]; // -// if (func0f0b5b9c(&sp124, 5)) { +// if (cam0f0b5b9c(&sp124, 5)) { // sp137c = sp137c + osGetCount() - sp1354; // // sp21c = particledata->particles[s8].pos.f[0]; diff --git a/src/include/bss.h b/src/include/bss.h index e96ac8ad9..f2cf345ae 100644 --- a/src/include/bss.h +++ b/src/include/bss.h @@ -132,7 +132,7 @@ extern s32 var8009d0d8; extern struct sndstate *g_BgunAudioHandles[4]; extern struct fireslot g_Fireslots[NUM_FIRESLOTS]; extern struct casing g_Casings[20]; -extern struct var8009da60 var8009da60[8]; +extern struct boltbeam g_BoltBeams[8]; extern struct lasersight g_LaserSights[4]; extern u32 var8009dd00; extern u32 var8009dd04; @@ -201,7 +201,7 @@ extern u16 g_NumSpecialCovers; extern u16 *g_SpecialCoverNums; extern struct pak g_Paks[5]; extern OSPfs g_Pfses[4]; -extern u32 var800a33a0; +extern u32 g_SkyStageNum; extern s32 var800a33a4; extern struct explosion *g_Explosions; extern s32 g_MaxExplosions; diff --git a/src/include/game/game_02cde0.h b/src/include/game/body.h similarity index 50% rename from src/include/game/game_02cde0.h rename to src/include/game/body.h index 54c6d58bb..d50162532 100644 --- a/src/include/game/game_02cde0.h +++ b/src/include/game/body.h @@ -1,18 +1,22 @@ -#ifndef _IN_GAME_GAME_02CDE0_H -#define _IN_GAME_GAME_02CDE0_H +#ifndef IN_GAME_BODY_H +#define IN_GAME_BODY_H #include #include "data.h" #include "types.h" +void bodiesInit(void); + +void bodiesReset(void); + u32 bodyGetRace(s32 bodynum); bool bodyLoad(s32 bodynum); -struct model *func0f02ce8c(s32 bodynum, s32 headnum, struct modelfiledata *bodyfiledata, struct modelfiledata *headfiledata, bool sunglasses, struct model *model, bool isplayer, u8 varyheight); -struct model *func0f02d338(s32 bodynum, s32 headnum, struct modelfiledata *bodyfiledata, struct modelfiledata *headfiledata, bool sunglasses, u8 varyheight); -struct model *modelAllocateChr(s32 bodynum, s32 headnum, u32 spawnflags); -s32 func0f02d3f8(void); +struct model *body0f02ce8c(s32 bodynum, s32 headnum, struct modelfiledata *bodyfiledata, struct modelfiledata *headfiledata, bool sunglasses, struct model *model, bool isplayer, u8 varyheight); +struct model *body0f02d338(s32 bodynum, s32 headnum, struct modelfiledata *bodyfiledata, struct modelfiledata *headfiledata, bool sunglasses, u8 varyheight); +struct model *bodyAllocateModel(s32 bodynum, s32 headnum, u32 spawnflags); +s32 body0f02d3f8(void); s32 bodyChooseHead(s32 bodynum); -void chrUnpack(s32 stagenum, struct packedchr *packed, s32 cmdindex); -struct prop *propAllocateEyespy(struct pad *pad, s16 room); +void bodyAllocateChr(s32 stagenum, struct packedchr *packed, s32 cmdindex); +struct prop *bodyAllocateEyespy(struct pad *pad, s16 room); void bodyCalculateHeadOffset(struct modelfiledata *headfiledata, s32 headnum, s32 bodynum); #endif diff --git a/src/include/game/bot.h b/src/include/game/bot.h index 8ead4347a..b48fa3358 100644 --- a/src/include/game/bot.h +++ b/src/include/game/bot.h @@ -4,6 +4,8 @@ #include "data.h" #include "types.h" +bool botroomFindPos(s16 room, struct coord *pos, f32 *angleptr, s32 *padnumptr, s32 *covernumptr); + bool botIsDizzy(struct chrdata *chr); void botReset(struct chrdata *chr, u8 respawning); void botSpawn(struct chrdata *chr, u8 full); diff --git a/src/include/game/camera.h b/src/include/game/camera.h new file mode 100644 index 000000000..c5e75725e --- /dev/null +++ b/src/include/game/camera.h @@ -0,0 +1,48 @@ +#ifndef _IN_GAME_CAMERA_H +#define _IN_GAME_CAMERA_H +#include +#include "data.h" +#include "types.h" + +void camSetScreenSize(f32 width, f32 height); +void camSetScreenPosition(f32 left, f32 top); +void camSetPerspective(f32 near, f32 fovy, f32 aspect); +f32 cam0f0b49b8(f32 arg0); +void camSetScale(void); +void cam0f0b4c3c(f32 *crosspos, struct coord *arg1, f32 arg2); +void cam0f0b4d04(struct coord *in, f32 *out); +void cam0f0b4d68(struct coord *in, f32 out[2]); +void cam0f0b4dec(struct coord *in, f32 out[2]); +void cam0f0b4e68(struct coord *in, f32 divisor, struct coord *out); +void cam0f0b4eb8(struct coord *arg0, f32 arg1[2], f32 zoom, f32 aspect); +void camSetUnk1738(void *matrix); +void camSetUnk173c(Mtx *matrix); +Mtx *camGetUnk173c(void); +void camSetUnk006c(Mtxf *matrix); +Mtxf *camGetUnk006c(void); +void camSetUnk1750(void *value); +void *camGetUnk1750(void); +void camSetUnk1758(Mtx *matrix); +Mtx *camGetUnk1758(void); +void camSetMatrix1740(Mtxf *value); +Mtxf *cam0f0b5050(Mtxf *matrix); +u32 cam0f0b53a4(void); +Mtxf *camGetMatrix1740(void); +void camSetUnk1754(Mtxf *matrix); +Mtxf *camGetUnk1754(void); +void camSetUnk174c(Mtxf *matrix); +Mtxf *camGetUnk174c(void); +void camSetUnk175c(Mtxf *matrix); +Mtxf *camGetUnk175c(void); +f32 camGetLodScaleZ(void); +f32 camGetScreenWidth(void); +f32 camGetScreenHeight(void); +f32 camGetScreenLeft(void); +f32 camGetScreenTop(void); +f32 camGetPerspAspect(void); +void cam0f0b5838(void); +bool cam0f0b5b9c(void *arg0, f32 arg1); +bool cam0f0b5d38(struct coord *pos, f32 arg1, struct var800a4640_00 *arg2); +bool cam0f0b6260(s16 *rooms, struct coord *coord, f32 arg2); + +#endif diff --git a/src/include/game/challenge.h b/src/include/game/challenge.h new file mode 100644 index 000000000..99cac61d4 --- /dev/null +++ b/src/include/game/challenge.h @@ -0,0 +1,52 @@ +#ifndef _IN_GAME_CHALLENGE_H +#define _IN_GAME_CHALLENGE_H +#include +#include "data.h" +#include "types.h" + +extern u32 g_MpChallengeIndex; +extern struct mpconfigfull *g_MpCurrentChallengeConfig; +extern struct challenge g_MpChallenges[NUM_CHALLENGES]; + +void challengesInit(void); + +void challengeDetermineUnlockedFeatures(void); +void challengePerformSanityChecks(void); +char *challengeGetNameBySlot(s32 slot); +bool challengeIsCompletedByAnyChrWithNumPlayersBySlot(s32 slot, s32 numplayers); +struct mpconfigfull *challengeLoadConfig(s32 confignum, u8 *buffer, s32 len); +s32 challengeForceUnlockFeature(s32 featurenum, u8 *array, s32 tail, s32 len); +s32 challengeForceUnlockSetupFeatures(struct mpsetup *mpsetup, u8 *array, s32 len); +void challengeForceUnlockConfigFeatures(struct mpconfig *config, u8 *array, s32 len, s32 challengeindex); +void challengeForceUnlockBotFeatures(void); +void challengeApply(void); +char *challengeGetCurrentDescription(void); +char *challengeGetConfigDescription(struct mpconfigfull *mpconfig); +bool challengeIsCompleteForEndscreen(void); +bool aiMpInitSimulants(void); +void vmPrintStatsIfEnabled(void); +bool ChallengeIsAvailableToPlayer(s32 chrnum, s32 challengeindex); +bool challengeIsAvailableToAnyPlayer(s32 challengeindex); +s32 challengeGetNumAvailable(void); +char *challengeGetName(s32 challengeindex); +void challengeSetCurrentBySlot(s32 slotnum); +s32 challengeGetCurrent(void); +struct mpconfigfull *challengeLoad(s32 challengeindex, u8 *buffer, s32 len); +struct mpconfigfull *challengeLoadBySlot(s32 n, u8 *buffer, s32 len); +struct mpconfigfull *challengeLoadCurrent(u8 *buffer, s32 len); +void challengeRemoveForceUnlocks(void); +s32 challengeRemovePlayerLock(void); +void challengeLoadAndStoreCurrent(u8 *buffer, s32 len); +void challengeUnsetCurrent(void); +bool challengeIsLoaded(void); +s32 challengeGetAutoFocusedIndex(s32 mpchrnum); +char *xhallengeGetName(s32 playernum, s32 challengeindex); +bool challengeIsCompletedByPlayerWithNumPlayers2(s32 mpchrnum, s32 index, s32 numplayers); +bool challengeIsCompletedByAnyPlayerWithNumPlayers(s32 index, s32 numplayers); +void challengeSetCompletedByAnyPlayerWithNumPlayers(s32 index, s32 numplayers, bool completed); +bool challengeIsCompletedByPlayerWithNumPlayers(s32 mpchrnum, s32 index, s32 numplayers); +void challengeSetCompletedByPlayerWithNumPlayers(u32 mpchrnum, s32 index, s32 numplayers, bool completed); +void challengeConsiderMarkingComplete(void); +bool challengeIsFeatureUnlocked(s32 feature); + +#endif diff --git a/src/include/game/fmb.h b/src/include/game/fmb.h new file mode 100644 index 000000000..64254958e --- /dev/null +++ b/src/include/game/fmb.h @@ -0,0 +1,14 @@ +#ifndef _IN_GAME_FMB_H +#define _IN_GAME_FMB_H +#include +#include "data.h" +#include "types.h" + +void fmbReset(void); +s32 fmbHandleDropOut(s32 operation, struct menuitem *item, union handlerdata *data); +s32 fmdHandleAbortGame(s32 operation, struct menuitem *item, union handlerdata *data); +s32 fmbHandleAdvancedSetup(s32 operation, struct menuitem *item, union handlerdata *data); +s32 fmbHandleAcceptChallenge(s32 operation, struct menuitem *item, union handlerdata *data); +s32 fmbHandleMainMenu(s32 operation, struct menudialogdef *dialogdef, union handlerdata *data); + +#endif diff --git a/src/include/game/footstep.h b/src/include/game/footstep.h new file mode 100644 index 000000000..08c032c7f --- /dev/null +++ b/src/include/game/footstep.h @@ -0,0 +1,11 @@ +#ifndef IN_GAME_FOOTSTEP_H +#define IN_GAME_FOOTSTEP_H +#include +#include "data.h" +#include "types.h" + +s32 footstepChooseSound(struct chrdata *chr, s32 index); +void footstepCheckDefault(struct chrdata *chr); +void footstepCheckMagic(struct chrdata *chr); + +#endif diff --git a/src/include/game/game_000100.h b/src/include/game/game_000100.h deleted file mode 100644 index 99689820d..000000000 --- a/src/include/game/game_000100.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef IN_GAME_GAME_000100_H -#define IN_GAME_GAME_000100_H -#include -#include "data.h" -#include "types.h" - -void racesInit(void); - -#endif diff --git a/src/include/game/game_000130.h b/src/include/game/game_000130.h deleted file mode 100644 index 9a6140377..000000000 --- a/src/include/game/game_000130.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef IN_GAME_GAME_000130_H -#define IN_GAME_GAME_000130_H -#include -#include "data.h" -#include "types.h" - -void bodiesInit(void); -u16 func0f0002a0(s16 animnum, s32 frame, s32 endframe); -s32 func0f000358(s16 animnum, s32 startframe, s32 endframe); -s32 func0f00040c(struct attackanimconfig *configs); -void func0f00052c(struct attackanimgroup **groups); -s32 func0f000590(struct animtablerow *rows); -f32 func0f0005c0(s16 animnum); -void func0f000648(void); - -#endif diff --git a/src/include/game/game_000880.h b/src/include/game/game_000880.h deleted file mode 100644 index c068c1a56..000000000 --- a/src/include/game/game_000880.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef IN_GAME_GAME_000880_H -#define IN_GAME_GAME_000880_H -#include -#include "data.h" -#include "types.h" - -void func0f000880(void); - -#endif diff --git a/src/include/game/game_005fd0.h b/src/include/game/game_005fd0.h deleted file mode 100644 index 09e20a737..000000000 --- a/src/include/game/game_005fd0.h +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef IN_GAME_GAME_005FD0_H -#define IN_GAME_GAME_005FD0_H -#include -#include "data.h" -#include "types.h" - -bool func0f005fd0(s32 animnum); -s32 chrChooseFootstepSound(struct chrdata *chr, s32 index); -void chrCheckFootstep(struct chrdata *chr); -void chrCheckFootstepMagic(struct chrdata *chr); - -#endif diff --git a/src/include/game/game_006900.h b/src/include/game/game_006900.h index 8f149dca3..a83c9e0b8 100644 --- a/src/include/game/game_006900.h +++ b/src/include/game/game_006900.h @@ -9,5 +9,6 @@ void func0f0069dc(void); f32 func0f006b08(f32 arg0); f32 func0f006b54(f32 arg0); f32 func0f006ba0(f32 arg0); +f32 func0f006bd0(f32 arg0); #endif diff --git a/src/include/game/game_006bd0.h b/src/include/game/game_006bd0.h deleted file mode 100644 index 34310db38..000000000 --- a/src/include/game/game_006bd0.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef IN_GAME_GAME_006BD0_H -#define IN_GAME_GAME_006BD0_H -#include -#include "data.h" -#include "types.h" - -f32 func0f006bd0(f32 arg0); -u32 func0f006c80(void); -Gfx *func0f008558(Gfx *gdl, s32 arg1); -void nbombReset(struct nbomb *nbomb); -s32 nbombCalculateAlpha(struct nbomb *nbomb); -Gfx *nbombCreateGdl(void); -Gfx *nbombRender(Gfx *gdl, struct nbomb *nbomb, Gfx *subgdl); -void func0f0099a4(void); -void nbombInflictDamage(struct nbomb *nbomb); -void nbombTick(struct nbomb *nbomb); -void nbombsTick(void); -Gfx *nbombsRender(Gfx *gdl); -void nbombCreateStorm(struct coord *pos, struct prop *prop); -f32 gasGetDoorFrac(s32 tagnum); -Gfx *func0f00a490(Gfx *gdl); -Gfx *gasRender(Gfx *gdl); - -#endif diff --git a/src/include/game/game_00b190.h b/src/include/game/game_00b190.h deleted file mode 100644 index 167992400..000000000 --- a/src/include/game/game_00b190.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef IN_GAME_GAME_00B190_H -#define IN_GAME_GAME_00B190_H -#include -#include "data.h" -#include "types.h" - -void texInit(void); - -#endif diff --git a/src/include/game/game_00b210.h b/src/include/game/game_00b210.h deleted file mode 100644 index 474233394..000000000 --- a/src/include/game/game_00b210.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef _IN_GAME_GAME_00B210_H -#define _IN_GAME_GAME_00B210_H -#include -#include "data.h" -#include "types.h" - -void challengesInit(void); - -#endif diff --git a/src/include/game/game_00b320.h b/src/include/game/game_00b320.h index dc6c2c53e..fa4b464f6 100644 --- a/src/include/game/game_00b320.h +++ b/src/include/game/game_00b320.h @@ -5,6 +5,5 @@ #include "types.h" void langReset(s32 stagenum); -void func0f00b420(void); #endif diff --git a/src/include/game/game_00b820.h b/src/include/game/game_00b820.h index db2a615fa..a7b6bb262 100644 --- a/src/include/game/game_00b820.h +++ b/src/include/game/game_00b820.h @@ -4,7 +4,6 @@ #include "data.h" #include "types.h" -void headsReset(s32 stagenum); void resetSomeStageThings(void); void stageAllocateBgChrs(void); diff --git a/src/include/game/game_00c490.h b/src/include/game/game_00c490.h deleted file mode 100644 index 2bbb27a7f..000000000 --- a/src/include/game/game_00c490.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef IN_GAME_GAME_00C490_H -#define IN_GAME_GAME_00C490_H -#include -#include "data.h" -#include "types.h" - -void propsReset(void); -void addLiftDoor(struct linkliftdoorobj *link); -void addPadlockedDoor(struct padlockeddoorobj *link); -void addSafeItem(struct safeitemobj *link); -void addConditionalScenery(struct linksceneryobj *link); -void addBlockedPath(struct blockedpathobj *link); -void func0f00cc8c(void); -void setupClearProxyMines(void); -s32 setupCountCommandType(u32 type); -void setupGenericObject(struct defaultobj *obj, s32 cmdindex); -void weaponAssignToHome(struct weaponobj *weapon, s32 cmdindex); -void setupHat(struct hatobj *hat, s32 cmdindex); -void setupKey(struct keyobj *key, s32 cmdindex); -void setupMine(struct mineobj *mine, s32 cmdindex); -void setupCctv(struct cctvobj *camera, s32 cmdindex); -void setupAutogun(struct autogunobj *autogun, s32 cmdindex); -void setupHangingMonitors(struct hangingmonitorsobj *monitors, s32 cmdindex); -void setupSingleMonitor(struct singlemonitorobj *monitor, s32 cmdindex); -void setupMultiMonitor(struct multimonitorobj *monitor, s32 cmdindex); -s32 func0f00e1f8(s32 padnum); -s32 func0f00e2b0(s32 padnum); -void setupDoor(struct doorobj *door, s32 cmdindex); -void setupHov(struct defaultobj *obj, struct hov *hov); -void setupLoadBriefing(s32 stagenum, u8 *buffer, s32 bufferlen, struct briefing *briefing); -void setupReset(s32 stagenum); -void propsCreate(s32 stagenum); - -#endif diff --git a/src/include/game/game_012aa0.h b/src/include/game/game_012aa0.h deleted file mode 100644 index 176f7a579..000000000 --- a/src/include/game/game_012aa0.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef IN_GAME_GAME_012AA0_H -#define IN_GAME_GAME_012AA0_H -#include -#include "data.h" -#include "types.h" - -void padsPrepare(void); - -#endif diff --git a/src/include/game/game_012d50.h b/src/include/game/game_012d50.h deleted file mode 100644 index 58933b00d..000000000 --- a/src/include/game/game_012d50.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef _IN_GAME_GAME_012D50_H -#define _IN_GAME_GAME_012D50_H -#include -#include "data.h" -#include "types.h" - -void waypointsLoad(void); - -#endif diff --git a/src/include/game/game_013550.h b/src/include/game/game_013550.h deleted file mode 100644 index c6f3639f3..000000000 --- a/src/include/game/game_013550.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef _IN_GAME_GAME_013550_H -#define _IN_GAME_GAME_013550_H -#include -#include "data.h" -#include "types.h" - -void func0f013550(void); - -#endif diff --git a/src/include/game/game_013b80.h b/src/include/game/game_013b80.h deleted file mode 100644 index 5577ad46c..000000000 --- a/src/include/game/game_013b80.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef _IN_GAME_GAME_013B80_H -#define _IN_GAME_GAME_013B80_H -#include -#include "data.h" -#include "types.h" - -void texReset(void); -void vtxstoreReset(void); - -#endif diff --git a/src/include/game/game_013ee0.h b/src/include/game/game_013ee0.h deleted file mode 100644 index 98dab20c0..000000000 --- a/src/include/game/game_013ee0.h +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef _IN_GAME_GAME_013EE0_H -#define _IN_GAME_GAME_013EE0_H -#include -#include "data.h" -#include "types.h" - -void func0f013ee0(void); -void coverAllocateSpecial(u16 *specialcovernums); -void coverPrepare(void); - -#endif diff --git a/src/include/game/game_0147a0.h b/src/include/game/game_0147a0.h deleted file mode 100644 index a873fd9b1..000000000 --- a/src/include/game/game_0147a0.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef _IN_GAME_GAME_0147A0_H -#define _IN_GAME_GAME_0147A0_H -#include -#include "data.h" -#include "types.h" - -void func0f0147a0(u32 stagenum); - -#endif diff --git a/src/include/game/game_0147d0.h b/src/include/game/game_0147d0.h index acccf72ca..27bbd26cd 100644 --- a/src/include/game/game_0147d0.h +++ b/src/include/game/game_0147d0.h @@ -4,7 +4,7 @@ #include "data.h" #include "types.h" -void func0f0147d0(void); +void boltbeamsReset(void); void lasersightsReset(void); #endif diff --git a/src/include/game/game_01afc0.h b/src/include/game/game_01afc0.h deleted file mode 100644 index 69c4adb6c..000000000 --- a/src/include/game/game_01afc0.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef _IN_GAME_GAME_01AFC0_H -#define _IN_GAME_GAME_01AFC0_H -#include -#include "data.h" -#include "types.h" - -Gfx *func0f01afc0(Gfx *gdl); - -#endif diff --git a/src/include/game/game_01d8c0.h b/src/include/game/game_01d8c0.h deleted file mode 100644 index 26375659e..000000000 --- a/src/include/game/game_01d8c0.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef IN_GAME_GAME_01D8C0_H -#define IN_GAME_GAME_01D8C0_H -#include -#include "data.h" -#include "types.h" - -void func0f01d8c0(void); - -#endif diff --git a/src/include/game/game_01d990.h b/src/include/game/game_01d990.h deleted file mode 100644 index 2fd833e87..000000000 --- a/src/include/game/game_01d990.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef _IN_GAME_GAME_01D990_H -#define _IN_GAME_GAME_01D990_H -#include -#include "data.h" -#include "types.h" - -void func0f01d990(void); - -#endif diff --git a/src/include/game/game_091e10.h b/src/include/game/game_091e10.h deleted file mode 100644 index 30a76fe29..000000000 --- a/src/include/game/game_091e10.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef IN_GAME_GAME_091e10_H -#define IN_GAME_GAME_091e10_H -#include -#include "data.h" -#include "types.h" - -u32 setupGetCommandLength(u32 *cmd); -u32 *setupGetPtrToCommandByIndex(s32 cmdindex); -s32 tagGetCommandIndex(struct tag *tag); -u32 setupGetCommandIndexByProp(struct prop *prop); -bool modelLoad(s32 propnum); -bool func0f09220c(struct defaultobj *obj, struct coord *pos, f32 realrot[3][3], struct coord *arg3, struct coord *arg4); -bool func0f092304(struct defaultobj *obj, struct coord *arg1, struct coord *arg2); -void func0f09233c(struct defaultobj *obj, struct coord *pos, f32 realrot[3][3], s16 *rooms); -void func0f0923d4(struct defaultobj *obj); -struct defaultobj *setupCommandGetObject(u32 cmdindex); -struct defaultobj *setupFindObjForReuse(s32 type, struct defaultobj **arg1, struct defaultobj **arg2, bool musthaveprop, bool musthavemodel, struct modelfiledata *filedata); - -#endif diff --git a/src/include/game/game_0b3350.h b/src/include/game/game_0b3350.h deleted file mode 100644 index cca18112f..000000000 --- a/src/include/game/game_0b3350.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef _IN_GAME_GAME_0B3350_H -#define _IN_GAME_GAME_0B3350_H -#include -#include "data.h" -#include "types.h" - -s32 func0f0b3350(s32 value); -u32 func0f0b33f8(void); -u32 func0f0b3468(void); -u32 func0f0b34d8(void); -u32 func0f0b3548(void); -u32 func0f0b35b8(void); -void func0f0b3988(struct textureconfig *config); -void func0f0b39c0(Gfx **gdl, struct textureconfig *arg1, u32 arg2, u32 arg3, u32 arg4, s32 arg5, u32 *arg6); - -#endif diff --git a/src/include/game/game_0b4950.h b/src/include/game/game_0b4950.h deleted file mode 100644 index 95c87ca71..000000000 --- a/src/include/game/game_0b4950.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef _IN_GAME_GAME_0B4950_H -#define _IN_GAME_GAME_0B4950_H -#include -#include "data.h" -#include "types.h" - -void currentPlayerSetScreenSize(f32 width, f32 height); -void currentPlayerSetScreenPosition(f32 left, f32 top); -void currentPlayerSetPerspective(f32 near, f32 fovy, f32 aspect); -f32 func0f0b49b8(f32 arg0); -void currentPlayerSetCameraScale(void); -void func0f0b4c3c(f32 *crosspos, struct coord *arg1, f32 arg2); -void func0f0b4d04(struct coord *in, f32 *out); -void func0f0b4d68(struct coord *in, f32 out[2]); -void func0f0b4dec(struct coord *in, f32 out[2]); -void func0f0b4e68(struct coord *in, f32 divisor, struct coord *out); -void func0f0b4eb8(struct coord *arg0, f32 arg1[2], f32 zoom, f32 aspect); -void currentPlayerSetUnk1738(void *matrix); -void currentPlayerSetUnk173c(Mtx *matrix); -Mtx *currentPlayerGetUnk173c(void); -void currentPlayerSetUnk006c(Mtxf *matrix); -Mtxf *currentPlayerGetUnk006c(void); -void currentPlayerSetUnk1750(void *value); -void *currentPlayerGetUnk1750(void); -void currentPlayerSetUnk1758(Mtx *matrix); -Mtx *currentPlayerGetUnk1758(void); -void currentPlayerSetMatrix1740(Mtxf *value); -Mtxf *func0f0b5050(Mtxf *matrix); -u32 func0f0b53a4(void); -Mtxf *currentPlayerGetMatrix1740(void); -void currentPlayerSetUnk1754(Mtxf *matrix); -Mtxf *currentPlayerGetUnk1754(void); -void currentPlayerSetUnk174c(Mtxf *matrix); -Mtxf *currentPlayerGetUnk174c(void); -void currentPlayerSetUnk175c(Mtxf *matrix); -Mtxf *currentPlayerGetUnk175c(void); -f32 currentPlayerGetLodScaleZ(void); -f32 currentPlayerGetScreenWidth(void); -f32 currentPlayerGetScreenHeight(void); -f32 currentPlayerGetScreenLeft(void); -f32 currentPlayerGetScreenTop(void); -f32 currentPlayerGetPerspAspect(void); -void func0f0b5838(void); -bool func0f0b5b9c(void *arg0, f32 arg1); -bool func0f0b5d38(struct coord *pos, f32 arg1, struct var800a4640_00 *arg2); -bool func0f0b6260(s16 *rooms, struct coord *coord, f32 arg2); - -#endif diff --git a/src/include/game/game_0b63b0.h b/src/include/game/game_0b63b0.h deleted file mode 100644 index 6d5428382..000000000 --- a/src/include/game/game_0b63b0.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef _IN_GAME_GAME_0B63B0_H -#define _IN_GAME_GAME_0B63B0_H -#include -#include "data.h" -#include "types.h" - -void func0f0b63b0(s32 portalnum, f32 frac); -void func0f0b6470(s32 portalnum, f32 frac); -f32 func0f0b6534(s32 arg0); -f32 func0f0b656c(s32 arg0); -void func0f0b65a8(s32 arg0); -void func0f0b65f8(void); -void acousticReset(void); - -#endif diff --git a/src/include/game/game_10c9c0.h b/src/include/game/game_10c9c0.h deleted file mode 100644 index 4eacff820..000000000 --- a/src/include/game/game_10c9c0.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef _IN_GAME_GAME_10C9C0_H -#define _IN_GAME_GAME_10C9C0_H -#include -#include "data.h" -#include "types.h" - -void fmbmenuReset(void); -s32 menuhandler4MbDropOut(s32 operation, struct menuitem *item, union handlerdata *data); -s32 menuhandler0010ca1c(s32 operation, struct menuitem *item, union handlerdata *data); -s32 menuhandler4MbAdvancedSetup(s32 operation, struct menuitem *item, union handlerdata *data); -s32 menuhandler0010cabc(s32 operation, struct menuitem *item, union handlerdata *data); -s32 menudialog4MbMainMenu(s32 operation, struct menudialogdef *dialogdef, union handlerdata *data); - -#endif diff --git a/src/include/game/game_11f000.h b/src/include/game/game_11f000.h deleted file mode 100644 index b9e2ac96c..000000000 --- a/src/include/game/game_11f000.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef _IN_GAME_GAME_11F000_H -#define _IN_GAME_GAME_11F000_H -#include -#include "data.h" -#include "types.h" - -void func0f11f000(f32 left, f32 top, struct coord *arg2); -u32 func0f11f07c(void); -u32 func0f11f1fc(void); -void func0f11f384(struct coord *arg0, struct coord *arg1, struct coord *out); -f32 func0f11f3d0(f32 value, f32 min, f32 max); -f32 func0f11f410(f32 value); -u32 func0f11f438(void); -u32 func0f11f6ec(void); -Gfx *func0f11f984(Gfx *gdl); -u32 func0f1228d0(void); -u32 func0f122ce8(void); -u32 func0f122d4c(void); -u32 func0f123fd4(void); -u32 func0f125948(void); -f32 func0f125a1c(struct bootbufferthingdeep *arg0); -Gfx *func0f125a6c(Gfx *gdl, s32 arg1); -Gfx *func0f126384(Gfx *gdl, f32 x, f32 y, f32 arg3, f32 orbsize, s32 arg5, f32 arg6); -Gfx *func0f126c3c(Gfx *gdl, f32 x, f32 y, f32 z, f32 arg4, f32 arg5); -Gfx *func0f126de8(Gfx *gdl); -Gfx *func0f12715c(Gfx *gdl); -void func0f127334(s32 arg0, s32 arg1, s32 arg2); -s32 func0f127490(s32 arg0, s32 arg1); -Gfx *func0f1274d8(Gfx *gdl); - -#endif diff --git a/src/include/game/game_1531a0.h b/src/include/game/game_1531a0.h index d4c566020..7ba784f7f 100644 --- a/src/include/game/game_1531a0.h +++ b/src/include/game/game_1531a0.h @@ -4,7 +4,7 @@ #include "data.h" #include "types.h" -void func0f1531a0(void); +void fontsInit(void); void textSetRotation90(bool rotated); void func0f1531c4(s32 arg0); void func0f1531d0(s32 arg0); diff --git a/src/include/game/game_1577f0.h b/src/include/game/game_1577f0.h deleted file mode 100644 index 0a6b28fe9..000000000 --- a/src/include/game/game_1577f0.h +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef _IN_GAME_GAME_1577F0_H -#define _IN_GAME_GAME_1577F0_H -#include -#include "data.h" -#include "types.h" - -u32 func0f1577f0(void); -u32 func0f1578c8(void); -f32 func0f1579cc(f32 *arg0, f32 *arg1, f32 *arg2, f32 *arg3); - -#endif diff --git a/src/include/game/game_1668e0.h b/src/include/game/game_1668e0.h deleted file mode 100644 index e7becf9d0..000000000 --- a/src/include/game/game_1668e0.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef IN_GAME_GAME_1668E0_H -#define IN_GAME_GAME_1668E0_H -#include -#include "data.h" -#include "types.h" - -void currentPlayerSetLastRoomForOffset(s32 room); -void func0f1668f0(s32 index, s32 roomnum); -void func0f16692c(s32 index, s32 roomnum); -void func0f16696c(s32 index); -s32 func0f1669fc(void); -void func0f166a6c(Mtxf *matrix, s32 roomnum); -s32 func0f166c20(s32 roomnum); -Gfx *func0f166d7c(Gfx *gdl, s32 roomnum); -struct coord *func0f166dd0(s32 room); -void func0f166df0(s32 room, struct coord *globaldrawworldoffset); - -#endif diff --git a/src/include/game/game_173a00.h b/src/include/game/game_173a00.h deleted file mode 100644 index e7745eb31..000000000 --- a/src/include/game/game_173a00.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef IN_GAME_GAME_173A00_H -#define IN_GAME_GAME_173A00_H -#include -#include "data.h" -#include "types.h" - -void func0f173a08(void); -bool func0f173a44(u32 value); -bool func0f173a70(s32 index, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9, s32 arg10); -bool func0f173b8c(s32 index, s32 arg1, s32 arg2, s32 arg3, s32 arg4); -u32 func0f173c10(void); -u32 func0f173cb8(void); -u32 func0f173d60(void); -u32 func0f173e10(void); -u32 func0f173e50(void); -s32 func0f173f18(s32 arg0); -u32 func0f173f48(u32 arg0); -u32 func0f173f78(void); -u32 func0f1742e4(void); -u32 func0f1743a0(void); -u32 func0f1747a4(void); -u32 func0f174b54(void); -u32 func0f174f30(void); -u32 func0f1751e4(void); -u32 func0f175308(void); -u32 func0f175490(void); -u32 func0f1755dc(void); -u32 func0f17563c(void); -s32 func0f1756c0(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4); -void func0f175ef4(s32 arg0, s32 arg1, s32 arg2); - -extern const char var7f1b7ba0[]; -extern const char var7f1b7ba8[]; -extern const char var7f1b7bb0[]; -extern const char var7f1b7bb8[]; -extern const char var7f1b7bc0[]; -extern const char var7f1b7bc8[]; -extern const char var7f1b7bd8[]; -extern const char var7f1b7be0[]; -extern const char var7f1b7be8[]; -extern const char var7f1b7bec[]; -extern const char var7f1b7bf4[]; -extern const char var7f1b7c00[]; -extern const char var7f1b7c04[]; -extern const char var7f1b7c10[]; -extern const char var7f1b7c18[]; - -#endif diff --git a/src/include/game/game_19aa80.h b/src/include/game/game_19aa80.h deleted file mode 100644 index e8fd9afda..000000000 --- a/src/include/game/game_19aa80.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef _IN_GAME_GAME_19AA80_H -#define _IN_GAME_GAME_19AA80_H -#include -#include "data.h" -#include "types.h" - -extern u32 g_MpChallengeIndex; -extern struct mpconfigfull *g_MpCurrentChallengeConfig; -extern struct challenge g_MpChallenges[NUM_CHALLENGES]; - -bool ai0176(void); -bool botroomFindPos(s16 room, struct coord *pos, f32 *angleptr, s32 *padnumptr, s32 *covernumptr); -void mpDetermineUnlockedFeatures(void); -void mpPerformSanityChecks(void); -char *mpGetChallengeNameBySlot(s32 slot); -bool mpIsChallengeCompletedByAnyChrWithNumPlayersBySlot(s32 slot, s32 numplayers); -struct mpconfigfull *mpLoadConfig(s32 confignum, u8 *buffer, s32 len); -s32 mpForceUnlockFeature(s32 featurenum, u8 *array, s32 tail, s32 len); -s32 mpForceUnlockSetupFeatures(struct mpsetup *mpsetup, u8 *array, s32 len); -void mpForceUnlockConfigFeatures(struct mpconfig *config, u8 *array, s32 len, s32 challengeindex); -void mpForceUnlockSimulantFeatures(void); -void func0f19c1cc(void); -char *mpGetCurrentChallengeDescription(void); -char *mpconfigGetDescription(struct mpconfigfull *mpconfig); -bool mpIsChallengeCompleteForEndscreen(void); -bool aiMpInitSimulants(void); -void vmPrintStatsIfEnabled(void); -bool mpIsChallengeAvailableToPlayer(s32 chrnum, s32 challengeindex); -bool mpIsChallengeAvailableToAnyPlayer(s32 challengeindex); -s32 mpGetNumAvailableChallenges(void); -char *mpChallengeGetName(s32 challengeindex); -void mpSetCurrentChallenge(s32 slotnum); -s32 mpGetCurrentChallengeIndex(void); -struct mpconfigfull *mpLoadChallenge(s32 challengeindex, u8 *buffer, s32 len); -struct mpconfigfull *mpGetNthAvailableChallengeSomething(s32 n, u8 *buffer, s32 len); -struct mpconfigfull *mpLoadCurrentChallenge(u8 *buffer, s32 len); -void func0f19c190(void); -s32 mpRemoveLock(void); -void mpLoadAndStoreCurrentChallenge(u8 *buffer, s32 len); -void mpClearCurrentChallenge(void); -bool mpIsChallengeLoaded(void); -s32 mpGetAutoFocusedChallengeIndex(s32 mpchrnum); -char *mpChallengeGetNameWithArg(s32 playernum, s32 challengeindex); -bool mpIsChallengeCompletedByPlayerWithNumPlayers2(s32 mpchrnum, s32 index, s32 numplayers); -bool mpIsChallengeCompletedByAnyPlayerWithNumPlayers(s32 index, s32 numplayers); -void mpSetChallengeCompletedByAnyPlayerWithNumPlayers(s32 index, s32 numplayers, bool completed); -bool mpIsChallengeCompletedByPlayerWithNumPlayers(s32 mpchrnum, s32 index, s32 numplayers); -void mpSetChallengeCompletedByPlayerWithNumPlayers(u32 mpchrnum, s32 index, s32 numplayers, bool completed); -void mpConsiderMarkingCurrentChallengeComplete(void); -bool mpIsFeatureUnlocked(s32 feature); - -#endif diff --git a/src/include/game/getitle.h b/src/include/game/getitle.h index 48694e6e3..32a694268 100644 --- a/src/include/game/getitle.h +++ b/src/include/game/getitle.h @@ -4,7 +4,9 @@ #include "data.h" #include "types.h" -void getitleReset(void *addr, u32 arg1); +void getitleReset(void); + +void getitleLoad(void *addr, u32 arg1); Gfx *getitleRender(Gfx *gdl); #endif diff --git a/src/include/game/game_165670.h b/src/include/game/gfxreplace.h similarity index 77% rename from src/include/game/game_165670.h rename to src/include/game/gfxreplace.h index b63582d44..e0c623505 100644 --- a/src/include/game/game_165670.h +++ b/src/include/game/gfxreplace.h @@ -1,5 +1,5 @@ -#ifndef IN_GAME_GAME_165670_H -#define IN_GAME_GAME_165670_H +#ifndef IN_GAME_GFXREPLACE_H +#define IN_GAME_GFXREPLACE_H #include #include "data.h" #include "types.h" diff --git a/src/include/game/game_0abe70.h b/src/include/game/gunfx.h similarity index 81% rename from src/include/game/game_0abe70.h rename to src/include/game/gunfx.h index 1c190671a..fef89a039 100644 --- a/src/include/game/game_0abe70.h +++ b/src/include/game/gunfx.h @@ -1,26 +1,32 @@ -#ifndef IN_GAME_GAME_0ABE70_H -#define IN_GAME_GAME_0ABE70_H +#ifndef _IN_GAME_GUNFX_H +#define _IN_GAME_GUNFX_H #include #include "data.h" #include "types.h" +void boltbeamsReset(void); +void lasersightsReset(void); + void beamCreate(struct beam *beam, s32 weaponnum, struct coord *from, struct coord *to); u32 func0f0ac138(void); Gfx *func0f0ac4b8(Gfx *gdl, struct textureconfig *arg1, f32 arg2, struct coord *arg3, u32 colour1, f32 arg5, struct coord *arg6, u32 colour2); Gfx *func0f0acb90(Gfx *gdl, struct beam *beam, bool arg2, u32 arg3); void beamTick(struct beam *beam); + struct casing *casingCreate(struct modelfiledata *modeldef, Mtxf *mtx); u32 func0f0ade00(void); void casingRender(struct casing *casing, Gfx **gdlptr); void casingsRender(Gfx **gdlptr); -s32 func0f0aec54(struct prop *prop); -s32 func0f0aeca8(struct prop *prop); + +s32 boltbeamFindByProp(struct prop *prop); +s32 boltbeamCreate(struct prop *prop); void func0f0aed3c(s32 index, struct coord *pos); void func0f0aed70(s32 index, struct coord *pos); void func0f0aeda4(s32 arg0, f32 arg1, u32 arg2); void func0f0aeea8(s32 index, f32 arg1); -Gfx *func0f0aeed8(Gfx *gdl); -void func0f0aefb8(void); +Gfx *boltbeamsRender(Gfx *gdl); +void boltbeamsTick(void); + bool lasersightExists(s32 id, s32 *index); Gfx *lasersightRenderDot(Gfx *gdl); Gfx *lasersightRenderBeam(Gfx *gdl); diff --git a/src/include/game/lasersights.h b/src/include/game/lasersights.h deleted file mode 100644 index e8913c657..000000000 --- a/src/include/game/lasersights.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef _IN_GAME_LASERSIGHTS_H -#define _IN_GAME_LASERSIGHTS_H -#include -#include "data.h" -#include "types.h" - -void func0f0147d0(void); -void lasersightsReset(void); - -#endif diff --git a/src/include/game/game_1a7560.h b/src/include/game/modeldef.h similarity index 62% rename from src/include/game/game_1a7560.h rename to src/include/game/modeldef.h index 53ce4f92a..23011edbf 100644 --- a/src/include/game/game_1a7560.h +++ b/src/include/game/modeldef.h @@ -1,10 +1,10 @@ -#ifndef IN_GAME_GAME_1A7560_H -#define IN_GAME_GAME_1A7560_H +#ifndef IN_GAME_MODELDEF_H +#define IN_GAME_MODELDEF_H #include #include "data.h" #include "types.h" -void func0f1a7560(void *ptr, u16 fileid, u32 arg2, void *arg3, s32 *arg4, bool arg5); +void modeldef0f1a7560(void *ptr, u16 fileid, u32 arg2, void *arg3, s32 *arg4, bool arg5); void modelPromoteTypeToPointer(struct modelfiledata *filedata); struct modelfiledata *modeldefLoad(u16 fileid, u8 *arg1, s32 arg2, s32 *arg3); void *modeldefLoadToNew(u16 fileid); diff --git a/src/include/game/game_01b0a0.h b/src/include/game/pdmode.h similarity index 81% rename from src/include/game/game_01b0a0.h rename to src/include/game/pdmode.h index 3d2040e37..f9a3c9696 100644 --- a/src/include/game/game_01b0a0.h +++ b/src/include/game/pdmode.h @@ -1,5 +1,5 @@ -#ifndef _IN_GAME_GAME_01B0A0_H -#define _IN_GAME_GAME_01B0A0_H +#ifndef _IN_GAME_PDMODE_H +#define _IN_GAME_PDMODE_H #include #include "data.h" #include "types.h" diff --git a/src/include/game/portal.h b/src/include/game/portal.h new file mode 100644 index 000000000..7ad017da5 --- /dev/null +++ b/src/include/game/portal.h @@ -0,0 +1,15 @@ +#ifndef _IN_GAME_PORTAL_H +#define _IN_GAME_PORTAL_H +#include +#include "data.h" +#include "types.h" + +void portal0f0b63b0(s32 portalnum, f32 frac); +void portal0f0b6470(s32 portalnum, f32 frac); +f32 portal0f0b6534(s32 arg0); +f32 portal0f0b656c(s32 arg0); +void portal0f0b65a8(s32 arg0); +void portalsReset(void); +void acousticReset(void); + +#endif diff --git a/src/include/game/game_015010.h b/src/include/game/propobjstop.h similarity index 59% rename from src/include/game/game_015010.h rename to src/include/game/propobjstop.h index b346e0d47..6a1ae5ceb 100644 --- a/src/include/game/game_015010.h +++ b/src/include/game/propobjstop.h @@ -1,5 +1,5 @@ -#ifndef IN_GAME_GAME_015010_H -#define IN_GAME_GAME_015010_H +#ifndef IN_GAME_PROPOBJSTOP_H +#define IN_GAME_PROPOBJSTOP_H #include #include "data.h" #include "types.h" diff --git a/src/include/game/game_096ca0.h b/src/include/game/quaternion.h similarity index 89% rename from src/include/game/game_096ca0.h rename to src/include/game/quaternion.h index 3377f216f..d93808631 100644 --- a/src/include/game/game_096ca0.h +++ b/src/include/game/quaternion.h @@ -1,5 +1,5 @@ -#ifndef _IN_GAME_GAME_096CA0_H -#define _IN_GAME_GAME_096CA0_H +#ifndef _IN_GAME_QUATERNION_H +#define _IN_GAME_QUATERNION_H #include #include "data.h" #include "types.h" diff --git a/src/include/game/race.h b/src/include/game/race.h new file mode 100644 index 000000000..a42d74775 --- /dev/null +++ b/src/include/game/race.h @@ -0,0 +1,17 @@ +#ifndef IN_GAME_RACE_H +#define IN_GAME_RACE_H +#include +#include "data.h" +#include "types.h" + +void racesInit(void); + +u16 raceInitAnim(s16 animnum, s32 frame, s32 endframe); +s32 race0f000358(s16 animnum, s32 startframe, s32 endframe); +s32 raceInitAnimGroup(struct attackanimconfig *configs); +void raceInitAnimGroups(struct attackanimgroup **groups); +s32 raceCountAnims(struct animtablerow *rows); +f32 race0f0005c0(s16 animnum); +void raceInitAnims(void); + +#endif diff --git a/src/include/game/room.h b/src/include/game/room.h new file mode 100644 index 000000000..7939f37cd --- /dev/null +++ b/src/include/game/room.h @@ -0,0 +1,22 @@ +#ifndef _IN_GAME_ROOM_H +#define _IN_GAME_ROOM_H +#include +#include "data.h" +#include "types.h" + +void roomsReset(void); + +void roomsTick(void); + +void roomSetLastForOffset(s32 room); +void room0f1668f0(s32 index, s32 roomnum); +void room0f16692c(s32 index, s32 roomnum); +void room0f16696c(s32 index); +s32 room0f1669fc(void); +void room0f166a6c(Mtxf *matrix, s32 roomnum); +s32 room0f166c20(s32 roomnum); +Gfx *room0f166d7c(Gfx *gdl, s32 roomnum); +struct coord *room0f166dd0(s32 room); +void room0f166df0(s32 room, struct coord *globaldrawworldoffset); + +#endif diff --git a/src/include/game/setup.h b/src/include/game/setup.h new file mode 100644 index 000000000..b09f0f1ca --- /dev/null +++ b/src/include/game/setup.h @@ -0,0 +1,38 @@ +#ifndef IN_GAME_SETUP_H +#define IN_GAME_SETUP_H +#include +#include "data.h" +#include "types.h" + +void setupPreparePads(void); +void setupLoadWaypoints(void); +void setupPrepareCover(void); + +void propsReset(void); +void setupCreateLiftDoor(struct linkliftdoorobj *link); +void setupCreatePadlockedDoor(struct padlockeddoorobj *link); +void setupCreateSafeItem(struct safeitemobj *link); +void setupCreateConditionalScenery(struct linksceneryobj *link); +void setupCreateBlockedPath(struct blockedpathobj *link); +void setupReset0f00cc8c(void); +void setupResetProxyMines(void); +s32 setupCountCommandType(u32 type); +void setupCreateObject(struct defaultobj *obj, s32 cmdindex); +void setupPlaceWeapon(struct weaponobj *weapon, s32 cmdindex); +void setupCreateHat(struct hatobj *hat, s32 cmdindex); +void setupCreateKey(struct keyobj *key, s32 cmdindex); +void setupCreateMine(struct mineobj *mine, s32 cmdindex); +void setupCreateCctv(struct cctvobj *camera, s32 cmdindex); +void setupCreateAutogun(struct autogunobj *autogun, s32 cmdindex); +void setupCreateHangingMonitors(struct hangingmonitorsobj *monitors, s32 cmdindex); +void setupCreateSingleMonitor(struct singlemonitorobj *monitor, s32 cmdindex); +void setupCreateMultiMonitor(struct multimonitorobj *monitor, s32 cmdindex); +s32 setupGetPortalByPad(s32 padnum); +s32 setupGetPortalByDoorPad(s32 padnum); +void setupCreateDoor(struct doorobj *door, s32 cmdindex); +void setupCreateHov(struct defaultobj *obj, struct hov *hov); +void setupLoadBriefing(s32 stagenum, u8 *buffer, s32 bufferlen, struct briefing *briefing); +void setupLoadFiles(s32 stagenum); +void setupCreateProps(s32 stagenum); + +#endif diff --git a/src/include/game/setuputils.h b/src/include/game/setuputils.h new file mode 100644 index 000000000..88279b672 --- /dev/null +++ b/src/include/game/setuputils.h @@ -0,0 +1,19 @@ +#ifndef IN_GAME_SETUPUTILS_H +#define IN_GAME_SETUPUTILS_H +#include +#include "data.h" +#include "types.h" + +u32 setupGetCmdLength(u32 *cmd); +u32 *setupGetCmdByIndex(s32 cmdindex); +s32 setupGetCmdIndexByTag(struct tag *tag); +u32 setupGetCmdIndexByProp(struct prop *prop); +bool setupLoadModeldef(s32 propnum); +bool setupGetObjBbox(struct defaultobj *obj, struct coord *pos, f32 realrot[3][3], struct coord *arg3, struct coord *arg4); +bool setup0f092304(struct defaultobj *obj, struct coord *arg1, struct coord *arg2); +void setup0f09233c(struct defaultobj *obj, struct coord *pos, f32 realrot[3][3], s16 *rooms); +void setup0f0923d4(struct defaultobj *obj); +struct defaultobj *setupGetObjByCmdIndex(u32 cmdindex); +struct defaultobj *setupFindObjForReuse(s32 type, struct defaultobj **arg1, struct defaultobj **arg2, bool musthaveprop, bool musthavemodel, struct modelfiledata *filedata); + +#endif diff --git a/src/include/game/sky.h b/src/include/game/sky.h index 2448bc804..a9d2b95a7 100644 --- a/src/include/game/sky.h +++ b/src/include/game/sky.h @@ -4,9 +4,32 @@ #include "data.h" #include "types.h" -void func0f135c70(void); -u32 func0f135f08(void); -void skyReset(void); -Gfx *func0f13687c(Gfx *gdl); +void skyReset(u32 stagenum); + +void skyTick(void); + +void sky0f11f000(f32 left, f32 top, struct coord *arg2); +u32 sky0f11f07c(void); +u32 sky0f11f1fc(void); +void sky0f11f384(struct coord *arg0, struct coord *arg1, struct coord *out); +f32 sky0f11f3d0(f32 value, f32 min, f32 max); +f32 sky0f11f410(f32 value); +u32 sky0f11f438(void); +u32 sky0f11f6ec(void); +Gfx *skyRender(Gfx *gdl); +u32 sky0f1228d0(void); +u32 sky0f122ce8(void); +u32 sky0f122d4c(void); +u32 sky0f123fd4(void); +u32 sky0f125948(void); +f32 sky0f125a1c(struct bootbufferthingdeep *arg0); +Gfx *sky0f125a6c(Gfx *gdl, s32 arg1); +Gfx *sky0f126384(Gfx *gdl, f32 x, f32 y, f32 arg3, f32 orbsize, s32 arg5, f32 arg6); +Gfx *sky0f126c3c(Gfx *gdl, f32 x, f32 y, f32 z, f32 arg4, f32 arg5); +Gfx *sky0f126de8(Gfx *gdl); +Gfx *sky0f12715c(Gfx *gdl); +void sky0f127334(s32 arg0, s32 arg1, s32 arg2); +s32 sky0f127490(s32 arg0, s32 arg1); +Gfx *sky0f1274d8(Gfx *gdl); #endif diff --git a/src/include/game/smoke.h b/src/include/game/smoke.h index abef7255d..f3df2209f 100644 --- a/src/include/game/smoke.h +++ b/src/include/game/smoke.h @@ -4,6 +4,8 @@ #include "data.h" #include "types.h" +void smokesInit(void); + void smokeReset(void); void smokeStop(void); diff --git a/src/include/game/stars.h b/src/include/game/stars.h new file mode 100644 index 000000000..e806ea048 --- /dev/null +++ b/src/include/game/stars.h @@ -0,0 +1,12 @@ +#ifndef _IN_GAME_STARS_H +#define _IN_GAME_STARS_H +#include +#include "data.h" +#include "types.h" + +void func0f135c70(void); +u32 func0f135f08(void); +void starsReset(void); +Gfx *starsRender(Gfx *gdl); + +#endif diff --git a/src/include/game/surface.h b/src/include/game/surface.h new file mode 100644 index 000000000..eeead6a05 --- /dev/null +++ b/src/include/game/surface.h @@ -0,0 +1,50 @@ +#ifndef IN_GAME_SURFACE_H +#define IN_GAME_SURFACE_H +#include +#include "data.h" +#include "types.h" + +void surfaceReset(void); + +void surface0f173a08(void); +bool surface0f173a44(u32 value); +bool surface0f173a70(s32 index, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8, s32 arg9, s32 arg10); +bool surface0f173b8c(s32 index, s32 arg1, s32 arg2, s32 arg3, s32 arg4); +u32 surface0f173c10(void); +u32 surface0f173cb8(void); +u32 surface0f173d60(void); +u32 surface0f173e10(void); +u32 surface0f173e50(void); +s32 surface0f173f18(s32 arg0); +u32 surface0f173f48(u32 arg0); +u32 surface0f173f78(void); +u32 surface0f1742e4(void); +u32 surface0f1743a0(void); +u32 surface0f1747a4(void); +u32 surface0f174b54(void); +u32 surface0f174f30(void); +u32 surface0f1751e4(void); +u32 surface0f175308(void); +u32 surface0f175490(void); +u32 surface0f1755dc(void); +u32 surface0f17563c(void); +s32 surface0f1756c0(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4); +void surface0f175ef4(s32 arg0, s32 arg1, s32 arg2); + +extern const char var7f1b7ba0[]; +extern const char var7f1b7ba8[]; +extern const char var7f1b7bb0[]; +extern const char var7f1b7bb8[]; +extern const char var7f1b7bc0[]; +extern const char var7f1b7bc8[]; +extern const char var7f1b7bd8[]; +extern const char var7f1b7be0[]; +extern const char var7f1b7be8[]; +extern const char var7f1b7bec[]; +extern const char var7f1b7bf4[]; +extern const char var7f1b7c00[]; +extern const char var7f1b7c04[]; +extern const char var7f1b7c10[]; +extern const char var7f1b7c18[]; + +#endif diff --git a/src/include/game/tex.h b/src/include/game/tex.h new file mode 100644 index 000000000..20ae4649b --- /dev/null +++ b/src/include/game/tex.h @@ -0,0 +1,18 @@ +#ifndef IN_GAME_TEX_H +#define IN_GAME_TEX_H +#include +#include "data.h" +#include "types.h" + +void texInit(void); + +s32 tex0f0b3350(s32 value); +u32 tex0f0b33f8(void); +u32 tex0f0b3468(void); +u32 tex0f0b34d8(void); +u32 tex0f0b3548(void); +u32 tex0f0b35b8(void); +void tex0f0b3988(struct textureconfig *config); +void tex0f0b39c0(Gfx **gdl, struct textureconfig *arg1, u32 arg2, u32 arg3, u32 arg4, s32 arg5, u32 *arg6); + +#endif diff --git a/src/include/game/title.h b/src/include/game/title.h index dee501662..e4d19af01 100644 --- a/src/include/game/title.h +++ b/src/include/game/title.h @@ -12,6 +12,8 @@ void titleInit(void); void titleReset(void); +Gfx *titleClear(Gfx *gdl); + char *mpPlayerGetWeaponOfChoiceName(u32 playernum, u32 slot); void func0f01616c(void *light, u8 arg1, u8 arg2, u8 arg3, f32 arg4, struct coord *arg5); void titleInitLegal(void); diff --git a/src/include/game/wallhit.h b/src/include/game/wallhit.h index 87dae036b..863eb8498 100644 --- a/src/include/game/wallhit.h +++ b/src/include/game/wallhit.h @@ -4,6 +4,8 @@ #include "data.h" #include "types.h" +void wallhitReset(void); + s16 func0f13e0e0(f32 arg0); void wallhitRemove(struct wallhit *wallhit); void wallhitsRemoveByProp(struct prop *prop, s8 layer); diff --git a/src/include/lib/collision.h b/src/include/lib/collision.h index b0b09c738..c2c98520c 100644 --- a/src/include/lib/collision.h +++ b/src/include/lib/collision.h @@ -4,6 +4,10 @@ #include "data.h" #include "types.h" +u32 func0f1577f0(void); +u32 func0f1578c8(void); +f32 func0f1579cc(f32 *arg0, f32 *arg1, f32 *arg2, f32 *arg3); + f32 cd00024e40(void); void cd00024e4c(struct coord *arg0, struct coord *arg1, u32 line, char *file); f32 cd00024e98(void); diff --git a/src/include/types.h b/src/include/types.h index 663349443..bf4662d4d 100644 --- a/src/include/types.h +++ b/src/include/types.h @@ -4487,7 +4487,7 @@ struct challenge { // Bitfield xxx4 321a // The number denotes if that player has the challenge available, - // and `a` denotes if any other has the challenge available. + // and `a` denotes if any player has the challenge available. /*0x04*/ u8 availability; // Same structure as availability, however each byte determines how many @@ -5551,7 +5551,7 @@ struct mplockinfo { s32 unk04; }; -struct var8009da60 { +struct boltbeam { union { s32 unk00; struct prop *unk00_prop; diff --git a/src/lib/collision.c b/src/lib/collision.c index 9f9169123..6c16e22af 100644 --- a/src/lib/collision.c +++ b/src/lib/collision.c @@ -3,7 +3,6 @@ #include "game/prop.h" #include "game/game_1531a0.h" #include "game/bg.h" -#include "game/game_1577f0.h" #include "bss.h" #include "lib/dma.h" #include "lib/memp.h" diff --git a/src/lib/main.c b/src/lib/main.c index 12787d80f..fe908a677 100644 --- a/src/lib/main.c +++ b/src/lib/main.c @@ -7,23 +7,23 @@ #include "game/cheats.h" #include "game/debug.h" #include "game/lang.h" -#include "game/game_000100.h" -#include "game/game_000130.h" +#include "game/race.h" +#include "game/body.h" #include "game/stubs/game_000840.h" #include "game/stubs/game_000850.h" #include "game/stubs/game_000860.h" #include "game/stubs/game_000870.h" -#include "game/game_000880.h" +#include "game/smoke.h" #include "game/stubs/game_0008e0.h" #include "game/stubs/game_0008f0.h" #include "game/stubs/game_000900.h" #include "game/stubs/game_000910.h" -#include "game/game_00b190.h" +#include "game/tex.h" #include "game/stubs/game_00b180.h" #include "game/stubs/game_00b200.h" -#include "game/game_00b210.h" +#include "game/challenge.h" #include "game/title.h" -#include "game/game_01b0a0.h" +#include "game/pdmode.h" #include "game/objectives.h" #include "game/endscreen.h" #include "game/playermgr.h" @@ -630,7 +630,7 @@ glabel mainInit /* d99c: 00000000 */ nop /* d9a0: 0c003a58 */ jal func0000e9c0 /* d9a4: 00000000 */ nop -/* d9a8: 0fc54a14 */ jal func0f1531a0 +/* d9a8: 0fc54a14 */ jal fontsInit /* d9ac: 00000000 */ nop /* d9b0: 0c004dcc */ jal dhudInit /* d9b4: 00000000 */ nop @@ -644,7 +644,7 @@ glabel mainInit /* d9d4: 00000000 */ nop /* d9d8: 0fc00240 */ jal stub0f000870 /* d9dc: 00000000 */ nop -/* d9e0: 0fc00244 */ jal func0f000880 +/* d9e0: 0fc00244 */ jal smokesInit /* d9e4: 00000000 */ nop /* d9e8: 0fc0025c */ jal stub0f0008e0 /* d9ec: 00000000 */ nop @@ -1025,7 +1025,7 @@ glabel mainInit /* d730: 00000000 */ nop /* d734: 0c0039c8 */ jal func0000e9c0 /* d738: 00000000 */ nop -/* d73c: 0fc54f94 */ jal func0f1531a0 +/* d73c: 0fc54f94 */ jal fontsInit /* d740: 00000000 */ nop /* d744: 0c004d48 */ jal dhudInit /* d748: 00000000 */ nop @@ -1039,7 +1039,7 @@ glabel mainInit /* d768: 00000000 */ nop /* d76c: 0fc0021c */ jal stub0f000870 /* d770: 00000000 */ nop -/* d774: 0fc00220 */ jal func0f000880 +/* d774: 0fc00220 */ jal smokesInit /* d778: 00000000 */ nop /* d77c: 0fc00238 */ jal stub0f0008e0 /* d780: 00000000 */ nop @@ -1450,7 +1450,7 @@ glabel mainInit /* d7d0: 00000000 */ nop /* d7d4: 0c003a7d */ jal func0000e9c0 /* d7d8: 00000000 */ nop -/* d7dc: 0fc55154 */ jal func0f1531a0 +/* d7dc: 0fc55154 */ jal fontsInit /* d7e0: 00000000 */ nop /* d7e4: 0c004e5e */ jal dhudInit /* d7e8: 00000000 */ nop @@ -1464,7 +1464,7 @@ glabel mainInit /* d808: 00000000 */ nop /* d80c: 0fc0021c */ jal stub0f000870 /* d810: 00000000 */ nop -/* d814: 0fc00220 */ jal func0f000880 +/* d814: 0fc00220 */ jal smokesInit /* d818: 00000000 */ nop /* d81c: 0fc00238 */ jal stub0f0008e0 /* d820: 00000000 */ nop @@ -1853,7 +1853,7 @@ glabel mainInit /* d9f4: 00000000 */ nop /* d9f8: 0c003a70 */ jal func0000e9c0 /* d9fc: 00000000 */ nop -/* da00: 0fc54c68 */ jal func0f1531a0 +/* da00: 0fc54c68 */ jal fontsInit /* da04: 00000000 */ nop /* da08: 0c004de4 */ jal dhudInit /* da0c: 00000000 */ nop @@ -1867,7 +1867,7 @@ glabel mainInit /* da2c: 00000000 */ nop /* da30: 0fc0021c */ jal stub0f000870 /* da34: 00000000 */ nop -/* da38: 0fc00220 */ jal func0f000880 +/* da38: 0fc00220 */ jal smokesInit /* da3c: 00000000 */ nop /* da40: 0fc00238 */ jal stub0f0008e0 /* da44: 00000000 */ nop @@ -2226,7 +2226,7 @@ glabel mainInit /* df04: 00000000 */ sll $zero,$zero,0x0 /* df08: 0c003c68 */ jal func0000e9c0 /* df0c: 00000000 */ sll $zero,$zero,0x0 -/* df10: 0fc53628 */ jal func0f1531a0 +/* df10: 0fc53628 */ jal fontsInit /* df14: 00000000 */ sll $zero,$zero,0x0 /* df18: 0c005002 */ jal dhudInit /* df1c: 00000000 */ sll $zero,$zero,0x0 @@ -2240,7 +2240,7 @@ glabel mainInit /* df3c: 00000000 */ sll $zero,$zero,0x0 /* df40: 0fc0021c */ jal stub0f000870 /* df44: 00000000 */ sll $zero,$zero,0x0 -/* df48: 0fc00220 */ jal func0f000880 +/* df48: 0fc00220 */ jal smokesInit /* df4c: 00000000 */ sll $zero,$zero,0x0 /* df50: 0fc00238 */ jal stub0f0008e0 /* df54: 00000000 */ sll $zero,$zero,0x0 @@ -2471,14 +2471,14 @@ const char var70053aa0[] = " -ml0 -me0 -mgfx100 -mvtx50 -mt700 -ma400"; // lvInit(); // cheatsInit(); // func0000e9c0(); -// func0f1531a0(); +// fontsInit(); // dhudInit(); // playermgrInit(); // frametimeInit(); // stub0f00b200(); // profileInit(); // stub0f000870(); -// func0f000880(); +// smokesInit(); // stub0f0008e0(); // stub0f0008f0(); // stub0f000900(); diff --git a/src/lib/model.c b/src/lib/model.c index 24b9e152a..77d2df250 100644 --- a/src/lib/model.c +++ b/src/lib/model.c @@ -2,11 +2,11 @@ #include "constants.h" #include "game/game_096700.h" #include "game/acosfasinf.h" -#include "game/game_096ca0.h" -#include "game/game_0b4950.h" +#include "game/quaternion.h" +#include "game/camera.h" #include "game/floor.h" #include "game/ceil.h" -#include "game/game_0b3350.h" +#include "game/tex.h" #include "game/gfxmemory.h" #include "game/bg.h" #include "game/file.h" @@ -3055,7 +3055,7 @@ void model0001c664(struct model *model, struct modelnode *node) if (g_ModelDistanceDisabled || !mtx) { distance = 0; } else { - distance = -mtx->m[3][2] * currentPlayerGetLodScaleZ(); + distance = -mtx->m[3][2] * camGetLodScaleZ(); if (g_ModelDistanceScale != 1) { distance *= g_ModelDistanceScale; @@ -5828,7 +5828,7 @@ glabel modelRenderNodeType16 void model000216cc(struct modelrenderdata *renderdata, struct textureconfig *tconfig, s32 arg2) { - func0f0b39c0(&renderdata->gdl, tconfig, arg2, renderdata->zbufferenabled, 2, 1, NULL); + tex0f0b39c0(&renderdata->gdl, tconfig, arg2, renderdata->zbufferenabled, 2, 1, NULL); } GLOBAL_ASM( diff --git a/src/lib/vi.c b/src/lib/vi.c index 32467ccaf..14f23287e 100644 --- a/src/lib/vi.c +++ b/src/lib/vi.c @@ -1,7 +1,7 @@ #include #include "constants.h" -#include "game/game_0b3350.h" -#include "game/game_0b4950.h" +#include "game/tex.h" +#include "game/camera.h" #include "game/player.h" #include "game/file.h" #include "game/game_176080.h" @@ -2380,7 +2380,7 @@ Gfx *vi0000ab78(Gfx *gdl) u16 sp46; guPerspectiveF(sp110.m, &sp46, g_ViBackData->fovy, g_ViBackData->aspect, g_ViBackData->znear, g_ViBackData->zfar + g_ViBackData->zfar, 1); - mtx4Copy(currentPlayerGetMatrix1740(), &sp90); + mtx4Copy(camGetMatrix1740(), &sp90); sp90.m[3][0] = 0; sp90.m[3][1] = 0; @@ -2433,8 +2433,8 @@ Gfx *vi0000ad5c(Gfx *gdl, Vp *vp) gSPMatrix(gdl++, OS_K0_TO_PHYSICAL(var80092870), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); gSPPerspNormalize(gdl++, g_ViPerspScale); - currentPlayerSetUnk1750(var80092870); - currentPlayerSetUnk1754(&var80092830); + camSetUnk1750(var80092870); + camSetUnk1754(&var80092830); return gdl; } @@ -2462,8 +2462,8 @@ Gfx *vi0000af00(Gfx *gdl, Vp *vp) gSPMatrix(gdl++, OS_K0_TO_PHYSICAL(var80092870), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION); gSPPerspNormalize(gdl++, g_ViPerspScale); - currentPlayerSetUnk1750(var80092870); - currentPlayerSetUnk1754(&var80092830); + camSetUnk1750(var80092870); + camSetUnk1754(&var80092830); return gdl; } @@ -2670,8 +2670,8 @@ void viSetViewSize(s16 width, s16 height) g_ViBackData->viewx = width; g_ViBackData->viewy = height; - currentPlayerSetScreenSize(g_ViBackData->viewx, g_ViBackData->viewy); - currentPlayerSetCameraScale(); + camSetScreenSize(g_ViBackData->viewx, g_ViBackData->viewy); + camSetScale(); } s16 viGetViewWidth(void) @@ -2689,7 +2689,7 @@ void viSetViewPosition(s16 left, s16 top) g_ViBackData->viewleft = left; g_ViBackData->viewtop = top; - currentPlayerSetScreenPosition(g_ViBackData->viewleft, g_ViBackData->viewtop); + camSetScreenPosition(g_ViBackData->viewleft, g_ViBackData->viewtop); } s16 viGetViewLeft(void) @@ -2711,16 +2711,16 @@ void viSetFovY(f32 fovy) { g_ViBackData->fovy = fovy; - currentPlayerSetPerspective(g_ViBackData->znear, g_ViBackData->fovy, g_ViBackData->aspect); - currentPlayerSetCameraScale(); + camSetPerspective(g_ViBackData->znear, g_ViBackData->fovy, g_ViBackData->aspect); + camSetScale(); } void viSetAspect(f32 aspect) { g_ViBackData->aspect = aspect; - currentPlayerSetPerspective(g_ViBackData->znear, g_ViBackData->fovy, g_ViBackData->aspect); - currentPlayerSetCameraScale(); + camSetPerspective(g_ViBackData->znear, g_ViBackData->fovy, g_ViBackData->aspect); + camSetScale(); } f32 viGetAspect(void) @@ -2735,9 +2735,9 @@ void viSetFovAspectAndSize(f32 fovy, f32 aspect, s16 width, s16 height) g_ViBackData->viewx = width; g_ViBackData->viewy = height; - currentPlayerSetScreenSize(g_ViBackData->viewx, g_ViBackData->viewy); - currentPlayerSetPerspective(g_ViBackData->znear, g_ViBackData->fovy, g_ViBackData->aspect); - currentPlayerSetCameraScale(); + camSetScreenSize(g_ViBackData->viewx, g_ViBackData->viewy); + camSetPerspective(g_ViBackData->znear, g_ViBackData->fovy, g_ViBackData->aspect); + camSetScale(); } f32 viGetFovY(void) @@ -2750,8 +2750,8 @@ void viSetZRange(f32 near, f32 far) g_ViBackData->znear = near; g_ViBackData->zfar = far; - currentPlayerSetPerspective(g_ViBackData->znear, g_ViBackData->fovy, g_ViBackData->aspect); - currentPlayerSetCameraScale(); + camSetPerspective(g_ViBackData->znear, g_ViBackData->fovy, g_ViBackData->aspect); + camSetScale(); } void viGetZRange(struct zrange *zrange) diff --git a/tools/mkrom/piracy.c b/tools/mkrom/piracy.c index c7ab85b4d..a2e55c8c6 100644 --- a/tools/mkrom/piracy.c +++ b/tools/mkrom/piracy.c @@ -161,7 +161,7 @@ void piracy_patch(void) patch(algo04, "chrUncloak", "botPickupProp"); patch(algo05, "chrsCheckForNoise", "__scHandleRetrace"); patch(algo06, "lvReset", "lvGetSlowMotionType"); - patch(algo07, "propAllocateEyespy", "lvReset"); + patch(algo07, "bodyAllocateEyespy", "lvReset"); patch(algo08, "chrConsiderGrenadeThrow", "bgReset"); patch(algo09, "bgun0f09e144", "tagsReset"); patch(algo10, "explosionAlertChrs", "glassDestroy");