{"type": "func", "start": 6442856928, "end": 6442857096, "name": "cocos2d::CCMouseDispatcher::flushPendingDelegates", "pseudocode": "// \n// cocos2d::CCMouseDispatcher::flushPendingDelegates from 0x1800631e0 to 0x180063288 (168 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180142b50\n// > <???> @ 0x180142b60\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd8ac\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\nvoid __fastcall cocos2d::CCMouseDispatcher::flushPendingDelegates(cocos2d::CCMouseDispatcher *this)\n{\n  __int64 v1; // rdi\n  Concurrency::details::_NonReentrantLock *v3; // rcx\n  unsigned int i; // esi\n  Concurrency::details::_NonReentrantLock *v5; // rcx\n  struct cocos2d::CCObject *v6; // rax\n\n  v1 = 0;\n  if ( *((_BYTE *)this + 66) )\n  {\n    *((_BYTE *)this + 66) = 0;\n    v3 = *((Concurrency::details::_NonReentrantLock **)this + 10);\n    for ( i = 0; i < *(_DWORD *)v3; ++i )\n    {\n      cocos2d::CCMouseDispatcher::forceRemoveDelegate(\n        this,\n        *(struct cocos2d::CCMouseDelegate **)(*((_QWORD *)v3 + 2) + 8LL * i));\n      v3 = *((Concurrency::details::_NonReentrantLock **)this + 10);\n    }\n    Concurrency::details::_NonReentrantLock::_Release(v3);\n  }\n  if ( *((_BYTE *)this + 65) )\n  {\n    v5 = *((Concurrency::details::_NonReentrantLock **)this + 9);\n    *((_BYTE *)this + 65) = 0;\n    if ( *(_DWORD *)v5 )\n    {\n      do\n      {\n        v6 = cocos2d::CCMouseHandler::handlerWithDelegate(*(struct cocos2d::CCMouseDelegate **)(*((_QWORD *)v5 + 2)\n                                                                                              + 8 * v1));\n        if ( v6 )\n          cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 7), v6);\n        v5 = *((Concurrency::details::_NonReentrantLock **)this + 9);\n        v1 = (unsigned int)(v1 + 1);\n      }\n      while ( (unsigned int)v1 < *(_DWORD *)v5 );\n    }\n    Concurrency::details::_NonReentrantLock::_Release(v5);\n  }\n}", "assembly": "; \n; cocos2d::CCMouseDispatcher::flushPendingDelegates from 0x1800631e0 to 0x180063288 (168 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180142b50\n; > <???> @ 0x180142b60\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd8ac\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_8], rbx                                               ; +0x0, 0x1800631e0\npush    rdi                                                            ; +0x5, 0x1800631e5\nsub     rsp, 20h                                                       ; +0x6, 0x1800631e6\nxor     edi, edi                                                       ; +0xa, 0x1800631ea\nmov     rbx, rcx                                                       ; +0xc, 0x1800631ec\ncmp     [rcx+42h], dil                                                 ; +0xf, 0x1800631ef\njz      short loc_180063236                                            ; +0x13, 0x1800631f3\nmov     [rcx+42h], dil                                                 ; +0x15, 0x1800631f5\nmov     rcx, [rcx+50h]                                                 ; +0x19, 0x1800631f9\nmov     [rsp+28h+arg_0], rsi                                           ; +0x1d, 0x1800631fd\nmov     esi, edi                                                       ; +0x22, 0x180063202\ncmp     [rcx], edi                                                     ; +0x24, 0x180063204\njbe     short loc_18006322C                                            ; +0x26, 0x180063206\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x28, 0x180063208\nmov     rdx, [rcx+10h]                                                 ; +0x30, 0x180063210\nmov     rcx, rbx; this                                                 ; +0x34, 0x180063214\nmov     eax, esi                                                       ; +0x37, 0x180063217\nmov     rdx, [rdx+rax*8]; struct cocos2d::CCMouseDelegate *            ; +0x39, 0x180063219\ncall    ?forceRemoveDelegate@CCMouseDispatcher@cocos2d@@QEAAXPEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseDispatcher::forceRemoveDelegate(cocos2d::CCMouseDelegate *) ; +0x3d, 0x18006321d\nmov     rcx, [rbx+50h]; this                                           ; +0x42, 0x180063222\ninc     esi                                                            ; +0x46, 0x180063226\ncmp     esi, [rcx]                                                     ; +0x48, 0x180063228\njb      short loc_180063210                                            ; +0x4a, 0x18006322a\ncall    ?_Release@_NonReentrantLock@details@Concurrency@@QEAAXXZ; Concurrency::details::_NonReentrantLock::_Release(void) ; +0x4c, 0x18006322c\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x51, 0x180063231\ncmp     [rbx+41h], dil                                                 ; +0x56, 0x180063236\njz      short loc_18006327D                                            ; +0x5a, 0x18006323a\nmov     rcx, [rbx+48h]                                                 ; +0x5c, 0x18006323c\nmov     [rbx+41h], dil                                                 ; +0x60, 0x180063240\ncmp     [rcx], edi                                                     ; +0x64, 0x180063244\njbe     short loc_180063278                                            ; +0x66, 0x180063246\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x68, 0x180063248\nmov     rcx, [rcx+10h]                                                 ; +0x70, 0x180063250\nmov     rcx, [rcx+rdi*8]; struct cocos2d::CCMouseDelegate *            ; +0x74, 0x180063254\ncall    ?handlerWithDelegate@CCMouseHandler@cocos2d@@SAPEAV12@PEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseHandler::handlerWithDelegate(cocos2d::CCMouseDelegate *) ; +0x78, 0x180063258\ntest    rax, rax                                                       ; +0x7d, 0x18006325d\njz      short loc_18006326E                                            ; +0x80, 0x180063260\nmov     rcx, [rbx+38h]; this                                           ; +0x82, 0x180063262\nmov     rdx, rax; struct cocos2d::CCObject *                           ; +0x86, 0x180063266\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x89, 0x180063269\nmov     rcx, [rbx+48h]; this                                           ; +0x8e, 0x18006326e\ninc     edi                                                            ; +0x92, 0x180063272\ncmp     edi, [rcx]                                                     ; +0x94, 0x180063274\njb      short loc_180063250                                            ; +0x96, 0x180063276\ncall    ?_Release@_NonReentrantLock@details@Concurrency@@QEAAXXZ; Concurrency::details::_NonReentrantLock::_Release(void) ; +0x98, 0x180063278\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x9d, 0x18006327d\nadd     rsp, 20h                                                       ; +0xa2, 0x180063282\npop     rdi                                                            ; +0xa6, 0x180063286\nretn                                                                   ; +0xa7, 0x180063287", "xrefs": ["<???> @ 0x180142b50", "<???> @ 0x180142b60", "<???> @ 0x18014cf68", "<???> @ 0x1801bd8ac"], "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"}