// File: /workspace/github_c_makefile_star2_O1/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 0xf39f
cmpl $0x3b, %r14d
jg 0xf3cc
leal -0x20(%r14), %eax
cmpl $0x7, %eax
ja 0xf3f2
leaq 0x10274(%rip), %rcx     # 0x1f5ec
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 0xf433
cmpl $0x8, %r14d
jle 0xf443
leal -0x9(%r14), %eax
cmpl $0x2, %eax
jb 0xf3b8
cmpl $0xc, %r14d
jne 0xf3f2
movq 0x10(%rbx), %rax
movl $0x21, (%rax)
movq %rbx, %rdi
callq 0x11c95
jmp 0xf433
leal -0x3c(%r14), %eax
cmpl $0x2, %eax
jb 0xf3e5
cmpl $0x3e, %r14d
je 0xf4ce
cmpl $0x60, %r14d
jne 0xf3f2
movq %rbx, %rdi
movl $0x15, %esi
callq 0x11412
movq 0x10(%rbx), %rsi
cmpq $0x0, 0x70(%rsi)
jne 0xf427
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 0xf4a5
testl %r14d, %r14d
jne 0xf3f2
movl $0x2, %ebp
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11412
movq 0x10(%rbx), %rsi
cmpq $0x0, 0x70(%rsi)
jne 0xf495
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 0xf438
movq %rbx, %rdi
movl $0x13, %esi
callq 0x11412
movq 0x10(%rbx), %rax
movl $0x0, (%rax)
movb $0x1, 0x4(%r15)
movq %rbx, %rdi
callq 0x11914
jmp 0xf433
movq %rcx, %r12
movq 0x10(%rbx), %rax
movl $0x0, (%rax)
movq %rbx, %rdi
callq 0x11c95
movq %rbx, %rdi
movq %r12, %rsi
callq 0x117b0
movl $0x1, %ebp
jmp 0xf438