{"type": "func", "start": 6442477840, "end": 6442477998, "name": "sub_180006910", "pseudocode": "// \n// sub_180006910 from 0x180006910 to 0x1800069ae (158 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800ec318\n// > <???> @ 0x1801b7924\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:21:18 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall sub_180006910(cocos2d::CCObject *this, char a2)\n{\n  int v3; // esi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 64, *((_QWORD *)this - 1), cocos2d::CCArray::~CCArray);\n    if ( v3 )\n      j_j_j_free_0((char *)this - 8);\n    return (cocos2d::CCObject *)((char *)this - 8);\n  }\n  else\n  {\n    *(_QWORD *)this = &cocos2d::CCArray::`vftable';\n    sub_1800A16E0((char *)this + 56);\n    cocos2d::CCObject::~CCObject(this);\n    if ( v3 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_180006910 from 0x180006910 to 0x1800069ae (158 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800ec318\n; > <???> @ 0x1801b7924\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:21:18 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180006910\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180006915\npush    rdi                                                            ; +0xa, 0x18000691a\nsub     rsp, 20h                                                       ; +0xb, 0x18000691b\nmov     rbx, rcx                                                       ; +0xf, 0x18000691f\nmov     esi, edx                                                       ; +0x12, 0x180006922\nand     esi, 1                                                         ; +0x14, 0x180006924\ntest    dl, 2                                                          ; +0x17, 0x180006927\njz      short loc_18000696E                                            ; +0x1a, 0x18000692a\nlea     r9, ??1CCArray@cocos2d@@UEAA@XZ; cocos2d::CCArray::~CCArray(void) ; +0x1c, 0x18000692c\nmov     r8, [rcx-8]                                                    ; +0x23, 0x180006933\nmov     edx, 40h ; '@'                                                 ; +0x27, 0x180006937\ncall    sub_1800E49F8                                                  ; +0x2c, 0x18000693c\ntest    esi, esi                                                       ; +0x31, 0x180006941\njz      short loc_18000695A                                            ; +0x33, 0x180006943\nmov     rdx, [rbx-8]                                                   ; +0x35, 0x180006945\nshl     rdx, 6                                                         ; +0x39, 0x180006949\nadd     rdx, 8                                                         ; +0x3d, 0x18000694d\nlea     rcx, [rbx-8]; Block                                            ; +0x41, 0x180006951\ncall    j_j_j_free_0                                                   ; +0x45, 0x180006955\nlea     rax, [rbx-8]                                                   ; +0x4a, 0x18000695a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x18000695e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x53, 0x180006963\nadd     rsp, 20h                                                       ; +0x58, 0x180006968\npop     rdi                                                            ; +0x5c, 0x18000696c\nretn                                                                   ; +0x5d, 0x18000696d\nlea     rax, ??_7CCArray@cocos2d@@6B@; const cocos2d::CCArray::`vftable' ; +0x5e, 0x18000696e\nmov     [rcx], rax                                                     ; +0x65, 0x180006975\nadd     rcx, 38h ; '8'                                                 ; +0x68, 0x180006978\ncall    sub_1800A16E0                                                  ; +0x6c, 0x18000697c\nmov     rcx, rbx; this                                                 ; +0x71, 0x180006981\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x74, 0x180006984\nnop                                                                    ; +0x79, 0x180006989\ntest    esi, esi                                                       ; +0x7a, 0x18000698a\njz      short loc_18000699B                                            ; +0x7c, 0x18000698c\nmov     edx, 40h ; '@'                                                 ; +0x7e, 0x18000698e\nmov     rcx, rbx; Block                                                ; +0x83, 0x180006993\ncall    j_j_free_0                                                     ; +0x86, 0x180006996\nmov     rax, rbx                                                       ; +0x8b, 0x18000699b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8e, 0x18000699e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x93, 0x1800069a3\nadd     rsp, 20h                                                       ; +0x98, 0x1800069a8\npop     rdi                                                            ; +0x9c, 0x1800069ac\nretn                                                                   ; +0x9d, 0x1800069ad", "xrefs": ["<???> @ 0x1800ec318", "<???> @ 0x1801b7924"], "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"}