//
// GJShopLayer::onExit from 0x61397c to 0x613a0a (142 bytes)
//
// 0 xrefs:
//
// 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:54:54 +0000
//
int __fastcall GJShopLayer::onExit(GJShopLayer *this)
{
unsigned __int8 *v1; // r5
cocos2d::CCSpriteFrameCache *v2; // r0
cocos2d::CCSpriteFrameCache *v3; // r7
char *v4; // r1
cocos2d::CCTextureCache *v5; // r0
cocos2d::CCTextureCache *v6; // r7
char *v7; // r1
unsigned int v9[2]; // [sp+0h] [bp-14h] BYREF
char *v10; // [sp+8h] [bp-Ch]
v1 = (unsigned __int8 *)this + 344;
v2 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCLayer::onExit(this);
v3 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v2);
std::operator+(v9, v1, ".plist");
if ( (v9[0] & 1) != 0 )
v4 = v10;
else
v4 = (char *)v9 + 1;
cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile(v3, v4);
v5 = (cocos2d::CCTextureCache *)std::string::~string((int)v9);
v6 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v5);
std::operator+(v9, v1, ".png");
if ( (v9[0] & 1) != 0 )
v7 = v10;
else
v7 = (char *)v9 + 1;
cocos2d::CCTextureCache::removeTextureForKey(v6, v7);
return std::string::~string((int)v9);
}