//
// SecretLayer2::getMessage from 0x4eca44 to 0x4eca9c (88 bytes)
//
// 2 xrefs:
// > SecretLayer2::onSubmit @ 0x4ed52c
// > SecretLayer2::init @ 0x4ee95c
//
// 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
//
SecretLayer2 *__fastcall SecretLayer2::getMessage(SecretLayer2 *this, SecretLayer2 *a2, char *a3)
{
if ( !a2->m_selectedThread
&& vcvts_n_f32_s32(rand(), 0x1Fu) > (float)(1.0 - (float)((float)a2->m_basicMessageCount * 0.05)) )
{
SecretLayer2::selectAThread(a2);
}
if ( a2->m_selectedThread )
SecretLayer2::getThreadMessage(this, a2);
else
SecretLayer2::getBasicMessage(this, (int)a2, a3, nullptr);
return this;
}