// File: /workspace/github_c_makefile_star2_O0/craigbarnes[P]lua-gumbo/lib/tokenizer.c
// Function: handle_comment_end_state
static StateResult handle_comment_end_state (
  GumboParser* parser,
  GumboTokenizerState* UNUSED_ARG(tokenizer),
  int c,
  GumboToken* output
) {
  switch (c) {
    case '>':
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_DATA);
      return emit_comment(parser, output);
    case '\0':
      tokenizer_add_parse_error(parser, GUMBO_ERR_UTF8_NULL);
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_COMMENT);
      append_char_to_temporary_buffer(parser, '-');
      append_char_to_temporary_buffer(parser, '-');
      append_char_to_temporary_buffer(parser, UNICODE_REPLACEMENT_CHAR);
      return NEXT_CHAR;
    case '!':
      tokenizer_add_parse_error(
          parser, GUMBO_ERR_COMMENT_BANG_AFTER_DOUBLE_DASH);
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_COMMENT_END_BANG);
      return NEXT_CHAR;
    case '-':
      tokenizer_add_parse_error(
          parser, GUMBO_ERR_COMMENT_DASH_AFTER_DOUBLE_DASH);
      append_char_to_temporary_buffer(parser, '-');
      return NEXT_CHAR;
    case -1:
      tokenizer_add_parse_error(parser, GUMBO_ERR_UTF8_NULL);
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_DATA);
      emit_comment(parser, output);
      return RETURN_ERROR;
    default:
      tokenizer_add_parse_error(parser, GUMBO_ERR_COMMENT_INVALID);
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_COMMENT);
      append_char_to_temporary_buffer(parser, '-');
      append_char_to_temporary_buffer(parser, '-');
      append_char_to_temporary_buffer(parser, c);
      return NEXT_CHAR;
  }
}

// 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
movl %eax, -0x2c(%rbp)
subl $-0x1, %eax
je 0x1537a
jmp 0x15288
movl -0x2c(%rbp), %eax
testl %eax, %eax
je 0x152db
jmp 0x15291
movl -0x2c(%rbp), %eax
subl $0x21, %eax
je 0x1532d
jmp 0x1529f
movl -0x2c(%rbp), %eax
subl $0x2d, %eax
je 0x15355
jmp 0x152ad
movl -0x2c(%rbp), %eax
subl $0x3e, %eax
jne 0x153a9
jmp 0x152bb
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x11a10
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x17b20
movl %eax, -0x4(%rbp)
jmp 0x153f4
movq -0x10(%rbp), %rdi
movl $0x2, %esi
callq 0x16c60
movq -0x10(%rbp), %rdi
movl $0x2f, %esi
callq 0x11a10
movq -0x10(%rbp), %rdi
movl $0x2d, %esi
callq 0x16c30
movq -0x10(%rbp), %rdi
movl $0x2d, %esi
callq 0x16c30
movq -0x10(%rbp), %rdi
movl $0xfffd, %esi           # imm = 0xFFFD
callq 0x16c30
movl $0x2, -0x4(%rbp)
jmp 0x153f4
movq -0x10(%rbp), %rdi
movl $0x1e, %esi
callq 0x16c60
movq -0x10(%rbp), %rdi
movl $0x32, %esi
callq 0x11a10
movl $0x2, -0x4(%rbp)
jmp 0x153f4
movq -0x10(%rbp), %rdi
movl $0x1f, %esi
callq 0x16c60
movq -0x10(%rbp), %rdi
movl $0x2d, %esi
callq 0x16c30
movl $0x2, -0x4(%rbp)
jmp 0x153f4
movq -0x10(%rbp), %rdi
movl $0x2, %esi
callq 0x16c60
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x11a10
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x17b20
movl $0x0, -0x4(%rbp)
jmp 0x153f4
movq -0x10(%rbp), %rdi
movl $0x1d, %esi
callq 0x16c60
movq -0x10(%rbp), %rdi
movl $0x2f, %esi
callq 0x11a10
movq -0x10(%rbp), %rdi
movl $0x2d, %esi
callq 0x16c30
movq -0x10(%rbp), %rdi
movl $0x2d, %esi
callq 0x16c30
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x16c30
movl $0x2, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)