{"type": "func", "start": 6443033504, "end": 6443033719, "name": "cocos2d::CCSpriteBatchNode::draw", "pseudocode": "// \n// cocos2d::CCSpriteBatchNode::draw from 0x18008e3a0 to 0x18008e477 (215 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800ec550\n// > <???> @ 0x180103f50\n// > <???> @ 0x180105cb8\n// > <???> @ 0x18013d90c\n// > <???> @ 0x18013d940\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5fac\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::CCSpriteBatchNode::draw(cocos2d::CCSpriteBatchNode *this, float a2)\n{\n  cocos2d::CCGLProgram *v3; // rax\n  unsigned int v4; // edx\n  cocos2d::CCGLProgram *v5; // rax\n  cocos2d::CCArray *m_pChildren; // rbx\n  cocos2d::ccArray *data; // rbx\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rbx\n  cocos2d::CCObject **i; // rsi\n\n  if ( ((unsigned int (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getTotalQuads)(this->m_pobTextureAtlas) )\n  {\n    cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)(unsigned int)this->m_eGLServerState, a2);\n    ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *))this->getShaderProgram)(this);\n    v3 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))this->getShaderProgram)(this);\n    cocos2d::CCGLProgram::use(v3, v4);\n    v5 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))this->getShaderProgram)(this);\n    cocos2d::CCGLProgram::setUniformsForBuiltins(v5);\n    m_pChildren = this->m_pChildren;\n    if ( m_pChildren )\n    {\n      data = m_pChildren->data;\n      num = data->num;\n      if ( (_DWORD)num )\n      {\n        arr = data->arr;\n        for ( i = &arr[num - 1]; arr <= i; ++arr )\n        {\n          if ( !*arr )\n            break;\n          ((void (__fastcall *)(cocos2d::CCObject *))(*arr)->__vftable[10].canEncode)(*arr);\n        }\n      }\n    }\n    cocos2d::ccGLBlendFunc(this->m_blendFunc.src, this->m_blendFunc.dst);\n    cocos2d::CCTextureAtlas::drawQuads(this->m_pobTextureAtlas);\n  }\n}", "assembly": "; \n; cocos2d::CCSpriteBatchNode::draw from 0x18008e3a0 to 0x18008e477 (215 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800ec550\n; > <???> @ 0x180103f50\n; > <???> @ 0x180105cb8\n; > <???> @ 0x18013d90c\n; > <???> @ 0x18013d940\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5fac\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    rdi                                                            ; +0x0, 0x18008e3a0\nsub     rsp, 20h                                                       ; +0x2, 0x18008e3a2\nmov     rdi, rcx                                                       ; +0x6, 0x18008e3a6\nmov     rcx, [rcx+148h]                                                ; +0x9, 0x18008e3a9\nmov     rax, [rcx]                                                     ; +0x10, 0x18008e3b0\ncall    qword ptr [rax+48h]                                            ; +0x13, 0x18008e3b3\ntest    eax, eax                                                       ; +0x16, 0x18008e3b6\njz      loc_18008E471                                                  ; +0x18, 0x18008e3b8\nmov     ecx, [rdi+0F8h]; this                                          ; +0x1e, 0x18008e3be\nmov     [rsp+28h+arg_0], rbx                                           ; +0x24, 0x18008e3c4\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x29, 0x18008e3c9\nmov     rax, [rdi]                                                     ; +0x2e, 0x18008e3ce\nmov     rcx, rdi                                                       ; +0x31, 0x18008e3d1\ncall    qword ptr [rax+278h]                                           ; +0x34, 0x18008e3d4\nmov     rax, [rdi]                                                     ; +0x3a, 0x18008e3da\nmov     rcx, rdi                                                       ; +0x3d, 0x18008e3dd\ncall    qword ptr [rax+278h]                                           ; +0x40, 0x18008e3e0\nmov     rcx, rax; this                                                 ; +0x46, 0x18008e3e6\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x49, 0x18008e3e9\nmov     rax, [rdi]                                                     ; +0x4e, 0x18008e3ee\nmov     rcx, rdi                                                       ; +0x51, 0x18008e3f1\ncall    qword ptr [rax+278h]                                           ; +0x54, 0x18008e3f4\nmov     rcx, rax; this                                                 ; +0x5a, 0x18008e3fa\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x5d, 0x18008e3fd\nmov     rbx, [rdi+0D0h]                                                ; +0x62, 0x18008e402\ntest    rbx, rbx                                                       ; +0x69, 0x18008e409\njz      short loc_18008E44F                                            ; +0x6c, 0x18008e40c\nmov     rbx, [rbx+38h]                                                 ; +0x6e, 0x18008e40e\nmov     eax, [rbx]                                                     ; +0x72, 0x18008e412\ntest    eax, eax                                                       ; +0x74, 0x18008e414\njz      short loc_18008E44F                                            ; +0x76, 0x18008e416\nmov     rbx, [rbx+10h]                                                 ; +0x78, 0x18008e418\nmov     [rsp+28h+arg_8], rsi                                           ; +0x7c, 0x18008e41c\nlea     rsi, [rax-1]                                                   ; +0x81, 0x18008e421\nlea     rsi, [rbx+rsi*8]                                               ; +0x85, 0x18008e425\ncmp     rbx, rsi                                                       ; +0x89, 0x18008e429\nja      short loc_18008E44A                                            ; +0x8c, 0x18008e42c\nxchg    ax, ax                                                         ; +0x8e, 0x18008e42e\nmov     rcx, [rbx]                                                     ; +0x90, 0x18008e430\ntest    rcx, rcx                                                       ; +0x93, 0x18008e433\njz      short loc_18008E44A                                            ; +0x96, 0x18008e436\nmov     rax, [rcx]                                                     ; +0x98, 0x18008e438\ncall    qword ptr [rax+300h]                                           ; +0x9b, 0x18008e43b\nadd     rbx, 8                                                         ; +0xa1, 0x18008e441\ncmp     rbx, rsi                                                       ; +0xa5, 0x18008e445\njbe     short loc_18008E430                                            ; +0xa8, 0x18008e448\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xaa, 0x18008e44a\nmov     edx, [rdi+154h]; dfactor                                       ; +0xaf, 0x18008e44f\nmov     ecx, [rdi+150h]; sfactor                                       ; +0xb5, 0x18008e455\ncall    ?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0xbb, 0x18008e45b\nmov     rcx, [rdi+148h]; this                                          ; +0xc0, 0x18008e460\ncall    ?drawQuads@CCTextureAtlas@cocos2d@@QEAAXXZ; cocos2d::CCTextureAtlas::drawQuads(void) ; +0xc7, 0x18008e467\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xcc, 0x18008e46c\nadd     rsp, 20h                                                       ; +0xd1, 0x18008e471\npop     rdi                                                            ; +0xd5, 0x18008e475\nretn                                                                   ; +0xd6, 0x18008e476", "xrefs": ["<???> @ 0x1800ec550", "<???> @ 0x180103f50", "<???> @ 0x180105cb8", "<???> @ 0x18013d90c", "<???> @ 0x18013d940", "<???> @ 0x1801438a8", "<???> @ 0x1801b5fac"], "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"}