// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/tokenizer.c
// Function: handle_attr_value_unquoted_state
static StateResult handle_attr_value_unquoted_state (
  GumboParser* parser,
  GumboTokenizerState* tokenizer,
  int c,
  GumboToken* output
) {
  switch (c) {
    case '\t':
    case '\n':
    case '\f':
    case ' ':
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_BEFORE_ATTR_NAME);
      finish_attribute_value(parser);
      return NEXT_CHAR;
    case '&':
      tokenizer->_tag_state._attr_value_state = tokenizer->_state;
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_CHAR_REF_IN_ATTR_VALUE);
      tokenizer->_reconsume_current_input = true;
      return NEXT_CHAR;
    case '>':
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_DATA);
      finish_attribute_value(parser);
      return emit_current_tag(parser, output);
    case '\0':
      tokenizer_add_parse_error(parser, GUMBO_ERR_UTF8_NULL);
      append_char_to_tag_buffer(parser, UNICODE_REPLACEMENT_CHAR, true);
      return NEXT_CHAR;
    case -1:
      tokenizer_add_parse_error(parser, GUMBO_ERR_ATTR_UNQUOTED_EOF);
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_DATA);
      tokenizer->_reconsume_current_input = true;
      abandon_current_tag(parser);
      return NEXT_CHAR;
    case '<':
    case '=':
    case '"':
    case '\'':
    case '`':
      tokenizer_add_parse_error(parser, GUMBO_ERR_ATTR_UNQUOTED_EQUALS);
    // Fall through.
    default:
      append_char_to_tag_buffer(parser, c, true);
      return NEXT_CHAR;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
cmpl $0x1f, %edx
jle 0xe9d3
cmpl $0x3b, %r14d
jg 0xea00
leal -0x20(%r14), %eax
cmpl $0x7, %eax
ja 0xea26
leaq 0xed60(%rip), %rcx      # 0x1d70c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl (%r15), %eax
movl %eax, 0xbc(%r15)
movq 0x10(%rbx), %rax
movl $0x28, (%rax)
movb $0x1, 0x4(%r15)
jmp 0xea67
cmpl $0x8, %r14d
jle 0xea77
leal -0x9(%r14), %eax
cmpl $0x2, %eax
jb 0xe9ec
cmpl $0xc, %r14d
jne 0xea26
movq 0x10(%rbx), %rax
movl $0x21, (%rax)
movq %rbx, %rdi
callq 0x1120f
jmp 0xea67
leal -0x3c(%r14), %eax
cmpl $0x2, %eax
jb 0xea19
cmpl $0x3e, %r14d
je 0xeaff
cmpl $0x60, %r14d
jne 0xea26
movq %rbx, %rdi
movl $0x15, %esi
callq 0x10a60
movq 0x10(%rbx), %rsi
cmpq $0x0, 0x70(%rsi)
jne 0xea5b
movq 0x120(%rsi), %rax
movq %rax, 0xa0(%rsi)
movups 0x110(%rsi), %xmm0
movups %xmm0, 0x90(%rsi)
movq 0xe8(%rsi), %rax
movq %rax, 0x80(%rsi)
addq $0x68, %rsi
movl %r14d, %edi
callq 0x4322
movl $0x2, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpl $-0x1, %r14d
je 0xead9
testl %r14d, %r14d
jne 0xea26
movl $0x2, %ebp
movq %rbx, %rdi
movl $0x2, %esi
callq 0x10a60
movq 0x10(%rbx), %rsi
cmpq $0x0, 0x70(%rsi)
jne 0xeac9
movq 0x120(%rsi), %rax
movq %rax, 0xa0(%rsi)
movups 0x110(%rsi), %xmm0
movups %xmm0, 0x90(%rsi)
movq 0xe8(%rsi), %rax
movq %rax, 0x80(%rsi)
addq $0x68, %rsi
movl $0xfffd, %edi           # imm = 0xFFFD
callq 0x4322
jmp 0xea6c
movq %rbx, %rdi
movl $0x13, %esi
callq 0x10a60
movq 0x10(%rbx), %rdi
movl $0x0, (%rdi)
movb $0x1, 0x4(%r15)
callq 0x10eb9
jmp 0xea67
movq %rcx, %r12
movq 0x10(%rbx), %rax
movl $0x0, (%rax)
movq %rbx, %rdi
callq 0x1120f
movq %rbx, %rdi
movq %r12, %rsi
callq 0x10d4a
movl $0x1, %ebp
jmp 0xea6c