{"type": "func", "start": 6443008480, "end": 6443008644, "name": "cocos2d::ccGLEnableVertexAttribs", "pseudocode": "// \n// cocos2d::ccGLEnableVertexAttribs from 0x1800881e0 to 0x180088284 (164 bytes)\n// \n// 26 xrefs:\n// > cocos2d::ccDrawCardinalSpline @ 0x18001096d\n// > cocos2d::ccDrawCircle @ 0x180010bd8\n// > cocos2d::ccDrawCircleSegment @ 0x180010e08\n// > cocos2d::ccDrawCubicBezier @ 0x18001119e\n// > cocos2d::ccDrawFilledCircle @ 0x180011375\n// > cocos2d::ccDrawLine @ 0x1800114ab\n// > cocos2d::ccDrawLines @ 0x18001151e\n// > cocos2d::ccDrawPoint @ 0x180011618\n// > cocos2d::ccDrawPoints @ 0x1800116de\n// > cocos2d::ccDrawPoly @ 0x180011809\n// > cocos2d::ccDrawQuadBezier @ 0x180011a39\n// > cocos2d::ccDrawSolidPoly @ 0x180011c1d\n// > cocos2d::ccDrawSolidRect @ 0x180011d37\n// > cocos2d::CCDrawNode::render @ 0x1800155ce\n// > cocos2d::CCGrid3D::blit @ 0x1800226f0\n// > cocos2d::CCTiledGrid3D::blit @ 0x1800227c2\n// > cocos2d::CCLayerColor::draw @ 0x18004fcbd\n// > cocos2d::CCMotionStreak::draw @ 0x18005cd0a\n// > cocos2d::CCProgressTimer::draw @ 0x18005dbdc\n// > cocos2d::CCParticleSystemQuad::draw @ 0x18006a66d\n// > cocos2d::CCSprite::draw @ 0x18008b9ec\n// > cocos2d::CCTexture2D::drawAtPoint @ 0x1800a4fca\n// > cocos2d::CCTexture2D::drawInRect @ 0x1800a5101\n// > cocos2d::CCTextureAtlas::drawNumberOfQuads @ 0x1800a63c5\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b58bc\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::ccGLEnableVertexAttribs(cocos2d *this)\n{\n  char v1; // bl\n  char v2; // di\n  void (__fastcall **v3)(_QWORD); // rax\n  void (__fastcall **v4)(__int64); // rax\n  char v5; // bl\n  void (__fastcall **v6)(__int64); // rax\n\n  v1 = (char)this;\n  v2 = (unsigned __int8)this & 1;\n  if ( ((unsigned __int8)this & 1) != byte_1801A87A4 )\n  {\n    v3 = (void (__fastcall **)(_QWORD))_glewEnableVertexAttribArray;\n    if ( !v2 )\n      v3 = (void (__fastcall **)(_QWORD))_glewDisableVertexAttribArray;\n    (*v3)(0);\n    byte_1801A87A4 = v2;\n  }\n  if ( ((v1 & 2) != 0) != byte_1801A87A5 )\n  {\n    v4 = (void (__fastcall **)(__int64))_glewEnableVertexAttribArray;\n    if ( (v1 & 2) == 0 )\n      v4 = (void (__fastcall **)(__int64))_glewDisableVertexAttribArray;\n    (*v4)(1);\n    byte_1801A87A5 = (v1 & 2) != 0;\n  }\n  v5 = (v1 & 4) != 0;\n  if ( v5 != byte_1801A87A6 )\n  {\n    v6 = (void (__fastcall **)(__int64))_glewEnableVertexAttribArray;\n    if ( !v5 )\n      v6 = (void (__fastcall **)(__int64))_glewDisableVertexAttribArray;\n    (*v6)(2);\n    byte_1801A87A6 = v5;\n  }\n}", "assembly": "; \n; cocos2d::ccGLEnableVertexAttribs from 0x1800881e0 to 0x180088284 (164 bytes)\n; \n; 26 xrefs:\n; > cocos2d::ccDrawCardinalSpline @ 0x18001096d\n; > cocos2d::ccDrawCircle @ 0x180010bd8\n; > cocos2d::ccDrawCircleSegment @ 0x180010e08\n; > cocos2d::ccDrawCubicBezier @ 0x18001119e\n; > cocos2d::ccDrawFilledCircle @ 0x180011375\n; > cocos2d::ccDrawLine @ 0x1800114ab\n; > cocos2d::ccDrawLines @ 0x18001151e\n; > cocos2d::ccDrawPoint @ 0x180011618\n; > cocos2d::ccDrawPoints @ 0x1800116de\n; > cocos2d::ccDrawPoly @ 0x180011809\n; > cocos2d::ccDrawQuadBezier @ 0x180011a39\n; > cocos2d::ccDrawSolidPoly @ 0x180011c1d\n; > cocos2d::ccDrawSolidRect @ 0x180011d37\n; > cocos2d::CCDrawNode::render @ 0x1800155ce\n; > cocos2d::CCGrid3D::blit @ 0x1800226f0\n; > cocos2d::CCTiledGrid3D::blit @ 0x1800227c2\n; > cocos2d::CCLayerColor::draw @ 0x18004fcbd\n; > cocos2d::CCMotionStreak::draw @ 0x18005cd0a\n; > cocos2d::CCProgressTimer::draw @ 0x18005dbdc\n; > cocos2d::CCParticleSystemQuad::draw @ 0x18006a66d\n; > cocos2d::CCSprite::draw @ 0x18008b9ec\n; > cocos2d::CCTexture2D::drawAtPoint @ 0x1800a4fca\n; > cocos2d::CCTexture2D::drawInRect @ 0x1800a5101\n; > cocos2d::CCTextureAtlas::drawNumberOfQuads @ 0x1800a63c5\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b58bc\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, 0x1800881e0\npush    rdi                                                            ; +0x5, 0x1800881e5\nsub     rsp, 20h                                                       ; +0x6, 0x1800881e6\nmovzx   edi, cl                                                        ; +0xa, 0x1800881ea\nmov     ebx, ecx                                                       ; +0xd, 0x1800881ed\nand     dil, 1                                                         ; +0xf, 0x1800881ef\ncmp     dil, cs:byte_1801A87A4                                         ; +0x13, 0x1800881f3\njz      short loc_18008821A                                            ; +0x1a, 0x1800881fa\nmov     rax, cs:__glewEnableVertexAttribArray                          ; +0x1c, 0x1800881fc\nxor     ecx, ecx                                                       ; +0x23, 0x180088203\ntest    dil, dil                                                       ; +0x25, 0x180088205\njnz     short loc_180088211                                            ; +0x28, 0x180088208\nmov     rax, cs:__glewDisableVertexAttribArray                         ; +0x2a, 0x18008820a\ncall    qword ptr [rax]                                                ; +0x31, 0x180088211\nmov     cs:byte_1801A87A4, dil                                         ; +0x33, 0x180088213\nmov     edi, ebx                                                       ; +0x3a, 0x18008821a\nshr     edi, 1                                                         ; +0x3c, 0x18008821c\nand     dil, 1                                                         ; +0x3e, 0x18008821e\ncmp     dil, cs:byte_1801A87A5                                         ; +0x42, 0x180088222\njz      short loc_18008824C                                            ; +0x49, 0x180088229\nmov     rax, cs:__glewEnableVertexAttribArray                          ; +0x4b, 0x18008822b\nmov     ecx, 1                                                         ; +0x52, 0x180088232\ntest    dil, dil                                                       ; +0x57, 0x180088237\njnz     short loc_180088243                                            ; +0x5a, 0x18008823a\nmov     rax, cs:__glewDisableVertexAttribArray                         ; +0x5c, 0x18008823c\ncall    qword ptr [rax]                                                ; +0x63, 0x180088243\nmov     cs:byte_1801A87A5, dil                                         ; +0x65, 0x180088245\nshr     ebx, 2                                                         ; +0x6c, 0x18008824c\nand     bl, 1                                                          ; +0x6f, 0x18008824f\ncmp     bl, cs:byte_1801A87A6                                          ; +0x72, 0x180088252\njz      short loc_180088279                                            ; +0x78, 0x180088258\nmov     rax, cs:__glewEnableVertexAttribArray                          ; +0x7a, 0x18008825a\nmov     ecx, 2                                                         ; +0x81, 0x180088261\ntest    bl, bl                                                         ; +0x86, 0x180088266\njnz     short loc_180088271                                            ; +0x88, 0x180088268\nmov     rax, cs:__glewDisableVertexAttribArray                         ; +0x8a, 0x18008826a\ncall    qword ptr [rax]                                                ; +0x91, 0x180088271\nmov     cs:byte_1801A87A6, bl                                          ; +0x93, 0x180088273\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x99, 0x180088279\nadd     rsp, 20h                                                       ; +0x9e, 0x18008827e\npop     rdi                                                            ; +0xa2, 0x180088282\nretn                                                                   ; +0xa3, 0x180088283", "xrefs": ["cocos2d::ccDrawCardinalSpline @ 0x18001096d", "cocos2d::ccDrawCircle @ 0x180010bd8", "cocos2d::ccDrawCircleSegment @ 0x180010e08", "cocos2d::ccDrawCubicBezier @ 0x18001119e", "cocos2d::ccDrawFilledCircle @ 0x180011375", "cocos2d::ccDrawLine @ 0x1800114ab", "cocos2d::ccDrawLines @ 0x18001151e", "cocos2d::ccDrawPoint @ 0x180011618", "cocos2d::ccDrawPoints @ 0x1800116de", "cocos2d::ccDrawPoly @ 0x180011809", "cocos2d::ccDrawQuadBezier @ 0x180011a39", "cocos2d::ccDrawSolidPoly @ 0x180011c1d", "cocos2d::ccDrawSolidRect @ 0x180011d37", "cocos2d::CCDrawNode::render @ 0x1800155ce", "cocos2d::CCGrid3D::blit @ 0x1800226f0", "cocos2d::CCTiledGrid3D::blit @ 0x1800227c2", "cocos2d::CCLayerColor::draw @ 0x18004fcbd", "cocos2d::CCMotionStreak::draw @ 0x18005cd0a", "cocos2d::CCProgressTimer::draw @ 0x18005dbdc", "cocos2d::CCParticleSystemQuad::draw @ 0x18006a66d", "cocos2d::CCSprite::draw @ 0x18008b9ec", "cocos2d::CCTexture2D::drawAtPoint @ 0x1800a4fca", "cocos2d::CCTexture2D::drawInRect @ 0x1800a5101", "cocos2d::CCTextureAtlas::drawNumberOfQuads @ 0x1800a63c5", "<???> @ 0x1801438a8", "<???> @ 0x1801b58bc"], "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"}