//
// cocos2d::CCMenu::registerWithTouchDispatcher from 0x18005b8b0 to 0x18005b931 (129 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800fd4a8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bce14
//
// 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 11:21:49 +0000
//
void __fastcall cocos2d::CCMenu::registerWithTouchDispatcher(cocos2d::CCMenu *this)
{
struct cocos2d::CCDirector *v2; // r14
__int64 (__fastcall *v3)(struct cocos2d::CCDirector *); // rdi
int v4; // esi
struct cocos2d::CCTouchDelegate *v5; // rbx
cocos2d::CCTouchDispatcher *v6; // rax
v2 = cocos2d::CCDirector::sharedDirector();
v3 = *(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v2 + 144LL);
v4 = (*(__int64 (__fastcall **)(cocos2d::CCMenu *))(*(_QWORD *)this + 952LL))(this);
v5 = (cocos2d::CCMenu *)((char *)this + 320);
if ( !this )
v5 = nullptr;
v6 = (cocos2d::CCTouchDispatcher *)v3(v2);
cocos2d::CCTouchDispatcher::addTargetedDelegate(v6, v5, v4, 1);
}