//
// cocos2d::CCDrawNode::render from 0x1800154b0 to 0x1800155cc (284 bytes)
//
// 3 xrefs:
// > cocos2d::CCDrawNode::draw @ 0x1800122c1
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b856c
//
// 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 11:21:23 +0000
//
void __fastcall cocos2d::CCDrawNode::render(cocos2d::CCDrawNode *this, unsigned int a2)
{
__int64 v3; // r9
if ( *((_BYTE *)this + 376) )
{
_glewBindBuffer(34962, *((unsigned int *)this + 87));
_glewBufferData(34962, 20LL * *((unsigned int *)this + 88), *((_QWORD *)this + 45), 35040);
*((_BYTE *)this + 376) = 0;
}
cocos2d::ccGLEnableVertexAttribs((cocos2d *)3, a2);
_glewBindBuffer(34962, *((unsigned int *)this + 87));
_glewVertexAttribPointer(0, 2, 5126, 0, 20, 0);
LOBYTE(v3) = 1;
_glewVertexAttribPointer(1, 4, 5121, v3, 20, 8);
glDrawArrays(4u, 0, *((_DWORD *)this + 89));
_glewBindBuffer(34962, 0);
++g_uNumberOfDraws;
}