//
// cocos2d::CCGridBase::afterDraw from 0xd4efa0 to 0xd4f0a0 (256 bytes)
//
// 7 xrefs:
// > ShaderLayer::visit @ 0xb2e588
// > cocos2d::extension::CCScrollView::visit @ 0xd17ebc
// > cocos2d::CCNode::visit @ 0xd3ee30
// > cocos2d::CCRenderTexture::visit @ 0xd6a57c
// > cocos2d::CCParticleBatchNode::visit @ 0xd72544
// > cocos2d::CCSpriteBatchNode::visit @ 0xd88684
// > ??> @ 0xb5af8
//
// 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::afterDraw(cocos2d::CCGridBase *this, cocos2d::CCNode *a2)
{
cocos2d::CCDirector *v4; // x0
__int64 v5; // x0
const cocos2d::CCPoint *v6; // x0
_DWORD *v7; // x0
cocos2d::CCCamera *v8; // x0
__int64 v9; // x0
cocos2d *v10; // x0
unsigned int v11; // w1
float v13; // [xsp+30h] [xbp+30h] BYREF
float v14; // [xsp+34h] [xbp+34h]
v4 = (cocos2d::CCDirector *)cocos2d::CCGrabber::afterRender(
*((cocos2d::CCGrabber **)this + 11),
*((cocos2d::CCTexture2D **)this + 9));
v5 = cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::setProjection(v5, *((_DWORD *)this + 28));
if ( *(_BYTE *)((*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a2 + 672LL))(a2) + 92) )
{
v6 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a2 + 312LL))(a2);
v7 = cocos2d::CCPoint::CCPoint(&v13, v6);
kmGLTranslatef(v7, v13, v14, 0.0);
v8 = (cocos2d::CCCamera *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a2 + 672LL))(a2);
v9 = cocos2d::CCCamera::locate(v8);
kmGLTranslatef(v9, -v13, -v14, 0.0);
}
v10 = (cocos2d *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 9) + 104LL))(*((_QWORD *)this + 9));
cocos2d::ccGLBindTexture2D(v10, v11);
(*(void (__fastcall **)(cocos2d::CCGridBase *))(*(_QWORD *)this + 80LL))(this);
return _stack_chk_guard;
}