//
// sub_1005E5A70 from 0x1005e5a70 to 0x1005e5af0 (128 bytes)
//
// 10 xrefs:
// > ??> @ 0x10083bd90
// > ??> @ 0x10083bde8
// > ??> @ 0x10083be40
// > ??> @ 0x10083be98
// > ??> @ 0x10083bef0
// > ??> @ 0x10083bf48
// > ??> @ 0x10083bfa0
// > ??> @ 0x10083bff8
// > ??> @ 0x10083c050
// > ??> @ 0x10083c0a8
//
// 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_1005E5A70(__int64 a1, int a2, __int64 a3, unsigned __int8 *a4)
{
if ( a2 != 6 )
return 0xFFFFFFFFLL;
if ( (int)sub_1005E01C8((__int64)a4, *(unsigned int *)(a1 + 104)) < 1 )
return 0;
sub_1005960EC(a4);
if ( *(int *)(a1 + 104) >= 16 )
{
sub_1005960EC(a4 + 8);
if ( *(int *)(a1 + 104) >= 24 )
sub_1005960EC(a4 + 16);
}
return 1;
}