//
// ScrollingLayer::ccTouchMoved from 0x1001b8bc4 to 0x1001b8cac (232 bytes)
//
// 2 xrefs:
// > sub_1001B8CAC @ 0x1001b8cb0
// > ??> @ 0x1007b40c0
//
// 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 ScrollingLayer::ccTouchMoved(ScrollingLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
cocos2d::CCDirector *v4; // x0
float v5; // s8
float32x2_t *v6; // x20
__n128 v7; // q0
__n128 v8; // q1
float y; // s0
float v10; // s1
float v11; // s0
float32x2_t v12; // [xsp+8h] [xbp-38h] BYREF
float32x2_t v13; // [xsp+10h] [xbp-30h] BYREF
cocos2d::CCPoint v14; // [xsp+18h] [xbp-28h] BYREF
cocos2d::CCTouch::getLocationInView(a2);
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::convertToGL(v4, &v14);
sub_1000229D0(&v14, (double *)&v13);
if ( !sub_100022A5C((float *)&v14, (float *)&a1->m_touchPosition) )
{
v5 = v14.y - a1->m_touchPosition.y;
v6 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer);
v7.n128_u32[0] = 0;
v8.n128_f32[0] = v5;
sub_100022980(v7, v8, &v12);
sub_1000229DC(v6, &v12, &v13);
y = a1->m_startOffset.y;
v10 = v13.f32[1];
if ( y >= v13.f32[1] )
v10 = a1->m_startOffset.y;
v11 = y + a1->m_scrollFactor;
if ( v11 > v10 )
v11 = v10;
v13.f32[1] = v11;
((void (__fastcall *)(cocos2d::CCLayer *, float32x2_t *))a1->m_contentLayer->setPosition)(a1->m_contentLayer, &v13);
sub_1000229D0(&a1->m_touchPosition, (double *)&v14);
}
}