// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/regex.c
// Function: regex_loneccl
static regex_node_t*
regex_loneccl(void) {
    advance_token(regex_spec->lex);
    bool negate = (peek_token(regex_spec->lex) == T_REG_CARET);

    if (negate)
        { advance_token(regex_spec->lex); }

    bool cce_lower = false;
    bool cce_upper = false;

    bitset_t* range = regex_ccl(&cce_lower, &cce_upper);
    if (!range)
        { return (NULL_NODE); }
    else if (advance_token(regex_spec->lex) != T_REG_RBRACK) {
        del_bitset(range);
        errorf(CURRENT_LINE(regex_spec->lex),
                                "Missing a close bracket (']') in ccl.");
        return (NULL_NODE);
    }

    if (is_empty_bitset(range) && !negate) {
        del_bitset(range);
        return (new_regex_node(AST_EPSILON));
    }
    else if (negate)
        { COMPL_BITSET(range); }

    return (new_regex_node(AST_CLASS, range,
            ((cce_lower) ? CURRENT_LINE(regex_spec->lex) : -1),
            ((cce_upper) ? CURRENT_LINE(regex_spec->lex) : -1)));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x171a3(%rip), %rax     # 0x1dec0
movq (%rax), %rdi
callq 0x330e
movq 0x17194(%rip), %rax     # 0x1dec0
movq (%rax), %rdi
callq 0x38ba
movl %eax, %r14d
cmpl $0x18, %eax
jne 0x6d4b
movq 0x1717d(%rip), %rax     # 0x1dec0
movq (%rax), %rdi
callq 0x330e
callq 0x247c
movq %rax, %rbx
movq 0x17166(%rip), %rax     # 0x1dec0
movq (%rax), %rdi
xorl %r15d, %r15d
movl $0x17, %esi
movl $0x70, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %eax, %eax
callq 0x38e8
movl $0x0, -0x2c(%rbp)
testb %al, %al
jne 0x6f02
xorl %r15d, %r15d
movl $0x0, -0x2c(%rbp)
movq 0x1712a(%rip), %rax     # 0x1dec0
movq (%rax), %rdi
callq 0x330e
cmpl $0x6f, %eax
je 0x6f55
leal -0x4b(%rax), %ecx
cmpl $0x18, %ecx
ja 0x6de8
cmpl $0x56, %eax
ja 0x6e6b
movzbl %r15b, %ecx
xorl %r15d, %r15d
cmpl $0x50, %eax
sete %r15b
testb $0x1, %cl
cmovnel %ecx, %r15d
testb $0x1, -0x2c(%rbp)
jne 0x6ddc
cmpl $0x55, %eax
sete %cl
movl %ecx, -0x2c(%rbp)
leaq 0x213(%rip), %rcx       # 0x6ff6
jmp 0x6e72
movl %eax, %edi
callq 0x6bb1
movslq %eax, %r13
movq 0x170c7(%rip), %rax     # 0x1dec0
movq (%rax), %rdi
callq 0x38ba
cmpl $0x1a, %eax
jne 0x6eae
movq 0x170af(%rip), %rax     # 0x1dec0
movq (%rax), %rdi
callq 0x330e
movq 0x170a0(%rip), %rax     # 0x1dec0
movq (%rax), %rdi
callq 0x330e
movl %eax, %edi
callq 0x6bb1
movslq %eax, %r12
leaq 0x1(%r12), %rdx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x26df
cmpl %r13d, %r12d
jae 0x6e90
movq 0x17072(%rip), %rax     # 0x1dec0
movq (%rax), %rax
movslq 0x28(%rax), %rdi
leaq 0x4cbb(%rip), %rsi      # 0xbb17
movq %r13, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x22f9
jmp 0x6eda
leaq 0x3f0(%rip), %rcx       # 0x7262
movl %eax, %edi
callq *%rcx
movq %rax, %r12
xorl %edi, %edi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x27f4
movq %r12, %rdi
callq 0x24c6
jmp 0x6eda
jne 0x6eda
movq 0x17027(%rip), %rax     # 0x1dec0
movq (%rax), %rax
movslq 0x28(%rax), %rdi
leaq 0x4ca3(%rip), %rsi      # 0xbb4a
xorl %eax, %eax
callq 0x22f9
movl 0x4(%rbx), %eax
cmpq %rax, %r13
jae 0x6ecf
movl $0x1, %eax
movl %r13d, %ecx
shlq %cl, %rax
movq 0x8(%rbx), %rcx
shrq $0x6, %r13
orq %rax, (%rcx,%r13,8)
jmp 0x6eda
movq %rbx, %rdi
movq %r13, %rsi
callq 0x25b0
movq 0x16fdf(%rip), %rax     # 0x1dec0
movq (%rax), %rdi
movl $0x17, %esi
movl $0x70, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %eax, %eax
callq 0x38e8
testb %al, %al
je 0x6d8f
testq %rbx, %rbx
je 0x6f83
movq 0x16fb2(%rip), %rax     # 0x1dec0
movq (%rax), %rdi
callq 0x330e
cmpq $0x17, %rax
jne 0x6f5f
cmpl $0x18, %r14d
sete %r12b
movq %rbx, %rdi
callq 0x273a
xorb $0x1, %al
orb %r12b, %al
jne 0x6f94
movq %rbx, %rdi
callq 0x24c6
movl $0xb, %edi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x77d0
movq %rbx, %rdi
callq 0x24c6
jmp 0x6f83
movq %rbx, %rdi
callq 0x24c6
movq 0x16f52(%rip), %rax     # 0x1dec0
movq (%rax), %rax
movslq 0x28(%rax), %rdi
leaq 0x4b75(%rip), %rsi      # 0xbaf1
xorl %eax, %eax
callq 0x3f64
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x18, %r14d
jne 0x6fa9
movl $0x3, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x27f4
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
testb $0x1, %r15b
je 0x6fc6
movq 0x16f00(%rip), %rax     # 0x1dec0
movq (%rax), %rax
movl 0x28(%rax), %edx
testb $0x1, -0x2c(%rbp)
je 0x6fd9
movq 0x16eed(%rip), %rax     # 0x1dec0
movq (%rax), %rax
movl 0x28(%rax), %ecx
movl $0xc, %edi
movq %rbx, %rsi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x77d0