// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/tokenizer.c
// Function: handle_after_doctype_system_keyword_state
static StateResult handle_after_doctype_system_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_SYSTEM_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_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 '>':
      tokenizer_add_parse_error(parser, GUMBO_ERR_DOCTYPE_END);
      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;
      return NEXT_CHAR;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x1f, %edx
jg 0x10379
leal -0x9(%rdx), %eax
cmpl $0x2, %eax
jb 0x103b0
cmpl $-0x1, %edx
je 0x10400
cmpl $0xc, %edx
je 0x103b0
jmp 0x10466
cmpl $0x26, %edx
jg 0x103c4
cmpl $0x20, %edx
je 0x103b0
cmpl $0x22, %edx
jne 0x10466
movq %rbx, %rdi
movl $0x23, %esi
callq 0x10a60
movq 0x10(%rbx), %rax
cmpq $0x0, 0x18(%rax)
jne 0x104a9
movl $0x3f, (%rax)
jmp 0x103ba
movq 0x10(%rbx), %rax
movl $0x3e, (%rax)
movl $0x2, %ebp
jmp 0x10459
cmpl $0x27, %edx
je 0x103dc
cmpl $0x3e, %edx
jne 0x10466
movq %rbx, %rdi
movl $0x27, %esi
jmp 0x10408
movq %rbx, %rdi
movl $0x23, %esi
callq 0x10a60
movq 0x10(%rbx), %rax
cmpq $0x0, 0x18(%rax)
jne 0x1048a
movl $0x40, (%rax)
jmp 0x103ba
movq %rbx, %rdi
movl $0x22, %esi
callq 0x10a60
movq 0x10(%rbx), %rax
xorl %ebp, %ebp
movl %ebp, (%rax)
movb $0x1, 0xe0(%r14)
movl %ebp, (%r15)
movups 0xc8(%rax), %xmm0
movups 0xd8(%rax), %xmm1
movups %xmm0, 0x30(%r15)
movups %xmm1, 0x40(%r15)
movq 0x10(%rbx), %rdi
movq %r15, %rsi
callq 0xca0d
movq 0x10(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0xd3(%rax)
movups %xmm0, 0xc8(%rax)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movl $0x23, %esi
callq 0x10a60
movq 0x10(%rbx), %rax
movl $0x42, (%rax)
movb $0x1, 0xe0(%r14)
jmp 0x103ba
leaq 0xdede(%rip), %rdi      # 0x1e36f
leaq 0xd3cc(%rip), %rsi      # 0x1d864
leaq 0xe0a9(%rip), %rcx      # 0x1e548
movl $0xb50, %edx            # imm = 0xB50
callq 0x4100
leaq 0xdebf(%rip), %rdi      # 0x1e36f
leaq 0xd3ad(%rip), %rsi      # 0x1d864
leaq 0xe08a(%rip), %rcx      # 0x1e548
movl $0xb4a, %edx            # imm = 0xB4A
callq 0x4100