//
// SecretLayer::init from 0x1403dca70 to 0x1403dddb0 (4928 bytes)
//
// 5 xrefs:
// > OptionsLayer::onSecretVault @ 0x140372e44
// > OptionsLayer::onSecretVault @ 0x140372e4b
// > OptionsLayer::onSecretVault @ 0x140372e35
// > ??> @ 0x1405cfd60
// > ??> @ 0x1406d7e2c
//
// 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
//
// Hidden C++ exception states: #wind=5
bool SecretLayer::init(SecretLayer *a1)
{
bool result; // al
__int64 v3; // rcx
_BOOL8 v4; // rdx
_BOOL8 v5; // rdx
__int64 v6; // rcx
cocos2d::CCDirector *v7; // rax
__int64 v8; // rcx
cocos2d::CCDictionary *v9; // rax
AchievementManager *v10; // rbx
cocos2d::CCString *v11; // rax
__int64 v12; // rcx
int v13; // ebx
unsigned __int64 v14; // rdx
void *v15; // rcx
struct cocos2d::CCObject *v16; // rbx
struct cocos2d::CCObject *v17; // rbx
AchievementManager *v18; // rbx
cocos2d::CCString *v19; // rax
__int64 v20; // rcx
int v21; // ebx
unsigned __int64 v22; // rdx
void *v23; // rcx
struct cocos2d::CCObject *v24; // rbx
struct cocos2d::CCObject *v25; // rbx
AchievementManager *v26; // rbx
cocos2d::CCString *v27; // rax
__int64 v28; // rcx
int v29; // ebx
unsigned __int64 v30; // rdx
void *v31; // rcx
struct cocos2d::CCObject *v32; // rbx
struct cocos2d::CCObject *v33; // rbx
AchievementManager *v34; // rbx
cocos2d::CCString *v35; // rax
__int64 v36; // rcx
int v37; // ebx
unsigned __int64 v38; // rdx
void *v39; // rcx
struct cocos2d::CCObject *v40; // rbx
struct cocos2d::CCObject *v41; // rbx
AchievementManager *v42; // rbx
cocos2d::CCString *v43; // rax
__int64 v44; // rcx
int v45; // ebx
unsigned __int64 v46; // rdx
void *v47; // rcx
struct cocos2d::CCObject *v48; // rbx
struct cocos2d::CCObject *v49; // rbx
AchievementManager *v50; // rbx
cocos2d::CCString *v51; // rax
__int64 v52; // rcx
int v53; // ebx
unsigned __int64 v54; // rdx
void *v55; // rcx
struct cocos2d::CCObject *v56; // rbx
struct cocos2d::CCObject *v57; // rbx
AchievementManager *v58; // rbx
cocos2d::CCString *v59; // rax
__int64 v60; // rcx
int v61; // ebx
unsigned __int64 v62; // rdx
void *v63; // rcx
struct cocos2d::CCObject *v64; // rbx
struct cocos2d::CCObject *v65; // rbx
AchievementManager *v66; // rbx
cocos2d::CCString *v67; // rax
__int64 v68; // rcx
int v69; // ebx
unsigned __int64 v70; // rdx
void *v71; // rcx
struct cocos2d::CCObject *v72; // rbx
AchievementManager *v73; // rbx
cocos2d::CCString *v74; // rax
__int64 v75; // rcx
int v76; // ebx
unsigned __int64 v77; // rdx
void *v78; // rcx
struct cocos2d::CCObject *v79; // rbx
AchievementManager *v80; // rbx
cocos2d::CCString *v81; // rax
__int64 v82; // rcx
int v83; // ebx
unsigned __int64 v84; // rdx
void *v85; // rcx
struct cocos2d::CCObject *v86; // rbx
AchievementManager *v87; // rbx
cocos2d::CCString *v88; // rax
__int64 v89; // rcx
int v90; // ebx
unsigned __int64 v91; // rdx
void *v92; // rcx
struct cocos2d::CCObject *v93; // rbx
AchievementManager *v94; // rbx
cocos2d::CCString *v95; // rax
int v96; // ebx
void *v97; // rcx
GameManager *v98; // rcx
__int64 v99; // rdx
__int64 v100; // rcx
struct cocos2d::CCObject *v101; // rbx
struct cocos2d::CCSprite *v102; // rdi
cocos2d::CCSprite_vtbl *v103; // rbx
const cocos2d::CCPoint *v104; // rax
cocos2d::CCSprite_vtbl *v105; // rbx
cocos2d::CCSprite_vtbl *v106; // rbx
float v107; // xmm0_4
cocos2d::CCSprite_vtbl *v108; // rbx
const cocos2d::CCPoint *v109; // rax
struct cocos2d::CCLabelBMFont *v110; // rdi
float v111; // xmm0_4
cocos2d::CCLabelBMFont_vtbl *v112; // rbx
__int64 v113; // rax
float v114; // xmm0_4
cocos2d::CCLabelBMFont *v115; // rax
float v116; // xmm0_4
__int64 Message; // rax
struct cocos2d::CCRect *v118; // rax
struct cocos2d::extension::CCScale9Sprite *v119; // rbx
__int64 v120; // rdx
const char *v121; // r9
CCTextInputNode *v122; // rax
CCTextInputNode *m_searchInput; // rcx
CCTextInputNode *v124; // rcx
std::string *p_m_allowedChars; // rcx
void **v126; // rdx
struct cocos2d::CCSprite *v127; // rax
CCMenuItemSpriteExtra *v128; // r14
struct cocos2d::CCMenu *v129; // rdi
cocos2d::CCMenu_vtbl *v130; // rbx
__int64 v131; // rcx
cocos2d::CCDirector *v132; // rax
__int64 v133; // rcx
cocos2d::CCDirector *v134; // rax
float v135; // xmm0_4
const cocos2d::CCPoint *v136; // rax
__int64 v137; // rcx
struct cocos2d::CCSprite *v138; // rax
CCMenuItemSpriteExtra *v139; // rax
float v140; // xmm0_4
CCMenuItemSpriteExtra_vtbl *v141; // rbx
struct cocos2d::CCPoint v142; // rax
int v143; // [rsp+28h] [rbp-89h]
__int16 v144; // [rsp+38h] [rbp-79h] BYREF
char v145; // [rsp+3Ah] [rbp-77h]
float v146; // [rsp+40h] [rbp-71h]
cocos2d::CCRect v147; // [rsp+48h] [rbp-69h] BYREF
cocos2d::CCPoint v148; // [rsp+58h] [rbp-59h] BYREF
void **v149; // [rsp+60h] [rbp-51h] BYREF
void *Src[2]; // [rsp+68h] [rbp-49h] BYREF
size_t Size; // [rsp+78h] [rbp-39h]
unsigned __int64 v152; // [rsp+80h] [rbp-31h]
cocos2d::CCSize v153; // [rsp+88h] [rbp-29h] BYREF
cocos2d::CCRect v154; // [rsp+90h] [rbp-21h] BYREF
void *Block[2]; // [rsp+A0h] [rbp-11h] BYREF
__int64 v156; // [rsp+B0h] [rbp-1h]
unsigned __int64 v157; // [rsp+B8h] [rbp+7h]
result = cocos2d::CCLayer::init(a1);
if ( result )
{
v149 = Block;
v156 = 14;
v157 = 15;
strcpy((char *)Block, "secretLoop.mp3");
HIBYTE(Block[1]) = 0;
if ( !qword_1406C2ED8 )
{
v147.origin = (cocos2d::CCPoint)operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&v147.origin);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
}
GameManager::fadeInMusic(v3, (__int64)Block);
LOBYTE(v4) = 1;
a1->setKeypadEnabled(a1, v4);
LOBYTE(v5) = 1;
a1->setKeyboardEnabled(a1, v5);
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize(v7);
v9 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v8);
a1->m_messageThreads = v9;
cocos2d::CCObject::retain(v9);
v10 = AchievementManager::sharedState();
*(_OWORD *)Block = 0;
v156 = 0;
v157 = 15;
Block[0] = sub_14003AA10(0x20u);
v156 = 21;
v157 = 31;
strcpy((char *)Block[0], "geometry.ach.secret06");
v11 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v10->m_reportedAchievements, Block);
v13 = cocos2d::CCString::intValue(v11);
v14 = v157;
if ( v157 > 0xF )
{
v15 = Block[0];
if ( v157 + 1 >= 0x1000 )
{
v15 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v15 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v15);
}
if ( v13 < 100 )
{
v16 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v12, v14);
v16->setTag(v16, 6);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v16, 6);
}
v17 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v12, v14);
v17->setTag(v17, 101);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v17, 101);
v18 = AchievementManager::sharedState();
*(_OWORD *)Block = 0;
v156 = 0;
v157 = 15;
Block[0] = sub_14003AA10(0x20u);
v156 = 21;
v157 = 31;
strcpy((char *)Block[0], "geometry.ach.secret07");
v19 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v18->m_reportedAchievements, Block);
v21 = cocos2d::CCString::intValue(v19);
v22 = v157;
if ( v157 > 0xF )
{
v23 = Block[0];
if ( v157 + 1 >= 0x1000 )
{
v23 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v23 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v23);
}
if ( v21 < 100 )
{
v24 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v20, v22);
v24->setTag(v24, 7);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v24, 7);
}
v25 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v20, v22);
v25->setTag(v25, 102);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v25, 102);
v26 = AchievementManager::sharedState();
*(_OWORD *)Block = 0;
v156 = 0;
v157 = 15;
Block[0] = sub_14003AA10(0x20u);
v156 = 21;
v157 = 31;
strcpy((char *)Block[0], "geometry.ach.secret08");
v27 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v26->m_reportedAchievements, Block);
v29 = cocos2d::CCString::intValue(v27);
v30 = v157;
if ( v157 > 0xF )
{
v31 = Block[0];
if ( v157 + 1 >= 0x1000 )
{
v31 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v31 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v31);
}
if ( v29 < 100 )
{
v32 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v28, v30);
v32->setTag(v32, 8);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v32, 8);
}
v33 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v28, v30);
v33->setTag(v33, 103);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v33, 103);
v34 = AchievementManager::sharedState();
*(_OWORD *)Block = 0;
v156 = 0;
v157 = 15;
Block[0] = sub_14003AA10(0x20u);
v156 = 21;
v157 = 31;
strcpy((char *)Block[0], "geometry.ach.secret09");
v35 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v34->m_reportedAchievements, Block);
v37 = cocos2d::CCString::intValue(v35);
v38 = v157;
if ( v157 > 0xF )
{
v39 = Block[0];
if ( v157 + 1 >= 0x1000 )
{
v39 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v39 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v39);
}
if ( v37 < 100 )
{
v40 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v36, v38);
v40->setTag(v40, 9);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v40, 9);
}
v41 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v36, v38);
v41->setTag(v41, 104);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v41, 104);
v42 = AchievementManager::sharedState();
*(_OWORD *)Block = 0;
v156 = 0;
v157 = 15;
Block[0] = sub_14003AA10(0x20u);
v156 = 21;
v157 = 31;
strcpy((char *)Block[0], "geometry.ach.secret10");
v43 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v42->m_reportedAchievements, Block);
v45 = cocos2d::CCString::intValue(v43);
v46 = v157;
if ( v157 > 0xF )
{
v47 = Block[0];
if ( v157 + 1 >= 0x1000 )
{
v47 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v47 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v47);
}
if ( v45 < 100 )
{
v48 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v44, v46);
v48->setTag(v48, 10);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v48, 10);
}
v49 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v44, v46);
v49->setTag(v49, 105);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v49, 105);
v50 = AchievementManager::sharedState();
*(_OWORD *)Block = 0;
v156 = 0;
v157 = 15;
Block[0] = sub_14003AA10(0x20u);
v156 = 21;
v157 = 31;
strcpy((char *)Block[0], "geometry.ach.secret13");
v51 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v50->m_reportedAchievements, Block);
v53 = cocos2d::CCString::intValue(v51);
v54 = v157;
if ( v157 > 0xF )
{
v55 = Block[0];
if ( v157 + 1 >= 0x1000 )
{
v55 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v55 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v55);
}
if ( v53 < 100 )
{
v56 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v52, v54);
v56->setTag(v56, 13);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v56, 13);
}
v57 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v52, v54);
v57->setTag(v57, 120);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v57, 120);
v58 = AchievementManager::sharedState();
*(_OWORD *)Block = 0;
v156 = 0;
v157 = 15;
Block[0] = sub_14003AA10(0x20u);
v156 = 21;
v157 = 31;
strcpy((char *)Block[0], "geometry.ach.secret14");
v59 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v58->m_reportedAchievements, Block);
v61 = cocos2d::CCString::intValue(v59);
v62 = v157;
if ( v157 > 0xF )
{
v63 = Block[0];
if ( v157 + 1 >= 0x1000 )
{
v63 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v63 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v63);
}
if ( v61 < 100 )
{
v64 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v60, v62);
v64->setTag(v64, 14);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v64, 14);
}
v65 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v60, v62);
v65->setTag(v65, 121);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v65, 121);
v66 = AchievementManager::sharedState();
*(_OWORD *)Block = 0;
v156 = 0;
v157 = 15;
Block[0] = sub_14003AA10(0x20u);
v156 = 21;
v157 = 31;
strcpy((char *)Block[0], "geometry.ach.secret15");
v67 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v66->m_reportedAchievements, Block);
v69 = cocos2d::CCString::intValue(v67);
v70 = v157;
if ( v157 > 0xF )
{
v71 = Block[0];
if ( v157 + 1 >= 0x1000 )
{
v71 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v71 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v71);
}
if ( v69 < 100 )
{
v72 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v68, v70);
v72->setTag(v72, 15);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v72, 15);
}
v73 = AchievementManager::sharedState();
*(_OWORD *)Block = 0;
v156 = 0;
v157 = 15;
Block[0] = sub_14003AA10(0x20u);
v156 = 21;
v157 = 31;
strcpy((char *)Block[0], "geometry.ach.secret16");
v74 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v73->m_reportedAchievements, Block);
v76 = cocos2d::CCString::intValue(v74);
v77 = v157;
if ( v157 > 0xF )
{
v78 = Block[0];
if ( v157 + 1 >= 0x1000 )
{
v78 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v78 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v78);
}
if ( v76 < 100 )
{
v79 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v75, v77);
v79->setTag(v79, 16);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v79, 16);
}
v80 = AchievementManager::sharedState();
*(_OWORD *)Block = 0;
v156 = 0;
v157 = 15;
Block[0] = sub_14003AA10(0x20u);
v156 = 21;
v157 = 31;
strcpy((char *)Block[0], "geometry.ach.secret17");
v81 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v80->m_reportedAchievements, Block);
v83 = cocos2d::CCString::intValue(v81);
v84 = v157;
if ( v157 > 0xF )
{
v85 = Block[0];
if ( v157 + 1 >= 0x1000 )
{
v85 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v85 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v85);
}
if ( v83 < 100 )
{
v86 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v82, v84);
v86->setTag(v86, 17);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v86, 17);
}
v87 = AchievementManager::sharedState();
*(_OWORD *)Block = 0;
v156 = 0;
v157 = 15;
Block[0] = sub_14003AA10(0x20u);
v156 = 21;
v157 = 31;
strcpy((char *)Block[0], "geometry.ach.secret19");
v88 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v87->m_reportedAchievements, Block);
v90 = cocos2d::CCString::intValue(v88);
v91 = v157;
if ( v157 > 0xF )
{
v92 = Block[0];
if ( v157 + 1 >= 0x1000 )
{
v92 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v92 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v92);
}
if ( v90 < 100 )
{
v93 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v89, v91);
v93->setTag(v93, 19);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v93, 19);
}
v94 = AchievementManager::sharedState();
*(_OWORD *)Block = 0;
v156 = 0;
v157 = 15;
Block[0] = sub_14003AA10(0x20u);
v156 = 24;
v157 = 31;
strcpy((char *)Block[0], "geometry.ach.v2.secret03");
v95 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v94->m_reportedAchievements, Block);
v96 = cocos2d::CCString::intValue(v95);
if ( v157 > 0xF )
{
v97 = Block[0];
if ( v157 + 1 >= 0x1000 )
{
v97 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v97 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v97);
}
v156 = 0;
v157 = 15;
LOBYTE(Block[0]) = 0;
if ( v96 < 100 )
{
v98 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v147.origin = (cocos2d::CCPoint)operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&v147.origin);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v98 = (GameManager *)qword_1406C2ED8;
}
if ( GameManager::getUGV(v98, (const char *)&word_140531EA0) )
{
v101 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v100, v99);
v101->setTag(v101, 11);
cocos2d::CCDictionary::setObject(a1->m_messageThreads, v101, 11);
}
}
v102 = cocos2d::CCSprite::create("GJ_gradientBG.png");
v103 = v102->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(4.5040475e30, 0.0);
v103->setAnchorPoint(v102, v104);
a1->addChild_0(a1, v102, -3);
v105 = v102->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCSprite::getTextureRect(v102);
((void (__fastcall *)(struct cocos2d::CCSprite *))v105->setScaleX)(v102);
v106 = v102->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCSprite::getTextureRect(v102);
v107 = ((float (__fastcall *)(struct cocos2d::CCSprite *))v106->setScaleY)(v102);
v108 = v102->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v107, -5.0);
v108->setPosition_0(v102, v109);
v144 = 19200;
v145 = 100;
v102->setColor(&v102->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v144);
cocos2d::CCRect::CCRect(&v154, 0.0, 0.0, 40.0, 40.0);
v110 = cocos2d::CCLabelBMFont::create("The Vault", "goldFont.fnt");
((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v110->setScale_0)(v110);
v111 = ((float (__fastcall *)(SecretLayer *, struct cocos2d::CCLabelBMFont *))a1->addChild_1)(a1, v110);
v112 = v110->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v111, v146 * 0.5);
v114 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *, __int64))v112->setPosition_0)(v110, v113);
cocos2d::CCPoint::CCPoint(v114, v146 * 0.5);
v115 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_14052A4D8);
a1->m_messageLabel = v115;
v116 = ((float (__fastcall *)(SecretLayer *, cocos2d::CCLabelBMFont *))a1->addChild_1)(a1, v115);
cocos2d::CCPoint::CCPoint(v116, 0.0);
cocos2d::CCPoint::operator+(&v148, &v149);
a1->m_messageLabel->setPosition_0(a1->m_messageLabel, (const cocos2d::CCPoint *)&v149);
Message = SecretLayer::getMessage(a1, Block);
SecretLayer::updateMessageLabel(a1, Message);
cocos2d::CCRect::CCRect(&v147, &v154);
v119 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v118);
LOBYTE(v120) = 100;
v119->setOpacity(&v119->cocos2d::CCRGBAProtocol, v120);
cocos2d::CCSize::CCSize(&v153, 200.0, 40.0);
v119->setContentSize(v119, &v153);
a1->addChild_0(a1, v119, -2);
v119->setPosition_0(v119, &v148);
v119->setColor(&v119->cocos2d::CCRGBAProtocol, &stru_140529BF0);
v122 = CCTextInputNode::create(180.0, 50.0, "...", v121, v143, (const char *)&qword_14052A4D8);
a1->m_searchInput = v122;
a1->addChild_0(a1, v122, 20);
a1->m_searchInput->m_delegate = &a1->TextInputDelegate;
a1->m_searchInput->setPosition_0(a1->m_searchInput, &v148);
m_searchInput = a1->m_searchInput;
m_searchInput->m_maxLabelScale = 0.69999999;
CCTextInputNode::refreshLabel(m_searchInput);
v124 = a1->m_searchInput;
v124->m_maxLabelWidth = 180.0;
CCTextInputNode::refreshLabel(v124);
a1->m_searchInput->m_textField->setVisible(a1->m_searchInput->m_textField, 0);
a1->m_searchInput->m_maxLabelLength = 20;
*(_OWORD *)Src = 0;
Size = 0;
v152 = 15;
Src[0] = sub_14003AA10(0x40u);
Size = 63;
v152 = 63;
strcpy((char *)Src[0], " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789");
v147.origin = (cocos2d::CCPoint)Src;
p_m_allowedChars = &a1->m_searchInput->m_allowedChars;
if ( p_m_allowedChars != (std::string *)Src )
{
v126 = Src;
if ( v152 > 0xF )
v126 = (void **)Src[0];
sub_14003CCE0((void **)p_m_allowedChars, v126, Size);
}
sub_14003A830((__int64)Src);
SecretLayer::updateSearchLabel(a1, byte_140518980);
v127 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
v128 = CCMenuItemSpriteExtra::create(v127, nullptr, a1, (cocos2d::SEL_MenuHandler *)SecretLayer::onBack);
HIDWORD(v128->m_pfnSelector.adj) = 1069547520;
v129 = cocos2d::CCMenu::create(v128, 0);
a1->addChild_0(a1, v129, 1);
v130 = v129->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v132 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v131);
cocos2d::CCDirector::getScreenTop(v132);
v134 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v133);
v135 = cocos2d::CCDirector::getScreenLeft(v134) + 24.0;
cocos2d::CCPoint::CCPoint(v135, v135);
v130->setPosition_0(v129, v136);
if ( *(_BYTE *)(cocos2d::CCApplication::sharedApplication(v137) + 197) )
GameToolbox::addBackButton(a1, v128);
v138 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_secretLock_001.png");
v139 = CCMenuItemSpriteExtra::create(v138, nullptr, a1, (cocos2d::SEL_MenuHandler *)SecretLayer::onSubmit);
a1->m_submitButton = v139;
v140 = ((float (__fastcall *)(struct cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v129->addChild_1)(v129, v139);
v141 = a1->m_submitButton->__vftable;
cocos2d::CCPoint::CCPoint(v140, v146 * 0.5);
v142 = cocos2d::CCNode::convertToNodeSpace(v129, (const struct cocos2d::CCPoint *)&v149);
((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v141->setPosition_0)(
a1->m_submitButton,
v142);
HIDWORD(a1->m_submitButton->m_pfnSelector.adj) = 1060320051;
return 1;
}
return result;
}