//
// TableView::touchFinish from 0x57b94c to 0x57ba3c (240 bytes)
//
// 3 xrefs:
// > TableView::ccTouchEnded @ 0x57cdc8
// > TableView::ccTouchCancelled @ 0x57ce34
// > ??> @ 0xa36c8
//
// 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)
{
cocos2d::CCDirector *v4; // x0
float v5; // s0
float v6; // s1
cocos2d::CCTouch *m_beginTouch; // x1
float v8; // s0
float v9; // s1
TableViewCell *v10; // x0
TableViewCell *v11; // x1
TableViewDelegate *m_tableDelegate; // x0
cocos2d::CCPoint v13; // [xsp+48h] [xbp+48h] BYREF
cocos2d::CCPoint v14; // 0:kr08_8.8
cocos2d::CCTouch::getLocationInView(a2);
v4 = cocos2d::CCDirector::sharedDirector();
v14 = cocos2d::CCDirector::convertToGL(v4, &v13);
cocos2d::CCPoint::operator=(&v13, v14.x, v14.y);
m_beginTouch = a1->m_beginTouch;
if ( m_beginTouch == a2 )
{
v10 = TableView::cellForTouch(a1, m_beginTouch);
a1->m_touchedCell = v10;
v11 = v10;
if ( v10 )
{
m_tableDelegate = a1->m_tableDelegate;
if ( m_tableDelegate )
{
if ( !a1->m_notAtEndOfScroll )
m_tableDelegate->didSelectRowAtIndexPath(m_tableDelegate, &v11->m_indexPath, a1);
}
}
}
cocos2d::CCPoint::operator=(&a1->m_checkLocation, v5, v6);
cocos2d::CCPoint::operator=(&a1->m_beginLocation, v8, v9);
a1->m_touchMoved = 0;
}