// // MemberListPopup::applyAddOutcome from 0xc7c568 to 0xc7cbc8 (1632 bytes) // // 3 xrefs: // > MemberListPopup::threadUpdateFinished @ 0xc7cddc // > ThreadViewPopup::threadUpdateFinished @ 0xc895c0 // > @ 0xcb620 // // 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:05:36 +0000 // __int64 __fastcall MemberListPopup::applyAddOutcome(MemberListPopup *this, GJMessageThread *a2) { GameLevelManager *v3; // x0 cocos2d::CCArray *v4; // x25 GameLevelManager *v5; // x0 cocos2d::CCArray *v6; // x19 cocos2d::CCArray *v7; // x22 int v8; // w23 int v9; // w21 int v10; // w24 unsigned __int64 v11; // x0 __int64 *v12; // x0 __int64 v13; // x5 __int64 v14; // x0 size_t v15; // x3 size_t v16; // x2 char *v17; // x1 __int64 *v18; // x0 __int64 v19; // x5 __int64 v20; // x0 size_t v21; // x3 size_t v22; // x2 char *v23; // x1 __int64 *v24; // x0 __int64 v25; // x5 __int64 v26; // x0 size_t v27; // x3 size_t v28; // x2 char *v29; // x1 const char *v30; // x1 size_t v31; // x0 __int64 v32; // x0 __int64 v34; // x19 cocos2d::CCString *v35; // x0 const char *CString; // x1 void (__fastcall *v37)(__int64, __int64, __int64); // x22 size_t v38; // x0 __int64 v39; // x0 char *v40; // [xsp+58h] [xbp+58h] char *v41; // [xsp+58h] [xbp+58h] _QWORD v42[2]; // [xsp+68h] [xbp+68h] BYREF void *v43; // [xsp+78h] [xbp+78h] void *v44[3]; // [xsp+80h] [xbp+80h] BYREF void *v45[3]; // [xsp+98h] [xbp+98h] BYREF void *v46[3]; // [xsp+B0h] [xbp+B0h] BYREF __int64 v47; // [xsp+C8h] [xbp+C8h] BYREF __int64 v48; // [xsp+D0h] [xbp+D0h] void *v49; // [xsp+D8h] [xbp+D8h] __int64 v50; // [xsp+E0h] [xbp+E0h] BYREF size_t v51; // [xsp+E8h] [xbp+E8h] void *v52; // [xsp+F0h] [xbp+F0h] v3 = (GameLevelManager *)GameLevelManager::sharedState(_stack_chk_guard); v4 = *((cocos2d::CCArray **)v3 + 86); v5 = (GameLevelManager *)GameLevelManager::sharedState(v3); v6 = *((cocos2d::CCArray **)v5 + 87); v7 = *(cocos2d::CCArray **)(GameLevelManager::sharedState(v5) + 704); if ( v4 ) { v8 = cocos2d::CCArray::count(v4); if ( v6 ) goto LABEL_3; LABEL_43: v9 = 0; if ( !v7 ) { v11 = (unsigned int)(*((_DWORD *)this + 42) + v8); *((_DWORD *)this + 42) = v11; goto LABEL_45; } goto LABEL_4; } v8 = 0; if ( !v6 ) goto LABEL_43; LABEL_3: v9 = cocos2d::CCArray::count(v6); if ( v7 ) { LABEL_4: v10 = cocos2d::CCArray::count(v7); goto LABEL_5; } v10 = 0; LABEL_5: v11 = v9 | (unsigned int)v10; *((_DWORD *)this + 42) += v8; if ( (_DWORD)v11 ) { v42[0] = 0; v42[1] = 0; v43 = nullptr; if ( v8 > 0 ) { sub_C76DB4(v4, v44); v12 = std::string::insert(v44, 0, "Added: "); v13 = v12[1]; v47 = *v12; v48 = v13; v49 = (void *)v12[2]; *v12 = 0; v12[1] = 0; v12[2] = 0; v14 = std::string::append((__int64)&v47, &byte_11AAA48); v15 = *(_QWORD *)(v14 + 8); v50 = *(_QWORD *)v14; v51 = v15; v52 = *(void **)(v14 + 16); *(_QWORD *)v14 = 0; *(_QWORD *)(v14 + 8) = 0; *(_QWORD *)(v14 + 16) = 0; if ( (v50 & 1) != 0 ) { v17 = (char *)v52; v16 = v51; } else { v16 = (unsigned __int8)v50 >> 1; v17 = (char *)&v50 + 1; } std::string::append((__int64)v42, v17, v16); if ( (v50 & 1) != 0 ) operator delete(v52); if ( (v47 & 1) != 0 ) operator delete(v49); if ( ((__int64)v44[0] & 1) != 0 ) operator delete(v44[2]); } if ( v9 <= 0 ) { if ( v10 <= 0 ) goto LABEL_33; } else { sub_C76DB4(v6, v45); v18 = std::string::insert(v45, 0, "Invited: "); v19 = v18[1]; v47 = *v18; v48 = v19; v49 = (void *)v18[2]; *v18 = 0; v18[1] = 0; v18[2] = 0; v20 = std::string::append((__int64)&v47, &byte_11AAA48); v21 = *(_QWORD *)(v20 + 8); v50 = *(_QWORD *)v20; v51 = v21; v52 = *(void **)(v20 + 16); *(_QWORD *)v20 = 0; *(_QWORD *)(v20 + 8) = 0; *(_QWORD *)(v20 + 16) = 0; if ( (v50 & 1) != 0 ) { v23 = (char *)v52; v22 = v51; } else { v22 = (unsigned __int8)v50 >> 1; v23 = (char *)&v50 + 1; } std::string::append((__int64)v42, v23, v22); if ( (v50 & 1) != 0 ) operator delete(v52); if ( (v47 & 1) != 0 ) operator delete(v49); if ( ((__int64)v45[0] & 1) != 0 ) operator delete(v45[2]); if ( v10 <= 0 ) goto LABEL_32; } sub_C76DB4(v7, v46); v24 = std::string::insert(v46, 0, "Unavailable: "); v25 = v24[1]; v47 = *v24; v48 = v25; v49 = (void *)v24[2]; *v24 = 0; v24[1] = 0; v24[2] = 0; v26 = std::string::append((__int64)&v47, &byte_11AAA48); v27 = *(_QWORD *)(v26 + 8); v50 = *(_QWORD *)v26; v51 = v27; v52 = *(void **)(v26 + 16); *(_QWORD *)v26 = 0; *(_QWORD *)(v26 + 8) = 0; *(_QWORD *)(v26 + 16) = 0; if ( (v50 & 1) != 0 ) { v29 = (char *)v52; v28 = v51; } else { v28 = (unsigned __int8)v50 >> 1; v29 = (char *)&v50 + 1; } std::string::append((__int64)v42, v29, v28); if ( (v50 & 1) != 0 ) operator delete(v52); if ( (v47 & 1) != 0 ) { operator delete(v49); if ( ((__int64)v46[0] & 1) == 0 ) goto LABEL_31; } else if ( ((__int64)v46[0] & 1) == 0 ) { goto LABEL_31; } operator delete(v46[2]); LABEL_31: if ( v9 <= 0 ) { LABEL_33: v30 = (char *)v42 + 1; if ( (v42[0] & 1) != 0 ) v30 = (const char *)v43; v40 = (char *)v30; v50 = 0; v51 = 0; v52 = nullptr; v31 = strlen(v30); std::string::__init(&v50, v40, v31); v32 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"Add Members", (char *)&v50, (ButtonSprite *)"OK", nullptr); (*(void (__fastcall **)(__int64))(*(_QWORD *)v32 + 1312LL))(v32); if ( (v50 & 1) != 0 ) operator delete(v52); if ( (v42[0] & 1) != 0 ) operator delete(v43); return _stack_chk_guard; } LABEL_32: std::string::append((__int64)v42, "\nInvited users join when they accept."); goto LABEL_33; } LABEL_45: v34 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v11) + 272); if ( v8 == 1 ) { CString = "Member added"; } else { v35 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i members added", (const char *)(unsigned int)v8); CString = (const char *)cocos2d::CCString::getCString(v35); } v41 = (char *)CString; v37 = *(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v34 + 464LL); v47 = 0; v48 = 0; v49 = nullptr; v38 = strlen(CString); std::string::__init(&v47, v41, v38); v50 = 0; v51 = 0; v52 = nullptr; std::string::__init(&v50, &byte_11B8890, 0); v39 = TextAlertPopup::create((char *)&v47, 150, (char *)&v50, 0.5, 0.6); v37(v34, v39, 1000); if ( (v50 & 1) != 0 ) operator delete(v52); if ( (v47 & 1) != 0 ) operator delete(v49); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source