//
// GameToolbox::preVisitWithClippingRect from 0x69bcb8 to 0x69bd7c (196 bytes)
//
// 5 xrefs:
// > BoomScrollLayer::visit @ 0x6891f4
// > CCScrollLayerExt::visit @ 0x695b04
// > ScrollingLayer::visit @ 0x6c9dcc
// > ParticlePreviewLayer::visit @ 0xafcac0
// > ??> @ 0xfb488
//
// 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 12:50:40 +0000
//
__int64 __fastcall GameToolbox::preVisitWithClippingRect(__int64 a1, float *a2)
{
cocos2d::CCEGLView *v4; // x0
__int64 v5; // x0
_BYTE v7[16]; // [xsp+48h] [xbp+48h] BYREF
_BYTE v8[16]; // [xsp+58h] [xbp+58h] BYREF
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1) )
{
glEnable();
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v7, (const cocos2d::CCRect *)a2);
GameToolbox::worldClipRect(a1, (const cocos2d::CCRect *)v7, (cocos2d::CCRect *)v8);
v4 = (cocos2d::CCEGLView *)cocos2d::CCRect::operator=(a2, v8);
v5 = cocos2d::CCEGLView::sharedOpenGLView(v4);
(*(void (__fastcall **)(__int64, float, float, float, float))(*(_QWORD *)v5 + 112LL))(v5, *a2, a2[1], a2[2], a2[3]);
}
return _stack_chk_guard;
}