//
// CCScrollLayerExt::setContentOffset from 0x10039dbc0 to 0x10039dc58 (152 bytes)
//
// 3 xrefs:
// > CustomListView::setupList @ 0x100132418
// > sub_1001F6820 @ 0x1001f68a4
// > sub_100267F8C @ 0x100268030
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:03:44 +0000
//
__int64 __fastcall CCScrollLayerExt::setContentOffset(__int64 a1, double *a2, int a3)
{
_OWORD *v4; // x0
_OWORD *v5; // x20
char v6; // w0
__int64 v7; // x19
__int64 v8; // x1
__int64 v9; // x2
__int64 v10; // x3
__int64 v11; // x4
__int64 v12; // x5
__int64 v13; // x6
__int64 v14; // x7
__int64 v15; // x1
if ( a3 )
{
v4 = cocos2d::CCMoveTo::create(a2, 0.3);
v5 = cocos2d::CCEaseOut::create((__int64)v4, 3.0);
v6 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, (__int64)CCScrollLayerExt::constraintContent, 0);
v7 = *(_QWORD *)(a1 + 488);
v15 = sub_10021D420((__int64)v5, v8, v9, v10, v11, v12, v13, v14, v6);
return cocos2d::CCNode::runAction(v7, v15);
}
else
{
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 488) + 184LL))(*(_QWORD *)(a1 + 488));
return CCScrollLayerExt::doConstraintContent(a1, 0);
}
}