{"type": "func", "start": 6442848784, "end": 6442849010, "name": "cocos2d::CCParticleBatchNode::addChildHelper", "pseudocode": "// \n// cocos2d::CCParticleBatchNode::addChildHelper from 0x180061210 to 0x1800612f2 (226 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCParticleBatchNode::addChild @ 0x1800611a5\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3600\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\n__int64 __fastcall cocos2d::CCParticleBatchNode::addChildHelper(\n        cocos2d::CCParticleBatchNode *this,\n        struct cocos2d::CCParticleSystem *a2,\n        unsigned int a3,\n        unsigned int a4)\n{\n  cocos2d::CCArray *v8; // rax\n  unsigned int v9; // esi\n\n  ((void (__fastcall *)(struct cocos2d::CCParticleSystem *))a2->getParent)(a2);\n  if ( !this->m_pChildren )\n  {\n    v8 = (cocos2d::CCArray *)operator new(0x40u);\n    if ( v8 )\n      v8 = cocos2d::CCArray::CCArray(v8);\n    this->m_pChildren = v8;\n    cocos2d::CCArray::initWithCapacity(v8, 4u);\n  }\n  v9 = cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ(this, a3);\n  cocos2d::CCArray::insertObject(this->m_pChildren, a2);\n  ((void (__fastcall *)(struct cocos2d::CCParticleSystem *, _QWORD))a2->setTag)(a2, a4);\n  ((void (__fastcall *)(struct cocos2d::CCParticleSystem *, _QWORD))a2->_setZOrder)(a2, a3);\n  ((void (__fastcall *)(struct cocos2d::CCParticleSystem *, cocos2d::CCParticleBatchNode *))a2->setParent)(a2, this);\n  if ( this->m_bRunning )\n  {\n    ((void (__fastcall *)(struct cocos2d::CCParticleSystem *))a2->onEnter)(a2);\n    ((void (__fastcall *)(struct cocos2d::CCParticleSystem *))a2->onEnterTransitionDidFinish)(a2);\n  }\n  return v9;\n}", "assembly": "; \n; cocos2d::CCParticleBatchNode::addChildHelper from 0x180061210 to 0x1800612f2 (226 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCParticleBatchNode::addChild @ 0x1800611a5\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3600\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_8], rbx                                               ; +0x0, 0x180061210\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180061215\npush    rsi                                                            ; +0xa, 0x18006121a\npush    rdi                                                            ; +0xb, 0x18006121b\npush    r14                                                            ; +0xc, 0x18006121c\nsub     rsp, 20h                                                       ; +0xe, 0x18006121e\nmov     r14d, r9d                                                      ; +0x12, 0x180061222\nmov     ebp, r8d                                                       ; +0x15, 0x180061225\nmov     rbx, rdx                                                       ; +0x18, 0x180061228\nmov     rdi, rcx                                                       ; +0x1b, 0x18006122b\nmov     rax, [rdx]                                                     ; +0x1e, 0x18006122e\nmov     rcx, rdx                                                       ; +0x21, 0x180061231\ncall    qword ptr [rax+1E8h]                                           ; +0x24, 0x180061234\ncmp     qword ptr [rdi+0D0h], 0                                        ; +0x2a, 0x18006123a\njnz     short loc_180061275                                            ; +0x32, 0x180061242\nmov     ecx, 40h ; '@'; Size                                           ; +0x34, 0x180061244\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x39, 0x180061249\nmov     [rsp+38h+arg_0], rax                                           ; +0x3e, 0x18006124e\ntest    rax, rax                                                       ; +0x43, 0x180061253\njz      short loc_180061261                                            ; +0x46, 0x180061256\nmov     rcx, rax; this                                                 ; +0x48, 0x180061258\ncall    ??0CCArray@cocos2d@@QEAA@XZ; cocos2d::CCArray::CCArray(void)   ; +0x4b, 0x18006125b\nnop                                                                    ; +0x50, 0x180061260\nmov     [rdi+0D0h], rax                                                ; +0x51, 0x180061261\nmov     edx, 4; unsigned int                                           ; +0x58, 0x180061268\nmov     rcx, rax; this                                                 ; +0x5d, 0x18006126d\ncall    ?initWithCapacity@CCArray@cocos2d@@QEAA_NI@Z; cocos2d::CCArray::initWithCapacity(uint) ; +0x60, 0x180061270\nmov     edx, ebp; int                                                  ; +0x65, 0x180061275\nmov     rcx, rdi; this                                                 ; +0x67, 0x180061277\ncall    ?searchNewPositionInChildrenForZ@CCParticleBatchNode@cocos2d@@AEAAIH@Z; cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ(int) ; +0x6a, 0x18006127a\nmov     esi, eax                                                       ; +0x6f, 0x18006127f\nmov     r8d, eax; unsigned int                                         ; +0x71, 0x180061281\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0x74, 0x180061284\nmov     rcx, [rdi+0D0h]; this                                          ; +0x77, 0x180061287\ncall    ?insertObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@I@Z; cocos2d::CCArray::insertObject(cocos2d::CCObject *,uint) ; +0x7e, 0x18006128e\nmov     r8, [rbx]                                                      ; +0x83, 0x180061293\nmov     edx, r14d                                                      ; +0x86, 0x180061296\nmov     rcx, rbx                                                       ; +0x89, 0x180061299\ncall    qword ptr [r8+40h]                                             ; +0x8c, 0x18006129c\nmov     r8, [rbx]                                                      ; +0x90, 0x1800612a0\nmov     edx, ebp                                                       ; +0x93, 0x1800612a3\nmov     rcx, rbx                                                       ; +0x95, 0x1800612a5\ncall    qword ptr [r8+58h]                                             ; +0x98, 0x1800612a8\nmov     r8, [rbx]                                                      ; +0x9c, 0x1800612ac\nmov     rdx, rdi                                                       ; +0x9f, 0x1800612af\nmov     rcx, rbx                                                       ; +0xa2, 0x1800612b2\ncall    qword ptr [r8+1E0h]                                            ; +0xa5, 0x1800612b5\ncmp     byte ptr [rdi+110h], 0                                         ; +0xac, 0x1800612bc\njz      short loc_1800612DD                                            ; +0xb3, 0x1800612c3\nmov     rax, [rbx]                                                     ; +0xb5, 0x1800612c5\nmov     rcx, rbx                                                       ; +0xb8, 0x1800612c8\ncall    qword ptr [rax+2A8h]                                           ; +0xbb, 0x1800612cb\nmov     rax, [rbx]                                                     ; +0xc1, 0x1800612d1\nmov     rcx, rbx                                                       ; +0xc4, 0x1800612d4\ncall    qword ptr [rax+2B0h]                                           ; +0xc7, 0x1800612d7\nmov     eax, esi                                                       ; +0xcd, 0x1800612dd\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xcf, 0x1800612df\nmov     rbp, [rsp+38h+arg_10]                                          ; +0xd4, 0x1800612e4\nadd     rsp, 20h                                                       ; +0xd9, 0x1800612e9\npop     r14                                                            ; +0xdd, 0x1800612ed\npop     rdi                                                            ; +0xdf, 0x1800612ef\npop     rsi                                                            ; +0xe0, 0x1800612f0\nretn                                                                   ; +0xe1, 0x1800612f1", "xrefs": ["cocos2d::CCParticleBatchNode::addChild @ 0x1800611a5", "<???> @ 0x1801438a8", "<???> @ 0x1801b3600"], "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"}