//
// std::__ndk1::vector>::deallocate from 0xa14a94 to 0xa14cd8 (580 bytes)
//
// 3 xrefs:
// > GJEffectManager::postMoveActions @ 0xa15014
// > std::__ndk1::vector>::assign @ 0xa18048
// > ??> @ 0xa4230
//
// 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 12:59:32 +0000
//
void __fastcall std::vector::deallocate(void **a1)
{
_QWORD *v1; // x21
_QWORD *v2; // x19
char *v4; // x0
char *v5; // x2
char *v6; // x0
char *v7; // x2
char *v8; // x0
char *v9; // x2
char *v10; // x0
char *v11; // x2
char *v12; // x0
char *v13; // x2
char *v14; // x0
char *v15; // x2
char *v16; // x0
char *v17; // x2
char *v18; // x0
char *v19; // x2
char *v20; // x0
char *v21; // x2
_BYTE *v22; // x0
void **v23; // x19
v1 = *a1;
if ( *a1 )
{
v2 = a1[1];
if ( v1 != v2 )
{
do
{
a1[1] = v2 - 56;
v4 = (char *)*(v2 - 19);
if ( v4 )
{
v5 = (char *)*(v2 - 18);
if ( v4 != v5 )
*(v2 - 18) = &v5[8 * ~((unsigned __int64)(v5 - 8 - v4) >> 3)];
operator delete(v4);
}
v6 = (char *)*(v2 - 22);
if ( v6 )
{
v7 = (char *)*(v2 - 21);
if ( v6 != v7 )
*(v2 - 21) = &v7[8 * ~((unsigned __int64)(v7 - 8 - v6) >> 3)];
operator delete(v6);
}
v8 = (char *)*(v2 - 25);
if ( v8 )
{
v9 = (char *)*(v2 - 24);
if ( v8 != v9 )
*(v2 - 24) = &v9[8 * ~((unsigned __int64)(v9 - 8 - v8) >> 3)];
operator delete(v8);
}
v10 = (char *)*(v2 - 28);
if ( v10 )
{
v11 = (char *)*(v2 - 27);
if ( v10 != v11 )
*(v2 - 27) = &v11[8 * ~((unsigned __int64)(v11 - 8 - v10) >> 3)];
operator delete(v10);
}
v12 = (char *)*(v2 - 31);
if ( v12 )
{
v13 = (char *)*(v2 - 30);
if ( v12 != v13 )
*(v2 - 30) = &v13[8 * ~((unsigned __int64)(v13 - 8 - v12) >> 3)];
operator delete(v12);
}
v14 = (char *)*(v2 - 40);
if ( v14 )
{
v15 = (char *)*(v2 - 39);
if ( v14 != v15 )
*(v2 - 39) = &v15[8 * ~((unsigned __int64)(v15 - 8 - v14) >> 3)];
operator delete(v14);
}
v16 = (char *)*(v2 - 43);
if ( v16 )
{
v17 = (char *)*(v2 - 42);
if ( v16 != v17 )
*(v2 - 42) = &v17[8 * ~((unsigned __int64)(v17 - 8 - v16) >> 3)];
operator delete(v16);
}
v18 = (char *)*(v2 - 46);
if ( v18 )
{
v19 = (char *)*(v2 - 45);
if ( v18 != v19 )
*(v2 - 45) = &v19[8 * ~((unsigned __int64)(v19 - 8 - v18) >> 3)];
operator delete(v18);
}
v20 = (char *)*(v2 - 49);
if ( v20 )
{
v21 = (char *)*(v2 - 48);
if ( v20 != v21 )
*(v2 - 48) = &v21[8 * ~((unsigned __int64)(v21 - 8 - v20) >> 3)];
operator delete(v20);
}
v22 = (_BYTE *)*(v2 - 52);
if ( v22 )
{
v23 = (void **)(v2 - 51);
if ( v22 != *v23 )
*v23 = (char *)*v23 + 8 * ~((unsigned __int64)((char *)*v23 - 8 - v22) >> 3);
operator delete(v22);
}
v2 = a1[1];
}
while ( v1 != v2 );
v2 = *a1;
}
operator delete(v2);
a1[2] = nullptr;
a1[1] = nullptr;
*a1 = nullptr;
}
}