//
// GJPromoPopup::onExit from 0x5d3e4e to 0x5d3e72 (36 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:07 +0000
//
int __fastcall GJPromoPopup::onExit(GJPromoPopup *this)
{
cocos2d::CCTextureCache *v2; // r0
cocos2d::CCTextureCache *v3; // r0
const char *v4; // r1
v2 = (cocos2d::CCTextureCache *)cocos2d::CCLayer::onExit(this);
v3 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v2);
if ( (*((_BYTE *)this + 520) & 1) != 0 )
v4 = *((const char **)this + 132);
else
v4 = (char *)this + 521;
return cocos2d::CCTextureCache::removeTextureForKey(v3, v4);
}