//
// CCScrollLayerExt::preVisitWithClippingRect from 0x10039e520 to 0x10039e5b4 (148 bytes)
//
// 2 xrefs:
// > ??> @ 0x1009435b0
// > ??> @ 0x100943c30
//
// 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 11:03:45 +0000
//
__int64 __fastcall CCScrollLayerExt::preVisitWithClippingRect(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v5; // x21
__int64 v6; // x0
float *v7; // x0
__int64 v8; // [xsp+8h] [xbp-28h] BYREF
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1);
if ( (_DWORD)result )
{
glEnable(0xC11u);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
cocos2d::CCNode::convertToWorldSpace(v5, v6, &v8);
v7 = cocos2d::CCEGLView::sharedOpenGLView();
return (*(__int64 (__fastcall **)(float *, float, float, float, float))(*(_QWORD *)v7 + 112LL))(
v7,
*(float *)&v8,
*((float *)&v8 + 1),
*(float *)(a2 + 8),
*(float *)(a2 + 12));
}
return result;
}