//
// SecretLayer2::getMessage from 0x940bd8 to 0x940c78 (160 bytes)
//
// 3 xrefs:
// > SecretLayer2::init @ 0x94260c
// > SecretLayer2::onSubmit @ 0x94339c
// > ??> @ 0x6c390
//
// 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 SecretLayer2::getMessage@(SecretLayer2 *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) )
SecretLayer2::selectAThread(this);
if ( this->m_selectedThread )
{
LABEL_2:
SecretLayer2::getThreadMessage(this, a2);
return a2;
}
else
{
SecretLayer2::getBasicMessage(this, a2);
return a2;
}
}