//
// cocos2d::CCParticleBatchNode::draw from 0x1003b2b20 to 0x1003b2ba3 (131 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b376f0
//
// This function is hookable on this platform (idp: pc, 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 12:29:27 +0000
//
__int64 __fastcall cocos2d::CCParticleBatchNode::draw(__int64 a1)
{
__int64 result; // rax
__int64 v2; // rax
__int64 v3; // rax
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 80LL))(*(_QWORD *)(a1 + 328));
if ( (_DWORD)result )
{
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);
cocos2d::ccGLBlendFunc(*(_DWORD *)(a1 + 336), *(_DWORD *)(a1 + 340));
return cocos2d::CCTextureAtlas::drawQuads(*(_QWORD *)(a1 + 328));
}
return result;
}