//
// SecretLayer::onSubmit from 0x1006d2760 to 0x1006d391c (4540 bytes)
//
// 1 xrefs:
// > SecretLayer::init @ 0x1006d2258
//
// 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 12:35:39 +0000
//
void __fastcall SecretLayer::onSubmit(__int64 a1, __m128 a2)
{
bool v2; // al
unsigned int v3; // ebx
std::string::size_type v4; // r15
std::string::pointer data; // rcx
char v6; // al
std::string::pointer v7; // rcx
__int64 v8; // rax
__int64 v9; // rax
bool v10; // al
unsigned int v11; // ebx
unsigned __int64 v12; // r15
__int8 *v13; // rcx
char v14; // al
__int8 *v15; // rcx
std::string::pointer v16; // rbx
unsigned __int128 v17; // kr10_16
unsigned __int8 v18; // r13
std::string::size_type v19; // rax
size_t v20; // rdx
_BYTE *v21; // r12
void *v22; // rax
_BYTE *v23; // rax
std::string::size_type v24; // rax
const std::string::value_type *v25; // rcx
std::string::size_type v26; // r8
std::string::size_type v27; // r14
__int64 v28; // rax
std::string::size_type v29; // rcx
unsigned int v30; // r12d
__int64 v31; // r12
_QWORD *v32; // rdi
std::string::size_type size; // r13
size_t v34; // r15
__int64 v35; // rax
__int64 v36; // rax
void *v37; // rdi
size_t v38; // r12
__int64 v39; // rax
__int64 v40; // rax
__int64 v41; // rax
__int64 v42; // rax
__int64 v43; // rax
__int64 v44; // rax
__int64 v45; // rax
char *v46; // r14
size_t v47; // rdx
int v48; // eax
__int64 v49; // rax
__int64 v50; // rax
size_t v51; // rdx
__int64 v52; // rax
__int64 v53; // rax
void **v54; // rsi
void *v55; // rdi
char v56; // r14
__int64 v57; // rax
int v58; // r14d
std::string::pointer v59; // rsi
int v60; // eax
__int64 v61; // rdi
void *v62; // rsi
__int64 v63; // rax
void *v64; // rdi
char v65; // r14
__int64 v66; // rax
__int64 v67; // rax
void *v68; // rdi
char v69; // r14
__int64 v70; // rax
__int64 v71; // rax
void *v72; // rdi
char v73; // r14
__int64 v74; // rax
__int64 v75; // rax
const char *v76; // rsi
void *v77; // rdi
char v78; // r14
__int64 v79; // rax
__int64 v80; // rax
void *v81; // rdi
char v82; // r14
__int64 v83; // rax
__int64 v84; // rax
__int64 v85; // rax
char v86; // r14
char v87; // r14
bool v88; // zf
void **v89; // rax
char v90; // r14
char v91; // r14
char v92; // r14
__int64 v93; // rbx
char v94; // r14
__int64 v95; // rax
__int64 v96; // rdi
__int64 v97; // rax
void *v98[2]; // [rsp+0h] [rbp-270h] BYREF
void *v99; // [rsp+10h] [rbp-260h]
__int16 v100[8]; // [rsp+18h] [rbp-258h] BYREF
void *v101; // [rsp+28h] [rbp-248h]
_QWORD v102[3]; // [rsp+30h] [rbp-240h] BYREF
_QWORD v103[3]; // [rsp+48h] [rbp-228h] BYREF
_QWORD v104[3]; // [rsp+60h] [rbp-210h] BYREF
_QWORD v105[3]; // [rsp+78h] [rbp-1F8h] BYREF
_QWORD v106[3]; // [rsp+90h] [rbp-1E0h] BYREF
_QWORD v107[3]; // [rsp+A8h] [rbp-1C8h] BYREF
void *v108[3]; // [rsp+C0h] [rbp-1B0h] BYREF
_BYTE v109[16]; // [rsp+D8h] [rbp-198h] BYREF
char v110; // [rsp+E8h] [rbp-188h] BYREF
_QWORD v111[2]; // [rsp+F0h] [rbp-180h] BYREF
char v112; // [rsp+100h] [rbp-170h] BYREF
_QWORD v113[2]; // [rsp+108h] [rbp-168h] BYREF
char v114; // [rsp+118h] [rbp-158h] BYREF
_QWORD v115[2]; // [rsp+120h] [rbp-150h] BYREF
char v116; // [rsp+130h] [rbp-140h] BYREF
_QWORD v117[2]; // [rsp+138h] [rbp-138h] BYREF
char v118; // [rsp+148h] [rbp-128h] BYREF
_QWORD v119[2]; // [rsp+150h] [rbp-120h] BYREF
char v120; // [rsp+160h] [rbp-110h] BYREF
char v121; // [rsp+168h] [rbp-108h]
_BYTE v122[23]; // [rsp+169h] [rbp-107h] BYREF
_BYTE v123[24]; // [rsp+180h] [rbp-F0h] BYREF
void *v124[3]; // [rsp+198h] [rbp-D8h] BYREF
std::string v125; // [rsp+1B0h] [rbp-C0h] BYREF
void **v126; // [rsp+1C8h] [rbp-A8h]
__int128 v127; // [rsp+1D0h] [rbp-A0h] BYREF
void *v128; // [rsp+1E0h] [rbp-90h]
void **v129; // [rsp+1E8h] [rbp-88h]
__m128 v130; // [rsp+1F0h] [rbp-80h] BYREF
void *v131; // [rsp+200h] [rbp-70h]
int v132; // [rsp+20Ch] [rbp-64h]
std::string v133; // [rsp+210h] [rbp-60h] BYREF
__int64 v134; // [rsp+228h] [rbp-48h]
__int128 __s; // [rsp+230h] [rbp-40h] BYREF
void *__p; // [rsp+240h] [rbp-30h]
CCTextInputNode::getString(&v127, *(_QWORD *)(a1 + 448));
if ( (v127 & 1) != 0 )
{
sub_10001AD30(&v133, v128, *((unsigned __int64 *)&v127 + 1));
}
else
{
v133.__r_.__value_.__r.__words[2] = (std::string::size_type)v128;
a2.i64[0] = v127;
*(_OWORD *)&v133.__r_.__value_.__l.0 = v127;
}
v2 = (*(_BYTE *)&v133.__r_.__value_.__s.0 & 1) == 0;
if ( (*(_BYTE *)&v133.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !v133.__r_.__value_.__l.__size_ )
goto LABEL_16;
}
else if ( !(*(_BYTE *)&v133.__r_.__value_.__l.0 >> 1) )
{
goto LABEL_16;
}
v3 = 1;
v4 = 0;
do
{
while ( 1 )
{
data = v133.__r_.__value_.__s.__data_;
if ( !v2 )
data = v133.__r_.__value_.__l.__data_;
v6 = __tolower(data[v4]);
v7 = v133.__r_.__value_.__s.__data_;
if ( (*(_BYTE *)&v133.__r_.__value_.__s.0 & 1) != 0 )
v7 = v133.__r_.__value_.__l.__data_;
v7[v4] = v6;
v2 = (*(_BYTE *)&v133.__r_.__value_.__s.0 & 1) == 0;
if ( (*(_BYTE *)&v133.__r_.__value_.__s.0 & 1) == 0 )
break;
v4 = v3++;
if ( v133.__r_.__value_.__l.__size_ <= v4 )
goto LABEL_16;
}
v4 = v3++;
}
while ( *(_BYTE *)&v133.__r_.__value_.__l.0 >> 1 > v4 );
LABEL_16:
v8 = GameManager::sharedState();
if ( (*(_BYTE *)(v8 + 632) & 1) != 0 )
{
sub_10001AD30(&v130, *(const void **)(v8 + 648), *(_QWORD *)(v8 + 640));
}
else
{
v9 = v8 + 632;
v131 = *(void **)(v9 + 16);
a2 = *(__m128 *)v9;
v130 = *(__m128 *)v9;
}
v10 = (v130.i8[0] & 1) == 0;
if ( (v130.i8[0] & 1) != 0 )
{
if ( !v130.i64[1] )
goto LABEL_31;
}
else if ( !(v130.u8[0] >> 1) )
{
goto LABEL_31;
}
v11 = 1;
v12 = 0;
do
{
while ( 1 )
{
v13 = &v130.i8[1];
if ( !v10 )
v13 = (__int8 *)v131;
v14 = __tolower(v13[v12]);
v15 = &v130.i8[1];
if ( (v130.i8[0] & 1) != 0 )
v15 = (__int8 *)v131;
v15[v12] = v14;
v10 = (v130.i8[0] & 1) == 0;
if ( (v130.i8[0] & 1) == 0 )
break;
v12 = v11++;
if ( v130.i64[1] <= v12 )
goto LABEL_31;
}
v12 = v11++;
}
while ( v130.u8[0] >> 1 > v12 );
LABEL_31:
v134 = a1;
LOWORD(__s) = 0;
v16 = v133.__r_.__value_.__s.__data_;
if ( (*(_BYTE *)&v133.__r_.__value_.__s.0 & 1) != 0 )
v17 = *(_OWORD *)&v133.__r_.__value_.__r.__words[1];
else
v17 = __PAIR128__((std::string *)((char *)&v133.__r_.__value_.__l.0 + 1), *(_BYTE *)&v133.__r_.__value_.__l.0 >> 1);
v129 = (void **)&v114;
v126 = (void **)&v110;
v18 = 0;
v19 = 0;
while ( 2 )
{
v20 = v17 - v19;
if ( (__int64)v17 > (__int64)v19 )
{
v21 = (_BYTE *)(*((_QWORD *)&v17 + 1) + v17);
v22 = (void *)(*((_QWORD *)&v17 + 1) + v19);
while ( 1 )
{
v23 = memchr(v22, 32, v20);
if ( !v23 )
goto LABEL_52;
if ( *v23 == 32 )
break;
v22 = v23 + 1;
v20 = v21 - (_BYTE *)v22;
if ( v21 - (_BYTE *)v22 <= 0 )
goto LABEL_52;
}
if ( v23 == v21 )
break;
v24 = (std::string::size_type)&v23[-*((_QWORD *)&v17 + 1)];
if ( v24 == -1 )
break;
if ( (v18 & 1) != 0 )
{
v25 = (const std::string::value_type *)__p;
v26 = *((_QWORD *)&__s + 1);
}
else
{
v26 = v18 >> 1;
v25 = (char *)&__s + 1;
}
v27 = v24;
std::string::replace(&v133, v24, 1u, v25, v26);
v18 = __s;
if ( (__s & 1) != 0 )
{
v28 = *((_QWORD *)&__s + 1);
v29 = v27;
v30 = (unsigned int)v133.__r_.__value_.__l.0;
if ( (*(_BYTE *)&v133.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_48;
}
else
{
v28 = (unsigned __int8)__s >> 1;
v29 = v27;
v30 = (unsigned int)v133.__r_.__value_.__l.0;
if ( (*(_BYTE *)&v133.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_48:
v19 = v29 + v28;
v17 = __PAIR128__((std::string *)((char *)&v133.__r_.__value_.__l.0 + 1), v30 >> 1);
if ( v30 >> 1 >= v19 )
continue;
break;
}
}
v19 = v29 + v28;
v17 = *(_OWORD *)&v133.__r_.__value_.__r.__words[1];
if ( v133.__r_.__value_.__l.__size_ >= v19 )
continue;
}
break;
}
LABEL_52:
if ( (v18 & 1) != 0 )
operator delete(__p);
v31 = v134;
v32 = *(_QWORD **)(v134 + 448);
v100[0] = 0;
CCTextInputNode::setString(v32, (__int64)v100);
if ( (v100[0] & 1) != 0 )
operator delete(v101);
v132 = *(_DWORD *)(v31 + 440);
*(_DWORD *)(v31 + 440) = 0;
strcpy((char *)&__s, "\nlenny");
if ( (*(_BYTE *)&v133.__r_.__value_.__s.0 & 1) != 0 )
{
v16 = v133.__r_.__value_.__l.__data_;
size = v133.__r_.__value_.__l.__size_;
}
else
{
size = *(_BYTE *)&v133.__r_.__value_.__l.0 >> 1;
}
v34 = 5;
if ( size < 5 )
v34 = size;
if ( !((size != 5) | (memcmp(v16, (char *)&__s + 1, v34) != 0)) )
{
v35 = AchievementManager::sharedState(v16, (char *)&__s + 1);
if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v35, "geometry.ach.secret05") )
{
v36 = GameManager::sharedState();
GameManager::reportAchievementWithID(v36, "geometry.ach.secret05", 100, 0);
v121 = 22;
strcpy(v122, "Noooooo!!!!");
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(v31 + 456) + 928LL))(*(_QWORD *)(v31 + 456), v122);
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v31 + 456), 320.0, (__m128)0x3F19999Au, (__m128)0LL);
if ( (v121 & 1) == 0 )
{
LABEL_75:
*(_DWORD *)(v31 + 428) = 0;
goto LABEL_113;
}
v37 = *(void **)&v122[15];
LABEL_65:
operator delete(v37);
goto LABEL_75;
}
goto LABEL_96;
}
LOBYTE(__s) = 12;
strcpy((char *)&__s + 1, "sparky");
v38 = 6;
if ( size < 6 )
v38 = size;
if ( !((size != 6) | (memcmp(v16, (char *)&__s + 1, v38) != 0)) )
{
v39 = AchievementManager::sharedState(v16, (char *)&__s + 1);
v31 = v134;
if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v39, "geometry.ach.secret06") )
{
v40 = FMODAudioEngine::sharedEngine();
strcpy(v123, "$highscoreGet02.ogg");
FMODAudioEngine::playEffect_1(v40, (__int128 *)v123);
if ( (v123[0] & 1) != 0 )
operator delete(*(void **)&v123[16]);
v41 = GameManager::sharedState();
GameManager::reportAchievementWithID(v41, "geometry.ach.secret06", 100, 0);
v42 = GameStatsManager::sharedState();
GameStatsManager::storeSecretCoin(v42);
v43 = GameStatsManager::sharedState();
GameStatsManager::incrementStat_1(v43, (__int64)"8");
strcpy((char *)v124, "(My coin.. NOOOOOO!!!");
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v31 + 456) + 928LL))(
*(_QWORD *)(v31 + 456),
(char *)v124 + 1);
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v31 + 456), 320.0, (__m128)0x3F19999Au, (__m128)0LL);
if ( ((__int64)v124[0] & 1) != 0 )
operator delete(v124[2]);
sub_1006D3C70(v31);
goto LABEL_75;
}
goto LABEL_96;
}
LOBYTE(__s) = 12;
strcpy((char *)&__s + 1, "spooky");
if ( (size != 6) | (memcmp(v16, (char *)&__s + 1, v38) != 0) )
{
LOBYTE(__s) = 18;
strcpy((char *)&__s + 1, "blockbite");
v47 = 9;
if ( size < 9 )
v47 = size;
v48 = memcmp(v16, (char *)&__s + 1, v47);
v31 = v134;
if ( size != 9 || v48 != 0 )
{
LOBYTE(__s) = 14;
strcpy((char *)&__s + 1, "robotop");
v51 = 7;
if ( size < 7 )
v51 = size;
if ( (size != 7) | (memcmp(v16, (char *)&__s + 1, v51) != 0) )
{
strcpy((char *)&__s, "\nahead");
v54 = (void **)((char *)&__s + 1);
v55 = v16;
if ( !((size != 5) | (memcmp(v16, (char *)&__s + 1, v34) != 0)) )
goto LABEL_95;
sub_10000E4E0(v98, "a head");
v55 = &v133;
v54 = v98;
v56 = sub_1001914B0((unsigned __int8 *)&v133, (unsigned __int8 *)v98);
if ( ((__int64)v98[0] & 1) != 0 )
{
v55 = v99;
operator delete(v99);
}
if ( !v56 )
{
sub_10000E4E0(&__s, "mule");
v64 = &v133;
v65 = sub_1001914B0((unsigned __int8 *)&v133, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
{
v64 = __p;
operator delete(__p);
}
if ( v65 )
{
v66 = AchievementManager::sharedState(v64, &__s);
if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v66, "geometry.ach.secret13") )
{
v67 = GameManager::sharedState();
GameManager::reportAchievementWithID(v67, "geometry.ach.secret13", 100, 0);
sub_10000E4E0(v104, "Ah, right you are.");
SecretLayer::updateMessageLabel(v31, (__int64)v104);
if ( (v104[0] & 1) == 0 )
goto LABEL_75;
v37 = (void *)v104[2];
goto LABEL_65;
}
}
else
{
sub_10000E4E0(&__s, "neverending");
v68 = &v133;
v69 = sub_1001914B0((unsigned __int8 *)&v133, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
{
v68 = __p;
operator delete(__p);
}
if ( v69 )
{
v70 = AchievementManager::sharedState(v68, &__s);
if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v70, "geometry.ach.secret14") )
{
v71 = GameManager::sharedState();
GameManager::reportAchievementWithID(v71, "geometry.ach.secret14", 100, 0);
sub_10000E4E0(v105, "You're pretty good at this");
SecretLayer::updateMessageLabel(v31, (__int64)v105);
if ( (v105[0] & 1) == 0 )
goto LABEL_75;
v37 = (void *)v105[2];
goto LABEL_65;
}
}
else
{
sub_10000E4E0(&__s, "gandalfpotter");
v72 = &v133;
v73 = sub_1001914B0((unsigned __int8 *)&v133, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
{
v72 = __p;
operator delete(__p);
}
if ( v73 )
{
v74 = AchievementManager::sharedState(v72, &__s);
if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v74, "geometry.ach.secret15") )
{
v75 = GameManager::sharedState();
GameManager::reportAchievementWithID(v75, "geometry.ach.secret15", 100, 0);
sub_10000E4E0(v106, "That was weird...");
SecretLayer::updateMessageLabel(v31, (__int64)v106);
if ( (v106[0] & 1) == 0 )
goto LABEL_75;
v37 = (void *)v106[2];
goto LABEL_65;
}
}
else
{
if ( (v130.i8[0] & 1) != 0 )
v76 = (const char *)v131;
else
v76 = &v130.i8[1];
sub_10000E4E0(&__s, v76);
v77 = &v133;
v78 = sub_1001914B0((unsigned __int8 *)&v133, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
{
v77 = __p;
operator delete(__p);
}
if ( v78 )
{
v79 = AchievementManager::sharedState(v77, &__s);
if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v79, "geometry.ach.secret17") )
{
v80 = GameManager::sharedState();
GameManager::reportAchievementWithID(v80, "geometry.ach.secret17", 100, 0);
sub_10000E4E0(v107, "He could be watching right now...");
SecretLayer::updateMessageLabel(v31, (__int64)v107);
if ( (v107[0] & 1) == 0 )
goto LABEL_75;
v37 = (void *)v107[2];
goto LABEL_65;
}
}
else
{
sub_10000E4E0(&__s, "finalboss");
v81 = &v133;
v82 = sub_1001914B0((unsigned __int8 *)&v133, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
{
v81 = __p;
operator delete(__p);
}
if ( v82 )
{
v83 = AchievementManager::sharedState(v81, &__s);
if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v83, "geometry.ach.secret19") )
{
v84 = GameManager::sharedState();
GameManager::reportAchievementWithID(v84, "geometry.ach.secret19", 100, 0);
sub_10000E4E0(v108, "Maybe Rub should add some of these");
SecretLayer::updateMessageLabel(v31, (__int64)v108);
if ( ((__int64)v108[0] & 1) != 0 )
operator delete(v108[2]);
*(_DWORD *)(v134 + 428) = 0;
goto LABEL_113;
}
}
else
{
v85 = AchievementManager::sharedState(v81, &__s);
if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v85, "geometry.ach.secret16") )
{
switch ( v132 )
{
case 0:
sub_10000E4E0(&__s, "8");
v86 = sub_1001914B0((unsigned __int8 *)&v133, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
operator delete(__p);
v31 = v134;
if ( !v86 )
goto LABEL_96;
SecretLayer::getBasicMessage(v109, v134, *(double *)a2.i64);
SecretLayer::updateMessageLabel(v31, (__int64)v109);
if ( (v109[0] & 1) == 0 )
goto LABEL_183;
goto LABEL_182;
case 1:
sub_10000E4E0(&__s, "16");
v92 = sub_1001914B0((unsigned __int8 *)&v133, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
operator delete(__p);
v31 = v134;
if ( !v92 )
goto LABEL_96;
sub_10000E4E0(v111, "...");
SecretLayer::updateMessageLabel(v31, (__int64)v111);
v126 = (void **)&v112;
if ( (v111[0] & 1) != 0 )
LABEL_182:
operator delete(*v126);
LABEL_183:
v93 = v134;
*(_DWORD *)(v134 + 440) = v132 + 1;
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v93 + 456) + 1072LL))(
*(_QWORD *)(v93 + 456),
&unk_100A10BD3);
goto LABEL_191;
case 2:
sub_10000E4E0(&__s, "30");
v90 = sub_1001914B0((unsigned __int8 *)&v133, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
operator delete(__p);
v31 = v134;
if ( !v90 )
goto LABEL_96;
sub_10000E4E0(v113, "What do you think you're doing?");
SecretLayer::updateMessageLabel(v31, (__int64)v113);
if ( (v113[0] & 1) == 0 )
goto LABEL_190;
goto LABEL_189;
case 3:
sub_10000E4E0(&__s, "32");
v91 = sub_1001914B0((unsigned __int8 *)&v133, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
operator delete(__p);
v31 = v134;
if ( !v91 )
goto LABEL_96;
sub_10000E4E0(v115, "Those numbers, aren't they...");
SecretLayer::updateMessageLabel(v31, (__int64)v115);
v88 = (v115[0] & 1) == 0;
v89 = (void **)&v116;
goto LABEL_188;
case 4:
sub_10000E4E0(&__s, "46");
v87 = sub_1001914B0((unsigned __int8 *)&v133, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
operator delete(__p);
v31 = v134;
if ( !v87 )
goto LABEL_96;
sub_10000E4E0(v117, "NO NO NO NO!!!");
SecretLayer::updateMessageLabel(v31, (__int64)v117);
v88 = (v117[0] & 1) == 0;
v89 = (void **)&v118;
goto LABEL_188;
case 5:
sub_10000E4E0(&__s, "84");
v94 = sub_1001914B0((unsigned __int8 *)&v133, (unsigned __int8 *)&__s);
if ( (__s & 1) != 0 )
operator delete(__p);
v31 = v134;
if ( !v94 )
goto LABEL_96;
sub_10000E4E0(v119, "GAH!! You have doomed us all!");
SecretLayer::updateMessageLabel(v31, (__int64)v119);
v88 = (v119[0] & 1) == 0;
v89 = (void **)&v120;
LABEL_188:
v129 = v89;
if ( !v88 )
LABEL_189:
operator delete(*v129);
LABEL_190:
v95 = v134;
*(_DWORD *)(v134 + 440) = v132 + 1;
v96 = *(_QWORD *)(v95 + 456);
BYTE2(__s) = 0;
LOWORD(__s) = 25855;
(*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v96 + 1072LL))(v96, &__s);
v93 = v134;
LABEL_191:
if ( *(int *)(v93 + 440) >= 6 )
{
*(_DWORD *)(v93 + 440) = 0;
v97 = GameManager::sharedState();
GameManager::reportAchievementWithID(v97, "geometry.ach.secret16", 100, 0);
}
*(_DWORD *)(v93 + 428) = 0;
break;
default:
goto LABEL_96;
}
goto LABEL_113;
}
}
}
}
}
}
}
else
{
LABEL_95:
v57 = AchievementManager::sharedState(v55, v54);
if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v57, "geometry.ach.secret10") )
{
v63 = GameManager::sharedState();
GameManager::reportAchievementWithID(v63, "geometry.ach.secret10", 100, 0);
sub_10000E4E0(v103, "You learn quickly!");
SecretLayer::updateMessageLabel(v31, (__int64)v103);
if ( (v103[0] & 1) == 0 )
goto LABEL_75;
v37 = (void *)v103[2];
goto LABEL_65;
}
}
}
else
{
v52 = AchievementManager::sharedState(v16, (char *)&__s + 1);
if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v52, "geometry.ach.secret09") )
{
v53 = GameManager::sharedState();
GameManager::reportAchievementWithID(v53, "geometry.ach.secret09", 100, 0);
sub_10000E4E0(v102, "So he told you?...");
SecretLayer::updateMessageLabel(v31, (__int64)v102);
if ( (v102[0] & 1) == 0 )
goto LABEL_75;
v37 = (void *)v102[2];
goto LABEL_65;
}
}
}
else
{
v49 = AchievementManager::sharedState(v16, (char *)&__s + 1);
if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v49, "geometry.ach.secret08") )
{
v50 = GameManager::sharedState();
GameManager::reportAchievementWithID(v50, "geometry.ach.secret08", 100, 0);
v46 = (char *)operator new(0x20u);
strcpy(v46, "How do you know my secrets!?");
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v31 + 456) + 928LL))(*(_QWORD *)(v31 + 456), v46);
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v31 + 456), 320.0, (__m128)0x3F19999Au, (__m128)0LL);
goto LABEL_84;
}
}
}
else
{
v44 = AchievementManager::sharedState(v16, (char *)&__s + 1);
v31 = v134;
if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v44, "geometry.ach.secret07") )
{
v45 = GameManager::sharedState();
GameManager::reportAchievementWithID(v45, "geometry.ach.secret07", 100, 0);
v46 = (char *)operator new(0x28u);
strcpy(v46, "WHAT!? How did you know my name!?!");
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v31 + 456) + 928LL))(*(_QWORD *)(v31 + 456), v46);
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v31 + 456), 320.0, (__m128)0x3F19999Au, (__m128)0LL);
LABEL_84:
operator delete(v46);
*(_DWORD *)(v31 + 428) = 0;
goto LABEL_113;
}
}
LABEL_96:
v58 = *(_DWORD *)(v31 + 428);
if ( v58 )
goto LABEL_101;
if ( *(int *)(v31 + 440) <= 0 )
{
*(float *)&v134 = (float)*(int *)(v31 + 436);
a2.i32[1] = 0;
a2.f32[0] = (float)rand() * 4.6566129e-10;
if ( a2.f32[0] > (float)((float)(*(float *)&v134 * -0.079999998) + 1.0) )
SecretLayer::selectAThread(v31);
}
if ( *(_DWORD *)(v31 + 428) )
LABEL_101:
SecretLayer::getThreadMessage(&v125);
else
SecretLayer::getBasicMessage(&v125, v31, *(double *)a2.i64);
if ( (*(_BYTE *)&v125.__r_.__value_.__s.0 & 1) != 0 )
v59 = v125.__r_.__value_.__l.__data_;
else
v59 = v125.__r_.__value_.__s.__data_;
(*(void (__fastcall **)(_QWORD, std::string::pointer))(**(_QWORD **)(v31 + 456) + 928LL))(*(_QWORD *)(v31 + 456), v59);
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v31 + 456), 320.0, (__m128)0x3F19999Au, (__m128)0LL);
if ( (*(_BYTE *)&v125.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v125.__r_.__value_.__l.__data_);
v60 = *(_DWORD *)(v31 + 428);
if ( v58 > 0 || v60 > 0 )
{
v61 = *(_QWORD *)(v31 + 456);
if ( v60 >= 101 || v58 >= 101 )
{
BYTE2(__s) = -56;
LOWORD(__s) = -256;
(*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v61 + 1072LL))(v61, &__s);
goto LABEL_113;
}
v62 = &unk_100A10BD6;
}
else
{
v61 = *(_QWORD *)(v31 + 456);
v62 = &unk_100A10BD3;
}
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v61 + 1072LL))(v61, v62);
LABEL_113:
if ( (v130.i8[0] & 1) != 0 )
{
operator delete(v131);
if ( (*(_BYTE *)&v133.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_115:
if ( (v127 & 1) == 0 )
return;
goto LABEL_116;
}
}
else if ( (*(_BYTE *)&v133.__r_.__value_.__s.0 & 1) == 0 )
{
goto LABEL_115;
}
operator delete(v133.__r_.__value_.__l.__data_);
if ( (v127 & 1) != 0 )
LABEL_116:
operator delete(v128);
}