//
// SecretLayer::onSubmit from 0x1003bddf8 to 0x1003bebf8 (3584 bytes)
//
// 1 xrefs:
// > SecretLayer::init @ 0x1003bda24
//
// 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 SecretLayer::onSubmit(SecretLayer *a1, cocos2d::CCObject *a2)
{
std::string::size_type size; // x9
__int64 v4; // x19
unsigned __int64 v5; // x8
unsigned int v6; // w20
std::string *p_dst; // x8
std::string::value_type v8; // w0
std::string *v9; // x8
std::string::size_type v10; // x9
bool v11; // cc
GameManager *v12; // x0
__int64 v13; // x9
__int64 v14; // x19
unsigned __int64 v15; // x8
unsigned int v16; // w20
__int128 *v17; // x8
char v18; // w0
__int128 *v19; // x8
unsigned __int64 v20; // x9
std::string::size_type v21; // x20
std::string::size_type v22; // x8
std::string *v23; // x28
std::string::size_type v24; // x27
unsigned __int64 v25; // x24
std::string::size_type v26; // x19
void **v27; // x21
signed __int64 v28; // x22
signed __int64 v29; // x9
char *v30; // x25
char *v31; // x0
int v32; // w20
char *v33; // x0
char *v34; // x23
std::string::size_type v35; // x2
const std::string::value_type *v36; // x3
std::string::size_type v37; // x4
std::string::size_type v38; // x8
SecretLayer *v39; // x22
CCTextInputNode *m_searchInput; // x20
int m_doomedIndex; // w21
_BOOL4 v42; // w0
_BOOL4 v43; // w20
AchievementManager *v44; // x0
GameManager *v45; // x0
void *v46; // x0
_BOOL4 v47; // w0
_BOOL4 v48; // w20
AchievementManager *v49; // x0
FMODAudioEngine *v50; // x20
GameManager *v51; // x0
GameStatsManager *v52; // x0
GameStatsManager *v53; // x0
_BOOL4 v54; // w0
_BOOL4 v55; // w20
AchievementManager *v56; // x0
GameManager *v57; // x0
_BOOL4 v58; // w0
_BOOL4 v59; // w20
AchievementManager *v60; // x0
GameManager *v61; // x0
_BOOL4 v62; // w20
AchievementManager *v63; // x0
GameManager *v64; // x0
_BOOL4 v65; // w20
AchievementManager *v66; // x0
GameManager *v67; // x0
_BOOL4 v68; // w20
AchievementManager *v69; // x0
GameManager *v70; // x0
_BOOL4 v71; // w20
AchievementManager *v72; // x0
GameManager *v73; // x0
_BOOL4 v74; // w20
AchievementManager *v75; // x0
GameManager *v76; // x0
char *v77; // x1
_BOOL4 v78; // w20
AchievementManager *v79; // x0
GameManager *v80; // x0
_BOOL4 v81; // w20
AchievementManager *v82; // x0
GameManager *v83; // x0
AchievementManager *v84; // x0
int m_selectedThread; // w19
int v86; // w8
cocos2d::CCLabelBMFont *v87; // x0
void *v88; // x1
_BOOL4 v89; // w20
__int64 *v90; // x8
_BOOL4 v91; // w20
_BOOL4 v92; // w20
__int64 *v93; // x8
_BOOL4 v94; // w20
_BOOL4 v95; // w20
SecretLayer *v96; // x19
_BOOL4 v97; // w20
cocos2d::CCLabelBMFont *m_messageLabel; // x0
GameManager *v99; // x0
SecretLayer *v100; // [xsp+8h] [xbp-2C8h]
void *v101; // [xsp+10h] [xbp-2C0h] BYREF
char v102; // [xsp+27h] [xbp-2A9h]
__int64 v103[2]; // [xsp+28h] [xbp-2A8h] BYREF
char v104; // [xsp+3Fh] [xbp-291h]
__int64 v105[2]; // [xsp+40h] [xbp-290h] BYREF
char v106; // [xsp+57h] [xbp-279h]
__int64 v107[2]; // [xsp+58h] [xbp-278h] BYREF
char v108; // [xsp+6Fh] [xbp-261h]
__int64 v109[2]; // [xsp+70h] [xbp-260h] BYREF
char v110; // [xsp+87h] [xbp-249h]
__int64 v111[2]; // [xsp+88h] [xbp-248h] BYREF
char v112; // [xsp+9Fh] [xbp-231h]
__int64 v113[2]; // [xsp+A0h] [xbp-230h] BYREF
char v114; // [xsp+B7h] [xbp-219h]
__int64 v115[2]; // [xsp+B8h] [xbp-218h] BYREF
char v116; // [xsp+CFh] [xbp-201h]
__int64 v117[2]; // [xsp+D0h] [xbp-200h] BYREF
char v118; // [xsp+E7h] [xbp-1E9h]
__int64 v119[2]; // [xsp+E8h] [xbp-1E8h] BYREF
char v120; // [xsp+FFh] [xbp-1D1h]
__int64 v121[2]; // [xsp+100h] [xbp-1D0h] BYREF
char v122; // [xsp+117h] [xbp-1B9h]
__int64 v123[2]; // [xsp+118h] [xbp-1B8h] BYREF
char v124; // [xsp+12Fh] [xbp-1A1h]
__int64 v125[2]; // [xsp+130h] [xbp-1A0h] BYREF
char v126; // [xsp+147h] [xbp-189h]
__int64 v127[2]; // [xsp+148h] [xbp-188h] BYREF
char v128; // [xsp+15Fh] [xbp-171h]
__int64 v129[2]; // [xsp+160h] [xbp-170h] BYREF
char v130; // [xsp+177h] [xbp-159h]
__int64 v131[2]; // [xsp+178h] [xbp-158h] BYREF
char v132; // [xsp+18Fh] [xbp-141h]
void *v133[2]; // [xsp+190h] [xbp-140h] BYREF
char v134; // [xsp+1A7h] [xbp-129h]
void *v135[2]; // [xsp+1A8h] [xbp-128h] BYREF
char v136; // [xsp+1BFh] [xbp-111h]
void *__p[2]; // [xsp+1C0h] [xbp-110h] BYREF
char v138; // [xsp+1D7h] [xbp-F9h]
__int64 *v139[2]; // [xsp+1D8h] [xbp-F8h] BYREF
char v140; // [xsp+1EFh] [xbp-E1h]
std::string::value_type *v141; // [xsp+1F0h] [xbp-E0h] BYREF
std::string::size_type v142; // [xsp+1F8h] [xbp-D8h]
unsigned __int8 v143; // [xsp+207h] [xbp-C9h]
void **v144; // [xsp+208h] [xbp-C8h] BYREF
signed __int64 v145; // [xsp+210h] [xbp-C0h]
char v146; // [xsp+21Fh] [xbp-B1h]
__int128 v147; // [xsp+220h] [xbp-B0h] BYREF
char *longStorage; // [xsp+230h] [xbp-A0h]
std::string __dst; // [xsp+240h] [xbp-90h] BYREF
std::string v150; // [xsp+260h] [xbp-70h] BYREF
CCTextInputNode::getString((__int64)a1->m_searchInput, &v150);
if ( SHIBYTE(v150.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&__dst, v150.__r_.__value_.__l.__data_, v150.__r_.__value_.__l.__size_);
else
__dst = v150;
size = __dst.__r_.__value_.__l.__size_;
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
size = SHIBYTE(__dst.__r_.__value_.__r.__words[2]);
if ( size )
{
v4 = 0;
v5 = (unsigned __int64)SHIBYTE(__dst.__r_.__value_.__r.__words[2]) >> 63;
v6 = 1;
do
{
if ( (v5 & 1) != 0 )
p_dst = (std::string *)__dst.__r_.__value_.__r.__words[0];
else
p_dst = &__dst;
v8 = __tolower(p_dst->__r_.__value_.__s.__data_[v4]);
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v9 = &__dst;
else
v9 = (std::string *)__dst.__r_.__value_.__r.__words[0];
v9->__r_.__value_.__s.__data_[v4] = v8;
v4 = v6;
v10 = SHIBYTE(__dst.__r_.__value_.__r.__words[2]);
v5 = (unsigned __int64)SHIBYTE(__dst.__r_.__value_.__r.__words[2]) >> 63;
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v10 = __dst.__r_.__value_.__l.__size_;
v11 = v10 > v6++;
}
while ( v11 );
}
v12 = GameManager::sharedState();
if ( v12->m_playerName.m_data.m_short.shortStorage.__elems_[22] < 0 )
{
sub_1000097D0(&v147, (void *)v12->m_playerName.m_data.m_long.capacitym1, v12->m_playerName.m_data.m_long.size);
}
else
{
v147 = *(_OWORD *)&v12->m_playerName.m_data.m_short.sizex2;
longStorage = v12->m_playerName.m_data.m_long.longStorage;
}
v13 = *((_QWORD *)&v147 + 1);
if ( SHIBYTE(longStorage) >= 0 )
v13 = SHIBYTE(longStorage);
if ( v13 )
{
v14 = 0;
v15 = (unsigned __int64)SHIBYTE(longStorage) >> 63;
v16 = 1;
do
{
if ( (v15 & 1) != 0 )
v17 = (__int128 *)v147;
else
v17 = &v147;
v18 = __tolower(*((char *)v17 + v14));
if ( SHIBYTE(longStorage) >= 0 )
v19 = &v147;
else
v19 = (__int128 *)v147;
*((_BYTE *)v19 + v14) = v18;
v14 = v16;
v20 = SHIBYTE(longStorage);
v15 = (unsigned __int64)SHIBYTE(longStorage) >> 63;
if ( SHIBYTE(longStorage) < 0 )
v20 = *((_QWORD *)&v147 + 1);
v11 = v20 > v16++;
}
while ( v11 );
}
sub_100009900(&v144, " ");
v100 = a1;
sub_100009900(&v141, "");
v21 = 0;
v22 = HIBYTE(__dst.__r_.__value_.__r.__words[2]);
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v23 = &__dst;
else
v23 = (std::string *)__dst.__r_.__value_.__r.__words[0];
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v22 = __dst.__r_.__value_.__l.__size_;
v24 = v146;
v25 = (unsigned __int64)v146 >> 63;
v26 = v145;
if ( v146 >= 0 )
v27 = (void **)&v144;
else
v27 = v144;
if ( v146 >= 0 )
v28 = v146;
else
v28 = v145;
while ( !v28 )
{
LABEL_54:
if ( v21 != -1 )
{
if ( (v25 & 1) != 0 )
v35 = v26;
else
v35 = v24;
if ( (v143 & 0x80u) == 0 )
v36 = (const std::string::value_type *)&v141;
else
v36 = v141;
if ( (v143 & 0x80u) == 0 )
v37 = v143;
else
v37 = v142;
std::string::replace(&__dst, v21, v35, v36, v37);
v38 = v143;
if ( (v143 & 0x80u) != 0 )
v38 = v142;
v21 += v38;
v22 = HIBYTE(__dst.__r_.__value_.__r.__words[2]);
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v23 = &__dst;
else
v23 = (std::string *)__dst.__r_.__value_.__r.__words[0];
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v22 = __dst.__r_.__value_.__l.__size_;
v24 = v146;
v25 = (unsigned __int64)v146 >> 63;
v26 = v145;
v27 = v146 >= 0 ? (void **)&v144 : v144;
v28 = v146 >= 0 ? v146 : v145;
if ( v22 >= v21 )
continue;
}
goto LABEL_78;
}
v29 = v22 - v21;
if ( (__int64)(v22 - v21) >= v28 )
{
v30 = (char *)v23 + v22;
v31 = (char *)v23 + v21;
v32 = *(char *)v27;
do
{
if ( v29 - v28 == -1 )
break;
v33 = (char *)memchr(v31, v32, v29 - v28 + 1);
if ( !v33 )
break;
v34 = v33;
if ( !memcmp(v33, v27, v28) )
{
if ( v34 == v30 )
break;
v21 = v34 - (char *)v23;
goto LABEL_54;
}
v31 = v34 + 1;
v29 = v30 - (v34 + 1);
}
while ( v29 >= v28 );
}
LABEL_78:
if ( (char)v143 < 0 )
{
operator delete(v141);
LOBYTE(v24) = v146;
}
v39 = v100;
if ( (v24 & 0x80) != 0 )
operator delete(v144);
m_searchInput = v100->m_searchInput;
sub_100009900(v139, "");
CCTextInputNode::setString(m_searchInput, v139);
if ( v140 < 0 )
operator delete(v139[0]);
m_doomedIndex = v100->m_doomedIndex;
v100->m_doomedIndex = 0;
sub_100009900(&v144, "lenny");
v42 = sub_1000045BC(&__dst, &v144);
v43 = v42;
if ( v146 < 0 )
{
operator delete(v144);
if ( v43 )
{
LABEL_86:
v44 = AchievementManager::sharedState();
if ( !AchievementManager::isAchievementEarned(v44, "geometry.ach.secret05") )
{
v45 = GameManager::sharedState();
GameManager::reportAchievementWithID(v45, "geometry.ach.secret05", 100, 0);
sub_100009900(__p, "Noooooo!!!!");
SecretLayer::updateMessageLabel((__int64)v100, (__int64 *)__p);
if ( (v138 & 0x80000000) == 0 )
{
LABEL_160:
v100->m_selectedThread = 0;
goto LABEL_172;
}
v46 = __p[0];
LABEL_89:
operator delete(v46);
goto LABEL_160;
}
goto LABEL_162;
}
}
else if ( v42 )
{
goto LABEL_86;
}
sub_100009900(&v144, "sparky");
v47 = sub_1000045BC(&__dst, &v144);
v48 = v47;
if ( v146 < 0 )
{
operator delete(v144);
if ( v48 )
{
LABEL_93:
v49 = AchievementManager::sharedState();
if ( !AchievementManager::isAchievementEarned(v49, "geometry.ach.secret06") )
{
v50 = FMODAudioEngine::sharedEngine();
sub_100009900(v135, "highscoreGet02.ogg");
FMODAudioEngine::playEffect_1((__int64)v50, (__int64)v135);
if ( v136 < 0 )
operator delete(v135[0]);
v51 = GameManager::sharedState();
GameManager::reportAchievementWithID(v51, "geometry.ach.secret06", 100, 0);
v52 = GameStatsManager::sharedState();
GameStatsManager::storeSecretCoin(v52, "secret06");
v53 = GameStatsManager::sharedState();
GameStatsManager::incrementStat_1(v53, "8");
sub_100009900(v133, "My coin.. NOOOOOO!!!");
SecretLayer::updateMessageLabel((__int64)v100, (__int64 *)v133);
if ( v134 < 0 )
operator delete(v133[0]);
SecretLayer::playCoinEffect(v100);
goto LABEL_160;
}
goto LABEL_162;
}
}
else if ( v47 )
{
goto LABEL_93;
}
sub_100009900(&v144, "spooky");
v54 = sub_1000045BC(&__dst, &v144);
v55 = v54;
if ( v146 < 0 )
{
operator delete(v144);
if ( v55 )
{
LABEL_102:
v56 = AchievementManager::sharedState();
if ( !AchievementManager::isAchievementEarned(v56, "geometry.ach.secret07") )
{
v57 = GameManager::sharedState();
GameManager::reportAchievementWithID(v57, "geometry.ach.secret07", 100, 0);
sub_100009900(v131, "WHAT!? How did you know my name!?!");
SecretLayer::updateMessageLabel((__int64)v100, v131);
if ( (v132 & 0x80000000) == 0 )
goto LABEL_160;
v46 = (void *)v131[0];
goto LABEL_89;
}
goto LABEL_162;
}
}
else if ( v54 )
{
goto LABEL_102;
}
sub_100009900(&v144, "blockbite");
v58 = sub_1000045BC(&__dst, &v144);
v59 = v58;
if ( v146 < 0 )
{
operator delete(v144);
if ( v59 )
{
LABEL_108:
v60 = AchievementManager::sharedState();
if ( !AchievementManager::isAchievementEarned(v60, "geometry.ach.secret08") )
{
v61 = GameManager::sharedState();
GameManager::reportAchievementWithID(v61, "geometry.ach.secret08", 100, 0);
sub_100009900(v129, "How do you know my secrets!?");
SecretLayer::updateMessageLabel((__int64)v100, v129);
if ( (v130 & 0x80000000) == 0 )
goto LABEL_160;
v46 = (void *)v129[0];
goto LABEL_89;
}
goto LABEL_162;
}
}
else if ( v58 )
{
goto LABEL_108;
}
sub_100009900(&v144, "robotop");
v62 = sub_1000045BC(&__dst, &v144);
if ( v146 < 0 )
operator delete(v144);
if ( v62 )
{
v63 = AchievementManager::sharedState();
if ( !AchievementManager::isAchievementEarned(v63, "geometry.ach.secret09") )
{
v64 = GameManager::sharedState();
GameManager::reportAchievementWithID(v64, "geometry.ach.secret09", 100, 0);
sub_100009900(v127, "So he told you?...");
SecretLayer::updateMessageLabel((__int64)v100, v127);
if ( (v128 & 0x80000000) == 0 )
goto LABEL_160;
v46 = (void *)v127[0];
goto LABEL_89;
}
goto LABEL_162;
}
sub_100009900(&v144, "ahead");
if ( sub_1000045BC(&__dst, &v144) )
{
v65 = 1;
}
else
{
sub_100009900(&v141, "a head");
v65 = sub_1000045BC(&__dst, &v141);
if ( (char)v143 < 0 )
operator delete(v141);
}
if ( v146 < 0 )
operator delete(v144);
if ( v65 )
{
v66 = AchievementManager::sharedState();
if ( !AchievementManager::isAchievementEarned(v66, "geometry.ach.secret10") )
{
v67 = GameManager::sharedState();
GameManager::reportAchievementWithID(v67, "geometry.ach.secret10", 100, 0);
sub_100009900(v125, "You learn quickly!");
SecretLayer::updateMessageLabel((__int64)v100, v125);
if ( (v126 & 0x80000000) == 0 )
goto LABEL_160;
v46 = (void *)v125[0];
goto LABEL_89;
}
goto LABEL_162;
}
sub_100009900(&v144, "mule");
v68 = sub_1000045BC(&__dst, &v144);
if ( v146 < 0 )
operator delete(v144);
if ( v68 )
{
v69 = AchievementManager::sharedState();
if ( !AchievementManager::isAchievementEarned(v69, "geometry.ach.secret13") )
{
v70 = GameManager::sharedState();
GameManager::reportAchievementWithID(v70, "geometry.ach.secret13", 100, 0);
sub_100009900(v123, "Ah, right you are.");
SecretLayer::updateMessageLabel((__int64)v100, v123);
if ( (v124 & 0x80000000) == 0 )
goto LABEL_160;
v46 = (void *)v123[0];
goto LABEL_89;
}
goto LABEL_162;
}
sub_100009900(&v144, "neverending");
v71 = sub_1000045BC(&__dst, &v144);
if ( v146 < 0 )
operator delete(v144);
if ( v71 )
{
v72 = AchievementManager::sharedState();
if ( !AchievementManager::isAchievementEarned(v72, "geometry.ach.secret14") )
{
v73 = GameManager::sharedState();
GameManager::reportAchievementWithID(v73, "geometry.ach.secret14", 100, 0);
sub_100009900(v121, "You're pretty good at this");
SecretLayer::updateMessageLabel((__int64)v100, v121);
if ( (v122 & 0x80000000) == 0 )
goto LABEL_160;
v46 = (void *)v121[0];
goto LABEL_89;
}
goto LABEL_162;
}
sub_100009900(&v144, "gandalfpotter");
v74 = sub_1000045BC(&__dst, &v144);
if ( v146 < 0 )
operator delete(v144);
if ( v74 )
{
v75 = AchievementManager::sharedState();
if ( !AchievementManager::isAchievementEarned(v75, "geometry.ach.secret15") )
{
v76 = GameManager::sharedState();
GameManager::reportAchievementWithID(v76, "geometry.ach.secret15", 100, 0);
sub_100009900(v119, "That was weird...");
SecretLayer::updateMessageLabel((__int64)v100, v119);
if ( (v120 & 0x80000000) == 0 )
goto LABEL_160;
v46 = (void *)v119[0];
goto LABEL_89;
}
goto LABEL_162;
}
if ( SHIBYTE(longStorage) >= 0 )
v77 = (char *)&v147;
else
v77 = (char *)v147;
sub_100009900(&v144, v77);
v78 = sub_1000045BC(&__dst, &v144);
if ( v146 < 0 )
operator delete(v144);
if ( v78 )
{
v79 = AchievementManager::sharedState();
if ( !AchievementManager::isAchievementEarned(v79, "geometry.ach.secret17") )
{
v80 = GameManager::sharedState();
GameManager::reportAchievementWithID(v80, "geometry.ach.secret17", 100, 0);
sub_100009900(v117, "He could be watching right now...");
SecretLayer::updateMessageLabel((__int64)v100, v117);
if ( (v118 & 0x80000000) == 0 )
goto LABEL_160;
v46 = (void *)v117[0];
goto LABEL_89;
}
goto LABEL_162;
}
sub_100009900(&v144, "finalboss");
v81 = sub_1000045BC(&__dst, &v144);
if ( v146 < 0 )
operator delete(v144);
if ( v81 )
{
v82 = AchievementManager::sharedState();
if ( !AchievementManager::isAchievementEarned(v82, "geometry.ach.secret19") )
{
v83 = GameManager::sharedState();
GameManager::reportAchievementWithID(v83, "geometry.ach.secret19", 100, 0);
sub_100009900(v115, "Maybe Rub should add some of these");
SecretLayer::updateMessageLabel((__int64)v100, v115);
if ( (v116 & 0x80000000) == 0 )
goto LABEL_160;
v46 = (void *)v115[0];
goto LABEL_89;
}
goto LABEL_162;
}
v84 = AchievementManager::sharedState();
if ( !AchievementManager::isAchievementEarned(v84, "geometry.ach.secret16") )
{
if ( m_doomedIndex > 2 )
{
if ( m_doomedIndex == 3 )
{
sub_100009900(&v144, "32");
v94 = sub_1000045BC(&__dst, &v144);
if ( v146 < 0 )
operator delete(v144);
v39 = v100;
if ( !v94 )
goto LABEL_162;
sub_100009900(v107, "Those numbers, aren't they...");
SecretLayer::updateMessageLabel((__int64)v100, v107);
if ( (v108 & 0x80000000) == 0 )
goto LABEL_220;
v90 = v107;
}
else if ( m_doomedIndex == 4 )
{
sub_100009900(&v144, "46");
v97 = sub_1000045BC(&__dst, &v144);
if ( v146 < 0 )
operator delete(v144);
v39 = v100;
if ( !v97 )
goto LABEL_162;
sub_100009900(v105, "NO NO NO NO!!!");
SecretLayer::updateMessageLabel((__int64)v100, v105);
if ( (v106 & 0x80000000) == 0 )
goto LABEL_220;
v90 = v105;
}
else
{
v39 = v100;
if ( m_doomedIndex != 5 )
goto LABEL_162;
sub_100009900(&v144, "84");
v91 = sub_1000045BC(&__dst, &v144);
if ( v146 < 0 )
operator delete(v144);
v39 = v100;
if ( !v91 )
goto LABEL_162;
sub_100009900(v103, "GAH!! You have doomed us all!");
SecretLayer::updateMessageLabel((__int64)v100, v103);
if ( (v104 & 0x80000000) == 0 )
goto LABEL_220;
v90 = v103;
}
LABEL_219:
operator delete((void *)*v90);
LABEL_220:
v96 = v100;
v100->m_doomedIndex = m_doomedIndex + 1;
m_messageLabel = v100->m_messageLabel;
BYTE2(v144) = 0;
LOWORD(v144) = 25855;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void ***))m_messageLabel->setColor)(m_messageLabel, &v144);
goto LABEL_221;
}
if ( m_doomedIndex )
{
if ( m_doomedIndex != 1 )
{
v39 = v100;
if ( m_doomedIndex != 2 )
goto LABEL_162;
sub_100009900(&v144, "30");
v89 = sub_1000045BC(&__dst, &v144);
if ( v146 < 0 )
operator delete(v144);
v39 = v100;
if ( !v89 )
goto LABEL_162;
sub_100009900(v109, "What do you think you're doing?");
SecretLayer::updateMessageLabel((__int64)v100, v109);
if ( (v110 & 0x80000000) == 0 )
goto LABEL_220;
v90 = v109;
goto LABEL_219;
}
sub_100009900(&v144, "16");
v95 = sub_1000045BC(&__dst, &v144);
if ( v146 < 0 )
operator delete(v144);
v39 = v100;
if ( !v95 )
goto LABEL_162;
sub_100009900(v111, "...");
SecretLayer::updateMessageLabel((__int64)v100, v111);
if ( (v112 & 0x80000000) == 0 )
{
LABEL_213:
v96 = v100;
v100->m_doomedIndex = m_doomedIndex + 1;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v100->m_messageLabel->setColor)(
v100->m_messageLabel,
&unk_10064622B);
LABEL_221:
if ( v96->m_doomedIndex >= 6 )
{
v96->m_doomedIndex = 0;
v99 = GameManager::sharedState();
GameManager::reportAchievementWithID(v99, "geometry.ach.secret16", 100, 0);
}
v96->m_selectedThread = 0;
goto LABEL_172;
}
v93 = v111;
}
else
{
sub_100009900(&v144, "8");
v92 = sub_1000045BC(&__dst, &v144);
if ( v146 < 0 )
operator delete(v144);
v39 = v100;
if ( !v92 )
goto LABEL_162;
SecretLayer::getBasicMessage(v100);
SecretLayer::updateMessageLabel((__int64)v100, v113);
if ( (v114 & 0x80000000) == 0 )
goto LABEL_213;
v93 = v113;
}
operator delete((void *)*v93);
goto LABEL_213;
}
LABEL_162:
m_selectedThread = v39->m_selectedThread;
SecretLayer::getMessage(v39);
SecretLayer::updateMessageLabel((__int64)v39, (__int64 *)&v101);
if ( v102 < 0 )
operator delete(v101);
v86 = v39->m_selectedThread;
if ( m_selectedThread <= 0 && v86 < 1 )
{
v87 = v39->m_messageLabel;
v88 = &unk_10064622B;
LABEL_170:
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v87->setColor)(v87, v88);
goto LABEL_172;
}
v87 = v39->m_messageLabel;
if ( v86 <= 100 && m_selectedThread < 101 )
{
v88 = &unk_10064622E;
goto LABEL_170;
}
BYTE2(v144) = -56;
LOWORD(v144) = -256;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void ***))v87->setColor)(v87, &v144);
LABEL_172:
if ( SHIBYTE(longStorage) < 0 )
operator delete((void *)v147);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( SHIBYTE(v150.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v150.__r_.__value_.__l.__data_);
}