//
// sub_1005C0EA4 from 0x1005c0ea4 to 0x1005c0f20 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x100839e40
//
// 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_1005C0EA4(__int64 a1, unsigned __int64 a2, __int64 a3, __int64 a4)
{
__int64 v8; // x23
if ( !a2 )
return 1;
v8 = 0;
while ( (*(unsigned int (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 216LL))(
a1,
*(_QWORD *)(a3 + 8 * v8),
a4) )
{
if ( ++v8 >= a2 )
return 1;
}
return 0;
}