//
// SecretLayer2::getMessage from 0xa90154 to 0xa901f4 (160 bytes)
//
// 3 xrefs:
// > SecretLayer2::init @ 0xa90610
// > SecretLayer2::onSubmit @ 0xa912d8
// > ??> @ 0x92338
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:00:39 +0000
//
__int64 *__usercall SecretLayer2::getMessage@(SecretLayer2 *this@, __int64 *a2@)
{
int v4; // w21
if ( *((_DWORD *)this + 110) )
goto LABEL_2;
v4 = *((_DWORD *)this + 112);
if ( (float)(1.0 - (float)((float)v4 * 0.05)) < (float)((float)rand() * 4.6566e-10) )
SecretLayer2::selectAThread(this);
if ( *((_DWORD *)this + 110) )
{
LABEL_2:
SecretLayer2::getThreadMessage(this, (__int64)a2);
return a2;
}
else
{
SecretLayer2::getBasicMessage(this, a2);
return a2;
}
}