//
// SecretLayer5::init from 0xbc7ea8 to 0xbc8c90 (3560 bytes)
//
// 3 xrefs:
// > SecretLayer5::create @ 0xbc369c
// > ??> @ 0x7ffd8
// > ??> @ 0x14dfa90
//
// 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:03:33 +0000
//
__int64 __fastcall SecretLayer5::init(SecretLayer5 *this)
{
cocos2d::CCTextureCache *v2; // x0
unsigned int v3; // w24
cocos2d::CCTextureCache *v5; // x0
cocos2d::CCSpriteFrameCache *v6; // x0
cocos2d::CCSpriteFrameCache *v7; // x0
cocos2d::CCTextureCache *v8; // x0
cocos2d::CCTextureCache *v9; // x0
cocos2d::CCSpriteFrameCache *v10; // x0
cocos2d::CCSpriteFrameCache *v11; // x0
GameManager *v12; // x0
__int64 v13; // x20
cocos2d::CCDirector *v14; // x0
cocos2d::CCDirector *v15; // x0
unsigned int v16; // w0
unsigned __int64 v17; // x2
const char *v18; // x1
__int64 v19; // x0
__int64 v20; // x0
void (__fastcall *v21)(__int64, __int64 *); // x2
const char *v22; // x2
__int64 v23; // x0
__int64 v24; // x2
__int64 v25; // x0
const char *v26; // x4
__int64 v27; // x0
__int64 v28; // x26
const char *v29; // x1
__int64 v30; // x0
cocos2d::CCMenu *v31; // x28
cocos2d::CCDirector **v32; // x26
cocos2d::CCDirector *v33; // x0
cocos2d::CCDirector *ScreenLeft; // x0
float v35; // s0
float v36; // s8
cocos2d::CCDirector *v37; // x0
float v38; // s0
PlatformToolbox *v39; // x0
cocos2d::CCMenuItem *v40; // x2
cocos2d::CCSprite *v41; // x0
char v42; // w1
cocos2d::CCSprite *v43; // x0
char v44; // w1
void (__fastcall *v45)(cocos2d::CCSprite *, __int64 *); // x2
void (__fastcall *v46)(cocos2d::CCSprite *, __int64 *); // x28
const char *v47; // x1
__int64 v48; // x0
void (__fastcall *v49)(cocos2d::CCSprite *, __int64 *); // x28
cocos2d::CCNode *v50; // x0
__int64 v51; // x28
__int64 v52; // x0
__int64 v53; // x0
void (__fastcall *v54)(__int64, __int64 *); // x2
__int64 v55; // x0
LoadingCircleSprite *v56; // x0
cocos2d::CCSprite *v57; // x0
__int64 v58; // x0
__int64 (__fastcall *v59)(__int64, __int64 *); // x2
GameManager *v60; // x0
__int64 v61; // x0
GameManager *v62; // x0
GameManager *v63; // x0
const char *FontFile; // x26
__int64 v65; // x22
int v66; // w26
__int64 v67; // x22
cocos2d::CCArray *v68; // x0
cocos2d::CCObject *v69; // x0
const char *v70; // x1
__int64 v71; // x25
void (__fastcall *v72)(__int64, __int64 *); // x2
__int64 (__fastcall *v73)(__int64, __int64 *); // x22
float v74; // s2
cocos2d::CCArray *v75; // x0
cocos2d::CCArray *v76; // x22
__int64 v77; // x25
cocos2d::CCArray *v78; // x25
cocos2d::CCObject *v79; // x0
cocos2d::CCArray *v80; // x25
cocos2d::CCObject *v81; // x0
GameLevelManager *v82; // x0
GameManager *v83; // x0
GameManager *v84; // x0
cocos2d::CCDelayTime *UGV; // x0
cocos2d::CCSequence *v86; // x20
cocos2d::CCFiniteTimeAction *v87; // x0
cocos2d::CCAction *v88; // x0
cocos2d::CCNode *v89; // [xsp+B0h] [xbp+B0h]
cocos2d::CCNode *v90; // [xsp+B0h] [xbp+B0h]
cocos2d::CCNode *v91; // [xsp+B0h] [xbp+B0h]
cocos2d::CCNode *v92; // [xsp+B0h] [xbp+B0h]
cocos2d::CCNode *v93; // [xsp+B0h] [xbp+B0h]
cocos2d::CCNode *v94; // [xsp+B0h] [xbp+B0h]
cocos2d::CCNode *v95; // [xsp+B0h] [xbp+B0h]
cocos2d::CCNode *v96; // [xsp+B0h] [xbp+B0h]
cocos2d::CCNode *v97; // [xsp+B0h] [xbp+B0h]
cocos2d::CCSprite *v98; // [xsp+B8h] [xbp+B8h]
cocos2d::CCSprite *v99; // [xsp+B8h] [xbp+B8h]
cocos2d::CCSprite *v100; // [xsp+B8h] [xbp+B8h]
cocos2d::CCSprite *v101; // [xsp+B8h] [xbp+B8h]
cocos2d::CCSprite *v102; // [xsp+B8h] [xbp+B8h]
cocos2d::CCSprite *v103; // [xsp+B8h] [xbp+B8h]
cocos2d::CCSprite *v104; // [xsp+B8h] [xbp+B8h]
cocos2d::CCSprite *v105; // [xsp+B8h] [xbp+B8h]
cocos2d::CCSprite *v106; // [xsp+B8h] [xbp+B8h]
cocos2d::CCSprite *v107; // [xsp+B8h] [xbp+B8h]
cocos2d::CCSprite *v108; // [xsp+B8h] [xbp+B8h]
cocos2d::CCSprite *v109; // [xsp+B8h] [xbp+B8h]
__int64 v110; // [xsp+C0h] [xbp+C0h] BYREF
_BYTE v111[8]; // [xsp+C8h] [xbp+C8h] BYREF
_BYTE v112[8]; // [xsp+D0h] [xbp+D0h] BYREF
_BYTE v113[8]; // [xsp+D8h] [xbp+D8h] BYREF
_BYTE v114[16]; // [xsp+E0h] [xbp+E0h] BYREF
__int64 v115[2]; // [xsp+F0h] [xbp+F0h] BYREF
__int64 v116; // [xsp+100h] [xbp+100h] BYREF
__int64 v117; // [xsp+108h] [xbp+108h]
void *v118; // [xsp+110h] [xbp+110h]
v2 = (cocos2d::CCTextureCache *)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 = (cocos2d::CCTextureCache *)cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v7, "SecretSheet.plist");
v9 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v8);
v10 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCTextureCache::addImage(v9, "TowerSheet.png", 0);
v11 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v10);
v12 = (GameManager *)cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v11, "TowerSheet.plist");
v13 = GameManager::sharedState(v12);
v116 = 0;
v117 = 0;
v118 = nullptr;
std::string::__init(&v116, "secretLoop04.ogg", 0x10u);
GameManager::fadeInMusic(v13, (unsigned __int8 *)&v116);
if ( (v116 & 1) != 0 )
operator delete(v118);
(*(void (__fastcall **)(SecretLayer5 *, __int64))(*(_QWORD *)this + 1072LL))(this, 1);
v14 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(SecretLayer5 *, __int64))(*(_QWORD *)this + 1088LL))(
this,
1);
v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v14);
cocos2d::CCDirector::getWinSize(&v110, v15);
std::vector::assign((__int64 *)this + 74, byte_1197180, &byte_1197180[68]);
v16 = time(nullptr);
srand(v16);
v89 = *((cocos2d::CCNode **)this + 74);
v98 = *((cocos2d::CCSprite **)this + 75);
v17 = rand() % 0x7FFFFFFFuLL;
if ( !v17 )
v17 = 1;
v115[0] = v17;
std::shuffle,std::linear_congruential_engine>(
(unsigned __int64)v89,
(__int64)v98,
(__int64)v115);
v19 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v18);
*((_QWORD *)this + 72) = v19;
v90 = (cocos2d::CCNode *)v19;
v99 = *(cocos2d::CCSprite **)(*(_QWORD *)v19 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v115, 0.0, 0.0);
((void (__fastcall *)(cocos2d::CCNode *, __int64 *))v99)(v90, v115);
(*(void (__fastcall **)(SecretLayer5 *, _QWORD, __int64))(*(_QWORD *)this + 464LL))(
this,
*((_QWORD *)this + 72),
4294967293LL);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 72) + 128LL))(
*((_QWORD *)this + 72),
(float)(*(float *)&v110 + 10.0) / *(float *)(*((_QWORD *)this + 72) + 432LL));
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 72) + 144LL))(
*((_QWORD *)this + 72),
(float)(*((float *)&v110 + 1) + 10.0) / *(float *)(*((_QWORD *)this + 72) + 436LL));
v91 = *((cocos2d::CCNode **)this + 72);
v100 = *(cocos2d::CCSprite **)(*(_QWORD *)v91 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v115, -5.0, -5.0);
((void (__fastcall *)(cocos2d::CCNode *, __int64 *))v100)(v91, v115);
v20 = *((_QWORD *)this + 72);
v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v20 + 960LL);
LOWORD(v115[0]) = 3613;
BYTE2(v115[0]) = 47;
v21(v20, v115);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v114, 0.0, 0.0, 40.0, 40.0);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v111,
*(float *)&v110 * 0.5,
(float)(*((float *)&v110 + 1) * 0.5) + 55.0);
v23 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v22);
v24 = *(_QWORD *)this;
*((_QWORD *)this + 59) = v23;
(*(void (__fastcall **)(SecretLayer5 *))(v24 + 456))(this);
v92 = *((cocos2d::CCNode **)this + 59);
v101 = *(cocos2d::CCSprite **)(*(_QWORD *)v92 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v113, 0.0, 43.0);
cocos2d::CCPoint::operator+(v115, v111);
((void (__fastcall *)(cocos2d::CCNode *, __int64 *))v101)(v92, v115);
SecretLayer5::getMessage((__int64)&v116);
SecretLayer5::updateMessageLabel((__int64)this, (char *)&v116);
if ( (v116 & 1) != 0 )
operator delete(v118);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v115, (const cocos2d::CCRect *)v114);
v25 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v115);
*((_QWORD *)this + 78) = v25;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v25 + 912LL))(v25, 100);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v112, 200.0, 40.0);
(*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 78) + 320LL))(*((_QWORD *)this + 78), v112);
(*(void (__fastcall **)(SecretLayer5 *, _QWORD, __int64))(*(_QWORD *)this + 464LL))(
this,
*((_QWORD *)this + 78),
4294967294LL);
(*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 78) + 184LL))(*((_QWORD *)this + 78), v111);
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 78) + 960LL))(
*((_QWORD *)this + 78),
&byte_1197180[72]);
v27 = CCTextInputNode::create(
(CCTextInputNode *)"...",
180.0,
50.0,
"Thonburi",
(const char *)&off_18,
"bigFont.fnt",
v26);
*((_QWORD *)this + 58) = v27;
(*(void (__fastcall **)(SecretLayer5 *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v27, 20);
*(_QWORD *)(*((_QWORD *)this + 58) + 584LL) = (char *)this + 408;
(*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 58) + 184LL))(*((_QWORD *)this + 58), v111);
CCTextInputNode::setMaxLabelScale(*((CCTextInputNode **)this + 58), 0.7);
CCTextInputNode::setMaxLabelWidth(*((CCTextInputNode **)this + 58), 180.0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 58) + 576LL) + 344LL))(
*(_QWORD *)(*((_QWORD *)this + 58) + 576LL),
0);
*(_DWORD *)(*((_QWORD *)this + 58) + 592LL) = 100;
v116 = 0;
v28 = *((_QWORD *)this + 58);
v117 = 0;
v118 = nullptr;
std::string::__init(
&v116,
" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~",
0x61u);
CCTextInputNode::setAllowedChars(v28, (__int64)&v116);
if ( (v116 & 1) != 0 )
operator delete(v118);
SecretLayer5::updateSearchLabel(this, &byte_11B8890);
v30 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v29);
v31 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v30, 0, (__int64)this, (__int64)SecretLayer5::onBack, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v31, 1.5);
v32 = (cocos2d::CCDirector **)cocos2d::CCMenu::create(v31, nullptr);
(*(void (__fastcall **)(SecretLayer5 *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))(this, v32, 1);
v102 = *((cocos2d::CCSprite **)*v32 + 23);
v33 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v32);
ScreenLeft = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v33);
v36 = v35;
v37 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenLeft);
cocos2d::CCDirector::getScreenTop(v37);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v115, v36 + 24.0, v38 - 23.0);
v39 = (PlatformToolbox *)((__int64 (__fastcall *)(cocos2d::CCDirector **, __int64 *))v102)(v32, v115);
if ( (unsigned __int8)PlatformToolbox::isControllerConnected(v39) )
GameToolbox::addBackButton(this, v31, v40);
v116 = 0;
v117 = 0;
v118 = nullptr;
std::string::__init(&v116, "GJ_secretLock4_001.png", 0x16u);
v41 = CCSpriteWithHue::createWithSpriteFrameName((char *)&v116);
v42 = v116;
*((_QWORD *)this + 69) = v41;
if ( (v42 & 1) != 0 )
operator delete(v118);
v116 = 0;
v117 = 0;
v118 = nullptr;
std::string::__init(&v116, "GJ_secretLock4_001.png", 0x16u);
v43 = CCSpriteGrayscale::createWithSpriteFrameName((char *)&v116);
v44 = v116;
*((_QWORD *)this + 70) = v43;
if ( (v44 & 1) != 0 )
{
operator delete(v118);
v43 = *((cocos2d::CCSprite **)this + 70);
}
v45 = *(void (__fastcall **)(cocos2d::CCSprite *, __int64 *))(*(_QWORD *)v43 + 960LL);
LOWORD(v115[0]) = 25800;
BYTE2(v115[0]) = -1;
v45(v43, v115);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 69) + 464LL))(
*((_QWORD *)this + 69),
*((_QWORD *)this + 70),
1);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 70) + 912LL))(*((_QWORD *)this + 70), 0);
v103 = *((cocos2d::CCSprite **)this + 70);
v93 = *((cocos2d::CCNode **)this + 69);
v46 = *(void (__fastcall **)(cocos2d::CCSprite *, __int64 *))(*(_QWORD *)v103 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v113, 0.0, 0.0);
cocos2d::CCNode::convertToNodeSpace(v115, v93, (const cocos2d::CCPoint *)v113);
v46(v103, v115);
v48 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_secretLock4_eyes_001.png", v47);
*((_QWORD *)this + 71) = v48;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v48 + 1080LL))(v48, 0x100000302LL);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 69) + 464LL))(
*((_QWORD *)this + 69),
*((_QWORD *)this + 71),
2);
v104 = *((cocos2d::CCSprite **)this + 71);
v94 = *((cocos2d::CCNode **)this + 69);
v49 = *(void (__fastcall **)(cocos2d::CCSprite *, __int64 *))(*(_QWORD *)v104 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v113, 0.0, 0.0);
cocos2d::CCNode::convertToNodeSpace(v115, v94, (const cocos2d::CCPoint *)v113);
v49(v104, v115);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 71) + 912LL))(*((_QWORD *)this + 71), 0);
v50 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_secretLock2_2_001.png",
"GJ_secretLock2_2_001.png");
v51 = cocos2d::CCNode::create(v50);
v52 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_secretLock2_2_001.png",
"GJ_secretLock2_2_001.png");
*((_QWORD *)this + 73) = v52;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v51 + 464LL))(v51, v52, 0xFFFFFFFFLL);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 69) + 464LL))(
*((_QWORD *)this + 69),
v51,
4294967294LL);
v95 = *((cocos2d::CCNode **)this + 69);
v105 = *(cocos2d::CCSprite **)(*(_QWORD *)v51 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v113, 0.0, -30.0);
cocos2d::CCNode::convertToNodeSpace(v115, v95, (const cocos2d::CCPoint *)v113);
((void (__fastcall *)(__int64, __int64 *))v105)(v51, v115);
v96 = *((cocos2d::CCNode **)this + 73);
v106 = *(cocos2d::CCSprite **)(*(_QWORD *)v96 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v115, 0.0, 25.0);
((void (__fastcall *)(cocos2d::CCNode *, __int64 *))v106)(v96, v115);
v53 = *((_QWORD *)this + 73);
v54 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 960LL);
LOWORD(v115[0]) = 18286;
BYTE2(v115[0]) = -103;
v54(v53, v115);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 69) + 160LL))(*((_QWORD *)this + 69), 1.2);
v55 = CCMenuItemSpriteExtra::create(*((_QWORD *)this + 69), 0, (__int64)this, (__int64)SecretLayer5::onSubmit, 0);
*((_QWORD *)this + 60) = v55;
(*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v32 + 57))(v32, v55);
v97 = *((cocos2d::CCNode **)this + 60);
v107 = *(cocos2d::CCSprite **)(*(_QWORD *)v97 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v113,
*(float *)&v110 * 0.5,
(float)(*((float *)&v110 + 1) * 0.5) + -25.0);
cocos2d::CCNode::convertToNodeSpace(v115, (cocos2d::CCNode *)v32, (const cocos2d::CCPoint *)v113);
((void (__fastcall *)(cocos2d::CCNode *, __int64 *))v107)(v97, v115);
v56 = (LoadingCircleSprite *)CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 60), 0.7);
v57 = LoadingCircleSprite::create(v56, 0.5);
*((_QWORD *)this + 79) = v57;
(*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v57 + 160LL))(v57, 0.5);
(*(void (__fastcall **)(SecretLayer5 *, _QWORD, __int64))(*(_QWORD *)this + 464LL))(
this,
*((_QWORD *)this + 79),
28);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 79) + 912LL))(*((_QWORD *)this + 79), 0);
(*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 79) + 184LL))(*((_QWORD *)this + 79), v111);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 79) + 1080LL))(*((_QWORD *)this + 79), 0x100000302LL);
v58 = *((_QWORD *)this + 79);
v59 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v58 + 960LL);
LOWORD(v115[0]) = 25800;
BYTE2(v115[0]) = -1;
v60 = (GameManager *)v59(v58, v115);
v61 = GameManager::sharedState(v60);
GameManager::loadFont(v61, 19);
v116 = 0;
v117 = 0;
v118 = nullptr;
v62 = (GameManager *)std::string::__init(&v116, &byte_11E1A70, 1u);
v63 = (GameManager *)GameManager::sharedState(v62);
FontFile = GameManager::getFontFile(v63, 19);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v115, 0.5, 1.0);
v65 = TextArea::create((char *)&v116, FontFile, (const cocos2d::CCPoint *)v115, 0, 0, 1.0, 533.33, 20.0);
*((_QWORD *)this + 80) = v65;
if ( (v116 & 1) != 0 )
{
operator delete(v118);
v65 = *((_QWORD *)this + 80);
}
v66 = 0;
v108 = *(cocos2d::CCSprite **)(*(_QWORD *)v65 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v115, 0.5, 0.5);
((void (__fastcall *)(__int64, __int64 *))v108)(v65, v115);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 80) + 160LL))(*((_QWORD *)this + 80), 0.75);
(*(void (__fastcall **)(SecretLayer5 *, _QWORD, __int64))(*(_QWORD *)this + 464LL))(this, *((_QWORD *)this + 80), 3);
v67 = *((_QWORD *)this + 80);
v109 = *(cocos2d::CCSprite **)(*(_QWORD *)v67 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v113, 0.0, 60.0);
cocos2d::CCPoint::operator+(v115, v111);
v68 = (cocos2d::CCArray *)((__int64 (__fastcall *)(__int64, __int64 *))v109)(v67, v115);
v69 = (cocos2d::CCObject *)cocos2d::CCArray::create(v68);
*((_QWORD *)this + 63) = v69;
cocos2d::CCObject::retain(v69);
while ( 1 )
{
v71 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"towerTorchInner_001.png", v70);
v72 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v71 + 960LL);
LOWORD(v115[0]) = 23160;
BYTE2(v115[0]) = -103;
v72(v71, v115);
(*(void (__fastcall **)(SecretLayer5 *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v71, 4);
v73 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v71 + 184LL);
v74 = v66 ? 195.0 : -195.0;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v115,
(float)(*(float *)&v110 * 0.5) + v74,
(float)(*((float *)&v110 + 1) * 0.5) + 4.0);
v75 = (cocos2d::CCArray *)v73(v71, v115);
v76 = (cocos2d::CCArray *)cocos2d::CCArray::create(v75);
v77 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v71 + 192LL))(v71);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v113, 0.0, 33.0);
cocos2d::CCPoint::operator+(v115, v77);
LevelAreaLayer::addTorch((__int64)this, (__int64)v115, 2, 4u, 1u, 1, v76, 1.0);
v78 = *((cocos2d::CCArray **)this + 63);
v79 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v76, 0);
cocos2d::CCArray::addObject(v78, v79);
v80 = *((cocos2d::CCArray **)this + 63);
v81 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v76, 1u);
cocos2d::CCArray::addObject(v80, v81);
if ( v66 )
break;
v66 = 1;
}
v82 = (GameLevelManager *)cocos2d::CCNode::scheduleUpdate(this);
v83 = (GameManager *)GameLevelManager::sharedState(v82);
*((_QWORD *)v83 + 177) = (char *)this + 432;
v84 = (GameManager *)GameManager::sharedState(v83);
UGV = (cocos2d::CCDelayTime *)(unsigned __int8)GameManager::getUGV(v84, "38");
if ( (_BYTE)UGV )
{
return (unsigned __int8)UGV;
}
else
{
*((_BYTE *)this + 544) = v66;
v86 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(UGV, 1.2);
v87 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, SecretLayer5::showFirstDialog, 0);
v88 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v86, v87, 0);
cocos2d::CCNode::runAction(this, v88);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 58) + 1000LL))(*((_QWORD *)this + 58), 0);
}
}
return v3;
}