{"type": "func", "start": 6443189200, "end": 6443189268, "name": "cocos2d::CCKeypadDispatcher::addDelegate", "pseudocode": "// \n// cocos2d::CCKeypadDispatcher::addDelegate from 0x1800b43d0 to 0x1800b4414 (68 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCLayer::onEnter @ 0x180050605\n// > cocos2d::CCLayer::setKeypadEnabled @ 0x180050ce2\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b885c\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::CCKeypadDispatcher::addDelegate(cocos2d::CCKeypadDispatcher *this, cocos2d::CCObject_vtbl *a2)\n{\n  struct cocos2d::CCKeypadHandler *v3; // rax\n\n  if ( a2 )\n  {\n    if ( this->m_bLocked )\n    {\n      sub_18009E170((__int64)this->m_pHandlersToAdd, (__int64)a2);\n      this->m_bToAdd = 1;\n    }\n    else\n    {\n      v3 = cocos2d::CCKeypadHandler::handlerWithDelegate(a2);\n      if ( v3 )\n        cocos2d::CCArray::addObject(this->m_pDelegates, v3);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCKeypadDispatcher::addDelegate from 0x1800b43d0 to 0x1800b4414 (68 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCLayer::onEnter @ 0x180050605\n; > cocos2d::CCLayer::setKeypadEnabled @ 0x180050ce2\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b885c\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\ntest    rdx, rdx                                                       ; +0x0, 0x1800b43d0\njz      short locret_1800B4413                                         ; +0x3, 0x1800b43d3\npush    rbx                                                            ; +0x5, 0x1800b43d5\nsub     rsp, 20h                                                       ; +0x6, 0x1800b43d6\ncmp     byte ptr [rcx+40h], 0                                          ; +0xa, 0x1800b43da\nmov     rbx, rcx                                                       ; +0xe, 0x1800b43de\njnz     short loc_1800B4401                                            ; +0x11, 0x1800b43e1\nmov     rcx, rdx; struct cocos2d::CCKeypadDelegate *                   ; +0x13, 0x1800b43e3\ncall    ?handlerWithDelegate@CCKeypadHandler@cocos2d@@SAPEAV12@PEAVCCKeypadDelegate@2@@Z; cocos2d::CCKeypadHandler::handlerWithDelegate(cocos2d::CCKeypadDelegate *) ; +0x16, 0x1800b43e6\ntest    rax, rax                                                       ; +0x1b, 0x1800b43eb\njz      short loc_1800B440E                                            ; +0x1e, 0x1800b43ee\nmov     rcx, [rbx+38h]; this                                           ; +0x20, 0x1800b43f0\nmov     rdx, rax; struct cocos2d::CCObject *                           ; +0x24, 0x1800b43f4\nadd     rsp, 20h                                                       ; +0x27, 0x1800b43f7\npop     rbx                                                            ; +0x2b, 0x1800b43fb\njmp     ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x2c, 0x1800b43fc\nmov     rcx, [rcx+48h]                                                 ; +0x31, 0x1800b4401\ncall    sub_18009E170                                                  ; +0x35, 0x1800b4405\nmov     byte ptr [rbx+41h], 1                                          ; +0x3a, 0x1800b440a\nadd     rsp, 20h                                                       ; +0x3e, 0x1800b440e\npop     rbx                                                            ; +0x42, 0x1800b4412\nretn                                                                   ; +0x43, 0x1800b4413", "xrefs": ["cocos2d::CCLayer::onEnter @ 0x180050605", "cocos2d::CCLayer::setKeypadEnabled @ 0x180050ce2", "<???> @ 0x1801438a8", "<???> @ 0x1801b885c"], "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"}