//
// SecretLayer::getMessage from 0x1006d23d0 to 0x1006d245f (143 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:35:39 +0000
//
std::string *__fastcall SecretLayer::getMessage(std::string *this, _DWORD *a2, double a3)
{
float v4; // [rsp+Ch] [rbp-14h]
if ( a2[107] )
goto LABEL_6;
if ( (int)a2[110] <= 0 )
{
v4 = (float)((float)(int)a2[109] * -0.079999998) + 1.0;
HIDWORD(a3) = 0;
*(float *)&a3 = (float)rand() * 4.6566129e-10;
if ( *(float *)&a3 > v4 )
SecretLayer::selectAThread(a2);
}
if ( a2[107] )
LABEL_6:
SecretLayer::getThreadMessage(this);
else
SecretLayer::getBasicMessage(this, a2, a3);
return this;
}