// File: /workspace/github_c_makefile_star2_O0/craigbarnes[P]lua-gumbo/lib/parser.c
// Function: handle_in_head_noscript
static bool handle_in_head_noscript(GumboParser* parser, GumboToken* token) {
  if (token->type == GUMBO_TOKEN_DOCTYPE) {
    parser_add_parse_error(parser, token);
    return false;
  } else if (tag_is(token, kStartTag, GUMBO_TAG_HTML)) {
    return handle_in_body(parser, token);
  } else if (tag_is(token, kEndTag, GUMBO_TAG_NOSCRIPT)) {
    const GumboNode* node = pop_current_node(parser);
    assert(node_html_tag_is(node, GUMBO_TAG_NOSCRIPT));
    UNUSED_IF_NDEBUG(node);
    set_insertion_mode(parser, GUMBO_INSERTION_MODE_IN_HEAD);
    return true;
  } else if (
    token->type == GUMBO_TOKEN_WHITESPACE
    || token->type == GUMBO_TOKEN_COMMENT
    || tag_in (token, kStartTag, &(const TagSet) {
      TAG(BASEFONT), TAG(BGSOUND), TAG(LINK),
      TAG(META), TAG(NOFRAMES), TAG(STYLE)
    })
  ) {
    return handle_in_head(parser, token);
  } else if (
    tag_in(token, kStartTag, &(const TagSet){TAG(HEAD), TAG(NOSCRIPT)})
    || (
      token->type == GUMBO_TOKEN_END_TAG
      && !tag_is(token, kEndTag, GUMBO_TAG_BR)
    )
  ) {
    parser_add_parse_error(parser, token);
    ignore_token(parser);
    return false;
  } else {
    parser_add_parse_error(parser, token);
    const GumboNode* node = pop_current_node(parser);
    assert(node_html_tag_is(node, GUMBO_TAG_NOSCRIPT));
    UNUSED_IF_NDEBUG(node);
    set_insertion_mode(parser, GUMBO_INSERTION_MODE_IN_HEAD);
    parser->_parser_state->_reprocess_current_token = true;
    return false;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x9ea2
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x78a0
movb $0x0, -0x1(%rbp)
jmp 0xa0af
movq -0x18(%rbp), %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x8c40
testb $0x1, %al
jne 0x9eb8
jmp 0x9ecf
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xa3f0
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0xa0af
movq -0x18(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x8c40
testb $0x1, %al
jne 0x9ee5
jmp 0x9f3e
movq -0x10(%rbp), %rdi
callq 0xf060
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movl $0x8, %esi
callq 0x8700
testb $0x1, %al
jne 0x9f06
jmp 0x9f08
jmp 0x9f27
leaq 0x2a4f6(%rip), %rdi     # 0x34405
leaq 0x28f5e(%rip), %rsi     # 0x32e74
movl $0x9ed, %edx            # imm = 0x9ED
leaq 0x2a50e(%rip), %rcx     # 0x34430
callq 0x4100
movq -0x10(%rbp), %rdi
movl $0x3, %esi
callq 0x8b40
movb $0x1, -0x1(%rbp)
jmp 0xa0af
movq -0x18(%rbp), %rax
cmpl $0x4, (%rax)
je 0x9fa4
movq -0x18(%rbp), %rax
cmpl $0x3, (%rax)
je 0x9fa4
movq -0x18(%rbp), %rax
movq %rax, -0x160(%rbp)
leaq -0xb8(%rbp), %rdi
xorl %esi, %esi
movl $0x98, %edx
callq 0x4120
leaq -0xb8(%rbp), %rdi
leaq 0x26efc(%rip), %rsi     # 0x30e78
movl $0x98, %edx
callq 0x41a0
movq -0x160(%rbp), %rdi
movl $0x1, %esi
leaq -0xb8(%rbp), %rdx
callq 0x8d40
testb $0x1, %al
jne 0x9fa4
jmp 0x9fbb
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x9940
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0xa0af
movq -0x18(%rbp), %rax
movq %rax, -0x168(%rbp)
leaq -0x150(%rbp), %rdi
xorl %esi, %esi
movl $0x98, %edx
callq 0x4120
movq -0x168(%rbp), %rdi
movb $0x1, -0x14f(%rbp)
movb $0x1, -0x148(%rbp)
movl $0x1, %esi
leaq -0x150(%rbp), %rdx
callq 0x8d40
testb $0x1, %al
jne 0xa020
movq -0x18(%rbp), %rax
cmpl $0x2, (%rax)
jne 0xa03c
movq -0x18(%rbp), %rdi
xorl %esi, %esi
movl $0x42, %edx
callq 0x8c40
testb $0x1, %al
jne 0xa03c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x78a0
movq -0x10(%rbp), %rdi
callq 0x8bd0
movb $0x0, -0x1(%rbp)
jmp 0xa0af
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x78a0
movq -0x10(%rbp), %rdi
callq 0xf060
movq %rax, -0x158(%rbp)
movq -0x158(%rbp), %rdi
movl $0x8, %esi
callq 0x8700
testb $0x1, %al
jne 0xa070
jmp 0xa072
jmp 0xa091
leaq 0x2a38c(%rip), %rdi     # 0x34405
leaq 0x28df4(%rip), %rsi     # 0x32e74
movl $0xa07, %edx            # imm = 0xA07
leaq 0x2a3a4(%rip), %rcx     # 0x34430
callq 0x4100
movq -0x10(%rbp), %rdi
movl $0x3, %esi
callq 0x8b40
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movb $0x1, 0x50(%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
nopl (%rax)