//
// cocos2d::extension::CCScrollView::registerWithTouchDispatcher from 0x180012040 to 0x1800120bd (125 bytes)
//
// 4 xrefs:
// > ??> @ 0x18002ad30
// > ??> @ 0x18002b2c8
// > ??> @ 0x180032408
// > ??> @ 0x18004c23c
//
// This function is hookable on this platform (idp: pc, 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 12:15:40 +0000
//
void __fastcall cocos2d::extension::CCScrollView::registerWithTouchDispatcher(
cocos2d::extension::CCScrollView *this,
__int64 a2)
{
__int64 v3; // r14
__int64 (__fastcall *v4)(__int64); // rdi
struct cocos2d::CCTouchDelegate *v5; // rbx
int TouchPriority; // esi
cocos2d::CCTouchDispatcher *v7; // rax
v3 = cocos2d::CCDirector::sharedDirector(this, a2);
v4 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL);
v5 = (cocos2d::extension::CCScrollView *)((char *)this + 320);
TouchPriority = cocos2d::CCLayer::getTouchPriority(this);
if ( !this )
v5 = nullptr;
v7 = (cocos2d::CCTouchDispatcher *)v4(v3);
cocos2d::CCTouchDispatcher::addTargetedDelegate(v7, v5, TouchPriority, 0);
}