//
// sub_100570220 from 0x100570220 to 0x10057027c (92 bytes)
//
// 3 xrefs:
// > sub_1005CEFC0 @ 0x1005cefd4
// > sub_1005CEFC0 @ 0x1005cefd0
// > ??> @ 0x1009da5d0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:08:17 +0000
//
__int64 *__fastcall sub_100570220(__int64 *result, __int64 a2, int a3, int a4)
{
unsigned int v4; // w8
__int64 i; // x9
__int64 v6; // x12
__int64 *v7; // x13
unsigned int v8; // w14
__int64 v9; // t1
if ( a4 )
{
v4 = 0;
for ( i = 0; i != a4; ++i )
{
v6 = (unsigned int)a3;
v7 = result;
v8 = v4;
if ( a3 >= 1 )
{
do
{
v9 = *v7++;
*(_DWORD *)(a2 + 4LL * v8++) = *(_DWORD *)(v9 + 4 * i);
--v6;
}
while ( v6 );
}
v4 += a3;
}
}
return result;
}