//
// SecretLayer::getBasicMessage from 0x5fce90 to 0x5fd11c (652 bytes)
//
// 2 xrefs:
// > SecretLayer::getMessage @ 0x5fde26
// > SecretLayer::onSubmit @ 0x5fe6a6
//
// 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::getBasicMessage(SecretLayer *this, int a2)
{
int v4; // r3
int *v5; // r0
const char *v6; // r1
size_t v7; // r2
++*(_DWORD *)(a2 + 336);
v4 = *(_DWORD *)(a2 + 324);
if ( v4 >= 0 )
{
*(_DWORD *)(a2 + 324) = v4 + 1;
}
else
{
rand();
*(_DWORD *)(a2 + 324) = lroundf();
}
if ( *(int *)(a2 + 324) > 29 )
*(_DWORD *)(a2 + 324) = 0;
switch ( *(_DWORD *)(a2 + 324) )
{
case 0:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "How did you get in here?!";
*((_DWORD *)this + 2) = 0;
goto LABEL_15;
case 1:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 31;
*((_DWORD *)this + 1) = 0;
v6 = "What are you poking around for?";
*((_DWORD *)this + 2) = 0;
break;
case 2:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 35;
*((_DWORD *)this + 1) = 0;
v6 = "Don't you have better things to do?";
*((_DWORD *)this + 2) = 0;
break;
case 3:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "There is no spoon";
*((_DWORD *)this + 2) = 0;
goto LABEL_45;
case 4:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 8;
*((_DWORD *)this + 1) = 0;
v6 = "Go away!";
*((_DWORD *)this + 2) = 0;
break;
case 5:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "I should have hid this room better...";
*((_DWORD *)this + 2) = 0;
goto LABEL_20;
case 6:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 36;
*((_DWORD *)this + 1) = 0;
v6 = "You're not supposed to be in here...";
*((_DWORD *)this + 2) = 0;
break;
case 7:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "RubRub won't like this...";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_15:
v7 = 25;
break;
case 8:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "zzzZZZZ...";
*((_DWORD *)this + 2) = 0;
goto LABEL_43;
case 9:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "Don't touch that!";
*((_DWORD *)this + 2) = 0;
goto LABEL_45;
case 0xA:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "Why U touch my stuff?";
*((_DWORD *)this + 2) = 0;
goto LABEL_30;
case 0xB:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "RubRub better not find you in here...";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_20:
v7 = 37;
break;
case 0xC:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "Can't you just leave?";
*((_DWORD *)this + 2) = 0;
goto LABEL_30;
case 0xD:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 43;
*((_DWORD *)this + 1) = 0;
v6 = "This is not the room you are looking for...";
*((_DWORD *)this + 2) = 0;
break;
case 0xE:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 16;
*((_DWORD *)this + 1) = 0;
v6 = "Sneaky sneaky...";
*((_DWORD *)this + 2) = 0;
break;
case 0xF:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "It's my precious...";
*((_DWORD *)this + 2) = 0;
goto LABEL_39;
case 0x10:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "You shall not pass!";
*((_DWORD *)this + 2) = 0;
goto LABEL_39;
case 0x11:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "Don't push the button!";
*((_DWORD *)this + 2) = 0;
goto LABEL_41;
case 0x12:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 33;
*((_DWORD *)this + 1) = 0;
v6 = "You're gonna get me in trouble...";
*((_DWORD *)this + 2) = 0;
break;
case 0x13:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 28;
*((_DWORD *)this + 1) = 0;
v6 = "This is getting ridiculus...";
*((_DWORD *)this + 2) = 0;
break;
case 0x14:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "Go collect some stars";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_30:
v7 = 21;
break;
case 0x15:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 27;
*((_DWORD *)this + 1) = 0;
v6 = "Maybe there are new levels?";
*((_DWORD *)this + 2) = 0;
break;
case 0x16:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 23;
*((_DWORD *)this + 1) = 0;
v6 = "Just, stop bothering me";
*((_DWORD *)this + 2) = 0;
break;
case 0x17:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "I'm gonna stop talking";
*((_DWORD *)this + 2) = 0;
goto LABEL_41;
case 0x18:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 3;
*((_DWORD *)this + 1) = 0;
v6 = "...";
*((_DWORD *)this + 2) = 0;
break;
case 0x19:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 6;
*((_DWORD *)this + 1) = 0;
v6 = "......";
*((_DWORD *)this + 2) = 0;
break;
case 0x1A:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 4;
*((_DWORD *)this + 1) = 0;
v6 = "GAH!";
*((_DWORD *)this + 2) = 0;
break;
case 0x1B:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 18;
*((_DWORD *)this + 1) = 0;
v6 = "You're hopeless...";
*((_DWORD *)this + 2) = 0;
break;
case 0x1C:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "Really, still here?";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_39:
v7 = 19;
break;
case 0x1D:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "Fine, press the button";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_41:
v7 = 22;
break;
case 0x1E:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "Happy now?";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_43:
v7 = 10;
break;
default:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "Don't touch that!";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_45:
v7 = 17;
break;
}
std::string::__init(v5, v6, v7);
return this;
}