//
// TabbedPopupLayer::~TabbedPopupLayer from 0x589518 to 0x5895d0 (184 bytes)
//
// 5 xrefs:
// > `non-virtual thunk to'TabbedPopupLayer::~TabbedPopupLayer @ 0x5895d8
// > TabbedPopupLayer::~TabbedPopupLayer @ 0x5895e0
// > KeybindingsLayer::~KeybindingsLayer @ 0x58b20c
// > GameSettingsLayer::~GameSettingsLayer @ 0x710976
// > EditorSoundsLayer::~EditorSoundsLayer @ 0x78b61c
//
// 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:00 +0000
//
// Alternative name is '_ZN16TabbedPopupLayerD1Ev'
void __fastcall TabbedPopupLayer::~TabbedPopupLayer(TabbedPopupLayer *this)
{
int v2; // r5
int v3; // r0
char **v4; // r0
int v5; // r5
int v6; // r0
int v7; // r6
v2 = *((_DWORD *)this + 181);
*(_DWORD *)this = &off_CEC1C0;
*((_DWORD *)this + 66) = &off_CEC4BC;
*((_DWORD *)this + 67) = &off_CEC4F4;
*((_DWORD *)this + 68) = &off_CEC500;
*((_DWORD *)this + 69) = &off_CEC510;
*((_DWORD *)this + 70) = &off_CEC524;
*((_DWORD *)this + 79) = &off_CEC53C;
*((_DWORD *)this + 83) = &off_CEC57C;
*((_DWORD *)this + 110) = &off_CEC58C;
*((_DWORD *)this + 130) = &off_CEC5B0;
*((_DWORD *)this + 131) = &off_CEC5BC;
if ( v2 )
{
while ( 1 )
{
v3 = *((_DWORD *)this + 182);
if ( v2 == v3 )
break;
v4 = (char **)(v3 - 12);
*((_DWORD *)this + 182) = v4;
std::__vector_base::~__vector_base(v4);
}
operator delete(*((void **)this + 181));
}
v5 = *((_DWORD *)this + 178);
if ( v5 )
{
while ( 1 )
{
v6 = *((_DWORD *)this + 179);
if ( v5 == v6 )
break;
v7 = v6 - 44;
*((_DWORD *)this + 179) = v6 - 44;
std::string::~string(v6 - 32);
std::string::~string(v7);
}
operator delete(*((void **)this + 178));
}
SetupTriggerPopup::~SetupTriggerPopup(this);
}