//
// TableView::ccTouchBegan from 0x6983b0 to 0x69848c (220 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'TableView::ccTouchBegan @ 0x698490
// > ??> @ 0xc52a8
// > ??> @ 0x1418d50
//
// 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::ccTouchBegan(__int64 a1, cocos2d::CCTouch *a2)
{
int v4; // w1
__int64 result; // x0
cocos2d::CCDirector *LocationInView; // x0
cocos2d::CCDirector *v7; // x0
__int64 v8; // x0
__int64 v9; // [xsp+48h] [xbp+48h] BYREF
__int64 v10; // [xsp+50h] [xbp+50h] BYREF
v4 = (unsigned __int8)CCScrollLayerExt::ccTouchBegan((_QWORD *)a1, a2);
result = 0;
if ( v4 )
{
*(_QWORD *)(a1 + 544) = a2;
LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView(&v9, a2);
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(LocationInView);
cocos2d::CCDirector::convertToGL(&v10, v7, (const cocos2d::CCPoint *)&v9);
cocos2d::CCPoint::operator=(a1 + 568, &v10);
cocos2d::CCPoint::operator=(a1 + 552, v8);
if ( !*(_BYTE *)(a1 + 536) )
{
cocos2d::CCNode::schedule(a1, TableView::checkBoundaryOfContent, 0);
*(_BYTE *)(a1 + 536) = 1;
}
*(_DWORD *)(a1 + 660) = *(_DWORD *)(a1 + 556);
return 1;
}
return result;
}