// File: /workspace/github_c_makefile_star2_O1/craigbarnes[P]lua-gumbo/lib/tokenizer.c
// Function: handle_after_doctype_public_id_state
static StateResult handle_after_doctype_public_id_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_BETWEEN_DOCTYPE_PUBLIC_SYSTEM_ID);
      return NEXT_CHAR;
    case '>':
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_DATA);
      emit_doctype(parser, output);
      return RETURN_SUCCESS;
    case '"':
      tokenizer_add_parse_error(parser, GUMBO_ERR_DOCTYPE_INVALID);
      assert(temporary_buffer_is_empty(parser));
      gumbo_tokenizer_set_state(
          parser, GUMBO_LEX_DOCTYPE_SYSTEM_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_SYSTEM_ID_SINGLE_QUOTED);
      return NEXT_CHAR;
    case -1:
      tokenizer_add_parse_error(parser, GUMBO_ERR_DOCTYPE_EOF);
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_DATA);
      tokenizer->_reconsume_current_input = true;
      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;
      return NEXT_CHAR;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rsi, %r15
movq %rdi, %rbx
cmpl $0x1f, %edx
jg 0x10990
leal -0x9(%rdx), %eax
cmpl $0x2, %eax
jb 0x109c7
cmpl $-0x1, %edx
je 0x10a62
cmpl $0xc, %edx
je 0x109c7
jmp 0x10ac4
cmpl $0x26, %edx
jg 0x109e3
cmpl $0x20, %edx
je 0x109c7
cmpl $0x22, %edx
jne 0x10ac4
movq %rbx, %rdi
movl $0x23, %esi
callq 0x11412
movq 0x10(%rbx), %rax
cmpq $0x0, 0x18(%rax)
jne 0x10b07
movl $0x3f, (%rax)
jmp 0x109d1
movq 0x10(%rbx), %rax
movl $0x3c, (%rax)
movl $0x2, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x27, %edx
je 0x10a3b
cmpl $0x3e, %edx
jne 0x10ac4
movq 0x10(%rbx), %rax
xorl %ecx, %ecx
movl %ecx, (%rax)
movl %ecx, (%r14)
movups 0xc8(%rax), %xmm0
movups 0xd8(%rax), %xmm1
movups %xmm0, 0x30(%r14)
movups %xmm1, 0x40(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xd443
movq 0x10(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0xd3(%rax)
movups %xmm0, 0xc8(%rax)
movl $0x1, %ebp
jmp 0x109d6
movq %rbx, %rdi
movl $0x23, %esi
callq 0x11412
movq 0x10(%rbx), %rax
cmpq $0x0, 0x18(%rax)
jne 0x10ae8
movl $0x40, (%rax)
jmp 0x109d1
movq %rbx, %rdi
movl $0x22, %esi
callq 0x11412
movq 0x10(%rbx), %rax
xorl %ebp, %ebp
movl %ebp, (%rax)
movb $0x1, %cl
movb %cl, 0x4(%r15)
movb %cl, 0xe0(%r15)
movl %ebp, (%r14)
movups 0xc8(%rax), %xmm0
movups 0xd8(%rax), %xmm1
movups %xmm0, 0x30(%r14)
movups %xmm1, 0x40(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xd443
movq 0x10(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0xd3(%rax)
movups %xmm0, 0xc8(%rax)
jmp 0x109d6
movq %rbx, %rdi
movl $0x23, %esi
callq 0x11412
movq 0x10(%rbx), %rax
movl $0x42, (%rax)
movb $0x1, 0xe0(%r15)
jmp 0x109d1
leaq 0xf760(%rip), %rdi      # 0x2024f
leaq 0xec4e(%rip), %rsi      # 0x1f744
leaq 0xf84e(%rip), %rcx      # 0x2034b
movl $0xafd, %edx            # imm = 0xAFD
callq 0x4100
leaq 0xf741(%rip), %rdi      # 0x2024f
leaq 0xec2f(%rip), %rsi      # 0x1f744
leaq 0xf82f(%rip), %rcx      # 0x2034b
movl $0xaf7, %edx            # imm = 0xAF7
callq 0x4100