//
// cocos2d::CCScrollLayer::ccTouchMoved from 0x578c80 to 0x578ddc (348 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'cocos2d::CCScrollLayer::ccTouchMoved @ 0x578de0
// > ??> @ 0xb5ba8
// > ??> @ 0x113a238
//
// 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
//
__int64 __fastcall cocos2d::CCScrollLayer::ccTouchMoved(float *a1, cocos2d::CCTouch *this)
{
cocos2d::CCDirector *v3; // x0
cocos2d::CCDirector *v4; // x0
const cocos2d::CCPoint *v5; // x0
float v6; // s0
float v7; // s1
cocos2d::CCPoint v10; // [xsp+50h] [xbp+50h] BYREF
cocos2d::CCPoint v11; // [xsp+58h] [xbp+58h] BYREF
cocos2d::CCPoint v12; // [xsp+60h] [xbp+60h] BYREF
cocos2d::CCPoint v13; // [xsp+68h] [xbp+68h] BYREF
cocos2d::CCPoint v14; // [xsp+70h] [xbp+70h] BYREF
cocos2d::CCPoint v15; // 0:kr10_8.8
cocos2d::CCPoint v16; // 0:kr18_8.8
cocos2d::CCTouch::getLocationInView(this);
cocos2d::CCTouch::getPreviousLocationInView(this);
v3 = cocos2d::CCDirector::sharedDirector();
v15 = cocos2d::CCDirector::convertToGL(v3, &v10);
cocos2d::CCPoint::operator=(&v10, v15.x, v15.y);
v4 = cocos2d::CCDirector::sharedDirector();
v16 = cocos2d::CCDirector::convertToGL(v4, &v11);
cocos2d::CCPoint::operator=(&v11, v16.x, v16.y);
cocos2d::CCPoint::CCPoint(&v12, v10.x - v11.x, v10.y - v11.y);
v5 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(float *))(*(_QWORD *)a1 + 192LL))(a1);
cocos2d::CCPoint::CCPoint(&v13, v5);
cocos2d::CCPoint::CCPoint(&v14, v13.x, v13.y + v12.y);
cocos2d::CCPoint::operator=(&v13, v6, v7);
if ( v13.y > a1[108] )
{
v13.y = a1[108];
}
else if ( v13.y < 0.0 )
{
v13.y = 0.0;
}
(*(void (__fastcall **)(float *, cocos2d::CCPoint *))(*(_QWORD *)a1 + 184LL))(a1, &v13);
return _stack_chk_guard;
}