//
// GJPromoPopup::onExit from 0x1002b6760 to 0x1002b679d (61 bytes)
//
// 1 xrefs:
// > ??> @ 0x100903b08
//
// 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 *v1; // rax
std::array *longStorage; // rbx
cocos2d::CCLayer::onExit(a1);
v1 = cocos2d::CCTextureCache::sharedTextureCache();
if ( (a1->m_promoFrame.m_data.m_short.sizex2 & 1) != 0 )
longStorage = (std::array *)a1->m_promoFrame.m_data.m_long.longStorage;
else
longStorage = &a1->m_promoFrame.m_data.m_short.shortStorage;
cocos2d::CCTextureCache::removeTextureForKey(v1, longStorage->__elems_);
}