// File: /workspace/github_c_makefile_star2_O0/craigbarnes[P]lua-gumbo/lib/tokenizer.c
// Function: handle_after_doctype_public_keyword_state
static StateResult handle_after_doctype_public_keyword_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_DOCTYPE_PUBLIC_ID);
      return NEXT_CHAR;
    case '"':
      tokenizer_add_parse_error(parser, GUMBO_ERR_DOCTYPE_INVALID);
      assert(temporary_buffer_is_empty(parser));
      gumbo_tokenizer_set_state(
          parser, GUMBO_LEX_DOCTYPE_PUBLIC_ID_DOUBLE_QUOTED);
      return NEXT_CHAR;
    case '\'':
      tokenizer_add_parse_error(parser, GUMBO_ERR_DOCTYPE_INVALID);
      assert(temporary_buffer_is_empty(parser));
      gumbo_tokenizer_set_state(
          parser, GUMBO_LEX_DOCTYPE_PUBLIC_ID_SINGLE_QUOTED);
      return NEXT_CHAR;
    case '>':
      tokenizer_add_parse_error(parser, GUMBO_ERR_DOCTYPE_RIGHT_BRACKET);
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_DATA);
      tokenizer->_doc_type_state.force_quirks = true;
      emit_doctype(parser, output);
      return RETURN_ERROR;
    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;
    default:
      tokenizer_add_parse_error(parser, GUMBO_ERR_DOCTYPE_INVALID);
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_BOGUS_DOCTYPE);
      tokenizer->_doc_type_state.force_quirks = true;
      emit_doctype(parser, output);
      return RETURN_ERROR;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movl -0x1c(%rbp), %eax
incl %eax
movl %eax, %ecx
movq %rcx, -0x30(%rbp)
subl $0x3f, %eax
ja 0x15c6d
movq -0x30(%rbp), %rax
leaq 0x201d2(%rip), %rcx     # 0x35cf8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rdi
movl $0x38, %esi
callq 0x11a10
movl $0x2, -0x4(%rbp)
jmp 0x15ca8
movq -0x10(%rbp), %rdi
movl $0x23, %esi
callq 0x16c60
movq -0x10(%rbp), %rdi
callq 0x17c30
testb $0x1, %al
jne 0x15b66
jmp 0x15b68
jmp 0x15b87
leaq 0x214d8(%rip), %rdi     # 0x37047
leaq 0x208ba(%rip), %rsi     # 0x36430
movl $0xa4f, %edx            # imm = 0xA4F
leaq 0x214e7(%rip), %rcx     # 0x37069
callq 0x4100
movq -0x10(%rbp), %rdi
movl $0x39, %esi
callq 0x11a10
movl $0x2, -0x4(%rbp)
jmp 0x15ca8
movq -0x10(%rbp), %rdi
movl $0x23, %esi
callq 0x16c60
movq -0x10(%rbp), %rdi
callq 0x17c30
testb $0x1, %al
jne 0x15bbe
jmp 0x15bc0
jmp 0x15bdf
leaq 0x21480(%rip), %rdi     # 0x37047
leaq 0x20862(%rip), %rsi     # 0x36430
movl $0xa55, %edx            # imm = 0xA55
leaq 0x2148f(%rip), %rcx     # 0x37069
callq 0x4100
movq -0x10(%rbp), %rdi
movl $0x3a, %esi
callq 0x11a10
movl $0x2, -0x4(%rbp)
jmp 0x15ca8
movq -0x10(%rbp), %rdi
movl $0x25, %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 0x15ca8
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 0x15ca8
movq -0x10(%rbp), %rdi
movl $0x23, %esi
callq 0x16c60
movq -0x10(%rbp), %rdi
movl $0x42, %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)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)