//
// cocos2d::extension::CCTableView::ccTouchBegan from 0x7b0280 to 0x7b034a (202 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCTableView::ccTouchBegan @ 0x7b0354
//
// 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 12:00:06 +0000
//
int __fastcall cocos2d::extension::CCTableView::ccTouchBegan(int a1, cocos2d::CCObject *a2)
{
int result; // r0
int v5; // r5
cocos2d::CCTouch *Container; // r0
float v7; // r2
float v8; // r3
unsigned int v9; // r1
int v10; // r0
int v11; // r0
_BYTE v12[8]; // [sp+4h] [bp-18h] BYREF
float v13[2]; // [sp+Ch] [bp-10h] BYREF
result = (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 176))(a1);
if ( result )
{
v5 = cocos2d::extension::CCScrollView::ccTouchBegan(a1, a2);
if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 396)) == 1 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12);
Container = (cocos2d::CCTouch *)cocos2d::extension::CCScrollView::getContainer((cocos2d::extension::CCScrollView *)a1);
cocos2d::CCNode::convertTouchToNodeSpace((cocos2d::CCNode *)v13, Container);
cocos2d::CCPoint::operator=(v12, v13);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)v12);
v9 = cocos2d::extension::CCTableView::_indexFromOffset(a1, v13, v7, v8);
if ( v9 == -1 )
*(_DWORD *)(a1 + 452) = 0;
else
*(_DWORD *)(a1 + 452) = cocos2d::extension::CCTableView::cellAtIndex((cocos2d::extension::CCTableView *)a1, v9);
if ( *(_DWORD *)(a1 + 452) )
{
v10 = *(_DWORD *)(a1 + 488);
if ( v10 )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 20))(v10, a1);
}
}
else if ( *(_DWORD *)(a1 + 452) )
{
v11 = *(_DWORD *)(a1 + 488);
if ( v11 )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 24))(v11, a1);
*(_DWORD *)(a1 + 452) = 0;
}
return v5;
}
return result;
}