//
// CCScrollLayerExt::preVisitWithClippingRect from 0x694940 to 0x694a00 (192 bytes)
//
// 3 xrefs:
// > ??> @ 0xd81a8
// > ??> @ 0x1418780
// > ??> @ 0x1418e50
//
// 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:37 +0000
//
__int64 __fastcall CCScrollLayerExt::preVisitWithClippingRect(__int64 a1, __int64 a2)
{
cocos2d::CCNode *v4; // x22
const cocos2d::CCPoint *v5; // x0
cocos2d::CCEGLView *v6; // x0
__int64 v7; // x0
__int64 v9; // [xsp+30h] [xbp+30h] BYREF
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1) )
{
glEnable();
v4 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1);
v5 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
v6 = (cocos2d::CCEGLView *)cocos2d::CCNode::convertToWorldSpace(&v9, v4, v5);
v7 = cocos2d::CCEGLView::sharedOpenGLView(v6);
(*(void (__fastcall **)(__int64, float, float, float, float))(*(_QWORD *)v7 + 112LL))(
v7,
*(float *)&v9,
*((float *)&v9 + 1),
*(float *)(a2 + 8),
*(float *)(a2 + 12));
}
return _stack_chk_guard;
}