// File: /workspace/github_c_makefile_star2_O3/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 0x383d6a(%rip), %rbx    # 0x3b20b8
movabsq $0x29400000294, %rax    # imm = 0x29400000294
movq %rax, (%rbx)
movl $0x0, 0x120(%rbx)
movl $0x1, %eax
movl %eax, 0x8(%rbx)
movl %eax, 0x78(%rbx)
movl $0x2, %eax
movq %rax, 0x24(%rbx)
movq %rax, 0x94(%rbx)
movaps 0x7a569(%rip), %xmm0    # 0xa88f0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x80(%rbx)
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x2e3a8
callq 0x3a180
movq $0x0, 0x40(%rbx)
cmpl $0x0, 0x38(%rbx)
je 0x2e3d9
cmpl $0x0, 0x20(%rbx)
jle 0x2e3d0
xorl %r14d, %r14d
movq 0x30(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x3a180
incq %r14
movslq 0x20(%rbx), %rax
cmpq %rax, %r14
jl 0x2e3b7
movq 0x30(%rbx), %rdi
callq 0x3a180
movl $0x0, 0x38(%rbx)
movq $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 0x2e413
callq 0x3a180
movq $0x0, 0xb0(%rbx)
cmpl $0x0, 0xa8(%rbx)
je 0x2e453
cmpl $0x0, 0x90(%rbx)
jle 0x2e447
xorl %r14d, %r14d
movq 0xa0(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x3a180
incq %r14
movslq 0x90(%rbx), %rax
cmpq %rax, %r14
jl 0x2e428
movq 0xa0(%rbx), %rdi
callq 0x3a180
movl $0x0, 0xa8(%rbx)
movq $0x0, 0xa0(%rbx)
cmpl $0x0, 0xec(%rbx)
je 0x2e4b4
movq 0xf0(%rbx), %rdi
callq 0x3a180
movq 0xf8(%rbx), %rdi
callq 0x3a180
cmpl $0x0, 0xec(%rbx)
jle 0x2e4b4
xorl %r14d, %r14d
movq 0x100(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x3a180
incq %r14
movslq 0xec(%rbx), %rax
cmpq %rax, %r14
jl 0x2e495
movq $0x0, 0xe8(%rbx)
movl 0x124(%rbx), %eax
testl %eax, %eax
je 0x2e50a
movq 0x128(%rbx), %rdi
jle 0x2e505
xorl %r14d, %r14d
xorl %r15d, %r15d
cmpl $0x1, (%rdi,%r14)
jne 0x2e4f6
movq 0x38(%rdi,%r14), %rdi
callq 0x3a180
movq 0x128(%rbx), %rdi
movl 0x124(%rbx), %eax
incq %r15
movslq %eax, %rcx
addq $0x60, %r14
cmpq %rcx, %r15
jl 0x2e4d8
callq 0x3a180
movl $0x0, 0x124(%rbx)
popq %rbx
popq %r14
popq %r15
retq