//
// cocos2d::CCTextureCache::removeTextureForKey from 0x10013d3b4 to 0x10013d418 (100 bytes)
//
// 30 xrefs:
// > SecretLayer5::onExit @ 0x10007f794
// > sub_1001A50C4 @ 0x1001a515c
// > GJShopLayer::onExit @ 0x1001ca864
// > cocos2d::CCDirector::removeStatsLabel @ 0x100207af0
// > sub_10025363C @ 0x100253680
// > GauntletSelectLayer::onExit @ 0x1002560ac
// > sub_100315EBC @ 0x100315ef4
// > GJPromoPopup::onExit @ 0x1003803b0
// > SecretRewardsLayer::onExit @ 0x100389cb0
// > SecretLayer2::onExit @ 0x1003aa8f0
// > SecretLayer3::onExit @ 0x1003ae5c4
// > GameManager::unloadIcon @ 0x1003b4bfc
// > GameManager::loadFont @ 0x1003b4f08
// > sub_1003B502C @ 0x1003b5094
// > sub_1003B5110 @ 0x1003b5154
// > sub_1003B51A8 @ 0x1003b5204
// > sub_1003B52F8 @ 0x1003b5368
// > sub_1003B5394 @ 0x1003b53ec
// > sub_1003B5394 @ 0x1003b5418
// > sub_1003B5620 @ 0x1003b5694
// > sub_1003B5620 @ 0x1003b56a0
// > sub_1003B56BC @ 0x1003b5718
// > sub_1003B56BC @ 0x1003b5754
// > sub_1003B5970 @ 0x1003b59e4
// > sub_1003B5970 @ 0x1003b59f0
// > LevelAreaLayer::onExit @ 0x1003e3d88
// > LevelAreaInnerLayer::onExit @ 0x1003e5550
// > SecretLayer4::onExit @ 0x1003f5ddc
// > GJPathsLayer::onExit @ 0x10045f380
// > sub_100517954 @ 0x1005179f0
//
// 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 10:59:30 +0000
//
void __fastcall cocos2d::CCTextureCache::removeTextureForKey(__int64 a1, __int64 a2)
{
__int64 v4; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
if ( a2 )
{
v4 = cocos2d::CCFileUtils::sharedFileUtils(a1);
(*(void (__fastcall **)(void **__return_ptr, __int64, __int64, _QWORD))(*(_QWORD *)v4 + 48LL))(__p, v4, a2, 0);
cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 56), (char *)__p);
if ( v6 < 0 )
operator delete(__p[0]);
}
}