// File: /workspace/github_c_makefile_star2_O3/markpeerdeman[P]mbemm/src/emath/do_linear.c
// Function: do_linear
int do_linear(char *argv)
{ mesh mesh1;
  WRITE_SPECIAL = NO;
  WRITE_UNIVERSAL = NO;
  WRITE_OBJ = NO;
  READ_SOLUTION = NO;

  /* initialize global datastructures: */
  mesh1=(mesh)malloc(sizeof(meshtype));
  mesh1->mesh_p = point_dll((point)NULL,NEW,0);
  mesh1->mesh_e = element_dll((element)NULL,NEW,0);
  mesh1->mesh_t = restraint_dll((restraint)NULL,NEW,0); mesh1->mesh_t->type=TRACTION;
  mesh1->mesh_d = restraint_dll((restraint)NULL,NEW,0); mesh1->mesh_d->type=DISPLACEMENT;

  /* parse the inputdeck: */
  parse(argv,mesh1); 
  scalemesh(mesh1);

  /* do the linear analysis: */
  linear3(mesh1); 

if (READ_SOLUTION==NO)
  { solve_gauss(main_E,main_f);
    if (WRITE_OBJ==NO)
    {
      printvector(main_f,"solution vector");
    } else
    {
      fprintf(stderr,"Solution vector is not exported because of .OBJ output");
    }
  }
  if (READ_SOLUTION==YES)
  { fprintf(stderr,"Parsing solution vector...\n"); 
    parse_solution(argv,main_f);
    fprintf(stderr,"Solution vector read.\n");
  }


  /* do the postprocessing: */
  post(mesh1,0); 

  /* kill the globals: */
  point_dll(mesh1->mesh_p,KILL,0);
  element_dll(mesh1->mesh_e,KILL,0);
  restraint_dll(mesh1->mesh_t,KILL,0);
  restraint_dll(mesh1->mesh_d,KILL,0);
  free(mesh1);

  delmatrix(main_E);
  delvector(main_f);  
  delvector(main_u);
   
  evaluate_level(FINISH,41);
  return (int)1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r14
leaq 0x11be9(%rip), %rax     # 0x15428
xorl %r13d, %r13d
movl %r13d, (%rax)
leaq 0x11be0(%rip), %rax     # 0x1542c
movl %r13d, (%rax)
leaq 0x11bda(%rip), %r12     # 0x15430
movl %r13d, (%r12)
leaq 0x11bd3(%rip), %r15     # 0x15434
movl %r13d, (%r15)
movl $0x50, %edi
callq 0x1130
movq %rax, %rbx
xorl %edi, %edi
movl $0x4, %esi
xorl %edx, %edx
callq 0xcc2f
movq %rax, (%rbx)
xorl %edi, %edi
movl $0x4, %esi
xorl %edx, %edx
callq 0xb570
movq %rax, 0x8(%rbx)
xorl %edi, %edi
movl $0x4, %esi
xorl %edx, %edx
callq 0xcee9
movq %rax, 0x18(%rbx)
movl %r13d, 0x10(%rax)
xorl %edi, %edi
movl $0x4, %esi
xorl %edx, %edx
callq 0xcee9
movq %rax, 0x10(%rbx)
movl $0x1, 0x10(%rax)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6b39
movq %rbx, %rdi
callq 0x9818
movq %rbx, %rdi
callq 0x3279
movl (%r15), %eax
testl %eax, %eax
jne 0x391d
leaq 0x11b54(%rip), %rax     # 0x15440
movq (%rax), %rdi
leaq 0x11b52(%rip), %r13     # 0x15448
movq (%r13), %rsi
callq 0x1bf1
cmpl $0x0, (%r12)
jne 0x39cf
movq (%r13), %rdi
leaq 0xa7c1(%rip), %rsi      # 0xe0d6
callq 0xc610
movl (%r15), %eax
cmpl $0x1, %eax
je 0x39c2
movq %rbx, %rdi
xorl %esi, %esi
callq 0x6221
movq (%rbx), %rdi
movl $0x5, %esi
xorl %edx, %edx
callq 0xcc2f
movq 0x8(%rbx), %rdi
movl $0x5, %esi
xorl %edx, %edx
callq 0xb570
movq 0x18(%rbx), %rdi
movl $0x5, %esi
xorl %edx, %edx
callq 0xcee9
movq 0x10(%rbx), %rdi
movl $0x5, %esi
xorl %edx, %edx
callq 0xcee9
movq %rbx, %rdi
callq 0x1030
leaq 0x11ac2(%rip), %rax     # 0x15440
movq (%rax), %rdi
callq 0xbb7b
leaq 0x11abb(%rip), %rax     # 0x15448
movq (%rax), %rdi
callq 0xbc23
leaq 0x11ab4(%rip), %rax     # 0x15450
movq (%rax), %rdi
callq 0xbc23
movl $0x4, %edi
movl $0x29, %esi
callq 0xb980
movl $0x1, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %r14, %rdi
callq 0x1f0d
jmp 0x3926
callq 0x1ef1
jmp 0x391a
nopl (%rax)