//
// TabbedPopupLayer::~TabbedPopupLayer from 0xc37eb0 to 0xc37ff8 (328 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'TabbedPopupLayer::~TabbedPopupLayer @ 0xc37ffc
// > ??> @ 0x54c28
// > ??> @ 0x14e4910
//
// 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:04:52 +0000
//
void __fastcall TabbedPopupLayer::~TabbedPopupLayer(TabbedPopupLayer *this)
{
_QWORD *v2; // x20
_QWORD *v3; // x2
char *v4; // x0
char *v5; // x3
void **v6; // x21
void **v7; // x0
char *v8; // x20
v2 = *((_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 ( v2 )
{
v3 = *((_QWORD **)this + 131);
if ( v2 != v3 )
{
do
{
*((_QWORD *)this + 131) = v3 - 3;
v4 = (char *)*(v3 - 3);
if ( v4 )
{
v5 = (char *)*(v3 - 2);
if ( v4 != v5 )
*(v3 - 2) = &v5[4 * ~((unsigned __int64)(v5 - 4 - v4) >> 2)];
operator delete(v4);
}
v3 = *((_QWORD **)this + 131);
}
while ( v2 != v3 );
v3 = *((_QWORD **)this + 130);
}
operator delete(v3);
}
v6 = *((void ***)this + 127);
if ( v6 )
{
v7 = *((void ***)this + 128);
if ( v6 != v7 )
{
do
{
v8 = (char *)(v7 - 9);
*((_QWORD *)this + 128) = v7 - 9;
if ( (*(_BYTE *)(v7 - 6) & 1) != 0 )
operator delete(*(v7 - 4));
if ( (*v8 & 1) != 0 )
operator delete(*((void **)v8 + 2));
v7 = *((void ***)this + 128);
}
while ( v6 != v7 );
v7 = *((void ***)this + 127);
}
operator delete(v7);
}
SetupTriggerPopup::~SetupTriggerPopup(this);
operator delete(this);
}