//
// cocos2d::ccGLEnableVertexAttribs from 0x7ef480 to 0x7ef4f4 (116 bytes)
//
// 25 xrefs:
// > CCSpriteWithHue::draw @ 0x3f28c0
// > cocos2d::extension::CCControlSwitchSprite::draw @ 0x7a9eb4
// > cocos2d::ccDrawPoint @ 0x7cb27e
// > cocos2d::ccDrawPoints @ 0x7cb306
// > cocos2d::ccDrawLines @ 0x7cb396
// > cocos2d::ccDrawLine @ 0x7cb460
// > cocos2d::ccDrawPoly @ 0x7cb58a
// > cocos2d::ccDrawSolidPoly @ 0x7cb606
// > cocos2d::ccDrawCircle @ 0x7cb7c6
// > cocos2d::ccDrawCircleSegment @ 0x7cb926
// > cocos2d::ccDrawFilledCircle @ 0x7cba38
// > cocos2d::ccDrawQuadBezier @ 0x7cbb50
// > cocos2d::ccDrawCardinalSpline @ 0x7cbccc
// > cocos2d::ccDrawCubicBezier @ 0x7cbe4e
// > cocos2d::CCDrawNode::render @ 0x7cc714
// > cocos2d::CCGrid3D::blit @ 0x7cdd60
// > cocos2d::CCTiledGrid3D::blit @ 0x7cdde4
// > cocos2d::CCLayerColor::draw @ 0x7d7036
// > cocos2d::CCMotionStreak::draw @ 0x7dea0a
// > cocos2d::CCProgressTimer::draw @ 0x7df4ea
// > cocos2d::CCParticleSystemQuad::draw @ 0x7e60d2
// > cocos2d::CCSprite::draw @ 0x7f1240
// > cocos2d::CCTexture2D::drawAtPoint @ 0x7ff2a4
// > cocos2d::CCTexture2D::drawInRect @ 0x7ff364
// > cocos2d::CCTextureAtlas::drawNumberOfQuads @ 0x800614
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:01:03 +0000
//
void __fastcall cocos2d::ccGLEnableVertexAttribs(unsigned int this, unsigned int a2)
{
int v3; // r5
unsigned int v4; // r5
unsigned int v5; // r4
v3 = this & 1;
cocos2d::ccGLBindVAO(nullptr, a2);
if ( (unsigned __int8)byte_D2F9A8 != v3 )
{
if ( v3 )
glEnableVertexAttribArray();
else
glDisableVertexAttribArray();
byte_D2F9A8 = v3;
}
v4 = (this >> 1) & 1;
if ( (unsigned __int8)byte_D2F9A9 != v4 )
{
if ( v4 )
glEnableVertexAttribArray();
else
glDisableVertexAttribArray();
byte_D2F9A9 = (this & 2) != 0;
}
v5 = (this >> 2) & 1;
if ( (unsigned __int8)byte_D2F9AA != v5 )
{
if ( v5 )
glEnableVertexAttribArray();
else
glDisableVertexAttribArray();
byte_D2F9AA = v5;
}
}