{"type": "func", "start": 6442849536, "end": 6442849665, "name": "cocos2d::CCParticleBatchNode::draw", "pseudocode": "// \n// cocos2d::CCParticleBatchNode::draw from 0x180061500 to 0x180061581 (129 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800fa360\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3630\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::draw(cocos2d::CCParticleBatchNode *this, float a2)\n{\n  cocos2d::CCGLProgram *v3; // rax\n  cocos2d::CCGLProgram *v4; // rax\n  unsigned int v5; // r8d\n\n  if ( ((unsigned int (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pTextureAtlas->getTotalQuads)(this->m_pTextureAtlas) )\n  {\n    cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)(unsigned int)this->m_eGLServerState, a2);\n    ((void (__fastcall *)(cocos2d::CCParticleBatchNode *))this->getShaderProgram)(this);\n    v3 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCParticleBatchNode *))this->getShaderProgram)(this);\n    cocos2d::CCGLProgram::use(v3);\n    v4 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCParticleBatchNode *))this->getShaderProgram)(this);\n    cocos2d::CCGLProgram::setUniformsForBuiltins(v4);\n    cocos2d::ccGLBlendFunc(this->m_tBlendFunc.src, this->m_tBlendFunc.dst, v5);\n    cocos2d::CCTextureAtlas::drawQuads(this->m_pTextureAtlas);\n  }\n}", "assembly": "; \n; cocos2d::CCParticleBatchNode::draw from 0x180061500 to 0x180061581 (129 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800fa360\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3630\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, 0x180061500\nsub     rsp, 20h                                                       ; +0x2, 0x180061502\nmov     rbx, rcx                                                       ; +0x6, 0x180061506\nmov     rcx, [rcx+148h]                                                ; +0x9, 0x180061509\nmov     rax, [rcx]                                                     ; +0x10, 0x180061510\ncall    qword ptr [rax+48h]                                            ; +0x13, 0x180061513\ntest    eax, eax                                                       ; +0x16, 0x180061516\njz      short loc_18006157B                                            ; +0x18, 0x180061518\nmov     ecx, [rbx+0F8h]; this                                          ; +0x1a, 0x18006151a\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x20, 0x180061520\nmov     rax, [rbx]                                                     ; +0x25, 0x180061525\nmov     rcx, rbx                                                       ; +0x28, 0x180061528\ncall    qword ptr [rax+278h]                                           ; +0x2b, 0x18006152b\nmov     rax, [rbx]                                                     ; +0x31, 0x180061531\nmov     rcx, rbx                                                       ; +0x34, 0x180061534\ncall    qword ptr [rax+278h]                                           ; +0x37, 0x180061537\nmov     rcx, rax; this                                                 ; +0x3d, 0x18006153d\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x40, 0x180061540\nmov     rax, [rbx]                                                     ; +0x45, 0x180061545\nmov     rcx, rbx                                                       ; +0x48, 0x180061548\ncall    qword ptr [rax+278h]                                           ; +0x4b, 0x18006154b\nmov     rcx, rax; this                                                 ; +0x51, 0x180061551\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x54, 0x180061554\nmov     edx, [rbx+154h]; dfactor                                       ; +0x59, 0x180061559\nmov     ecx, [rbx+150h]; sfactor                                       ; +0x5f, 0x18006155f\ncall    ?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x65, 0x180061565\nmov     rcx, [rbx+148h]; this                                          ; +0x6a, 0x18006156a\nadd     rsp, 20h                                                       ; +0x71, 0x180061571\npop     rbx                                                            ; +0x75, 0x180061575\njmp     ?drawQuads@CCTextureAtlas@cocos2d@@QEAAXXZ; cocos2d::CCTextureAtlas::drawQuads(void) ; +0x76, 0x180061576\nadd     rsp, 20h                                                       ; +0x7b, 0x18006157b\npop     rbx                                                            ; +0x7f, 0x18006157f\nretn                                                                   ; +0x80, 0x180061580", "xrefs": ["<???> @ 0x1800fa360", "<???> @ 0x1801438a8", "<???> @ 0x1801b3630"], "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"}