//
// cocos2d::CCMotionStreak::draw from 0x18005ccb0 to 0x18005cddc (300 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800f9708
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b3108
//
// 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 __fastcall cocos2d::CCMotionStreak::draw(cocos2d::CCMotionStreak *this, float a2)
{
cocos2d::CCGLProgram *v3; // rax
cocos2d::CCGLProgram *v4; // rax
unsigned int v5; // edx
unsigned int v6; // r8d
unsigned int v7; // eax
unsigned int v8; // edx
if ( this->m_uNuPoints > 1 )
{
cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)(unsigned int)this->m_eGLServerState, a2);
((void (__fastcall *)(cocos2d::CCMotionStreak *))this->getShaderProgram)(this);
v3 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCMotionStreak *))this->getShaderProgram)(this);
cocos2d::CCGLProgram::use(v3);
v4 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCMotionStreak *))this->getShaderProgram)(this);
cocos2d::CCGLProgram::setUniformsForBuiltins(v4);
cocos2d::ccGLEnableVertexAttribs((cocos2d *)7, v5);
cocos2d::ccGLBlendFunc(this->m_tBlendFunc.src, this->m_tBlendFunc.dst, v6);
v7 = ((__int64 (__fastcall *)(cocos2d::CCTexture2D *))this->m_pTexture->getName)(this->m_pTexture);
cocos2d::ccGLBindTexture2D((cocos2d *)v7, v8);
_glewVertexAttribPointer(0, 2, 5126);
_glewVertexAttribPointer(2, 2, 5126);
_glewVertexAttribPointer(1, 4, 5121);
glDrawArrays(5u, 0, 2 * this->m_uNuPoints);
++g_uNumberOfDraws;
}
}