//
// sub_57DC8 from 0x57dc8 to 0x57e30 (104 bytes)
//
// 1 xrefs:
// > ??> @ 0x10c5f0
//
// 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_57DC8(__int64 a1, _DWORD *a2)
{
__int64 result; // x0
__int64 v4; // [xsp+8h] [xbp-8h] BYREF
result = (*(__int64 (__fastcall **)(__int64, __int64, __int64 *))(*(_QWORD *)a1 + 288LL))(a1, 4294967294LL, &v4);
if ( !(_DWORD)result )
{
result = sub_C7E90(v4, 0, a2, 0);
if ( !(_DWORD)result )
{
result = 0;
if ( !*a2 )
*a2 = 1;
}
}
return result;
}