{"type": "func", "start": 6442856192, "end": 6442856554, "name": "cocos2d::CCMouseDispatcher::dispatchRightClick", "pseudocode": "// \n// cocos2d::CCMouseDispatcher::dispatchRightClick from 0x180062f00 to 0x18006306a (362 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCEGLViewProtocol::handleRightClick @ 0x18006db8c\n// > <???> @ 0x180142abc\n// > <???> @ 0x180142b3c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd7d4\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:51 +0000\n// \n\nchar __fastcall cocos2d::CCMouseDispatcher::dispatchRightClick(cocos2d::CCMouseDispatcher *this, float a2, float a3)\n{\n  cocos2d::CCDirector *v4; // rax\n  cocos2d::CCArray *v5; // rcx\n  __int64 v6; // rdi\n  bool v7; // si\n  unsigned int i; // ebp\n  int v9; // eax\n  cocos2d::CCNotificationObserver *v10; // rax\n  struct cocos2d::CCObject *Target; // rax\n  Concurrency::details::_NonReentrantLock *v12; // rcx\n  unsigned int v13; // esi\n  Concurrency::details::_NonReentrantLock *v14; // rcx\n  struct cocos2d::CCObject *v15; // rax\n\n  v4 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::noteInput(v4);\n  v5 = *((cocos2d::CCArray **)this + 7);\n  *((_BYTE *)this + 64) = 1;\n  v6 = 0;\n  if ( (unsigned int)cocos2d::CCArray::count(v5) )\n  {\n    v7 = 0;\n    for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 7)); ++i )\n    {\n      v9 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 7));\n      v10 = cocos2d::CCArray::stringAtIndex(*((cocos2d::CCArray **)this + 7), v9 + ~i);\n      if ( !v10 )\n        break;\n      if ( v7 )\n        break;\n      Target = cocos2d::CCNotificationObserver::getTarget(v10);\n      v7 = (*(unsigned __int8 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)Target + 24LL))(Target) != 0;\n    }\n  }\n  *((_BYTE *)this + 64) = 0;\n  if ( *((_BYTE *)this + 66) )\n  {\n    v12 = *((Concurrency::details::_NonReentrantLock **)this + 10);\n    v13 = 0;\n    for ( *((_BYTE *)this + 66) = 0; v13 < *(_DWORD *)v12; ++v13 )\n    {\n      cocos2d::CCMouseDispatcher::forceRemoveDelegate(\n        this,\n        *(struct cocos2d::CCMouseDelegate **)(*((_QWORD *)v12 + 2) + 8LL * v13));\n      v12 = *((Concurrency::details::_NonReentrantLock **)this + 10);\n    }\n    Concurrency::details::_NonReentrantLock::_Release(v12);\n  }\n  if ( *((_BYTE *)this + 65) )\n  {\n    v14 = *((Concurrency::details::_NonReentrantLock **)this + 9);\n    *((_BYTE *)this + 65) = 0;\n    if ( *(_DWORD *)v14 )\n    {\n      do\n      {\n        v15 = cocos2d::CCMouseHandler::handlerWithDelegate(*(struct cocos2d::CCMouseDelegate **)(*((_QWORD *)v14 + 2)\n                                                                                               + 8 * v6));\n        if ( v15 )\n          cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 7), v15);\n        v14 = *((Concurrency::details::_NonReentrantLock **)this + 9);\n        v6 = (unsigned int)(v6 + 1);\n      }\n      while ( (unsigned int)v6 < *(_DWORD *)v14 );\n    }\n    Concurrency::details::_NonReentrantLock::_Release(v14);\n  }\n  return 1;\n}", "assembly": "; \n; cocos2d::CCMouseDispatcher::dispatchRightClick from 0x180062f00 to 0x18006306a (362 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCEGLViewProtocol::handleRightClick @ 0x18006db8c\n; > <???> @ 0x180142abc\n; > <???> @ 0x180142b3c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd7d4\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:51 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x180062f00\npush    rdi                                                            ; +0x5, 0x180062f05\nsub     rsp, 40h                                                       ; +0x6, 0x180062f06\nmov     [rsp+48h+arg_8], rsi                                           ; +0xa, 0x180062f0a\nmov     rbx, rcx                                                       ; +0xf, 0x180062f0f\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x12, 0x180062f12\nmovaps  xmm6, xmm2                                                     ; +0x17, 0x180062f17\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x1a, 0x180062f1a\nmovaps  xmm7, xmm1                                                     ; +0x1f, 0x180062f1f\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x22, 0x180062f22\nmov     rcx, rax; this                                                 ; +0x27, 0x180062f27\ncall    ?noteInput@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::noteInput(void) ; +0x2a, 0x180062f2a\nmov     rcx, [rbx+38h]; this                                           ; +0x2f, 0x180062f2f\nmov     byte ptr [rbx+40h], 1                                          ; +0x33, 0x180062f33\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x37, 0x180062f37\nxor     edi, edi                                                       ; +0x3c, 0x180062f3c\ntest    eax, eax                                                       ; +0x3e, 0x180062f3e\njz      loc_180062FCF                                                  ; +0x40, 0x180062f40\nmov     rcx, [rbx+38h]; this                                           ; +0x46, 0x180062f46\nxor     sil, sil                                                       ; +0x4a, 0x180062f4a\nmov     [rsp+48h+arg_0], rbp                                           ; +0x4d, 0x180062f4d\nmov     ebp, edi                                                       ; +0x52, 0x180062f52\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x54, 0x180062f54\ntest    eax, eax                                                       ; +0x59, 0x180062f59\njz      short loc_180062FCA                                            ; +0x5b, 0x180062f5b\nmov     [rsp+48h+arg_10], r14                                          ; +0x5d, 0x180062f5d\nmov     r14d, 1                                                        ; +0x62, 0x180062f62\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x68, 0x180062f68\nmov     rcx, [rbx+38h]; this                                           ; +0x70, 0x180062f70\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x74, 0x180062f74\nmov     rcx, [rbx+38h]; this                                           ; +0x79, 0x180062f79\nmov     edx, ebp                                                       ; +0x7d, 0x180062f7d\nnot     edx                                                            ; +0x7f, 0x180062f7f\nadd     edx, eax; unsigned int                                         ; +0x81, 0x180062f81\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x83, 0x180062f83\ntest    rax, rax                                                       ; +0x88, 0x180062f88\njz      short loc_180062FC5                                            ; +0x8b, 0x180062f8b\ntest    sil, sil                                                       ; +0x8d, 0x180062f8d\njnz     short loc_180062FC5                                            ; +0x90, 0x180062f90\nmov     rcx, rax; this                                                 ; +0x92, 0x180062f92\ncall    ?getTarget@CCNotificationObserver@cocos2d@@UEAAPEAVCCObject@2@XZ; cocos2d::CCNotificationObserver::getTarget(void) ; +0x95, 0x180062f95\nmovaps  xmm2, xmm6                                                     ; +0x9a, 0x180062f9a\nmovaps  xmm1, xmm7                                                     ; +0x9d, 0x180062f9d\nmov     rcx, [rax]                                                     ; +0xa0, 0x180062fa0\nmov     rdx, [rcx+18h]                                                 ; +0xa3, 0x180062fa3\nmov     rcx, rax                                                       ; +0xa7, 0x180062fa7\ncall    rdx                                                            ; +0xaa, 0x180062faa\nmov     rcx, [rbx+38h]; this                                           ; +0xac, 0x180062fac\ntest    al, al                                                         ; +0xb0, 0x180062fb0\nmovzx   esi, sil                                                       ; +0xb2, 0x180062fb2\ncmovnz  esi, r14d                                                      ; +0xb6, 0x180062fb6\ninc     ebp                                                            ; +0xba, 0x180062fba\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xbc, 0x180062fbc\ncmp     ebp, eax                                                       ; +0xc1, 0x180062fc1\njb      short loc_180062F70                                            ; +0xc3, 0x180062fc3\nmov     r14, [rsp+48h+arg_10]                                          ; +0xc5, 0x180062fc5\nmov     rbp, [rsp+48h+arg_0]                                           ; +0xca, 0x180062fca\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xcf, 0x180062fcf\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xd4, 0x180062fd4\nmov     [rbx+40h], dil                                                 ; +0xd9, 0x180062fd9\ncmp     [rbx+42h], dil                                                 ; +0xdd, 0x180062fdd\njz      short loc_180063012                                            ; +0xe1, 0x180062fe1\nmov     rcx, [rbx+50h]                                                 ; +0xe3, 0x180062fe3\nmov     esi, edi                                                       ; +0xe7, 0x180062fe7\nmov     [rbx+42h], dil                                                 ; +0xe9, 0x180062fe9\ncmp     [rcx], edi                                                     ; +0xed, 0x180062fed\njbe     short loc_18006300D                                            ; +0xef, 0x180062fef\nmov     rdx, [rcx+10h]                                                 ; +0xf1, 0x180062ff1\nmov     rcx, rbx; this                                                 ; +0xf5, 0x180062ff5\nmov     eax, esi                                                       ; +0xf8, 0x180062ff8\nmov     rdx, [rdx+rax*8]; struct cocos2d::CCMouseDelegate *            ; +0xfa, 0x180062ffa\ncall    ?forceRemoveDelegate@CCMouseDispatcher@cocos2d@@QEAAXPEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseDispatcher::forceRemoveDelegate(cocos2d::CCMouseDelegate *) ; +0xfe, 0x180062ffe\nmov     rcx, [rbx+50h]; this                                           ; +0x103, 0x180063003\ninc     esi                                                            ; +0x107, 0x180063007\ncmp     esi, [rcx]                                                     ; +0x109, 0x180063009\njb      short loc_180062FF1                                            ; +0x10b, 0x18006300b\ncall    ?_Release@_NonReentrantLock@details@Concurrency@@QEAAXXZ; Concurrency::details::_NonReentrantLock::_Release(void) ; +0x10d, 0x18006300d\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x112, 0x180063012\ncmp     [rbx+41h], dil                                                 ; +0x117, 0x180063017\njz      short loc_18006305D                                            ; +0x11b, 0x18006301b\nmov     rcx, [rbx+48h]                                                 ; +0x11d, 0x18006301d\nmov     [rbx+41h], dil                                                 ; +0x121, 0x180063021\ncmp     [rcx], edi                                                     ; +0x125, 0x180063025\njbe     short loc_180063058                                            ; +0x127, 0x180063027\nnop     dword ptr [rax+00000000h]                                      ; +0x129, 0x180063029\nmov     rcx, [rcx+10h]                                                 ; +0x130, 0x180063030\nmov     rcx, [rcx+rdi*8]; struct cocos2d::CCMouseDelegate *            ; +0x134, 0x180063034\ncall    ?handlerWithDelegate@CCMouseHandler@cocos2d@@SAPEAV12@PEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseHandler::handlerWithDelegate(cocos2d::CCMouseDelegate *) ; +0x138, 0x180063038\ntest    rax, rax                                                       ; +0x13d, 0x18006303d\njz      short loc_18006304E                                            ; +0x140, 0x180063040\nmov     rcx, [rbx+38h]; this                                           ; +0x142, 0x180063042\nmov     rdx, rax; struct cocos2d::CCObject *                           ; +0x146, 0x180063046\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x149, 0x180063049\nmov     rcx, [rbx+48h]; this                                           ; +0x14e, 0x18006304e\ninc     edi                                                            ; +0x152, 0x180063052\ncmp     edi, [rcx]                                                     ; +0x154, 0x180063054\njb      short loc_180063030                                            ; +0x156, 0x180063056\ncall    ?_Release@_NonReentrantLock@details@Concurrency@@QEAAXXZ; Concurrency::details::_NonReentrantLock::_Release(void) ; +0x158, 0x180063058\nmov     rbx, [rsp+48h+arg_18]                                          ; +0x15d, 0x18006305d\nmov     al, 1                                                          ; +0x162, 0x180063062\nadd     rsp, 40h                                                       ; +0x164, 0x180063064\npop     rdi                                                            ; +0x168, 0x180063068\nretn                                                                   ; +0x169, 0x180063069", "xrefs": ["cocos2d::CCEGLViewProtocol::handleRightClick @ 0x18006db8c", "<???> @ 0x180142abc", "<???> @ 0x180142b3c", "<???> @ 0x18014cf68", "<???> @ 0x1801bd7d4"], "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"}