//
// GameLevelManager::markItemAsLiked from 0x10057f110 to 0x10057f1e5 (213 bytes)
//
// 1 xrefs:
// > GameLevelManager::likeItem @ 0x10057e7fd
//
// This function is hookable on this platform (idp: pc, 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 12:32:19 +0000
//
void __fastcall GameLevelManager::markItemAsLiked(__int64 a1)
{
__int64 v1; // rax
const std::string::value_type *CString; // rax
std::string v3; // [rsp+0h] [rbp-40h] BYREF
if ( (unsigned int)cocos2d::CCDictionary::count(*(_QWORD *)(a1 + 800)) >= 0x3E8 )
{
cocos2d::CCDictionary::getFirstKey(&v3, *(_QWORD *)(a1 + 800));
cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 800), (char *)&v3);
if ( (*(_BYTE *)&v3.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v3.__r_.__value_.__l.__data_);
}
memset(&v3, 0, sizeof(v3));
v1 = sub_10088E820("like_%i_%i_%i_%i", 0);
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v1);
std::string::assign(&v3, CString);
cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 800), *(_QWORD *)(a1 + 1512), (char *)&v3);
if ( (*(_BYTE *)&v3.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v3.__r_.__value_.__l.__data_);
}