//
// GameLevelManager::markItemAsLiked from 0x3c324c to 0x3c32f2 (166 bytes)
//
// 1 xrefs:
// > GameLevelManager::likeItem @ 0x3d37d0
//
// 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 GameLevelManager::markItemAsLiked(GameLevelManager *a1, LikeItemType a2, int a3, bool a4, int a5)
{
char *LikeAccountItemKey; // r0
_DWORD v10[2]; // [sp+8h] [bp-8h] BYREF
v10[0] = a3;
v10[1] = a4;
if ( cocos2d::CCDictionary::count(a1->m_likedLevels) >= 0x3E8 )
{
cocos2d::CCDictionary::getFirstKey((cocos2d::CCDictionary *)v10);
cocos2d::CCDictionary::removeObjectForKey(a1->m_likedLevels);
sub_774008(v10);
}
v10[0] = &unk_ACDDA8;
if ( a2 == AccountComment )
LikeAccountItemKey = (char *)GameLevelManager::getLikeAccountItemKey(a1, AccountComment, a3, a4, a5);
else
LikeAccountItemKey = (char *)GameLevelManager::getLikeItemKey(a1, a2, a3, a4, a5);
sub_7753D4((int)v10, LikeAccountItemKey);
cocos2d::CCDictionary::setObject((int)a1->m_likedLevels, a1->m_trueString);
sub_774008(v10);
}