//
// cocos2d::ccDrawPoly from 0x7cb558 to 0x7cb5c2 (106 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:31 +0000
//
void __fastcall cocos2d::ccDrawPoly(cocos2d *this, const cocos2d::CCPoint *a2, unsigned int a3, bool a4)
{
unsigned int v6; // r1
GLenum v7; // r0
cocos2d::ccDrawInit(this);
cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)dword_D2F18C);
cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)dword_D2F18C);
cocos2d::CCGLProgram::setUniformLocationWith4fv(
(cocos2d::CCGLProgram *)dword_D2F18C,
dword_D1FE20,
(float *)&dword_D1FE28,
1u);
cocos2d::ccGLEnableVertexAttribs((cocos2d *)((char *)&dword_0 + 1), v6);
glVertexAttribPointer();
if ( a3 )
v7 = 2;
else
v7 = 3;
glDrawArrays(v7, 0, (GLsizei)a2);
++g_uNumberOfDraws;
}