//
// cocos2d::CCMenu::registerWithTouchDispatcher from 0x1001d8314 to 0x1001d8364 (80 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007bfc08
//
// 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 __fastcall cocos2d::CCMenu::registerWithTouchDispatcher(cocos2d::CCMenu *a1)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCTouchDispatcher *v3; // x20
int v4; // w2
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getTouchDispatcher)(v2);
v4 = ((__int64 (__fastcall *)(cocos2d::CCMenu *))a1->getTouchPriority)(a1);
cocos2d::CCTouchDispatcher::addTargetedDelegate(v3, &a1->cocos2d::CCTouchDelegate, v4, 1);
}