//
// CCScrollLayerExt::registerWithTouchDispatcher from 0x1400475a0 to 0x1400475ee (78 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405303b8
// > ??> @ 0x1406c48d8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void CCScrollLayerExt::registerWithTouchDispatcher(CCScrollLayerExt *a1)
{
__int64 v2; // rax
struct cocos2d::CCTouchDelegate *v3; // rdi
cocos2d::CCTouchDispatcher *v4; // rax
v2 = cocos2d::CCDirector::sharedDirector();
v3 = &a1->cocos2d::CCTouchDelegate;
if ( !a1 )
v3 = nullptr;
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);
cocos2d::CCTouchDispatcher::addTargetedDelegate(v4, v3, -128, 0);
}