//
// sub_10070B7E0 from 0x10070b7e0 to 0x10070b880 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009bf2d0
//
// 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:54 +0000
//
__int64 __fastcall sub_10070B7E0(__int64 a1, _BYTE *a2, unsigned __int64 *a3, unsigned __int64 a4)
{
__int64 v4; // x19
unsigned __int64 v8; // x25
unsigned __int64 v9; // x8
v4 = a4;
if ( a4 )
{
if ( a4 >> 62 )
v8 = 0x4000000000000000LL;
else
v8 = a4;
do
{
sub_1006C40A0(
a3,
a2,
v4,
*(unsigned int **)(a1 + 120),
(unsigned __int8 *)(a1 + 40),
(int *)(a1 + 88),
*(_DWORD *)(a1 + 16));
v9 = v4 - v8;
if ( v4 - v8 >= v8 )
v9 = v8;
v4 -= v8;
a3 = (unsigned __int64 *)((char *)a3 + v8);
a2 += v8;
v8 = v9;
}
while ( v4 );
}
return 1;
}