{"type": "func", "start": 6442512576, "end": 6442512772, "name": "sub_18000F0C0", "pseudocode": "// \n// sub_18000F0C0 from 0x18000f0c0 to 0x18000f184 (196 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800ec688\n// > <???> @ 0x1801b8068\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:21 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall sub_18000F0C0(void ***this, char a2)\n{\n  void *v5; // rdi\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 64, *(this - 1), cocos2d::CCSet::~CCSet);\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::CCSet::`vftable';\n    cocos2d::CCSet::removeAllObjects((cocos2d::CCSet *)this);\n    v5 = *(this + 7);\n    if ( v5 )\n    {\n      sub_18000ECC0(*(this + 7), (__int64)*(this + 7));\n      j_j_free_0(v5);\n      *(this + 7) = nullptr;\n    }\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_18000F0C0 from 0x18000f0c0 to 0x18000f184 (196 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800ec688\n; > <???> @ 0x1801b8068\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:21 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18000f0c0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18000f0c5\npush    rdi                                                            ; +0xa, 0x18000f0ca\nsub     rsp, 20h                                                       ; +0xb, 0x18000f0cb\nmov     esi, edx                                                       ; +0xf, 0x18000f0cf\nmov     rbx, rcx                                                       ; +0x11, 0x18000f0d1\ntest    dl, 2                                                          ; +0x14, 0x18000f0d4\njz      short loc_18000F11D                                            ; +0x17, 0x18000f0d7\nlea     r9, ??1CCSet@cocos2d@@UEAA@XZ; cocos2d::CCSet::~CCSet(void)    ; +0x19, 0x18000f0d9\nmov     r8, [rcx-8]                                                    ; +0x20, 0x18000f0e0\nmov     edx, 40h ; '@'                                                 ; +0x24, 0x18000f0e4\ncall    sub_1800E49F8                                                  ; +0x29, 0x18000f0e9\ntest    sil, 1                                                         ; +0x2e, 0x18000f0ee\njz      short loc_18000F109                                            ; +0x32, 0x18000f0f2\nmov     rdx, [rbx-8]                                                   ; +0x34, 0x18000f0f4\nshl     rdx, 6                                                         ; +0x38, 0x18000f0f8\nadd     rdx, 8                                                         ; +0x3c, 0x18000f0fc\nlea     rcx, [rbx-8]; Block                                            ; +0x40, 0x18000f100\ncall    j_j_j_free_0                                                   ; +0x44, 0x18000f104\nlea     rax, [rbx-8]                                                   ; +0x49, 0x18000f109\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4d, 0x18000f10d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x52, 0x18000f112\nadd     rsp, 20h                                                       ; +0x57, 0x18000f117\npop     rdi                                                            ; +0x5b, 0x18000f11b\nretn                                                                   ; +0x5c, 0x18000f11c\nlea     rax, ??_7CCSet@cocos2d@@6B@; const cocos2d::CCSet::`vftable'   ; +0x5d, 0x18000f11d\nmov     [rcx], rax                                                     ; +0x64, 0x18000f124\ncall    ?removeAllObjects@CCSet@cocos2d@@QEAAXXZ; cocos2d::CCSet::removeAllObjects(void) ; +0x67, 0x18000f127\nmov     rdi, [rbx+38h]                                                 ; +0x6c, 0x18000f12c\ntest    rdi, rdi                                                       ; +0x70, 0x18000f130\njz      short loc_18000F155                                            ; +0x73, 0x18000f133\nmov     rdx, rdi                                                       ; +0x75, 0x18000f135\nmov     rcx, rdi                                                       ; +0x78, 0x18000f138\ncall    sub_18000ECC0                                                  ; +0x7b, 0x18000f13b\nmov     edx, 10h                                                       ; +0x80, 0x18000f140\nmov     rcx, rdi; Block                                                ; +0x85, 0x18000f145\ncall    j_j_free_0                                                     ; +0x88, 0x18000f148\nmov     qword ptr [rbx+38h], 0                                         ; +0x8d, 0x18000f14d\nmov     rcx, rbx; this                                                 ; +0x95, 0x18000f155\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x98, 0x18000f158\nnop                                                                    ; +0x9d, 0x18000f15d\ntest    sil, 1                                                         ; +0x9e, 0x18000f15e\njz      short loc_18000F171                                            ; +0xa2, 0x18000f162\nmov     edx, 40h ; '@'                                                 ; +0xa4, 0x18000f164\nmov     rcx, rbx; Block                                                ; +0xa9, 0x18000f169\ncall    j_j_free_0                                                     ; +0xac, 0x18000f16c\nmov     rax, rbx                                                       ; +0xb1, 0x18000f171\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb4, 0x18000f174\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb9, 0x18000f179\nadd     rsp, 20h                                                       ; +0xbe, 0x18000f17e\npop     rdi                                                            ; +0xc2, 0x18000f182\nretn                                                                   ; +0xc3, 0x18000f183", "xrefs": ["<???> @ 0x1800ec688", "<???> @ 0x1801b8068"], "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"}