//
// cocos2d::CCParticleBatchNode::draw from 0xd72450 to 0xd724e0 (144 bytes)
//
// 2 xrefs:
// > ??> @ 0xc2f20
// > ??> @ 0x152cf78
//
// 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
//
__int64 __fastcall cocos2d::CCParticleBatchNode::draw(cocos2d::CCParticleBatchNode *this)
{
__int64 result; // x0
cocos2d::CCGLProgram *v3; // x0
cocos2d::CCGLProgram *v4; // x0
unsigned int v5; // w2
result = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 80LL))(*((_QWORD *)this + 41));
if ( (_DWORD)result )
{
cocos2d::ccGLEnable(*((unsigned int *)this + 62));
(*(void (__fastcall **)(cocos2d::CCParticleBatchNode *))(*(_QWORD *)this + 656LL))(this);
v3 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(cocos2d::CCParticleBatchNode *))(*(_QWORD *)this + 656LL))(this);
cocos2d::CCGLProgram::use(v3);
v4 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(cocos2d::CCParticleBatchNode *))(*(_QWORD *)this + 656LL))(this);
cocos2d::CCGLProgram::setUniformsForBuiltins(v4);
cocos2d::ccGLBlendFunc((cocos2d *)*((unsigned int *)this + 84), *((_DWORD *)this + 85), v5);
return cocos2d::CCTextureAtlas::drawQuads(*((cocos2d::CCTextureAtlas **)this + 41));
}
return result;
}