def aml.fit.args
import bend-osdev-acpi@0.1.1.0/aml.bend as Amlimport Base
import bend-osdev-acpi@0.1.1.0/aml_value.bend as V
143# arguments as the method sees them: Integers cut to 32 bits in a 32-bit
144# definition block
145def aml.fit.args(+wide: Bool, xs: List<&2, V.AmlValue>) -> List<&2, V.AmlValue>:
146 match xs:
147 case Nil{}:
148 Nil{}
149 case Con{V.AmlInt{x}, t}:
150 Con{V.AmlInt{V.AmlInt.fit(wide, x)}, aml.fit.args(wide, t)}
151 case Con{v, t}:
152 Con{v, aml.fit.args(wide, t)}