{"type": "func", "start": 6443203920, "end": 6443204116, "name": "sub_1800B7D50", "pseudocode": "// \n// sub_1800B7D50 from 0x1800b7d50 to 0x1800b7e14 (196 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18010cd40\n// > <???> @ 0x1801c2afc\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\ncocos2d::CCObject *__fastcall sub_1800B7D50(cocos2d::CCObject *this, char a2)\n{\n  __int64 v5; // rcx\n  cocos2d::CCObject *v6; // rax\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 64, *((_QWORD *)this - 1), cocos2d::CCKeypadHandler::~CCKeypadHandler);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free_0((char *)this - 8);\n    return (cocos2d::CCObject *)((char *)this - 8);\n  }\n  else\n  {\n    *(_QWORD *)this = &cocos2d::CCKeypadHandler::`vftable';\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    cocos2d::CCObject::~CCObject(this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_1800B7D50 from 0x1800b7d50 to 0x1800b7e14 (196 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18010cd40\n; > <???> @ 0x1801c2afc\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, 0x1800b7d50\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800b7d55\npush    rdi                                                            ; +0xa, 0x1800b7d5a\nsub     rsp, 30h                                                       ; +0xb, 0x1800b7d5b\nmov     esi, edx                                                       ; +0xf, 0x1800b7d5f\nmov     rbx, rcx                                                       ; +0x11, 0x1800b7d61\ntest    dl, 2                                                          ; +0x14, 0x1800b7d64\njz      short loc_1800B7DAD                                            ; +0x17, 0x1800b7d67\nlea     r9, ??1CCKeypadHandler@cocos2d@@UEAA@XZ; cocos2d::CCKeypadHandler::~CCKeypadHandler(void) ; +0x19, 0x1800b7d69\nmov     r8, [rcx-8]                                                    ; +0x20, 0x1800b7d70\nmov     edx, 40h ; '@'                                                 ; +0x24, 0x1800b7d74\ncall    sub_1800E49F8                                                  ; +0x29, 0x1800b7d79\ntest    sil, 1                                                         ; +0x2e, 0x1800b7d7e\njz      short loc_1800B7D99                                            ; +0x32, 0x1800b7d82\nmov     rdx, [rbx-8]                                                   ; +0x34, 0x1800b7d84\nshl     rdx, 6                                                         ; +0x38, 0x1800b7d88\nadd     rdx, 8                                                         ; +0x3c, 0x1800b7d8c\nlea     rcx, [rbx-8]; Block                                            ; +0x40, 0x1800b7d90\ncall    j_j_j_free_0                                                   ; +0x44, 0x1800b7d94\nlea     rax, [rbx-8]                                                   ; +0x49, 0x1800b7d99\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x4d, 0x1800b7d9d\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x52, 0x1800b7da2\nadd     rsp, 30h                                                       ; +0x57, 0x1800b7da7\npop     rdi                                                            ; +0x5b, 0x1800b7dab\nretn                                                                   ; +0x5c, 0x1800b7dac\nlea     rax, ??_7CCKeypadHandler@cocos2d@@6B@; const cocos2d::CCKeypadHandler::`vftable' ; +0x5d, 0x1800b7dad\nmov     [rcx], rax                                                     ; +0x64, 0x1800b7db4\nmov     rcx, [rcx+38h]                                                 ; +0x67, 0x1800b7db7\ntest    rcx, rcx                                                       ; +0x6b, 0x1800b7dbb\njz      short loc_1800B7DE5                                            ; +0x6e, 0x1800b7dbe\nmov     [rsp+38h+var_18], 0                                            ; +0x70, 0x1800b7dc0\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x78, 0x1800b7dc8\nlea     r8, ??_R0?AVCCKeypadDelegate@cocos2d@@@8; cocos2d::CCKeypadDelegate `RTTI Type Descriptor' ; +0x7f, 0x1800b7dcf\nxor     edx, edx                                                       ; +0x86, 0x1800b7dd6\ncall    __RTDynamicCast                                                ; +0x88, 0x1800b7dd8\nmov     rcx, rax; this                                                 ; +0x8d, 0x1800b7ddd\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x90, 0x1800b7de0\nmov     rcx, rbx; this                                                 ; +0x95, 0x1800b7de5\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x98, 0x1800b7de8\nnop                                                                    ; +0x9d, 0x1800b7ded\ntest    sil, 1                                                         ; +0x9e, 0x1800b7dee\njz      short loc_1800B7E01                                            ; +0xa2, 0x1800b7df2\nmov     edx, 40h ; '@'                                                 ; +0xa4, 0x1800b7df4\nmov     rcx, rbx; Block                                                ; +0xa9, 0x1800b7df9\ncall    j_j_free_0                                                     ; +0xac, 0x1800b7dfc\nmov     rax, rbx                                                       ; +0xb1, 0x1800b7e01\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xb4, 0x1800b7e04\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xb9, 0x1800b7e09\nadd     rsp, 30h                                                       ; +0xbe, 0x1800b7e0e\npop     rdi                                                            ; +0xc2, 0x1800b7e12\nretn                                                                   ; +0xc3, 0x1800b7e13", "xrefs": ["<???> @ 0x18010cd40", "<???> @ 0x1801c2afc"], "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"}