//
// cocos2d::CCGrid3D::blit from 0x1004dee40 to 0x1004deeda (154 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b611f8
//
// 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:31:17 +0000
//
int *__fastcall cocos2d::CCGrid3D::blit(__int64 a1)
{
__m128 v1; // xmm0
v1 = (__m128)*(unsigned int *)(a1 + 64);
v1.f32[0] = v1.f32[0] * *(float *)(a1 + 68);
cocos2d::ccGLEnableVertexAttribs(5);
cocos2d::CCGLProgram::use(*(_QWORD *)(a1 + 104));
cocos2d::CCGLProgram::setUniformsForBuiltins(*(_QWORD *)(a1 + 104), v1);
glVertexAttribPointer(0, 3, 0x1406u, 0, 0, *(const GLvoid **)(a1 + 128));
glVertexAttribPointer(2u, 2, 0x1406u, 0, 0, *(const GLvoid **)(a1 + 120));
glDrawElements(4u, 6 * (int)v1.f32[0], 0x1403u, *(const GLvoid **)(a1 + 144));
++dword_100BE8BE8;
return &dword_100BE8BE8;
}