//
// ScrollableContentLayer::scrollTo from 0x10096b620 to 0x10096b67a (90 bytes)
//
// 40 xrefs:
// > CCTextInputNode::setTextScrollViewSize @ 0x100066d45
// > sub_100066D60 @ 0x100066e3e
// > CCTextInputNode::updateBlinkLabelToChar @ 0x100069667
// > KeybindingsLayer::showTab @ 0x1006e3eeb
// > KeybindingsLayer::textChanged @ 0x1006e48b0
// > sub_1008B7FE0 @ 0x1008b83a1
// > sub_1008B7FE0 @ 0x1008b840b
// > sub_1008B7FE0 @ 0x1008b8562
// > sub_1008B8EA0 @ 0x1008b9705
// > sub_1008B8EA0 @ 0x1008b9896
// > sub_1008B8EA0 @ 0x1008b98fc
// > sub_1008B9C20 @ 0x1008b9dd8
// > sub_1008B9C20 @ 0x1008bb407
// > sub_1008BB6D0 @ 0x1008bbda9
// > sub_1008BBE50 @ 0x1008bbec2
// > EditorSFXActionConfigLayer::refreshRows @ 0x1008e054f
// > EditorSFXActionConfigLayer::refreshRowsAddedDeferred @ 0x1008e0848
// > EditorSoundsLayer::showTab @ 0x1008fec5f
// > EditorSoundsLayer::textChanged @ 0x1008fee30
// > EditorWindowPopup::initWindow @ 0x100900396
// > sub_10090A970 @ 0x10090aa12
// > IDNameBrowserPopup::textChanged @ 0x10090c4a3
// > sub_10090C820 @ 0x10090c86d
// > sub_10092F710 @ 0x10092f754
// > ThreadViewPopup::layoutComposeBar @ 0x10092ffb0
// > sub_100931280 @ 0x100931411
// > ThreadViewPopup::threadMessagesFinished @ 0x100935508
// > ThreadViewPopup::threadMessagesFinished @ 0x100935b5c
// > ThreadViewPopup::threadMessagesFinished @ 0x100935ba7
// > sub_100935FF0 @ 0x1009360bb
// > NewsPopup::rebuildPage @ 0x1009590a5
// > PagedListPopup::clearPageContent @ 0x10095d089
// > SFXFolderPickerPopup::onSelectAll @ 0x1009726d1
// > sub_1009739B0 @ 0x100973b5b
// > sub_100973BD0 @ 0x100973c03
// > SFXFolderPickerPopup::setTextPopupClosed @ 0x100973e1e
// > AccountReviewPopup::rebuildRows @ 0x1009a21d0
// > AccountReviewPopup::FLAlert_Clicked @ 0x1009a3618
// > AccountReviewPopup::FLAlert_Clicked @ 0x1009a3729
// > AccountReviewPopup::FLAlert_Clicked @ 0x1009a37d5
//
// 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:38:50 +0000
//
void __fastcall ScrollableContentLayer::scrollTo(__int64 a1, float a2)
{
float v2; // xmm1_4
*(float *)(a1 + 436) = a2;
*(_DWORD *)(a1 + 476) = 0;
v2 = 0.0;
if ( a2 < 0.0
|| (v2 = fmaxf(0.0, *(float *)(a1 + 432) - *(float *)(a1 + 4LL * (*(unsigned __int8 *)(a1 + 584) ^ 1u) + 424)),
a2 > v2) )
{
*(float *)(a1 + 436) = v2;
*(_DWORD *)(a1 + 472) = 0;
}
ScrollableContentLayer::applyContentPosition(a1);
}