//
// sub_10070CEA8 from 0x10070cea8 to 0x10070cf18 (112 bytes)
//
// 3 xrefs:
// > ??> @ 0x1009bfed8
// > ??> @ 0x1009c0140
// > ??> @ 0x1009c03a8
//
// 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:12:55 +0000
//
__int64 __fastcall sub_10070CEA8(_QWORD *a1, __int64 a2, __int64 a3, unsigned __int64 a4)
{
unsigned __int64 v6; // x22
unsigned __int64 v7; // x23
__int64 v8; // x21
unsigned __int64 v9; // x24
v6 = *(int *)(*a1 + 4LL);
if ( v6 <= a4 )
{
v7 = 0;
v8 = a1[15];
v9 = a4 - v6;
do
{
(*(void (__fastcall **)(unsigned __int64, unsigned __int64, __int64))(v8 + 248))(a3 + v7, a2 + v7, v8);
v7 += v6;
}
while ( v7 <= v9 );
}
return 1;
}