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