//
// SecretLayer::getMessage from 0x4ca458 to 0x4ca4b8 (96 bytes)
//
// 2 xrefs:
// > SecretLayer::onSubmit @ 0x4caff6
// > SecretLayer::init @ 0x4cb62e
//
// 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
//
SecretLayer *__fastcall SecretLayer::getMessage(SecretLayer *this, SecretLayer *a2)
{
if ( !a2->m_selectedThread
&& a2->m_doomedIndex <= 0
&& vcvts_n_f32_s32(rand(), 0x1Fu) > (float)(1.0 - (float)((float)a2->m_basicMessageCount * 0.08)) )
{
SecretLayer::selectAThread(a2);
}
if ( a2->m_selectedThread )
SecretLayer::getThreadMessage(this, a2);
else
SecretLayer::getBasicMessage(this, (int)a2);
return this;
}