//
// SecretLayer4::getMessage from 0x948bd0 to 0x948c70 (160 bytes)
//
// 3 xrefs:
// > SecretLayer4::onSubmit @ 0x9493c0
// > SecretLayer4::init @ 0x94ab84
// > ??> @ 0xbbf50
//
// 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::getMessage@(SecretLayer4 *this@, __int64 a2@)
{
int m_basicMessageCount; // w21
if ( this->m_selectedThread )
goto LABEL_2;
m_basicMessageCount = this->m_basicMessageCount;
if ( (float)(1.0 - (float)((float)m_basicMessageCount * 0.05)) < (float)((float)rand() * 4.6566e-10) )
SecretLayer4::selectAThread(this);
if ( this->m_selectedThread )
{
LABEL_2:
SecretLayer4::getThreadMessage(this, a2);
return a2;
}
else
{
SecretLayer4::getBasicMessage(this, a2);
return a2;
}
}