//
// cocos2d::extension::CCScrollView::registerWithTouchDispatcher from 0xd16984 to 0xd169cc (72 bytes)
//
// 3 xrefs:
// > ??> @ 0xf60e8
// > ??> @ 0x150edd8
// > ??> @ 0x150f468
//
// 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::registerWithTouchDispatcher(
cocos2d::extension::CCScrollView *this)
{
__int64 v2; // x0
cocos2d::CCTouchDispatcher *v3; // x20
int TouchPriority; // w0
v2 = cocos2d::CCDirector::sharedDirector(this);
v3 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2);
TouchPriority = cocos2d::CCLayer::getTouchPriority(this);
return cocos2d::CCTouchDispatcher::addTargetedDelegate(
v3,
(cocos2d::extension::CCScrollView *)((char *)this + 320),
TouchPriority,
0);
}