{"type": "func", "start": 6443135136, "end": 6443135323, "name": "sub_1800A70A0", "pseudocode": "// \n// sub_1800A70A0 from 0x1800a70a0 to 0x1800a715b (187 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180104f50\n// > <???> @ 0x1801b7e00\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_1800A70A0(cocos2d::CCObject *this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      this,\n      0x48u,\n      *((_QWORD *)this - 1),\n      (void (*)(void *))cocos2d::CCTextureCache::~CCTextureCache);\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::CCTextureCache::`vftable';\n    byte_1801A9AA4 = 1;\n    pthread_cond_signal(&unk_1801A9A88);\n    v5 = *((cocos2d::CCObject **)this + 7);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    cocos2d::CCObject::~CCObject(this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_1800A70A0 from 0x1800a70a0 to 0x1800a715b (187 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180104f50\n; > <???> @ 0x1801b7e00\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, 0x1800a70a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800a70a5\npush    rdi                                                            ; +0xa, 0x1800a70aa\nsub     rsp, 20h                                                       ; +0xb, 0x1800a70ab\nmov     esi, edx                                                       ; +0xf, 0x1800a70af\nmov     rbx, rcx                                                       ; +0x11, 0x1800a70b1\ntest    dl, 2                                                          ; +0x14, 0x1800a70b4\njz      short loc_1800A7101                                            ; +0x17, 0x1800a70b7\nlea     r9, ??1CCTextureCache@cocos2d@@UEAA@XZ; void (*)(void *)       ; +0x19, 0x1800a70b9\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x20, 0x1800a70c0\nmov     edx, 48h ; 'H'; unsigned __int64                               ; +0x24, 0x1800a70c4\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x29, 0x1800a70c9\ntest    sil, 1                                                         ; +0x2e, 0x1800a70ce\njz      short loc_1800A70ED                                            ; +0x32, 0x1800a70d2\nmov     rcx, [rbx-8]                                                   ; +0x34, 0x1800a70d4\nlea     rdx, [rcx+rcx*8]                                               ; +0x38, 0x1800a70d8\nlea     rdx, ds:8[rdx*8]                                               ; +0x3c, 0x1800a70dc\nlea     rcx, [rbx-8]; Block                                            ; +0x44, 0x1800a70e4\ncall    j_j_j_free_0                                                   ; +0x48, 0x1800a70e8\nlea     rax, [rbx-8]                                                   ; +0x4d, 0x1800a70ed\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x1800a70f1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x56, 0x1800a70f6\nadd     rsp, 20h                                                       ; +0x5b, 0x1800a70fb\npop     rdi                                                            ; +0x5f, 0x1800a70ff\nretn                                                                   ; +0x60, 0x1800a7100\nlea     rax, ??_7CCTextureCache@cocos2d@@6B@; const cocos2d::CCTextureCache::`vftable' ; +0x61, 0x1800a7101\nmov     [rcx], rax                                                     ; +0x68, 0x1800a7108\nmov     cs:byte_1801A9AA4, 1                                           ; +0x6b, 0x1800a710b\nlea     rcx, unk_1801A9A88                                             ; +0x72, 0x1800a7112\ncall    pthread_cond_signal                                            ; +0x79, 0x1800a7119\nmov     rcx, [rbx+38h]; this                                           ; +0x7e, 0x1800a711e\ntest    rcx, rcx                                                       ; +0x82, 0x1800a7122\njz      short loc_1800A712C                                            ; +0x85, 0x1800a7125\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x87, 0x1800a7127\nmov     rcx, rbx; this                                                 ; +0x8c, 0x1800a712c\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x8f, 0x1800a712f\nnop                                                                    ; +0x94, 0x1800a7134\ntest    sil, 1                                                         ; +0x95, 0x1800a7135\njz      short loc_1800A7148                                            ; +0x99, 0x1800a7139\nmov     edx, 48h ; 'H'                                                 ; +0x9b, 0x1800a713b\nmov     rcx, rbx; Block                                                ; +0xa0, 0x1800a7140\ncall    j_j_free_0                                                     ; +0xa3, 0x1800a7143\nmov     rax, rbx                                                       ; +0xa8, 0x1800a7148\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xab, 0x1800a714b\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb0, 0x1800a7150\nadd     rsp, 20h                                                       ; +0xb5, 0x1800a7155\npop     rdi                                                            ; +0xb9, 0x1800a7159\nretn                                                                   ; +0xba, 0x1800a715a", "xrefs": ["<???> @ 0x180104f50", "<???> @ 0x1801b7e00"], "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"}