// File: /workspace/github_c_makefile_star2_O1/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), %r12d
testl %r12d, %r12d
je 0x9638
cmpl $0x1, %r12d
jne 0x95c0
cmpl $0x0, 0x30(%r14)
je 0x9654
cmpl $0x2, %r12d
jne 0x95fa
cmpl $0x8, 0x30(%r14)
jne 0x95fa
movq %rbx, %rdi
callq 0xb8b5
movq %rax, %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x8b69
testb %al, %al
je 0x9732
movq 0x18(%rbx), %rax
movl $0x3, (%rax)
movb $0x1, %al
jmp 0x9645
leal -0x3(%r12), %eax
cmpl $0x2, %eax
jb 0x961f
cmpl $0x1, %r12d
jne 0x966d
movl 0x30(%r14), %eax
leaq 0x125c3(%rip), %rcx     # 0x1bbd8
cmpb $0x0, (%rax,%rcx)
je 0x96d3
movq %rbx, %rdi
movq %r14, %rsi
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x91d5
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8171
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 0x4fa2
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)
cmpl $0x2, %r12d
jne 0x9696
cmpl $0x42, 0x30(%r14)
jne 0x96ff
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8171
movq %rbx, %rdi
callq 0xb8b5
movq %rax, %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x8b69
testb %al, %al
je 0x9751
movq 0x18(%rbx), %rax
movl $0x3, (%rax)
movb $0x1, 0x50(%rax)
jmp 0x9643
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)
cmpl $0x1, %r12d
jne 0x9689
movl 0x30(%r14), %eax
cmpb $0x0, (%rsp,%rax)
je 0x9689
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8171
movq 0x18(%rbx), %rax
movq 0x98(%rax), %rbx
movq %rbx, %rdi
callq 0xd3c9
cmpl $0x1, (%rbx)
jne 0x9643
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rbx)
jmp 0x9643
leaq 0x1540c(%rip), %rdi     # 0x1eb45
leaq 0x140d0(%rip), %rsi     # 0x1d810
leaq 0x15429(%rip), %rcx     # 0x1eb70
movl $0x9ed, %edx            # imm = 0x9ED
callq 0x4100
leaq 0x153ed(%rip), %rdi     # 0x1eb45
leaq 0x140b1(%rip), %rsi     # 0x1d810
leaq 0x1540a(%rip), %rcx     # 0x1eb70
movl $0xa07, %edx            # imm = 0xA07
callq 0x4100