// // CustomListView::setupList from 0x736978 to 0x737118 (1952 bytes) // // 2 xrefs: // > @ 0xa01b0 // > @ 0x142aea0 // // 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 12:52:39 +0000 // __int64 __fastcall CustomListView::setupList(CustomListView *this, float a2) { float CellHeight; // s0 cocos2d::CCArray *v5; // x0 float v6; // s8 float v7; // s9 cocos2d::CCArray *v9; // x0 cocos2d::CCArray *v10; // x0 cocos2d::CCArray *v11; // x0 int v12; // w22 GJUserScore *v13; // x0 int v14; // w20 int v15; // w23 float v16; // s1 float v17; // s8 float v18; // s3 __int64 v19; // x1 float v20; // s0 __int64 v21; // x0 int v22; // w22 int v23; // w23 int v24; // w20 int v25; // w23 GameManager *v26; // x0 GameManager *v27; // x0 int v28; // w23 int v29; // w22 _DWORD *v30; // x0 int v31; // w20 int v32; // w22 float v33; // s1 float v34; // s2 __int64 (*v35)(void); // x1 float v36; // s8 GameManager *v37; // x0 GameManager *v38; // x0 int v39; // w22 int v40; // w23 __int64 v41; // x0 int v42; // w20 int v43; // w23 float v44; // s2 float v45; // s3 float MaxY; // s8 CCScrollLayerExt *v47; // x20 float *v48; // x0 __int64 v49; // x0 int v50; // w20 float v51; // s1 float v52; // s2 float v53; // s8 float *v54; // x0 CCScrollLayerExt *v55; // x19 float v56; // s1 float v57; // s2 float *v58; // x0 float v59; // [xsp+50h] [xbp+50h] _BYTE v60[8]; // [xsp+70h] [xbp+70h] BYREF CellHeight = CustomListView::getCellHeight(*((_DWORD *)this + 110)); v5 = *((cocos2d::CCArray **)this + 54); *((float *)this + 113) = CellHeight; if ( (float)((float)(unsigned int)cocos2d::CCArray::count(v5) * *((float *)this + 113)) < *((float *)this + 111) ) BoomListView::lockList(this, 1u); switch ( *((_DWORD *)this + 110) ) { case 3: case 0xD: case 0xE: v7 = 2.0; v6 = 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: v9 = *((cocos2d::CCArray **)this + 54); v7 = 2.0; if ( !v9 ) goto LABEL_23; v6 = (float)(unsigned int)cocos2d::CCArray::count(v9) * 0.5; break; case 6: case 7: case 8: case 0xF: case 0x13: case 0x20: v10 = *((cocos2d::CCArray **)this + 54); v7 = 2.0; if ( v10 ) v6 = (float)((float)(unsigned int)cocos2d::CCArray::count(v10) * 0.5) + -1.0; else v6 = 1.0; break; case 0xA: v7 = 10.0; v6 = -6.0; break; case 0x10: case 0x24: case 0x28: v11 = *((cocos2d::CCArray **)this + 54); if ( v11 ) { v7 = 2.0; goto LABEL_21; } v6 = 0.0; v7 = 2.0; break; case 0x25: v11 = *((cocos2d::CCArray **)this + 54); v7 = 2.0; if ( v11 ) LABEL_21: v6 = (float)((float)(unsigned int)cocos2d::CCArray::count(v11) * 0.5) + -2.0; else LABEL_23: v6 = 0.0; break; default: v6 = 0.0; v7 = 2.0; break; } TableView::reloadData(*((TableView **)this + 53)); *(float *)(*((_QWORD *)this + 53) + 504LL) = v6; *(float *)(*((_QWORD *)this + 53) + 508LL) = v7; switch ( *((_DWORD *)this + 110) ) { case 2: case 3: case 6: case 7: case 8: case 0xA: case 0xB: case 0xD: case 0xE: case 0xF: case 0x10: case 0x11: case 0x13: case 0x14: case 0x17: case 0x18: case 0x1C: case 0x1F: case 0x20: case 0x25: case 0x26: case 0x27: goto LABEL_11; case 4: case 5: case 0x1A: case 0x1D: v26 = (GameManager *)(unsigned __int8)BoomListView::restoreListOffset((CCScrollLayerExt **)this, a2); if ( (_BYTE)v26 ) return _stack_chk_guard; v27 = (GameManager *)*(unsigned int *)(GameManager::sharedState(v26) + 964); if ( !(_DWORD)v27 ) goto LABEL_11; v28 = -1; v29 = *(_DWORD *)(GameManager::sharedState(v27) + 964); while ( 2 ) { if ( v28 + 1 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 54)) ) { v32 = 0; v31 = 0; } else { v30 = (_DWORD *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 54), v28 + 1); if ( v29 != v30[82] - v30[83] && v29 != v30[286] ) { ++v28; continue; } v31 = v28 + 2; v32 = 1; } break; } if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 54)) == 1 ) CCScrollLayerExt::moveToTopWithOffset(*((CCScrollLayerExt **)this + 53), *((float *)this + 113)); else CCScrollLayerExt::moveToTop(*((CCScrollLayerExt **)this + 53)); if ( !v32 ) return _stack_chk_guard; if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 54)) == 1 ) return _stack_chk_guard; v33 = *((float *)this + 113); v34 = *((float *)this + 111) * 0.5; if ( (float)((float)v28 * v33) <= v34 ) return _stack_chk_guard; v35 = *(__int64 (**)(void))(**(_QWORD **)(*((_QWORD *)this + 53) + 488LL) + 192LL); v36 = (float)-(float)(v34 - (float)(v33 * (float)v31)) - (float)(v33 * 0.5); goto LABEL_69; case 0xC: case 0x12: v12 = -1; while ( 2 ) { if ( v12 + 1 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 54)) ) { v13 = (GJUserScore *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 54), v12 + 1); if ( !(unsigned __int8)GJUserScore::isCurrentUser(v13) ) { ++v12; continue; } v15 = v12 + 2; v14 = 1; } else { v14 = 0; v15 = 0; } break; } if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 54)) == 1 ) { CCScrollLayerExt::moveToTopWithOffset(*((CCScrollLayerExt **)this + 53), *((float *)this + 113)); if ( !v14 ) return _stack_chk_guard; } else { CCScrollLayerExt::moveToTop(*((CCScrollLayerExt **)this + 53)); if ( !v14 ) return _stack_chk_guard; } if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 54)) != 1 ) { v16 = *((float *)this + 113); v17 = 0.5; v18 = *((float *)this + 111) * 0.5; if ( (float)((float)v12 * v16) > v18 ) { v19 = *(_QWORD *)(*((_QWORD *)this + 53) + 488LL); v20 = -(float)(v18 - (float)(v16 * (float)v15)); goto LABEL_88; } } return _stack_chk_guard; case 0x15: case 0x16: v21 = *(_QWORD *)(*((_QWORD *)this + 53) + 632LL); if ( v21 && (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v21 + 56LL))(v21) ) { v22 = -1; v23 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*((_QWORD *)this + 53) + 632LL) + 8LL))(*(_QWORD *)(*((_QWORD *)this + 53) + 632LL)); while ( 1 ) { if ( v22 + 1 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 54)) ) { v24 = 0; v25 = 0; goto LABEL_83; } if ( v23 == *(_DWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 54), v22 + 1) + 56) ) break; ++v22; } v25 = v22 + 2; v24 = 1; } else { v24 = 0; v22 = -1; v25 = 0; } LABEL_83: if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 54)) == 1 ) { CCScrollLayerExt::moveToTopWithOffset(*((CCScrollLayerExt **)this + 53), *((float *)this + 113)); if ( !v24 ) return _stack_chk_guard; } else { CCScrollLayerExt::moveToTop(*((CCScrollLayerExt **)this + 53)); if ( !v24 ) return _stack_chk_guard; } if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 54)) != 1 ) { v16 = *((float *)this + 113); v17 = 0.5; v57 = *((float *)this + 111) * 0.5; if ( (float)((float)v22 * v16) > v57 ) { v19 = *(_QWORD *)(*((_QWORD *)this + 53) + 488LL); v20 = -(float)(v57 - (float)(v16 * (float)v25)); LABEL_88: v53 = v20 - (float)(v16 * v17); v58 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v19 + 192LL))(v19); v55 = *((CCScrollLayerExt **)this + 53); v59 = *v58; v56 = *(float *)((*(__int64 (__fastcall **)(_QWORD *))(**((_QWORD **)v55 + 61) + 192LL))(*((_QWORD **)v55 + 61)) + 4); LABEL_80: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, v59, v53 + v56); CCScrollLayerExt::setContentOffset(v55, (cocos2d::CCMoveTo *)v60, 0); } } return _stack_chk_guard; case 0x19: case 0x1B: v37 = (GameManager *)(unsigned __int8)BoomListView::restoreListOffset((CCScrollLayerExt **)this, a2); if ( (_BYTE)v37 ) return _stack_chk_guard; v38 = (GameManager *)*(unsigned int *)(GameManager::sharedState(v37) + 968); if ( !(_DWORD)v38 ) { LABEL_11: if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 54)) == 1 ) CCScrollLayerExt::moveToTopWithOffset(*((CCScrollLayerExt **)this + 53), *((float *)this + 113)); else CCScrollLayerExt::moveToTop(*((CCScrollLayerExt **)this + 53)); return _stack_chk_guard; } v39 = -1; v40 = *(_DWORD *)(GameManager::sharedState(v38) + 968); break; case 0x21: if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 54)) == 1 ) CCScrollLayerExt::moveToTopWithOffset(*((CCScrollLayerExt **)this + 53), *((float *)this + 113)); else CCScrollLayerExt::moveToTop(*((CCScrollLayerExt **)this + 53)); v49 = *(_QWORD *)(*((_QWORD *)this + 53) + 632LL); if ( !v49 ) return _stack_chk_guard; if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v49 + 56LL))(v49) ) return _stack_chk_guard; v50 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*((_QWORD *)this + 53) + 632LL) + 8LL))(*(_QWORD *)(*((_QWORD *)this + 53) + 632LL)); if ( v50 <= 0 ) return _stack_chk_guard; if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 54)) <= 1 ) return _stack_chk_guard; v51 = *((float *)this + 113); v52 = *((float *)this + 111) * 0.5; if ( (float)((float)v50 * v51) <= v52 ) return _stack_chk_guard; v53 = (float)-(float)(v52 - (float)(v51 * (float)(v50 + 1))) - (float)(v51 * 0.5); v54 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*((_QWORD *)this + 53) + 488LL) + 192LL))(*(_QWORD *)(*((_QWORD *)this + 53) + 488LL)); v55 = *((CCScrollLayerExt **)this + 53); v59 = *v54; v56 = *(float *)((*(__int64 (__fastcall **)(_QWORD *))(**((_QWORD **)v55 + 61) + 192LL))(*((_QWORD **)v55 + 61)) + 4); goto LABEL_80; case 0x22: case 0x23: case 0x24: case 0x28: if ( !(unsigned __int8)BoomListView::restoreListOffset((CCScrollLayerExt **)this, a2) ) goto LABEL_11; return _stack_chk_guard; default: BoomListView::setupList(this, a2); return _stack_chk_guard; } while ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 54)) > v39 + 1 ) { v41 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 54), v39 + 1); if ( v40 == *(_DWORD *)(v41 + 344) || v40 == *(_DWORD *)(v41 + 548) ) { v42 = v39 + 2; v43 = 1; goto LABEL_63; } ++v39; } v43 = 0; v42 = 0; LABEL_63: if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 54)) == 1 ) CCScrollLayerExt::moveToTopWithOffset(*((CCScrollLayerExt **)this + 53), *((float *)this + 113)); else CCScrollLayerExt::moveToTop(*((CCScrollLayerExt **)this + 53)); if ( v43 ) { if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 54)) != 1 ) { v44 = *((float *)this + 113); v45 = *((float *)this + 111) * 0.5; if ( (float)((float)v39 * v44) > v45 ) { v35 = *(__int64 (**)(void))(**(_QWORD **)(*((_QWORD *)this + 53) + 488LL) + 192LL); v36 = (float)-(float)(v45 - (float)(v44 * (float)v42)) - (float)(v44 * 0.5); LABEL_69: MaxY = v36 + *(float *)(v35() + 4); if ( MaxY > CCScrollLayerExt::getMaxY(*((CCScrollLayerExt **)this + 53)) ) MaxY = CCScrollLayerExt::getMaxY(*((CCScrollLayerExt **)this + 53)); v47 = *((CCScrollLayerExt **)this + 53); v48 = (float *)(*(__int64 (__fastcall **)(_QWORD *))(**((_QWORD **)v47 + 61) + 192LL))(*((_QWORD **)v47 + 61)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, *v48, MaxY); CCScrollLayerExt::setContentOffset(v47, (cocos2d::CCMoveTo *)v60, 0); } } } return _stack_chk_guard; }