// // MPLobbyLayer::joinLobbyFinished from 0x66a878 to 0x66aac0 (584 bytes) // // 1 xrefs: // > `non-virtual thunk to'MPLobbyLayer::joinLobbyFinished @ 0x66aae4 // // 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:55:45 +0000 // int __fastcall MPLobbyLayer::joinLobbyFinished(MPLobbyLayer *this, const char *a2) { int v4; // r0 cocos2d::CCArray *v5; // r9 unsigned int v6; // r5 cocos2d::CCString *v7; // r0 const char *CString; // r6 size_t v9; // r0 int v10; // r0 int v11; // r7 const char *v12; // r11 int v13; // r1 char *v14; // r2 char *v15; // r10 int v16; // r3 cocos2d::CCString *v17; // r0 unsigned int v18; // r0 unsigned int v19; // r10 int v20; // r7 unsigned int v21; // r3 char *v22; // r11 int v23; // r7 char *v24; // r1 int v25; // r5 void (__fastcall *v26)(int, int); // r7 cocos2d::CCString *v27; // r0 int v28; // r0 float v29; // s15 const char *v31; // [sp+1Ch] [bp-30h] int v32; // [sp+24h] [bp-28h] BYREF int v33; // [sp+28h] [bp-24h] int v34; // [sp+2Ch] [bp-20h] BYREF int v35; // [sp+30h] [bp-1Ch] char *v36; // [sp+34h] [bp-18h] int v37; // [sp+38h] [bp-14h] BYREF int v38; // [sp+3Ch] [bp-10h] char *v39; // [sp+40h] [bp-Ch] *((_DWORD *)this + 84) = a2; v4 = GJMultiplayerManager::sharedState(this); v5 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey( *(cocos2d::CCDictionary **)(v4 + 272), *((_DWORD *)this + 84)); if ( v5 ) { v6 = 0; v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Game: %i", *((const char **)this + 84)); v34 = 0; v35 = 0; v36 = nullptr; CString = (const char *)cocos2d::CCString::getCString(v7); v9 = strlen(CString); std::string::__init(&v34, CString, v9); while ( v6 < cocos2d::CCArray::count(v5) ) { v10 = cocos2d::CCArray::objectAtIndex(v5, v6); v37 = 0; v38 = 0; v11 = v10; v39 = nullptr; v12 = *(const char **)(v10 + 296); if ( (*(_BYTE *)(v10 + 264) & 1) != 0 ) { std::string::__init(&v37, *(const void **)(v10 + 272), *(_DWORD *)(v10 + 268)); } else { v13 = *(_DWORD *)(v10 + 268); v14 = *(char **)(v10 + 272); v37 = *(_DWORD *)(v10 + 264); v38 = v13; v39 = v14; } if ( (v37 & 1) != 0 ) v15 = v39; else v15 = (char *)&v37 + 1; clock_gettime(0, (struct timespec *)&v32); v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"\n%i: %s - Last Action: %f", v12, v15, v16, ((double)v32 + (double)v33 / 1000000000.0 - *(double *)(v11 + 576)) / 1000.0); v31 = (const char *)cocos2d::CCString::getCString(v17); v18 = strlen(v31); v19 = v18; if ( (v34 & 1) != 0 ) { v20 = v35; v21 = (v34 & 0xFFFFFFFE) - 1; } else { v20 = (int)(unsigned __int8)v34 >> 1; v21 = 10; } if ( v21 - v20 < v18 ) { std::string::__grow_by_and_replace((int)&v34, v21, v20 + v18 - v21, v20, v20, 0, v18, v31); } else if ( v18 ) { if ( (v34 & 1) != 0 ) v22 = v36; else v22 = (char *)&v34 + 1; std::char_traits::copy(&v22[v20], v31, v18); v23 = v20 + v19; if ( (v34 & 1) != 0 ) v35 = v23; else LOBYTE(v34) = 2 * v23; v22[v23] = 0; } ++v6; std::string::~string((int)&v37); } if ( (v34 & 1) != 0 ) v24 = v36; else v24 = (char *)&v34 + 1; (*(void (__fastcall **)(_DWORD, char *, int))(**((_DWORD **)this + 85) + 464))( *((_DWORD *)this + 85), v24, (unsigned __int8)v34 << 31); std::string::~string((int)&v34); } else { v25 = *((_DWORD *)this + 85); v26 = *(void (__fastcall **)(int, int))(*(_DWORD *)v25 + 464); v27 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"MPLobbyLayer::joinLobbyFinished: %i", a2); v28 = cocos2d::CCString::getCString(v27); v26(v25, v28); } *((_BYTE *)this + 360) = 0; (*(void (__fastcall **)(MPLobbyLayer *))(*(_DWORD *)this + 584))(this); if ( *((_BYTE *)this + 360) ) { *((_DWORD *)this + 89) = 0x40000000; } else { v29 = *((float *)this + 89) + 0.5; if ( v29 > 10.0 ) v29 = 10.0; *((float *)this + 89) = v29; } return MPLobbyLayer::updateLobby(this, *((cocos2d::CCDelayTime **)this + 89)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source