{"type": "func", "start": 6442538352, "end": 6442538606, "name": "cocos2d::CCDrawNode::render", "pseudocode": "// \n// cocos2d::CCDrawNode::render from 0x180015570 to 0x18001566e (254 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDrawNode::draw @ 0x1800120e1\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae4b8\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::CCDrawNode::render(cocos2d::CCDrawNode *this, unsigned int a2)\n{\n  if ( this->m_bDirty )\n  {\n    _glewBindBuffer(34962, this->m_uVbo);\n    _glewBufferData(34962, 20LL * this->m_uBufferCapacity, this->m_pBuffer);\n    this->m_bDirty = 0;\n  }\n  cocos2d::ccGLEnableVertexAttribs((cocos2d *)3, a2);\n  _glewBindBuffer(34962, this->m_uVbo);\n  _glewVertexAttribPointer(0, 2, 5126);\n  _glewVertexAttribPointer(1, 4, 5121);\n  glDrawArrays(4u, 0, this->m_nBufferCount);\n  _glewBindBuffer(34962, 0);\n  ++g_uNumberOfDraws;\n}", "assembly": "; \n; cocos2d::CCDrawNode::render from 0x180015570 to 0x18001566e (254 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDrawNode::draw @ 0x1800120e1\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae4b8\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180015570\npush    rdi                                                            ; +0x5, 0x180015575\nsub     rsp, 30h                                                       ; +0x6, 0x180015576\ncmp     byte ptr [rcx+178h], 0                                         ; +0xa, 0x18001557a\nmov     rbx, rcx                                                       ; +0x11, 0x180015581\njz      short loc_1800155C9                                            ; +0x14, 0x180015584\nmov     edx, [rcx+15Ch]                                                ; +0x16, 0x180015586\nmov     ecx, 8892h                                                     ; +0x1c, 0x18001558c\nmov     rax, cs:__glewBindBuffer                                       ; +0x21, 0x180015591\ncall    qword ptr [rax]                                                ; +0x28, 0x180015598\nmov     eax, [rbx+160h]                                                ; +0x2a, 0x18001559a\nmov     r9d, 88E0h                                                     ; +0x30, 0x1800155a0\nmov     r8, [rbx+168h]                                                 ; +0x36, 0x1800155a6\nlea     rdx, [rax+rax*4]                                               ; +0x3d, 0x1800155ad\nmov     rax, cs:__glewBufferData                                       ; +0x41, 0x1800155b1\nshl     rdx, 2                                                         ; +0x48, 0x1800155b8\nlea     ecx, [r9-4Eh]                                                  ; +0x4c, 0x1800155bc\ncall    qword ptr [rax]                                                ; +0x50, 0x1800155c0\nmov     byte ptr [rbx+178h], 0                                         ; +0x52, 0x1800155c2\nmov     ecx, 3; this                                                   ; +0x59, 0x1800155c9\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x5e, 0x1800155ce\nmov     rax, cs:__glewBindBuffer                                       ; +0x63, 0x1800155d3\nmov     ecx, 8892h                                                     ; +0x6a, 0x1800155da\nmov     edx, [rbx+15Ch]                                                ; +0x6f, 0x1800155df\ncall    qword ptr [rax]                                                ; +0x75, 0x1800155e5\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x77, 0x1800155e7\nxor     r9d, r9d                                                       ; +0x7e, 0x1800155ee\nmov     [rsp+38h+var_10], 0                                            ; +0x81, 0x1800155f1\nxor     ecx, ecx                                                       ; +0x8a, 0x1800155fa\nmov     r8d, 1406h                                                     ; +0x8c, 0x1800155fc\nmov     [rsp+38h+var_18], 14h                                          ; +0x92, 0x180015602\nlea     edx, [r9+2]                                                    ; +0x9a, 0x18001560a\ncall    qword ptr [rax]                                                ; +0x9e, 0x18001560e\nmov     rax, cs:__glewVertexAttribPointer                              ; +0xa0, 0x180015610\nmov     edx, 4                                                         ; +0xa7, 0x180015617\nmov     [rsp+38h+var_10], 8                                            ; +0xac, 0x18001561c\nmov     r9b, 1                                                         ; +0xb5, 0x180015625\nmov     r8d, 1401h                                                     ; +0xb8, 0x180015628\nmov     [rsp+38h+var_18], 14h                                          ; +0xbe, 0x18001562e\nlea     ecx, [rdx-3]                                                   ; +0xc6, 0x180015636\ncall    qword ptr [rax]                                                ; +0xc9, 0x180015639\nmov     r8d, [rbx+164h]; count                                         ; +0xcb, 0x18001563b\nxor     edx, edx; first                                                ; +0xd2, 0x180015642\nlea     ecx, [rdx+4]; mode                                             ; +0xd4, 0x180015644\ncall    cs:glDrawArrays                                                ; +0xd7, 0x180015647\nmov     rax, cs:__glewBindBuffer                                       ; +0xdd, 0x18001564d\nxor     edx, edx                                                       ; +0xe4, 0x180015654\nmov     ecx, 8892h                                                     ; +0xe6, 0x180015656\ncall    qword ptr [rax]                                                ; +0xeb, 0x18001565b\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0xed, 0x18001565d\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xf3, 0x180015663\nadd     rsp, 30h                                                       ; +0xf8, 0x180015668\npop     rdi                                                            ; +0xfc, 0x18001566c\nretn                                                                   ; +0xfd, 0x18001566d", "xrefs": ["cocos2d::CCDrawNode::draw @ 0x1800120e1", "<???> @ 0x1801438a8", "<???> @ 0x1801ae4b8"], "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"}