//
// GJMoreGamesLayer::~GJMoreGamesLayer from 0x53804c to 0x53816c (288 bytes)
//
// 2 xrefs:
// > `non-virtual thunk to'GJMoreGamesLayer::~GJMoreGamesLayer @ 0x538180
// > GJMoreGamesLayer::~GJMoreGamesLayer @ 0x538188
//
// 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:52:09 +0000
//
// Alternative name is '_ZN16GJMoreGamesLayerD1Ev'
void __fastcall GJMoreGamesLayer::~GJMoreGamesLayer(GJMoreGamesLayer *this)
{
unsigned int v1; // r7
bool v3; // cf
cocos2d::CCArray *v4; // r0
cocos2d::CCString *v5; // r0
const char *CString; // r0
const char *v7; // r8
size_t v8; // r0
PlatformToolbox *v9; // r0
char *v10; // r0
cocos2d::CCString *v11; // r0
char *v12; // r0
int *v13; // r0
cocos2d::CCTextureCache *v14; // r0
char *v15; // r1
int v16[2]; // [sp+4h] [bp-20h] BYREF
char *v17; // [sp+Ch] [bp-18h]
int v18[2]; // [sp+10h] [bp-14h] BYREF
char *v19; // [sp+18h] [bp-Ch]
v1 = 0;
*(_DWORD *)this = &off_CAB550;
*((_DWORD *)this + 66) = &off_CAB80C;
*((_DWORD *)this + 67) = &off_CAB844;
*((_DWORD *)this + 68) = &off_CAB850;
*((_DWORD *)this + 69) = &off_CAB860;
*((_DWORD *)this + 70) = &off_CAB874;
*((_DWORD *)this + 79) = &off_CAB88C;
*((_DWORD *)this + 83) = &off_CAB8CC;
while ( 1 )
{
v3 = v1 >= cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 120));
v4 = *((cocos2d::CCArray **)this + 120);
if ( v3 )
break;
v5 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, v1);
CString = (const char *)cocos2d::CCString::getCString(v5);
v16[0] = 0;
v16[1] = 0;
v17 = nullptr;
v7 = CString;
v8 = strlen(CString);
v9 = (PlatformToolbox *)std::string::__init(v16, v7, v8);
v18[0] = 0;
v18[1] = 0;
v19 = nullptr;
if ( PlatformToolbox::isHD(v9) )
{
v10 = "promo_%s-hd.png";
if ( (v16[0] & 1) == 0 )
goto LABEL_5;
v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"promo_%s-hd.png", v17);
}
else
{
v10 = "promo_%s.png";
if ( (v16[0] & 1) == 0 )
{
LABEL_5:
v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v10, (const char *)v16 + 1);
goto LABEL_9;
}
v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"promo_%s.png", v17);
}
LABEL_9:
++v1;
v12 = (char *)cocos2d::CCString::getCString(v11);
v13 = std::string::assign(v18, v12);
v14 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache((cocos2d::CCTextureCache *)v13);
if ( (v18[0] & 1) != 0 )
v15 = v19;
else
v15 = (char *)v18 + 1;
cocos2d::CCTextureCache::removeTextureForKey(v14, v15);
std::string::~string((int)v18);
std::string::~string((int)v16);
}
if ( v4 )
cocos2d::CCObject::release(v4);
GJDropDownLayer::~GJDropDownLayer(this);
}