// File: /workspace/github_c_makefile_star2_O0/PoulinV[P]AxiCLASS/build/../tools/sparse.c
// Function: sp_ludcmp
int sp_ludcmp(sp_num *N, sp_mat *A, double pivtol){
	double pivot, *Lx, *Ux, *x, a, t;
	int *Lp, *Li, *Up, *Ui, *pinv, *pvec, *q;
	int n, ipiv, k, top, p, i, col, lnz, unz;
	n = A->ncols; q = N->q;
	Li = N->L->Ai; Lp = N->L->Ap; Lx = N->L->Ax;
	Ui = N->U->Ai; Up = N->U->Ap; Ux = N->U->Ax;
	lnz = 0; unz = 0;
	x = N->w; pinv = N->pinv; pvec = N->p;
	for (i=0; i<n; i++) x[i]=0;
	for (i=0; i<n; i++) pinv[i] = -1;
	for (k=0; k<=n; k++) Lp[k] = 0;

	for(k=0; k<n; k++){
		/* Triangular solve: */
		Lp[k] = lnz;
		Up[k] = unz;
		col = q ? (q[k]) : k;

		top = reachr(N->L, A, col, N->xi[k], pinv);
		N->topvec[k] = top;
		sp_splsolve(N->L, A, col, N->xi[k], top, x, pinv);
		/* Find pivot: */
		ipiv = -1;
		a = -1;
		for(p=top; p<n; p++){
			i = N->xi[k][p];
			if (pinv[i]<0){
				t = fabs(x[i]);
				if (t>a){
					a = t;
					ipiv = i;
				}
			}
			else{
				Ui[unz] = pinv[i];
				Ux[unz] = x[i];
				unz++;
			}
		}
		if ((ipiv == -1)||(a<=0)) return _FAILURE_;
		if ((pinv[col]<0) && (fabs(x[col])>=a*pivtol)) ipiv = col;
		/* Divide by pivot: */
		pivot = x[ipiv];
		Ui[unz] = k;
		Ux[unz] = pivot;
		unz++;
		pinv[ipiv] = k;
		pvec[k] = ipiv;
		Li[lnz] = ipiv;
		Lx[lnz] = 1.0;
		lnz++;
		for (p=top; p<n; p++){
			i = N->xi[k][p];
			if (pinv[i]<0){
				Li[lnz] = i;
				Lx[lnz] = x[i]/pivot;
				lnz++;
			}
			x[i] = 0;
		}
	}
	/* Finalize: */
	Lp[n] = lnz;
	Up[n] = unz;
	for(p=0; p<lnz; p++) Li[p] = pinv[Li[p]];
	return _SUCCESS_;
}

