{"type": "func", "start": 6443080592, "end": 6443080752, "name": "sub_180099B90", "pseudocode": "// \n// sub_180099B90 from 0x180099b90 to 0x180099c30 (160 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18010ac10\n// > <???> @ 0x1801c0b70\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:11 +0000\n// \n\n_QWORD *__fastcall sub_180099B90(_QWORD *Block, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(Block, 24, *(Block - 1), cocos2d::CCComponentContainer::~CCComponentContainer);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free_0(Block - 1);\n    return Block - 1;\n  }\n  else\n  {\n    *Block = &cocos2d::CCComponentContainer::`vftable';\n    v5 = (cocos2d::CCObject *)Block[1];\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(Block);\n    return Block;\n  }\n}", "assembly": "; \n; sub_180099B90 from 0x180099b90 to 0x180099c30 (160 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18010ac10\n; > <???> @ 0x1801c0b70\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:11 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180099b90\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180099b95\npush    rdi                                                            ; +0xa, 0x180099b9a\nsub     rsp, 20h                                                       ; +0xb, 0x180099b9b\nmov     esi, edx                                                       ; +0xf, 0x180099b9f\nmov     rbx, rcx                                                       ; +0x11, 0x180099ba1\ntest    dl, 2                                                          ; +0x14, 0x180099ba4\njz      short loc_180099BF1                                            ; +0x17, 0x180099ba7\nlea     r9, ??1CCComponentContainer@cocos2d@@UEAA@XZ; cocos2d::CCComponentContainer::~CCComponentContainer(void) ; +0x19, 0x180099ba9\nmov     r8, [rcx-8]                                                    ; +0x20, 0x180099bb0\nmov     edx, 18h                                                       ; +0x24, 0x180099bb4\ncall    sub_1800E49F8                                                  ; +0x29, 0x180099bb9\ntest    sil, 1                                                         ; +0x2e, 0x180099bbe\njz      short loc_180099BDD                                            ; +0x32, 0x180099bc2\nmov     rcx, [rbx-8]                                                   ; +0x34, 0x180099bc4\nlea     rdx, [rcx+rcx*2]                                               ; +0x38, 0x180099bc8\nlea     rdx, ds:8[rdx*8]                                               ; +0x3c, 0x180099bcc\nlea     rcx, [rbx-8]; Block                                            ; +0x44, 0x180099bd4\ncall    j_j_j_free_0                                                   ; +0x48, 0x180099bd8\nlea     rax, [rbx-8]                                                   ; +0x4d, 0x180099bdd\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x180099be1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x56, 0x180099be6\nadd     rsp, 20h                                                       ; +0x5b, 0x180099beb\npop     rdi                                                            ; +0x5f, 0x180099bef\nretn                                                                   ; +0x60, 0x180099bf0\nlea     rax, ??_7CCComponentContainer@cocos2d@@6B@; const cocos2d::CCComponentContainer::`vftable' ; +0x61, 0x180099bf1\nmov     [rcx], rax                                                     ; +0x68, 0x180099bf8\nmov     rcx, [rcx+8]; this                                             ; +0x6b, 0x180099bfb\ntest    rcx, rcx                                                       ; +0x6f, 0x180099bff\njz      short loc_180099C0A                                            ; +0x72, 0x180099c02\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x74, 0x180099c04\nnop                                                                    ; +0x79, 0x180099c09\ntest    sil, 1                                                         ; +0x7a, 0x180099c0a\njz      short loc_180099C1D                                            ; +0x7e, 0x180099c0e\nmov     edx, 18h                                                       ; +0x80, 0x180099c10\nmov     rcx, rbx; Block                                                ; +0x85, 0x180099c15\ncall    j_j_free_0                                                     ; +0x88, 0x180099c18\nmov     rax, rbx                                                       ; +0x8d, 0x180099c1d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x90, 0x180099c20\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x95, 0x180099c25\nadd     rsp, 20h                                                       ; +0x9a, 0x180099c2a\npop     rdi                                                            ; +0x9e, 0x180099c2e\nretn                                                                   ; +0x9f, 0x180099c2f", "xrefs": ["<???> @ 0x18010ac10", "<???> @ 0x1801c0b70"], "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"}