// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/annotationsketch/canvas_cairo.c
// Function: gt_canvas_cairo_visit_line_pre
int gt_canvas_cairo_visit_line_pre(GtCanvas *canvas, GtLine *line,
                                   GtError *err)
{
  int had_err = 0;
  double lheight, bar_vspace = BAR_VSPACE_DEFAULT,
         theight = gt_graphics_get_text_height(canvas->pvt->g),
         captionspace = CAPTION_BAR_SPACE_DEFAULT;
  bool show_block_captions = true;
  gt_assert(canvas && line);
  if (gt_style_get_num(canvas->pvt->sty, "format", "block_caption_space",
                       &captionspace, NULL, err) == GT_STYLE_QUERY_ERROR) {
    return -1;
  }
  if (gt_style_get_bool(canvas->pvt->sty,
                        "format", "show_block_captions",
                        &show_block_captions,
                        NULL, err) == GT_STYLE_QUERY_ERROR) {
    return -1;
  }
  had_err = gt_line_get_height(line, &lheight, canvas->pvt->sty, err);
  if (!had_err) {
    if (gt_style_get_num(canvas->pvt->sty,
                         "format", "bar_vspace",
                         &bar_vspace, NULL, err) == GT_STYLE_QUERY_ERROR) {
      return -1;
    }
    if (gt_style_get_num(canvas->pvt->sty,
                         "format", "block_caption_font_size",
                         &theight, NULL, err) == GT_STYLE_QUERY_ERROR) {
      return -1;
    }
    if (gt_line_has_captions(line) && show_block_captions)
      canvas->pvt->y +=  theight + captionspace;
    canvas->pvt->bt = gt_bittab_new(canvas->pvt->width);
    gt_bittab_unset(canvas->pvt->bt);
    canvas->pvt->y += lheight/2;
  }
  return had_err;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movabsq $0x4024000000000000, %rax # imm = 0x4024000000000000
movq %rax, 0x20(%rsp)
movq 0x8(%rdi), %rax
movq 0x58(%rax), %rdi
callq 0x4de34
movsd %xmm0, 0x18(%rsp)
movabsq $0x401c000000000000, %rax # imm = 0x401C000000000000
movq %rax, 0x10(%rsp)
movb $0x1, 0xf(%rsp)
testq %rbx, %rbx
je 0x8be23
testq %r14, %r14
je 0x8be23
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rdi
leaq 0x554b5(%rip), %rsi     # 0xe1196
leaq 0x610ef(%rip), %rdx     # 0xecdd7
leaq 0x10(%rsp), %rcx
xorl %r8d, %r8d
movq %r15, %r9
callq 0x5393e
cmpl $0x2, %eax
je 0x8bd28
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rdi
leaq 0x5548a(%rip), %rsi     # 0xe1196
leaq 0x5ed42(%rip), %rdx     # 0xeaa55
leaq 0xf(%rsp), %rcx
xorl %r8d, %r8d
movq %r15, %r9
callq 0x53bf6
cmpl $0x2, %eax
jne 0x8bd37
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rdx
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
movq %r15, %rcx
callq 0x8e6cf
testl %eax, %eax
jne 0x8bd2d
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rdi
leaq 0x55434(%rip), %rsi     # 0xe1196
leaq 0x61082(%rip), %rdx     # 0xecdeb
leaq 0x20(%rsp), %rcx
xorl %r8d, %r8d
movq %r15, %r9
callq 0x5393e
cmpl $0x2, %eax
je 0x8bd28
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rdi
leaq 0x55409(%rip), %rsi     # 0xe1196
leaq 0x60ee0(%rip), %rdx     # 0xecc74
leaq 0x18(%rsp), %rcx
xorl %r8d, %r8d
movq %r15, %r9
callq 0x5393e
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x2, %ecx
je 0x8bd2d
movq %r14, %rdi
callq 0x8e62b
testb %al, %al
je 0x8bde3
movq 0x8(%rbx), %rax
cmpb $0x1, 0xf(%rsp)
jne 0x8bde7
movsd 0x18(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
addsd 0x18(%rax), %xmm0
movsd %xmm0, 0x18(%rax)
jmp 0x8bde7
movq 0x8(%rbx), %rax
movq 0x28(%rax), %rdi
callq 0x70cd4
movq 0x8(%rbx), %rcx
movq %rax, 0x50(%rcx)
movq %rax, %rdi
callq 0x71036
movsd 0x28(%rsp), %xmm0
mulsd 0x5e842(%rip), %xmm0    # 0xea650
movq 0x8(%rbx), %rax
addsd 0x18(%rax), %xmm0
movsd %xmm0, 0x18(%rax)
xorl %eax, %eax
jmp 0x8bd2d
callq 0x21486