//
// SecretLayer::getMessage from 0xa60210 to 0xa602b8 (168 bytes)
//
// 3 xrefs:
// > SecretLayer::onSubmit @ 0xa605ac
// > SecretLayer::init @ 0xa61a74
// > ??> @ 0xcd5b8
//
// 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:14 +0000
//
__int64 *__usercall SecretLayer::getMessage@(SecretLayer *this@, __int64 *a2@)
{
int v4; // w21
if ( *((_DWORD *)this + 107) )
goto LABEL_7;
if ( *((int *)this + 110) > 0 )
goto LABEL_3;
v4 = *((_DWORD *)this + 109);
if ( (float)(1.0 - (float)((float)v4 * 0.08)) < (float)((float)rand() * 4.6566e-10) )
SecretLayer::selectAThread(this);
if ( *((_DWORD *)this + 107) )
{
LABEL_7:
SecretLayer::getThreadMessage(this, (__int64)a2);
return a2;
}
else
{
LABEL_3:
SecretLayer::getBasicMessage(this, a2);
return a2;
}
}