//
// SecretLayer4::getBasicMessage from 0x9488b8 to 0x948bcc (788 bytes)
//
// 2 xrefs:
// > SecretLayer4::getMessage @ 0x948c4c
// > ??> @ 0x73e78
//
// 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 SecretLayer4::getBasicMessage@(SecretLayer4 *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]
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) * 20.0);
}
else
{
v7 = m_basicMessageIndex + 1;
}
this->m_basicMessageIndex = v7;
if ( !v3 & v2 )
{
LABEL_8:
v12 = a2;
sub_D153B8(a2, "...");
return v12;
}
else
{
switch ( v7 )
{
case 0:
goto LABEL_4;
case 1:
v16 = a2;
sub_D153B8(a2, "Leave this place");
return v16;
case 2:
v17 = a2;
sub_D153B8(a2, "You are not welcome here");
return v17;
case 3:
v18 = a2;
sub_D153B8(a2, "None shall pass");
return v18;
case 4:
v19 = a2;
sub_D153B8(a2, "You test my patience");
return v19;
case 5:
case 8:
case 17:
goto LABEL_8;
case 6:
v20 = a2;
sub_D153B8(a2, "How long will you keep this up?");
return v20;
case 7:
v21 = a2;
sub_D153B8(a2, "Don't you have other things to do?");
return v21;
case 9:
v23 = a2;
sub_D153B8(a2, "Gah I can't stand this anymore!");
return v23;
case 10:
v24 = a2;
sub_D153B8(a2, "The smell, it's killing me");
return v24;
case 11:
v25 = a2;
sub_D153B8(a2, "Can you smell it?");
return v25;
case 12:
v26 = a2;
sub_D153B8(a2, "Chicken, burning chicken");
return v26;
case 13:
v27 = a2;
sub_D153B8(a2, "El pollo ardiente...");
return v27;
case 14:
v28 = a2;
sub_D153B8(a2, "Ok, playtime is over");
return v28;
case 15:
v29 = a2;
sub_D153B8(a2, "Tick tock");
return v29;
case 16:
v30 = a2;
sub_D153B8(a2, "Time is running out");
return v30;
case 18:
v14 = a2;
sub_D153B8(a2, "Really? Still here?");
return v14;
case 19:
v22 = a2;
sub_D153B8(a2, "This is my first conversation in 1000 years");
return v22;
case 20:
v15 = a2;
sub_D153B8(a2, "Not what I was hoping for...");
return v15;
default:
this->m_basicMessageIndex = 0;
LABEL_4:
v11 = a2;
sub_D153B8(a2, "Why have I been awoken?");
v8 = v11;
break;
}
}
return v8;
}