{"type": "func", "start": 6442457088, "end": 6442457283, "name": "sub_180001800", "pseudocode": "// \n// sub_180001800 from 0x180001800 to 0x1800018c3 (195 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800eb418\n// > <???> @ 0x1801b70c0\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:21:15 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCNodeRGBA *__fastcall sub_180001800(cocos2d::CCObject **this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 408, *(this - 1), cocos2d::CCAtlasNode::~CCAtlasNode);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free_0(this - 1);\n    return (cocos2d::CCNodeRGBA *)(this - 1);\n  }\n  else\n  {\n    *this = (cocos2d::CCObject *)&cocos2d::CCAtlasNode::`vftable'{for `cocos2d::CCNode'};\n    *(this + 40) = (cocos2d::CCObject *)&cocos2d::CCAtlasNode::`vftable'{for `cocos2d::CCRGBAProtocol'};\n    *(this + 43) = (cocos2d::CCObject *)&cocos2d::CCAtlasNode::`vftable';\n    v5 = *(this + 47);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    cocos2d::CCNodeRGBA::~CCNodeRGBA((cocos2d::CCNodeRGBA *)this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return (cocos2d::CCNodeRGBA *)this;\n  }\n}", "assembly": "; \n; sub_180001800 from 0x180001800 to 0x1800018c3 (195 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800eb418\n; > <???> @ 0x1801b70c0\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:21:15 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180001800\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180001805\npush    rdi                                                            ; +0xa, 0x18000180a\nsub     rsp, 20h                                                       ; +0xb, 0x18000180b\nmov     esi, edx                                                       ; +0xf, 0x18000180f\nmov     rbx, rcx                                                       ; +0x11, 0x180001811\ntest    dl, 2                                                          ; +0x14, 0x180001814\njz      short loc_18000185D                                            ; +0x17, 0x180001817\nlea     r9, ??1CCAtlasNode@cocos2d@@UEAA@XZ; cocos2d::CCAtlasNode::~CCAtlasNode(void) ; +0x19, 0x180001819\nmov     r8, [rcx-8]                                                    ; +0x20, 0x180001820\nmov     edx, 198h                                                      ; +0x24, 0x180001824\ncall    sub_1800E49F8                                                  ; +0x29, 0x180001829\ntest    sil, 1                                                         ; +0x2e, 0x18000182e\njz      short loc_180001849                                            ; +0x32, 0x180001832\nimul    rdx, [rbx-8], 198h                                             ; +0x34, 0x180001834\nadd     rdx, 8                                                         ; +0x3c, 0x18000183c\nlea     rcx, [rbx-8]; Block                                            ; +0x40, 0x180001840\ncall    j_j_j_free_0                                                   ; +0x44, 0x180001844\nlea     rax, [rbx-8]                                                   ; +0x49, 0x180001849\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4d, 0x18000184d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x52, 0x180001852\nadd     rsp, 20h                                                       ; +0x57, 0x180001857\npop     rdi                                                            ; +0x5b, 0x18000185b\nretn                                                                   ; +0x5c, 0x18000185c\nlea     rax, ??_7CCAtlasNode@cocos2d@@6BCCNode@1@@; const cocos2d::CCAtlasNode::`vftable'{for `cocos2d::CCNode'} ; +0x5d, 0x18000185d\nmov     [rcx], rax                                                     ; +0x64, 0x180001864\nlea     rax, ??_7CCAtlasNode@cocos2d@@6BCCRGBAProtocol@1@@; const cocos2d::CCAtlasNode::`vftable'{for `cocos2d::CCRGBAProtocol'} ; +0x67, 0x180001867\nmov     [rcx+140h], rax                                                ; +0x6e, 0x18000186e\nlea     rax, ??_7CCAtlasNode@cocos2d@@6B@; const cocos2d::CCAtlasNode::`vftable' ; +0x75, 0x180001875\nmov     [rcx+158h], rax                                                ; +0x7c, 0x18000187c\nmov     rcx, [rcx+178h]; this                                          ; +0x83, 0x180001883\ntest    rcx, rcx                                                       ; +0x8a, 0x18000188a\njz      short loc_180001894                                            ; +0x8d, 0x18000188d\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x8f, 0x18000188f\nmov     rcx, rbx; this                                                 ; +0x94, 0x180001894\ncall    ??1CCNodeRGBA@cocos2d@@UEAA@XZ; cocos2d::CCNodeRGBA::~CCNodeRGBA(void) ; +0x97, 0x180001897\nnop                                                                    ; +0x9c, 0x18000189c\ntest    sil, 1                                                         ; +0x9d, 0x18000189d\njz      short loc_1800018B0                                            ; +0xa1, 0x1800018a1\nmov     edx, 198h                                                      ; +0xa3, 0x1800018a3\nmov     rcx, rbx; Block                                                ; +0xa8, 0x1800018a8\ncall    j_j_free_0                                                     ; +0xab, 0x1800018ab\nmov     rax, rbx                                                       ; +0xb0, 0x1800018b0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb3, 0x1800018b3\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb8, 0x1800018b8\nadd     rsp, 20h                                                       ; +0xbd, 0x1800018bd\npop     rdi                                                            ; +0xc1, 0x1800018c1\nretn                                                                   ; +0xc2, 0x1800018c2", "xrefs": ["<???> @ 0x1800eb418", "<???> @ 0x1801b70c0"], "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"}