//
// GameToolbox::preVisitWithClippingRect from 0x100048dc0 to 0x100048e40 (128 bytes)
//
// 4 xrefs:
// > BoomScrollLayer::visit @ 0x1001559b8
// > ScrollingLayer::visit @ 0x10024e720
// > ParticlePreviewLayer::visit @ 0x1003706a4
// > CCScrollLayerExt::visit @ 0x10039e3d8
//
// 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 10:57:40 +0000
//
__int64 __fastcall GameToolbox::preVisitWithClippingRect(__int64 a1, float *a2)
{
__int64 result; // x0
double v5; // d0
__int64 v6; // x0
float32x2_t v7[2]; // [xsp+0h] [xbp-30h] BYREF
_QWORD v8[2]; // [xsp+10h] [xbp-20h] BYREF
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1);
if ( (_DWORD)result )
{
glEnable(0xC11u);
sub_1000264D4(v7, (__int64)a2);
sub_100048C90(a1, v7, v8);
v5 = sub_1000264EC(a2, (__int64)v8);
v6 = cocos2d::CCEGLView::sharedOpenGLView(v5);
return (*(__int64 (__fastcall **)(__int64, float, float, float, float))(*(_QWORD *)v6 + 112LL))(
v6,
*a2,
a2[1],
a2[2],
a2[3]);
}
return result;
}