//
// SecretLayer5::init from 0x100073fb0 to 0x100074bf4 (3140 bytes)
//
// 1 xrefs:
// > ??> @ 0x100779d08
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall SecretLayer5::init(SecretLayer5 *a1)
{
_BOOL4 v2; // w0
cocos2d::CCTextureCache *v3; // x0
cocos2d::CCSpriteFrameCache *v4; // x0
cocos2d::CCTextureCache *v5; // x0
cocos2d::CCSpriteFrameCache *v6; // x0
GameManager *v7; // x21
cocos2d::CCDirector *v8; // x0
unsigned int v9; // w0
std::__vector_base::pointer begin; // x21
std::__vector_base::pointer end; // x22
unsigned int v12; // w0
unsigned int v13; // w8
cocos2d::CCSprite *v14; // x21
__n128 v15; // q0
__n128 v16; // q1
cocos2d::CCSprite **p_m_background; // x19
__n128 v18; // q0
cocos2d::CCSprite *m_background; // x21
__n128 v20; // q1
cocos2d::CCSprite *v21; // x0
__n128 v22; // q0
__n128 v23; // q1
__n128 v24; // q0
cocos2d::CCLabelBMFont *m_messageLabel; // x21
__n128 v26; // q1
double v27; // d0
double v28; // d0
cocos2d::extension::CCScale9Sprite *v29; // x0
cocos2d::extension::CCScale9Sprite **p_m_inputBackground; // x19
CCTextInputNode *m_textInput; // x0
CCTextInputNode *v32; // x21
cocos2d::CCSprite *v33; // x0
CCMenuItemSpriteExtra *v34; // x22
cocos2d::CCNode *v35; // x21
cocos2d::CCDirector *v36; // x0
float v37; // s9
cocos2d::CCDirector *v38; // x0
__n128 v39; // q0
__n128 v40; // q1
CCSpriteGrayscale *m_wraithGraySprite; // x0
__n128 v42; // q0
CCSpriteWithHue **p_m_wraithSprite; // x24
CCSpriteGrayscale *v44; // x22
CCSpriteWithHue *m_wraithSprite; // x23
__n128 v46; // q1
cocos2d::CCSprite *v47; // x0
__n128 v48; // q0
cocos2d::CCSprite *m_eyesSprite; // x22
CCSpriteWithHue *v50; // x23
__n128 v51; // q1
cocos2d::CCNode *v52; // x22
__n128 v53; // q0
CCSpriteWithHue *v54; // x23
__n128 v55; // q1
__n128 v56; // q0
cocos2d::CCSprite *m_lockSprite; // x22
__n128 v58; // q1
cocos2d::CCSprite *v59; // x0
__n128 v60; // q0
CCMenuItemSpriteExtra *m_wraithButton; // x22
__n128 v62; // q1
LoadingCircleSprite *v63; // x0
LoadingCircleSprite **p_m_circleSprite; // x19
LoadingCircleSprite *m_circleSprite; // x0
GameManager *v66; // x0
GameManager *v67; // x0
const char *FontFile; // x21
__n128 v69; // q0
__n128 v70; // q1
TextArea *m_messageArea; // x21
__n128 v72; // q0
__n128 v73; // q1
__n128 v74; // q0
TextArea *v75; // x21
__n128 v76; // q1
double v77; // d0
__int64 v78; // x0
cocos2d::CCArray *v79; // x0
char v80; // w8
char v81; // w19
cocos2d::CCSprite *v82; // x23
__n128 v83; // q0
__n128 v84; // q1
float v85; // s2
__int64 v86; // x0
__int64 v87; // x22
float32x2_t *v88; // x23
__n128 v89; // q1
__n128 v90; // q0
float v91; // s2
cocos2d::CCArray *m_torchFires; // x23
__int64 v93; // x0
cocos2d::CCArray *v94; // x23
__int64 v95; // x0
GameManager *v96; // x0
cocos2d::CCDelayTime *v97; // x21
cocos2d::CCAction *v98; // x0
float v99; // s1
float v100; // s2
float v101; // s3
bool v103; // [xsp+1Ch] [xbp-164h]
void *v104[2]; // [xsp+20h] [xbp-160h] BYREF
char v105; // [xsp+37h] [xbp-149h]
float32x2_t v106; // [xsp+38h] [xbp-148h] BYREF
void *v107[2]; // [xsp+40h] [xbp-140h] BYREF
char v108; // [xsp+57h] [xbp-129h]
void *v109[2]; // [xsp+58h] [xbp-128h] BYREF
char v110; // [xsp+6Fh] [xbp-111h]
float32x2_t v111; // [xsp+70h] [xbp-110h] BYREF
float32x2_t v112; // [xsp+78h] [xbp-108h] BYREF
float v113[4]; // [xsp+80h] [xbp-100h] BYREF
float v114; // [xsp+90h] [xbp-F0h]
float v115; // [xsp+94h] [xbp-ECh]
void *__p[2]; // [xsp+98h] [xbp-E8h] BYREF
char v117; // [xsp+AFh] [xbp-D1h]
void *__src[2]; // [xsp+B0h] [xbp-D0h] BYREF
__int128 v119; // [xsp+C0h] [xbp-C0h]
__int128 v120; // [xsp+D0h] [xbp-B0h]
__int128 v121; // [xsp+E0h] [xbp-A0h]
int v122; // [xsp+F0h] [xbp-90h]
cocos2d::CCPoint v123; // 0:kr08_8.8
cocos2d::CCPoint v124; // 0:kr10_8.8
cocos2d::CCPoint v125; // 0:kr18_8.8
cocos2d::CCPoint v126; // 0:kr20_8.8
cocos2d::SEL_CallFunc v127; // 0:x1.16
cocos2d::SEL_MenuHandler v128; // 0:x3.16
cocos2d::SEL_MenuHandler v129; // 0:x3.16
cocos2d::CCRect v130; // 0:kr30_16.16
cocos2d::CCPoint v131; // 0:s0.4,4:s1.4
v2 = cocos2d::CCLayer::init(a1);
if ( v2 )
{
v103 = v2;
v3 = cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::addImage(v3, "SecretSheet.png", 0);
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v4, "SecretSheet.plist");
v5 = cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::addImage(v5, "TowerSheet.png", 0);
v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v6, "TowerSheet.plist");
v7 = GameManager::sharedState();
sub_100009900(__p, "secretLoop04.ogg");
GameManager::fadeInMusic(v7, __p);
if ( v117 < 0 )
operator delete(__p[0]);
((void (__fastcall *)(SecretLayer5 *, __int64))a1->setKeypadEnabled)(a1, 1);
((void (__fastcall *)(SecretLayer5 *, __int64))a1->setKeyboardEnabled)(a1, 1);
v8 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v8);
v122 = 22349;
*(_OWORD *)__src = xmmword_1006360E0;
v119 = xmmword_1006360F0;
v120 = xmmword_100636100;
v121 = xmmword_100636110;
sub_100077098((_DWORD)a1 + 592, __src);
v9 = time(nullptr);
srand(v9);
begin = a1->m_soundEffects.__begin_;
end = a1->m_soundEffects.__end_;
v12 = rand();
v13 = v12 + ((v12 / 0x7FFFFFFF) | ((v12 / 0x7FFFFFFF) << 31));
if ( v13 <= 1 )
v13 = 1;
LODWORD(__src[0]) = v13;
sub_1000771C8(begin, end, __src);
v14 = cocos2d::CCSprite::create("GJ_gradientBG.png");
a1->m_background = v14;
v15.n128_u32[0] = 0;
v16.n128_u32[0] = 0;
sub_100022980(v15, v16, __src);
((void (__fastcall *)(cocos2d::CCSprite *, void **))v14->setAnchorPoint)(v14, __src);
p_m_background = &a1->m_background;
((void (__fastcall *)(SecretLayer5 *, cocos2d::CCSprite *, __int64))a1->addChild_0)(
a1,
a1->m_background,
4294967293LL);
((void (__fastcall *)(cocos2d::CCSprite *, float))(*p_m_background)->setScaleX)(
*p_m_background,
(float)(v114 + 10.0) / (*p_m_background)->m_obRect.size.width);
v18 = ((__n128 (__fastcall *)(cocos2d::CCSprite *, float))(*p_m_background)->setScaleY)(
*p_m_background,
(float)(v115 + 10.0) / (*p_m_background)->m_obRect.size.height);
m_background = a1->m_background;
v18.n128_u32[0] = -5.0;
v20.n128_u32[0] = -5.0;
sub_100022980(v18, v20, __src);
((void (__fastcall *)(cocos2d::CCSprite *, void **))m_background->setPosition)(m_background, __src);
v21 = a1->m_background;
BYTE2(__src[0]) = 47;
LOWORD(__src[0]) = 3613;
((void (__fastcall *)(cocos2d::CCSprite *, void **))v21->setColor)(v21, __src);
sub_100022990(v113, 0.0, 0.0, 40.0, 40.0);
v22.n128_f32[0] = v114 * 0.5;
v23.n128_f32[0] = (float)(v115 * 0.5) + 55.0;
sub_100022980(v22, v23, &v112);
a1->m_messageLabel = cocos2d::CCLabelBMFont::create_1(" ", "bigFont.fnt");
v24 = ((__n128 (__fastcall *)(SecretLayer5 *))a1->addChild)(a1);
m_messageLabel = a1->m_messageLabel;
v26.n128_u32[0] = 1110179840;
v24.n128_u32[0] = 0;
sub_100022980(v24, v26, &v111);
*(float32x2_t *)&v27 = sub_1000229DC(&v112, &v111, (float32x2_t *)__src);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))m_messageLabel->setPosition)(
m_messageLabel,
__src,
v27);
sub_100009900(v109, " ");
SecretLayer5::updateMessageLabel(a1, v109);
if ( v110 < 0 )
operator delete(v109[0]);
v28 = sub_100022B98(__src, (__int64)v113);
v130.origin.x = *(float *)&v28;
v130.origin.y = v99;
v130.size.width = v100;
v130.size.height = v101;
v29 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v130);
a1->m_inputBackground = v29;
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v29->setOpacity)(v29, 100);
sub_100022988((float *)&v111, 200.0, 40.0);
p_m_inputBackground = &a1->m_inputBackground;
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float32x2_t *))a1->m_inputBackground->setContentSize)(
a1->m_inputBackground,
&v111);
((void (__fastcall *)(SecretLayer5 *, cocos2d::extension::CCScale9Sprite *, __int64))a1->addChild_0)(
a1,
a1->m_inputBackground,
4294967294LL);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float32x2_t *))(*p_m_inputBackground)->setPosition)(
*p_m_inputBackground,
&v112);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, void *))(*p_m_inputBackground)->setColor)(
*p_m_inputBackground,
&unk_100636124);
a1->m_textInput = CCTextInputNode::create(180.0, 50.0, "...", "Thonburi", 24, "bigFont.fnt");
((void (__fastcall *)(SecretLayer5 *))a1->addChild_0)(a1);
m_textInput = a1->m_textInput;
m_textInput->m_delegate = &a1->TextInputDelegate;
((void (__fastcall *)(CCTextInputNode *, float32x2_t *))m_textInput->setPosition)(m_textInput, &v112);
CCTextInputNode::setMaxLabelScale(a1->m_textInput, 0.7);
CCTextInputNode::setMaxLabelWidth(a1->m_textInput, 180.0);
((void (__fastcall *)(cocos2d::CCTextFieldTTF *, _QWORD))a1->m_textInput->m_textField->setVisible)(
a1->m_textInput->m_textField,
0);
v32 = a1->m_textInput;
v32->m_maxLabelLength = 100;
sub_100009900(
v107,
" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~");
CCTextInputNode::setAllowedChars(v32, v107);
if ( v108 < 0 )
operator delete(v107[0]);
SecretLayer5::updateSearchLabel(a1, "");
v33 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
v128.ptr = (void (__cdecl *)(cocos2d::CCObject *))SecretLayer5::onBack;
v128.adj = 0;
v34 = CCMenuItemSpriteExtra::create(v33, nullptr, a1, v128);
CCMenuItemSpriteExtra::setSizeMult(v34, 1.5);
v35 = (cocos2d::CCNode *)sub_1001D7ED0(v34);
((void (__fastcall *)(SecretLayer5 *, cocos2d::CCNode *, __int64))a1->addChild_0)(a1, v35, 1);
v36 = cocos2d::CCDirector::sharedDirector();
v37 = sub_1001768D8(v36);
v38 = cocos2d::CCDirector::sharedDirector();
v39.n128_f64[0] = sub_1001768C8(v38);
v40.n128_f32[0] = v39.n128_f32[0] + -23.0;
v39.n128_f32[0] = v37 + 24.0;
sub_100022980(v39, v40, __src);
((void (__fastcall *)(cocos2d::CCNode *, void **))v35->setPosition)(v35, __src);
if ( PlatformToolbox::isControllerConnected() )
GameToolbox::addBackButton(a1, v34);
sub_100009900(__src, "GJ_secretLock4_001.png");
a1->m_wraithSprite = (CCSpriteWithHue *)CCSpriteWithHue::createWithSpriteFrameName(__src);
if ( SBYTE7(v119) < 0 )
operator delete(__src[0]);
sub_100009900(__src, "GJ_secretLock4_001.png");
m_wraithGraySprite = (CCSpriteGrayscale *)CCSpriteGrayscale::createWithSpriteFrameName(__src);
a1->m_wraithGraySprite = m_wraithGraySprite;
if ( SBYTE7(v119) < 0 )
{
operator delete(__src[0]);
m_wraithGraySprite = a1->m_wraithGraySprite;
}
BYTE2(__src[0]) = -1;
LOWORD(__src[0]) = 25800;
((void (__fastcall *)(CCSpriteGrayscale *, void **))m_wraithGraySprite->setColor)(m_wraithGraySprite, __src);
((void (__fastcall *)(CCSpriteWithHue *, CCSpriteGrayscale *, __int64))a1->m_wraithSprite->addChild_0)(
a1->m_wraithSprite,
a1->m_wraithGraySprite,
1);
v42 = ((__n128 (__fastcall *)(CCSpriteGrayscale *, _QWORD))a1->m_wraithGraySprite->setOpacity)(
a1->m_wraithGraySprite,
0);
p_m_wraithSprite = &a1->m_wraithSprite;
v44 = a1->m_wraithGraySprite;
m_wraithSprite = a1->m_wraithSprite;
v42.n128_u32[0] = 0;
v46.n128_u32[0] = 0;
sub_100022980(v42, v46, &v106);
v123 = cocos2d::CCNode::convertToNodeSpace(m_wraithSprite, (const cocos2d::CCPoint *)&v106);
((void (__fastcall *)(CCSpriteGrayscale *, void **, float, float))v44->setPosition)(v44, __src, v123.x, v123.y);
v47 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_secretLock4_eyes_001.png");
a1->m_eyesSprite = v47;
((void (__fastcall *)(cocos2d::CCSprite *, __int64))v47->setBlendFunc)(v47, 0x100000302LL);
v48 = ((__n128 (__fastcall *)(CCSpriteWithHue *, cocos2d::CCSprite *, __int64))(*p_m_wraithSprite)->addChild_0)(
*p_m_wraithSprite,
a1->m_eyesSprite,
2);
m_eyesSprite = a1->m_eyesSprite;
v50 = a1->m_wraithSprite;
v48.n128_u32[0] = 0;
v51.n128_u32[0] = 0;
sub_100022980(v48, v51, &v106);
v124 = cocos2d::CCNode::convertToNodeSpace(v50, (const cocos2d::CCPoint *)&v106);
((void (__fastcall *)(cocos2d::CCSprite *, void **, float, float))m_eyesSprite->setPosition)(
m_eyesSprite,
__src,
v124.x,
v124.y);
((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))a1->m_eyesSprite->setOpacity)(a1->m_eyesSprite, 0);
cocos2d::CCSprite::createWithSpriteFrameName("GJ_secretLock2_2_001.png");
v52 = cocos2d::CCNode::create();
a1->m_lockSprite = cocos2d::CCSprite::createWithSpriteFrameName("GJ_secretLock2_2_001.png");
((void (__fastcall *)(cocos2d::CCNode *))v52->addChild_0)(v52);
v53 = ((__n128 (__fastcall *)(CCSpriteWithHue *, cocos2d::CCNode *, __int64))(*p_m_wraithSprite)->addChild_0)(
*p_m_wraithSprite,
v52,
4294967294LL);
v54 = a1->m_wraithSprite;
v53.n128_u32[0] = 0;
v55.n128_u32[0] = -30.0;
sub_100022980(v53, v55, &v106);
v125 = cocos2d::CCNode::convertToNodeSpace(v54, (const cocos2d::CCPoint *)&v106);
v56 = ((__n128 (__fastcall *)(cocos2d::CCNode *, void **, float, float))v52->setPosition)(
v52,
__src,
v125.x,
v125.y);
m_lockSprite = a1->m_lockSprite;
v56.n128_u32[0] = 0;
v58.n128_u32[0] = 25.0;
sub_100022980(v56, v58, __src);
((void (__fastcall *)(cocos2d::CCSprite *, void **))m_lockSprite->setPosition)(m_lockSprite, __src);
v59 = a1->m_lockSprite;
BYTE2(__src[0]) = -103;
LOWORD(__src[0]) = 18286;
((void (__fastcall *)(cocos2d::CCSprite *, void **))v59->setColor)(v59, __src);
((void (__fastcall *)(CCSpriteWithHue *, float))(*p_m_wraithSprite)->setScale)(*p_m_wraithSprite, 1.2);
v129.ptr = (void (__cdecl *)(cocos2d::CCObject *))SecretLayer5::onSubmit;
v129.adj = 0;
a1->m_wraithButton = CCMenuItemSpriteExtra::create(a1->m_wraithSprite, nullptr, a1, v129);
v60 = ((__n128 (__fastcall *)(cocos2d::CCNode *))v35->addChild)(v35);
m_wraithButton = a1->m_wraithButton;
v60.n128_f32[0] = v114 * 0.5;
v62.n128_f32[0] = (float)(v115 * 0.5) + -25.0;
sub_100022980(v60, v62, &v106);
v126 = cocos2d::CCNode::convertToNodeSpace(v35, (const cocos2d::CCPoint *)&v106);
((void (__fastcall *)(CCMenuItemSpriteExtra *, void **, float, float))m_wraithButton->setPosition)(
m_wraithButton,
__src,
v126.x,
v126.y);
CCMenuItemSpriteExtra::setSizeMult(a1->m_wraithButton, 0.7);
v63 = LoadingCircleSprite::create(0.5);
a1->m_circleSprite = v63;
((void (__fastcall *)(LoadingCircleSprite *, float))v63->setScale)(v63, 0.5);
p_m_circleSprite = &a1->m_circleSprite;
((void (__fastcall *)(SecretLayer5 *, LoadingCircleSprite *, __int64))a1->addChild_0)(a1, a1->m_circleSprite, 28);
((void (__fastcall *)(LoadingCircleSprite *, _QWORD))(*p_m_circleSprite)->setOpacity)(*p_m_circleSprite, 0);
((void (__fastcall *)(LoadingCircleSprite *, float32x2_t *))(*p_m_circleSprite)->setPosition)(
*p_m_circleSprite,
&v112);
((void (__fastcall *)(LoadingCircleSprite *, __int64))(*p_m_circleSprite)->setBlendFunc)(
*p_m_circleSprite,
0x100000302LL);
m_circleSprite = a1->m_circleSprite;
BYTE2(__src[0]) = -1;
LOWORD(__src[0]) = 25800;
((void (__fastcall *)(LoadingCircleSprite *, void **))m_circleSprite->setColor)(m_circleSprite, __src);
v66 = GameManager::sharedState();
GameManager::loadFont(v66, 19);
sub_100009900(v104, " ");
v67 = GameManager::sharedState();
FontFile = GameManager::getFontFile(v67, 19);
v69.n128_u32[0] = 0.5;
v70.n128_u32[0] = 1.0;
sub_100022980(v69, v70, __src);
m_messageArea = (TextArea *)TextArea::create(v104, FontFile, __src, 0, 1.0, 533.33, 20.0);
a1->m_messageArea = m_messageArea;
if ( v105 < 0 )
{
operator delete(v104[0]);
m_messageArea = a1->m_messageArea;
}
v72.n128_u32[0] = 0.5;
v73.n128_u32[0] = 0.5;
sub_100022980(v72, v73, __src);
((void (__fastcall *)(TextArea *, void **))m_messageArea->setAnchorPoint)(m_messageArea, __src);
((void (__fastcall *)(TextArea *, float))a1->m_messageArea->setScale)(a1->m_messageArea, 0.75);
v74 = ((__n128 (__fastcall *)(SecretLayer5 *, TextArea *, __int64))a1->addChild_0)(a1, a1->m_messageArea, 3);
v75 = a1->m_messageArea;
v76.n128_u32[0] = 1114636288;
v74.n128_u32[0] = 0;
sub_100022980(v74, v76, &v106);
*(float32x2_t *)&v77 = sub_1000229DC(&v112, &v106, (float32x2_t *)__src);
v78 = ((__int64 (__fastcall *)(TextArea *, void **, double))v75->setPosition)(v75, __src, v77);
v79 = (cocos2d::CCArray *)sub_10024A15C(v78);
a1->m_torchFires = v79;
cocos2d::CCObject::retain(v79);
v80 = 1;
do
{
v81 = v80;
v82 = cocos2d::CCSprite::createWithSpriteFrameName("towerTorchInner_001.png");
BYTE2(__src[0]) = -103;
LOWORD(__src[0]) = 23160;
((void (__fastcall *)(cocos2d::CCSprite *, void **))v82->setColor)(v82, __src);
((void (__fastcall *)(SecretLayer5 *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v82, 4);
v85 = 195.0;
if ( (v81 & 1) != 0 )
v85 = -195.0;
v83.n128_f32[0] = (float)(v114 * 0.5) + v85;
v84.n128_f32[0] = (float)(v115 * 0.5) + 4.0;
sub_100022980(v83, v84, __src);
v86 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, void **))v82->setPosition)(v82, __src);
v87 = sub_10024A15C(v86);
v88 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v82->getPosition)(v82);
v89.n128_u32[0] = 1107558400;
v90.n128_u32[0] = 0;
sub_100022980(v90, v89, &v106);
sub_1000229DC(v88, &v106, (float32x2_t *)__src);
v131.x = 1.0;
LevelAreaLayer::addTorch(a1, v131, (int)__src, v91, 2, 4, 1, (cocos2d::CCArray *)1);
m_torchFires = a1->m_torchFires;
v93 = sub_10024A388(v87, 0);
sub_10024A2D0(m_torchFires, v93);
v94 = a1->m_torchFires;
v95 = sub_10024A388(v87, 1);
sub_10024A2D0(v94, v95);
v80 = 0;
}
while ( (v81 & 1) != 0 );
cocos2d::CCNode::scheduleUpdate(a1);
GameLevelManager::sharedState()->m_GJOnlineRewardDelegate = &a1->GJOnlineRewardDelegate;
v96 = GameManager::sharedState();
if ( !GameManager::getUGV(v96, "38") )
{
a1->m_uiLocked = 1;
v97 = cocos2d::CCDelayTime::create(1.2);
v127.ptr = (void (*)(void))SecretLayer5::showFirstDialog;
v127.adj = 0;
cocos2d::CCCallFunc::create(a1, v127);
v98 = (cocos2d::CCAction *)sub_10018A494(v97);
cocos2d::CCNode::runAction(a1, v98);
((void (__fastcall *)(CCTextInputNode *, _QWORD))a1->m_textInput->setTouchEnabled)(a1->m_textInput, 0);
}
LOBYTE(v2) = v103;
}
return v2;
}