//
// GameLevelManager::markItemAsLiked from 0x1000aa4a8 to 0x1000aa570 (200 bytes)
//
// 1 xrefs:
// > GameLevelManager::likeItem @ 0x1000a9f60
//
// 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)
{
_BOOL4 v6; // w22
cocos2d::CCString *v10; // x0
const char *CString; // x0
std::string __p; // [xsp+28h] [xbp-48h] BYREF
v6 = a4;
if ( cocos2d::CCDictionary::count(a1->m_likedLevels) >= 0x3E8 )
{
cocos2d::CCDictionary::getFirstKey(&__p, a1->m_likedLevels);
cocos2d::CCDictionary::removeObjectForKey_1((int)a1->m_likedLevels, (char *)&__p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}
memset(&__p, 0, sizeof(__p));
v10 = (cocos2d::CCString *)sub_100268F4C("like_%i_%i_%i_%i", a2, a3, v6, a5);
CString = cocos2d::CCString::getCString(v10);
std::string::assign(&__p, CString);
cocos2d::CCDictionary::setObject_1(a1->m_likedLevels, a1->m_trueString, &__p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}