//
// cocos2d::ccDrawLines from 0x7cb384 to 0x7cb406 (130 bytes)
//
// 9 xrefs:
// > cocos2d::CCLightning::draw @ 0x3c5ee6
// > DrawGridLayer::draw @ 0x464aae
// > DrawGridLayer::draw @ 0x464d60
// > DrawGridLayer::draw @ 0x464d84
// > DrawGridLayer::draw @ 0x464da4
// > DrawGridLayer::draw @ 0x464eb4
// > DrawGridLayer::draw @ 0x464ed4
// > DrawGridLayer::draw @ 0x464f3a
// > DrawGridLayer::draw @ 0x4653cc
//
// 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:30 +0000
//
void __fastcall cocos2d::ccDrawLines(cocos2d *this, unsigned int a2, unsigned int a3)
{
unsigned int v4; // r1
unsigned int v5; // r0
void *v6; // r5
cocos2d::ccDrawInit(this);
cocos2d::ccGLEnableVertexAttribs((cocos2d *)((char *)&dword_0 + 1), v4);
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::CCGLProgram::setUniformLocationWith1f(
(cocos2d::CCGLProgram *)dword_D2F18C,
dword_D1FE24,
*(float *)&dword_D1FE38);
if ( a2 > 0xFE00000 )
v5 = -1;
else
v5 = 8 * a2;
v6 = (void *)operator new[](v5);
glVertexAttribPointer();
glDrawArrays(1u, 0, a2);
operator delete[](v6);
++g_uNumberOfDraws;
}