//
// CCScrollLayerExt::moveToTop from 0x140047070 to 0x1400470f2 (130 bytes)
//
// 6 xrefs:
// > BoomListView::setupList @ 0x14003c41b
// > CustomListView::setupList @ 0x1400abfce
// > CustomListView::setupList @ 0x1400ac100
// > CustomListView::setupList @ 0x1400ac280
// > CustomListView::setupList @ 0x1400ac2f3
// > ??> @ 0x1406c489c
//
// 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::moveToTop(CCScrollLayerExt *a1)
{
const cocos2d::CCSize *v2; // rbx
const cocos2d::CCSize *v3; // rax
float height; // xmm6_4
CCContentLayer *m_contentLayer; // rcx
CCContentLayer_vtbl *v6; // rbx
float v7; // xmm6_4
float *v8; // rax
const cocos2d::CCPoint *v9; // rax
cocos2d::CCPoint v10; // [rsp+40h] [rbp+8h] BYREF
v2 = a1->getContentSize(a1);
v3 = a1->m_contentLayer->getContentSize(a1->m_contentLayer);
height = v2->height;
m_contentLayer = a1->m_contentLayer;
v6 = m_contentLayer->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v7 = (float)(height - v3->height) - a1->m_scrollLimitTop;
v8 = (float *)m_contentLayer->getPosition_0(m_contentLayer);
cocos2d::CCPoint::CCPoint(&v10, *v8, v7);
v6->setPosition_0(a1->m_contentLayer, v9);
}