//
// LevelBrowserLayer::init from 0x100494fe4 to 0x100496bc4 (7136 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::create @ 0x100494f98
//
// 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 11:05:56 +0000
//
__int64 __fastcall LevelBrowserLayer::init(__int64 a1, __int64 a2)
{
__int64 v2; // x19
int v4; // w8
char *v5; // x28
__int64 v6; // x0
__int64 v7; // x0
int v8; // w8
__int64 result; // x0
__int64 v10; // x0
__int64 v11; // x0
char *v12; // x0
char v13; // w8
__int64 v14; // x0
char *v15; // x22
void *v16; // x23
__int64 v17; // x23
void *v18; // x24
__int64 v19; // x0
float v20; // s8
__int64 v21; // x0
float v22; // s0
unsigned __int8 *v23; // x23
__int64 v24; // x0
float v25; // s8
__int64 v26; // x0
float v27; // s0
void **v28; // x0
void *v29; // x0
__int64 v30; // x22
void *v31; // x19
__int64 v32; // x1
__int64 v33; // x2
__int64 v34; // x3
__int64 v35; // x4
__int64 v36; // x5
__int64 v37; // x6
__int64 v38; // x7
__int64 v39; // x23
__int64 v40; // x0
float v41; // s8
__int64 v42; // x0
float v43; // s0
int isControllerConnected; // w23
__int64 v45; // x24
__int64 v46; // x0
__int64 v47; // x1
float v48; // s9
__int64 v49; // x8
int v50; // w25
float v51; // s11
const char *v52; // x0
void *v53; // x0
void *v54; // x0
__int64 v55; // x25
__int64 v56; // x0
float v57; // s0
const char *v58; // x0
unsigned __int8 *v59; // x0
__int64 v60; // x25
void *v61; // x0
__int64 v62; // x25
__int64 v63; // x0
float v64; // s0
void *v65; // x25
__int64 v66; // x26
float v67; // s8
__int64 v68; // x0
void *v69; // x0
__int64 v70; // x25
__int64 v71; // x0
float v72; // s0
float v73; // s9
_QWORD *v74; // x0
__int64 v75; // x25
__int64 v76; // x0
float v77; // s10
__int64 v78; // x0
__int64 v79; // x1
float v80; // s12
__int64 v81; // x0
float v82; // s0
__int64 v83; // x25
void *v84; // x25
__int64 v85; // x8
int v86; // w25
void *v87; // x25
__int64 v88; // x8
__int64 v89; // x20
__int64 v90; // x25
_OWORD *v91; // x0
float v92; // w8
__int64 v93; // x9
int v94; // w8
void *v95; // x25
void *v96; // x0
void *v97; // x0
unsigned int v98; // w8
char v99; // w9
_BOOL4 v100; // w22
__int64 v101; // x25
__int64 v102; // x19
float *v103; // x27
void *v104; // x26
float v105; // s12
__int64 v106; // x0
float v107; // s10
__int64 v108; // x0
float v109; // s0
float v110; // s12
__int64 v111; // x0
__int64 v112; // x0
__int64 v113; // x0
void *v114; // x0
void *v115; // x27
__int64 v116; // x0
float v117; // s10
__int64 v118; // x0
float v119; // s0
void *v120; // x0
void *v121; // x27
__int64 v122; // x0
float v123; // s10
__int64 v124; // x0
__int64 v125; // x1
float v126; // s13
__int64 v127; // x0
float v128; // s0
void *v129; // x0
void *v130; // x27
__int64 v131; // x0
float v132; // s10
__int64 v133; // x0
__int64 v134; // x1
float v135; // s13
__int64 v136; // x0
float v137; // s0
void *v138; // x0
__int64 v139; // x0
const char *v140; // x0
void *v141; // x27
void *v142; // x27
float32x2_t *v143; // x25
double v144; // d0
int v145; // w22
__int64 v146; // x25
float *v147; // x0
float *v148; // x27
__int64 (__fastcall *v149)(); // x3
void *v150; // x26
float v151; // s12
__int64 v152; // x0
float v153; // s10
__int64 v154; // x0
float v155; // s0
float v156; // s12
__int64 v157; // x0
const char *v158; // x0
void *v159; // x27
void *v160; // x27
float32x2_t *v161; // x26
double v162; // d0
const char *v163; // x0
void *v164; // x0
__int64 (__fastcall *v165)(); // x3
void *v166; // x26
__int64 v167; // x0
__int64 v168; // x1
float v169; // s10
__int64 v170; // x0
float v171; // s0
void *v172; // x25
void *v173; // x25
void *v174; // x25
__int64 v175; // x25
float *v176; // x26
float v177; // s12
__int64 v178; // x0
float v179; // s10
__int64 v180; // x0
float v181; // s0
__int64 v182; // x25
void *v183; // x0
void *v184; // x26
__int64 v185; // x0
float v186; // s10
__int64 v187; // x0
float v188; // s0
__int64 v189; // x8
int v190; // w25
__int64 v191; // x8
int v192; // w8
__int64 v193; // x25
__int64 v194; // x0
float v195; // s10
__int64 v196; // x0
__int64 v197; // x1
__int64 v198; // x0
float v199; // s1
__int64 v200; // x26
unsigned int v201; // w20
const char *v202; // x8
char *v203; // x0
__int64 v204; // x0
void *v205; // x28
void *v206; // x25
__int64 v207; // x26
float v208; // s10
__int64 v209; // x0
void *v210; // x0
__int64 v211; // x25
float32x2_t *v212; // x26
double v213; // d0
unsigned __int8 *v214; // x25
unsigned __int8 *v215; // x26
double v216; // d0
void *v217; // x0
__int64 v218; // x25
float32x2_t *v219; // x26
double v220; // d0
void *v221; // x0
void *v222; // x25
__int64 v223; // x0
__int64 v224; // x1
__int64 v225; // x0
float v226; // s0
void *v227; // x0
void *v228; // x0
__int64 v229; // x24
float32x2_t *v230; // x25
double v231; // d0
__int64 v232; // [xsp+20h] [xbp-F0h]
unsigned int v233; // [xsp+2Ch] [xbp-E4h]
__int64 v234; // [xsp+30h] [xbp-E0h]
float32x2_t v235; // [xsp+38h] [xbp-D8h] BYREF
void *__p[2]; // [xsp+40h] [xbp-D0h] BYREF
char v237; // [xsp+57h] [xbp-B9h]
float32x2_t v238; // [xsp+58h] [xbp-B8h] BYREF
float32x2_t v239; // [xsp+60h] [xbp-B0h] BYREF
void *v240[2]; // [xsp+68h] [xbp-A8h] BYREF
char v241; // [xsp+7Fh] [xbp-91h]
__int64 v242; // [xsp+80h] [xbp-90h] BYREF
v2 = a2;
if ( a2 )
{
v4 = *(unsigned __int8 *)(a2 + 430);
v5 = (char *)(a1 + 748);
*(_BYTE *)(a1 + 748) = v4;
if ( v4 == 1 )
{
v6 = cocos2d::CCDirector::sharedDirector();
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 160LL))(v6);
cocos2d::CCTouchDispatcher::registerForcePrio(v7, a1, 2, 0);
if ( (*(_BYTE *)(a1 + 748) & 1) != 0 )
v8 = -1778384896;
else
v8 = 0;
}
else
{
v8 = 0;
}
}
else
{
v8 = 0;
v5 = (char *)(a1 + 748);
*(_BYTE *)(a1 + 748) = 0;
}
LODWORD(v240[0]) = v8;
result = cocos2d::CCLayerColor::initWithColor(a1, (__int64)v240);
if ( !(_DWORD)result )
return result;
v233 = result;
LevelBrowserLayer::setSearchObject(a1, v2);
v10 = GameManager::sharedState();
if ( GameManager::onlyCuratedLevels(v10) )
{
if ( *(_QWORD *)(a1 + 664) )
{
v11 = GameLevelManager::sharedState();
if ( !sub_1000B5B90(v11, *(_DWORD *)(*(_QWORD *)(a1 + 664) + 316LL)) )
{
v12 = GJSearchObject::create_2(6);
LevelBrowserLayer::setSearchObject(a1, v12);
v2 = *(_QWORD *)(a1 + 664);
}
}
}
v13 = *v5;
v234 = v2;
if ( v2 && (*v5 & 1) == 0 )
{
*(_DWORD *)(GameLevelManager::sharedState() + 1480) = *(_DWORD *)(v2 + 316);
v13 = *v5;
}
if ( (v13 & 1) != 0 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 1);
v14 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v14, &v242);
v15 = "GJ_closeBtn_001.png";
if ( (*(_BYTE *)(a1 + 748) & 1) == 0 )
{
v16 = cocos2d::CCSprite::create((__int64)"GJ_gradientBG.png");
*(_QWORD *)(a1 + 800) = v16;
sub_1000262BC((float *)v240, 0.0, 0.0);
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v16 + 296LL))(v16, v240);
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 800), 4294967294LL);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 800) + 128LL))(
*(_QWORD *)(a1 + 800),
(float)(*(float *)&v242 + 10.0) / *(float *)(*(_QWORD *)(a1 + 800) + 432LL));
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 800) + 144LL))(
*(_QWORD *)(a1 + 800),
(float)(*((float *)&v242 + 1) + 10.0) / *(float *)(*(_QWORD *)(a1 + 800) + 436LL));
v17 = *(_QWORD *)(a1 + 800);
sub_1000262BC((float *)v240, -5.0, -5.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v17 + 184LL))(v17, v240);
LevelBrowserLayer::updateBackgroundColor(a1);
v18 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_sideArt_001.png");
sub_1000262BC((float *)v240, 0.0, 0.0);
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v18 + 296LL))(v18, v240);
v19 = cocos2d::CCDirector::sharedDirector();
v20 = sub_100207EA8(v19) + -1.0;
v21 = cocos2d::CCDirector::sharedDirector();
v22 = sub_100207EA0(v21);
sub_1000262BC((float *)v240, v20, v22 + -1.0);
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v18 + 184LL))(v18, v240);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v18, 1);
v23 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_sideArt_001.png");
sub_1000262BC((float *)v240, 1.0, 0.0);
(*(void (__fastcall **)(unsigned __int8 *, void **))(*(_QWORD *)v23 + 296LL))(v23, v240);
v24 = cocos2d::CCDirector::sharedDirector();
v25 = sub_100207EB0(v24) + 1.0;
v26 = cocos2d::CCDirector::sharedDirector();
v27 = sub_100207EA0(v26);
sub_1000262BC((float *)v240, v25, v27 + -1.0);
(*(void (__fastcall **)(unsigned __int8 *, void **))(*(_QWORD *)v23 + 184LL))(v23, v240);
cocos2d::CCSprite::setFlipX(v23, 1);
(*(void (__fastcall **)(__int64, unsigned __int8 *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v23, 1);
if ( (*(_BYTE *)(a1 + 748) & 1) == 0 )
v15 = "GJ_arrow_01_001.png";
}
sub_100009900(v240, v15);
if ( v241 >= 0 )
v28 = v240;
else
v28 = (void **)v240[0];
v29 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v28);
v30 = (__int64)v29;
if ( *v5 == 1 )
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v29 + 160LL))(v29, 0.9);
v31 = CCMenuItemSpriteExtra::create(v30, 0, a1, 1328, 1);
CCMenuItemSpriteExtra::setSizeMult((__int64)v31, 1.6);
v39 = sub_100270434((__int64)v31, v32, v33, v34, v35, v36, v37, v38, 0);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v39, 1);
v40 = cocos2d::CCDirector::sharedDirector();
v41 = sub_100207EA8(v40);
v42 = cocos2d::CCDirector::sharedDirector();
v43 = sub_100207E98(v42);
sub_1000262BC((float *)&v239, v41 + 24.0, v43 + -23.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v39 + 184LL))(v39, &v239);
isControllerConnected = PlatformToolbox::isControllerConnected();
v45 = cocos2d::CCMenu::create();
v46 = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v45, 10);
v48 = *((float *)&v242 + 1) * 0.5;
v49 = *(_QWORD *)(a1 + 664);
if ( v49 )
{
v50 = *(_DWORD *)(v49 + 316);
v46 = GameLevelManager::vaultTimedType(v50, (unsigned int *)&v239);
if ( ((unsigned int)(v50 - 21) < 3) | v46 & 1 )
v48 = v48 + -30.0;
}
if ( *(_BYTE *)(AppDelegate::get(v46, v47) + 37) )
v51 = 49.0;
else
v51 = 24.0;
if ( isControllerConnected )
v52 = "controllerBtn_DPad_Left_001.png";
else
v52 = "GJ_arrow_03_001.png";
v53 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v52);
v54 = CCMenuItemSpriteExtra::create((__int64)v53, 0, a1, (__int64)LevelBrowserLayer::onPrevPage, 0);
*(_QWORD *)(a1 + 624) = v54;
CCMenuItemSpriteExtra::setSizeMult((__int64)v54, 2.0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v45 + 456LL))(v45, *(_QWORD *)(a1 + 624));
v55 = *(_QWORD *)(a1 + 624);
v56 = cocos2d::CCDirector::sharedDirector();
v57 = sub_100207EA8(v56);
sub_1000262BC((float *)&v238, v51 + v57, v48);
cocos2d::CCNode::convertToNodeSpace(v45, (__int64)&v238, &v239);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v55 + 184LL))(v55, &v239);
if ( isControllerConnected )
v58 = "controllerBtn_DPad_Right_001.png";
else
v58 = "GJ_arrow_03_001.png";
v59 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)v58);
v60 = (__int64)v59;
if ( (isControllerConnected & 1) == 0 )
cocos2d::CCSprite::setFlipX(v59, 1);
v61 = CCMenuItemSpriteExtra::create(v60, 0, a1, (__int64)LevelBrowserLayer::onNextPage, 0);
*(_QWORD *)(a1 + 616) = v61;
CCMenuItemSpriteExtra::setSizeMult((__int64)v61, 2.0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v45 + 456LL))(v45, *(_QWORD *)(a1 + 616));
v62 = *(_QWORD *)(a1 + 616);
v63 = cocos2d::CCDirector::sharedDirector();
v64 = sub_100207EB0(v63);
sub_1000262BC((float *)&v238, v64 - v51, v48);
cocos2d::CCNode::convertToNodeSpace(v45, (__int64)&v238, &v239);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v62 + 184LL))(v62, &v239);
v65 = cocos2d::CCSprite::create((__int64)"GJ_button_02.png");
*(_QWORD *)(a1 + 680) = cocos2d::CCLabelBMFont::create_1("1", "bigFont.fnt");
(*(void (__fastcall **)(void *))(*(_QWORD *)v65 + 464LL))(v65);
v66 = *(_QWORD *)(a1 + 680);
v67 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v65 + 328LL))(v65);
v68 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v65 + 328LL))(v65);
sub_1000262BC((float *)&v239, v67 * 0.5, (float)(*(float *)(v68 + 4) * 0.5) + 1.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v66 + 184LL))(v66, &v239);
LevelBrowserLayer::updatePageLabel(a1);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v65 + 160LL))(v65, 0.7);
v69 = CCMenuItemSpriteExtra::create((__int64)v65, 0, a1, (__int64)LevelBrowserLayer::onGoToPage, 0);
*(_QWORD *)(a1 + 688) = v69;
CCMenuItemSpriteExtra::setSizeMult((__int64)v69, 1.2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v45 + 456LL))(v45, *(_QWORD *)(a1 + 688));
v70 = *(_QWORD *)(a1 + 688);
v71 = cocos2d::CCDirector::sharedDirector();
v72 = sub_100207EB0(v71);
v73 = v48 + 122.0;
sub_1000262BC((float *)&v238, (float)(v72 - v51) + 1.0, v73);
cocos2d::CCNode::convertToNodeSpace(v45, (__int64)&v238, &v239);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v70 + 184LL))(v70, &v239);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 624) + 344LL))(*(_QWORD *)(a1 + 624), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 616) + 344LL))(*(_QWORD *)(a1 + 616), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 688) + 344LL))(*(_QWORD *)(a1 + 688), 0);
v74 = LoadingCircle::create();
*(_QWORD *)(a1 + 736) = v74;
v74[69] = a1;
*((_BYTE *)v74 + 560) = 0;
cocos2d::CCObject::retain((__int64)v74);
LoadingCircle::show(*(_QWORD *)(a1 + 736));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 736) + 344LL))(*(_QWORD *)(a1 + 736), 0);
*(_QWORD *)(a1 + 672) = cocos2d::CCLabelBMFont::create_1(" ", "goldFont.fnt");
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 456LL))(a1);
v75 = *(_QWORD *)(a1 + 672);
v76 = cocos2d::CCDirector::sharedDirector();
v77 = sub_100207EB0(v76);
if ( *(_BYTE *)(AppDelegate::get(v78, v79) + 37) )
v80 = 10.0;
else
v80 = 0.0;
v81 = cocos2d::CCDirector::sharedDirector();
v82 = sub_100207E98(v81);
sub_1000262BC((float *)&v239, (float)(v77 + -7.0) - v80, v82 + -3.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v75 + 184LL))(v75, &v239);
v83 = *(_QWORD *)(a1 + 672);
sub_1000262BC((float *)&v239, 1.0, 1.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v83 + 296LL))(v83, &v239);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 672) + 160LL))(*(_QWORD *)(a1 + 672), 0.6);
sub_100009900(__p, "No Internet connection!");
sub_1000262BC((float *)&v239, 0.5, 1.0);
v84 = TextArea::create((__int64)__p, (__int64)"bigFont.fnt", (double *)&v239, 0, 0, 1.0, 600.0, 20.0);
*(_QWORD *)(a1 + 600) = v84;
if ( v237 < 0 )
{
operator delete(__p[0]);
v84 = *(void **)(a1 + 600);
}
sub_1000262BC((float *)&v239, *(float *)&v242 * 0.5, (float)(*((float *)&v242 + 1) * 0.5) + 10.0);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v84 + 184LL))(v84, &v239);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 600) + 160LL))(*(_QWORD *)(a1 + 600), 0.6);
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 600), 2);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 600) + 344LL))(*(_QWORD *)(a1 + 600), 0);
v85 = *(_QWORD *)(a1 + 664);
if ( !v85 )
goto LABEL_113;
v86 = *(_DWORD *)(v85 + 316);
if ( (((unsigned int)(v86 - 21) > 2) & ~GameLevelManager::vaultTimedType(v86, (unsigned int *)&v239)) == 0 )
{
v87 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"theSafeLabel_001.png");
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v87, 2);
sub_1000262BC(
(float *)&v239,
(float)(*(float *)&v242 * 0.5) + 13.0,
(float)((float)(*((float *)&v242 + 1) * 0.5) + 110.0) + 24.0);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v87 + 184LL))(v87, &v239);
goto LABEL_48;
}
v93 = *(_QWORD *)(a1 + 664);
if ( !v93 )
goto LABEL_113;
v94 = *(_DWORD *)(v93 + 316);
if ( v94 <= 27 )
{
if ( v94 == 6 )
{
if ( *(_DWORD *)(v93 + 432) == 1 )
{
v172 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"topListsLabel_001.png");
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v172, 2);
sub_1000262BC(
(float *)&v239,
*(float *)&v242 * 0.5,
(float)((float)(*((float *)&v242 + 1) * 0.5) + 110.0) + 24.0);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v172 + 184LL))(v172, &v239);
goto LABEL_48;
}
}
else if ( v94 != 17 )
{
goto LABEL_48;
}
v173 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"featuredLabel_001.png");
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v173, 2);
sub_1000262BC((float *)&v239, *(float *)&v242 * 0.5, (float)((float)(*((float *)&v242 + 1) * 0.5) + 110.0) + 24.0);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v173 + 184LL))(v173, &v239);
goto LABEL_48;
}
if ( v94 == 28 )
{
v174 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"weeklyLevelsLabel_001.png");
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v174, 2);
sub_1000262BC((float *)&v239, *(float *)&v242 * 0.5, (float)((float)(*((float *)&v242 + 1) * 0.5) + 110.0) + 24.0);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v174 + 184LL))(v174, &v239);
}
else if ( v94 == 29 )
{
v95 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"bonusLevelsLabel_001.png");
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v95, 2);
sub_1000262BC((float *)&v239, *(float *)&v242 * 0.5, (float)((float)(*((float *)&v242 + 1) * 0.5) + 110.0) + 24.0);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v95 + 184LL))(v95, &v239);
}
LABEL_48:
v88 = *(_QWORD *)(a1 + 664);
if ( !v88 )
goto LABEL_113;
v89 = (__int64)v31;
if ( (unsigned int)(*(_DWORD *)(v88 + 316) - 98) <= 2 && (*(_BYTE *)(v88 + 430) & 1) == 0 )
{
v90 = cocos2d::CCMenu::create();
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v90, 2);
sub_1000262BC(
(float *)&v239,
(float)(*(float *)&v242 * 0.5) + -150.0,
(float)(*((float *)&v242 + 1) * 0.5) + -121.5);
sub_1000262F4(&v238, (double *)&v239);
v91 = sub_10037E220(v90, a1, (double *)&v238, a1, (__int64)LevelBrowserLayer::onToggleAllObjects, 0, 0.715);
*(_QWORD *)(a1 + 712) = v91;
sub_10037E638((__int64)v91, 10, 27.0);
if ( *(_DWORD *)(*(_QWORD *)(a1 + 664) + 316LL) == 98 )
{
sub_10037E6F0(
*(_QWORD *)(a1 + 712),
(__int64)"threadBtn_export_001.png",
(__int64)LevelBrowserLayer::onExportSelected,
0,
53.0,
1.4);
v92 = 79.0;
}
else
{
v92 = 53.0;
}
v96 = sub_10037E6F0(
*(_QWORD *)(a1 + 712),
(__int64)"threadBtn_delete_001.png",
(__int64)LevelBrowserLayer::onProcessSelected,
0,
v92,
1.2);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v96 + 72LL))(v96, 5);
LevelBrowserLayer::updateSelectUI(a1);
v97 = sub_100306828();
sub_100306950(
(__int64)v97,
a1,
(__int64)LevelBrowserLayer::onSelectionChanged,
0,
"LevelSelectionChangedNotification",
0);
v88 = *(_QWORD *)(a1 + 664);
if ( !v88 )
goto LABEL_85;
}
v98 = *(_DWORD *)(v88 + 316);
v99 = v98 - 98;
if ( v98 - 98 > 5 )
{
if ( v98 <= 0xE && ((1 << v98) & 0x4600) != 0 )
{
LABEL_85:
v145 = 0;
goto LABEL_114;
}
v175 = cocos2d::CCMenu::create();
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v175, 2);
v176 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_updateBtn_001.png");
*(_QWORD *)(a1 + 648) = CCMenuItemSpriteExtra::create(
(__int64)v176,
0,
a1,
(__int64)LevelBrowserLayer::onRefresh,
0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v175 + 456LL))(v175);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 648) + 344LL))(*(_QWORD *)(a1 + 648), 0);
v177 = v176[108];
v178 = cocos2d::CCDirector::sharedDirector();
v179 = sub_100207EB0(v178);
v180 = cocos2d::CCDirector::sharedDirector();
v181 = sub_100207EA0(v180);
sub_1000262BC((float *)&v239, v179 - (float)((float)(v177 * 0.5) + 4.0), (float)((float)(v177 * 0.5) + 4.0) + v181);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v175 + 184LL))(v175, &v239);
LABEL_113:
v145 = 0;
goto LABEL_114;
}
v100 = 1;
if ( ((1 << v99) & 0x19) == 0 )
{
if ( ((1 << v99) & 0x22) != 0 )
v100 = *(_DWORD *)(v234 + 316) == 103;
v146 = cocos2d::CCMenu::create();
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v146, 2);
v147 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_deleteBtn_001.png");
v148 = v147;
if ( v100 )
v149 = LevelBrowserLayer::onRemoveAllFavorites;
else
v149 = LevelBrowserLayer::onDeleteAll;
v150 = CCMenuItemSpriteExtra::create((__int64)v147, 0, a1, (__int64)v149, 0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v146 + 456LL))(v146, v150);
v151 = v148[108];
v152 = cocos2d::CCDirector::sharedDirector();
v153 = sub_100207EB0(v152);
v154 = cocos2d::CCDirector::sharedDirector();
v155 = sub_100207EA0(v154);
v156 = (float)(v151 * 0.5) + 4.0;
sub_1000262BC((float *)&v239, v153 - v156, v156 + v155);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v146 + 184LL))(v146, &v239);
v157 = GameManager::sharedState();
if ( !GameManager::onlyCuratedLevels(v157) )
{
if ( *(_DWORD *)(*(_QWORD *)(a1 + 664) + 316LL) == 103 )
v158 = "GJ_viewLevelsBtn_001.png";
else
v158 = "GJ_viewListsBtn_001.png";
v159 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v158);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v159 + 160LL))(v159, 0.8);
v160 = CCMenuItemSpriteExtra::create((__int64)v159, 0, a1, (__int64)LevelBrowserLayer::onSavedMode, 0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v146 + 456LL))(v146, v160);
v161 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v150 + 192LL))(v150);
sub_1000262BC((float *)&v238, 2.0, 52.0);
*(float32x2_t *)&v162 = sub_100026318(v161, &v238, &v239);
(*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v160 + 184LL))(v160, &v239, v162);
}
if ( *(_DWORD *)(*(_QWORD *)(a1 + 664) + 316LL) == 103 )
{
v145 = 1;
}
else
{
if ( v100 )
v163 = "gj_heartOff_001.png";
else
v163 = "gj_heartOn_001.png";
v164 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v163);
if ( v100 )
v165 = LevelBrowserLayer::onSaved;
else
v165 = LevelBrowserLayer::onFavorites;
v166 = CCMenuItemSpriteExtra::create((__int64)v164, 0, a1, (__int64)v165, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v166, 1.1);
v167 = (*(__int64 (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v146 + 464LL))(v146, v166, 100);
if ( *(_BYTE *)(AppDelegate::get(v167, v168) + 37) )
v169 = 25.0;
else
v169 = 0.0;
v170 = cocos2d::CCDirector::sharedDirector();
v171 = sub_100207EA0(v170);
sub_1000262BC((float *)&v238, v156 + v169, (float)(v156 + v171) + 50.0);
cocos2d::CCNode::convertToNodeSpace(v146, (__int64)&v238, &v239);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v166 + 184LL))(v166, &v239);
v145 = 1;
}
LABEL_114:
v182 = cocos2d::CCMenu::create();
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v182, 2);
v232 = (__int64)v31;
v183 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_infoIcon_001.png");
v184 = CCMenuItemSpriteExtra::create((__int64)v183, 0, a1, (__int64)LevelBrowserLayer::onInfo, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v184, 2.0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v182 + 456LL))(v182, v184);
v185 = cocos2d::CCDirector::sharedDirector();
v186 = sub_100207EA8(v185);
v187 = cocos2d::CCDirector::sharedDirector();
v188 = sub_100207EA0(v187);
sub_1000262BC((float *)&v239, v186 + 30.0, v188 + 30.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v182 + 184LL))(v182, &v239);
v189 = *(_QWORD *)(a1 + 664);
if ( v189 )
{
v190 = *(_DWORD *)(v189 + 316);
if ( (((unsigned int)(v190 - 21) > 2) & ~GameLevelManager::vaultTimedType(v190, (unsigned int *)&v239)) == 0 )
{
v191 = *(_QWORD *)(a1 + 664);
if ( v191 && GameLevelManager::vaultTimedType(*(_DWORD *)(v191 + 316), (unsigned int *)&v239) )
v192 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 664) + 404LL);
else
v192 = 2;
dword_1009D45D0 = v192;
v193 = cocos2d::CCMenu::create();
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v193, 2);
v194 = cocos2d::CCDirector::sharedDirector();
v195 = sub_100207EA8(v194);
v198 = AppDelegate::get(v196, v197);
v199 = 0.0;
if ( *(_BYTE *)(v198 + 37) )
v199 = 25.0;
sub_1000262BC((float *)&v239, (float)(v195 + 30.0) + v199, *((float *)&v242 + 1) * 0.5);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v193 + 184LL))(v193, &v239);
v200 = 0;
v201 = 90;
do
{
if ( v200 == 2 )
v202 = "threadBtn_timeOn_001.png";
else
v202 = "threadBtn_vaultOn_001.png";
if ( v200 == 1 )
v203 = "threadBtn_uncompletedOn_001.png";
else
v203 = (char *)v202;
v204 = sub_100047A38(v203, v200 == dword_1009D45D0, 9868950, 215);
*(_QWORD *)(a1 + 808 + 8 * v200) = v204;
v205 = CCMenuItemSpriteExtra::create(v204, 0, a1, (__int64)LevelBrowserLayer::onSafeMode, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v205, 1.2);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v205 + 72LL))(v205, v200);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v193 + 456LL))(v193, v205);
sub_1000262BC((float *)&v239, 0.0, (float)v201);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v205 + 184LL))(v205, &v239);
++v200;
v201 -= 35;
}
while ( v200 != 3 );
}
}
v102 = v234;
v89 = v232;
if ( !v145 )
goto LABEL_136;
goto LABEL_131;
}
v101 = cocos2d::CCMenu::create();
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v101, 2);
v102 = v234;
v103 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_newBtn_001.png");
v104 = CCMenuItemSpriteExtra::create((__int64)v103, 0, a1, (__int64)LevelBrowserLayer::onNew, 0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v101 + 456LL))(v101, v104);
sub_1000262BC((float *)&v239, *(float *)&v242 * 0.5, (float)((float)(*((float *)&v242 + 1) + -220.0) * 0.5) + -4.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v101 + 184LL))(v101, &v239);
v105 = v103[108];
v106 = cocos2d::CCDirector::sharedDirector();
v107 = sub_100207EB0(v106);
v108 = cocos2d::CCDirector::sharedDirector();
v109 = sub_100207EA0(v108);
v110 = (float)(v105 * 0.5) + 4.0;
sub_1000262BC((float *)&v239, v107 - v110, v110 + v109);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v101 + 184LL))(v101, &v239);
if ( (*v5 & 1) == 0 )
{
v111 = GameManager::sharedState();
if ( !GameManager::onlyCuratedLevels(v111) )
{
v112 = GameManager::sharedState();
if ( *(_DWORD *)(v112 + 660) != *(_DWORD *)(v112 + 664)
|| (v113 = GJAccountManager::sharedState(), *(_DWORD *)(v113 + 352) != *(_DWORD *)(v113 + 356)) )
{
v114 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_myServerBtn_001.png");
v115 = CCMenuItemSpriteExtra::create((__int64)v114, 0, a1, (__int64)LevelBrowserLayer::onMyOnlineLevels, 0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v101 + 456LL))(v101, v115);
v116 = cocos2d::CCDirector::sharedDirector();
v117 = sub_100207EA8(v116);
v118 = cocos2d::CCDirector::sharedDirector();
v119 = sub_100207EA0(v118);
sub_1000262BC((float *)&v238, v110 + v117, v110 + v119);
cocos2d::CCNode::convertToNodeSpace(v101, (__int64)&v238, &v239);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v115 + 184LL))(v115, &v239);
}
}
if ( *(_DWORD *)(*(_QWORD *)(a1 + 664) + 316LL) == 98 )
{
v120 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_importBtn_001.png");
v121 = CCMenuItemSpriteExtra::create((__int64)v120, 0, a1, (__int64)LevelBrowserLayer::onImportLevels, 0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v101 + 456LL))(v101, v121);
v122 = cocos2d::CCDirector::sharedDirector();
v123 = sub_100207EA8(v122);
if ( *(_BYTE *)(AppDelegate::get(v124, v125) + 37) )
v126 = 25.0;
else
v126 = 0.0;
v127 = cocos2d::CCDirector::sharedDirector();
v128 = sub_100207EA0(v127);
sub_1000262BC((float *)&v238, (float)((float)(v110 + v123) + -5.0) + v126, (float)(v110 + v128) + 46.0);
cocos2d::CCNode::convertToNodeSpace(v101, (__int64)&v238, &v239);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v121 + 184LL))(v121, &v239);
v129 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_manageBackupBtn_001.png");
v130 = CCMenuItemSpriteExtra::create((__int64)v129, 0, a1, (__int64)LevelBrowserLayer::onBackups, 0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v101 + 456LL))(v101, v130);
v131 = cocos2d::CCDirector::sharedDirector();
v132 = sub_100207EA8(v131);
if ( *(_BYTE *)(AppDelegate::get(v133, v134) + 37) )
v135 = 25.0;
else
v135 = 0.0;
v136 = cocos2d::CCDirector::sharedDirector();
v137 = sub_100207EA0(v136);
sub_1000262BC((float *)&v238, (float)((float)(v110 + v132) + -5.0) + v135, (float)(v110 + v137) + 82.0);
cocos2d::CCNode::convertToNodeSpace(v101, (__int64)&v238, &v239);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v130 + 184LL))(v130, &v239);
v138 = sub_100306828();
sub_100306950((__int64)v138, a1, (__int64)LevelBrowserLayer::onLevelsImported, 0, "LevelsImportedNotification", 0);
}
v139 = GameManager::sharedState();
if ( !GameManager::onlyCuratedLevels(v139) )
{
if ( *(_DWORD *)(*(_QWORD *)(a1 + 664) + 316LL) == 98 )
v140 = "GJ_viewListsBtn_001.png";
else
v140 = "GJ_viewLevelsBtn_001.png";
v141 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v140);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v141 + 160LL))(v141, 0.8);
v142 = CCMenuItemSpriteExtra::create((__int64)v141, 0, a1, (__int64)LevelBrowserLayer::onLocalMode, 0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v101 + 456LL))(v101, v142);
v143 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v104 + 192LL))(v104);
sub_1000262BC((float *)&v238, 2.0, 52.0);
*(float32x2_t *)&v144 = sub_100026318(v143, &v238, &v239);
(*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v142 + 184LL))(v142, &v239, v144);
}
}
LABEL_131:
if ( GJSearchObject::isLevelSearchObject(*(_QWORD *)(a1 + 664)) )
{
v206 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gj_folderBtn_001.png");
*(_QWORD *)(a1 + 696) = cocos2d::CCLabelBMFont::create_1("0", "bigFont.fnt");
(*(void (__fastcall **)(void *))(*(_QWORD *)v206 + 464LL))(v206);
v207 = *(_QWORD *)(a1 + 696);
v208 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v206 + 328LL))(v206);
v209 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v206 + 328LL))(v206);
sub_1000262BC((float *)&v239, v208 * 0.5, (float)(*(float *)(v209 + 4) * 0.5) + 0.5);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v207 + 184LL))(v207, &v239);
v210 = CCMenuItemSpriteExtra::create((__int64)v206, 0, a1, (__int64)LevelBrowserLayer::onGoToFolder, 0);
*(_QWORD *)(a1 + 704) = v210;
CCMenuItemSpriteExtra::setSizeMult((__int64)v210, 1.2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v45 + 456LL))(v45, *(_QWORD *)(a1 + 704));
v211 = *(_QWORD *)(a1 + 704);
v212 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 688) + 192LL))(*(_QWORD *)(a1 + 688));
sub_1000262BC((float *)&v238, 0.0, -35.0);
*(float32x2_t *)&v213 = sub_100026318(v212, &v238, &v239);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v211 + 184LL))(v211, &v239, v213);
}
v214 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_02_001.png");
(*(void (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v214 + 160LL))(v214, 0.4);
v215 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_02_001.png");
(*(void (__fastcall **)(unsigned __int8 *, unsigned __int8 *, __int64))(*(_QWORD *)v214 + 464LL))(v214, v215, 1);
cocos2d::CCNode::convertToNodeSpace((__int64)v214, (__int64)&unk_1009F7A80, &v238);
sub_1000262BC((float *)&v235, 15.0, 0.0);
*(float32x2_t *)&v216 = sub_100026318(&v238, &v235, &v239);
(*(void (__fastcall **)(unsigned __int8 *, float32x2_t *, double))(*(_QWORD *)v215 + 184LL))(v215, &v239, v216);
cocos2d::CCSprite::setFlipX(v215, 1);
cocos2d::CCSprite::setFlipX(v214, 1);
v217 = CCMenuItemSpriteExtra::create((__int64)v214, 0, a1, (__int64)LevelBrowserLayer::onGoToLastPage, 0);
*(_QWORD *)(a1 + 632) = v217;
CCMenuItemSpriteExtra::setSizeMult((__int64)v217, 1.2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v45 + 456LL))(v45, *(_QWORD *)(a1 + 632));
v218 = *(_QWORD *)(a1 + 632);
v219 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 688) + 192LL))(*(_QWORD *)(a1 + 688));
sub_1000262BC((float *)&v238, -2.0, -65.0);
*(float32x2_t *)&v220 = sub_100026318(v219, &v238, &v239);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v218 + 184LL))(v218, &v239, v220);
v221 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gj_findBtn_001.png");
v222 = CCMenuItemSpriteExtra::create((__int64)v221, 0, a1, (__int64)LevelBrowserLayer::onSearch, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v222, 1.2);
v223 = (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)v45 + 456LL))(v45, v222);
v225 = AppDelegate::get(v223, v224);
v226 = 0.0;
if ( *(_BYTE *)(v225 + 37) )
v226 = 25.0;
sub_1000262BC((float *)&v238, v51 + v226, v73 + -30.0);
cocos2d::CCNode::convertToNodeSpace(v45, (__int64)&v238, &v239);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v222 + 184LL))(v222, &v239);
v227 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gj_findBtnOff_001.png");
v228 = CCMenuItemSpriteExtra::create((__int64)v227, 0, a1, (__int64)LevelBrowserLayer::onClearSearch, 0);
*(_QWORD *)(a1 + 640) = v228;
CCMenuItemSpriteExtra::setSizeMult((__int64)v228, 1.2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v45 + 456LL))(v45, *(_QWORD *)(a1 + 640));
v229 = *(_QWORD *)(a1 + 640);
v230 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v222 + 192LL))(v222);
sub_1000262BC((float *)&v238, 0.0, -35.0);
*(float32x2_t *)&v231 = sub_100026318(v230, &v238, &v239);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v229 + 184LL))(v229, &v239, v231);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 640) + 344LL))(*(_QWORD *)(a1 + 640), 0);
LABEL_136:
if ( isControllerConnected )
{
GameToolbox::addBackButton(a1, v89);
GameToolbox::addRThumbScrollButton(a1);
}
LevelBrowserLayer::loadPage(a1, v102);
if ( v241 < 0 )
operator delete(v240[0]);
return v233;
}