//
// UIOptionsLayer::ccTouchMoved from 0x1002e4604 to 0x1002e46e4 (224 bytes)
//
// 2 xrefs:
// > sub_1002E46E4 @ 0x1002e46e8
// > ??> @ 0x1007e3160
//
// 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 __fastcall UIOptionsLayer::ccTouchMoved(UIOptionsLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
__int64 v5; // x23
bool m_dual; // w24
GJUINode **p_m_uiNode1; // x25
GJUINode *v8; // x20
__int64 *p_m_touchPosition; // x1
double v10; // d0
float32x2_t v11; // [xsp+0h] [xbp-70h] BYREF
float32x2_t v12; // [xsp+8h] [xbp-68h] BYREF
cocos2d::CCPoint v13; // [xsp+10h] [xbp-60h] BYREF
cocos2d::CCPoint v14; // [xsp+18h] [xbp-58h] BYREF
cocos2d::CCTouch::getLocation(a2);
cocos2d::CCNode::convertToNodeSpace(a1, &v14);
v5 = 0;
m_dual = a1->m_dual;
p_m_uiNode1 = &a1->m_uiNode1;
do
{
v8 = p_m_uiNode1[v5];
if ( v8->m_touchID == a2->m_nId )
{
if ( cocos2d::ccpDistance(&v13, &v8->m_touchPosition) <= 1.0 )
p_m_touchPosition = (__int64 *)&v8->m_touchPosition;
else
p_m_touchPosition = (__int64 *)&v13;
sub_1000229B8((__int64 *)&v12, p_m_touchPosition);
*(float32x2_t *)&v10 = sub_1000229F0(&v12, (float32x2_t *)&v8->m_touchDelta, &v11);
((void (__fastcall *)(GJUINode *, float32x2_t *, double))v8->setPosition)(v8, &v11, v10);
}
if ( (unsigned int)v5 > 2 )
break;
++v5;
}
while ( m_dual );
}