// // TableView::checkFirstCell from 0x57bcd0 to 0x57c04c (892 bytes) // // 3 xrefs: // > TableView::checkBoundaryOfContent @ 0x57c5fc // > TableView::checkBoundaryOfContent @ 0x57c9a0 // > @ 0x83340 // // 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; // x0 float y; // s8 float v6; // s8 float v7; // s8 float v8; // s8 int m_section; // w24 int v10; // w23 __int64 v11; // x22 int v12; // w0 int v13; // w1 float v14; // s8 TableViewCell *v15; // x23 void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x25 const cocos2d::CCSize *v18; // x0 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 float v20; // s8 const cocos2d::CCSize *v21; // x0 int v22; // w16 int v23; // w15 unsigned int v24; // w14 unsigned int v25; // w13 cocos2d::CCObjectType v26; // w12 int v27; // w11 int v28; // w10 int v29; // w9 int v30; // w8 int v31; // w7 int v32; // w6 int v33; // w5 int v34; // w4 cocos2d::CCArray *m_cellArray; // x0 TableViewDelegate *m_tableDelegate; // x0 TableViewDelegate *v37; // x0 cocos2d::CCPoint v38; // [xsp+58h] [xbp+58h] BYREF cocos2d::CCPoint v39; // [xsp+60h] [xbp+60h] BYREF if ( (unsigned int)TableView::checkBoundaryOfCell(a1, a2) != 1 ) { v4 = a2->getPosition(a2); cocos2d::CCPoint::CCPoint(&v38, v4); y = v38.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 ) { m_section = a2->m_indexPath.m_section; v10 = a2->m_indexPath.m_row - 1; v11 = operator new(0x40u); cocos2d::CCObject::CCObject((cocos2d::CCObject *)v11); *(_DWORD *)(v11 + 56) = v10; *(_DWORD *)(v11 + 60) = m_section; *(_QWORD *)v11 = &off_113AA70; cocos2d::CCObject::autorelease((cocos2d::CCObject *)v11); v12 = a1->m_dataSource->numberOfRowsInSection(a1->m_dataSource, a2->m_indexPath.m_section, a1); v13 = *(_DWORD *)(v11 + 56); if ( v12 > v13 && (v13 & 0x80000000) == 0 && !TableView::isDuplicateInVisibleCellArray(a1, (CCIndexPath *)v11) ) { v14 = a1->m_tableDelegate->cellHeightForRowAtIndexPath(a1->m_tableDelegate, (CCIndexPath *)v11, a1); v15 = a1->m_dataSource->cellForRowAtIndexPath(a1->m_dataSource, v11, a1); if ( v15 ) { setAnchorPoint = v15->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v39, 0.0, 1.0); setAnchorPoint(v15, &v39); setContentSize = v15->setContentSize; v18 = a1->getContentSize(a1); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v39, v18->width, v14); setContentSize(v15, (const cocos2d::CCSize *)&v39); setPosition = v15->setPosition; v20 = a2->getPosition(a2)->y; v21 = a2->getContentSize(a2); cocos2d::CCPoint::CCPoint(&v39, 0.0, v20 + v21->height); setPosition(v15, &v39); v22 = *(_DWORD *)(v11 + 12); v23 = *(_DWORD *)(v11 + 16); v24 = *(_DWORD *)(v11 + 20); v25 = *(_DWORD *)(v11 + 24); v26 = *(_DWORD *)(v11 + 28); v27 = *(_DWORD *)(v11 + 32); v28 = *(_DWORD *)(v11 + 36); v29 = *(_DWORD *)(v11 + 40); v30 = *(_DWORD *)(v11 + 44); v31 = *(_DWORD *)(v11 + 48); v32 = *(_DWORD *)(v11 + 52); v33 = *(_DWORD *)(v11 + 56); v34 = *(_DWORD *)(v11 + 60); m_cellArray = a1->m_cellArray; v15->m_indexPath.m_uID = *(_DWORD *)(v11 + 8); v15->m_indexPath.m_nLuaID = v22; v15->m_indexPath.m_nTag = v23; v15->m_indexPath.m_uReference = v24; v15->m_indexPath.m_uAutoReleaseCount = v25; v15->m_indexPath.m_eObjType = v26; v15->m_indexPath.m_uIndexInArray = v27; v15->m_indexPath.m_uUnknown = v28; v15->m_indexPath.m_unknown2 = v29; v15->m_indexPath.m_nZOrder = v30; v15->m_indexPath.m_uOrderOfArrival = v31; v15->m_indexPath.m_unknown5 = v32; v15->m_indexPath.m_row = v33; v15->m_indexPath.m_section = v34; cocos2d::CCArray::insertObject(m_cellArray, v15, 0); if ( !TableView::isDuplicateIndexPath(a1, (CCIndexPath *)v11) ) cocos2d::CCArray::insertObject(a1->m_indexPathArray, (cocos2d::CCObject *)v11, 0); m_tableDelegate = a1->m_tableDelegate; if ( m_tableDelegate ) m_tableDelegate->TableViewWillDisplayCellForRowAtIndexPath(m_tableDelegate, (CCIndexPath *)v11, v15, a1); a1->m_contentLayer->addChild(a1->m_contentLayer, v15); v37 = a1->m_tableDelegate; if ( v37 ) v37->TableViewDidDisplayCellForRowAtIndexPath(v37, (CCIndexPath *)v11, v15, a1); } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source