//
// sub_100199AC4 from 0x100199ac4 to 0x100199b44 (128 bytes)
//
// 1 xrefs:
// > sub_100199830 @ 0x100199990
//
// 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 10:59:58 +0000
//
void __fastcall sub_100199AC4(_QWORD *a1, unsigned __int64 a2)
{
__int64 v3; // x20
unsigned __int64 v4; // x9
unsigned __int64 v5; // x21
void *v6; // x0
v3 = a1[1];
v4 = (v3 - *a1) >> 6;
if ( a2 <= v4 )
{
if ( a2 < v4 )
{
v5 = *a1 + (a2 << 6);
while ( v3 != v5 )
{
v6 = *(void **)(v3 - 24);
if ( v6 )
{
*(_QWORD *)(v3 - 16) = v6;
operator delete(v6);
}
v3 -= 64;
}
a1[1] = v5;
}
}
else
{
sub_1001A3910(a1, a2 - v4);
}
}