//
// cocos2d::CCSpriteBatchNode::visit from 0x100176830 to 0x1001768c3 (147 bytes)
//
// 4 xrefs:
// > ??> @ 0x1008c2f00
// > ??> @ 0x1008eabb0
// > ??> @ 0x10095deb8
// > ??> @ 0x1009743a0
//
// 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 *a1)
{
cocos2d::CCGridBase *m_pGrid; // rdi
cocos2d::CCGridBase *v3; // rdi
if ( ((unsigned int (__fastcall *)(cocos2d::CCTextureAtlas *))a1->m_pobTextureAtlas->getTotalQuads)(a1->m_pobTextureAtlas)
&& a1->m_bVisible )
{
sub_100207E70();
m_pGrid = a1->m_pGrid;
if ( m_pGrid && m_pGrid->m_bActive )
{
cocos2d::CCGridBase::beforeDraw(m_pGrid);
cocos2d::CCNode::transformAncestors(a1);
}
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->sortAllChildren)(a1);
cocos2d::CCNode::transform(a1);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->draw)(a1);
v3 = a1->m_pGrid;
if ( v3 )
{
if ( v3->m_bActive )
cocos2d::CCGridBase::afterDraw(v3, a1);
}
sub_100207EB0();
}
}