{"type": "func", "start": 6443026480, "end": 6443026662, "name": "sub_18008C830", "pseudocode": "// \n// sub_18008C830 from 0x18008c830 to 0x18008c8e6 (182 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180109ca0\n// > <???> @ 0x1801bfc64\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\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall sub_18008C830(cocos2d::CCObject **this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n  cocos2d::CCObject *v6; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 80, *(this - 1), cocos2d::CCAnimationFrame::~CCAnimationFrame);\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::CCAnimationFrame::`vftable';\n    v5 = *(this + 7);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    v6 = *(this + 9);\n    if ( v6 )\n      cocos2d::CCObject::release(v6);\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_18008C830 from 0x18008c830 to 0x18008c8e6 (182 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180109ca0\n; > <???> @ 0x1801bfc64\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, 0x18008c830\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18008c835\npush    rdi                                                            ; +0xa, 0x18008c83a\nsub     rsp, 20h                                                       ; +0xb, 0x18008c83b\nmov     esi, edx                                                       ; +0xf, 0x18008c83f\nmov     rbx, rcx                                                       ; +0x11, 0x18008c841\ntest    dl, 2                                                          ; +0x14, 0x18008c844\njz      short loc_18008C891                                            ; +0x17, 0x18008c847\nlea     r9, ??1CCAnimationFrame@cocos2d@@UEAA@XZ; cocos2d::CCAnimationFrame::~CCAnimationFrame(void) ; +0x19, 0x18008c849\nmov     r8, [rcx-8]                                                    ; +0x20, 0x18008c850\nmov     edx, 50h ; 'P'                                                 ; +0x24, 0x18008c854\ncall    sub_1800E49F8                                                  ; +0x29, 0x18008c859\ntest    sil, 1                                                         ; +0x2e, 0x18008c85e\njz      short loc_18008C87D                                            ; +0x32, 0x18008c862\nmov     rcx, [rbx-8]                                                   ; +0x34, 0x18008c864\nlea     rdx, [rcx+rcx*4]                                               ; +0x38, 0x18008c868\nshl     rdx, 4                                                         ; +0x3c, 0x18008c86c\nadd     rdx, 8                                                         ; +0x40, 0x18008c870\nlea     rcx, [rbx-8]; Block                                            ; +0x44, 0x18008c874\ncall    j_j_j_free_0                                                   ; +0x48, 0x18008c878\nlea     rax, [rbx-8]                                                   ; +0x4d, 0x18008c87d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x18008c881\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x56, 0x18008c886\nadd     rsp, 20h                                                       ; +0x5b, 0x18008c88b\npop     rdi                                                            ; +0x5f, 0x18008c88f\nretn                                                                   ; +0x60, 0x18008c890\nlea     rax, ??_7CCAnimationFrame@cocos2d@@6B@; const cocos2d::CCAnimationFrame::`vftable' ; +0x61, 0x18008c891\nmov     [rcx], rax                                                     ; +0x68, 0x18008c898\nmov     rcx, [rcx+38h]; this                                           ; +0x6b, 0x18008c89b\ntest    rcx, rcx                                                       ; +0x6f, 0x18008c89f\njz      short loc_18008C8A9                                            ; +0x72, 0x18008c8a2\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x74, 0x18008c8a4\nmov     rcx, [rbx+48h]; this                                           ; +0x79, 0x18008c8a9\ntest    rcx, rcx                                                       ; +0x7d, 0x18008c8ad\njz      short loc_18008C8B7                                            ; +0x80, 0x18008c8b0\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x82, 0x18008c8b2\nmov     rcx, rbx; this                                                 ; +0x87, 0x18008c8b7\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x8a, 0x18008c8ba\nnop                                                                    ; +0x8f, 0x18008c8bf\ntest    sil, 1                                                         ; +0x90, 0x18008c8c0\njz      short loc_18008C8D3                                            ; +0x94, 0x18008c8c4\nmov     edx, 50h ; 'P'                                                 ; +0x96, 0x18008c8c6\nmov     rcx, rbx; Block                                                ; +0x9b, 0x18008c8cb\ncall    j_j_free_0                                                     ; +0x9e, 0x18008c8ce\nmov     rax, rbx                                                       ; +0xa3, 0x18008c8d3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa6, 0x18008c8d6\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xab, 0x18008c8db\nadd     rsp, 20h                                                       ; +0xb0, 0x18008c8e0\npop     rdi                                                            ; +0xb4, 0x18008c8e4\nretn                                                                   ; +0xb5, 0x18008c8e5", "xrefs": ["<???> @ 0x180109ca0", "<???> @ 0x1801bfc64"], "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"}