//
// cocos2d::CCGridBase::afterDraw from 0x1003e0c1c to 0x1003e0cec (208 bytes)
//
// 4 xrefs:
// > cocos2d::CCSpriteBatchNode::visit @ 0x10026f8c4
// > cocos2d::CCNode::visit @ 0x1002d8fa0
// > ShaderLayer::visit @ 0x1003111dc
// > cocos2d::CCRenderTexture::visit @ 0x100467870
//
// 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 11:04:22 +0000
//
__int64 __fastcall cocos2d::CCGridBase::afterDraw(__int64 a1, __int64 a2)
{
__int64 v4; // x0
double *v5; // x0
__int64 v6; // x0
__int64 v7; // x0
__int64 v9; // [xsp+8h] [xbp-18h] BYREF
cocos2d::CCGrabber::afterRender(*(_QWORD *)(a1 + 88));
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::setProjection(v4, *(_DWORD *)(a1 + 112));
if ( *(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 672LL))(a2) + 92) == 1 )
{
v5 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 312LL))(a2);
sub_1000262F4(&v9, v5);
kmGLTranslatef();
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 672LL))(a2);
cocos2d::CCCamera::locate(v6);
kmGLTranslatef();
}
v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 72) + 104LL))(*(_QWORD *)(a1 + 72));
cocos2d::ccGLBindTexture2D(v7);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 80LL))(a1);
}