//
// sub_1004E65EC from 0x1004e65ec to 0x1004e6644 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x100828e60
//
// 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_1004E65EC(__int64 a1, __int64 a2, __int64 a3, _QWORD *a4, __int64 a5, int a6)
{
__int64 v6; // x9
__int64 v7; // x8
if ( a6 < 1 )
return 0;
v6 = 0;
v7 = 0;
do
{
if ( *(_DWORD *)(a5 + 4 * v6) )
{
a4[(int)v7] = a4[v6];
v7 = (unsigned int)(v7 + 1);
}
++v6;
}
while ( a6 != v6 );
if ( (_DWORD)v7 )
return sub_1004E60E0(
a1,
a2,
a3,
a4,
v7,
(unsigned int (__fastcall *)(__int64, __int64, __int64, _QWORD))sub_10042E8E8);
else
return 0;
}