//
// GameToolbox::preVisitWithClipRect from 0x57ff00 to 0x57ff4c (76 bytes)
//
// 2 xrefs:
// > GJSmartBlockPreviewSprite::visit @ 0x9d0410
// > ??> @ 0xc71a0
//
// 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 GameToolbox::preVisitWithClipRect(cocos2d::CCRect a1)
{
cocos2d::CCRect *v1; // x0
cocos2d::CCRect *v2; // x19
cocos2d::CCEGLView *v3; // x0
v2 = v1;
glEnable();
GameToolbox::contentScaleClipRect(v2);
v3 = cocos2d::CCEGLView::sharedOpenGLView();
v3->setScissorInPoints(v3, v2->origin.x, v2->origin.y, v2->size.width, v2->size.height);
}