//
// SecretLayer::getBasicMessage from 0x1003bf248 to 0x1003bf2c8 (128 bytes)
//
// 2 xrefs:
// > SecretLayer::getMessage @ 0x1003bdbe8
// > SecretLayer::onSubmit @ 0x1003bea20
//
// 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
//
_QWORD *__usercall SecretLayer::getBasicMessage@(__int64 a1@, _QWORD *a2@)
{
int v4; // w8
int v5; // w8
char *v6; // x1
++*(_DWORD *)(a1 + 436);
v4 = *(_DWORD *)(a1 + 424);
if ( v4 < 0 )
v5 = llroundf(vcvts_n_f32_s32(rand(), 0x1Fu) * 10.0);
else
v5 = v4 + 1;
if ( v5 > 29 )
v5 = 0;
*(_DWORD *)(a1 + 424) = v5;
if ( (unsigned int)v5 > 0x1E )
v6 = "Don't touch that!";
else
v6 = off_100811880[v5];
return sub_100009900(a2, v6);
}