//
// cocos2d::extension::CCScrollView::visit from 0xaa6364 to 0xaa64b0 (332 bytes)
//
// 3 xrefs:
// > ??> @ 0xbcd00
// > ??> @ 0x11f9430
// > ??> @ 0x11f9aa0
//
// 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::extension::CCScrollView::visit(cocos2d::extension::CCScrollView *a1)
{
_BOOL8 v2; // x0
cocos2d::CCGridBase *m_pGrid; // x0
cocos2d::CCArray *m_pChildren; // x0
cocos2d::ccArray *data; // x21
unsigned int i; // w19
cocos2d::CCObject *v7; // x20
cocos2d::CCObject *v8; // x1
cocos2d::CCGridBase *v9; // x0
v2 = a1->isVisible(a1);
if ( v2 )
{
kmGLPushMatrix(v2);
m_pGrid = a1->m_pGrid;
if ( m_pGrid && m_pGrid->m_bActive )
{
cocos2d::CCGridBase::beforeDraw(m_pGrid);
cocos2d::CCNode::transformAncestors(a1);
}
cocos2d::CCNode::transform(a1);
cocos2d::extension::CCScrollView::beforeDraw(a1);
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
data = m_pChildren->data;
for ( i = 0; data->num > i; ++i )
{
v7 = data->arr[i];
if ( (((__int64 (__fastcall *)(cocos2d::CCObject *))v7->__vftable[1].isEqual)(v7) & 0x80000000) == 0 )
break;
v7->__vftable[9].~CCObject_0(v7);
}
a1->draw(a1);
while ( data->num > i )
{
v8 = data->arr[i++];
v8->__vftable[9].~CCObject_0(v8);
}
}
else
{
a1->draw(a1);
}
cocos2d::extension::CCScrollView::afterDraw(a1);
v9 = a1->m_pGrid;
if ( v9 )
{
if ( v9->m_bActive )
cocos2d::CCGridBase::afterDraw(v9, a1);
}
kmGLPopMatrix();
}
}