//
// CCScrollLayerExt::moveToTop from 0x100300d9c to 0x100300e34 (152 bytes)
//
// 5 xrefs:
// > CustomListView::setupList @ 0x10010b6e4
// > CustomListView::setupList @ 0x10010b8f0
// > CustomListView::setupList @ 0x10010b974
// > CustomListView::setupList @ 0x10010ba30
// > BoomListView::setupList @ 0x1001d00e0
//
// 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::moveToTop(CCScrollLayerExt *a1)
{
CCContentLayer *m_contentLayer; // x20
unsigned __int32 v3; // s8
float v4; // s9
__n128 v5; // q1
__n128 v6; // q0
int v7; // [xsp+8h] [xbp-28h] BYREF
m_contentLayer = a1->m_contentLayer;
v3 = *(_DWORD *)((__int64 (__fastcall *)(CCContentLayer *))m_contentLayer->getPosition)(m_contentLayer);
v4 = *(float *)(((__int64 (__fastcall *)(CCScrollLayerExt *))a1->getContentSize)(a1) + 4);
v5.n128_f32[0] = (float)(v4
- *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer)
+ 4))
- a1->m_scrollLimitTop;
v6.n128_u32[0] = v3;
sub_100022980(v6, v5, &v7);
((void (__fastcall *)(CCContentLayer *, int *))m_contentLayer->setPosition)(m_contentLayer, &v7);
}