// // cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel from 0x18006b6c0 to 0x18006b86e (430 bytes) // // 4 xrefs: // > cocos2d::CCEGLViewProtocol::handleTouchesCancel @ 0x18006bbfc // > cocos2d::CCEGLViewProtocol::handleTouchesEnd @ 0x18006bc9c // > @ 0x1801438a8 // > @ 0x1801b3df8 // // 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 __fastcall cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel( cocos2d::CCEGLViewProtocol *this, struct cocos2d::CCSet *a2, int a3, char *a4, float *const a5, float *const a6, double a7) { cocos2d::CCSet *v7; // rbx cocos2d::CCEGLViewProtocol *v8; // r15 __int64 v9; // r12 float *v10; // rdi __int64 v11; // rsi signed __int64 v12; // rax signed __int64 v13; // r13 __int64 v14; // r14 float v15; // xmm7_4 float v16; // xmm6_4 struct cocos2d::CCObject *v17; // rax struct cocos2d::CCObject *v18; // rbp __int64 v19; // rax __int64 v20; // rbx float v21; // xmm6_4 float v22; // xmm7_4 bool v23; // zf __int64 v24; // rcx float *v27; // [rsp+B0h] [rbp+28h] v7 = a2; v8 = this; v9 = a3; if ( a3 > 0 ) { v10 = a6; v11 = 0; v12 = (char *)a5 - (char *)a6; v27 = (float *)((char *)a5 - (char *)a6); v13 = a4 - (char *)a6; do { v14 = *(int *)((char *)v10 + v13); v15 = *(float *)((char *)v10 + v12); v16 = *v10; v17 = cocos2d::CCDictionary::objectForKey(&unk_1801A8430, v14); v18 = v17; if ( v17 ) { v19 = SLODWORD(v17[1].__vftable); v20 = qword_1801A8480[v19]; if ( !v20 ) return; v21 = (float)(v16 - v8->m_obViewPortRect.origin.y) / v8->m_fScaleY; v22 = (float)(v15 - v8->m_obViewPortRect.origin.x) / v8->m_fScaleX; *(_DWORD *)(v20 + 56) = v19; cocos2d::CCSize::operator=((_DWORD *)(v20 + 80), (_DWORD *)(v20 + 72)); v23 = *(_BYTE *)(v20 + 60) == 0; *(float *)(v20 + 72) = v22; *(float *)(v20 + 76) = v21; if ( v23 ) { cocos2d::CCSize::operator=((_DWORD *)(v20 + 64), (_DWORD *)(v20 + 72)); *(_BYTE *)(v20 + 60) = 1; } *(double *)(v20 + 88) = a7; cocos2d::CCSet::addObject(a2, (struct cocos2d::CCObject *)v20); cocos2d::CCObject::release((cocos2d::CCObject *)v20); v24 = SLODWORD(v18[1].__vftable); qword_1801A8480[v24] = 0; if ( (unsigned int)v24 <= 4 ) dword_1801A84A8 &= ~(1 << v24); cocos2d::CCDictionary::removeObjectForKey(&unk_1801A8430, v14); v8 = this; } v12 = (signed __int64)v27; ++v11; ++v10; } while ( v11 < v9 ); v7 = a2; } cocos2d::CCSet::count(v7); }