def u64_checked_shr
import bend-collections-laws-math@1.0.0.0/src/math/fixed.bend as Fixedimport Base
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as W
import bend-collections-laws-math@1.0.0.0/src/math/w64.bend as X
381def u64_checked_shr(+a: W.U64, +s: U32) -> Maybe<&2, W.U64>:
382 opt(W.U64, Bool.not(U32.is_lt(s, 64)), X.shr(a, U32.to_nat(U32.and(s, 63))))