//
// cocos2d::ccGLBindTexture2DN from 0x5e4c48 to 0x5e4c76 (46 bytes)
//
// 3 xrefs:
// > cocos2d::extension::CCControlSwitchSprite::draw @ 0x5a41de
// > cocos2d::extension::CCControlSwitchSprite::draw @ 0x5a4202
// > cocos2d::ccGLBindTexture2D @ 0x5e4c80
//
// 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 cocos2d::ccGLBindTexture2DN(unsigned int a1, unsigned int a2)
{
int *v2; // r3
v2 = &dword_ABAC98[a1];
if ( v2[2] != a2 )
{
v2[2] = a2;
glActiveTexture(a1 + 33984);
j_glBindTexture(0xDE1u, a2);
}
}