// File: /workspace/github_cpp_makefile_star2_O1/canzarlab[P]Trajan/src/BnB.cpp
// Function: BnB::SolveLP()
bool BnB::SolveLP()
{
    int nr_t = Triplets.size();
    int nr_r = nr_rows;
    double f;

#if DEBUG == 1
    int qwe = 0;
    double qwer = 0.0;
    Timer T;
#endif

    while(1)
    {
        SpMat A(nr_rows, nr_cols);
        A.setFromTriplets(Triplets.begin(), Triplets.end());
        Vector b = Vector::Ones(nr_rows);       
        y = Vector::Zero(nr_rows);
        Vector d = -c;            

        BranchingJRF simpleJRF(A, b, d, x, y);
        simpleJRF.lo = sys_lo;
        simpleJRF.hi = sys_hi;
        AugmentedLagrangian solver(simpleJRF, 15);
        solver.setParameter("verbose", false);
        solver.setParameter("pgtol", 0.275); 
        solver.setParameter("constraintsTol", 1e-4);

#if DEBUG == 1
        T.start();
#endif
        SolverStatus status = solver.solve();    
#if DEBUG == 1        
        if (status == SUBOPTIMAL)
            cout << "SUBOPTIMAL(" << status << ")" << endl; 
        if (status == UNBOUNDED)
            cout << "UNBOUNDED(" << status << ")" << endl; 
        if (status == INFEASIBLE)
            cout << "INFEASIBLE(" << status << ")" << endl; 
        if (status == NUM_ERROR)
            cout << "NUM_ERROR(" << status << ")" << endl; 
        T.stop();
        qwe++;
        qwer += T.secs();
        geno_calls++;
        geno_time += T.secs();
#endif

        if (status == INFEASIBLE) 
        {                
            Cleanup(nr_t, nr_r);            
            return 0; 
        }

        x = Vector::ConstMapType(solver.x(), nr_cols); 
        
        if (LP::cf == 1 && Add<1>())
            continue;
        else if (LP::cf == 2 && (Add<1>() + Add<2>()))
            continue;

        f = solver.f();    

#if DEBUG == 1
        cout << "rows: " << nr_rows << endl;
        cout << "cols: " << nr_cols << endl;
        cout << "geno calls: " << qwe << endl;
        cout << "geno time: " << qwer << endl;
        cout << "total geno calls: " << geno_calls << endl;
        cout << "total geno time: " << geno_time << endl;
        cout << "upper: " << f << endl;
        cout << "lower: " << sys_lb << endl;
        int qwert = 0;
        for (size_t i = 0; i < x.size(); ++i)
            if (x(i) > 1e-3 && x(i) < 1 - 1e-3 && !sys_x[i])
                qwert++;
        cout << "fracs: " << qwert << endl;
#endif

        if (sys_lb != double(INF) && f >= sys_lb * (1.0 + con_eps)) 
        {    
#if DEBUG == 1            
            cout << "The branch was cut." << endl << endl;
#endif
            Cleanup(nr_t, nr_r);            
            return 0; 
        }            
#if DEBUG == 1
        else cout << endl;        
#endif

        break;
    }
    
    vector<pair<size_t, size_t>> vp;
    size_t p = 0;

    for (size_t i = 0; i < t1.GetNumNodes(); ++i)
        for (size_t j = 0; j < t2.GetNumNodes(); ++j)
            if (K[i][j] != -1 && x(K[i][j]) > 1e-3 && x(K[i][j]) < 1 - 1e-3 && !sys_x[K[i][j]])                
                vp.emplace_back(i, j);                

    sort(vp.begin(), vp.end(), [this](pair<size_t, size_t>& p, pair<size_t, size_t>& q)
    { 
        int i = K[p.first][p.second];
        int j = K[q.first][q.second];
        return c(i) > c(j); 
    });
   
    for (int i = 0; !p && i < vp.size(); ++i)
    {
        bool flag = 1;
        for (size_t k = 0; flag && k < t1.GetNumNodes(); ++k)          
            for (size_t j = 0; flag && j < t2.GetNumNodes(); ++j)
                if (K[k][j] != -1 && sys_x[K[k][j]])                              
                    flag = IsNotInConflict(vp[i].first, k, vp[i].second, j);                    
        if (flag) p = 1 + K[vp[i].first][vp[i].second];
    }

    if (vp.size())
    {
        bool b0 = !p; 
        p = (b0) ? K[vp[0].first][vp[0].second] : p - 1; // bool b1 = b0 || x(--p) >= 0.1;     
        bool s0 = !b0 && SolveRec(p, 1);            
        bool s1 = SolveRec(p, 0);                       
        if (!s0 && !s1)
        {                 
            Cleanup(nr_t, nr_r);            
            return 0;
        }
    }
    else if (sys_lb > f)
    {
#if DEBUG == 1
        if (gap_flag) 
        {
            gap_amount += abs(sys_lb - f);  
            ++gap_count;
        }
        else 
            gap_flag = 1;
#endif
        sys_s = x;
        sys_lb = f; 
    }

    Cleanup(nr_t, nr_r);
    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rdi, %rbx
movq 0x90(%rdi), %rcx
subq 0x88(%rdi), %rcx
leaq 0x88(%rdi), %rax
movq %rax, 0x18(%rsp)
movl 0x108(%rdi), %eax
movl %eax, 0x14(%rsp)
leaq 0x190(%rsp), %rax
movb $0x0, 0x28(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, -0x10(%rax)
leaq 0xd0(%rdi), %rax
movq %rax, 0x8(%rsp)
leaq 0xf8(%rdi), %rax
movq %rax, 0x118(%rsp)
leaq 0xc0(%rdi), %rbp
shrq $0x4, %rcx
xorps %xmm0, %xmm0
movsd %xmm0, 0x20(%rsp)
movq %rcx, 0x30(%rsp)
movslq %ecx, %rax
movq %rax, 0x38(%rsp)
movq $0x0, 0x28(%rsp)
leaq 0x1c0(%rsp), %r15
leaq 0x50(%rsp), %r14
movslq 0x108(%rbx), %rsi
movslq 0x10c(%rbx), %rdx
movb $0x0, 0x1c0(%rsp)
xorpd %xmm0, %xmm0
leaq 0x1c8(%rsp), %rax
movupd %xmm0, 0x30(%rax)
movupd %xmm0, 0x20(%rax)
movupd %xmm0, 0x10(%rax)
movupd %xmm0, (%rax)
movq %r15, %rdi
callq 0x386d2
movq 0x88(%rbx), %rax
movq %rax, 0x50(%rsp)
movq 0x90(%rbx), %rax
movq %rax, 0xb8(%rsp)
movq %r14, %rdi
leaq 0xb8(%rsp), %rsi
movq %r15, %rdx
leaq 0x40(%rsp), %rcx
callq 0x387a4
movslq 0x108(%rbx), %rax
movq %rax, 0x50(%rsp)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x60(%rsp)
testq %rax, %rax
js 0x40ae1
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x377fc
movslq 0x108(%rbx), %r13
testq %r13, %r13
js 0x40ae1
cmpq %r13, 0xd8(%rbx)
je 0x3f9c6
movl $0x1, %ecx
movq 0x8(%rsp), %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0x10056
movq 0xd8(%rbx), %r12
cmpq %r13, %r12
jne 0x40b4d
movq %rbp, %r15
movq 0x8(%rsp), %rax
movq (%rax), %r13
movq %r12, %rbp
shrq $0x3f, %rbp
addq %r12, %rbp
movq %rbp, %r14
andq $-0x2, %r14
cmpq $0x2, %r12
jl 0x3fa1f
cmpq $0x3, %r14
movl $0x2, %eax
cmovgeq %r14, %rax
leaq -0x8(,%rax,8), %rdx
andq $-0x10, %rdx
addq $0x10, %rdx
movq %r13, %rdi
xorl %esi, %esi
callq 0x91c0
cmpq %r12, %r14
jge 0x3fa42
sarq %rbp
shlq $0x4, %rbp
addq %rbp, %r13
shlq $0x3, %r12
subq %rbp, %r12
movq %r13, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x91c0
movq 0x118(%rsp), %rax
movq %rax, 0x50(%rsp)
leaq 0x208(%rsp), %r14
movq %r14, %rdi
leaq 0x50(%rsp), %rsi
callq 0x39b9e
leaq 0xb8(%rsp), %rdi
leaq 0x1c0(%rsp), %rsi
leaq 0x40(%rsp), %rdx
movq %r14, %rcx
movq %r15, %rbp
movq %r15, %r8
movq 0x8(%rsp), %r9
callq 0x414e6
leaq 0x170(%rsp), %r14
movq 0x228(%rbx), %r12
movq 0x230(%rbx), %r13
cmpq %r13, 0x110(%rsp)
leaq 0x1c0(%rsp), %r15
je 0x3fb1f
testq %r13, %r13
js 0x40b2e
movq 0x108(%rsp), %rdi
callq 0x93c0
testq %r13, %r13
je 0x3fb0d
movabsq $0x1fffffffffffffff, %rax # imm = 0x1FFFFFFFFFFFFFFF
cmpq %rax, %r13
ja 0x40b00
leaq (,%r13,8), %rdi
callq 0x9440
cmpq $0x1, %r13
setne %cl
testb $0xf, %al
setne %dl
testb %dl, %cl
jne 0x40b64
testq %rax, %rax
jne 0x3fb0f
jmp 0x40b00
xorl %eax, %eax
movq %rax, 0x108(%rsp)
movq %r13, 0x110(%rsp)
movq 0x110(%rsp), %rax
cmpq %r13, %rax
jne 0x40ac7
movq 0x108(%rsp), %rcx
movq %rax, %rdx
shrq $0x3f, %rdx
addq %rax, %rdx
andq $-0x2, %rdx
cmpq $0x2, %rax
jl 0x3fb62
xorl %esi, %esi
movapd (%r12,%rsi,8), %xmm0
movapd %xmm0, (%rcx,%rsi,8)
addq $0x2, %rsi
cmpq %rdx, %rsi
jl 0x3fb4e
cmpq %rax, %rdx
jge 0x3fb7a
movsd (%r12,%rdx,8), %xmm0
movsd %xmm0, (%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0x3fb67
movq 0x238(%rbx), %r12
movq 0x240(%rbx), %r13
cmpq %r13, 0x100(%rsp)
je 0x3fbfd
testq %r13, %r13
js 0x40b2e
movq 0xf8(%rsp), %rdi
callq 0x93c0
testq %r13, %r13
je 0x3fbeb
movabsq $0x1fffffffffffffff, %rax # imm = 0x1FFFFFFFFFFFFFFF
cmpq %rax, %r13
ja 0x40b00
leaq (,%r13,8), %rdi
callq 0x9440
cmpq $0x1, %r13
setne %cl
testb $0xf, %al
setne %dl
testb %dl, %cl
jne 0x40b64
testq %rax, %rax
jne 0x3fbed
jmp 0x40b00
xorl %eax, %eax
movq %rax, 0xf8(%rsp)
movq %r13, 0x100(%rsp)
movq 0x100(%rsp), %rax
cmpq %r13, %rax
jne 0x40ac7
movq 0xf8(%rsp), %rcx
movq %rax, %rdx
shrq $0x3f, %rdx
addq %rax, %rdx
andq $-0x2, %rdx
cmpq $0x2, %rax
leaq 0x160(%rsp), %r13
jl 0x3fc48
xorl %esi, %esi
movapd (%r12,%rsi,8), %xmm0
movapd %xmm0, (%rcx,%rsi,8)
addq $0x2, %rsi
cmpq %rdx, %rsi
jl 0x3fc34
cmpq %rax, %rdx
jge 0x3fc60
movsd (%r12,%rdx,8), %xmm0
movsd %xmm0, (%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0x3fc4d
movl $0xf, %edx
leaq 0x50(%rsp), %r12
movq %r12, %rdi
leaq 0xb8(%rsp), %rsi
callq 0xdf90
movq %r14, 0x160(%rsp)
movq %r13, %rdi
leaq 0x1c7a6(%rip), %rsi     # 0x5c432
leaq 0x1c7a6(%rip), %rdx     # 0x5c439
callq 0xdb24
xorpd %xmm0, %xmm0
movq %r12, %rdi
movq %r13, %rsi
callq 0xee5a
movq 0x160(%rsp), %rdi
cmpq %r14, %rdi
je 0x3fcc4
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x9340
leaq 0x150(%rsp), %r14
movq %r14, 0x140(%rsp)
leaq 0x140(%rsp), %r13
movq %r13, %rdi
leaq 0x1c72a(%rip), %rsi     # 0x5c410
leaq 0x1c728(%rip), %rdx     # 0x5c415
callq 0xdb24
movq %r12, %rdi
movq %r13, %rsi
movsd 0x302c8(%rip), %xmm0    # 0x6ffc8
callq 0xee5a
movq 0x140(%rsp), %rdi
cmpq %r14, %rdi
je 0x3fd22
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x9340
leaq 0x130(%rsp), %r14
movq %r14, 0x120(%rsp)
leaq 0x120(%rsp), %r13
movq %r13, %rdi
leaq 0x1c6df(%rip), %rsi     # 0x5c423
leaq 0x1c6e6(%rip), %rdx     # 0x5c431
callq 0xdb24
movq %r12, %rdi
movq %r13, %rsi
movsd 0x30272(%rip), %xmm0    # 0x6ffd0
callq 0xee5a
movq 0x120(%rsp), %rdi
cmpq %r14, %rdi
je 0x3fd80
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x9340
xorpd %xmm0, %xmm0
movapd %xmm0, 0x180(%rsp)
leaq 0x190(%rsp), %rdi
leaq 0x1b0(%rsp), %r14
movq %r14, %rsi
callq 0x9580
movb $0x1, 0x1b8(%rsp)
movq %r12, %rdi
callq 0xe148
movl %eax, %r12d
cmpl $0x2, %eax
je 0x3fe35
cmpl $0x1, %r12d
jne 0x3fe9d
movl $0xb, %edx
movq 0x481ed(%rip), %rdi     # 0x87fc0
leaq 0x3023e(%rip), %rsi     # 0x70018
callq 0x93a0
movq 0x481da(%rip), %rdi     # 0x87fc0
movl $0x1, %esi
callq 0x9640
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x305d7(%rip), %rsi     # 0x703d9
callq 0x93a0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r13, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
cmpl $0x2, %r12d
jne 0x3fe9d
movl $0xa, %edx
movq 0x4817f(%rip), %rdi     # 0x87fc0
leaq 0x301dc(%rip), %rsi     # 0x70024
callq 0x93a0
movq 0x4816c(%rip), %rdi     # 0x87fc0
movl $0x2, %esi
callq 0x9640
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x30569(%rip), %rsi     # 0x703d9
callq 0x93a0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r13, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
cmpl $0x3, %r12d
jne 0x3ff0b
movl $0xb, %edx
movq 0x48111(%rip), %rdi     # 0x87fc0
leaq 0x30179(%rip), %rsi     # 0x7002f
callq 0x93a0
movq 0x480fe(%rip), %rdi     # 0x87fc0
movl $0x3, %esi
callq 0x9640
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x304fb(%rip), %rsi     # 0x703d9
callq 0x93a0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r13, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
cmpl $0x4, %r12d
jne 0x3ff79
movl $0xa, %edx
movq 0x480a3(%rip), %rdi     # 0x87fc0
leaq 0x30117(%rip), %rsi     # 0x7003b
callq 0x93a0
movq 0x48090(%rip), %rdi     # 0x87fc0
movl $0x4, %esi
callq 0x9640
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x3048d(%rip), %rsi     # 0x703d9
callq 0x93a0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r13, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
leaq 0x1a0(%rsp), %rdi
movq %r14, %rsi
callq 0x9580
movq 0x1a0(%rsp), %rax
subq 0x190(%rsp), %rax
movq 0x1a8(%rsp), %rcx
imulq $0xf4240, %rax, %rax    # imm = 0xF4240
subq 0x198(%rsp), %rcx
addq %rax, %rcx
addq 0x180(%rsp), %rcx
movq 0x28(%rsp), %rax
incl %eax
movq %rax, 0x28(%rsp)
incl 0x48467(%rip)           # 0x88434
movb $0x0, 0x1b8(%rsp)
movq %rcx, 0x180(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
divsd 0x1c03b(%rip), %xmm0    # 0x5c028
cvtsd2ss %xmm0, %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x20(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x20(%rsp)
addsd 0x4842b(%rip), %xmm0    # 0x88438
movsd %xmm0, 0x48423(%rip)    # 0x88438
cmpl $0x3, %r12d
jne 0x4003f
movq 0x18(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x414b2
movl 0x14(%rsp), %eax
movl %eax, 0x108(%rbx)
movl $0x1, %r13d
jmp 0x40512
leaq 0x50(%rsp), %rdi
callq 0xee48
movslq 0x10c(%rbx), %r13
testq %r13, %r13
js 0x40ba2
movq %rax, %r12
cmpq %r13, 0xc8(%rbx)
je 0x40078
movl $0x1, %ecx
movq %rbp, %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0x10056
movq 0xc8(%rbx), %rax
cmpq %r13, %rax
jne 0x40b83
movq (%rbp), %rcx
movq %rax, %rdx
shrq $0x3f, %rdx
addq %rax, %rdx
andq $-0x2, %rdx
cmpq $0x2, %rax
jl 0x400b6
xorl %esi, %esi
movupd (%r12,%rsi,8), %xmm0
movapd %xmm0, (%rcx,%rsi,8)
addq $0x2, %rsi
cmpq %rdx, %rsi
jl 0x400a2
cmpq %rax, %rdx
jge 0x400ce
movsd (%r12,%rdx,8), %xmm0
movsd %xmm0, (%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0x400bb
leaq 0x4832b(%rip), %rax     # 0x88400
cmpl $0x1, (%rax)
jne 0x400f0
movq %rbx, %rdi
callq 0x381e6
movl $0x2, %r13d
testl %eax, %eax
jne 0x40512
leaq 0x48309(%rip), %rax     # 0x88400
cmpl $0x2, (%rax)
jne 0x4012e
movq %rbx, %rdi
callq 0x381e6
movl %eax, %r12d
cmpb $0x1, 0x68(%rbx)
jne 0x40117
movq %rbx, %rdi
callq 0x383ec
jmp 0x4011f
movq %rbx, %rdi
callq 0x3857c
movl $0x2, %r13d
addl %eax, %r12d
jne 0x40512
leaq 0x50(%rsp), %rdi
callq 0xee54
movsd %xmm0, (%rsp)
movl $0x6, %edx
movq 0x47e77(%rip), %rdi     # 0x87fc0
leaq 0x2fef6(%rip), %rsi     # 0x70046
callq 0x93a0
movl 0x108(%rbx), %esi
movq 0x47e5e(%rip), %rdi     # 0x87fc0
callq 0x9640
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r12, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
movl $0x6, %edx
movq 0x47e23(%rip), %rdi     # 0x87fc0
leaq 0x2fea9(%rip), %rsi     # 0x7004d
callq 0x93a0
movl 0x10c(%rbx), %esi
movq 0x47e0a(%rip), %rdi     # 0x87fc0
callq 0x9640
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r12, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
movl $0xc, %edx
movq 0x47dcf(%rip), %rdi     # 0x87fc0
leaq 0x2fdee(%rip), %rsi     # 0x6ffe6
callq 0x93a0
movq 0x47dbc(%rip), %rdi     # 0x87fc0
movq 0x28(%rsp), %rsi
callq 0x9640
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r12, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
movl $0xb, %edx
movq 0x47d7c(%rip), %rdi     # 0x87fc0
leaq 0x2fdae(%rip), %rsi     # 0x6fff9
callq 0x93a0
movq 0x47d69(%rip), %rdi     # 0x87fc0
movsd 0x20(%rsp), %xmm0
callq 0x9560
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r12, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
movl $0x12, %edx
movq 0x47d28(%rip), %rdi     # 0x87fc0
leaq 0x2fd41(%rip), %rsi     # 0x6ffe0
callq 0x93a0
movl 0x4818a(%rip), %esi     # 0x88434
movq 0x47d0f(%rip), %rdi     # 0x87fc0
callq 0x9640
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r12, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
movl $0x11, %edx
movq 0x47cd4(%rip), %rdi     # 0x87fc0
leaq 0x2fd00(%rip), %rsi     # 0x6fff3
callq 0x93a0
movsd 0x48138(%rip), %xmm0    # 0x88438
movq 0x47cb9(%rip), %rdi     # 0x87fc0
callq 0x9560
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r12, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
movl $0x7, %edx
movq 0x47c7e(%rip), %rdi     # 0x87fc0
leaq 0x2fd0b(%rip), %rsi     # 0x70054
callq 0x93a0
movq 0x47c6b(%rip), %rdi     # 0x87fc0
movsd (%rsp), %xmm0
callq 0x9560
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r12, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
movl $0x7, %edx
movq 0x47c2b(%rip), %rdi     # 0x87fc0
leaq 0x2fcc0(%rip), %rsi     # 0x7005c
callq 0x93a0
movsd 0x1e8(%rbx), %xmm0
movq 0x47c10(%rip), %rdi     # 0x87fc0
callq 0x9560
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r12, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
movq 0xc8(%rbx), %rax
testq %rax, %rax
je 0x40451
movq 0xc0(%rbx), %rcx
movq 0x1f0(%rbx), %rdx
xorl %esi, %esi
testq %rax, %rax
movl $0x0, %edi
cmovgq %rax, %rdi
leaq -0x1(%rax), %r8
xorl %r12d, %r12d
cmpq %r8, %rdi
jbe 0x40aa8
movsd (%rcx,%rsi,8), %xmm0
ucomisd 0x1d4e4(%rip), %xmm0    # 0x5d908
jbe 0x40447
movsd 0x2fbaa(%rip), %xmm1    # 0x6ffd8
ucomisd %xmm0, %xmm1
jbe 0x40447
movq %rsi, %r9
shrq $0x6, %r9
movq (%rdx,%r9,8), %r9
btq %rsi, %r9
sbbl $-0x1, %r12d
incq %rsi
cmpq %rsi, %rax
jne 0x4040e
jmp 0x40454
xorl %r12d, %r12d
movl $0x7, %edx
movq 0x47b60(%rip), %rdi     # 0x87fc0
leaq 0x2fbfd(%rip), %rsi     # 0x70064
callq 0x93a0
movq 0x47b4d(%rip), %rdi     # 0x87fc0
movl %r12d, %esi
callq 0x9640
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r12, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
movsd 0x1e8(%rbx), %xmm0
ucomisd 0x1befb(%rip), %xmm0    # 0x5c3b0
jae 0x404da
movsd 0x248(%rbx), %xmm1
addsd 0x1bee1(%rip), %xmm1    # 0x5c3a8
mulsd %xmm1, %xmm0
movsd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
jae 0x405a4
movq 0x47adf(%rip), %rcx     # 0x87fc0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq 0x47ac1(%rip), %rdi     # 0x87fc0
callq 0x9040
movl $0x3, %r13d
movq %rax, %rdi
callq 0x9220
movq 0x88(%rsp), %rdi
callq 0x93c0
movq 0x78(%rsp), %rdi
callq 0x93c0
leaq 0x46270(%rip), %rax     # 0x867a0
movq %rax, 0xb8(%rsp)
movq 0x108(%rsp), %rdi
callq 0x93c0
movq 0xf8(%rsp), %rdi
callq 0x93c0
movq 0x208(%rsp), %rdi
callq 0x93c0
movq 0x40(%rsp), %rdi
callq 0x93c0
movq 0x1d8(%rsp), %rdi
callq 0x93c0
movq 0x1e0(%rsp), %rdi
callq 0x93c0
leaq 0x1e8(%rsp), %rdi
callq 0x38782
cmpl $0x2, %r13d
leaq 0x50(%rsp), %r14
je 0x3f8f7
jmp 0x4062c
movl $0x13, %edx
movq 0x47a10(%rip), %rdi     # 0x87fc0
leaq 0x2fab5(%rip), %rsi     # 0x7006c
callq 0x93a0
movq 0x479fd(%rip), %rcx     # 0x87fc0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq 0x479df(%rip), %rdi     # 0x87fc0
callq 0x9040
movq %rax, %rdi
callq 0x9220
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r12, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
movq 0x18(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x414b2
jmp 0x4002a
cmpl $0x3, %r13d
jne 0x407b9
xorpd %xmm0, %xmm0
movapd %xmm0, 0x50(%rsp)
xorl %eax, %eax
movq %rax, 0x60(%rsp)
movq %rax, 0xb8(%rsp)
movq 0x30(%rbx), %rax
cmpl $0x0, 0x70(%rax)
je 0x4074e
leaq 0xb8(%rsp), %r12
leaq 0x1c0(%rsp), %r13
movq $0x0, 0x1c0(%rsp)
movq 0x38(%rbx), %rax
cmpl $0x0, 0x70(%rax)
je 0x4072a
xorl %eax, %eax
movq 0xb8(%rsp), %rcx
movq 0xe0(%rbx), %rdx
leaq (%rcx,%rcx,2), %rcx
movq (%rdx,%rcx,8), %rcx
movslq (%rcx,%rax,4), %rax
cmpq $-0x1, %rax
je 0x40706
testl %eax, %eax
js 0x40aa8
cmpq %rax, 0xc8(%rbx)
jle 0x40aa8
movq (%rbp), %rcx
movsd (%rcx,%rax,8), %xmm0
ucomisd 0x1d238(%rip), %xmm0    # 0x5d908
jbe 0x40706
movsd 0x2f8fe(%rip), %xmm1    # 0x6ffd8
ucomisd %xmm0, %xmm1
jbe 0x40706
movq 0x1f0(%rbx), %rcx
movq %rax, %rdx
shrq $0x6, %rdx
movq (%rcx,%rdx,8), %rcx
btq %rax, %rcx
jb 0x40706
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x415f0
movq 0x1c0(%rsp), %rax
incq %rax
movq %rax, 0x1c0(%rsp)
movq 0x38(%rbx), %rcx
movslq 0x70(%rcx), %rcx
cmpq %rcx, %rax
jb 0x40689
movq 0xb8(%rsp), %rax
incq %rax
movq %rax, 0xb8(%rsp)
movq 0x30(%rbx), %rcx
movslq 0x70(%rcx), %rcx
cmpq %rcx, %rax
jb 0x4066d
movq 0x50(%rsp), %r15
movq 0x58(%rsp), %r14
cmpq %r14, %r15
je 0x407ce
movq %r14, %r12
subq %r15, %r12
movq %r12, %rax
sarq $0x4, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rcx
callq 0x40df1
cmpq $0x101, %r12            # imm = 0x101
jl 0x407c0
leaq 0x100(%r15), %r12
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x412e6
cmpq %r14, %r12
je 0x407ce
movq %r12, %rdi
movq %rbx, %rsi
callq 0x41392
addq $0x10, %r12
jmp 0x407a3
xorl %ebp, %ebp
jmp 0x40a94
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x412e6
movq 0x58(%rsp), %rax
cmpq 0x50(%rsp), %rax
je 0x40904
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
xorl %r13d, %r13d
leaq 0x3f(%rax), %rbp
movb $0x1, %al
movq %r13, 0x8(%rsp)
shlq $0x4, %r13
xorl %r14d, %r14d
movq 0x30(%rbx), %rcx
movslq 0x70(%rcx), %rcx
cmpq %rcx, %r14
jae 0x408b4
testb $0x1, %al
je 0x408a4
leaq (%r14,%r14,2), %r12
xorl %r15d, %r15d
movq 0x38(%rbx), %rcx
movslq 0x70(%rcx), %rcx
cmpq %rcx, %r15
jae 0x408a4
movq 0xe0(%rbx), %rcx
movq (%rcx,%r12,8), %rcx
movslq (%rcx,%r15,4), %rcx
cmpq $-0x1, %rcx
je 0x40899
leaq 0x3f(%rcx), %rdx
testq %rcx, %rcx
cmovnsq %rcx, %rdx
sarq $0x6, %rdx
shlq $0x3, %rdx
addq 0x1f0(%rbx), %rdx
movq %rcx, %rsi
andq %rbp, %rsi
xorl %edi, %edi
movabsq $-0x8000000000000000, %r8 # imm = 0x8000000000000000
cmpq %r8, %rsi
setbe %dil
movq -0x8(%rdx,%rdi,8), %rdx
btq %rcx, %rdx
jae 0x40899
movq 0x50(%rsp), %rax
movl (%rax,%r13), %esi
movl 0x8(%rax,%r13), %ecx
movq %rbx, %rdi
movl %r14d, %edx
movl %r15d, %r8d
callq 0x34be6
incq %r15
testb $0x1, %al
jne 0x4081d
incq %r14
testb $0x1, %al
jne 0x407fd
xorl %r14d, %r14d
jmp 0x408d8
movq 0x50(%rsp), %rax
movq 0xe0(%rbx), %rcx
movq (%rax,%r13), %rdx
movq 0x8(%rax,%r13), %rax
leaq (%rdx,%rdx,2), %rdx
movq (%rcx,%rdx,8), %rcx
movslq (%rcx,%rax,4), %r14
incq %r14
testq %r14, %r14
sete %al
movq 0x8(%rsp), %r13
jne 0x408ff
incq %r13
movq 0x58(%rsp), %rcx
subq 0x50(%rsp), %rcx
sarq $0x4, %rcx
cmpq %r13, %rcx
ja 0x407ef
decq %r14
jmp 0x4090d
movb $0x1, %al
movq $-0x1, %r14
movq 0x50(%rsp), %rcx
cmpq %rcx, 0x58(%rsp)
je 0x4093f
testb %al, %al
je 0x40937
movq 0xe0(%rbx), %rdx
movq (%rcx), %rsi
movq 0x8(%rcx), %rcx
leaq (%rsi,%rsi,2), %rsi
movq (%rdx,%rsi,8), %rdx
movslq (%rdx,%rcx,4), %r14
testb %al, %al
je 0x40980
xorl %ebp, %ebp
jmp 0x40992
movsd 0x1e8(%rbx), %xmm0
ucomisd (%rsp), %xmm0
jbe 0x40a61
cmpb $0x1, 0x47af7(%rip)     # 0x88450
jne 0x409be
subsd (%rsp), %xmm0
andpd 0x1ba88(%rip), %xmm0    # 0x5c3f0
addsd 0x47ad8(%rip), %xmm0    # 0x88448
movsd %xmm0, 0x47ad0(%rip)    # 0x88448
incl 0x47ac2(%rip)           # 0x88440
jmp 0x409c5
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x40d0c
movl %eax, %ebp
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x40d0c
orb %al, %bpl
jne 0x40a61
movslq 0x30(%rsp), %rsi
movq 0x18(%rsp), %rdi
callq 0x414b2
xorl %ebp, %ebp
jmp 0x40a73
movb $0x1, 0x47a8b(%rip)     # 0x88450
leaq 0x218(%rbx), %r14
movq 0xc0(%rbx), %r12
movq 0xc8(%rbx), %r15
cmpq %r15, 0x220(%rbx)
je 0x409ff
testq %r15, %r15
js 0x40b2e
movl $0x1, %ecx
movq %r14, %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x10056
movq 0x220(%rbx), %rax
cmpq %r15, %rax
jne 0x40ac7
movq (%r14), %rcx
movq %rax, %rdx
shrq $0x3f, %rdx
addq %rax, %rdx
andq $-0x2, %rdx
cmpq $0x2, %rax
jl 0x40a3c
xorl %esi, %esi
movapd (%r12,%rsi,8), %xmm0
movapd %xmm0, (%rcx,%rsi,8)
addq $0x2, %rsi
cmpq %rdx, %rsi
jl 0x40a28
cmpq %rax, %rdx
jge 0x40a54
movsd (%r12,%rdx,8), %xmm0
movsd %xmm0, (%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0x40a41
movsd (%rsp), %xmm0
movsd %xmm0, 0x1e8(%rbx)
movslq 0x30(%rsp), %rsi
movb $0x1, %bpl
movq 0x18(%rsp), %rdi
callq 0x414b2
movl 0x14(%rsp), %eax
movl %eax, 0x108(%rbx)
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x40a94
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
movl %ebp, %eax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1c776(%rip), %rdi     # 0x5d225
leaq 0x1c78c(%rip), %rsi     # 0x5d242
leaq 0x1c7a8(%rip), %rcx     # 0x5d265
movl $0x1a9, %edx            # imm = 0x1A9
callq 0x9200
leaq 0x1c592(%rip), %rdi     # 0x5d060
leaq 0x1ba44(%rip), %rsi     # 0x5c519
leaq 0x1c810(%rip), %rcx     # 0x5d2ec
jmp 0x40b98
leaq 0x1ba54(%rip), %rdi     # 0x5c53c
leaq 0x1bae2(%rip), %rsi     # 0x5c5d1
leaq 0x1c8d6(%rip), %rcx     # 0x5d3cc
movl $0x4a, %edx
callq 0x9200
movl $0x8, %edi
callq 0x9180
movq 0x4749f(%rip), %rcx     # 0x87fb0
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x474a9(%rip), %rsi     # 0x87fc8
movq 0x4746a(%rip), %rdx     # 0x87f90
movq %rax, %rdi
callq 0x9630
leaq 0x1c323(%rip), %rdi     # 0x5ce58
leaq 0x1c17b(%rip), %rsi     # 0x5ccb7
leaq 0x1c4a4(%rip), %rcx     # 0x5cfe7
movl $0x11d, %edx            # imm = 0x11D
callq 0x9200
leaq 0x1c50c(%rip), %rdi     # 0x5d060
leaq 0x1b9be(%rip), %rsi     # 0x5c519
leaq 0x1c961(%rip), %rcx     # 0x5d4c3
jmp 0x40b98
leaq 0x1c1e1(%rip), %rdi     # 0x5cd4c
leaq 0x1c294(%rip), %rsi     # 0x5ce06
leaq 0x1c2ac(%rip), %rcx     # 0x5ce25
movl $0xa1, %edx
callq 0x9200
leaq 0x1c4d6(%rip), %rdi     # 0x5d060
leaq 0x1b988(%rip), %rsi     # 0x5c519
leaq 0x1cc48(%rip), %rcx     # 0x5d7e0
movl $0x2d1, %edx            # imm = 0x2D1
callq 0x9200
leaq 0x1bfde(%rip), %rdi     # 0x5cb87
leaq 0x1bd54(%rip), %rsi     # 0x5c904
leaq 0x1cb87(%rip), %rcx     # 0x5d73e
movl $0xa3, %edx
callq 0x9200
jmp 0x40c80
jmp 0x40c80
jmp 0x40c80
jmp 0x40c9c
jmp 0x40c9c
jmp 0x40c72
jmp 0x40c9c
jmp 0x40c9c
movq %rax, %rbx
movq 0x120(%rsp), %rdi
cmpq %r14, %rdi
je 0x40c9f
movq 0x130(%rsp), %rsi
jmp 0x40c5e
movq %rax, %rbx
movq 0x140(%rsp), %rdi
cmpq %r14, %rdi
je 0x40c9f
movq 0x150(%rsp), %rsi
jmp 0x40c5e
jmp 0x40c68
jmp 0x40c9c
movq %rax, %rbx
leaq 0x1e8(%rsp), %rdi
callq 0x38782
jmp 0x40d03
movq %rax, %rbx
jmp 0x40cdf
movq %rax, %rbx
movq 0x160(%rsp), %rdi
cmpq %r14, %rdi
je 0x40c9f
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x9340
jmp 0x40c9f
movq %rax, %rbx
jmp 0x40cf6
jmp 0x40c77
movq %rax, %rbx
jmp 0x40cec
movq %rax, %rbx
jmp 0x40cb6
jmp 0x40c80
jmp 0x40c9c
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x40d03
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
jmp 0x40d03
movq %rax, %rbx
movq 0x88(%rsp), %rdi
callq 0x93c0
movq 0x78(%rsp), %rdi
callq 0x93c0
leaq 0x45ae3(%rip), %rax     # 0x867a0
movq %rax, 0xb8(%rsp)
movq 0x108(%rsp), %rdi
callq 0x93c0
movq 0xf8(%rsp), %rdi
callq 0x93c0
movq 0x208(%rsp), %rdi
callq 0x93c0
movq 0x40(%rsp), %rdi
callq 0x93c0
leaq 0x1c0(%rsp), %rdi
callq 0x369fa
movq %rbx, %rdi
callq 0x9670
nop