//
// cocos2d::CCTextureCache::removeTextureForKey from 0x1006c1ef0 to 0x1006c1f49 (89 bytes)
//
// 51 xrefs:
// > GJBigSprite::updateSpriteVisibility @ 0x1002529fd
// > MapSelectLayer::onExit @ 0x10025317b
// > GJBigSprite::unloadAll @ 0x10025327d
// > GJBigSprite::unloadSprite @ 0x10025430c
// > GJBigSprite::finishedLoadingSpriteAsync @ 0x100254490
// > LevelAreaLayer::onExit @ 0x100266070
// > LevelAreaInnerLayer::onExit @ 0x100268170
// > GJPromoPopup::onExit @ 0x1002a4818
// > GJPathsLayer::onExit @ 0x1002e9660
// > GJShopLayer::onExit @ 0x1003104f9
// > GameManager::unloadIcon @ 0x10036bc6a
// > GameManager::loadFont @ 0x10036c45a
// > GameManager::loadDeathEffect @ 0x10036c5b5
// > GameManager::unloadBackground @ 0x10036c682
// > GameManager::loadBackground @ 0x10036c738
// > GameManager::finishedLoadingBGAsync @ 0x10036c889
// > GameManager::loadMiddleground @ 0x10036c908
// > GameManager::loadMiddleground @ 0x10036c937
// > GameManager::finishedLoadingMGAsync @ 0x10036cb89
// > GameManager::finishedLoadingMGAsync @ 0x10036cb99
// > GameManager::loadGround @ 0x10036cc1c
// > GameManager::loadGround @ 0x10036cc59
// > GameManager::finishedLoadingGAsync @ 0x10036ced9
// > GameManager::finishedLoadingGAsync @ 0x10036cee9
// > SecretLayer4::onExit @ 0x10039e580
// > WorldSelectLayer::onExit @ 0x1003aceb0
// > SecretLayer5::onExit @ 0x1004732b0
// > cocos2d::CCDirector::removeStatsLabel @ 0x100479306
// > SecretLayer2::onExit @ 0x10049c170
// > SecretLayer3::onExit @ 0x1004a147d
// > TutorialLayer::onClose @ 0x1004d7cfe
// > TutorialLayer::onNext @ 0x1004d7d89
// > TutorialLayer::loadPage @ 0x1004d7e0a
// > TutorialLayer::removeTutorialTexture @ 0x1004d825a
// > TutorialLayer::keyBackClicked @ 0x1004d82ce
// > sub_1004D82E0 @ 0x1004d835f
// > GauntletSelectLayer::onExit @ 0x1005a0bd0
// > sub_1005B4B30 @ 0x1005b4c0d
// > sub_1005B4C30 @ 0x1005b4d0d
// > sub_1005B4D30 @ 0x1005b4dfb
// > sub_1005B4E20 @ 0x1005b4efa
// > sub_1005B4F20 @ 0x1005b4ffd
// > sub_1006A60E0 @ 0x1006a618e
// > SecretRewardsLayer::onExit @ 0x10071708d
// > sub_1008758B0 @ 0x100875a5b
// > sub_100958510 @ 0x1009586a7
// > sub_10096FD20 @ 0x10096fddd
// > sub_10096FE00 @ 0x10096fe35
// > sub_10096FE50 @ 0x10096ff0d
// > sub_10096FF30 @ 0x10096ffdb
// > sub_100970010 @ 0x1009700cd
//
// 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 12:35:32 +0000
//
void __fastcall cocos2d::CCTextureCache::removeTextureForKey(__int64 a1, __int64 a2)
{
__int64 v2; // rax
char v3[16]; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
if ( a2 )
{
v2 = cocos2d::CCFileUtils::sharedFileUtils(a1, a2);
(*(void (__fastcall **)(char *, __int64, __int64, _QWORD))(*(_QWORD *)v2 + 48LL))(v3, v2, a2, 0);
cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 56), v3);
if ( (v3[0] & 1) != 0 )
operator delete(__p);
}
}