// // GJMultiplayerManager::onJoinLobbyCompleted from 0xac5b80 to 0xac6190 (1552 bytes) // // 2 xrefs: // > GJMultiplayerManager::handleIt @ 0xac6318 // > @ 0x96988 // // 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 13:01:07 +0000 // __int64 __fastcall GJMultiplayerManager::onJoinLobbyCompleted( cocos2d::CCDictionary **this, unsigned __int8 *a2, char *a3) { const char *v5; // x3 const char *v6; // x0 unsigned int v7; // w22 _BOOL4 v8; // w20 __int64 v9; // x0 cocos2d::CCString *v11; // x0 const char *CString; // x0 size_t v13; // x0 cocos2d::CCString *v14; // x0 cocos2d::CCArray *v15; // x0 cocos2d::CCString *v16; // x0 size_t v17; // x0 cocos2d::CCArray *v18; // x24 unsigned int i; // w20 cocos2d::CCString *v20; // x0 const char *v21; // x0 size_t v22; // x0 cocos2d::CCArray *v23; // x23 cocos2d::CCString *v24; // x0 int v25; // w28 cocos2d::CCString *v26; // x0 size_t v27; // x0 cocos2d::CCString *v28; // x0 GJUserScore *v29; // x0 int v30; // w23 __int64 v31; // x0 __int64 v32; // x25 char *v33; // x1 size_t v34; // x2 void (__fastcall ***v35)(_QWORD, _QWORD); // x0 cocos2d::CCString *v36; // x0 size_t v37; // x0 cocos2d::CCArray *v38; // x22 unsigned int j; // w20 cocos2d::CCString *v40; // x0 const char *v41; // x0 size_t v42; // x0 cocos2d::CCArray *v43; // [xsp+70h] [xbp+70h] int v44; // [xsp+7Ch] [xbp+7Ch] cocos2d::CCObject *v45; // [xsp+80h] [xbp+80h] char *v47; // [xsp+88h] [xbp+88h] char *v48; // [xsp+88h] [xbp+88h] char *v49; // [xsp+88h] [xbp+88h] char *v50; // [xsp+88h] [xbp+88h] char *v51; // [xsp+88h] [xbp+88h] char *v52; // [xsp+88h] [xbp+88h] __int64 v53; // [xsp+90h] [xbp+90h] BYREF __int64 v54; // [xsp+98h] [xbp+98h] __int64 v55[2]; // [xsp+A0h] [xbp+A0h] BYREF void *v56; // [xsp+B0h] [xbp+B0h] __int64 v57[2]; // [xsp+B8h] [xbp+B8h] BYREF void *v58; // [xsp+C8h] [xbp+C8h] __int64 v59; // [xsp+D0h] [xbp+D0h] BYREF __int64 v60; // [xsp+D8h] [xbp+D8h] void *v61; // [xsp+E0h] [xbp+E0h] __int64 v62; // [xsp+E8h] [xbp+E8h] BYREF size_t v63; // [xsp+F0h] [xbp+F0h] void *v64; // [xsp+F8h] [xbp+F8h] __int64 v65; // [xsp+100h] [xbp+100h] BYREF size_t v66; // [xsp+108h] [xbp+108h] void *v67; // [xsp+110h] [xbp+110h] v5 = a3 + 1; if ( (*a3 & 1) != 0 ) v5 = *((const char **)a3 + 2); GJMultiplayerManager::removeDLFromActive((GJMultiplayerManager *)this, v5); v6 = a3 + 1; if ( (*a3 & 1) != 0 ) v6 = *((const char **)a3 + 2); v7 = atoi(v6); v65 = 0; v66 = 0; v67 = nullptr; std::string::__init(&v65, &word_117CE08, 2u); v8 = sub_AC471C((__int64)a2, (__int64)&v65); if ( (v65 & 1) != 0 ) { operator delete(v67); if ( v8 ) goto LABEL_7; } else if ( v8 ) { goto LABEL_7; } v43 = sub_AC4F6C(a2, "#"); if ( (unsigned int)cocos2d::CCArray::count(v43) <= 2 ) { LABEL_7: v9 = (__int64)*(this + 44); if ( v9 ) (*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v9 + 8LL))(v9, v7, 0); return _stack_chk_guard; } v11 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v43, 0); CString = (const char *)cocos2d::CCString::getCString(v11); v55[0] = 0; v47 = (char *)CString; v55[1] = 0; v56 = nullptr; v13 = strlen(CString); std::string::__init(v55, v47, v13); v14 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v43, 1u); v15 = (cocos2d::CCArray *)cocos2d::CCString::intValue(v14); v44 = (int)v15; v45 = (cocos2d::CCObject *)cocos2d::CCArray::create(v15); v16 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v43, 2u); v48 = (char *)cocos2d::CCString::getCString(v16); v57[0] = 0; v57[1] = 0; v58 = nullptr; v17 = strlen(v48); std::string::__init(v57, v48, v17); v18 = sub_AC4F6C((unsigned __int8 *)v57, ";"); for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v18); ++i ) { v20 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v18, i); v21 = (const char *)cocos2d::CCString::getCString(v20); v59 = 0; v60 = 0; v61 = nullptr; v49 = (char *)v21; v22 = strlen(v21); std::string::__init(&v59, v49, v22); v23 = sub_AC4F6C((unsigned __int8 *)&v59, &byte_1169BE0); if ( (unsigned int)cocos2d::CCArray::count(v23) > 2 ) { v24 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v23, 0); v25 = cocos2d::CCString::intValue(v24); v26 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v23, 1u); v50 = (char *)cocos2d::CCString::getCString(v26); v65 = 0; v66 = 0; v67 = nullptr; v27 = strlen(v50); std::string::__init(&v65, v50, v27); v28 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v23, 2u); v29 = (GJUserScore *)cocos2d::CCString::intValue(v28); v30 = (int)v29; v31 = GJUserScore::create(v29); *(_DWORD *)(v31 + 376) = v25; v32 = v31; v62 = 0; v63 = 0; v64 = nullptr; if ( (v65 & 1) != 0 ) { std::string::__init(&v62, v67, v66); } else { v64 = v67; v62 = v65; v63 = v66; } if ( (__int64 *)(v32 + 320) != &v62 ) { if ( (v62 & 1) != 0 ) { v33 = (char *)v64; v34 = v63; } else { v34 = (unsigned __int8)v62 >> 1; v33 = (char *)&v62 + 1; } std::string::assign((__int64 *)(v32 + 320), v33, v34); } if ( (v62 & 1) != 0 ) operator delete(v64); clock_gettime(0, (struct timespec *)&v53); *(double *)(v32 + 752) = (double)v53 + (double)v54 / 1000000000.0 - (float)((float)v30 * 1000.0); cocos2d::CCDictionary::setObject(*(this + 41), (cocos2d::CCObject *)v32, v25); cocos2d::CCArray::addObject(v45, (cocos2d::CCObject *)v32); if ( (v65 & 1) != 0 ) operator delete(v67); } if ( (v59 & 1) != 0 ) operator delete(v61); } cocos2d::CCDictionary::setObject(*(this + 42), v45, v44); if ( (unsigned int)cocos2d::CCArray::count(v43) <= 3 ) goto LABEL_30; v36 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v43, 3u); v51 = (char *)cocos2d::CCString::getCString(v36); v59 = 0; v60 = 0; v61 = nullptr; v37 = strlen(v51); std::string::__init(&v59, v51, v37); if ( (v59 & 1) == 0 ) { if ( !((int)(unsigned __int8)v59 >> 1) ) goto LABEL_30; goto LABEL_40; } if ( v60 ) { LABEL_40: v38 = sub_AC4F6C((unsigned __int8 *)&v59, "|"); for ( j = 0; j < (unsigned int)cocos2d::CCArray::count(v38); ++j ) { v40 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v38, j); v41 = (const char *)cocos2d::CCString::getCString(v40); v62 = 0; v63 = 0; v64 = nullptr; v52 = (char *)v41; v42 = strlen(v41); std::string::__init(&v62, v52, v42); v65 = 0; v66 = 0; v67 = nullptr; if ( (v62 & 1) != 0 ) { std::string::__init(&v65, v64, v63); } else { v67 = v64; v65 = v62; v66 = v63; } GJMultiplayerManager::addComment((__int64)this, (char *)&v65, v44); if ( (v65 & 1) != 0 ) operator delete(v67); if ( (v62 & 1) != 0 ) operator delete(v64); } if ( (v59 & 1) == 0 ) goto LABEL_30; } operator delete(v61); LABEL_30: v35 = (void (__fastcall ***)(_QWORD, _QWORD))*(this + 44); if ( v35 ) (**v35)(v35, (unsigned int)v44); if ( (v57[0] & 1) != 0 ) operator delete(v58); if ( (v55[0] & 1) != 0 ) operator delete(v56); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source