// // GameLevelManager::markItemAsLiked from 0x140164c10 to 0x140164d80 (368 bytes) // // 2 xrefs: // > GameLevelManager::likeItem @ 0x140163d29 // > @ 0x1406cac98 // // 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 // // Hidden C++ exception states: #wind=2 void GameLevelManager::markItemAsLiked(GameLevelManager *a1, LikeItemType a2, int a3, bool a4, int a5) { BOOL v5; // esi cocos2d::CCString *v9; // rax char *CString; // rax size_t v11; // r8 cocos2d::CCString *v12; // rax void *v13; // rcx void *Block[2]; // [rsp+30h] [rbp-78h] BYREF __m128i si128; // [rsp+40h] [rbp-68h] _BYTE v16[32]; // [rsp+50h] [rbp-58h] BYREF v5 = a4; if ( cocos2d::CCDictionary::count(a1->m_likedLevels) >= 0x3E8 ) { cocos2d::CCDictionary::getFirstKey(a1->m_likedLevels, v16); cocos2d::CCDictionary::removeObjectForKey(a1->m_likedLevels, v16); sub_14003A830((__int64)v16); } *(_OWORD *)Block = 0; si128 = _mm_load_si128((const __m128i *)&xmmword_140623F30); LOBYTE(Block[0]) = 0; if ( a2 == AccountComment ) { v9 = cocos2d::CCString::createWithFormat("like_%i_%i_%i_%i", 3, a3, v5, a5); CString = (char *)cocos2d::CCString::getCString(v9); v11 = -1; do ++v11; while ( CString[v11] ); } else { v12 = cocos2d::CCString::createWithFormat("like_%i_%i_%i_%i", a2, a3, v5, a5); CString = (char *)cocos2d::CCString::getCString(v12); v11 = -1; do ++v11; while ( CString[v11] ); } sub_14003CCE0(Block, CString, v11); cocos2d::CCDictionary::setObject(a1->m_likedLevels, a1->m_trueString, Block); if ( si128.m128i_i64[1] > 0xFuLL ) { v13 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v13 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v13 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v13); } }