//
// cocos2d::CCParticleSystemQuad::draw from 0xd7363c to 0xd7379c (352 bytes)
//
// 13 xrefs:
// > ??> @ 0x50038
// > ??> @ 0x1527e08
// > ??> @ 0x15284c8
// > ??> @ 0x1528b88
// > ??> @ 0x1529248
// > ??> @ 0x1529908
// > ??> @ 0x1529fc8
// > ??> @ 0x152a688
// > ??> @ 0x152ad48
// > ??> @ 0x152b408
// > ??> @ 0x152bac8
// > ??> @ 0x152c188
// > ??> @ 0x152d378
//
// 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:08:01 +0000
//
int *__fastcall cocos2d::CCParticleSystemQuad::draw(int *this)
{
__int64 v1; // x19
cocos2d::CCGLProgram *v2; // x0
cocos2d::CCGLProgram *v3; // x0
cocos2d *v4; // x0
unsigned int v5; // w1
unsigned int v6; // w2
unsigned int v7; // w1
if ( *((_QWORD *)this + 83) && *(this + 114) )
{
if ( *((_BYTE *)this + 834) )
{
v1 = (__int64)this;
cocos2d::ccGLEnable((unsigned int)*(this + 62));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 656LL))(v1);
v2 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 656LL))(v1);
cocos2d::CCGLProgram::use(v2);
v3 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 656LL))(v1);
cocos2d::CCGLProgram::setUniformsForBuiltins(v3);
v4 = (cocos2d *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 664) + 104LL))(*(_QWORD *)(v1 + 664));
cocos2d::ccGLBindTexture2D(v4, v5);
cocos2d::ccGLBlendFunc((cocos2d *)*(unsigned int *)(v1 + 672), *(_DWORD *)(v1 + 676), v6);
cocos2d::ccGLEnableVertexAttribs((cocos2d *)&byte_7, v7);
glBindBuffer();
glVertexAttribPointer();
glVertexAttribPointer();
glVertexAttribPointer();
glBindBuffer();
glDrawElements();
glBindBuffer();
glBindBuffer();
++g_uNumberOfDraws;
return &g_uNumberOfDraws;
}
}
return this;
}