{"type": "func", "start": 6442474960, "end": 6442475124, "name": "sub_180005DD0", "pseudocode": "// \n// sub_180005DD0 from 0x180005dd0 to 0x180005e74 (164 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800ec2c8\n// > <???> @ 0x1801b7870\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:18 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall sub_180005DD0(cocos2d::CCObject **this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 64, *(this - 1), CCContentManager::~CCContentManager);\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 *)&CCContentManager::`vftable';\n    v5 = *(this + 7);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\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_180005DD0 from 0x180005dd0 to 0x180005e74 (164 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800ec2c8\n; > <???> @ 0x1801b7870\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:18 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180005dd0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180005dd5\npush    rdi                                                            ; +0xa, 0x180005dda\nsub     rsp, 20h                                                       ; +0xb, 0x180005ddb\nmov     esi, edx                                                       ; +0xf, 0x180005ddf\nmov     rbx, rcx                                                       ; +0x11, 0x180005de1\ntest    dl, 2                                                          ; +0x14, 0x180005de4\njz      short loc_180005E2D                                            ; +0x17, 0x180005de7\nlea     r9, ??1CCContentManager@@UEAA@XZ; CCContentManager::~CCContentManager(void) ; +0x19, 0x180005de9\nmov     r8, [rcx-8]                                                    ; +0x20, 0x180005df0\nmov     edx, 40h ; '@'                                                 ; +0x24, 0x180005df4\ncall    sub_1800E49F8                                                  ; +0x29, 0x180005df9\ntest    sil, 1                                                         ; +0x2e, 0x180005dfe\njz      short loc_180005E19                                            ; +0x32, 0x180005e02\nmov     rdx, [rbx-8]                                                   ; +0x34, 0x180005e04\nshl     rdx, 6                                                         ; +0x38, 0x180005e08\nadd     rdx, 8                                                         ; +0x3c, 0x180005e0c\nlea     rcx, [rbx-8]; Block                                            ; +0x40, 0x180005e10\ncall    j_j_j_free_0                                                   ; +0x44, 0x180005e14\nlea     rax, [rbx-8]                                                   ; +0x49, 0x180005e19\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4d, 0x180005e1d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x52, 0x180005e22\nadd     rsp, 20h                                                       ; +0x57, 0x180005e27\npop     rdi                                                            ; +0x5b, 0x180005e2b\nretn                                                                   ; +0x5c, 0x180005e2c\nlea     rax, ??_7CCContentManager@@6B@; const CCContentManager::`vftable' ; +0x5d, 0x180005e2d\nmov     [rcx], rax                                                     ; +0x64, 0x180005e34\nmov     rcx, [rcx+38h]; this                                           ; +0x67, 0x180005e37\ntest    rcx, rcx                                                       ; +0x6b, 0x180005e3b\njz      short loc_180005E45                                            ; +0x6e, 0x180005e3e\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x70, 0x180005e40\nmov     rcx, rbx; this                                                 ; +0x75, 0x180005e45\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x78, 0x180005e48\nnop                                                                    ; +0x7d, 0x180005e4d\ntest    sil, 1                                                         ; +0x7e, 0x180005e4e\njz      short loc_180005E61                                            ; +0x82, 0x180005e52\nmov     edx, 40h ; '@'                                                 ; +0x84, 0x180005e54\nmov     rcx, rbx; Block                                                ; +0x89, 0x180005e59\ncall    j_j_free_0                                                     ; +0x8c, 0x180005e5c\nmov     rax, rbx                                                       ; +0x91, 0x180005e61\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x94, 0x180005e64\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x99, 0x180005e69\nadd     rsp, 20h                                                       ; +0x9e, 0x180005e6e\npop     rdi                                                            ; +0xa2, 0x180005e72\nretn                                                                   ; +0xa3, 0x180005e73", "xrefs": ["<???> @ 0x1800ec2c8", "<???> @ 0x1801b7870"], "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"}