def zl.ok
import bend-kit-zlib@0.5.1.0/zlib.bend as Zlibimport Base
729def zl.ok(+cmf: U32, +flg: U32) -> Bool:
730 Bool.and(Bool.and(U32.is_eq(U32.and(cmf, 15), 8), U32.is_le(U32.shrn(cmf, 4n), 7)), Bool.and(U32.is_zero(U32.mod((cmf * 256 + flg : U32), 31)), Bool.not(flag(flg, 32))))