//
// GJPromoPopup::onExit from 0x1402a4f50 to 0x1402a4f88 (56 bytes)
//
// 2 xrefs:
// > ??> @ 0x140579e08
// > ??> @ 0x1406d2054
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJPromoPopup::onExit(GJPromoPopup *a1)
{
std::string *p_m_promoFrame; // rbx
cocos2d::CCTextureCache *v3; // rax
cocos2d::CCLayer::onExit(a1);
p_m_promoFrame = &a1->m_promoFrame;
if ( p_m_promoFrame->m_data.m_capacity > 0xF )
p_m_promoFrame = (std::string *)p_m_promoFrame->m_data.m_bigStorage;
v3 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::removeTextureForKey(v3, p_m_promoFrame->m_data.m_smallStorage._Elems);
}