// // MessageThreadsPage::applyThreadList from 0x75119c to 0x751468 (716 bytes) // // 1 xrefs: // > MessageThreadsPage::threadListFinished @ 0x755656 // // 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:58:51 +0000 // GameLevelManager *__fastcall MessageThreadsPage::applyThreadList( MessageThreadsPage *this, cocos2d::CCArray *a2, int a3, int a4, int a5, bool a6) { int v10; // r5 int v12; // r8 int v13; // r10 int v14; // r3 float v15; // s16 float v16; // s16 signed int v17; // r8 int v18; // r0 int v19; // r0 int v20; // s16 _DWORD *v21; // r0 cocos2d::CCObject *v22; // r0 cocos2d::CCArray *v23; // r1 MessageThreadsPage *v24; // r0 int v25; // r1 GameLevelManager *v26; // r0 const char *v27; // r6 int v28; // r3 int v29; // r8 int v30; // r3 size_t v31; // r0 int *v32; // r6 int v33; // r3 void (__fastcall *v34)(int *, int); // r8 cocos2d::CCString *v35; // r0 int CString; // r0 cocos2d::CCArray *v37; // [sp+4h] [bp-20h] _DWORD *v38; // [sp+Ch] [bp-18h] int v39[3]; // [sp+10h] [bp-14h] BYREF if ( !a2 || (v10 = cocos2d::CCArray::count(a2)) == 0 ) { if ( a3 > 0 && a4 >= a3 && a5 > 0 ) return MessageThreadsPage::loadPage(this, (a3 - 1) / a5, 0); v10 = 0; } if ( a6 && (v14 = *((_DWORD *)this + 166)) != 0 && *((_DWORD *)this + 147) && a2 && (v15 = *(float *)((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(*(_DWORD *)(v14 + 324) + 364) + 96))(*(_DWORD *)(*(_DWORD *)(v14 + 324) + 364)) + 4), v16 = v15 - CCScrollLayerExt::getMinY(*(CCScrollLayerExt **)(*((_DWORD *)this + 166) + 324)), v16 >= 24.0) ) { v17 = 0; v18 = *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 166) + 324) + 364); v19 = (*(int (__fastcall **)(int))(*(_DWORD *)v18 + 96))(v18); v37 = *((cocos2d::CCArray **)this + 147); v13 = *(_DWORD *)(v19 + 4); v20 = (int)ceilf(v16 / *(float *)(*((_DWORD *)this + 166) + 344)); while ( v17 < v20 && v17 < cocos2d::CCArray::count(v37) && v17 < cocos2d::CCArray::count(a2) ) { v38 = (_DWORD *)cocos2d::CCArray::objectAtIndex(v37, v17); v21 = (_DWORD *)cocos2d::CCArray::objectAtIndex(a2, v17); if ( v38[13] != v21[13] || v38[21] != v21[21] || v38[22] != v21[22] ) { v12 = 1; goto LABEL_23; } ++v17; } v12 = 0; } else { v12 = 0; v13 = 0; } LABEL_23: (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 134) + 172))(*((_DWORD *)this + 134), 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 138) + 172))(*((_DWORD *)this + 138), 1); *((_DWORD *)this + 154) = a3; if ( a5 > 0 ) *((_DWORD *)this + 151) = a4 / a5; MessageThreadsPage::updatePageArrows(this, a3, a4, v10); if ( a2 ) cocos2d::CCObject::retain(a2); v22 = *((cocos2d::CCObject **)this + 147); if ( v22 ) cocos2d::CCObject::release(v22); *((_DWORD *)this + 147) = a2; MessageThreadsPage::updateSelectUI((GJSelectionStrip **)this); if ( v10 <= 0 ) v23 = nullptr; else v23 = a2; MessageThreadsPage::setupThreadBrowser((cocos2d::CCMenu **)this, v23, v13); if ( v12 ) { v24 = this; v25 = 1; LABEL_36: MessageThreadsPage::setActivityAbove(v24, v25); goto LABEL_37; } if ( !a6 ) { v24 = this; v25 = 0; goto LABEL_36; } LABEL_37: v26 = (GameLevelManager *)(*(int (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 135) + 172))( *((_DWORD *)this + 135), v10 == 0); if ( !v10 ) { if ( *(int *)(GameLevelManager::sharedState(v26) + 348) <= 0 ) v27 = "No messages yet\nOld messages are in Legacy\nPress New to start one"; else v27 = "No messages yet\nYou have a pending request\nCheck the Invites button"; v28 = *((unsigned __int8 *)this + 592); v29 = *((_DWORD *)this + 135); if ( (v28 & 1) != 0 ) v30 = *((_DWORD *)this + 149); else v30 = v28 >> 1; if ( v30 || *((_DWORD *)this + 155) || (*(int (__fastcall **)(MessageThreadsPage *))(*(_DWORD *)this + 684))(this) ) v27 = "Nothing found"; memset(v39, 0, sizeof(v39)); v31 = strlen(v27); std::string::__init(v39, v27, v31); TextArea::setString(v29, v39); std::string::~string((int)v39); } v32 = *((int **)this + 146); v33 = *v32; if ( a3 <= 0 || v10 <= 0 ) { (*(void (__fastcall **)(_DWORD, void *))(v33 + 464))(*((_DWORD *)this + 146), &unk_B6B226); } else { v34 = *(void (__fastcall **)(int *, int))(v33 + 464); v35 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i to %i of %i", (const char *)(a4 + 1), a4 + v10, a3); CString = cocos2d::CCString::getCString(v35); v34(v32, CString); } MessageThreadsPage::updateInviteButton((cocos2d::CCLabelBMFont **)this); return MessageThreadsPage::refetchIfQueued(this); }
GD Web Decomp Icon

GD Web Decomp

Raw Source