//
// sub_1005CA408 from 0x1005ca408 to 0x1005ca484 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x10083a458
//
// 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_1005CA408(__int64 a1, __int64 a2)
{
__int64 v3; // x20
char **v4; // x0
void *v6; // [xsp+8h] [xbp-18h] BYREF
v6 = nullptr;
v3 = sub_1005CA2F4(*(_QWORD *)(a2 + 32), (__int64)&v6);
if ( (int)v3 >= 1 )
{
v4 = sub_10058AB9C(6u);
if ( (unsigned int)sub_1005F2DF0(a1, v4, 5, 0, v6, v3) )
return 1;
sub_100588C44(v6);
}
return 0;
}