//
// cocos2d::CCEGLViewProtocol::handleTouchesMove from 0xd7b41c to 0xd7b5dc (448 bytes)
//
// 3 xrefs:
// > ??> @ 0xa0840
// > ??> @ 0x152db18
// > ??> @ 0x152dc08
//
// This function is hookable on this platform (idp: arm, 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 13:08:07 +0000
//
__int64 __fastcall cocos2d::CCEGLViewProtocol::handleTouchesMove(
cocos2d::CCEGLViewProtocol *this,
int a2,
int *a3,
float *a4,
float *a5,
double a6)
{
__int64 v11; // x19
__int64 v12; // x28
float v13; // s9
float v14; // s8
__int64 v15; // x0
int v16; // w4
__int64 v17; // x27
float v18; // s9
float v19; // s8
float v20; // s1
float v21; // s0
float v22; // s9
float v23; // s8
int v24; // w0
_BYTE v27[64]; // [xsp+98h] [xbp+98h] BYREF
cocos2d::CCSet::CCSet((cocos2d::CCSet *)v27);
if ( a2 > 0 )
{
v11 = (unsigned int)(a2 - 1) + 1LL;
v12 = 0;
do
{
while ( 1 )
{
v13 = a4[v12];
v14 = a5[v12];
v15 = cocos2d::CCDictionary::objectForKey((cocos2d::CCDictionary *)&unk_1560658, a3[v12]);
if ( v15 )
{
v16 = *(_DWORD *)(v15 + 56);
v17 = qword_15606A0[v16];
if ( !v17 )
goto LABEL_12;
if ( v14 != 0.0 || v13 != 0.0 )
break;
}
if ( ++v12 == v11 )
goto LABEL_11;
}
v18 = v13 - *((float *)this + 8);
v19 = v14 - *((float *)this + 9);
v20 = *((float *)this + 25);
v21 = *((float *)this + 26);
*(_DWORD *)(v17 + 56) = v16;
v22 = v18 / v20;
v23 = v19 / v21;
cocos2d::CCPoint::operator=((float *)(v17 + 80), (float *)(v17 + 72));
v24 = *(unsigned __int8 *)(v17 + 60);
*(float *)(v17 + 72) = v22;
*(float *)(v17 + 76) = v23;
if ( !v24 )
{
cocos2d::CCPoint::operator=((float *)(v17 + 64), (float *)(v17 + 72));
*(_BYTE *)(v17 + 60) = 1;
}
*(double *)(v17 + 88) = a6;
++v12;
cocos2d::CCSet::addObject((cocos2d::CCSet *)v27, (cocos2d::CCObject *)v17);
}
while ( v12 != v11 );
}
LABEL_11:
if ( (unsigned int)cocos2d::CCSet::count((cocos2d::CCSet *)v27) )
{
(*(void (__fastcall **)(_QWORD, _BYTE *, _QWORD))(**((_QWORD **)this + 1) + 8LL))(*((_QWORD *)this + 1), v27, 0);
cocos2d::CCSet::~CCSet((cocos2d::CCSet *)v27);
}
else
{
LABEL_12:
cocos2d::CCSet::~CCSet((cocos2d::CCSet *)v27);
}
return _stack_chk_guard;
}