//
// SecretLayer2::init from 0xa901fc to 0xa90f90 (3476 bytes)
//
// 3 xrefs:
// > SecretLayer2::create @ 0xa8a904
// > ??> @ 0x69f70
// > ??> @ 0x1499880
//
// 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 13:00:40 +0000
//
__int64 __fastcall SecretLayer2::init(SecretLayer2 *this)
{
cocos2d::CCTextureCache *v2; // x0
unsigned int v3; // w24
cocos2d::CCTextureCache *v5; // x0
cocos2d::CCSpriteFrameCache *v6; // x0
cocos2d::CCSpriteFrameCache *v7; // x0
GameManager *v8; // x0
__int64 v9; // x20
cocos2d::CCDirector *v10; // x0
cocos2d::CCDirector *v11; // x0
cocos2d::CCDictionary *WinSize; // x0
cocos2d::CCObject *v13; // x0
AchievementManager *v14; // x0
AchievementManager *v15; // x0
AchievementManager *isAchievementEarned; // x0
AchievementManager *v17; // x0
AchievementManager *v18; // x0
AchievementManager *v19; // x0
AchievementManager *v20; // x0
AchievementManager *v21; // x0
AchievementManager *v22; // x0
AchievementManager *v23; // x0
AchievementManager *v24; // x0
AchievementManager *v25; // x0
AchievementManager *v26; // x0
AchievementManager *v27; // x0
GameManager *v28; // x0
GameManager *v29; // x0
float *v30; // x27
void (__fastcall *v31)(float *, __int64 *); // x2
const char *v32; // x2
__int64 v33; // x27
const char *v34; // x2
__int64 v35; // x0
__int64 v36; // x2
__int64 v37; // x28
const char *v38; // x4
__int64 v39; // x0
__int64 v40; // x26
const char *v41; // x1
__int64 v42; // x0
cocos2d::CCMenu *v43; // x26
cocos2d::CCDirector **v44; // x21
__int64 (__fastcall *v45)(cocos2d::CCDirector **, __int64 *); // x28
cocos2d::CCDirector *v46; // x0
cocos2d::CCDirector *ScreenLeft; // x0
float v48; // s0
float v49; // s8
cocos2d::CCDirector *v50; // x0
float v51; // s0
PlatformToolbox *v52; // x0
const char *v53; // x1
cocos2d::CCMenuItem *v54; // x2
cocos2d::CCNode *v55; // x28
const char *v56; // x1
__int64 v57; // x26
void (__fastcall *v58)(__int64, __int64 *); // x27
__int64 v59; // x0
__int64 v60; // x28
void (__fastcall *v61)(__int64, __int64 *); // x26
GameManager *v62; // x0
GameManager *v63; // x0
const char *v64; // x1
char *v65; // x0
__int64 v66; // x0
__int64 v67; // x0
__int64 (__fastcall *v68)(cocos2d::CCSize *, __int64 *); // x26
cocos2d::CCArray *v69; // x0
cocos2d::CCObject *v70; // x0
const char *v71; // x1
__int64 v72; // x26
__int64 v73; // x0
__int64 v74; // x26
cocos2d::CCNode *v75; // x0
void (__fastcall *v76)(__int64, __int64 *); // x21
const char *v77; // x2
cocos2d::CCObject *v78; // x21
void (__fastcall *v79)(cocos2d::CCObject *, __int64 *); // x26
const char *v80; // x2
cocos2d::CCObject *v81; // x26
cocos2d::CCObject *v82; // x0
__int64 (__fastcall *v83)(cocos2d::CCObject *); // x1
void (__fastcall *v84)(cocos2d::CCObject *, __int64 *); // x21
GameStatsManager *v85; // x0
GameStatsManager *v86; // x0
GameManager *Stat; // x0
GameManager *v88; // x0
unsigned __int64 UGV; // x0
GameManager *v90; // x0
GameLevelManager *v91; // x0
GameLevelManager *v92; // x0
GJGameLevel *MainLevel; // x0
cocos2d::CCDelayTime *NormalPercent; // x0
cocos2d::CCSequence *v95; // x20
cocos2d::CCFiniteTimeAction *v96; // x0
cocos2d::CCAction *v97; // x0
unsigned int v98; // w20
unsigned int v99; // w1
__int64 v100; // x0
const char *v101; // x1
cocos2d::CCObject *v102; // x21
void (__fastcall *v103)(cocos2d::CCObject *, __int64 *); // x28
cocos2d::CCString *v104; // x0
cocos2d::CCLabelBMFont *CString; // x0
const char *v106; // x2
cocos2d::CCObject *v107; // x21
void (__fastcall *v108)(cocos2d::CCObject *, __int64 *); // x25
cocos2d::CCDictionary *v109; // x20
cocos2d::CCObject *v110; // x0
cocos2d::CCDictionary *v111; // x20
cocos2d::CCObject *v112; // x0
cocos2d::CCDictionary *v113; // x20
cocos2d::CCObject *v114; // x0
cocos2d::CCDictionary *v115; // x20
cocos2d::CCObject *v116; // x0
cocos2d::CCDictionary *v117; // x20
cocos2d::CCObject *v118; // x0
cocos2d::CCDictionary *v119; // x20
cocos2d::CCObject *v120; // x0
AchievementManager *v121; // x0
cocos2d::CCDictionary *v122; // x20
cocos2d::CCObject *v123; // x0
cocos2d::CCDictionary *v124; // x20
cocos2d::CCObject *v125; // x0
__int64 v126; // [xsp+88h] [xbp+88h]
void (__fastcall *v127)(float *, __int64 *); // [xsp+90h] [xbp+90h]
void (__fastcall *v128)(float *, __int64 *); // [xsp+90h] [xbp+90h]
void (__fastcall *v129)(__int64, __int64 *); // [xsp+90h] [xbp+90h]
void (__fastcall *v130)(__int64, __int64 *); // [xsp+90h] [xbp+90h]
cocos2d::CCSize *v131; // [xsp+98h] [xbp+98h]
cocos2d::CCSize *v132; // [xsp+98h] [xbp+98h]
__int64 v133; // [xsp+A0h] [xbp+A0h] BYREF
_BYTE v134[8]; // [xsp+A8h] [xbp+A8h] BYREF
_BYTE v135[8]; // [xsp+B0h] [xbp+B0h] BYREF
_BYTE v136[8]; // [xsp+B8h] [xbp+B8h] BYREF
__int64 v137; // [xsp+C0h] [xbp+C0h] BYREF
_BYTE v138[8]; // [xsp+C8h] [xbp+C8h] BYREF
char v139[16]; // [xsp+D0h] [xbp+D0h] BYREF
__int64 v140[2]; // [xsp+E0h] [xbp+E0h] BYREF
__int64 v141; // [xsp+F0h] [xbp+F0h] BYREF
__int64 v142; // [xsp+F8h] [xbp+F8h]
void *v143; // [xsp+100h] [xbp+100h]
v2 = (cocos2d::CCTextureCache *)(unsigned __int8)cocos2d::CCLayer::init(this);
v3 = (unsigned __int8)v2;
if ( (_BYTE)v2 )
{
v5 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v2);
v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCTextureCache::addImage(v5, "SecretSheet.png", 0);
v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6);
v8 = (GameManager *)cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v7, "SecretSheet.plist");
v9 = GameManager::sharedState(v8);
v141 = 0;
v142 = 0;
v143 = nullptr;
std::string::__init(&v141, "secretLoop02.mp3", 0x10u);
GameManager::fadeInMusic(v9, (unsigned __int8 *)&v141);
if ( (v141 & 1) != 0 )
operator delete(v143);
(*(void (__fastcall **)(SecretLayer2 *, __int64))(*(_QWORD *)this + 1072LL))(this, 1);
v10 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(SecretLayer2 *, __int64))(*(_QWORD *)this + 1088LL))(
this,
1);
v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10);
WinSize = (cocos2d::CCDictionary *)cocos2d::CCDirector::getWinSize(&v133, v11);
v13 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(WinSize);
*((_QWORD *)this + 60) = v13;
v14 = (AchievementManager *)cocos2d::CCObject::retain(v13);
v15 = (AchievementManager *)AchievementManager::sharedState(v14);
isAchievementEarned = (AchievementManager *)AchievementManager::isAchievementEarned(v15, "geometry.ach.v2.secret01");
if ( !(_BYTE)isAchievementEarned )
{
v124 = *((cocos2d::CCDictionary **)this + 60);
v125 = (cocos2d::CCObject *)SecretLayer2::nodeWithTag(this, 1);
isAchievementEarned = (AchievementManager *)cocos2d::CCDictionary::setObject(v124, v125, 1);
}
v17 = (AchievementManager *)AchievementManager::sharedState(isAchievementEarned);
v18 = (AchievementManager *)AchievementManager::isAchievementEarned(v17, "geometry.ach.secret06");
if ( (_BYTE)v18 )
{
v121 = (AchievementManager *)AchievementManager::sharedState(v18);
v18 = (AchievementManager *)AchievementManager::isAchievementEarned(v121, "geometry.ach.v2.secret03");
if ( !(_BYTE)v18 )
{
v122 = *((cocos2d::CCDictionary **)this + 60);
v123 = (cocos2d::CCObject *)SecretLayer2::nodeWithTag(this, 3);
v18 = (AchievementManager *)cocos2d::CCDictionary::setObject(v122, v123, 3);
}
}
v19 = (AchievementManager *)AchievementManager::sharedState(v18);
v20 = (AchievementManager *)AchievementManager::isAchievementEarned(v19, "geometry.ach.v2.secret05");
if ( !(_BYTE)v20 )
{
v119 = *((cocos2d::CCDictionary **)this + 60);
v120 = (cocos2d::CCObject *)SecretLayer2::nodeWithTag(this, 5);
v20 = (AchievementManager *)cocos2d::CCDictionary::setObject(v119, v120, 5);
}
v21 = (AchievementManager *)AchievementManager::sharedState(v20);
v22 = (AchievementManager *)AchievementManager::isAchievementEarned(v21, "geometry.ach.v2.secret06");
if ( !(_BYTE)v22 )
{
v117 = *((cocos2d::CCDictionary **)this + 60);
v118 = (cocos2d::CCObject *)SecretLayer2::nodeWithTag(this, 6);
v22 = (AchievementManager *)cocos2d::CCDictionary::setObject(v117, v118, 6);
}
v23 = (AchievementManager *)AchievementManager::sharedState(v22);
v24 = (AchievementManager *)AchievementManager::isAchievementEarned(v23, "geometry.ach.v2.secret08");
if ( !(_BYTE)v24 )
{
v115 = *((cocos2d::CCDictionary **)this + 60);
v116 = (cocos2d::CCObject *)SecretLayer2::nodeWithTag(this, 8);
v24 = (AchievementManager *)cocos2d::CCDictionary::setObject(v115, v116, 8);
}
v25 = (AchievementManager *)AchievementManager::sharedState(v24);
v26 = (AchievementManager *)AchievementManager::isAchievementEarned(v25, "geometry.ach.v2.secret09");
if ( !(_BYTE)v26 )
{
v113 = *((cocos2d::CCDictionary **)this + 60);
v114 = (cocos2d::CCObject *)SecretLayer2::nodeWithTag(this, 9);
v26 = (AchievementManager *)cocos2d::CCDictionary::setObject(v113, v114, 9);
}
v27 = (AchievementManager *)AchievementManager::sharedState(v26);
v28 = (GameManager *)AchievementManager::isAchievementEarned(v27, "geometry.ach.v2.secret10");
if ( !(_BYTE)v28 )
{
v111 = *((cocos2d::CCDictionary **)this + 60);
v112 = (cocos2d::CCObject *)SecretLayer2::nodeWithTag(this, 10);
v28 = (GameManager *)cocos2d::CCDictionary::setObject(v111, v112, 10);
}
v29 = (GameManager *)GameManager::sharedState(v28);
if ( !(unsigned __int8)GameManager::getUGV(v29, "1") )
{
v109 = *((cocos2d::CCDictionary **)this + 60);
v110 = (cocos2d::CCObject *)SecretLayer2::nodeWithTag(this, 20);
cocos2d::CCDictionary::setObject(v109, v110, 20);
}
v30 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v139);
v127 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v30 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, 0.0, 0.0);
v127(v30, v140);
(*(void (__fastcall **)(SecretLayer2 *, float *, __int64))(*(_QWORD *)this + 464LL))(this, v30, 4294967293LL);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v30 + 128LL))(v30, (float)(*(float *)&v133 + 10.0) / v30[108]);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v30 + 144LL))(
v30,
(float)(*((float *)&v133 + 1) + 10.0) / v30[109]);
v128 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v30 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, -5.0, -5.0);
v128(v30, v140);
v31 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v30 + 960LL);
LOWORD(v140[0]) = 75;
BYTE2(v140[0]) = 100;
v31(v30, v140);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v139, 0.0, 0.0, 40.0, 40.0);
v33 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Vault of Secrets", "goldFont.fnt", v32);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v33 + 160LL))(v33, 1.0);
(*(void (__fastcall **)(SecretLayer2 *, __int64))(*(_QWORD *)this + 456LL))(this, v33);
v129 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v33 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, *(float *)&v133 * 0.5, *((float *)&v133 + 1) - 24.0);
v129(v33, v140);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v134,
*(float *)&v133 * 0.5,
(float)(*((float *)&v133 + 1) * 0.5) + 50.0);
v35 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v34);
v36 = *(_QWORD *)this;
*((_QWORD *)this + 58) = v35;
(*(void (__fastcall **)(SecretLayer2 *))(v36 + 456))(this);
v126 = *((_QWORD *)this + 58);
v130 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v126 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, 0.0, 43.0);
cocos2d::CCPoint::operator+(v140, v134);
v130(v126, v140);
SecretLayer2::getMessage(this, &v141);
SecretLayer2::updateMessageLabel((__int64)this, (char *)&v141);
if ( (v141 & 1) != 0 )
operator delete(v143);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v140, (const cocos2d::CCRect *)v139);
v37 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v140);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v37 + 912LL))(v37, 100);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v135, 200.0, 40.0);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v37 + 320LL))(v37, v135);
(*(void (__fastcall **)(SecretLayer2 *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v37, 4294967294LL);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v37 + 184LL))(v37, v134);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v37 + 960LL))(v37, &unk_11770B8);
v39 = CCTextInputNode::create(
(CCTextInputNode *)"...",
180.0,
50.0,
"Thonburi",
(const char *)&off_18,
"bigFont.fnt",
v38);
*((_QWORD *)this + 57) = v39;
(*(void (__fastcall **)(SecretLayer2 *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v39, 20);
*(_QWORD *)(*((_QWORD *)this + 57) + 584LL) = (char *)this + 408;
(*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 57) + 184LL))(*((_QWORD *)this + 57), v134);
CCTextInputNode::setMaxLabelScale(*((CCTextInputNode **)this + 57), 0.7);
CCTextInputNode::setMaxLabelWidth(*((CCTextInputNode **)this + 57), 180.0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 57) + 576LL) + 344LL))(
*(_QWORD *)(*((_QWORD *)this + 57) + 576LL),
0);
*(_DWORD *)(*((_QWORD *)this + 57) + 592LL) = 100;
v141 = 0;
v40 = *((_QWORD *)this + 57);
v142 = 0;
v143 = nullptr;
std::string::__init(
&v141,
" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~",
0x61u);
CCTextInputNode::setAllowedChars(v40, (__int64)&v141);
if ( (v141 & 1) != 0 )
operator delete(v143);
SecretLayer2::updateSearchLabel(this, &byte_11B8890);
v42 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v41);
v43 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v42, 0, (__int64)this, (__int64)SecretLayer2::onBack, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v43, 1.5);
v44 = (cocos2d::CCDirector **)cocos2d::CCMenu::create(v43, nullptr);
(*(void (__fastcall **)(SecretLayer2 *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))(this, v44, 1);
v45 = *((__int64 (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v44 + 23);
v46 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v44);
ScreenLeft = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v46);
v49 = v48;
v50 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenLeft);
cocos2d::CCDirector::getScreenTop(v50);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, v49 + 24.0, v51 - 23.0);
v52 = (PlatformToolbox *)v45(v44, v140);
if ( (unsigned __int8)PlatformToolbox::isControllerConnected(v52) )
GameToolbox::addBackButton(this, v43, v54);
v55 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_secretLock2_001.png",
v53);
v57 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_secretLock2_2_001.png", v56);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64, __int64))(*(_QWORD *)v55 + 464LL))(v55, v57, 0xFFFFFFFFLL);
v58 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v57 + 184LL);
cocos2d::CCNode::convertToNodeSpace(v140, v55, (const cocos2d::CCPoint *)&unk_155D948);
v58(v57, v140);
v59 = CCMenuItemSpriteExtra::create((__int64)v55, 0, (__int64)this, (__int64)SecretLayer2::onSubmit, 0);
*((_QWORD *)this + 59) = v59;
(*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v44 + 57))(v44, v59);
v60 = *((_QWORD *)this + 59);
v61 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v60 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v138,
*(float *)&v133 * 0.5,
(float)(*((float *)&v133 + 1) * 0.5) + -20.0);
cocos2d::CCNode::convertToNodeSpace(v140, (cocos2d::CCNode *)v44, (const cocos2d::CCPoint *)v138);
v61(v60, v140);
v62 = (GameManager *)CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 59), 0.7);
v63 = (GameManager *)GameManager::sharedState(v62);
if ( (unsigned __int8)GameManager::getUGV(v63, &byte_11BCA00) )
v65 = "secretDoor_open_001.png";
else
v65 = "secretDoor_closed_001.png";
v66 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v65, v64);
v67 = CCMenuItemSpriteExtra::create(v66, 0, (__int64)this, (__int64)SecretLayer2::onDoor, 0);
*((_QWORD *)this + 64) = v67;
*(_BYTE *)(v67 + 408) = 0;
*(_BYTE *)(*((_QWORD *)this + 64) + 409LL) = 1;
(*((void (__fastcall **)(cocos2d::CCDirector **, _QWORD))*v44 + 57))(v44, *((_QWORD *)this + 64));
v131 = *((cocos2d::CCSize **)this + 64);
v68 = *(__int64 (__fastcall **)(cocos2d::CCSize *, __int64 *))(*(_QWORD *)v131 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, *(float *)&v133 - 45.0, 45.0);
cocos2d::CCNode::convertToNodeSpace(v140, (cocos2d::CCNode *)v44, (const cocos2d::CCPoint *)v138);
v69 = (cocos2d::CCArray *)v68(v131, v140);
v70 = (cocos2d::CCObject *)cocos2d::CCArray::create(v69);
*((_QWORD *)this + 63) = v70;
cocos2d::CCObject::retain(v70);
v72 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_playBtn2_001.png", v71);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v72 + 160LL))(v72, 0.5);
v73 = CCMenuItemSpriteExtra::create(v72, 0, (__int64)this, (__int64)SecretLayer2::onSecretLevel, 0);
*((_QWORD *)this + 62) = v73;
(*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v44 + 57))(v44, v73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, *(float *)&v133 - 45.0, 130.0);
v74 = *((_QWORD *)this + 62);
v75 = (cocos2d::CCNode *)v44;
v76 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v74 + 184LL);
cocos2d::CCNode::convertToNodeSpace(v140, v75, (const cocos2d::CCPoint *)v136);
v76(v74, v140);
v78 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"The", "bigFont.fnt", v77);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v78 + 160LL))(v78, 0.4);
(*(void (__fastcall **)(SecretLayer2 *, cocos2d::CCObject *))(*(_QWORD *)this + 456LL))(this, v78);
v79 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v78 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, 0.0, 46.0);
cocos2d::CCPoint::operator+(v140, v136);
v79(v78, v140);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 63), v78);
v81 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Challenge", "bigFont.fnt", v80);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v81 + 160LL))(v81, 0.4);
(*(void (__fastcall **)(SecretLayer2 *, cocos2d::CCObject *))(*(_QWORD *)this + 456LL))(this, v81);
v82 = v78;
v83 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v78 + 192LL);
v84 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v81 + 184LL);
v132 = (cocos2d::CCSize *)v83(v82);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, 0.0, -15.0);
cocos2d::CCPoint::operator+(v140, v132);
v84(v81, v140);
v85 = (GameStatsManager *)cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 63), v81);
v86 = (GameStatsManager *)GameStatsManager::sharedState(v85);
Stat = (GameManager *)GameStatsManager::getStat(v86, "13");
if ( (int)Stat <= 199 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, 3.0, -30.0);
cocos2d::CCPoint::operator+(&v137, v136);
v102 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_diamondsIcon_001.png",
v101);
(*(void (__fastcall **)(SecretLayer2 *, cocos2d::CCObject *))(*(_QWORD *)this + 456LL))(this, v102);
v103 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v102 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, 12.0, -1.0);
cocos2d::CCPoint::operator+(v140, &v137);
v103(v102, v140);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v102 + 160LL))(v102, 0.7);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 63), v102);
v104 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)&qword_C8);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v104);
v107 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v106);
(*(void (__fastcall **)(SecretLayer2 *, cocos2d::CCObject *))(*(_QWORD *)this + 456LL))(this, v107);
v108 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v107 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, -8.5, 0.0);
cocos2d::CCPoint::operator+(v140, &v137);
v108(v107, v140);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v107 + 160LL))(v107, 0.4);
Stat = (GameManager *)cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 63), v107);
}
v88 = (GameManager *)GameManager::sharedState(Stat);
UGV = (unsigned __int8)GameManager::getUGV(v88, "1");
if ( !(_BYTE)UGV )
{
v98 = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 62) + 1056LL))(*((_QWORD *)this + 62), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 62) + 344LL))(*((_QWORD *)this + 62), 0);
while ( 1 )
{
UGV = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 63));
if ( v98 >= (unsigned int)UGV )
break;
v99 = v98++;
v100 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 63), v99);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v100 + 344LL))(v100, 0);
}
}
v90 = (GameManager *)GameManager::sharedState((GameManager *)UGV);
v91 = (GameLevelManager *)(unsigned __int8)GameManager::getUGV(v90, &byte_11BCA00);
if ( !(_BYTE)v91 )
{
v92 = (GameLevelManager *)GameLevelManager::sharedState(v91);
MainLevel = (GJGameLevel *)GameLevelManager::getMainLevel(v92, (_BYTE *)&elf_hash_bucket[624] + 1, 1u);
NormalPercent = (cocos2d::CCDelayTime *)GJGameLevel::getNormalPercent(MainLevel);
if ( (int)NormalPercent > 99 )
{
v95 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(NormalPercent, 0.8);
v96 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, SecretLayer2::showCompletedLevel, 0);
v97 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v95, v96, 0);
cocos2d::CCNode::runAction(this, v97);
}
}
}
return v3;
}