fn is_unlocked(state: u32) -> bool