{"type": "func", "start": 6442512208, "end": 6442512404, "name": "sub_18000EF50", "pseudocode": "// \n// sub_18000EF50 from 0x18000ef50 to 0x18000f014 (196 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800e6638\n// > <???> @ 0x1801adfcc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall sub_18000EF50(cocos2d::CCObject *this, char a2)\n{\n  void *v5; // rdi\n\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(this, 0x40u, *((_QWORD *)this - 1), (void (*)(void *))cocos2d::CCSet::~CCSet);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free_0((char *)this - 8);\n    return (cocos2d::CCObject *)((char *)this - 8);\n  }\n  else\n  {\n    this->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCSet::`vftable';\n    cocos2d::CCSet::removeAllObjects((cocos2d::CCSet *)this);\n    v5 = *((void **)this + 7);\n    if ( v5 )\n    {\n      sub_18000EBC0(*((void ***)this + 7), *((_QWORD *)this + 7));\n      j_j_free_0(v5);\n      *((_QWORD *)this + 7) = 0;\n    }\n    cocos2d::CCObject::~CCObject(this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_18000EF50 from 0x18000ef50 to 0x18000f014 (196 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800e6638\n; > <???> @ 0x1801adfcc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18000ef50\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18000ef55\npush    rdi                                                            ; +0xa, 0x18000ef5a\nsub     rsp, 20h                                                       ; +0xb, 0x18000ef5b\nmov     esi, edx                                                       ; +0xf, 0x18000ef5f\nmov     rbx, rcx                                                       ; +0x11, 0x18000ef61\ntest    dl, 2                                                          ; +0x14, 0x18000ef64\njz      short loc_18000EFAD                                            ; +0x17, 0x18000ef67\nlea     r9, ??1CCSet@cocos2d@@UEAA@XZ; void (*)(void *)                ; +0x19, 0x18000ef69\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x20, 0x18000ef70\nmov     edx, 40h ; '@'; unsigned __int64                               ; +0x24, 0x18000ef74\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x29, 0x18000ef79\ntest    sil, 1                                                         ; +0x2e, 0x18000ef7e\njz      short loc_18000EF99                                            ; +0x32, 0x18000ef82\nmov     rdx, [rbx-8]                                                   ; +0x34, 0x18000ef84\nshl     rdx, 6                                                         ; +0x38, 0x18000ef88\nadd     rdx, 8                                                         ; +0x3c, 0x18000ef8c\nlea     rcx, [rbx-8]; Block                                            ; +0x40, 0x18000ef90\ncall    j_j_j_free_0                                                   ; +0x44, 0x18000ef94\nlea     rax, [rbx-8]                                                   ; +0x49, 0x18000ef99\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4d, 0x18000ef9d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x52, 0x18000efa2\nadd     rsp, 20h                                                       ; +0x57, 0x18000efa7\npop     rdi                                                            ; +0x5b, 0x18000efab\nretn                                                                   ; +0x5c, 0x18000efac\nlea     rax, ??_7CCSet@cocos2d@@6B@; const cocos2d::CCSet::`vftable'   ; +0x5d, 0x18000efad\nmov     [rcx], rax                                                     ; +0x64, 0x18000efb4\ncall    ?removeAllObjects@CCSet@cocos2d@@QEAAXXZ; cocos2d::CCSet::removeAllObjects(void) ; +0x67, 0x18000efb7\nmov     rdi, [rbx+38h]                                                 ; +0x6c, 0x18000efbc\ntest    rdi, rdi                                                       ; +0x70, 0x18000efc0\njz      short loc_18000EFE5                                            ; +0x73, 0x18000efc3\nmov     rdx, rdi                                                       ; +0x75, 0x18000efc5\nmov     rcx, rdi                                                       ; +0x78, 0x18000efc8\ncall    sub_18000EBC0                                                  ; +0x7b, 0x18000efcb\nmov     edx, 10h                                                       ; +0x80, 0x18000efd0\nmov     rcx, rdi; Block                                                ; +0x85, 0x18000efd5\ncall    j_j_free_0                                                     ; +0x88, 0x18000efd8\nmov     qword ptr [rbx+38h], 0                                         ; +0x8d, 0x18000efdd\nmov     rcx, rbx; this                                                 ; +0x95, 0x18000efe5\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x98, 0x18000efe8\nnop                                                                    ; +0x9d, 0x18000efed\ntest    sil, 1                                                         ; +0x9e, 0x18000efee\njz      short loc_18000F001                                            ; +0xa2, 0x18000eff2\nmov     edx, 40h ; '@'                                                 ; +0xa4, 0x18000eff4\nmov     rcx, rbx; Block                                                ; +0xa9, 0x18000eff9\ncall    j_j_free_0                                                     ; +0xac, 0x18000effc\nmov     rax, rbx                                                       ; +0xb1, 0x18000f001\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb4, 0x18000f004\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb9, 0x18000f009\nadd     rsp, 20h                                                       ; +0xbe, 0x18000f00e\npop     rdi                                                            ; +0xc2, 0x18000f012\nretn                                                                   ; +0xc3, 0x18000f013", "xrefs": ["<???> @ 0x1800e6638", "<???> @ 0x1801adfcc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}