//
// CCTextInputNode::registerWithTouchDispatcher from 0x140059a40 to 0x140059a93 (83 bytes)
//
// 2 xrefs:
// > ??> @ 0x14070d450
// > ??> @ 0x14091058c
//
// 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:25:41 +0000
//
void __fastcall CCTextInputNode::registerWithTouchDispatcher(__int64 a1)
{
__int64 v2; // rax
struct cocos2d::CCTouchDelegate *v3; // rdi
cocos2d::CCTouchDispatcher *v4; // rax
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (struct cocos2d::CCTouchDelegate *)(a1 + 320);
if ( !a1 )
v3 = nullptr;
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);
cocos2d::CCTouchDispatcher::addPrioTargetedDelegate(v4, v3, -500, 0);
}