// // CCScrollLayerExt::preVisitWithClippingRect from 0x100301830 to 0x1003018c4 (148 bytes) // // 2 xrefs: // > @ 0x1007eb458 // > @ 0x1007eba88 // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall CCScrollLayerExt::preVisitWithClippingRect(CCScrollLayerExt *a1, cocos2d::CCRect a2) { __int64 v2; // x1 __int64 v3; // x19 cocos2d::CCNode *v5; // x21 const cocos2d::CCPoint *v6; // x0 cocos2d::CCEGLView *v7; // x0 float v8; // [xsp+8h] [xbp-28h] float v9; // [xsp+Ch] [xbp-24h] v3 = v2; if ( ((unsigned int (__fastcall *)(CCScrollLayerExt *, __n128, __n128, __n128, __n128))a1->isVisible)( a1, (__n128)a2, *(__n128 *)((char *)&a2 + 4), *(__n128 *)&a2.size.width, *(__n128 *)&a2.size.height) ) { glEnable(0xC11u); v5 = (cocos2d::CCNode *)((__int64 (__fastcall *)(CCScrollLayerExt *))a1->getParent)(a1); v6 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(CCScrollLayerExt *))a1->getPosition)(a1); cocos2d::CCNode::convertToWorldSpace(v5, v6); v7 = cocos2d::CCEGLView::sharedOpenGLView(); ((void (__fastcall *)(cocos2d::CCEGLView *, float, float, float, float))v7->setScissorInPoints)( v7, v8, v9, *(float *)(v3 + 8), *(float *)(v3 + 12)); } }