// File: /workspace/github_cpp_makefile_star2_O1/JameyWoo[P]re2graph/algorithms.cpp
// Function: parse_re(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int&)
Graph parse_re(string rexp, int &state) {
    // cout << "exp = " << rexp << endl;
    if (rexp.size() == 1) {  // ! 当只有一个字符时, 构造基本的转移函数, 然后返回. 这是这个函数的递归基例
        Graph base;
        base.start = state++;
        base.end   = state++;
        Edge edge(base.start, rexp[0], base.end);
        base.edges.push_back(edge);
        return base;
    }
    vector<Graph> graphes;  // 这个rexp可以解析出来的所有graph, 用vector存储, 方便合并

    // 一种特殊情况 (ac)*|b, 要和 (ac | b*)) 这种区分开来.
    // ! 也就是说如果存在不在括号中的 | , 但括号再rexp中存在的情况, 要先处理 |
    bool has_bra = count(rexp.begin(), rexp.end(), '(');  // 是否有括号
    bool or_out  = false;                                 // | 是否在括号外面
    int or_loc   = 0;
    if (has_bra) {
        stack<char> in_or_out;
        int i = 0;
        for (auto s : rexp) {
            i++;
            if (s == '(') {
                in_or_out.push('*');
            } else if (s == ')') {
                in_or_out.pop();
            }
            if (s == '|' && in_or_out.size() == 0) {
                or_out = true;
                or_loc = i - 1;
            }
        }
    }

    if (has_bra && or_out == false) {  // 存在括号, 且如果出现 | , 都在括号之中
        // 检测到有括号, 解析括号
        stack<char> bra;  // 括号, 用来处理括号嵌套的情况
        string sub_rexp;
        for (int i = 0; i < rexp.size(); ++i) {
            char c = rexp[i];
            if (c == '(') {
                if (sub_rexp.size() && bra.size() == 0) {
                    graphes.push_back(parse_re(sub_rexp, state));
                    sub_rexp.clear();
                }
                bra.push('*');
                if (bra.size() != 1) sub_rexp.push_back('(');
            } else if (c == ')') {
                // cout << "2 - " << sub_rexp << endl;
                bra.pop();
                if (bra.size() != 0) sub_rexp.push_back(')');
                if (bra.size() == 0) {  // 最外层括号被弹出, 将括号包裹的部分进行解析
                    // cout << "bar = 0: " << sub_rexp << endl;
                    // 增加对括号闭包的操作
                    if (i + 1 < rexp.size() && (rexp[i + 1] == '*' || rexp[i + 1] == '+')) {  // * 对 * 和 + 的解析
                        if (rexp[i + 1] == '+')
                            graphes.push_back(parse_re(sub_rexp, state));
                        int start = state++;
                        graphes.push_back(parse_re(sub_rexp, state));
                        int end = state++;
                        graphes.back().edges.push_back(Edge(start, '~', graphes.back().start));
                        graphes.back().edges.push_back(Edge(graphes.back().end, '~', graphes.back().start));
                        graphes.back().edges.push_back(Edge(graphes.back().end, '~', end));
                        graphes.back().edges.push_back(Edge(start, '~', end));
                        graphes.back().start = start;
                        graphes.back().end   = end;
                        i++;
                    } else {
                        graphes.push_back(parse_re(sub_rexp, state));
                    }
                    sub_rexp.clear();
                }

                // cout << "1 - " << sub_rexp << endl;
            } else {
                sub_rexp += c;
            }
        }
        // cout << "sub_rexp = " << sub_rexp << endl;
        if (sub_rexp.size()) {
            graphes.push_back(parse_re(sub_rexp, state));
            sub_rexp.clear();
        }
    } else if (count(rexp.begin(), rexp.end(), '|')) {  // ! 解析或, 没有括号的存在
        string sub_rexp;
        Graph merge;
        merge.start = state++;  // 先编号开始, 顺序好看些
        int i       = 0;
        for (auto s : rexp) {
            i++;
            if (s == '|') {
                if (or_out && or_loc != (i - 1)) {
                    sub_rexp += s;
                    continue;
                }
                if (sub_rexp.size()) {
                    graphes.push_back(parse_re(sub_rexp, state));
                    sub_rexp.clear();
                }
            } else {
                sub_rexp += s;
            }
        }
        if (sub_rexp.size()) {
            graphes.push_back(parse_re(sub_rexp, state));
            sub_rexp.clear();
        }
        merge.end = state++;
        for (auto graph : graphes) {
            merge.edges.push_back(Edge(merge.start, '~', graph.start));
            merge.edges.insert(merge.edges.end(), graph.edges.begin(), graph.edges.end());
            merge.edges.push_back(Edge(graph.end, '~', merge.end));
        }
        return merge;  // ! 处理或的直接返回, 因为和处理简单的并或者括号不一样
    } else {           // 处理普通的没有 | , 也没有括号的情况
        // cout << "rexp = " << rexp << endl;
        for (int i = 0; i < rexp.size(); ++i) {
            string next_rexp;
            next_rexp += rexp[i];
            if (i + 1 < rexp.size() && (rexp[i + 1] == '*' || rexp[i + 1] == '+')) {  // * 对 * 和 + 的解析
                if (rexp[i + 1] == '+')
                    graphes.push_back(parse_re(next_rexp, state));
                int start = state++;
                graphes.push_back(parse_re(next_rexp, state));
                int end = state++;
                graphes.back().edges.push_back(Edge(start, '~', graphes.back().start));
                graphes.back().edges.push_back(Edge(graphes.back().end, '~', graphes.back().start));
                graphes.back().edges.push_back(Edge(graphes.back().end, '~', end));
                graphes.back().edges.push_back(Edge(start, '~', end));
                graphes.back().start = start;
                graphes.back().end   = end;
                i++;
            } else {
                graphes.push_back(parse_re(next_rexp, state));
            }
            next_rexp.clear();
        }
    }

    // 解析多原子单位的合并
    Graph merge;
    merge.start = graphes[0].start;
    merge.end   = graphes.back().end;
    merge.edges = graphes[0].edges;
    for (int i = 1; i < graphes.size(); ++i) {
        merge.edges.push_back(Edge(graphes[i - 1].end, '~', graphes[i].start));
        merge.edges.insert(merge.edges.end(), graphes[i].edges.begin(), graphes[i].edges.end());
    }
    // for (auto edge: merge.edges) {
    //     cout << edge.from << ' ' << edge.cond << ' ' << edge.to << endl;
    // }
    return merge;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rdx, 0x28(%rsp)
movq %rsi, %r12
movq %rdi, %rbx
movq 0x8(%rsi), %rax
cmpq $0x1, %rax
movq %rdi, 0xc8(%rsp)
xorps %xmm0, %xmm0
jne 0x4d2f
movups %xmm0, 0x8(%rbx)
movq $0x0, 0x18(%rbx)
movq 0x28(%rsp), %rsi
movl (%rsi), %eax
leal 0x1(%rax), %ecx
movl %ecx, (%rsi)
movl %eax, (%rbx)
leal 0x2(%rax), %edx
movl %edx, (%rsi)
movl %ecx, 0x4(%rbx)
movq (%r12), %rdx
movb (%rdx), %dl
movl %eax, 0x70(%rsp)
movl %ecx, 0x74(%rsp)
movb %dl, 0x78(%rsp)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x4eda
movl 0x78(%rsp), %eax
movl %eax, 0x8(%rsi)
movq 0x70(%rsp), %rax
movq %rax, (%rsi)
addq $0xc, 0x10(%rbx)
jmp 0x5d91
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
movb $0x1, %r13b
testq %rax, %rax
movq %r12, 0x68(%rsp)
je 0x4ed1
movq (%r12), %rcx
xorl %edx, %edx
xorl %esi, %esi
xorl %edi, %edi
cmpb $0x28, (%rcx,%rdx)
sete %dil
addq %rdi, %rsi
incq %rdx
cmpq %rdx, %rax
jne 0x4d56
testq %rsi, %rsi
je 0x4ed1
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %rdi
movaps %xmm0, 0x40(%rdi)
movaps %xmm0, 0x30(%rdi)
movaps %xmm0, 0x20(%rdi)
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
xorl %r15d, %r15d
xorl %esi, %esi
callq 0x11b32
movq 0x8(%r12), %r14
testq %r14, %r14
je 0x4ef0
movq (%r12), %r12
xorl %ebp, %ebp
xorl %r13d, %r13d
xorl %esi, %esi
movzbl (%r12,%rbp), %r15d
cmpl $0x7c, %r15d
je 0x4e6a
cmpl $0x29, %r15d
je 0x4df5
cmpl $0x28, %r15d
jne 0x4ec0
movq %rsi, %rbx
movb $0x2a, 0x8(%rsp)
leaq 0x70(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x11caa
movq %rbx, %rsi
movq 0xc8(%rsp), %rbx
jmp 0x4e64
movq 0xa0(%rsp), %rax
movq 0xa8(%rsp), %rdi
cmpq %rdi, %rax
je 0x4e0f
decq %rax
jmp 0x4e5c
movq %rsi, %rbx
movl $0x200, %esi            # imm = 0x200
callq 0x2200
movq %rbx, %rsi
movq 0xc8(%rsp), %rbx
movq 0xb8(%rsp), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0xb8(%rsp)
movq -0x8(%rax), %rax
movq %rax, 0xa8(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0xb0(%rsp)
addq $0x1ff, %rax            # imm = 0x1FF
movq %rax, 0xa0(%rsp)
cmpb $0x7c, %r15b
jne 0x4ec0
movq 0xa0(%rsp), %rax
movq 0xb8(%rsp), %rcx
movq %rcx, %rdx
subq 0x98(%rsp), %rdx
shrq $0x3, %rdx
cmpq $0x1, %rcx
adcq $-0x1, %rdx
subq 0xa8(%rsp), %rax
shlq $0x9, %rdx
addq 0x90(%rsp), %rax
addq %rdx, %rax
cmpq 0x80(%rsp), %rax
cmovel %ebp, %esi
movzbl %r13b, %r13d
movl $0x1, %eax
cmovel %eax, %r13d
incq %rbp
cmpq %rbp, %r14
jne 0x4db2
movq %rsi, %r15
jmp 0x4ef3
xorl %esi, %esi
movb $0x1, 0x7(%rsp)
jmp 0x4f09
leaq 0x8(%rbx), %r15
leaq 0x70(%rsp), %rdx
movq %r15, %rdi
callq 0x119c8
jmp 0x5d91
xorl %r13d, %r13d
leaq 0x70(%rsp), %rdi
callq 0xeaae
movl %r13d, %eax
xorb $0x1, %al
movb %al, 0x7(%rsp)
movq %r15, %rsi
testb $0x1, %r13b
je 0x5239
movq 0x68(%rsp), %rax
movq 0x8(%rax), %r13
testq %r13, %r13
je 0x590f
movq (%rax), %r14
xorl %eax, %eax
xorl %ecx, %ecx
xorl %edx, %edx
cmpb $0x7c, (%r14,%rax)
sete %dl
addq %rdx, %rcx
incq %rax
cmpq %rax, %r13
jne 0x4f2c
testq %rcx, %rcx
movq 0x68(%rsp), %rax
je 0x590f
leaq 0x80(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x28(%rsp), %rdx
xorl %r15d, %r15d
movq %r15, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x8(%rbx), %rax
movq %rax, 0xd0(%rsp)
movq %r15, 0x18(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movl (%rdx), %eax
leal 0x1(%rax), %ecx
movl %ecx, (%rdx)
movl %eax, (%rbx)
movl %esi, %eax
movq %rax, 0x68(%rsp)
leaq 0x8(%rsp), %rbp
movb (%r14,%r15), %al
cmpl %r15d, 0x68(%rsp)
sete %cl
cmpb $0x7c, %al
jne 0x5059
orb 0x7(%rsp), %cl
testb $0x1, %cl
je 0x5059
movq 0x78(%rsp), %rdx
testq %rdx, %rdx
je 0x5066
leaq 0x148(%rsp), %rax
movq %rax, 0x138(%rsp)
movq 0x70(%rsp), %rsi
addq %rsi, %rdx
leaq 0x138(%rsp), %r12
movq %r12, %rdi
callq 0x44e2
movq %rbp, %rdi
movq %r12, %rsi
movq 0x28(%rsp), %rdx
callq 0x4ca3
leaq 0x50(%rsp), %rdi
movq %rbp, %rsi
callq 0x11ef4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5021
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x5046
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x2200
movq $0x0, 0x78(%rsp)
movq 0x70(%rsp), %rax
movb $0x0, (%rax)
jmp 0x5066
movsbl %al, %esi
leaq 0x70(%rsp), %rdi
callq 0x21c0
incq %r15
cmpq %r15, %r13
jne 0x4f96
movq 0x78(%rsp), %rdx
testq %rdx, %rdx
movq 0xd0(%rsp), %rbp
je 0x5114
leaq 0x1e8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x70(%rsp), %rsi
addq %rsi, %rdx
leaq 0x1d8(%rsp), %rdi
callq 0x44e2
leaq 0x8(%rsp), %rdi
leaq 0x1d8(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x4ca3
leaq 0x50(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x11ef4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x50e6
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x1d8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5103
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x2200
movq $0x0, 0x78(%rsp)
movq 0x70(%rsp), %rax
movb $0x0, (%rax)
movq 0x28(%rsp), %rdx
movl (%rdx), %eax
leal 0x1(%rax), %ecx
movl %ecx, (%rdx)
movl %eax, 0x4(%rbx)
movq 0x50(%rsp), %r14
movq 0x58(%rsp), %r15
cmpq %r15, %r14
je 0x520e
leaq 0x10(%rsp), %r12
leaq 0x30(%rsp), %r13
movq (%r14), %rax
movq %rax, 0x8(%rsp)
addq $0x8, %r14
movq %r12, %rdi
movq %r14, %rsi
callq 0xeafe
movl (%rbx), %eax
movl 0x8(%rsp), %ecx
movl %eax, 0x30(%rsp)
movl %ecx, 0x34(%rsp)
movb $0x7e, 0x38(%rsp)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x518a
movl 0x38(%rsp), %eax
movl %eax, 0x8(%rsi)
movq 0x30(%rsp), %rax
movq %rax, (%rsi)
addq $0xc, 0x10(%rbx)
jmp 0x5195
movq %rbp, %rdi
movq %r13, %rdx
callq 0x12104
movq 0x10(%rbx), %rsi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
movq %rbp, %rdi
callq 0x1221c
movl 0xc(%rsp), %eax
movl 0x4(%rbx), %ecx
movl %eax, 0x30(%rsp)
movl %ecx, 0x34(%rsp)
movb $0x7e, 0x38(%rsp)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x51df
movl 0x38(%rsp), %eax
movl %eax, 0x8(%rsi)
movq 0x30(%rsp), %rax
movq %rax, (%rsi)
addq $0xc, 0x10(%rbx)
jmp 0x51ea
movq %rbp, %rdi
movq %r13, %rdx
callq 0x12104
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5201
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
addq $0x18, %r14
cmpq %r15, %r14
jne 0x5140
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x5d87
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x5d87
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %rdi
movaps %xmm0, 0x40(%rdi)
movaps %xmm0, 0x30(%rdi)
movaps %xmm0, 0x20(%rdi)
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
xorl %esi, %esi
callq 0x11b32
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x68(%rsp), %r14
cmpq $0x0, 0x8(%r14)
je 0x5847
xorl %eax, %eax
leaq 0x30(%rsp), %r13
xorl %ebp, %ebp
movq (%r14), %rcx
movzbl (%rcx,%rax), %eax
cmpl $0x29, %eax
je 0x5406
cmpl $0x28, %eax
jne 0x53f4
movq 0x10(%rsp), %rdx
testq %rdx, %rdx
je 0x5390
movq 0xa0(%rsp), %rax
movq 0xb8(%rsp), %rcx
movq %rcx, %rsi
subq 0x98(%rsp), %rsi
shrq $0x3, %rsi
cmpq $0x1, %rcx
adcq $-0x1, %rsi
subq 0xa8(%rsp), %rax
addq 0x90(%rsp), %rax
shlq $0x9, %rsi
addq %rsi, %rax
cmpq 0x80(%rsp), %rax
jne 0x5390
movq 0x28(%rsp), %r12
leaq 0x1c8(%rsp), %rax
movq %rax, 0x1b8(%rsp)
movq 0x8(%rsp), %rsi
addq %rsi, %rdx
leaq 0x1b8(%rsp), %r15
movq %r15, %rdi
callq 0x44e2
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x4ca3
leaq 0x50(%rsp), %rdi
movq %r13, %rsi
callq 0x11ef4
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x535a
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x1b8(%rsp), %rdi
leaq 0x1c8(%rsp), %rax
cmpq %rax, %rdi
je 0x537f
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x2200
movq $0x0, 0x10(%rsp)
movq 0x8(%rsp), %rax
movb $0x0, (%rax)
movb $0x2a, 0x30(%rsp)
leaq 0x70(%rsp), %rdi
movq %r13, %rsi
callq 0x11caa
movq 0xa0(%rsp), %rcx
movq 0xb8(%rsp), %rax
movq %rax, %rdx
subq 0x98(%rsp), %rdx
shrq $0x3, %rdx
cmpq $0x1, %rax
adcq $-0x1, %rdx
subq 0xa8(%rsp), %rcx
shlq $0x9, %rdx
addq 0x90(%rsp), %rcx
addq %rdx, %rcx
subq 0x80(%rsp), %rcx
movb $0x28, %al
cmpq $0x1, %rcx
je 0x5838
movsbl %al, %esi
leaq 0x8(%rsp), %rdi
callq 0x21c0
jmp 0x5838
movq 0xa0(%rsp), %rax
movq 0xa8(%rsp), %rdi
cmpq %rdi, %rax
je 0x5420
decq %rax
jmp 0x545f
movl $0x200, %esi            # imm = 0x200
callq 0x2200
movq 0xb8(%rsp), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0xb8(%rsp)
movq -0x8(%rax), %rax
movq %rax, 0xa8(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0xb0(%rsp)
addq $0x1ff, %rax            # imm = 0x1FF
movq %rax, 0xa0(%rsp)
movq 0xb8(%rsp), %rcx
movq %rcx, %rdx
subq 0x98(%rsp), %rdx
shrq $0x3, %rdx
cmpq $0x1, %rcx
adcq $-0x1, %rdx
subq 0xa8(%rsp), %rax
addq 0x90(%rsp), %rax
shlq $0x9, %rdx
addq %rdx, %rax
cmpq 0x80(%rsp), %rax
je 0x54b6
leaq 0x8(%rsp), %rdi
movl $0x29, %esi
callq 0x21c0
movq 0xa0(%rsp), %rax
movq 0xb8(%rsp), %rcx
movq %rcx, %rdx
subq 0x98(%rsp), %rdx
shrq $0x3, %rdx
cmpq $0x1, %rcx
adcq $-0x1, %rdx
subq 0xa8(%rsp), %rax
addq 0x90(%rsp), %rax
shlq $0x9, %rdx
addq %rdx, %rax
cmpq 0x80(%rsp), %rax
jne 0x5838
movslq %ebp, %r12
incq %r12
cmpq %r12, 0x8(%r14)
jbe 0x569d
movq 0x68(%rsp), %rax
movq (%rax), %rax
movzbl (%rax,%r12), %eax
cmpl $0x2a, %eax
je 0x55bc
cmpl $0x2b, %eax
jne 0x569d
leaq 0x1a8(%rsp), %rax
movq %rax, 0x198(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x198(%rsp), %r13
movq %r13, %rdi
callq 0x44e2
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movq %r13, %rsi
movq 0x28(%rsp), %rdx
callq 0x4ca3
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
callq 0x11ef4
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5597
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x198(%rsp), %rdi
leaq 0x1a8(%rsp), %rax
cmpq %rax, %rdi
je 0x55bc
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x28(%rsp), %rcx
movl (%rcx), %ebp
leal 0x1(%rbp), %eax
movl %eax, (%rcx)
leaq 0x188(%rsp), %rax
movq %rax, 0x178(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x178(%rsp), %r14
movq %r14, %rdi
callq 0x44e2
leaq 0x30(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
movq 0x28(%rsp), %rdx
callq 0x4ca3
leaq 0x50(%rsp), %rdi
movq %r13, %rsi
callq 0x11ef4
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x562e
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x5653
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x28(%rsp), %rcx
movl (%rcx), %r14d
leal 0x1(%r14), %eax
movl %eax, (%rcx)
movq 0x58(%rsp), %rdi
movl -0x20(%rdi), %eax
movl %ebp, 0x30(%rsp)
movl %eax, 0x34(%rsp)
movb $0x7e, 0x38(%rsp)
movq -0x10(%rdi), %rsi
cmpq -0x8(%rdi), %rsi
je 0x5736
movl 0x38(%rsp), %eax
movl %eax, 0x8(%rsi)
movq 0x30(%rsp), %rax
movq %rax, (%rsi)
addq $0xc, -0x10(%rdi)
jmp 0x5744
leaq 0x168(%rsp), %rax
movq %rax, 0x158(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x158(%rsp), %r14
movq %r14, %rdi
callq 0x44e2
leaq 0x30(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
movq 0x28(%rsp), %rdx
callq 0x4ca3
movq 0x68(%rsp), %r14
leaq 0x50(%rsp), %rdi
movq %r13, %rsi
callq 0x11ef4
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5708
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x5827
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x5827
addq $-0x18, %rdi
leaq 0x30(%rsp), %rdx
callq 0x12104
movq 0x58(%rsp), %rdi
movq -0x20(%rdi), %rax
rolq $0x20, %rax
movq %rax, 0x30(%rsp)
movb $0x7e, 0x38(%rsp)
movq -0x10(%rdi), %rsi
cmpq -0x8(%rdi), %rsi
je 0x577b
movl 0x38(%rsp), %eax
movl %eax, 0x8(%rsi)
movq 0x30(%rsp), %rax
movq %rax, (%rsi)
addq $0xc, -0x10(%rdi)
jmp 0x5789
addq $-0x18, %rdi
leaq 0x30(%rsp), %rdx
callq 0x12104
movq 0x58(%rsp), %rdi
movl -0x1c(%rdi), %eax
movl %eax, 0x30(%rsp)
movl %r14d, 0x34(%rsp)
movb $0x7e, 0x38(%rsp)
movq -0x10(%rdi), %rsi
cmpq -0x8(%rdi), %rsi
je 0x57bf
movl 0x38(%rsp), %eax
movl %eax, 0x8(%rsi)
movq 0x30(%rsp), %rax
movq %rax, (%rsi)
addq $0xc, -0x10(%rdi)
jmp 0x57cd
addq $-0x18, %rdi
leaq 0x30(%rsp), %rdx
callq 0x12104
movq 0x58(%rsp), %rdi
movl %ebp, 0x30(%rsp)
movl %r14d, 0x34(%rsp)
movb $0x7e, 0x38(%rsp)
movq -0x10(%rdi), %rsi
cmpq -0x8(%rdi), %rsi
je 0x5800
movl 0x38(%rsp), %eax
movl %eax, 0x8(%rsi)
movq 0x30(%rsp), %rax
movq %rax, (%rsi)
addq $0xc, -0x10(%rdi)
jmp 0x580e
addq $-0x18, %rdi
leaq 0x30(%rsp), %rdx
callq 0x12104
movq 0x58(%rsp), %rax
movl %ebp, -0x20(%rax)
movl %r14d, -0x1c(%rax)
movl %r12d, %ebp
movq 0x68(%rsp), %r14
leaq 0x30(%rsp), %r13
movq $0x0, 0x10(%rsp)
movq 0x8(%rsp), %rax
movb $0x0, (%rax)
incl %ebp
movslq %ebp, %rax
cmpq %rax, 0x8(%r14)
ja 0x5288
movq 0x10(%rsp), %rdx
testq %rdx, %rdx
je 0x58e4
movq 0x28(%rsp), %r14
leaq 0x208(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rsp), %rsi
addq %rsi, %rdx
leaq 0x1f8(%rsp), %rdi
callq 0x44e2
leaq 0x30(%rsp), %rdi
leaq 0x1f8(%rsp), %rsi
movq %r14, %rdx
callq 0x4ca3
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x11ef4
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x58b6
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x1f8(%rsp), %rdi
cmpq %r15, %rdi
je 0x58d3
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x2200
movq $0x0, 0x10(%rsp)
movq 0x8(%rsp), %rax
movb $0x0, (%rax)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5900
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
leaq 0x70(%rsp), %rdi
callq 0xeaae
jmp 0x5cb5
cmpq $0x0, 0x8(%rax)
je 0x5cb5
movq %rax, %r12
leaq 0x80(%rsp), %r13
xorl %eax, %eax
xorl %r14d, %r14d
movq %r13, %rbp
movq %r13, 0x70(%rsp)
movq $0x0, 0x78(%rsp)
movb $0x0, 0x80(%rsp)
movq (%r12), %rcx
movsbl (%rcx,%rax), %esi
leaq 0x70(%rsp), %rdi
callq 0x21c0
movslq %r14d, %r13
incq %r13
cmpq %r13, 0x8(%r12)
jbe 0x5af1
movq (%r12), %rax
movzbl (%rax,%r13), %eax
cmpl $0x2a, %eax
je 0x5a0c
cmpl $0x2b, %eax
jne 0x5af1
leaq 0x128(%rsp), %rax
movq %rax, 0x118(%rsp)
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
addq %rsi, %rdx
leaq 0x118(%rsp), %r15
movq %r15, %rdi
callq 0x44e2
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
movq 0x28(%rsp), %rdx
callq 0x4ca3
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
callq 0x11ef4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x59e7
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x5a0c
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x28(%rsp), %rcx
movl (%rcx), %r12d
leal 0x1(%r12), %eax
movl %eax, (%rcx)
leaq 0x108(%rsp), %rax
movq %rax, 0xf8(%rsp)
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
addq %rsi, %rdx
leaq 0xf8(%rsp), %r14
movq %r14, %rdi
callq 0x44e2
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq 0x28(%rsp), %rdx
callq 0x4ca3
leaq 0x50(%rsp), %rdi
movq %r15, %rsi
callq 0x11ef4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5a81
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x5aa6
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x28(%rsp), %rcx
movl (%rcx), %r14d
leal 0x1(%r14), %eax
movl %eax, (%rcx)
movq 0x58(%rsp), %rdi
movl -0x20(%rdi), %eax
movl %r12d, 0x8(%rsp)
movl %eax, 0xc(%rsp)
movb $0x7e, 0x10(%rsp)
movq -0x10(%rdi), %rsi
cmpq -0x8(%rdi), %rsi
je 0x5b88
movl 0x10(%rsp), %eax
movl %eax, 0x8(%rsi)
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0xc, -0x10(%rdi)
jmp 0x5b96
leaq 0xe8(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd8(%rsp), %r13
movq %r13, %rdi
callq 0x44e2
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r13, %rsi
movq 0x28(%rsp), %rdx
movq %rbp, %r13
callq 0x4ca3
leaq 0x50(%rsp), %rdi
movq %r15, %rsi
callq 0x11ef4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5b5a
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x5c79
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x5c79
addq $-0x18, %rdi
leaq 0x8(%rsp), %rdx
callq 0x12104
movq 0x58(%rsp), %rdi
movq -0x20(%rdi), %rax
rolq $0x20, %rax
movq %rax, 0x8(%rsp)
movb $0x7e, 0x10(%rsp)
movq -0x10(%rdi), %rsi
cmpq -0x8(%rdi), %rsi
je 0x5bcd
movl 0x10(%rsp), %eax
movl %eax, 0x8(%rsi)
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0xc, -0x10(%rdi)
jmp 0x5bdb
addq $-0x18, %rdi
leaq 0x8(%rsp), %rdx
callq 0x12104
movq 0x58(%rsp), %rdi
movl -0x1c(%rdi), %eax
movl %eax, 0x8(%rsp)
movl %r14d, 0xc(%rsp)
movb $0x7e, 0x10(%rsp)
movq -0x10(%rdi), %rsi
cmpq -0x8(%rdi), %rsi
je 0x5c11
movl 0x10(%rsp), %eax
movl %eax, 0x8(%rsi)
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0xc, -0x10(%rdi)
jmp 0x5c1f
addq $-0x18, %rdi
leaq 0x8(%rsp), %rdx
callq 0x12104
movq 0x58(%rsp), %rdi
movl %r12d, 0x8(%rsp)
movl %r14d, 0xc(%rsp)
movb $0x7e, 0x10(%rsp)
movq -0x10(%rdi), %rsi
cmpq -0x8(%rdi), %rsi
je 0x5c53
movl 0x10(%rsp), %eax
movl %eax, 0x8(%rsi)
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0xc, -0x10(%rdi)
jmp 0x5c61
addq $-0x18, %rdi
leaq 0x8(%rsp), %rdx
callq 0x12104
movq 0x58(%rsp), %rax
movl %r12d, -0x20(%rax)
movl %r14d, -0x1c(%rax)
movl %r13d, %r14d
movq 0x68(%rsp), %r12
movq %rbp, %r13
movq $0x0, 0x78(%rsp)
movq 0x70(%rsp), %rax
movb $0x0, (%rax)
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x5ca4
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2200
incl %r14d
movslq %r14d, %rax
cmpq %rax, 0x8(%r12)
ja 0x592a
leaq 0x8(%rbx), %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq $0x0, 0x18(%rbx)
movq 0x50(%rsp), %rsi
movl (%rsi), %eax
movl %eax, (%rbx)
movq 0x58(%rsp), %rax
movl -0x1c(%rax), %eax
movl %eax, 0x4(%rbx)
addq $0x8, %rsi
movq %r15, %rdi
callq 0xdf96
movq 0x50(%rsp), %rax
movq 0x58(%rsp), %rcx
subq %rax, %rcx
cmpq $0x21, %rcx
jb 0x5d87
movl $0x1, %r12d
xorl %r13d, %r13d
leaq 0x70(%rsp), %r14
movl 0x4(%rax,%r13), %ecx
movl 0x20(%rax,%r13), %eax
movl %ecx, 0x70(%rsp)
movl %eax, 0x74(%rsp)
movb $0x7e, 0x78(%rsp)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x5d44
movl 0x78(%rsp), %eax
movl %eax, 0x8(%rsi)
movq 0x70(%rsp), %rax
movq %rax, (%rsi)
addq $0xc, 0x10(%rbx)
jmp 0x5d4f
movq %r15, %rdi
movq %r14, %rdx
callq 0x12104
movq 0x10(%rbx), %rsi
movq 0x50(%rsp), %rax
movq 0x28(%rax,%r13), %rdx
movq 0x30(%rax,%r13), %rcx
movq %r15, %rdi
callq 0x1221c
incq %r12
movq 0x50(%rsp), %rax
movq 0x58(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %r13
cmpq %r12, %rcx
ja 0x5d0d
leaq 0x50(%rsp), %rdi
callq 0xe09c
movq %rbx, %rax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5dc5
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
jmp 0x5dc5
movq %rax, %r14
movq 0x1d8(%rsp), %rdi
cmpq %r15, %rdi
je 0x60cc
movq 0x1e8(%rsp), %rsi
jmp 0x604f
jmp 0x60c9
jmp 0x616b
jmp 0x616b
jmp 0x616b
jmp 0x616b
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5e1b
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
jmp 0x5e1b
movq %rax, %r14
movq 0x198(%rsp), %rdi
leaq 0x1a8(%rsp), %rax
cmpq %rax, %rdi
je 0x616e
movq 0x1a8(%rsp), %rsi
jmp 0x5fee
jmp 0x616b
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5e65
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
jmp 0x5e65
movq %rax, %r14
movq 0x1f8(%rsp), %rdi
cmpq %r15, %rdi
je 0x616e
movq 0x208(%rsp), %rsi
jmp 0x5fee
jmp 0x616b
movq %rax, %r14
movq (%r15), %rdi
testq %rdi, %rdi
je 0x61bf
movq 0xc8(%rsp), %rax
movq 0x18(%rax), %rsi
subq %rdi, %rsi
callq 0x2200
jmp 0x61bf
jmp 0x5eb2
movq %rax, %r14
jmp 0x61b5
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5ed9
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
jmp 0x5ed9
movq %rax, %r14
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x616e
movq 0x188(%rsp), %rsi
jmp 0x5fee
jmp 0x616b
jmp 0x6151
jmp 0x6151
jmp 0x6151
jmp 0x6151
jmp 0x6196
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5f3c
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
jmp 0x5f3c
movq %rax, %r14
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x6154
movq 0x128(%rsp), %rsi
jmp 0x6145
jmp 0x6151
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5f86
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
jmp 0x5f86
movq %rax, %r14
movq 0x1b8(%rsp), %rdi
leaq 0x1c8(%rsp), %rax
cmpq %rax, %rdi
je 0x616e
movq 0x1c8(%rsp), %rsi
jmp 0x5fee
jmp 0x616b
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5fcd
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
jmp 0x5fcd
movq %rax, %r14
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x616e
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x616e
jmp 0x616b
jmp 0x60ad
jmp 0x60ad
jmp 0x60c9
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x602e
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
jmp 0x602e
movq %rax, %r14
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x60cc
movq 0x148(%rsp), %rsi
incq %rsi
jmp 0x60c2
movq %rax, %r14
jmp 0x618a
movq %rax, %r14
jmp 0x6080
jmp 0x6151
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x6080
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x6154
movq 0x108(%rsp), %rsi
jmp 0x6145
jmp 0x60c9
jmp 0x616b
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x60cc
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
jmp 0x60cc
movq %rax, %r14
movq 0xd0(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x60f0
movq 0xc8(%rsp), %rax
movq 0x18(%rax), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
jne 0x615e
jmp 0x61b5
jmp 0x6151
movq %rax, %r14
jmp 0x6128
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x6128
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x6154
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x6154
jmp 0x6196
movq %rax, %r14
movq 0x70(%rsp), %rdi
cmpq %rbp, %rdi
je 0x61b5
movq 0x80(%rsp), %rsi
incq %rsi
jmp 0x61b0
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x618a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
leaq 0x70(%rsp), %rdi
callq 0xeaae
jmp 0x61b5
movq %rax, %r14
movq (%r15), %rdi
testq %rdi, %rdi
je 0x61b5
movq 0xc8(%rsp), %rax
movq 0x18(%rax), %rsi
subq %rdi, %rsi
callq 0x2200
leaq 0x50(%rsp), %rdi
callq 0xe09c
movq %r14, %rdi
callq 0x2350