//
// cocos2d::CCTextureCache::removeTextureForKey from 0x1005eee60 to 0x1005eeeb9 (89 bytes)
//
// 40 xrefs:
// > GJBigSprite::updateSpriteVisibility @ 0x1002689fd
// > MapSelectLayer::onExit @ 0x10026916b
// > GJBigSprite::unloadAll @ 0x10026926d
// > GJBigSprite::unloadSprite @ 0x10026a31c
// > GJBigSprite::finishedLoadingSpriteAsync @ 0x10026a4a0
// > LevelAreaLayer::onExit @ 0x100279a70
// > LevelAreaInnerLayer::onExit @ 0x10027bb70
// > GJPromoPopup::onExit @ 0x1002b6798
// > GJPathsLayer::onExit @ 0x1002feaf0
// > GJShopLayer::onExit @ 0x100324e99
// > GameManager::unloadIcon @ 0x10038288a
// > GameManager::loadFont @ 0x10038307a
// > GameManager::loadDeathEffect @ 0x1003831d5
// > GameManager::unloadBackground @ 0x1003832a2
// > GameManager::loadBackground @ 0x100383358
// > GameManager::finishedLoadingBGAsync @ 0x1003834a9
// > GameManager::loadMiddleground @ 0x100383528
// > GameManager::loadMiddleground @ 0x100383557
// > GameManager::finishedLoadingMGAsync @ 0x1003837a9
// > GameManager::finishedLoadingMGAsync @ 0x1003837b9
// > GameManager::loadGround @ 0x10038383c
// > GameManager::loadGround @ 0x100383879
// > GameManager::finishedLoadingGAsync @ 0x100383af9
// > GameManager::finishedLoadingGAsync @ 0x100383b09
// > SecretLayer4::onExit @ 0x1003b5180
// > WorldSelectLayer::onExit @ 0x1003c3ab0
// > SecretLayer5::onExit @ 0x10047e950
// > cocos2d::CCDirector::removeStatsLabel @ 0x100484976
// > SecretLayer2::onExit @ 0x1004a31a0
// > SecretLayer3::onExit @ 0x1004a84ad
// > TutorialLayer::onClose @ 0x1004dcbbe
// > TutorialLayer::onNext @ 0x1004dcc49
// > TutorialLayer::loadPage @ 0x1004dccca
// > TutorialLayer::removeTutorialTexture @ 0x1004dd11a
// > TutorialLayer::keyBackClicked @ 0x1004dd18e
// > sub_1004DD1A0 @ 0x1004dd21f
// > GauntletSelectLayer::onExit @ 0x100573840
// > sub_1005D47A0 @ 0x1005d4840
// > SecretRewardsLayer::onExit @ 0x10063a45d
// > sub_100794EB0 @ 0x10079505b
//
// 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 cocos2d::CCTextureCache::removeTextureForKey(cocos2d::CCTextureCache *a1, const char *a2)
{
cocos2d::CCFileUtils *v2; // rax
char v3[16]; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
if ( a2 )
{
v2 = cocos2d::CCFileUtils::sharedFileUtils();
((void (__fastcall *)(char *, cocos2d::CCFileUtils *, const char *, _QWORD))v2->createCCArrayWithContentsOfFile)(
v3,
v2,
a2,
0);
cocos2d::CCDictionary::removeObjectForKey_1((__int64)a1->m_pTextures, v3);
if ( (v3[0] & 1) != 0 )
operator delete(__p);
}
}