// // TableView::cellForTouch from 0x1002febc8 to 0x1002fed68 (416 bytes) // // 1 xrefs: // > TableView::touchFinish @ 0x1002ffc6c // // 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 *__fastcall 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; // x22 float v8; // s8 float v9; // s9 float v10; // s8 float v11; // s9 float v12; // s10 float v13; // s9 float v14; // s10 __int64 v15; // x0 double v17[2]; // [xsp+0h] [xbp-60h] BYREF float v18; // [xsp+10h] [xbp-50h] BYREF cocos2d::CCPoint v19; // [xsp+18h] [xbp-48h] BYREF cocos2d::CCPoint v20; // 0:kr10_8.8 cocos2d::CCTouch::getLocationInView(a2); v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::convertToGL(v3, &v19); sub_1000229D0(&v19, v17); m_cellArray = a1->m_cellArray; if ( !m_cellArray || !(unsigned int)sub_10024A36C((__int64)m_cellArray) || !(unsigned int)sub_10024A36C((__int64)a1->m_cellArray) ) { return nullptr; } v5 = 0; while ( 1 ) { v6 = (cocos2d::CCNode *)sub_10024A388((__int64)a1->m_cellArray, v5); if ( v6 ) { v7 = (TableViewCell *)v6; v20 = cocos2d::CCNode::convertToNodeSpace(v6, &v19); v8 = *(float *)((__int64 (__fastcall *)(TableViewCell *, float, float))v7->getPosition)(v7, v20.x, v20.y); v9 = *(float *)((__int64 (__fastcall *)(TableViewCell *))v7->getContentSize)(v7); v10 = v8 - (float)(v9 * *(float *)((__int64 (__fastcall *)(TableViewCell *))v7->getAnchorPoint)(v7)); v11 = *(float *)(((__int64 (__fastcall *)(TableViewCell *))v7->getPosition)(v7) + 4); v12 = *(float *)(((__int64 (__fastcall *)(TableViewCell *))v7->getContentSize)(v7) + 4); v13 = v11 - (float)(v12 * *(float *)(((__int64 (__fastcall *)(TableViewCell *))v7->getAnchorPoint)(v7) + 4)); v14 = *(float *)((__int64 (__fastcall *)(TableViewCell *))v7->getContentSize)(v7); v15 = ((__int64 (__fastcall *)(TableViewCell *))v7->getContentSize)(v7); sub_100022990((float *)v17, v10, v13, v14, *(float *)(v15 + 4)); sub_1000229D0(v17, &dbl_10086DEB0); if ( sub_100022C60((float *)v17, &v18) ) break; } if ( ++v5 >= (unsigned int)sub_10024A36C((__int64)a1->m_cellArray) ) return nullptr; } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source