// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/image.c
// Function: clear_image
void clear_image()
{
 /*!Last Changed 15.09.2006 added namesavailable = 0*/
 /*!Last Changed 13.09.2006 added default position*/
 /*!Last Changed 23.01.2005*/
 int i;
 img.height = epsaxis + 2 * MARGIN;
 img.width = epsaxis + 2 * MARGIN;
 img.groupcoloring = ALL_SAME;
 img.xaxis.available = 1;
 img.yaxis.available = 1;
 img.xaxis.limitsset = 0;
 img.yaxis.limitsset = 0;
 img.xaxis.lim.precision = 2;
 img.yaxis.lim.precision = 2;
 img.xaxis.lim.min = -1;
 img.xaxis.lim.max = -2;
 img.yaxis.lim.min = -1;
 img.yaxis.lim.max = -2;
 if (img.xaxis.label)
  {
   safe_free(img.xaxis.label);
   img.xaxis.label = NULL;
  }
 if (img.xaxis.namesavailable)
  {
   for (i = 0; i < img.xaxis.lim.division; i++)
     safe_free(img.xaxis.names[i]);
   safe_free(img.xaxis.names);
  }
 img.xaxis.namesavailable = 0;
 img.xaxis.names = NULL;
 if (img.yaxis.available)
  {
   if (img.yaxis.label)
    {
     safe_free(img.yaxis.label);
     img.yaxis.label = NULL;
    }
  }
 if (img.yaxis.namesavailable)
  {
   for (i = 0; i < img.yaxis.lim.division; i++)
     safe_free(img.yaxis.names[i]);
   safe_free(img.yaxis.names);
  }
 img.yaxis.namesavailable = 0;
 img.yaxis.names = NULL;
 if (img.imagelegend.legendcount != 0)
  {
   safe_free(img.imagelegend.colors);
   safe_free(img.imagelegend.types);
   for (i = 0; i < img.imagelegend.legendcount; i++)
     safe_free(img.imagelegend.names[i]);  
  }
 img.imagelegend.legendcount = 0;
 img.imagelegend.position = 0;
 if (img.objectcount != 0)
  {
   for (i = 0; i < img.objectcount; i++)
     if (img.objects[i].type == 1) 
       safe_free(img.objects[i].obje.st.st);
   safe_free(img.objects);
  }
 img.objectcount = 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0x37fb9c(%rip), %rbx    # 0x3aa0b8
movabsq $0x29400000294, %rax    # imm = 0x29400000294
movq %rax, (%rbx)
andl $0x0, 0x120(%rbx)
pushq $0x1
popq %rax
movl %eax, 0x8(%rbx)
movl %eax, 0x78(%rbx)
pushq $0x2
popq %rax
movq %rax, 0x24(%rbx)
movq %rax, 0x94(%rbx)
movaps 0x6e322(%rip), %xmm0    # 0x98870
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x80(%rbx)
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x2a56c
callq 0x34ff7
andq $0x0, 0x40(%rbx)
cmpl $0x0, 0x38(%rbx)
je 0x2a595
xorl %r14d, %r14d
movslq 0x20(%rbx), %rax
movq 0x30(%rbx), %rdi
cmpq %rax, %r14
jge 0x2a590
movq (%rdi,%r14,8), %rdi
callq 0x34ff7
incq %r14
jmp 0x2a575
callq 0x34ff7
andl $0x0, 0x38(%rbx)
andq $0x0, 0x30(%rbx)
cmpl $0x0, 0x78(%rbx)
setne %al
movq 0xb0(%rbx), %rdi
testq %rdi, %rdi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2a5c6
callq 0x34ff7
andq $0x0, 0xb0(%rbx)
cmpl $0x0, 0xa8(%rbx)
je 0x2a5f8
xorl %r14d, %r14d
movslq 0x90(%rbx), %rax
movq 0xa0(%rbx), %rdi
cmpq %rax, %r14
jge 0x2a5f3
movq (%rdi,%r14,8), %rdi
callq 0x34ff7
incq %r14
jmp 0x2a5d2
callq 0x34ff7
andl $0x0, 0xa8(%rbx)
andq $0x0, 0xa0(%rbx)
cmpl $0x0, 0xec(%rbx)
je 0x2a64c
movq 0xf0(%rbx), %rdi
callq 0x34ff7
movq 0xf8(%rbx), %rdi
callq 0x34ff7
xorl %r14d, %r14d
movslq 0xec(%rbx), %rax
cmpq %rax, %r14
jge 0x2a64c
movq 0x100(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x34ff7
incq %r14
jmp 0x2a62b
andq $0x0, 0xe8(%rbx)
movl 0x124(%rbx), %eax
testl %eax, %eax
je 0x2a698
xorl %r14d, %r14d
xorl %r15d, %r15d
movslq %eax, %rcx
movq 0x128(%rbx), %rdi
cmpq %rcx, %r15
jge 0x2a693
cmpl $0x1, (%rdi,%r14)
jne 0x2a68a
movq 0x38(%rdi,%r14), %rdi
callq 0x34ff7
movl 0x124(%rbx), %eax
incq %r15
addq $0x60, %r14
jmp 0x2a664
callq 0x34ff7
andl $0x0, 0x124(%rbx)
popq %rbx
popq %r14
popq %r15
retq