// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x1240b(%rip), %rax     # 0x14418
andl $0x0, (%rax)
leaq 0x12405(%rip), %rax     # 0x1441c
andl $0x0, (%rax)
leaq 0x123ff(%rip), %r12     # 0x14420
andl $0x0, (%r12)
leaq 0x123f7(%rip), %r15     # 0x14424
andl $0x0, (%r15)
pushq $0x50
popq %rdi
callq 0x1120
movq %rax, %rbx
pushq $0x4
popq %rbp
xorl %edi, %edi
movl %ebp, %esi
xorl %edx, %edx
callq 0xc14c
movq %rax, (%rbx)
xorl %edi, %edi
movl %ebp, %esi
xorl %edx, %edx
callq 0xad45
movq %rax, 0x8(%rbx)
xorl %edi, %edi
movl %ebp, %esi
xorl %edx, %edx
callq 0xc3a0
movq %rax, 0x18(%rbx)
andl $0x0, 0x10(%rax)
xorl %edi, %edi
movl %ebp, %esi
xorl %edx, %edx
callq 0xc3a0
movq %rax, 0x10(%rbx)
movl $0x1, 0x10(%rax)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x58d4
movq %rbx, %rdi
callq 0x8c50
movq %rbx, %rdi
callq 0x9feb
movl (%r15), %eax
testl %eax, %eax
jne 0x20df
leaq 0x12382(%rip), %rax     # 0x14430
movq (%rax), %rdi
leaq 0x12380(%rip), %r13     # 0x14438
movq (%r13), %rsi
callq 0x1dad
cmpl $0x0, (%r12)
jne 0x21c8
movq (%r13), %rdi
leaq 0xafff(%rip), %rsi      # 0xd0d6
callq 0xbad7
movl (%r15), %eax
cmpl $0x1, %eax
je 0x217a
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4b29
movq (%rbx), %rdi
pushq $0x5
popq %rbp
movl %ebp, %esi
xorl %edx, %edx
callq 0xc14c
movq 0x8(%rbx), %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0xad45
movq 0x18(%rbx), %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0xc3a0
movq 0x10(%rbx), %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0xc3a0
movq %rbx, %rdi
callq 0x1030
leaq 0x122f9(%rip), %rax     # 0x14430
movq (%rax), %rdi
callq 0xb3b2
leaq 0x122f2(%rip), %rax     # 0x14438
movq (%rax), %rdi
callq 0xb43d
leaq 0x122eb(%rip), %rax     # 0x14440
movq (%rax), %rdi
callq 0xb43d
pushq $0x4
popq %rdi
pushq $0x29
popq %rsi
callq 0xb0f8
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x11e77(%rip), %r12     # 0x13ff8
movq (%r12), %rcx
leaq 0xaf91(%rip), %rdi      # 0xd11d
pushq $0x1b
popq %rsi
pushq $0x1
popq %r15
movq %r15, %rdx
callq 0x1190
leaq 0x12296(%rip), %rax     # 0x14438
movq (%rax), %rsi
movq %r14, %rdi
callq 0x5ce5
movq (%r12), %rcx
leaq 0xaf81(%rip), %rdi      # 0xd139
pushq $0x16
popq %rsi
movq %r15, %rdx
callq 0x1190
jmp 0x20e8
movq 0x11e29(%rip), %rax     # 0x13ff8
movq (%rax), %rcx
leaq 0xaf0d(%rip), %rdi      # 0xd0e6
pushq $0x36
popq %rsi
pushq $0x1
popq %rdx
callq 0x1190
jmp 0x20dc
nopl (%rax)