//
// cocos2d::CCSpriteBatchNode::visit from 0x18008f590 to 0x18008f621 (145 bytes)
//
// 5 xrefs:
// > ??> @ 0x1800ec558
// > ??> @ 0x180103f58
// > ??> @ 0x180105cc0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b61c8
//
// 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::CCSpriteBatchNode::visit(cocos2d::CCSpriteBatchNode *this)
{
cocos2d::CCGridBase *m_pGrid; // rcx
cocos2d::CCGridBase *v3; // rcx
if ( ((unsigned int (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getTotalQuads)(this->m_pobTextureAtlas)
&& this->m_bVisible )
{
kmGLPushMatrix();
m_pGrid = this->m_pGrid;
if ( m_pGrid && m_pGrid->m_bActive )
{
cocos2d::CCGridBase::beforeDraw(m_pGrid);
cocos2d::CCNode::transformAncestors(this);
}
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *))this->sortAllChildren)(this);
cocos2d::CCNode::transform(this);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *))this->draw)(this);
v3 = this->m_pGrid;
if ( v3 )
{
if ( v3->m_bActive )
cocos2d::CCGridBase::afterDraw(v3, this);
}
kmGLPopMatrix();
}
}