{"type": "func", "start": 6442899632, "end": 6442900046, "name": "cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel", "pseudocode": "// \n// cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel from 0x18006d8b0 to 0x18006da4e (414 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCEGLViewProtocol::handleTouchesCancel @ 0x18006de4c\n// > cocos2d::CCEGLViewProtocol::handleTouchesEnd @ 0x18006deec\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801be14c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:55 +0000\n// \n\nvoid __fastcall cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel(\n        cocos2d::CCEGLViewProtocol *this,\n        struct cocos2d::CCSet *a2,\n        int a3,\n        char *a4,\n        float *const a5,\n        float *const a6,\n        double a7)\n{\n  cocos2d::CCSet *v7; // rbx\n  float *v8; // r15\n  float *v9; // rdi\n  __int64 v10; // rsi\n  signed __int64 v11; // r12\n  __int64 v12; // r14\n  float v13; // xmm6_4\n  float v14; // xmm7_4\n  struct cocos2d::CCObject *v15; // rax\n  struct cocos2d::CCObject *v16; // rbp\n  __int64 v17; // rax\n  __int64 v18; // rbx\n  float v19; // xmm7_4\n  float v20; // xmm6_4\n  bool v21; // zf\n  __int64 v22; // rcx\n  __int64 v23; // [rsp+20h] [rbp-78h]\n\n  v7 = a2;\n  v8 = (float *)this;\n  if ( a3 > 0 )\n  {\n    v9 = a6;\n    v10 = 0;\n    v11 = a4 - (char *)a6;\n    v23 = a3;\n    do\n    {\n      v12 = *(int *)((char *)v9 + v11);\n      v13 = *(float *)((char *)v9 + (char *)a5 - (char *)a6);\n      v14 = *v9;\n      v15 = cocos2d::CCDictionary::objectForKey((cocos2d::CCDictionary *)&unk_1801B2470, v12);\n      v16 = v15;\n      if ( v15 )\n      {\n        v17 = *((int *)v15 + 14);\n        v18 = qword_1801B24C0[v17];\n        if ( !v18 )\n          return;\n        v19 = (float)(v14 - v8[9]) / v8[26];\n        v20 = (float)(v13 - v8[8]) / v8[25];\n        *(_DWORD *)(v18 + 56) = v17;\n        cocos2d::CCSize::operator=((_DWORD *)(v18 + 80), (_DWORD *)(v18 + 72));\n        v21 = *(_BYTE *)(v18 + 60) == 0;\n        *(float *)(v18 + 72) = v20;\n        *(float *)(v18 + 76) = v19;\n        if ( v21 )\n        {\n          cocos2d::CCSize::operator=((_DWORD *)(v18 + 64), (_DWORD *)(v18 + 72));\n          *(_BYTE *)(v18 + 60) = 1;\n        }\n        *(double *)(v18 + 88) = a7;\n        cocos2d::CCSet::addObject(a2, (struct cocos2d::CCObject *)v18);\n        cocos2d::CCObject::release((cocos2d::CCObject *)v18);\n        v22 = *((int *)v16 + 14);\n        qword_1801B24C0[v22] = 0;\n        if ( (unsigned int)v22 <= 4 )\n          dword_1801B24E8 &= ~(1 << v22);\n        cocos2d::CCDictionary::removeObjectForKey((cocos2d::CCDictionary *)&unk_1801B2470, v12);\n        v8 = (float *)this;\n      }\n      ++v10;\n      ++v9;\n    }\n    while ( v10 < v23 );\n    v7 = a2;\n  }\n  cocos2d::CCSet::count(v7);\n}", "assembly": "; \n; cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel from 0x18006d8b0 to 0x18006da4e (414 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCEGLViewProtocol::handleTouchesCancel @ 0x18006de4c\n; > cocos2d::CCEGLViewProtocol::handleTouchesEnd @ 0x18006deec\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801be14c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:55 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x18006d8b0\nmov     [rsp+arg_8], rdx                                               ; +0x5, 0x18006d8b5\nmov     [rsp+arg_0], rcx                                               ; +0xa, 0x18006d8ba\npush    rbp                                                            ; +0xf, 0x18006d8bf\npush    rsi                                                            ; +0x10, 0x18006d8c0\npush    rdi                                                            ; +0x11, 0x18006d8c1\npush    r12                                                            ; +0x12, 0x18006d8c2\npush    r13                                                            ; +0x14, 0x18006d8c4\npush    r14                                                            ; +0x16, 0x18006d8c6\npush    r15                                                            ; +0x18, 0x18006d8c8\nsub     rsp, 60h                                                       ; +0x1a, 0x18006d8ca\nmovaps  [rsp+98h+var_48], xmm6                                         ; +0x1e, 0x18006d8ce\nmov     r12, r9                                                        ; +0x23, 0x18006d8d3\nmovaps  [rsp+98h+var_58], xmm7                                         ; +0x26, 0x18006d8d6\nmov     rbx, rdx                                                       ; +0x2b, 0x18006d8db\nmovaps  [rsp+98h+var_68], xmm8                                         ; +0x2e, 0x18006d8de\nmov     r15, rcx                                                       ; +0x34, 0x18006d8e4\ntest    r8d, r8d                                                       ; +0x37, 0x18006d8e7\njle     loc_18006DA1E                                                  ; +0x3a, 0x18006d8ea\nmov     rdi, [rsp+98h+arg_28]                                          ; +0x40, 0x18006d8f0\nlea     rbx, qword_1801B24C0                                           ; +0x48, 0x18006d8f8\nmov     r13, [rsp+98h+arg_20]                                          ; +0x4f, 0x18006d8ff\nxor     esi, esi                                                       ; +0x57, 0x18006d907\nmovsd   xmm8, [rsp+98h+arg_30]                                         ; +0x59, 0x18006d909\nsub     r13, rdi                                                       ; +0x63, 0x18006d913\nmovsxd  rax, r8d                                                       ; +0x66, 0x18006d916\nsub     r12, rdi                                                       ; +0x69, 0x18006d919\nmov     [rsp+98h+var_78], rax                                          ; +0x6c, 0x18006d91c\nmovsxd  r14, dword ptr [rdi+r12]                                       ; +0x71, 0x18006d921\nlea     rcx, unk_1801B2470; this                                       ; +0x75, 0x18006d925\nmovss   xmm6, dword ptr [rdi+r13]                                      ; +0x7c, 0x18006d92c\nmov     rdx, r14; __int64                                              ; +0x82, 0x18006d932\nmovss   xmm7, dword ptr [rdi]                                          ; +0x85, 0x18006d935\ncall    ?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x89, 0x18006d939\nmov     rbp, rax                                                       ; +0x8e, 0x18006d93e\ntest    rax, rax                                                       ; +0x91, 0x18006d941\njz      loc_18006DA04                                                  ; +0x94, 0x18006d944\nmovsxd  rax, dword ptr [rax+38h]                                       ; +0x9a, 0x18006d94a\nmov     rbx, [rbx+rax*8]                                               ; +0x9e, 0x18006d94e\ntest    rbx, rbx                                                       ; +0xa2, 0x18006d952\njz      loc_18006DA26                                                  ; +0xa5, 0x18006d955\nsubss   xmm7, dword ptr [r15+24h]                                      ; +0xab, 0x18006d95b\nsubss   xmm6, dword ptr [r15+20h]                                      ; +0xb1, 0x18006d961\nlea     rcx, [rbx+50h]                                                 ; +0xb7, 0x18006d967\nlea     rdx, [rbx+48h]                                                 ; +0xbb, 0x18006d96b\ndivss   xmm7, dword ptr [r15+68h]                                      ; +0xbf, 0x18006d96f\ndivss   xmm6, dword ptr [r15+64h]                                      ; +0xc5, 0x18006d975\nmov     [rbx+38h], eax                                                 ; +0xcb, 0x18006d97b\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0xce, 0x18006d97e\ncmp     byte ptr [rbx+3Ch], 0                                          ; +0xd3, 0x18006d983\nmovss   dword ptr [rbx+48h], xmm6                                      ; +0xd7, 0x18006d987\nmovss   dword ptr [rbx+4Ch], xmm7                                      ; +0xdc, 0x18006d98c\njnz     short loc_18006D9A4                                            ; +0xe1, 0x18006d991\nlea     rcx, [rbx+40h]                                                 ; +0xe3, 0x18006d993\nlea     rdx, [rbx+48h]                                                 ; +0xe7, 0x18006d997\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0xeb, 0x18006d99b\nmov     byte ptr [rbx+3Ch], 1                                          ; +0xf0, 0x18006d9a0\nmov     rcx, [rsp+98h+arg_8]; this                                     ; +0xf4, 0x18006d9a4\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0xfc, 0x18006d9ac\nmovsd   qword ptr [rbx+58h], xmm8                                      ; +0xff, 0x18006d9af\ncall    ?addObject@CCSet@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCSet::addObject(cocos2d::CCObject *) ; +0x105, 0x18006d9b5\nmov     rcx, rbx; this                                                 ; +0x10a, 0x18006d9ba\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x10d, 0x18006d9bd\nmovsxd  rcx, dword ptr [rbp+38h]                                       ; +0x112, 0x18006d9c2\nlea     rbx, qword_1801B24C0                                           ; +0x116, 0x18006d9c6\nmov     qword ptr [rbx+rcx*8], 0                                       ; +0x11d, 0x18006d9cd\ntest    ecx, ecx                                                       ; +0x125, 0x18006d9d5\njs      short loc_18006D9ED                                            ; +0x127, 0x18006d9d7\ncmp     ecx, 5                                                         ; +0x129, 0x18006d9d9\njge     short loc_18006D9ED                                            ; +0x12c, 0x18006d9dc\nmov     eax, 1                                                         ; +0x12e, 0x18006d9de\nshl     eax, cl                                                        ; +0x133, 0x18006d9e3\nnot     eax                                                            ; +0x135, 0x18006d9e5\nand     cs:dword_1801B24E8, eax                                        ; +0x137, 0x18006d9e7\nmov     rdx, r14; __int64                                              ; +0x13d, 0x18006d9ed\nlea     rcx, unk_1801B2470; this                                       ; +0x140, 0x18006d9f0\ncall    ?removeObjectForKey@CCDictionary@cocos2d@@QEAAX_J@Z; cocos2d::CCDictionary::removeObjectForKey(__int64) ; +0x147, 0x18006d9f7\nmov     r15, [rsp+98h+arg_0]                                           ; +0x14c, 0x18006d9fc\ninc     rsi                                                            ; +0x154, 0x18006da04\nadd     rdi, 4                                                         ; +0x157, 0x18006da07\ncmp     rsi, [rsp+98h+var_78]                                          ; +0x15b, 0x18006da0b\njl      loc_18006D921                                                  ; +0x160, 0x18006da10\nmov     rbx, [rsp+98h+arg_8]                                           ; +0x166, 0x18006da16\nmov     rcx, rbx; this                                                 ; +0x16e, 0x18006da1e\ncall    ?count@CCSet@cocos2d@@QEAAHXZ; cocos2d::CCSet::count(void)     ; +0x171, 0x18006da21\nmov     rbx, [rsp+98h+arg_10]                                          ; +0x176, 0x18006da26\nmovaps  xmm6, [rsp+98h+var_48]                                         ; +0x17e, 0x18006da2e\nmovaps  xmm7, [rsp+98h+var_58]                                         ; +0x183, 0x18006da33\nmovaps  xmm8, [rsp+98h+var_68]                                         ; +0x188, 0x18006da38\nadd     rsp, 60h                                                       ; +0x18e, 0x18006da3e\npop     r15                                                            ; +0x192, 0x18006da42\npop     r14                                                            ; +0x194, 0x18006da44\npop     r13                                                            ; +0x196, 0x18006da46\npop     r12                                                            ; +0x198, 0x18006da48\npop     rdi                                                            ; +0x19a, 0x18006da4a\npop     rsi                                                            ; +0x19b, 0x18006da4b\npop     rbp                                                            ; +0x19c, 0x18006da4c\nretn                                                                   ; +0x19d, 0x18006da4d", "xrefs": ["cocos2d::CCEGLViewProtocol::handleTouchesCancel @ 0x18006de4c", "cocos2d::CCEGLViewProtocol::handleTouchesEnd @ 0x18006deec", "<???> @ 0x18014cf68", "<???> @ 0x1801be14c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}