//
// sub_1005C8340 from 0x1005c8340 to 0x1005c8388 (72 bytes)
//
// 12 xrefs:
// > sub_100520EC8 @ 0x100521090
// > sub_1005234DC @ 0x100524588
// > sub_1005CC3A8 @ 0x1005cc530
// > ??> @ 0x10083d860
// > ??> @ 0x10083d8d8
// > ??> @ 0x10083d950
// > ??> @ 0x10083d9c8
// > ??> @ 0x10083da40
// > ??> @ 0x10083dab8
// > ??> @ 0x10083db30
// > ??> @ 0x10083dba8
// > ??> @ 0x10083de00
//
// 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_1005C8340(__int64 a1, const void *a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)
{
__int64 (__fastcall *v6)(__int64, const void *, __int64, __int64, __int64, __int64); // x6
if ( (*(_BYTE *)(a6 + 116) & 0x40) != 0
&& (v6 = *(__int64 (__fastcall **)(__int64, const void *, __int64, __int64, __int64, __int64))(*(_QWORD *)(a6 + 16)
+ 96LL)) != nullptr )
{
return v6(a1, a2, a3, a4, a5, a6);
}
else
{
return sub_1005C7F00(a1, a2, a3, nullptr, nullptr, a4, (unsigned int)a5, a6);
}
}