//
// LevelAreaInnerLayer::init from 0x6a5300 to 0x6a5bcc (2252 bytes)
//
// 1 xrefs:
// > LevelAreaInnerLayer::create @ 0x6a5c64
//
// 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:56:30 +0000
//
int __fastcall LevelAreaInnerLayer::init(LevelAreaInnerLayer *this, int a2)
{
cocos2d::CCDirector *v3; // r0
cocos2d::CCTextureCache *WinSize; // r0
cocos2d::CCTextureCache *v5; // r0
cocos2d::CCSpriteFrameCache *v6; // r0
cocos2d::CCSpriteFrameCache *v7; // r0
const char *v8; // r1
cocos2d::CCNode *v9; // r8
cocos2d::CCMenu *v10; // r5
float v11; // r1
cocos2d::CCAction *v12; // r0
cocos2d::CCDirector *v13; // r0
int (__fastcall *v14)(cocos2d::CCPoint *, _DWORD *); // r8
cocos2d::CCDirector *v15; // r0
float v16; // s16
cocos2d::CCDirector *v17; // r0
float v18; // r0
PlatformToolbox *v19; // r0
cocos2d::CCNode *isControllerConnected; // r0
cocos2d::CCMenuItem *v21; // r2
int v22; // r9
cocos2d::CCNode *v23; // r5
cocos2d::CCMenu *v24; // r0
const cocos2d::CCPoint *v25; // r11
const char *v26; // r1
int v27; // r0
void (__fastcall *v28)(cocos2d::CCNode *, _DWORD *); // r8
cocos2d::CCPoint *v29; // r0
int v30; // r10
GameLevelManager *v31; // r0
GameLevelManager *v32; // r0
int v33; // r3
GameStatsManager *v34; // r0
GameStatsManager *hasCompletedMainLevel; // r0
GameStatsManager *v36; // r0
const char *v37; // r1
size_t v38; // r2
cocos2d::CCSprite *v39; // r0
int v40; // r8
_BYTE *v41; // r0
_BYTE *v42; // r7
void (__fastcall *v43)(int, _DWORD *); // r3
GameStatsManager *v44; // r0
int i; // r8
GameStatsManager *v46; // r7
const char *CoinKey; // r0
const char *v48; // r1
int hasSecretCoin; // r9
char *v50; // r0
int v51; // r0
int v52; // r7
void (__fastcall *v53)(int, _DWORD *); // r2
char v54; // r3
float v55; // r2
const char *v56; // r1
int v57; // r7
int v58; // r0
int v59; // r0
int v60; // r9
const char *v61; // r1
int v62; // r11
float v63; // r1
void (__fastcall *v64)(int, _DWORD *); // r9
int v65; // r11
float v66; // r2
cocos2d::CCEaseExponentialOut *v67; // r0
cocos2d::CCActionInterval *v68; // r1
cocos2d::CCAction *v69; // r0
cocos2d::CCNode *v70; // r7
float v71; // r1
cocos2d::CCSequence *v72; // r8
unsigned __int8 v73; // r2
cocos2d::CCFiniteTimeAction *v74; // r0
cocos2d::CCAction *v75; // r0
int v76; // r11
cocos2d::CCDirector *v77; // r0
void (__fastcall *v78)(int, _DWORD *); // r10
cocos2d::CCDirector *v79; // r0
float v80; // r0
void (__fastcall *v81)(cocos2d::CCNode *, _DWORD *); // r10
int v82; // r11
const cocos2d::CCPoint *v83; // r2
cocos2d::CCEaseInOut *v84; // r0
float v85; // r2
cocos2d::CCSequence *v86; // r9
const cocos2d::CCPoint *v87; // r2
cocos2d::CCEaseInOut *v88; // r0
float v89; // r2
cocos2d::CCFiniteTimeAction *v90; // r0
cocos2d::CCRepeatForever *v91; // r0
cocos2d::CCActionInterval *v92; // r1
cocos2d::CCAction *v93; // r0
float v94; // r1
cocos2d::CCSequence *v95; // r0
cocos2d::CCSequence *v96; // r5
cocos2d::CCFiniteTimeAction *v97; // r0
cocos2d::CCAction *v98; // r0
CCSpriteWithHue *v99; // r5
float v100; // r1
cocos2d::CCSequence *v101; // r8
unsigned __int8 v102; // r2
cocos2d::CCFiniteTimeAction *v103; // r0
cocos2d::CCAction *v104; // r0
int v105; // r5
cocos2d::CCDirector *v106; // r0
void (__fastcall *v107)(int, _DWORD *); // r9
cocos2d::CCDirector *v108; // r0
float v109; // s16
cocos2d::CCDirector *v110; // r0
float v111; // r0
GameManager *UGV; // r0
GameManager *v113; // r0
float v114; // r1
int (*v115)(void); // r3
int v116; // r4
cocos2d::CCSequence *v118; // r0
cocos2d::CCSequence *v119; // r8
cocos2d::CCFiniteTimeAction *v120; // r0
cocos2d::CCAction *v121; // r0
cocos2d::CCPoint *v122; // [sp+10h] [bp-B4h]
int v123; // [sp+14h] [bp-B0h]
GameStatsManager *v124; // [sp+18h] [bp-ACh]
void (__fastcall *v125)(int, _DWORD *); // [sp+18h] [bp-ACh]
int v126; // [sp+1Ch] [bp-A8h]
int v127; // [sp+20h] [bp-A4h]
void (__fastcall *v128)(_BYTE *, _DWORD *); // [sp+20h] [bp-A4h]
int (__fastcall *v129)(int, _DWORD *); // [sp+20h] [bp-A4h]
GJGameLevel *MainLevel; // [sp+28h] [bp-9Ch]
float v132[2]; // [sp+48h] [bp-7Ch] BYREF
_BYTE v133[8]; // [sp+50h] [bp-74h] BYREF
_BYTE *(__fastcall *v134)(_BYTE *, cocos2d::CCObject *); // [sp+58h] [bp-6Ch]
int v135; // [sp+5Ch] [bp-68h]
unsigned __int8 *(__fastcall *v136)(unsigned __int8 *, cocos2d::CCObject *); // [sp+60h] [bp-64h]
int v137; // [sp+64h] [bp-60h]
int (__fastcall *v138)(int, cocos2d::CCObject *); // [sp+68h] [bp-5Ch]
int v139; // [sp+6Ch] [bp-58h]
int (__fastcall *v140)(LevelAreaInnerLayer *, cocos2d::CCObject *); // [sp+70h] [bp-54h]
int v141; // [sp+74h] [bp-50h]
_DWORD v142[2]; // [sp+78h] [bp-4Ch] BYREF
_DWORD v143[2]; // [sp+80h] [bp-44h] BYREF
_DWORD v144[2]; // [sp+88h] [bp-3Ch] BYREF
int v145; // [sp+90h] [bp-34h] BYREF
int v146; // [sp+94h] [bp-30h]
cocos2d::CCSprite *v147; // [sp+98h] [bp-2Ch]
_BYTE v148[8]; // [sp+9Ch] [bp-28h] BYREF
_BYTE v149[8]; // [sp+A4h] [bp-20h] BYREF
_BYTE v150[8]; // [sp+ACh] [bp-18h] BYREF
_BYTE v151[8]; // [sp+B4h] [bp-10h] BYREF
v126 = cocos2d::CCLayer::init(this);
if ( !v126 )
return v126;
(*(void (__fastcall **)(LevelAreaInnerLayer *, int))(*(_DWORD *)this + 536))(this, 1);
v3 = (cocos2d::CCDirector *)(*(int (__fastcall **)(LevelAreaInnerLayer *, int))(*(_DWORD *)this + 544))(this, 1);
cocos2d::CCDirector::sharedDirector(v3);
WinSize = (cocos2d::CCTextureCache *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v132);
v5 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(WinSize);
v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCTextureCache::addImage(v5, "TowerSheet.png", 0);
v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6);
cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v7, "TowerSheet.plist");
v9 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v8);
(*(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)v9 + 456))(v9, 0);
v135 = 0;
v134 = LevelAreaInnerLayer::onBack;
v10 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create((int)v9, 0, (int)this, (int)LevelAreaInnerLayer::onBack, 0);
CCMenuItemSpriteExtra::setSizeMult((int)v10, 1.6);
v12 = (cocos2d::CCAction *)cocos2d::CCFadeIn::create((cocos2d::CCFadeIn *)0x3E99999A, v11);
cocos2d::CCNode::runAction(v9, v12);
v122 = (cocos2d::CCPoint *)cocos2d::CCMenu::create(v10, nullptr);
v13 = (cocos2d::CCDirector *)(*(int (__fastcall **)(LevelAreaInnerLayer *, cocos2d::CCPoint *, int))(*(_DWORD *)this + 232))(
this,
v122,
1);
v14 = *(int (__fastcall **)(cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v122 + 92);
v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v13);
v16 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v15));
v17 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v16));
v18 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v17));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, v16 + 24.0, v18 - 23.0);
v19 = (PlatformToolbox *)v14(v122, v144);
isControllerConnected = (cocos2d::CCNode *)PlatformToolbox::isControllerConnected(v19);
if ( isControllerConnected )
isControllerConnected = (cocos2d::CCNode *)GameToolbox::addBackButton(this, v10, v21);
v22 = 0;
v23 = (cocos2d::CCNode *)cocos2d::CCNode::create(isControllerConnected);
v24 = (cocos2d::CCMenu *)(*(int (__fastcall **)(LevelAreaInnerLayer *, cocos2d::CCNode *))(*(_DWORD *)this + 228))(
this,
v23);
v25 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v24);
v27 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"towerBG_01_001.png", v26);
(*(void (__fastcall **)(cocos2d::CCNode *, int, int))(*(_DWORD *)v23 + 232))(v23, v27, 1);
v28 = *(void (__fastcall **)(cocos2d::CCNode *, _DWORD *))(*(_DWORD *)v23 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, v132[0] * 0.5, v132[1] * 0.5);
v28(v23, v144);
do
{
v29 = (cocos2d::CCPoint *)&v148[v22];
v22 += 8;
cocos2d::CCPoint::CCPoint(v29);
}
while ( v22 != 32 );
v30 = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, -95.5, -89.25);
cocos2d::CCPoint::operator=(v148, v144);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, 103.75, -33.5);
cocos2d::CCPoint::operator=(v149, v144);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, -95.5, 21.25);
cocos2d::CCPoint::operator=(v150, v144);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, 57.5, 75.5);
v31 = (GameLevelManager *)cocos2d::CCPoint::operator=(v151, v144);
v123 = 0;
do
{
v32 = (GameLevelManager *)GameLevelManager::sharedState(v31);
MainLevel = (GJGameLevel *)GameLevelManager::getMainLevel(v32, (char *)(v30 + 5001), 1, v33);
v34 = (GameStatsManager *)GameStatsManager::sharedState(MainLevel);
hasCompletedMainLevel = (GameStatsManager *)GameStatsManager::hasCompletedMainLevel(v34, v30 - 119);
v124 = hasCompletedMainLevel;
if ( v30 )
{
v36 = (GameStatsManager *)GameStatsManager::sharedState(hasCompletedMainLevel);
v127 = GameStatsManager::hasCompletedMainLevel(v36, v30 - 120);
}
else
{
v127 = 1;
}
if ( v124 )
++v123;
v145 = 0;
v146 = 0;
v147 = nullptr;
std::string::__init(&v145, "towerDoor_locked_001.png", 0x18u);
if ( v124 )
{
v37 = "towerDoor_open_001.png";
v38 = 22;
LABEL_14:
std::string::assign(&v145, v37, v38);
goto LABEL_15;
}
if ( v127 )
{
v37 = "towerDoor_unlocked_001.png";
v38 = 26;
goto LABEL_14;
}
LABEL_15:
if ( (v145 & 1) != 0 )
v39 = v147;
else
v39 = (cocos2d::CCSprite *)((char *)&v145 + 1);
v40 = cocos2d::CCSprite::createWithSpriteFrameName(v39, (const char *)((unsigned __int8)v145 << 31));
v137 = 0;
v136 = LevelAreaInnerLayer::onDoor;
v41 = (_BYTE *)CCMenuItemSpriteExtra::create(v40, 0, (int)this, (int)LevelAreaInnerLayer::onDoor, 0);
v41[321] = 1;
v42 = v41;
v41[320] = 0;
(*(void (__fastcall **)(_BYTE *, int))(*(_DWORD *)v41 + 36))(v41, v30 + 5001);
(*(void (__fastcall **)(const cocos2d::CCPoint *, _BYTE *))(*(_DWORD *)v25 + 228))(v25, v42);
if ( !v124 && !v127 )
{
v43 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v40 + 480);
LOWORD(v144[0]) = -6703;
BYTE2(v144[0]) = -1;
v43(v40, v144);
(*(void (__fastcall **)(_BYTE *, _DWORD))(*(_DWORD *)v42 + 528))(v42, 0);
}
v128 = *(void (__fastcall **)(_BYTE *, _DWORD *))(*(_DWORD *)v42 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v144, v25);
v128(v42, v144);
if ( v124 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, 0.0, 32.0);
v44 = (GameStatsManager *)cocos2d::CCPoint::operator+(v142, &v148[8 * v30], v144);
for ( i = 1; i != 4; ++i )
{
v46 = (GameStatsManager *)GameStatsManager::sharedState(v44);
CoinKey = (const char *)GJGameLevel::getCoinKey(MainLevel, i);
hasSecretCoin = GameStatsManager::hasSecretCoin(v46, CoinKey);
if ( hasSecretCoin )
v50 = "GJ_coinsIcon_001.png";
else
v50 = "GJ_coinsIcon_gray_001.png";
v51 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v50, v48);
v52 = v51;
v53 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v51 + 480);
if ( hasSecretCoin )
{
v54 = -1;
LOWORD(v144[0]) = -1;
}
else
{
v54 = -31;
LOWORD(v144[0]) = -7711;
}
BYTE2(v144[0]) = v54;
v53(v51, v144);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v52 + 80))(v52, 1060320051);
(*(void (__fastcall **)(cocos2d::CCNode *, int, int))(*(_DWORD *)v23 + 232))(v23, v52, 10);
v129 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v52 + 92);
if ( i == 2 )
v55 = 8.0;
else
v55 = 0.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v143, (float)(i - 2) * 20.0, v55);
cocos2d::CCPoint::operator+(v144, v142, v143);
v44 = (GameStatsManager *)v129(v52, v144);
}
}
++v30;
v31 = (GameLevelManager *)std::string::~string((int)&v145);
}
while ( v30 != 4 );
v57 = 0;
v58 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"towerLockedArrow_001.png", v56);
v139 = 0;
v138 = LevelAreaInnerLayer::onNextFloor;
v59 = CCMenuItemSpriteExtra::create(v58, 0, (int)this, (int)LevelAreaInnerLayer::onNextFloor, 0);
*((_DWORD *)this + 80) = v59;
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v25 + 228))(v25, v59);
v60 = *((_DWORD *)this + 80);
v125 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v60 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v143, -96.0, 108.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v144, v25);
v125(v60, v144);
(*(void (__fastcall **)(cocos2d::CCNode *, const cocos2d::CCPoint *, int))(*(_DWORD *)v23 + 232))(v23, v25, 2);
while ( 1 )
{
v62 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"towerTorchInner_001.png", v61);
(*(void (__fastcall **)(cocos2d::CCNode *, int, int))(*(_DWORD *)v23 + 232))(v23, v62, 4);
v63 = v57 ? 195.0 : -195.0;
v64 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v62 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, v63, 4.0);
v64(v62, v144);
v65 = (*(int (__fastcall **)(int))(*(_DWORD *)v62 + 96))(v62);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v143, 0.0, 33.0);
cocos2d::CCPoint::operator+(v144, v65, v143);
LevelAreaLayer::addTorch((int)v23, (int)v144, 2, 1.0, 4, 1, 0, nullptr);
if ( v57 == 1 )
break;
v57 = 1;
}
if ( !a2 )
{
(*(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v23 + 80))(v23, 1045220557);
v67 = (cocos2d::CCEaseExponentialOut *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3F800000, 1.0, v66);
v69 = (cocos2d::CCAction *)cocos2d::CCEaseExponentialOut::create(v67, v68);
cocos2d::CCNode::runAction(v23, v69);
}
v70 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_secretLock4_small_001.png",
v61);
(*(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)v70 + 456))(v70, 0);
v72 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3F000000, v71);
v74 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeTo::create(
(cocos2d::CCFadeTo *)0x40000000,
COERCE_FLOAT(200),
v73);
v75 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v72, v74, 0);
cocos2d::CCNode::runAction(v70, v75);
v141 = 0;
v140 = LevelAreaInnerLayer::onOnlineVault;
v76 = CCMenuItemSpriteExtra::create((int)v70, 0, (int)this, (int)LevelAreaInnerLayer::onOnlineVault, 0);
v77 = (cocos2d::CCDirector *)(*(int (__fastcall **)(cocos2d::CCPoint *, int))(*(_DWORD *)v122 + 228))(v122, v76);
v78 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v76 + 92);
v79 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v77);
v80 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v79));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v143, v80 - 22.0, 23.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v144, v122);
v78(v76, v144);
v81 = *(void (__fastcall **)(cocos2d::CCNode *, _DWORD *))(*(_DWORD *)v23 + 92);
v82 = (*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v23 + 96))(v23);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v143, 0.0, -2.0);
cocos2d::CCPoint::operator+(v144, v82, v143);
v81(v23, v144);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, 0.0, 4.0);
v84 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveBy::create((cocos2d::CCMoveBy *)0x40000000, COERCE_FLOAT(v144), v83);
v86 = (cocos2d::CCSequence *)cocos2d::CCEaseInOut::create(v84, (cocos2d::CCActionInterval *)0x40000000, v85);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, 0.0, -4.0);
v88 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveBy::create((cocos2d::CCMoveBy *)0x40000000, COERCE_FLOAT(v144), v87);
v90 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseInOut::create(v88, (cocos2d::CCActionInterval *)0x40000000, v89);
v91 = (cocos2d::CCRepeatForever *)cocos2d::CCSequence::create(v86, v90, 0);
v93 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v91, v92);
cocos2d::CCNode::runAction(v23, v93);
v95 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(nullptr, v94);
v142[1] = 0;
v142[0] = LevelAreaInnerLayer::tryResumeTowerMusic;
v96 = v95;
v97 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, LevelAreaInnerLayer::tryResumeTowerMusic, 0);
v98 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v96, v97, 0);
cocos2d::CCNode::runAction(this, v98);
v145 = 0;
v146 = 0;
v147 = nullptr;
std::string::__init(&v145, "GJ_infoIcon_001.png", 0x13u);
v99 = CCSpriteGrayscale::createWithSpriteFrameName((char *)&v145);
std::string::~string((int)&v145);
(*(void (__fastcall **)(CCSpriteWithHue *, _DWORD))(*(_DWORD *)v99 + 456))(v99, 0);
(*(void (__fastcall **)(CCSpriteWithHue *, int))(*(_DWORD *)v99 + 80))(v99, 1061997773);
v101 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3DCCCCCD, v100);
v103 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeTo::create(
(cocos2d::CCFadeTo *)0x3F800000,
COERCE_FLOAT(200),
v102);
v104 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v101, v103, 0);
cocos2d::CCNode::runAction(v99, v104);
v143[1] = 0;
v143[0] = LevelAreaInnerLayer::onInfo;
v105 = CCMenuItemSpriteExtra::create((int)v99, 0, (int)this, (int)LevelAreaInnerLayer::onInfo, 0);
v106 = (cocos2d::CCDirector *)(*(int (__fastcall **)(cocos2d::CCPoint *, int))(*(_DWORD *)v122 + 228))(v122, v105);
v107 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v105 + 92);
v108 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v106);
v109 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v108));
v110 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v109));
v111 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v110));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, v109 - 20.0, v111 - 20.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v144, v122);
v107(v105, v144);
UGV = (GameManager *)CCMenuItemSpriteExtra::setSizeMult(v105, 1.2);
if ( v123 == 4 )
{
v113 = (GameManager *)GameManager::sharedState(UGV);
UGV = (GameManager *)GameManager::getUGV(v113, "33");
if ( UGV )
goto LABEL_51;
*((_BYTE *)this + 324) = 1;
v118 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3F800000, v114);
v144[1] = 0;
v144[0] = LevelAreaInnerLayer::showFloor1CompleteDialog;
v119 = v118;
v120 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(
this,
LevelAreaInnerLayer::showFloor1CompleteDialog,
0);
v121 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v119, v120, 0);
cocos2d::CCNode::runAction(this, v121);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 80) + 528))(*((_DWORD *)this + 80), 0);
v115 = *(int (**)(void))(**((_DWORD **)this + 80) + 172);
LABEL_50:
UGV = (GameManager *)v115();
}
else if ( v123 <= 3 )
{
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 80) + 528))(*((_DWORD *)this + 80), 0);
v115 = *(int (**)(void))(**((_DWORD **)this + 80) + 172);
goto LABEL_50;
}
LABEL_51:
v116 = *((unsigned __int8 *)this + 324);
if ( v116 )
return v116;
*(_BYTE *)(GameManager::sharedState(UGV) + 852) = 0;
return v126;
}