//
// MenuGameLayer::registerWithTouchDispatcher from 0x1403337b0 to 0x140333800 (80 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405aaac0
// > ??> @ 0x1406d50d8
//
// 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 MenuGameLayer::registerWithTouchDispatcher(MenuGameLayer *a1)
{
__int64 v2; // rax
struct cocos2d::CCTouchDelegate *v3; // rdi
cocos2d::CCTouchDispatcher *v4; // rax
v2 = cocos2d::CCDirector::sharedDirector(a1);
v3 = &a1->cocos2d::CCTouchDelegate;
if ( !a1 )
v3 = nullptr;
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);
cocos2d::CCTouchDispatcher::addTargetedDelegate(v4, v3, 1, 1);
}