//
// cocos2d::CCSpriteBatchNode::visit from 0x1001d72cc to 0x1001d737c (176 bytes)
//
// 3 xrefs:
// > ??> @ 0x10076cd10
// > ??> @ 0x1007bf728
// > ??> @ 0x1007e9dc8
//
// 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; // x0
__int64 v3; // x1
cocos2d::CCGridBase *v4; // x0
if ( ((unsigned int (__fastcall *)(cocos2d::CCTextureAtlas *))a1->m_pobTextureAtlas->getTotalQuads)(a1->m_pobTextureAtlas)
&& a1->m_bVisible )
{
sub_100168594();
m_pGrid = a1->m_pGrid;
if ( m_pGrid && m_pGrid->m_bActive )
{
sub_1003422EC();
cocos2d::CCNode::transformAncestors(a1);
}
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->sortAllChildren)(a1);
cocos2d::CCNode::transform(a1);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->draw)(a1);
v4 = a1->m_pGrid;
if ( v4 )
{
if ( v4->m_bActive )
v4 = (cocos2d::CCGridBase *)sub_100342320();
}
sub_1001685D8((__int64)v4, v3);
}
}