{"type": "func", "start": 6442477520, "end": 6442477678, "name": "sub_1800067D0", "pseudocode": "// \n// sub_1800067D0 from 0x1800067d0 to 0x18000686e (158 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800e62c8\n// > <???> @ 0x1801ad900\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_1800067D0(cocos2d::CCObject *this, char a2)\n{\n  int v3; // edi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(this, 0x40u, *((_QWORD *)this - 1), (void (*)(void *))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    this->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCArray::`vftable';\n    sub_18009DA50(this + 1);\n    cocos2d::CCObject::~CCObject(this);\n    if ( v3 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_1800067D0 from 0x1800067d0 to 0x18000686e (158 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800e62c8\n; > <???> @ 0x1801ad900\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, 0x1800067d0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800067d5\npush    rdi                                                            ; +0xa, 0x1800067da\nsub     rsp, 20h                                                       ; +0xb, 0x1800067db\nmov     rbx, rcx                                                       ; +0xf, 0x1800067df\nmov     edi, edx                                                       ; +0x12, 0x1800067e2\nand     edi, 1                                                         ; +0x14, 0x1800067e4\ntest    dl, 2                                                          ; +0x17, 0x1800067e7\njz      short loc_18000682E                                            ; +0x1a, 0x1800067ea\nlea     r9, ??1CCArray@cocos2d@@UEAA@XZ; void (*)(void *)              ; +0x1c, 0x1800067ec\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x23, 0x1800067f3\nmov     edx, 40h ; '@'; unsigned __int64                               ; +0x27, 0x1800067f7\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x2c, 0x1800067fc\ntest    edi, edi                                                       ; +0x31, 0x180006801\njz      short loc_18000681A                                            ; +0x33, 0x180006803\nmov     rdx, [rbx-8]                                                   ; +0x35, 0x180006805\nshl     rdx, 6                                                         ; +0x39, 0x180006809\nadd     rdx, 8                                                         ; +0x3d, 0x18000680d\nlea     rcx, [rbx-8]; Block                                            ; +0x41, 0x180006811\ncall    j_j_j_free_0                                                   ; +0x45, 0x180006815\nlea     rax, [rbx-8]                                                   ; +0x4a, 0x18000681a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x18000681e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x53, 0x180006823\nadd     rsp, 20h                                                       ; +0x58, 0x180006828\npop     rdi                                                            ; +0x5c, 0x18000682c\nretn                                                                   ; +0x5d, 0x18000682d\nlea     rax, ??_7CCArray@cocos2d@@6B@; const cocos2d::CCArray::`vftable' ; +0x5e, 0x18000682e\nmov     [rcx], rax                                                     ; +0x65, 0x180006835\nadd     rcx, 38h ; '8'                                                 ; +0x68, 0x180006838\ncall    sub_18009DA50                                                  ; +0x6c, 0x18000683c\nmov     rcx, rbx; this                                                 ; +0x71, 0x180006841\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x74, 0x180006844\nnop                                                                    ; +0x79, 0x180006849\ntest    edi, edi                                                       ; +0x7a, 0x18000684a\njz      short loc_18000685B                                            ; +0x7c, 0x18000684c\nmov     edx, 40h ; '@'                                                 ; +0x7e, 0x18000684e\nmov     rcx, rbx; Block                                                ; +0x83, 0x180006853\ncall    j_j_free_0                                                     ; +0x86, 0x180006856\nmov     rax, rbx                                                       ; +0x8b, 0x18000685b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8e, 0x18000685e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x93, 0x180006863\nadd     rsp, 20h                                                       ; +0x98, 0x180006868\npop     rdi                                                            ; +0x9c, 0x18000686c\nretn                                                                   ; +0x9d, 0x18000686d", "xrefs": ["<???> @ 0x1800e62c8", "<???> @ 0x1801ad900"], "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"}