{"type": "func", "start": 6442538160, "end": 6442538444, "name": "cocos2d::CCDrawNode::render", "pseudocode": "// \n// cocos2d::CCDrawNode::render from 0x1800154b0 to 0x1800155cc (284 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDrawNode::draw @ 0x1800122c1\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b856c\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:21:23 +0000\n// \n\nvoid __fastcall cocos2d::CCDrawNode::render(cocos2d::CCDrawNode *this, unsigned int a2)\n{\n  __int64 v3; // r9\n\n  if ( *((_BYTE *)this + 376) )\n  {\n    _glewBindBuffer(34962, *((unsigned int *)this + 87));\n    _glewBufferData(34962, 20LL * *((unsigned int *)this + 88), *((_QWORD *)this + 45), 35040);\n    *((_BYTE *)this + 376) = 0;\n  }\n  cocos2d::ccGLEnableVertexAttribs((cocos2d *)3, a2);\n  _glewBindBuffer(34962, *((unsigned int *)this + 87));\n  _glewVertexAttribPointer(0, 2, 5126, 0, 20, 0);\n  LOBYTE(v3) = 1;\n  _glewVertexAttribPointer(1, 4, 5121, v3, 20, 8);\n  glDrawArrays(4u, 0, *((_DWORD *)this + 89));\n  _glewBindBuffer(34962, 0);\n  ++g_uNumberOfDraws;\n}", "assembly": "; \n; cocos2d::CCDrawNode::render from 0x1800154b0 to 0x1800155cc (284 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDrawNode::draw @ 0x1800122c1\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b856c\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:21:23 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800154b0\npush    rdi                                                            ; +0x5, 0x1800154b5\nsub     rsp, 30h                                                       ; +0x6, 0x1800154b6\ncmp     byte ptr [rcx+178h], 0                                         ; +0xa, 0x1800154ba\nmov     rbx, rcx                                                       ; +0x11, 0x1800154c1\njz      short loc_180015512                                            ; +0x14, 0x1800154c4\nmov     rax, cs:__glewBindBuffer                                       ; +0x16, 0x1800154c6\nmov     edx, [rcx+15Ch]                                                ; +0x1d, 0x1800154cd\nmov     ecx, 8892h                                                     ; +0x23, 0x1800154d3\nmov     r8, [rax]                                                      ; +0x28, 0x1800154d8\ncall    r8                                                             ; +0x2b, 0x1800154db\nmov     eax, [rbx+160h]                                                ; +0x2e, 0x1800154de\nmov     r9d, 88E0h                                                     ; +0x34, 0x1800154e4\nmov     r8, [rbx+168h]                                                 ; +0x3a, 0x1800154ea\nmov     ecx, 8892h                                                     ; +0x41, 0x1800154f1\nlea     rdx, [rax+rax*4]                                               ; +0x46, 0x1800154f6\nmov     rax, cs:__glewBufferData                                       ; +0x4a, 0x1800154fa\nshl     rdx, 2                                                         ; +0x51, 0x180015501\nmov     r10, [rax]                                                     ; +0x55, 0x180015505\ncall    r10                                                            ; +0x58, 0x180015508\nmov     byte ptr [rbx+178h], 0                                         ; +0x5b, 0x18001550b\nmov     ecx, 3; this                                                   ; +0x62, 0x180015512\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x67, 0x180015517\nmov     rax, cs:__glewBindBuffer                                       ; +0x6c, 0x18001551c\nmov     ecx, 8892h                                                     ; +0x73, 0x180015523\nmov     edx, [rbx+15Ch]                                                ; +0x78, 0x180015528\nmov     r8, [rax]                                                      ; +0x7e, 0x18001552e\ncall    r8                                                             ; +0x81, 0x180015531\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x84, 0x180015534\nxor     r9d, r9d                                                       ; +0x8b, 0x18001553b\nmov     [rsp+38h+var_10], 0                                            ; +0x8e, 0x18001553e\nmov     edx, 2                                                         ; +0x97, 0x180015547\nxor     ecx, ecx                                                       ; +0x9c, 0x18001554c\nmov     [rsp+38h+var_18], 14h                                          ; +0x9e, 0x18001554e\nmov     r8d, 1406h                                                     ; +0xa6, 0x180015556\nmov     r10, [rax]                                                     ; +0xac, 0x18001555c\ncall    r10                                                            ; +0xaf, 0x18001555f\nmov     rax, cs:__glewVertexAttribPointer                              ; +0xb2, 0x180015562\nmov     r9b, 1                                                         ; +0xb9, 0x180015569\nmov     [rsp+38h+var_10], 8                                            ; +0xbc, 0x18001556c\nmov     edx, 4                                                         ; +0xc5, 0x180015575\nmov     ecx, 1                                                         ; +0xca, 0x18001557a\nmov     [rsp+38h+var_18], 14h                                          ; +0xcf, 0x18001557f\nmov     r8d, 1401h                                                     ; +0xd7, 0x180015587\nmov     r10, [rax]                                                     ; +0xdd, 0x18001558d\ncall    r10                                                            ; +0xe0, 0x180015590\nmov     r8d, [rbx+164h]; count                                         ; +0xe3, 0x180015593\nxor     edx, edx; first                                                ; +0xea, 0x18001559a\nmov     ecx, 4; mode                                                   ; +0xec, 0x18001559c\ncall    cs:glDrawArrays                                                ; +0xf1, 0x1800155a1\nmov     rax, cs:__glewBindBuffer                                       ; +0xf7, 0x1800155a7\nxor     edx, edx                                                       ; +0xfe, 0x1800155ae\nmov     ecx, 8892h                                                     ; +0x100, 0x1800155b0\nmov     r8, [rax]                                                      ; +0x105, 0x1800155b5\ncall    r8                                                             ; +0x108, 0x1800155b8\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0x10b, 0x1800155bb\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x111, 0x1800155c1\nadd     rsp, 30h                                                       ; +0x116, 0x1800155c6\npop     rdi                                                            ; +0x11a, 0x1800155ca\nretn                                                                   ; +0x11b, 0x1800155cb", "xrefs": ["cocos2d::CCDrawNode::draw @ 0x1800122c1", "<???> @ 0x18014cf68", "<???> @ 0x1801b856c"], "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"}