//
// sub_1005AD438 from 0x1005ad438 to 0x1005ad494 (92 bytes)
//
// 9 xrefs:
// > sub_1005AF320 @ 0x1005af4e0
// > sub_1005B9888 @ 0x1005b9d94
// > sub_1005B9EFC @ 0x1005b9fe8
// > sub_1005B9EFC @ 0x1005ba0b4
// > sub_1005B9EFC @ 0x1005ba11c
// > sub_1005B9EFC @ 0x1005ba21c
// > sub_1005B9EFC @ 0x1005ba28c
// > sub_1005BA488 @ 0x1005ba62c
// > sub_1005C453C @ 0x1005c46a0
//
// 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_1005AD438(__int64 a1, __int64 a2, __int64 a3)
{
if ( !(unsigned int)sub_1005AE1E4() )
return 0;
if ( (sub_1005AB460(a1, a3) & 0x80000000) != 0 )
return 1;
return sub_1005A8BA8(a1, a1, a3);
}