// File: /workspace/github_c_makefile_star2_O1/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 0x11bf5(%rip), %rax     # 0x15428
xorl %r13d, %r13d
movl %r13d, (%rax)
leaq 0x11bec(%rip), %rax     # 0x1542c
movl %r13d, (%rax)
leaq 0x11be6(%rip), %r12     # 0x15430
movl %r13d, (%r12)
leaq 0x11bdf(%rip), %r15     # 0x15434
movl %r13d, (%r15)
movl $0x50, %edi
callq 0x1130
movq %rax, %rbx
xorl %edi, %edi
movl $0x4, %esi
xorl %edx, %edx
callq 0xcf07
movq %rax, (%rbx)
xorl %edi, %edi
movl $0x4, %esi
xorl %edx, %edx
callq 0xb834
movq %rax, 0x8(%rbx)
xorl %edi, %edi
movl $0x4, %esi
xorl %edx, %edx
callq 0xd1d1
movq %rax, 0x18(%rbx)
movl %r13d, 0x10(%rax)
xorl %edi, %edi
movl $0x4, %esi
xorl %edx, %edx
callq 0xd1d1
movq %rax, 0x10(%rbx)
movl $0x1, 0x10(%rax)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6bfc
movq %rbx, %rdi
callq 0x98f8
movq %rbx, %rdi
callq 0x3254
cmpl %r13d, (%r15)
jne 0x390c
leaq 0x11b62(%rip), %rax     # 0x15440
movq (%rax), %rdi
leaq 0x11b60(%rip), %r13     # 0x15448
movq (%r13), %rsi
callq 0x1ba8
cmpl $0x0, (%r12)
jne 0x39bf
movq (%r13), %rdi
leaq 0xa7cf(%rip), %rsi      # 0xe0d6
callq 0xc8e4
cmpl $0x1, (%r15)
je 0x39b2
movq %rbx, %rdi
xorl %esi, %esi
callq 0x62b3
movq (%rbx), %rdi
movl $0x5, %esi
xorl %edx, %edx
callq 0xcf07
movq 0x8(%rbx), %rdi
movl $0x5, %esi
xorl %edx, %edx
callq 0xb834
movq 0x18(%rbx), %rdi
movl $0x5, %esi
xorl %edx, %edx
callq 0xd1d1
movq 0x10(%rbx), %rdi
movl $0x5, %esi
xorl %edx, %edx
callq 0xd1d1
movq %rbx, %rdi
callq 0x1030
leaq 0x11ad2(%rip), %rax     # 0x15440
movq (%rax), %rdi
callq 0xbe4b
leaq 0x11acb(%rip), %rax     # 0x15448
movq (%rax), %rdi
callq 0xbef3
leaq 0x11ac4(%rip), %rax     # 0x15450
movq (%rax), %rdi
callq 0xbef3
movl $0x4, %edi
movl $0x29, %esi
callq 0xbc50
movl $0x1, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %r14, %rdi
callq 0x1e9a
jmp 0x3916
callq 0x1e7e
jmp 0x390c
nopl (%rax)