//
// TableView::touchFinish from 0x697038 to 0x697128 (240 bytes)
//
// 3 xrefs:
// > TableView::ccTouchEnded @ 0x6984b4
// > TableView::ccTouchCancelled @ 0x698520
// > ??> @ 0xd6db0
//
// This function is hookable on this platform (idp: arm, 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:50:38 +0000
//
__int64 __fastcall TableView::touchFinish(TableView *this, cocos2d::CCTouch *a2)
{
cocos2d::CCDirector *LocationInView; // x0
cocos2d::CCDirector *v5; // x0
cocos2d::CCTouch *v6; // x1
__int64 v7; // x0
cocos2d::CCNode *v9; // x0
cocos2d::CCNode *v10; // x1
__int64 v11; // x0
__int64 v12; // [xsp+48h] [xbp+48h] BYREF
__int64 v13; // [xsp+50h] [xbp+50h] BYREF
LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView(&v12, a2);
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(LocationInView);
cocos2d::CCDirector::convertToGL(&v13, v5, (const cocos2d::CCPoint *)&v12);
cocos2d::CCPoint::operator=(&v12, &v13);
v6 = *((cocos2d::CCTouch **)this + 68);
if ( v6 == a2 )
{
v9 = TableView::cellForTouch(this, v6);
*((_QWORD *)this + 72) = v9;
v10 = v9;
if ( v9 )
{
v11 = *((_QWORD *)this + 77);
if ( v11 )
{
if ( !*((_BYTE *)this + 457) )
(*(void (__fastcall **)(__int64, __int64, TableView *))(*(_QWORD *)v11 + 48LL))(v11, (__int64)v10 + 424, this);
}
}
}
cocos2d::CCPoint::operator=((char *)this + 568, &unk_155A978);
cocos2d::CCPoint::operator=((char *)this + 552, v7);
*((_BYTE *)this + 584) = 0;
return _stack_chk_guard;
}