//
// cocos2d::CCMenu::registerWithTouchDispatcher from 0x7dbd54 to 0x7dbd80 (44 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:45 +0000
//
int __fastcall cocos2d::CCMenu::registerWithTouchDispatcher(cocos2d::CCMenu *this)
{
int v2; // r0
cocos2d::CCTouchDispatcher *v3; // r5
int v4; // r0
v2 = cocos2d::CCDirector::sharedDirector(this);
v3 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v2 + 80))(v2);
v4 = (*(int (__fastcall **)(cocos2d::CCMenu *))(*(_DWORD *)this + 516))(this);
return cocos2d::CCTouchDispatcher::addTargetedDelegate(v3, (cocos2d::CCMenu *)((char *)this + 264), v4, 1);
}