//
// UIOptionsLayer::ccTouchMoved from 0x5d5730 to 0x5d57f2 (194 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'UIOptionsLayer::ccTouchMoved @ 0x5d57fc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:08 +0000
//
int __fastcall UIOptionsLayer::ccTouchMoved(const cocos2d::CCPoint *a1, int a2)
{
int v4; // r4
int v5; // r10
int result; // r0
const cocos2d::CCPoint *v7; // r2
int v8; // r5
const cocos2d::CCPoint *v9; // r1
const cocos2d::CCPoint *v10; // [sp+4h] [bp-10h]
int (__fastcall *v11)(int, _BYTE *); // [sp+4h] [bp-10h]
_BYTE v12[8]; // [sp+Ch] [bp-8h] BYREF
_BYTE v13[8]; // [sp+14h] [bp+0h] BYREF
_BYTE v14[8]; // [sp+1Ch] [bp+8h] BYREF
_BYTE v15[8]; // [sp+24h] [bp+10h] BYREF
cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v12);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v13, a1);
v4 = 0;
if ( *((_BYTE *)a1 + 712) )
v5 = 4;
else
v5 = 1;
do
{
result = UIOptionsLayer::getNode(a1, v4);
v7 = *(const cocos2d::CCPoint **)(result + 288);
v8 = result;
if ( v7 == *(const cocos2d::CCPoint **)(a2 + 52) )
{
v10 = (const cocos2d::CCPoint *)(result + 300);
if ( COERCE_FLOAT(cocos2d::ccpDistance((cocos2d *)v13, (const cocos2d::CCPoint *)(result + 300), v7)) > 1.0 )
v9 = (const cocos2d::CCPoint *)v13;
else
v9 = v10;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v9);
v11 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 92);
cocos2d::CCPoint::operator-(v15, v14, v8 + 292);
result = v11(v8, v15);
}
++v4;
}
while ( v4 != v5 );
return result;
}