//
// cocos2d::ccDrawSolidPoly from 0xd4ae28 to 0xd4af1c (244 bytes)
//
// 3 xrefs:
// > CCLightStrip::draw @ 0x6c7794
// > cocos2d::ccDrawSolidRect @ 0xd4afd4
// > ??> @ 0xb4d18
//
// 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::ccDrawSolidPoly(float a1, float a2, float a3, float a4, __int64 a5, unsigned int a6)
{
unsigned int v7; // w1
void *v8; // x19
_QWORD v10[2]; // [xsp+30h] [xbp+30h] BYREF
v10[0] = LODWORD(a1) | ((unsigned __int64)LODWORD(a2) << 32);
v10[1] = LODWORD(a3) | ((unsigned __int64)LODWORD(a4) << 32);
if ( !byte_1560140 )
sub_D4A780(nullptr);
cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)qword_1560138);
cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)qword_1560138);
cocos2d::CCGLProgram::setUniformLocationWith4fv(
(cocos2d::CCGLProgram *)qword_1560138,
dword_154A088,
(float *)v10,
1u);
cocos2d::ccGLEnableVertexAttribs((cocos2d *)((char *)&dword_0 + 1), v7);
v8 = (void *)operator new[](8LL * a6);
glVertexAttribPointer();
glDrawArrays();
operator delete[](v8);
++g_uNumberOfDraws;
return &g_uNumberOfDraws;
}