{"type": "func", "start": 6442481040, "end": 6442481217, "name": "sub_180007590", "pseudocode": "// \n// sub_180007590 from 0x180007590 to 0x180007641 (177 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800ec370\n// > <???> @ 0x1801b7a68\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\ncocos2d::CCObject *__fastcall sub_180007590(cocos2d::CCObject *this, char a2)\n{\n  __int64 v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 64, *((_QWORD *)this - 1), cocos2d::CCAutoreleasePool::~CCAutoreleasePool);\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    *(_QWORD *)this = &cocos2d::CCAutoreleasePool::`vftable';\n    v5 = *((_QWORD *)this + 7);\n    if ( v5 )\n    {\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);\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_180007590 from 0x180007590 to 0x180007641 (177 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800ec370\n; > <???> @ 0x1801b7a68\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, 0x180007590\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180007595\npush    rdi                                                            ; +0xa, 0x18000759a\nsub     rsp, 20h                                                       ; +0xb, 0x18000759b\nmov     esi, edx                                                       ; +0xf, 0x18000759f\nmov     rbx, rcx                                                       ; +0x11, 0x1800075a1\ntest    dl, 2                                                          ; +0x14, 0x1800075a4\njz      short loc_1800075ED                                            ; +0x17, 0x1800075a7\nlea     r9, ??1CCAutoreleasePool@cocos2d@@UEAA@XZ; cocos2d::CCAutoreleasePool::~CCAutoreleasePool(void) ; +0x19, 0x1800075a9\nmov     r8, [rcx-8]                                                    ; +0x20, 0x1800075b0\nmov     edx, 40h ; '@'                                                 ; +0x24, 0x1800075b4\ncall    sub_1800E49F8                                                  ; +0x29, 0x1800075b9\ntest    sil, 1                                                         ; +0x2e, 0x1800075be\njz      short loc_1800075D9                                            ; +0x32, 0x1800075c2\nmov     rdx, [rbx-8]                                                   ; +0x34, 0x1800075c4\nshl     rdx, 6                                                         ; +0x38, 0x1800075c8\nadd     rdx, 8                                                         ; +0x3c, 0x1800075cc\nlea     rcx, [rbx-8]; Block                                            ; +0x40, 0x1800075d0\ncall    j_j_j_free_0                                                   ; +0x44, 0x1800075d4\nlea     rax, [rbx-8]                                                   ; +0x49, 0x1800075d9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4d, 0x1800075dd\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x52, 0x1800075e2\nadd     rsp, 20h                                                       ; +0x57, 0x1800075e7\npop     rdi                                                            ; +0x5b, 0x1800075eb\nretn                                                                   ; +0x5c, 0x1800075ec\nlea     rax, ??_7CCAutoreleasePool@cocos2d@@6B@; const cocos2d::CCAutoreleasePool::`vftable' ; +0x5d, 0x1800075ed\nmov     [rcx], rax                                                     ; +0x64, 0x1800075f4\nmov     rcx, [rcx+38h]                                                 ; +0x67, 0x1800075f7\ntest    rcx, rcx                                                       ; +0x6b, 0x1800075fb\njz      short loc_180007613                                            ; +0x6e, 0x1800075fe\nmov     rax, [rcx]                                                     ; +0x70, 0x180007600\nmov     edx, 1                                                         ; +0x73, 0x180007603\ncall    qword ptr [rax+8]                                              ; +0x78, 0x180007608\nmov     qword ptr [rbx+38h], 0                                         ; +0x7b, 0x18000760b\nmov     rcx, rbx; this                                                 ; +0x83, 0x180007613\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x86, 0x180007616\ntest    sil, 1                                                         ; +0x8b, 0x18000761b\njz      short loc_18000762E                                            ; +0x8f, 0x18000761f\nmov     edx, 40h ; '@'                                                 ; +0x91, 0x180007621\nmov     rcx, rbx; Block                                                ; +0x96, 0x180007626\ncall    j_j_free_0                                                     ; +0x99, 0x180007629\nmov     rax, rbx                                                       ; +0x9e, 0x18000762e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa1, 0x180007631\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa6, 0x180007636\nadd     rsp, 20h                                                       ; +0xab, 0x18000763b\npop     rdi                                                            ; +0xaf, 0x18000763f\nretn                                                                   ; +0xb0, 0x180007640", "xrefs": ["<???> @ 0x1800ec370", "<???> @ 0x1801b7a68"], "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"}