//
// SecretLayer::getBasicMessage from 0x100465f78 to 0x100465ff8 (128 bytes)
//
// 2 xrefs:
// > sub_100464888 @ 0x100464918
// > sub_100464B28 @ 0x100465750
//
// 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 11:05:32 +0000
//
_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_10096A9C8[v5];
return sub_100009900(a2, v6);
}