//
// ParticlePreviewLayer::preVisitWithClippingRect from 0xaff668 to 0xaff744 (220 bytes)
//
// 1 xrefs:
// > ??> @ 0x75700
//
// This function is hookable on this platform (idp: arm, 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 13:01:19 +0000
//
__int64 __fastcall ParticlePreviewLayer::preVisitWithClippingRect(__int64 a1, __int64 a2)
{
cocos2d::CCNode *v5; // x23
__int64 v6; // x0
cocos2d::CCEGLView *v7; // x0
__int64 v8; // x0
__int64 v9; // [xsp+48h] [xbp+48h] BYREF
__int64 v10; // [xsp+50h] [xbp+50h] BYREF
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1) )
{
glEnable();
v5 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
cocos2d::CCPoint::operator+(&v10, v6);
v7 = (cocos2d::CCEGLView *)cocos2d::CCNode::convertToWorldSpace(&v9, v5, (const cocos2d::CCPoint *)&v10);
v8 = cocos2d::CCEGLView::sharedOpenGLView(v7);
(*(void (__fastcall **)(__int64, float, float, float, float))(*(_QWORD *)v8 + 112LL))(
v8,
*(float *)&v9,
*((float *)&v9 + 1),
*(float *)(a2 + 8),
*(float *)(a2 + 12));
}
return _stack_chk_guard;
}