//
// sub_1005E5458 from 0x1005e5458 to 0x1005e54c8 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x10083bbb0
//
// 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_1005E5458(__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_10059E870((unsigned int *)(a3 + v8), (_BYTE *)(a2 + v8), *(_QWORD *)(a1 + 120), *(_DWORD *)(a1 + 16));
v8 += v7;
}
while ( v8 <= v9 );
}
return 1;
}