// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/canvas_cairo_file.c
// Function: gt_canvas_cairo_file_new
GtCanvas* gt_canvas_cairo_file_new(GtStyle *style,
                                   GtGraphicsOutType output_type,
                                   GtUword width, GtUword height,
                                   GtImageInfo *image_info,
                                   GtError *err)
{
  GtCanvas *canvas;
  GtColor bgcolor = {1.0, 1.0, 1.0, 1.0};
  GtCanvasCairoFile *ccf;
  GtStyleQueryStatus status;
  double margins = 10.0;
  gt_assert(style && width > 0 && height > 0);

  status = gt_style_get_color(style, "format", "background_color", &bgcolor,
                              NULL, err);
  switch (status) {
    case GT_STYLE_QUERY_ERROR:
      return NULL;
    case GT_STYLE_QUERY_NOT_SET:
      bgcolor.red = bgcolor.green = bgcolor.blue = bgcolor.alpha = 1.0;
      break;
    default:
      break;
    }
  if (gt_style_get_num(style,
                       "format", "margins", &margins,
                       NULL, err) == GT_STYLE_QUERY_ERROR) {
    return NULL;
  }

  canvas = gt_canvas_create(gt_canvas_cairo_file_class());
  canvas->pvt->g = gt_graphics_cairo_new(output_type, width, height);
  (void) gt_graphics_set_background_color(canvas->pvt->g, bgcolor);
  (void) gt_graphics_set_margins(canvas->pvt->g, margins, 0);
  canvas->pvt->margins = margins;
  if (image_info)
    gt_image_info_set_height(image_info, height);
  canvas->pvt->sty = style;
  canvas->pvt->y += 0.5;
  canvas->pvt->ii = image_info;
  canvas->pvt->width = width;
  canvas->pvt->height = height;
  canvas->pvt->bt = NULL;
  ccf = canvas_cairo_file_cast(canvas);
  ccf->type = output_type;
  return canvas;
}

// Assembly:
subq $0xa8, %rsp
movq %rdi, 0x98(%rsp)
movl %esi, 0x94(%rsp)
movq %rdx, 0x88(%rsp)
movq %rcx, 0x80(%rsp)
movq %r8, 0x78(%rsp)
movq %r9, 0x70(%rsp)
movq 0x12c721(%rip), %rax    # 0x167908
movq %rax, 0x48(%rsp)
movq 0x12c71d(%rip), %rax    # 0x167910
movq %rax, 0x50(%rsp)
movq 0x12c719(%rip), %rax    # 0x167918
movq %rax, 0x58(%rsp)
movq 0x12c715(%rip), %rax    # 0x167920
movq %rax, 0x60(%rsp)
movsd 0x12c5f8(%rip), %xmm0   # 0x167810
movsd %xmm0, 0x30(%rsp)
cmpq $0x0, 0x98(%rsp)
je 0x3b23f
cmpq $0x0, 0x88(%rsp)
jbe 0x3b23f
cmpq $0x0, 0x80(%rsp)
ja 0x3b277
movq 0x178d92(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x122e16(%rip), %rsi    # 0x15e066
leaq 0x12c674(%rip), %rdx    # 0x1678cb
leaq 0x12c68e(%rip), %rcx    # 0x1678ec
leaq 0x12c5d8(%rip), %r8     # 0x16783d
movl $0x6c, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x3b279
movq 0x98(%rsp), %rdi
movq 0x70(%rsp), %r9
leaq 0x122f09(%rip), %rsi    # 0x15e196
leaq 0x12d26b(%rip), %rdx    # 0x1684ff
xorl %eax, %eax
movl %eax, %r8d
leaq 0x48(%rsp), %rcx
callq 0x48bc0
movl %eax, 0x3c(%rsp)
movl 0x3c(%rsp), %eax
movl %eax, 0x2c(%rsp)
subl $0x1, %eax
je 0x3b2d2
jmp 0x3b2b6
movl 0x2c(%rsp), %eax
subl $0x2, %eax
jne 0x3b30c
jmp 0x3b2c1
movq $0x0, 0xa0(%rsp)
jmp 0x3b4c4
movsd 0x12352e(%rip), %xmm0   # 0x15e808
movsd %xmm0, 0x60(%rsp)
movsd 0x123520(%rip), %xmm0   # 0x15e808
movsd %xmm0, 0x58(%rsp)
movsd 0x123512(%rip), %xmm0   # 0x15e808
movsd %xmm0, 0x50(%rsp)
movsd 0x123504(%rip), %xmm0   # 0x15e808
movsd %xmm0, 0x48(%rsp)
jmp 0x3b30e
jmp 0x3b30e
movq 0x98(%rsp), %rdi
movq 0x70(%rsp), %r9
leaq 0x122e74(%rip), %rsi    # 0x15e196
leaq 0x12d33f(%rip), %rdx    # 0x168668
leaq 0x30(%rsp), %rcx
xorl %eax, %eax
movl %eax, %r8d
callq 0x49af0
cmpl $0x2, %eax
jne 0x3b34e
movq $0x0, 0xa0(%rsp)
jmp 0x3b4c4
callq 0x3b100
movq %rax, %rdi
callq 0x3a600
movq %rax, 0x68(%rsp)
movl 0x94(%rsp), %edi
movq 0x88(%rsp), %rax
movl %eax, %esi
movq 0x80(%rsp), %rax
movl %eax, %edx
callq 0x44d40
movq %rax, %rcx
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x58(%rax)
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x58(%rax), %rdi
leaq 0x48(%rsp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x18(%rsp)
callq 0x3ed20
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x58(%rax), %rdi
movsd 0x30(%rsp), %xmm0
xorps %xmm1, %xmm1
callq 0x3f130
movsd 0x30(%rsp), %xmm0
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movsd %xmm0, 0x20(%rax)
cmpq $0x0, 0x78(%rsp)
je 0x3b414
movq 0x78(%rsp), %rdi
movq 0x80(%rsp), %rax
movl %eax, %esi
callq 0x45290
movq 0x98(%rsp), %rcx
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x38(%rax)
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movsd 0x12c3de(%rip), %xmm0   # 0x167818
addsd 0x18(%rax), %xmm0
movsd %xmm0, 0x18(%rax)
movq 0x78(%rsp), %rcx
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x60(%rax)
movq 0x88(%rsp), %rcx
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x28(%rax)
movq 0x80(%rsp), %rcx
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x30(%rax)
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq $0x0, 0x50(%rax)
callq 0x3b100
movq %rax, %rdi
movq 0x68(%rsp), %rsi
callq 0x3a7b0
movq %rax, 0x40(%rsp)
movl 0x94(%rsp), %ecx
movq 0x40(%rsp), %rax
movl %ecx, 0x10(%rax)
movq 0x68(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0xa0(%rsp), %rax
addq $0xa8, %rsp
retq
nopw %cs:(%rax,%rax)
nop