//
// cocos2d::CCParticleBatchNode::draw from 0x7e589e to 0x7e58f6 (88 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:53 +0000
//
int __fastcall cocos2d::CCParticleBatchNode::draw(cocos2d::CCParticleBatchNode *this)
{
int result; // r0
cocos2d::CCGLProgram *v3; // r0
cocos2d::CCGLProgram *v4; // r0
unsigned int v5; // r2
result = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 67) + 40))(*((_DWORD *)this + 67));
if ( result )
{
cocos2d::ccGLEnable(*((_DWORD *)this + 53));
(*(void (__fastcall **)(cocos2d::CCParticleBatchNode *))(*(_DWORD *)this + 328))(this);
v3 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(cocos2d::CCParticleBatchNode *))(*(_DWORD *)this + 328))(this);
cocos2d::CCGLProgram::use(v3);
v4 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(cocos2d::CCParticleBatchNode *))(*(_DWORD *)this + 328))(this);
cocos2d::CCGLProgram::setUniformsForBuiltins(v4);
cocos2d::ccGLBlendFunc(*((cocos2d **)this + 68), *((_DWORD *)this + 69), v5);
return cocos2d::CCTextureAtlas::drawQuads(*((cocos2d::CCTextureAtlas **)this + 67));
}
return result;
}