//
// CCScrollLayerExt::moveToTop from 0x14004ae30 to 0x14004aec5 (149 bytes)
//
// 8 xrefs:
// > BoomListView::setupList @ 0x14003fcab
// > MessageThreadsPage::onScrollToTop @ 0x1400d90fc
// > CustomListView::setupList @ 0x14014653e
// > CustomListView::setupList @ 0x140146730
// > CustomListView::setupList @ 0x1401468c0
// > CustomListView::setupList @ 0x1401468f1
// > CustomListView::setupList @ 0x140146a00
// > ??> @ 0x14090fda0
//
// This function is hookable on this platform (idp: pc, 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:25:32 +0000
//
__int64 __fastcall CCScrollLayerExt::moveToTop(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rbx
float v4; // xmm6_4
float *v5; // rax
__int64 *v6; // rdi
__int64 v7; // rbx
__int64 v8; // rax
char v10; // [rsp+40h] [rbp+8h] BYREF
v2 = *(_QWORD *)(a1 + 480);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1);
v4 = (float)(*(float *)(v3 + 4) - *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 320LL))(v2) + 4))
- *(float *)(a1 + 496);
v5 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 480) + 200LL))(*(_QWORD *)(a1 + 480));
v6 = *(__int64 **)(a1 + 480);
v7 = *v6;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, *v5, v4);
return (*(__int64 (__fastcall **)(__int64 *, __int64))(v7 + 184))(v6, v8);
}