//
// cocos2d::CCGridBase::beforeDraw from 0xd4ef68 to 0xd4efa0 (56 bytes)
//
// 7 xrefs:
// > ShaderLayer::visit @ 0xb2e5a8
// > cocos2d::extension::CCScrollView::visit @ 0xd17ed0
// > cocos2d::CCNode::visit @ 0xd3ee44
// > cocos2d::CCRenderTexture::visit @ 0xd6a594
// > cocos2d::CCParticleBatchNode::visit @ 0xd72554
// > cocos2d::CCSpriteBatchNode::visit @ 0xd88694
// > ??> @ 0x8a910
//
// This function is hookable on this platform (idp: arm, 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 13:07:39 +0000
//
__int64 __fastcall cocos2d::CCGridBase::beforeDraw(cocos2d::CCGridBase *this)
{
*((_DWORD *)this + 28) = *(_DWORD *)(cocos2d::CCDirector::sharedDirector(this) + 316);
cocos2d::CCGridBase::set2DProjection(this);
return cocos2d::CCGrabber::beforeRender(*((cocos2d::CCGrabber **)this + 11), *((cocos2d::CCTexture2D **)this + 9));
}