//
// sub_1001BBD10 from 0x1001bbd10 to 0x1001bbe1c (268 bytes)
//
// 2 xrefs:
// > sub_1001B6708 @ 0x1001b6860
// > sub_1001B6708 @ 0x1001b6878
//
// 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:00:12 +0000
//
void __fastcall sub_1001BBD10(_QWORD *a1, __int64 *a2, __int64 *a3)
{
__int64 *v4; // x21
__int64 v6; // x8
__int64 i; // x9
void **v8; // x22
bool v9; // zf
void **v10; // x23
__int128 v11; // q0
__int128 v12; // q1
__int128 v13; // q2
unsigned __int64 v14; // x1
_QWORD *v15; // x0
v4 = a2;
v6 = a1[1];
if ( v6 )
{
for ( i = 0; i != v6; ++i )
*(_QWORD *)(*a1 + 8 * i) = 0;
v8 = (void **)a1[2];
a1[2] = 0;
a1[3] = 0;
if ( v8 )
v9 = a2 == a3;
else
v9 = 1;
if ( v9 )
{
v10 = v8;
}
else
{
do
{
*((_DWORD *)v8 + 4) = *((_DWORD *)v4 + 4);
std::string::operator=((std::string *)v8 + 1, (const std::string *)v4 + 1);
*((_OWORD *)v8 + 3) = *((_OWORD *)v4 + 3);
v11 = *((_OWORD *)v4 + 4);
v12 = *((_OWORD *)v4 + 5);
v13 = *((_OWORD *)v4 + 6);
*((_BYTE *)v8 + 112) = *((_BYTE *)v4 + 112);
*((_OWORD *)v8 + 5) = v12;
*((_OWORD *)v8 + 6) = v13;
*((_OWORD *)v8 + 4) = v11;
v10 = (void **)*v8;
v14 = *((int *)v8 + 4);
v8[1] = (void *)v14;
v15 = (_QWORD *)sub_10001B650((__int64)a1, v14, (_DWORD *)v8 + 4);
sub_10001B7AC(a1, v8, v15);
v4 = (__int64 *)*v4;
if ( !v10 )
break;
v8 = v10;
}
while ( v4 != a3 );
}
sub_1000D8D58((int)a1, v10);
}
while ( v4 != a3 )
{
sub_1001BBE4C(a1, v4 + 2);
v4 = (__int64 *)*v4;
}
}