{"type": "func", "start": 6442736288, "end": 6442736356, "name": "cocos2d::CCKeyboardDispatcher::addDelegate", "pseudocode": "// \n// cocos2d::CCKeyboardDispatcher::addDelegate from 0x180045aa0 to 0x180045ae4 (68 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCLayer::onEnter @ 0x180052453\n// > cocos2d::CCLayer::setKeyboardEnabled @ 0x180052a57\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bb890\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:40 +0000\n// \n\nvoid __fastcall cocos2d::CCKeyboardDispatcher::addDelegate(\n        cocos2d::CCKeyboardDispatcher *this,\n        struct cocos2d::CCKeyboardDelegate *a2)\n{\n  struct cocos2d::CCObject *v3; // rax\n\n  if ( a2 )\n  {\n    if ( *((_BYTE *)this + 64) )\n    {\n      sub_1800A1E00(*((_QWORD *)this + 9));\n      *((_BYTE *)this + 65) = 1;\n    }\n    else\n    {\n      v3 = cocos2d::CCKeyboardHandler::handlerWithDelegate(a2);\n      if ( v3 )\n        cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 7), v3);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCKeyboardDispatcher::addDelegate from 0x180045aa0 to 0x180045ae4 (68 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCLayer::onEnter @ 0x180052453\n; > cocos2d::CCLayer::setKeyboardEnabled @ 0x180052a57\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bb890\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:40 +0000\n; \ntest    rdx, rdx                                                       ; +0x0, 0x180045aa0\njz      short locret_180045AE3                                         ; +0x3, 0x180045aa3\npush    rbx                                                            ; +0x5, 0x180045aa5\nsub     rsp, 20h                                                       ; +0x6, 0x180045aa6\ncmp     byte ptr [rcx+40h], 0                                          ; +0xa, 0x180045aaa\nmov     rbx, rcx                                                       ; +0xe, 0x180045aae\njnz     short loc_180045AD1                                            ; +0x11, 0x180045ab1\nmov     rcx, rdx; struct cocos2d::CCKeyboardDelegate *                 ; +0x13, 0x180045ab3\ncall    ?handlerWithDelegate@CCKeyboardHandler@cocos2d@@SAPEAV12@PEAVCCKeyboardDelegate@2@@Z; cocos2d::CCKeyboardHandler::handlerWithDelegate(cocos2d::CCKeyboardDelegate *) ; +0x16, 0x180045ab6\ntest    rax, rax                                                       ; +0x1b, 0x180045abb\njz      short loc_180045ADE                                            ; +0x1e, 0x180045abe\nmov     rcx, [rbx+38h]; this                                           ; +0x20, 0x180045ac0\nmov     rdx, rax; struct cocos2d::CCObject *                           ; +0x24, 0x180045ac4\nadd     rsp, 20h                                                       ; +0x27, 0x180045ac7\npop     rbx                                                            ; +0x2b, 0x180045acb\njmp     ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x2c, 0x180045acc\nmov     rcx, [rcx+48h]                                                 ; +0x31, 0x180045ad1\ncall    sub_1800A1E00                                                  ; +0x35, 0x180045ad5\nmov     byte ptr [rbx+41h], 1                                          ; +0x3a, 0x180045ada\nadd     rsp, 20h                                                       ; +0x3e, 0x180045ade\npop     rbx                                                            ; +0x42, 0x180045ae2\nretn                                                                   ; +0x43, 0x180045ae3", "xrefs": ["cocos2d::CCLayer::onEnter @ 0x180052453", "cocos2d::CCLayer::setKeyboardEnabled @ 0x180052a57", "<???> @ 0x18014cf68", "<???> @ 0x1801bb890"], "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"}