{"type": "func", "start": 6443046352, "end": 6443046567, "name": "cocos2d::CCSpriteBatchNode::draw", "pseudocode": "// \n// cocos2d::CCSpriteBatchNode::draw from 0x1800915d0 to 0x1800916a7 (215 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800f2670\n// > <???> @ 0x18010a628\n// > <???> @ 0x18010c3b8\n// > <???> @ 0x180146b9c\n// > <???> @ 0x180146bd0\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0264\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:22:08 +0000\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  __int64 v6; // rbx\n  unsigned int *v7; // rbx\n  __int64 v8; // rax\n  _QWORD *v9; // rbx\n  _QWORD *i; // rsi\n\n  if ( (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 72LL))(*((_QWORD *)this + 41)) )\n  {\n    cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)*((unsigned int *)this + 62), a2);\n    (*(void (__fastcall **)(cocos2d::CCSpriteBatchNode *))(*(_QWORD *)this + 648LL))(this);\n    v3 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(cocos2d::CCSpriteBatchNode *))(*(_QWORD *)this + 648LL))(this);\n    cocos2d::CCGLProgram::use(v3, v4);\n    v5 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(cocos2d::CCSpriteBatchNode *))(*(_QWORD *)this + 648LL))(this);\n    cocos2d::CCGLProgram::setUniformsForBuiltins(v5);\n    v6 = *((_QWORD *)this + 26);\n    if ( v6 )\n    {\n      v7 = *(unsigned int **)(v6 + 56);\n      v8 = *v7;\n      if ( (_DWORD)v8 )\n      {\n        v9 = *((_QWORD **)v7 + 2);\n        for ( i = &v9[v8 - 1]; v9 <= i; ++v9 )\n        {\n          if ( !*v9 )\n            break;\n          (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v9 + 784LL))(*v9);\n        }\n      }\n    }\n    cocos2d::ccGLBlendFunc(*((_DWORD *)this + 84), *((_DWORD *)this + 85));\n    cocos2d::CCTextureAtlas::drawQuads(*((cocos2d::CCTextureAtlas **)this + 41));\n  }\n}", "assembly": "; \n; cocos2d::CCSpriteBatchNode::draw from 0x1800915d0 to 0x1800916a7 (215 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800f2670\n; > <???> @ 0x18010a628\n; > <???> @ 0x18010c3b8\n; > <???> @ 0x180146b9c\n; > <???> @ 0x180146bd0\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0264\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:22:08 +0000\n; \npush    rdi                                                            ; +0x0, 0x1800915d0\nsub     rsp, 20h                                                       ; +0x2, 0x1800915d2\nmov     rdi, rcx                                                       ; +0x6, 0x1800915d6\nmov     rcx, [rcx+148h]                                                ; +0x9, 0x1800915d9\nmov     rax, [rcx]                                                     ; +0x10, 0x1800915e0\ncall    qword ptr [rax+48h]                                            ; +0x13, 0x1800915e3\ntest    eax, eax                                                       ; +0x16, 0x1800915e6\njz      loc_1800916A1                                                  ; +0x18, 0x1800915e8\nmov     ecx, [rdi+0F8h]; this                                          ; +0x1e, 0x1800915ee\nmov     [rsp+28h+arg_0], rbx                                           ; +0x24, 0x1800915f4\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x29, 0x1800915f9\nmov     rax, [rdi]                                                     ; +0x2e, 0x1800915fe\nmov     rcx, rdi                                                       ; +0x31, 0x180091601\ncall    qword ptr [rax+288h]                                           ; +0x34, 0x180091604\nmov     rax, [rdi]                                                     ; +0x3a, 0x18009160a\nmov     rcx, rdi                                                       ; +0x3d, 0x18009160d\ncall    qword ptr [rax+288h]                                           ; +0x40, 0x180091610\nmov     rcx, rax; this                                                 ; +0x46, 0x180091616\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x49, 0x180091619\nmov     rax, [rdi]                                                     ; +0x4e, 0x18009161e\nmov     rcx, rdi                                                       ; +0x51, 0x180091621\ncall    qword ptr [rax+288h]                                           ; +0x54, 0x180091624\nmov     rcx, rax; this                                                 ; +0x5a, 0x18009162a\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x5d, 0x18009162d\nmov     rbx, [rdi+0D0h]                                                ; +0x62, 0x180091632\ntest    rbx, rbx                                                       ; +0x69, 0x180091639\njz      short loc_18009167F                                            ; +0x6c, 0x18009163c\nmov     rbx, [rbx+38h]                                                 ; +0x6e, 0x18009163e\nmov     eax, [rbx]                                                     ; +0x72, 0x180091642\ntest    eax, eax                                                       ; +0x74, 0x180091644\njz      short loc_18009167F                                            ; +0x76, 0x180091646\nmov     rbx, [rbx+10h]                                                 ; +0x78, 0x180091648\nmov     [rsp+28h+arg_8], rsi                                           ; +0x7c, 0x18009164c\nlea     rsi, [rax-1]                                                   ; +0x81, 0x180091651\nlea     rsi, [rbx+rsi*8]                                               ; +0x85, 0x180091655\ncmp     rbx, rsi                                                       ; +0x89, 0x180091659\nja      short loc_18009167A                                            ; +0x8c, 0x18009165c\nxchg    ax, ax                                                         ; +0x8e, 0x18009165e\nmov     rcx, [rbx]                                                     ; +0x90, 0x180091660\ntest    rcx, rcx                                                       ; +0x93, 0x180091663\njz      short loc_18009167A                                            ; +0x96, 0x180091666\nmov     rax, [rcx]                                                     ; +0x98, 0x180091668\ncall    qword ptr [rax+310h]                                           ; +0x9b, 0x18009166b\nadd     rbx, 8                                                         ; +0xa1, 0x180091671\ncmp     rbx, rsi                                                       ; +0xa5, 0x180091675\njbe     short loc_180091660                                            ; +0xa8, 0x180091678\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xaa, 0x18009167a\nmov     edx, [rdi+154h]; dfactor                                       ; +0xaf, 0x18009167f\nmov     ecx, [rdi+150h]; sfactor                                       ; +0xb5, 0x180091685\ncall    ?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0xbb, 0x18009168b\nmov     rcx, [rdi+148h]; this                                          ; +0xc0, 0x180091690\ncall    ?drawQuads@CCTextureAtlas@cocos2d@@QEAAXXZ; cocos2d::CCTextureAtlas::drawQuads(void) ; +0xc7, 0x180091697\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xcc, 0x18009169c\nadd     rsp, 20h                                                       ; +0xd1, 0x1800916a1\npop     rdi                                                            ; +0xd5, 0x1800916a5\nretn                                                                   ; +0xd6, 0x1800916a6", "xrefs": ["<???> @ 0x1800f2670", "<???> @ 0x18010a628", "<???> @ 0x18010c3b8", "<???> @ 0x180146b9c", "<???> @ 0x180146bd0", "<???> @ 0x18014cf68", "<???> @ 0x1801c0264"], "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"}