//
// UIPOptionsLayer::ccTouchMoved from 0x1403ac3a0 to 0x1403ac447 (167 bytes)
//
// 2 xrefs:
// > ??> @ 0x14077c4e0
// > ??> @ 0x140923a98
//
// 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:31:21 +0000
//
__int64 __fastcall UIPOptionsLayer::ccTouchMoved(__int64 a1, __int64 a2)
{
const struct cocos2d::CCPoint *v4; // r8
__int64 result; // rax
float v6; // xmm0_4
const struct cocos2d::CCPoint *v7; // rdx
_BYTE v8[24]; // [rsp+20h] [rbp-18h] BYREF
char v9; // [rsp+40h] [rbp+8h] BYREF
char v10; // [rsp+48h] [rbp+10h] BYREF
char v11; // [rsp+58h] [rbp+20h] BYREF
cocos2d::CCTouch::getLocation(a2, &v10);
cocos2d::CCNode::convertToNodeSpace(a1 - 320, &v9, &v10);
result = *(unsigned int *)(a2 + 56);
if ( *(_DWORD *)(a1 + 680) == (_DWORD)result )
{
v6 = cocos2d::ccpDistance((cocos2d *)&v9, (const struct cocos2d::CCPoint *)(a1 + 696), v4);
v7 = (const struct cocos2d::CCPoint *)&v9;
if ( v6 <= 1.0 )
v7 = (const struct cocos2d::CCPoint *)(a1 + 696);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, v7);
cocos2d::CCPoint::operator-(&v11, v8, a1 + 704);
return (*(__int64 (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 688) + 184LL))(*(_QWORD *)(a1 + 688), v8);
}
return result;
}