//
// sub_1001FEF4C from 0x1001fef4c to 0x1001fefa8 (92 bytes)
//
// 2 xrefs:
// > CCTextInputNode::rightClick @ 0x1001ff66c
// > CCTextInputNode::scrollWheel @ 0x1001ff9e0
//
// This function is hookable on this platform (idp: arm, 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:00:44 +0000
//
__int64 __fastcall sub_1001FEF4C(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 result; // x0
__int64 Priority; // x0
int v6; // w19
__int64 v7; // x0
v2 = cocos2d::CCDirector::sharedDirector(a1);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2);
result = cocos2d::CCTouchDispatcher::findHandler_1(v3, a1 + 320);
if ( result )
{
Priority = cocos2d::CCTouchHandler::getPriority(result);
v6 = Priority;
v7 = cocos2d::CCDirector::sharedDirector(Priority);
return v6 > *(_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 160LL))(v7) + 128);
}
return result;
}