//
// cocos2d::CCEGLViewProtocol::handleTouchesMove from 0x18006bce0 to 0x18006be77 (407 bytes)
//
// 4 xrefs:
// > ??> @ 0x180100308
// > ??> @ 0x180100938
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b3e40
//
// 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
//
// Hidden C++ exception states: #wind=1
void __fastcall cocos2d::CCEGLViewProtocol::handleTouchesMove(
cocos2d::CCEGLViewProtocol *this,
int a2,
char *a3,
float *const a4,
float *const a5,
double a6)
{
__int64 v8; // rbx
__int64 v10; // r14
__int64 v11; // rsi
signed __int64 v12; // r12
signed __int64 v13; // r13
float v14; // xmm7_4
float v15; // xmm6_4
struct cocos2d::CCObject *v16; // rax
__int64 v17; // rcx
__int64 v18; // rbx
float v19; // xmm6_4
float v20; // xmm7_4
cocos2d::CCSet v21[2]; // [rsp+20h] [rbp-A8h] BYREF
v8 = a2;
cocos2d::CCSet::CCSet(v21);
v10 = v8;
if ( (int)v8 > 0 )
{
v11 = 0;
v12 = a3 - (char *)a4;
v13 = (char *)a5 - (char *)a4;
do
{
v14 = *a4;
v15 = *(float *const)((char *)a4 + v13);
v16 = cocos2d::CCDictionary::objectForKey(&unk_1801A8430, *(int *)((char *)a4 + v12));
if ( v16 )
{
v17 = SLODWORD(v16[1].__vftable);
v18 = qword_1801A8480[v17];
if ( !v18 )
goto LABEL_13;
if ( v14 != 0.0 || v15 != 0.0 )
{
v19 = (float)(v15 - this->m_obViewPortRect.origin.y) / this->m_fScaleY;
v20 = (float)(v14 - this->m_obViewPortRect.origin.x) / this->m_fScaleX;
*(_DWORD *)(v18 + 56) = v17;
cocos2d::CCSize::operator=((_DWORD *)(v18 + 80), (_DWORD *)(v18 + 72));
*(float *)(v18 + 72) = v20;
*(float *)(v18 + 76) = v19;
if ( !*(_BYTE *)(v18 + 60) )
{
cocos2d::CCSize::operator=((_DWORD *)(v18 + 64), (_DWORD *)(v18 + 72));
*(_BYTE *)(v18 + 60) = 1;
}
*(double *)(v18 + 88) = a6;
cocos2d::CCSet::addObject(v21, (struct cocos2d::CCObject *)v18);
}
}
++v11;
++a4;
}
while ( v11 < v10 );
}
if ( (unsigned int)cocos2d::CCSet::count(v21) )
((void (__fastcall *)(cocos2d::EGLTouchDelegate *, cocos2d::CCSet *, _QWORD))this->m_pDelegate->touchesMoved)(
this->m_pDelegate,
v21,
0);
LABEL_13:
cocos2d::CCSet::~CCSet(v21);
}