def bl_pick
import bend-collections@1.0.0.0/src/math/w64.bend as W64import Base
209def bl_pick(+x: U32, +t: U32, +k: Nat, +base: Nat, big: Bool) -> Nat & U32:
210 match big:
211 case True{}:
212 (Nat.add(base, k), U32.shrn(x, k))
213 case False{}:
214 (base, x)