//
// cocos2d::CCAtlasNode::draw from 0x5bc534 to 0x5bc606 (210 bytes)
//
// 0 xrefs:
//
// 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::CCAtlasNode::draw(cocos2d::CCAtlasNode *a1)
{
cocos2d::CCGLProgram *v2; // r0
cocos2d::CCGLProgram *v3; // r0
int g; // r3
int v5; // s15
int b; // r3
int v7; // s15
int displayedOpacity; // r3
int v9; // s15
cocos2d::CCGLProgram *(__fastcall *getShaderProgram)(cocos2d::CCNode *__hidden); // r3
cocos2d::CCGLProgram *v11; // r0
float v12[4]; // [sp+4h] [bp-18h] BYREF
cocos2d::ccGLEnable(a1->m_eGLServerState);
a1->getShaderProgram(a1);
v2 = a1->getShaderProgram(a1);
cocos2d::CCGLProgram::use(v2);
v3 = a1->getShaderProgram(a1);
cocos2d::CCGLProgram::setUniformsForBuiltins(v3);
cocos2d::ccGLBlendFunc(a1->m_tBlendFunc.src, a1->m_tBlendFunc.dst);
g = a1->_displayedColor.g;
v12[0] = (float)a1->_displayedColor.r / 255.0;
v5 = g;
b = a1->_displayedColor.b;
v12[1] = (float)v5 / 255.0;
v7 = b;
displayedOpacity = a1->_displayedOpacity;
v12[2] = (float)v7 / 255.0;
v9 = displayedOpacity;
getShaderProgram = a1->getShaderProgram;
v12[3] = (float)v9 / 255.0;
v11 = getShaderProgram(a1);
cocos2d::CCGLProgram::setUniformLocationWith4fv(v11, a1->m_nUniformColor, v12, 1u);
cocos2d::CCTextureAtlas::drawNumberOfQuads(a1->m_pTextureAtlas, a1->m_uQuadsToDraw, 0);
}