//
// CCTextInputMenu::registerWithTouchDispatcher from 0x100078da0 to 0x100078df3 (83 bytes)
//
// 1 xrefs:
// > ??> @ 0x100aba910
//
// 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 12:19:58 +0000
//
__int64 __fastcall CCTextInputMenu::registerWithTouchDispatcher(__int64 a1, __int64 a2)
{
__int64 v3; // rdi
__int64 v4; // r14
__int64 v5; // rax
__int64 v6; // rax
v3 = cocos2d::CCDirector::sharedDirector(a1, a2);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
v5 = cocos2d::CCDirector::sharedDirector(v3, a2);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
return cocos2d::CCTouchDispatcher::addTargetedDelegate(v4, a1 + 320, (unsigned int)(*(_DWORD *)(v6 + 128) - 2), 1);
}