//
// deallocateDoubleNested from 0x59b964 to 0x59b9ac (72 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:13 +0000
//
void __fastcall deallocateDoubleNested(int ***a1)
{
int **v2; // r5
int **v3; // r7
int *v4; // r2
int *v5; // t1
int v6; // r1
int v7; // r3
void *v8; // r6
int **v9; // r2
int **v10; // r3
v2 = *a1;
v3 = a1[1];
while ( v2 != v3 )
{
v5 = *v2++;
v4 = v5;
if ( v5 )
{
v6 = *v4;
while ( 1 )
{
v7 = v4[1];
if ( v6 == v7 )
break;
v4[1] = v7 - 4;
}
v8 = *(v2 - 1);
if ( v8 )
{
std::__vector_base::~__vector_base((char **)*(v2 - 1));
operator delete(v8);
}
}
}
v9 = *a1;
while ( 1 )
{
v10 = a1[1];
if ( v9 == v10 )
break;
a1[1] = v10 - 1;
}
}