//
// cocos2d::CCAtlasNode::draw from 0xaca0c4 to 0xaca1c4 (256 bytes)
//
// 4 xrefs:
// > ??> @ 0x92d60
// > ??> @ 0x11ffec8
// > ??> @ 0x1201ba8
// > ??> @ 0x121b6d8
//
// 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; // x0
cocos2d::CCGLProgram *v3; // x0
int g; // w3
int b; // w2
float displayedOpacity; // s0
cocos2d::CCGLProgram *(__fastcall *getShaderProgram)(cocos2d::CCNode *__hidden); // x1
cocos2d::CCGLProgram *v8; // x0
float v9[4]; // [xsp+28h] [xbp+28h] 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;
b = a1->_displayedColor.b;
displayedOpacity = (float)a1->_displayedOpacity;
getShaderProgram = a1->getShaderProgram;
v9[0] = (float)a1->_displayedColor.r / 255.0;
v9[1] = (float)g / 255.0;
v9[2] = (float)b / 255.0;
v9[3] = displayedOpacity / 255.0;
v8 = getShaderProgram(a1);
cocos2d::CCGLProgram::setUniformLocationWith4fv(v8, a1->m_nUniformColor, v9, 1u);
cocos2d::CCTextureAtlas::drawNumberOfQuads(a1->m_pTextureAtlas, a1->m_uQuadsToDraw, 0);
}