{"type": "func", "start": 6443125984, "end": 6443126157, "name": "sub_1800A4CE0", "pseudocode": "// \n// sub_1800A4CE0 from 0x1800a4ce0 to 0x1800a4d8d (173 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180104d08\n// > <???> @ 0x1801b7ba8\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_1800A4CE0(cocos2d::CCObject *this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n  cocos2d *v6; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      this,\n      0x68u,\n      *((_QWORD *)this - 1),\n      (void (*)(void *))cocos2d::CCTexture2D::~CCTexture2D);\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::CCTexture2D::`vftable';\n    v5 = *((cocos2d::CCObject **)this + 12);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    v6 = (cocos2d *)*((unsigned int *)this + 18);\n    if ( (_DWORD)v6 )\n      cocos2d::ccGLDeleteTexture(v6);\n    cocos2d::CCObject::~CCObject(this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_1800A4CE0 from 0x1800a4ce0 to 0x1800a4d8d (173 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180104d08\n; > <???> @ 0x1801b7ba8\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, 0x1800a4ce0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800a4ce5\npush    rdi                                                            ; +0xa, 0x1800a4cea\nsub     rsp, 20h                                                       ; +0xb, 0x1800a4ceb\nmov     esi, edx                                                       ; +0xf, 0x1800a4cef\nmov     rbx, rcx                                                       ; +0x11, 0x1800a4cf1\ntest    dl, 2                                                          ; +0x14, 0x1800a4cf4\njz      short loc_1800A4D3A                                            ; +0x17, 0x1800a4cf7\nlea     r9, ??1CCTexture2D@cocos2d@@UEAA@XZ; void (*)(void *)          ; +0x19, 0x1800a4cf9\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x20, 0x1800a4d00\nmov     edx, 68h ; 'h'; unsigned __int64                               ; +0x24, 0x1800a4d04\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x29, 0x1800a4d09\ntest    sil, 1                                                         ; +0x2e, 0x1800a4d0e\njz      short loc_1800A4D26                                            ; +0x32, 0x1800a4d12\nimul    rdx, [rbx-8], 68h ; 'h'                                        ; +0x34, 0x1800a4d14\nadd     rdx, 8                                                         ; +0x39, 0x1800a4d19\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x1800a4d1d\ncall    j_j_j_free_0                                                   ; +0x41, 0x1800a4d21\nlea     rax, [rbx-8]                                                   ; +0x46, 0x1800a4d26\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x1800a4d2a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x1800a4d2f\nadd     rsp, 20h                                                       ; +0x54, 0x1800a4d34\npop     rdi                                                            ; +0x58, 0x1800a4d38\nretn                                                                   ; +0x59, 0x1800a4d39\nlea     rax, ??_7CCTexture2D@cocos2d@@6B@; const cocos2d::CCTexture2D::`vftable' ; +0x5a, 0x1800a4d3a\nmov     [rcx], rax                                                     ; +0x61, 0x1800a4d41\nmov     rcx, [rcx+60h]; this                                           ; +0x64, 0x1800a4d44\ntest    rcx, rcx                                                       ; +0x68, 0x1800a4d48\njz      short loc_1800A4D52                                            ; +0x6b, 0x1800a4d4b\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x6d, 0x1800a4d4d\nmov     ecx, [rbx+48h]; this                                           ; +0x72, 0x1800a4d52\ntest    ecx, ecx                                                       ; +0x75, 0x1800a4d55\njz      short loc_1800A4D5E                                            ; +0x77, 0x1800a4d57\ncall    ?ccGLDeleteTexture@cocos2d@@YAXI@Z; cocos2d::ccGLDeleteTexture(uint) ; +0x79, 0x1800a4d59\nmov     rcx, rbx; this                                                 ; +0x7e, 0x1800a4d5e\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x81, 0x1800a4d61\nnop                                                                    ; +0x86, 0x1800a4d66\ntest    sil, 1                                                         ; +0x87, 0x1800a4d67\njz      short loc_1800A4D7A                                            ; +0x8b, 0x1800a4d6b\nmov     edx, 68h ; 'h'                                                 ; +0x8d, 0x1800a4d6d\nmov     rcx, rbx; Block                                                ; +0x92, 0x1800a4d72\ncall    j_j_free_0                                                     ; +0x95, 0x1800a4d75\nmov     rax, rbx                                                       ; +0x9a, 0x1800a4d7a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9d, 0x1800a4d7d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa2, 0x1800a4d82\nadd     rsp, 20h                                                       ; +0xa7, 0x1800a4d87\npop     rdi                                                            ; +0xab, 0x1800a4d8b\nretn                                                                   ; +0xac, 0x1800a4d8c", "xrefs": ["<???> @ 0x180104d08", "<???> @ 0x1801b7ba8"], "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"}