//
// sub_1006228DC from 0x1006228dc to 0x1006229a8 (204 bytes)
//
// 2 xrefs:
// > ??> @ 0x100868f60
// > ??> @ 0x100868f78
//
// 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
//
bool __fastcall sub_1006228DC(__int64 a1, __int64 a2)
{
int v2; // w19
int v4; // w0
_DWORD v5[6]; // [xsp+0h] [xbp-60h] BYREF
__int64 v6; // [xsp+18h] [xbp-48h]
__int128 v7; // [xsp+20h] [xbp-40h]
__int128 v8; // [xsp+30h] [xbp-30h]
v7 = xmmword_100680BD4;
v8 = xmmword_100680BE4;
strcpy((char *)v5, "ENGINE_rand_bytes");
HIWORD(v5[4]) = unk_100680BC6;
v5[5] = unk_100680BC8;
v6 = unk_100680BCC;
if ( off_100885B88 )
{
v2 = off_100885B88(v5, a1, a2);
sub_100622264((const char *)v5, 108, v2);
return v2 == 1;
}
else
{
v4 = dword_100885B54;
if ( !dword_100885B54 )
{
v4 = sub_1005E197C();
dword_100885B54 = v4;
}
sub_1005E0E48(v4, 108, 117, (__int64)"e_sureware.c", 659);
return 0;
}
}