//
// cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel from 0xb0a054 to 0xb0a1ec (408 bytes)
//
// 3 xrefs:
// > cocos2d::CCEGLViewProtocol::handleTouchesEnd @ 0xb0a828
// > cocos2d::CCEGLViewProtocol::handleTouchesCancel @ 0xb0a8dc
// > ??> @ 0xac440
//
// 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 cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel(
cocos2d::CCEGLViewProtocol *a1,
cocos2d::CCSet *a2,
int a3,
int *a4,
float *a5,
float *a6,
double a7)
{
__int64 v11; // x19
float v12; // s9
float v13; // s8
intptr_t v14; // x23
cocos2d::CCObject *v15; // x0
cocos2d::CCObject *v16; // x20
int v17; // w3
__int64 v18; // x28
float v19; // s9
float v20; // s8
float m_fScaleX; // s1
float m_fScaleY; // s0
float v23; // s9
float v24; // s8
float v25; // s0
float v26; // s1
int v27; // w0
unsigned int v28; // w3
__int64 v30; // [xsp+90h] [xbp+90h]
if ( a3 > 0 )
{
v11 = 0;
v30 = (unsigned int)(a3 - 1) + 1LL;
do
{
v12 = a5[v11];
v13 = a6[v11];
v14 = a4[v11++];
v15 = cocos2d::CCDictionary::objectForKey(&stru_12456B8, v14);
v16 = v15;
if ( v15 )
{
v17 = (int)v15[1].__vftable;
v18 = qword_1245700[v17];
if ( !v18 )
return;
v19 = v12 - a1->m_obViewPortRect.origin.x;
v20 = v13 - a1->m_obViewPortRect.origin.y;
m_fScaleX = a1->m_fScaleX;
m_fScaleY = a1->m_fScaleY;
*(_DWORD *)(v18 + 56) = v17;
v23 = v19 / m_fScaleX;
v24 = v20 / m_fScaleY;
cocos2d::CCPoint::operator=((cocos2d::CCPoint *)(v18 + 80), m_fScaleY, m_fScaleX, (float *)(v18 + 72));
v27 = *(unsigned __int8 *)(v18 + 60);
*(float *)(v18 + 72) = v23;
*(float *)(v18 + 76) = v24;
if ( !v27 )
{
cocos2d::CCPoint::operator=((cocos2d::CCPoint *)(v18 + 64), v25, v26, (float *)(v18 + 72));
*(_BYTE *)(v18 + 60) = 1;
}
*(double *)(v18 + 88) = a7;
cocos2d::CCSet::addObject(a2, (cocos2d::CCObject *)v18);
cocos2d::CCObject::release((cocos2d::CCObject *)v18);
v28 = (unsigned int)v16[1].__vftable;
qword_1245700[v28] = 0;
if ( v28 <= 4 )
dword_1245728 &= ~(1 << v28);
cocos2d::CCDictionary::removeObjectForKey(&stru_12456B8, v14);
}
}
while ( v11 != v30 );
}
cocos2d::CCSet::count(a2);
}