//
// LevelAreaInnerLayer::init from 0xb5c760 to 0xb5d394 (3124 bytes)
//
// 2 xrefs:
// > LevelAreaInnerLayer::create @ 0xb5d45c
// > ??> @ 0xa1da0
//
// 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:02:10 +0000
//
__int64 __fastcall LevelAreaInnerLayer::init(LevelAreaInnerLayer *this, unsigned __int8 a2)
{
cocos2d::CCDirector *v4; // x0
cocos2d::CCDirector *v5; // x0
cocos2d::CCTextureCache *WinSize; // x0
cocos2d::CCTextureCache *v7; // x0
cocos2d::CCSpriteFrameCache *v8; // x0
cocos2d::CCSpriteFrameCache *v9; // x0
const char *v10; // x1
cocos2d::CCNode *v11; // x20
cocos2d::CCMenu *v12; // x21
cocos2d::CCFadeIn *v13; // x0
cocos2d::CCAction *v14; // x0
__int64 (__fastcall *v15)(cocos2d::CCDirector **, __int64 *); // x20
cocos2d::CCDirector *v16; // x0
cocos2d::CCDirector *ScreenLeft; // x0
float v18; // s0
float v19; // s8
cocos2d::CCDirector *v20; // x0
float v21; // s0
PlatformToolbox *v22; // x0
unsigned __int64 isControllerConnected; // x0
cocos2d::CCMenuItem *v24; // x2
cocos2d::CCNode *v25; // x22
__int64 v26; // x20
cocos2d::CCMenu *v27; // x0
cocos2d::CCNode *v28; // x26
const char *v29; // x1
__int64 v30; // x0
void (__fastcall *v31)(cocos2d::CCNode *, __int64 *); // x21
cocos2d::CCPoint *v32; // x0
int v33; // w27
GameLevelManager *v34; // x0
GameLevelManager *v35; // x0
GameStatsManager *v36; // x0
_BOOL8 hasCompletedMainLevel; // x0
unsigned int v38; // w28
GameStatsManager *v39; // x0
_BOOL4 v40; // w25
cocos2d::CCSprite *v41; // x0
__int64 v42; // x0
__int64 v43; // x2
__int64 v44; // x21
void (__fastcall *v45)(__int64, __int64 *); // x2
void (__fastcall *v46)(__int64, __int64 *); // x24
const char *v47; // x1
int v48; // w21
__int64 v49; // x0
__int64 v50; // x0
__int64 v51; // x25
void (__fastcall *v52)(__int64, __int64 *); // x28
const char *v53; // x1
__int64 v54; // x28
void (__fastcall *v55)(__int64, __int64 *); // x25
__int64 v56; // x25
cocos2d::CCNode *v57; // x21
cocos2d::CCDelayTime *v58; // x0
cocos2d::CCSequence *v59; // x25
unsigned __int8 v60; // w1
cocos2d::CCFiniteTimeAction *v61; // x0
cocos2d::CCAction *v62; // x0
cocos2d::CCDirector **v63; // x21
void (__fastcall *v64)(cocos2d::CCDirector **, __int64 *); // x25
cocos2d::CCDirector *v65; // x0
float v66; // s0
void (__fastcall *v67)(cocos2d::CCNode *, __int64 *); // x21
__int64 v68; // x25
const cocos2d::CCPoint *v69; // x1
cocos2d::CCEaseInOut *v70; // x0
cocos2d::CCActionInterval *v71; // x1
cocos2d::CCSequence *v72; // x21
const cocos2d::CCPoint *v73; // x1
cocos2d::CCEaseInOut *v74; // x0
cocos2d::CCActionInterval *v75; // x1
cocos2d::CCFiniteTimeAction *v76; // x0
cocos2d::CCRepeatForever *v77; // x0
cocos2d::CCActionInterval *v78; // x1
cocos2d::CCAction *v79; // x0
cocos2d::CCDelayTime *v80; // x0
cocos2d::CCSequence *v81; // x21
cocos2d::CCFiniteTimeAction *v82; // x0
cocos2d::CCAction *v83; // x0
cocos2d::CCSprite *v84; // x20
cocos2d::CCDelayTime *v85; // x0
cocos2d::CCSequence *v86; // x21
unsigned __int8 v87; // w1
cocos2d::CCFiniteTimeAction *v88; // x0
cocos2d::CCAction *v89; // x0
cocos2d::CCDirector **v90; // x20
void (__fastcall *v91)(cocos2d::CCDirector **, __int64 *); // x21
cocos2d::CCDirector *v92; // x0
cocos2d::CCDirector *ScreenRight; // x0
float v94; // s0
float v95; // s8
cocos2d::CCDirector *v96; // x0
float v97; // s0
GameManager *v98; // x0
unsigned int v99; // w25
GameStatsManager *v100; // x0
GameStatsManager *v101; // x21
const char *CoinKey; // x0
_BOOL4 hasSecretCoin; // w24
char *v104; // x0
__int64 v105; // x21
void (__fastcall *v106)(__int64, __int64 *); // x2
__int64 (__fastcall *v107)(__int64, __int64 *); // x28
float v108; // s1
__int64 v109; // x25
GameManager *v110; // x0
cocos2d::CCSequence *v111; // x19
cocos2d::CCFiniteTimeAction *v112; // x0
cocos2d::CCAction *v113; // x0
cocos2d::CCScaleTo *v114; // x0
cocos2d::CCEaseExponentialOut *v115; // x0
cocos2d::CCActionInterval *v116; // x1
cocos2d::CCAction *v117; // x0
cocos2d::CCDirector **v118; // [xsp+88h] [xbp+88h]
int v119; // [xsp+94h] [xbp+94h]
__int64 v120; // [xsp+A8h] [xbp+A8h]
unsigned __int8 v121; // [xsp+B0h] [xbp+B0h]
int v122; // [xsp+B4h] [xbp+B4h]
GameManager *MainLevel; // [xsp+B8h] [xbp+B8h]
__int64 v124; // [xsp+C8h] [xbp+C8h]
__int64 v125; // [xsp+D0h] [xbp+D0h] BYREF
__int64 v126; // [xsp+D8h] [xbp+D8h] BYREF
_BYTE v127[8]; // [xsp+E0h] [xbp+E0h] BYREF
__int64 v128; // [xsp+E8h] [xbp+E8h] BYREF
__int64 v129; // [xsp+F0h] [xbp+F0h] BYREF
__int64 v130; // [xsp+F8h] [xbp+F8h]
void *v131; // [xsp+100h] [xbp+100h]
_BYTE v132[8]; // [xsp+108h] [xbp+108h] BYREF
__int64 v133; // [xsp+110h] [xbp+110h] BYREF
__int64 v134; // [xsp+118h] [xbp+118h] BYREF
__int64 v135; // [xsp+120h] [xbp+120h] BYREF
v119 = a2;
v121 = cocos2d::CCLayer::init(this);
if ( !v121 )
return v121;
(*(void (__fastcall **)(LevelAreaInnerLayer *, __int64))(*(_QWORD *)this + 1072LL))(this, 1);
v4 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(LevelAreaInnerLayer *, __int64))(*(_QWORD *)this + 1088LL))(
this,
1);
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
WinSize = (cocos2d::CCTextureCache *)cocos2d::CCDirector::getWinSize(&v125, v5);
v7 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(WinSize);
v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCTextureCache::addImage(v7, "TowerSheet.png", 0);
v9 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v8);
cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v9, "TowerSheet.plist");
v11 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v10);
(*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v11 + 912LL))(v11, 0);
v12 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(
(__int64)v11,
0,
(__int64)this,
(__int64)LevelAreaInnerLayer::onBack,
0);
v13 = (cocos2d::CCFadeIn *)CCMenuItemSpriteExtra::setSizeMult((__int64)v12, 1.6);
v14 = (cocos2d::CCAction *)cocos2d::CCFadeIn::create(v13, 0.3);
cocos2d::CCNode::runAction(v11, v14);
v118 = (cocos2d::CCDirector **)cocos2d::CCMenu::create(v12, nullptr);
(*(void (__fastcall **)(LevelAreaInnerLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))(
this,
v118,
1);
v15 = *((__int64 (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v118 + 23);
v16 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v118);
ScreenLeft = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v16);
v19 = v18;
v20 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenLeft);
cocos2d::CCDirector::getScreenTop(v20);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v128, v19 + 24.0, v21 - 23.0);
v22 = (PlatformToolbox *)v15(v118, &v128);
isControllerConnected = (unsigned __int8)PlatformToolbox::isControllerConnected(v22);
if ( (_BYTE)isControllerConnected )
isControllerConnected = GameToolbox::addBackButton(this, v12, v24);
v25 = (cocos2d::CCNode *)cocos2d::CCNode::create((cocos2d::CCNode *)isControllerConnected);
v26 = 0;
v27 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(LevelAreaInnerLayer *, cocos2d::CCNode *))(*(_QWORD *)this + 456LL))(
this,
v25);
v28 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v27);
v30 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"towerBG_01_001.png", v29);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64, __int64))(*(_QWORD *)v25 + 464LL))(v25, v30, 1);
v31 = *(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(*(_QWORD *)v25 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v128, *(float *)&v125 * 0.5, *((float *)&v125 + 1) * 0.5);
v31(v25, &v128);
do
{
v32 = (cocos2d::CCPoint *)&v132[v26];
v26 += 8;
cocos2d::CCPoint::CCPoint(v32);
}
while ( v26 != 32 );
v124 = 0;
v122 = 0;
v33 = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v128, -95.5, -89.25);
cocos2d::CCPoint::operator=(v132, &v128);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v128, 103.75, -33.5);
cocos2d::CCPoint::operator=(&v133, &v128);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v128, -95.5, 21.25);
cocos2d::CCPoint::operator=(&v134, &v128);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v128, 57.5, 75.5);
cocos2d::CCPoint::operator=(&v135, &v128);
v34 = (GameLevelManager *)"towerDoor_unlocked_001.png";
do
{
v35 = (GameLevelManager *)GameLevelManager::sharedState(v34);
MainLevel = (GameManager *)GameLevelManager::getMainLevel(v35, (const char *)(unsigned int)(v33 + 5001), 1u);
v36 = (GameStatsManager *)GameStatsManager::sharedState(MainLevel);
hasCompletedMainLevel = GameStatsManager::hasCompletedMainLevel(v36, v33 + 5001);
v38 = hasCompletedMainLevel;
if ( !v33 )
{
if ( hasCompletedMainLevel )
{
v40 = 1;
LABEL_10:
v129 = 0;
v130 = 0;
v131 = nullptr;
++v122;
std::string::__init(&v129, "towerDoor_locked_001.png", 0x18u);
std::string::assign(&v129, "towerDoor_open_001.png", 0x16u);
goto LABEL_11;
}
v129 = 0;
v130 = 0;
v131 = nullptr;
std::string::__init(&v129, "towerDoor_locked_001.png", 0x18u);
LABEL_31:
std::string::assign(&v129, "towerDoor_unlocked_001.png", 0x1Au);
v40 = 1;
goto LABEL_11;
}
v39 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)hasCompletedMainLevel);
v40 = GameStatsManager::hasCompletedMainLevel(v39, v33 + 5000);
if ( v38 )
goto LABEL_10;
v129 = 0;
v130 = 0;
v131 = nullptr;
std::string::__init(&v129, "towerDoor_locked_001.png", 0x18u);
if ( v40 )
goto LABEL_31;
LABEL_11:
v41 = (cocos2d::CCSprite *)((char *)&v129 + 1);
if ( (v129 & 1) != 0 )
v41 = (cocos2d::CCSprite *)v131;
v120 = cocos2d::CCSprite::createWithSpriteFrameName(v41, (const char *)(unsigned __int8)v129);
v42 = CCMenuItemSpriteExtra::create(v120, 0, (__int64)this, (__int64)LevelAreaInnerLayer::onDoor, 0);
v43 = *(_QWORD *)v42;
*(_BYTE *)(v42 + 408) = 0;
*(_BYTE *)(v42 + 409) = 1;
v44 = v42;
(*(void (__fastcall **)(__int64, _QWORD))(v43 + 72))(v42, (unsigned int)(v33 + 5001));
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v28 + 456LL))(v28, v44);
if ( v38 < !v40 )
{
v45 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v120 + 960LL);
LOWORD(v128) = -6703;
BYTE2(v128) = -1;
v45(v120, &v128);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v44 + 1056LL))(v44, 0);
}
v46 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v44 + 184LL);
cocos2d::CCNode::convertToNodeSpace(&v128, v28, (const cocos2d::CCPoint *)&v132[v124]);
v46(v44, &v128);
if ( v38 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v128, 0.0, 32.0);
cocos2d::CCPoint::operator+(&v126, &v132[v124]);
v99 = 1;
v100 = (GameStatsManager *)"GJ_coinsIcon_gray_001.png";
do
{
v101 = (GameStatsManager *)GameStatsManager::sharedState(v100);
CoinKey = (const char *)GJGameLevel::getCoinKey(MainLevel, v99);
hasSecretCoin = GameStatsManager::hasSecretCoin(v101, CoinKey);
v104 = "GJ_coinsIcon_001.png";
if ( !hasSecretCoin )
v104 = "GJ_coinsIcon_gray_001.png";
v105 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v104, "GJ_coinsIcon_gray_001.png");
v106 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v105 + 960LL);
if ( hasSecretCoin )
{
LOWORD(v128) = -1;
BYTE2(v128) = -1;
}
else
{
LOWORD(v128) = -7711;
BYTE2(v128) = -31;
}
v106(v105, &v128);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v105 + 160LL))(v105, 0.7);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64, __int64))(*(_QWORD *)v25 + 464LL))(v25, v105, 10);
v107 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v105 + 184LL);
if ( v99 == 2 )
v108 = 8.0;
else
v108 = 0.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v127, (float)(int)(v99 - 2) * 20.0, v108);
cocos2d::CCPoint::operator+(&v128, &v126);
v100 = (GameStatsManager *)v107(v105, &v128);
++v99;
}
while ( v99 != 4 );
}
if ( (v129 & 1) != 0 )
operator delete(v131);
++v33;
v34 = (GameLevelManager *)(v124 + 8);
v124 += 8;
}
while ( v33 != 4 );
v48 = 1;
v49 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"towerLockedArrow_001.png", v47);
v50 = CCMenuItemSpriteExtra::create(v49, 0, (__int64)this, (__int64)LevelAreaInnerLayer::onNextFloor, 0);
*((_QWORD *)this + 52) = v50;
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v28 + 456LL))(v28, v50);
v51 = *((_QWORD *)this + 52);
v52 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v51 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v127, -96.0, 108.0);
cocos2d::CCNode::convertToNodeSpace(&v128, v28, (const cocos2d::CCPoint *)v127);
v52(v51, &v128);
(*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCNode *, __int64))(*(_QWORD *)v25 + 464LL))(v25, v28, 2);
while ( 1 )
{
v54 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"towerTorchInner_001.png", v53);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64, __int64))(*(_QWORD *)v25 + 464LL))(v25, v54, 4);
v55 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v54 + 184LL);
if ( v48 != 1 )
break;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v128, -195.0, 4.0);
v55(v54, &v128);
v109 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v54 + 192LL))(v54);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v127, 0.0, 33.0);
cocos2d::CCPoint::operator+(&v128, v109);
LevelAreaLayer::addTorch((__int64)v25, (__int64)&v128, 2, 4u, 1u, 0, nullptr, 1.0);
LABEL_43:
++v48;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v128, 195.0, 4.0);
v55(v54, &v128);
v56 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v54 + 192LL))(v54);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v127, 0.0, 33.0);
cocos2d::CCPoint::operator+(&v128, v56);
LevelAreaLayer::addTorch((__int64)v25, (__int64)&v128, 2, 4u, 1u, 0, nullptr, 1.0);
if ( v48 != 2 )
goto LABEL_43;
if ( !v119 )
{
v114 = (cocos2d::CCScaleTo *)(*(__int64 (__fastcall **)(cocos2d::CCNode *, float))(*(_QWORD *)v25 + 160LL))(
v25,
0.2);
v115 = (cocos2d::CCEaseExponentialOut *)cocos2d::CCScaleTo::create(v114, 1.0, 1.0);
v117 = (cocos2d::CCAction *)cocos2d::CCEaseExponentialOut::create(v115, v116);
cocos2d::CCNode::runAction(v25, v117);
}
v57 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_secretLock4_small_001.png",
v53);
v58 = (cocos2d::CCDelayTime *)(*(__int64 (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v57 + 912LL))(v57, 0);
v59 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v58, 0.5);
v61 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0xFFFFFFC8LL, 2.0, v60);
v62 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v59, v61, 0);
cocos2d::CCNode::runAction(v57, v62);
v63 = (cocos2d::CCDirector **)CCMenuItemSpriteExtra::create(
(__int64)v57,
0,
(__int64)this,
(__int64)LevelAreaInnerLayer::onOnlineVault,
0);
(*((void (__fastcall **)(cocos2d::CCDirector **, cocos2d::CCDirector **))*v118 + 57))(v118, v63);
v64 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v63 + 23);
v65 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v63);
cocos2d::CCDirector::getScreenRight(v65);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v127, v66 - 22.0, 23.0);
cocos2d::CCNode::convertToNodeSpace(&v128, (cocos2d::CCNode *)v118, (const cocos2d::CCPoint *)v127);
v64(v63, &v128);
v67 = *(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(*(_QWORD *)v25 + 184LL);
v68 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v25 + 192LL))(v25);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v127, 0.0, -2.0);
cocos2d::CCPoint::operator+(&v128, v68);
v67(v25, &v128);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v128, 0.0, 4.0);
v70 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveBy::create((cocos2d::CCMoveBy *)&v128, 2.0, v69);
v72 = (cocos2d::CCSequence *)cocos2d::CCEaseInOut::create(v70, v71, 2.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v128, 0.0, -4.0);
v74 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveBy::create((cocos2d::CCMoveBy *)&v128, 2.0, v73);
v76 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseInOut::create(v74, v75, 2.0);
v77 = (cocos2d::CCRepeatForever *)cocos2d::CCSequence::create(v72, v76, 0);
v79 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v77, v78);
v80 = (cocos2d::CCDelayTime *)cocos2d::CCNode::runAction(v25, v79);
v81 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v80, 0.0);
v82 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, LevelAreaInnerLayer::tryResumeTowerMusic, 0);
v83 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v81, v82, 0);
cocos2d::CCNode::runAction(this, v83);
v129 = 0;
v130 = 0;
v131 = nullptr;
std::string::__init(&v129, "GJ_infoIcon_001.png", 0x13u);
v84 = CCSpriteGrayscale::createWithSpriteFrameName((char *)&v129);
if ( (v129 & 1) != 0 )
operator delete(v131);
(*(void (__fastcall **)(cocos2d::CCSprite *, _QWORD))(*(_QWORD *)v84 + 912LL))(v84, 0);
v85 = (cocos2d::CCDelayTime *)(*(__int64 (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v84 + 160LL))(
v84,
0.8);
v86 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v85, 0.1);
v88 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0xFFFFFFC8LL, 1.0, v87);
v89 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v86, v88, 0);
cocos2d::CCNode::runAction(v84, v89);
v90 = (cocos2d::CCDirector **)CCMenuItemSpriteExtra::create(
(__int64)v84,
0,
(__int64)this,
(__int64)LevelAreaInnerLayer::onInfo,
0);
(*((void (__fastcall **)(cocos2d::CCDirector **, cocos2d::CCDirector **))*v118 + 57))(v118, v90);
v91 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v90 + 23);
v92 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v90);
ScreenRight = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v92);
v95 = v94;
v96 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenRight);
cocos2d::CCDirector::getScreenTop(v96);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v127, v95 - 20.0, v97 - 20.0);
cocos2d::CCNode::convertToNodeSpace(&v128, (cocos2d::CCNode *)v118, (const cocos2d::CCPoint *)v127);
v91(v90, &v128);
CCMenuItemSpriteExtra::setSizeMult((__int64)v90, 1.2);
if ( v122 == 4 )
{
v110 = (GameManager *)GameManager::sharedState((GameManager *)byte_4);
if ( !(unsigned __int8)GameManager::getUGV(v110, "33") )
{
*((_BYTE *)this + 424) = (unsigned __int8)&dword_0 + 1;
v111 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)((char *)&dword_0 + 1), 1.0);
v112 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(
this,
LevelAreaInnerLayer::showFloor1CompleteDialog,
0);
v113 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v111, v112, 0);
cocos2d::CCNode::runAction(this, v113);
goto LABEL_46;
}
LABEL_28:
v98 = (GameManager *)*((unsigned __int8 *)this + 424);
if ( *((_BYTE *)this + 424) )
return (unsigned __int8)v98;
LABEL_47:
*(_BYTE *)(GameManager::sharedState(v98) + 1064) = 0;
}
else
{
if ( v122 > 3 )
goto LABEL_28;
LABEL_46:
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 52) + 1056LL))(*((_QWORD *)this + 52), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 52) + 344LL))(*((_QWORD *)this + 52), 0);
v98 = (GameManager *)*((unsigned __int8 *)this + 424);
if ( !*((_BYTE *)this + 424) )
goto LABEL_47;
return (unsigned __int8)v98;
}
return v121;
}