//
// sub_1005E5D00 from 0x1005e5d00 to 0x1005e5d78 (120 bytes)
//
// 2 xrefs:
// > ??> @ 0x10083be70
// > ??> @ 0x10083bfd0
//
// 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_1005E5D00(__int64 a1, __int64 a2, __int64 a3, unsigned __int64 a4)
{
unsigned __int64 v7; // x22
unsigned __int64 v8; // x23
unsigned __int64 v9; // x24
v7 = *(int *)(*(_QWORD *)a1 + 4LL);
if ( v7 <= a4 )
{
v8 = 0;
v9 = a4 - v7;
do
{
sub_1005966B0(
(unsigned __int8 *)(a3 + v8),
a2 + v8,
*(_QWORD *)(a1 + 120),
*(_QWORD *)(a1 + 120) + 128LL,
*(_QWORD *)(a1 + 120) + 256LL,
*(_DWORD *)(a1 + 16));
v8 += v7;
}
while ( v8 <= v9 );
}
return 1;
}