//
// cocos2d::CCScrollLayer::ccTouchMoved from 0x2e7c10 to 0x2e7d00 (240 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::CCScrollLayer::ccTouchMoved @ 0x2e7d08
//
// 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
//
int __fastcall cocos2d::CCScrollLayer::ccTouchMoved(float *a1, cocos2d::CCTouch *a2)
{
cocos2d::CCDirector *v4; // r0
cocos2d::CCDirector *v5; // r0
const cocos2d::CCPoint *v6; // r0
cocos2d::CCPoint v8; // [sp+4h] [bp-8h] BYREF
cocos2d::CCPoint v9; // [sp+Ch] [bp+0h] BYREF
cocos2d::CCPoint v10; // [sp+14h] [bp+8h] BYREF
cocos2d::CCPoint v11; // [sp+1Ch] [bp+10h] BYREF
cocos2d::CCPoint v12; // [sp+24h] [bp+18h] BYREF
cocos2d::CCTouch::getLocationInView(&v8, a2);
cocos2d::CCTouch::getPreviousLocationInView(&v9, a2);
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::convertToGL(&v12, v4, &v8);
cocos2d::CCPoint::operator=(&v8, &v12);
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::convertToGL(&v12, v5, &v9);
cocos2d::CCPoint::operator=(&v9, &v12);
cocos2d::CCPoint::CCPoint(&v10, v8.x - v9.x, v8.y - v9.y);
v6 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(float *))(*(_DWORD *)a1 + 96))(a1);
cocos2d::CCPoint::CCPoint(&v11, v6);
cocos2d::CCPoint::CCPoint(&v12, v11.x, v11.y + v10.y);
cocos2d::CCPoint::operator=(&v11, &v12);
if ( v11.y <= a1[86] )
{
if ( v11.y < 0.0 )
v11.y = 0.0;
}
else
{
v11.y = a1[86];
}
return (*(int (__fastcall **)(float *, cocos2d::CCPoint *))(*(_DWORD *)a1 + 92))(a1, &v11);
}