//
// LevelSelectLayer::init from 0x5125e8 to 0x512d9a (1970 bytes)
//
// 1 xrefs:
// > LevelSelectLayer::create @ 0x512e6a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:33 +0000
//
GameStatsManager *__fastcall LevelSelectLayer::init(GJGroundLayer **this, int a2)
{
GameStatsManager *v4; // r0
GameStatsManager *v5; // r11
int v6; // r0
GameManager *isItemUnlocked; // r0
GameManager *v8; // r0
AchievementManager *v9; // r0
AchievementManager *v10; // r0
_BOOL4 isAchievementEarned; // r0
const char *v12; // r1
GJGroundLayer *v13; // r0
GJGroundLayer *v14; // r8
void (__fastcall *v15)(GJGroundLayer *, _DWORD *); // r10
int v16; // r8
void (__fastcall *v17)(int, _DWORD *); // r10
int v18; // r0
int (__fastcall *v19)(int, _DWORD *); // r3
GameManager *v20; // r0
int v21; // r0
int v22; // r2
GJGroundLayer *v23; // r0
GJGroundLayer *v24; // r3
float v25; // r1
const char *v26; // r1
int v27; // r8
int (__fastcall *v28)(int, _DWORD *); // r9
cocos2d::CCDirector *v29; // r0
float v30; // s18
void (__fastcall *v31)(int, _DWORD *); // r9
cocos2d::CCDirector *v32; // r0
float v33; // r0
const char *v34; // r1
int v35; // r8
int (__fastcall *v36)(int, _DWORD *); // r10
cocos2d::CCDirector *v37; // r0
void (__fastcall *v38)(int, _DWORD *); // r10
cocos2d::CCDirector *v39; // r0
float v40; // s18
cocos2d::CCDirector *v41; // r0
float v42; // r0
int v43; // r10
const char *v44; // r1
cocos2d::CCSprite *v45; // r8
int (__fastcall *v46)(cocos2d::CCSprite *, _DWORD *); // r9
cocos2d::CCDirector *v47; // r0
void (__fastcall *v48)(cocos2d::CCSprite *, _DWORD *); // r9
cocos2d::CCDirector *v49; // r0
float v50; // s18
cocos2d::CCDirector *v51; // r0
float v52; // r0
cocos2d::CCArray *v53; // r0
cocos2d::CCArray *v54; // r9
GameLevelManager *v55; // r0
cocos2d::CCArray *v56; // r8
GameLevelManager *v57; // r0
char *v58; // r1
int v59; // r3
cocos2d::CCObject *MainLevel; // r0
GJGameLevel *v61; // r1
int v62; // r10
int *v63; // r0
GJGameLevel *v64; // r0
int *v65; // r0
int v66; // s15
GJGameLevel *v67; // r0
int *v68; // r0
int v69; // s15
unsigned int v70; // r0
GJGroundLayer *v71; // r3
cocos2d::CCDirector *v72; // r0
unsigned int v73; // r8
float v74; // s17
cocos2d::CCDirector *v75; // r0
float v76; // r0
int PageCount; // r0
bool v78; // zf
signed int v79; // r0
const char *v80; // r2
void (__fastcall *v81)(GJGroundLayer **, _DWORD *); // r6
int v82; // r8
cocos2d::CCMenu *v83; // r8
int v84; // r6
cocos2d::CCDirector *v85; // r0
float v86; // s17
int (__fastcall *v87)(int, _DWORD *); // r8
cocos2d::CCDirector *v88; // r0
float v89; // r0
cocos2d::CCMenu *v90; // r0
float v91; // s16
const cocos2d::CCPoint *v92; // r8
PlatformToolbox *v93; // r0
const char *v94; // r1
int isControllerConnected; // r9
char *v96; // r0
cocos2d::CCSprite *v97; // r0
int v98; // r6
int v99; // r6
cocos2d::CCDirector *v100; // r0
cocos2d::CCDirector *v101; // r0
float v102; // r0
const char *v103; // r1
char *v104; // r0
int v105; // r0
int v106; // r10
cocos2d::CCDirector *v107; // r0
cocos2d::CCDirector *v108; // r0
float v109; // r0
const char *v110; // r1
int v111; // r0
cocos2d::CCMenu *v112; // r8
int v113; // r10
cocos2d::CCDirector *v114; // r0
cocos2d::CCDirector *v115; // r0
float v116; // s16
cocos2d::CCDirector *v117; // r0
float v118; // r0
GameManager *v119; // r0
cocos2d::CCMenu *v120; // r0
int v121; // r5
const char *v122; // r1
int v123; // r0
int v124; // r10
const char *v125; // r1
int v126; // r0
int v127; // r0
int v128; // r7
void (__fastcall *v129)(int, _BYTE *); // r10
cocos2d::CCDirector *updated; // r0
void (__fastcall *v131)(int, _BYTE *); // r7
cocos2d::CCDirector *v132; // r0
float v133; // s16
cocos2d::CCDirector *v134; // r0
float v135; // r0
cocos2d::CCMenuItem *v136; // r2
cocos2d::CCObject *v138; // [sp+10h] [bp-54h]
cocos2d::CCObject *v139; // [sp+10h] [bp-54h]
cocos2d::CCObject *v140; // [sp+10h] [bp-54h]
cocos2d::CCObject *v141; // [sp+10h] [bp-54h]
void (__fastcall *v142)(int, _DWORD *); // [sp+14h] [bp-50h]
float v143; // [sp+1Ch] [bp-48h] BYREF
float v144; // [sp+20h] [bp-44h]
_BYTE v145[8]; // [sp+24h] [bp-40h] BYREF
int (__fastcall *v146)(LevelSelectLayer *, cocos2d::CCObject *); // [sp+2Ch] [bp-38h]
int v147; // [sp+30h] [bp-34h]
cocos2d::CCArray **(__fastcall *v148)(LevelSelectLayer *, cocos2d::CCObject *); // [sp+34h] [bp-30h]
int v149; // [sp+38h] [bp-2Ch]
cocos2d::CCArray **(__fastcall *v150)(LevelSelectLayer *, cocos2d::CCObject *); // [sp+3Ch] [bp-28h]
int v151; // [sp+40h] [bp-24h]
int (__fastcall *v152)(LevelSelectLayer *, cocos2d::CCObject *); // [sp+44h] [bp-20h]
int v153; // [sp+48h] [bp-1Ch]
_DWORD v154[2]; // [sp+4Ch] [bp-18h] BYREF
_DWORD v155[2]; // [sp+54h] [bp-10h] BYREF
v4 = (GameStatsManager *)cocos2d::CCLayer::init((cocos2d::CCLayer *)this);
v5 = v4;
if ( v4 )
{
v6 = GameStatsManager::sharedState(v4);
isItemUnlocked = (GameManager *)GameStatsManager::isItemUnlocked(v6, 12, 4);
if ( isItemUnlocked )
{
v8 = (GameManager *)GameManager::sharedState(isItemUnlocked);
GameManager::setUGV(v8, "6", (_BYTE *)&dword_0 + 1);
}
(*((void (__fastcall **)(GJGroundLayer **, int))*this + 134))(this, 1);
v9 = (AchievementManager *)(*((int (__fastcall **)(GJGroundLayer **, int))*this + 136))(this, 1);
s_didClick = 0;
v10 = (AchievementManager *)AchievementManager::sharedState(v9);
isAchievementEarned = AchievementManager::isAchievementEarned(v10, "geometry.ach.secret04");
*((_BYTE *)this + 348) = isAchievementEarned;
cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)isAchievementEarned);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v143);
v13 = (GJGroundLayer *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v12);
*(this + 82) = v13;
v14 = v13;
v15 = *(void (__fastcall **)(GJGroundLayer *, _DWORD *))(*(_DWORD *)v13 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, 0.0);
v15(v14, v155);
(*((void (__fastcall **)(GJGroundLayer **, _DWORD, int))*this + 58))(this, *(this + 82), -2);
(*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 82) + 64))(
*(this + 82),
(float)(v143 + 10.0) / *((float *)*(this + 82) + 86));
(*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 82) + 72))(
*(this + 82),
(float)(v144 + 10.0) / *((float *)*(this + 82) + 87));
v16 = (int)*(this + 82);
v17 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v16 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, -5.0, -5.0);
v17(v16, v155);
v18 = (int)*(this + 82);
v19 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v18 + 480);
LOWORD(v155[0]) = 32040;
BYTE2(v155[0]) = -1;
v20 = (GameManager *)v19(v18, v155);
v21 = GameManager::sharedState(v20);
v23 = (GJGroundLayer *)GJGroundLayer::create(*(GJGroundLayer **)(v21 + 772), 1, v22);
v24 = *this;
*(this + 83) = v23;
(*((void (__fastcall **)(GJGroundLayer **, GJGroundLayer *, _DWORD))v24 + 58))(this, v23, 0);
if ( (float)((float)(v144 * 0.5) - 110.0) <= 128.0 )
v25 = (float)(v144 * 0.5) - 110.0;
else
v25 = 128.0;
GJGroundLayer::positionGround(*(this + 83), v25);
v27 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_topBar_001.png", v26);
v28 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v27 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.5, 1.0);
v29 = (cocos2d::CCDirector *)v28(v27, v155);
v30 = v143;
v31 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v27 + 92);
v32 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v29);
v33 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v32));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, v30 * 0.5, v33 + 1.0);
v31(v27, v155);
(*((void (__fastcall **)(GJGroundLayer **, int, int))*this + 58))(this, v27, 1);
v35 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_sideArt_001.png", v34);
v36 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v35 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, 0.0);
v37 = (cocos2d::CCDirector *)v36(v35, v155);
v38 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v35 + 92);
v39 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v37);
v40 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v39));
v41 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v40));
v42 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v41));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, v40 - 1.0, v42 - 1.0);
v38(v35, v155);
v43 = 1;
(*((void (__fastcall **)(GJGroundLayer **, int, int))*this + 58))(this, v35, 1);
v45 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_sideArt_001.png",
v44);
v46 = *(int (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v45 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 1.0, 0.0);
v47 = (cocos2d::CCDirector *)v46(v45, v155);
v48 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v45 + 92);
v49 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v47);
v50 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v49));
v51 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v50));
v52 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v51));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, v50 + 1.0, v52 - 1.0);
v48(v45, v155);
cocos2d::CCSprite::setFlipX(v45, 1);
v53 = (cocos2d::CCArray *)(*((int (__fastcall **)(GJGroundLayer **, cocos2d::CCSprite *, int))*this + 58))(
this,
v45,
1);
v54 = (cocos2d::CCArray *)cocos2d::CCArray::create(v53);
v55 = (GameLevelManager *)cocos2d::CCArray::create(v54);
v56 = v55;
do
{
v57 = (GameLevelManager *)GameLevelManager::sharedState(v55);
v58 = (char *)v43++;
MainLevel = (cocos2d::CCObject *)GameLevelManager::getMainLevel(v57, v58, 1, v59);
v55 = (GameLevelManager *)cocos2d::CCArray::addObject(v56, MainLevel);
}
while ( v43 != 23 );
v62 = 3;
do
{
v63 = LevelPage::create(nullptr, v61);
v64 = (GJGameLevel *)cocos2d::CCArray::addObject(v54, (cocos2d::CCObject *)v63);
--v62;
}
while ( v62 );
v65 = GJGameLevel::create(v64);
v65[69] = -2;
v138 = (cocos2d::CCObject *)v65;
v66 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0);
*((_DWORD *)v138 + 68) = v66;
*((_DWORD *)v138 + 67) = v66 - 2;
v67 = (GJGameLevel *)cocos2d::CCArray::addObject(v56, v138);
v68 = GJGameLevel::create(v67);
v68[69] = -1;
v139 = (cocos2d::CCObject *)v68;
v69 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0);
*((_DWORD *)v139 + 68) = v69;
*((_DWORD *)v139 + 67) = v69 - 1;
cocos2d::CCArray::addObject(v56, v139);
v70 = BoomScrollLayer::create(v54, 0, 1, v56, (int)(this + 80));
v71 = *this;
*(this + 84) = (GJGroundLayer *)v70;
v72 = (cocos2d::CCDirector *)(*((int (__fastcall **)(GJGroundLayer **, unsigned int))v71 + 57))(this, v70);
v73 = (unsigned int)*(this + 84);
v74 = v143;
v75 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v72);
v76 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v75));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, v74 * 0.5, v76 + 15.0);
BoomScrollLayer::setPagesIndicatorPosition(v73, (int)v155);
*((float *)this + 81) = v143;
*(_DWORD *)(*((_DWORD *)*(this + 84) + 96) + 316) = this + 79;
PageCount = getPageCount();
if ( a2 )
{
v78 = a2 == PageCount - 1;
v79 = (signed int)*(this + 84);
if ( v78 )
{
BoomScrollLayer::instantMoveToPage(v79, a2 - 1);
v79 = (signed int)*(this + 84);
}
BoomScrollLayer::instantMoveToPage(v79, a2);
}
else
{
v81 = *((void (__fastcall **)(GJGroundLayer **, _DWORD *))*this + 145);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, (const cocos2d::CCPoint *)&unk_D2BD28);
v81(this, v155);
}
v82 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Download the soundtrack", "bigFont.fnt", v80);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v82 + 80))(v82, 1056964608);
v147 = 0;
v146 = LevelSelectLayer::onDownload;
v83 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v82, 0, (int)this, (int)LevelSelectLayer::onDownload, 0);
CCMenuItemSpriteExtra::setSizeMult((int)v83, 1.1);
v84 = cocos2d::CCMenu::create(v83, nullptr);
v85 = (cocos2d::CCDirector *)(*((int (__fastcall **)(GJGroundLayer **, int))*this + 57))(this, v84);
v86 = v143;
v87 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v84 + 92);
v88 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v85);
v89 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v88));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, v86 * 0.5, v89 + 35.0);
v90 = (cocos2d::CCMenu *)v87(v84, v155);
v91 = v144 * 0.5;
v92 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v90);
v93 = (PlatformToolbox *)(*((int (__fastcall **)(GJGroundLayer **, const cocos2d::CCPoint *, int))*this + 58))(
this,
v92,
5);
isControllerConnected = PlatformToolbox::isControllerConnected(v93);
if ( isControllerConnected )
v96 = "controllerBtn_DPad_Left_001.png";
else
v96 = "navArrowBtn_001.png";
v97 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v96, v94);
v98 = (int)v97;
if ( !isControllerConnected )
cocos2d::CCSprite::setFlipX(v97, 1);
v149 = 0;
v148 = LevelSelectLayer::onPrev;
v99 = CCMenuItemSpriteExtra::create(v98, 0, (int)this, (int)LevelSelectLayer::onPrev, 0);
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v92 + 228))(v92, v99);
v100 = (cocos2d::CCDirector *)CCMenuItemSpriteExtra::setSizeMult(v99, 2.0);
v140 = *(cocos2d::CCObject **)(*(_DWORD *)v99 + 92);
v101 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v100);
v102 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v101));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v154, v102 + 25.0, v91);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v155, v92);
((void (__fastcall *)(int, _DWORD *))v140)(v99, v155);
if ( isControllerConnected )
v104 = "controllerBtn_DPad_Right_001.png";
else
v104 = "navArrowBtn_001.png";
v105 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v104, v103);
v151 = 0;
v150 = LevelSelectLayer::onNext;
v106 = CCMenuItemSpriteExtra::create(v105, 0, (int)this, (int)LevelSelectLayer::onNext, 0);
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v92 + 228))(v92, v106);
v107 = (cocos2d::CCDirector *)CCMenuItemSpriteExtra::setSizeMult(v106, 2.0);
v142 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v106 + 92);
v108 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v107);
v109 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v108));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v154, v109 - 25.0, v91);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v155, v92);
v142(v106, v155);
v111 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v110);
v153 = 0;
v152 = LevelSelectLayer::onBack;
v112 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v111, 0, (int)this, (int)LevelSelectLayer::onBack, 0);
CCMenuItemSpriteExtra::setSizeMult((int)v112, 1.6);
v113 = cocos2d::CCMenu::create(v112, nullptr);
v114 = (cocos2d::CCDirector *)(*((int (__fastcall **)(GJGroundLayer **, int, int))*this + 58))(this, v113, 1);
v141 = *(cocos2d::CCObject **)(*(_DWORD *)v113 + 92);
v115 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v114);
v116 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v115));
v117 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v116));
v118 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v117));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, v116 + 25.0, v118 - 22.0);
v119 = (GameManager *)((int (__fastcall *)(int, _DWORD *))v141)(v113, v155);
v120 = (cocos2d::CCMenu *)GameManager::sharedState(v119);
*((_BYTE *)v120 + 852) = 0;
v121 = cocos2d::CCMenu::create(v120);
(*((void (__fastcall **)(GJGroundLayer **, int))*this + 57))(this, v121);
v123 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v122);
v154[1] = 0;
v154[0] = LevelSelectLayer::onInfo;
v124 = CCMenuItemSpriteExtra::create(v123, 0, (int)this, (int)LevelSelectLayer::onInfo, 0);
CCMenuItemSpriteExtra::setSizeMult(v124, 2.0);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v121 + 228))(v121, v124);
v126 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"sideBtn_death_001.png", v125);
v155[1] = 0;
v155[0] = LevelSelectLayer::onDeathTracker;
v127 = CCMenuItemSpriteExtra::create(v126, 0, (int)this, (int)LevelSelectLayer::onDeathTracker, 0);
*(this + 88) = (GJGroundLayer *)v127;
CCMenuItemSpriteExtra::setSizeMult(v127, 2.0);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v121 + 228))(v121, *(this + 88));
v128 = (int)*(this + 88);
v129 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v128 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v145, 0.0, -40.0);
v129(v128, v145);
updated = (cocos2d::CCDirector *)LevelSelectLayer::updateDeathButton((int)this, *((_DWORD *)*(this + 84) + 115));
v131 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v121 + 92);
v132 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(updated);
v133 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v132));
v134 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v133));
v135 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v134));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v145, v133 - 20.0, v135 - 20.0);
v131(v121, v145);
if ( isControllerConnected )
GameToolbox::addBackButton((GameToolbox *)this, v112, v136);
}
return v5;
}