//
// SecretLayer2::init from 0x61f2d4 to 0x61fcfa (2598 bytes)
//
// 1 xrefs:
// > SecretLayer2::create @ 0x61a774
//
// 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:55:05 +0000
//
cocos2d::CCTextureCache *__fastcall SecretLayer2::init(SecretLayer2 *this)
{
cocos2d::CCTextureCache *v2; // r0
cocos2d::CCTextureCache *v3; // r0
cocos2d::CCSpriteFrameCache *v4; // r0
cocos2d::CCSpriteFrameCache *v5; // r0
GameManager *v6; // r0
FMODAudioEngine *v7; // r5
cocos2d::CCDirector *v8; // r0
cocos2d::CCDictionary *WinSize; // r0
cocos2d::CCObject *v10; // r0
AchievementManager *v11; // r0
AchievementManager *v12; // r0
AchievementManager *isAchievementEarned; // r0
cocos2d::CCDictionary *v14; // r5
cocos2d::CCObject *v15; // r0
AchievementManager *v16; // r0
AchievementManager *v17; // r0
AchievementManager *v18; // r0
cocos2d::CCDictionary *v19; // r5
cocos2d::CCObject *v20; // r0
AchievementManager *v21; // r0
AchievementManager *v22; // r0
cocos2d::CCDictionary *v23; // r5
cocos2d::CCObject *v24; // r0
AchievementManager *v25; // r0
AchievementManager *v26; // r0
cocos2d::CCDictionary *v27; // r5
cocos2d::CCObject *v28; // r0
AchievementManager *v29; // r0
AchievementManager *v30; // r0
cocos2d::CCDictionary *v31; // r5
cocos2d::CCObject *v32; // r0
AchievementManager *v33; // r0
AchievementManager *v34; // r0
cocos2d::CCDictionary *v35; // r5
cocos2d::CCObject *v36; // r0
AchievementManager *v37; // r0
GameManager *v38; // r0
cocos2d::CCDictionary *v39; // r5
cocos2d::CCObject *v40; // r0
GameManager *v41; // r0
const char *v42; // r1
cocos2d::CCDictionary *v43; // r5
cocos2d::CCObject *v44; // r0
float *v45; // r8
void (__fastcall *v46)(float *, _DWORD *); // r10
void (__fastcall *v47)(float *, _DWORD *); // r10
void (__fastcall *v48)(float *, _DWORD *); // r3
const char *v49; // r2
int v50; // r8
void (__fastcall *v51)(int, _DWORD *); // r11
const char *v52; // r2
int v53; // r0
int v54; // r3
int v55; // r11
int v56; // r10
int *v57; // r0
int v58; // r3
int v59; // r8
const char *v60; // r1
int v61; // r0
cocos2d::CCMenu *v62; // r8
const cocos2d::CCPoint *v63; // r6
cocos2d::CCDirector *v64; // r0
int (__fastcall *v65)(const cocos2d::CCPoint *, _DWORD *); // r10
cocos2d::CCDirector *v66; // r0
float v67; // s18
cocos2d::CCDirector *v68; // r0
float v69; // r0
PlatformToolbox *v70; // r0
const char *v71; // r1
cocos2d::CCMenuItem *v72; // r2
const cocos2d::CCPoint *v73; // r8
const char *v74; // r1
int v75; // r10
void (__fastcall *v76)(int, _DWORD *); // r11
int v77; // r0
int v78; // r8
void (__fastcall *v79)(int, _DWORD *); // r11
GameManager *v80; // r0
GameManager *v81; // r0
const char *v82; // r1
char *v83; // r0
int v84; // r0
int v85; // r0
int v86; // r9
int (__fastcall *v87)(int, _DWORD *); // r11
cocos2d::CCArray *v88; // r0
cocos2d::CCObject *v89; // r0
const char *v90; // r1
int v91; // r10
int v92; // r0
int v93; // r8
void (__fastcall *v94)(int, _DWORD *); // r11
const char *v95; // r2
cocos2d::CCObject *v96; // r8
void (__fastcall *v97)(cocos2d::CCObject *, _DWORD *); // r9
const char *v98; // r2
cocos2d::CCObject *v99; // r9
int v100; // r8
GameStatsManager *v101; // r0
GameStatsManager *v102; // r0
GameManager *Stat; // r0
const char *v104; // r1
cocos2d::CCObject *v105; // r10
void (__fastcall *v106)(cocos2d::CCObject *, _DWORD *); // r8
cocos2d::CCString *v107; // r0
cocos2d::CCLabelBMFont *CString; // r0
const char *v109; // r2
cocos2d::CCObject *v110; // r8
void (__fastcall *v111)(cocos2d::CCObject *, _DWORD *); // r10
GameManager *v112; // r0
GameManager *UGV; // r0
unsigned int v114; // r6
GameManager *v115; // r0
int v116; // r0
GameLevelManager *v117; // r0
int v118; // r3
GJGameLevel *MainLevel; // r0
int NormalPercent; // r0
float v121; // r1
cocos2d::CCSequence *v122; // r0
cocos2d::CCSequence *v123; // r8
cocos2d::CCFiniteTimeAction *v124; // r0
cocos2d::CCAction *v125; // r0
const char *v127; // [sp+8h] [bp-94h]
cocos2d::CCTextureCache *v128; // [sp+Ch] [bp-90h]
void (__fastcall *v129)(int, _DWORD *); // [sp+14h] [bp-88h]
void (__fastcall *v130)(cocos2d::CCObject *, _DWORD *); // [sp+14h] [bp-88h]
float v131; // [sp+18h] [bp-84h] BYREF
float v132; // [sp+1Ch] [bp-80h]
_BYTE v133[8]; // [sp+20h] [bp-7Ch] BYREF
_BYTE v134[8]; // [sp+28h] [bp-74h] BYREF
_BYTE v135[8]; // [sp+30h] [bp-6Ch] BYREF
_BYTE v136[8]; // [sp+38h] [bp-64h] BYREF
_BYTE v137[8]; // [sp+40h] [bp-5Ch] BYREF
int (__fastcall *v138)(SecretLayer2 *, cocos2d::CCObject *); // [sp+48h] [bp-54h]
int v139; // [sp+4Ch] [bp-50h]
int (__fastcall *v140)(SecretLayer2 *, cocos2d::CCObject *); // [sp+50h] [bp-4Ch]
int v141; // [sp+54h] [bp-48h]
int (__fastcall *v142)(SecretLayer2 *, cocos2d::CCObject *); // [sp+58h] [bp-44h]
int v143; // [sp+5Ch] [bp-40h]
_DWORD v144[2]; // [sp+60h] [bp-3Ch] BYREF
int v145; // [sp+68h] [bp-34h] BYREF
int v146; // [sp+6Ch] [bp-30h]
int v147; // [sp+70h] [bp-2Ch]
_BYTE v148[16]; // [sp+74h] [bp-28h] BYREF
_DWORD v149[4]; // [sp+84h] [bp-18h] BYREF
v2 = (cocos2d::CCTextureCache *)cocos2d::CCLayer::init(this);
v128 = v2;
if ( v2 )
{
v3 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v2);
v4 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCTextureCache::addImage(v3, "SecretSheet.png", 0);
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v4);
v6 = (GameManager *)cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v5, "SecretSheet.plist");
v145 = 0;
v146 = 0;
v147 = 0;
v7 = (FMODAudioEngine *)GameManager::sharedState(v6);
std::string::__init(&v145, "secretLoop02.mp3", 0x10u);
GameManager::fadeInMusic(v7, (unsigned __int8 *)&v145);
std::string::~string((int)&v145);
(*(void (__fastcall **)(SecretLayer2 *, int))(*(_DWORD *)this + 536))(this, 1);
v8 = (cocos2d::CCDirector *)(*(int (__fastcall **)(SecretLayer2 *, int))(*(_DWORD *)this + 544))(this, 1);
cocos2d::CCDirector::sharedDirector(v8);
WinSize = (cocos2d::CCDictionary *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v131);
v10 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(WinSize);
*((_DWORD *)this + 91) = v10;
v11 = (AchievementManager *)cocos2d::CCObject::retain(v10);
v12 = (AchievementManager *)AchievementManager::sharedState(v11);
isAchievementEarned = (AchievementManager *)AchievementManager::isAchievementEarned(v12, "geometry.ach.v2.secret01");
if ( !isAchievementEarned )
{
v14 = *((cocos2d::CCDictionary **)this + 91);
v15 = (cocos2d::CCObject *)SecretLayer2::nodeWithTag(this, 1);
isAchievementEarned = (AchievementManager *)cocos2d::CCDictionary::setObject(v14, v15, 1);
}
v16 = (AchievementManager *)AchievementManager::sharedState(isAchievementEarned);
v17 = (AchievementManager *)AchievementManager::isAchievementEarned(v16, "geometry.ach.secret06");
if ( v17 )
{
v18 = (AchievementManager *)AchievementManager::sharedState(v17);
v17 = (AchievementManager *)AchievementManager::isAchievementEarned(v18, "geometry.ach.v2.secret03");
if ( !v17 )
{
v19 = *((cocos2d::CCDictionary **)this + 91);
v20 = (cocos2d::CCObject *)SecretLayer2::nodeWithTag(this, 3);
v17 = (AchievementManager *)cocos2d::CCDictionary::setObject(v19, v20, 3);
}
}
v21 = (AchievementManager *)AchievementManager::sharedState(v17);
v22 = (AchievementManager *)AchievementManager::isAchievementEarned(v21, "geometry.ach.v2.secret05");
if ( !v22 )
{
v23 = *((cocos2d::CCDictionary **)this + 91);
v24 = (cocos2d::CCObject *)SecretLayer2::nodeWithTag(this, 5);
v22 = (AchievementManager *)cocos2d::CCDictionary::setObject(v23, v24, 5);
}
v25 = (AchievementManager *)AchievementManager::sharedState(v22);
v26 = (AchievementManager *)AchievementManager::isAchievementEarned(v25, "geometry.ach.v2.secret06");
if ( !v26 )
{
v27 = *((cocos2d::CCDictionary **)this + 91);
v28 = (cocos2d::CCObject *)SecretLayer2::nodeWithTag(this, 6);
v26 = (AchievementManager *)cocos2d::CCDictionary::setObject(v27, v28, 6);
}
v29 = (AchievementManager *)AchievementManager::sharedState(v26);
v30 = (AchievementManager *)AchievementManager::isAchievementEarned(v29, "geometry.ach.v2.secret08");
if ( !v30 )
{
v31 = *((cocos2d::CCDictionary **)this + 91);
v32 = (cocos2d::CCObject *)SecretLayer2::nodeWithTag(this, 8);
v30 = (AchievementManager *)cocos2d::CCDictionary::setObject(v31, v32, 8);
}
v33 = (AchievementManager *)AchievementManager::sharedState(v30);
v34 = (AchievementManager *)AchievementManager::isAchievementEarned(v33, "geometry.ach.v2.secret09");
if ( !v34 )
{
v35 = *((cocos2d::CCDictionary **)this + 91);
v36 = (cocos2d::CCObject *)SecretLayer2::nodeWithTag(this, 9);
v34 = (AchievementManager *)cocos2d::CCDictionary::setObject(v35, v36, 9);
}
v37 = (AchievementManager *)AchievementManager::sharedState(v34);
v38 = (GameManager *)AchievementManager::isAchievementEarned(v37, "geometry.ach.v2.secret10");
if ( !v38 )
{
v39 = *((cocos2d::CCDictionary **)this + 91);
v40 = (cocos2d::CCObject *)SecretLayer2::nodeWithTag(this, 10);
v38 = (GameManager *)cocos2d::CCDictionary::setObject(v39, v40, 10);
}
v41 = (GameManager *)GameManager::sharedState(v38);
if ( !GameManager::getUGV(v41, (char *)a1i2r3e45s789g) )
{
v43 = *((cocos2d::CCDictionary **)this + 91);
v44 = (cocos2d::CCObject *)SecretLayer2::nodeWithTag(this, 20);
cocos2d::CCDictionary::setObject(v43, v44, 20);
}
v45 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v42);
v46 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v45 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v149, 0.0, 0.0);
v46(v45, v149);
(*(void (__fastcall **)(SecretLayer2 *, float *, int))(*(_DWORD *)this + 232))(this, v45, -3);
(*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v45 + 64))(v45, (float)(v131 + 10.0) / v45[86]);
(*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v45 + 72))(v45, (float)(v132 + 10.0) / v45[87]);
v47 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v45 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v149, -5.0, -5.0);
v47(v45, v149);
v48 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v45 + 480);
LOWORD(v149[0]) = 75;
BYTE2(v149[0]) = 100;
v48(v45, v149);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v148, 0.0, 0.0, 40.0, 40.0);
v50 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Vault of Secrets", "goldFont.fnt", v49);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v50 + 80))(v50, 1065353216);
(*(void (__fastcall **)(SecretLayer2 *, int))(*(_DWORD *)this + 228))(this, v50);
v51 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v50 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v149, v131 * 0.5, v132 - 24.0);
v51(v50, v149);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, v131 * 0.5, (float)(v132 * 0.5) + 50.0);
v53 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "bigFont.fnt", v52);
v54 = *(_DWORD *)this;
*((_DWORD *)this + 89) = v53;
(*(void (__fastcall **)(SecretLayer2 *, int))(v54 + 228))(this, v53);
v55 = *((_DWORD *)this + 89);
v129 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v55 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, 0.0, 43.0);
cocos2d::CCPoint::operator+(v149, v133, v144);
v129(v55, v149);
SecretLayer2::getMessage((SecretLayer2 *)&v145, this);
SecretLayer2::updateMessageLabel((int)this, (int)&v145);
std::string::~string((int)&v145);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v149, (const cocos2d::CCRect *)v148);
v56 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v149);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v56 + 456))(v56, 100);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v134, 200.0, 40.0);
(*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v56 + 160))(v56, v134);
(*(void (__fastcall **)(SecretLayer2 *, int, int))(*(_DWORD *)this + 232))(this, v56, -2);
(*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v56 + 92))(v56, v133);
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v56 + 480))(v56, &unk_BEEBEA);
v57 = CCTextInputNode::create(
(CCTextInputNode *)0x43340000,
50.0,
"...",
"Thonburi",
(const char *)&dword_18,
"bigFont.fnt",
v127);
v58 = *(_DWORD *)this;
*((_DWORD *)this + 88) = v57;
(*(void (__fastcall **)(SecretLayer2 *, int *, int))(v58 + 232))(this, v57, 20);
*(_DWORD *)(*((_DWORD *)this + 88) + 420) = (char *)this + 316;
(*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 88) + 92))(*((_DWORD *)this + 88), v133);
CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 88), 0.7);
CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 88), 180.0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 88) + 416) + 172))(
*(_DWORD *)(*((_DWORD *)this + 88) + 416),
0);
*(_DWORD *)(*((_DWORD *)this + 88) + 424) = 100;
v59 = *((_DWORD *)this + 88);
v145 = 0;
v146 = 0;
v147 = 0;
std::string::__init(
&v145,
" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~",
0x61u);
CCTextInputNode::setAllowedChars(v59, (unsigned __int8 *)&v145);
std::string::~string((int)&v145);
SecretLayer2::updateSearchLabel(this, (const char *)&unk_B6B226);
v61 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v60);
v139 = 0;
v138 = SecretLayer2::onBack;
v62 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v61, 0, (int)this, (int)SecretLayer2::onBack, 0);
CCMenuItemSpriteExtra::setSizeMult((int)v62, 1.5);
v63 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v62, nullptr);
v64 = (cocos2d::CCDirector *)(*(int (__fastcall **)(SecretLayer2 *, const cocos2d::CCPoint *, int))(*(_DWORD *)this + 232))(
this,
v63,
1);
v65 = *(int (__fastcall **)(const cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v63 + 92);
v66 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v64);
v67 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v66));
v68 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v67));
v69 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v68));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v149, v67 + 24.0, v69 - 23.0);
v70 = (PlatformToolbox *)v65(v63, v149);
if ( PlatformToolbox::isControllerConnected(v70) )
GameToolbox::addBackButton(this, v62, v72);
v73 = (const cocos2d::CCPoint *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_secretLock2_001.png",
v71);
v75 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_secretLock2_2_001.png", v74);
(*(void (__fastcall **)(const cocos2d::CCPoint *, int, int))(*(_DWORD *)v73 + 232))(v73, v75, -1);
v76 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v75 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v149, v73);
v76(v75, v149);
v141 = 0;
v140 = SecretLayer2::onSubmit;
v77 = CCMenuItemSpriteExtra::create((int)v73, 0, (int)this, (int)SecretLayer2::onSubmit, 0);
*((_DWORD *)this + 90) = v77;
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v63 + 228))(v63, v77);
v78 = *((_DWORD *)this + 90);
v79 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v78 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, v131 * 0.5, (float)(v132 * 0.5) - 20.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v149, v63);
v79(v78, v149);
v80 = (GameManager *)CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 90), 0.7);
v81 = (GameManager *)GameManager::sharedState(v80);
if ( GameManager::getUGV(v81, (char *)&a1i2r3e45s789g[6]) )
v83 = "secretDoor_open_001.png";
else
v83 = "secretDoor_closed_001.png";
v84 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v83, v82);
v143 = 0;
v142 = SecretLayer2::onDoor;
v85 = CCMenuItemSpriteExtra::create(v84, 0, (int)this, (int)SecretLayer2::onDoor, 0);
*((_DWORD *)this + 96) = v85;
*(_BYTE *)(v85 + 320) = 0;
*(_BYTE *)(*((_DWORD *)this + 96) + 321) = 1;
(*(void (__fastcall **)(const cocos2d::CCPoint *, _DWORD))(*(_DWORD *)v63 + 228))(v63, *((_DWORD *)this + 96));
v86 = *((_DWORD *)this + 96);
v87 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v86 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, v131 - 45.0, 45.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v149, v63);
v88 = (cocos2d::CCArray *)v87(v86, v149);
v89 = (cocos2d::CCObject *)cocos2d::CCArray::create(v88);
*((_DWORD *)this + 95) = v89;
cocos2d::CCObject::retain(v89);
v91 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_playBtn2_001.png", v90);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v91 + 80))(v91, 1056964608);
v144[1] = 0;
v144[0] = SecretLayer2::onSecretLevel;
v92 = CCMenuItemSpriteExtra::create(v91, 0, (int)this, (int)SecretLayer2::onSecretLevel, 0);
*((_DWORD *)this + 94) = v92;
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v63 + 228))(v63, v92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v135, v131 - 45.0, 130.0);
v93 = *((_DWORD *)this + 94);
v94 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v93 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v149, v63);
v94(v93, v149);
v96 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"The", "bigFont.fnt", v95);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v96 + 80))(v96, 1053609165);
(*(void (__fastcall **)(SecretLayer2 *, cocos2d::CCObject *))(*(_DWORD *)this + 228))(this, v96);
v97 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v96 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, 0.0, 46.0);
cocos2d::CCPoint::operator+(v149, v135, v137);
v97(v96, v149);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 95), v96);
v99 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Challenge", "bigFont.fnt", v98);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v99 + 80))(v99, 1053609165);
(*(void (__fastcall **)(SecretLayer2 *, cocos2d::CCObject *))(*(_DWORD *)this + 228))(this, v99);
v130 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v99 + 92);
v100 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v96 + 96))(v96);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, 0.0, -15.0);
cocos2d::CCPoint::operator+(v149, v100, v137);
v130(v99, v149);
v101 = (GameStatsManager *)cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 95), v99);
v102 = (GameStatsManager *)GameStatsManager::sharedState(v101);
Stat = (GameManager *)GameStatsManager::getStat(v102, "13");
if ( (int)Stat <= 199 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v149, 3.0, -30.0);
cocos2d::CCPoint::operator+(v136, v135, v149);
v105 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_diamondsIcon_001.png",
v104);
(*(void (__fastcall **)(SecretLayer2 *, cocos2d::CCObject *))(*(_DWORD *)this + 228))(this, v105);
v106 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v105 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, 12.0, -1.0);
cocos2d::CCPoint::operator+(v149, v136, v137);
v106(v105, v149);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v105 + 80))(v105, 1060320051);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 95), v105);
v107 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)&dword_C8);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v107);
v110 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v109);
(*(void (__fastcall **)(SecretLayer2 *, cocos2d::CCObject *))(*(_DWORD *)this + 228))(this, v110);
v111 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v110 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, -8.5, 0.0);
cocos2d::CCPoint::operator+(v149, v136, v137);
v111(v110, v149);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v110 + 80))(v110, 1053609165);
Stat = (GameManager *)cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 95), v110);
}
v112 = (GameManager *)GameManager::sharedState(Stat);
UGV = (GameManager *)GameManager::getUGV(v112, (char *)a1i2r3e45s789g);
v114 = (unsigned int)UGV;
if ( !UGV )
{
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 94) + 528))(*((_DWORD *)this + 94), 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 94) + 172))(*((_DWORD *)this + 94), 0);
while ( 1 )
{
UGV = (GameManager *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 95));
if ( v114 >= (unsigned int)UGV )
break;
v116 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 95), v114++);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v116 + 172))(v116, 0);
}
}
v115 = (GameManager *)GameManager::sharedState(UGV);
if ( !GameManager::getUGV(v115, (char *)&a1i2r3e45s789g[6]) )
{
v117 = (GameLevelManager *)GameLevelManager::sharedState(nullptr);
MainLevel = (GJGameLevel *)GameLevelManager::getMainLevel(v117, (char *)&stru_BAC.st_other, 1, v118);
NormalPercent = GJGameLevel::getNormalPercent(MainLevel);
if ( NormalPercent > 99 )
{
v122 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3F4CCCCD, v121);
v149[1] = 0;
v149[0] = SecretLayer2::showCompletedLevel;
v123 = v122;
v124 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, SecretLayer2::showCompletedLevel, 0);
v125 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v123, v124, 0);
cocos2d::CCNode::runAction(this, v125);
}
}
}
return v128;
}