// // MPLobbyLayer::joinLobbyFinished from 0xb05de8 to 0xb06160 (888 bytes) // // 3 xrefs: // > `non-virtual thunk to'MPLobbyLayer::joinLobbyFinished @ 0xb06174 // > @ 0x87ac0 // > @ 0x14b1190 // // 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:24 +0000 // __int64 __fastcall MPLobbyLayer::joinLobbyFinished(MPLobbyLayer *this, unsigned int a2) { __int64 v4; // x0 cocos2d::CCArray *v5; // x25 unsigned int v6; // w22 cocos2d::CCString *v7; // x0 const char *v8; // x0 size_t v9; // x0 __int64 v10; // x20 char v11; // w0 unsigned int v12; // w26 __int64 v13; // x0 __int64 v14; // x1 char *v15; // x21 cocos2d::CCString *v16; // x0 const char *v17; // x21 unsigned __int64 v18; // x0 size_t v19; // x26 size_t v20; // x20 unsigned __int64 v21; // x1 char *v22; // x28 char *v23; // x0 size_t v24; // x20 char *v25; // x1 __int64 v26; // x1 float v27; // s0 const char *v29; // x1 __int64 v30; // x20 void (__fastcall *v31)(__int64, __int64); // x19 cocos2d::CCString *v32; // x0 __int64 CString; // x0 char *v34; // [xsp+70h] [xbp+70h] __int64 v36; // [xsp+88h] [xbp+88h] BYREF __int64 v37; // [xsp+90h] [xbp+90h] __int64 v38; // [xsp+98h] [xbp+98h] BYREF size_t v39; // [xsp+A0h] [xbp+A0h] void *v40; // [xsp+A8h] [xbp+A8h] __int64 v41; // [xsp+B0h] [xbp+B0h] BYREF __int64 v42; // [xsp+B8h] [xbp+B8h] void *v43; // [xsp+C0h] [xbp+C0h] *((_DWORD *)this + 112) = a2; v4 = GJMultiplayerManager::sharedState(_stack_chk_guard); v5 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey( *(cocos2d::CCDictionary **)(v4 + 336), *((int *)this + 112)); if ( !v5 ) { v29 = (const char *)a2; v30 = *((_QWORD *)this + 57); v31 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v30 + 928LL); v32 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"MPLobbyLayer::joinLobbyFinished: %i", v29); CString = cocos2d::CCString::getCString(v32); v31(v30, CString); goto LABEL_26; } v6 = 0; v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Game: %i", (const char *)*((unsigned int *)this + 112)); v8 = (const char *)cocos2d::CCString::getCString(v7); v38 = 0; v34 = (char *)v8; v39 = 0; v40 = nullptr; v9 = strlen(v8); std::string::__init(&v38, v34, v9); while ( v6 < (unsigned int)cocos2d::CCArray::count(v5) ) { v10 = cocos2d::CCArray::objectAtIndex(v5, v6); v11 = *(_BYTE *)(v10 + 320); v41 = 0; v42 = 0; v43 = nullptr; v12 = *(_DWORD *)(v10 + 376); if ( (v11 & 1) != 0 ) { std::string::__init(&v41, *(void **)(v10 + 336), *(_QWORD *)(v10 + 328)); } else { v13 = *(_QWORD *)(v10 + 320); v14 = *(_QWORD *)(v10 + 328); v43 = *(void **)(v10 + 336); v41 = v13; v42 = v14; } v15 = (char *)&v41 + 1; if ( (v41 & 1) != 0 ) v15 = (char *)v43; clock_gettime(0, (struct timespec *)&v36); v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"\n%i: %s - Last Action: %f", (const char *)v12, v15, ((double)v36 + (double)v37 / 1000000000.0 - *(double *)(v10 + 752)) / 1000.0); v17 = (const char *)cocos2d::CCString::getCString(v16); v18 = strlen(v17); v19 = v18; if ( (v38 & 1) != 0 ) { v20 = v39; v21 = (v38 & 0xFFFFFFFFFFFFFFFELL) - 1; if ( v18 > v21 - v39 ) goto LABEL_19; } else { v20 = (unsigned __int8)v38 >> 1; v21 = 22; if ( v18 > 22 - v20 ) { LABEL_19: std::string::__grow_by_and_replace((__int64)&v38, v21, v20 + v18 - v21, v20, v20, 0, v18, v17); goto LABEL_16; } } if ( v18 ) { v22 = (char *)&v38 + 1; if ( (v38 & 1) != 0 ) v22 = (char *)v40; v23 = &v22[v20]; v24 = v20 + v19; memcpy(v23, v17, v19); if ( (v38 & 1) != 0 ) v39 = v24; else LOBYTE(v38) = 2 * v24; v22[v24] = 0; } LABEL_16: ++v6; if ( (v41 & 1) != 0 ) operator delete(v43); } v25 = (char *)&v38 + 1; if ( (v38 & 1) != 0 ) v25 = (char *)v40; (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 57) + 928LL))(*((_QWORD *)this + 57), v25); if ( (v38 & 1) != 0 ) operator delete(v40); LABEL_26: v26 = *(_QWORD *)this; *((_BYTE *)this + 492) = 0; (*(void (__fastcall **)(MPLobbyLayer *))(v26 + 1168))(this); if ( *((_BYTE *)this + 492) ) { v27 = 2.0; *((float *)this + 122) = 2.0; } else { v27 = *((float *)this + 122) + 0.5; if ( v27 > 10.0 ) v27 = 10.0; *((float *)this + 122) = v27; } MPLobbyLayer::updateLobby(this, v27); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source