//
// cocos2d::ccDrawSolidPoly from 0x5c42c0 to 0x5c4344 (132 bytes)
//
// 2 xrefs:
// > CCLightStrip::draw @ 0x2fc6a2
// > cocos2d::ccDrawSolidRect @ 0x5c43a2
//
// 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::ccDrawSolidPoly(const cocos2d::CCPoint *a1, unsigned int a2, cocos2d::ccColor4F a3)
{
unsigned int v4; // r0
void *v5; // r6
cocos2d::ccDrawInit((cocos2d *)a1);
cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)dword_AC8A40);
cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)dword_AC8A40);
cocos2d::CCGLProgram::setUniformLocationWith4fv((cocos2d::CCGLProgram *)dword_AC8A40, dword_ABAC20, &a3.r, 1u);
cocos2d::ccGLEnableVertexAttribs((unsigned int)&dword_0 + 1);
if ( a2 > 0xFE00000 )
v4 = -1;
else
v4 = 8 * a2;
v5 = (void *)operator new[](v4);
glVertexAttribPointer();
glDrawArrays(6u, 0, a2);
operator delete[](v5);
++g_uNumberOfDraws;
}