// // ThreadViewPopup::threadSearchFinished from 0xc88dc4 to 0xc89350 (1420 bytes) // // 3 xrefs: // > `non-virtual thunk to'ThreadViewPopup::threadSearchFinished @ 0xc89364 // > @ 0x6c718 // > @ 0x14ecaa0 // // 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:43 +0000 // __int64 __fastcall ThreadViewPopup::threadSearchFinished(__int64 this, int a2, cocos2d::CCArray *a3, char a4) { __int64 v5; // x25 __int64 v6; // x3 __int64 v7; // x19 cocos2d::CCNode **v8; // x0 GameLevelManager *v10; // x0 int v11; // w26 cocos2d::CCArray *v12; // x0 _BOOL4 v13; // w23 unsigned int v14; // w20 cocos2d::CCArray *v15; // x22 unsigned int v16; // w1 cocos2d::CCObject *v17; // x3 __int64 v18; // x2 int v19; // w20 cocos2d::CCObject *v20; // x0 bool v21; // cc unsigned int v22; // w1 cocos2d::CCArray *v23; // x0 int v24; // w20 cocos2d::CCArray *v25; // x21 cocos2d::CCObject *v26; // x0 unsigned int v27; // w1 cocos2d::CCArray *v28; // x0 int v29; // w20 __int64 v30; // x2 cocos2d::CCArray *v31; // x0 __int64 v32; // x0 __int64 v33; // x21 void (__fastcall *v34)(__int64, __int64); // x22 char *v35; // x2 char *v36; // x3 __int64 v37; // x4 cocos2d::CCString *v38; // x0 __int64 CString; // x0 __int64 v40; // x4 __int64 v41; // x3 __int64 v42; // x2 char v43; // w1 __int64 v44; // x0 cocos2d::CCArray *v45; // x0 cocos2d::CCObject *v46; // x0 __int64 v47; // x0 __int64 v48; // x0 __int64 v49; // x0 __int64 v50; // x0 __int64 v51; // x0 __int64 v52; // x0 const char *v53; // x2 __int64 v54; // x0 __int64 v55; // x0 unsigned int v56; // w20 unsigned int v57; // w1 cocos2d::CCArray *v58; // x22 cocos2d::CCObject *v59; // x0 __int64 v60; // x0 __int64 v61; // x20 void (__fastcall *v62)(__int64, __int64); // x22 __int64 v63; // x0 const char *v64; // x6 __int64 v65; // x0 __int64 v66; // x0 __int64 v67; // x20 __int64 v68; // x0 void (__fastcall *v69)(__int64, __int64); // x22 __int64 v70; // x1 if ( *(_DWORD *)(*(_QWORD *)(this + 752) + 56LL) == a2 ) { v5 = this + 1112; v6 = *(_BYTE *)(this + 1112) >> 1; if ( (*(_BYTE *)(this + 1112) & 1) != 0 ) v6 = *(_QWORD *)(this + 1120); if ( v6 ) { v7 = this; v8 = *(cocos2d::CCNode ***)(this + 832); if ( v8 ) v8 = (cocos2d::CCNode **)LoadingCircle::fadeAndRemove(v8); if ( a3 ) { v10 = (GameLevelManager *)cocos2d::CCArray::count(a3); v11 = (int)v10; v12 = *(cocos2d::CCArray **)(GameLevelManager::sharedState(v10) + 536); v13 = (__int64)v12 > 0; if ( *(_BYTE *)(v7 + 1104) ) { LABEL_10: if ( v13 ) { LABEL_11: v14 = 0; v15 = (cocos2d::CCArray *)cocos2d::CCArray::create(v12); if ( v11 > 0 ) { do { v16 = v14++; v17 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a3, v16); v18 = *(_QWORD *)(v7 + 768); if ( !v18 || v18 > *((_QWORD *)v17 + 7) ) cocos2d::CCArray::addObject(v15, v17); } while ( v14 != v11 ); } v19 = 0; while ( 1 ) { v21 = v19 < (int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(v7 + 760)); v22 = v19; v23 = *(cocos2d::CCArray **)(v7 + 760); ++v19; if ( !v21 ) break; v20 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v23, v22); cocos2d::CCArray::addObject(v15, v20); } v24 = 0; cocos2d::CCArray::removeAllObjects(v23); while ( 1 ) { v21 = v24 < (int)cocos2d::CCArray::count(v15); v27 = v24++; if ( !v21 ) break; v25 = *(cocos2d::CCArray **)(v7 + 760); v26 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v15, v27); cocos2d::CCArray::addObject(v25, v26); } goto LABEL_22; } cocos2d::CCArray::removeAllObjects(*(cocos2d::CCArray **)(v7 + 760)); LABEL_56: v56 = 0; if ( v11 > 0 ) { do { v57 = v56; v58 = *(cocos2d::CCArray **)(v7 + 760); ++v56; v59 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a3, v57); cocos2d::CCArray::addObject(v58, v59); } while ( v56 != v11 ); } LABEL_22: v28 = *(cocos2d::CCArray **)(v7 + 760); *(_BYTE *)(v7 + 788) = a4; v29 = cocos2d::CCArray::count(v28); if ( v29 <= 0 ) { *(_QWORD *)(v7 + 768) = 0; v32 = 0; } else { v30 = *(_QWORD *)(cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v7 + 760), 0) + 56); v31 = *(cocos2d::CCArray **)(v7 + 760); *(_QWORD *)(v7 + 768) = v30; v32 = *(_QWORD *)(cocos2d::CCArray::objectAtIndex(v31, v29 - 1) + 56); } v33 = *(_QWORD *)(v7 + 1200); *(_QWORD *)(v7 + 776) = v32; if ( !v33 ) { LABEL_31: this = ThreadViewPopup::buildRows((ThreadViewPopup *)v7, !v13); if ( !v29 ) { this = *(_QWORD *)(v7 + 856); if ( this ) return (*(__int64 (__fastcall **)(__int64, const char *))(*(_QWORD *)this + 928LL))(this, "No results"); } return this; } v34 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v33 + 928LL); if ( *(_BYTE *)(v7 + 788) ) { v35 = "+"; if ( v29 != 1 ) goto LABEL_27; } else { v35 = &byte_11B8890; if ( v29 != 1 ) { LABEL_27: v36 = "s"; LABEL_28: v37 = v7 + 1113; if ( (*(_BYTE *)(v7 + 1112) & 1) != 0 ) v37 = *(_QWORD *)(v5 + 16); v38 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%s result%s for \"%s\"", (const char *)(unsigned int)v29, v35, v36, v37); CString = cocos2d::CCString::getCString(v38); v34(v33, CString); cocos2d::CCLabelBMFont::limitLabelWidth( *(cocos2d::CCLabelBMFont **)(v7 + 1200), *(float *)(v7 + 1064) - 8.0, 0.4, 0.2); goto LABEL_31; } } v36 = &byte_11B8890; goto LABEL_28; } } else { v12 = *(cocos2d::CCArray **)(GameLevelManager::sharedState((GameLevelManager *)v8) + 536); v11 = 0; v13 = (__int64)v12 > 0; if ( *(_BYTE *)(v7 + 1104) ) goto LABEL_10; } v40 = *(_QWORD *)(v7 + 760); v41 = *(_QWORD *)(v7 + 768); v42 = *(_QWORD *)(v7 + 776); v43 = *(_BYTE *)(v7 + 788); v44 = *(_QWORD *)(v7 + 824); *(_BYTE *)(v7 + 1104) = 1; *(_QWORD *)(v7 + 1136) = v40; *(_QWORD *)(v7 + 1144) = v41; *(_QWORD *)(v7 + 1152) = v42; *(_BYTE *)(v7 + 1160) = v43; v45 = (cocos2d::CCArray *)*(unsigned int *)(v44 + 436); *(_DWORD *)(v7 + 1164) = (_DWORD)v45; v46 = (cocos2d::CCObject *)cocos2d::CCArray::create(v45); *(_QWORD *)(v7 + 760) = v46; cocos2d::CCObject::retain(v46); ThreadViewPopup::setPollInterval(v7, 0.0); ThreadViewPopup::setUnseenBelow((ThreadViewPopup *)v7, 0); v47 = *(_QWORD *)(v7 + 920); if ( v47 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v47 + 1368LL))(v47, 0); v48 = *(_QWORD *)(v7 + 928); if ( v48 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v48 + 1160LL))(v48, 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v7 + 928) + 344LL))(*(_QWORD *)(v7 + 928), 0); } v49 = *(_QWORD *)(v7 + 1016); if ( v49 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v49 + 344LL))(v49, 0); v50 = *(_QWORD *)(v7 + 1216); if ( v50 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v50 + 344LL))(v50, 0); v51 = *(_QWORD *)(v7 + 1224); if ( v51 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v51 + 344LL))(v51, 0); v52 = *(_QWORD *)(v7 + 912); if ( v52 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v52 + 344LL))(v52, 0); ThreadViewPopup::setSendPending(v7, 1u); v54 = *(_QWORD *)(v7 + 1200); if ( !v54 ) { v60 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11B8890, "bigFont.fnt", v53); *(_QWORD *)(v7 + 1200) = v60; v61 = v60; v62 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v60 + 184LL); v63 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v7 + 1008) + 192LL))(*(_QWORD *)(v7 + 1008)); v62(v61, v63); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(v7 + 584) + 464LL))( *(_QWORD *)(v7 + 584), *(_QWORD *)(v7 + 1200), 6); v65 = ButtonSprite::create( (ButtonSprite *)"Clear", (const char *)&qword_28 + 5, 0, 1, 0.55, "bigFont.fnt", "GJ_button_04.png", v64, 28.0); v66 = CCMenuItemSpriteExtra::create(v65, 0, v7, (__int64)ThreadViewPopup::onClearSearch, 0); *(_QWORD *)(v7 + 1208) = v66; CCMenuItemSpriteExtra::setSizeMult(v66, 1.1); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v7 + 552) + 456LL))( *(_QWORD *)(v7 + 552), *(_QWORD *)(v7 + 1208)); v67 = *(_QWORD *)(v7 + 1208); v68 = *(_QWORD *)(v7 + 912); v69 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v67 + 184LL); if ( v68 ) v70 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v68 + 192LL))(v68); else v70 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v7 + 1008) + 192LL))(*(_QWORD *)(v7 + 1008)); v69(v67, v70); v54 = *(_QWORD *)(v7 + 1200); } (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v54 + 344LL))(v54, 1); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v7 + 1208) + 344LL))(*(_QWORD *)(v7 + 1208), 1); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v7 + 1208) + 1056LL))(*(_QWORD *)(v7 + 1208), 1); v55 = *(_QWORD *)(v7 + 800); if ( v55 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v55 + 344LL))(v55, 0); v12 = *(cocos2d::CCArray **)(v7 + 808); if ( v12 ) v12 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCArray *, _QWORD))(*(_QWORD *)v12 + 344LL))( v12, 0); if ( v13 ) goto LABEL_11; goto LABEL_56; } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source