{"type": "func", "start": 6442859488, "end": 6442859814, "name": "cocos2d::CCParticleBatchNode::insertChild", "pseudocode": "// \n// cocos2d::CCParticleBatchNode::insertChild from 0x180063be0 to 0x180063d26 (326 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCParticleBatchNode::addChild @ 0x180063602\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd9b4\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:52 +0000\n// \n\nvoid __fastcall cocos2d::CCParticleBatchNode::insertChild(\n        cocos2d::CCParticleBatchNode *this,\n        struct cocos2d::CCParticleSystem *a2,\n        unsigned int a3)\n{\n  __int64 v3; // rax\n  __int64 v6; // rsi\n  __int64 (__fastcall *v8)(struct cocos2d::CCParticleSystem *); // rdi\n  int v9; // ebx\n  unsigned int v10; // ebx\n  __int64 (__fastcall *v11)(struct cocos2d::CCParticleSystem *); // rdi\n  int v12; // ebx\n  int v13; // eax\n  __int64 (__fastcall *v14)(struct cocos2d::CCParticleSystem *); // rsi\n  int v15; // eax\n  cocos2d::CCTextureAtlas *v16; // rbx\n  unsigned int v17; // eax\n  __int64 v18; // rdi\n  int v19; // ebx\n  int v20; // ebx\n  int v21; // eax\n  cocos2d::CCTextureAtlas *v22; // rbx\n  unsigned int v23; // eax\n\n  v3 = *(_QWORD *)a2;\n  *((_DWORD *)a2 + 112) = a3;\n  v6 = *((_QWORD *)this + 41);\n  v8 = *(__int64 (__fastcall **)(struct cocos2d::CCParticleSystem *))(v3 + 1488);\n  v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 72LL))(v6);\n  v10 = v8(a2) + v9;\n  if ( v10 > (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v6 + 80LL))(v6) )\n  {\n    v11 = *(__int64 (__fastcall **)(struct cocos2d::CCParticleSystem *))(*(_QWORD *)a2 + 1488LL);\n    v12 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 72LL))(*((_QWORD *)this + 41));\n    v13 = v11(a2);\n    cocos2d::CCTextureAtlas::resizeCapacity(*((cocos2d::CCTextureAtlas **)this + 41), v12 + v13);\n    v14 = *(__int64 (__fastcall **)(struct cocos2d::CCParticleSystem *))(*(_QWORD *)a2 + 1488LL);\n    LODWORD(v11) = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 80LL))(*((_QWORD *)this + 41));\n    v15 = v14(a2);\n    v16 = *((cocos2d::CCTextureAtlas **)this + 41);\n    LODWORD(v11) = (_DWORD)v11 - v15;\n    v17 = v14(a2);\n    cocos2d::CCTextureAtlas::fillWithEmptyQuadsFromIndex(v16, (unsigned int)v11, v17);\n  }\n  v18 = *((_QWORD *)this + 41);\n  v19 = *((_DWORD *)a2 + 112);\n  v20 = (*(__int64 (__fastcall **)(struct cocos2d::CCParticleSystem *))(*(_QWORD *)a2 + 1488LL))(a2) + v19;\n  if ( v20 != (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v18 + 72LL))(v18) )\n  {\n    v21 = (*(__int64 (__fastcall **)(struct cocos2d::CCParticleSystem *))(*(_QWORD *)a2 + 1488LL))(a2);\n    cocos2d::CCTextureAtlas::moveQuadsFromIndex(*((cocos2d::CCTextureAtlas **)this + 41), a3, v21 + a3);\n  }\n  v22 = *((cocos2d::CCTextureAtlas **)this + 41);\n  v23 = (*(__int64 (__fastcall **)(struct cocos2d::CCParticleSystem *))(*(_QWORD *)a2 + 1488LL))(a2);\n  cocos2d::CCTextureAtlas::increaseTotalQuadsWith(v22, v23);\n  cocos2d::CCParticleBatchNode::updateAllAtlasIndexes(this);\n}", "assembly": "; \n; cocos2d::CCParticleBatchNode::insertChild from 0x180063be0 to 0x180063d26 (326 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCParticleBatchNode::addChild @ 0x180063602\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd9b4\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:52 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180063be0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180063be5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x180063bea\npush    rdi                                                            ; +0xf, 0x180063bef\npush    r14                                                            ; +0x10, 0x180063bf0\npush    r15                                                            ; +0x12, 0x180063bf2\nsub     rsp, 20h                                                       ; +0x14, 0x180063bf4\nmov     rax, [rdx]                                                     ; +0x18, 0x180063bf8\nmov     rbp, rcx                                                       ; +0x1b, 0x180063bfb\nmov     [rdx+1C0h], r8d                                                ; +0x1e, 0x180063bfe\nmov     r15d, r8d                                                      ; +0x25, 0x180063c05\nmov     rsi, [rcx+148h]                                                ; +0x28, 0x180063c08\nmov     r14, rdx                                                       ; +0x2f, 0x180063c0f\nmov     rcx, rsi                                                       ; +0x32, 0x180063c12\nmov     rdi, [rax+5D0h]                                                ; +0x35, 0x180063c15\nmov     rax, [rsi]                                                     ; +0x3c, 0x180063c1c\ncall    qword ptr [rax+48h]                                            ; +0x3f, 0x180063c1f\nmov     rcx, r14                                                       ; +0x42, 0x180063c22\nmov     ebx, eax                                                       ; +0x45, 0x180063c25\ncall    rdi                                                            ; +0x47, 0x180063c27\nadd     ebx, eax                                                       ; +0x49, 0x180063c29\nmov     rcx, rsi                                                       ; +0x4b, 0x180063c2b\nmov     rax, [rsi]                                                     ; +0x4e, 0x180063c2e\ncall    qword ptr [rax+50h]                                            ; +0x51, 0x180063c31\ncmp     ebx, eax                                                       ; +0x54, 0x180063c34\njbe     short loc_180063CA1                                            ; +0x56, 0x180063c36\nmov     rax, [r14]                                                     ; +0x58, 0x180063c38\nmov     rcx, [rbp+148h]                                                ; +0x5b, 0x180063c3b\nmov     rdi, [rax+5D0h]                                                ; +0x62, 0x180063c42\nmov     rax, [rcx]                                                     ; +0x69, 0x180063c49\ncall    qword ptr [rax+48h]                                            ; +0x6c, 0x180063c4c\nmov     rcx, r14                                                       ; +0x6f, 0x180063c4f\nmov     ebx, eax                                                       ; +0x72, 0x180063c52\ncall    rdi                                                            ; +0x74, 0x180063c54\nmov     rcx, [rbp+148h]; this                                          ; +0x76, 0x180063c56\nlea     edx, [rbx+rax]; unsigned int                                   ; +0x7d, 0x180063c5d\ncall    ?resizeCapacity@CCTextureAtlas@cocos2d@@QEAA_NI@Z; cocos2d::CCTextureAtlas::resizeCapacity(uint) ; +0x80, 0x180063c60\nmov     rax, [r14]                                                     ; +0x85, 0x180063c65\nmov     rcx, [rbp+148h]                                                ; +0x88, 0x180063c68\nmov     rsi, [rax+5D0h]                                                ; +0x8f, 0x180063c6f\nmov     rax, [rcx]                                                     ; +0x96, 0x180063c76\nmov     rbx, rsi                                                       ; +0x99, 0x180063c79\ncall    qword ptr [rax+50h]                                            ; +0x9c, 0x180063c7c\nmov     rcx, r14                                                       ; +0x9f, 0x180063c7f\nmov     edi, eax                                                       ; +0xa2, 0x180063c82\ncall    rbx                                                            ; +0xa4, 0x180063c84\nmov     rbx, [rbp+148h]                                                ; +0xa6, 0x180063c86\nmov     rcx, r14                                                       ; +0xad, 0x180063c8d\nsub     edi, eax                                                       ; +0xb0, 0x180063c90\ncall    rsi                                                            ; +0xb2, 0x180063c92\nmov     r8d, eax; unsigned int                                         ; +0xb4, 0x180063c94\nmov     edx, edi; unsigned int                                         ; +0xb7, 0x180063c97\nmov     rcx, rbx; this                                                 ; +0xb9, 0x180063c99\ncall    ?fillWithEmptyQuadsFromIndex@CCTextureAtlas@cocos2d@@QEAAXII@Z; cocos2d::CCTextureAtlas::fillWithEmptyQuadsFromIndex(uint,uint) ; +0xbc, 0x180063c9c\nmov     rax, [r14]                                                     ; +0xc1, 0x180063ca1\nmov     rcx, r14                                                       ; +0xc4, 0x180063ca4\nmov     rdi, [rbp+148h]                                                ; +0xc7, 0x180063ca7\nmov     ebx, [r14+1C0h]                                                ; +0xce, 0x180063cae\ncall    qword ptr [rax+5D0h]                                           ; +0xd5, 0x180063cb5\nadd     ebx, eax                                                       ; +0xdb, 0x180063cbb\nmov     rcx, rdi                                                       ; +0xdd, 0x180063cbd\nmov     rax, [rdi]                                                     ; +0xe0, 0x180063cc0\ncall    qword ptr [rax+48h]                                            ; +0xe3, 0x180063cc3\ncmp     ebx, eax                                                       ; +0xe6, 0x180063cc6\njz      short loc_180063CE9                                            ; +0xe8, 0x180063cc8\nmov     rax, [r14]                                                     ; +0xea, 0x180063cca\nmov     rcx, r14                                                       ; +0xed, 0x180063ccd\ncall    qword ptr [rax+5D0h]                                           ; +0xf0, 0x180063cd0\nmov     rcx, [rbp+148h]; this                                          ; +0xf6, 0x180063cd6\nmov     edx, r15d; unsigned int                                        ; +0xfd, 0x180063cdd\nlea     r8d, [rax+r15]; unsigned int                                   ; +0x100, 0x180063ce0\ncall    ?moveQuadsFromIndex@CCTextureAtlas@cocos2d@@QEAAXII@Z; cocos2d::CCTextureAtlas::moveQuadsFromIndex(uint,uint) ; +0x104, 0x180063ce4\nmov     rax, [r14]                                                     ; +0x109, 0x180063ce9\nmov     rcx, r14                                                       ; +0x10c, 0x180063cec\nmov     rbx, [rbp+148h]                                                ; +0x10f, 0x180063cef\ncall    qword ptr [rax+5D0h]                                           ; +0x116, 0x180063cf6\nmov     edx, eax; unsigned int                                         ; +0x11c, 0x180063cfc\nmov     rcx, rbx; this                                                 ; +0x11e, 0x180063cfe\ncall    ?increaseTotalQuadsWith@CCTextureAtlas@cocos2d@@QEAAXI@Z; cocos2d::CCTextureAtlas::increaseTotalQuadsWith(uint) ; +0x121, 0x180063d01\nmov     rcx, rbp; this                                                 ; +0x126, 0x180063d06\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x129, 0x180063d09\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x12e, 0x180063d0e\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x133, 0x180063d13\nadd     rsp, 20h                                                       ; +0x138, 0x180063d18\npop     r15                                                            ; +0x13c, 0x180063d1c\npop     r14                                                            ; +0x13e, 0x180063d1e\npop     rdi                                                            ; +0x140, 0x180063d20\njmp     ?updateAllAtlasIndexes@CCParticleBatchNode@cocos2d@@AEAAXXZ; cocos2d::CCParticleBatchNode::updateAllAtlasIndexes(void) ; +0x141, 0x180063d21", "xrefs": ["cocos2d::CCParticleBatchNode::addChild @ 0x180063602", "<???> @ 0x18014cf68", "<???> @ 0x1801bd9b4"], "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"}