{"type": "func", "start": 6443234944, "end": 6443235008, "name": "cocos2d::CCDirector::setKeyboardDispatcher", "pseudocode": "// \n// cocos2d::CCDirector::setKeyboardDispatcher from 0x1800bf680 to 0x1800bf6c0 (64 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180107328\n// > <???> @ 0x180107438\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b9318\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\nvoid __fastcall cocos2d::CCDirector::setKeyboardDispatcher(\n        cocos2d::CCDirector *this,\n        struct cocos2d::CCKeyboardDispatcher *a2)\n{\n  cocos2d::CCKeyboardDispatcher *m_pKeyboardDispatcher; // rcx\n\n  if ( a2 )\n    cocos2d::CCObject::retain(a2);\n  m_pKeyboardDispatcher = this->m_pKeyboardDispatcher;\n  if ( m_pKeyboardDispatcher )\n    cocos2d::CCObject::release(m_pKeyboardDispatcher);\n  this->m_pKeyboardDispatcher = a2;\n}", "assembly": "; \n; cocos2d::CCDirector::setKeyboardDispatcher from 0x1800bf680 to 0x1800bf6c0 (64 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180107328\n; > <???> @ 0x180107438\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b9318\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     [rsp+arg_0], rbx                                               ; +0x0, 0x1800bf680\npush    rdi                                                            ; +0x5, 0x1800bf685\nsub     rsp, 20h                                                       ; +0x6, 0x1800bf686\nmov     rbx, rdx                                                       ; +0xa, 0x1800bf68a\nmov     rdi, rcx                                                       ; +0xd, 0x1800bf68d\ntest    rdx, rdx                                                       ; +0x10, 0x1800bf690\njz      short loc_1800BF69D                                            ; +0x13, 0x1800bf693\nmov     rcx, rdx; this                                                 ; +0x15, 0x1800bf695\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x18, 0x1800bf698\nmov     rcx, [rdi+88h]; this                                           ; +0x1d, 0x1800bf69d\ntest    rcx, rcx                                                       ; +0x24, 0x1800bf6a4\njz      short loc_1800BF6AE                                            ; +0x27, 0x1800bf6a7\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x29, 0x1800bf6a9\nmov     [rdi+88h], rbx                                                 ; +0x2e, 0x1800bf6ae\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x35, 0x1800bf6b5\nadd     rsp, 20h                                                       ; +0x3a, 0x1800bf6ba\npop     rdi                                                            ; +0x3e, 0x1800bf6be\nretn                                                                   ; +0x3f, 0x1800bf6bf", "xrefs": ["<???> @ 0x180107328", "<???> @ 0x180107438", "<???> @ 0x1801438a8", "<???> @ 0x1801b9318"], "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"}