//
// cocos2d::ccDrawLines from 0xd4aa78 to 0xd4ab50 (216 bytes)
//
// 10 xrefs:
// > cocos2d::CCLightning::draw @ 0x690bd8
// > DrawGridLayer::draw @ 0x791020
// > DrawGridLayer::draw @ 0x791410
// > DrawGridLayer::draw @ 0x791570
// > DrawGridLayer::draw @ 0x79159c
// > DrawGridLayer::draw @ 0x7915c8
// > DrawGridLayer::draw @ 0x7917ac
// > DrawGridLayer::draw @ 0x7917d8
// > DrawGridLayer::draw @ 0x791c44
// > ??> @ 0x739c0
//
// This function is hookable on this platform (idp: arm, 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 13:07:37 +0000
//
int *__fastcall cocos2d::ccDrawLines(cocos2d *this, const cocos2d::CCPoint *a2)
{
unsigned int v2; // w21
void *v3; // x19
v2 = (unsigned int)a2;
if ( !byte_1560140 )
sub_D4A780(nullptr);
cocos2d::ccGLEnableVertexAttribs((cocos2d *)((char *)&dword_0 + 1), (unsigned int)a2);
cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)qword_1560138);
cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)qword_1560138);
cocos2d::CCGLProgram::setUniformLocationWith4fv(
(cocos2d::CCGLProgram *)qword_1560138,
dword_154A088,
(float *)&dword_154A090,
1u);
cocos2d::CCGLProgram::setUniformLocationWith1f(
(cocos2d::CCGLProgram *)qword_1560138,
dword_154A08C,
*(float *)&dword_154A0A0);
v3 = (void *)operator new[](8LL * v2);
glVertexAttribPointer();
glDrawArrays();
operator delete[](v3);
++g_uNumberOfDraws;
return &g_uNumberOfDraws;
}