//
// sub_1005BA42C from 0x1005ba42c to 0x1005ba478 (76 bytes)
//
// 2 xrefs:
// > ??> @ 0x1008389b0
// > ??> @ 0x100838ae0
//
// 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_1005BA42C(__int64 a1, __int64 a2)
{
if ( (unsigned int)sub_1005B872C(a1, (_QWORD *)a2) || !*(_DWORD *)(a2 + 40) )
return 1;
else
return sub_1005A889C(a2 + 32, (__int64 *)(a1 + 104), (__int64 *)(a2 + 32));
}