//
// sub_1006F87E4 from 0x1006f87e4 to 0x1006f8874 (144 bytes)
//
// 1 xrefs:
// > sub_1006FACAC @ 0x1006fad4c
//
// 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:44 +0000
//
__int64 __fastcall sub_1006F87E4(char *a1, __int64 a2, __int64 a3)
{
__int64 v5; // x0
int v6; // w21
__int64 v7; // x20
int v8; // w0
int v9; // w8
int v10; // w8
size_t v11; // x22
v5 = (*(__int64 (**)(void))(*(_QWORD *)(a3 + 128) + 16LL))();
v6 = v5;
v7 = v5;
if ( (int)v5 >= 1 )
{
v8 = sub_1006D0D88(*(_QWORD *)(a3 + 8));
v9 = v8 + 7;
if ( v8 + 7 < 0 )
v9 = v8 + 14;
v7 = (unsigned int)(v9 >> 3);
v10 = v7 - v6;
if ( (int)v7 - v6 >= 1 )
{
v11 = v10;
memmove(&a1[v10], a1, v6);
bzero(a1, v11);
}
}
return v7;
}