//
// GJShopLayer::onExit from 0xa80444 to 0xa80544 (256 bytes)
//
// 2 xrefs:
// > ??> @ 0x873e8
// > ??> @ 0x1496210
//
// 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:31 +0000
//
__int64 __fastcall GJShopLayer::onExit(GJShopLayer *this)
{
char *v1; // x21
cocos2d::CCSpriteFrameCache *v2; // x0
cocos2d::CCSpriteFrameCache *v3; // x22
char *v4; // x1
cocos2d::CCTextureCache *v5; // x0
cocos2d::CCTextureCache *v6; // x22
char *v7; // x1
unsigned __int64 v9[2]; // [xsp+30h] [xbp+30h] BYREF
char *v10; // [xsp+40h] [xbp+40h]
v1 = (char *)this + 464;
v2 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCLayer::onExit(this);
v3 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v2);
std::operator+(".plist", (__int64)v1, v9);
v4 = (char *)v9 + 1;
if ( (v9[0] & 1) != 0 )
v4 = v10;
cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile(v3, v4);
v5 = (cocos2d::CCTextureCache *)LOBYTE(v9[0]);
if ( (v9[0] & 1) != 0 )
operator delete(v10);
v6 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v5);
std::operator+(".png", (__int64)v1, v9);
v7 = (char *)v9 + 1;
if ( (v9[0] & 1) != 0 )
v7 = v10;
cocos2d::CCTextureCache::removeTextureForKey(v6, v7);
if ( (v9[0] & 1) != 0 )
operator delete(v10);
return _stack_chk_guard;
}