{"type": "func", "start": 6443033792, "end": 6443033987, "name": "sub_18008E4C0", "pseudocode": "// \n// sub_18008E4C0 from 0x18008e4c0 to 0x18008e583 (195 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180109e50\n// > <???> @ 0x1801bfdb4\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:07 +0000\n// \n\ncocos2d::CCNodeRGBA *__fastcall sub_18008E4C0(cocos2d::CCObject **this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 600, *(this - 1), cocos2d::CCSprite::~CCSprite);\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::CCSprite::`vftable'{for `cocos2d::CCNode'};\n    *(this + 40) = (cocos2d::CCObject *)&cocos2d::CCSprite::`vftable'{for `cocos2d::CCRGBAProtocol'};\n    *(this + 43) = (cocos2d::CCObject *)&cocos2d::CCSprite::`vftable';\n    v5 = *(this + 52);\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_18008E4C0 from 0x18008e4c0 to 0x18008e583 (195 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180109e50\n; > <???> @ 0x1801bfdb4\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:07 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18008e4c0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18008e4c5\npush    rdi                                                            ; +0xa, 0x18008e4ca\nsub     rsp, 20h                                                       ; +0xb, 0x18008e4cb\nmov     esi, edx                                                       ; +0xf, 0x18008e4cf\nmov     rbx, rcx                                                       ; +0x11, 0x18008e4d1\ntest    dl, 2                                                          ; +0x14, 0x18008e4d4\njz      short loc_18008E51D                                            ; +0x17, 0x18008e4d7\nlea     r9, ??1CCSprite@cocos2d@@UEAA@XZ; cocos2d::CCSprite::~CCSprite(void) ; +0x19, 0x18008e4d9\nmov     r8, [rcx-8]                                                    ; +0x20, 0x18008e4e0\nmov     edx, 258h                                                      ; +0x24, 0x18008e4e4\ncall    sub_1800E49F8                                                  ; +0x29, 0x18008e4e9\ntest    sil, 1                                                         ; +0x2e, 0x18008e4ee\njz      short loc_18008E509                                            ; +0x32, 0x18008e4f2\nimul    rdx, [rbx-8], 258h                                             ; +0x34, 0x18008e4f4\nadd     rdx, 8                                                         ; +0x3c, 0x18008e4fc\nlea     rcx, [rbx-8]; Block                                            ; +0x40, 0x18008e500\ncall    j_j_j_free_0                                                   ; +0x44, 0x18008e504\nlea     rax, [rbx-8]                                                   ; +0x49, 0x18008e509\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4d, 0x18008e50d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x52, 0x18008e512\nadd     rsp, 20h                                                       ; +0x57, 0x18008e517\npop     rdi                                                            ; +0x5b, 0x18008e51b\nretn                                                                   ; +0x5c, 0x18008e51c\nlea     rax, ??_7CCSprite@cocos2d@@6BCCNode@1@@; const cocos2d::CCSprite::`vftable'{for `cocos2d::CCNode'} ; +0x5d, 0x18008e51d\nmov     [rcx], rax                                                     ; +0x64, 0x18008e524\nlea     rax, ??_7CCSprite@cocos2d@@6BCCRGBAProtocol@1@@; const cocos2d::CCSprite::`vftable'{for `cocos2d::CCRGBAProtocol'} ; +0x67, 0x18008e527\nmov     [rcx+140h], rax                                                ; +0x6e, 0x18008e52e\nlea     rax, ??_7CCSprite@cocos2d@@6B@; const cocos2d::CCSprite::`vftable' ; +0x75, 0x18008e535\nmov     [rcx+158h], rax                                                ; +0x7c, 0x18008e53c\nmov     rcx, [rcx+1A0h]; this                                          ; +0x83, 0x18008e543\ntest    rcx, rcx                                                       ; +0x8a, 0x18008e54a\njz      short loc_18008E554                                            ; +0x8d, 0x18008e54d\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x8f, 0x18008e54f\nmov     rcx, rbx; this                                                 ; +0x94, 0x18008e554\ncall    ??1CCNodeRGBA@cocos2d@@UEAA@XZ; cocos2d::CCNodeRGBA::~CCNodeRGBA(void) ; +0x97, 0x18008e557\nnop                                                                    ; +0x9c, 0x18008e55c\ntest    sil, 1                                                         ; +0x9d, 0x18008e55d\njz      short loc_18008E570                                            ; +0xa1, 0x18008e561\nmov     edx, 258h                                                      ; +0xa3, 0x18008e563\nmov     rcx, rbx; Block                                                ; +0xa8, 0x18008e568\ncall    j_j_free_0                                                     ; +0xab, 0x18008e56b\nmov     rax, rbx                                                       ; +0xb0, 0x18008e570\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb3, 0x18008e573\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb8, 0x18008e578\nadd     rsp, 20h                                                       ; +0xbd, 0x18008e57d\npop     rdi                                                            ; +0xc1, 0x18008e581\nretn                                                                   ; +0xc2, 0x18008e582", "xrefs": ["<???> @ 0x180109e50", "<???> @ 0x1801bfdb4"], "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"}