//
// CCScrollLayerExt::preVisitWithClippingRect from 0x3c8458 to 0x3c84be (102 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:46:35 +0000
//
int __fastcall CCScrollLayerExt::preVisitWithClippingRect(int a1, int a2)
{
int result; // r0
const cocos2d::CCPoint *v5; // r7
cocos2d::CCEGLView *v6; // r0
int v7; // r0
_DWORD v8[2]; // [sp+Ch] [bp-10h] BYREF
result = (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 176))(a1);
if ( result )
{
glEnable(0xC11u);
v5 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)a1 + 256))(a1);
(*(void (__fastcall **)(int))(*(_DWORD *)a1 + 96))(a1);
v6 = (cocos2d::CCEGLView *)cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v8, v5);
v7 = cocos2d::CCEGLView::sharedOpenGLView(v6);
return (*(int (__fastcall **)(int, _DWORD, _DWORD, _DWORD, _DWORD))(*(_DWORD *)v7 + 56))(
v7,
v8[0],
v8[1],
*(_DWORD *)(a2 + 8),
*(_DWORD *)(a2 + 12));
}
return result;
}