{"type": "func", "start": 6443021232, "end": 6443021398, "name": "cocos2d::ccGLEnableVertexAttribs", "pseudocode": "// \n// cocos2d::ccGLEnableVertexAttribs from 0x18008b3b0 to 0x18008b456 (166 bytes)\n// \n// 26 xrefs:\n// > cocos2d::ccDrawCardinalSpline @ 0x180010b2d\n// > cocos2d::ccDrawCircle @ 0x180010d98\n// > cocos2d::ccDrawCircleSegment @ 0x180010fc8\n// > cocos2d::ccDrawCubicBezier @ 0x18001132d\n// > cocos2d::ccDrawFilledCircle @ 0x180011505\n// > cocos2d::ccDrawLine @ 0x18001164b\n// > cocos2d::ccDrawLines @ 0x1800116ce\n// > cocos2d::ccDrawPoint @ 0x1800117c8\n// > cocos2d::ccDrawPoints @ 0x18001188e\n// > cocos2d::ccDrawPoly @ 0x1800119b9\n// > cocos2d::ccDrawQuadBezier @ 0x180011bb4\n// > cocos2d::ccDrawSolidPoly @ 0x180011dbd\n// > cocos2d::ccDrawSolidRect @ 0x180011ee7\n// > cocos2d::CCDrawNode::render @ 0x180015517\n// > cocos2d::CCGrid3D::blit @ 0x180022c20\n// > cocos2d::CCTiledGrid3D::blit @ 0x180022d02\n// > cocos2d::CCLayerColor::draw @ 0x180051add\n// > cocos2d::CCMotionStreak::draw @ 0x18005ed5a\n// > cocos2d::CCProgressTimer::draw @ 0x18005fda7\n// > cocos2d::CCParticleSystemQuad::draw @ 0x18006c80a\n// > cocos2d::CCSprite::draw @ 0x18008ebcc\n// > cocos2d::CCTexture2D::drawAtPoint @ 0x1800a8a8a\n// > cocos2d::CCTexture2D::drawInRect @ 0x1800a8bd1\n// > cocos2d::CCTextureAtlas::drawNumberOfQuads @ 0x1800a9eed\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfb8c\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:06 +0000\n// \n\nvoid __fastcall cocos2d::ccGLEnableVertexAttribs(cocos2d *this)\n{\n  char v1; // di\n  char v2; // bl\n  void (__fastcall **v3)(_QWORD); // rax\n  void (__fastcall **v4)(__int64); // rax\n  int v5; // edi\n  void (__fastcall **v6)(__int64); // rax\n\n  v1 = (char)this;\n  v2 = (unsigned __int8)this & 1;\n  if ( ((unsigned __int8)this & 1) != byte_1801B2804 )\n  {\n    v3 = (void (__fastcall **)(_QWORD))_glewEnableVertexAttribArray;\n    if ( !v2 )\n      v3 = (void (__fastcall **)(_QWORD))_glewDisableVertexAttribArray;\n    (*v3)(0);\n    byte_1801B2804 = v2;\n  }\n  if ( ((v1 & 2) != 0) != byte_1801B2805 )\n  {\n    v4 = (void (__fastcall **)(__int64))_glewEnableVertexAttribArray;\n    if ( (v1 & 2) == 0 )\n      v4 = (void (__fastcall **)(__int64))_glewDisableVertexAttribArray;\n    (*v4)(1);\n    byte_1801B2805 = (v1 & 2) != 0;\n  }\n  v5 = v1 & 4;\n  if ( (v5 != 0) != byte_1801B2806 )\n  {\n    v6 = (void (__fastcall **)(__int64))_glewEnableVertexAttribArray;\n    if ( !v5 )\n      v6 = (void (__fastcall **)(__int64))_glewDisableVertexAttribArray;\n    (*v6)(2);\n    byte_1801B2806 = v5 != 0;\n  }\n}", "assembly": "; \n; cocos2d::ccGLEnableVertexAttribs from 0x18008b3b0 to 0x18008b456 (166 bytes)\n; \n; 26 xrefs:\n; > cocos2d::ccDrawCardinalSpline @ 0x180010b2d\n; > cocos2d::ccDrawCircle @ 0x180010d98\n; > cocos2d::ccDrawCircleSegment @ 0x180010fc8\n; > cocos2d::ccDrawCubicBezier @ 0x18001132d\n; > cocos2d::ccDrawFilledCircle @ 0x180011505\n; > cocos2d::ccDrawLine @ 0x18001164b\n; > cocos2d::ccDrawLines @ 0x1800116ce\n; > cocos2d::ccDrawPoint @ 0x1800117c8\n; > cocos2d::ccDrawPoints @ 0x18001188e\n; > cocos2d::ccDrawPoly @ 0x1800119b9\n; > cocos2d::ccDrawQuadBezier @ 0x180011bb4\n; > cocos2d::ccDrawSolidPoly @ 0x180011dbd\n; > cocos2d::ccDrawSolidRect @ 0x180011ee7\n; > cocos2d::CCDrawNode::render @ 0x180015517\n; > cocos2d::CCGrid3D::blit @ 0x180022c20\n; > cocos2d::CCTiledGrid3D::blit @ 0x180022d02\n; > cocos2d::CCLayerColor::draw @ 0x180051add\n; > cocos2d::CCMotionStreak::draw @ 0x18005ed5a\n; > cocos2d::CCProgressTimer::draw @ 0x18005fda7\n; > cocos2d::CCParticleSystemQuad::draw @ 0x18006c80a\n; > cocos2d::CCSprite::draw @ 0x18008ebcc\n; > cocos2d::CCTexture2D::drawAtPoint @ 0x1800a8a8a\n; > cocos2d::CCTexture2D::drawInRect @ 0x1800a8bd1\n; > cocos2d::CCTextureAtlas::drawNumberOfQuads @ 0x1800a9eed\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfb8c\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:06 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18008b3b0\npush    rdi                                                            ; +0x5, 0x18008b3b5\nsub     rsp, 20h                                                       ; +0x6, 0x18008b3b6\nmovzx   ebx, cl                                                        ; +0xa, 0x18008b3ba\nmov     edi, ecx                                                       ; +0xd, 0x18008b3bd\nand     bl, 1                                                          ; +0xf, 0x18008b3bf\ncmp     bl, cs:byte_1801B2804                                          ; +0x12, 0x18008b3c2\njz      short loc_18008B3E9                                            ; +0x18, 0x18008b3c8\nmov     rax, cs:__glewEnableVertexAttribArray                          ; +0x1a, 0x18008b3ca\nxor     ecx, ecx                                                       ; +0x21, 0x18008b3d1\ntest    bl, bl                                                         ; +0x23, 0x18008b3d3\njnz     short loc_18008B3DE                                            ; +0x25, 0x18008b3d5\nmov     rax, cs:__glewDisableVertexAttribArray                         ; +0x27, 0x18008b3d7\nmov     rdx, [rax]                                                     ; +0x2e, 0x18008b3de\ncall    rdx                                                            ; +0x31, 0x18008b3e1\nmov     cs:byte_1801B2804, bl                                          ; +0x33, 0x18008b3e3\nmov     eax, edi                                                       ; +0x39, 0x18008b3e9\nand     eax, 2                                                         ; +0x3b, 0x18008b3eb\nsetnz   bl                                                             ; +0x3e, 0x18008b3ee\ncmp     bl, cs:byte_1801B2805                                          ; +0x41, 0x18008b3f1\njz      short loc_18008B41B                                            ; +0x47, 0x18008b3f7\ntest    eax, eax                                                       ; +0x49, 0x18008b3f9\nmov     ecx, 1                                                         ; +0x4b, 0x18008b3fb\nmov     rax, cs:__glewEnableVertexAttribArray                          ; +0x50, 0x18008b400\njnz     short loc_18008B410                                            ; +0x57, 0x18008b407\nmov     rax, cs:__glewDisableVertexAttribArray                         ; +0x59, 0x18008b409\nmov     rdx, [rax]                                                     ; +0x60, 0x18008b410\ncall    rdx                                                            ; +0x63, 0x18008b413\nmov     cs:byte_1801B2805, bl                                          ; +0x65, 0x18008b415\nand     edi, 4                                                         ; +0x6b, 0x18008b41b\nsetnz   bl                                                             ; +0x6e, 0x18008b41e\ncmp     bl, cs:byte_1801B2806                                          ; +0x71, 0x18008b421\njz      short loc_18008B44B                                            ; +0x77, 0x18008b427\nmov     rax, cs:__glewEnableVertexAttribArray                          ; +0x79, 0x18008b429\nmov     ecx, 2                                                         ; +0x80, 0x18008b430\ntest    edi, edi                                                       ; +0x85, 0x18008b435\njnz     short loc_18008B440                                            ; +0x87, 0x18008b437\nmov     rax, cs:__glewDisableVertexAttribArray                         ; +0x89, 0x18008b439\nmov     rdx, [rax]                                                     ; +0x90, 0x18008b440\ncall    rdx                                                            ; +0x93, 0x18008b443\nmov     cs:byte_1801B2806, bl                                          ; +0x95, 0x18008b445\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9b, 0x18008b44b\nadd     rsp, 20h                                                       ; +0xa0, 0x18008b450\npop     rdi                                                            ; +0xa4, 0x18008b454\nretn                                                                   ; +0xa5, 0x18008b455", "xrefs": ["cocos2d::ccDrawCardinalSpline @ 0x180010b2d", "cocos2d::ccDrawCircle @ 0x180010d98", "cocos2d::ccDrawCircleSegment @ 0x180010fc8", "cocos2d::ccDrawCubicBezier @ 0x18001132d", "cocos2d::ccDrawFilledCircle @ 0x180011505", "cocos2d::ccDrawLine @ 0x18001164b", "cocos2d::ccDrawLines @ 0x1800116ce", "cocos2d::ccDrawPoint @ 0x1800117c8", "cocos2d::ccDrawPoints @ 0x18001188e", "cocos2d::ccDrawPoly @ 0x1800119b9", "cocos2d::ccDrawQuadBezier @ 0x180011bb4", "cocos2d::ccDrawSolidPoly @ 0x180011dbd", "cocos2d::ccDrawSolidRect @ 0x180011ee7", "cocos2d::CCDrawNode::render @ 0x180015517", "cocos2d::CCGrid3D::blit @ 0x180022c20", "cocos2d::CCTiledGrid3D::blit @ 0x180022d02", "cocos2d::CCLayerColor::draw @ 0x180051add", "cocos2d::CCMotionStreak::draw @ 0x18005ed5a", "cocos2d::CCProgressTimer::draw @ 0x18005fda7", "cocos2d::CCParticleSystemQuad::draw @ 0x18006c80a", "cocos2d::CCSprite::draw @ 0x18008ebcc", "cocos2d::CCTexture2D::drawAtPoint @ 0x1800a8a8a", "cocos2d::CCTexture2D::drawInRect @ 0x1800a8bd1", "cocos2d::CCTextureAtlas::drawNumberOfQuads @ 0x1800a9eed", "<???> @ 0x18014cf68", "<???> @ 0x1801bfb8c"], "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"}