//
// sub_1001FBA00 from 0x1001fba00 to 0x1001fbad0 (208 bytes)
//
// 2 xrefs:
// > sub_1001FB968 @ 0x1001fb9e8
// > sub_1001FCD10 @ 0x1001fd1a8
//
// 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:00:43 +0000
//
__int64 __fastcall sub_1001FBA00(__int64 result)
{
__int64 v1; // x19
float v2; // s9
float v3; // s8
float v4; // s10
float v5; // s0
float v6; // s0
float v7; // s1
__int64 v8; // [xsp+8h] [xbp-38h] BYREF
if ( *(_QWORD *)(result + 640) )
{
v1 = result;
if ( *(_QWORD *)(result + 568) )
{
result = *(_QWORD *)(result + 616);
if ( result )
{
v2 = *(float *)(result + 648);
v3 = (*(float (__fastcall **)(__int64))(*(_QWORD *)result + 168LL))(result);
v4 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 568) + 240LL))(*(_QWORD *)(v1 + 568)) + 2.0;
sub_100026438(&v8, (double *)(*(_QWORD *)(v1 + 640) + 424LL));
result = *(_QWORD *)(v1 + 640);
v5 = -*(float *)(result + 436);
if ( v4 <= v5 )
{
v7 = (float)(v4 - (float)(v2 * v3)) + -4.0;
if ( v7 >= (float)(v5 - *((float *)&v8 + 1)) )
return result;
v6 = (float)-v7 - *((float *)&v8 + 1);
}
else
{
v6 = -v4;
}
return ScrollableContentLayer::scrollTo(result, v6);
}
}
}
return result;
}