//
// UIPOptionsLayer::ccTouchMoved from 0x8c3860 to 0x8c3948 (232 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'UIPOptionsLayer::ccTouchMoved @ 0x8c394c
// > ??> @ 0x65520
// > ??> @ 0x119fc28
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void UIPOptionsLayer::ccTouchMoved(UIPOptionsLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
cocos2d::CCPoint *p_m_touchPosition; // x1
cocos2d::CCNode *m_practiceNode; // x22
cocos2d::CCPoint *p_m_touchDelta; // x1
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x20
cocos2d::CCPoint v9; // [xsp+58h] [xbp+58h] BYREF
cocos2d::CCPoint v10; // [xsp+60h] [xbp+60h] BYREF
cocos2d::CCPoint v11; // [xsp+68h] [xbp+68h] BYREF
__int64 v12; // [xsp+70h] [xbp+70h] BYREF
cocos2d::CCTouch::getLocation(a2);
cocos2d::CCNode::convertToNodeSpace(a1, &v9);
if ( a1->m_touchID == a2->m_nId )
{
if ( cocos2d::ccpDistance(&v10, &a1->m_touchPosition) > 1.0 )
p_m_touchPosition = &v10;
else
p_m_touchPosition = &a1->m_touchPosition;
cocos2d::CCPoint::CCPoint(&v11, p_m_touchPosition);
m_practiceNode = a1->m_practiceNode;
p_m_touchDelta = &a1->m_touchDelta;
setPosition = m_practiceNode->setPosition;
cocos2d::CCPoint::operator-(&v12, &v11, p_m_touchDelta);
setPosition(m_practiceNode, (const cocos2d::CCPoint *)&v12);
}
}