//
// sub_1005D8DF0 from 0x1005d8df0 to 0x1005d8e70 (128 bytes)
//
// 1 xrefs:
// > sub_1005D8078 @ 0x1005d8124
//
// 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_1005D8DF0(__int64 a1)
{
__int64 (__fastcall *v2)(__int64, _QWORD, _DWORD **, _QWORD); // x8
int v3; // w8
_DWORD *v5; // [xsp+8h] [xbp-18h] BYREF
v2 = *(__int64 (__fastcall **)(__int64, _QWORD, _DWORD **, _QWORD))(a1 + 96);
if ( !v2 )
return 1;
v3 = v2(a1, 0, &v5, 0);
if ( v3 < 1 )
return 1;
else
return sub_1005D7928(&qword_100882D78, (__int64)sub_1005D8DE4, a1, v5, v3, 1);
}