//
// CCScrollLayerExt::preVisitWithClippingRect from 0x14004bcf0 to 0x14004bd95 (165 bytes)
//
// 5 xrefs:
// > ??> @ 0x14070b0b0
// > ??> @ 0x140714aa0
// > ??> @ 0x140885f84
// > ??> @ 0x140885f94
// > ??> @ 0x14090fec0
//
// 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 11:25:33 +0000
//
__int64 __fastcall CCScrollLayerExt::preVisitWithClippingRect(__int64 a1)
{
__int64 result; // rax
__int64 (__fastcall *v3)(__int64); // rdi
__int64 v4; // rbx
__int64 v5; // rax
__int64 v6; // rax
int v7; // [rsp+40h] [rbp+8h] BYREF
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 344LL))(a1);
if ( (_BYTE)result )
{
glEnable(0xC11u);
v3 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 504LL);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
v5 = v3(a1);
cocos2d::CCNode::convertToWorldSpace(v5, &v7, v4);
v6 = cocos2d::CCEGLView::sharedOpenGLView();
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 104LL))(v6);
}
return result;
}