//
// sub_1005AD274 from 0x1005ad274 to 0x1005ad2c8 (84 bytes)
//
// 11 xrefs:
// > sub_1005B9888 @ 0x1005b9b6c
// > sub_1005B9888 @ 0x1005b9b84
// > sub_1005B9888 @ 0x1005b9d80
// > sub_1005B9888 @ 0x1005b9dac
// > sub_1005B9888 @ 0x1005b9e1c
// > sub_1005B9EFC @ 0x1005ba084
// > sub_1005B9EFC @ 0x1005ba2c4
// > sub_1005B9EFC @ 0x1005ba310
// > sub_1005B9EFC @ 0x1005ba348
// > sub_1005BA488 @ 0x1005ba65c
// > sub_1005C453C @ 0x1005c46d0
//
// 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_1005AD274(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
if ( !(unsigned int)sub_1005A8BA8(a1, a2, a3) )
return 0;
if ( *(_DWORD *)(a1 + 16) )
return sub_1005A87F0(a1, a1, a4);
return 1;
}