// File: /workspace/github_c_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xa0, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl (%rsi), %eax
testl %eax, %eax
je 0x8bc3
cmpl $0x1, %eax
jne 0x8bd3
cmpl $0x0, 0x30(%r14)
jne 0x8c16
movq %rbx, %rdi
movq %r14, %rsi
addq $0xa0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4d63
movq %rbx, %rdi
movq %r14, %rsi
callq 0x797d
jmp 0x8cc0
cmpl $0x2, %eax
jne 0x8c0e
movb $0x1, %bpl
cmpl $0x8, 0x30(%r14)
jne 0x8c18
movq %rbx, %rdi
callq 0xa620
pushq $0x8
popq %rsi
movq %rax, %rdi
callq 0x82b7
testb %al, %al
je 0x8cf1
movq 0x18(%rbx), %rax
movl $0x3, (%rax)
movb $0x1, %al
jmp 0x8cc2
leal -0x3(%rax), %ecx
cmpl $0x2, %ecx
jb 0x8c2f
xorl %ebp, %ebp
cmpl $0x1, %eax
jne 0x8c6f
movl 0x30(%r14), %r12d
leaq 0xf040(%rip), %rax      # 0x17c68
cmpb $0x0, (%r12,%rax)
je 0x8c49
movq %rbx, %rdi
movq %r14, %rsi
addq $0xa0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x8893
leaq 0x8(%rsp), %r15
movl $0x98, %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0x4120
movb $0x1, %al
movb %al, 0x1(%r15)
movb %al, 0x8(%r15)
cmpb $0x0, 0x8(%rsp,%r12)
jne 0x8cad
testb %bpl, %bpl
je 0x8c7b
cmpl $0x42, 0x30(%r14)
jne 0x8cad
movq %rbx, %rdi
movq %r14, %rsi
callq 0x797d
movq %rbx, %rdi
callq 0xa620
pushq $0x8
popq %rsi
movq %rax, %rdi
callq 0x82b7
testb %al, %al
je 0x8cd2
movq 0x18(%rbx), %rax
movl $0x3, (%rax)
movb $0x1, 0x50(%rax)
jmp 0x8cc0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x797d
movq %rbx, %rdi
callq 0x83cf
xorl %eax, %eax
addq $0xa0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x11efc(%rip), %rdi     # 0x1abd5
leaq 0x10bc0(%rip), %rsi     # 0x198a0
leaq 0x11f19(%rip), %rcx     # 0x1ac00
movl $0xa07, %edx            # imm = 0xA07
callq 0x4100
leaq 0x11edd(%rip), %rdi     # 0x1abd5
leaq 0x10ba1(%rip), %rsi     # 0x198a0
leaq 0x11efa(%rip), %rcx     # 0x1ac00
movl $0x9ed, %edx            # imm = 0x9ED
callq 0x4100