//
// sub_1004335A8 from 0x1004335a8 to 0x100433604 (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x10084cb00
//
// 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
//
__int64 __fastcall sub_1004335A8(__int64 *a1, int a2, __int128 **a3, int *a4, _BYTE *a5)
{
__int64 v5; // x8
__int128 *v6; // x8
int v7; // w9
int v8; // w9
__int64 result; // x0
v5 = *a1;
if ( a2 == 2 )
{
v8 = *(unsigned __int8 *)(v5 + 3545);
v6 = (__int128 *)(v5 + 536);
if ( v8 )
v6 = &xmmword_10086EEB0;
v7 = 292;
}
else
{
if ( a2 != 1 )
return 31;
v6 = (__int128 *)(v5 + 3548);
v7 = 128;
}
*a3 = v6;
*a4 = v7;
result = 0;
if ( a5 )
*a5 = 0;
return result;
}