// File: /workspace/github_c_makefile_star2_O0/craigbarnes[P]lua-gumbo/lib/parser.c
// Function: handle_after_head
static bool handle_after_head(GumboParser* parser, GumboToken* token) {
  GumboParserState* state = parser->_parser_state;
  if (token->type == GUMBO_TOKEN_WHITESPACE) {
    insert_text_token(parser, token);
    return true;
  } else if (token->type == GUMBO_TOKEN_DOCTYPE) {
    parser_add_parse_error(parser, token);
    ignore_token(parser);
    return false;
  } else if (token->type == GUMBO_TOKEN_COMMENT) {
    append_comment_node(parser, get_current_node(parser), token);
    return true;
  } else if (tag_is(token, kStartTag, GUMBO_TAG_HTML)) {
    return handle_in_body(parser, token);
  } else if (tag_is(token, kStartTag, GUMBO_TAG_BODY)) {
    insert_element_from_token(parser, token);
    state->_frameset_ok = false;
    set_insertion_mode(parser, GUMBO_INSERTION_MODE_IN_BODY);
    return true;
  } else if (tag_is(token, kStartTag, GUMBO_TAG_FRAMESET)) {
    insert_element_from_token(parser, token);
    set_insertion_mode(parser, GUMBO_INSERTION_MODE_IN_FRAMESET);
    return true;
  } else if (
    tag_in(token, kStartTag, &(const TagSet) {
      TAG(BASE), TAG(BASEFONT), TAG(BGSOUND), TAG(LINK), TAG(META),
      TAG(NOFRAMES), TAG(SCRIPT), TAG(STYLE), TAG(TEMPLATE), TAG(TITLE)
    })
  ) {
    parser_add_parse_error(parser, token);
    assert(state->_head_element != NULL);
    // This must be flushed before we push the head element on, as there may be
    // pending character tokens that should be attached to the root.
    maybe_flush_text_node_buffer(parser);
    gumbo_vector_add(state->_head_element, &state->_open_elements);
    bool result = handle_in_head(parser, token);
    gumbo_vector_remove(state->_head_element, &state->_open_elements);
    return result;
  } else if (tag_is(token, kEndTag, GUMBO_TAG_TEMPLATE)) {
    return handle_in_head(parser, token);
  } else if (
    tag_is(token, kStartTag, GUMBO_TAG_HEAD)
    || (
      token->type == GUMBO_TOKEN_END_TAG
      && !tag_in(token, kEndTag, &(const TagSet){TAG(BODY), TAG(HTML), TAG(BR)})
    )
  ) {
    parser_add_parse_error(parser, token);
    ignore_token(parser);
    return false;
  } else {
    insert_element_of_tag_type(parser, GUMBO_TAG_BODY, GUMBO_INSERTION_IMPLIED);
    set_insertion_mode(parser, GUMBO_INSERTION_MODE_IN_BODY);
    state->_reprocess_current_token = true;
    return true;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x4, (%rax)
jne 0xa0fe
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xef60
movb $0x1, -0x1(%rbp)
jmp 0xa3d8
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
jne 0xa126
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x78a0
movq -0x10(%rbp), %rdi
callq 0x8bd0
movb $0x0, -0x1(%rbp)
jmp 0xa3d8
movq -0x18(%rbp), %rax
cmpl $0x3, (%rax)
jne 0xa15f
movq -0x10(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x10(%rbp), %rdi
callq 0x7550
movq -0x160(%rbp), %rdi
movq %rax, %rsi
movq -0x18(%rbp), %rdx
callq 0xe7b0
movb $0x1, -0x1(%rbp)
jmp 0xa3d8
movq -0x18(%rbp), %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x8c40
testb $0x1, %al
jne 0xa175
jmp 0xa18c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xa3f0
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0xa3d8
movq -0x18(%rbp), %rdi
movl $0x1, %esi
movl $0xa, %edx
callq 0x8c40
testb $0x1, %al
jne 0xa1a5
jmp 0xa1d1
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xece0
movq -0x20(%rbp), %rax
movb $0x0, 0x52(%rax)
movq -0x10(%rbp), %rdi
movl $0x6, %esi
callq 0x8b40
movb $0x1, -0x1(%rbp)
jmp 0xa3d8
movq -0x18(%rbp), %rdi
movl $0x1, %esi
movl $0x81, %edx
callq 0x8c40
testb $0x1, %al
jne 0xa1ea
jmp 0xa20e
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xece0
movq -0x10(%rbp), %rdi
movl $0x13, %esi
callq 0x8b40
movb $0x1, -0x1(%rbp)
jmp 0xa3d8
movq -0x18(%rbp), %rax
movq %rax, -0x168(%rbp)
leaq -0xb8(%rbp), %rdi
xorl %esi, %esi
movl $0x98, %edx
callq 0x4120
leaq -0xb8(%rbp), %rdi
leaq 0x26cd6(%rip), %rsi     # 0x30f10
movl $0x98, %edx
callq 0x41a0
movq -0x168(%rbp), %rdi
movl $0x1, %esi
leaq -0xb8(%rbp), %rdx
callq 0x8d40
testb $0x1, %al
jne 0xa265
jmp 0xa2f6
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x78a0
movq -0x20(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0xa27f
jmp 0xa29e
leaq 0x2a1e5(%rip), %rdi     # 0x3446b
leaq 0x28be7(%rip), %rsi     # 0x32e74
movl $0xa2e, %edx            # imm = 0xA2E
leaq 0x2a1ef(%rip), %rcx     # 0x34488
callq 0x4100
movq -0x10(%rbp), %rdi
callq 0x8030
movq -0x20(%rbp), %rax
movq 0x38(%rax), %rdi
movq -0x20(%rbp), %rsi
addq $0x8, %rsi
callq 0x6a80
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x9940
andb $0x1, %al
movb %al, -0xb9(%rbp)
movq -0x20(%rbp), %rax
movq 0x38(%rax), %rdi
movq -0x20(%rbp), %rsi
addq $0x8, %rsi
callq 0x6d00
movb -0xb9(%rbp), %al
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0xa3d8
movq -0x18(%rbp), %rdi
xorl %esi, %esi
movl $0x9, %edx
callq 0x8c40
testb $0x1, %al
jne 0xa30c
jmp 0xa323
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x9940
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0xa3d8
movq -0x18(%rbp), %rdi
movl $0x1, %edx
movl %edx, %esi
callq 0x8c40
testb $0x1, %al
jne 0xa38f
movq -0x18(%rbp), %rax
cmpl $0x2, (%rax)
jne 0xa3ab
movq -0x18(%rbp), %rax
movq %rax, -0x170(%rbp)
leaq -0x151(%rbp), %rdi
xorl %esi, %esi
movl $0x98, %edx
callq 0x4120
leaq -0x151(%rbp), %rdi
leaq 0x26c3c(%rip), %rsi     # 0x30fa8
movl $0x98, %edx
callq 0x41a0
movq -0x170(%rbp), %rdi
xorl %esi, %esi
leaq -0x151(%rbp), %rdx
callq 0x8d40
testb $0x1, %al
jne 0xa3ab
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x78a0
movq -0x10(%rbp), %rdi
callq 0x8bd0
movb $0x0, -0x1(%rbp)
jmp 0xa3d8
movq -0x10(%rbp), %rdi
movl $0xa, %esi
movl $0x8, %edx
callq 0x7ea0
movq -0x10(%rbp), %rdi
movl $0x6, %esi
callq 0x8b40
movq -0x20(%rbp), %rax
movb $0x1, 0x50(%rax)
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
nopw %cs:(%rax,%rax)