//
// cocos2d::CCMenu::registerWithTouchDispatcher from 0xd635c4 to 0xd63614 (80 bytes)
//
// 5 xrefs:
// > ??> @ 0x59e90
// > ??> @ 0x14164c8
// > ??> @ 0x14c34d8
// > ??> @ 0x14e2df8
// > ??> @ 0x1524308
//
// 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:52 +0000
//
__int64 __fastcall cocos2d::CCMenu::registerWithTouchDispatcher(cocos2d::CCMenu *this)
{
__int64 v2; // x0
cocos2d::CCTouchDispatcher *v3; // x20
int v4; // w0
v2 = cocos2d::CCDirector::sharedDirector(this);
v3 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2);
v4 = (*(__int64 (__fastcall **)(cocos2d::CCMenu *))(*(_QWORD *)this + 1032LL))(this);
return cocos2d::CCTouchDispatcher::addTargetedDelegate(v3, (cocos2d::CCMenu *)((char *)this + 320), v4, 1);
}