//
// cocos2d::CCGridBase::beforeDraw from 0x1004dea00 to 0x1004dea2f (47 bytes)
//
// 6 xrefs:
// > cocos2d::CCSpriteBatchNode::visit @ 0x100155c1a
// > cocos2d::CCNode::visit @ 0x10025ff61
// > cocos2d::CCParticleBatchNode::visit @ 0x1003b20a9
// > ShaderLayer::visit @ 0x1003bb1b3
// > cocos2d::extension::CCScrollView::visit @ 0x1003e5bf6
// > cocos2d::CCRenderTexture::visit @ 0x1006c8d69
//
// 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
//
__int64 __fastcall cocos2d::CCGridBase::beforeDraw(__int64 a1)
{
*(_DWORD *)(a1 + 112) = *(_DWORD *)(cocos2d::CCDirector::sharedDirector() + 316);
cocos2d::CCGridBase::set2DProjection();
return cocos2d::CCGrabber::beforeRender(*(_QWORD *)(a1 + 88), *(_QWORD *)(a1 + 72));
}