//
// CCScrollLayerExt::moveToTop from 0x10039d898 to 0x10039d930 (152 bytes)
//
// 7 xrefs:
// > CustomListView::setupList @ 0x100131f20
// > CustomListView::setupList @ 0x1001321a4
// > CustomListView::setupList @ 0x100132218
// > CustomListView::setupList @ 0x1001322c8
// > CustomListView::setupList @ 0x100132388
// > BoomListView::setupList @ 0x1002680c8
// > sub_1004F5540 @ 0x1004f555c
//
// 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::moveToTop(__int64 a1)
{
__int64 v2; // x20
float v3; // s8
float v4; // s9
__int64 v5; // x0
float v7; // [xsp+8h] [xbp-28h] BYREF
v2 = *(_QWORD *)(a1 + 488);
v3 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2);
v4 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1) + 4);
v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 488) + 328LL))(*(_QWORD *)(a1 + 488));
sub_1000262BC(&v7, v3, (float)(v4 - *(float *)(v5 + 4)) - *(float *)(a1 + 504));
return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v2 + 184LL))(v2, &v7);
}