//
// cocos2d::ccDrawLines from 0x5c4074 to 0x5c40f6 (130 bytes)
//
// 9 xrefs:
// > cocos2d::CCLightning::draw @ 0x2e618e
// > DrawGridLayer::draw @ 0x36b2aa
// > DrawGridLayer::draw @ 0x36b4d8
// > DrawGridLayer::draw @ 0x36b4fc
// > DrawGridLayer::draw @ 0x36b51c
// > DrawGridLayer::draw @ 0x36b616
// > DrawGridLayer::draw @ 0x36b636
// > DrawGridLayer::draw @ 0x36b698
// > DrawGridLayer::draw @ 0x36bb0c
//
// 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::ccDrawLines(const cocos2d::CCPoint *a1, unsigned int a2)
{
unsigned int v3; // r0
void *v4; // r5
cocos2d::ccDrawInit((cocos2d *)a1);
cocos2d::ccGLEnableVertexAttribs((unsigned int)&dword_0 + 1);
cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)dword_AC8A40);
cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)dword_AC8A40);
cocos2d::CCGLProgram::setUniformLocationWith4fv(
(cocos2d::CCGLProgram *)dword_AC8A40,
dword_ABAC20,
(float *)&dword_ABAC28,
1u);
cocos2d::CCGLProgram::setUniformLocationWith1f(
(cocos2d::CCGLProgram *)dword_AC8A40,
dword_ABAC24,
*(float *)&dword_ABAC38);
if ( a2 > 0xFE00000 )
v3 = -1;
else
v3 = 8 * a2;
v4 = (void *)operator new[](v3);
glVertexAttribPointer();
glDrawArrays(1u, 0, a2);
operator delete[](v4);
++g_uNumberOfDraws;
}