//
// GameToolbox::preVisitWithClipRect from 0x2ebf60 to 0x2ebf8a (42 bytes)
//
// 1 xrefs:
// > GJSmartBlockPreviewSprite::visit @ 0x5396a0
//
// 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)
{
float x; // r4
cocos2d::CCEGLView *v2; // r0
float y; // [sp+4h] [bp-8h]
float width; // [sp+8h] [bp-4h]
y = a1.origin.y;
width = a1.size.width;
x = a1.origin.x;
glEnable(0xC11u);
GameToolbox::contentScaleClipRect((cocos2d::CCRect *)LODWORD(x));
v2 = cocos2d::CCEGLView::sharedOpenGLView();
((void (__fastcall *)(cocos2d::CCEGLView *, _DWORD, _DWORD, _DWORD, _DWORD, float, float))v2->setScissorInPoints)(
v2,
*(_DWORD *)LODWORD(x),
*(_DWORD *)(LODWORD(x) + 4),
*(_DWORD *)(LODWORD(x) + 8),
*(_DWORD *)(LODWORD(x) + 12),
COERCE_FLOAT(LODWORD(y)),
COERCE_FLOAT(LODWORD(width)));
}