//
// cocos2d::ccGLBlendFunc from 0xd83a64 to 0xd83ae8 (132 bytes)
//
// 22 xrefs:
// > cocos2d::CCLightning::draw @ 0x690b40
// > CCCircleWave::draw @ 0x6c6948
// > CCCircleWave::draw @ 0x6c698c
// > CCAlertCircle::draw @ 0x6c69d4
// > CCAlertCircle::draw @ 0x6c6a2c
// > CCLightStrip::draw @ 0x6c7694
// > CCLightStrip::draw @ 0x6c77a0
// > CCSpriteWithHue::draw @ 0x6ddb10
// > DrawGridLayer::draw @ 0x7910b4
// > cocos2d::extension::CCControlSwitchSprite::draw @ 0xd10b04
// > cocos2d::CCAtlasNode::draw @ 0xd3bf90
// > cocos2d::CCDirector::setAlphaBlending @ 0xd491b8
// > cocos2d::CCDirector::setAlphaBlending @ 0xd491c0
// > cocos2d::CCDrawNode::draw @ 0xd4c4e0
// > cocos2d::CCLayerColor::draw @ 0xd5c0ec
// > cocos2d::CCMotionStreak::draw @ 0xd682a8
// > cocos2d::CCProgressTimer::draw @ 0xd690fc
// > cocos2d::CCParticleBatchNode::draw @ 0xd724cc
// > cocos2d::CCParticleSystemQuad::draw @ 0xd736d0
// > cocos2d::CCSprite::draw @ 0xd86c50
// > cocos2d::CCSpriteBatchNode::draw @ 0xd885e0
// > ??> @ 0xed310
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:11 +0000
//
__int64 __fastcall cocos2d::ccGLBlendFunc(__int64 this, unsigned int a2)
{
if ( __PAIR64__(a2, this) != qword_154A1A0 )
{
LODWORD(qword_154A1A0) = this;
HIDWORD(qword_154A1A0) = a2;
if ( (_DWORD)this != 1 || a2 )
{
glEnable();
return glBlendFunc();
}
else
{
return glDisable();
}
}
return this;
}