//
// CCScrollLayerExt::setContentOffset from 0x2e8ad0 to 0x2e8b2e (94 bytes)
//
// 1 xrefs:
// > CustomListView::setupList @ 0x33095c
//
// 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::setContentOffset(CCScrollLayerExt *a1, cocos2d::CCPoint a2, bool a3)
{
cocos2d::CCMoveTo *v4; // r0
cocos2d::CCEaseOut *v5; // r6
cocos2d::CCFiniteTimeAction *v6; // r0
CCContentLayer *m_contentLayer; // r4
int v8; // r3
cocos2d::CCAction *v9; // r0
if ( LODWORD(a2.y) )
{
v4 = cocos2d::CCMoveTo::create(0.3, (const cocos2d::CCPoint *)LODWORD(a2.x));
v5 = cocos2d::CCEaseOut::create(v4, 3.0);
v6 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, CCScrollLayerExt::constraintContent, 0);
m_contentLayer = a1->m_contentLayer;
v9 = (cocos2d::CCAction *)cocos2d::CCSequence::create(
(cocos2d::CCSequence *)v5,
v6,
0,
v8,
CCScrollLayerExt::constraintContent,
0);
cocos2d::CCNode::runAction(m_contentLayer, v9);
}
else
{
((void (__fastcall *)(CCContentLayer *))a1->m_contentLayer->setPosition)(a1->m_contentLayer);
CCScrollLayerExt::constraintContent(a1);
}
}