//
// SecretLayer::getThreadMessage from 0x5fd458 to 0x5fdc0e (1974 bytes)
//
// 1 xrefs:
// > SecretLayer::getMessage @ 0x5fde2c
//
// 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:37 +0000
//
SecretLayer *__fastcall SecretLayer::getThreadMessage(SecretLayer *this, _DWORD *a2)
{
int v4; // r3
int *v5; // r0
char *v6; // r1
int *v7; // r0
GameManager *v8; // r0
a2[84] = 0;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
std::string::__init((int *)this, "zzzzzzZZZZZZZZZ", 0xFu);
v4 = a2[82];
if ( v4 == 16 )
{
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "Secrets secrets secrets...");
break;
case 1:
std::string::assign((int *)this, "It's hard to keep track of");
break;
case 2:
std::string::assign((int *)this, "makes me feel Lost...");
break;
case 3:
std::string::assign((int *)this, "Maybe we are in a twilight zone?");
break;
case 4:
std::string::assign((int *)this, "Reminds me of a book I read");
break;
case 5:
std::string::assign((int *)this, "The pages were weird");
break;
case 6:
std::string::assign((int *)this, "Page one was page two");
break;
case 7:
std::string::assign((int *)this, "Page three was page six");
break;
case 8:
v5 = (int *)this;
v6 = "Made it really hard to read";
LABEL_37:
std::string::assign(v5, v6);
a2[82] = 0;
break;
default:
break;
}
}
else if ( v4 > 16 )
{
if ( v4 == 103 )
{
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "Look behind you!");
break;
case 1:
std::string::assign((int *)this, "I thought I saw something");
break;
case 2:
std::string::assign((int *)this, "Maybe it's just my imagination");
break;
case 3:
std::string::assign((int *)this, "Or was it?");
break;
case 4:
v5 = (int *)this;
v6 = "DUN DUN DUN!";
goto LABEL_37;
default:
break;
}
}
else if ( v4 > 103 )
{
if ( v4 == 105 )
{
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "I heard a joke the other day");
break;
case 1:
std::string::assign((int *)this, "Two cubes walk into a bar");
break;
case 2:
std::string::assign((int *)this, "wait... did they walk or slide?");
break;
case 3:
std::string::assign((int *)this, "I don't think cubes can walk");
break;
case 4:
v5 = (int *)this;
v6 = "Nevermind...";
goto LABEL_37;
default:
break;
}
}
else if ( v4 < 105 )
{
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "Don't you get tired of clicking?");
break;
case 1:
std::string::assign((int *)this, "I mean, isn't it boring?");
break;
case 2:
std::string::assign((int *)this, "Click click click");
break;
case 3:
v5 = (int *)this;
v6 = "Is that all you do?";
goto LABEL_37;
default:
break;
}
}
else if ( v4 == 120 )
{
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "Are you always like this?");
break;
case 1:
std::string::assign((int *)this, "I mean, what's the point?");
break;
case 2:
std::string::assign((int *)this, "Let me guess, you're gonna push the button?");
break;
case 3:
v5 = (int *)this;
v6 = "What a surprise...";
goto LABEL_37;
default:
break;
}
}
else
{
if ( v4 != 121 )
goto LABEL_160;
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "Roses are red");
break;
case 1:
std::string::assign((int *)this, "Violets are blue");
break;
case 2:
std::string::assign((int *)this, "Click the back button");
break;
case 3:
v5 = (int *)this;
v6 = "So I get rid of you";
goto LABEL_37;
default:
break;
}
}
}
else if ( v4 == 19 )
{
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "What is the hardest Demon?");
break;
case 1:
LABEL_103:
std::string::assign((int *)this, "...");
break;
case 2:
std::string::assign((int *)this, "Even harder than Extreme Demons");
break;
case 3:
v5 = (int *)this;
v6 = "There must be more";
goto LABEL_37;
default:
break;
}
}
else if ( v4 > 19 )
{
if ( v4 == 101 )
{
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "So... whats up?");
break;
case 1:
std::string::assign((int *)this, "The back button is in the corner.");
break;
case 2:
std::string::assign((int *)this, "Ready to leave yet?");
break;
case 3:
std::string::assign((int *)this, "Whenever you're ready...");
break;
case 4:
v5 = (int *)this;
v6 = "Fine, I can wait.";
goto LABEL_37;
default:
break;
}
}
else
{
if ( v4 != 102 )
goto LABEL_160;
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "I have an idea for a gamemode");
break;
case 1:
std::string::assign((int *)this, "You play as a cube");
break;
case 2:
std::string::assign((int *)this, "that can jump");
break;
case 3:
std::string::assign((int *)this, "...and there are spikes");
break;
case 4:
v5 = (int *)this;
v6 = "nevermind...";
goto LABEL_37;
default:
break;
}
}
}
else
{
if ( v4 != 17 )
goto LABEL_160;
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "I don't feel good about this...");
break;
case 1:
std::string::assign((int *)this, "RubRub will be back soon");
break;
case 2:
std::string::assign((int *)this, "...unless he's already here");
break;
case 3:
std::string::assign((int *)this, "Watching, waiting, lurking...");
break;
case 4:
std::string::assign((int *)this, "He knows every move I make");
break;
case 5:
std::string::assign((int *)this, "Every move YOU make");
break;
case 6:
std::string::assign((int *)this, "But maybe you can stop him?");
break;
case 7:
v5 = (int *)this;
v6 = "Maybe you are the key?";
goto LABEL_37;
default:
break;
}
}
}
else if ( v4 == 10 )
{
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "Ok, I will give you a hint.");
break;
case 1:
std::string::assign((int *)this, "Without it, I'm dead.");
break;
case 2:
std::string::assign((int *)this, "If I'm not, then I'm behind.");
break;
case 3:
std::string::assign((int *)this, "What am I?");
break;
case 4:
v5 = (int *)this;
v6 = "That didn't go very well...";
goto LABEL_37;
default:
break;
}
}
else if ( v4 > 10 )
{
if ( v4 == 13 )
{
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "Why are you still here?");
break;
case 1:
std::string::assign((int *)this, "You're so stubborn");
break;
case 2:
std::string::assign((int *)this, "Stubborn as a Fox...");
break;
case 3:
std::string::assign((int *)this, "wait, that's not right");
break;
case 4:
std::string::assign((int *)this, "Gah, I forgot the word");
break;
case 5:
std::string::assign((int *)this, "Those animals that are stubborn");
break;
case 6:
v5 = (int *)this;
v6 = "Nevermind...";
goto LABEL_37;
default:
break;
}
}
else if ( v4 > 13 )
{
if ( v4 == 14 )
{
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "I have to admit");
goto LABEL_118;
case 1:
LABEL_118:
std::string::assign((int *)this, "It does get lonely sometimes");
break;
case 2:
std::string::assign((int *)this, "It's so quiet...");
break;
case 3:
std::string::assign((int *)this, "Except for the annoying music");
break;
case 4:
std::string::assign((int *)this, "Just keeps looping");
break;
case 5:
std::string::assign((int *)this, "Over and over and over");
break;
case 6:
std::string::assign((int *)this, "It never ends");
break;
case 7:
std::string::assign((int *)this, "It doesn't have an end");
break;
case 8:
std::string::assign((int *)this, "...no ending");
break;
case 9:
v5 = (int *)this;
v6 = "That's like 5 hints";
goto LABEL_37;
default:
break;
}
}
else
{
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "There's a trail hidden somewhere");
break;
case 1:
std::string::assign((int *)this, "But RubRub didn't tell me where");
break;
case 2:
std::string::assign((int *)this, "...or what the password is");
break;
case 3:
std::string::assign((int *)this, "You will have to ask him");
break;
case 4:
std::string::assign((int *)this, "Fly, you fool!");
break;
case 5:
std::string::assign((int *)this, "...or use the force");
break;
case 6:
std::string::assign((int *)this, "Whichever comes first");
break;
case 7:
std::string::assign((int *)this, "Sneaky hobbitses...");
break;
case 8:
v5 = (int *)this;
v6 = "Gryffindor!";
goto LABEL_37;
default:
break;
}
}
}
else
{
if ( v4 != 11 )
goto LABEL_160;
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "So you met the GateKeeper...");
break;
case 1:
std::string::assign((int *)this, "I heard he made fun of me");
break;
case 2:
std::string::assign((int *)this, "Made fun of 'Sparky'...");
break;
case 3:
goto LABEL_103;
case 4:
std::string::assign((int *)this, "Like he has a better name");
break;
case 5:
std::string::assign((int *)this, "What does 'Glubfub' mean anyway?");
break;
case 6:
std::string::assign((int *)this, "I mean... oh no...");
break;
case 7:
v7 = std::string::assign((int *)this, "I DIDNT TELL YOU ANYTHING!");
a2[82] = 0;
v8 = (GameManager *)GameManager::sharedState((GameManager *)v7);
GameManager::setUGV(v8, (char *)&a1i2r3e45s789g[4], (_BYTE *)&dword_0 + 1);
break;
default:
break;
}
}
}
else if ( v4 == 7 )
{
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "Don't tell RubRub, but I stole an icon");
break;
case 1:
std::string::assign((int *)this, "He will never notice...");
break;
case 2:
std::string::assign((int *)this, "I hid it with my name as the password");
break;
case 3:
v5 = (int *)this;
v6 = "Muahahaha!";
goto LABEL_37;
default:
break;
}
}
else if ( v4 > 7 )
{
if ( v4 == 8 )
{
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "You want a hint... don't you?");
break;
case 1:
std::string::assign((int *)this, "I've hidden a password in the game");
break;
case 2:
std::string::assign((int *)this, "I won't tell you where it is...");
break;
case 3:
v5 = (int *)this;
v6 = "It's definitely not on the support page.";
goto LABEL_37;
default:
break;
}
}
else
{
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "I like the new Robot mode");
break;
case 1:
std::string::assign((int *)this, "I even have my own Robot");
break;
case 2:
std::string::assign((int *)this, "RubRub gave it to me as a present");
break;
case 3:
std::string::assign((int *)this, "No, I won't give you a hint...");
break;
case 4:
std::string::assign((int *)this, "I said no...");
break;
case 5:
v5 = (int *)this;
v6 = "You will have to ask RubRub...";
goto LABEL_37;
default:
break;
}
}
}
else
{
if ( v4 != 6 )
{
LABEL_160:
std::string::assign((int *)this, "zzzZZZZ");
goto LABEL_161;
}
switch ( a2[83] )
{
case 0:
std::string::assign((int *)this, "You're here for my gold, aren't you?");
break;
case 1:
std::string::assign((int *)this, "I had a secret coin once");
break;
case 2:
std::string::assign((int *)this, "It was so beautiful");
break;
case 3:
v5 = (int *)this;
v6 = "I called it 'Sparky'";
goto LABEL_37;
default:
break;
}
}
LABEL_161:
++a2[83];
return this;
}