//
// GJPromoPopup::onExit from 0x1002e54e0 to 0x1002e5514 (52 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007e40b0
//
// 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 __fastcall GJPromoPopup::onExit(GJPromoPopup *a1)
{
cocos2d::CCTextureCache *v2; // x0
std::string *p_m_promoFrame; // x1
cocos2d::CCLayer::onExit(a1);
v2 = cocos2d::CCTextureCache::sharedTextureCache();
p_m_promoFrame = &a1->m_promoFrame;
if ( a1->m_promoFrame.m_data.m_short.shortStorage.__elems_[22] < 0 )
p_m_promoFrame = (std::string *)p_m_promoFrame->m_data.m_long.capacitym1;
cocos2d::CCTextureCache::removeTextureForKey(v2, (const char *)p_m_promoFrame);
}