//
// GameSettingsLayer::~GameSettingsLayer from 0xc04a9c to 0xc04c6c (464 bytes)
//
// 5 xrefs:
// > `non-virtual thunk to'GameSettingsLayer::~GameSettingsLayer @ 0xc04c70
// > GameSettingsLayer::~GameSettingsLayer @ 0xc04c84
// > ??> @ 0x698e0
// > ??> @ 0xf3118
// > ??> @ 0x14e3108
//
// 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 13:03:50 +0000
//
// Alternative name is '_ZN17GameSettingsLayerD2Ev'
void __fastcall GameSettingsLayer::~GameSettingsLayer(GameSettingsLayer *this)
{
_QWORD *v2; // x0
_QWORD *v3; // x20
void *v4; // x0
_QWORD *v5; // x20
_QWORD *v6; // x2
char *v7; // x0
char *v8; // x3
void **v9; // x21
void **v10; // x0
char *v11; // x20
v2 = *((_QWORD **)this + 140);
*(_QWORD *)this = &off_14E3100;
*((_QWORD *)this + 40) = off_14E3700;
*((_QWORD *)this + 41) = &off_14E3770;
*((_QWORD *)this + 42) = off_14E3788;
*((_QWORD *)this + 43) = off_14E37A8;
*((_QWORD *)this + 44) = off_14E37D0;
*((_QWORD *)this + 51) = &off_14E3800;
*((_QWORD *)this + 54) = &off_14E3880;
*((_QWORD *)this + 68) = off_14E38A0;
*((_QWORD *)this + 83) = &off_14E38E8;
*((_QWORD *)this + 84) = off_14E3900;
*((_QWORD *)this + 136) = &off_14E3920;
if ( v2 )
{
do
{
v3 = (_QWORD *)*v2;
operator delete(v2);
v2 = v3;
}
while ( v3 );
}
v4 = *((void **)this + 138);
*((_QWORD *)this + 138) = 0;
if ( v4 )
operator delete(v4);
v5 = *((_QWORD **)this + 130);
*(_QWORD *)this = &off_14E4900;
*((_QWORD *)this + 40) = off_14E4EF8;
*((_QWORD *)this + 41) = &off_14E4F68;
*((_QWORD *)this + 42) = off_14E4F80;
*((_QWORD *)this + 43) = off_14E4FA0;
*((_QWORD *)this + 44) = off_14E4FC8;
*((_QWORD *)this + 51) = &off_14E4FF8;
*((_QWORD *)this + 54) = &off_14E5078;
*((_QWORD *)this + 68) = off_14E5098;
*((_QWORD *)this + 83) = &off_14E50E0;
*((_QWORD *)this + 84) = off_14E50F8;
if ( v5 )
{
v6 = *((_QWORD **)this + 131);
if ( v5 != v6 )
{
do
{
*((_QWORD *)this + 131) = v6 - 3;
v7 = (char *)*(v6 - 3);
if ( v7 )
{
v8 = (char *)*(v6 - 2);
if ( v7 != v8 )
*(v6 - 2) = &v8[4 * ~((unsigned __int64)(v8 - 4 - v7) >> 2)];
operator delete(v7);
}
v6 = *((_QWORD **)this + 131);
}
while ( v5 != v6 );
v6 = *((_QWORD **)this + 130);
}
operator delete(v6);
}
v9 = *((void ***)this + 127);
if ( v9 )
{
v10 = *((void ***)this + 128);
if ( v9 != v10 )
{
do
{
v11 = (char *)(v10 - 9);
*((_QWORD *)this + 128) = v10 - 9;
if ( (*(_BYTE *)(v10 - 6) & 1) != 0 )
operator delete(*(v10 - 4));
if ( (*v11 & 1) != 0 )
operator delete(*((void **)v11 + 2));
v10 = *((void ***)this + 128);
}
while ( v9 != v10 );
v10 = *((void ***)this + 127);
}
operator delete(v10);
}
SetupTriggerPopup::~SetupTriggerPopup(this);
}