//
// SecretLayer::getBasicMessage from 0x4ca274 to 0x4ca3d2 (350 bytes)
//
// 2 xrefs:
// > SecretLayer::getMessage @ 0x4ca4aa
// > SecretLayer::onSubmit @ 0x4cae50
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
SecretLayer *__fastcall SecretLayer::getBasicMessage(SecretLayer *this, int a2)
{
int v4; // r2
char *v5; // r1
++*(_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 = "How did you get in here?!";
break;
case 1:
v5 = "What are you poking around for?";
break;
case 2:
v5 = "Don't you have better things to do?";
break;
case 3:
v5 = "There is no spoon";
break;
case 4:
v5 = "Go away!";
break;
case 5:
v5 = "I should have hid this room better...";
break;
case 6:
v5 = "You're not supposed to be in here...";
break;
case 7:
v5 = "RubRub won't like this...";
break;
case 8:
v5 = "zzzZZZZ...";
break;
case 9:
v5 = "Don't touch that!";
break;
case 0xA:
v5 = "Why U touch my stuff?";
break;
case 0xB:
v5 = "RubRub better not find you in here...";
break;
case 0xC:
v5 = "Can't you just leave?";
break;
case 0xD:
v5 = "This is not the room you are looking for...";
break;
case 0xE:
v5 = "Sneaky sneaky...";
break;
case 0xF:
v5 = "It's my precious...";
break;
case 0x10:
v5 = "You shall not pass!";
break;
case 0x11:
v5 = "Don't push the button!";
break;
case 0x12:
v5 = "You're gonna get me in trouble...";
break;
case 0x13:
v5 = "This is getting ridiculus...";
break;
case 0x14:
v5 = "Go collect some stars";
break;
case 0x15:
v5 = "Maybe there are new levels?";
break;
case 0x16:
v5 = "Just, stop bothering me";
break;
case 0x17:
v5 = "I'm gonna stop talking";
break;
case 0x18:
v5 = "...";
break;
case 0x19:
v5 = "......";
break;
case 0x1A:
v5 = "GAH!";
break;
case 0x1B:
v5 = "You're hopeless...";
break;
case 0x1C:
v5 = "Really, still here?";
break;
case 0x1D:
v5 = "Fine, press the button";
break;
case 0x1E:
v5 = "Happy now?";
break;
default:
v5 = "Don't touch that!";
break;
}
sub_776584((int)this, v5);
return this;
}