//
// cocos2d::extension::CCScrollView::ccTouchCancelled from 0x7add44 to 0x7add74 (48 bytes)
//
// 2 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCScrollView::ccTouchCancelled @ 0x7add78
// > cocos2d::extension::CCTableView::ccTouchCancelled @ 0x7b0392
//
// 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:04 +0000
//
int __fastcall cocos2d::extension::CCScrollView::ccTouchCancelled(int a1, cocos2d::CCObject *a2)
{
int result; // r0
result = (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 176))(a1);
if ( result )
{
cocos2d::CCArray::removeObject(*(cocos2d::CCArray **)(a1 + 396), a2, 1);
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 396));
if ( !result )
{
*(_BYTE *)(a1 + 336) = 0;
*(_BYTE *)(a1 + 352) = 0;
}
}
return result;
}