//
// ScrollingLayer::ccTouchMoved from 0x100720cb0 to 0x100720da7 (247 bytes)
//
// 2 xrefs:
// > sub_100720DB0 @ 0x100720dbc
// > ??> @ 0x100989df8
//
// 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 *v3; // rax
unsigned __int64 *v4; // r15
unsigned __int64 v5; // [rsp+Ch] [rbp-44h] BYREF
__int64 v6; // [rsp+14h] [rbp-3Ch] BYREF
double v7; // [rsp+1Ch] [rbp-34h] BYREF
float v8; // [rsp+24h] [rbp-2Ch]
cocos2d::CCTouch::getLocationInView((cocos2d::CCTouch *)&v6);
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::convertToGL((cocos2d::CCDirector *)&v7, (const cocos2d::CCPoint *)v3);
sub_10028CC90(&v6, &v7);
if ( !sub_10028CDB0((float *)&v6, (float *)&a1->m_touchPosition) )
{
v8 = *((float *)&v6 + 1) - a1->m_touchPosition.y;
v4 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer);
sub_10028CBE0((float *)&v5, 0.0, v8);
sub_10028CCE0(&v7, v4, &v5);
HIDWORD(v7) = fminf(fmaxf(*((float *)&v7 + 1), a1->m_startOffset.y), a1->m_startOffset.y + a1->m_scrollFactor);
((void (__fastcall *)(cocos2d::CCLayer *, double *))a1->m_contentLayer->setPosition)(a1->m_contentLayer, &v7);
sub_10028CC90(&a1->m_touchPosition, (double *)&v6);
}
}