// File: /workspace/github_cpp_makefile_star2_O1/Laakeri[P]Triangulator/src/setcover.cpp
// Function: SetCover::LPSolver::Solve(std::vector<long double, std::allocator<long double>>&)
ld Solve(vector<ld>& x) {
		int r = 0;
		for (int i = 1; i < m; i++) if (D[i][n + 1] < D[r][n + 1]) r = i;
		if (D[r][n + 1] < -eps) {
			Pivot(r, n);
			if (!Simplex(1) || D[m + 1][n + 1] < -eps) return -inf;
			for (int i = 0; i < m; i++) if (B[i] == -1) {
				int s = -1;
				for (int j = 0; j <= n; j++)
				if (s==-1||D[i][j]<D[i][s]||(D[i][j]==D[i][s]&&N[j]<N[s])) s=j;
				Pivot(i, s);
			}
		}
		if (!Simplex(2)) return inf;
		x = vector<ld>(n);
		for (int i = 0; i < m; i++) if (B[i] < n) x[B[i]] = D[i][n + 1];
		return D[m][n + 1];
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movslq 0x20(%rdi), %rax
xorl %esi, %esi
cmpq $0x2, %rax
jl 0x2493c
movq 0x58(%rbx), %rcx
movslq 0x24(%rbx), %rdx
incq %rdx
leaq 0x18(%rcx), %rdi
xorl %r9d, %r9d
movl $0x1, %r8d
shlq $0x4, %rdx
movq (%rdi), %rsi
fldt (%rsi,%rdx)
movslq %r9d, %rsi
leaq (%rsi,%rsi,2), %rsi
movq (%rcx,%rsi,8), %rsi
fldt (%rsi,%rdx)
fucompi %st(1), %st
fstp %st(0)
movl %r8d, %esi
ja 0x2492d
movl %r9d, %esi
incq %r8
addq $0x18, %rdi
movl %esi, %r9d
cmpq %r8, %rax
jne 0x2490d
movslq %esi, %rax
movq 0x58(%rbx), %rcx
leaq (%rax,%rax,2), %rax
movslq 0x24(%rbx), %rdx
movq (%rcx,%rax,8), %rax
movq %rdx, %rcx
shlq $0x4, %rcx
fldt 0x10(%rax,%rcx)
fldt (%rbx)
fchs
fucompi %st(1), %st
fstp %st(0)
jbe 0x24a72
movq %rbx, %rdi
callq 0x24eba
movq %rbx, %rdi
movl $0x1, %esi
callq 0x2502a
testb %al, %al
je 0x249a8
movslq 0x20(%rbx), %rax
movq 0x58(%rbx), %rcx
leaq (%rax,%rax,2), %rax
movslq 0x24(%rbx), %rdx
movq 0x18(%rcx,%rax,8), %rax
shlq $0x4, %rdx
fldt 0x10(%rax,%rdx)
fldt (%rbx)
fchs
fucompi %st(1), %st
fstp %st(0)
jbe 0x249b2
fldt 0x10(%rbx)
fchs
jmp 0x24b21
cmpl $0x0, 0x20(%rbx)
jle 0x24a72
xorl %r15d, %r15d
movq 0x40(%rbx), %rax
cmpl $-0x1, (%rax,%r15,4)
jne 0x24a62
movl 0x24(%rbx), %edx
testl %edx, %edx
js 0x24a52
leaq (%r15,%r15,2), %rax
shlq $0x3, %rax
addq 0x58(%rbx), %rax
movq 0x28(%rbx), %rcx
leaq 0x4(,%rdx,4), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %edi, %edi
xorl %r8d, %r8d
cmpl $-0x1, %edx
fldz
fldz
je 0x24a35
fstp %st(1)
fstp %st(0)
movq (%rax), %r10
fldt (%r10,%rdi,4)
movslq %edx, %r9
movq %r9, %r11
shlq $0x4, %r11
fldt (%r10,%r11)
fucomi %st(1), %st
ja 0x24a35
fxch %st(1)
fucompi %st(1), %st
fstp %st(0)
jne 0x24a3c
jp 0x24a3c
movl (%rcx,%rdi), %r10d
cmpl (%rcx,%r9,4), %r10d
fldz
fldz
jge 0x24a40
fstp %st(1)
fstp %st(0)
movl %r8d, %edx
fldz
fldz
fstp %st(1)
fstp %st(0)
incl %r8d
addq $0x4, %rdi
cmpq %rdi, %rsi
jne 0x249f7
jmp 0x24a57
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %r15d, %esi
callq 0x24eba
incq %r15
movslq 0x20(%rbx), %rax
cmpq %rax, %r15
jl 0x249bf
movq %rbx, %rdi
movl $0x2, %esi
callq 0x2502a
testb %al, %al
je 0x24b1e
movslq 0x24(%rbx), %rsi
leaq 0x8(%rsp), %r15
leaq 0x7(%rsp), %rdx
movq %r15, %rdi
callq 0x245ac
movq %r14, %rdi
movq %r15, %rsi
callq 0x25200
movq (%r15), %rdi
testq %rdi, %rdi
je 0x24abd
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movslq 0x20(%rbx), %rax
testq %rax, %rax
jle 0x24b04
movq 0x40(%rbx), %rcx
movq 0x58(%rbx), %rdx
movslq 0x24(%rbx), %rsi
movq (%r14), %rdi
xorl %r8d, %r8d
movq %rsi, %r9
shlq $0x4, %r9
movslq (%rcx,%r8,4), %r10
cmpl %esi, %r10d
jge 0x24af8
movq (%rdx), %r11
fldt 0x10(%r11,%r9)
shlq $0x4, %r10
fstpt (%rdi,%r10)
incq %r8
addq $0x18, %rdx
cmpq %r8, %rax
jne 0x24adf
movq 0x58(%rbx), %rcx
leaq (%rax,%rax,2), %rax
movslq 0x24(%rbx), %rdx
movq (%rcx,%rax,8), %rax
shlq $0x4, %rdx
fldt 0x10(%rax,%rdx)
jmp 0x24b21
fldt 0x10(%rbx)
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop