//
// GJShopLayer::~GJShopLayer from 0xa7c540 to 0xa7c604 (196 bytes)
//
// 5 xrefs:
// > `non-virtual thunk to'GJShopLayer::~GJShopLayer @ 0xa7c608
// > GJShopLayer::~GJShopLayer @ 0xa7c61c
// > ??> @ 0xd2d48
// > ??> @ 0xf7270
// > ??> @ 0x1495f48
//
// 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:00:29 +0000
//
// Alternative name is '_ZN11GJShopLayerD1Ev'
void __fastcall GJShopLayer::~GJShopLayer(GJShopLayer *this)
{
__int64 v2; // x0
cocos2d::CCTouchDispatcher *v3; // x0
GameManager *v4; // x0
cocos2d::CCObject *v5; // x0
*(_QWORD *)this = &off_1495F40;
*((_QWORD *)this + 40) = off_14963E8;
*((_QWORD *)this + 41) = &off_1496458;
*((_QWORD *)this + 42) = off_1496470;
*((_QWORD *)this + 43) = off_1496490;
*((_QWORD *)this + 44) = off_14964B8;
*((_QWORD *)this + 51) = &off_14964E8;
*((_QWORD *)this + 52) = &off_1496500;
*((_QWORD *)this + 53) = off_1496518;
v2 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)off_1496518);
v3 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2);
v4 = (GameManager *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, this);
if ( *(GJShopLayer **)(GameManager::sharedState(v4) + 1296) == (GJShopLayer *)((char *)this + 424) )
*(_QWORD *)(GameManager::sharedState((GJShopLayer *)((char *)this + 424)) + 1296) = 0;
v5 = *((cocos2d::CCObject **)this + 56);
if ( v5 )
cocos2d::CCObject::release(v5);
if ( (*((_BYTE *)this + 464) & 1) != 0 )
operator delete(*((void **)this + 60));
cocos2d::CCLayer::~CCLayer(this);
}