{"type": "func", "start": 6443029200, "end": 6443029364, "name": "sub_18008D2D0", "pseudocode": "// \n// sub_18008D2D0 from 0x18008d2d0 to 0x18008d374 (164 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180109d48\n// > <???> @ 0x1801bfd30\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:06 +0000\n// \n\ncocos2d::CCObject *__fastcall sub_18008D2D0(cocos2d::CCObject **this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 64, *(this - 1), cocos2d::CCAnimationCache::~CCAnimationCache);\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::CCAnimationCache::`vftable';\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_18008D2D0 from 0x18008d2d0 to 0x18008d374 (164 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180109d48\n; > <???> @ 0x1801bfd30\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:06 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18008d2d0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18008d2d5\npush    rdi                                                            ; +0xa, 0x18008d2da\nsub     rsp, 20h                                                       ; +0xb, 0x18008d2db\nmov     esi, edx                                                       ; +0xf, 0x18008d2df\nmov     rbx, rcx                                                       ; +0x11, 0x18008d2e1\ntest    dl, 2                                                          ; +0x14, 0x18008d2e4\njz      short loc_18008D32D                                            ; +0x17, 0x18008d2e7\nlea     r9, ??1CCAnimationCache@cocos2d@@UEAA@XZ; cocos2d::CCAnimationCache::~CCAnimationCache(void) ; +0x19, 0x18008d2e9\nmov     r8, [rcx-8]                                                    ; +0x20, 0x18008d2f0\nmov     edx, 40h ; '@'                                                 ; +0x24, 0x18008d2f4\ncall    sub_1800E49F8                                                  ; +0x29, 0x18008d2f9\ntest    sil, 1                                                         ; +0x2e, 0x18008d2fe\njz      short loc_18008D319                                            ; +0x32, 0x18008d302\nmov     rdx, [rbx-8]                                                   ; +0x34, 0x18008d304\nshl     rdx, 6                                                         ; +0x38, 0x18008d308\nadd     rdx, 8                                                         ; +0x3c, 0x18008d30c\nlea     rcx, [rbx-8]; Block                                            ; +0x40, 0x18008d310\ncall    j_j_j_free_0                                                   ; +0x44, 0x18008d314\nlea     rax, [rbx-8]                                                   ; +0x49, 0x18008d319\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4d, 0x18008d31d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x52, 0x18008d322\nadd     rsp, 20h                                                       ; +0x57, 0x18008d327\npop     rdi                                                            ; +0x5b, 0x18008d32b\nretn                                                                   ; +0x5c, 0x18008d32c\nlea     rax, ??_7CCAnimationCache@cocos2d@@6B@; const cocos2d::CCAnimationCache::`vftable' ; +0x5d, 0x18008d32d\nmov     [rcx], rax                                                     ; +0x64, 0x18008d334\nmov     rcx, [rcx+38h]; this                                           ; +0x67, 0x18008d337\ntest    rcx, rcx                                                       ; +0x6b, 0x18008d33b\njz      short loc_18008D345                                            ; +0x6e, 0x18008d33e\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x70, 0x18008d340\nmov     rcx, rbx; this                                                 ; +0x75, 0x18008d345\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x78, 0x18008d348\nnop                                                                    ; +0x7d, 0x18008d34d\ntest    sil, 1                                                         ; +0x7e, 0x18008d34e\njz      short loc_18008D361                                            ; +0x82, 0x18008d352\nmov     edx, 40h ; '@'                                                 ; +0x84, 0x18008d354\nmov     rcx, rbx; Block                                                ; +0x89, 0x18008d359\ncall    j_j_free_0                                                     ; +0x8c, 0x18008d35c\nmov     rax, rbx                                                       ; +0x91, 0x18008d361\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x94, 0x18008d364\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x99, 0x18008d369\nadd     rsp, 20h                                                       ; +0x9e, 0x18008d36e\npop     rdi                                                            ; +0xa2, 0x18008d372\nretn                                                                   ; +0xa3, 0x18008d373", "xrefs": ["<???> @ 0x180109d48", "<???> @ 0x1801bfd30"], "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"}