//
// cocos2d::CCTextureCache::removeTextureForKey from 0x5f4e30 to 0x5f4e76 (70 bytes)
//
// 32 xrefs:
// > GameManager::finishedLoadingBGAsync @ 0x32048a
// > GameManager::loadFont @ 0x3225b8
// > GameManager::loadDeathEffect @ 0x32268a
// > GameManager::unloadBackground @ 0x322700
// > GameManager::loadBackground @ 0x322766
// > GameManager::loadMiddleground @ 0x322822
// > GameManager::loadMiddleground @ 0x322840
// > GameManager::finishedLoadingMGAsync @ 0x32296e
// > GameManager::finishedLoadingMGAsync @ 0x322978
// > GameManager::loadGround @ 0x322a16
// > GameManager::loadGround @ 0x322a40
// > GameManager::finishedLoadingGAsync @ 0x322b92
// > GameManager::finishedLoadingGAsync @ 0x322b9c
// > GameManager::unloadIcon @ 0x329456
// > TutorialPopup::~TutorialPopup @ 0x32a45a
// > GJMoreGamesLayer::~GJMoreGamesLayer @ 0x42b044
// > TutorialLayer::removeTutorialTexture @ 0x42bac8
// > GJPromoPopup::onExit @ 0x4a9512
// > GauntletSelectLayer::onExit @ 0x4d9ee2
// > GJShopLayer::onExit @ 0x4e300a
// > SecretLayer3::onExit @ 0x4eb2a6
// > SecretLayer2::onExit @ 0x4ebfce
// > SecretLayer4::onExit @ 0x4f21d2
// > WorldSelectLayer::onExit @ 0x4fcb82
// > GJBigSprite::unloadSprite @ 0x50eca2
// > MapSelectLayer::onExit @ 0x50fb58
// > LevelAreaLayer::onExit @ 0x56daca
// > LevelAreaInnerLayer::onExit @ 0x56dafe
// > SecretRewardsLayer::onExit @ 0x58a2fa
// > GJPathsLayer::onExit @ 0x58bbee
// > SecretLayer5::onExit @ 0x59c41e
// > cocos2d::CCDirector::removeStatsLabel @ 0x5c3cb2
//
// 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 cocos2d::CCTextureCache::removeTextureForKey(cocos2d::CCTextureCache *a1, const char *a2)
{
cocos2d::CCFileUtils *v4; // r0
const char *v5[3]; // [sp+0h] [bp-Ch] BYREF
v5[0] = (const char *)a1;
v5[1] = a2;
if ( a2 )
{
v4 = cocos2d::CCFileUtils::sharedFileUtils();
((void (__fastcall *)(const char **, cocos2d::CCFileUtils *, const char *, _DWORD))v4->createCCArrayWithContentsOfFile)(
v5,
v4,
a2,
0);
cocos2d::CCDictionary::removeObjectForKey(a1->m_pTextures, v5);
sub_774008(v5);
}
}