// File: /workspace/github_c_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r14
leaq 0x8d1c4(%rip), %rsi     # 0x9b87f
callq 0x40f0
testq %rax, %rax
je 0xe88c
movq %rax, %rbx
leaq 0x8b636(%rip), %rsi     # 0x99d09
movq %rsp, %r12
leaq 0x4(%rsp), %rcx
movq %rax, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x4070
movslq (%r12), %rdi
leaq 0x87b46(%rip), %rbp     # 0x96239
pushq $0x8
popq %r15
pushq $0x9
popq %r13
movq %r15, %rsi
movq %rbp, %rdx
movl %r13d, %ecx
callq 0x35067
movq %rax, %r14
leaq 0x4(%rsp), %rax
movslq (%rax), %rdi
movq %r15, %rsi
movq %rbp, %rdx
movl %r13d, %ecx
callq 0x35067
movq %rax, 0x8(%rsp)
movl (%r12), %edi
movl %edi, %esi
callq 0x380d3
movq %rax, 0x28(%rsp)
movq %rdx, 0x10(%rsp)
leaq 0x4(%rsp), %rax
movl (%rax), %edi
movl (%r12), %esi
callq 0x380d3
movq %rax, 0x20(%rsp)
movq %rdx, %r12
leaq 0x8b44d(%rip), %rbp     # 0x99ba8
movq %r14, 0x30(%rsp)
xorl %r15d, %r15d
movslq (%rsp), %rax
cmpq %rax, %r15
jge 0xe785
movq %rbx, %rdi
movq %rbp, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4070
incq %r15
addq $0x8, %r14
jmp 0xe763
leaq 0x8b41c(%rip), %rbp     # 0x99ba8
xorl %r14d, %r14d
movslq %eax, %rcx
cmpq %rcx, %r14
jge 0xe7cf
xorl %r15d, %r15d
xorl %r13d, %r13d
movslq %eax, %rcx
cmpq %rcx, %r13
jge 0xe7ca
movq 0x10(%rsp), %rax
movq (%rax,%r14,8), %rdx
addq %r15, %rdx
movq %rbx, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x4070
incq %r13
movl (%rsp), %eax
addq $0x8, %r15
jmp 0xe79d
incq %r14
jmp 0xe78f
leaq 0x8b3d2(%rip), %rbp     # 0x99ba8
xorl %r14d, %r14d
movslq 0x4(%rsp), %rax
cmpq %rax, %r14
jge 0xe82a
xorl %r15d, %r15d
xorl %r13d, %r13d
movslq (%rsp), %rax
cmpq %rax, %r13
jge 0xe80f
movq (%r12,%r14,8), %rdx
addq %r15, %rdx
movq %rbx, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x4070
incq %r13
addq $0x8, %r15
jmp 0xe7e9
movq 0x8(%rsp), %rax
leaq (%rax,%r14,8), %rdx
movq %rbx, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x4070
incq %r14
jmp 0xe7d9
movq 0x28(%rsp), %r13
movq %r13, %rdi
movq 0x10(%rsp), %rbx
movq %rbx, %rsi
movq 0x20(%rsp), %rbp
movq %rbp, %rdx
movq %r12, %rcx
movq 0x30(%rsp), %r14
movq %r14, %r8
movq 0x8(%rsp), %r15
movq %r15, %r9
callq 0xe2c1
movq %rax, 0x18(%rsp)
movq %r14, %rdi
callq 0x34ff7
movq %r15, %rdi
callq 0x34ff7
movq %r13, %rdi
movq %rbx, %rsi
movq 0x18(%rsp), %rbx
callq 0x3929f
movq %rbp, %rdi
movq %r12, %rsi
callq 0x3929f
jmp 0xe89f
leaq 0x87977(%rip), %rdi     # 0x9620a
xorl %ebx, %ebx
movq %r14, %rsi
xorl %eax, %eax
callq 0x4030
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq