//
// CCScrollLayerExt::setContentOffset from 0x57a164 to 0x57a1f4 (144 bytes)
//
// 3 xrefs:
// > CustomListView::setupList @ 0x60d418
// > CustomListView::setupList @ 0x60d5c0
// > ??> @ 0x79ba8
//
// 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 CCScrollLayerExt::setContentOffset(CCScrollLayerExt *a1, cocos2d::CCPoint a2, bool a3)
{
char v3; // w2
cocos2d::CCMoveTo *v5; // x0
cocos2d::CCEaseOut *v6; // x20
cocos2d::CCFiniteTimeAction *v7; // x0
CCContentLayer *m_contentLayer; // x19
cocos2d::CCAction *v9; // x0
if ( v3 )
{
v5 = cocos2d::CCMoveTo::create(0.3, (const cocos2d::CCPoint *)a3);
v6 = cocos2d::CCEaseOut::create(v5, 3.0);
v7 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, CCScrollLayerExt::constraintContent, 0);
m_contentLayer = a1->m_contentLayer;
v9 = (cocos2d::CCAction *)cocos2d::CCSequence::create((cocos2d::CCSequence *)v6, v7, 0);
cocos2d::CCNode::runAction(m_contentLayer, v9);
}
else
{
((void (__fastcall *)(CCContentLayer *, long double, long double))a1->m_contentLayer->setPosition)(
a1->m_contentLayer,
*(long double *)&a2.x,
*(long double *)&a2.y);
CCScrollLayerExt::constraintContent(a1);
}
}