//
// sub_1006BAFC8 from 0x1006bafc8 to 0x1006bb068 (160 bytes)
//
// 1 xrefs:
// > sub_10070F12C @ 0x10070f130
//
// 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:09 +0000
//
__int64 __fastcall sub_1006BAFC8(int a1, char *__src, unsigned __int64 a3)
{
unsigned __int64 v3; // x20
char *v4; // x22
unsigned __int64 v6; // x23
unsigned __int64 v7; // x25
char *v8; // x21
v3 = a3;
v4 = __src;
if ( a3 >> 60 )
{
v6 = a3 - 0x1000000000000000LL;
v7 = (a3 - 0x1000000000000000LL) & 0xF000000000000000LL;
v8 = &__src[v7 + 0x1000000000000000LL];
do
{
sub_1006BB068(a1, v4);
v3 -= 0x1000000000000000LL;
v4 += 0x1000000000000000LL;
}
while ( v3 >> 60 );
v3 = v6 - v7;
}
else
{
v8 = __src;
}
if ( v3 )
sub_1006BB068(a1, v8);
return 1;
}