//
// PlatformerControlsPopup::~PlatformerControlsPopup from 0xcf9e48 to 0xcf9f50 (264 bytes)
//
// 5 xrefs:
// > `non-virtual thunk to'PlatformerControlsPopup::~PlatformerControlsPopup @ 0xcf9f54
// > PlatformerControlsPopup::~PlatformerControlsPopup @ 0xcf9f68
// > ??> @ 0x61450
// > ??> @ 0x82870
// > ??> @ 0x15055d8
//
// 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:50 +0000
//
// Alternative name is '_ZN23PlatformerControlsPopupD1Ev'
void __fastcall PlatformerControlsPopup::~PlatformerControlsPopup(PlatformerControlsPopup *this)
{
PlatformerControlsPopup *v2; // x1
GameLevelManager *v3; // x0
__int64 v4; // x0
cocos2d::CCObject *v5; // x0
*((_QWORD *)this + 129) = &off_1505E40;
*(_QWORD *)this = &off_15055D0;
*((_QWORD *)this + 40) = off_1505BE8;
*((_QWORD *)this + 41) = &off_1505C58;
*((_QWORD *)this + 42) = off_1505C70;
*((_QWORD *)this + 43) = off_1505C90;
*((_QWORD *)this + 44) = off_1505CB8;
*((_QWORD *)this + 51) = &off_1505CE8;
*((_QWORD *)this + 54) = &off_1505D68;
*((_QWORD *)this + 68) = off_1505D88;
*((_QWORD *)this + 83) = &off_1505DD0;
*((_QWORD *)this + 84) = off_1505DE8;
*((_QWORD *)this + 127) = off_1505E08;
*((_QWORD *)this + 128) = &off_1505E28;
*((_QWORD *)this + 130) = &off_1505E58;
v2 = *(PlatformerControlsPopup **)(GameLevelManager::sharedState((GameLevelManager *)&off_1505E58) + 712);
v3 = (PlatformerControlsPopup *)((char *)this + 1032);
if ( v2 == (PlatformerControlsPopup *)((char *)this + 1032) )
{
v3 = (GameLevelManager *)GameLevelManager::sharedState(v3);
*((_QWORD *)v3 + 89) = 0;
}
if ( *(PlatformerControlsPopup **)(GameLevelManager::sharedState(v3) + 1360) == (PlatformerControlsPopup *)((char *)this + 1016) )
*(_QWORD *)(GameLevelManager::sharedState((PlatformerControlsPopup *)((char *)this + 1016)) + 1360) = 0;
v4 = *((_QWORD *)this + 149);
if ( v4 )
*(_QWORD *)(v4 + 664) = 0;
v5 = *((cocos2d::CCObject **)this + 133);
if ( v5 )
cocos2d::CCObject::release(v5);
if ( (*((_BYTE *)this + 1072) & 1) != 0 )
operator delete(*((void **)this + 136));
SetupTriggerPopup::~SetupTriggerPopup(this);
}