//
// CCScrollLayerExt::preVisitWithClippingRect from 0x10041c3f0 to 0x10041c46e (126 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b3fd78
// > ??> @ 0x100b96388
//
// 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:30:13 +0000
//
__int64 __fastcall CCScrollLayerExt::preVisitWithClippingRect(__int64 a1, __int64 a2)
{
double v2; // rax
__int64 result; // rax
__int64 v4; // r15
unsigned int *v5; // rax
__int64 v6; // rax
double v7[4]; // [rsp+0h] [rbp-20h] BYREF
v7[0] = v2;
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1);
if ( (_BYTE)result )
{
glEnable(0xC11u);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1);
v5 = (unsigned int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
cocos2d::CCNode::convertToWorldSpace(v7, v4, v5);
v6 = cocos2d::CCEGLView::sharedOpenGLView(v7);
return (*(__int64 (__fastcall **)(__int64, float, float, float, float))(*(_QWORD *)v6 + 112LL))(
v6,
*(float *)v7,
*((float *)v7 + 1),
*(float *)(a2 + 8),
*(float *)(a2 + 12));
}
return result;
}