{"type": "func", "start": 6442848448, "end": 6442848778, "name": "cocos2d::CCParticleBatchNode::addChild", "pseudocode": "// \n// cocos2d::CCParticleBatchNode::addChild from 0x1800610c0 to 0x18006120a (330 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800fa240\n// > <???> @ 0x1801398f0\n// > <???> @ 0x180139924\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b35c4\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\nvoid __fastcall cocos2d::CCParticleBatchNode::addChild(\n        cocos2d::CCParticleBatchNode *this,\n        struct cocos2d::CCParticleSystem *a2,\n        int a3,\n        int a4)\n{\n  unsigned int v8; // ebp\n  struct cocos2d::CCNode *v9; // r14\n  __int64 v10; // rax\n  __int64 v11; // rax\n  cocos2d::CCTextureProtocol_vtbl *v12; // rdi\n  _QWORD *v13; // rax\n  unsigned int v14; // eax\n  struct cocos2d::CCString *v15; // rbx\n  char v16; // [rsp+70h] [rbp+8h] BYREF\n  char v17; // [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 = (struct cocos2d::CCNode *)&a2->cocos2d::CCTextureProtocol;\n  v10 = ((__int64 (__fastcall *)(cocos2d::CCTextureProtocol *))a2->getTexture)(&a2->cocos2d::CCTextureProtocol);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 96LL))(v10);\n  v11 = ((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pTextureAtlas->getTexture)(this->m_pTextureAtlas);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 96LL))(v11);\n  if ( !(unsigned int)cocos2d::CCArray::count(this->m_pChildren) )\n  {\n    v12 = this->cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable;\n    v13 = (_QWORD *)((__int64 (__fastcall *)(cocos2d::CCTextureProtocol *, char *))v9->~CCNode)(\n                      &a2->cocos2d::CCTextureProtocol,\n                      &v16);\n    ((void (__fastcall *)(cocos2d::CCTextureProtocol *, _QWORD))v12->setBlendFunc)(\n      &this->cocos2d::CCTextureProtocol,\n      *v13);\n  }\n  if ( this->m_tBlendFunc.src == *(_DWORD *)((__int64 (__fastcall *)(cocos2d::CCTextureProtocol *, char *))v9->~CCNode)(\n                                              &a2->cocos2d::CCTextureProtocol,\n                                              &v16) )\n    ((void (__fastcall *)(cocos2d::CCTextureProtocol *, char *))v9->~CCNode)(&a2->cocos2d::CCTextureProtocol, &v17);\n  v14 = cocos2d::CCParticleBatchNode::addChildHelper(this, a2, a3, a4);\n  if ( v14 )\n  {\n    v15 = cocos2d::CCArray::stringAtIndex(this->m_pChildren, v14 - 1);\n    v8 = v15[5].m_uID + ((__int64 (__fastcall *)(struct cocos2d::CCString *))v15->__vftable[20].update)(v15);\n  }\n  cocos2d::CCParticleBatchNode::insertChild(this, a2, v8);\n  ((void (__fastcall *)(struct cocos2d::CCParticleSystem *, cocos2d::CCParticleBatchNode *))a2->setBatchNode)(a2, this);\n}", "assembly": "; \n; cocos2d::CCParticleBatchNode::addChild from 0x1800610c0 to 0x18006120a (330 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800fa240\n; > <???> @ 0x1801398f0\n; > <???> @ 0x180139924\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b35c4\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\npush    rbx                                                            ; +0x0, 0x1800610c0\npush    rbp                                                            ; +0x2, 0x1800610c2\npush    rsi                                                            ; +0x3, 0x1800610c3\npush    r15                                                            ; +0x4, 0x1800610c4\nsub     rsp, 48h                                                       ; +0x6, 0x1800610c6\nmov     [rsp+68h+var_28], r12                                          ; +0xa, 0x1800610ca\nmov     r15, rdx                                                       ; +0xf, 0x1800610cf\nmov     [rsp+68h+var_30], r13                                          ; +0x12, 0x1800610d2\nmov     r12d, r9d                                                      ; +0x17, 0x1800610d7\nmov     r13d, r8d                                                      ; +0x1a, 0x1800610da\nmov     [rsp+68h+var_38], r14                                          ; +0x1d, 0x1800610dd\nmov     rsi, rcx                                                       ; +0x22, 0x1800610e2\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x25, 0x1800610e5\nxor     ebp, ebp                                                       ; +0x2c, 0x1800610ec\nlea     r9, ??_R0?AVCCParticleSystem@cocos2d@@@8; cocos2d::CCParticleSystem `RTTI Type Descriptor' ; +0x2e, 0x1800610ee\nxor     edx, edx                                                       ; +0x35, 0x1800610f5\nmov     [rsp+68h+var_48], ebp                                          ; +0x37, 0x1800610f7\nmov     rcx, r15                                                       ; +0x3b, 0x1800610fb\ncall    __RTDynamicCast                                                ; +0x3e, 0x1800610fe\nlea     r14, [r15+140h]                                                ; +0x43, 0x180061103\nmov     rax, [r14]                                                     ; +0x4a, 0x18006110a\nmov     rcx, r14                                                       ; +0x4d, 0x18006110d\ncall    qword ptr [rax+10h]                                            ; +0x50, 0x180061110\nmov     rcx, rax                                                       ; +0x53, 0x180061113\nmov     rdx, [rax]                                                     ; +0x56, 0x180061116\ncall    qword ptr [rdx+60h]                                            ; +0x59, 0x180061119\nmov     rcx, [rsi+148h]                                                ; +0x5c, 0x18006111c\nmov     rax, [rcx]                                                     ; +0x63, 0x180061123\ncall    qword ptr [rax+58h]                                            ; +0x66, 0x180061126\nmov     rcx, rax                                                       ; +0x69, 0x180061129\nmov     rdx, [rax]                                                     ; +0x6c, 0x18006112c\ncall    qword ptr [rdx+60h]                                            ; +0x6f, 0x18006112f\nmov     rcx, [rsi+0D0h]; this                                          ; +0x72, 0x180061132\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x79, 0x180061139\ntest    eax, eax                                                       ; +0x7e, 0x18006113e\njnz     short loc_180061173                                            ; +0x80, 0x180061140\nmov     rax, [r14]                                                     ; +0x82, 0x180061142\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x85, 0x180061145\nmov     [rsp+68h+arg_10], rdi                                          ; +0x8a, 0x18006114a\nmov     rcx, r14                                                       ; +0x92, 0x180061152\nmov     rdi, [rsi+140h]                                                ; +0x95, 0x180061155\ncall    qword ptr [rax+8]                                              ; +0x9c, 0x18006115c\nlea     rcx, [rsi+140h]                                                ; +0x9f, 0x18006115f\nmov     rdx, [rax]                                                     ; +0xa6, 0x180061166\ncall    qword ptr [rdi]                                                ; +0xa9, 0x180061169\nmov     rdi, [rsp+68h+arg_10]                                          ; +0xab, 0x18006116b\nmov     rax, [r14]                                                     ; +0xb3, 0x180061173\nlea     rdx, [rsp+68h+arg_0]                                           ; +0xb6, 0x180061176\nmov     rcx, r14                                                       ; +0xbb, 0x18006117b\ncall    qword ptr [rax+8]                                              ; +0xbe, 0x18006117e\nmov     edx, [rax]                                                     ; +0xc1, 0x180061181\ncmp     [rsi+150h], edx                                                ; +0xc3, 0x180061183\njnz     short loc_180061199                                            ; +0xc9, 0x180061189\nmov     rax, [r14]                                                     ; +0xcb, 0x18006118b\nlea     rdx, [rsp+68h+arg_8]                                           ; +0xce, 0x18006118e\nmov     rcx, r14                                                       ; +0xd3, 0x180061193\ncall    qword ptr [rax+8]                                              ; +0xd6, 0x180061196\nmov     r9d, r12d; int                                                 ; +0xd9, 0x180061199\nmov     r8d, r13d; int                                                 ; +0xdc, 0x18006119c\nmov     rdx, r15; struct cocos2d::CCParticleSystem *                   ; +0xdf, 0x18006119f\nmov     rcx, rsi; this                                                 ; +0xe2, 0x1800611a2\ncall    ?addChildHelper@CCParticleBatchNode@cocos2d@@AEAAIPEAVCCParticleSystem@2@HH@Z; cocos2d::CCParticleBatchNode::addChildHelper(cocos2d::CCParticleSystem *,int,int) ; +0xe5, 0x1800611a5\nmov     r14, [rsp+68h+var_38]                                          ; +0xea, 0x1800611aa\nmov     r13, [rsp+68h+var_30]                                          ; +0xef, 0x1800611af\nmov     r12, [rsp+68h+var_28]                                          ; +0xf4, 0x1800611b4\ntest    eax, eax                                                       ; +0xf9, 0x1800611b9\njz      short loc_1800611E3                                            ; +0xfb, 0x1800611bb\nmov     rcx, [rsi+0D0h]; this                                          ; +0xfd, 0x1800611bd\nlea     edx, [rax-1]; unsigned int                                     ; +0x104, 0x1800611c4\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x107, 0x1800611c7\nmov     rcx, rax                                                       ; +0x10c, 0x1800611cc\nmov     rbx, rax                                                       ; +0x10f, 0x1800611cf\nmov     rdx, [rax]                                                     ; +0x112, 0x1800611d2\ncall    qword ptr [rdx+5C0h]                                           ; +0x115, 0x1800611d5\nmov     ebp, eax                                                       ; +0x11b, 0x1800611db\nadd     ebp, [rbx+1C0h]                                                ; +0x11d, 0x1800611dd\nmov     r8d, ebp; unsigned int                                         ; +0x123, 0x1800611e3\nmov     rdx, r15; struct cocos2d::CCParticleSystem *                   ; +0x126, 0x1800611e6\nmov     rcx, rsi; this                                                 ; +0x129, 0x1800611e9\ncall    ?insertChild@CCParticleBatchNode@cocos2d@@QEAAXPEAVCCParticleSystem@2@I@Z; cocos2d::CCParticleBatchNode::insertChild(cocos2d::CCParticleSystem *,uint) ; +0x12c, 0x1800611ec\nmov     rax, [r15]                                                     ; +0x131, 0x1800611f1\nmov     rdx, rsi                                                       ; +0x134, 0x1800611f4\nmov     rcx, r15                                                       ; +0x137, 0x1800611f7\nadd     rsp, 48h                                                       ; +0x13a, 0x1800611fa\npop     r15                                                            ; +0x13e, 0x1800611fe\npop     rsi                                                            ; +0x140, 0x180061200\npop     rbp                                                            ; +0x141, 0x180061201\npop     rbx                                                            ; +0x142, 0x180061202\njmp     qword ptr [rax+370h]                                           ; +0x143, 0x180061203", "xrefs": ["<???> @ 0x1800fa240", "<???> @ 0x1801398f0", "<???> @ 0x180139924", "<???> @ 0x1801438a8", "<???> @ 0x1801b35c4"], "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"}