//
// cocos2d::CCEGLViewProtocol::handleTouchesMove from 0x18006df30 to 0x18006e0c7 (407 bytes)
//
// 4 xrefs:
// > ??> @ 0x180106958
// > ??> @ 0x180107050
// > ??> @ 0x18014cf68
// > ??> @ 0x1801be1a0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:55 +0000
//
// 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; // r13
__int64 v11; // rsi
signed __int64 v12; // r15
signed __int64 v13; // r12
float v14; // xmm6_4
float v15; // xmm7_4
struct cocos2d::CCObject *v16; // rax
__int64 v17; // rcx
__int64 v18; // rbx
float v19; // xmm7_4
float v20; // xmm6_4
void **v21[16]; // [rsp+20h] [rbp-A8h] BYREF
v8 = a2;
cocos2d::CCSet::CCSet((cocos2d::CCSet *)v21);
if ( (int)v8 > 0 )
{
v10 = v8;
v11 = 0;
v12 = a3 - (char *)a4;
v13 = (char *)a5 - (char *)a4;
do
{
v14 = *a4;
v15 = *(float *const)((char *)a4 + v13);
v16 = cocos2d::CCDictionary::objectForKey((cocos2d::CCDictionary *)&unk_1801B2470, *(int *)((char *)a4 + v12));
if ( v16 )
{
v17 = *((int *)v16 + 14);
v18 = qword_1801B24C0[v17];
if ( !v18 )
goto LABEL_13;
if ( v14 != 0.0 || v15 != 0.0 )
{
v19 = (float)(v15 - *((float *)this + 9)) / *((float *)this + 26);
v20 = (float)(v14 - *((float *)this + 8)) / *((float *)this + 25);
*(_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((cocos2d::CCSet *)v21, (struct cocos2d::CCObject *)v18);
}
}
++v11;
++a4;
}
while ( v11 < v10 );
}
if ( (unsigned int)cocos2d::CCSet::count((cocos2d::CCSet *)v21) )
(*(void (__fastcall **)(_QWORD, void ***, _QWORD))(**((_QWORD **)this + 1) + 8LL))(*((_QWORD *)this + 1), v21, 0);
LABEL_13:
cocos2d::CCSet::~CCSet(v21);
}