//
// GameLevelManager::markItemAsLiked from 0x100557b20 to 0x100557bf5 (213 bytes)
//
// 1 xrefs:
// > GameLevelManager::likeItem @ 0x10055720d
//
// 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 __fastcall GameLevelManager::markItemAsLiked(GameLevelManager *a1, LikeItemType a2, int a3, bool a4, int a5)
{
cocos2d::CCString *v5; // rax
const char *CString; // rax
std::string v7; // [rsp+0h] [rbp-40h] BYREF
if ( cocos2d::CCDictionary::count(a1->m_likedLevels) >= 0x3E8 )
{
cocos2d::CCDictionary::getFirstKey(&v7, (__int64)a1->m_likedLevels);
cocos2d::CCDictionary::removeObjectForKey_1((__int64)a1->m_likedLevels, (char *)&v7);
if ( (*(_BYTE *)&v7.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v7.__r_.__value_.__l.__data_);
}
memset(&v7, 0, sizeof(v7));
v5 = (cocos2d::CCString *)sub_1007AB580("like_%i_%i_%i_%i", 0);
CString = cocos2d::CCString::getCString(v5);
std::string::assign(&v7, CString);
cocos2d::CCDictionary::setObject_1((__int64)a1->m_likedLevels, a1->m_trueString, (char *)&v7);
if ( (*(_BYTE *)&v7.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v7.__r_.__value_.__l.__data_);
}