//
// SecretLayer::init from 0x140572490 to 0x1405738a6 (5142 bytes)
//
// 5 xrefs:
// > OptionsLayer::onSecretVault @ 0x1404cbea3
// > OptionsLayer::onSecretVault @ 0x1404cbeaa
// > OptionsLayer::onSecretVault @ 0x1404cbe94
// > ??> @ 0x1407debf0
// > ??> @ 0x14092c744
//
// This function is hookable on this platform (idp: pc, 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 11:34:22 +0000
//
// Hidden C++ exception states: #wind=4
bool __fastcall SecretLayer::init(__int64 a1)
{
bool result; // al
__int64 v3; // rcx
__int64 v4; // rdx
__int64 v5; // rdx
__int64 v6; // rcx
__int64 v7; // rax
__int64 v8; // rcx
cocos2d::CCObject *v9; // rax
__int64 v10; // rdx
__int64 v11; // rcx
__int64 v12; // r8
__int64 v13; // rbx
cocos2d::CCString *v14; // rax
__int64 v15; // rcx
int v16; // ebx
unsigned __int64 v17; // rdx
void *v18; // r8
struct cocos2d::CCObject *v19; // rbx
struct cocos2d::CCObject *v20; // rbx
__int64 v21; // rdx
__int64 v22; // rcx
__int64 v23; // r8
__int64 v24; // rbx
cocos2d::CCString *v25; // rax
__int64 v26; // rcx
int v27; // ebx
unsigned __int64 v28; // rdx
void *v29; // r8
struct cocos2d::CCObject *v30; // rbx
struct cocos2d::CCObject *v31; // rbx
__int64 v32; // rdx
__int64 v33; // rcx
__int64 v34; // r8
__int64 v35; // rbx
cocos2d::CCString *v36; // rax
__int64 v37; // rcx
int v38; // ebx
unsigned __int64 v39; // rdx
void *v40; // r8
struct cocos2d::CCObject *v41; // rbx
struct cocos2d::CCObject *v42; // rbx
__int64 v43; // rdx
__int64 v44; // rcx
__int64 v45; // r8
__int64 v46; // rbx
cocos2d::CCString *v47; // rax
__int64 v48; // rcx
int v49; // ebx
unsigned __int64 v50; // rdx
void *v51; // r8
struct cocos2d::CCObject *v52; // rbx
struct cocos2d::CCObject *v53; // rbx
__int64 v54; // rdx
__int64 v55; // rcx
__int64 v56; // r8
__int64 v57; // rbx
cocos2d::CCString *v58; // rax
__int64 v59; // rcx
int v60; // ebx
unsigned __int64 v61; // rdx
void *v62; // r8
struct cocos2d::CCObject *v63; // rbx
struct cocos2d::CCObject *v64; // rbx
__int64 v65; // rdx
__int64 v66; // rcx
__int64 v67; // r8
__int64 v68; // rbx
cocos2d::CCString *v69; // rax
__int64 v70; // rcx
int v71; // ebx
unsigned __int64 v72; // rdx
void *v73; // r8
struct cocos2d::CCObject *v74; // rbx
struct cocos2d::CCObject *v75; // rbx
__int64 v76; // rdx
__int64 v77; // rcx
__int64 v78; // r8
__int64 v79; // rbx
cocos2d::CCString *v80; // rax
__int64 v81; // rcx
int v82; // ebx
unsigned __int64 v83; // rdx
void *v84; // r8
struct cocos2d::CCObject *v85; // rbx
struct cocos2d::CCObject *v86; // rbx
__int64 v87; // rdx
__int64 v88; // rcx
__int64 v89; // r8
__int64 v90; // rbx
cocos2d::CCString *v91; // rax
__int64 v92; // rcx
int v93; // ebx
__int64 v94; // r8
unsigned __int64 v95; // rdx
void *v96; // r8
struct cocos2d::CCObject *v97; // rbx
__int64 v98; // rbx
cocos2d::CCString *v99; // rax
__int64 v100; // rcx
int v101; // ebx
__int64 v102; // r8
unsigned __int64 v103; // rdx
void *v104; // r8
struct cocos2d::CCObject *v105; // rbx
__int64 v106; // rbx
cocos2d::CCString *v107; // rax
__int64 v108; // rcx
int v109; // ebx
__int64 v110; // r8
unsigned __int64 v111; // rdx
void *v112; // r8
struct cocos2d::CCObject *v113; // rbx
__int64 v114; // rbx
cocos2d::CCString *v115; // rax
__int64 v116; // rcx
int v117; // ebx
__int64 v118; // r8
unsigned __int64 v119; // rdx
void *v120; // r8
struct cocos2d::CCObject *v121; // rbx
__int64 v122; // rbx
cocos2d::CCString *v123; // rax
int v124; // ebx
void *v125; // r8
__int64 v126; // rcx
__int64 v127; // rdx
__int64 v128; // rcx
struct cocos2d::CCObject *v129; // rbx
struct cocos2d::CCSprite *v130; // rdi
__int64 v131; // rbx
__int64 v132; // rax
__int64 v133; // rbx
__int64 v134; // rbx
__int64 v135; // rbx
__int64 v136; // rax
struct cocos2d::CCLabelBMFont *v137; // rdi
__int64 v138; // rbx
__int64 v139; // rax
struct cocos2d::CCLabelBMFont *v140; // rax
__int64 v141; // rax
__int64 Message; // rax
__int64 v143; // rax
_QWORD *v144; // rbx
__int64 v145; // rdx
__int64 v146; // rdx
__int64 v147; // rcx
char *v148; // rax
__int64 v149; // rcx
__int64 v150; // rcx
_WORD *v151; // rax
int v152; // eax
cocos2d::CCObject *v153; // rdi
struct cocos2d::CCMenu *v154; // r14
__int64 v155; // rbx
__int64 v156; // rcx
cocos2d::CCDirector *v157; // rax
float v158; // xmm6_4
__int64 v159; // rcx
cocos2d::CCDirector *v160; // rax
float v161; // xmm0_4
__int64 v162; // rax
__int64 v163; // rcx
int v164; // eax
cocos2d::CCObject *v165; // rax
__int64 v166; // rdi
__int64 v167; // rbx
__int64 v168; // rax
__int64 v169; // rax
__int16 v170; // [rsp+38h] [rbp-59h] BYREF
char v171; // [rsp+3Ah] [rbp-57h]
float v172; // [rsp+40h] [rbp-51h] BYREF
float v173; // [rsp+44h] [rbp-4Dh]
__int64 v174[2]; // [rsp+48h] [rbp-49h] BYREF
_BYTE v175[8]; // [rsp+58h] [rbp-39h] BYREF
void **v176; // [rsp+60h] [rbp-31h] BYREF
_BYTE v177[8]; // [rsp+68h] [rbp-29h] BYREF
_BYTE v178[16]; // [rsp+70h] [rbp-21h] BYREF
void *Block[2]; // [rsp+80h] [rbp-11h] BYREF
__int64 v180; // [rsp+90h] [rbp-1h]
unsigned __int64 v181; // [rsp+98h] [rbp+7h]
result = cocos2d::CCLayer::init((cocos2d::CCLayer *)a1);
if ( result )
{
v176 = Block;
v180 = 14;
v181 = 15;
strcpy((char *)Block, "secretLoop.mp3");
HIBYTE(Block[1]) = 0;
if ( !qword_14090BFD0 )
{
v174[0] = (__int64)operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v174[0]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
GameManager::fadeInMusic(v3, (__int64)Block);
LOBYTE(v4) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 992LL))(a1, v4);
LOBYTE(v5) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1008LL))(a1, v5);
v7 = cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize(v7, &v172);
v9 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v8);
*(_QWORD *)(a1 + 472) = v9;
cocos2d::CCObject::retain(v9);
v13 = AchievementManager::sharedState(v11, v10, v12);
*(_OWORD *)Block = 0;
v180 = 0;
v181 = 0;
Block[0] = sub_14003D460(0x20u);
v180 = 21;
v181 = 31;
strcpy((char *)Block[0], "geometry.ach.secret06");
v14 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v13 + 352), Block);
v16 = cocos2d::CCString::intValue(v14);
v17 = v181;
if ( v181 > 0xF )
{
v18 = Block[0];
if ( v181 + 1 >= 0x1000 )
{
v18 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v18 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v18);
}
if ( v16 < 100 )
{
v19 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v15, v17);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v19 + 64LL))(v19, 6);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v19, 6);
}
v20 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v15, v17);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v20 + 64LL))(v20, 101);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v20, 101);
v24 = AchievementManager::sharedState(v22, v21, v23);
*(_OWORD *)Block = 0;
v180 = 0;
v181 = 0;
Block[0] = sub_14003D460(0x20u);
v180 = 21;
v181 = 31;
strcpy((char *)Block[0], "geometry.ach.secret07");
v25 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v24 + 352), Block);
v27 = cocos2d::CCString::intValue(v25);
v28 = v181;
if ( v181 > 0xF )
{
v29 = Block[0];
if ( v181 + 1 >= 0x1000 )
{
v29 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v29 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v29);
}
if ( v27 < 100 )
{
v30 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v26, v28);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v30 + 64LL))(v30, 7);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v30, 7);
}
v31 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v26, v28);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v31 + 64LL))(v31, 102);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v31, 102);
v35 = AchievementManager::sharedState(v33, v32, v34);
*(_OWORD *)Block = 0;
v180 = 0;
v181 = 0;
Block[0] = sub_14003D460(0x20u);
v180 = 21;
v181 = 31;
strcpy((char *)Block[0], "geometry.ach.secret08");
v36 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v35 + 352), Block);
v38 = cocos2d::CCString::intValue(v36);
v39 = v181;
if ( v181 > 0xF )
{
v40 = Block[0];
if ( v181 + 1 >= 0x1000 )
{
v40 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v40 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v40);
}
if ( v38 < 100 )
{
v41 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v37, v39);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v41 + 64LL))(v41, 8);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v41, 8);
}
v42 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v37, v39);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v42 + 64LL))(v42, 103);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v42, 103);
v46 = AchievementManager::sharedState(v44, v43, v45);
*(_OWORD *)Block = 0;
v180 = 0;
v181 = 0;
Block[0] = sub_14003D460(0x20u);
v180 = 21;
v181 = 31;
strcpy((char *)Block[0], "geometry.ach.secret09");
v47 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v46 + 352), Block);
v49 = cocos2d::CCString::intValue(v47);
v50 = v181;
if ( v181 > 0xF )
{
v51 = Block[0];
if ( v181 + 1 >= 0x1000 )
{
v51 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v51 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v51);
}
if ( v49 < 100 )
{
v52 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v48, v50);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v52 + 64LL))(v52, 9);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v52, 9);
}
v53 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v48, v50);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v53 + 64LL))(v53, 104);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v53, 104);
v57 = AchievementManager::sharedState(v55, v54, v56);
*(_OWORD *)Block = 0;
v180 = 0;
v181 = 0;
Block[0] = sub_14003D460(0x20u);
v180 = 21;
v181 = 31;
strcpy((char *)Block[0], "geometry.ach.secret10");
v58 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v57 + 352), Block);
v60 = cocos2d::CCString::intValue(v58);
v61 = v181;
if ( v181 > 0xF )
{
v62 = Block[0];
if ( v181 + 1 >= 0x1000 )
{
v62 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v62 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v62);
}
if ( v60 < 100 )
{
v63 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v59, v61);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v63 + 64LL))(v63, 10);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v63, 10);
}
v64 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v59, v61);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v64 + 64LL))(v64, 105);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v64, 105);
v68 = AchievementManager::sharedState(v66, v65, v67);
*(_OWORD *)Block = 0;
v180 = 0;
v181 = 0;
Block[0] = sub_14003D460(0x20u);
v180 = 21;
v181 = 31;
strcpy((char *)Block[0], "geometry.ach.secret13");
v69 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v68 + 352), Block);
v71 = cocos2d::CCString::intValue(v69);
v72 = v181;
if ( v181 > 0xF )
{
v73 = Block[0];
if ( v181 + 1 >= 0x1000 )
{
v73 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v73 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v73);
}
if ( v71 < 100 )
{
v74 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v70, v72);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v74 + 64LL))(v74, 13);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v74, 13);
}
v75 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v70, v72);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v75 + 64LL))(v75, 120);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v75, 120);
v79 = AchievementManager::sharedState(v77, v76, v78);
*(_OWORD *)Block = 0;
v180 = 0;
v181 = 0;
Block[0] = sub_14003D460(0x20u);
v180 = 21;
v181 = 31;
strcpy((char *)Block[0], "geometry.ach.secret14");
v80 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v79 + 352), Block);
v82 = cocos2d::CCString::intValue(v80);
v83 = v181;
if ( v181 > 0xF )
{
v84 = Block[0];
if ( v181 + 1 >= 0x1000 )
{
v84 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v84 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v84);
}
if ( v82 < 100 )
{
v85 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v81, v83);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v85 + 64LL))(v85, 14);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v85, 14);
}
v86 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v81, v83);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v86 + 64LL))(v86, 121);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v86, 121);
v90 = AchievementManager::sharedState(v88, v87, v89);
*(_OWORD *)Block = 0;
v180 = 0;
v181 = 0;
Block[0] = sub_14003D460(0x20u);
v180 = 21;
v181 = 31;
strcpy((char *)Block[0], "geometry.ach.secret15");
v91 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v90 + 352), Block);
v93 = cocos2d::CCString::intValue(v91);
v95 = v181;
if ( v181 > 0xF )
{
v96 = Block[0];
if ( v181 + 1 >= 0x1000 )
{
v96 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v96 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v96);
}
if ( v93 < 100 )
{
v97 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v92, v95);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v97 + 64LL))(v97, 15);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v97, 15);
}
v98 = AchievementManager::sharedState(v92, v95, v94);
*(_OWORD *)Block = 0;
v180 = 0;
v181 = 0;
Block[0] = sub_14003D460(0x20u);
v180 = 21;
v181 = 31;
strcpy((char *)Block[0], "geometry.ach.secret16");
v99 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v98 + 352), Block);
v101 = cocos2d::CCString::intValue(v99);
v103 = v181;
if ( v181 > 0xF )
{
v104 = Block[0];
if ( v181 + 1 >= 0x1000 )
{
v104 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v104 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v104);
}
if ( v101 < 100 )
{
v105 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v100, v103);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v105 + 64LL))(v105, 16);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v105, 16);
}
v106 = AchievementManager::sharedState(v100, v103, v102);
*(_OWORD *)Block = 0;
v180 = 0;
v181 = 0;
Block[0] = sub_14003D460(0x20u);
v180 = 21;
v181 = 31;
strcpy((char *)Block[0], "geometry.ach.secret17");
v107 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v106 + 352), Block);
v109 = cocos2d::CCString::intValue(v107);
v111 = v181;
if ( v181 > 0xF )
{
v112 = Block[0];
if ( v181 + 1 >= 0x1000 )
{
v112 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v112 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v112);
}
if ( v109 < 100 )
{
v113 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v108, v111);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v113 + 64LL))(v113, 17);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v113, 17);
}
v114 = AchievementManager::sharedState(v108, v111, v110);
*(_OWORD *)Block = 0;
v180 = 0;
v181 = 0;
Block[0] = sub_14003D460(0x20u);
v180 = 21;
v181 = 31;
strcpy((char *)Block[0], "geometry.ach.secret19");
v115 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v114 + 352), Block);
v117 = cocos2d::CCString::intValue(v115);
v119 = v181;
if ( v181 > 0xF )
{
v120 = Block[0];
if ( v181 + 1 >= 0x1000 )
{
v120 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v120 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v120);
}
if ( v117 < 100 )
{
v121 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v116, v119);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v121 + 64LL))(v121, 19);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v121, 19);
}
v122 = AchievementManager::sharedState(v116, v119, v118);
*(_OWORD *)Block = 0;
v180 = 0;
v181 = 0;
Block[0] = sub_14003D460(0x20u);
v180 = 24;
v181 = 31;
strcpy((char *)Block[0], "geometry.ach.v2.secret03");
v123 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v122 + 352), Block);
v124 = cocos2d::CCString::intValue(v123);
if ( v181 > 0xF )
{
v125 = Block[0];
if ( v181 + 1 >= 0x1000 )
{
v125 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v125 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v125);
}
v180 = 0;
v181 = 15;
LOBYTE(Block[0]) = 0;
if ( v124 < 100 )
{
v126 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v174[0] = (__int64)operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v174[0]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v126 = qword_14090BFD0;
}
if ( GameManager::getUGV(v126, &word_14070D058) )
{
v129 = (struct cocos2d::CCObject *)cocos2d::CCNode::create(v128, v127);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v129 + 64LL))(v129, 11);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 472), v129, 11);
}
}
v130 = cocos2d::CCSprite::create("GJ_gradientBG.png");
v131 = *(_QWORD *)v130;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v174, 0.0, 0.0);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v131 + 288))(v130, v132);
(*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))(
a1,
v130,
4294967293LL);
v133 = *(_QWORD *)v130;
cocos2d::CCSprite::getTextureRect(v130);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(v133 + 120))(v130);
v134 = *(_QWORD *)v130;
cocos2d::CCSprite::getTextureRect(v130);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(v134 + 136))(v130);
v135 = *(_QWORD *)v130;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v174, -5.0, -5.0);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v135 + 184))(v130, v136);
v170 = 19200;
v171 = 100;
(**((void (__fastcall ***)(__int64, __int16 *))v130 + 40))((__int64)v130 + 320, &v170);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v178, 0.0, 0.0, 40.0, 40.0);
v137 = cocos2d::CCLabelBMFont::create("The Vault", "goldFont.fnt");
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v137 + 160LL))(v137);
(*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)a1 + 464LL))(a1, v137);
v138 = *(_QWORD *)v137;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v174, v172 * 0.5, v173 - 24.0);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v138 + 184))(v137, v139);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v175, v172 * 0.5, (float)(v173 * 0.5) + 50.0);
v140 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_140704F78);
*(_QWORD *)(a1 + 456) = v140;
(*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)a1 + 464LL))(a1, v140);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v174, 0.0, 43.0);
cocos2d::CCPoint::operator+(v175, &v176, v141);
(*(void (__fastcall **)(_QWORD, void ***))(**(_QWORD **)(a1 + 456) + 184LL))(*(_QWORD *)(a1 + 456), &v176);
Message = SecretLayer::getMessage(a1, Block);
SecretLayer::updateMessageLabel(a1, Message);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v174, (const struct cocos2d::CCRect *)v178);
v144 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v143);
LOBYTE(v145) = 100;
(*(void (__fastcall **)(_QWORD *, __int64))(v144[40] + 40LL))(v144 + 40, v145);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v177, 200.0, 40.0);
(*(void (__fastcall **)(_QWORD *, _BYTE *))(*v144 + 312LL))(v144, v177);
(*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v144, 4294967294LL);
(*(void (__fastcall **)(_QWORD *, _BYTE *))(*v144 + 184LL))(v144, v175);
(*(void (__fastcall **)(_QWORD *, void *))v144[40])(v144 + 40, &unk_140704630);
v148 = CCTextInputNode::create(v147, v146, (__int64)"...");
*(_QWORD *)(a1 + 448) = v148;
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v148, 20);
*(_QWORD *)(*(_QWORD *)(a1 + 448) + 600LL) = a1 + 408;
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 448) + 184LL))(*(_QWORD *)(a1 + 448), v175);
v149 = *(_QWORD *)(a1 + 448);
*(_DWORD *)(v149 + 564) = 1060320051;
CCTextInputNode::refreshLabel(v149);
v150 = *(_QWORD *)(a1 + 448);
*(_DWORD *)(v150 + 560) = 1127481344;
CCTextInputNode::refreshLabel(v150);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 448) + 592LL) + 336LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 448) + 592LL),
0);
*(_DWORD *)(*(_QWORD *)(a1 + 448) + 608LL) = 20;
*(_OWORD *)Block = 0;
v180 = 0;
v181 = 0;
v151 = sub_14003D460(0x40u);
Block[0] = v151;
v180 = 63;
v181 = 63;
qmemcpy(v151, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ012345678", 62);
v151[31] = (unsigned __int8)aAbcdefghijklmn[62];
CCTextInputNode::setAllowedChars(*(_QWORD *)(a1 + 448), Block);
SecretLayer::updateSearchLabel(a1, &byte_1406ED6E0);
v152 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
v153 = CCMenuItemSpriteExtra::create(v152, 0, a1, (__int64)SecretLayer::onBack);
*((_DWORD *)v153 + 93) = 1069547520;
v154 = cocos2d::CCMenu::create(v153, 0);
(*(void (__fastcall **)(__int64, struct cocos2d::CCMenu *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v154, 1);
v155 = *(_QWORD *)v154;
v157 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v156);
v158 = cocos2d::CCDirector::getScreenTop(v157) - 23.0;
v160 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v159);
v161 = cocos2d::CCDirector::getScreenLeft(v160) + 24.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v174, v161, v158);
(*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v155 + 184))(v154, v162);
if ( *(_BYTE *)(cocos2d::CCApplication::sharedApplication(v163) + 209) )
GameToolbox::addBackButton(a1, (__int64)v153);
v164 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_secretLock_001.png");
v165 = CCMenuItemSpriteExtra::create(v164, 0, a1, (__int64)SecretLayer::onSubmit);
*(_QWORD *)(a1 + 464) = v165;
(*(void (__fastcall **)(struct cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v154 + 464LL))(v154, v165);
v166 = **(_QWORD **)(a1 + 464);
v167 = *(_QWORD *)(a1 + 464);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v174, v172 * 0.5, (float)(v173 * 0.5) - 20.0);
cocos2d::CCNode::convertToNodeSpace(v154, &v176, v168);
(*(void (__fastcall **)(__int64, __int64))(v166 + 184))(v167, v169);
*(_DWORD *)(*(_QWORD *)(a1 + 464) + 372LL) = 1060320051;
return 1;
}
return result;
}