//
// cocos2d::CCParticleSystemQuad::draw from 0x1002f0ef4 to 0x1002f0fc0 (204 bytes)
//
// 1 xrefs:
// > ??> @ 0x100927f68
//
// 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:02:56 +0000
//
void __fastcall cocos2d::CCParticleSystemQuad::draw(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x0
if ( *(_QWORD *)(a1 + 664) && *(_DWORD *)(a1 + 456) )
{
if ( *(_BYTE *)(a1 + 838) )
{
cocos2d::ccGLEnable();
(*(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);
v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 104LL))(*(_QWORD *)(a1 + 664));
cocos2d::ccGLBindTexture2D(v4);
cocos2d::ccGLBlendFunc(*(unsigned int *)(a1 + 672), *(_DWORD *)(a1 + 676));
cocos2d::ccGLBindVAO(*(unsigned int *)(a1 + 800));
glDrawElements(4u, 6 * *(_DWORD *)(a1 + 428), 0x1403u, nullptr);
++dword_100A0F904;
}
}
}