//
// LevelTools::getLevel from 0x1001a6cf0 to 0x1001a7e40 (4432 bytes)
//
// 4 xrefs:
// > GameLevelManager::getMainLevel @ 0x100092268
// > GameLevelManager::getMainLevel @ 0x10009229c
// > GameLevelManager::getStarLevelsString @ 0x100097bec
// > GameLevelManager::getStarLevelsString @ 0x100097d30
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
GJGameLevel *__fastcall LevelTools::getLevel(int a1, bool a2)
{
__int64 v3; // x22
__int64 v4; // x20
GJGameLevel *v5; // x19
float v6; // s0
void *v7; // x0
float v8; // s0
void *v9; // x0
float v10; // s0
float v11; // s0
float v12; // s0
float v13; // s0
float v14; // s0
float v15; // s0
float v16; // s0
float v17; // s0
float v18; // s0
float v19; // s0
float v20; // s0
float v21; // s0
float v22; // s0
float v23; // s0
float v24; // s0
float v25; // s0
float v26; // s0
float v27; // s0
float v28; // s0
float v29; // s0
float v30; // s0
float v31; // s0
float v32; // s0
float v33; // s0
float v34; // s0
float v35; // s0
float v36; // s0
LocalLevelManager *v37; // x0
float v38; // s0
float v39; // s0
std::string v41; // [xsp+8h] [xbp-588h] BYREF
std::string v42; // [xsp+20h] [xbp-570h] BYREF
std::string v43; // [xsp+38h] [xbp-558h] BYREF
std::string v44; // [xsp+50h] [xbp-540h] BYREF
std::string v45; // [xsp+68h] [xbp-528h] BYREF
std::string v46; // [xsp+80h] [xbp-510h] BYREF
std::string v47; // [xsp+98h] [xbp-4F8h] BYREF
std::string v48; // [xsp+B0h] [xbp-4E0h] BYREF
std::string __str; // [xsp+C8h] [xbp-4C8h] BYREF
std::string v50; // [xsp+E0h] [xbp-4B0h] BYREF
std::string v51; // [xsp+F8h] [xbp-498h] BYREF
std::string v52; // [xsp+110h] [xbp-480h] BYREF
std::string v53; // [xsp+128h] [xbp-468h] BYREF
std::string v54; // [xsp+140h] [xbp-450h] BYREF
std::string v55; // [xsp+158h] [xbp-438h] BYREF
std::string v56; // [xsp+170h] [xbp-420h] BYREF
std::string v57; // [xsp+188h] [xbp-408h] BYREF
std::string v58; // [xsp+1A0h] [xbp-3F0h] BYREF
std::string v59; // [xsp+1B8h] [xbp-3D8h] BYREF
std::string v60; // [xsp+1D0h] [xbp-3C0h] BYREF
std::string v61; // [xsp+1E8h] [xbp-3A8h] BYREF
std::string v62; // [xsp+200h] [xbp-390h] BYREF
std::string v63; // [xsp+218h] [xbp-378h] BYREF
std::string v64; // [xsp+230h] [xbp-360h] BYREF
std::string v65; // [xsp+248h] [xbp-348h] BYREF
std::string v66; // [xsp+260h] [xbp-330h] BYREF
std::string v67; // [xsp+278h] [xbp-318h] BYREF
std::string v68; // [xsp+290h] [xbp-300h] BYREF
std::string v69; // [xsp+2A8h] [xbp-2E8h] BYREF
std::string v70; // [xsp+2C0h] [xbp-2D0h] BYREF
std::string v71; // [xsp+2D8h] [xbp-2B8h] BYREF
std::string v72; // [xsp+2F0h] [xbp-2A0h] BYREF
std::string v73; // [xsp+308h] [xbp-288h] BYREF
std::string v74; // [xsp+320h] [xbp-270h] BYREF
std::string v75; // [xsp+338h] [xbp-258h] BYREF
std::string v76; // [xsp+350h] [xbp-240h] BYREF
std::string v77; // [xsp+368h] [xbp-228h] BYREF
std::string v78; // [xsp+380h] [xbp-210h] BYREF
std::string v79; // [xsp+398h] [xbp-1F8h] BYREF
std::string v80; // [xsp+3B0h] [xbp-1E0h] BYREF
std::string v81; // [xsp+3C8h] [xbp-1C8h] BYREF
std::string v82; // [xsp+3E0h] [xbp-1B0h] BYREF
std::string v83; // [xsp+3F8h] [xbp-198h] BYREF
std::string v84; // [xsp+410h] [xbp-180h] BYREF
std::string v85; // [xsp+428h] [xbp-168h] BYREF
std::string v86; // [xsp+440h] [xbp-150h] BYREF
std::string v87; // [xsp+458h] [xbp-138h] BYREF
std::string v88; // [xsp+470h] [xbp-120h] BYREF
std::string v89; // [xsp+488h] [xbp-108h] BYREF
std::string v90; // [xsp+4A0h] [xbp-F0h] BYREF
std::string v91; // [xsp+4B8h] [xbp-D8h] BYREF
std::string v92; // [xsp+4D0h] [xbp-C0h] BYREF
std::string v93; // [xsp+4E8h] [xbp-A8h] BYREF
std::string v94; // [xsp+500h] [xbp-90h] BYREF
std::string v95; // [xsp+518h] [xbp-78h] BYREF
v3 = *(_QWORD *)&a1;
while ( 1 )
{
while ( 1 )
{
v4 = v3;
v3 = 1;
v5 = GJGameLevel::create_1();
if ( (int)v4 <= 3000 )
{
switch ( (int)v4 )
{
case 1:
sub_100009900(&v95, "Stereo Madness");
std::string::operator=((std::string *)&v5->m_levelName, &v95);
if ( SHIBYTE(v95.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v95.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 1;
v5->m_stars.value = 1;
v8 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v8;
v5->m_stars.random = (int)v8 + 1;
sub_100009900(&v94, "29_98_29_40_29_29_29_29_29_29_177_29_73_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v94);
if ( (SHIBYTE(v94.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v94.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 2:
sub_100009900(&v93, "Back On Track");
std::string::operator=((std::string *)&v5->m_levelName, &v93);
if ( SHIBYTE(v93.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v93.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0x100000001LL;
v5->m_stars.value = 2;
v22 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v22;
v5->m_stars.random = (int)v22 + 2;
sub_100009900(&v92, "29_54_29_40_29_29_29_29_29_29_98_29_54_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v92);
if ( (SHIBYTE(v92.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v92.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 3:
sub_100009900(&v91, "Polargeist");
std::string::operator=((std::string *)&v5->m_levelName, &v91);
if ( SHIBYTE(v91.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v91.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0x200000002LL;
v5->m_stars.value = 3;
v18 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v18;
v5->m_stars.random = (int)v18 + 3;
sub_100009900(&v90, "29_98_29_40_29_29_29_29_29_29_29_29_98_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v90);
if ( (SHIBYTE(v90.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v90.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 4:
sub_100009900(&v89, "Dry Out");
std::string::operator=((std::string *)&v5->m_levelName, &v89);
if ( SHIBYTE(v89.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v89.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0x300000002LL;
v5->m_stars.value = 4;
v20 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v20;
v5->m_stars.random = (int)v20 + 4;
sub_100009900(&v88, "29_73_29_40_29_29_29_29_29_29_73_29_73_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v88);
if ( (SHIBYTE(v88.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v88.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 5:
sub_100009900(&v87, "Base After Base");
std::string::operator=((std::string *)&v5->m_levelName, &v87);
if ( SHIBYTE(v87.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v87.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0x400000003LL;
v5->m_stars.value = 5;
v13 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v13;
v5->m_stars.random = (int)v13 + 5;
sub_100009900(&v86, "29_73_29_40_29_29_29_29_29_29_98_29_73_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v86);
if ( (SHIBYTE(v86.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v86.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 6:
sub_100009900(&v85, "Cant Let Go");
std::string::operator=((std::string *)&v5->m_levelName, &v85);
if ( SHIBYTE(v85.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v85.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0x500000003LL;
v5->m_stars.value = 6;
v26 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v26;
v5->m_stars.random = (int)v26 + 6;
sub_100009900(&v84, "29_73_29_40_29_29_29_29_29_29_29_29_73_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v84);
if ( (SHIBYTE(v84.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v84.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 7:
sub_100009900(&v83, "Jumper");
std::string::operator=((std::string *)&v5->m_levelName, &v83);
if ( SHIBYTE(v83.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v83.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0x600000004LL;
v5->m_stars.value = 7;
v30 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v30;
v5->m_stars.random = (int)v30 + 7;
sub_100009900(&v82, "29_98_29_40_29_29_29_29_29_29_98_29_98_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v82);
if ( (SHIBYTE(v82.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v82.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 8:
sub_100009900(&v81, "Time Machine");
std::string::operator=((std::string *)&v5->m_levelName, &v81);
if ( SHIBYTE(v81.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v81.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0x700000004LL;
v5->m_stars.value = 8;
v21 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v21;
v5->m_stars.random = (int)v21 + 8;
sub_100009900(&v80, "29_132_29_40_29_29_29_29_29_29_73_29_98_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v80);
if ( (SHIBYTE(v80.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v80.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 9:
sub_100009900(&v79, "Cycles");
std::string::operator=((std::string *)&v5->m_levelName, &v79);
if ( SHIBYTE(v79.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v79.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0x800000004LL;
v5->m_stars.value = 9;
v33 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v33;
v5->m_stars.random = (int)v33 + 9;
sub_100009900(&v78, "29_98_29_40_29_29_29_40_29_29_98_29_98_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v78);
if ( (SHIBYTE(v78.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v78.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 10:
sub_100009900(&v77, "xStep");
std::string::operator=((std::string *)&v5->m_levelName, &v77);
if ( SHIBYTE(v77.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v77.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0x900000005LL;
v5->m_stars.value = 10;
v15 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v15;
v5->m_stars.random = (int)v15 + 10;
sub_100009900(&v76, "29_132_29_40_29_29_29_54_29_29_132_29_73_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v76);
if ( (SHIBYTE(v76.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v76.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 11:
sub_100009900(&v75, "Clutterfunk");
std::string::operator=((std::string *)&v5->m_levelName, &v75);
if ( SHIBYTE(v75.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v75.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0xA00000005LL;
v5->m_stars.value = 11;
v32 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v32;
v5->m_stars.random = (int)v32 + 11;
sub_100009900(&v74, "29_237_29_40_29_29_29_73_29_29_29_29_98_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v74);
if ( (SHIBYTE(v74.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v74.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 12:
sub_100009900(&v73, "Theory of Everything");
std::string::operator=((std::string *)&v5->m_levelName, &v73);
if ( SHIBYTE(v73.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v73.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0xB00000005LL;
v5->m_stars.value = 12;
v12 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v12;
v5->m_stars.random = (int)v12 + 12;
sub_100009900(&v72, "29_237_29_54_29_29_29_73_29_29_132_29_132_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v72);
if ( (SHIBYTE(v72.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v72.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 13:
sub_100009900(&v71, "Electroman Adventures");
std::string::operator=((std::string *)&v5->m_levelName, &v71);
if ( SHIBYTE(v71.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v71.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0xC00000005LL;
v5->m_stars.value = 10;
v14 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v14;
v5->m_stars.random = (int)v14 + 10;
sub_100009900(&v70, "29_237_29_40_29_29_29_98_29_29_98_29_132_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v70);
if ( (SHIBYTE(v70.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v70.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 14:
sub_100009900(&v69, "Clubstep");
std::string::operator=((std::string *)&v5->m_levelName, &v69);
if ( SHIBYTE(v69.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v69.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0xD00000006LL;
v5->m_stars.value = 14;
v28 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v28;
v5->m_stars.random = (int)v28 + 14;
v5->m_requiredCoins = 10;
v5->m_demon.value = 1;
v29 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_demon.seed = (int)v29;
v5->m_demon.random = (int)v29 + 1;
sub_100009900(&v68, "29_237_29_54_29_29_29_132_29_29_98_29_132_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v68);
if ( (SHIBYTE(v68.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v68.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 15:
sub_100009900(&v67, "Electrodynamix");
std::string::operator=((std::string *)&v5->m_levelName, &v67);
if ( SHIBYTE(v67.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v67.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0xE00000005LL;
v5->m_stars.value = 12;
v11 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v11;
v5->m_stars.random = (int)v11 + 12;
sub_100009900(&v66, "29_237_98_40_29_29_29_237_29_29_98_73_177_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v66);
if ( (SHIBYTE(v66.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v66.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 16:
sub_100009900(&v65, "Hexagon Force");
std::string::operator=((std::string *)&v5->m_levelName, &v65);
if ( SHIBYTE(v65.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v65.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0xF00000005LL;
v5->m_stars.value = 12;
v19 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v19;
v5->m_stars.random = (int)v19 + 12;
sub_100009900(&v64, "29_317_73_73_29_29_54_132_29_29_237_132_177_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v64);
if ( (SHIBYTE(v64.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v64.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 17:
sub_100009900(&v63, "Blast Processing");
std::string::operator=((std::string *)&v5->m_levelName, &v63);
if ( SHIBYTE(v63.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v63.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0x1000000004LL;
v5->m_stars.value = 10;
v10 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v10;
v5->m_stars.random = (int)v10 + 10;
sub_100009900(&v62, "29_237_29_73_29_29_98_132_29_29_566_54_132_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v62);
if ( (SHIBYTE(v62.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v62.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 18:
sub_100009900(&v61, "Theory of Everything 2");
std::string::operator=((std::string *)&v5->m_levelName, &v61);
if ( SHIBYTE(v61.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v61.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0x1100000006LL;
v5->m_stars.value = 14;
v23 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v23;
v5->m_stars.random = (int)v23 + 14;
v5->m_requiredCoins = 20;
v5->m_demon.value = 1;
v24 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_demon.seed = (int)v24;
v5->m_demon.random = (int)v24 + 1;
sub_100009900(&v60, "29_317_40_54_29_40_132_132_29_29_424_98_237_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v60);
if ( (SHIBYTE(v60.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v60.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 19:
sub_100009900(&v59, "Geometrical Dominator");
std::string::operator=((std::string *)&v5->m_levelName, &v59);
if ( SHIBYTE(v59.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v59.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0x1200000004LL;
v5->m_stars.value = 10;
v31 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v31;
v5->m_stars.random = (int)v31 + 10;
sub_100009900(&v58, "29_424_132_40_29_29_566_132_29_29_756_237_132_29_73_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v58);
if ( (SHIBYTE(v58.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v58.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 20:
sub_100009900(&v57, "Deadlocked");
std::string::operator=((std::string *)&v5->m_levelName, &v57);
if ( SHIBYTE(v57.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v57.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0x1300000006LL;
v5->m_stars.value = 15;
v35 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v35;
v5->m_stars.random = (int)v35 + 15;
v5->m_requiredCoins = 30;
v5->m_demon.value = 1;
v36 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_demon.seed = (int)v36;
v5->m_demon.random = (int)v36 + 1;
sub_100009900(&v56, "29_317_73_73_29_29_317_424_73_29_566_317_177_29_132_54");
std::string::operator=((std::string *)&v5->m_capacityString, &v56);
if ( (SHIBYTE(v56.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v56.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 21:
sub_100009900(&v55, "Fingerdash");
std::string::operator=((std::string *)&v5->m_levelName, &v55);
if ( SHIBYTE(v55.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v55.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0x1400000005LL;
v5->m_stars.value = 12;
v25 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v25;
v5->m_stars.random = (int)v25 + 12;
sub_100009900(
&v54,
"40_630_195_48_0_0_210_114_0_0_572_247_97_0_0_53_466_135_0_459_276_71_448_0_101_88_101_0_0_0_0_0_0_0_0_0_0_"
"0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0");
std::string::operator=((std::string *)&v5->m_capacityString, &v54);
if ( (SHIBYTE(v54.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_118;
v9 = (void *)v54.__r_.__value_.__r.__words[0];
goto LABEL_117;
case 22:
sub_100009900(&v53, "Dash");
std::string::operator=((std::string *)&v5->m_levelName, &v53);
if ( SHIBYTE(v53.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v53.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0x1500000005LL;
v5->m_stars.value = 12;
v27 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v27;
v5->m_stars.random = (int)v27 + 12;
sub_100009900(&v52, "24,340,52,244,54,1335,56,356,58,510,60,1257");
std::string::operator=((std::string *)&v5->m_capacityString, &v52);
if ( SHIBYTE(v52.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v52.__r_.__value_.__l.__data_);
v5->m_timestamp = 21940;
if ( !a2 )
goto LABEL_119;
goto LABEL_127;
default:
continue;
}
}
if ( (int)v4 <= 5001 )
break;
switch ( (_DWORD)v4 )
{
case 0x138A:
sub_100009900(&v47, "The Sewers");
std::string::operator=((std::string *)&v5->m_levelName, &v47);
if ( SHIBYTE(v47.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v47.__r_.__value_.__l.__data_);
v5->m_songID = 10003129;
*(_QWORD *)&v5->m_difficulty = 3;
v5->m_stars.value = 6;
v17 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v17;
v5->m_stars.random = (int)v17 + 6;
sub_100009900(&v46, "50,366,52,332,54,408");
std::string::operator=((std::string *)&v5->m_capacityString, &v46);
if ( (SHIBYTE(v46.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_126;
v7 = (void *)v46.__r_.__value_.__r.__words[0];
LABEL_125:
operator delete(v7);
goto LABEL_126;
case 0x138B:
sub_100009900(&v45, "The Cellar");
std::string::operator=((std::string *)&v5->m_levelName, &v45);
if ( SHIBYTE(v45.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v45.__r_.__value_.__l.__data_);
v5->m_songID = 10002875;
*(_QWORD *)&v5->m_difficulty = 4;
v5->m_stars.value = 7;
v16 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v16;
v5->m_stars.random = (int)v16 + 7;
sub_100009900(&v44, "50,206,52,396,54,682");
std::string::operator=((std::string *)&v5->m_capacityString, &v44);
if ( (SHIBYTE(v44.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_126;
v7 = (void *)v44.__r_.__value_.__r.__words[0];
goto LABEL_125;
case 0x138C:
sub_100009900(&v43, "The Secret Hollow");
std::string::operator=((std::string *)&v5->m_levelName, &v43);
if ( SHIBYTE(v43.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v43.__r_.__value_.__l.__data_);
v5->m_songID = 10006086;
*(_QWORD *)&v5->m_difficulty = 4;
v5->m_stars.value = 7;
v38 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v38;
v5->m_stars.random = (int)v38 + 7;
sub_100009900(&v42, "52,505,54,1104,56,556,58,368");
std::string::operator=((std::string *)&v5->m_capacityString, &v42);
if ( (SHIBYTE(v42.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_126;
v7 = (void *)v42.__r_.__value_.__r.__words[0];
goto LABEL_125;
}
}
if ( (_DWORD)v4 == 3001 )
break;
if ( (_DWORD)v4 == 5001 )
{
sub_100009900(&__str, "The Tower");
std::string::operator=((std::string *)&v5->m_levelName, &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
v5->m_songID = 10003039;
*(_QWORD *)&v5->m_difficulty = 2;
v5->m_stars.value = 5;
v6 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v6;
v5->m_stars.random = (int)v6 + 5;
sub_100009900(&v48, "1,210,25,209,56,310,58,250,62,249");
std::string::operator=((std::string *)&v5->m_capacityString, &v48);
if ( SHIBYTE(v48.__r_.__value_.__r.__words[2]) < 0 )
{
v7 = (void *)v48.__r_.__value_.__r.__words[0];
goto LABEL_125;
}
LABEL_126:
v5->m_levelLength = 5;
if ( a2 )
goto LABEL_127;
LABEL_119:
v37 = LocalLevelManager::sharedState();
LocalLevelManager::getMainLevelString(&v41, v37, v4);
std::string::operator=((std::string *)&v5->m_levelString, &v41);
if ( SHIBYTE(v41.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v41.__r_.__value_.__l.__data_);
goto LABEL_127;
}
}
sub_100009900(&v51, "The Challenge");
std::string::operator=((std::string *)&v5->m_levelName, &v51);
if ( SHIBYTE(v51.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v51.__r_.__value_.__l.__data_);
*(_QWORD *)&v5->m_difficulty = 0x1A00000003LL;
v5->m_stars.value = 3;
v34 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_stars.seed = (int)v34;
v5->m_stars.random = (int)v34 + 3;
sub_100009900(&v50, "73_237_29_40_29_29_237_98_29_29_237_237_132_29_29_29");
std::string::operator=((std::string *)&v5->m_capacityString, &v50);
if ( SHIBYTE(v50.__r_.__value_.__r.__words[2]) < 0 )
{
v9 = (void *)v50.__r_.__value_.__r.__words[0];
LABEL_117:
operator delete(v9);
}
LABEL_118:
if ( !a2 )
goto LABEL_119;
LABEL_127:
v5->m_levelID.value = v4;
v39 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v5->m_levelID.seed = (int)v39;
v5->m_levelID.random = v4 + (int)v39;
v5->m_levelType = Main;
if ( (_DWORD)v4 != 3001 )
v5->m_coins = 3;
return v5;
}