//
// CCScrollLayerExt::scrollLayer from 0x2e8b3c to 0x2e8bd0 (148 bytes)
//
// 1 xrefs:
// > TableView::scrollWheel @ 0x2e8dec
//
// 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 *v4; // r8
float MinY; // s16
float MaxY; // r0
_BYTE v7[4]; // [sp+4h] [bp-8h] BYREF
float v8; // [sp+8h] [bp-4h]
cocos2d::CCPoint v9; // [sp+Ch] [bp+0h] BYREF
v4 = a1->m_contentLayer->getPosition(a1->m_contentLayer);
cocos2d::CCPoint::CCPoint(&v9, 0.0, a2);
cocos2d::CCPoint::operator+(v7, v4, &v9);
MinY = CCScrollLayerExt::getMinY(a1);
MaxY = CCScrollLayerExt::getMaxY(a1);
if ( v8 >= MinY )
{
if ( v8 > MaxY )
v8 = MaxY;
}
else
{
v8 = MinY;
}
a1->m_contentLayer->setPosition(a1->m_contentLayer, (const cocos2d::CCPoint *)v7);
}