//
// ScrollableContentLayer::scrollTo from 0x100524bc8 to 0x100524c1c (84 bytes)
//
// 31 xrefs:
// > KeybindingsLayer::showTab @ 0x1000254fc
// > KeybindingsLayer::textChanged @ 0x100025a68
// > sub_1001FBA00 @ 0x1001fbab4
// > sub_1004ACAD0 @ 0x1004acd88
// > sub_1004ACAD0 @ 0x1004acde0
// > sub_1004ACAD0 @ 0x1004acef8
// > sub_1004AD9B0 @ 0x1004adca0
// > sub_1004AD9B0 @ 0x1004adec0
// > sub_1004AD9B0 @ 0x1004adf04
// > sub_1004AE3D8 @ 0x1004ae574
// > sub_1004AE3D8 @ 0x1004af138
// > sub_1004AF290 @ 0x1004af7a0
// > sub_1004AF848 @ 0x1004af8ac
// > EditorSFXActionConfigLayer::refreshRows @ 0x1004c6d54
// > EditorSFXActionConfigLayer::refreshRowsAddedDeferred @ 0x1004c707c
// > EditorSoundsLayer::showTab @ 0x1004d8538
// > EditorSoundsLayer::textChanged @ 0x1004d8670
// > EditorWindowPopup::initWindow @ 0x1004d9714
// > sub_1004E0B14 @ 0x1004e0b60
// > IDNameBrowserPopup::textChanged @ 0x1004e2010
// > sub_1004F9AE0 @ 0x1004f9b2c
// > sub_1004F9F68 @ 0x1004fa240
// > sub_1004FB004 @ 0x1004fb140
// > ThreadViewPopup::threadMessagesFinished @ 0x1004fe3e8
// > ThreadViewPopup::threadMessagesFinished @ 0x1004fe424
// > sub_1004FE7E4 @ 0x1004fe8a0
// > sub_100518264 @ 0x1005182cc
// > PagedListPopup::clearPageContent @ 0x10051b1e4
// > sub_100524CA8 @ 0x100524ce0
// > sub_100529B54 @ 0x100529b7c
// > sub_100549E74 @ 0x100549f08
//
// 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:07:14 +0000
//
__int64 __fastcall ScrollableContentLayer::scrollTo(__int64 result, float a2)
{
float v2; // s1
__int64 v3; // x8
*(float *)(result + 436) = a2;
*(_DWORD *)(result + 476) = 0;
v2 = 0.0;
if ( a2 < 0.0 )
goto LABEL_7;
v3 = 428;
if ( *(_BYTE *)(result + 584) )
v3 = 424;
v2 = *(float *)(result + 432) - *(float *)(result + v3);
if ( v2 < 0.0 )
v2 = 0.0;
if ( v2 < a2 )
{
LABEL_7:
*(float *)(result + 436) = v2;
*(_DWORD *)(result + 472) = 0;
}
return ScrollableContentLayer::applyContentPosition(result);
}