//
// LevelBrowserLayer::~LevelBrowserLayer from 0x7f54a8 to 0x7f5610 (360 bytes)
//
// 7 xrefs:
// > `non-virtual thunk to'LevelBrowserLayer::~LevelBrowserLayer @ 0x7f5614
// > LevelBrowserLayer::~LevelBrowserLayer @ 0x7f5628
// > LevelListLayer::~LevelListLayer @ 0xba8a04
// > LevelListLayer::create @ 0xbb07ec
// > ??> @ 0x56938
// > ??> @ 0xe2c18
// > ??> @ 0x143e398
//
// 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 12:54:37 +0000
//
// Alternative name is '_ZN17LevelBrowserLayerD2Ev'
void __fastcall LevelBrowserLayer::~LevelBrowserLayer(LevelBrowserLayer *this)
{
int v2; // w1
cocos2d::CCNotificationCenter *v3; // x0
cocos2d::CCNotificationCenter *v4; // x0
cocos2d::CCNotificationCenter *v5; // x0
cocos2d::CCNotificationCenter *v6; // x0
cocos2d::CCObject *v7; // x0
cocos2d::CCObject *v8; // x0
cocos2d::CCObject *v9; // x0
cocos2d::CCObject *v10; // x0
GameLevelManager *v11; // x0
LevelBrowserLayer *v12; // x1
GameLevelManager *v13; // x0
__int64 v14; // x0
cocos2d::CCTouchDispatcher *v15; // x0
GameLevelManager *v16; // x0
LevelBrowserLayer *v17; // x1
v2 = *((unsigned __int8 *)this + 748);
*(_QWORD *)this = &off_143E390;
v3 = (cocos2d::CCNotificationCenter *)&off_143EB80;
*((_QWORD *)this + 40) = off_143E908;
*((_QWORD *)this + 41) = &off_143E978;
*((_QWORD *)this + 42) = off_143E990;
*((_QWORD *)this + 43) = off_143E9B0;
*((_QWORD *)this + 44) = off_143E9D8;
*((_QWORD *)this + 51) = &off_143EA08;
*((_QWORD *)this + 54) = &off_143EA88;
*((_QWORD *)this + 68) = &off_143EAA8;
*((_QWORD *)this + 69) = &off_143EAE0;
*((_QWORD *)this + 70) = &off_143EAF8;
*((_QWORD *)this + 71) = &off_143EB10;
*((_QWORD *)this + 72) = &off_143EB28;
*((_QWORD *)this + 73) = &off_143EB80;
if ( v2 )
{
v14 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)&off_143EB80);
v15 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 160LL))(v14);
v3 = (cocos2d::CCNotificationCenter *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v15, this);
}
v4 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(v3);
v5 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::removeObserver(
v4,
this,
"LevelSelectionChangedNotification");
v6 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(v5);
cocos2d::CCNotificationCenter::removeObserver(v6, this, "LevelsImportedNotification");
v7 = *((cocos2d::CCObject **)this + 82);
if ( v7 )
cocos2d::CCObject::release(v7);
v8 = *((cocos2d::CCObject **)this + 92);
if ( v8 )
cocos2d::CCObject::release(v8);
v9 = *((cocos2d::CCObject **)this + 83);
if ( v9 )
cocos2d::CCObject::release(v9);
v10 = *((cocos2d::CCObject **)this + 104);
if ( v10 )
cocos2d::CCObject::release(v10);
v11 = (GameLevelManager *)*((unsigned __int8 *)this + 748);
if ( *((_BYTE *)this + 748) )
{
v12 = *(LevelBrowserLayer **)(GameLevelManager::sharedState(v11) + 1224);
v13 = (LevelBrowserLayer *)((char *)this + 544);
if ( v12 != (LevelBrowserLayer *)((char *)this + 544) )
{
LABEL_13:
cocos2d::CCLayerColor::~CCLayerColor(this);
return;
}
}
else
{
v16 = (GameLevelManager *)GameManager::sharedState(v11);
*((_DWORD *)v16 + 177) = 7;
v17 = *(LevelBrowserLayer **)(GameLevelManager::sharedState(v16) + 1224);
v13 = (LevelBrowserLayer *)((char *)this + 544);
if ( v17 != (LevelBrowserLayer *)((char *)this + 544) )
goto LABEL_13;
}
*(_QWORD *)(GameLevelManager::sharedState(v13) + 1224) = 0;
cocos2d::CCLayerColor::~CCLayerColor(this);
}