//
// sub_1006229A8 from 0x1006229a8 to 0x100622a64 (188 bytes)
//
// 1 xrefs:
// > ??> @ 0x100868f70
//
// 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
//
void __fastcall sub_1006229A8(__int64 a1, __int64 a2)
{
int v2; // w0
int v3; // w0
_DWORD v4[6]; // [xsp+0h] [xbp-60h] BYREF
__int64 v5; // [xsp+18h] [xbp-48h]
__int128 v6; // [xsp+20h] [xbp-40h]
__int128 v7; // [xsp+30h] [xbp-30h]
v6 = xmmword_100680B94;
v7 = xmmword_100680BA4;
strcpy((char *)v4, "ENGINE_rand_seed");
BYTE1(v4[4]) = unk_100680B85;
HIWORD(v4[4]) = unk_100680B86;
v4[5] = unk_100680B88;
v5 = unk_100680B8C;
if ( off_100885B80 )
{
v2 = off_100885B80(v4, a1, a2);
sub_100622264((const char *)v4, 109, v2);
}
else
{
v3 = dword_100885B54;
if ( !dword_100885B54 )
{
v3 = sub_1005E197C();
dword_100885B54 = v3;
}
sub_1005E0E48(v3, 109, 117, (__int64)"e_sureware.c", 673);
}
}