//
// cocos2d::extension::CCScrollView::visit from 0x1003e5bc0 to 0x1003e5d2b (363 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b3d020
// > ??> @ 0x100b3f550
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:29:47 +0000
//
__int64 __fastcall cocos2d::extension::CCScrollView::visit(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rdi
__int64 v4; // rax
unsigned int *v5; // r15
unsigned __int64 v6; // r12
__int64 v7; // r14
__int64 v8; // rdi
unsigned __int64 v9; // r14
__int64 v10; // rax
__int64 v11; // rdi
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1);
if ( (_BYTE)result )
{
kmGLPushMatrix();
v3 = *(_QWORD *)(a1 + 200);
if ( v3 && *(_BYTE *)(v3 + 56) == 1 )
{
cocos2d::CCGridBase::beforeDraw(v3);
cocos2d::CCNode::transformAncestors(a1);
}
cocos2d::CCNode::transform(a1);
cocos2d::extension::CCScrollView::beforeDraw(a1);
v4 = *(_QWORD *)(a1 + 208);
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
if ( *v5 )
{
v6 = 0;
do
{
v7 = *(_QWORD *)(*((_QWORD *)v5 + 2) + 8 * v6);
if ( (*(int (__fastcall **)(__int64))(*(_QWORD *)v7 + 104LL))(v7) >= 0 )
break;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 752LL))(v7);
++v6;
}
while ( v6 < *v5 );
}
else
{
LODWORD(v6) = 0;
}
v8 = a1;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 744LL))(a1);
if ( (unsigned int)v6 < *v5 )
{
v9 = (unsigned int)v6;
do
{
v8 = *(_QWORD *)(*((_QWORD *)v5 + 2) + 8 * v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 752LL))(v8);
++v9;
}
while ( v9 < *v5 );
}
}
else
{
v8 = a1;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 744LL))(a1);
}
if ( *(_BYTE *)(a1 + 469) == 1 )
{
if ( *(_BYTE *)(a1 + 536) != 1 )
{
glDisable(0xC11u);
v11 = *(_QWORD *)(a1 + 200);
if ( v11 )
{
LABEL_21:
if ( *(_BYTE *)(v11 + 56) == 1 )
cocos2d::CCGridBase::afterDraw(v11, a1);
}
return kmGLPopMatrix(v11);
}
v10 = cocos2d::CCEGLView::sharedOpenGLView(v8);
(*(void (__fastcall **)(__int64, float, float, float, float))(*(_QWORD *)v10 + 112LL))(
v10,
*(float *)(a1 + 520),
*(float *)(a1 + 524),
*(float *)(a1 + 528),
*(float *)(a1 + 532));
}
v11 = *(_QWORD *)(a1 + 200);
if ( v11 )
goto LABEL_21;
return kmGLPopMatrix(v11);
}
return result;
}