//
// cocos2d::CCGridBase::afterDraw from 0x1800225c0 to 0x180022687 (199 bytes)
//
// 6 xrefs:
// > cocos2d::CCNode::visit @ 0x18000589b
// > cocos2d::CCRenderTexture::visit @ 0x18006080f
// > cocos2d::CCParticleBatchNode::visit @ 0x180061f1f
// > cocos2d::CCSpriteBatchNode::visit @ 0x18008f60c
// > ??> @ 0x1801438a8
// > ??> @ 0x1801aef5c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCGridBase::afterDraw(cocos2d::CCGridBase *this, struct cocos2d::CCNode *a2)
{
cocos2d::CCDirector *v4; // rax
_DWORD *v5; // rax
cocos2d::CCCamera *v6; // rax
unsigned int v7; // eax
unsigned int v8; // edx
int v9; // [rsp+30h] [rbp+8h] BYREF
sub_180022000((__int64)this->m_pGrabber);
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::setProjection(v4, this->m_directorProjection);
if ( *(_BYTE *)(((__int64 (__fastcall *)(struct cocos2d::CCNode *))a2->getCamera)(a2) + 92) )
{
v5 = (_DWORD *)((__int64 (__fastcall *)(struct cocos2d::CCNode *))a2->getAnchorPointInPoints)(a2);
cocos2d::cc_timeval::operator=(&v9, v5);
kmGLTranslatef();
v6 = (cocos2d::CCCamera *)((__int64 (__fastcall *)(struct cocos2d::CCNode *))a2->getCamera)(a2);
cocos2d::CCCamera::locate(v6);
kmGLTranslatef();
}
v7 = ((__int64 (__fastcall *)(cocos2d::CCTexture2D *))this->m_pTexture->getName)(this->m_pTexture);
cocos2d::ccGLBindTexture2D((cocos2d *)v7, v8);
((void (__fastcall *)(cocos2d::CCGridBase *))this->blit)(this);
}