//
// sub_1002BDAD0 from 0x1002bdad0 to 0x1002bdb47 (119 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b0ef50
//
// This function is hookable on this platform (idp: pc, 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 12:28:04 +0000
//
__int64 __fastcall sub_1002BDAD0(_QWORD *a1)
{
void ***v1; // r14
void **v2; // r15
*a1 = off_100B0EF48;
v1 = (void ***)a1[7];
v2 = *v1;
if ( *v1 == v1[1] )
{
if ( v2 )
{
LABEL_3:
v1[1] = v2;
operator delete(v2);
}
}
else
{
do
{
if ( *v2 )
{
operator delete(*v2);
v1 = (void ***)a1[7];
}
++v2;
}
while ( v2 != v1[1] );
v2 = *v1;
if ( *v1 )
goto LABEL_3;
}
operator delete(v1);
return sub_10047FF60(a1);
}