//
// cocos2d::CCMotionStreak::draw from 0x18005ed00 to 0x18005ee3d (317 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800ffbf8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd3c0
//
// This function is hookable on this platform (idp: pc, 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 11:21:50 +0000
//
void __fastcall cocos2d::CCMotionStreak::draw(GLenum *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
__int64 v9; // r9
if ( *(this + 98) > 1 )
{
cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)*(this + 62), a2);
(*(void (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this);
v3 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this);
cocos2d::CCGLProgram::use(v3);
v4 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this);
cocos2d::CCGLProgram::setUniformsForBuiltins(v4);
cocos2d::ccGLEnableVertexAttribs((cocos2d *)7, v5);
cocos2d::ccGLBlendFunc(*(this + 92), *(this + 93), v6);
v7 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 96LL))(*((_QWORD *)this + 45));
cocos2d::ccGLBindTexture2D((cocos2d *)v7, v8);
_glewVertexAttribPointer(0, 2, 5126, 0, 0, *((_QWORD *)this + 52));
_glewVertexAttribPointer(2, 2, 5126, 0, 0, *((_QWORD *)this + 54));
LOBYTE(v9) = 1;
_glewVertexAttribPointer(1, 4, 5121, v9, 0, *((_QWORD *)this + 53));
glDrawArrays(5u, 0, 2 * *(this + 98));
++g_uNumberOfDraws;
}
}