//
// cocos2d::CCTiledGrid3D::blit from 0x180022cd0 to 0x180022d94 (196 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800ed340
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b9064
//
// 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:28 +0000
//
void __fastcall cocos2d::CCTiledGrid3D::blit(cocos2d::CCTiledGrid3D *this)
{
int v2; // ebx
unsigned int v3; // edx
v2 = (int)(float)(*((float *)this + 17) * *((float *)this + 16));
cocos2d::CCGLProgram::use(*((cocos2d::CCGLProgram **)this + 13));
cocos2d::CCGLProgram::setUniformsForBuiltins(*((cocos2d::CCGLProgram **)this + 13));
cocos2d::ccGLEnableVertexAttribs((cocos2d *)5, v3);
_glewVertexAttribPointer(0, 3, 5126, 0, 0, *((_QWORD *)this + 16));
_glewVertexAttribPointer(2, 2, 5126, 0, 0, *((_QWORD *)this + 15));
glDrawElements(4u, 6 * v2, 0x1403u, *((const GLvoid **)this + 18));
++g_uNumberOfDraws;
}