//
// LevelBrowserLayer::loadPage from 0x7f870c to 0x7f94b8 (3500 bytes)
//
// 19 xrefs:
// > LevelBrowserLayer::init @ 0x7f9e2c
// > LevelBrowserLayer::onGoToLastPage @ 0x7fb868
// > LevelBrowserLayer::setIDPopupClosed @ 0x7fb8f4
// > LevelBrowserLayer::setIDPopupClosed @ 0x7fb950
// > LevelBrowserLayer::onNextPage @ 0x7fb9e8
// > LevelBrowserLayer::onPrevPage @ 0x7fba24
// > LevelBrowserLayer::shareCommentClosed @ 0x7fbaac
// > LevelBrowserLayer::onRefresh @ 0x7fbb80
// > LevelBrowserLayer::onClearSearch @ 0x7fbc74
// > LevelBrowserLayer::setTextPopupClosed @ 0x7fbd50
// > LevelBrowserLayer::showImportResult @ 0x7fbec8
// > LevelBrowserLayer::deleteSelected @ 0x7fc104
// > LevelBrowserLayer::onSafeMode @ 0x7fc3a8
// > LevelBrowserLayer::reloadPageRows @ 0x7fc42c
// > LevelBrowserLayer::reloadPageRows @ 0x7fc454
// > LevelBrowserLayer::onEnter @ 0x7fd05c
// > LevelListLayer::loadLevelsFinished @ 0xbacba0
// > LevelListLayer::init @ 0xbaf9c8
// > ??> @ 0x49ca8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:54:39 +0000
//
__int64 __fastcall LevelBrowserLayer::loadPage(GJSearchObject **this, GJSearchObject *a2)
{
const char *Key; // x0
size_t v5; // x0
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x2
unsigned int v9; // w25
LocalLevelManager *v10; // x0
unsigned __int64 v11; // x0
__int64 v12; // x0
GameLevelManager *v13; // x19
const char *NextPageKey; // x0
__int64 StoredOnlineLevels; // x0
__int64 v16; // x2
GameLevelManager *v17; // x0
const char *v18; // x1
__int64 v19; // x19
void (__fastcall *v20)(GJSearchObject **, __int64 *, char *); // x22
GameLevelManager *v21; // x0
const char *v22; // x1
size_t v23; // x0
char *v24; // x2
char *v25; // x2
GameLevelManager *v26; // x0
__int64 v27; // x19
const char *v28; // x1
size_t v29; // x0
__int64 *v30; // x0
GameLevelManager *v31; // x0
__int64 CreatedLevels; // x0
cocos2d::CCArray *ItemsMatchingSearch; // x21
__int64 v34; // x0
__int64 v35; // x2
__int64 v36; // x0
__int64 v37; // x1
cocos2d::CCArray *v38; // x0
__int64 v39; // x24
char v40; // w0
char *v41; // x22
__int64 v42; // x0
__int64 v43; // x1
cocos2d::CCArray *v44; // x22
GameManager *v45; // x0
int v46; // w19
GameManager *v47; // x0
int v48; // w26
int v49; // w27
unsigned int v50; // w19
cocos2d::CCObject *v51; // x0
unsigned int v52; // w19
unsigned int v53; // w0
__int64 v54; // x2
void (__fastcall *v55)(GJSearchObject **, __int64 *, char *); // x21
GameLevelManager *v56; // x0
char *v57; // x2
char *v58; // x2
cocos2d::CCDirector *v59; // x0
cocos2d::CCDirector *v60; // x0
__int64 v61; // x22
void (__fastcall *v62)(__int64, char *); // x19
__int64 v63; // x0
GameLevelManager *v64; // x0
__int64 v66; // x19
void (__fastcall *v67)(__int64); // x21
LocalLevelManager *v68; // x0
LocalLevelManager *v69; // x0
GameLevelManager *v70; // x0
GameLevelManager *v71; // x0
GameLevelManager *v72; // x0
GameLevelManager *v73; // x0
__int64 v74; // x0
GameLevelManager *v75; // x0
__int64 v76; // x19
const char *v77; // x1
size_t v78; // x0
char *v79; // x1
size_t v80; // x2
GameLevelManager *v81; // x0
GameLevelManager *v82; // x0
GameLevelManager *v83; // x0
GameLevelManager *v84; // x0
int v85; // [xsp+64h] [xbp+64h]
GameLevelManager *v86; // [xsp+68h] [xbp+68h]
GameLevelManager *PageInfo; // [xsp+68h] [xbp+68h]
GameLevelManager *v88; // [xsp+68h] [xbp+68h]
GameLevelManager *v89; // [xsp+68h] [xbp+68h]
__int64 v90; // [xsp+78h] [xbp+78h] BYREF
char v91[8]; // [xsp+80h] [xbp+80h] BYREF
__int64 v92[2]; // [xsp+88h] [xbp+88h] BYREF
char *v93; // [xsp+98h] [xbp+98h]
__int64 v94; // [xsp+A0h] [xbp+A0h] BYREF
__int64 v95; // [xsp+A8h] [xbp+A8h]
void *v96; // [xsp+B0h] [xbp+B0h]
__int64 v97; // [xsp+B8h] [xbp+B8h] BYREF
__int64 v98; // [xsp+C0h] [xbp+C0h]
void *v99; // [xsp+C8h] [xbp+C8h]
__int64 v100[3]; // [xsp+D0h] [xbp+D0h] BYREF
__int64 v101[2]; // [xsp+E8h] [xbp+E8h] BYREF
void *v102; // [xsp+F8h] [xbp+F8h]
__int64 v103[2]; // [xsp+100h] [xbp+100h] BYREF
void *v104; // [xsp+110h] [xbp+110h]
__int64 v105[2]; // [xsp+118h] [xbp+118h] BYREF
void *v106; // [xsp+128h] [xbp+128h]
__int64 v107[2]; // [xsp+130h] [xbp+130h] BYREF
void *v108; // [xsp+140h] [xbp+140h]
__int64 v109[2]; // [xsp+148h] [xbp+148h] BYREF
void *v110; // [xsp+158h] [xbp+158h]
__int64 v111[2]; // [xsp+160h] [xbp+160h] BYREF
void *v112; // [xsp+170h] [xbp+170h]
__int64 v113[2]; // [xsp+178h] [xbp+178h] BYREF
void *v114; // [xsp+188h] [xbp+188h]
__int64 v115[2]; // [xsp+190h] [xbp+190h] BYREF
void *v116; // [xsp+1A0h] [xbp+1A0h]
__int64 v117[2]; // [xsp+1A8h] [xbp+1A8h] BYREF
void *v118; // [xsp+1B8h] [xbp+1B8h]
__int64 v119[2]; // [xsp+1C0h] [xbp+1C0h] BYREF
void *v120; // [xsp+1D0h] [xbp+1D0h]
__int64 v121; // [xsp+1D8h] [xbp+1D8h] BYREF
size_t v122; // [xsp+1E0h] [xbp+1E0h]
void *v123; // [xsp+1E8h] [xbp+1E8h]
__int64 v124; // [xsp+1F0h] [xbp+1F0h] BYREF
size_t v125; // [xsp+1F8h] [xbp+1F8h]
void *v126; // [xsp+200h] [xbp+200h]
LevelBrowserLayer::setSearchObject((__int64)this, a2);
Key = (const char *)GJSearchObject::getKey(*(this + 83));
v92[0] = 0;
v86 = (GameLevelManager *)Key;
v92[1] = 0;
v93 = nullptr;
v5 = strlen(Key);
std::string::__init(v92, v86, v5);
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 92) + 344LL))(*(this + 92), 1);
v6 = (__int64)*(this + 81);
if ( v6 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, 0);
v7 = (__int64)*(this + 80);
if ( v7 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, 0);
if ( !*((_BYTE *)this + 764) )
{
v8 = (__int64)*(this + 78);
if ( *((int *)*(this + 83) + 98) <= 0 )
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v8 + 344LL))(*(this + 78), 0);
else
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v8 + 344LL))(*(this + 78), 1);
}
v9 = *((_DWORD *)*(this + 83) + 79);
v10 = (LocalLevelManager *)(v9 - 98);
if ( (unsigned int)v10 <= 1 || v9 == 102 )
{
if ( v9 == 98 )
{
v68 = (LocalLevelManager *)LocalLevelManager::sharedState(v10);
CreatedLevels = LocalLevelManager::getCreatedLevels(v68, *((_DWORD *)*(this + 83) + 105));
}
else
{
v11 = v9 == 102;
if ( v9 != 102 )
{
LABEL_36:
if ( v9 == 100 )
{
v75 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v11);
CreatedLevels = GameLevelManager::getSavedLevels(v75, 1, *((_DWORD *)a2 + 105));
}
else if ( v9 == 101 )
{
v81 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v11);
CreatedLevels = GameLevelManager::getAllSmartTemplates(v81);
}
else
{
v31 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v11);
if ( v9 == 103 )
CreatedLevels = GameLevelManager::getSavedLevelLists(v31, *((_DWORD *)a2 + 105));
else
CreatedLevels = GameLevelManager::getSavedLevels(v31, 0, *((_DWORD *)a2 + 105));
}
goto LABEL_40;
}
v69 = (LocalLevelManager *)LocalLevelManager::sharedState((LocalLevelManager *)((char *)&dword_0 + 1));
CreatedLevels = LocalLevelManager::getCreatedLists(v69, *((_DWORD *)*(this + 83) + 105));
}
LABEL_40:
ItemsMatchingSearch = (cocos2d::CCArray *)CreatedLevels;
v34 = (__int64)*(this + 83);
v94 = 0;
v35 = v34 + 320;
v95 = 0;
LOBYTE(v34) = *(_BYTE *)(v34 + 320);
v96 = nullptr;
if ( (v34 & 1) != 0 )
{
std::string::__init(&v94, *(void **)(v35 + 16), *(_QWORD *)(v35 + 8));
}
else
{
v36 = *(_QWORD *)v35;
v37 = *(_QWORD *)(v35 + 8);
v96 = *(void **)(v35 + 16);
v94 = v36;
v95 = v37;
}
v38 = (cocos2d::CCArray *)(unsigned __int8)v94;
v39 = (unsigned __int8)v94 >> 1;
if ( (v94 & 1) != 0 )
{
v39 = v95;
operator delete(v96);
}
if ( v39 )
{
v40 = *((_BYTE *)a2 + 320);
v97 = 0;
v41 = (char *)a2 + 320;
v98 = 0;
v99 = nullptr;
if ( (v40 & 1) != 0 )
{
std::string::__init(&v97, *((void **)v41 + 2), *((_QWORD *)v41 + 1));
}
else
{
v42 = *(_QWORD *)v41;
v43 = *((_QWORD *)v41 + 1);
v99 = *((void **)v41 + 2);
v97 = v42;
v98 = v43;
}
ItemsMatchingSearch = LevelBrowserLayer::getItemsMatchingSearch(
(__int64)this,
(__int64)ItemsMatchingSearch,
(char *)&v97);
if ( (v97 & 1) != 0 )
operator delete(v99);
v38 = *(this + 80);
if ( v38 )
v38 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCArray *, __int64))(*(_QWORD *)v38 + 344LL))(
v38,
1);
}
v44 = (cocos2d::CCArray *)cocos2d::CCArray::create(v38);
v45 = *(this + 83);
v46 = *((_DWORD *)v45 + 98);
v47 = (GameManager *)GameManager::sharedState(v45);
if ( (unsigned __int8)GameManager::getGameVariable(v47, "0093") )
v48 = 20;
else
v48 = 10;
v85 = cocos2d::CCArray::count(ItemsMatchingSearch);
v49 = v48 * v46;
*((_DWORD *)this + 186) = (int)(float)(ceilf(
(float)(unsigned int)cocos2d::CCArray::count(ItemsMatchingSearch)
/ (float)v48)
- 1.0);
if ( ItemsMatchingSearch )
{
if ( (unsigned int)cocos2d::CCArray::count(ItemsMatchingSearch) )
{
v50 = v48 * v46;
if ( v49 < v48 + v49 )
{
do
{
if ( v50 > (unsigned int)cocos2d::CCArray::count(ItemsMatchingSearch) - 1 )
break;
v51 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(ItemsMatchingSearch, v50);
cocos2d::CCArray::addObject(v44, v51);
++v50;
}
while ( v50 != v48 + v49 );
}
}
}
if ( !*((_BYTE *)this + 764) )
{
v52 = cocos2d::CCArray::count(v44) + v49;
v53 = cocos2d::CCArray::count(ItemsMatchingSearch);
v54 = (__int64)*(this + 77);
if ( v52 >= v53 )
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v54 + 344LL))(*(this + 77), 0);
else
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v54 + 344LL))(*(this + 77), 1);
}
v55 = *((void (__fastcall **)(GJSearchObject **, __int64 *, char *))*this + 165);
v56 = (GameLevelManager *)GameLevelManager::sharedState(*this);
GameLevelManager::createPageInfo(v100, v56, v85, v49, v48);
v57 = (char *)v92 + 1;
if ( (v92[0] & 1) != 0 )
v57 = v93;
v55(this, v100, v57);
if ( (v100[0] & 1) != 0 )
operator delete((void *)v100[2]);
v58 = (char *)v92 + 1;
if ( (v92[0] & 1) != 0 )
v58 = v93;
(*((void (__fastcall **)(GJSearchObject **, cocos2d::CCArray *, char *, _QWORD))*this + 163))(this, v44, v58, v9);
if ( *((_DWORD *)this + 180) )
{
v63 = (__int64)*(this + 84);
if ( v63 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v63 + 344LL))(v63, 1);
}
else
{
v59 = *(this + 84);
if ( v59 )
v59 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(cocos2d::CCDirector *, _QWORD))(*(_QWORD *)v59 + 344LL))(
v59,
0);
v60 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v59);
cocos2d::CCDirector::getWinSize(&v90, v60);
switch ( v9 )
{
case 'c':
v101[0] = 0;
v101[1] = 0;
v102 = nullptr;
std::string::__init(v101, &byte_11E1A70, 1u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v91, 0.5, 1.0);
v61 = TextArea::create((char *)v101, "bigFont.fnt", (const cocos2d::CCPoint *)v91, 0, 0, 1.0, 600.0, 20.0);
if ( (v101[0] & 1) != 0 )
operator delete(v102);
v103[0] = 0;
v103[1] = 0;
*(_DWORD *)(v61 + 648) = 1109393408;
v104 = nullptr;
std::string::__init(v103, "You have not downloaded any levels yet!", 0x37u);
TextArea::setString((__int64 *)v61, (char *)v103);
if ( (v103[0] & 1) != 0 )
operator delete(v104);
break;
case 'g':
v105[0] = 0;
v105[1] = 0;
v106 = nullptr;
std::string::__init(v105, &byte_11E1A70, 1u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v91, 0.5, 1.0);
v61 = TextArea::create((char *)v105, "bigFont.fnt", (const cocos2d::CCPoint *)v91, 0, 0, 1.0, 600.0, 20.0);
if ( (v105[0] & 1) != 0 )
operator delete(v106);
v107[0] = 0;
*(_DWORD *)(v61 + 648) = 1109393408;
v107[1] = 0;
v108 = nullptr;
std::string::__init(v107, "You have not favorited\nany lists yet!", 0x35u);
TextArea::setString((__int64 *)v61, (char *)v107);
if ( (v107[0] & 1) != 0 )
operator delete(v108);
break;
case 'd':
v109[0] = 0;
v109[1] = 0;
v110 = nullptr;
std::string::__init(v109, &byte_11E1A70, 1u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v91, 0.5, 1.0);
v61 = TextArea::create((char *)v109, "bigFont.fnt", (const cocos2d::CCPoint *)v91, 0, 0, 1.0, 600.0, 20.0);
if ( (v109[0] & 1) != 0 )
operator delete(v110);
v111[0] = 0;
*(_DWORD *)(v61 + 648) = 1109393408;
v111[1] = 0;
v112 = nullptr;
std::string::__init(v111, "Levels marked as Favorite will show up here!", 0x34u);
TextArea::setString((__int64 *)v61, (char *)v111);
if ( (v111[0] & 1) != 0 )
operator delete(v112);
break;
case 'b':
v113[0] = 0;
v113[1] = 0;
v114 = nullptr;
std::string::__init(v113, "Tap New to create a level!", 0x2Au);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v91, 0.5, 1.0);
v61 = TextArea::create((char *)v113, "bigFont.fnt", (const cocos2d::CCPoint *)v91, 0, 0, 1.0, 600.0, 20.0);
if ( (v113[0] & 1) != 0 )
operator delete(v114);
break;
case 'f':
v115[0] = 0;
v115[1] = 0;
v116 = nullptr;
std::string::__init(v115, "Tap New to create a list!", 0x29u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v91, 0.5, 1.0);
v61 = TextArea::create((char *)v115, "bigFont.fnt", (const cocos2d::CCPoint *)v91, 0, 0, 1.0, 600.0, 20.0);
if ( (v115[0] & 1) != 0 )
operator delete(v116);
break;
case 'e':
v117[0] = 0;
v117[1] = 0;
v118 = nullptr;
std::string::__init(v117, "Tap New to create a Template!", 0x2Du);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v91, 0.5, 1.0);
v61 = TextArea::create((char *)v117, "bigFont.fnt", (const cocos2d::CCPoint *)v91, 0, 0, 1.0, 600.0, 20.0);
if ( (v117[0] & 1) != 0 )
operator delete(v118);
break;
default:
goto LABEL_83;
}
v62 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v61 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v91,
*(float *)&v90 * 0.5,
(float)(*((float *)&v90 + 1) * 0.5) + 10.0);
v62(v61, v91);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v61 + 160LL))(v61, 0.6);
(*((void (__fastcall **)(GJSearchObject **, __int64))*this + 57))(this, v61);
}
LABEL_83:
v26 = (GameLevelManager *)*((unsigned __int8 *)this + 748);
if ( *((_BYTE *)this + 748) )
goto LABEL_84;
goto LABEL_27;
}
v11 = v9 - 100;
if ( (unsigned int)v11 <= 1 || v9 == 103 )
goto LABEL_36;
v12 = *((unsigned __int8 *)this + 764);
if ( !*((_BYTE *)this + 764) )
{
v13 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v12);
NextPageKey = (const char *)GJSearchObject::getNextPageKey(*(this + 83));
StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v13, NextPageKey);
v16 = (__int64)*(this + 77);
if ( StoredOnlineLevels )
v12 = (*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v16 + 344LL))(*(this + 77), 1);
else
v12 = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v16 + 344LL))(*(this + 77), 0);
}
v17 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v12);
v18 = (char *)v92 + 1;
if ( (v92[0] & 1) != 0 )
v18 = v93;
v19 = GameLevelManager::getStoredOnlineLevels(v17, v18);
if ( !v19 )
{
v70 = (GameLevelManager *)*((unsigned __int8 *)this + 792);
if ( !*((_BYTE *)this + 792) )
v70 = (GameLevelManager *)LevelBrowserLayer::setupLevelBrowser((LevelBrowserLayer *)this, nullptr);
v71 = (GameLevelManager *)GameLevelManager::sharedState(v70);
*((_QWORD *)v71 + 153) = this + 68;
if ( v9 == 14 )
{
v83 = (GameLevelManager *)GameLevelManager::sharedState(v71);
GameLevelManager::getUsers(v83, a2);
}
else if ( v9 == 9 )
{
v84 = (GameLevelManager *)GameLevelManager::sharedState(v71);
GameLevelManager::getMapPacks(v84, a2);
}
else
{
v72 = (GameLevelManager *)*((unsigned int *)*(this + 83) + 108);
if ( (_DWORD)v72 == 1 )
{
v82 = (GameLevelManager *)GameLevelManager::sharedState(v72);
GameLevelManager::getLevelLists(v82, a2);
}
else
{
v73 = (GameLevelManager *)GameLevelManager::sharedState(v72);
GameLevelManager::getOnlineLevels(v73, a2);
}
}
v74 = (__int64)*(this + 84);
if ( v74 )
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v74 + 928LL))(v74, &byte_11E1A70);
goto LABEL_83;
}
v20 = *((void (__fastcall **)(GJSearchObject **, __int64 *, char *))*this + 165);
v21 = (GameLevelManager *)GameLevelManager::sharedState(*this);
v22 = (char *)v92 + 1;
if ( (v92[0] & 1) != 0 )
v22 = v93;
PageInfo = (GameLevelManager *)GameLevelManager::getPageInfo(v21, v22);
v119[0] = 0;
v119[1] = 0;
v120 = nullptr;
v23 = strlen((const char *)PageInfo);
std::string::__init(v119, PageInfo, v23);
v24 = (char *)v92 + 1;
if ( (v92[0] & 1) != 0 )
v24 = v93;
v20(this, v119, v24);
if ( (v119[0] & 1) != 0 )
operator delete(v120);
v25 = (char *)v92 + 1;
if ( (v92[0] & 1) != 0 )
v25 = v93;
(*((void (__fastcall **)(GJSearchObject **, __int64, char *, _QWORD))*this + 163))(this, v19, v25, v9);
v26 = (GameLevelManager *)*((unsigned __int8 *)this + 748);
if ( !*((_BYTE *)this + 748) )
{
LABEL_27:
v27 = GameLevelManager::sharedState(v26);
v28 = (char *)v92 + 1;
if ( (v92[0] & 1) != 0 )
v28 = v93;
v88 = (GameLevelManager *)v28;
v121 = 0;
v122 = 0;
v123 = nullptr;
v29 = strlen(v28);
std::string::__init(&v121, v88, v29);
v30 = (__int64 *)(v27 + 1160);
if ( (__int64 *)(v27 + 1160) != &v121 )
{
if ( (v121 & 1) != 0 )
std::string::assign(v30, v123, v122);
else
std::string::assign(v30, (char *)&v121 + 1, (unsigned __int8)v121 >> 1);
}
if ( (v121 & 1) != 0 )
operator delete(v123);
}
LABEL_84:
v64 = (GameLevelManager *)*((unsigned int *)*(this + 83) + 79);
if ( (_DWORD)v64 == 9 )
{
v76 = GameLevelManager::sharedState(v64);
v77 = (char *)v92 + 1;
if ( (v92[0] & 1) != 0 )
v77 = v93;
v89 = (GameLevelManager *)v77;
v124 = 0;
v125 = 0;
v126 = nullptr;
v78 = strlen(v77);
std::string::__init(&v124, v89, v78);
if ( (__int64 *)(v76 + 1184) != &v124 )
{
if ( (v124 & 1) != 0 )
{
v79 = (char *)v126;
v80 = v125;
}
else
{
v80 = (unsigned __int8)v124 >> 1;
v79 = (char *)&v124 + 1;
}
std::string::assign((__int64 *)(v76 + 1184), v79, v80);
}
if ( (v124 & 1) != 0 )
operator delete(v126);
}
if ( !*((_BYTE *)this + 764) )
{
v66 = (__int64)*(this + 86);
v67 = *(void (__fastcall **)(__int64))(*(_QWORD *)v66 + 344LL);
if ( !(*(unsigned __int8 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 77) + 352LL))(*(this + 77)) )
(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 78) + 352LL))(*(this + 78));
v67(v66);
}
if ( (v92[0] & 1) != 0 )
operator delete(v93);
return _stack_chk_guard;
}