{"type": "func", "start": 6443204384, "end": 6443204506, "name": "cocos2d::CCKeypadHandler::setDelegate", "pseudocode": "// \n// cocos2d::CCKeypadHandler::setDelegate from 0x1800b7f20 to 0x1800b7f9a (122 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2b20\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:22:22 +0000\n// \n\nvoid __fastcall cocos2d::CCKeypadHandler::setDelegate(\n        cocos2d::CCKeypadHandler *this,\n        struct cocos2d::CCKeypadDelegate *a2)\n{\n  cocos2d::CCObject *v4; // rax\n  __int64 v5; // rcx\n  cocos2d::CCObject *v6; // rax\n\n  if ( a2 )\n  {\n    v4 = (cocos2d::CCObject *)_RTDynamicCast(\n                                a2,\n                                0,\n                                &cocos2d::CCKeypadDelegate `RTTI Type Descriptor',\n                                &cocos2d::CCObject `RTTI Type Descriptor',\n                                0);\n    cocos2d::CCObject::retain(v4);\n  }\n  v5 = *((_QWORD *)this + 7);\n  if ( v5 )\n  {\n    v6 = (cocos2d::CCObject *)_RTDynamicCast(\n                                v5,\n                                0,\n                                &cocos2d::CCKeypadDelegate `RTTI Type Descriptor',\n                                &cocos2d::CCObject `RTTI Type Descriptor',\n                                0);\n    cocos2d::CCObject::release(v6);\n  }\n  *((_QWORD *)this + 7) = a2;\n}", "assembly": "; \n; cocos2d::CCKeypadHandler::setDelegate from 0x1800b7f20 to 0x1800b7f9a (122 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2b20\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:22:22 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800b7f20\npush    rdi                                                            ; +0x5, 0x1800b7f25\nsub     rsp, 30h                                                       ; +0x6, 0x1800b7f26\nmov     rbx, rdx                                                       ; +0xa, 0x1800b7f2a\nmov     rdi, rcx                                                       ; +0xd, 0x1800b7f2d\ntest    rdx, rdx                                                       ; +0x10, 0x1800b7f30\njz      short loc_1800B7F5D                                            ; +0x13, 0x1800b7f33\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x15, 0x1800b7f35\nmov     [rsp+38h+var_18], 0                                            ; +0x1c, 0x1800b7f3c\nlea     r8, ??_R0?AVCCKeypadDelegate@cocos2d@@@8; cocos2d::CCKeypadDelegate `RTTI Type Descriptor' ; +0x24, 0x1800b7f44\nxor     edx, edx                                                       ; +0x2b, 0x1800b7f4b\nmov     rcx, rbx                                                       ; +0x2d, 0x1800b7f4d\ncall    __RTDynamicCast                                                ; +0x30, 0x1800b7f50\nmov     rcx, rax; this                                                 ; +0x35, 0x1800b7f55\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x38, 0x1800b7f58\nmov     rcx, [rdi+38h]                                                 ; +0x3d, 0x1800b7f5d\ntest    rcx, rcx                                                       ; +0x41, 0x1800b7f61\njz      short loc_1800B7F8B                                            ; +0x44, 0x1800b7f64\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x46, 0x1800b7f66\nmov     [rsp+38h+var_18], 0                                            ; +0x4d, 0x1800b7f6d\nlea     r8, ??_R0?AVCCKeypadDelegate@cocos2d@@@8; cocos2d::CCKeypadDelegate `RTTI Type Descriptor' ; +0x55, 0x1800b7f75\nxor     edx, edx                                                       ; +0x5c, 0x1800b7f7c\ncall    __RTDynamicCast                                                ; +0x5e, 0x1800b7f7e\nmov     rcx, rax; this                                                 ; +0x63, 0x1800b7f83\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x66, 0x1800b7f86\nmov     [rdi+38h], rbx                                                 ; +0x6b, 0x1800b7f8b\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x6f, 0x1800b7f8f\nadd     rsp, 30h                                                       ; +0x74, 0x1800b7f94\npop     rdi                                                            ; +0x78, 0x1800b7f98\nretn                                                                   ; +0x79, 0x1800b7f99", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c2b20"], "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"}