//
// CCScrollLayerExt::scrollLayer from 0x57a1f8 to 0x57a2ec (244 bytes)
//
// 2 xrefs:
// > TableView::scrollWheel @ 0x57a5ec
// > ??> @ 0x6d248
//
// 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 CCScrollLayerExt::scrollLayer(CCScrollLayerExt *a1, float a2)
{
const cocos2d::CCPoint *v3; // x23
float MinY; // s8
float MaxY; // s0
__int64 v7; // [xsp+58h] [xbp+58h] BYREF
cocos2d::CCPoint v8; // [xsp+60h] [xbp+60h] BYREF
v3 = a1->m_contentLayer->getPosition(a1->m_contentLayer);
cocos2d::CCPoint::CCPoint(&v8, 0.0, a2);
cocos2d::CCPoint::operator+(&v7, v3, &v8);
MinY = CCScrollLayerExt::getMinY(a1);
MaxY = CCScrollLayerExt::getMaxY(a1);
if ( MinY > *((float *)&v7 + 1) )
{
*((float *)&v7 + 1) = MinY;
}
else if ( MaxY < *((float *)&v7 + 1) )
{
*((float *)&v7 + 1) = MaxY;
}
a1->m_contentLayer->setPosition(a1->m_contentLayer, (const cocos2d::CCPoint *)&v7);
}