cmd_find_empty_state
if (cmd_find_empty_state(&hd->fs) || !cmd_find_valid_state(&hd->fs))
int cmd_find_empty_state(struct cmd_find_state *);