//
// sub_10052FA38 from 0x10052fa38 to 0x10052fae0 (168 bytes)
//
// 2 xrefs:
// > ??> @ 0x10082a960
// > ??> @ 0x10082aa48
//
// 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_10052FA38(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // x0
*__error() = 0;
if ( (sub_10053ED1C(a1) & 0x3000) == 0 || *(_DWORD *)(a1 + 44) )
{
sub_10053DEB0(a1);
return 0xFFFFFFFFLL;
}
result = (*(__int64 (__fastcall **)(__int64))(a1 + 48))(a1);
if ( (result & 0x80000000) == 0 )
{
if ( (_DWORD)result )
return sub_10053EBDC(a1, a2, a3);
sub_1005E0E48(20, 237, 229, "s23_lib.c", 157);
return 0xFFFFFFFFLL;
}
return result;
}