//
// deallocateDoubleNestedBool from 0x999380 to 0x999404 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x5d490
//
// 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:58:03 +0000
//
void ****__fastcall deallocateDoubleNestedBool(void ****result)
{
void ***v1; // x19
void ***v2; // x21
void ****v3; // x22
void **v4; // x20
v1 = *result;
v2 = result[1];
if ( *result != v2 )
{
v3 = result;
do
{
v4 = *v1++;
if ( v4 )
{
if ( *v4 )
operator delete(*v4);
operator delete(v4);
}
}
while ( v2 != v1 );
result = (void ****)v3[1];
if ( *v3 != (void ***)result )
v3[1] = (void ***)&result[~((unsigned __int64)((char *)(result - 1) - (char *)*v3) >> 3)];
}
return result;
}