//
// UIOptionsLayer::ccTouchMoved from 0xa2161c to 0xa21754 (312 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'UIOptionsLayer::ccTouchMoved @ 0xa21758
// > ??> @ 0xc2e30
// > ??> @ 0x14842a8
//
// 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:40 +0000
//
__int64 __fastcall UIOptionsLayer::ccTouchMoved(cocos2d::CCNode *a1, cocos2d::CCTouch *this)
{
int v4; // w19
int v5; // w21
const cocos2d::CCPoint *v6; // x2
_DWORD *Node; // x20
float v8; // s0
const cocos2d::CCPoint *v9; // x1
void (__fastcall *v10)(_DWORD *, __int64 *); // x28
long double v11; // q0
__int64 v13; // [xsp+88h] [xbp+88h] BYREF
__int64 v14; // [xsp+90h] [xbp+90h] BYREF
_BYTE v15[8]; // [xsp+98h] [xbp+98h] BYREF
__int64 v16; // [xsp+A0h] [xbp+A0h] BYREF
cocos2d::CCTouch::getLocation(&v13, this);
v4 = 0;
cocos2d::CCNode::convertToNodeSpace(&v14, a1, (const cocos2d::CCPoint *)&v13);
if ( *((_BYTE *)a1 + 1012) )
v5 = 4;
else
v5 = 1;
do
{
while ( 1 )
{
Node = (_DWORD *)UIOptionsLayer::getNode(a1, v4);
if ( Node[88] == *((_DWORD *)this + 14) )
break;
if ( ++v4 == v5 )
return _stack_chk_guard;
}
++v4;
cocos2d::ccpDistance((cocos2d *)&v14, (const cocos2d::CCPoint *)(Node + 91), v6);
if ( v8 > 1.0 )
v9 = (const cocos2d::CCPoint *)&v14;
else
v9 = (const cocos2d::CCPoint *)(Node + 91);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v9);
v10 = *(void (__fastcall **)(_DWORD *, __int64 *))(*(_QWORD *)Node + 184LL);
cocos2d::CCPoint::operator-(&v16, v15, Node + 89, v11);
v10(Node, &v16);
}
while ( v4 != v5 );
return _stack_chk_guard;
}