//
// cocos2d::extension::CCScrollView::visit from 0x7aea5c to 0x7aeb1a (190 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:00:05 +0000
//
int __fastcall cocos2d::extension::CCScrollView::visit(cocos2d::extension::CCScrollView *this)
{
int result; // r0
cocos2d::CCGridBase *v3; // r0
int v4; // r3
unsigned int *v5; // r6
unsigned int i; // r5
int v7; // r7
int v8; // r7
int v9; // r1
int v10; // r2
int v11; // r0
cocos2d::CCGridBase *v12; // r0
result = (*(int (__fastcall **)(cocos2d::extension::CCScrollView *))(*(_DWORD *)this + 176))(this);
if ( result )
{
kmGLPushMatrix(result);
v3 = *((cocos2d::CCGridBase **)this + 47);
if ( v3 && *((_BYTE *)v3 + 52) )
{
cocos2d::CCGridBase::beforeDraw(v3);
cocos2d::CCNode::transformAncestors(this);
}
cocos2d::CCNode::transform(this);
cocos2d::extension::CCScrollView::beforeDraw(this);
v4 = *((_DWORD *)this + 48);
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 52);
for ( i = 0; i < *v5; ++i )
{
v7 = *(_DWORD *)(v5[3] + 4 * i);
if ( (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 52))(v7) >= 0 )
break;
(*(void (__fastcall **)(int))(*(_DWORD *)v7 + 376))(v7);
}
v8 = 4 * i;
(*(void (__fastcall **)(cocos2d::extension::CCScrollView *))(*(_DWORD *)this + 372))(this);
while ( i < *v5 )
{
++i;
v11 = *(_DWORD *)(v5[3] + v8);
v8 += 4;
(*(void (__fastcall **)(int))(*(_DWORD *)v11 + 376))(v11);
}
}
else
{
(*(void (__fastcall **)(cocos2d::extension::CCScrollView *))(*(_DWORD *)this + 372))(this);
}
cocos2d::extension::CCScrollView::afterDraw(this, v9, v10);
v12 = *((cocos2d::CCGridBase **)this + 47);
if ( v12 )
{
if ( *((_BYTE *)v12 + 52) )
cocos2d::CCGridBase::afterDraw(v12, this);
}
return kmGLPopMatrix();
}
return result;
}