//
// TableView::touchFinish from 0x1006ffda0 to 0x1006ffe62 (194 bytes)
//
// 4 xrefs:
// > TableView::ccTouchEnded @ 0x1006ffd68
// > sub_1006FFE70 @ 0x1006ffe95
// > TableView::ccTouchCancelled @ 0x1006ffef1
// > sub_1006FFF20 @ 0x1006fff4e
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:35:58 +0000
//
_QWORD *__fastcall TableView::touchFinish(__int64 a1, __int64 a2)
{
__int64 v3; // rax
_QWORD *v4; // rax
_QWORD *result; // rax
__int64 v6; // rax
__int64 v7; // rdi
unsigned __int64 v8; // [rsp+0h] [rbp-30h] BYREF
float v9[10]; // [rsp+8h] [rbp-28h] BYREF
cocos2d::CCTouch::getLocationInView((__int64)&v8, a2);
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::convertToGL(v9, v3, &v8);
sub_100278300(&v8, v9);
if ( *(_QWORD *)(a1 + 544) == a2 )
{
v6 = TableView::cellForTouch(a1, a2);
*(_QWORD *)(a1 + 576) = v6;
if ( v6 )
{
v7 = *(_QWORD *)(a1 + 616);
if ( v7 )
{
if ( !*(_BYTE *)(a1 + 457) )
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v7 + 48LL))(v7, v6 + 424, a1);
}
}
}
v4 = sub_100278300((_QWORD *)(a1 + 568), &qword_100BE6598);
result = sub_100278300((_QWORD *)(a1 + 552), v4);
*(_BYTE *)(a1 + 584) = 0;
return result;
}