// // TableView::reloadData from 0x1002fef78 to 0x1002ff414 (1180 bytes) // // 3 xrefs: // > CustomListView::setupList @ 0x10010b664 // > BoomListView::setupList @ 0x1001d008c // > BoomListView::setupList @ 0x1001d00a4 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall TableView::reloadData(TableView *a1) { TableViewDataSource *m_dataSource; // x0 __int64 v3; // x26 __int64 v4; // x21 int v5; // w22 signed int v6; // w0 signed int v7; // w23 unsigned int i; // w24 __int64 v9; // x0 __int64 v10; // x25 TableViewDelegate *m_tableDelegate; // x0 CCIndexPath *v12; // x25 float v13; // s8 unsigned __int32 v14; // s9 __n128 v15; // q1 __n128 v16; // q0 float v17; // s9 double *v18; // x0 CCContentLayer *m_contentLayer; // x20 signed int v20; // w20 __int64 v21; // x28 float v22; // s9 __int64 v23; // x27 int v24; // w20 __n128 v25; // q0 __n128 v26; // q1 double v27; // d0 __n128 v28; // q0 __n128 v29; // q1 __int64 *v30; // x0 unsigned __int32 v31; // s10 float v32; // s13 __n128 v33; // q1 __n128 v34; // q0 double v35; // d0 int v36; // w8 __int64 v37; // x0 __n128 v38; // q0 __n128 v39; // q1 __int64 v40; // x27 float *v41; // x0 __n128 v42; // q0 __n128 v43; // q1 __int128 v44; // q0 __int128 v45; // q2 TableViewDelegate *v46; // x0 TableViewDelegate *v47; // x0 int v48; // [xsp+Ch] [xbp-A4h] double v49; // [xsp+10h] [xbp-A0h] BYREF __int64 v50; // [xsp+18h] [xbp-98h] BYREF __int64 v51; // [xsp+20h] [xbp-90h] BYREF __int64 v52; // [xsp+28h] [xbp-88h] BYREF if ( a1->m_tableDelegate ) { m_dataSource = a1->m_dataSource; if ( m_dataSource ) { v48 = ((__int64 (__fastcall *)(TableViewDataSource *, TableView *))m_dataSource->numberOfSectionsInTableView)( m_dataSource, a1); if ( v48 >= 1 ) { v3 = 0; v4 = 0; do { v5 = ((__int64 (__fastcall *)(TableViewDataSource *, __int64, TableView *))a1->m_dataSource->numberOfRowsInSection)( a1->m_dataSource, v4, a1); v6 = sub_10024A36C((__int64)a1->m_cellArray); if ( v5 < 1 ) { v10 = v3; } else { v7 = v6; for ( i = 0; i != v5; ++i ) { if ( (int)i < v7 && (v9 = sub_10024A388((__int64)a1->m_cellArray, i)) != 0 ) { v10 = v9; m_tableDelegate = a1->m_tableDelegate; if ( m_tableDelegate ) ((void (__fastcall *)(TableViewDelegate *, __int64, __int64, TableView *))m_tableDelegate->TableViewWillReloadCellForRowAtIndexPath)( m_tableDelegate, v10 + 424, v10, a1); if ( !i ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 192LL))(v10); } else { v12 = CCIndexPath::CCIndexPathWithSectionRow(v4, i); v13 = ((float (__fastcall *)(TableViewDelegate *, CCIndexPath *, TableView *))a1->m_tableDelegate->cellHeightForRowAtIndexPath)( a1->m_tableDelegate, v12, a1); sub_1000229B0(&v52); if ( v3 ) { v14 = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3); v15.n128_f32[0] = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3) + 4) - v13; v16.n128_u32[0] = v14; sub_100022980(v16, v15, &v51); sub_1000229D0(&v52, (double *)&v51); v17 = *((float *)&v52 + 1); } else { v17 = (float)(*(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer) + 4) - (float)((float)i * v13)) - v13; *((float *)&v52 + 1) = v17; } if ( v17 < 0.0 && !TableView::isDuplicateIndexPath(a1, v12) ) { v18 = (double *)((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer); sub_100022AFC(&v51, v18); m_contentLayer = a1->m_contentLayer; sub_100022988((float *)&v50, *(float *)&v51, *((float *)&v51 + 1) - v17); ((void (__fastcall *)(CCContentLayer *, __int64 *))m_contentLayer->setContentSize)( m_contentLayer, &v50); v20 = sub_10024A36C((__int64)a1->m_cellArray) - 1; if ( v20 >= 0 ) { v21 = 0; v22 = (float)(0.0 - v17) + 1.0; do { v23 = sub_10024A388((__int64)a1->m_cellArray, v20); sub_1000229B0(&v50); v24 = v20 + 1; if ( v24 == (unsigned int)sub_10024A36C((__int64)a1->m_cellArray) ) { v25.n128_u32[0] = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 192LL))(v23); v26.n128_f32[0] = v22; sub_100022980(v25, v26, &v49); v27 = sub_1000229D0(&v50, &v49); v28.n128_u32[0] = *(_DWORD *)(*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)v23 + 192LL))( v23, v27); v29.n128_f32[0] = *((float *)&v50 + 1) - v13; sub_100022980(v28, v29, &v49); v30 = &v52; } else { v31 = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 192LL))(v23); v32 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v21 + 192LL))(v21) + 4); v33.n128_f32[0] = v32 + *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v21 + 312LL))(v21) + 4); v34.n128_u32[0] = v31; sub_100022980(v34, v33, &v49); v30 = &v50; } v35 = sub_1000229D0(v30, &v49); (*(void (__fastcall **)(__int64, __int64 *, double))(*(_QWORD *)v23 + 184LL))(v23, &v50, v35); v36 = v24 - 1; v20 = v24 - 2; v21 = v23; } while ( v36 > 0 ); } } v37 = ((__int64 (__fastcall *)(TableViewDataSource *, CCIndexPath *, TableView *))a1->m_dataSource->cellForRowAtIndexPath)( a1->m_dataSource, v12, a1); if ( v37 ) { v40 = v37; v38.n128_u32[0] = 0; v39.n128_u32[0] = 1.0; sub_100022980(v38, v39, &v51); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v40 + 280LL))(v40, &v51); v41 = (float *)((__int64 (__fastcall *)(TableView *))a1->getContentSize)(a1); sub_100022988((float *)&v51, *v41, v13); v42 = ((__n128 (__fastcall *)(__int64, __int64 *))*(_QWORD *)(*(_QWORD *)v40 + 304LL))(v40, &v51); v43.n128_u32[0] = HIDWORD(v52); v42.n128_u32[0] = 0; sub_100022980(v42, v43, &v51); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v40 + 184LL))(v40, &v51); v44 = *(_OWORD *)&v12->m_uID; v45 = *(_OWORD *)&v12->m_unknown2; *(_OWORD *)(v40 + 448) = *(_OWORD *)&v12->m_uAutoReleaseCount; *(_OWORD *)(v40 + 464) = v45; *(_OWORD *)(v40 + 432) = v44; *(_QWORD *)(v40 + 480) = *(_QWORD *)&v12->m_row; sub_10024A2D0((__int64)a1->m_cellArray); sub_10024A2D0((__int64)a1->m_indexPathArray); v46 = a1->m_tableDelegate; if ( v46 ) ((void (__fastcall *)(TableViewDelegate *, CCIndexPath *, __int64, TableView *))v46->TableViewWillDisplayCellForRowAtIndexPath)( v46, v12, v40, a1); ((void (__fastcall *)(CCContentLayer *, __int64))a1->m_contentLayer->addChild)( a1->m_contentLayer, v40); v47 = a1->m_tableDelegate; if ( v47 ) ((void (__fastcall *)(TableViewDelegate *, CCIndexPath *, __int64, TableView *))v47->TableViewDidDisplayCellForRowAtIndexPath)( v47, v12, v40, a1); v3 = v40; } v10 = v3; } v3 = v10; } } v4 = (unsigned int)(v4 + 1); v3 = v10; } while ( (_DWORD)v4 != v48 ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source