// File: /workspace/github_c_makefile_star2_O3/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 %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl (%rsi), %eax
cmpl $0x2, %eax
je 0x9129
cmpl $0x1, %eax
je 0x90e5
testl %eax, %eax
jne 0x916b
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7d9d
jmp 0x91ec
movl 0x30(%r14), %r12d
testq %r12, %r12
je 0x91fd
leaq 0x10bff(%rip), %rax     # 0x19cf8
cmpb $0x0, (%r12,%rax)
jne 0x9173
movq %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, (%rsp,%r12)
jne 0x91c2
jmp 0x918c
movl 0x30(%r14), %eax
cmpl $0x42, %eax
je 0x918c
cmpl $0x8, %eax
jne 0x91c2
movq %rbx, %rdi
callq 0xaffb
movq %rax, %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x8739
testb %al, %al
je 0x9235
movq 0x18(%rbx), %rax
movl $0x3, (%rax)
movb $0x1, %al
jmp 0x91ee
addl $-0x3, %eax
cmpl $0x2, %eax
jae 0x918c
movq %rbx, %rdi
movq %r14, %rsi
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x8de1
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7d9d
movq %rbx, %rdi
callq 0xaffb
movq %rax, %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x8739
testb %al, %al
je 0x9216
movq 0x18(%rbx), %rax
movl $0x3, (%rax)
movb $0x1, 0x50(%rax)
jmp 0x91ec
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7d9d
movq 0x18(%rbx), %rax
movq 0x98(%rax), %rbx
movq %rbx, %rdi
callq 0xc990
cmpl $0x1, (%rbx)
jne 0x91ec
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rbx)
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rbx, %rdi
movq %r14, %rsi
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x4ece
leaq 0x13a48(%rip), %rdi     # 0x1cc65
leaq 0x1270c(%rip), %rsi     # 0x1b930
leaq 0x13a65(%rip), %rcx     # 0x1cc90
movl $0xa07, %edx            # imm = 0xA07
callq 0x4100
leaq 0x13a29(%rip), %rdi     # 0x1cc65
leaq 0x126ed(%rip), %rsi     # 0x1b930
leaq 0x13a46(%rip), %rcx     # 0x1cc90
movl $0x9ed, %edx            # imm = 0x9ED
callq 0x4100