//
// sub_10019A644 from 0x10019a644 to 0x10019a6d8 (148 bytes)
//
// 1 xrefs:
// > sub_10019A47C @ 0x10019a51c
//
// 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_10019A644(_QWORD *a1, unsigned __int64 a2)
{
__int64 v3; // x20
unsigned __int64 v4; // x8
bool v5; // cf
unsigned __int64 v6; // x8
__int64 v7; // x21
void *v8; // x0
v3 = a1[1];
v4 = 0x8E38E38E38E38E39LL * ((v3 - *a1) >> 3);
v5 = a2 >= v4;
v6 = a2 - v4;
if ( v6 != 0 && v5 )
{
sub_1001A3F64(a1, v6);
}
else if ( !v5 )
{
v7 = *a1 + 72 * a2;
while ( v3 != v7 )
{
v8 = *(void **)(v3 - 24);
if ( v8 )
{
*(_QWORD *)(v3 - 16) = v8;
operator delete(v8);
}
v3 -= 72;
}
a1[1] = v7;
}
}