// File: /workspace/github_c_makefile_star2_O0/craigbarnes[P]lua-gumbo/lib/tokenizer.c
// Function: handle_comment_end_bang_state
static StateResult handle_comment_end_bang_state (
  GumboParser* parser,
  GumboTokenizerState* UNUSED_ARG(tokenizer),
  int c,
  GumboToken* output
) {
  switch (c) {
    case '-':
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_COMMENT_END_DASH);
      append_char_to_temporary_buffer(parser, '-');
      append_char_to_temporary_buffer(parser, '-');
      append_char_to_temporary_buffer(parser, '!');
      return NEXT_CHAR;
    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, '!');
      append_char_to_temporary_buffer(parser, UNICODE_REPLACEMENT_CHAR);
      return NEXT_CHAR;
    case -1:
      tokenizer_add_parse_error(parser, GUMBO_ERR_COMMENT_END_BANG_EOF);
      gumbo_tokenizer_set_state(parser, GUMBO_LEX_DATA);
      emit_comment(parser, output);
      return RETURN_ERROR;
    default:
      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, '!');
      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 0x15509
jmp 0x15428
movl -0x2c(%rbp), %eax
testl %eax, %eax
je 0x154ac
jmp 0x15431
movl -0x2c(%rbp), %eax
subl $0x2d, %eax
je 0x15448
jmp 0x1543b
movl -0x2c(%rbp), %eax
subl $0x3e, %eax
je 0x1548c
jmp 0x15538
movq -0x10(%rbp), %rdi
movl $0x30, %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 $0x21, %esi
callq 0x16c30
movl $0x2, -0x4(%rbp)
jmp 0x15583
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x11a10
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x17b20
movl %eax, -0x4(%rbp)
jmp 0x15583
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 $0x21, %esi
callq 0x16c30
movq -0x10(%rbp), %rdi
movl $0xfffd, %esi           # imm = 0xFFFD
callq 0x16c30
movl $0x2, -0x4(%rbp)
jmp 0x15583
movq -0x10(%rbp), %rdi
movl $0x21, %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 0x15583
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 $0x21, %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)