// // ThreadViewPopup::threadSearchFinished from 0x75d484 to 0x75d866 (994 bytes) // // 1 xrefs: // > `non-virtual thunk to'ThreadViewPopup::threadSearchFinished @ 0x75d8ac // // 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:59:01 +0000 // void __fastcall ThreadViewPopup::threadSearchFinished(ThreadViewPopup *this, int a2, cocos2d::CCArray *a3, bool a4) { int v7; // r3 cocos2d::CCNode **v9; // r0 cocos2d::CCNode **v10; // r9 cocos2d::CCArray *v11; // r0 _BOOL4 v12; // r8 cocos2d::CCObject *v13; // r0 int v14; // r0 int v15; // r0 int v16; // r0 int v17; // r0 int v18; // r0 int v19; // r0 const char *v20; // r2 int v21; // r0 int v22; // r11 int v23; // r0 ButtonSprite *v24; // r0 int v25; // r0 int v26; // r10 int v27; // r0 void (__fastcall *v28)(int, int); // r6 int v29; // r0 int v30; // r0 signed int k; // r6 signed int v32; // r10 cocos2d::CCArray *v33; // r6 cocos2d::CCObject *v34; // lr __int64 v35; // r0 signed int i; // r5 bool v37; // cc cocos2d::CCArray *v38; // r0 unsigned int v39; // r1 cocos2d::CCObject *v40; // r0 signed int j; // r5 cocos2d::CCArray *v42; // r9 cocos2d::CCObject *v43; // r0 const char *v44; // r5 __int64 v45; // r2 cocos2d::CCArray *v46; // r10 cocos2d::CCObject *v47; // r0 __int64 v48; // r2 int v49; // r6 void (__fastcall *v50)(int, int); // r7 const char *v51; // r2 __int16 *v52; // r3 char *v53; // r1 cocos2d::CCString *v54; // r0 int CString; // r0 int v56; // r0 float v57; // [sp+10h] [bp-14h] void (__fastcall *v58)(int, int); // [sp+14h] [bp-10h] if ( a2 != *(_DWORD *)(*((_DWORD *)this + 141) + 52) ) return; v7 = *((unsigned __int8 *)this + 812); if ( !((v7 & 1) != 0 ? *((_DWORD *)this + 204) : v7 >> 1) ) return; v9 = *((cocos2d::CCNode ***)this + 156); if ( v9 ) v9 = (cocos2d::CCNode **)LoadingCircle::fadeAndRemove(v9, a2, (int)a3); if ( a3 ) { v9 = (cocos2d::CCNode **)cocos2d::CCArray::count(a3); v10 = v9; } else { v10 = nullptr; } v11 = (cocos2d::CCArray *)(GameLevelManager::sharedState((GameLevelManager *)v9) + 408); v12 = *(_QWORD *)v11 >= 1LL; if ( !*((_BYTE *)this + 808) ) { *((_BYTE *)this + 808) = 1; *((_DWORD *)this + 206) = *((_DWORD *)this + 142); *((_QWORD *)this + 104) = *((_QWORD *)this + 72); *((_QWORD *)this + 105) = *((_QWORD *)this + 73); *((_BYTE *)this + 848) = *((_BYTE *)this + 596); *((_DWORD *)this + 213) = *(_DWORD *)(*((_DWORD *)this + 155) + 336); v13 = (cocos2d::CCObject *)cocos2d::CCArray::create(v11); *((_DWORD *)this + 142) = v13; cocos2d::CCObject::retain(v13); ThreadViewPopup::setPollInterval((int)this, 0.0); ThreadViewPopup::setUnseenBelow(this, 0); v14 = *((_DWORD *)this + 170); if ( v14 ) (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v14 + 684))(v14, 0); v15 = *((_DWORD *)this + 171); if ( v15 ) { (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v15 + 580))(v15, 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 171) + 172))(*((_DWORD *)this + 171), 0); } v16 = *((_DWORD *)this + 187); if ( v16 ) (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v16 + 172))(v16, 0); v17 = *((_DWORD *)this + 223); if ( v17 ) (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v17 + 172))(v17, 0); v18 = *((_DWORD *)this + 224); if ( v18 ) (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v18 + 172))(v18, 0); v19 = *((_DWORD *)this + 169); if ( v19 ) (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v19 + 172))(v19, 0); ThreadViewPopup::setSendPending(this, 1); if ( !*((_DWORD *)this + 221) ) { v21 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "bigFont.fnt", v20); *((_DWORD *)this + 221) = v21; v22 = v21; v58 = *(void (__fastcall **)(int, int))(*(_DWORD *)v21 + 92); v23 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 186) + 96))(*((_DWORD *)this + 186)); v58(v22, v23); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 221), 6); v24 = ButtonSprite::create( (ButtonSprite *)"Clear", (const char *)&word_2C + 1, 0, 0.55, 1, "bigFont.fnt", "GJ_button_04.png", (const char *)0x41E00000, v57); v25 = CCMenuItemSpriteExtra::create((int)v24, 0, (int)this, (int)ThreadViewPopup::onClearSearch, 0); *((_DWORD *)this + 222) = v25; CCMenuItemSpriteExtra::setSizeMult(v25, 1.1); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), *((_DWORD *)this + 222)); v26 = *((_DWORD *)this + 222); v27 = *((_DWORD *)this + 169); v28 = *(void (__fastcall **)(int, int))(*(_DWORD *)v26 + 92); if ( !v27 ) v27 = *((_DWORD *)this + 186); v29 = (*(int (__fastcall **)(int))(*(_DWORD *)v27 + 96))(v27); v28(v26, v29); } (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 221) + 172))(*((_DWORD *)this + 221), 1); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 222) + 172))(*((_DWORD *)this + 222), 1); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 222) + 528))(*((_DWORD *)this + 222), 1); v30 = *((_DWORD *)this + 152); if ( v30 ) (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v30 + 172))(v30, 0); v11 = *((cocos2d::CCArray **)this + 153); if ( v11 ) v11 = (cocos2d::CCArray *)(*(int (__fastcall **)(cocos2d::CCArray *, _DWORD))(*(_DWORD *)v11 + 172))(v11, 0); if ( !v12 ) goto LABEL_35; LABEL_36: v32 = 0; v33 = (cocos2d::CCArray *)cocos2d::CCArray::create(v11); while ( v32 < (int)v10 ) { v34 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a3, v32); v35 = *((_QWORD *)this + 72); if ( !v35 || *((_QWORD *)v34 + 7) < v35 ) cocos2d::CCArray::addObject(v33, v34); ++v32; } for ( i = 0; ; ++i ) { v37 = i < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 142)); v38 = *((cocos2d::CCArray **)this + 142); if ( !v37 ) break; v39 = i; v40 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v38, v39); cocos2d::CCArray::addObject(v33, v40); } cocos2d::CCArray::removeAllObjects(v38); for ( j = 0; j < cocos2d::CCArray::count(v33); ++j ) { v42 = *((cocos2d::CCArray **)this + 142); v43 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v33, j); cocos2d::CCArray::addObject(v42, v43); } goto LABEL_48; } if ( *(__int64 *)v11 >= 1 ) goto LABEL_36; cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)this + 142)); LABEL_35: for ( k = 0; k < (int)v10; ++k ) { v46 = *((cocos2d::CCArray **)this + 142); v47 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a3, k); cocos2d::CCArray::addObject(v46, v47); } LABEL_48: *((_BYTE *)this + 596) = a4; v44 = (const char *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 142)); if ( (int)v44 > 0 ) v45 = *(_QWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 142), 0) + 56); else v45 = 0; *((_QWORD *)this + 72) = v45; if ( (int)v44 <= 0 ) v48 = 0; else v48 = *(_QWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 142), (unsigned int)(v44 - 1)) + 56); *((_QWORD *)this + 73) = v48; v49 = *((_DWORD *)this + 221); if ( v49 ) { v50 = *(void (__fastcall **)(int, int))(*(_DWORD *)v49 + 464); if ( *((_BYTE *)this + 596) ) v51 = "+"; else v51 = (const char *)&unk_B6B226; if ( v44 == (_BYTE *)&dword_0 + 1 ) v52 = (__int16 *)&unk_B6B226; else v52 = &a1i2r3e45s789g[8]; if ( (*((_BYTE *)this + 812) & 1) != 0 ) v53 = *((char **)this + 205); else v53 = (char *)this + 813; v54 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%s result%s for \"%s\"", v44, v51, v52, v53); CString = cocos2d::CCString::getCString(v54); v50(v49, CString); cocos2d::CCLabelBMFont::limitLabelWidth( *((cocos2d::CCLabelBMFont **)this + 221), *((float *)this + 194) - 8.0, 0.4, 0.2); } ThreadViewPopup::buildRows(this, !v12); if ( !v44 ) { v56 = *((_DWORD *)this + 161); if ( v56 ) (*(void (__fastcall **)(int, const char *))(*(_DWORD *)v56 + 464))(v56, "No results"); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source