{"type": "func", "start": 6443204688, "end": 6443204877, "name": "sub_1800B8050", "pseudocode": "// \n// sub_1800B8050 from 0x1800b8050 to 0x1800b810d (189 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18010cd98\n// > <???> @ 0x1801c2b44\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_1800B8050(cocos2d::CCObject *this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n  void **v6; // rcx\n  void **v7; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 88, *((_QWORD *)this - 1), cocos2d::CCKeypadDispatcher::~CCKeypadDispatcher);\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::CCKeypadDispatcher::`vftable';\n    v5 = *((cocos2d::CCObject **)this + 7);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    v6 = *((void ***)this + 9);\n    if ( v6 )\n      sub_1800A1E70(v6);\n    v7 = *((void ***)this + 10);\n    if ( v7 )\n      sub_1800A1E70(v7);\n    cocos2d::CCObject::~CCObject(this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_1800B8050 from 0x1800b8050 to 0x1800b810d (189 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18010cd98\n; > <???> @ 0x1801c2b44\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, 0x1800b8050\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800b8055\npush    rdi                                                            ; +0xa, 0x1800b805a\nsub     rsp, 20h                                                       ; +0xb, 0x1800b805b\nmov     esi, edx                                                       ; +0xf, 0x1800b805f\nmov     rbx, rcx                                                       ; +0x11, 0x1800b8061\ntest    dl, 2                                                          ; +0x14, 0x1800b8064\njz      short loc_1800B80AA                                            ; +0x17, 0x1800b8067\nlea     r9, ??1CCKeypadDispatcher@cocos2d@@UEAA@XZ; cocos2d::CCKeypadDispatcher::~CCKeypadDispatcher(void) ; +0x19, 0x1800b8069\nmov     r8, [rcx-8]                                                    ; +0x20, 0x1800b8070\nmov     edx, 58h ; 'X'                                                 ; +0x24, 0x1800b8074\ncall    sub_1800E49F8                                                  ; +0x29, 0x1800b8079\ntest    sil, 1                                                         ; +0x2e, 0x1800b807e\njz      short loc_1800B8096                                            ; +0x32, 0x1800b8082\nimul    rdx, [rbx-8], 58h ; 'X'                                        ; +0x34, 0x1800b8084\nadd     rdx, 8                                                         ; +0x39, 0x1800b8089\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x1800b808d\ncall    j_j_j_free_0                                                   ; +0x41, 0x1800b8091\nlea     rax, [rbx-8]                                                   ; +0x46, 0x1800b8096\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x1800b809a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x1800b809f\nadd     rsp, 20h                                                       ; +0x54, 0x1800b80a4\npop     rdi                                                            ; +0x58, 0x1800b80a8\nretn                                                                   ; +0x59, 0x1800b80a9\nlea     rax, ??_7CCKeypadDispatcher@cocos2d@@6B@; const cocos2d::CCKeypadDispatcher::`vftable' ; +0x5a, 0x1800b80aa\nmov     [rcx], rax                                                     ; +0x61, 0x1800b80b1\nmov     rcx, [rcx+38h]; this                                           ; +0x64, 0x1800b80b4\ntest    rcx, rcx                                                       ; +0x68, 0x1800b80b8\njz      short loc_1800B80C2                                            ; +0x6b, 0x1800b80bb\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x6d, 0x1800b80bd\nmov     rcx, [rbx+48h]; Block                                          ; +0x72, 0x1800b80c2\ntest    rcx, rcx                                                       ; +0x76, 0x1800b80c6\njz      short loc_1800B80D0                                            ; +0x79, 0x1800b80c9\ncall    sub_1800A1E70                                                  ; +0x7b, 0x1800b80cb\nmov     rcx, [rbx+50h]; Block                                          ; +0x80, 0x1800b80d0\ntest    rcx, rcx                                                       ; +0x84, 0x1800b80d4\njz      short loc_1800B80DE                                            ; +0x87, 0x1800b80d7\ncall    sub_1800A1E70                                                  ; +0x89, 0x1800b80d9\nmov     rcx, rbx; this                                                 ; +0x8e, 0x1800b80de\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x91, 0x1800b80e1\nnop                                                                    ; +0x96, 0x1800b80e6\ntest    sil, 1                                                         ; +0x97, 0x1800b80e7\njz      short loc_1800B80FA                                            ; +0x9b, 0x1800b80eb\nmov     edx, 58h ; 'X'                                                 ; +0x9d, 0x1800b80ed\nmov     rcx, rbx; Block                                                ; +0xa2, 0x1800b80f2\ncall    j_j_free_0                                                     ; +0xa5, 0x1800b80f5\nmov     rax, rbx                                                       ; +0xaa, 0x1800b80fa\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xad, 0x1800b80fd\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb2, 0x1800b8102\nadd     rsp, 20h                                                       ; +0xb7, 0x1800b8107\npop     rdi                                                            ; +0xbb, 0x1800b810b\nretn                                                                   ; +0xbc, 0x1800b810c", "xrefs": ["<???> @ 0x18010cd98", "<???> @ 0x1801c2b44"], "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"}