//
// NewsPopup::~NewsPopup from 0xb8aaec to 0xb8acf0 (516 bytes)
//
// 5 xrefs:
// > `non-virtual thunk to'NewsPopup::~NewsPopup @ 0xb8acf4
// > NewsPopup::~NewsPopup @ 0xb8ad08
// > ??> @ 0x4d050
// > ??> @ 0xf3e38
// > ??> @ 0x14d5e18
//
// 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:02:33 +0000
//
// Alternative name is '_ZN9NewsPopupD1Ev'
void __fastcall NewsPopup::~NewsPopup(NewsPopup *this)
{
char *v1; // x20
cocos2d::CCArray **v3; // x0
cocos2d::CCTextureCache *v4; // x0
cocos2d::CCTextureCache *v5; // x19
cocos2d::CCTextureCache *v6; // x0
const char *v7; // x1
char *v8; // x23
char *v9; // x20
char *v10; // x21
char *v11; // x19
cocos2d::CCTextureCache *v12; // x1
cocos2d::CCTextureCache *v13; // x1
v1 = (char *)this + 824;
*(_QWORD *)this = &off_14D5E10;
*((_QWORD *)this + 40) = off_14D6388;
*((_QWORD *)this + 41) = &off_14D63F8;
*((_QWORD *)this + 42) = off_14D6410;
*((_QWORD *)this + 43) = off_14D6430;
*((_QWORD *)this + 44) = off_14D6458;
*((_QWORD *)this + 51) = &off_14D6488;
*((_QWORD *)this + 54) = &off_14D6508;
*((_QWORD *)this + 68) = off_14D6528;
*((_QWORD *)this + 83) = &off_14D6570;
*((_QWORD *)this + 84) = &off_14D6588;
v3 = (cocos2d::CCArray **)MusicDownloadManager::sharedState((MusicDownloadManager *)&off_14D6588);
v4 = (cocos2d::CCTextureCache *)MusicDownloadManager::removeMusicDownloadDelegate(
v3,
(NewsPopup *)((char *)this + 672));
v5 = *((cocos2d::CCTextureCache **)this + 102);
while ( v1 != (char *)v5 )
{
while ( 1 )
{
v6 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v4);
v7 = (char *)v5 + 33;
if ( (*((_BYTE *)v5 + 32) & 1) != 0 )
v7 = *((const char **)v5 + 6);
cocos2d::CCTextureCache::removeTextureForKey(v6, v7);
v4 = *((cocos2d::CCTextureCache **)v5 + 1);
if ( !v4 )
break;
do
{
v5 = v4;
v4 = *(cocos2d::CCTextureCache **)v4;
}
while ( v4 );
if ( v1 == (char *)v5 )
goto LABEL_8;
}
do
{
v12 = v5;
v5 = *((cocos2d::CCTextureCache **)v5 + 2);
v4 = *(cocos2d::CCTextureCache **)v5;
if ( v12 == *(cocos2d::CCTextureCache **)v5 )
break;
v13 = v5;
v5 = *((cocos2d::CCTextureCache **)v5 + 2);
v4 = *(cocos2d::CCTextureCache **)v5;
}
while ( v13 != *(cocos2d::CCTextureCache **)v5 );
}
LABEL_8:
std::__tree::~__tree((__int64)this + 816);
std::__tree::~__tree((__int64)this + 792);
if ( (*((_BYTE *)this + 768) & 1) != 0 )
operator delete(*((void **)this + 98));
v8 = *((char **)this + 85);
if ( v8 )
{
v9 = *((char **)this + 86);
if ( v8 == v9 )
{
LABEL_33:
operator delete(v9);
goto LABEL_34;
}
while ( 1 )
{
*((_QWORD *)this + 86) = v9 - 80;
v10 = *((char **)v9 - 3);
if ( v10 )
break;
LABEL_27:
if ( (*(v9 - 48) & 1) != 0 )
operator delete(*((void **)v9 - 4));
if ( (*(v9 - 72) & 1) != 0 )
operator delete(*((void **)v9 - 7));
v9 = *((char **)this + 86);
if ( v8 == v9 )
{
v9 = *((char **)this + 85);
goto LABEL_33;
}
}
v11 = *((char **)v9 - 2);
if ( v10 == v11 )
{
LABEL_26:
operator delete(v11);
goto LABEL_27;
}
while ( 1 )
{
*((_QWORD *)v9 - 2) = v11 - 96;
if ( (*(v11 - 24) & 1) != 0 )
{
operator delete(*((void **)v11 - 1));
if ( (*(v11 - 64) & 1) != 0 )
LABEL_21:
operator delete(*((void **)v11 - 6));
}
else if ( (*(v11 - 64) & 1) != 0 )
{
goto LABEL_21;
}
if ( (*(v11 - 88) & 1) != 0 )
operator delete(*((void **)v11 - 9));
v11 = *((char **)v9 - 2);
if ( v10 == v11 )
{
v11 = *((char **)v9 - 3);
goto LABEL_26;
}
}
}
LABEL_34:
FLAlertLayer::~FLAlertLayer(this);
}