//
// SecretRewardsLayer::onExit from 0x6cfef0 to 0x6cff12 (34 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:57:02 +0000
//
int __fastcall SecretRewardsLayer::onExit(SecretRewardsLayer *this)
{
cocos2d::CCSpriteFrameCache *v1; // r0
cocos2d::CCSpriteFrameCache *v2; // r0
cocos2d::CCTextureCache *v3; // r0
cocos2d::CCTextureCache *v4; // r0
v1 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCLayer::onExit(this);
v2 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v1);
v3 = (cocos2d::CCTextureCache *)cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile(v2, "TreasureRoomSheet.plist");
v4 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v3);
return cocos2d::CCTextureCache::removeTextureForKey(v4, "TreasureRoomSheet.png");
}