//
// UIPOptionsLayer::ccTouchMoved from 0xa1e7a4 to 0xa1e88c (232 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'UIPOptionsLayer::ccTouchMoved @ 0xa1e890
// > ??> @ 0x89ae8
// > ??> @ 0x1485918
//
// 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 12:59:39 +0000
//
__int64 __fastcall UIPOptionsLayer::ccTouchMoved(__int64 a1, cocos2d::CCTouch *this)
{
const cocos2d::CCPoint *v4; // x2
float v6; // s0
const cocos2d::CCPoint *v7; // x1
__int64 v8; // x22
__int64 v9; // x1
void (__fastcall *v10)(__int64, __int64 *); // x20
long double v11; // q0
__int64 v12; // [xsp+58h] [xbp+58h] BYREF
__int64 v13; // [xsp+60h] [xbp+60h] BYREF
_BYTE v14[8]; // [xsp+68h] [xbp+68h] BYREF
__int64 v15; // [xsp+70h] [xbp+70h] BYREF
cocos2d::CCTouch::getLocation(&v12, this);
cocos2d::CCNode::convertToNodeSpace(&v13, (cocos2d::CCNode *)a1, (const cocos2d::CCPoint *)&v12);
if ( *(_DWORD *)(a1 + 1012) == *((_DWORD *)this + 14) )
{
cocos2d::ccpDistance((cocos2d *)&v13, (const cocos2d::CCPoint *)(a1 + 1024), v4);
if ( v6 > 1.0 )
v7 = (const cocos2d::CCPoint *)&v13;
else
v7 = (const cocos2d::CCPoint *)(a1 + 1024);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v7);
v8 = *(_QWORD *)(a1 + 1016);
v9 = a1 + 1032;
v10 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 184LL);
cocos2d::CCPoint::operator-(&v15, v14, v9, v11);
v10(v8, &v15);
}
return _stack_chk_guard;
}