//
// sub_100150FC4 from 0x100150fc4 to 0x1001510a0 (220 bytes)
//
// 1 xrefs:
// > sub_1001496B0 @ 0x1001496f8
//
// 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:39 +0000
//
void __fastcall sub_100150FC4(_QWORD *a1, __int64 *a2, __int64 *a3)
{
__int64 v6; // x8
__int64 i; // x9
__int64 *v8; // x22
unsigned __int64 v9; // x1
__int64 *v10; // x23
_QWORD *v11; // x0
__int64 *v12; // x23
v6 = a1[1];
if ( v6 )
{
for ( i = 0; i != v6; ++i )
*(_QWORD *)(*a1 + 8 * i) = 0;
v8 = (__int64 *)a1[2];
a1[2] = 0;
a1[3] = 0;
if ( v8 )
{
while ( a2 != a3 )
{
v9 = *((int *)a2 + 4);
*((_DWORD *)v8 + 4) = v9;
v8[3] = a2[3];
v10 = (__int64 *)*v8;
v8[1] = v9;
v11 = (_QWORD *)sub_10001B650((__int64)a1, v9, (_DWORD *)v8 + 4);
sub_10001B7AC(a1, v8, v11);
a2 = (__int64 *)*a2;
v8 = v10;
if ( !v10 )
goto LABEL_11;
}
do
{
v12 = (__int64 *)*v8;
operator delete(v8);
v8 = v12;
}
while ( v12 );
}
}
LABEL_11:
while ( a2 != a3 )
{
sub_10014E844(a1, (_OWORD *)a2 + 1);
a2 = (__int64 *)*a2;
}
}