{"type": "func", "start": 6443188704, "end": 6443188826, "name": "cocos2d::CCKeypadHandler::setDelegate", "pseudocode": "// \n// cocos2d::CCKeypadHandler::setDelegate from 0x1800b41e0 to 0x1800b425a (122 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b882c\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::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 0x1800b41e0 to 0x1800b425a (122 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b882c\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, 0x1800b41e0\npush    rdi                                                            ; +0x5, 0x1800b41e5\nsub     rsp, 30h                                                       ; +0x6, 0x1800b41e6\nmov     rbx, rdx                                                       ; +0xa, 0x1800b41ea\nmov     rdi, rcx                                                       ; +0xd, 0x1800b41ed\ntest    rdx, rdx                                                       ; +0x10, 0x1800b41f0\njz      short loc_1800B421D                                            ; +0x13, 0x1800b41f3\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x15, 0x1800b41f5\nmov     [rsp+38h+var_18], 0                                            ; +0x1c, 0x1800b41fc\nlea     r8, ??_R0?AVCCKeypadDelegate@cocos2d@@@8; cocos2d::CCKeypadDelegate `RTTI Type Descriptor' ; +0x24, 0x1800b4204\nxor     edx, edx                                                       ; +0x2b, 0x1800b420b\nmov     rcx, rbx                                                       ; +0x2d, 0x1800b420d\ncall    __RTDynamicCast                                                ; +0x30, 0x1800b4210\nmov     rcx, rax; this                                                 ; +0x35, 0x1800b4215\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x38, 0x1800b4218\nmov     rcx, [rdi+38h]                                                 ; +0x3d, 0x1800b421d\ntest    rcx, rcx                                                       ; +0x41, 0x1800b4221\njz      short loc_1800B424B                                            ; +0x44, 0x1800b4224\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x46, 0x1800b4226\nmov     [rsp+38h+var_18], 0                                            ; +0x4d, 0x1800b422d\nlea     r8, ??_R0?AVCCKeypadDelegate@cocos2d@@@8; cocos2d::CCKeypadDelegate `RTTI Type Descriptor' ; +0x55, 0x1800b4235\nxor     edx, edx                                                       ; +0x5c, 0x1800b423c\ncall    __RTDynamicCast                                                ; +0x5e, 0x1800b423e\nmov     rcx, rax; this                                                 ; +0x63, 0x1800b4243\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x66, 0x1800b4246\nmov     [rdi+38h], rbx                                                 ; +0x6b, 0x1800b424b\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x6f, 0x1800b424f\nadd     rsp, 30h                                                       ; +0x74, 0x1800b4254\npop     rdi                                                            ; +0x78, 0x1800b4258\nretn                                                                   ; +0x79, 0x1800b4259", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b882c"], "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"}