//
// ScrollingLayer::ccTouchMoved from 0x2fdb88 to 0x2fdc5a (210 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ScrollingLayer::ccTouchMoved @ 0x2fdc64
//
// 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 ScrollingLayer::ccTouchMoved(ScrollingLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
cocos2d::CCPoint *p_m_touchPosition; // r8
cocos2d::CCDirector *v5; // r0
float v6; // s16
const cocos2d::CCPoint *v7; // r10
float y; // s14
float v9; // s15
void (*setPosition)(void); // r3
float v11; // s14
cocos2d::CCPoint v12; // [sp+4h] [bp+0h] BYREF
_BYTE v13[4]; // [sp+Ch] [bp+8h] BYREF
float v14; // [sp+10h] [bp+Ch]
cocos2d::CCPoint v15; // [sp+14h] [bp+10h] BYREF
p_m_touchPosition = &a1->m_touchPosition;
cocos2d::CCTouch::getLocationInView(&v12, a2);
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::convertToGL(&v15, v5, &v12);
cocos2d::CCPoint::operator=(&v12, &v15);
if ( !cocos2d::CCPoint::equals(&v12, p_m_touchPosition) )
{
v6 = v12.y - a1->m_touchPosition.y;
v7 = a1->m_contentLayer->getPosition(a1->m_contentLayer);
cocos2d::CCPoint::CCPoint(&v15, 0.0, v6);
cocos2d::CCPoint::operator+(v13, v7, &v15);
y = a1->m_startOffset.y;
v9 = v14;
setPosition = (void (*)(void))a1->m_contentLayer->setPosition;
if ( y >= v14 )
v9 = a1->m_startOffset.y;
v11 = y + a1->m_scrollFactor;
if ( v11 <= v9 )
v9 = v11;
v14 = v9;
setPosition();
cocos2d::CCPoint::operator=(p_m_touchPosition, &v12);
}
}