{"type": "func", "start": 6442892512, "end": 6442892919, "name": "cocos2d::CCEGLViewProtocol::handleTouchesMove", "pseudocode": "// \n// cocos2d::CCEGLViewProtocol::handleTouchesMove from 0x18006bce0 to 0x18006be77 (407 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180100308\n// > <???> @ 0x180100938\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3e40\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCEGLViewProtocol::handleTouchesMove(\n        cocos2d::CCEGLViewProtocol *this,\n        int a2,\n        char *a3,\n        float *const a4,\n        float *const a5,\n        double a6)\n{\n  __int64 v8; // rbx\n  __int64 v10; // r14\n  __int64 v11; // rsi\n  signed __int64 v12; // r12\n  signed __int64 v13; // r13\n  float v14; // xmm7_4\n  float v15; // xmm6_4\n  struct cocos2d::CCObject *v16; // rax\n  __int64 v17; // rcx\n  __int64 v18; // rbx\n  float v19; // xmm6_4\n  float v20; // xmm7_4\n  cocos2d::CCSet v21[2]; // [rsp+20h] [rbp-A8h] BYREF\n\n  v8 = a2;\n  cocos2d::CCSet::CCSet(v21);\n  v10 = v8;\n  if ( (int)v8 > 0 )\n  {\n    v11 = 0;\n    v12 = a3 - (char *)a4;\n    v13 = (char *)a5 - (char *)a4;\n    do\n    {\n      v14 = *a4;\n      v15 = *(float *const)((char *)a4 + v13);\n      v16 = cocos2d::CCDictionary::objectForKey(&unk_1801A8430, *(int *)((char *)a4 + v12));\n      if ( v16 )\n      {\n        v17 = SLODWORD(v16[1].__vftable);\n        v18 = qword_1801A8480[v17];\n        if ( !v18 )\n          goto LABEL_13;\n        if ( v14 != 0.0 || v15 != 0.0 )\n        {\n          v19 = (float)(v15 - this->m_obViewPortRect.origin.y) / this->m_fScaleY;\n          v20 = (float)(v14 - this->m_obViewPortRect.origin.x) / this->m_fScaleX;\n          *(_DWORD *)(v18 + 56) = v17;\n          cocos2d::CCSize::operator=((_DWORD *)(v18 + 80), (_DWORD *)(v18 + 72));\n          *(float *)(v18 + 72) = v20;\n          *(float *)(v18 + 76) = v19;\n          if ( !*(_BYTE *)(v18 + 60) )\n          {\n            cocos2d::CCSize::operator=((_DWORD *)(v18 + 64), (_DWORD *)(v18 + 72));\n            *(_BYTE *)(v18 + 60) = 1;\n          }\n          *(double *)(v18 + 88) = a6;\n          cocos2d::CCSet::addObject(v21, (struct cocos2d::CCObject *)v18);\n        }\n      }\n      ++v11;\n      ++a4;\n    }\n    while ( v11 < v10 );\n  }\n  if ( (unsigned int)cocos2d::CCSet::count(v21) )\n    ((void (__fastcall *)(cocos2d::EGLTouchDelegate *, cocos2d::CCSet *, _QWORD))this->m_pDelegate->touchesMoved)(\n      this->m_pDelegate,\n      v21,\n      0);\nLABEL_13:\n  cocos2d::CCSet::~CCSet(v21);\n}", "assembly": "; \n; cocos2d::CCEGLViewProtocol::handleTouchesMove from 0x18006bce0 to 0x18006be77 (407 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180100308\n; > <???> @ 0x180100938\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3e40\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     rax, rsp                                                       ; +0x0, 0x18006bce0\nmov     [rax+8], rbx                                                   ; +0x3, 0x18006bce3\nmov     [rax+10h], rbp                                                 ; +0x7, 0x18006bce7\nmov     [rax+18h], rsi                                                 ; +0xb, 0x18006bceb\npush    rdi                                                            ; +0xf, 0x18006bcef\npush    r12                                                            ; +0x10, 0x18006bcf0\npush    r13                                                            ; +0x12, 0x18006bcf2\npush    r14                                                            ; +0x14, 0x18006bcf4\npush    r15                                                            ; +0x16, 0x18006bcf6\nsub     rsp, 0A0h                                                      ; +0x18, 0x18006bcf8\nmovaps  xmmword ptr [rax-38h], xmm6                                    ; +0x1f, 0x18006bcff\nmovaps  xmmword ptr [rax-48h], xmm7                                    ; +0x23, 0x18006bd03\nmovaps  xmmword ptr [rax-58h], xmm8                                    ; +0x27, 0x18006bd07\nmovaps  xmmword ptr [rax-68h], xmm9                                    ; +0x2c, 0x18006bd0c\nmov     rdi, r9                                                        ; +0x31, 0x18006bd11\nmov     r12, r8                                                        ; +0x34, 0x18006bd14\nmovsxd  rbx, edx                                                       ; +0x37, 0x18006bd17\nmov     r15, rcx                                                       ; +0x3a, 0x18006bd1a\nlea     rcx, [rsp+0C8h+var_A8]; this                                   ; +0x3d, 0x18006bd1d\ncall    ??0CCSet@cocos2d@@QEAA@XZ; cocos2d::CCSet::CCSet(void)         ; +0x42, 0x18006bd22\nnop                                                                    ; +0x47, 0x18006bd27\nmov     r14, rbx                                                       ; +0x48, 0x18006bd28\ntest    ebx, ebx                                                       ; +0x4b, 0x18006bd2b\njle     loc_18006BE17                                                  ; +0x4d, 0x18006bd2d\nxor     esi, esi                                                       ; +0x53, 0x18006bd33\nsub     r12, rdi                                                       ; +0x55, 0x18006bd35\nmov     r13, [rsp+0C8h+arg_20]                                         ; +0x58, 0x18006bd38\nsub     r13, rdi                                                       ; +0x60, 0x18006bd40\nlea     rbx, qword_1801A8480                                           ; +0x63, 0x18006bd43\nmovsd   xmm9, [rsp+0C8h+arg_28]                                        ; +0x6a, 0x18006bd4a\nxorps   xmm8, xmm8                                                     ; +0x74, 0x18006bd54\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x78, 0x18006bd58\nmovss   xmm7, dword ptr [rdi]                                          ; +0x80, 0x18006bd60\nmovss   xmm6, dword ptr [rdi+r13]                                      ; +0x84, 0x18006bd64\nmovsxd  rdx, dword ptr [r12+rdi]; __int64                              ; +0x8a, 0x18006bd6a\nlea     rcx, unk_1801A8430; this                                       ; +0x8e, 0x18006bd6e\ncall    ?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x95, 0x18006bd75\ntest    rax, rax                                                       ; +0x9a, 0x18006bd7a\njz      loc_18006BE07                                                  ; +0x9d, 0x18006bd7d\nmovsxd  rcx, dword ptr [rax+38h]                                       ; +0xa3, 0x18006bd83\nmov     rbx, [rbx+rcx*8]                                               ; +0xa7, 0x18006bd87\ntest    rbx, rbx                                                       ; +0xab, 0x18006bd8b\njz      loc_18006BE38                                                  ; +0xae, 0x18006bd8e\nucomiss xmm7, xmm8                                                     ; +0xb4, 0x18006bd94\njp      short loc_18006BDA4                                            ; +0xb8, 0x18006bd98\njnz     short loc_18006BDA4                                            ; +0xba, 0x18006bd9a\nucomiss xmm6, xmm8                                                     ; +0xbc, 0x18006bd9c\njp      short loc_18006BDA4                                            ; +0xc0, 0x18006bda0\njz      short loc_18006BE00                                            ; +0xc2, 0x18006bda2\nsubss   xmm6, dword ptr [r15+24h]                                      ; +0xc4, 0x18006bda4\ndivss   xmm6, dword ptr [r15+68h]                                      ; +0xca, 0x18006bdaa\nsubss   xmm7, dword ptr [r15+20h]                                      ; +0xd0, 0x18006bdb0\ndivss   xmm7, dword ptr [r15+64h]                                      ; +0xd6, 0x18006bdb6\nmov     [rbx+38h], ecx                                                 ; +0xdc, 0x18006bdbc\nlea     rcx, [rbx+50h]                                                 ; +0xdf, 0x18006bdbf\nlea     rdx, [rbx+48h]                                                 ; +0xe3, 0x18006bdc3\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0xe7, 0x18006bdc7\nmovss   dword ptr [rbx+48h], xmm7                                      ; +0xec, 0x18006bdcc\nmovss   dword ptr [rbx+4Ch], xmm6                                      ; +0xf1, 0x18006bdd1\ncmp     byte ptr [rbx+3Ch], 0                                          ; +0xf6, 0x18006bdd6\njnz     short loc_18006BDED                                            ; +0xfa, 0x18006bdda\nlea     rcx, [rbx+40h]                                                 ; +0xfc, 0x18006bddc\nlea     rdx, [rbx+48h]                                                 ; +0x100, 0x18006bde0\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x104, 0x18006bde4\nmov     byte ptr [rbx+3Ch], 1                                          ; +0x109, 0x18006bde9\nmovsd   qword ptr [rbx+58h], xmm9                                      ; +0x10d, 0x18006bded\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0x113, 0x18006bdf3\nlea     rcx, [rsp+0C8h+var_A8]; this                                   ; +0x116, 0x18006bdf6\ncall    ?addObject@CCSet@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCSet::addObject(cocos2d::CCObject *) ; +0x11b, 0x18006bdfb\nlea     rbx, qword_1801A8480                                           ; +0x120, 0x18006be00\ninc     rsi                                                            ; +0x127, 0x18006be07\nadd     rdi, 4                                                         ; +0x12a, 0x18006be0a\ncmp     rsi, r14                                                       ; +0x12e, 0x18006be0e\njl      loc_18006BD60                                                  ; +0x131, 0x18006be11\nlea     rcx, [rsp+0C8h+var_A8]; this                                   ; +0x137, 0x18006be17\ncall    ?count@CCSet@cocos2d@@QEAAHXZ; cocos2d::CCSet::count(void)     ; +0x13c, 0x18006be1c\ntest    eax, eax                                                       ; +0x141, 0x18006be21\njz      short loc_18006BE38                                            ; +0x143, 0x18006be23\nmov     rcx, [r15+8]                                                   ; +0x145, 0x18006be25\nmov     rax, [rcx]                                                     ; +0x149, 0x18006be29\nxor     r8d, r8d                                                       ; +0x14c, 0x18006be2c\nlea     rdx, [rsp+0C8h+var_A8]                                         ; +0x14f, 0x18006be2f\ncall    qword ptr [rax+8]                                              ; +0x154, 0x18006be34\nnop                                                                    ; +0x157, 0x18006be37\nlea     rcx, [rsp+0C8h+var_A8]; this                                   ; +0x158, 0x18006be38\ncall    ??1CCSet@cocos2d@@UEAA@XZ; cocos2d::CCSet::~CCSet(void)        ; +0x15d, 0x18006be3d\nlea     r11, [rsp+0C8h+var_28]                                         ; +0x162, 0x18006be42\nmov     rbx, [r11+30h]                                                 ; +0x16a, 0x18006be4a\nmov     rbp, [r11+38h]                                                 ; +0x16e, 0x18006be4e\nmov     rsi, [r11+40h]                                                 ; +0x172, 0x18006be52\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x176, 0x18006be56\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x17b, 0x18006be5b\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x180, 0x18006be60\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x185, 0x18006be65\nmov     rsp, r11                                                       ; +0x18a, 0x18006be6a\npop     r15                                                            ; +0x18d, 0x18006be6d\npop     r14                                                            ; +0x18f, 0x18006be6f\npop     r13                                                            ; +0x191, 0x18006be71\npop     r12                                                            ; +0x193, 0x18006be73\npop     rdi                                                            ; +0x195, 0x18006be75\nretn                                                                   ; +0x196, 0x18006be76", "xrefs": ["<???> @ 0x180100308", "<???> @ 0x180100938", "<???> @ 0x1801438a8", "<???> @ 0x1801b3e40"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}