// // TableView::checkFirstCell from 0x2e9c34 to 0x2e9e14 (480 bytes) // // 2 xrefs: // > TableView::checkBoundaryOfContent @ 0x2ea1e0 // > TableView::checkBoundaryOfContent @ 0x2ea2e0 // // 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::checkFirstCell(TableView *a1, TableViewCell *a2) { const cocos2d::CCPoint *v4; // r0 float y; // s16 float v6; // s16 float v7; // s16 float v8; // s16 CCIndexPath *v9; // r7 int v10; // r0 int m_row; // r3 float v12; // r11 TableViewCell *v13; // r5 const cocos2d::CCSize *v14; // r0 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11 float v16; // s16 const cocos2d::CCSize *v17; // r0 _BOOL4 isDuplicateIndexPath; // r2 TableViewDelegate *m_tableDelegate; // r0 TableViewDelegate *v20; // r0 void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+4h] [bp-20h] void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // [sp+4h] [bp-20h] cocos2d::CCPoint v23; // [sp+Ch] [bp-18h] BYREF cocos2d::CCPoint v24; // [sp+14h] [bp-10h] BYREF if ( TableView::checkBoundaryOfCell(a1, a2) != 1 ) { v4 = a2->getPosition(a2); cocos2d::CCPoint::CCPoint(&v23, v4); y = v23.y; v6 = y + a2->getContentSize(a2)->height; v7 = v6 - a1->m_contentLayer->getContentSize(a1->m_contentLayer)->height; v8 = v7 + a1->m_contentLayer->getPosition(a1->m_contentLayer)->y; if ( v8 < a1->getContentSize(a1)->height ) { v9 = CCIndexPath::CCIndexPathWithSectionRow(a2->m_indexPath.m_section, a2->m_indexPath.m_row - 1); v10 = a1->m_dataSource->numberOfRowsInSection(a1->m_dataSource, a2->m_indexPath.m_section, a1); m_row = v9->m_row; if ( m_row >= 0 && m_row < v10 && !TableView::isDuplicateInVisibleCellArray(a1, v9) ) { v12 = COERCE_FLOAT( ((int (__fastcall *)(TableViewDelegate *, CCIndexPath *, TableView *))a1->m_tableDelegate->cellHeightForRowAtIndexPath)( a1->m_tableDelegate, v9, a1)); v13 = a1->m_dataSource->cellForRowAtIndexPath(a1->m_dataSource, v9, a1); if ( v13 ) { setAnchorPoint = v13->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v24, 0.0, 1.0); setAnchorPoint(v13, &v24); setContentSize = v13->setContentSize; v14 = a1->getContentSize(a1); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v24, v14->width, v12); setContentSize(v13, (const cocos2d::CCSize *)&v24); setPosition = v13->setPosition; v16 = a2->getPosition(a2)->y; v17 = a2->getContentSize(a2); cocos2d::CCPoint::CCPoint(&v24, 0.0, v16 + v17->height); setPosition(v13, &v24); CCIndexPath::operator=(&v13->m_indexPath.__vftable, v9); cocos2d::CCArray::insertObject(a1->m_cellArray, v13, 0); isDuplicateIndexPath = TableView::isDuplicateIndexPath(a1, v9); if ( !isDuplicateIndexPath ) cocos2d::CCArray::insertObject(a1->m_indexPathArray, v9, 0); m_tableDelegate = a1->m_tableDelegate; if ( m_tableDelegate ) m_tableDelegate->TableViewWillDisplayCellForRowAtIndexPath(m_tableDelegate, v9, v13, a1); ((void (__fastcall *)(CCContentLayer *, TableViewCell *, _BOOL4))a1->m_contentLayer->addChild)( a1->m_contentLayer, v13, isDuplicateIndexPath); v20 = a1->m_tableDelegate; if ( v20 ) v20->TableViewDidDisplayCellForRowAtIndexPath(v20, v9, v13, a1); } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source