//
// sub_100593144 from 0x100593144 to 0x1005931c4 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x100838798
//
// 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_100593144(__int64 a1, __int64 a2, _QWORD *a3, __int64 a4)
{
__int64 v6; // x21
__int64 v7; // x0
int v8; // w0
unsigned int v10; // [xsp+Ch] [xbp-24h] BYREF
v6 = *(_QWORD *)(a1 + 40);
v7 = sub_1005EB2E8(a4);
v8 = sub_1005EB2A8(v7);
if ( v8 < 0 )
return 0;
*a3 = v8;
if ( !a2 )
return 1;
if ( sub_100592C0C((_QWORD *)(v6 + 32), a2, (__int64)&v10) )
{
*a3 = v10;
return 1;
}
return 0;
}