//
// LevelPickerPopup::~LevelPickerPopup from 0xc6440c to 0xc645f4 (488 bytes)
//
// 5 xrefs:
// > `non-virtual thunk to'LevelPickerPopup::~LevelPickerPopup @ 0xc645f8
// > LevelPickerPopup::~LevelPickerPopup @ 0xc6460c
// > ??> @ 0xb8f18
// > ??> @ 0xcf490
// > ??> @ 0x14ee588
//
// 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:05:24 +0000
//
// Alternative name is '_ZN16LevelPickerPopupD2Ev'
void __fastcall LevelPickerPopup::~LevelPickerPopup(LevelPickerPopup *this)
{
__int64 v2; // x0
cocos2d::CCObject *v3; // x0
cocos2d::CCObject *v4; // x0
char *v5; // x0
char *v6; // x2
void **v7; // x21
void **v8; // x20
void **v9; // x21
void **v10; // x20
*((_QWORD *)this + 97) = &off_14EECF8;
*(_QWORD *)this = &off_14EE580;
*((_QWORD *)this + 40) = off_14EEB10;
*((_QWORD *)this + 41) = &off_14EEB80;
*((_QWORD *)this + 42) = off_14EEB98;
*((_QWORD *)this + 43) = off_14EEBB8;
*((_QWORD *)this + 44) = off_14EEBE0;
*((_QWORD *)this + 51) = &off_14EEC10;
*((_QWORD *)this + 54) = &off_14EEC90;
*((_QWORD *)this + 68) = off_14EECB0;
*((_QWORD *)this + 98) = &off_14EED30;
if ( *(LevelPickerPopup **)(GameLevelManager::sharedState((GameLevelManager *)&off_14EED30) + 1224) == (LevelPickerPopup *)((char *)this + 776) )
*(_QWORD *)(GameLevelManager::sharedState((LevelPickerPopup *)((char *)this + 776)) + 1224) = 0;
v2 = *((_QWORD *)this + 112);
if ( v2 )
*(_QWORD *)(v2 + 584) = 0;
v3 = *((cocos2d::CCObject **)this + 124);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *((cocos2d::CCObject **)this + 125);
if ( v4 )
cocos2d::CCObject::release(v4);
if ( (*((_BYTE *)this + 1032) & 1) != 0 )
operator delete(*((void **)this + 131));
v5 = *((char **)this + 126);
if ( v5 )
{
v6 = *((char **)this + 127);
if ( v5 != v6 )
*((_QWORD *)this + 127) = &v6[4 * ~((unsigned __int64)(v6 - 4 - v5) >> 2)];
operator delete(v5);
}
v7 = *((void ***)this + 121);
if ( v7 )
{
v8 = *((void ***)this + 122);
if ( v7 != v8 )
{
do
{
*((_QWORD *)this + 122) = v8 - 8;
if ( (*(_BYTE *)(v8 - 4) & 1) != 0 )
operator delete(*(v8 - 2));
if ( (*(_BYTE *)(v8 - 7) & 1) != 0 )
operator delete(*(v8 - 5));
v8 = *((void ***)this + 122);
}
while ( v7 != v8 );
v8 = *((void ***)this + 121);
}
operator delete(v8);
}
v9 = *((void ***)this + 118);
if ( v9 )
{
v10 = *((void ***)this + 119);
if ( v9 != v10 )
{
do
{
*((_QWORD *)this + 119) = v10 - 8;
if ( (*(_BYTE *)(v10 - 4) & 1) != 0 )
operator delete(*(v10 - 2));
if ( (*(_BYTE *)(v10 - 7) & 1) != 0 )
operator delete(*(v10 - 5));
v10 = *((void ***)this + 119);
}
while ( v9 != v10 );
v10 = *((void ***)this + 118);
}
operator delete(v10);
}
if ( (*((_BYTE *)this + 872) & 1) != 0 )
operator delete(*((void **)this + 111));
if ( (*((_BYTE *)this + 840) & 1) != 0 )
operator delete(*((void **)this + 107));
PagedListPopup::~PagedListPopup(this);
}