// File: /workspace/github_c_makefile_star2_O0/craigbarnes[P]lua-gumbo/lib/tokenizer.c
// Function: handle_after_doctype_name_state
static StateResult handle_after_doctype_name_state (
  GumboParser* parser,
  GumboTokenizerState* tokenizer,
  int c,
  GumboToken* output
) {
  switch (c) {
    case '\t':
    case '\n':
    case '\f':
    case ' ':
      return NEXT_CHAR;
    case '>':
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_DATA);
      emit_doctype(parser, output);
      return RETURN_SUCCESS;
    case -1:
      tokenizer_add_parse_error(parser, GUMBO_ERR_DOCTYPE_EOF);
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_DATA);
      tokenizer->_doc_type_state.force_quirks = true;
      emit_doctype(parser, output);
      return RETURN_ERROR;
  }

    Utf8Iterator *input = &tokenizer->_input;
    if (utf8iterator_maybe_consume_literal_icase(input, "PUBLIC")) {
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_AFTER_DOCTYPE_PUBLIC_KEYWORD);
      tokenizer->_reconsume_current_input = true;
    } else if (utf8iterator_maybe_consume_literal_icase(input, "SYSTEM")) {
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_AFTER_DOCTYPE_SYSTEM_KEYWORD);
      tokenizer->_reconsume_current_input = true;
    } else {
      tokenizer_add_parse_error(parser, GUMBO_ERR_DOCTYPE_SPACE_OR_RIGHT_BRACKET);
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_BOGUS_DOCTYPE);
      tokenizer->_doc_type_state.force_quirks = true;
    }
    return NEXT_CHAR;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x34(%rbp)
subl $-0x1, %eax
je 0x159ff
jmp 0x159a4
movl -0x34(%rbp), %eax
addl $-0x9, %eax
subl $0x2, %eax
jb 0x159cf
jmp 0x159b1
movl -0x34(%rbp), %eax
subl $0xc, %eax
je 0x159cf
jmp 0x159bb
movl -0x34(%rbp), %eax
subl $0x20, %eax
je 0x159cf
jmp 0x159c5
movl -0x34(%rbp), %eax
subl $0x3e, %eax
je 0x159db
jmp 0x15a3c
movl $0x2, -0x4(%rbp)
jmp 0x15ae4
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x11a10
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x17bc0
movl $0x1, -0x4(%rbp)
jmp 0x15ae4
movq -0x10(%rbp), %rdi
movl $0x22, %esi
callq 0x16c60
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x11a10
movq -0x18(%rbp), %rax
movb $0x1, 0xe0(%rax)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x17bc0
movl $0x0, -0x4(%rbp)
jmp 0x15ae4
movq -0x18(%rbp), %rax
addq $0xe8, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
leaq 0x215e4(%rip), %rsi     # 0x37039
movl $0x6, %edx
xorl %ecx, %ecx
callq 0x65f0
testb $0x1, %al
jne 0x15a67
jmp 0x15a7f
movq -0x10(%rbp), %rdi
movl $0x37, %esi
callq 0x11a10
movq -0x18(%rbp), %rax
movb $0x1, 0x4(%rax)
jmp 0x15add
movq -0x30(%rbp), %rdi
leaq 0x215b6(%rip), %rsi     # 0x37040
movl $0x6, %edx
xorl %ecx, %ecx
callq 0x65f0
testb $0x1, %al
jne 0x15a9c
jmp 0x15ab4
movq -0x10(%rbp), %rdi
movl $0x3d, %esi
callq 0x11a10
movq -0x18(%rbp), %rax
movb $0x1, 0x4(%rax)
jmp 0x15adb
movq -0x10(%rbp), %rdi
movl $0x26, %esi
callq 0x16c60
movq -0x10(%rbp), %rdi
movl $0x42, %esi
callq 0x11a10
movq -0x18(%rbp), %rax
movb $0x1, 0xe0(%rax)
jmp 0x15add
movl $0x2, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)