//
// cocos2d::extension::CCControl::registerWithTouchDispatcher from 0x10033d020 to 0x10033d070 (80 bytes)
//
// 8 xrefs:
// > ??> @ 0x100b1d748
// > ??> @ 0x100b1de40
// > ??> @ 0x100b1e688
// > ??> @ 0x100b1fd38
// > ??> @ 0x100b2cfc0
// > ??> @ 0x100b2f4f8
// > ??> @ 0x100b30d98
// > ??> @ 0x100b52528
//
// 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:28:42 +0000
//
__int64 __fastcall cocos2d::extension::CCControl::registerWithTouchDispatcher(__int64 a1, __int64 a2)
{
__int64 v2; // rax
__int64 v3; // r14
unsigned int v4; // eax
v2 = cocos2d::CCDirector::sharedDirector(a1, a2);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1032LL))(a1);
return cocos2d::CCTouchDispatcher::addTargetedDelegate(v3, a1 + 320, v4, 1);
}