//
// sub_1002F72A0 from 0x1002f72a0 to 0x1002f7368 (200 bytes)
//
// 3 xrefs:
// > CustomListView::setupList @ 0x10023545a
// > CustomListView::setupList @ 0x100235471
// > CustomListView::setupList @ 0x10023551d
//
// 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 12:28:27 +0000
//
char __fastcall sub_1002F72A0(__int64 a1, float a2)
{
__int64 v4; // rdi
float MaxY; // xmm1_4
__int64 v6; // rbx
float *v7; // rax
float v8; // [rsp-24h] [rbp-24h] BYREF
float v9; // [rsp-1Ch] [rbp-1Ch]
if ( a2 == 0.0 )
return 0;
if ( *(_BYTE *)(a1 + 460) )
return 0;
v4 = *(_QWORD *)(a1 + 424);
v9 = a2;
MaxY = a2;
if ( a2 > CCScrollLayerExt::getMaxY(v4) )
MaxY = CCScrollLayerExt::getMaxY(*(_QWORD *)(a1 + 424));
v9 = MaxY;
if ( CCScrollLayerExt::getMinY(*(_QWORD *)(a1 + 424)) > MaxY )
MaxY = CCScrollLayerExt::getMinY(*(_QWORD *)(a1 + 424));
v9 = MaxY;
v6 = *(_QWORD *)(a1 + 424);
v7 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v6 + 488) + 192LL))(*(_QWORD *)(v6 + 488));
sub_100278250(&v8, *v7, MaxY);
CCScrollLayerExt::setContentOffset(v6, &v8, 0);
return 1;
}