//
// sub_1005AD1D0 from 0x1005ad1d0 to 0x1005ad274 (164 bytes)
//
// 2 xrefs:
// > sub_1005D170C @ 0x1005d18d8
// > sub_10061952C @ 0x10061961c
//
// 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_1005AD1D0(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
__int64 (__fastcall *v8)(__int64, __int64, __int64); // x3
if ( !(unsigned int)sub_1005A8BA8(a1, a2, a3) )
return 0;
if ( !(unsigned int)sub_1005A8CB4(0, a1, a1, a4, a5) )
return 0;
if ( !*(_DWORD *)(a1 + 16) )
return 1;
if ( *(_DWORD *)(a4 + 16) )
v8 = sub_1005A8BA8;
else
v8 = sub_1005A87F0;
return v8(a1, a1, a4);
}