//
// SecretLayer2::getThreadMessage from 0x61e0b0 to 0x61e398 (744 bytes)
//
// 1 xrefs:
// > SecretLayer2::getMessage @ 0x61e4c8
//
// 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:55:01 +0000
//
SecretLayer2 *__fastcall SecretLayer2::getThreadMessage(SecretLayer2 *this, _DWORD *a2)
{
int *v4; // r0
char *v5; // r1
int *v6; // r0
char *v7; // r1
int *v8; // r0
GameManager *v9; // r0
int v10; // r3
int v11; // r3
a2[86] = 0;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
std::string::__init((int *)this, "zzzzzzZZZZZZZZZ", 0xFu);
switch ( a2[84] )
{
case 1:
switch ( a2[85] )
{
case 0:
v4 = (int *)this;
v5 = "Oh my head...";
goto LABEL_68;
case 1:
v4 = (int *)this;
v5 = "I feel so drained";
goto LABEL_68;
case 2:
v4 = (int *)this;
v5 = "Would be nice to get some energy";
goto LABEL_68;
case 3:
v4 = (int *)this;
v5 = "You know, for my head...";
goto LABEL_68;
case 4:
v6 = (int *)this;
v7 = "Nothing? Ok...";
goto LABEL_8;
default:
goto LABEL_69;
}
case 3:
switch ( a2[85] )
{
case 0:
v4 = (int *)this;
v5 = "I heard what you did";
goto LABEL_68;
case 1:
v4 = (int *)this;
v5 = "You little thief";
goto LABEL_68;
case 2:
v4 = (int *)this;
v5 = "You took 'Spookys' coin";
goto LABEL_68;
case 3:
v4 = (int *)this;
v5 = "That is pure evil...";
goto LABEL_68;
case 4:
v4 = (int *)this;
v5 = "I like it";
goto LABEL_68;
case 5:
v4 = (int *)this;
v5 = "I know what you're thinking";
goto LABEL_68;
case 6:
v4 = (int *)this;
v5 = "But you will never get my coin...";
goto LABEL_68;
case 7:
v4 = (int *)this;
v5 = "I keep it safe";
goto LABEL_68;
case 8:
v8 = std::string::assign((int *)this, "Too clever for you...");
a2[84] = 0;
v9 = (GameManager *)GameManager::sharedState((GameManager *)v8);
GameManager::setUGV(v9, (char *)&a1i2r3e45s789g[2], (_BYTE *)&dword_0 + 1);
break;
default:
goto LABEL_69;
}
break;
case 4:
v10 = a2[85];
if ( !v10 )
{
v4 = (int *)this;
v5 = "This is thread 4";
goto LABEL_68;
}
if ( v10 == 1 )
{
v6 = (int *)this;
v7 = "Thread 4 end";
goto LABEL_8;
}
break;
case 5:
switch ( a2[85] )
{
case 0:
v4 = (int *)this;
v5 = "So... there is a tree";
goto LABEL_68;
case 1:
v4 = (int *)this;
v5 = "A very short tree";
goto LABEL_68;
case 2:
v4 = (int *)this;
v5 = "In this tree there lives a Witch";
goto LABEL_68;
case 3:
v4 = (int *)this;
v5 = "A very short Witch";
goto LABEL_68;
case 4:
v4 = (int *)this;
v5 = "The Witch stinks of fish";
goto LABEL_68;
case 5:
v4 = (int *)this;
v5 = "My question to you is this...";
goto LABEL_68;
case 6:
v4 = (int *)this;
v5 = "On a scale from tree to fish";
goto LABEL_68;
case 7:
v6 = (int *)this;
v7 = "How many shinies do you have?";
goto LABEL_8;
default:
goto LABEL_69;
}
case 6:
switch ( a2[85] )
{
case 0:
v4 = (int *)this;
v5 = "...";
goto LABEL_68;
case 1:
v4 = (int *)this;
v5 = "Might as well give you a riddle";
goto LABEL_68;
case 2:
v4 = (int *)this;
v5 = "Since you insist on staying";
goto LABEL_68;
case 3:
v4 = (int *)this;
v5 = "'I have always been odd'";
goto LABEL_68;
case 4:
v4 = (int *)this;
v5 = "'Remove my start and I am even'";
goto LABEL_68;
case 5:
v4 = (int *)this;
v5 = "'When you complete this riddle'";
goto LABEL_68;
case 6:
v4 = (int *)this;
v5 = "'I hope you are leaving'";
goto LABEL_68;
case 7:
v6 = (int *)this;
v7 = "Can you go now?";
goto LABEL_8;
default:
goto LABEL_69;
}
case 8:
switch ( a2[85] )
{
case 0:
v4 = (int *)this;
v5 = "Which came first?";
goto LABEL_68;
case 1:
v4 = (int *)this;
v5 = "The chicken or the egg?";
goto LABEL_68;
case 2:
v4 = (int *)this;
v5 = "...";
goto LABEL_68;
case 3:
v4 = (int *)this;
v5 = "The egg, of course.";
goto LABEL_68;
case 4:
v4 = (int *)this;
v5 = "Then the egg laid the chicken";
goto LABEL_68;
case 5:
v4 = (int *)this;
v5 = "... and the chicken said";
goto LABEL_68;
case 6:
v4 = (int *)this;
v5 = "The password is on fire";
goto LABEL_68;
case 7:
v6 = (int *)this;
v7 = "I need to get some rest...";
goto LABEL_8;
default:
goto LABEL_69;
}
case 9:
v11 = a2[85];
if ( !v11 )
{
v4 = (int *)this;
v5 = "Remember the 2.1 Awards?";
goto LABEL_68;
}
if ( v11 == 1 )
{
v6 = (int *)this;
v7 = "me neither";
LABEL_8:
std::string::assign(v6, v7);
a2[84] = 0;
}
break;
case 0xA:
switch ( a2[85] )
{
case 0:
v4 = (int *)this;
v5 = "It's been so long";
goto LABEL_68;
case 1:
v4 = (int *)this;
v5 = "I feel like I've forgotten something";
goto LABEL_68;
case 2:
v4 = (int *)this;
v5 = "...";
goto LABEL_68;
case 3:
v6 = (int *)this;
v7 = "Where's that smoke coming from?";
goto LABEL_8;
default:
goto LABEL_69;
}
case 0x14:
switch ( a2[85] )
{
case 0:
v4 = (int *)this;
v5 = "Want to hear a secret?";
goto LABEL_68;
case 1:
v4 = (int *)this;
v5 = "Just don't tell RubRub";
goto LABEL_68;
case 2:
v4 = (int *)this;
v5 = "I am building my own level";
goto LABEL_68;
case 3:
v4 = (int *)this;
v5 = "I call it \"The Challenge\"";
goto LABEL_68;
case 4:
v4 = (int *)this;
v5 = "Hope it gets featured";
goto LABEL_68;
case 5:
v4 = (int *)this;
v5 = "But probably not...";
goto LABEL_68;
case 6:
v6 = (int *)this;
v7 = "RubRub will never notice me";
goto LABEL_8;
default:
goto LABEL_69;
}
default:
v4 = (int *)this;
v5 = "zzzZZZZ";
LABEL_68:
std::string::assign(v4, v5);
break;
}
LABEL_69:
++a2[85];
return this;
}