//
// SecretLayer2::onSubmit from 0x10049e430 to 0x10049f7d2 (5026 bytes)
//
// 1 xrefs:
// > SecretLayer2::init @ 0x10049da75
//
// 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
//
void __fastcall SecretLayer2::onSubmit(SecretLayer2 *a1, cocos2d::CCObject *a2)
{
__m128 v2; // xmm0
char v3; // al
bool v4; // cl
unsigned int v5; // ebx
std::string::size_type v6; // r15
std::string::size_type size; // r12
std::string::pointer data; // rax
char v9; // al
std::string::pointer v10; // rcx
std::string::pointer v11; // r14
unsigned __int8 v12; // r13
std::string::size_type v13; // rax
size_t v14; // rdx
char *v15; // r12
char *v16; // rax
char *v17; // rax
std::string::size_type v18; // rax
const std::string::value_type *v19; // rcx
std::string::size_type v20; // r8
std::string::size_type v21; // r14
__int64 v22; // rax
std::string::size_type v23; // rcx
unsigned int v24; // r12d
SecretLayer2 *v25; // r13
CCTextInputNode *m_searchInput; // rdi
std::string::size_type v27; // rcx
std::string::pointer v28; // rdi
size_t v29; // rdx
AchievementManager *v30; // rax
int m_selectedThread; // ebx
int m_basicMessageCount; // r14d
std::string::pointer v33; // rsi
GameManager *v34; // rax
const char *v35; // rdi
GameManager *v36; // rax
char *v37; // r14
cocos2d::CCLabelBMFont *m_messageLabel; // rdi
void *v39; // rsi
int v40; // ebx
GameManager *v41; // rax
AchievementManager *v42; // rax
GameManager *v43; // rax
cocos2d::CCLabelBMFont *v44; // rdi
GameManager *v45; // rax
bool UGV; // al
unsigned __int128 v47; // kr00_16
unsigned __int64 v48; // r13
char v49; // r15
std::string::pointer v50; // rdi
std::string::size_type v51; // rbx
size_t v52; // rdx
AchievementManager *v53; // rax
FMODAudioEngine *v54; // rax
GameManager *v55; // rax
GameStatsManager *v56; // rax
GameStatsManager *v57; // rax
char *v58; // rbx
size_t v59; // rdx
AchievementManager *v60; // rax
SecretLayer2 *v61; // rbx
GameManager *v62; // rax
cocos2d::CCLabelBMFont *v63; // rdi
GameStatsManager *v64; // rax
cocos2d::CCString *v65; // rax
const char *CString; // r14
size_t v67; // rax
size_t v68; // r13
char *v69; // r15
size_t v70; // r12
char v71; // r14
void *v72; // r12
size_t v73; // rax
char *v74; // rdi
size_t v75; // rdx
bool v76; // zf
char v77; // bl
std::string::pointer v78; // r15
AchievementManager *v79; // rax
GameManager *v80; // rax
char *v81; // r14
cocos2d::CCLabelBMFont *v82; // rdi
std::string::size_type v83; // rbx
size_t v84; // rdx
AchievementManager *v85; // rax
GameManager *v86; // rax
size_t v87; // rdx
AchievementManager *v88; // rax
GameManager *v89; // rax
char v90; // bl
AchievementManager *v91; // rax
GameManager *v92; // rax
char v93; // bl
AchievementManager *v94; // rax
GameManager *v95; // rax
char v96; // bl
AchievementManager *v97; // rax
GameManager *v98; // rax
cocos2d::CCLabelBMFont *v99; // rdi
char v100; // bl
GameManager *v101; // rax
cocos2d::CCLabelBMFont *v102; // rdi
char v103; // bl
GameManager *v104; // rax
GameManager *v105; // rax
SecretNumberLayer *v106; // r14
GameManager *v107; // rax
size_t v108; // rax
char v109; // bl
void **v110; // rax
cocos2d::CCLabelBMFont *v111; // rdi
char v112; // bl
char v113; // bl
bool v114; // zf
char v115; // bl
char v116; // bl
SecretLayer2 *v117; // rbx
char v118; // [rsp+0h] [rbp-250h]
__int16 v119[8]; // [rsp+8h] [rbp-248h] BYREF
void *v120; // [rsp+18h] [rbp-238h]
void *v121[3]; // [rsp+20h] [rbp-230h] BYREF
void *v122[3]; // [rsp+38h] [rbp-218h] BYREF
void *v123[3]; // [rsp+50h] [rbp-200h] BYREF
void *v124[3]; // [rsp+68h] [rbp-1E8h] BYREF
void *v125[3]; // [rsp+80h] [rbp-1D0h] BYREF
void *v126[3]; // [rsp+98h] [rbp-1B8h] BYREF
void *v127[3]; // [rsp+B0h] [rbp-1A0h] BYREF
_QWORD v128[2]; // [rsp+C8h] [rbp-188h] BYREF
char v129; // [rsp+D8h] [rbp-178h] BYREF
_QWORD v130[2]; // [rsp+E0h] [rbp-170h] BYREF
char v131; // [rsp+F0h] [rbp-160h] BYREF
_QWORD v132[2]; // [rsp+F8h] [rbp-158h] BYREF
char v133; // [rsp+108h] [rbp-148h] BYREF
_QWORD v134[2]; // [rsp+110h] [rbp-140h] BYREF
char v135; // [rsp+120h] [rbp-130h] BYREF
_QWORD v136[2]; // [rsp+128h] [rbp-128h] BYREF
char v137; // [rsp+138h] [rbp-118h] BYREF
_BYTE v138[16]; // [rsp+140h] [rbp-110h] BYREF
char v139; // [rsp+150h] [rbp-100h] BYREF
char v140; // [rsp+158h] [rbp-F8h]
_BYTE v141[23]; // [rsp+159h] [rbp-F7h] BYREF
_BYTE v142[24]; // [rsp+170h] [rbp-E0h] BYREF
void *v143[3]; // [rsp+188h] [rbp-C8h] BYREF
char v144; // [rsp+1A0h] [rbp-B0h]
_BYTE v145[23]; // [rsp+1A1h] [rbp-AFh] BYREF
std::string v146; // [rsp+1B8h] [rbp-98h] BYREF
size_t __n[2]; // [rsp+1D0h] [rbp-80h] BYREF
void *v148; // [rsp+1E0h] [rbp-70h]
SecretLayer2 *v149; // [rsp+1E8h] [rbp-68h]
std::string __s1; // [rsp+1F0h] [rbp-60h] BYREF
__int128 __s; // [rsp+210h] [rbp-40h] BYREF
void *__p; // [rsp+220h] [rbp-30h]
CCTextInputNode::getString(__n, (__int64)a1->m_searchInput, *(double *)v2.i64);
if ( (__n[0] & 1) != 0 )
{
sub_100006B70(&__s1, v148, __n[1], *(double *)v2.i64);
}
else
{
__s1.__r_.__value_.__r.__words[2] = (std::string::size_type)v148;
v2 = *(__m128 *)__n;
*(_OWORD *)&__s1.__r_.__value_.__l.0 = *(_OWORD *)__n;
}
v3 = *(_BYTE *)&__s1.__r_.__value_.__s.0 & 1;
v4 = (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) == 0;
if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) != 0 )
{
if ( __s1.__r_.__value_.__l.__size_ )
goto LABEL_6;
LABEL_16:
size = 0;
goto LABEL_17;
}
if ( !(*(_BYTE *)&__s1.__r_.__value_.__l.0 >> 1) )
goto LABEL_16;
LABEL_6:
v5 = 1;
v6 = 0;
do
{
while ( 1 )
{
data = __s1.__r_.__value_.__s.__data_;
if ( !v4 )
data = __s1.__r_.__value_.__l.__data_;
v9 = __tolower(data[v6]);
v10 = __s1.__r_.__value_.__s.__data_;
if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) != 0 )
v10 = __s1.__r_.__value_.__l.__data_;
v10[v6] = v9;
v3 = *(_BYTE *)&__s1.__r_.__value_.__s.0 & 1;
v4 = (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) == 0;
if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) == 0 )
break;
size = __s1.__r_.__value_.__l.__size_;
v6 = v5++;
if ( __s1.__r_.__value_.__l.__size_ <= v6 )
goto LABEL_17;
}
size = *(_BYTE *)&__s1.__r_.__value_.__l.0 >> 1;
v6 = v5++;
}
while ( size > v6 );
LABEL_17:
v149 = a1;
LOWORD(__s) = 0;
v11 = __s1.__r_.__value_.__s.__data_;
if ( v3 )
v11 = __s1.__r_.__value_.__l.__data_;
v12 = 0;
v13 = 0;
while ( 2 )
{
v14 = size - v13;
if ( (__int64)size > (__int64)v13 )
{
v15 = &v11[size];
v16 = &v11[v13];
while ( 1 )
{
v17 = (char *)memchr(v16, 32, v14);
if ( !v17 )
goto LABEL_37;
if ( *v17 == 32 )
break;
v16 = v17 + 1;
v14 = v15 - v16;
if ( v15 - v16 <= 0 )
goto LABEL_37;
}
if ( v17 == v15 )
break;
v18 = v17 - v11;
if ( v18 == -1 )
break;
if ( (v12 & 1) != 0 )
{
v19 = (const std::string::value_type *)__p;
v20 = *((_QWORD *)&__s + 1);
}
else
{
v20 = v12 >> 1;
v19 = (char *)&__s + 1;
}
v21 = v18;
std::string::replace(&__s1, v18, 1u, v19, v20);
v12 = __s;
if ( (__s & 1) != 0 )
{
v22 = *((_QWORD *)&__s + 1);
v23 = v21;
v24 = (unsigned int)__s1.__r_.__value_.__l.0;
if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_33;
}
else
{
v22 = (unsigned __int8)__s >> 1;
v23 = v21;
v24 = (unsigned int)__s1.__r_.__value_.__l.0;
if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_33:
size = v24 >> 1;
v11 = __s1.__r_.__value_.__s.__data_;
v13 = v23 + v22;
if ( size >= v13 )
continue;
break;
}
}
v11 = __s1.__r_.__value_.__l.__data_;
size = __s1.__r_.__value_.__l.__size_;
v13 = v23 + v22;
if ( __s1.__r_.__value_.__l.__size_ >= v13 )
continue;
}
break;
}
LABEL_37:
if ( (v12 & 1) != 0 )
operator delete(__p);
v25 = v149;
m_searchInput = v149->m_searchInput;
v119[0] = 0;
CCTextInputNode::setString(m_searchInput, (__int64)v119, v2);
if ( (v119[0] & 1) != 0 )
operator delete(v120);
LOBYTE(__s) = 20;
qmemcpy((char *)&__s + 1, "brainpower", 10);
v27 = *(_BYTE *)&__s1.__r_.__value_.__l.0 >> 1;
v28 = __s1.__r_.__value_.__l.__data_;
if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) == 0 )
v28 = __s1.__r_.__value_.__s.__data_;
BYTE11(__s) = 0;
if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) != 0 )
v27 = __s1.__r_.__value_.__l.__size_;
v29 = 10;
if ( v27 < 0xA )
v29 = v27;
if ( !((v27 != 10) | (memcmp(v28, (char *)&__s + 1, v29) != 0)) )
{
v30 = AchievementManager::sharedState();
if ( AchievementManager::isAchievementEarned(v30, "geometry.ach.v2.secret01") )
goto LABEL_49;
v36 = GameManager::sharedState();
GameManager::reportAchievementWithID(v36, "geometry.ach.v2.secret01", 100, 0);
v37 = (char *)operator new(0x30u);
strcpy(v37, "O-oooooooooo AAAAE-A-A-I-A-U- JO-oooooooooooo!");
((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v25->m_messageLabel->setString)(v25->m_messageLabel, v37);
cocos2d::CCLabelBMFont::limitLabelWidth(v25->m_messageLabel, 320.0, 0.60000002, 0.0);
operator delete(v37);
m_messageLabel = v25->m_messageLabel;
BYTE2(__s) = -1;
LOWORD(__s) = -256;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))m_messageLabel->setColor)(m_messageLabel, &__s);
cocos2d::CCLabelBMFont::limitLabelWidth(v25->m_messageLabel, 400.0, 0.80000001, 0.0);
LABEL_60:
v25->m_selectedThread = 0;
goto LABEL_69;
}
v34 = GameManager::sharedState();
if ( v34->m_secretNumber.seed > v34->m_secretNumber.random )
{
v35 = (__n[0] & 1) != 0 ? (const char *)v148 : (char *)__n + 1;
v40 = atoi(v35);
v41 = GameManager::sharedState();
if ( v40 == v41->m_secretNumber.seed - v41->m_secretNumber.random )
{
v42 = AchievementManager::sharedState();
if ( !AchievementManager::isAchievementEarned(v42, "geometry.ach.v2.secret02") )
{
v43 = GameManager::sharedState();
GameManager::reportAchievementWithID(v43, "geometry.ach.v2.secret02", 100, 0);
v140 = 26;
strcpy(v141, "Impressive...");
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v25->m_messageLabel->setString)(
v25->m_messageLabel,
v141);
cocos2d::CCLabelBMFont::limitLabelWidth(v25->m_messageLabel, 320.0, 0.60000002, 0.0);
if ( (v140 & 1) != 0 )
operator delete(*(void **)&v141[15]);
v44 = v25->m_messageLabel;
BYTE2(__s) = -1;
LOWORD(__s) = -256;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v44->setColor)(v44, &__s);
goto LABEL_60;
}
goto LABEL_49;
}
}
v45 = GameManager::sharedState();
UGV = GameManager::getUGV(v45, "3");
v47 = *(_OWORD *)&__s1.__r_.__value_.__r.__words[1];
if ( UGV )
{
LOBYTE(__s) = 14;
qmemcpy((char *)&__s + 1, "glubfub", 7);
v48 = *(_BYTE *)&__s1.__r_.__value_.__l.0 >> 1;
v49 = *(_BYTE *)&__s1.__r_.__value_.__s.0 & 1;
v50 = __s1.__r_.__value_.__l.__data_;
if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) == 0 )
v50 = __s1.__r_.__value_.__s.__data_;
BYTE8(__s) = 0;
v51 = __s1.__r_.__value_.__l.__size_;
if ( !v49 )
v51 = *(_BYTE *)&__s1.__r_.__value_.__l.0 >> 1;
v52 = 7;
if ( v51 < 7 )
v52 = v51;
if ( !memcmp(v50, (char *)&__s + 1, v52) && v51 == 7 )
{
v53 = AchievementManager::sharedState();
v25 = v149;
if ( !AchievementManager::isAchievementEarned(v53, "geometry.ach.v2.secret03") )
{
v54 = FMODAudioEngine::sharedEngine();
strcpy(v142, "$highscoreGet02.ogg");
FMODAudioEngine::playEffect_1((__int64)v54, (__int128 *)v142, 1.674390687123889e243);
if ( (v142[0] & 1) != 0 )
operator delete(*(void **)&v142[16]);
v55 = GameManager::sharedState();
GameManager::reportAchievementWithID(v55, "geometry.ach.v2.secret03", 100, 0);
v56 = GameStatsManager::sharedState();
GameStatsManager::storeSecretCoin(v56, "secretB03");
v57 = GameStatsManager::sharedState();
GameStatsManager::incrementStat_1(v57, "8");
strcpy((char *)v143, "*NOOOO!! THIEF! THIEF!");
((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v25->m_messageLabel->setString)(
v25->m_messageLabel,
(char *)v143 + 1);
cocos2d::CCLabelBMFont::limitLabelWidth(v25->m_messageLabel, 320.0, 0.60000002, 0.0);
if ( ((__int64)v143[0] & 1) != 0 )
operator delete(v143[2]);
SecretLayer2::playCoinEffect(v25);
goto LABEL_60;
}
goto LABEL_49;
}
}
else
{
v48 = *(_BYTE *)&__s1.__r_.__value_.__l.0 >> 1;
v49 = *(_BYTE *)&__s1.__r_.__value_.__s.0 & 1;
}
LOBYTE(__s) = 16;
v58 = (char *)&__s + 1;
strcpy((char *)&__s + 1, "octocube");
if ( !v49 )
v47 = __PAIR128__((std::string *)((char *)&__s1.__r_.__value_.__l.0 + 1), v48);
v59 = 8;
if ( (unsigned __int64)v47 < 8 )
v59 = v47;
if ( !memcmp(*((const void **)&v47 + 1), (char *)&__s + 1, v59) && (_QWORD)v47 == 8 )
{
v60 = AchievementManager::sharedState();
v61 = v149;
if ( !AchievementManager::isAchievementEarned(v60, "geometry.ach.v2.secret04") )
{
v62 = GameManager::sharedState();
GameManager::reportAchievementWithID(v62, "geometry.ach.v2.secret04", 100, 0);
v144 = 30;
strcpy(v145, "Ugh... Slippery");
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v61->m_messageLabel->setString)(
v61->m_messageLabel,
v145);
cocos2d::CCLabelBMFont::limitLabelWidth(v61->m_messageLabel, 320.0, 0.60000002, 0.0);
if ( (v144 & 1) != 0 )
operator delete(*(void **)&v145[15]);
v63 = v61->m_messageLabel;
BYTE2(__s) = -1;
LOWORD(__s) = -256;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v63->setColor)(v63, &__s);
cocos2d::CCLabelBMFont::limitLabelWidth(v61->m_messageLabel, 400.0, 0.80000001, 0.0);
v61->m_selectedThread = 0;
}
goto LABEL_69;
}
v64 = GameStatsManager::sharedState();
GameStatsManager::getStat(v64, "6");
v65 = (cocos2d::CCString *)sub_1007AB580("%i", v118);
CString = cocos2d::CCString::getCString(v65);
v67 = strlen(CString);
if ( v67 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(*(double *)v2.i64);
v68 = v67;
if ( v67 >= 0x17 )
{
v70 = 26;
if ( (v67 | 7) != 0x17 )
v70 = (v67 | 7) + 1;
v69 = (char *)operator new(v70);
__p = v69;
*(_QWORD *)&__s = v70 | 1;
*((_QWORD *)&__s + 1) = v68;
goto LABEL_113;
}
LOBYTE(__s) = 2 * v67;
v69 = (char *)&__s + 1;
if ( v67 )
LABEL_113:
memmove(v69, CString, v68);
v69[v68] = 0;
v71 = __s;
v72 = __p;
if ( (__n[0] & 1) != 0 )
{
v73 = __n[1];
v74 = (char *)v148;
}
else
{
v73 = LOBYTE(__n[0]) >> 1;
v74 = (char *)__n + 1;
}
v25 = v149;
v75 = (unsigned __int8)__s >> 1;
if ( (__s & 1) != 0 )
{
v75 = *((_QWORD *)&__s + 1);
v58 = (char *)__p;
}
v76 = v75 == v73;
if ( v75 >= v73 )
v75 = v73;
v77 = v76 & (memcmp(v74, v58, v75) == 0);
if ( (v71 & 1) != 0 )
operator delete(v72);
v78 = __s1.__r_.__value_.__s.__data_;
if ( v77 )
{
v79 = AchievementManager::sharedState();
if ( !AchievementManager::isAchievementEarned(v79, "geometry.ach.v2.secret05") )
{
v80 = GameManager::sharedState();
GameManager::reportAchievementWithID(v80, "geometry.ach.v2.secret05", 100, 0);
v81 = (char *)operator new(0x28u);
strcpy(v81, "I wish I had that many shinies...");
((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v25->m_messageLabel->setString)(v25->m_messageLabel, v81);
cocos2d::CCLabelBMFont::limitLabelWidth(v25->m_messageLabel, 320.0, 0.60000002, 0.0);
operator delete(v81);
v82 = v25->m_messageLabel;
BYTE2(__s) = -1;
LOWORD(__s) = -256;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v82->setColor)(v82, &__s);
goto LABEL_60;
}
LABEL_49:
m_selectedThread = v25->m_selectedThread;
if ( m_selectedThread )
goto LABEL_53;
m_basicMessageCount = v25->m_basicMessageCount;
if ( (float)((float)rand() * 4.6566129e-10) > (float)((float)((float)m_basicMessageCount * -0.050000001) + 1.0) )
SecretLayer2::selectAThread(v25);
if ( v25->m_selectedThread )
LABEL_53:
SecretLayer2::getThreadMessage(&v146);
else
SecretLayer2::getBasicMessage(&v146, v25);
if ( (*(_BYTE *)&v146.__r_.__value_.__s.0 & 1) != 0 )
v33 = v146.__r_.__value_.__l.__data_;
else
v33 = v146.__r_.__value_.__s.__data_;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string::pointer))v25->m_messageLabel->setString)(
v25->m_messageLabel,
v33);
cocos2d::CCLabelBMFont::limitLabelWidth(v25->m_messageLabel, 320.0, 0.60000002, 0.0);
if ( (*(_BYTE *)&v146.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v146.__r_.__value_.__l.__data_);
if ( m_selectedThread <= 0 )
{
v39 = &unk_10081D3BB;
if ( v25->m_selectedThread > 0 )
v39 = &unk_10081D3BE;
}
else
{
v39 = &unk_10081D3BE;
}
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v25->m_messageLabel->setColor)(v25->m_messageLabel, v39);
goto LABEL_69;
}
strcpy((char *)&__s, "\nseven");
if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) != 0 )
{
v78 = __s1.__r_.__value_.__l.__data_;
v83 = __s1.__r_.__value_.__l.__size_;
}
else
{
v83 = *(_BYTE *)&__s1.__r_.__value_.__l.0 >> 1;
}
v84 = 5;
if ( v83 < 5 )
v84 = v83;
if ( !((v83 != 5) | (memcmp(v78, (char *)&__s + 1, v84) != 0)) )
{
v85 = AchievementManager::sharedState();
if ( AchievementManager::isAchievementEarned(v85, "geometry.ach.v2.secret06") )
goto LABEL_69;
v86 = GameManager::sharedState();
GameManager::reportAchievementWithID(v86, "geometry.ach.v2.secret06", 100, 0);
sub_100030790(v121, "I should have been a doctor...", *(double *)v2.i64);
SecretLayer2::updateMessageLabel((__int64)v25, (__int64)v121);
if ( ((__int64)v121[0] & 1) != 0 )
operator delete(v121[2]);
goto LABEL_164;
}
LOBYTE(__s) = 28;
strcpy((char *)&__s + 1, "gimmiethecolor");
v87 = 14;
if ( v83 < 0xE )
v87 = v83;
if ( !((v83 != 14) | (memcmp(v78, (char *)&__s + 1, v87) != 0)) )
{
v88 = AchievementManager::sharedState();
if ( AchievementManager::isAchievementEarned(v88, "geometry.ach.v2.secret07") )
goto LABEL_69;
v89 = GameManager::sharedState();
GameManager::reportAchievementWithID(v89, "geometry.ach.v2.secret07", 100, 0);
sub_100030790(v122, "How many colors do you need?", *(double *)v2.i64);
SecretLayer2::updateMessageLabel((__int64)v25, (__int64)v122);
if ( ((__int64)v122[0] & 1) != 0 )
operator delete(v122[2]);
goto LABEL_164;
}
sub_100030790(&__s, "thechickenisonfire", *(double *)v2.i64);
v90 = sub_1001B0EE0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
operator delete(__p);
if ( v90 )
{
v91 = AchievementManager::sharedState();
if ( AchievementManager::isAchievementEarned(v91, "geometry.ach.v2.secret08") )
goto LABEL_69;
v92 = GameManager::sharedState();
GameManager::reportAchievementWithID(v92, "geometry.ach.v2.secret08", 100, 0);
sub_100030790(v123, "Indeed it is...", *(double *)v2.i64);
SecretLayer2::updateMessageLabel((__int64)v25, (__int64)v123);
if ( ((__int64)v123[0] & 1) != 0 )
operator delete(v123[2]);
goto LABEL_164;
}
sub_100030790(&__s, "d4shg30me7ry", *(double *)v2.i64);
v93 = sub_1001B0EE0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
operator delete(__p);
if ( v93 )
{
v94 = AchievementManager::sharedState();
if ( AchievementManager::isAchievementEarned(v94, "geometry.ach.v2.secret09") )
goto LABEL_49;
v95 = GameManager::sharedState();
GameManager::reportAchievementWithID(v95, "geometry.ach.v2.secret09", 100, 0);
sub_100030790(v124, "Good times", *(double *)v2.i64);
SecretLayer2::updateMessageLabel((__int64)v25, (__int64)v124);
if ( ((__int64)v124[0] & 1) != 0 )
operator delete(v124[2]);
goto LABEL_164;
}
sub_100030790(&__s, "thechickenisready", *(double *)v2.i64);
v96 = sub_1001B0EE0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
operator delete(__p);
if ( v96 )
{
v97 = AchievementManager::sharedState();
if ( AchievementManager::isAchievementEarned(v97, "geometry.ach.v2.secret10") )
goto LABEL_49;
v98 = GameManager::sharedState();
GameManager::reportAchievementWithID(v98, "geometry.ach.v2.secret10", 100, 0);
sub_100030790(v125, "You overcooked it again!", *(double *)v2.i64);
SecretLayer2::updateMessageLabel((__int64)v25, (__int64)v125);
if ( ((__int64)v125[0] & 1) != 0 )
operator delete(v125[2]);
LABEL_164:
v99 = v25->m_messageLabel;
BYTE2(__s) = -1;
LOWORD(__s) = -256;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v99->setColor)(v99, &__s);
cocos2d::CCLabelBMFont::limitLabelWidth(v25->m_messageLabel, 300.0, 0.80000001, 0.0);
goto LABEL_60;
}
sub_100030790(&__s, "thechallenge", *(double *)v2.i64);
v100 = sub_1001B0EE0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
operator delete(__p);
if ( !v100 )
{
sub_100030790(&__s, "cod3breaker", *(double *)v2.i64);
v103 = sub_1001B0EE0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
operator delete(__p);
if ( v103 )
{
sub_100030790(v127, " ", *(double *)v2.i64);
SecretLayer2::updateMessageLabel((__int64)v25, (__int64)v127);
if ( ((__int64)v127[0] & 1) != 0 )
operator delete(v127[2]);
v25->m_selectedThread = 0;
v104 = GameManager::sharedState();
if ( v104->m_secretNumber.seed <= v104->m_secretNumber.random )
{
v105 = GameManager::sharedState();
GameManager::generateSecretNumber(v105);
}
v106 = SecretNumberLayer::create();
((void (__fastcall *)(SecretLayer2 *, SecretNumberLayer *, __int64))v25->addChild_0)(v25, v106, 100);
v107 = GameManager::sharedState();
SecretNumberLayer::playNumberEffect(v106, v107->m_secretNumber.seed - v107->m_secretNumber.random);
goto LABEL_69;
}
if ( (__n[0] & 1) != 0 )
v108 = __n[1];
else
v108 = LOBYTE(__n[0]) >> 1;
if ( !v108 )
goto LABEL_49;
sub_100030790(&__s, "unicorn", *(double *)v2.i64);
v109 = sub_1001B0EE0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
operator delete(__p);
if ( v109 )
{
sub_100030790(v128, "Why do they have a horn?", *(double *)v2.i64);
SecretLayer2::updateMessageLabel((__int64)v25, (__int64)v128);
v110 = (void **)&v129;
if ( (v128[0] & 1) == 0 )
{
LABEL_189:
v25->m_selectedThread = 0;
v111 = v25->m_messageLabel;
BYTE2(__s) = 0;
LOWORD(__s) = -26881;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v111->setColor)(v111, &__s);
goto LABEL_69;
}
}
else
{
sub_100030790(&__s, "rubrubpowah123", *(double *)v2.i64);
v112 = sub_1001B0EE0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
operator delete(__p);
if ( v112 )
{
sub_100030790(v130, "Ultimate Haxxor mode enabled. Not...", *(double *)v2.i64);
SecretLayer2::updateMessageLabel((__int64)v25, (__int64)v130);
v110 = (void **)&v131;
if ( (v130[0] & 1) == 0 )
goto LABEL_189;
}
else
{
sub_100030790(&__s, "battop", *(double *)v2.i64);
v113 = sub_1001B0EE0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
operator delete(__p);
if ( v113 )
{
sub_100030790(v132, "He could be watching us right now...", *(double *)v2.i64);
SecretLayer2::updateMessageLabel((__int64)v149, (__int64)v132);
v114 = (v132[0] & 1) == 0;
v110 = (void **)&v133;
}
else
{
sub_100030790(&__s, "kappa", *(double *)v2.i64);
v115 = sub_1001B0EE0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
operator delete(__p);
if ( v115 )
{
sub_100030790(v134, "There is no Kappa icon...", *(double *)v2.i64);
SecretLayer2::updateMessageLabel((__int64)v149, (__int64)v134);
v114 = (v134[0] & 1) == 0;
v110 = (void **)&v135;
}
else
{
sub_100030790(&__s, "robtop", *(double *)v2.i64);
v116 = sub_1001B0EE0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
operator delete(__p);
if ( v116 )
{
sub_100030790(v136, "RUBRUBRUBRUBRUBRUB", *(double *)v2.i64);
SecretLayer2::updateMessageLabel((__int64)v149, (__int64)v136);
v114 = (v136[0] & 1) == 0;
v110 = (void **)&v137;
}
else
{
v117 = v149;
SecretLayer2::getErrorMessage(v138, v149);
SecretLayer2::updateMessageLabel((__int64)v117, (__int64)v138);
v114 = (v138[0] & 1) == 0;
v110 = (void **)&v139;
}
}
}
v25 = v149;
if ( v114 )
goto LABEL_189;
}
}
operator delete(*v110);
goto LABEL_189;
}
v101 = GameManager::sharedState();
if ( GameManager::getUGV(v101, "1") )
goto LABEL_49;
sub_100030790(v126, "My level? You want to try it!?", *(double *)v2.i64);
SecretLayer2::updateMessageLabel((__int64)v25, (__int64)v126);
if ( ((__int64)v126[0] & 1) != 0 )
operator delete(v126[2]);
v102 = v25->m_messageLabel;
BYTE2(__s) = -1;
LOWORD(__s) = -256;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v102->setColor)(v102, &__s);
v25->m_selectedThread = 0;
SecretLayer2::showSecretLevel(v25);
LABEL_69:
if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s1.__r_.__value_.__l.__data_);
if ( (__n[0] & 1) != 0 )
operator delete(v148);
}