//
// GameToolbox::preVisitWithClippingRect from 0x1400645f0 to 0x140064693 (163 bytes)
//
// 5 xrefs:
// > BoomScrollLayer::visit @ 0x14003dc4a
// > CCScrollLayerExt::visit @ 0x140047c0c
// > ScrollingLayer::visit @ 0x140070ff9
// > ParticlePreviewLayer::visit @ 0x1404358e5
// > ??> @ 0x1406c5d0c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GameToolbox::preVisitWithClippingRect(cocos2d::CCNode *a1, cocos2d::CCRect *a2)
{
const cocos2d::CCPoint *v4; // rax
cocos2d::CCNode *v5; // rax
struct cocos2d::CCPoint v6; // rax
__int64 v7; // rax
char v8; // [rsp+40h] [rbp+8h] BYREF
struct cocos2d::CCPoint v9; // [rsp+50h] [rbp+18h] BYREF
if ( a1->isVisible(a1) )
{
glEnable(0xC11u);
v4 = a1->getPosition_0(a1);
cocos2d::CCPoint::operator+(v4, &v8);
v5 = a1->getParent(a1);
v6 = cocos2d::CCNode::convertToWorldSpace(v5, &v9);
((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(a2, v6);
v7 = cocos2d::CCEGLView::sharedOpenGLView();
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 104LL))(v7);
}
}