//
// ParticlePreviewLayer::preVisitWithClippingRect from 0x9c9860 to 0x9c993c (220 bytes)
//
// 1 xrefs:
// > ??> @ 0x54d80
//
// 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 ParticlePreviewLayer::preVisitWithClippingRect(ParticlePreviewLayer *a1, cocos2d::CCRect a2)
{
__int64 v2; // x1
__int64 v3; // x21
cocos2d::CCNode *v5; // x23
const cocos2d::CCPoint *v6; // x0
cocos2d::CCEGLView *v7; // x0
float v8; // [xsp+48h] [xbp+48h]
float v9; // [xsp+4Ch] [xbp+4Ch]
cocos2d::CCPoint v10; // [xsp+50h] [xbp+50h] BYREF
v3 = v2;
if ( ((unsigned __int8 (__fastcall *)(ParticlePreviewLayer *, 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::CCPoint::operator+(&v10, v6, v3);
cocos2d::CCNode::convertToWorldSpace(v5, &v10);
v7 = cocos2d::CCEGLView::sharedOpenGLView();
v7->setScissorInPoints(v7, v8, v9, *(float *)(v3 + 8), *(float *)(v3 + 12));
}
}