{"type": "func", "start": 6443014160, "end": 6443014342, "name": "sub_180089810", "pseudocode": "// \n// sub_180089810 from 0x180089810 to 0x1800898c6 (182 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801035f0\n// > <???> @ 0x1801b5994\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_180089810(cocos2d::CCObject *this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n  cocos2d::CCObject *v6; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      this,\n      0x50u,\n      *((_QWORD *)this - 1),\n      (void (*)(void *))cocos2d::CCAnimationFrame::~CCAnimationFrame);\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::CCAnimationFrame::`vftable';\n    v5 = *((cocos2d::CCObject **)this + 7);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    v6 = *((cocos2d::CCObject **)this + 9);\n    if ( v6 )\n      cocos2d::CCObject::release(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_180089810 from 0x180089810 to 0x1800898c6 (182 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801035f0\n; > <???> @ 0x1801b5994\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, 0x180089810\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180089815\npush    rdi                                                            ; +0xa, 0x18008981a\nsub     rsp, 20h                                                       ; +0xb, 0x18008981b\nmov     esi, edx                                                       ; +0xf, 0x18008981f\nmov     rbx, rcx                                                       ; +0x11, 0x180089821\ntest    dl, 2                                                          ; +0x14, 0x180089824\njz      short loc_180089871                                            ; +0x17, 0x180089827\nlea     r9, ??1CCAnimationFrame@cocos2d@@UEAA@XZ; void (*)(void *)     ; +0x19, 0x180089829\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x20, 0x180089830\nmov     edx, 50h ; 'P'; unsigned __int64                               ; +0x24, 0x180089834\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x29, 0x180089839\ntest    sil, 1                                                         ; +0x2e, 0x18008983e\njz      short loc_18008985D                                            ; +0x32, 0x180089842\nmov     rcx, [rbx-8]                                                   ; +0x34, 0x180089844\nlea     rdx, [rcx+rcx*4]                                               ; +0x38, 0x180089848\nshl     rdx, 4                                                         ; +0x3c, 0x18008984c\nadd     rdx, 8                                                         ; +0x40, 0x180089850\nlea     rcx, [rbx-8]; Block                                            ; +0x44, 0x180089854\ncall    j_j_j_free_0                                                   ; +0x48, 0x180089858\nlea     rax, [rbx-8]                                                   ; +0x4d, 0x18008985d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x180089861\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x56, 0x180089866\nadd     rsp, 20h                                                       ; +0x5b, 0x18008986b\npop     rdi                                                            ; +0x5f, 0x18008986f\nretn                                                                   ; +0x60, 0x180089870\nlea     rax, ??_7CCAnimationFrame@cocos2d@@6B@; const cocos2d::CCAnimationFrame::`vftable' ; +0x61, 0x180089871\nmov     [rcx], rax                                                     ; +0x68, 0x180089878\nmov     rcx, [rcx+38h]; this                                           ; +0x6b, 0x18008987b\ntest    rcx, rcx                                                       ; +0x6f, 0x18008987f\njz      short loc_180089889                                            ; +0x72, 0x180089882\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x74, 0x180089884\nmov     rcx, [rbx+48h]; this                                           ; +0x79, 0x180089889\ntest    rcx, rcx                                                       ; +0x7d, 0x18008988d\njz      short loc_180089897                                            ; +0x80, 0x180089890\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x82, 0x180089892\nmov     rcx, rbx; this                                                 ; +0x87, 0x180089897\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x8a, 0x18008989a\nnop                                                                    ; +0x8f, 0x18008989f\ntest    sil, 1                                                         ; +0x90, 0x1800898a0\njz      short loc_1800898B3                                            ; +0x94, 0x1800898a4\nmov     edx, 50h ; 'P'                                                 ; +0x96, 0x1800898a6\nmov     rcx, rbx; Block                                                ; +0x9b, 0x1800898ab\ncall    j_j_free_0                                                     ; +0x9e, 0x1800898ae\nmov     rax, rbx                                                       ; +0xa3, 0x1800898b3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa6, 0x1800898b6\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xab, 0x1800898bb\nadd     rsp, 20h                                                       ; +0xb0, 0x1800898c0\npop     rdi                                                            ; +0xb4, 0x1800898c4\nretn                                                                   ; +0xb5, 0x1800898c5", "xrefs": ["<???> @ 0x1801035f0", "<???> @ 0x1801b5994"], "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"}