//
// SecretLayer::getBasicMessage from 0x903740 to 0x903bb4 (1140 bytes)
//
// 3 xrefs:
// > SecretLayer::getMessage @ 0x903bf0
// > SecretLayer::onSubmit @ 0x905b1c
// > ??> @ 0xa29f0
//
// 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
//
__int64 __usercall SecretLayer::getBasicMessage@(SecretLayer *this@, __int64 a2@)
{
char v2; // cf
char v3; // zf
int m_basicMessageCount; // w1
int m_basicMessageIndex; // w0
int v7; // w0
__int64 v8; // x8
int v10; // w0
__int64 v11; // [xsp+28h] [xbp+28h]
__int64 v12; // [xsp+28h] [xbp+28h]
__int64 v13; // [xsp+28h] [xbp+28h]
__int64 v14; // [xsp+28h] [xbp+28h]
__int64 v15; // [xsp+28h] [xbp+28h]
__int64 v16; // [xsp+28h] [xbp+28h]
__int64 v17; // [xsp+28h] [xbp+28h]
__int64 v18; // [xsp+28h] [xbp+28h]
__int64 v19; // [xsp+28h] [xbp+28h]
__int64 v20; // [xsp+28h] [xbp+28h]
__int64 v21; // [xsp+28h] [xbp+28h]
__int64 v22; // [xsp+28h] [xbp+28h]
__int64 v23; // [xsp+28h] [xbp+28h]
__int64 v24; // [xsp+28h] [xbp+28h]
__int64 v25; // [xsp+28h] [xbp+28h]
__int64 v26; // [xsp+28h] [xbp+28h]
__int64 v27; // [xsp+28h] [xbp+28h]
__int64 v28; // [xsp+28h] [xbp+28h]
__int64 v29; // [xsp+28h] [xbp+28h]
__int64 v30; // [xsp+28h] [xbp+28h]
__int64 v31; // [xsp+28h] [xbp+28h]
__int64 v32; // [xsp+28h] [xbp+28h]
__int64 v33; // [xsp+28h] [xbp+28h]
__int64 v34; // [xsp+28h] [xbp+28h]
__int64 v35; // [xsp+28h] [xbp+28h]
__int64 v36; // [xsp+28h] [xbp+28h]
__int64 v37; // [xsp+28h] [xbp+28h]
__int64 v38; // [xsp+28h] [xbp+28h]
__int64 v39; // [xsp+28h] [xbp+28h]
__int64 v40; // [xsp+28h] [xbp+28h]
__int64 v41; // [xsp+28h] [xbp+28h]
m_basicMessageCount = this->m_basicMessageCount;
m_basicMessageIndex = this->m_basicMessageIndex;
this->m_basicMessageCount = m_basicMessageCount + 1;
if ( m_basicMessageIndex < 0 )
{
v13 = a2;
v10 = rand();
a2 = v13;
v7 = llroundf((float)((float)v10 * 4.6566e-10) * 10.0);
}
else
{
v7 = m_basicMessageIndex + 1;
}
this->m_basicMessageIndex = v7;
if ( !v3 & v2 )
{
LABEL_8:
v12 = a2;
sub_D153B8(a2, "Don't touch that!");
return v12;
}
else
{
switch ( v7 )
{
case 0:
goto LABEL_4;
case 1:
v16 = a2;
sub_D153B8(a2, "What are you poking around for?");
return v16;
case 2:
v17 = a2;
sub_D153B8(a2, "Don't you have better things to do?");
return v17;
case 3:
v18 = a2;
sub_D153B8(a2, "There is no spoon");
return v18;
case 4:
v19 = a2;
sub_D153B8(a2, "Go away!");
return v19;
case 5:
v20 = a2;
sub_D153B8(a2, "I should have hid this room better...");
return v20;
case 6:
v21 = a2;
sub_D153B8(a2, "You're not supposed to be in here...");
return v21;
case 7:
v22 = a2;
sub_D153B8(a2, "RubRub won't like this...");
return v22;
case 8:
v23 = a2;
sub_D153B8(a2, "zzzZZZZ...");
return v23;
case 9:
goto LABEL_8;
case 10:
v24 = a2;
sub_D153B8(a2, "Why U touch my stuff?");
return v24;
case 11:
v25 = a2;
sub_D153B8(a2, "RubRub better not find you in here...");
return v25;
case 12:
v26 = a2;
sub_D153B8(a2, "Can't you just leave?");
return v26;
case 13:
v27 = a2;
sub_D153B8(a2, "This is not the room you are looking for...");
return v27;
case 14:
v28 = a2;
sub_D153B8(a2, "Sneaky sneaky...");
return v28;
case 15:
v29 = a2;
sub_D153B8(a2, "It's my precious...");
return v29;
case 16:
v30 = a2;
sub_D153B8(a2, "You shall not pass!");
return v30;
case 17:
v31 = a2;
sub_D153B8(a2, "Don't push the button!");
return v31;
case 18:
v32 = a2;
sub_D153B8(a2, "You're gonna get me in trouble...");
return v32;
case 19:
v33 = a2;
sub_D153B8(a2, "This is getting ridiculus...");
return v33;
case 20:
v34 = a2;
sub_D153B8(a2, "Go collect some stars");
return v34;
case 21:
v35 = a2;
sub_D153B8(a2, "Maybe there are new levels?");
return v35;
case 22:
v36 = a2;
sub_D153B8(a2, "Just, stop bothering me");
return v36;
case 23:
v37 = a2;
sub_D153B8(a2, "I'm gonna stop talking");
return v37;
case 24:
v38 = a2;
sub_D153B8(a2, "...");
return v38;
case 25:
v39 = a2;
sub_D153B8(a2, "......");
return v39;
case 26:
v40 = a2;
sub_D153B8(a2, "GAH!");
return v40;
case 27:
v41 = a2;
sub_D153B8(a2, "You're hopeless...");
return v41;
case 28:
v14 = a2;
sub_D153B8(a2, "Really, still here?");
return v14;
case 29:
v15 = a2;
sub_D153B8(a2, "Fine, press the button");
return v15;
default:
this->m_basicMessageIndex = 0;
LABEL_4:
v11 = a2;
sub_D153B8(a2, "How did you get in here?!");
v8 = v11;
break;
}
}
return v8;
}