//
// ParticlePreviewLayer::preVisitWithClippingRect from 0x10046bec0 to 0x10046bf53 (147 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:30:31 +0000
//
__int64 __fastcall ParticlePreviewLayer::preVisitWithClippingRect(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v3; // r15
unsigned __int64 *v4; // rax
__int64 v5; // rax
double v6; // [rsp+8h] [rbp-28h] BYREF
double v7[4]; // [rsp+10h] [rbp-20h] BYREF
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1);
if ( (_BYTE)result )
{
glEnable(0xC11u);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1);
v4 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
sub_100278350(&v6, v4, (unsigned __int64 *)a2);
cocos2d::CCNode::convertToWorldSpace(v7, v3, (unsigned int *)&v6);
v5 = cocos2d::CCEGLView::sharedOpenGLView(v7);
return (*(__int64 (__fastcall **)(__int64, float, float, float, float))(*(_QWORD *)v5 + 112LL))(
v5,
*(float *)v7,
*((float *)v7 + 1),
*(float *)(a2 + 8),
*(float *)(a2 + 12));
}
return result;
}