{"type": "func", "start": 6442857680, "end": 6442858016, "name": "cocos2d::CCParticleBatchNode::addChild", "pseudocode": "// \n// cocos2d::CCParticleBatchNode::addChild from 0x1800634d0 to 0x180063620 (336 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x180100768\n// > <???> @ 0x180142c80\n// > <???> @ 0x180142cb4\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd918\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\nvoid __fastcall cocos2d::CCParticleBatchNode::addChild(\n        cocos2d::CCParticleBatchNode *this,\n        struct cocos2d::CCNode *a2,\n        int a3,\n        int a4)\n{\n  unsigned int v8; // ebp\n  char *v9; // r14\n  __int64 v10; // rax\n  __int64 v11; // rax\n  void (__fastcall **v12)(char *, _QWORD); // rbx\n  _QWORD *v13; // rax\n  unsigned int v14; // eax\n  struct cocos2d::CCString *v15; // rax\n  int v16; // ebp\n  char v17; // [rsp+70h] [rbp+8h] BYREF\n  char v18; // [rsp+78h] [rbp+10h] BYREF\n\n  v8 = 0;\n  _RTDynamicCast(a2, 0, &cocos2d::CCNode `RTTI Type Descriptor', &cocos2d::CCParticleSystem `RTTI Type Descriptor', 0);\n  v9 = (char *)a2 + 320;\n  v10 = (*(__int64 (__fastcall **)(char *))(*((_QWORD *)a2 + 40) + 16LL))((char *)a2 + 320);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 96LL))(v10);\n  v11 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 88LL))(*((_QWORD *)this + 41));\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 96LL))(v11);\n  if ( !(unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 26)) )\n  {\n    v12 = *((void (__fastcall ***)(char *, _QWORD))this + 40);\n    v13 = (_QWORD *)(*(__int64 (__fastcall **)(char *, char *))(*(_QWORD *)v9 + 8LL))((char *)a2 + 320, &v17);\n    (*v12)((char *)this + 320, *v13);\n  }\n  if ( *((_DWORD *)this + 84) == *(_DWORD *)(*(__int64 (__fastcall **)(char *, char *))(*(_QWORD *)v9 + 8LL))(\n                                              (char *)a2 + 320,\n                                              &v17) )\n    (*(void (__fastcall **)(char *, char *))(*(_QWORD *)v9 + 8LL))((char *)a2 + 320, &v18);\n  v14 = cocos2d::CCParticleBatchNode::addChildHelper(this, a2, a3, a4);\n  if ( v14 )\n  {\n    v15 = cocos2d::CCArray::stringAtIndex(*((cocos2d::CCArray **)this + 26), v14 - 1);\n    v16 = *((_DWORD *)v15 + 112);\n    v8 = (*(__int64 (__fastcall **)(struct cocos2d::CCString *))(*(_QWORD *)v15 + 1488LL))(v15) + v16;\n  }\n  cocos2d::CCParticleBatchNode::insertChild(this, a2, v8);\n  (*(void (__fastcall **)(struct cocos2d::CCNode *, cocos2d::CCParticleBatchNode *))(*(_QWORD *)a2 + 896LL))(a2, this);\n}", "assembly": "; \n; cocos2d::CCParticleBatchNode::addChild from 0x1800634d0 to 0x180063620 (336 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x180100768\n; > <???> @ 0x180142c80\n; > <???> @ 0x180142cb4\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd918\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; \npush    rbx                                                            ; +0x0, 0x1800634d0\npush    rbp                                                            ; +0x2, 0x1800634d2\npush    rsi                                                            ; +0x3, 0x1800634d3\npush    r15                                                            ; +0x4, 0x1800634d4\nsub     rsp, 48h                                                       ; +0x6, 0x1800634d6\nmov     [rsp+68h+var_28], r12                                          ; +0xa, 0x1800634da\nmov     r15, rdx                                                       ; +0xf, 0x1800634df\nmov     [rsp+68h+var_30], r13                                          ; +0x12, 0x1800634e2\nmov     r12d, r9d                                                      ; +0x17, 0x1800634e7\nmov     r13d, r8d                                                      ; +0x1a, 0x1800634ea\nmov     [rsp+68h+var_38], r14                                          ; +0x1d, 0x1800634ed\nmov     rsi, rcx                                                       ; +0x22, 0x1800634f2\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x25, 0x1800634f5\nxor     ebp, ebp                                                       ; +0x2c, 0x1800634fc\nlea     r9, ??_R0?AVCCParticleSystem@cocos2d@@@8; cocos2d::CCParticleSystem `RTTI Type Descriptor' ; +0x2e, 0x1800634fe\nxor     edx, edx                                                       ; +0x35, 0x180063505\nmov     [rsp+68h+var_48], ebp                                          ; +0x37, 0x180063507\nmov     rcx, r15                                                       ; +0x3b, 0x18006350b\ncall    __RTDynamicCast                                                ; +0x3e, 0x18006350e\nlea     r14, [r15+140h]                                                ; +0x43, 0x180063513\nmov     rax, [r14]                                                     ; +0x4a, 0x18006351a\nmov     rcx, r14                                                       ; +0x4d, 0x18006351d\ncall    qword ptr [rax+10h]                                            ; +0x50, 0x180063520\nmov     rcx, [rax]                                                     ; +0x53, 0x180063523\nmov     rdx, [rcx+60h]                                                 ; +0x56, 0x180063526\nmov     rcx, rax                                                       ; +0x5a, 0x18006352a\ncall    rdx                                                            ; +0x5d, 0x18006352d\nmov     rcx, [rsi+148h]                                                ; +0x5f, 0x18006352f\nmov     rax, [rcx]                                                     ; +0x66, 0x180063536\ncall    qword ptr [rax+58h]                                            ; +0x69, 0x180063539\nmov     rcx, [rax]                                                     ; +0x6c, 0x18006353c\nmov     rdx, [rcx+60h]                                                 ; +0x6f, 0x18006353f\nmov     rcx, rax                                                       ; +0x73, 0x180063543\ncall    rdx                                                            ; +0x76, 0x180063546\nmov     rcx, [rsi+0D0h]; this                                          ; +0x78, 0x180063548\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x7f, 0x18006354f\ntest    eax, eax                                                       ; +0x84, 0x180063554\njnz     short loc_180063589                                            ; +0x86, 0x180063556\nmov     rax, [r14]                                                     ; +0x88, 0x180063558\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x8b, 0x18006355b\nmov     rbx, [rsi+140h]                                                ; +0x90, 0x180063560\nmov     rcx, r14                                                       ; +0x97, 0x180063567\nmov     [rsp+68h+arg_10], rdi                                          ; +0x9a, 0x18006356a\ncall    qword ptr [rax+8]                                              ; +0xa2, 0x180063572\nlea     rcx, [rsi+140h]                                                ; +0xa5, 0x180063575\nmov     rdx, [rax]                                                     ; +0xac, 0x18006357c\ncall    qword ptr [rbx]                                                ; +0xaf, 0x18006357f\nmov     rdi, [rsp+68h+arg_10]                                          ; +0xb1, 0x180063581\nmov     rax, [r14]                                                     ; +0xb9, 0x180063589\nlea     rdx, [rsp+68h+arg_0]                                           ; +0xbc, 0x18006358c\nmov     rcx, r14                                                       ; +0xc1, 0x180063591\ncall    qword ptr [rax+8]                                              ; +0xc4, 0x180063594\nmov     edx, [rax]                                                     ; +0xc7, 0x180063597\ncmp     [rsi+150h], edx                                                ; +0xc9, 0x180063599\njnz     short loc_1800635AF                                            ; +0xcf, 0x18006359f\nmov     rax, [r14]                                                     ; +0xd1, 0x1800635a1\nlea     rdx, [rsp+68h+arg_8]                                           ; +0xd4, 0x1800635a4\nmov     rcx, r14                                                       ; +0xd9, 0x1800635a9\ncall    qword ptr [rax+8]                                              ; +0xdc, 0x1800635ac\nmov     r9d, r12d; int                                                 ; +0xdf, 0x1800635af\nmov     r8d, r13d; int                                                 ; +0xe2, 0x1800635b2\nmov     rdx, r15; struct cocos2d::CCParticleSystem *                   ; +0xe5, 0x1800635b5\nmov     rcx, rsi; this                                                 ; +0xe8, 0x1800635b8\ncall    ?addChildHelper@CCParticleBatchNode@cocos2d@@AEAAIPEAVCCParticleSystem@2@HH@Z; cocos2d::CCParticleBatchNode::addChildHelper(cocos2d::CCParticleSystem *,int,int) ; +0xeb, 0x1800635bb\nmov     r14, [rsp+68h+var_38]                                          ; +0xf0, 0x1800635c0\nmov     r13, [rsp+68h+var_30]                                          ; +0xf5, 0x1800635c5\nmov     r12, [rsp+68h+var_28]                                          ; +0xfa, 0x1800635ca\ntest    eax, eax                                                       ; +0xff, 0x1800635cf\njz      short loc_1800635F9                                            ; +0x101, 0x1800635d1\nmov     rcx, [rsi+0D0h]; this                                          ; +0x103, 0x1800635d3\nlea     edx, [rax-1]; unsigned int                                     ; +0x10a, 0x1800635da\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x10d, 0x1800635dd\nmov     rcx, [rax]                                                     ; +0x112, 0x1800635e2\nmov     ebp, [rax+1C0h]                                                ; +0x115, 0x1800635e5\nmov     rdx, [rcx+5D0h]                                                ; +0x11b, 0x1800635eb\nmov     rcx, rax                                                       ; +0x122, 0x1800635f2\ncall    rdx                                                            ; +0x125, 0x1800635f5\nadd     ebp, eax                                                       ; +0x127, 0x1800635f7\nmov     r8d, ebp; unsigned int                                         ; +0x129, 0x1800635f9\nmov     rdx, r15; struct cocos2d::CCParticleSystem *                   ; +0x12c, 0x1800635fc\nmov     rcx, rsi; this                                                 ; +0x12f, 0x1800635ff\ncall    ?insertChild@CCParticleBatchNode@cocos2d@@QEAAXPEAVCCParticleSystem@2@I@Z; cocos2d::CCParticleBatchNode::insertChild(cocos2d::CCParticleSystem *,uint) ; +0x132, 0x180063602\nmov     rax, [r15]                                                     ; +0x137, 0x180063607\nmov     rdx, rsi                                                       ; +0x13a, 0x18006360a\nmov     rcx, r15                                                       ; +0x13d, 0x18006360d\nadd     rsp, 48h                                                       ; +0x140, 0x180063610\npop     r15                                                            ; +0x144, 0x180063614\npop     rsi                                                            ; +0x146, 0x180063616\npop     rbp                                                            ; +0x147, 0x180063617\npop     rbx                                                            ; +0x148, 0x180063618\njmp     qword ptr [rax+380h]                                           ; +0x149, 0x180063619", "xrefs": ["<???> @ 0x180100768", "<???> @ 0x180142c80", "<???> @ 0x180142cb4", "<???> @ 0x18014cf68", "<???> @ 0x1801bd918"], "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"}