// Assembly:
subq $0xb8, %rsp
movq %rdi, 0xa8(%rsp)
movq %rsi, 0xa0(%rsp)
movsd %xmm0, 0x98(%rsp)
movq 0xa0(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x2c(%rsp)
movq 0xa8(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x18(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x60(%rsp)
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rax), %rax
movq %rax, 0x88(%rsp)
movq 0xa8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x18(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0xa8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0xa8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x20(%rax), %rax
movq %rax, 0x80(%rsp)
movl $0x0, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movq 0xa8(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, 0x78(%rsp)
movq 0xa8(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0xa8(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x38(%rsp)
movl $0x0, 0x18(%rsp)
movl 0x18(%rsp), %eax
cmpl 0x2c(%rsp), %eax
jge 0xc007
movq 0x78(%rsp), %rax
movslq 0x18(%rsp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl 0x18(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x18(%rsp)
jmp 0xbfde
movl $0x0, 0x18(%rsp)
movl 0x18(%rsp), %eax
cmpl 0x2c(%rsp), %eax
jge 0xc037
movq 0x40(%rsp), %rax
movslq 0x18(%rsp), %rcx
movl $0xffffffff, (%rax,%rcx,4) # imm = 0xFFFFFFFF
movl 0x18(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x18(%rsp)
jmp 0xc00f
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
cmpl 0x2c(%rsp), %eax
jg 0xc067
movq 0x60(%rsp), %rax
movslq 0x24(%rsp), %rcx
movl $0x0, (%rax,%rcx,4)
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0xc03f
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
cmpl 0x2c(%rsp), %eax
jge 0xc42c
movl 0x10(%rsp), %edx
movq 0x60(%rsp), %rax
movslq 0x24(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0xc(%rsp), %edx
movq 0x50(%rsp), %rax
movslq 0x24(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
cmpq $0x0, 0x30(%rsp)
je 0xc0ba
movq 0x30(%rsp), %rax
movslq 0x24(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x8(%rsp)
jmp 0xc0c2
movl 0x24(%rsp), %eax
movl %eax, 0x8(%rsp)
movl 0x8(%rsp), %eax
movl %eax, 0x14(%rsp)
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0xa0(%rsp), %rsi
movl 0x14(%rsp), %edx
movq 0xa8(%rsp), %rax
movq 0x18(%rax), %rax
movslq 0x24(%rsp), %rcx
movq (%rax,%rcx,8), %rcx
movq 0x40(%rsp), %r8
callq 0xb9d0
movl %eax, 0x20(%rsp)
movl 0x20(%rsp), %edx
movq 0xa8(%rsp), %rax
movq 0x20(%rax), %rax
movslq 0x24(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0xa0(%rsp), %rsi
movl 0x14(%rsp), %edx
movq 0xa8(%rsp), %rax
movq 0x18(%rax), %rax
movslq 0x24(%rsp), %rcx
movq (%rax,%rcx,8), %rcx
movl 0x20(%rsp), %r8d
movq 0x78(%rsp), %r9
movq 0x40(%rsp), %rax
movq %rax, (%rsp)
callq 0xbc90
movl $0xffffffff, 0x28(%rsp) # imm = 0xFFFFFFFF
movsd 0x1c665e(%rip), %xmm0   # 0x1d27d0
movsd %xmm0, 0x70(%rsp)
movl 0x20(%rsp), %eax
movl %eax, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
cmpl 0x2c(%rsp), %eax
jge 0xc25b
movq 0xa8(%rsp), %rax
movq 0x18(%rax), %rax
movslq 0x24(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movslq 0x1c(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x18(%rsp)
movq 0x40(%rsp), %rax
movslq 0x18(%rsp), %rcx
cmpl $0x0, (%rax,%rcx,4)
jge 0xc203
movq 0x78(%rsp), %rax
movslq 0x18(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movaps 0x1c605b(%rip), %xmm1   # 0x1d2230
pand %xmm1, %xmm0
movsd %xmm0, 0x68(%rsp)
movsd 0x68(%rsp), %xmm0
ucomisd 0x70(%rsp), %xmm0
jbe 0xc201
movsd 0x68(%rsp), %xmm0
movsd %xmm0, 0x70(%rsp)
movl 0x18(%rsp), %eax
movl %eax, 0x28(%rsp)
jmp 0xc249
movq 0x40(%rsp), %rax
movslq 0x18(%rsp), %rcx
movl (%rax,%rcx,4), %edx
movq 0x48(%rsp), %rax
movslq 0xc(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movq 0x78(%rsp), %rax
movslq 0x18(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x80(%rsp), %rax
movslq 0xc(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0xc24b
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0xc180
cmpl $-0x1, 0x28(%rsp)
je 0xc26d
xorps %xmm0, %xmm0
ucomisd 0x70(%rsp), %xmm0
jb 0xc27d
movl $0x1, 0xb4(%rsp)
jmp 0xc49b
movq 0x40(%rsp), %rax
movslq 0x14(%rsp), %rcx
cmpl $0x0, (%rax,%rcx,4)
jge 0xc2c4
movq 0x78(%rsp), %rax
movslq 0x14(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movaps 0x1c5f8d(%rip), %xmm1   # 0x1d2230
pand %xmm1, %xmm0
movsd 0x70(%rsp), %xmm1
mulsd 0x98(%rsp), %xmm1
ucomisd %xmm1, %xmm0
jb 0xc2c4
movl 0x14(%rsp), %eax
movl %eax, 0x28(%rsp)
movq 0x78(%rsp), %rax
movslq 0x28(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, 0x90(%rsp)
movl 0x24(%rsp), %edx
movq 0x48(%rsp), %rax
movslq 0xc(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movsd 0x90(%rsp), %xmm0
movq 0x80(%rsp), %rax
movslq 0xc(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
movl 0x24(%rsp), %edx
movq 0x40(%rsp), %rax
movslq 0x28(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x28(%rsp), %edx
movq 0x38(%rsp), %rax
movslq 0x24(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x28(%rsp), %edx
movq 0x58(%rsp), %rax
movslq 0x10(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movq 0x88(%rsp), %rax
movslq 0x10(%rsp), %rcx
movsd 0x1c5eed(%rip), %xmm0   # 0x1d2248
movsd %xmm0, (%rax,%rcx,8)
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
movl 0x20(%rsp), %eax
movl %eax, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
cmpl 0x2c(%rsp), %eax
jge 0xc41a
movq 0xa8(%rsp), %rax
movq 0x18(%rax), %rax
movslq 0x24(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movslq 0x1c(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x18(%rsp)
movq 0x40(%rsp), %rax
movslq 0x18(%rsp), %rcx
cmpl $0x0, (%rax,%rcx,4)
jge 0xc3f8
movl 0x18(%rsp), %edx
movq 0x58(%rsp), %rax
movslq 0x10(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movq 0x78(%rsp), %rax
movslq 0x18(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
divsd 0x90(%rsp), %xmm0
movq 0x88(%rsp), %rax
movslq 0x10(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
movq 0x78(%rsp), %rax
movslq 0x18(%rsp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0xc373
jmp 0xc41c
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0xc06f
movl 0x10(%rsp), %edx
movq 0x60(%rsp), %rax
movslq 0x2c(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0xc(%rsp), %edx
movq 0x50(%rsp), %rax
movslq 0x2c(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl $0x0, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
cmpl 0x10(%rsp), %eax
jge 0xc490
movq 0x40(%rsp), %rax
movq 0x58(%rsp), %rcx
movslq 0x1c(%rsp), %rdx
movslq (%rcx,%rdx,4), %rcx
movl (%rax,%rcx,4), %edx
movq 0x58(%rsp), %rax
movslq 0x1c(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0xc456
movl $0x0, 0xb4(%rsp)
movl 0xb4(%rsp), %eax
addq $0xb8, %rsp
retq
nopw (%rax,%rax)