//
// CCScrollLayerExt::preVisitWithClippingRect from 0x579454 to 0x579514 (192 bytes)
//
// 3 xrefs:
// > ??> @ 0xa4718
// > ??> @ 0x113a8c0
// > ??> @ 0x113af40
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void CCScrollLayerExt::preVisitWithClippingRect(CCScrollLayerExt *a1, cocos2d::CCRect a2)
{
__int64 v2; // x1
__int64 v4; // x21
cocos2d::CCNode *v5; // x22
const cocos2d::CCPoint *v6; // x0
cocos2d::CCEGLView *v7; // x0
float v8; // [xsp+30h] [xbp+30h]
float v9; // [xsp+34h] [xbp+34h]
v4 = v2;
if ( ((unsigned __int8 (__fastcall *)(CCScrollLayerExt *, long double, long double, long double, long double))a1->isVisible)(
a1,
*(long double *)&a2,
*(long double *)((char *)&a2 + 4),
*(long double *)&a2.size.width,
*(long double *)&a2.size.height) )
{
glEnable();
v5 = a1->getParent(a1);
v6 = a1->getPosition(a1);
cocos2d::CCNode::convertToWorldSpace(v5, v6);
v7 = cocos2d::CCEGLView::sharedOpenGLView();
v7->setScissorInPoints(v7, v8, v9, *(float *)(v4 + 8), *(float *)(v4 + 12));
}
}