// // TableView::touchFinish from 0x1400757d0 to 0x140075abe (750 bytes) // // 6 xrefs: // > TableView::ccTouchEnded @ 0x140075454 // > TableView::ccTouchCancelled @ 0x1400754d7 // > @ 0x1406672d8 // > @ 0x1406672e8 // > @ 0x140667318 // > @ 0x1406c6420 // // 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::touchFinish(TableView *a1, cocos2d::CCTouch *a2) { __int64 v4; // rcx cocos2d::CCDirector *v5; // rax struct cocos2d::CCPoint v6; // rax __int64 v7; // rcx cocos2d::CCDirector *v8; // rax struct cocos2d::CCPoint v9; // rax cocos2d::CCArray *m_cellArray; // rcx unsigned int v11; // ebp cocos2d::CCNode *v12; // rax TableViewCell *v13; // r14 float height; // xmm10_4 float width; // xmm9_4 __int64 v16; // rdi __int64 v17; // rbx __int64 v18; // rax float v19; // xmm6_4 float v20; // xmm8_4 float v21; // xmm7_4 float *v22; // rdi float *v23; // rbx float *v24; // rax __int64 v25; // rax TableViewDelegate *m_tableDelegate; // rcx cocos2d::CCRect v27; // [rsp+30h] [rbp-88h] BYREF struct cocos2d::CCPoint v28; // [rsp+C0h] [rbp+8h] BYREF char v29; // [rsp+C8h] [rbp+10h] BYREF struct cocos2d::CCPoint v30; // [rsp+D0h] [rbp+18h] BYREF struct cocos2d::CCPoint v31; // [rsp+D8h] [rbp+20h] BYREF cocos2d::CCTouch::getLocationInView(a2); v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4); v6 = cocos2d::CCDirector::convertToGL(v5, &v28); ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v29, v6); if ( a2 == a1->m_beginTouch ) { cocos2d::CCTouch::getLocationInView(a2); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); v9 = cocos2d::CCDirector::convertToGL(v8, &v31); ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v28, v9); m_cellArray = a1->m_cellArray; if ( m_cellArray && cocos2d::CCArray::count(m_cellArray) && (v11 = 0, cocos2d::CCArray::count(a1->m_cellArray)) ) { while ( 1 ) { v12 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(a1->m_cellArray, v11); v13 = (TableViewCell *)v12; if ( v12 ) { cocos2d::CCNode::convertToNodeSpace(v12, &v30); height = v13->getContentSize(v13)->height; width = v13->getContentSize(v13)->width; v16 = (__int64)v13->getPosition_0(v13); v17 = (__int64)v13->getContentSize(v13); v18 = (__int64)v13->getAnchorPoint(v13); v19 = *(float *)(v17 + 4); v20 = *(float *)(v16 + 4); v21 = *(float *)(v18 + 4); v22 = (float *)v13->getPosition_0(v13); v23 = (float *)v13->getContentSize(v13); v24 = (float *)v13->getAnchorPoint(v13); cocos2d::CCRect::CCRect(&v27, *v22 - (float)(*v24 * *v23), v20 - (float)(v21 * v19), width, height); cocos2d::CCPoint::operator=(&v27, &stru_1406C1648); if ( cocos2d::CCRect::containsPoint(&v27, &v30) ) break; } if ( ++v11 >= cocos2d::CCArray::count(a1->m_cellArray) ) goto LABEL_8; } m_tableDelegate = a1->m_tableDelegate; a1->m_touchedCell = v13; if ( m_tableDelegate && !a1->m_notAtEndOfScroll ) m_tableDelegate->didSelectRowAtIndexPath(m_tableDelegate, &v13->m_indexPath, a1); } else { LABEL_8: a1->m_touchedCell = nullptr; } } cocos2d::CCPoint::operator=(&a1->m_checkLocation, &stru_1406C1648); cocos2d::CCPoint::operator=(&a1->m_beginLocation, v25); a1->m_touchMoved = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source