//
// LevelBrowserLayer::~LevelBrowserLayer from 0x4a47a4 to 0x4a48aa (262 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'LevelBrowserLayer::~LevelBrowserLayer @ 0x4a48bc
// > LevelBrowserLayer::~LevelBrowserLayer @ 0x4a48c4
// > LevelListLayer::~LevelListLayer @ 0x6d513e
// > LevelListLayer::create @ 0x6d99aa
//
// 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:49:53 +0000
//
// Alternative name is '_ZN17LevelBrowserLayerD1Ev'
void __fastcall LevelBrowserLayer::~LevelBrowserLayer(LevelBrowserLayer *this)
{
LevelBrowserLayer *v1; // r4
int v2; // r3
int v3; // r0
cocos2d::CCTouchDispatcher *v4; // r0
cocos2d::CCNotificationCenter *v5; // r0
cocos2d::CCNotificationCenter *v6; // r0
cocos2d::CCNotificationCenter *v7; // r0
cocos2d::CCObject *v8; // r0
cocos2d::CCObject *v9; // r0
cocos2d::CCObject *v10; // r0
cocos2d::CCObject *v11; // r0
GameLevelManager *v12; // r0
*(_DWORD *)this = &off_C98C88;
*((_DWORD *)this + 66) = &off_C98F44;
*((_DWORD *)this + 67) = &off_C98F7C;
*((_DWORD *)this + 68) = &off_C98F88;
*((_DWORD *)this + 69) = &off_C98F98;
*((_DWORD *)this + 70) = &off_C98FAC;
*((_DWORD *)this + 79) = &off_C98FC4;
*((_DWORD *)this + 83) = &off_C99004;
*((_DWORD *)this + 110) = &off_C99014;
*((_DWORD *)this + 111) = &off_C99030;
*((_DWORD *)this + 112) = &off_C9903C;
*((_DWORD *)this + 113) = &off_C99048;
*((_DWORD *)this + 115) = &off_C99080;
v1 = this;
v2 = *((unsigned __int8 *)this + 548);
*((_DWORD *)this + 114) = &off_C99054;
if ( v2 )
{
v3 = cocos2d::CCDirector::sharedDirector(this);
v4 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 80))(v3);
this = (LevelBrowserLayer *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, v1);
}
v5 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(this);
v6 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::removeObserver(
v5,
v1,
"LevelSelectionChangedNotification");
v7 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(v6);
cocos2d::CCNotificationCenter::removeObserver(v7, v1, "LevelsImportedNotification");
v8 = *((cocos2d::CCObject **)v1 + 124);
if ( v8 )
cocos2d::CCObject::release(v8);
v9 = *((cocos2d::CCObject **)v1 + 135);
if ( v9 )
cocos2d::CCObject::release(v9);
v10 = *((cocos2d::CCObject **)v1 + 125);
if ( v10 )
cocos2d::CCObject::release(v10);
v11 = *((cocos2d::CCObject **)v1 + 150);
if ( v11 )
v11 = (cocos2d::CCObject *)cocos2d::CCObject::release(v11);
if ( !*((_BYTE *)v1 + 548) )
{
v11 = (cocos2d::CCObject *)GameManager::sharedState(v11);
*((_DWORD *)v11 + 127) = 7;
}
v12 = (GameLevelManager *)GameLevelManager::sharedState(v11);
if ( *((LevelBrowserLayer **)v12 + 205) == (LevelBrowserLayer *)((char *)v1 + 440) )
*(_DWORD *)(GameLevelManager::sharedState(v12) + 820) = 0;
cocos2d::CCLayerColor::~CCLayerColor(v1);
}