//
// cocos2d::extension::CCScrollView::ccTouchEnded from 0x7adc8c to 0x7adcf8 (108 bytes)
//
// 2 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCScrollView::ccTouchEnded @ 0x7add00
// > cocos2d::extension::CCTableView::ccTouchEnded @ 0x7b025c
//
// 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::ccTouchEnded(int a1, cocos2d::CCObject *a2)
{
int result; // r0
result = (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 176))(a1);
if ( result )
{
if ( cocos2d::CCArray::containsObject(*(cocos2d::CCArray **)(a1 + 396), a2) )
{
if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 396)) == 1
&& *(_BYTE *)(a1 + 352)
&& !*(_BYTE *)(a1 + 433) )
{
cocos2d::CCNode::schedule(
a1,
cocos2d::extension::CCScrollView::deaccelerateScrolling,
*(unsigned __int8 *)(a1 + 433));
}
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;
}