//
// cocos2d::CCMenu::registerWithTouchDispatcher from 0x180059890 to 0x1800598ff (111 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800f7060
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b2b74
//
// 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 *this)
{
struct cocos2d::CCDirector *v2; // rsi
struct cocos2d::CCTouchDelegate *v3; // rbx
int v4; // ebp
cocos2d::CCTouchDispatcher *v5; // rax
v2 = cocos2d::CCDirector::sharedDirector();
v3 = &this->cocos2d::CCTouchDelegate;
v4 = ((__int64 (__fastcall *)(cocos2d::CCMenu *))this->getTouchPriority)(this);
if ( !this )
v3 = nullptr;
v5 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(struct cocos2d::CCDirector *))v2->getTouchDispatcher)(v2);
cocos2d::CCTouchDispatcher::addTargetedDelegate(v5, v3, v4, 1);
}