//
// CCScrollLayerExt::preVisitWithClippingRect from 0x10042f2f0 to 0x10042f36e (126 bytes)
//
// 2 xrefs:
// > ??> @ 0x1009360a0
// > ??> @ 0x1009827e8
//
// 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 __fastcall CCScrollLayerExt::preVisitWithClippingRect(CCScrollLayerExt *a1, cocos2d::CCRect a2)
{
__int64 v2; // rax
__int64 v3; // rsi
const cocos2d::CCPoint *v4; // r15
cocos2d::CCEGLView *v5; // rax
__int64 v6; // [rsp+0h] [rbp-20h] BYREF
v6 = v2;
if ( ((unsigned __int8 (__fastcall *)(CCScrollLayerExt *, double, double))a1->isVisible)(
a1,
*(double *)&a2.origin,
*(double *)&a2.size) )
{
glEnable(0xC11u);
v4 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(CCScrollLayerExt *))a1->getParent)(a1);
((void (__fastcall *)(CCScrollLayerExt *))a1->getPosition)(a1);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v6, v4);
v5 = cocos2d::CCEGLView::sharedOpenGLView();
((void (__fastcall *)(cocos2d::CCEGLView *, float, float, float, float))v5->setScissorInPoints)(
v5,
*(float *)&v6,
*((float *)&v6 + 1),
*(float *)(v3 + 8),
*(float *)(v3 + 12));
}
}