// // CustomListView::setupList from 0x140146240 to 0x140146abb (2171 bytes) // // 2 xrefs: // > @ 0x14073e2b0 // > @ 0x14091754c // // This function is hookable on this platform (idp: pc, 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 11:27:11 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall CustomListView::setupList(__int64 a1, float a2) { _QWORD *v3; // rbx float v4; // xmm6_4 int v5; // xmm8_4 __int64 *v6; // rsi cocos2d::CCArray *v7; // rcx cocos2d::CCArray *v8; // rcx cocos2d::CCArray *v9; // rcx int v10; // edx unsigned int v11; // eax __int64 v12; // rcx __int64 v13; // r14 int v14; // r14d cocos2d::CCArray *v15; // rcx int v16; // ebx char v17; // r15 int v18; // ebp unsigned int v19; // esi struct cocos2d::CCObject *v20; // rax unsigned int v21; // eax __int64 v22; // rcx float v23; // xmm8_4 float v24; // xmm6_4 float v25; // xmm0_4 __int64 v26; // rcx float v27; // xmm6_4 __int64 *v28; // rcx __int64 v29; // rax __int64 v30; // r14 int v31; // r14d unsigned int v32; // esi struct cocos2d::CCObject *v33; // rax int v34; // ebx char v35; // r14 unsigned int v36; // ebp unsigned int v37; // esi struct cocos2d::CCObject *v38; // rax unsigned int v39; // eax __int64 v40; // rcx bool v41; // zf float v42; // xmm9_4 float v43; // xmm8_4 __int64 *v44; // rbx __int64 v45; // rax __m128i v46; // xmm6 float *v47; // rax __int64 v48; // rbx __int64 v49; // rax char v50; // r15 __int64 v51; // rcx int v52; // r14d unsigned int v53; // esi unsigned int v54; // eax __int64 v55; // rcx unsigned int v56; // eax __int64 v57; // rcx __int64 v58; // rcx int v59; // esi __int64 v60; // rcx void *v61; // [rsp+80h] [rbp+8h] BYREF *(float *)(a1 + 452) = CustomListView::getCellHeight(*(_DWORD *)(a1 + 440)); v3 = (_QWORD *)(a1 + 424); if ( *(float *)(a1 + 444) > (float)((float)(int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 432)) * *(float *)(a1 + 452)) ) { *(_BYTE *)(a1 + 460) = 1; (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v3 + 920LL))(*v3, 0); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v3 + 1024LL))(*v3, 0); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v3 + 1008LL))(*v3, 0); } v4 = 0.0; v5 = 0x40000000; v6 = (__int64 *)(a1 + 424); switch ( *(_DWORD *)(a1 + 440) ) { case 3: case 0xD: case 0xE: v4 = 2.0; break; case 4: case 5: case 0xC: case 0x11: case 0x12: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1F: case 0x21: case 0x22: case 0x23: case 0x26: case 0x27: v8 = *(cocos2d::CCArray **)(a1 + 432); if ( v8 ) v4 = (float)(int)cocos2d::CCArray::count(v8) * 0.5; v6 = (__int64 *)(a1 + 424); break; case 6: case 7: case 8: case 0xF: case 0x13: case 0x20: v9 = *(cocos2d::CCArray **)(a1 + 432); if ( v9 ) v4 = (float)((float)(int)cocos2d::CCArray::count(v9) * 0.5) - 1.0; else v4 = 1.0; break; case 0xA: v4 = -6.0; v5 = 1092616192; break; case 0x10: case 0x24: case 0x25: case 0x28: v7 = *(cocos2d::CCArray **)(a1 + 432); if ( v7 ) v4 = (float)((float)(int)cocos2d::CCArray::count(v7) * 0.5) - 2.0; break; default: break; } TableView::reloadData(*v6); *(float *)(*v6 + 496) = v4; *(_DWORD *)(*v6 + 500) = v5; v10 = *(_DWORD *)(a1 + 440); switch ( v10 ) { case 2: case 3: case 6: case 7: case 8: case 10: case 11: case 13: case 14: case 15: case 16: case 17: case 19: case 20: case 23: case 24: case 28: case 31: case 32: case 37: case 38: case 39: v11 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 432)); v12 = *(_QWORD *)(a1 + 424); goto LABEL_84; case 4: case 5: case 26: case 29: if ( BoomListView::restoreListOffset(a1, a2) ) return; v13 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v61 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v61); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v13 = qword_14090BFD0; } v14 = *(_DWORD *)(v13 + 996); v15 = *(cocos2d::CCArray **)(a1 + 432); if ( !v14 ) goto LABEL_83; v16 = -1; v17 = 0; v18 = 0; v19 = 0; if ( !cocos2d::CCArray::count(v15) ) goto LABEL_28; while ( 1 ) { v20 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), v19); if ( *((_DWORD *)v20 + 82) - *((_DWORD *)v20 + 83) == v14 || *((_DWORD *)v20 + 306) == v14 ) goto LABEL_27; ++v16; if ( ++v19 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 432)) ) goto LABEL_28; } case 12: case 18: v34 = -1; v35 = 0; v36 = 0; v37 = 0; if ( !cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 432)) ) goto LABEL_49; while ( 1 ) { v38 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), v37); if ( (unsigned __int8)GJUserScore::isCurrentUser(v38) ) break; ++v34; if ( ++v37 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 432)) ) goto LABEL_49; } v35 = 1; v36 = v34 + 2; LABEL_49: v39 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 432)); v40 = *(_QWORD *)(a1 + 424); if ( v39 == 1 ) CCScrollLayerExt::moveToTopWithOffset(v40, *(float *)(a1 + 452)); else CCScrollLayerExt::moveToTop(v40); v41 = v35 == 0; goto LABEL_53; case 21: case 22: v34 = -1; v50 = 0; v51 = *(_QWORD *)(*v6 + 624); v36 = 0; if ( !v51 ) goto LABEL_66; if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v51 + 56LL))(v51) ) goto LABEL_66; v52 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*v6 + 624) + 8LL))(*(_QWORD *)(*v6 + 624)); v53 = 0; if ( !cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 432)) ) goto LABEL_66; while ( *((_DWORD *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), v53) + 14) != v52 ) { ++v34; if ( ++v53 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 432)) ) goto LABEL_66; } v50 = 1; v36 = v34 + 2; LABEL_66: v54 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 432)); v55 = *(_QWORD *)(a1 + 424); if ( v54 == 1 ) CCScrollLayerExt::moveToTopWithOffset(v55, *(float *)(a1 + 452)); else CCScrollLayerExt::moveToTop(v55); v41 = v50 == 0; LABEL_53: if ( v41 ) return; if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 432)) == 1 ) return; v42 = *(float *)(a1 + 452); v43 = *(float *)(a1 + 444) * 0.5; if ( (float)((float)v34 * v42) <= v43 ) return; v44 = *(__int64 **)(*(_QWORD *)(a1 + 424) + 480LL); v45 = (*(__int64 (__fastcall **)(__int64 *))(*v44 + 200))(v44); v46 = _mm_cvtsi32_si128(v36); LABEL_57: v27 = (float)((float)((float)(_mm_cvtepi32_ps(v46).m128_f32[0] * v42) - v43) - (float)(v42 * 0.5)) + *(float *)(v45 + 4); v29 = *v44; v28 = v44; goto LABEL_58; case 25: case 27: if ( BoomListView::restoreListOffset(a1, a2) ) return; v30 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v61 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v61); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v30 = qword_14090BFD0; } v31 = *(_DWORD *)(v30 + 1000); v15 = *(cocos2d::CCArray **)(a1 + 432); if ( !v31 ) goto LABEL_83; v16 = -1; v17 = 0; v18 = 0; v32 = 0; if ( !cocos2d::CCArray::count(v15) ) goto LABEL_28; break; case 33: v56 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 432)); v57 = *v6; if ( v56 == 1 ) CCScrollLayerExt::moveToTopWithOffset(v57, *(float *)(a1 + 452)); else CCScrollLayerExt::moveToTop(v57); v58 = *(_QWORD *)(*v6 + 624); if ( !v58 ) return; if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v58 + 56LL))(v58) ) return; v59 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*v6 + 624) + 8LL))(*(_QWORD *)(*v6 + 624)); if ( v59 <= 0 ) return; if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 432)) <= 1 ) return; v42 = *(float *)(a1 + 452); v43 = *(float *)(a1 + 444) * 0.5; if ( (float)((float)v59 * v42) <= v43 ) return; v44 = *(__int64 **)(*(_QWORD *)(a1 + 424) + 480LL); v45 = (*(__int64 (__fastcall **)(__int64 *))(*v44 + 200))(v44); v46 = _mm_cvtsi32_si128(v59 + 1); goto LABEL_57; case 34: case 35: case 36: case 40: if ( !BoomListView::restoreListOffset(a1, a2) ) goto LABEL_82; return; default: v60 = *v6; if ( v10 == 10 ) { *(_DWORD *)(a1 + 452) = 1117782016; TableView::reloadData(v60); *(_DWORD *)(*v6 + 496) = 1084227584; } else { *(_DWORD *)(a1 + 452) = 1109393408; TableView::reloadData(v60); *(_DWORD *)(*v6 + 496) = 1106247680; } LABEL_82: v15 = *(cocos2d::CCArray **)(a1 + 432); LABEL_83: v11 = cocos2d::CCArray::count(v15); v12 = *v6; LABEL_84: if ( v11 == 1 ) CCScrollLayerExt::moveToTopWithOffset(v12, *(float *)(a1 + 452)); else CCScrollLayerExt::moveToTop(v12); return; } while ( 1 ) { v33 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), v32); if ( *((_DWORD *)v33 + 86) == v31 || *((_DWORD *)v33 + 147) == v31 ) break; ++v16; if ( ++v32 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 432)) ) goto LABEL_28; } LABEL_27: v17 = 1; v18 = v16 + 2; LABEL_28: v21 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 432)); v22 = *(_QWORD *)(a1 + 424); if ( v21 == 1 ) CCScrollLayerExt::moveToTopWithOffset(v22, *(float *)(a1 + 452)); else CCScrollLayerExt::moveToTop(v22); if ( v17 ) { if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 432)) != 1 ) { v23 = *(float *)(a1 + 452); v24 = *(float *)(a1 + 444) * 0.5; if ( (float)((float)v16 * v23) > v24 ) { v25 = (float)((float)((float)((float)v18 * v23) - v24) - (float)(v23 * 0.5)) + *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 424) + 480LL) + 200LL))(*(_QWORD *)(*(_QWORD *)(a1 + 424) + 480LL)) + 4); v26 = *(_QWORD *)(a1 + 424); v27 = fminf(*(float *)(v26 + 500), v25); v28 = *(__int64 **)(v26 + 480); v29 = *v28; LABEL_58: v47 = (float *)(*(__int64 (__fastcall **)(__int64 *))(v29 + 200))(v28); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v61, *v47, v27); v48 = *(_QWORD *)(a1 + 424); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v48 + 480) + 184LL))(*(_QWORD *)(v48 + 480), v49); CCScrollLayerExt::doConstraintContent(v48, 0); } } } }