//
// GJPromoPopup::onExit from 0x1403aaed0 to 0x1403aaf08 (56 bytes)
//
// 2 xrefs:
// > ??> @ 0x14077d430
// > ??> @ 0x140923a08
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:31:20 +0000
//
void __fastcall GJPromoPopup::onExit(cocos2d::CCLayer *a1)
{
char *v2; // rbx
cocos2d::CCTextureCache *v3; // rax
cocos2d::CCLayer::onExit(a1);
v2 = (char *)a1 + 664;
if ( *((_QWORD *)v2 + 3) > 0xFu )
v2 = *(char **)v2;
v3 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::removeTextureForKey(v3, v2);
}