//
// GJMoreGamesLayer::~GJMoreGamesLayer from 0x8ff554 to 0x8ff718 (452 bytes)
//
// 5 xrefs:
// > `non-virtual thunk to'GJMoreGamesLayer::~GJMoreGamesLayer @ 0x8ff71c
// > GJMoreGamesLayer::~GJMoreGamesLayer @ 0x8ff730
// > ??> @ 0xb4940
// > ??> @ 0xd82e0
// > ??> @ 0x1463298
//
// 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:57:06 +0000
//
// Alternative name is '_ZN16GJMoreGamesLayerD2Ev'
void __fastcall GJMoreGamesLayer::~GJMoreGamesLayer(GJMoreGamesLayer *this)
{
unsigned int v2; // w21
__int64 v3; // x8
cocos2d::CCArray *v4; // x0
bool v5; // cf
cocos2d::CCArray *i; // x0
cocos2d::CCString *v7; // x0
const char *CString; // x0
size_t v9; // x0
PlatformToolbox *v10; // x0
const char *v11; // x1
char *v12; // x0
cocos2d::CCString *v13; // x0
char *v14; // x0
__int64 *v15; // x0
cocos2d::CCTextureCache *v16; // x0
const char *v17; // x1
char *v18; // [xsp+58h] [xbp+58h]
__int64 v19[2]; // [xsp+68h] [xbp+68h] BYREF
char *v20; // [xsp+78h] [xbp+78h]
__int64 v21[2]; // [xsp+80h] [xbp+80h] BYREF
char *v22; // [xsp+90h] [xbp+90h]
__int64 v23; // [xsp+98h] [xbp+98h]
v2 = 0;
v3 = _stack_chk_guard;
*((_QWORD *)this + 51) = &off_1463908;
v4 = *((cocos2d::CCArray **)this + 76);
*(_QWORD *)this = &off_1463290;
*((_QWORD *)this + 40) = off_1463808;
*((_QWORD *)this + 41) = &off_1463878;
*((_QWORD *)this + 42) = off_1463890;
*((_QWORD *)this + 43) = off_14638B0;
*((_QWORD *)this + 44) = off_14638D8;
*((_QWORD *)this + 54) = &off_1463988;
v23 = v3;
v5 = (unsigned int)cocos2d::CCArray::count(v4) == 0;
for ( i = *((cocos2d::CCArray **)this + 76); !v5; i = *((cocos2d::CCArray **)this + 76) )
{
v7 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(i, v2);
CString = (const char *)cocos2d::CCString::getCString(v7);
v19[0] = 0;
v18 = (char *)CString;
v19[1] = 0;
v20 = nullptr;
v9 = strlen(CString);
v10 = (PlatformToolbox *)std::string::__init(v19, v18, v9);
v21[0] = 0;
v21[1] = 0;
v22 = nullptr;
if ( (unsigned __int8)PlatformToolbox::isHD(v10) )
{
v11 = (char *)v19 + 1;
if ( (v19[0] & 1) != 0 )
v11 = v20;
v12 = "promo_%s-hd.png";
}
else
{
v11 = (char *)v19 + 1;
if ( (v19[0] & 1) != 0 )
v11 = v20;
v12 = "promo_%s.png";
}
v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v12, v11);
v14 = (char *)cocos2d::CCString::getCString(v13);
v15 = std::string::assign(v21, v14);
v16 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache((cocos2d::CCTextureCache *)v15);
v17 = (char *)v21 + 1;
if ( (v21[0] & 1) != 0 )
v17 = v22;
cocos2d::CCTextureCache::removeTextureForKey(v16, v17);
if ( (v21[0] & 1) != 0 )
operator delete(v22);
++v2;
if ( (v19[0] & 1) != 0 )
operator delete(v20);
v5 = v2 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 76));
}
if ( i )
cocos2d::CCObject::release(i);
GJDropDownLayer::~GJDropDownLayer(this);
}