//
// SecretLayer::onSubmit from 0x5fde38 to 0x5fe994 (2908 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:38 +0000
//
int __fastcall SecretLayer::onSubmit(SecretLayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
unsigned int v4; // r5
char *v5; // r3
char *v6; // r7
char *v7; // r3
int v8; // r0
int v9; // r3
int *v10; // r3
int v11; // r1
int v12; // r2
unsigned int v13; // r5
const char *v14; // r3
char *v15; // r7
const char *v16; // r3
int v17; // r0
size_t i; // r9
unsigned __int8 *v19; // lr
unsigned int v20; // r2
int v21; // r1
unsigned __int8 *v22; // r2
unsigned __int8 *v23; // r1
unsigned __int8 *v24; // r12
unsigned __int8 *v25; // r9
int v26; // t1
unsigned int v27; // r2
char *v28; // r3
size_t v29; // r1
int v30; // r3
int v31; // r6
int v32; // r9
_BOOL4 v33; // r10
AchievementManager *v34; // r0
AchievementManager *v35; // r0
GameManager *v36; // r0
int *v37; // r6
_BOOL4 v38; // r10
AchievementManager *v39; // r0
AchievementManager *v40; // r0
FMODAudioEngine *v41; // r9
GameManager *v42; // r0
GameManager *v43; // r0
GameStatsManager *v44; // r0
GameStatsManager *v45; // r0
int v46; // r2
int v47; // r3
GameStatsManager *v48; // r0
GameStatsManager *v49; // r0
_BOOL4 v50; // r10
AchievementManager *v51; // r0
AchievementManager *v52; // r0
GameManager *v53; // r0
_BOOL4 v54; // r10
AchievementManager *v55; // r0
AchievementManager *v56; // r0
GameManager *v57; // r0
_BOOL4 v58; // r10
AchievementManager *v59; // r0
AchievementManager *v60; // r0
GameManager *v61; // r0
_BOOL4 v62; // r11
AchievementManager *v63; // r0
AchievementManager *v64; // r0
GameManager *v65; // r0
_BOOL4 v66; // r10
AchievementManager *v67; // r0
AchievementManager *v68; // r0
GameManager *v69; // r0
_BOOL4 v70; // r10
AchievementManager *v71; // r0
AchievementManager *v72; // r0
GameManager *v73; // r0
const char *v74; // r6
_BOOL4 v75; // r10
AchievementManager *v76; // r0
AchievementManager *v77; // r0
GameManager *v78; // r0
size_t v79; // r0
_BOOL4 v80; // r6
AchievementManager *v81; // r0
AchievementManager *v82; // r0
GameManager *v83; // r0
_BOOL4 v84; // r10
AchievementManager *v85; // r0
AchievementManager *v86; // r0
GameManager *v87; // r0
AchievementManager *v88; // r0
_BOOL4 v89; // r10
int *v90; // r6
_BOOL4 v91; // r10
_BOOL4 v92; // r10
_BOOL4 v93; // r10
_BOOL4 v94; // r10
_BOOL4 v95; // r10
GameManager *v96; // r0
GameManager *v97; // r0
int v98; // r9
int v99; // r0
void (*v100)(void); // r3
char *v102; // [sp+8h] [bp-22Ch]
unsigned __int8 *v103; // [sp+Ch] [bp-228h]
char *v104; // [sp+14h] [bp-220h]
unsigned __int8 *v105; // [sp+1Ch] [bp-218h]
int v106; // [sp+28h] [bp-20Ch] BYREF
size_t v107; // [sp+2Ch] [bp-208h]
char *v108; // [sp+30h] [bp-204h]
int v109; // [sp+34h] [bp-200h] BYREF
size_t v110; // [sp+38h] [bp-1FCh]
unsigned __int8 *v111; // [sp+3Ch] [bp-1F8h]
int v112; // [sp+40h] [bp-1F4h] BYREF
unsigned int v113; // [sp+44h] [bp-1F0h]
const char *v114; // [sp+48h] [bp-1ECh]
int v115; // [sp+4Ch] [bp-1E8h] BYREF
unsigned int v116; // [sp+50h] [bp-1E4h]
unsigned __int8 *v117; // [sp+54h] [bp-1E0h]
int v118; // [sp+58h] [bp-1DCh] BYREF
size_t v119; // [sp+5Ch] [bp-1D8h]
char *v120; // [sp+60h] [bp-1D4h]
int v121[3]; // [sp+64h] [bp-1D0h] BYREF
int v122[3]; // [sp+70h] [bp-1C4h] BYREF
int v123[3]; // [sp+7Ch] [bp-1B8h] BYREF
int v124[3]; // [sp+88h] [bp-1ACh] BYREF
int v125[3]; // [sp+94h] [bp-1A0h] BYREF
int v126[3]; // [sp+A0h] [bp-194h] BYREF
int v127[3]; // [sp+ACh] [bp-188h] BYREF
int v128[3]; // [sp+B8h] [bp-17Ch] BYREF
int v129[3]; // [sp+C4h] [bp-170h] BYREF
int v130[3]; // [sp+D0h] [bp-164h] BYREF
int v131[3]; // [sp+DCh] [bp-158h] BYREF
int v132[3]; // [sp+E8h] [bp-14Ch] BYREF
int v133[3]; // [sp+F4h] [bp-140h] BYREF
int v134[3]; // [sp+100h] [bp-134h] BYREF
int v135[3]; // [sp+10Ch] [bp-128h] BYREF
int v136[3]; // [sp+118h] [bp-11Ch] BYREF
int v137[3]; // [sp+124h] [bp-110h] BYREF
int v138[3]; // [sp+130h] [bp-104h] BYREF
int v139[3]; // [sp+13Ch] [bp-F8h] BYREF
int v140[3]; // [sp+148h] [bp-ECh] BYREF
int v141[3]; // [sp+154h] [bp-E0h] BYREF
int v142[3]; // [sp+160h] [bp-D4h] BYREF
int v143[3]; // [sp+16Ch] [bp-C8h] BYREF
int v144[3]; // [sp+178h] [bp-BCh] BYREF
int v145[3]; // [sp+184h] [bp-B0h] BYREF
int v146[3]; // [sp+190h] [bp-A4h] BYREF
_BYTE v147[12]; // [sp+19Ch] [bp-98h] BYREF
int v148[3]; // [sp+1A8h] [bp-8Ch] BYREF
int v149[3]; // [sp+1B4h] [bp-80h] BYREF
int v150[3]; // [sp+1C0h] [bp-74h] BYREF
int v151[3]; // [sp+1CCh] [bp-68h] BYREF
int v152[3]; // [sp+1D8h] [bp-5Ch] BYREF
int v153[3]; // [sp+1E4h] [bp-50h] BYREF
int v154[3]; // [sp+1F0h] [bp-44h] BYREF
int v155[3]; // [sp+1FCh] [bp-38h] BYREF
int v156[3]; // [sp+208h] [bp-2Ch] BYREF
int v157[3]; // [sp+214h] [bp-20h] BYREF
_BYTE v158[12]; // [sp+220h] [bp-14h] BYREF
CCTextInputNode::getString((CCTextInputNode *)&v106, *((_DWORD *)this + 86));
v109 = 0;
v110 = 0;
v111 = nullptr;
if ( (v106 & 1) != 0 )
{
v3 = (GameManager *)std::string::__init(&v109, v108, v107);
}
else
{
v3 = (GameManager *)v106;
v109 = v106;
v110 = v107;
v111 = (unsigned __int8 *)v108;
}
v4 = 0;
while ( (v109 & 1) != 0 )
{
if ( v4 >= v110 )
goto LABEL_15;
v5 = (char *)v111;
LABEL_7:
v6 = &v5[v4];
if ( (v109 & 1) != 0 )
v7 = (char *)v111;
else
v7 = (char *)&v109 + 1;
v8 = (unsigned __int8)v7[v4++];
v3 = (GameManager *)tolower(v8);
*v6 = (char)v3;
}
if ( v4 < (unsigned __int8)v109 >> 1 )
{
v5 = (char *)&v109 + 1;
goto LABEL_7;
}
LABEL_15:
v9 = GameManager::sharedState(v3);
v112 = 0;
v113 = 0;
v114 = nullptr;
if ( (*(_BYTE *)(v9 + 448) & 1) != 0 )
{
std::string::__init(&v112, *(const void **)(v9 + 456), *(_DWORD *)(v9 + 452));
}
else
{
v10 = (int *)(v9 + 448);
v11 = v10[1];
v12 = v10[2];
v112 = *v10;
v113 = v11;
v114 = (const char *)v12;
}
v13 = 0;
while ( 2 )
{
if ( (v112 & 1) != 0 )
{
if ( v13 >= v113 )
break;
v14 = v114;
goto LABEL_21;
}
if ( v13 < (unsigned __int8)v112 >> 1 )
{
v14 = (char *)&v112 + 1;
LABEL_21:
v15 = (char *)&v14[v13];
if ( (v112 & 1) != 0 )
v16 = v114;
else
v16 = (char *)&v112 + 1;
v17 = (unsigned __int8)v16[v13++];
*v15 = tolower(v17);
continue;
}
break;
}
v115 = 0;
v116 = 0;
v117 = nullptr;
std::string::__init(&v115, " ", 1u);
v118 = 0;
v119 = 0;
v120 = nullptr;
std::string::__init(&v118, &unk_B6B226, 0);
for ( i = 0; ; i += v30 )
{
if ( (v109 & 1) != 0 )
{
v19 = v111;
v20 = v110;
}
else
{
v20 = (int)(unsigned __int8)v109 >> 1;
v19 = (unsigned __int8 *)&v109 + 1;
}
if ( (v115 & 1) != 0 )
{
v103 = v117;
v21 = v116;
}
else
{
v21 = (int)(unsigned __int8)v115 >> 1;
v103 = (unsigned __int8 *)&v115 + 1;
}
if ( i > v20 || v20 - i < v21 )
break;
if ( v21 )
{
v22 = &v19[v20];
if ( v22 - &v19[i] >= v21 )
{
v102 = (char *)&v19[i];
v104 = (char *)&v22[1 - v21];
v105 = &v103[v21];
LABEL_39:
while ( 1 )
{
v23 = (unsigned __int8 *)v102;
if ( v102 == v104 )
break;
++v102;
if ( *v23 == *v103 )
{
v24 = v103;
v25 = v23;
while ( ++v24 != v105 )
{
v26 = *++v25;
if ( v26 != *v24 )
goto LABEL_39;
}
goto LABEL_46;
}
}
}
v23 = v22;
LABEL_46:
if ( v23 == v22 )
break;
i = v23 - v19;
}
if ( i == -1 )
break;
if ( (v115 & 1) != 0 )
v27 = v116;
else
v27 = (int)(unsigned __int8)v115 >> 1;
if ( (v118 & 1) != 0 )
{
v28 = v120;
v29 = v119;
}
else
{
v29 = (int)(unsigned __int8)v118 >> 1;
v28 = (char *)&v118 + 1;
}
std::string::replace(&v109, i, v27, v28, v29);
if ( (v118 & 1) != 0 )
v30 = v119;
else
v30 = (int)(unsigned __int8)v118 >> 1;
}
std::string::~string((int)&v118);
std::string::~string((int)&v115);
memset(v121, 0, sizeof(v121));
v31 = *((_DWORD *)this + 86);
std::string::__init(v121, &unk_B6B226, 0);
CCTextInputNode::setString(v31, (int)v121);
std::string::~string((int)v121);
v32 = *((_DWORD *)this + 85);
v122[0] = 0;
*((_DWORD *)this + 85) = 0;
v122[1] = 0;
v122[2] = 0;
std::string::__init(v122, "lenny", 5u);
v33 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v122);
v34 = (AchievementManager *)std::string::~string((int)v122);
if ( !v33 )
{
memset(v124, 0, sizeof(v124));
std::string::__init(v124, "sparky", 6u);
v38 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v124);
v39 = (AchievementManager *)std::string::~string((int)v124);
if ( v38 )
{
v40 = (AchievementManager *)AchievementManager::sharedState(v39);
if ( AchievementManager::isAchievementEarned(v40, "geometry.ach.secret06") )
goto LABEL_115;
v41 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(nullptr);
memset(v125, 0, sizeof(v125));
std::string::__init(v125, "highscoreGet02.ogg", 0x12u);
FMODAudioEngine::playEffect(v41, (int)v125);
v42 = (GameManager *)std::string::~string((int)v125);
v43 = (GameManager *)GameManager::sharedState(v42);
v44 = (GameStatsManager *)GameManager::reportAchievementWithID(
v43,
"geometry.ach.secret06",
(const char *)&dword_64,
0);
v45 = (GameStatsManager *)GameStatsManager::sharedState(v44);
v48 = (GameStatsManager *)GameStatsManager::storeSecretCoin(v45, "secret06", v46, v47);
v49 = (GameStatsManager *)GameStatsManager::sharedState(v48);
GameStatsManager::incrementStat(v49, (const char *)&a1i2r3e45s789g[10]);
memset(v126, 0, sizeof(v126));
std::string::__init(v126, "My coin.. NOOOOOO!!!", 0x14u);
SecretLayer::updateMessageLabel((int)this, (int)v126);
std::string::~string((int)v126);
SecretLayer::playCoinEffect(this);
goto LABEL_98;
}
memset(v127, 0, sizeof(v127));
std::string::__init(v127, "spooky", 6u);
v50 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v127);
v51 = (AchievementManager *)std::string::~string((int)v127);
if ( v50 )
{
v52 = (AchievementManager *)AchievementManager::sharedState(v51);
if ( AchievementManager::isAchievementEarned(v52, "geometry.ach.secret07") )
goto LABEL_115;
v53 = (GameManager *)GameManager::sharedState(nullptr);
GameManager::reportAchievementWithID(v53, "geometry.ach.secret07", (const char *)&dword_64, 0);
v37 = v128;
memset(v128, 0, sizeof(v128));
std::string::__init(v128, "WHAT!? How did you know my name!?!", 0x22u);
SecretLayer::updateMessageLabel((int)this, (int)v128);
}
else
{
memset(v129, 0, sizeof(v129));
std::string::__init(v129, "blockbite", 9u);
v54 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v129);
v55 = (AchievementManager *)std::string::~string((int)v129);
if ( v54 )
{
v56 = (AchievementManager *)AchievementManager::sharedState(v55);
if ( AchievementManager::isAchievementEarned(v56, "geometry.ach.secret08") )
goto LABEL_115;
v57 = (GameManager *)GameManager::sharedState(nullptr);
GameManager::reportAchievementWithID(v57, "geometry.ach.secret08", (const char *)&dword_64, 0);
v37 = v130;
memset(v130, 0, sizeof(v130));
std::string::__init(v130, "How do you know my secrets!?", 0x1Cu);
SecretLayer::updateMessageLabel((int)this, (int)v130);
}
else
{
memset(v131, 0, sizeof(v131));
std::string::__init(v131, "robotop", 7u);
v58 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v131);
v59 = (AchievementManager *)std::string::~string((int)v131);
if ( v58 )
{
v60 = (AchievementManager *)AchievementManager::sharedState(v59);
if ( AchievementManager::isAchievementEarned(v60, "geometry.ach.secret09") )
goto LABEL_115;
v61 = (GameManager *)GameManager::sharedState(nullptr);
GameManager::reportAchievementWithID(v61, "geometry.ach.secret09", (const char *)&dword_64, 0);
v37 = v132;
memset(v132, 0, sizeof(v132));
std::string::__init(v132, "So he told you?...", 0x12u);
SecretLayer::updateMessageLabel((int)this, (int)v132);
}
else
{
memset(v133, 0, sizeof(v133));
std::string::__init(v133, "ahead", 5u);
v62 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v133);
if ( !v62 )
{
memset(v134, 0, sizeof(v134));
std::string::__init(v134, "a head", 6u);
v62 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v134);
std::string::~string((int)v134);
}
v63 = (AchievementManager *)std::string::~string((int)v133);
if ( v62 )
{
v64 = (AchievementManager *)AchievementManager::sharedState(v63);
if ( AchievementManager::isAchievementEarned(v64, "geometry.ach.secret10") )
goto LABEL_115;
v65 = (GameManager *)GameManager::sharedState(nullptr);
GameManager::reportAchievementWithID(v65, "geometry.ach.secret10", (const char *)&dword_64, 0);
v37 = v135;
memset(v135, 0, sizeof(v135));
std::string::__init(v135, "You learn quickly!", 0x12u);
SecretLayer::updateMessageLabel((int)this, (int)v135);
}
else
{
memset(v136, 0, sizeof(v136));
std::string::__init(v136, "mule", 4u);
v66 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v136);
v67 = (AchievementManager *)std::string::~string((int)v136);
if ( v66 )
{
v68 = (AchievementManager *)AchievementManager::sharedState(v67);
if ( AchievementManager::isAchievementEarned(v68, "geometry.ach.secret13") )
goto LABEL_115;
v69 = (GameManager *)GameManager::sharedState(nullptr);
GameManager::reportAchievementWithID(v69, "geometry.ach.secret13", (const char *)&dword_64, 0);
v37 = v137;
memset(v137, 0, sizeof(v137));
std::string::__init(v137, "Ah, right you are.", 0x12u);
SecretLayer::updateMessageLabel((int)this, (int)v137);
}
else
{
memset(v138, 0, sizeof(v138));
std::string::__init(v138, "neverending", 0xBu);
v70 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v138);
v71 = (AchievementManager *)std::string::~string((int)v138);
if ( v70 )
{
v72 = (AchievementManager *)AchievementManager::sharedState(v71);
if ( AchievementManager::isAchievementEarned(v72, "geometry.ach.secret14") )
goto LABEL_115;
v73 = (GameManager *)GameManager::sharedState(nullptr);
GameManager::reportAchievementWithID(v73, "geometry.ach.secret14", (const char *)&dword_64, 0);
v37 = v139;
memset(v139, 0, sizeof(v139));
std::string::__init(v139, "You're pretty good at this", 0x1Au);
SecretLayer::updateMessageLabel((int)this, (int)v139);
}
else
{
v74 = (const char *)v140;
memset(v140, 0, sizeof(v140));
std::string::__init(v140, "gandalfpotter", 0xDu);
v75 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v140);
v76 = (AchievementManager *)std::string::~string((int)v140);
if ( v75 )
{
v77 = (AchievementManager *)AchievementManager::sharedState(v76);
if ( AchievementManager::isAchievementEarned(v77, "geometry.ach.secret15") )
goto LABEL_115;
v78 = (GameManager *)GameManager::sharedState(nullptr);
GameManager::reportAchievementWithID(v78, "geometry.ach.secret15", (const char *)&dword_64, 0);
v37 = v141;
memset(v141, 0, sizeof(v141));
std::string::__init(v141, "That was weird...", 0x11u);
SecretLayer::updateMessageLabel((int)this, (int)v141);
}
else
{
if ( (v112 & 1) == 0 )
v74 = (char *)&v112 + 1;
v142[0] = 0;
if ( (v112 & 1) != 0 )
v74 = v114;
v142[1] = 0;
v142[2] = 0;
v79 = strlen(v74);
std::string::__init(v142, v74, v79);
v80 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v142);
v81 = (AchievementManager *)std::string::~string((int)v142);
if ( v80 )
{
v82 = (AchievementManager *)AchievementManager::sharedState(v81);
if ( AchievementManager::isAchievementEarned(v82, "geometry.ach.secret17") )
goto LABEL_115;
v83 = (GameManager *)GameManager::sharedState(nullptr);
GameManager::reportAchievementWithID(v83, "geometry.ach.secret17", (const char *)&dword_64, 0);
v37 = v143;
memset(v143, 0, sizeof(v143));
std::string::__init(v143, "He could be watching right now...", 0x21u);
SecretLayer::updateMessageLabel((int)this, (int)v143);
}
else
{
memset(v144, 0, sizeof(v144));
std::string::__init(v144, "finalboss", 9u);
v84 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v144);
v85 = (AchievementManager *)std::string::~string((int)v144);
if ( !v84 )
{
v88 = (AchievementManager *)AchievementManager::sharedState(v85);
if ( AchievementManager::isAchievementEarned(v88, "geometry.ach.secret16") )
goto LABEL_115;
switch ( v32 )
{
case 0:
memset(v146, 0, sizeof(v146));
std::string::__init(v146, &a1i2r3e45s789g[10], 1u);
v89 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v146);
std::string::~string((int)v146);
if ( !v89 )
goto LABEL_115;
v90 = (int *)v147;
SecretLayer::getBasicMessage((SecretLayer *)v147, (int)this);
SecretLayer::updateMessageLabel((int)this, (int)v147);
break;
case 1:
memset(v148, 0, sizeof(v148));
std::string::__init(v148, "16", 2u);
v91 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v148);
std::string::~string((int)v148);
if ( !v91 )
goto LABEL_115;
v90 = v149;
memset(v149, 0, sizeof(v149));
std::string::__init(v149, "...", 3u);
SecretLayer::updateMessageLabel((int)this, (int)v149);
break;
case 2:
memset(v150, 0, sizeof(v150));
std::string::__init(v150, "30", 2u);
v92 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v150);
std::string::~string((int)v150);
if ( !v92 )
goto LABEL_115;
v90 = v151;
memset(v151, 0, sizeof(v151));
std::string::__init(v151, "What do you think you're doing?", 0x1Fu);
SecretLayer::updateMessageLabel((int)this, (int)v151);
break;
case 3:
memset(v152, 0, sizeof(v152));
std::string::__init(v152, "32", 2u);
v93 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v152);
std::string::~string((int)v152);
if ( !v93 )
goto LABEL_115;
v90 = v153;
memset(v153, 0, sizeof(v153));
std::string::__init(v153, "Those numbers, aren't they...", 0x1Du);
SecretLayer::updateMessageLabel((int)this, (int)v153);
break;
case 4:
memset(v154, 0, sizeof(v154));
std::string::__init(v154, "46", 2u);
v94 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v154);
std::string::~string((int)v154);
if ( !v94 )
goto LABEL_115;
v90 = v155;
memset(v155, 0, sizeof(v155));
std::string::__init(v155, "NO NO NO NO!!!", 0xEu);
SecretLayer::updateMessageLabel((int)this, (int)v155);
break;
case 5:
memset(v156, 0, sizeof(v156));
std::string::__init(v156, "84", 2u);
v95 = sub_5FC8FA((unsigned __int8 *)&v109, (unsigned __int8 *)v156);
std::string::~string((int)v156);
if ( !v95 )
goto LABEL_115;
v90 = v157;
memset(v157, 0, sizeof(v157));
std::string::__init(v157, "GAH!! You have doomed us all!", 0x1Du);
SecretLayer::updateMessageLabel((int)this, (int)v157);
break;
default:
goto LABEL_115;
}
std::string::~string((int)v90);
*((_DWORD *)this + 85) = v32 + 1;
v96 = (GameManager *)(*(int (**)(void))(**((_DWORD **)this + 87) + 536))();
if ( *((int *)this + 85) > 5 )
{
*((_DWORD *)this + 85) = 0;
v97 = (GameManager *)GameManager::sharedState(v96);
GameManager::reportAchievementWithID(v97, "geometry.ach.secret16", (const char *)&dword_64, 0);
}
goto LABEL_98;
}
v86 = (AchievementManager *)AchievementManager::sharedState(v85);
if ( AchievementManager::isAchievementEarned(v86, "geometry.ach.secret19") )
goto LABEL_115;
v87 = (GameManager *)GameManager::sharedState(nullptr);
GameManager::reportAchievementWithID(v87, "geometry.ach.secret19", (const char *)&dword_64, 0);
v37 = v145;
memset(v145, 0, sizeof(v145));
std::string::__init(v145, "Maybe Rub should add some of these", 0x22u);
SecretLayer::updateMessageLabel((int)this, (int)v145);
}
}
}
}
}
}
}
}
LABEL_97:
std::string::~string((int)v37);
LABEL_98:
*((_DWORD *)this + 82) = 0;
goto LABEL_120;
}
v35 = (AchievementManager *)AchievementManager::sharedState(v34);
if ( !AchievementManager::isAchievementEarned(v35, "geometry.ach.secret05") )
{
v36 = (GameManager *)GameManager::sharedState(nullptr);
GameManager::reportAchievementWithID(v36, "geometry.ach.secret05", (const char *)&dword_64, 0);
v37 = v123;
memset(v123, 0, sizeof(v123));
std::string::__init(v123, "Noooooo!!!!", 0xBu);
SecretLayer::updateMessageLabel((int)this, (int)v123);
goto LABEL_97;
}
LABEL_115:
v98 = *((_DWORD *)this + 82);
SecretLayer::getMessage((SecretLayer *)v158, this);
SecretLayer::updateMessageLabel((int)this, (int)v158);
std::string::~string((int)v158);
v99 = *((_DWORD *)this + 87);
if ( v98 <= 0 && *((int *)this + 82) <= 0 )
v100 = *(void (**)(void))(*(_DWORD *)v99 + 536);
else
v100 = *(void (**)(void))(*(_DWORD *)v99 + 536);
v100();
LABEL_120:
std::string::~string((int)&v112);
std::string::~string((int)&v109);
return std::string::~string((int)&v106);
}