// File: /workspace/github_c_makefile_star2_O0/craigbarnes[P]lua-gumbo/lib/parser.c
// Function: handle_in_table_body
static bool handle_in_table_body(GumboParser* parser, GumboToken* token) {
  if (tag_is(token, kStartTag, GUMBO_TAG_TR)) {
    clear_stack_to_table_body_context(parser);
    insert_element_from_token(parser, token);
    set_insertion_mode(parser, GUMBO_INSERTION_MODE_IN_ROW);
    return true;
  } else if (tag_in(token, kStartTag, &td_th_tags)) {
    parser_add_parse_error(parser, token);
    clear_stack_to_table_body_context(parser);
    insert_element_of_tag_type(parser, GUMBO_TAG_TR, GUMBO_INSERTION_IMPLIED);
    parser->_parser_state->_reprocess_current_token = true;
    set_insertion_mode(parser, GUMBO_INSERTION_MODE_IN_ROW);
    return false;
  } else if (
    tag_in(token, kEndTag, &(const TagSet){TAG(TBODY), TAG(TFOOT), TAG(THEAD)})
  ) {
    if (!has_an_element_in_table_scope(parser, token->v.end_tag)) {
      parser_add_parse_error(parser, token);
      ignore_token(parser);
      return false;
    }
    clear_stack_to_table_body_context(parser);
    pop_current_node(parser);
    set_insertion_mode(parser, GUMBO_INSERTION_MODE_IN_TABLE);
    return true;
  } else if (
    tag_in(token, kStartTag, &(const TagSet) {
      TAG(CAPTION), TAG(COL), TAG(COLGROUP), TAG(TBODY), TAG(TFOOT),
      TAG(THEAD)
    })
    || tag_is(token, kEndTag, GUMBO_TAG_TABLE)
  ) {
    if (
      !(
        has_an_element_in_table_scope(parser, GUMBO_TAG_TBODY)
        || has_an_element_in_table_scope(parser, GUMBO_TAG_THEAD)
        || has_an_element_in_table_scope(parser, GUMBO_TAG_TFOOT)
      )
    ) {
      parser_add_parse_error(parser, token);
      ignore_token(parser);
      return false;
    }
    clear_stack_to_table_body_context(parser);
    pop_current_node(parser);
    set_insertion_mode(parser, GUMBO_INSERTION_MODE_IN_TABLE);
    parser->_parser_state->_reprocess_current_token = true;
    return true;
  } else if (
    tag_in(token, kEndTag, &(const TagSet) {
      TAG(BODY), TAG(CAPTION), TAG(COL), TAG(TR), TAG(COLGROUP),
      TAG(HTML), TAG(TD), TAG(TH)
    })
  ) {
    parser_add_parse_error(parser, token);
    ignore_token(parser);
    return false;
  } else {
    return handle_in_table(parser, token);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x200, %rsp            # imm = 0x200
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movl $0x1, %esi
movl $0x66, %edx
callq 0x8c40
testb $0x1, %al
jne 0xceac
jmp 0xced9
movq -0x10(%rbp), %rdi
callq 0x11410
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xece0
movq -0x10(%rbp), %rdi
movl $0xd, %esi
callq 0x8b40
movb $0x1, -0x1(%rbp)
jmp 0xd15e
movq -0x18(%rbp), %rdi
movl $0x1, %esi
leaq 0x25677(%rip), %rdx     # 0x32560
callq 0x8d40
testb $0x1, %al
jne 0xcef4
jmp 0xcf40
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x78a0
movq -0x10(%rbp), %rdi
callq 0x11410
movq -0x10(%rbp), %rdi
movl $0x66, %esi
movl $0x8, %edx
callq 0x7ea0
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movb $0x1, 0x50(%rax)
movq -0x10(%rbp), %rdi
movl $0xd, %esi
callq 0x8b40
movb $0x0, -0x1(%rbp)
jmp 0xd15e
movq -0x18(%rbp), %rax
movq %rax, -0x1e8(%rbp)
leaq -0xb0(%rbp), %rdi
xorl %esi, %esi
movl $0x98, %edx
callq 0x4120
leaq -0xb0(%rbp), %rdi
leaq 0x2538c(%rip), %rsi     # 0x322f8
movl $0x98, %edx
callq 0x41a0
movq -0x1e8(%rbp), %rdi
xorl %esi, %esi
leaq -0xb0(%rbp), %rdx
callq 0x8d40
testb $0x1, %al
jne 0xcf91
jmp 0xcfed
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0x30(%rax), %esi
callq 0x10bf0
testb $0x1, %al
jne 0xcfc4
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x78a0
movq -0x10(%rbp), %rdi
callq 0x8bd0
movb $0x0, -0x1(%rbp)
jmp 0xd15e
movq -0x10(%rbp), %rdi
callq 0x11410
movq -0x10(%rbp), %rdi
callq 0xf060
movq -0x10(%rbp), %rdi
movl $0x8, %esi
callq 0x8b40
movb $0x1, -0x1(%rbp)
jmp 0xd15e
movq -0x18(%rbp), %rax
movq %rax, -0x1f0(%rbp)
leaq -0x148(%rbp), %rdi
xorl %esi, %esi
movl $0x98, %edx
callq 0x4120
leaq -0x148(%rbp), %rdi
leaq 0x25377(%rip), %rsi     # 0x32390
movl $0x98, %edx
callq 0x41a0
movq -0x1f0(%rbp), %rdi
movl $0x1, %esi
leaq -0x148(%rbp), %rdx
callq 0x8d40
testb $0x1, %al
jne 0xd058
movq -0x18(%rbp), %rdi
xorl %esi, %esi
movl $0x5f, %edx
callq 0x8c40
testb $0x1, %al
jne 0xd058
jmp 0xd0df
movq -0x10(%rbp), %rdi
movl $0x63, %esi
callq 0x10bf0
testb $0x1, %al
jne 0xd0ad
movq -0x10(%rbp), %rdi
movl $0x64, %esi
callq 0x10bf0
testb $0x1, %al
jne 0xd0ad
movq -0x10(%rbp), %rdi
movl $0x65, %esi
callq 0x10bf0
testb $0x1, %al
jne 0xd0ad
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x78a0
movq -0x10(%rbp), %rdi
callq 0x8bd0
movb $0x0, -0x1(%rbp)
jmp 0xd15e
movq -0x10(%rbp), %rdi
callq 0x11410
movq -0x10(%rbp), %rdi
callq 0xf060
movq -0x10(%rbp), %rdi
movl $0x8, %esi
callq 0x8b40
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movb $0x1, 0x50(%rax)
movb $0x1, -0x1(%rbp)
jmp 0xd15e
movq -0x18(%rbp), %rax
movq %rax, -0x1f8(%rbp)
leaq -0x1e0(%rbp), %rdi
xorl %esi, %esi
movl $0x98, %edx
callq 0x4120
leaq -0x1e0(%rbp), %rdi
leaq 0x2531d(%rip), %rsi     # 0x32428
movl $0x98, %edx
callq 0x41a0
movq -0x1f8(%rbp), %rdi
xorl %esi, %esi
leaq -0x1e0(%rbp), %rdx
callq 0x8d40
testb $0x1, %al
jne 0xd130
jmp 0xd14c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x78a0
movq -0x10(%rbp), %rdi
callq 0x8bd0
movb $0x0, -0x1(%rbp)
jmp 0xd15e
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xc2e0
andb $0x1, %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x200, %rsp            # imm = 0x200
popq %rbp
retq
nopl (%rax)