As discussed here #185354 (comment)
these are simple replacements of std::min(std::max(...), ..) with std::clamp I found using git grep. there are other occurrences in the codebase, i'll follow up with another PR for those. Thanks!
Pull Request resolved: #185490
Approved by: https://github.com/Skylion007