// // TableView::reloadData from 0x100622540 to 0x100622ad0 (1424 bytes) // // 4 xrefs: // > CustomListView::setupList @ 0x10024d905 // > BoomListView::setupList @ 0x10030c993 // > BoomListView::setupList @ 0x10030c9bc // > MPLobbyLayer::updateComments @ 0x1004945ec // // 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; // rdi __int64 v3; // r15 __int64 v4; // rsi __int64 v5; // r14 TableViewDataSource *v6; // rdi TableViewDataSource_vtbl *v7; // rax int v8; // r14d int v9; // r12d __int64 v10; // r15 __int64 v11; // rax TableViewDelegate *m_tableDelegate; // rdi char *v13; // r13 __int64 v14; // r14 __int64 v15; // rax float v16; // xmm1_4 __int64 v17; // rax cocos2d::CCArray *m_indexPathArray; // rdi unsigned int v19; // r14d __int64 v20; // rax _QWORD *v21; // rax CCContentLayer *m_contentLayer; // r14 int v23; // r14d __int64 v24; // r13 __int64 v25; // rax __int64 *v26; // rdi double v27; // xmm0_8 int v28; // eax __int64 v29; // r12 int v30; // r14d float *v31; // rax double v32; // xmm0_8 float *v33; // rax __int64 v34; // rax __int64 v35; // r14 float *v36; // rax __int128 v37; // xmm0 __int128 v38; // xmm1 TableViewDelegate *v39; // rdi TableViewDelegate *v40; // rdi __int64 v41; // [rsp+8h] [rbp-88h] BYREF double v42; // [rsp+10h] [rbp-80h] BYREF __int64 (__fastcall **v43)(); // [rsp+18h] [rbp-78h] char *v44; // [rsp+20h] [rbp-70h] float v45; // [rsp+28h] [rbp-68h] float v46; // [rsp+2Ch] [rbp-64h] int v47; // [rsp+30h] [rbp-60h] int v48; // [rsp+34h] [rbp-5Ch] int v49; // [rsp+38h] [rbp-58h] int v50; // [rsp+3Ch] [rbp-54h] __int64 v51; // [rsp+40h] [rbp-50h] __int64 v52; // [rsp+4Ch] [rbp-44h] BYREF __int64 v53; // [rsp+54h] [rbp-3Ch] BYREF int v54; // [rsp+5Ch] [rbp-34h] float v55; // [rsp+60h] [rbp-30h] float v56; // [rsp+64h] [rbp-2Ch] if ( a1->m_tableDelegate ) { m_dataSource = a1->m_dataSource; if ( m_dataSource ) { v50 = ((__int64 (__fastcall *)(TableViewDataSource *, TableView *))m_dataSource->numberOfSectionsInTableView)( m_dataSource, a1); if ( v50 > 0 ) { v3 = 0; v43 = off_1009829A8; v4 = 0; do { v6 = a1->m_dataSource; v7 = v6->__vftable; v54 = v4; v8 = ((__int64 (__fastcall *)(TableViewDataSource *, __int64, TableView *))v7->numberOfRowsInSection)( v6, v4, a1); v47 = sub_100720070(a1->m_cellArray); v48 = v8; if ( v8 <= 0 ) { v5 = v3; } else { v9 = 0; do { if ( v9 < v47 && (v11 = sub_1007200C0(a1->m_cellArray, (unsigned int)v9)) != 0 ) { v5 = v11; m_tableDelegate = a1->m_tableDelegate; if ( m_tableDelegate ) ((void (__fastcall *)(TableViewDelegate *, __int64, __int64, TableView *))m_tableDelegate->TableViewWillReloadCellForRowAtIndexPath)( m_tableDelegate, v11 + 424, v11, a1); if ( !v9 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5); } else { v51 = v3; v13 = (char *)operator new(0x40u); cocos2d::CCObject::CCObject((__int64)v13); *(_QWORD *)v13 = v43; *((_DWORD *)v13 + 14) = v9; *((_DWORD *)v13 + 15) = v54; cocos2d::CCObject::autorelease((cocos2d::CCObject *)v13); v55 = ((float (__fastcall *)(TableViewDelegate *, char *, TableView *))a1->m_tableDelegate->cellHeightForRowAtIndexPath)( a1->m_tableDelegate, v13, a1); sub_10028CC30(&v52); v14 = v51; if ( v51 ) { v56 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v51 + 192LL))(v51); v15 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 192LL))(v14); sub_10028CBE0((float *)&v53, v56, *(float *)(v15 + 4) - v55); sub_10028CC90(&v52, (double *)&v53); v16 = *((float *)&v52 + 1); } else { v17 = ((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer); v16 = (float)(*(float *)(v17 + 4) - (float)((float)v9 * v55)) - v55; *((float *)&v52 + 1) = v16; } v56 = v16; v10 = v51; if ( v16 < 0.0 ) { m_indexPathArray = a1->m_indexPathArray; if ( m_indexPathArray && (unsigned int)sub_100720070(m_indexPathArray) && (unsigned int)sub_100720070(a1->m_indexPathArray) ) { v19 = 0; while ( 1 ) { v20 = sub_1007200C0(a1->m_indexPathArray, v19); if ( *(_DWORD *)(v20 + 60) == *((_DWORD *)v13 + 15) && *(_DWORD *)(v20 + 56) == *((_DWORD *)v13 + 14) ) { break; } if ( ++v19 >= (unsigned int)sub_100720070(a1->m_indexPathArray) ) goto LABEL_30; } } else { LABEL_30: v44 = v13; v49 = v9; v21 = (_QWORD *)((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer); sub_10028CFC0(&v53, v21); m_contentLayer = a1->m_contentLayer; sub_10028CBF0((float *)&v41, *(float *)&v53, *((float *)&v53 + 1) - v56); ((void (__fastcall *)(CCContentLayer *, __int64 *))m_contentLayer->setContentSize)( m_contentLayer, &v41); v23 = sub_100720070(a1->m_cellArray) - 1; if ( v23 >= 0 ) { v46 = (float)(0.0 - v56) + 1.0; v24 = 0; do { v29 = sub_1007200C0(a1->m_cellArray, (unsigned int)v23); sub_10028CC30(&v41); v30 = v23 + 1; if ( v30 == (unsigned int)sub_100720070(a1->m_cellArray) ) { v31 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v29 + 192LL))(v29); sub_10028CBE0((float *)&v42, *v31, v46); v32 = sub_10028CC90(&v41, &v42); v33 = (float *)(*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)v29 + 192LL))(v29, v32); sub_10028CBE0((float *)&v42, *v33, *((float *)&v41 + 1) - v55); v26 = &v52; } else { v56 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v29 + 192LL))(v29); v45 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v24 + 192LL))(v24) + 4); v25 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v24 + 312LL))(v24); sub_10028CBE0((float *)&v42, v56, v45 + *(float *)(v25 + 4)); v26 = &v41; } v27 = sub_10028CC90(v26, &v42); (*(void (__fastcall **)(__int64, __int64 *, double))(*(_QWORD *)v29 + 184LL))(v29, &v41, v27); v28 = v30 - 1; v23 = v30 - 2; v24 = v29; } while ( v28 > 0 ); } v9 = v49; v13 = v44; v10 = v51; } } v34 = ((__int64 (__fastcall *)(TableViewDataSource *, char *, TableView *))a1->m_dataSource->cellForRowAtIndexPath)( a1->m_dataSource, v13, a1); if ( v34 ) { v35 = v34; sub_10028CBE0((float *)&v53, 0.0, 1.0); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 280LL))(v35, &v53); v36 = (float *)((__int64 (__fastcall *)(TableView *))a1->getContentSize)(a1); sub_10028CBF0((float *)&v53, *v36, v55); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 304LL))(v35, &v53); sub_10028CBE0((float *)&v53, 0.0, *((float *)&v52 + 1)); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 184LL))(v35, &v53); v37 = *(_OWORD *)(v13 + 8); v38 = *(_OWORD *)(v13 + 24); *(_OWORD *)(v35 + 464) = *(_OWORD *)(v13 + 40); *(_OWORD *)(v35 + 448) = v38; *(_OWORD *)(v35 + 432) = v37; *(_QWORD *)(v35 + 480) = *((_QWORD *)v13 + 7); sub_10071FCD0(a1->m_cellArray, v35); sub_10071FCD0(a1->m_indexPathArray, v13); v39 = a1->m_tableDelegate; if ( v39 ) ((void (__fastcall *)(TableViewDelegate *, char *, __int64, TableView *))v39->TableViewWillDisplayCellForRowAtIndexPath)( v39, v13, v35, a1); ((void (__fastcall *)(CCContentLayer *, __int64))a1->m_contentLayer->addChild)( a1->m_contentLayer, v35); v40 = a1->m_tableDelegate; if ( v40 ) ((void (__fastcall *)(TableViewDelegate *, char *, __int64, TableView *))v40->TableViewDidDisplayCellForRowAtIndexPath)( v40, v13, v35, a1); v10 = v35; } v5 = v10; } ++v9; v3 = v5; } while ( v9 != v48 ); } v4 = (unsigned int)(v54 + 1); v3 = v5; } while ( (_DWORD)v4 != v50 ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source