//
// TableView::touchFinish from 0x2e99cc to 0x2e9a62 (150 bytes)
//
// 2 xrefs:
// > TableView::ccTouchEnded @ 0x2ea5a2
// > TableView::ccTouchCancelled @ 0x2ea5ec
//
// 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; // r0
TableViewCell *v5; // r1
TableViewDelegate *m_tableDelegate; // r0
int v7; // r0
cocos2d::CCPoint v8; // [sp+4h] [bp-14h] BYREF
cocos2d::CCPoint v9; // [sp+Ch] [bp-Ch] BYREF
cocos2d::CCTouch::getLocationInView(&v8, a2);
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::convertToGL(&v9, v4, &v8);
cocos2d::CCPoint::operator=(&v8, &v9);
if ( a2 == a1->m_beginTouch )
{
v5 = TableView::cellForTouch(a1, a2);
a1->m_touchedCell = v5;
if ( v5 )
{
m_tableDelegate = a1->m_tableDelegate;
if ( m_tableDelegate )
{
if ( !a1->m_notAtEndOfScroll )
m_tableDelegate->didSelectRowAtIndexPath(m_tableDelegate, &v5->m_indexPath, a1);
}
}
}
v7 = cocos2d::CCPoint::operator=(&a1->m_checkLocation, &stru_AC5424);
cocos2d::CCPoint::operator=(&a1->m_beginLocation, v7);
a1->m_touchMoved = 0;
}