UTF8_ACCEPT
*codep = (*state != UTF8_ACCEPT) ? (byte & 0x3fu) | (*codep << 6)
uint32_t codepoint, state = UTF8_ACCEPT, res;
if (res == UTF8_ACCEPT) {
if (state != UTF8_ACCEPT) goto error;