//
// TableView::touchFinish from 0x1006235f0 to 0x1006236b2 (194 bytes)
//
// 4 xrefs:
// > TableView::ccTouchEnded @ 0x1006235b8
// > sub_1006236C0 @ 0x1006236e5
// > TableView::ccTouchCancelled @ 0x100623741
// > sub_100623770 @ 0x10062379e
//
// 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 __fastcall TableView::touchFinish(TableView *a1, cocos2d::CCTouch *a2)
{
cocos2d::CCDirector *v3; // rax
double v4; // xmm0_8
double *v5; // rax
TableViewCell *v6; // rax
TableViewDelegate *m_tableDelegate; // rdi
__int64 v8; // [rsp+0h] [rbp-30h] BYREF
double v9[5]; // [rsp+8h] [rbp-28h] BYREF
cocos2d::CCTouch::getLocationInView((cocos2d::CCTouch *)&v8);
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::convertToGL((cocos2d::CCDirector *)v9, (const cocos2d::CCPoint *)v3);
v4 = sub_10028CC90(&v8, v9);
if ( a1->m_beginTouch == a2 )
{
v6 = TableView::cellForTouch(a1, a2);
a1->m_touchedCell = v6;
if ( v6 )
{
m_tableDelegate = a1->m_tableDelegate;
if ( m_tableDelegate )
{
if ( !a1->m_notAtEndOfScroll )
((void (__fastcall *)(TableViewDelegate *, CCIndexPath *, TableView *, double))m_tableDelegate->didSelectRowAtIndexPath)(
m_tableDelegate,
&v6->m_indexPath,
a1,
v4);
}
}
}
sub_10028CC90(&a1->m_checkLocation, &dbl_1009A3608);
sub_10028CC90(&a1->m_beginLocation, v5);
a1->m_touchMoved = 0;
}