// File: /workspace/github_c_makefile_star2_O0/craigbarnes[P]lua-gumbo/lib/tokenizer.c
// Function: handle_rawtext_end_tag_name_state
static StateResult handle_rawtext_end_tag_name_state (
  GumboParser* parser,
  GumboTokenizerState* tokenizer,
  int c,
  GumboToken* output
) {
  assert(tokenizer->_temporary_buffer.length >= 2);
  gumbo_debug("Last end tag: %.*s\n", (int) tokenizer->_tag_state._buffer.length,
      tokenizer->_tag_state._buffer.data);
  if (is_alpha(c)) {
    append_char_to_tag_buffer(parser, ensure_lowercase(c), true);
    append_char_to_temporary_buffer(parser, c);
    return NEXT_CHAR;
  } else if (is_appropriate_end_tag(parser)) {
    gumbo_debug("Is an appropriate end tag.\n");
    switch (c) {
      case '\t':
      case '\n':
      case '\f':
      case ' ':
        finish_tag_name(parser);
        gumbo_tokenizer_set_state(parser, GUMBO_LEX_BEFORE_ATTR_NAME);
        return NEXT_CHAR;
      case '/':
        finish_tag_name(parser);
        gumbo_tokenizer_set_state(parser, GUMBO_LEX_SELF_CLOSING_START_TAG);
        return NEXT_CHAR;
      case '>':
        finish_tag_name(parser);
        gumbo_tokenizer_set_state(parser, GUMBO_LEX_DATA);
        return emit_current_tag(parser, output);
    }
  }
  gumbo_tokenizer_set_state(parser, GUMBO_LEX_RAWTEXT);
  abandon_current_tag(parser);
  return emit_temporary_buffer(parser, output);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x18(%rbp), %rax
cmpq $0x2, 0x18(%rax)
jb 0x12e84
jmp 0x12ea3
leaq 0x23b8d(%rip), %rdi     # 0x36a18
leaq 0x2359e(%rip), %rsi     # 0x36430
movl $0x51f, %edx            # imm = 0x51F
leaq 0x23d13(%rip), %rcx     # 0x36bb1
callq 0x4100
movq -0x18(%rbp), %rax
movq 0x70(%rax), %rax
movl %eax, %esi
movq -0x18(%rbp), %rax
movq 0x68(%rax), %rdx
leaq 0x23d5c(%rip), %rdi     # 0x36c18
movb $0x0, %al
callq 0x11c40
movl -0x1c(%rbp), %edi
callq 0x16fa0
testb $0x1, %al
jne 0x12ed1
jmp 0x12f09
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movl -0x1c(%rbp), %edi
callq 0x17170
movq -0x30(%rbp), %rdi
movl %eax, %esi
movl $0x1, %edx
callq 0x174b0
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x16c30
movl $0x2, -0x4(%rbp)
jmp 0x12ff7
movq -0x10(%rbp), %rdi
callq 0x175d0
testb $0x1, %al
jne 0x12f1b
jmp 0x12fc9
leaq 0x23d0a(%rip), %rdi     # 0x36c2c
xorl %eax, %eax
callq 0x11c40
movl -0x1c(%rbp), %eax
movl %eax, -0x34(%rbp)
addl $-0x9, %eax
subl $0x2, %eax
jb 0x12f61
jmp 0x12f39
movl -0x34(%rbp), %eax
subl $0xc, %eax
je 0x12f61
jmp 0x12f43
movl -0x34(%rbp), %eax
subl $0x20, %eax
je 0x12f61
jmp 0x12f4d
movl -0x34(%rbp), %eax
subl $0x2f, %eax
je 0x12f81
jmp 0x12f57
movl -0x34(%rbp), %eax
subl $0x3e, %eax
je 0x12fa1
jmp 0x12fc7
movq -0x10(%rbp), %rdi
callq 0x17260
movq -0x10(%rbp), %rdi
movl $0x21, %esi
callq 0x11a10
movl $0x2, -0x4(%rbp)
jmp 0x12ff7
movq -0x10(%rbp), %rdi
callq 0x17260
movq -0x10(%rbp), %rdi
movl $0x2a, %esi
callq 0x11a10
movl $0x2, -0x4(%rbp)
jmp 0x12ff7
movq -0x10(%rbp), %rdi
callq 0x17260
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x11a10
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x172b0
movl %eax, -0x4(%rbp)
jmp 0x12ff7
jmp 0x12fc9
jmp 0x12fcb
movq -0x10(%rbp), %rdi
movl $0x4, %esi
callq 0x11a10
movq -0x10(%rbp), %rdi
callq 0x17510
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x170f0
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq