//
// cocos2d::CCSpriteBatchNode::visit from 0xb1711c to 0xb171c8 (172 bytes)
//
// 5 xrefs:
// > ??> @ 0x8a330
// > ??> @ 0x1137ab0
// > ??> @ 0x1202ce0
// > ??> @ 0x1218dd0
// > ??> @ 0x121ac50
//
// 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 cocos2d::CCSpriteBatchNode::visit(cocos2d::CCSpriteBatchNode *a1)
{
cocos2d::CCGridBase *m_pGrid; // x0
cocos2d::CCGridBase *v3; // x0
if ( a1->m_pobTextureAtlas->getTotalQuads(a1->m_pobTextureAtlas) && a1->m_bVisible )
{
kmGLPushMatrix();
m_pGrid = a1->m_pGrid;
if ( m_pGrid && m_pGrid->m_bActive )
{
cocos2d::CCGridBase::beforeDraw(m_pGrid);
cocos2d::CCNode::transformAncestors(a1);
}
a1->sortAllChildren(a1);
cocos2d::CCNode::transform(a1);
a1->draw(a1);
v3 = a1->m_pGrid;
if ( v3 )
{
if ( v3->m_bActive )
cocos2d::CCGridBase::afterDraw(v3, a1);
}
kmGLPopMatrix();
}
}