//
// cocos2d::CCTextureCache::removeTextureForKey from 0xda5618 to 0xda56ac (148 bytes)
//
// 36 xrefs:
// > GameManager::finishedLoadingBGAsync @ 0x7147b4
// > GameManager::loadFont @ 0x716598
// > GameManager::loadDeathEffect @ 0x7166f8
// > GameManager::unloadBackground @ 0x7167c8
// > GameManager::loadBackground @ 0x7168ac
// > GameManager::loadMiddleground @ 0x7169ac
// > GameManager::loadMiddleground @ 0x7169d0
// > GameManager::finishedLoadingMGAsync @ 0x716b8c
// > GameManager::finishedLoadingMGAsync @ 0x716b98
// > GameManager::loadGround @ 0x716d38
// > GameManager::loadGround @ 0x716d74
// > GameManager::finishedLoadingGAsync @ 0x716ee8
// > GameManager::finishedLoadingGAsync @ 0x716ef4
// > GameManager::unloadIcon @ 0x729258
// > TutorialPopup::~TutorialPopup @ 0x72b5a8
// > GJMoreGamesLayer::~GJMoreGamesLayer @ 0x8ff67c
// > TutorialLayer::removeTutorialTexture @ 0x900404
// > GJPromoPopup::onExit @ 0xa1e96c
// > GauntletSelectLayer::onExit @ 0xa77828
// > GJShopLayer::onExit @ 0xa804dc
// > SecretLayer3::onExit @ 0xa8a52c
// > SecretLayer2::onExit @ 0xa8a854
// > SecretLayer4::onExit @ 0xa97af4
// > WorldSelectLayer::onExit @ 0xaa5b58
// > GJBigSprite::unloadSprite @ 0xac2404
// > MapSelectLayer::onExit @ 0xac468c
// > LevelAreaLayer::onExit @ 0xb5d610
// > LevelAreaInnerLayer::onExit @ 0xb5d660
// > NewsPopup::~NewsPopup @ 0xb8ab94
// > SecretRewardsLayer::onExit @ 0xba1e58
// > GJPathsLayer::onExit @ 0xba3d58
// > SecretLayer5::onExit @ 0xbc35cc
// > KeybindCapturePopup::~KeybindCapturePopup @ 0xcf6730
// > SelectFontLayer2::unloadPreviewSheet @ 0xd03724
// > cocos2d::CCDirector::removeStatsLabel @ 0xd4a39c
// > ??> @ 0xffc58
//
// This function is hookable on this platform (idp: arm, 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 13:08:32 +0000
//
__int64 __fastcall cocos2d::CCTextureCache::removeTextureForKey(cocos2d::CCTextureCache *this, const char *a2)
{
__int64 v3; // x0
void *v6[3]; // [xsp+40h] [xbp+40h] BYREF
if ( a2 )
{
v3 = cocos2d::CCFileUtils::sharedFileUtils(_stack_chk_guard);
(*(void (__fastcall **)(void **__return_ptr, __int64, const char *, _QWORD))(*(_QWORD *)v3 + 48LL))(v6, v3, a2, 0);
cocos2d::CCDictionary::removeObjectForKey(*((_QWORD *)this + 7), (__int64)v6);
if ( ((__int64)v6[0] & 1) != 0 )
operator delete(v6[2]);
}
return _stack_chk_guard;
}