//
// SecretLayer4::getMessage from 0x4f0df8 to 0x4f0e50 (88 bytes)
//
// 2 xrefs:
// > SecretLayer4::onSubmit @ 0x4f153a
// > SecretLayer4::init @ 0x4f1d12
//
// 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
//
SecretLayer4 *__fastcall SecretLayer4::getMessage(SecretLayer4 *this, SecretLayer4 *a2)
{
if ( !a2->m_selectedThread
&& vcvts_n_f32_s32(rand(), 0x1Fu) > (float)(1.0 - (float)((float)a2->m_basicMessageCount * 0.05)) )
{
SecretLayer4::selectAThread(a2);
}
if ( a2->m_selectedThread )
SecretLayer4::getThreadMessage(this, a2);
else
SecretLayer4::getBasicMessage(this, (int)a2);
return this;
}