//
// TableView::touchFinish from 0x3c9e08 to 0x3c9e9e (150 bytes)
//
// 2 xrefs:
// > TableView::ccTouchEnded @ 0x3ca9de
// > TableView::ccTouchCancelled @ 0x3caa28
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:36 +0000
//
int __fastcall TableView::touchFinish(TableView *this, cocos2d::CCTouch *a2)
{
cocos2d::CCDirector *LocationInView; // r0
const cocos2d::CCPoint *v5; // r0
const cocos2d::CCPoint *v6; // r1
int v7; // r0
int v8; // r0
int result; // r0
_BYTE v10[8]; // [sp+4h] [bp-14h] BYREF
_BYTE v11[8]; // [sp+Ch] [bp-Ch] BYREF
LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView((cocos2d::CCTouch *)v10);
v5 = (const cocos2d::CCPoint *)cocos2d::CCDirector::sharedDirector(LocationInView);
cocos2d::CCDirector::convertToGL((cocos2d::CCDirector *)v11, v5);
cocos2d::CCPoint::operator=(v10, v11);
if ( a2 == *((cocos2d::CCTouch **)this + 102) )
{
v6 = TableView::cellForTouch(this, a2);
*((_DWORD *)this + 109) = v6;
if ( v6 )
{
v7 = *((_DWORD *)this + 114);
if ( v7 )
{
if ( !*((_BYTE *)this + 349) )
(*(void (__fastcall **)(int, int, TableView *))(*(_DWORD *)v7 + 24))(v7, (int)v6 + 324, this);
}
}
}
v8 = cocos2d::CCPoint::operator=((char *)this + 428, &unk_D2A5D4);
result = cocos2d::CCPoint::operator=((char *)this + 412, v8);
*((_BYTE *)this + 440) = 0;
return result;
}