// // GameLevelManager::onLikeItemCompleted from 0x4c3504 to 0x4c35f6 (242 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x4da94a // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:50:25 +0000 // GameStatsManager *__fastcall GameLevelManager::onLikeItemCompleted(GameLevelManager *a1, unsigned __int8 *a2, int a3) { const char *v5; // r4 int v6; // r9 int v7; // r2 int v8; // r3 const char *v9; // r11 int v10; // r2 int v11; // r3 GameStatsManager *result; // r0 cocos2d::CCDictionary *v13; // r3 size_t v14; // r0 GameStatsManager *v15; // r0 int v16; // [sp+0h] [bp-1Ch] _BOOL4 v17; // [sp+4h] [bp-18h] cocos2d::CCDictionary *v18; // [sp+4h] [bp-18h] int v19; // [sp+8h] [bp-14h] BYREF int v20; // [sp+Ch] [bp-10h] int v21; // [sp+10h] [bp-Ch] if ( (*(_BYTE *)a3 & 1) != 0 ) v5 = *(const char **)(a3 + 8); else v5 = (const char *)(a3 + 1); v6 = GameLevelManager::typeFromLikeKey(a1, v5, a3, (int)&_stack_chk_guard); v9 = (const char *)GameLevelManager::itemIDFromLikeKey(a1, v5, v7, v8); v19 = 0; v20 = 0; v21 = 0; v16 = GameLevelManager::likeFromLikeKey(a1, v5, v10, v11); std::string::__init(&v19, "-1", 2u); v17 = sub_4A9CC4(a2, (unsigned __int8 *)&v19); result = (GameStatsManager *)std::string::~string((int)&v19); if ( v17 ) { v13 = *((cocos2d::CCDictionary **)a1 + 141); v19 = 0; v20 = 0; v18 = v13; v21 = 0; v14 = strlen(v5); std::string::__init(&v19, v5, v14); cocos2d::CCDictionary::removeObjectForKey(v18); result = (GameStatsManager *)std::string::~string((int)&v19); if ( v6 == 1 ) { result = (GameStatsManager *)GameLevelManager::getSavedLevel(a1, v9); if ( result ) { if ( v16 ) --*((_DWORD *)result + 179); else --*((_DWORD *)result + 180); } } } else if ( v6 == 1 ) { v15 = (GameStatsManager *)GameStatsManager::sharedState(result); return (GameStatsManager *)GameStatsManager::incrementStat(v15, "10"); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source