//
// UIOptionsLayer::ccTouchMoved from 0x8d8b60 to 0x8d8c98 (312 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'UIOptionsLayer::ccTouchMoved @ 0x8d8c9c
// > ??> @ 0x93828
// > ??> @ 0x119e698
//
// 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 UIOptionsLayer::ccTouchMoved(UIOptionsLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
int v5; // w19
int v6; // w21
GJUINode *Node; // x20
const cocos2d::CCPoint *p_m_touchPosition; // x1
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28
cocos2d::CCPoint v10; // [xsp+88h] [xbp+88h] BYREF
cocos2d::CCPoint v11; // [xsp+90h] [xbp+90h] BYREF
cocos2d::CCPoint v12; // [xsp+98h] [xbp+98h] BYREF
__int64 v13; // [xsp+A0h] [xbp+A0h] BYREF
cocos2d::CCTouch::getLocation(a2);
v5 = 0;
cocos2d::CCNode::convertToNodeSpace(a1, &v10);
if ( a1->m_dual )
v6 = 4;
else
v6 = 1;
do
{
while ( 1 )
{
Node = UIOptionsLayer::getNode(a1, v5);
if ( Node->m_touchID == a2->m_nId )
break;
if ( ++v5 == v6 )
return;
}
++v5;
if ( cocos2d::ccpDistance(&v11, &Node->m_touchPosition) > 1.0 )
p_m_touchPosition = &v11;
else
p_m_touchPosition = &Node->m_touchPosition;
cocos2d::CCPoint::CCPoint(&v12, p_m_touchPosition);
setPosition = Node->setPosition;
cocos2d::CCPoint::operator-(&v13, &v12, &Node->m_touchDelta);
setPosition(Node, (const cocos2d::CCPoint *)&v13);
}
while ( v5 != v6 );
}