//
// TouchControlEditLayer::~TouchControlEditLayer from 0xd04098 to 0xd0417c (228 bytes)
//
// 5 xrefs:
// > `non-virtual thunk to'TouchControlEditLayer::~TouchControlEditLayer @ 0xd04180
// > TouchControlEditLayer::~TouchControlEditLayer @ 0xd04194
// > ??> @ 0x5e378
// > ??> @ 0x9a540
// > ??> @ 0x1508848
//
// 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:06:55 +0000
//
// Alternative name is '_ZN21TouchControlEditLayerD1Ev'
void __fastcall TouchControlEditLayer::~TouchControlEditLayer(TouchControlEditLayer *this)
{
cocos2d::CCObject *v2; // x0
char *v3; // x0
char *v4; // x2
char *v5; // x0
char *v6; // x2
v2 = *((cocos2d::CCObject **)this + 160);
*(_QWORD *)this = &off_1508840;
*((_QWORD *)this + 40) = off_1508E30;
*((_QWORD *)this + 41) = &off_1508EA0;
*((_QWORD *)this + 42) = off_1508EB8;
*((_QWORD *)this + 43) = off_1508ED8;
*((_QWORD *)this + 44) = off_1508F00;
*((_QWORD *)this + 51) = &off_1508F30;
*((_QWORD *)this + 54) = &off_1508FB0;
*((_QWORD *)this + 68) = off_1508FD0;
*((_QWORD *)this + 83) = &off_1509018;
*((_QWORD *)this + 84) = off_1509030;
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((char **)this + 157);
if ( v3 )
{
v4 = *((char **)this + 158);
if ( v3 != v4 )
*((_QWORD *)this + 158) = &v4[8 * ~((unsigned __int64)(v4 - 8 - v3) >> 3)];
operator delete(v3);
}
v5 = *((char **)this + 153);
if ( v5 )
{
v6 = *((char **)this + 154);
if ( v5 != v6 )
*((_QWORD *)this + 154) = &v6[8 * ~((unsigned __int64)(v6 - 8 - v5) >> 3)];
operator delete(v5);
}
SetupTriggerPopup::~SetupTriggerPopup(this);
}