// File: /workspace/github_c_makefile_star2_O3/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 $0x48, %rsp
movq %rdi, %r14
leaq 0x9c832(%rip), %rsi     # 0xab95b
callq 0x40f0
testq %rax, %rax
je 0xf31b
movq %rax, %rbx
leaq 0x9aca0(%rip), %rsi     # 0xa9de1
leaq 0x8(%rsp), %rbp
leaq 0xc(%rsp), %r12
movq %rax, %rdi
movq %rbp, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x4070
movslq (%rbp), %rdi
leaq 0x970d3(%rip), %r14     # 0xa6239
movl $0x8, %esi
movq %r14, %rdx
movl $0x9, %ecx
callq 0x3a1fc
movq %rax, 0x10(%rsp)
movslq (%r12), %rdi
movl $0x8, %esi
movq %r14, %rdx
movl $0x9, %ecx
callq 0x3a1fc
movq %rax, 0x20(%rsp)
movl (%rbp), %edi
movl %edi, %esi
callq 0x3d79d
movq %rax, 0x40(%rsp)
movq %rdx, 0x18(%rsp)
movl (%r12), %edi
movl (%rbp), %esi
callq 0x3d79d
movq %rax, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
cmpl $0x0, (%rbp)
jle 0xf24e
leaq 0x9aaad(%rip), %rbp     # 0xa9c80
movq 0x10(%rsp), %r14
xorl %r15d, %r15d
movq %rbx, %rdi
movq %rbp, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4070
incq %r15
movslq 0x8(%rsp), %rax
addq $0x8, %r14
cmpq %rax, %r15
jl 0xf1db
testl %eax, %eax
jle 0xf24e
leaq 0x9aa79(%rip), %r12     # 0xa9c80
xorl %r14d, %r14d
movq 0x18(%rsp), %rbp
testl %eax, %eax
jle 0xf243
xorl %r15d, %r15d
xorl %r13d, %r13d
movq (%rbp,%r14,8), %rdx
addq %r15, %rdx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x4070
incq %r13
movl 0x8(%rsp), %eax
movslq %eax, %rcx
addq $0x8, %r15
cmpq %rcx, %r13
jl 0xf219
jmp 0xf246
movslq %eax, %rcx
incq %r14
cmpq %rcx, %r14
jl 0xf20f
cmpl $0x0, 0xc(%rsp)
movq 0x30(%rsp), %r12
jle 0xf2b9
leaq 0x9aa1f(%rip), %rbp     # 0xa9c80
xorl %r14d, %r14d
cmpl $0x0, 0x8(%rsp)
jle 0xf296
xorl %r15d, %r15d
xorl %r13d, %r13d
movq (%r12,%r14,8), %rdx
addq %r15, %rdx
movq %rbx, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x4070
incq %r13
movslq 0x8(%rsp), %rax
addq $0x8, %r15
cmpq %rax, %r13
jl 0xf271
movq 0x20(%rsp), %rax
leaq (%rax,%r14,8), %rdx
movq %rbx, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x4070
incq %r14
movslq 0xc(%rsp), %rax
cmpq %rax, %r14
jl 0xf264
movq 0x40(%rsp), %r13
movq %r13, %rdi
movq 0x18(%rsp), %rbp
movq %rbp, %rsi
movq 0x38(%rsp), %rbx
movq %rbx, %rdx
movq %r12, %rcx
movq 0x10(%rsp), %r14
movq %r14, %r8
movq 0x20(%rsp), %r15
movq %r15, %r9
callq 0xed29
movq %rax, 0x28(%rsp)
movq %r14, %rdi
callq 0x3a180
movq %r15, %rdi
callq 0x3a180
movq %r13, %rdi
movq %rbp, %rsi
callq 0x3ed51
movq %rbx, %rdi
movq 0x28(%rsp), %rbx
movq %r12, %rsi
callq 0x3ed51
jmp 0xf32e
leaq 0x96ee8(%rip), %rdi     # 0xa620a
xorl %ebx, %ebx
movq %r14, %rsi
xorl %eax, %eax
callq 0x4030
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq