//
// sub_1005931C4 from 0x1005931c4 to 0x100593268 (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008387e0
//
// 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_1005931C4(__int64 *a1, int a2, int a3, char *__s)
{
__int64 *v5; // x0
__int64 v6; // x8
v5 = (__int64 *)a1[5];
if ( a2 == 1 )
{
*v5 = (__int64)__s;
return 1;
}
if ( a2 == 7 )
return (unsigned int)sub_10059295C(
v5 + 4,
*(const void **)(*(_QWORD *)(a1[2] + 32) + 8LL),
**(_DWORD **)(a1[2] + 32),
*v5,
a1[1]) != 0;
if ( a2 != 6 )
return 4294967294LL;
v6 = 0;
if ( a3 >= -1 && (a3 <= 0 || __s != nullptr) )
return (unsigned int)sub_1005F0254((int)v5 + 8, __s) != 0;
return v6;
}