//
// sub_5924C from 0x5924c to 0x592f0 (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x10c4d0
//
// 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_5924C(_QWORD *a1, _QWORD *a2, _QWORD *a3)
{
__int64 result; // x0
_QWORD *v7; // x0
__int64 v8; // [xsp+8h] [xbp-18h] BYREF
if ( a2 )
{
result = (*(__int64 (__fastcall **)(_QWORD *, __int64, __int64 *))(*a1 + 288LL))(a1, 4294967293LL, &v8);
if ( (_DWORD)result )
return result;
*a2 = *(_QWORD *)(v8 + 16);
}
if ( !a3 )
return 0;
v7 = (_QWORD *)a1[4];
v8 = 0;
if ( !v7 )
v7 = a1;
result = sub_59358(v7, 4294967293LL, &v8);
if ( !(_DWORD)result )
{
*a3 = *(_QWORD *)(v8 + 16);
return 0;
}
return result;
}