//
// cocos2d::CCParticleSystemQuad::setupVBOandVAO from 0x1002f05f4 to 0x1002f0728 (308 bytes)
//
// 3 xrefs:
// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x1002f046c
// > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x1002f116c
// > cocos2d::CCParticleSystemQuad::setBatchNode @ 0x1002f12a4
//
// 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:55 +0000
//
void __fastcall cocos2d::CCParticleSystemQuad::setupVBOandVAO(__int64 a1)
{
glDeleteBuffers(2, (const GLuint *)(a1 + 804));
glDeleteVertexArraysOES(1, a1 + 800);
cocos2d::ccGLBindVAO(0);
glGenVertexArraysOES(1, a1 + 800);
cocos2d::ccGLBindVAO(*(unsigned int *)(a1 + 800));
glGenBuffers(2, (GLuint *)(a1 + 804));
glBindBuffer(0x8892u, *(_DWORD *)(a1 + 804));
glBufferData(0x8892u, 96LL * *(unsigned int *)(a1 + 660), *(const GLvoid **)(a1 + 784), 0x88E8u);
glEnableVertexAttribArray(0);
glVertexAttribPointer(0, 2, 0x1406u, 0, 24, nullptr);
glEnableVertexAttribArray(1u);
glVertexAttribPointer(1u, 4, 0x1401u, 1u, 24, (const GLvoid *)0xC);
glEnableVertexAttribArray(2u);
glVertexAttribPointer(2u, 2, 0x1406u, 0, 24, (const GLvoid *)0x10);
glBindBuffer(0x8893u, *(_DWORD *)(a1 + 808));
glBufferData(0x8893u, 12LL * *(unsigned int *)(a1 + 660), *(const GLvoid **)(a1 + 792), 0x88E4u);
cocos2d::ccGLBindVAO(0);
glBindBuffer(0x8893u, 0);
glBindBuffer(0x8892u, 0);
}