{"type": "func", "start": 6443016880, "end": 6443017044, "name": "sub_18008A2B0", "pseudocode": "// \n// sub_18008A2B0 from 0x18008a2b0 to 0x18008a354 (164 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801036a0\n// > <???> @ 0x1801b5a60\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\ncocos2d::CCObject *__fastcall sub_18008A2B0(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      0x40u,\n      *((_QWORD *)this - 1),\n      (void (*)(void *))cocos2d::CCAnimationCache::~CCAnimationCache);\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::CCAnimationCache::`vftable';\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_18008A2B0 from 0x18008a2b0 to 0x18008a354 (164 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801036a0\n; > <???> @ 0x1801b5a60\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, 0x18008a2b0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18008a2b5\npush    rdi                                                            ; +0xa, 0x18008a2ba\nsub     rsp, 20h                                                       ; +0xb, 0x18008a2bb\nmov     esi, edx                                                       ; +0xf, 0x18008a2bf\nmov     rbx, rcx                                                       ; +0x11, 0x18008a2c1\ntest    dl, 2                                                          ; +0x14, 0x18008a2c4\njz      short loc_18008A30D                                            ; +0x17, 0x18008a2c7\nlea     r9, ??1CCAnimationCache@cocos2d@@UEAA@XZ; void (*)(void *)     ; +0x19, 0x18008a2c9\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x20, 0x18008a2d0\nmov     edx, 40h ; '@'; unsigned __int64                               ; +0x24, 0x18008a2d4\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x29, 0x18008a2d9\ntest    sil, 1                                                         ; +0x2e, 0x18008a2de\njz      short loc_18008A2F9                                            ; +0x32, 0x18008a2e2\nmov     rdx, [rbx-8]                                                   ; +0x34, 0x18008a2e4\nshl     rdx, 6                                                         ; +0x38, 0x18008a2e8\nadd     rdx, 8                                                         ; +0x3c, 0x18008a2ec\nlea     rcx, [rbx-8]; Block                                            ; +0x40, 0x18008a2f0\ncall    j_j_j_free_0                                                   ; +0x44, 0x18008a2f4\nlea     rax, [rbx-8]                                                   ; +0x49, 0x18008a2f9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4d, 0x18008a2fd\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x52, 0x18008a302\nadd     rsp, 20h                                                       ; +0x57, 0x18008a307\npop     rdi                                                            ; +0x5b, 0x18008a30b\nretn                                                                   ; +0x5c, 0x18008a30c\nlea     rax, ??_7CCAnimationCache@cocos2d@@6B@; const cocos2d::CCAnimationCache::`vftable' ; +0x5d, 0x18008a30d\nmov     [rcx], rax                                                     ; +0x64, 0x18008a314\nmov     rcx, [rcx+38h]; this                                           ; +0x67, 0x18008a317\ntest    rcx, rcx                                                       ; +0x6b, 0x18008a31b\njz      short loc_18008A325                                            ; +0x6e, 0x18008a31e\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x70, 0x18008a320\nmov     rcx, rbx; this                                                 ; +0x75, 0x18008a325\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x78, 0x18008a328\nnop                                                                    ; +0x7d, 0x18008a32d\ntest    sil, 1                                                         ; +0x7e, 0x18008a32e\njz      short loc_18008A341                                            ; +0x82, 0x18008a332\nmov     edx, 40h ; '@'                                                 ; +0x84, 0x18008a334\nmov     rcx, rbx; Block                                                ; +0x89, 0x18008a339\ncall    j_j_free_0                                                     ; +0x8c, 0x18008a33c\nmov     rax, rbx                                                       ; +0x91, 0x18008a341\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x94, 0x18008a344\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x99, 0x18008a349\nadd     rsp, 20h                                                       ; +0x9e, 0x18008a34e\npop     rdi                                                            ; +0xa2, 0x18008a352\nretn                                                                   ; +0xa3, 0x18008a353", "xrefs": ["<???> @ 0x1801036a0", "<???> @ 0x1801b5a60"], "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"}