{"type": "func", "start": 6442732368, "end": 6442732490, "name": "cocos2d::CCKeyboardHandler::setDelegate", "pseudocode": "// \n// cocos2d::CCKeyboardHandler::setDelegate from 0x180044b50 to 0x180044bca (122 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1644\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::CCKeyboardHandler::setDelegate(\n        cocos2d::CCKeyboardHandler *this,\n        struct cocos2d::CCKeyboardDelegate *a2)\n{\n  cocos2d::CCObject *v4; // rax\n  cocos2d::CCKeyboardDelegate *m_pDelegate; // rcx\n  cocos2d::CCObject *v6; // rax\n\n  if ( a2 )\n  {\n    v4 = (cocos2d::CCObject *)_RTDynamicCast(\n                                a2,\n                                0,\n                                &cocos2d::CCKeyboardDelegate `RTTI Type Descriptor',\n                                &cocos2d::CCObject `RTTI Type Descriptor',\n                                0);\n    cocos2d::CCObject::retain(v4);\n  }\n  m_pDelegate = this->m_pDelegate;\n  if ( m_pDelegate )\n  {\n    v6 = (cocos2d::CCObject *)_RTDynamicCast(\n                                m_pDelegate,\n                                0,\n                                &cocos2d::CCKeyboardDelegate `RTTI Type Descriptor',\n                                &cocos2d::CCObject `RTTI Type Descriptor',\n                                0);\n    cocos2d::CCObject::release(v6);\n  }\n  this->m_pDelegate = a2;\n}", "assembly": "; \n; cocos2d::CCKeyboardHandler::setDelegate from 0x180044b50 to 0x180044bca (122 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1644\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, 0x180044b50\npush    rdi                                                            ; +0x5, 0x180044b55\nsub     rsp, 30h                                                       ; +0x6, 0x180044b56\nmov     rbx, rdx                                                       ; +0xa, 0x180044b5a\nmov     rdi, rcx                                                       ; +0xd, 0x180044b5d\ntest    rdx, rdx                                                       ; +0x10, 0x180044b60\njz      short loc_180044B8D                                            ; +0x13, 0x180044b63\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x15, 0x180044b65\nmov     [rsp+38h+var_18], 0                                            ; +0x1c, 0x180044b6c\nlea     r8, ??_R0?AVCCKeyboardDelegate@cocos2d@@@8; cocos2d::CCKeyboardDelegate `RTTI Type Descriptor' ; +0x24, 0x180044b74\nxor     edx, edx                                                       ; +0x2b, 0x180044b7b\nmov     rcx, rbx                                                       ; +0x2d, 0x180044b7d\ncall    __RTDynamicCast                                                ; +0x30, 0x180044b80\nmov     rcx, rax; this                                                 ; +0x35, 0x180044b85\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x38, 0x180044b88\nmov     rcx, [rdi+38h]                                                 ; +0x3d, 0x180044b8d\ntest    rcx, rcx                                                       ; +0x41, 0x180044b91\njz      short loc_180044BBB                                            ; +0x44, 0x180044b94\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x46, 0x180044b96\nmov     [rsp+38h+var_18], 0                                            ; +0x4d, 0x180044b9d\nlea     r8, ??_R0?AVCCKeyboardDelegate@cocos2d@@@8; cocos2d::CCKeyboardDelegate `RTTI Type Descriptor' ; +0x55, 0x180044ba5\nxor     edx, edx                                                       ; +0x5c, 0x180044bac\ncall    __RTDynamicCast                                                ; +0x5e, 0x180044bae\nmov     rcx, rax; this                                                 ; +0x63, 0x180044bb3\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x66, 0x180044bb6\nmov     [rdi+38h], rbx                                                 ; +0x6b, 0x180044bbb\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x6f, 0x180044bbf\nadd     rsp, 30h                                                       ; +0x74, 0x180044bc4\npop     rdi                                                            ; +0x78, 0x180044bc8\nretn                                                                   ; +0x79, 0x180044bc9", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b1644"], "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"}