//
// SecretLayer::getMessage from 0x903bb8 to 0x903c60 (168 bytes)
//
// 3 xrefs:
// > SecretLayer::onSubmit @ 0x904398
// > SecretLayer::init @ 0x906144
// > ??> @ 0x9be38
//
// 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::getMessage@(SecretLayer *this@, __int64 a2@)
{
int m_basicMessageCount; // w21
if ( this->m_selectedThread )
goto LABEL_7;
if ( this->m_doomedIndex > 0 )
goto LABEL_3;
m_basicMessageCount = this->m_basicMessageCount;
if ( (float)(1.0 - (float)((float)m_basicMessageCount * 0.08)) < (float)((float)rand() * 4.6566e-10) )
SecretLayer::selectAThread(this);
if ( this->m_selectedThread )
{
LABEL_7:
SecretLayer::getThreadMessage(this, a2);
return a2;
}
else
{
LABEL_3:
SecretLayer::getBasicMessage(this, a2);
return a2;
}
}