{"type": "func", "start": 6442738848, "end": 6442739016, "name": "cocos2d::CCKeyboardDispatcher::flushPendingDelegates", "pseudocode": "// \n// cocos2d::CCKeyboardDispatcher::flushPendingDelegates from 0x1800464a0 to 0x180046548 (168 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCKeyboardDispatcher::dispatchKeyboardMSG @ 0x1800462ef\n// > cocos2d::CCKeyboardDispatcher::releaseAllKeys @ 0x180047117\n// > <???> @ 0x18014029c\n// > <???> @ 0x1801402ac\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bb8fc\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:41 +0000\n// \n\nvoid __fastcall cocos2d::CCKeyboardDispatcher::flushPendingDelegates(cocos2d::CCKeyboardDispatcher *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::CCKeyboardHandler::handlerWithDelegate(*(struct cocos2d::CCKeyboardDelegate **)(*((_QWORD *)v5 + 2) + 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::CCKeyboardDispatcher::flushPendingDelegates from 0x1800464a0 to 0x180046548 (168 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCKeyboardDispatcher::dispatchKeyboardMSG @ 0x1800462ef\n; > cocos2d::CCKeyboardDispatcher::releaseAllKeys @ 0x180047117\n; > <???> @ 0x18014029c\n; > <???> @ 0x1801402ac\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bb8fc\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:41 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800464a0\npush    rdi                                                            ; +0x5, 0x1800464a5\nsub     rsp, 20h                                                       ; +0x6, 0x1800464a6\nxor     edi, edi                                                       ; +0xa, 0x1800464aa\nmov     rbx, rcx                                                       ; +0xc, 0x1800464ac\ncmp     [rcx+42h], dil                                                 ; +0xf, 0x1800464af\njz      short loc_1800464F6                                            ; +0x13, 0x1800464b3\nmov     [rcx+42h], dil                                                 ; +0x15, 0x1800464b5\nmov     rcx, [rcx+50h]                                                 ; +0x19, 0x1800464b9\nmov     [rsp+28h+arg_0], rsi                                           ; +0x1d, 0x1800464bd\nmov     esi, edi                                                       ; +0x22, 0x1800464c2\ncmp     [rcx], edi                                                     ; +0x24, 0x1800464c4\njbe     short loc_1800464EC                                            ; +0x26, 0x1800464c6\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x28, 0x1800464c8\nmov     rdx, [rcx+10h]                                                 ; +0x30, 0x1800464d0\nmov     rcx, rbx; this                                                 ; +0x34, 0x1800464d4\nmov     eax, esi                                                       ; +0x37, 0x1800464d7\nmov     rdx, [rdx+rax*8]; struct cocos2d::CCMouseDelegate *            ; +0x39, 0x1800464d9\ncall    ?forceRemoveDelegate@CCMouseDispatcher@cocos2d@@QEAAXPEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseDispatcher::forceRemoveDelegate(cocos2d::CCMouseDelegate *) ; +0x3d, 0x1800464dd\nmov     rcx, [rbx+50h]; this                                           ; +0x42, 0x1800464e2\ninc     esi                                                            ; +0x46, 0x1800464e6\ncmp     esi, [rcx]                                                     ; +0x48, 0x1800464e8\njb      short loc_1800464D0                                            ; +0x4a, 0x1800464ea\ncall    ?_Release@_NonReentrantLock@details@Concurrency@@QEAAXXZ; Concurrency::details::_NonReentrantLock::_Release(void) ; +0x4c, 0x1800464ec\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x51, 0x1800464f1\ncmp     [rbx+41h], dil                                                 ; +0x56, 0x1800464f6\njz      short loc_18004653D                                            ; +0x5a, 0x1800464fa\nmov     rcx, [rbx+48h]                                                 ; +0x5c, 0x1800464fc\nmov     [rbx+41h], dil                                                 ; +0x60, 0x180046500\ncmp     [rcx], edi                                                     ; +0x64, 0x180046504\njbe     short loc_180046538                                            ; +0x66, 0x180046506\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x68, 0x180046508\nmov     rcx, [rcx+10h]                                                 ; +0x70, 0x180046510\nmov     rcx, [rcx+rdi*8]; struct cocos2d::CCKeyboardDelegate *         ; +0x74, 0x180046514\ncall    ?handlerWithDelegate@CCKeyboardHandler@cocos2d@@SAPEAV12@PEAVCCKeyboardDelegate@2@@Z; cocos2d::CCKeyboardHandler::handlerWithDelegate(cocos2d::CCKeyboardDelegate *) ; +0x78, 0x180046518\ntest    rax, rax                                                       ; +0x7d, 0x18004651d\njz      short loc_18004652E                                            ; +0x80, 0x180046520\nmov     rcx, [rbx+38h]; this                                           ; +0x82, 0x180046522\nmov     rdx, rax; struct cocos2d::CCObject *                           ; +0x86, 0x180046526\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x89, 0x180046529\nmov     rcx, [rbx+48h]; this                                           ; +0x8e, 0x18004652e\ninc     edi                                                            ; +0x92, 0x180046532\ncmp     edi, [rcx]                                                     ; +0x94, 0x180046534\njb      short loc_180046510                                            ; +0x96, 0x180046536\ncall    ?_Release@_NonReentrantLock@details@Concurrency@@QEAAXXZ; Concurrency::details::_NonReentrantLock::_Release(void) ; +0x98, 0x180046538\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x9d, 0x18004653d\nadd     rsp, 20h                                                       ; +0xa2, 0x180046542\npop     rdi                                                            ; +0xa6, 0x180046546\nretn                                                                   ; +0xa7, 0x180046547", "xrefs": ["cocos2d::CCKeyboardDispatcher::dispatchKeyboardMSG @ 0x1800462ef", "cocos2d::CCKeyboardDispatcher::releaseAllKeys @ 0x180047117", "<???> @ 0x18014029c", "<???> @ 0x1801402ac", "<???> @ 0x18014cf68", "<???> @ 0x1801bb8fc"], "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"}