//
// cocos2d::extension::CCScrollView::ccTouchCancelled from 0xd16b14 to 0xd16b78 (100 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCScrollView::ccTouchCancelled @ 0xd16b7c
// > cocos2d::extension::CCTableView::ccTouchCancelled @ 0xd1ad74
// > ??> @ 0x925d8
// > ??> @ 0x150eda8
//
// 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 13:07:06 +0000
//
__int64 __fastcall cocos2d::extension::CCScrollView::ccTouchCancelled(__int64 a1, cocos2d::CCObject *a2)
{
__int64 result; // x0
result = (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1);
if ( (_BYTE)result )
{
cocos2d::CCArray::removeObject(*(cocos2d::CCArray **)(a1 + 496), a2, 1);
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 496));
if ( !(_DWORD)result )
{
*(_BYTE *)(a1 + 428) = 0;
*(_BYTE *)(a1 + 448) = 0;
}
}
return result;
}