// // GameLevelManager::onGetLevelCommentsCompleted from 0x84b010 to 0x84b488 (1144 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x85c3b8 // > @ 0x6f460 // // This function is hookable on this platform (idp: arm, 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:55:23 +0000 // __int64 __fastcall GameLevelManager::onGetLevelCommentsCompleted(__int64 **this, __int64 a2, char *a3) { char *v5; // x19 int v6; // w25 size_t v7; // x0 cocos2d::CCArray *v8; // x23 int v9; // w26 _BOOL4 v10; // w23 const char *v11; // x1 size_t v12; // x0 cocos2d::CCArray *v13; // x23 cocos2d::CCString *v14; // x0 const char *v15; // x0 size_t v16; // x0 cocos2d::CCString *v17; // x0 size_t v18; // x0 __int64 *v19; // x23 __int64 v20; // x1 void (__fastcall *v21)(__int64 *, __int64 *, char *); // x28 cocos2d::CCObject *LevelComments; // x23 void (__fastcall ***v23)(_QWORD, cocos2d::CCObject *, char *); // x0 __int64 v24; // x0 cocos2d::CCString *v26; // x0 const char *CString; // x0 char *v28; // [xsp+68h] [xbp+68h] char *v29; // [xsp+68h] [xbp+68h] char *v30; // [xsp+68h] [xbp+68h] __int64 v31; // [xsp+70h] [xbp+70h] BYREF size_t v32; // [xsp+78h] [xbp+78h] void *v33; // [xsp+80h] [xbp+80h] __int64 v34; // [xsp+88h] [xbp+88h] BYREF size_t v35; // [xsp+90h] [xbp+90h] void *v36; // [xsp+98h] [xbp+98h] __int64 v37; // [xsp+A0h] [xbp+A0h] BYREF size_t v38; // [xsp+A8h] [xbp+A8h] void *v39; // [xsp+B0h] [xbp+B0h] __int64 v40; // [xsp+B8h] [xbp+B8h] BYREF size_t v41; // [xsp+C0h] [xbp+C0h] void *v42; // [xsp+C8h] [xbp+C8h] __int64 v43; // [xsp+D0h] [xbp+D0h] BYREF size_t v44; // [xsp+D8h] [xbp+D8h] void *v45; // [xsp+E0h] [xbp+E0h] v5 = a3 + 1; if ( (*a3 & 1) != 0 ) v5 = *((char **)a3 + 2); v6 = GameLevelManager::levelIDFromCommentKey((GameLevelManager *)this, v5); v43 = 0; v44 = 0; v45 = nullptr; v7 = strlen(v5); std::string::__init(&v43, v5, v7); v8 = sub_80CFCC((unsigned __int8 *)&v43, &byte_11528B0); if ( (v43 & 1) != 0 ) operator delete(v45); if ( v8 && (unsigned int)cocos2d::CCArray::count(v8) > 4 ) { v26 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v8, 4u); CString = (const char *)cocos2d::CCString::getCString(v26); v9 = atoi(CString); } else { v9 = 0; } GameLevelManager::removeDLFromActive((GameLevelManager *)this, v5); v43 = 0; v44 = 0; v45 = nullptr; std::string::__init(&v43, &word_117CE08, 2u); v10 = sub_7FEA60(a2, (__int64)&v43); if ( (v43 & 1) != 0 ) operator delete(v45); if ( !v10 ) { v11 = (const char *)(a2 + 1); if ( (*(_BYTE *)a2 & 1) != 0 ) v11 = *(const char **)(a2 + 16); v28 = (char *)v11; v43 = 0; v44 = 0; v45 = nullptr; v12 = strlen(v11); std::string::__init(&v43, v28, v12); v13 = sub_80CFCC((unsigned __int8 *)&v43, "#"); if ( (v43 & 1) != 0 ) { operator delete(v45); if ( (unsigned int)cocos2d::CCArray::count(v13) > 1 ) { LABEL_15: v14 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v13, 0); v15 = (const char *)cocos2d::CCString::getCString(v14); v31 = 0; v29 = (char *)v15; v32 = 0; v33 = nullptr; v16 = strlen(v15); std::string::__init(&v31, v29, v16); v17 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v13, 1u); v30 = (char *)cocos2d::CCString::getCString(v17); v34 = 0; v35 = 0; v36 = nullptr; v18 = strlen(v30); std::string::__init(&v34, v30, v18); v19 = *(this + 155); if ( v19 ) { v20 = *v19; v37 = 0; v38 = 0; v39 = nullptr; v21 = *(void (__fastcall **)(__int64 *, __int64 *, char *))(v20 + 24); if ( (v34 & 1) != 0 ) { std::string::__init(&v37, v36, v35); } else { v39 = v36; v37 = v34; v38 = v35; } v21(v19, &v37, v5); if ( (v37 & 1) != 0 ) operator delete(v39); } v40 = 0; v41 = 0; v42 = nullptr; if ( (v31 & 1) != 0 ) { std::string::__init(&v40, v33, v32); } else { v42 = v33; v40 = v31; v41 = v32; } LevelComments = GameLevelManager::createAndGetLevelComments(this, (char *)&v40, v6, v9); if ( (v40 & 1) != 0 ) operator delete(v42); v43 = 0; v44 = 0; v45 = nullptr; if ( (v34 & 1) != 0 ) { std::string::__init(&v43, v36, v35); } else { v45 = v36; v43 = v34; v44 = v35; } GameLevelManager::storeCommentsResult((GameLevelManager *)this, LevelComments, (__int64)&v43, v5); if ( (v43 & 1) != 0 ) operator delete(v45); v23 = (void (__fastcall ***)(_QWORD, cocos2d::CCObject *, char *))*(this + 155); if ( v23 ) (**v23)(v23, LevelComments, v5); if ( (v34 & 1) != 0 ) operator delete(v36); if ( (v31 & 1) != 0 ) operator delete(v33); return _stack_chk_guard; } } else if ( (unsigned int)cocos2d::CCArray::count(v13) > 1 ) { goto LABEL_15; } } v24 = (__int64)*(this + 155); if ( v24 ) (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v24 + 8LL))(v24, v5); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source