// // TableView::initTableViewCells from 0x2e90d0 to 0x2e92ec (540 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 TableView::initTableViewCells(TableView *a1) { TableViewDataSource *m_dataSource; // r0 signed int v3; // r7 cocos2d::CCNode *v4; // r6 int v5; // r10 int v6; // r9 int v7; // r11 CCIndexPath *v8; // r8 float v9; // s16 int v10; // r1 int v11; // r0 __int64 v12; // r0 TableViewCell *v13; // r0 cocos2d::CCNode *v14; // r5 const cocos2d::CCSize *v15; // r0 TableViewDelegate *m_tableDelegate; // r0 TableViewDelegate *v17; // r0 void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+10h] [bp-24h] void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // [sp+10h] [bp-24h] void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+10h] [bp-24h] float x; // [sp+14h] [bp-20h] cocos2d::CCPoint v22; // [sp+1Ch] [bp-18h] BYREF cocos2d::CCPoint v23; // [sp+24h] [bp-10h] BYREF if ( a1->m_tableDelegate ) { m_dataSource = a1->m_dataSource; if ( m_dataSource ) { v3 = 0; v4 = nullptr; v5 = m_dataSource->numberOfSectionsInTableView(m_dataSource, a1); while ( v3 < v5 ) { v6 = 0; v7 = a1->m_dataSource->numberOfRowsInSection(a1->m_dataSource, v3, a1); while ( v6 < v7 ) { v8 = CCIndexPath::CCIndexPathWithSectionRow(v3, v6); v9 = COERCE_FLOAT( ((int (__fastcall *)(TableViewDelegate *, CCIndexPath *, TableView *))a1->m_tableDelegate->cellHeightForRowAtIndexPath)( a1->m_tableDelegate, v8, a1)); cocos2d::CCPoint::CCPoint(&v22); if ( v4 ) { x = v4->getPosition(v4)->x; v11 = (int)v4->getPosition(v4); cocos2d::CCPoint::CCPoint(&v23, x, *(float *)(v11 + 4) - v9); cocos2d::CCPoint::operator=(&v22, &v23); } else { v22.y = (float)(a1->m_contentLayer->getContentSize(a1->m_contentLayer)->height - (float)((float)v6 * v9)) - v9; } printf("pos = %f \n", v10, v22.y); if ( v22.y < 0.0 ) return; v12 = ((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer); printf("content height =%f \n", HIDWORD(v12), *(float *)(v12 + 4)); v13 = a1->m_dataSource->cellForRowAtIndexPath(a1->m_dataSource, v8, a1); v14 = v13; if ( v13 ) { setAnchorPoint = v13->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v23, 0.0, 1.0); setAnchorPoint(v14, &v23); setContentSize = v14->setContentSize; v15 = a1->getContentSize(a1); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v23, v15->width * 0.5, v9); setContentSize(v14, (const cocos2d::CCSize *)&v23); setPosition = v14->setPosition; cocos2d::CCPoint::CCPoint(&v23, 0.0, v22.y); setPosition(v14, &v23); CCIndexPath::operator=(&v14[1].m_fScaleX, v8); cocos2d::CCArray::addObject(a1->m_cellArray, v14); cocos2d::CCArray::addObject(a1->m_indexPathArray, v8); m_tableDelegate = a1->m_tableDelegate; if ( m_tableDelegate ) m_tableDelegate->TableViewWillDisplayCellForRowAtIndexPath(m_tableDelegate, v8, (TableViewCell *)v14, a1); a1->m_contentLayer->addChild(a1->m_contentLayer, v14); v17 = a1->m_tableDelegate; if ( v17 ) v17->TableViewDidDisplayCellForRowAtIndexPath(v17, v8, (TableViewCell *)v14, a1); } else { v14 = v4; } ++v6; v4 = v14; } ++v3; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source