// // TableView::cellForTouch from 0x57ad70 to 0x57af5c (492 bytes) // // 2 xrefs: // > TableView::touchFinish @ 0x57ba00 // > @ 0x485d0 // // 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 // TableViewCell *TableView::cellForTouch(TableView *a1, cocos2d::CCTouch *a2) { cocos2d::CCDirector *v3; // x0 cocos2d::CCArray *m_cellArray; // x0 unsigned int v5; // w20 cocos2d::CCNode *v6; // x0 TableViewCell *v7; // x19 float v8; // s9 float width; // s8 float y; // s9 float height; // s8 __int64 v12; // x0 float v13; // s0 float v14; // s1 float v16; // [xsp+60h] [xbp+60h] float v17; // [xsp+70h] [xbp+70h] float v18; // [xsp+80h] [xbp+80h] cocos2d::CCPoint v19; // [xsp+98h] [xbp+98h] BYREF cocos2d::CCPoint v20; // [xsp+A0h] [xbp+A0h] BYREF cocos2d::CCRect v21; // [xsp+A8h] [xbp+A8h] BYREF cocos2d::CCPoint v22; // 0:kr08_8.8 cocos2d::CCPoint v23; // 0:kr10_8.8 cocos2d::CCTouch::getLocationInView(a2); v3 = cocos2d::CCDirector::sharedDirector(); v22 = cocos2d::CCDirector::convertToGL(v3, &v19); cocos2d::CCPoint::operator=(&v19, v22.x, v22.y); m_cellArray = a1->m_cellArray; if ( !m_cellArray ) return nullptr; if ( !(unsigned int)cocos2d::CCArray::count(m_cellArray) ) return nullptr; v5 = 0; if ( !(unsigned int)cocos2d::CCArray::count(a1->m_cellArray) ) return nullptr; while ( 1 ) { v6 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(a1->m_cellArray, v5); v7 = (TableViewCell *)v6; if ( v6 ) { v23 = cocos2d::CCNode::convertToNodeSpace(v6, &v19); v8 = *(float *)((__int64 (__fastcall *)(TableViewCell *, float, float))v7->getPosition)(v7, v23.x, v23.y); width = v7->getContentSize(v7)->width; v16 = v8 - (float)(width * v7->getAnchorPoint(v7)->x); y = v7->getPosition(v7)->y; height = v7->getContentSize(v7)->height; v17 = y - (float)(height * v7->getAnchorPoint(v7)->y); v18 = v7->getContentSize(v7)->width; v12 = (__int64)v7->getContentSize(v7); cocos2d::CCRect::CCRect(&v21, v16, v17, v18, *(float *)(v12 + 4)); cocos2d::CCPoint::operator=(&v21, v13, v14); if ( (unsigned __int8)cocos2d::CCRect::containsPoint(&v21, &v20) ) break; } if ( ++v5 >= (unsigned int)cocos2d::CCArray::count(a1->m_cellArray) ) return nullptr; } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source