//
// ScrollingLayer::ccTouchMoved from 0x140071110 to 0x14007121a (266 bytes)
//
// 4 xrefs:
// > ??> @ 0x140535e00
// > ??> @ 0x140666c3c
// > ??> @ 0x140666c4c
// > ??> @ 0x1406c61b0
//
// 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)
{
__int64 v4; // rcx
cocos2d::CCDirector *v5; // rax
struct cocos2d::CCPoint v6; // rax
__int64 v7; // rax
float v8; // xmm0_4
float v9; // xmm1_4
float v10; // xmm0_4
cocos2d::CCPoint v11[3]; // [rsp+20h] [rbp-18h] BYREF
struct cocos2d::CCPoint v12; // [rsp+40h] [rbp+8h] BYREF
char v13; // [rsp+58h] [rbp+20h] BYREF
float v14; // [rsp+5Ch] [rbp+24h]
cocos2d::CCTouch::getLocationInView(a2);
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
v6 = cocos2d::CCDirector::convertToGL(v5, v11);
((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v12, v6);
if ( !cocos2d::CCPoint::equals(&v12) )
{
cocos2d::CCPoint::CCPoint(v11, 0.0, v12.y - *((float *)&a1->m_eGLServerState + 1));
v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_bRunning + 200LL))(*(_QWORD *)&a1->m_bRunning);
cocos2d::CCPoint::operator+(v7, &v13);
v8 = *((float *)&a1->m_pScheduler + 1);
v9 = v14;
if ( v8 > v14 )
{
v14 = *((float *)&a1->m_pScheduler + 1);
v9 = v8;
}
v10 = v8 + *(float *)&a1->m_pActionManager;
if ( v9 > v10 )
v14 = v10;
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)&a1->m_bRunning + 184LL))(*(_QWORD *)&a1->m_bRunning, &v13);
cocos2d::CCPoint::operator=(&a1->m_eGLServerState, &v12);
}
}