//
// cocos2d::CCMenu::ccTouchMoved from 0x100873f80 to 0x100873ff8 (120 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b8a168
// > ??> @ 0x100ba0900
//
// 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:36:52 +0000
//
__int64 __fastcall cocos2d::CCMenu::ccTouchMoved(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v4; // rdi
__int64 v5; // r14
result = cocos2d::CCMenu::itemForTouch(a1, a2, 0);
if ( result )
{
v4 = *(_QWORD *)(a1 + 432);
if ( result == v4 )
return result;
}
else
{
result = cocos2d::CCMenu::itemForTouch(a1, a2, 1);
v4 = *(_QWORD *)(a1 + 432);
if ( result == v4 )
return result;
}
if ( v4 )
{
v5 = result;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1024LL))(v4);
result = v5;
}
*(_QWORD *)(a1 + 432) = result;
if ( result )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 1016LL))(result);
return result;
}