thread_text_to_state
else if (thread_text_to_state(text, out) != 0) {
int thread_text_to_state(const char *, uint_t *);