//
// cocos2d::CCLayerColor::draw from 0x180051a90 to 0x180051b77 (231 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800f3d58
// > ??> @ 0x1800f42e0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bc130
//
// This function is hookable on this platform (idp: pc, 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 11:21:45 +0000
//
void __fastcall cocos2d::CCLayerColor::draw(GLenum *this, float a2)
{
cocos2d::CCGLProgram *v3; // rax
cocos2d::CCGLProgram *v4; // rax
unsigned int v5; // edx
unsigned int v6; // r8d
cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)*(this + 62), a2);
(*(void (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this);
v3 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this);
cocos2d::CCGLProgram::use(v3);
v4 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this);
cocos2d::CCGLProgram::setUniformsForBuiltins(v4);
cocos2d::ccGLEnableVertexAttribs((cocos2d *)3, v5);
_glewVertexAttribPointer(0, 2, 5126, 0, 0, this + 110);
_glewVertexAttribPointer(1, 4, 5126, 0, 0, this + 118);
cocos2d::ccGLBlendFunc(*(this + 134), *(this + 135), v6);
glDrawArrays(5u, 0, 4);
++g_uNumberOfDraws;
}