// // MessageThreadsPage::applyThreadList from 0xc76844 to 0xc76c68 (1060 bytes) // // 2 xrefs: // > MessageThreadsPage::threadListFinished @ 0xc7c414 // > @ 0x9ff58 // // 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:33 +0000 // __int64 __fastcall MessageThreadsPage::applyThreadList( MessageThreadsPage *this, cocos2d::CCArray *a2, int a3, int a4, int a5, unsigned __int8 a6) { int v11; // w23 _BOOL4 v12; // w27 float v13; // s8 signed int v14; // w24 cocos2d::CCObject *v15; // x0 cocos2d::CCArray *v16; // x1 GameLevelManager *v17; // x0 __int64 v18; // x20 __int64 v19; // x3 void (__fastcall *v20)(__int64, __int64); // x21 cocos2d::CCString *v21; // x0 __int64 CString; // x0 __int64 v24; // x0 float v25; // s9 float v26; // s9 __int64 v27; // x0 const char *v28; // x20 __int64 *v29; // x24 __int64 v30; // x1 const char *v31; // x1 size_t v32; // x0 __int64 v33; // x0 int v34; // [xsp+74h] [xbp+74h] __int64 v35; // [xsp+78h] [xbp+78h] cocos2d::CCArray *v36; // [xsp+80h] [xbp+80h] int v37; // [xsp+88h] [xbp+88h] char *v38; // [xsp+88h] [xbp+88h] __int64 v39[2]; // [xsp+90h] [xbp+90h] BYREF void *v40; // [xsp+A0h] [xbp+A0h] v37 = a6; if ( a2 ) { v11 = cocos2d::CCArray::count(a2); v12 = v11 == 0; } else { v12 = 1; v11 = 0; } if ( a3 > 0 && v12 && a4 >= a3 && a5 > 0 ) { MessageThreadsPage::loadPage(this, (a3 - 1) / a5, 0); } else { if ( v37 && (v24 = *((_QWORD *)this + 117)) != 0 && a2 && *((_QWORD *)this + 100) && (v25 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(v24 + 424) + 488LL) + 192LL))(*(_QWORD *)(*(_QWORD *)(v24 + 424) + 488LL)) + 4), v26 = v25 - CCScrollLayerExt::getMinY(*(CCScrollLayerExt **)(*((_QWORD *)this + 117) + 424LL)), v26 >= 24.0) ) { v14 = 0; v27 = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 117) + 424LL) + 488LL); v13 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 192LL))(v27) + 4); v36 = *((cocos2d::CCArray **)this + 100); v34 = vcvtps_s32_f32(v26 / *(float *)(*((_QWORD *)this + 117) + 452LL)); if ( v34 > 0 ) { while ( 1 ) { if ( (int)cocos2d::CCArray::count(v36) <= v14 || (int)cocos2d::CCArray::count(a2) <= v14 ) { v14 = 0; goto LABEL_9; } v35 = cocos2d::CCArray::objectAtIndex(v36, v14); v33 = cocos2d::CCArray::objectAtIndex(a2, v14); if ( *(_DWORD *)(v35 + 56) != *(_DWORD *)(v33 + 56) || *(_QWORD *)(v35 + 112) != *(_QWORD *)(v33 + 112) ) break; if ( ++v14 == v34 ) { v14 = 0; goto LABEL_9; } } v14 = 1; } } else { v13 = 0.0; v14 = 0; } LABEL_9: (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 87) + 344LL))(*((_QWORD *)this + 87), 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 91) + 344LL))(*((_QWORD *)this + 91), 1); *((_DWORD *)this + 211) = a3; if ( a5 > 0 ) *((_DWORD *)this + 208) = a4 / a5; MessageThreadsPage::updatePageArrows(this, a3, a4, v11); if ( a2 ) cocos2d::CCObject::retain(a2); v15 = *((cocos2d::CCObject **)this + 100); if ( v15 ) cocos2d::CCObject::release(v15); *((_QWORD *)this + 100) = a2; MessageThreadsPage::updateSelectUI((GJSelectionStrip **)this); if ( v11 <= 0 ) v16 = nullptr; else v16 = a2; MessageThreadsPage::setupThreadBrowser(this, v16, v13); if ( v14 ) { MessageThreadsPage::setActivityAbove(this, 1u); } else if ( !v37 ) { MessageThreadsPage::setActivityAbove(this, 0); } v17 = (GameLevelManager *)(*(__int64 (__fastcall **)(_QWORD, _BOOL4))(**((_QWORD **)this + 88) + 344LL))( *((_QWORD *)this + 88), v12); if ( v12 ) { if ( *(int *)(GameLevelManager::sharedState(v17) + 476) <= 0 ) v28 = "No messages yet\nOld messages are in Legacy\nPress New to start one"; else v28 = "No messages yet\nYou have a pending request\nCheck the Invites button"; v29 = *((__int64 **)this + 88); v30 = *((_BYTE *)this + 808) >> 1; if ( (*((_BYTE *)this + 808) & 1) != 0 ) v30 = *((_QWORD *)this + 102); if ( v30 || *((_DWORD *)this + 212) || (*(unsigned int (__fastcall **)(MessageThreadsPage *))(*(_QWORD *)this + 1368LL))(this) ) { v31 = "Nothing found"; } else { v31 = v28; } v38 = (char *)v31; v39[0] = 0; v39[1] = 0; v40 = nullptr; v32 = strlen(v31); std::string::__init(v39, v38, v32); TextArea::setString(v29, (char *)v39); if ( (v39[0] & 1) != 0 ) operator delete(v40); } if ( v11 <= 0 || a3 <= 0 ) { (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 99) + 928LL))(*((_QWORD *)this + 99), &byte_11B8890); } else { v18 = *((_QWORD *)this + 99); v19 = (unsigned int)a3; v20 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 928LL); v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i to %i of %i", (const char *)(unsigned int)(a4 + 1), (unsigned int)(v11 + a4), v19); CString = cocos2d::CCString::getCString(v21); v20(v18, CString); } MessageThreadsPage::updateInviteButton(this); MessageThreadsPage::refetchIfQueued((__int64)this); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source