//
// cocos2d::CCSpriteBatchNode::setTexture from 0x1001d7d9c to 0x1001d7df4 (88 bytes)
//
// 3 xrefs:
// > ??> @ 0x10076cda8
// > ??> @ 0x1007bf7c0
// > ??> @ 0x1007e9e60
//
// 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::CCSpriteBatchNode::setTexture(cocos2d::CCSpriteBatchNode *a1, cocos2d::CCTexture2D *a2)
{
cocos2d::CCTexture2D *v3; // x0
GLenum v4; // w8
((void (__fastcall *)(cocos2d::CCTextureAtlas *, cocos2d::CCTexture2D *))a1->m_pobTextureAtlas->setTexture)(
a1->m_pobTextureAtlas,
a2);
v3 = (cocos2d::CCTexture2D *)((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))a1->m_pobTextureAtlas->getTexture)(a1->m_pobTextureAtlas);
if ( cocos2d::CCTexture2D::hasPremultipliedAlpha(v3) )
v4 = 1;
else
v4 = 770;
a1->m_blendFunc.src = v4;
a1->m_blendFunc.dst = 771;
}