//
// deallocateDoubleNested from 0x856a28 to 0x856aa0 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0xac230
//
// 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(void ****a1)
{
void ***v1; // x21
void ***v3; // x19
void **v4; // x20
v1 = a1[1];
v3 = *a1;
if ( v1 != *a1 )
{
do
{
if ( *v3 )
{
(*v3)[1] = **v3;
v4 = *v3;
if ( *v3 )
{
if ( *v4 )
operator delete(*v4);
operator delete(v4);
}
}
++v3;
}
while ( v1 != v3 );
v1 = *a1;
}
a1[1] = v1;
}