// File: /workspace/github_c_makefile_star2_O1/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 0x381638(%rip), %rbx    # 0x3af0b8
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)
movabsq $-0x4010000000000000, %rax # imm = 0xBFF0000000000000
movq %rax, 0x10(%rbx)
movabsq $-0x4000000000000000, %rcx # imm = 0xC000000000000000
movq %rcx, 0x18(%rbx)
movq %rax, 0x80(%rbx)
movq %rcx, 0x88(%rbx)
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x2daf2
callq 0x39194
movq $0x0, 0x40(%rbx)
cmpl $0x0, 0x38(%rbx)
je 0x2db23
cmpl $0x0, 0x20(%rbx)
jle 0x2db1a
xorl %r14d, %r14d
movq 0x30(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x39194
incq %r14
movslq 0x20(%rbx), %rax
cmpq %rax, %r14
jl 0x2db01
movq 0x30(%rbx), %rdi
callq 0x39194
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 0x2db5d
callq 0x39194
movq $0x0, 0xb0(%rbx)
cmpl $0x0, 0xa8(%rbx)
je 0x2db9d
cmpl $0x0, 0x90(%rbx)
jle 0x2db91
xorl %r14d, %r14d
movq 0xa0(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x39194
incq %r14
movslq 0x90(%rbx), %rax
cmpq %rax, %r14
jl 0x2db72
movq 0xa0(%rbx), %rdi
callq 0x39194
movl $0x0, 0xa8(%rbx)
movq $0x0, 0xa0(%rbx)
cmpl $0x0, 0xec(%rbx)
je 0x2dbfe
movq 0xf0(%rbx), %rdi
callq 0x39194
movq 0xf8(%rbx), %rdi
callq 0x39194
cmpl $0x0, 0xec(%rbx)
jle 0x2dbfe
xorl %r14d, %r14d
movq 0x100(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x39194
incq %r14
movslq 0xec(%rbx), %rax
cmpq %rax, %r14
jl 0x2dbdf
movq $0x0, 0xe8(%rbx)
cmpl $0x0, 0x124(%rbx)
je 0x2dc58
cmpl $0x0, 0x124(%rbx)
jle 0x2dc4c
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x128(%rbx), %rax
cmpl $0x1, (%rax,%r14)
jne 0x2dc39
movq 0x38(%rax,%r14), %rdi
callq 0x39194
incq %r15
movslq 0x124(%rbx), %rax
addq $0x60, %r14
cmpq %rax, %r15
jl 0x2dc21
movq 0x128(%rbx), %rdi
callq 0x39194
movl $0x0, 0x124(%rbx)
popq %rbx
popq %r14
popq %r15
retq