//
// DpadMenu::ccTouchMoved from 0x1401f31f0 to 0x1401f3243 (83 bytes)
//
// 2 xrefs:
// > ??> @ 0x140752cc0
// > ??> @ 0x14091a9f0
//
// 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:28:08 +0000
//
__int64 __fastcall DpadMenu::ccTouchMoved(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v4; // rcx
__int64 v5; // rbx
result = DpadMenu::arrowForTouch(a1 - 320, a2);
v4 = *(_QWORD *)(a1 + 120);
v5 = result;
if ( result != v4 )
{
if ( v4 )
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 904LL))(v4);
*(_QWORD *)(a1 + 120) = v5;
if ( v5 )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 896LL))(v5);
}
return result;
}