//
// sub_1005AD0D0 from 0x1005ad0d0 to 0x1005ad174 (164 bytes)
//
// 5 xrefs:
// > sub_1005B8DEC @ 0x1005b8f78
// > sub_100619054 @ 0x100619120
// > sub_10061952C @ 0x100619658
// > sub_1006253B4 @ 0x100625614
// > sub_10062DC50 @ 0x10062de04
//
// 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_1005AD0D0(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
__int64 (__fastcall *v8)(__int64, __int64, __int64); // x3
if ( !(unsigned int)sub_1005A87F0(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);
}