//
// sub_1005AD3D8 from 0x1005ad3d8 to 0x1005ad438 (96 bytes)
//
// 9 xrefs:
// > sub_1005AF320 @ 0x1005af52c
// > sub_1005AF320 @ 0x1005af840
// > sub_1005AF320 @ 0x1005af8c0
// > sub_1005AF320 @ 0x1005af958
// > sub_1005AF320 @ 0x1005af9e0
// > sub_1005B8DEC @ 0x1005b8f04
// > sub_1005B8DEC @ 0x1005b8f4c
// > sub_1005B9558 @ 0x1005b9694
// > sub_1005C453C @ 0x1005c4608
//
// 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_1005AD3D8(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
if ( (unsigned int)sub_1005B12FC(a1, a2, a4) )
return sub_1005A8CB4(0, a1, a1, a3, a4);
else
return 0;
}