{"type": "func", "start": 6442858016, "end": 6442858247, "name": "cocos2d::CCParticleBatchNode::addChildHelper", "pseudocode": "// \n// cocos2d::CCParticleBatchNode::addChildHelper from 0x180063620 to 0x180063707 (231 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCParticleBatchNode::addChild @ 0x1800635bb\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd948\n// > <???> @ 0x1801bd954\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:51 +0000\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 *))(*(_QWORD *)a2 + 504LL))(a2);\n  if ( !*((_QWORD *)this + 26) )\n  {\n    v8 = (cocos2d::CCArray *)sub_1800E4AC0(0x40u);\n    if ( v8 )\n      v8 = cocos2d::CCArray::CCArray(v8);\n    *((_QWORD *)this + 26) = v8;\n    cocos2d::CCArray::initWithCapacity(v8, 4u);\n  }\n  v9 = cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ(this, a3);\n  cocos2d::CCArray::insertObject(*((cocos2d::CCArray **)this + 26), a2);\n  (*(void (__fastcall **)(struct cocos2d::CCParticleSystem *, _QWORD))(*(_QWORD *)a2 + 64LL))(a2, a4);\n  (*(void (__fastcall **)(struct cocos2d::CCParticleSystem *, _QWORD))(*(_QWORD *)a2 + 88LL))(a2, a3);\n  (*(void (__fastcall **)(struct cocos2d::CCParticleSystem *, cocos2d::CCParticleBatchNode *))(*(_QWORD *)a2 + 496LL))(\n    a2,\n    this);\n  if ( *((_BYTE *)this + 272) )\n  {\n    (*(void (__fastcall **)(struct cocos2d::CCParticleSystem *))(*(_QWORD *)a2 + 696LL))(a2);\n    (*(void (__fastcall **)(struct cocos2d::CCParticleSystem *))(*(_QWORD *)a2 + 704LL))(a2);\n  }\n  return v9;\n}", "assembly": "; \n; cocos2d::CCParticleBatchNode::addChildHelper from 0x180063620 to 0x180063707 (231 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCParticleBatchNode::addChild @ 0x1800635bb\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd948\n; > <???> @ 0x1801bd954\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:51 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180063620\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180063625\npush    rsi                                                            ; +0xa, 0x18006362a\npush    rdi                                                            ; +0xb, 0x18006362b\npush    r14                                                            ; +0xc, 0x18006362c\nsub     rsp, 20h                                                       ; +0xe, 0x18006362e\nmov     r14d, r9d                                                      ; +0x12, 0x180063632\nmov     ebp, r8d                                                       ; +0x15, 0x180063635\nmov     rbx, rdx                                                       ; +0x18, 0x180063638\nmov     rdi, rcx                                                       ; +0x1b, 0x18006363b\nmov     rax, [rdx]                                                     ; +0x1e, 0x18006363e\nmov     rcx, rdx                                                       ; +0x21, 0x180063641\ncall    qword ptr [rax+1F8h]                                           ; +0x24, 0x180063644\ncmp     qword ptr [rdi+0D0h], 0                                        ; +0x2a, 0x18006364a\njnz     short loc_180063685                                            ; +0x32, 0x180063652\nmov     ecx, 40h ; '@'; Size                                           ; +0x34, 0x180063654\ncall    sub_1800E4AC0                                                  ; +0x39, 0x180063659\nmov     [rsp+38h+arg_0], rax                                           ; +0x3e, 0x18006365e\ntest    rax, rax                                                       ; +0x43, 0x180063663\njz      short loc_180063671                                            ; +0x46, 0x180063666\nmov     rcx, rax; this                                                 ; +0x48, 0x180063668\ncall    ??0CCArray@cocos2d@@QEAA@XZ; cocos2d::CCArray::CCArray(void)   ; +0x4b, 0x18006366b\nnop                                                                    ; +0x50, 0x180063670\nmov     [rdi+0D0h], rax                                                ; +0x51, 0x180063671\nmov     edx, 4; unsigned int                                           ; +0x58, 0x180063678\nmov     rcx, rax; this                                                 ; +0x5d, 0x18006367d\ncall    ?initWithCapacity@CCArray@cocos2d@@QEAA_NI@Z; cocos2d::CCArray::initWithCapacity(uint) ; +0x60, 0x180063680\nmov     edx, ebp; int                                                  ; +0x65, 0x180063685\nmov     rcx, rdi; this                                                 ; +0x67, 0x180063687\ncall    ?searchNewPositionInChildrenForZ@CCParticleBatchNode@cocos2d@@AEAAIH@Z; cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ(int) ; +0x6a, 0x18006368a\nmov     esi, eax                                                       ; +0x6f, 0x18006368f\nmov     r8d, eax; unsigned int                                         ; +0x71, 0x180063691\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0x74, 0x180063694\nmov     rcx, [rdi+0D0h]; this                                          ; +0x77, 0x180063697\ncall    ?insertObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@I@Z; cocos2d::CCArray::insertObject(cocos2d::CCObject *,uint) ; +0x7e, 0x18006369e\nmov     rcx, [rbx]                                                     ; +0x83, 0x1800636a3\nmov     r8, [rcx+40h]                                                  ; +0x86, 0x1800636a6\nmov     edx, r14d                                                      ; +0x8a, 0x1800636aa\nmov     rcx, rbx                                                       ; +0x8d, 0x1800636ad\ncall    r8                                                             ; +0x90, 0x1800636b0\nmov     rcx, [rbx]                                                     ; +0x93, 0x1800636b3\nmov     r8, [rcx+58h]                                                  ; +0x96, 0x1800636b6\nmov     edx, ebp                                                       ; +0x9a, 0x1800636ba\nmov     rcx, rbx                                                       ; +0x9c, 0x1800636bc\ncall    r8                                                             ; +0x9f, 0x1800636bf\nmov     rax, [rbx]                                                     ; +0xa2, 0x1800636c2\nmov     rdx, rdi                                                       ; +0xa5, 0x1800636c5\nmov     rcx, rbx                                                       ; +0xa8, 0x1800636c8\ncall    qword ptr [rax+1F0h]                                           ; +0xab, 0x1800636cb\ncmp     byte ptr [rdi+110h], 0                                         ; +0xb1, 0x1800636d1\njz      short loc_1800636F2                                            ; +0xb8, 0x1800636d8\nmov     rax, [rbx]                                                     ; +0xba, 0x1800636da\nmov     rcx, rbx                                                       ; +0xbd, 0x1800636dd\ncall    qword ptr [rax+2B8h]                                           ; +0xc0, 0x1800636e0\nmov     rax, [rbx]                                                     ; +0xc6, 0x1800636e6\nmov     rcx, rbx                                                       ; +0xc9, 0x1800636e9\ncall    qword ptr [rax+2C0h]                                           ; +0xcc, 0x1800636ec\nmov     eax, esi                                                       ; +0xd2, 0x1800636f2\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xd4, 0x1800636f4\nmov     rbp, [rsp+38h+arg_10]                                          ; +0xd9, 0x1800636f9\nadd     rsp, 20h                                                       ; +0xde, 0x1800636fe\npop     r14                                                            ; +0xe2, 0x180063702\npop     rdi                                                            ; +0xe4, 0x180063704\npop     rsi                                                            ; +0xe5, 0x180063705\nretn                                                                   ; +0xe6, 0x180063706", "xrefs": ["cocos2d::CCParticleBatchNode::addChild @ 0x1800635bb", "<???> @ 0x18014cf68", "<???> @ 0x1801bd948", "<???> @ 0x1801bd954"], "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"}