//
// cocos2d::CCSpriteFrameCache::removeSpriteFrameByName from 0xd8c120 to 0xd8c2b4 (404 bytes)
//
// 1 xrefs:
// > ??> @ 0x4e358
//
// 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:16 +0000
//
__int64 __fastcall cocos2d::CCSpriteFrameCache::removeSpriteFrameByName(cocos2d::CCSpriteFrameCache *this, char *a2)
{
size_t v4; // x0
__int64 v5; // x23
cocos2d::CCString *v6; // x23
__int64 v7; // x22
char *CString; // x0
size_t v9; // x0
__int64 v10; // x22
char *v11; // x0
size_t v12; // x0
size_t v14; // x0
__int64 v15; // x23
char *v16; // [xsp+48h] [xbp+48h]
char *v17; // [xsp+48h] [xbp+48h]
__int64 v18; // [xsp+50h] [xbp+50h] BYREF
__int64 v19; // [xsp+58h] [xbp+58h]
void *v20; // [xsp+60h] [xbp+60h]
if ( a2 )
{
v18 = 0;
v19 = 0;
v20 = nullptr;
v4 = strlen(a2);
v5 = *((_QWORD *)this + 8);
std::string::__init(&v18, a2, v4);
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v5, (__int64)&v18);
if ( (v18 & 1) != 0 )
{
operator delete(v20);
if ( v6 )
{
LABEL_4:
v7 = *((_QWORD *)this + 7);
CString = cocos2d::CCString::getCString(v6);
v18 = 0;
v16 = CString;
v19 = 0;
v20 = nullptr;
v9 = strlen(CString);
std::string::__init(&v18, v16, v9);
cocos2d::CCDictionary::removeObjectForKey(v7, (__int64)&v18);
if ( (v18 & 1) != 0 )
operator delete(v20);
v10 = *((_QWORD *)this + 8);
v11 = cocos2d::CCString::getCString(v6);
v18 = 0;
v17 = v11;
v19 = 0;
v20 = nullptr;
v12 = strlen(v11);
std::string::__init(&v18, v17, v12);
cocos2d::CCDictionary::removeObjectForKey(v10, (__int64)&v18);
if ( (v18 & 1) == 0 )
goto LABEL_7;
goto LABEL_11;
}
}
else if ( v6 )
{
goto LABEL_4;
}
v18 = 0;
v19 = 0;
v20 = nullptr;
v14 = strlen(a2);
v15 = *((_QWORD *)this + 7);
std::string::__init(&v18, a2, v14);
cocos2d::CCDictionary::removeObjectForKey(v15, (__int64)&v18);
if ( (v18 & 1) == 0 )
{
LABEL_7:
std::__tree::clear(*((_QWORD **)this + 9));
return _stack_chk_guard;
}
LABEL_11:
operator delete(v20);
goto LABEL_7;
}
return _stack_chk_guard;
}