// // GameLevelManager::onSuggestLevelStarsCompleted from 0x4c1f04 to 0x4c1ff0 (236 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x4dae5a // // 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:24 +0000 // int (***__fastcall GameLevelManager::onSuggestLevelStarsCompleted( GameLevelManager *a1, unsigned __int8 *a2, char *a3))(void) { cocos2d::CCDictionary *v5; // r9 char v6; // r1 const char *v7; // r5 size_t v8; // r0 _BOOL4 v9; // r5 _BOOL4 v10; // r8 GameManager *v11; // r0 GameManager *v12; // r0 int (***result)(void); // r0 int (*v14)(void); // r3 int v15; // [sp+0h] [bp-14h] BYREF int v16; // [sp+4h] [bp-10h] int v17; // [sp+8h] [bp-Ch] v5 = *((cocos2d::CCDictionary **)a1 + 187); v15 = 0; v6 = *a3; v16 = 0; v17 = 0; if ( (v6 & 1) != 0 ) v7 = *((const char **)a3 + 2); else v7 = a3 + 1; v8 = strlen(v7); std::string::__init(&v15, v7, v8); cocos2d::CCDictionary::removeObjectForKey(v5); std::string::~string((int)&v15); GameLevelManager::getSplitIntFromKey(a1, v7, 1u); v15 = 0; v16 = 0; v17 = 0; std::string::__init(&v15, "-1", 2u); v9 = sub_4A9CC4(a2, (unsigned __int8 *)&v15); std::string::~string((int)&v15); if ( v9 ) goto LABEL_7; v15 = 0; v16 = 0; v17 = 0; std::string::__init(&v15, "-2", 2u); v10 = sub_4A9CC4(a2, (unsigned __int8 *)&v15); v11 = (GameManager *)std::string::~string((int)&v15); if ( v10 ) { v12 = (GameManager *)GameManager::sharedState(v11); GameManager::setHasRatingPower(v12, 0); LABEL_7: result = *((int (****)(void))a1 + 222); if ( !result ) return result; v14 = (*result)[1]; return (int (***)(void))v14(); } result = *((int (****)(void))a1 + 222); if ( !result ) return result; v14 = **result; return (int (***)(void))v14(); }
GD Web Decomp Icon

GD Web Decomp

Raw Source