//
// CCScrollLayerExt::moveToTopWithOffset from 0x10042e4e0 to 0x10042e576 (150 bytes)
//
// 5 xrefs:
// > CustomListView::setupList @ 0x10024d96c
// > CustomListView::setupList @ 0x10024dbcd
// > CustomListView::setupList @ 0x10024dc63
// > CustomListView::setupList @ 0x10024dda6
// > BoomListView::setupList @ 0x10030c9f8
//
// 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 __fastcall CCScrollLayerExt::moveToTopWithOffset(CCScrollLayerExt *a1, float a2)
{
CCContentLayer *m_contentLayer; // rbx
float v4; // xmm1_4
float v5[3]; // [rsp+Ch] [rbp-24h] BYREF
float v6; // [rsp+18h] [rbp-18h]
float v7; // [rsp+1Ch] [rbp-14h]
v5[2] = a2;
m_contentLayer = a1->m_contentLayer;
v6 = *(float *)((__int64 (__fastcall *)(CCContentLayer *))m_contentLayer->getPosition)(m_contentLayer);
v7 = *(float *)(((__int64 (__fastcall *)(CCScrollLayerExt *))a1->getContentSize)(a1) + 4);
v4 = (float)((float)(v7
- *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer)
+ 4))
- a1->m_scrollLimitTop)
+ a2;
sub_10028CBE0(v5, v6, v4);
((void (__fastcall *)(CCContentLayer *, float *))m_contentLayer->setPosition)(m_contentLayer, v5);
}