//
// SecretLayer4::getMessage from 0xa961a0 to 0xa96240 (160 bytes)
//
// 3 xrefs:
// > SecretLayer4::onSubmit @ 0xa964ac
// > SecretLayer4::init @ 0xa971b0
// > ??> @ 0xf5170
//
// 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:43 +0000
//
__int64 *__usercall SecretLayer4::getMessage@(SecretLayer4 *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) )
SecretLayer4::selectAThread(this);
if ( *((_DWORD *)this + 110) )
{
LABEL_2:
SecretLayer4::getThreadMessage(this, (__int64)a2);
return a2;
}
else
{
SecretLayer4::getBasicMessage(this, a2);
return a2;
}
}