//
// cocos2d::CCMotionStreak::draw from 0x100208bd4 to 0x100208ce0 (268 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008f5d98
//
// 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 11:00:58 +0000
//
void __fastcall cocos2d::CCMotionStreak::draw(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x0
if ( *(_DWORD *)(a1 + 392) >= 2u )
{
cocos2d::ccGLEnable(*(unsigned int *)(a1 + 248));
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 656LL))(a1);
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 656LL))(a1);
cocos2d::CCGLProgram::use(v2);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 656LL))(a1);
cocos2d::CCGLProgram::setUniformsForBuiltins(v3);
cocos2d::ccGLEnableVertexAttribs(7);
cocos2d::ccGLBlendFunc(*(unsigned int *)(a1 + 368), *(unsigned int *)(a1 + 372));
v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 360) + 104LL))(*(_QWORD *)(a1 + 360));
cocos2d::ccGLBindTexture2D(v4);
glVertexAttribPointer(0, 2, 0x1406u, 0, 0, *(const GLvoid **)(a1 + 416));
glVertexAttribPointer(2u, 2, 0x1406u, 0, 0, *(const GLvoid **)(a1 + 432));
glVertexAttribPointer(1u, 4, 0x1401u, 1u, 0, *(const GLvoid **)(a1 + 424));
glDrawArrays(5u, 0, 2 * *(_DWORD *)(a1 + 392));
++dword_100A0F904;
}
}