//
// deallocateDoubleNested from 0x47ef64 to 0x47ef98 (52 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall deallocateDoubleNested(int a1)
{
_DWORD *v2; // r5
_DWORD *v3; // r7
_DWORD *v4; // r3
_DWORD *v5; // t1
void *v6; // r6
v2 = *(_DWORD **)a1;
v3 = *(_DWORD **)(a1 + 4);
while ( v2 != v3 )
{
v5 = (_DWORD *)*v2++;
v4 = v5;
if ( v5 )
{
v4[1] = *v4;
v6 = (void *)*(v2 - 1);
if ( v6 )
{
std::_Vector_base::~_Vector_base((void **)*(v2 - 1));
operator delete(v6);
}
}
}
*(_DWORD *)(a1 + 4) = *(_DWORD *)a1;
}