//
// cocos2d::extension::CCScrollView::visit from 0xd17da8 to 0xd17ef4 (332 bytes)
//
// 3 xrefs:
// > ??> @ 0xf63e8
// > ??> @ 0x150ed00
// > ??> @ 0x150f390
//
// This function is hookable on this platform (idp: arm, 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 13:07:06 +0000
//
__int64 __fastcall cocos2d::extension::CCScrollView::visit(cocos2d::extension::CCScrollView *this)
{
__int64 result; // x0
cocos2d::CCGridBase *v3; // x0
__int64 v4; // x0
__int64 v5; // x21
unsigned int i; // w19
__int64 v7; // x20
__int64 v8; // x1
cocos2d::CCGridBase *v9; // x0
result = (*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCScrollView *))(*(_QWORD *)this + 352LL))(this);
if ( (_BYTE)result )
{
kmGLPushMatrix(result);
v3 = *((cocos2d::CCGridBase **)this + 25);
if ( v3 && *((_BYTE *)v3 + 56) )
{
cocos2d::CCGridBase::beforeDraw(v3);
cocos2d::CCNode::transformAncestors(this);
}
cocos2d::CCNode::transform(this);
cocos2d::extension::CCScrollView::beforeDraw(this);
v4 = *((_QWORD *)this + 26);
if ( v4 )
{
v5 = *(_QWORD *)(v4 + 56);
for ( i = 0; *(_DWORD *)v5 > i; ++i )
{
v7 = *(_QWORD *)(*(_QWORD *)(v5 + 16) + 8LL * i);
if ( ((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 104LL))(v7) & 0x80000000) == 0 )
break;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 752LL))(v7);
}
(*(void (__fastcall **)(cocos2d::extension::CCScrollView *))(*(_QWORD *)this + 744LL))(this);
while ( *(_DWORD *)v5 > i )
{
v8 = *(_QWORD *)(*(_QWORD *)(v5 + 16) + 8LL * i++);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 752LL))(v8);
}
}
else
{
(*(void (__fastcall **)(cocos2d::extension::CCScrollView *))(*(_QWORD *)this + 744LL))(this);
}
cocos2d::extension::CCScrollView::afterDraw((float *)this);
v9 = *((cocos2d::CCGridBase **)this + 25);
if ( v9 )
{
if ( *((_BYTE *)v9 + 56) )
v9 = (cocos2d::CCGridBase *)cocos2d::CCGridBase::afterDraw(v9, this);
}
return kmGLPopMatrix(v9);
}
return result;
}