//
// cocos2d::ccGLBlendFunc from 0x10035b6b0 to 0x10035b704 (84 bytes)
//
// 22 xrefs:
// > DrawGridLayer::draw @ 0x10010121a
// > cocos2d::CCSpriteBatchNode::draw @ 0x100177796
// > CCCircleWave::draw @ 0x100178b4c
// > CCCircleWave::draw @ 0x100178c4f
// > CCAlertCircle::draw @ 0x1001790c3
// > CCAlertCircle::draw @ 0x10017913c
// > cocos2d::CCSprite::draw @ 0x1002898a0
// > cocos2d::CCAtlasNode::draw @ 0x10032ae85
// > sub_1003A8100 @ 0x1003a815c
// > cocos2d::CCParticleBatchNode::draw @ 0x1003c96b5
// > cocos2d::CCDirector::setGLDefaultValues @ 0x100482b43
// > cocos2d::CCDirector::setAlphaBlending @ 0x100482b94
// > cocos2d::CCDirector::setOpenGLView @ 0x1004836d0
// > cocos2d::CCLayerColor::draw @ 0x1004b327b
// > CCLightStrip::draw @ 0x100504687
// > CCLightStrip::draw @ 0x1005047b4
// > cocos2d::CCMotionStreak::draw @ 0x1005771ad
// > cocos2d::CCLightning::draw @ 0x1005ddefe
// > CCSpriteWithHue::draw @ 0x1005f0950
// > cocos2d::CCParticleSystemQuad::draw @ 0x100603565
// > cocos2d::CCProgressTimer::draw @ 0x100606781
// > cocos2d::CCDrawNode::draw @ 0x100611124
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::ccGLBlendFunc(unsigned int a1, unsigned int a2)
{
if ( sfactor != a1 || dfactor != a2 )
{
sfactor = a1;
dfactor = a2;
if ( a2 | a1 ^ 1 )
{
glEnable(0xBE2u);
glBlendFunc(a1, a2);
}
else
{
glDisable(0xBE2u);
}
}
}