def nm.seg.pick
import bend-osdev-acpi@0.1.1.0/aml_name.bend as AmlNameimport Base
import bend-osdev-bytes@0.1.1.0/bytes.bend as B
import bend-osdev-acpi@0.1.1.0/error.bend as E
216def nm.seg.pick(ok: Bool, c0: U32, c1: U32, c2: U32, c3: U32, t: List<&2, U32>) -> Result<&2, &2, E.AcpiError, AmlSegL>:
217 match ok:
218 case True{}:
219 Done{AmlSegL{B.Octets.of_list([c0, c1, c2, c3]), t}}
220 case False{}:
221 Fail{E.AcpiAmlBadName{}}