// File: /workspace/github_cpp_makefile_star2_O3/canzarlab[P]Trajan/src/LPCP.cpp
// Function: LPCP::SolveLP()
bool LPCP::SolveLP()
{
    clog << "nr_rows = " << nr_rows << " and nr_cols = " << nr_cols << endl;
    warm_y.conservativeResizeLike(Vector::Zero(nr_rows)); // resizes y with 0's, but keeping old values intact.

    SpMat A(nr_rows, nr_cols);
    A.setFromTriplets(Triplets.begin(), Triplets.end());
    SpMat A_t = A.transpose();
    Vector b = Vector::Ones(nr_rows);

    //x = Vector::Zero(nr_cols);
    //y = Vector::Zero(nr_rows);

    CoveringJRF simpleJRF(A_t, c, b, warm_y, warm_x);

    Vector c1 = -c;
//        PackingJRF simpleJRF(A, b, c1, x, y);
    AugmentedLagrangian solver(simpleJRF, 15);
    solver.setParameter("verbose", false);
    solver.setParameter("pgtol", 1e-1); // should influence running time a lot
    solver.setParameter("constraintsTol", 1e-3);
    Timer timeGeno;
    timeGeno.start();
    solver.solve();
    timeGeno.stop();

    clog << "f = " << solver.f() << " computed in time: " << timeGeno.secs() << " secs" << endl;

    /* when Packing: x->x, y->y, when Covering: -y -> x, x -> y */
    x = -Vector::ConstMapType(solver.y(), nr_cols);
    y = Vector::ConstMapType(solver.x(), nr_rows);

    warm_x = Vector::ConstMapType(solver.y(), nr_cols);
    warm_y = Vector::ConstMapType(solver.x(), nr_rows);


    Vector t = A_t*y-c;
    int nr_tight_constr =  nr_cols - (t.array() > 0.1).count();
    clog << "Number of tight constraints in the dual: " << nr_tight_constr << endl;
    //idea, truncate matrix A for columns that correspond to non-tight constraints in dual
    SpMat truncA(nr_rows, nr_tight_constr);
    Vector truncc(nr_tight_constr);
    Vector truncx(nr_tight_constr);
    int truncA_col = 0;
    for (int i=0; i<nr_cols; i++)
        if (t(i)> 0.1)
            x(i) = 0.0;
        else {
            for (SpMat::InnerIterator it(A,i); it; ++it)
            {
                truncA.coeffRef(it.row(), truncA_col) = it.value();
            }
            truncc(truncA_col) = - c(i);
            truncx(truncA_col) = x(i);
            truncA_col ++;
        }

    assert(truncA_col == nr_tight_constr);

    clog << "Truncated matrix formed ... resolve" << endl;
    Vector expy = Vector::Zero(truncA.rows() + truncA.cols());
    IntegerPackingJRF simpleJRF1(truncA, b, truncc, truncx, expy);
    //PackingJRF simpleJRF1(truncA, b, truncc, truncx, y);
    AugmentedLagrangian solver1(simpleJRF1, 15);
    solver1.setParameter("verbose", false);
    solver1.setParameter("pgtol", 1e-1); // should influence running time a lot
    solver1.setParameter("constraintsTol", 1e-5);
    Timer timeGeno1;
    timeGeno1.start();
    solver1.solve();
    timeGeno1.stop();
    clog << "trunc f = " << solver1.f() << " computed in time: " << timeGeno1.secs() << " secs" << endl;

    // map the solution back to vector x
    truncx = Vector::ConstMapType(solver1.x(), nr_tight_constr);
    clog <<"MAX INTEGER PACKING VALUE: " <<  truncx.maxCoeff() << endl;
    truncA_col = 0;
    for (int i=0; i<nr_cols; i++)
        if (t(i)<= 0.1){
            x(i) = truncx(truncA_col);
            truncA_col++;
        }

    assert(truncA_col == nr_tight_constr);
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x438, %rsp            # imm = 0x438
movq %rdi, %rbx
movq 0x3df33(%rip), %r14     # 0x85f78
leaq 0x25e7c(%rip), %rsi     # 0x6dec8
movl $0xa, %edx
movq %r14, %rdi
callq 0x93b0
movl 0x108(%rbx), %esi
movq %r14, %rdi
callq 0x9650
movq %rax, %r14
leaq 0x25e62(%rip), %rsi     # 0x6ded3
movl $0xf, %edx
movq %rax, %rdi
callq 0x93b0
movl 0x10c(%rbx), %esi
movq %r14, %rdi
callq 0x9650
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x9330
movsbl %al, %esi
movq %r14, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9230
movslq 0x108(%rbx), %rax
movq %rax, 0x98(%rsp)
movq $0x0, 0xa8(%rsp)
testq %rax, %rax
js 0x490e2
leaq 0xb0(%rbx), %rbp
leaq 0x98(%rsp), %rsi
movq %rbp, %rdi
callq 0x41168
movslq 0x108(%rbx), %rsi
movslq 0x10c(%rbx), %rdx
leaq 0x318(%rsp), %rdi
movb $0x0, (%rdi)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rdi)
movupd %xmm0, 0x18(%rdi)
movupd %xmm0, 0x28(%rdi)
movupd %xmm0, 0x38(%rdi)
callq 0x37f02
movq 0x88(%rbx), %rax
leaq 0x98(%rsp), %rdi
movq %rax, (%rdi)
movq 0x90(%rbx), %rax
leaq 0x1e0(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x318(%rsp), %r14
leaq 0x2d0(%rsp), %rcx
movq %r14, %rdx
callq 0x37fd4
xorl %eax, %eax
leaq 0x98(%rsp), %rsi
movb %al, (%rsi)
movq %r14, 0x8(%rsi)
leaq 0x2d0(%rsp), %r15
movb %al, (%r15)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%r15)
movupd %xmm0, 0x18(%r15)
movupd %xmm0, 0x28(%r15)
movupd %xmm0, 0x38(%r15)
movq %r15, %rdi
callq 0x38fe2
movslq 0x108(%rbx), %rax
movq %rax, 0x98(%rsp)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0xa8(%rsp)
testq %rax, %rax
js 0x490e2
leaq 0x88(%rsp), %r14
leaq 0x98(%rsp), %rsi
movq %r14, %rdi
callq 0x36fea
leaq 0xf8(%rbx), %rcx
leaq 0xa0(%rbx), %rax
movq %r15, 0x298(%rsp)
movq %rcx, 0x2a0(%rsp)
movq %r14, 0x2a8(%rsp)
movq %rbp, 0x2b0(%rsp)
movq %rax, 0x48(%rsp)
movq %rax, 0x2b8(%rsp)
movups 0x2d8(%rsp), %xmm0
movups %xmm0, 0x2c0(%rsp)
leaq 0x3cb5a(%rip), %rax     # 0x84d90
movq %rax, 0x290(%rsp)
leaq 0x98(%rsp), %rsi
movq %rcx, 0x68(%rsp)
movq %rcx, (%rsi)
leaq 0x1d0(%rsp), %rdi
callq 0x393be
leaq 0x98(%rsp), %rdi
leaq 0x290(%rsp), %rsi
movl $0xf, %edx
callq 0xdf50
leaq 0x1b0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x141ca(%rip), %rsi     # 0x5c452
leaq 0x141ca(%rip), %rdx     # 0x5c459
leaq 0x1a0(%rsp), %rdi
callq 0xdadc
leaq 0x98(%rsp), %rdi
leaq 0x1a0(%rsp), %rsi
xorps %xmm0, %xmm0
callq 0xed94
movq 0x1a0(%rsp), %rdi
cmpq %r14, %rdi
je 0x482d1
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x9350
leaq 0x190(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1414c(%rip), %rsi     # 0x5c430
leaq 0x1414a(%rip), %rdx     # 0x5c435
leaq 0x180(%rsp), %rdi
callq 0xdadc
leaq 0x98(%rsp), %rdi
leaq 0x180(%rsp), %rsi
movsd 0x15530(%rip), %xmm0    # 0x5d840
callq 0xed94
movq 0x180(%rsp), %rdi
cmpq %r14, %rdi
je 0x48332
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x9350
leaq 0x170(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x140fe(%rip), %rsi     # 0x5c443
leaq 0x14105(%rip), %rdx     # 0x5c451
leaq 0x160(%rsp), %rdi
callq 0xdadc
leaq 0x98(%rsp), %rdi
leaq 0x160(%rsp), %rsi
movsd 0x154bf(%rip), %xmm0    # 0x5d830
callq 0xed94
movq 0x160(%rsp), %rdi
cmpq %r14, %rdi
je 0x48393
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x9350
leaq 0x3b0(%rsp), %rdi
movb $0x0, 0x28(%rdi)
leaq 0x3d0(%rsp), %r14
xorps %xmm0, %xmm0
movaps %xmm0, -0x30(%r14)
movq %r14, %rsi
callq 0x9590
movb $0x1, 0x8(%r14)
leaq 0x98(%rsp), %rdi
callq 0xe0ee
leaq 0x3c0(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x9590
movb $0x0, 0x18(%r15)
movq (%r15), %rax
subq -0x10(%r15), %rax
movq 0x8(%r15), %r12
imulq $0xf4240, %rax, %rax    # imm = 0xF4240
subq -0x8(%r15), %r12
addq %rax, %r12
addq -0x20(%r15), %r12
movq %r12, -0x20(%r15)
movq 0x3db6f(%rip), %rdi     # 0x85f78
leaq 0x273cc(%rip), %rsi     # 0x6f7dc
movl $0x4, %edx
callq 0x93b0
leaq 0x98(%rsp), %rdi
callq 0xed8e
movq 0x3db4a(%rip), %rdi     # 0x85f78
callq 0x9570
movq %rax, %r14
leaq 0x25aa6(%rip), %rsi     # 0x6dee3
movl $0x13, %edx
movq %rax, %rdi
callq 0x93b0
xorps %xmm0, %xmm0
cvtsi2sd %r12, %xmm0
divsd 0x13bce(%rip), %xmm0    # 0x5c028
cvtsd2ss %xmm0, %xmm0
cvtss2sd %xmm0, %xmm0
movq %r14, %rdi
callq 0x9570
movq %rax, %r14
leaq 0x13e18(%rip), %rsi     # 0x5c28c
movl $0x5, %edx
movq %rax, %rdi
callq 0x93b0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x9330
movsbl %al, %esi
movq %r14, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9230
leaq 0x98(%rsp), %rdi
callq 0xed88
movslq 0x10c(%rbx), %r12
testq %r12, %r12
js 0x490c3
movq %rax, %r14
leaq 0xc0(%rbx), %r15
cmpq %r12, 0xc8(%rbx)
je 0x484f8
movl $0x1, %ecx
movq %r15, %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0xff4c
cmpq %r12, 0xc8(%rbx)
jne 0x4925b
movl %r12d, %edx
movq (%r15), %rax
movl %edx, %ecx
andl $0x7ffffffe, %ecx       # imm = 0x7FFFFFFE
cmpl $0x2, %edx
jb 0x48529
xorl %edx, %edx
movaps 0x13eac(%rip), %xmm0    # 0x5c3c0
movups (%r14,%rdx,8), %xmm1
xorps %xmm0, %xmm1
movaps %xmm1, (%rax,%rdx,8)
addq $0x2, %rdx
cmpq %rcx, %rdx
jb 0x48514
cmpl %r12d, %ecx
jge 0x4854a
movaps 0x13e8b(%rip), %xmm0    # 0x5c3c0
movsd (%r14,%rcx,8), %xmm1
xorps %xmm0, %xmm1
movlps %xmm1, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %r12
jne 0x48535
leaq 0x98(%rsp), %rdi
callq 0xed82
movslq 0x108(%rbx), %r13
testq %r13, %r13
js 0x490c3
movq %rax, %r12
leaq 0xd0(%rbx), %r14
cmpq %r13, 0xd8(%rbx)
je 0x4859a
movl $0x1, %ecx
movq %r14, %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0xff4c
cmpq %r13, 0xd8(%rbx)
jne 0x4911b
movl %r13d, %edx
movq (%r14), %rax
movl %edx, %ecx
andl $0x7ffffffe, %ecx       # imm = 0x7FFFFFFE
cmpl $0x2, %edx
jb 0x485c1
xorl %edx, %edx
movups (%r12,%rdx,8), %xmm0
movaps %xmm0, (%rax,%rdx,8)
addq $0x2, %rdx
cmpq %rcx, %rdx
jb 0x485af
cmpl %r13d, %ecx
jge 0x485d9
movsd (%r12,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %r13
jne 0x485c6
leaq 0x98(%rsp), %rdi
callq 0xed88
movslq 0x10c(%rbx), %r13
testq %r13, %r13
js 0x490c3
movq %rax, %r12
cmpq %r13, 0xa8(%rbx)
je 0x48624
movl $0x1, %ecx
movq 0x48(%rsp), %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0xff4c
cmpq %r13, 0xa8(%rbx)
jne 0x4911b
movl %r13d, %edx
movq 0x48(%rsp), %rax
movq (%rax), %rax
movl %edx, %ecx
andl $0x7ffffffe, %ecx       # imm = 0x7FFFFFFE
cmpl $0x2, %edx
jb 0x48650
xorl %edx, %edx
movups (%r12,%rdx,8), %xmm0
movaps %xmm0, (%rax,%rdx,8)
addq $0x2, %rdx
cmpq %rcx, %rdx
jb 0x4863e
cmpl %r13d, %ecx
jge 0x48668
movsd (%r12,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %r13
jne 0x48655
leaq 0x98(%rsp), %rdi
callq 0xed82
movslq 0x108(%rbx), %r13
testq %r13, %r13
js 0x490c3
movq %rax, %r12
cmpq %r13, 0xb8(%rbx)
je 0x486b1
movl $0x1, %ecx
movq %rbp, %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0xff4c
cmpq %r13, 0xb8(%rbx)
jne 0x4911b
movl %r13d, %edx
movq (%rbp), %rax
movl %edx, %ecx
andl $0x7ffffffe, %ecx       # imm = 0x7FFFFFFE
cmpl $0x2, %edx
jb 0x486d9
xorl %edx, %edx
movups (%r12,%rdx,8), %xmm0
movaps %xmm0, (%rax,%rdx,8)
addq $0x2, %rdx
cmpq %rcx, %rdx
jb 0x486c7
cmpl %r13d, %ecx
jge 0x486f1
movsd (%r12,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %r13
jne 0x486de
movq 0x2d8(%rsp), %rax
cmpq 0xd8(%rbx), %rax
jne 0x49163
movq %rbx, %rax
leaq 0x2d0(%rsp), %rcx
movq %rcx, 0x1e0(%rsp)
movq %r14, 0x1e8(%rsp)
movq 0x68(%rsp), %rcx
movq %rcx, 0x1f0(%rsp)
movq 0x2e0(%rsp), %rbx
movq %rax, 0x70(%rsp)
cmpq 0x100(%rax), %rbx
jne 0x49182
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
testq %rbx, %rbx
js 0x491a1
je 0x48797
movq %rbx, %rax
shrq $0x3d, %rax
jne 0x49135
leaq (,%rbx,8), %rdi
callq 0x9450
cmpq $0x1, %rbx
setne %cl
testb $0xf, %al
setne %dl
testb %dl, %cl
jne 0x490fc
testq %rax, %rax
je 0x49135
movq %rax, 0x30(%rsp)
leaq 0x30(%rsp), %rdi
movq %rbx, 0x8(%rdi)
leaq 0x1e0(%rsp), %rsi
leaq 0x248(%rsp), %rdx
callq 0x498f9
movq 0x38(%rsp), %rax
testq %rax, %rax
movq 0x70(%rsp), %rbx
movsd 0x15076(%rip), %xmm1    # 0x5d840
js 0x491c0
movq %r15, 0x80(%rsp)
je 0x48819
movq 0x30(%rsp), %rcx
movsd (%rcx), %xmm0
xorl %r15d, %r15d
ucomisd 0x15052(%rip), %xmm0    # 0x5d840
seta %r15b
cmpq $0x1, %rax
je 0x4881c
movl $0x1, %edx
movsd (%rcx,%rdx,8), %xmm0
xorl %esi, %esi
ucomisd %xmm1, %xmm0
seta %sil
addl %esi, %r15d
incq %rdx
cmpq %rdx, %rax
jne 0x487fd
jmp 0x4881c
xorl %r15d, %r15d
movl 0x10c(%rbx), %ebp
movq 0x3d74f(%rip), %rdi     # 0x85f78
leaq 0x26f10(%rip), %rsi     # 0x6f740
movl $0x29, %edx
callq 0x93b0
movl %ebp, %esi
subl %r15d, %esi
movq 0x3d732(%rip), %rdi     # 0x85f78
movl %esi, 0xc(%rsp)
callq 0x9650
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x9330
movsbl %al, %esi
movq %r14, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9230
movl %ebp, 0x40(%rsp)
movslq 0x108(%rbx), %rsi
movl 0xc(%rsp), %ebp
movslq %ebp, %rdx
leaq 0x248(%rsp), %rdi
movb $0x0, (%rdi)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rdi)
movupd %xmm0, 0x18(%rdi)
movupd %xmm0, 0x28(%rdi)
movupd %xmm0, 0x38(%rdi)
movq %rdx, 0x78(%rsp)
callq 0x37f02
movl %r15d, 0x44(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x50(%rsp)
testl %ebp, %ebp
movsd 0x14f6f(%rip), %xmm1    # 0x5d840
js 0x491df
movl %ebp, %r15d
movl 0x40(%rsp), %eax
cmpl 0x44(%rsp), %eax
jne 0x488f1
movq %r15, 0x58(%rsp)
movapd %xmm0, 0x10(%rsp)
jmp 0x4895e
leaq (,%r15,8), %r14
movq %r14, %rdi
callq 0x9450
cmpl $0x1, %ebp
je 0x48911
movl %eax, %ecx
andl $0xf, %ecx
jne 0x490fc
testq %rax, %rax
je 0x4927a
movq %rax, 0x50(%rsp)
movq %r15, 0x58(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
movq %r14, %rdi
callq 0x9450
cmpl $0x1, 0xc(%rsp)
je 0x48948
movl %eax, %ecx
andl $0xf, %ecx
jne 0x490fc
testq %rax, %rax
movsd 0x14eed(%rip), %xmm1    # 0x5d840
je 0x492a8
movq %rax, 0x10(%rsp)
movq %r15, 0x18(%rsp)
movl 0x10c(%rbx), %eax
testl %eax, %eax
jle 0x48ac4
xorl %r15d, %r15d
xorl %edx, %edx
cmpq %r15, 0x38(%rsp)
jle 0x490a4
movq 0x30(%rsp), %rcx
movsd (%rcx,%r15,8), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x489b7
cmpq %r15, 0xc8(%rbx)
jle 0x490a4
movq 0x80(%rsp), %rcx
movq (%rcx), %rcx
movq $0x0, (%rcx,%r15,8)
jmp 0x48ab3
movq 0x330(%rsp), %rax
movq 0x338(%rsp), %rcx
movslq (%rax,%r15,4), %rbx
testq %rcx, %rcx
je 0x489d9
movslq (%rcx,%r15,4), %rbp
addq %rbx, %rbp
jmp 0x489de
movslq 0x4(%rax,%r15,4), %rbp
movl %edx, 0x68(%rsp)
movslq %edx, %r13
cmpq %rbx, %rbp
jle 0x48a2c
movq 0x340(%rsp), %r12
movq 0x348(%rsp), %r14
movsd (%r12,%rbx,8), %xmm0
movsd %xmm0, 0x48(%rsp)
movslq (%r14,%rbx,4), %rsi
leaq 0x248(%rsp), %rdi
movq %r13, %rdx
callq 0x49550
movsd 0x48(%rsp), %xmm0
movsd %xmm0, (%rax)
incq %rbx
cmpq %rbx, %rbp
jne 0x489fa
movq 0x70(%rsp), %rbx
cmpq %r15, 0x100(%rbx)
jle 0x490a4
movl 0x68(%rsp), %edx
testl %edx, %edx
js 0x490a4
cmpq %r13, 0x58(%rsp)
jle 0x490a4
movq 0xf8(%rbx), %rax
movq 0x50(%rsp), %rcx
movsd (%rax,%r15,8), %xmm0
xorps 0x13952(%rip), %xmm0    # 0x5c3c0
movlps %xmm0, (%rcx,%r13,8)
cmpq %r15, 0xc8(%rbx)
movsd 0x14dbe(%rip), %xmm1    # 0x5d840
jle 0x490a4
cmpq %r13, 0x18(%rsp)
jle 0x490a4
movq 0xc0(%rbx), %rax
movsd (%rax,%r15,8), %xmm0
movq 0x10(%rsp), %rax
movsd %xmm0, (%rax,%r13,8)
incl %edx
movl 0x10c(%rbx), %eax
incq %r15
movslq %eax, %rcx
cmpq %rcx, %r15
jl 0x48976
jmp 0x48ac6
xorl %edx, %edx
cmpl 0xc(%rsp), %edx
jne 0x491fe
movq 0x3d4a1(%rip), %r14     # 0x85f78
leaq 0x26cd4(%rip), %rsi     # 0x6f7b2
movl $0x23, %edx
movq %r14, %rdi
callq 0x93b0
leaq 0x88(%rsp), %r15
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x9330
movsbl %al, %esi
movq 0x3d467(%rip), %rdi     # 0x85f78
callq 0x9040
movq %rax, %rdi
callq 0x9230
movq 0x250(%rsp), %rax
addq 0x258(%rsp), %rax
movq %rax, 0x1e0(%rsp)
movq $0x0, 0x1f0(%rsp)
js 0x490e2
leaq 0x1c0(%rsp), %r14
leaq 0x1e0(%rsp), %rsi
movq %r14, %rdi
callq 0x36fea
leaq 0x3f8(%rsp), %rsi
leaq 0x248(%rsp), %rax
movq %rax, 0x8(%rsi)
movq %r15, 0x10(%rsi)
leaq 0x50(%rsp), %rax
movq %rax, 0x18(%rsi)
leaq 0x10(%rsp), %r13
movq %r13, 0x20(%rsi)
movq %r14, 0x28(%rsi)
movq 0x250(%rsp), %rax
movq %rax, 0x30(%rsi)
leaq 0x3c0f7(%rip), %rcx     # 0x84c98
movq %rcx, (%rsi)
addq 0x258(%rsp), %rax
movq %rax, 0x38(%rsi)
leaq 0x1e0(%rsp), %rdi
movl $0xf, %edx
callq 0xdf50
leaq 0x150(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1387d(%rip), %rsi     # 0x5c452
leaq 0x1387d(%rip), %rdx     # 0x5c459
leaq 0x140(%rsp), %rdi
callq 0xdadc
leaq 0x1e0(%rsp), %rdi
leaq 0x140(%rsp), %rsi
xorpd %xmm0, %xmm0
callq 0xed94
movq 0x140(%rsp), %rdi
cmpq %r14, %rdi
je 0x48c1f
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x9350
leaq 0x130(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x137fe(%rip), %rsi     # 0x5c430
leaq 0x137fc(%rip), %rdx     # 0x5c435
leaq 0x120(%rsp), %rdi
callq 0xdadc
leaq 0x1e0(%rsp), %rdi
leaq 0x120(%rsp), %rsi
movsd 0x14be2(%rip), %xmm0    # 0x5d840
callq 0xed94
movq 0x120(%rsp), %rdi
cmpq %r14, %rdi
je 0x48c80
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x9350
leaq 0x110(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x137b0(%rip), %rsi     # 0x5c443
leaq 0x137b7(%rip), %rdx     # 0x5c451
leaq 0x100(%rsp), %rdi
callq 0xdadc
leaq 0x1e0(%rsp), %rdi
leaq 0x100(%rsp), %rsi
movsd 0x26a79(%rip), %xmm0    # 0x6f738
callq 0xed94
movq 0x100(%rsp), %rdi
cmpq %r14, %rdi
je 0x48ce1
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x9350
leaq 0x370(%rsp), %rdi
movb $0x0, 0x28(%rdi)
leaq 0x390(%rsp), %r14
xorpd %xmm0, %xmm0
movapd %xmm0, -0x30(%r14)
movq %r14, %rsi
callq 0x9590
movb $0x1, 0x8(%r14)
leaq 0x1e0(%rsp), %rdi
callq 0xe0ee
leaq 0x380(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x9590
movb $0x0, 0x18(%r15)
movq (%r15), %rax
movq 0x8(%r15), %r12
subq -0x10(%r15), %rax
subq -0x8(%r15), %r12
imulq $0xf4240, %rax, %rax    # imm = 0xF4240
addq %rax, %r12
addq -0x20(%r15), %r12
movq 0x3d223(%rip), %rdi     # 0x85f78
leaq 0x26a7a(%rip), %rsi     # 0x6f7d6
movl $0xa, %edx
callq 0x93b0
leaq 0x1e0(%rsp), %rdi
callq 0xed8e
movq 0x3d1fe(%rip), %rdi     # 0x85f78
callq 0x9570
movq %rax, %r14
leaq 0x2515a(%rip), %rsi     # 0x6dee3
movl $0x13, %edx
movq %rax, %rdi
callq 0x93b0
xorps %xmm0, %xmm0
cvtsi2sd %r12, %xmm0
divsd 0x13282(%rip), %xmm0    # 0x5c028
cvtsd2ss %xmm0, %xmm0
cvtss2sd %xmm0, %xmm0
movq %r14, %rdi
callq 0x9570
movq %rax, %r14
leaq 0x134cc(%rip), %rsi     # 0x5c28c
movl $0x5, %edx
movq %rax, %rdi
callq 0x93b0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x9330
movsbl %al, %esi
movq %r14, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9230
leaq 0x1e0(%rsp), %rdi
callq 0xed82
movq %rax, %r14
movq 0x10(%rsp), %rdi
movq 0x78(%rsp), %r15
cmpq %r15, 0x18(%rsp)
movl 0x44(%rsp), %ebp
je 0x48e5d
callq 0x93d0
cmpl %ebp, 0x40(%rsp)
jne 0x48e28
xorl %edi, %edi
jmp 0x48e53
leaq (,%r15,8), %rdi
callq 0x9450
movq %rax, %rdi
cmpl $0x1, 0xc(%rsp)
je 0x48e4a
movl %edi, %eax
andl $0xf, %eax
jne 0x490fc
testq %rdi, %rdi
je 0x492d6
movq %rdi, 0x10(%rsp)
movq %r15, 0x18(%rsp)
movl 0xc(%rsp), %ecx
movl %ecx, %eax
andl $0x7ffffffe, %eax       # imm = 0x7FFFFFFE
cmpl $0x2, %ecx
jb 0x48e81
xorl %ecx, %ecx
movups (%r14,%rcx,8), %xmm0
movaps %xmm0, (%rdi,%rcx,8)
addq $0x2, %rcx
cmpq %rax, %rcx
jb 0x48e6f
cmpq %r15, %rax
jge 0x48e99
movsd (%r14,%rax,8), %xmm0
movsd %xmm0, (%rdi,%rax,8)
incq %rax
cmpq %rax, %r15
jne 0x48e86
movq 0x3d0d8(%rip), %rdi     # 0x85f78
leaq 0x2693a(%rip), %rsi     # 0x6f7e1
movl $0x1b, %edx
callq 0x93b0
cmpq $0x0, 0x18(%rsp)
jle 0x4921d
movq 0x10(%rsp), %rax
leaq 0x3e0(%rsp), %rdi
movq %rax, (%rdi)
movq %r13, 0x10(%rdi)
leaq 0x2f(%rsp), %rsi
callq 0x4a728
movq 0x3d096(%rip), %rdi     # 0x85f78
callq 0x9570
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x9330
movsbl %al, %esi
movq %r14, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9230
movslq 0x10c(%rbx), %rax
testq %rax, %rax
jle 0x48fa1
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %rdx
movq 0xc0(%rbx), %rsi
movq 0xc8(%rbx), %rdi
movq 0x10(%rsp), %r8
xorl %r9d, %r9d
testq %rdx, %rdx
cmovleq %r9, %rdx
xorl %r10d, %r10d
movl 0xc(%rsp), %ebx
cmpq %r9, %rdx
je 0x490a4
movsd 0x148e0(%rip), %xmm0    # 0x5d840
ucomisd (%rcx,%r9,8), %xmm0
jb 0x48f97
testl %r10d, %r10d
js 0x490a4
movslq %r10d, %r11
cmpq %r11, 0x18(%rsp)
jle 0x490a4
cmpq %r9, %rdi
jle 0x490a4
movsd (%r8,%r11,8), %xmm0
movsd %xmm0, (%rsi,%r9,8)
incl %r10d
incq %r9
cmpq %r9, %rax
jne 0x48f4f
jmp 0x48fa8
xorl %r10d, %r10d
movl 0xc(%rsp), %ebx
cmpl %ebx, %r10d
jne 0x4923c
movq 0x218(%rsp), %rdi
callq 0x93d0
movq 0x208(%rsp), %rdi
callq 0x93d0
movq 0x1c0(%rsp), %rdi
callq 0x93d0
movq 0x10(%rsp), %rdi
callq 0x93d0
movq 0x50(%rsp), %rdi
callq 0x93d0
leaq 0x270(%rsp), %rbx
movq -0x10(%rbx), %rdi
callq 0x93d0
movq -0x8(%rbx), %rdi
callq 0x93d0
movq %rbx, %rdi
callq 0x37fb2
movq 0x30(%rsp), %rdi
callq 0x93d0
movq 0xd0(%rsp), %rdi
callq 0x93d0
movq 0xc0(%rsp), %rdi
callq 0x93d0
movq 0x1d0(%rsp), %rdi
callq 0x93d0
movq 0x88(%rsp), %rdi
callq 0x93d0
leaq 0x2f8(%rsp), %rbx
movq -0x10(%rbx), %rdi
callq 0x93d0
movq -0x8(%rbx), %rdi
callq 0x93d0
movq %rbx, %rdi
callq 0x37fb2
leaq 0x340(%rsp), %rbx
movq -0x10(%rbx), %rdi
callq 0x93d0
movq -0x8(%rbx), %rdi
callq 0x93d0
movq %rbx, %rdi
callq 0x37fb2
movb $0x1, %al
addq $0x438, %rsp            # imm = 0x438
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1419a(%rip), %rdi     # 0x5d245
leaq 0x141b0(%rip), %rsi     # 0x5d262
leaq 0x141cc(%rip), %rcx     # 0x5d285
movl $0x1a9, %edx            # imm = 0x1A9
callq 0x9200
leaq 0x13add(%rip), %rdi     # 0x5cba7
leaq 0x13853(%rip), %rsi     # 0x5c924
leaq 0x14686(%rip), %rcx     # 0x5d75e
movl $0xa3, %edx
callq 0x9200
leaq 0x13473(%rip), %rdi     # 0x5c55c
leaq 0x13501(%rip), %rsi     # 0x5c5f1
leaq 0x142f5(%rip), %rcx     # 0x5d3ec
jmp 0x491d5
leaq 0x13c69(%rip), %rdi     # 0x5cd6c
leaq 0x13d1c(%rip), %rsi     # 0x5ce26
leaq 0x13d34(%rip), %rcx     # 0x5ce45
movl $0xa1, %edx
callq 0x9200
leaq 0x13f5e(%rip), %rdi     # 0x5d080
leaq 0x13410(%rip), %rsi     # 0x5c539
leaq 0x2582d(%rip), %rcx     # 0x6e95d
jmp 0x49270
movl $0x8, %edi
callq 0x9180
movq 0x3ce6a(%rip), %rcx     # 0x85fb0
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x3ce74(%rip), %rsi     # 0x85fc8
movq 0x3ce35(%rip), %rdx     # 0x85f90
movq %rax, %rdi
callq 0x9640
leaq 0x155e2(%rip), %rdi     # 0x5e74c
leaq 0x15667(%rip), %rsi     # 0x5e7d8
leaq 0x267bf(%rip), %rcx     # 0x6f937
movl $0x61, %edx
callq 0x9200
leaq 0x14cd5(%rip), %rdi     # 0x5de5e
leaq 0x14d07(%rip), %rsi     # 0x5de97
leaq 0x26863(%rip), %rcx     # 0x6f9fa
movl $0x6e, %edx
callq 0x9200
leaq 0x13cd0(%rip), %rdi     # 0x5ce78
leaq 0x13b28(%rip), %rsi     # 0x5ccd7
leaq 0x13e51(%rip), %rcx     # 0x5d007
movl $0x11d, %edx            # imm = 0x11D
callq 0x9200
leaq 0x13395(%rip), %rdi     # 0x5c55c
leaq 0x13423(%rip), %rsi     # 0x5c5f1
leaq 0x22e2f(%rip), %rcx     # 0x6c004
movl $0x4a, %edx
callq 0x9200
leaq 0x13a67(%rip), %rdi     # 0x5cc4d
leaq 0x13aea(%rip), %rsi     # 0x5ccd7
leaq 0x13b06(%rip), %rcx     # 0x5ccfa
movl $0x138, %edx            # imm = 0x138
callq 0x9200
leaq 0x26565(%rip), %rdi     # 0x6f76a
leaq 0x2657c(%rip), %rsi     # 0x6f788
leaq 0x26582(%rip), %rcx     # 0x6f795
movl $0x42, %edx
callq 0x9200
leaq 0x137cd(%rip), %rdi     # 0x5c9f1
leaq 0x1380a(%rip), %rsi     # 0x5ca35
leaq 0x26fb0(%rip), %rcx     # 0x701e2
movl $0x19d, %edx            # imm = 0x19D
callq 0x9200
leaq 0x26527(%rip), %rdi     # 0x6f76a
leaq 0x2653e(%rip), %rsi     # 0x6f788
leaq 0x26544(%rip), %rcx     # 0x6f795
movl $0x5c, %edx
callq 0x9200
leaq 0x13e1e(%rip), %rdi     # 0x5d080
leaq 0x132d0(%rip), %rsi     # 0x5c539
leaq 0x2658d(%rip), %rcx     # 0x6f7fd
movl $0x2d1, %edx            # imm = 0x2D1
callq 0x9200
movl $0x8, %edi
callq 0x9180
movq 0x3cd25(%rip), %rcx     # 0x85fb0
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x3cd2f(%rip), %rsi     # 0x85fc8
movq 0x3ccf0(%rip), %rdx     # 0x85f90
movq %rax, %rdi
callq 0x9640
movl $0x8, %edi
callq 0x9180
movq 0x3ccf7(%rip), %rcx     # 0x85fb0
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x3cd01(%rip), %rsi     # 0x85fc8
movq 0x3ccc2(%rip), %rdx     # 0x85f90
movq %rax, %rdi
callq 0x9640
movl $0x8, %edi
callq 0x9180
movq 0x3ccc9(%rip), %rcx     # 0x85fb0
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x3ccd3(%rip), %rsi     # 0x85fc8
movq 0x3cc94(%rip), %rdx     # 0x85f90
movq %rax, %rdi
callq 0x9640
jmp 0x4949f
jmp 0x494cb
movq %rax, %rbx
jmp 0x494d8
jmp 0x4949a
jmp 0x4949a
jmp 0x4949a
jmp 0x4949a
jmp 0x4949f
movq %rax, %rbx
movq 0x100(%rsp), %rdi
cmpq %r14, %rdi
je 0x494a2
movq 0x110(%rsp), %rsi
jmp 0x49391
jmp 0x4949f
movq %rax, %rbx
movq 0x120(%rsp), %rdi
cmpq %r14, %rdi
je 0x494a2
movq 0x130(%rsp), %rsi
jmp 0x49391
jmp 0x4949f
movq %rax, %rbx
movq 0x140(%rsp), %rdi
cmpq %r14, %rdi
je 0x494a2
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x9350
jmp 0x494a2
jmp 0x4949f
movq %rax, %rbx
jmp 0x494bc
jmp 0x494cb
movq %rax, %rbx
leaq 0x270(%rsp), %rdi
callq 0x37fb2
jmp 0x494ef
jmp 0x4949a
jmp 0x4949a
jmp 0x4949a
jmp 0x4949a
movq %rax, %rbx
movq 0x160(%rsp), %rdi
cmpq %r14, %rdi
je 0x494f9
movq 0x170(%rsp), %rsi
jmp 0x49438
jmp 0x4949a
movq %rax, %rbx
movq 0x180(%rsp), %rdi
cmpq %r14, %rdi
je 0x494f9
movq 0x190(%rsp), %rsi
jmp 0x49438
jmp 0x4949a
movq %rax, %rbx
movq 0x1a0(%rsp), %rdi
cmpq %r14, %rdi
je 0x494f9
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x9350
jmp 0x494f9
jmp 0x4949a
movq %rax, %rbx
jmp 0x49513
movq %rax, %rbx
jmp 0x49520
movq %rax, %rbx
jmp 0x4952d
movq %rax, %rbx
leaq 0x2f8(%rsp), %rdi
callq 0x37fb2
jmp 0x4953a
movq %rax, %rbx
jmp 0x4953a
movq %rax, %rbx
leaq 0x340(%rsp), %rdi
callq 0x37fb2
jmp 0x49547
jmp 0x49495
jmp 0x494cb
movq %rax, %rbx
jmp 0x494ef
movq %rax, %rbx
jmp 0x494f9
movq %rax, %rbx
movq 0x218(%rsp), %rdi
callq 0x93d0
movq 0x208(%rsp), %rdi
callq 0x93d0
movq 0x1c0(%rsp), %rdi
callq 0x93d0
jmp 0x494ce
movq %rax, %rbx
movq 0x10(%rsp), %rdi
callq 0x93d0
movq 0x50(%rsp), %rdi
callq 0x93d0
leaq 0x248(%rsp), %rdi
callq 0x35fc8
movq 0x30(%rsp), %rdi
callq 0x93d0
movq 0xd0(%rsp), %rdi
callq 0x93d0
movq 0xc0(%rsp), %rdi
callq 0x93d0
movq 0x1d0(%rsp), %rdi
callq 0x93d0
movq 0x88(%rsp), %rdi
callq 0x93d0
leaq 0x2d0(%rsp), %rdi
callq 0x35fc8
leaq 0x318(%rsp), %rdi
callq 0x35fc8
movq %rbx, %rdi
callq 0x9680
nop