{"type": "func", "start": 6442848256, "end": 6442848437, "name": "sub_180061000", "pseudocode": "// \n// sub_180061000 from 0x180061000 to 0x1800610b5 (181 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCParticleBatchNode::create @ 0x1800613b7\n// > cocos2d::CCParticleBatchNode::createWithTexture @ 0x180061494\n// > cocos2d::CCParticleBatchNode::create @ 0x1800613a6\n// > cocos2d::CCParticleBatchNode::createWithTexture @ 0x180061483\n// > <???> @ 0x1800fa098\n// > <???> @ 0x1801b35b8\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::CCNode *__fastcall sub_180061000(cocos2d::CCNode *this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      this,\n      0x158u,\n      *((_QWORD *)this - 1),\n      (void (*)(void *))cocos2d::CCParticleBatchNode::~CCParticleBatchNode);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free_0((char *)this - 8);\n    return (cocos2d::CCNode *)((char *)this - 8);\n  }\n  else\n  {\n    this->__vftable = (cocos2d::CCNode_vtbl *)&cocos2d::CCParticleBatchNode::`vftable'{for `cocos2d::CCNode'};\n    *((_QWORD *)this + 40) = &cocos2d::CCParticleBatchNode::`vftable'{for `cocos2d::CCTextureProtocol'};\n    v5 = *((cocos2d::CCObject **)this + 41);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    cocos2d::CCNode::~CCNode(this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_180061000 from 0x180061000 to 0x1800610b5 (181 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCParticleBatchNode::create @ 0x1800613b7\n; > cocos2d::CCParticleBatchNode::createWithTexture @ 0x180061494\n; > cocos2d::CCParticleBatchNode::create @ 0x1800613a6\n; > cocos2d::CCParticleBatchNode::createWithTexture @ 0x180061483\n; > <???> @ 0x1800fa098\n; > <???> @ 0x1801b35b8\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, 0x180061000\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180061005\npush    rdi                                                            ; +0xa, 0x18006100a\nsub     rsp, 20h                                                       ; +0xb, 0x18006100b\nmov     esi, edx                                                       ; +0xf, 0x18006100f\nmov     rbx, rcx                                                       ; +0x11, 0x180061011\ntest    dl, 2                                                          ; +0x14, 0x180061014\njz      short loc_18006105D                                            ; +0x17, 0x180061017\nlea     r9, ??1CCParticleBatchNode@cocos2d@@UEAA@XZ; void (*)(void *)  ; +0x19, 0x180061019\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x20, 0x180061020\nmov     edx, 158h; unsigned __int64                                    ; +0x24, 0x180061024\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x29, 0x180061029\ntest    sil, 1                                                         ; +0x2e, 0x18006102e\njz      short loc_180061049                                            ; +0x32, 0x180061032\nimul    rdx, [rbx-8], 158h                                             ; +0x34, 0x180061034\nadd     rdx, 8                                                         ; +0x3c, 0x18006103c\nlea     rcx, [rbx-8]; Block                                            ; +0x40, 0x180061040\ncall    j_j_j_free_0                                                   ; +0x44, 0x180061044\nlea     rax, [rbx-8]                                                   ; +0x49, 0x180061049\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4d, 0x18006104d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x52, 0x180061052\nadd     rsp, 20h                                                       ; +0x57, 0x180061057\npop     rdi                                                            ; +0x5b, 0x18006105b\nretn                                                                   ; +0x5c, 0x18006105c\nlea     rax, ??_7CCParticleBatchNode@cocos2d@@6BCCNode@1@@; const cocos2d::CCParticleBatchNode::`vftable'{for `cocos2d::CCNode'} ; +0x5d, 0x18006105d\nmov     [rcx], rax                                                     ; +0x64, 0x180061064\nlea     rax, ??_7CCParticleBatchNode@cocos2d@@6BCCTextureProtocol@1@@; const cocos2d::CCParticleBatchNode::`vftable'{for `cocos2d::CCTextureProtocol'} ; +0x67, 0x180061067\nmov     [rcx+140h], rax                                                ; +0x6e, 0x18006106e\nmov     rcx, [rcx+148h]; this                                          ; +0x75, 0x180061075\ntest    rcx, rcx                                                       ; +0x7c, 0x18006107c\njz      short loc_180061086                                            ; +0x7f, 0x18006107f\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x81, 0x180061081\nmov     rcx, rbx; this                                                 ; +0x86, 0x180061086\ncall    ??1CCNode@cocos2d@@UEAA@XZ; cocos2d::CCNode::~CCNode(void)     ; +0x89, 0x180061089\nnop                                                                    ; +0x8e, 0x18006108e\ntest    sil, 1                                                         ; +0x8f, 0x18006108f\njz      short loc_1800610A2                                            ; +0x93, 0x180061093\nmov     edx, 158h                                                      ; +0x95, 0x180061095\nmov     rcx, rbx; Block                                                ; +0x9a, 0x18006109a\ncall    j_j_free_0                                                     ; +0x9d, 0x18006109d\nmov     rax, rbx                                                       ; +0xa2, 0x1800610a2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa5, 0x1800610a5\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xaa, 0x1800610aa\nadd     rsp, 20h                                                       ; +0xaf, 0x1800610af\npop     rdi                                                            ; +0xb3, 0x1800610b3\nretn                                                                   ; +0xb4, 0x1800610b4", "xrefs": ["cocos2d::CCParticleBatchNode::create @ 0x1800613b7", "cocos2d::CCParticleBatchNode::createWithTexture @ 0x180061494", "cocos2d::CCParticleBatchNode::create @ 0x1800613a6", "cocos2d::CCParticleBatchNode::createWithTexture @ 0x180061483", "<???> @ 0x1800fa098", "<???> @ 0x1801b35b8"], "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"}