// // TableView::initTableViewCells from 0x100621cf0 to 0x100622019 (809 bytes) // // 0 xrefs: // // 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::initTableViewCells(TableView *a1) { TableViewDataSource *m_dataSource; // rdi unsigned int v3; // r13d int v4; // r14d char *v5; // r15 __int64 v6; // r13 __int64 v7; // rax float v8; // xmm0_4 float v9; // xmm0_4 __int64 v10; // rax __int64 v11; // rax __int64 v12; // r12 float *v13; // rax __int128 v14; // xmm0 __int128 v15; // xmm1 TableViewDelegate *m_tableDelegate; // rdi TableViewDelegate *v17; // rdi double v18; // [rsp+0h] [rbp-60h] BYREF __int64 (__fastcall **v19)(); // [rsp+8h] [rbp-58h] float v20; // [rsp+10h] [rbp-50h] int v21; // [rsp+14h] [rbp-4Ch] unsigned int v22; // [rsp+18h] [rbp-48h] int v23; // [rsp+1Ch] [rbp-44h] __int64 v24; // [rsp+20h] [rbp-40h] __int64 v25; // [rsp+2Ch] [rbp-34h] BYREF float v26; // [rsp+34h] [rbp-2Ch] if ( a1->m_tableDelegate ) { m_dataSource = a1->m_dataSource; if ( m_dataSource ) { v23 = ((__int64 (__fastcall *)(TableViewDataSource *, TableView *))m_dataSource->numberOfSectionsInTableView)( m_dataSource, a1); if ( v23 > 0 ) { v24 = 0; v19 = off_1009829A8; v3 = 0; while ( 1 ) { v21 = ((__int64 (__fastcall *)(TableViewDataSource *, _QWORD, TableView *))a1->m_dataSource->numberOfRowsInSection)( a1->m_dataSource, v3, a1); if ( v21 > 0 ) break; LABEL_5: if ( ++v3 == v23 ) return; } v4 = 0; v22 = v3; while ( 1 ) { v5 = (char *)operator new(0x40u); cocos2d::CCObject::CCObject((__int64)v5); *(_QWORD *)v5 = v19; *((_DWORD *)v5 + 14) = v4; *((_DWORD *)v5 + 15) = v3; cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5); v26 = ((float (__fastcall *)(TableViewDelegate *, char *, TableView *))a1->m_tableDelegate->cellHeightForRowAtIndexPath)( a1->m_tableDelegate, v5, a1); sub_10028CC30(&v25); v6 = v24; if ( v24 ) { v20 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v24 + 192LL))(v24); v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 192LL))(v6); sub_10028CBE0((float *)&v18, v20, *(float *)(v7 + 4) - v26); sub_10028CC90(&v25, &v18); v8 = *((float *)&v25 + 1); } else { v9 = *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer) + 4); v8 = (float)(v9 - (float)((float)v4 * v26)) - v26; *((float *)&v25 + 1) = v8; } printf("pos = %f \n", v8); if ( *((float *)&v25 + 1) < 0.0 ) break; v10 = ((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer); printf("content height =%f \n", *(float *)(v10 + 4)); v11 = ((__int64 (__fastcall *)(TableViewDataSource *, char *, TableView *))a1->m_dataSource->cellForRowAtIndexPath)( a1->m_dataSource, v5, a1); if ( v11 ) { v12 = v11; sub_10028CBE0((float *)&v18, 0.0, 1.0); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v12 + 280LL))(v12, &v18); v13 = (float *)((__int64 (__fastcall *)(TableView *))a1->getContentSize)(a1); sub_10028CBF0((float *)&v18, *v13 * 0.5, v26); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v12 + 304LL))(v12, &v18); sub_10028CBE0((float *)&v18, 0.0, *((float *)&v25 + 1)); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v12 + 184LL))(v12, &v18); v14 = *(_OWORD *)(v5 + 8); v15 = *(_OWORD *)(v5 + 24); *(_OWORD *)(v12 + 464) = *(_OWORD *)(v5 + 40); *(_OWORD *)(v12 + 448) = v15; *(_OWORD *)(v12 + 432) = v14; *(_QWORD *)(v12 + 480) = *((_QWORD *)v5 + 7); sub_10071FCD0(a1->m_cellArray, v12); sub_10071FCD0(a1->m_indexPathArray, v5); m_tableDelegate = a1->m_tableDelegate; if ( m_tableDelegate ) ((void (__fastcall *)(TableViewDelegate *, char *, __int64, TableView *))m_tableDelegate->TableViewWillDisplayCellForRowAtIndexPath)( m_tableDelegate, v5, v12, a1); ((void (__fastcall *)(CCContentLayer *, __int64))a1->m_contentLayer->addChild)(a1->m_contentLayer, v12); v17 = a1->m_tableDelegate; if ( v17 ) ((void (__fastcall *)(TableViewDelegate *, char *, __int64, TableView *))v17->TableViewDidDisplayCellForRowAtIndexPath)( v17, v5, v12, a1); v24 = v12; } ++v4; v3 = v22; if ( v21 == v4 ) goto LABEL_5; } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source