{"type": "func", "start": 6443182048, "end": 6443182249, "name": "sub_1800B27E0", "pseudocode": "// \n// sub_1800B27E0 from 0x1800b27e0 to 0x1800b28a9 (201 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18010c8e0\n// > <???> @ 0x1801c2730\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:20 +0000\n// \n\ncocos2d::CCObject *__fastcall sub_1800B27E0(cocos2d::CCObject **this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n  void *v6; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 136, *(this - 1), cocos2d::CCTMXLayerInfo::~CCTMXLayerInfo);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free_0(this - 1);\n    return (cocos2d::CCObject *)(this - 1);\n  }\n  else\n  {\n    *this = (cocos2d::CCObject *)&cocos2d::CCTMXLayerInfo::`vftable';\n    v5 = *(this + 7);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    if ( *((_BYTE *)this + 114) )\n    {\n      v6 = *(this + 13);\n      if ( v6 )\n      {\n        j_j_free_0(v6);\n        *(this + 13) = nullptr;\n      }\n    }\n    sub_180005C70((__int64)(this + 8));\n    cocos2d::CCObject::~CCObject((cocos2d::CCObject *)this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return (cocos2d::CCObject *)this;\n  }\n}", "assembly": "; \n; sub_1800B27E0 from 0x1800b27e0 to 0x1800b28a9 (201 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18010c8e0\n; > <???> @ 0x1801c2730\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:20 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800b27e0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800b27e5\npush    rdi                                                            ; +0xa, 0x1800b27ea\nsub     rsp, 20h                                                       ; +0xb, 0x1800b27eb\nmov     esi, edx                                                       ; +0xf, 0x1800b27ef\nmov     rbx, rcx                                                       ; +0x11, 0x1800b27f1\ntest    dl, 2                                                          ; +0x14, 0x1800b27f4\njz      short loc_1800B283D                                            ; +0x17, 0x1800b27f7\nlea     r9, ??1CCTMXLayerInfo@cocos2d@@UEAA@XZ; cocos2d::CCTMXLayerInfo::~CCTMXLayerInfo(void) ; +0x19, 0x1800b27f9\nmov     r8, [rcx-8]                                                    ; +0x20, 0x1800b2800\nmov     edx, 88h                                                       ; +0x24, 0x1800b2804\ncall    sub_1800E49F8                                                  ; +0x29, 0x1800b2809\ntest    sil, 1                                                         ; +0x2e, 0x1800b280e\njz      short loc_1800B2829                                            ; +0x32, 0x1800b2812\nimul    rdx, [rbx-8], 88h                                              ; +0x34, 0x1800b2814\nadd     rdx, 8                                                         ; +0x3c, 0x1800b281c\nlea     rcx, [rbx-8]; Block                                            ; +0x40, 0x1800b2820\ncall    j_j_j_free_0                                                   ; +0x44, 0x1800b2824\nlea     rax, [rbx-8]                                                   ; +0x49, 0x1800b2829\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4d, 0x1800b282d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x52, 0x1800b2832\nadd     rsp, 20h                                                       ; +0x57, 0x1800b2837\npop     rdi                                                            ; +0x5b, 0x1800b283b\nretn                                                                   ; +0x5c, 0x1800b283c\nlea     rax, ??_7CCTMXLayerInfo@cocos2d@@6B@; const cocos2d::CCTMXLayerInfo::`vftable' ; +0x5d, 0x1800b283d\nmov     [rcx], rax                                                     ; +0x64, 0x1800b2844\nmov     rcx, [rcx+38h]; this                                           ; +0x67, 0x1800b2847\ntest    rcx, rcx                                                       ; +0x6b, 0x1800b284b\njz      short loc_1800B2855                                            ; +0x6e, 0x1800b284e\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x70, 0x1800b2850\ncmp     byte ptr [rbx+72h], 0                                          ; +0x75, 0x1800b2855\njz      short loc_1800B2871                                            ; +0x79, 0x1800b2859\nmov     rcx, [rbx+68h]; Block                                          ; +0x7b, 0x1800b285b\ntest    rcx, rcx                                                       ; +0x7f, 0x1800b285f\njz      short loc_1800B2871                                            ; +0x82, 0x1800b2862\ncall    j_j_free_0                                                     ; +0x84, 0x1800b2864\nmov     qword ptr [rbx+68h], 0                                         ; +0x89, 0x1800b2869\nlea     rcx, [rbx+40h]                                                 ; +0x91, 0x1800b2871\ncall    sub_180005C70                                                  ; +0x95, 0x1800b2875\nmov     rcx, rbx; this                                                 ; +0x9a, 0x1800b287a\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x9d, 0x1800b287d\nnop                                                                    ; +0xa2, 0x1800b2882\ntest    sil, 1                                                         ; +0xa3, 0x1800b2883\njz      short loc_1800B2896                                            ; +0xa7, 0x1800b2887\nmov     edx, 88h                                                       ; +0xa9, 0x1800b2889\nmov     rcx, rbx; Block                                                ; +0xae, 0x1800b288e\ncall    j_j_free_0                                                     ; +0xb1, 0x1800b2891\nmov     rax, rbx                                                       ; +0xb6, 0x1800b2896\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb9, 0x1800b2899\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xbe, 0x1800b289e\nadd     rsp, 20h                                                       ; +0xc3, 0x1800b28a3\npop     rdi                                                            ; +0xc7, 0x1800b28a7\nretn                                                                   ; +0xc8, 0x1800b28a8", "xrefs": ["<???> @ 0x18010c8e0", "<???> @ 0x1801c2730"], "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"}