// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/convex.c
// Function: read_quadratic_program
Quadraticprogramptr read_quadratic_program(char* filename)
{
 int i, j, m, n;
 FILE* infile;
 double *c, *b;
 matrix Q, A;
 Quadraticprogramptr program;
 infile = fopen(filename, "r");
 if (!infile)
  {
   printf(m1274, filename);
   return NULL;
  }
 fscanf(infile, "%d%d", &n, &m);
 c = safecalloc(n, sizeof(double), "read_quadratic_program", 9);
 b = safecalloc(m, sizeof(double), "read_quadratic_program", 9);
 Q = matrix_alloc(n, n);
 A = matrix_alloc(m, n);
 for (i = 0; i < n; i++)
   fscanf(infile, "%lf", &(c[i]));
 for (i = 0; i < n; i++)
   for (j = 0; j < n; j++)
     fscanf(infile, "%lf", &(Q.values[i][j]));
 for (i = 0; i < m; i++)
  {
   for (j = 0; j < n; j++)
     fscanf(infile, "%lf", &(A.values[i][j]));
   fscanf(infile, "%lf", &(b[i]));
  }
 program = prepare_quadratic_program(Q, A, c, b);
 safe_free(c);
 safe_free(b);
 matrix_free(Q);
 matrix_free(A);
 return program;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
leaq 0xd361c(%rip), %rsi     # 0xe81a6
callq 0x40c0
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x14bb9
movq -0x10(%rbp), %rsi
leaq 0xce2e5(%rip), %rdi     # 0xe2e8a
movb $0x0, %al
callq 0x4030
movq $0x0, -0x8(%rbp)
jmp 0x14dc2
movq -0x28(%rbp), %rdi
leaq 0xd1d65(%rip), %rsi     # 0xe6929
leaq -0x20(%rbp), %rdx
leaq -0x1c(%rbp), %rcx
movb $0x0, %al
callq 0x4070
movslq -0x20(%rbp), %rdi
movl $0x8, %esi
leaq 0xce2d6(%rip), %rdx     # 0xe2eb9
movl $0x9, %ecx
callq 0x52f40
movq %rax, -0x30(%rbp)
movslq -0x1c(%rbp), %rdi
movl $0x8, %esi
leaq 0xce2b8(%rip), %rdx     # 0xe2eb9
movl $0x9, %ecx
callq 0x52f40
movq %rax, -0x38(%rbp)
movl -0x20(%rbp), %edi
movl -0x20(%rbp), %esi
callq 0x57fc0
movq %rax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x40(%rbp)
movl -0x1c(%rbp), %edi
movl -0x20(%rbp), %esi
callq 0x57fc0
movq %rax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x50(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x20(%rbp), %eax
jge 0x14c90
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rdx
movslq -0x14(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
leaq 0xd1b4a(%rip), %rsi     # 0xe67c8
movb $0x0, %al
callq 0x4070
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x14c5c
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x20(%rbp), %eax
jge 0x14cef
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x20(%rbp), %eax
jge 0x14ce2
movq -0x28(%rbp), %rdi
movq -0x40(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movslq -0x18(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
leaq 0xd1af8(%rip), %rsi     # 0xe67c8
movb $0x0, %al
callq 0x4070
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x14ca6
jmp 0x14ce4
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x14c97
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x14d6d
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x20(%rbp), %eax
jge 0x14d41
movq -0x28(%rbp), %rdi
movq -0x50(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movslq -0x18(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
leaq 0xd1a99(%rip), %rsi     # 0xe67c8
movb $0x0, %al
callq 0x4070
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x14d05
movq -0x28(%rbp), %rdi
movq -0x38(%rbp), %rdx
movslq -0x14(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
leaq 0xd1a6d(%rip), %rsi     # 0xe67c8
movb $0x0, %al
callq 0x4070
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x14cf6
movq -0x30(%rbp), %r8
movq -0x38(%rbp), %r9
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x50(%rbp), %rcx
callq 0x143e0
movq %rax, -0x60(%rbp)
movq -0x30(%rbp), %rdi
callq 0x52e80
movq -0x38(%rbp), %rdi
callq 0x52e80
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x59ea0
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x59ea0
movq -0x60(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x80, %rsp
popq %rbp
retq
nop