// File: /workspace/github_c_makefile_star2_O1/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 0x99781(%rip), %rsi     # 0xa888f
callq 0x40f0
testq %rax, %rax
je 0xf303
movq %rax, %rbx
leaq 0x97c4b(%rip), %rsi     # 0xa6d71
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 0x940ee(%rip), %r14     # 0xa3239
movl $0x8, %esi
movq %r14, %rdx
movl $0x9, %ecx
callq 0x39210
movq %rax, %r13
movslq (%r12), %rdi
movl $0x8, %esi
movq %r14, %rdx
movl $0x9, %ecx
callq 0x39210
movq %rax, 0x18(%rsp)
movl (%rbp), %edi
movl %edi, %esi
callq 0x3c6e5
movq %rax, 0x38(%rsp)
movq %rdx, 0x10(%rsp)
movl (%r12), %edi
movl (%rbp), %esi
callq 0x3c6e5
movq %rax, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
cmpl $0x0, (%rbp)
jle 0xf1d9
leaq 0x97a5e(%rip), %rbp     # 0xa6c10
movq %r13, %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 0xf1b8
movq %r13, 0x40(%rsp)
cmpl $0x0, 0x8(%rsp)
jle 0xf233
leaq 0x97a24(%rip), %rbp     # 0xa6c10
xorl %r14d, %r14d
movq 0x10(%rsp), %r12
cmpl $0x0, 0x8(%rsp)
jle 0xf226
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 0xf201
incq %r14
movslq 0x8(%rsp), %rax
cmpq %rax, %r14
jl 0xf1f4
cmpl $0x0, 0xc(%rsp)
movq 0x28(%rsp), %r12
jle 0xf29e
leaq 0x979ca(%rip), %rbp     # 0xa6c10
xorl %r14d, %r14d
cmpl $0x0, 0x8(%rsp)
jle 0xf27b
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 0xf256
movq 0x18(%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 0xf249
movq 0x38(%rsp), %r13
movq %r13, %rdi
movq 0x10(%rsp), %rbp
movq %rbp, %rsi
movq %r12, %rbx
movq 0x30(%rsp), %r12
movq %r12, %rdx
movq %rbx, %rcx
movq 0x40(%rsp), %r14
movq %r14, %r8
movq 0x18(%rsp), %r15
movq %r15, %r9
callq 0xecc7
movq %rax, 0x20(%rsp)
movq %r14, %rdi
callq 0x39194
movq %r15, %rdi
callq 0x39194
movq %r13, %rdi
movq %rbp, %rsi
callq 0x3dbad
movq %r12, %rdi
movq %rbx, %rsi
movq 0x20(%rsp), %rbx
callq 0x3dbad
jmp 0xf316
leaq 0x93f00(%rip), %rdi     # 0xa320a
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