//
// PlayLayer::~PlayLayer from 0x6f7a8c to 0x6f7e4c (960 bytes)
//
// 5 xrefs:
// > `non-virtual thunk to'PlayLayer::~PlayLayer @ 0x6f7e50
// > PlayLayer::~PlayLayer @ 0x6f7e64
// > ??> @ 0x59728
// > ??> @ 0x7dfc8
// > ??> @ 0x1428448
//
// 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:51:51 +0000
//
// Alternative name is '_ZN9PlayLayerD2Ev'
void __fastcall PlayLayer::~PlayLayer(PlayLayer *this)
{
cocos2d::CCObject *v2; // x0
cocos2d::CCObject *v3; // x0
cocos2d::CCObject *v4; // x0
cocos2d::CCObject *v5; // x0
cocos2d::CCObject *v6; // x0
cocos2d::CCObject *v7; // x0
cocos2d::CCObject *v8; // x0
cocos2d::CCObject *v9; // x0
cocos2d::CCObject *v10; // x0
cocos2d::CCObject *v11; // x0
cocos2d::CCObject *v12; // x0
cocos2d::CCObject *v13; // x0
GameManager *v14; // x0
__int64 v15; // x0
cocos2d::CCDirector *v16; // x0
__int64 v17; // x0
char *v18; // x0
char *v19; // x2
char *v20; // x0
char *v21; // x2
void *v22; // x0
_QWORD *v23; // x0
_QWORD *v24; // x20
void *v25; // x0
char *v26; // x0
char *v27; // x2
char *v28; // x0
char *v29; // x2
char *v30; // x0
char *v31; // x2
char *v32; // x0
char *v33; // x2
char *v34; // x0
char *v35; // x2
char *v36; // x0
char *v37; // x3
char *v38; // x0
char *v39; // x2
char *v40; // x0
char *v41; // x2
char *v42; // x0
char *v43; // x2
void *v44; // x20
void *v45; // x0
__int64 v46; // x0
*(_QWORD *)this = &off_1428440;
*((_QWORD *)this + 40) = off_1428AB8;
*((_QWORD *)this + 1751) = &off_1428C18;
*((_QWORD *)this + 41) = &off_1428B28;
*((_QWORD *)this + 42) = off_1428B40;
*((_QWORD *)this + 43) = off_1428B60;
*((_QWORD *)this + 44) = off_1428B88;
*((_QWORD *)this + 51) = off_1428BB8;
*((_QWORD *)this + 1749) = &off_1428BE8;
*((_QWORD *)this + 1750) = &off_1428C00;
PlatformToolbox::showCursor((PlatformToolbox *)&off_1428C18);
v2 = *((cocos2d::CCObject **)this + 242);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((cocos2d::CCObject **)this + 1781);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *((cocos2d::CCObject **)this + 1772);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *((cocos2d::CCObject **)this + 409);
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *((cocos2d::CCObject **)this + 1799);
if ( v6 )
cocos2d::CCObject::release(v6);
v7 = *((cocos2d::CCObject **)this + 408);
if ( v7 )
cocos2d::CCObject::release(v7);
v8 = *((cocos2d::CCObject **)this + 1785);
if ( v8 )
cocos2d::CCObject::release(v8);
v9 = *((cocos2d::CCObject **)this + 1848);
if ( v9 )
cocos2d::CCObject::release(v9);
v10 = *((cocos2d::CCObject **)this + 1787);
if ( v10 )
cocos2d::CCObject::release(v10);
v11 = *((cocos2d::CCObject **)this + 1782);
if ( v11 )
cocos2d::CCObject::release(v11);
v12 = *((cocos2d::CCObject **)this + 1788);
if ( v12 )
cocos2d::CCObject::release(v12);
v13 = *((cocos2d::CCObject **)this + 1780);
if ( v13 )
v13 = (cocos2d::CCObject *)cocos2d::CCObject::release(v13);
v14 = *(GameManager **)(GameManager::sharedState(v13) + 544);
if ( this == v14 )
{
v14 = (GameManager *)GameManager::sharedState(v14);
*((_QWORD *)v14 + 68) = 0;
}
v15 = FMODAudioEngine::sharedEngine(v14);
v16 = (cocos2d::CCDirector *)FMODAudioEngine::disableMetering(v15);
v17 = cocos2d::CCDirector::sharedDirector(v16);
*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 192LL))(v17) + 132) = 0;
v18 = *((char **)this + 1855);
if ( v18 )
{
v19 = *((char **)this + 1856);
if ( v19 != v18 )
*((_QWORD *)this + 1856) = &v19[8 * ~((unsigned __int64)(v19 - 8 - v18) >> 3)];
operator delete(v18);
}
v20 = *((char **)this + 1852);
if ( v20 )
{
v21 = *((char **)this + 1853);
if ( v20 != v21 )
*((_QWORD *)this + 1853) = &v21[4 * ~((unsigned __int64)(v21 - 4 - v20) >> 2)];
operator delete(v20);
}
v22 = *((void **)this + 1849);
if ( v22 )
{
if ( v22 != *((void **)this + 1850) )
*((_QWORD *)this + 1850) = v22;
operator delete(v22);
}
v23 = *((_QWORD **)this + 1825);
if ( v23 )
{
do
{
v24 = (_QWORD *)*v23;
operator delete(v23);
v23 = v24;
}
while ( v24 );
}
v25 = *((void **)this + 1823);
*((_QWORD *)this + 1823) = 0;
if ( v25 )
operator delete(v25);
v26 = *((char **)this + 1819);
if ( v26 )
{
v27 = *((char **)this + 1820);
if ( v26 != v27 )
*((_QWORD *)this + 1820) = &v27[4 * ~((unsigned __int64)(v27 - 4 - v26) >> 2)];
operator delete(v26);
}
v28 = *((char **)this + 1816);
if ( v28 )
{
v29 = *((char **)this + 1817);
if ( v28 != v29 )
*((_QWORD *)this + 1817) = &v29[4 * ~((unsigned __int64)(v29 - 4 - v28) >> 2)];
operator delete(v28);
}
v30 = *((char **)this + 1812);
if ( v30 )
{
v31 = *((char **)this + 1813);
if ( v30 != v31 )
*((_QWORD *)this + 1813) = &v31[4 * ~((unsigned __int64)(v31 - 4 - v30) >> 2)];
operator delete(v30);
}
v32 = *((char **)this + 1805);
if ( v32 )
{
v33 = *((char **)this + 1806);
if ( v32 != v33 )
*((_QWORD *)this + 1806) = &v33[4 * ~((unsigned __int64)(v33 - 4 - v32) >> 2)];
operator delete(v32);
}
v34 = *((char **)this + 1802);
if ( v34 )
{
v35 = *((char **)this + 1803);
if ( v34 != v35 )
*((_QWORD *)this + 1803) = &v35[4 * ~((unsigned __int64)(v35 - 4 - v34) >> 2)];
operator delete(v34);
}
v36 = *((char **)this + 1768);
if ( v36 )
{
v37 = *((char **)this + 1769);
if ( v36 != v37 )
*((_QWORD *)this + 1769) = &v37[-48
* ((0xAAAAAAAAAAAAAABLL * ((unsigned __int64)(v37 - 48 - v36) >> 4))
& 0xFFFFFFFFFFFFFFFLL)
- 48];
operator delete(v36);
}
v38 = *((char **)this + 1765);
if ( v38 )
{
v39 = *((char **)this + 1766);
if ( v38 != v39 )
*((_QWORD *)this + 1766) = &v39[8 * ~((unsigned __int64)(v39 - 8 - v38) >> 3)];
operator delete(v38);
}
v40 = *((char **)this + 1762);
if ( v40 )
{
v41 = *((char **)this + 1763);
if ( v40 != v41 )
*((_QWORD *)this + 1763) = &v41[8 * ~((unsigned __int64)(v41 - 8 - v40) >> 3)];
operator delete(v40);
}
v42 = *((char **)this + 1759);
if ( v42 )
{
v43 = *((char **)this + 1760);
if ( v42 != v43 )
*((_QWORD *)this + 1760) = &v43[8 * ~((unsigned __int64)(v43 - 8 - v42) >> 3)];
operator delete(v42);
}
v44 = *((void **)this + 1754);
if ( v44 )
{
v45 = *((void **)this + 1755);
if ( v44 != v45 )
{
do
{
v46 = (__int64)v45 - 24;
*((_QWORD *)this + 1755) = v46;
std::string::~string(v46);
v45 = *((void **)this + 1755);
}
while ( v44 != v45 );
v45 = *((void **)this + 1754);
}
operator delete(v45);
}
GJBaseGameLayer::~GJBaseGameLayer(this);
}