//
// cocos2d::ccGLBindTexture2DN from 0xd83b48 to 0xd83b94 (76 bytes)
//
// 4 xrefs:
// > cocos2d::extension::CCControlSwitchSprite::draw @ 0xd10b48
// > cocos2d::extension::CCControlSwitchSprite::draw @ 0xd10b7c
// > cocos2d::ccGLBindTexture2D @ 0xd83b9c
// > ??> @ 0x6dd50
//
// 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::ccGLBindTexture2DN(__int64 this, int a2)
{
if ( *((_DWORD *)&xmmword_154A160 + (unsigned int)this) != a2 )
{
*((_DWORD *)&xmmword_154A160 + (unsigned int)this) = a2;
glActiveTexture();
return glBindTexture();
}
return this;
}