//
// sub_1005F04C8 from 0x1005f04c8 to 0x1005f0540 (120 bytes)
//
// 1 xrefs:
// > sub_10060425C @ 0x10060427c
//
// 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_1005F04C8(
__int64 a1,
__int64 (__fastcall *a2)(__int64, __int64 *, _QWORD),
__int64 a3,
__int64 a4)
{
int v6; // w0
__int64 v7; // x22
void *v8; // x21
__int64 v10; // [xsp+0h] [xbp-30h] BYREF
void *v11; // [xsp+8h] [xbp-28h] BYREF
v11 = nullptr;
v6 = sub_1005F0540(a3, &v11);
v7 = 0;
v8 = v11;
if ( (v6 & 0x80000000) == 0 )
{
v10 = *((_QWORD *)v11 + 1);
v7 = a2(a4, &v10, v6);
}
if ( v8 )
sub_1005D9DF8(v8);
return v7;
}