{"type": "func", "start": 6443150672, "end": 6443150859, "name": "sub_1800AAD50", "pseudocode": "// \n// sub_1800AAD50 from 0x1800aad50 to 0x1800aae0b (187 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18010b620\n// > <???> @ 0x1801c20b8\n// > <???> @ 0x1801c20c4\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:22:17 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall sub_1800AAD50(cocos2d::CCObject **this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 72, *(this - 1), cocos2d::CCTextureCache::~CCTextureCache);\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 *)&cocos2d::CCTextureCache::`vftable';\n    byte_1801B3B04 = 1;\n    pthread_cond_signal(&unk_1801B3AE8);\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_1800AAD50 from 0x1800aad50 to 0x1800aae0b (187 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18010b620\n; > <???> @ 0x1801c20b8\n; > <???> @ 0x1801c20c4\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:22:17 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800aad50\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800aad55\npush    rdi                                                            ; +0xa, 0x1800aad5a\nsub     rsp, 20h                                                       ; +0xb, 0x1800aad5b\nmov     esi, edx                                                       ; +0xf, 0x1800aad5f\nmov     rbx, rcx                                                       ; +0x11, 0x1800aad61\ntest    dl, 2                                                          ; +0x14, 0x1800aad64\njz      short loc_1800AADB1                                            ; +0x17, 0x1800aad67\nlea     r9, ??1CCTextureCache@cocos2d@@UEAA@XZ; cocos2d::CCTextureCache::~CCTextureCache(void) ; +0x19, 0x1800aad69\nmov     r8, [rcx-8]                                                    ; +0x20, 0x1800aad70\nmov     edx, 48h ; 'H'                                                 ; +0x24, 0x1800aad74\ncall    sub_1800E49F8                                                  ; +0x29, 0x1800aad79\ntest    sil, 1                                                         ; +0x2e, 0x1800aad7e\njz      short loc_1800AAD9D                                            ; +0x32, 0x1800aad82\nmov     rcx, [rbx-8]                                                   ; +0x34, 0x1800aad84\nlea     rdx, [rcx+rcx*8]                                               ; +0x38, 0x1800aad88\nlea     rdx, ds:8[rdx*8]                                               ; +0x3c, 0x1800aad8c\nlea     rcx, [rbx-8]; Block                                            ; +0x44, 0x1800aad94\ncall    j_j_j_free_0                                                   ; +0x48, 0x1800aad98\nlea     rax, [rbx-8]                                                   ; +0x4d, 0x1800aad9d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x1800aada1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x56, 0x1800aada6\nadd     rsp, 20h                                                       ; +0x5b, 0x1800aadab\npop     rdi                                                            ; +0x5f, 0x1800aadaf\nretn                                                                   ; +0x60, 0x1800aadb0\nlea     rax, ??_7CCTextureCache@cocos2d@@6B@; const cocos2d::CCTextureCache::`vftable' ; +0x61, 0x1800aadb1\nmov     [rcx], rax                                                     ; +0x68, 0x1800aadb8\nmov     cs:byte_1801B3B04, 1                                           ; +0x6b, 0x1800aadbb\nlea     rcx, unk_1801B3AE8                                             ; +0x72, 0x1800aadc2\ncall    pthread_cond_signal                                            ; +0x79, 0x1800aadc9\nmov     rcx, [rbx+38h]; this                                           ; +0x7e, 0x1800aadce\ntest    rcx, rcx                                                       ; +0x82, 0x1800aadd2\njz      short loc_1800AADDC                                            ; +0x85, 0x1800aadd5\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x87, 0x1800aadd7\nmov     rcx, rbx; this                                                 ; +0x8c, 0x1800aaddc\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x8f, 0x1800aaddf\nnop                                                                    ; +0x94, 0x1800aade4\ntest    sil, 1                                                         ; +0x95, 0x1800aade5\njz      short loc_1800AADF8                                            ; +0x99, 0x1800aade9\nmov     edx, 48h ; 'H'                                                 ; +0x9b, 0x1800aadeb\nmov     rcx, rbx; Block                                                ; +0xa0, 0x1800aadf0\ncall    j_j_free_0                                                     ; +0xa3, 0x1800aadf3\nmov     rax, rbx                                                       ; +0xa8, 0x1800aadf8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xab, 0x1800aadfb\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb0, 0x1800aae00\nadd     rsp, 20h                                                       ; +0xb5, 0x1800aae05\npop     rdi                                                            ; +0xb9, 0x1800aae09\nretn                                                                   ; +0xba, 0x1800aae0a", "xrefs": ["<???> @ 0x18010b620", "<???> @ 0x1801c20b8", "<???> @ 0x1801c20c4"], "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"}