// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movabsq $0x4024000000000000, %rax # imm = 0x4024000000000000
movq %rax, 0x18(%rsp)
movq 0x8(%rdi), %rax
movq 0x58(%rax), %rdi
callq 0x2c939
movsd %xmm0, 0x10(%rsp)
movabsq $0x401c000000000000, %rax # imm = 0x401C000000000000
movq %rax, 0x8(%rsp)
movb $0x1, 0x7(%rsp)
testq %rbx, %rbx
je 0x6ce9a
testq %r14, %r14
je 0x6ce9a
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rdi
leaq 0x5d43c(%rip), %rsi     # 0xca196
leaq 0x69066(%rip), %rdx     # 0xd5dc7
leaq 0x8(%rsp), %rcx
xorl %r8d, %r8d
movq %r15, %r9
callq 0x33ff8
pushq $-0x1
popq %rbp
cmpl $0x2, %eax
je 0x6cda4
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rdi
leaq 0x5d40e(%rip), %rsi     # 0xca196
leaq 0x66cb6(%rip), %rdx     # 0xd3a45
leaq 0x7(%rsp), %rcx
xorl %r8d, %r8d
movq %r15, %r9
callq 0x3440a
cmpl $0x2, %eax
jne 0x6cdb1
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rdx
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
movq %r15, %rcx
callq 0x6fcf5
testl %eax, %eax
jne 0x6cda6
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rdi
leaq 0x5d3ba(%rip), %rsi     # 0xca196
leaq 0x68ff8(%rip), %rdx     # 0xd5ddb
leaq 0x18(%rsp), %rcx
xorl %r8d, %r8d
movq %r15, %r9
callq 0x33ff8
cmpl $0x2, %eax
je 0x6cda4
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rdi
leaq 0x5d38f(%rip), %rsi     # 0xca196
leaq 0x68e56(%rip), %rdx     # 0xd5c64
leaq 0x10(%rsp), %rcx
xorl %r8d, %r8d
movq %r15, %r9
callq 0x33ff8
movl %eax, %ecx
movl %ebp, %eax
cmpl $0x2, %ecx
je 0x6cda6
movq %r14, %rdi
callq 0x6fbba
testb %al, %al
je 0x6ce5a
movq 0x8(%rbx), %rax
cmpb $0x1, 0x7(%rsp)
jne 0x6ce5e
movsd 0x10(%rsp), %xmm0
addsd 0x8(%rsp), %xmm0
addsd 0x18(%rax), %xmm0
movsd %xmm0, 0x18(%rax)
jmp 0x6ce5e
movq 0x8(%rbx), %rax
movq 0x28(%rax), %rdi
callq 0x4d6a4
movq 0x8(%rbx), %rcx
movq %rax, 0x50(%rcx)
movq %rax, %rdi
callq 0x4dd46
movsd 0x20(%rsp), %xmm0
mulsd 0x667bb(%rip), %xmm0    # 0xd3640
movq 0x8(%rbx), %rax
addsd 0x18(%rax), %xmm0
movsd %xmm0, 0x18(%rax)
xorl %eax, %eax
jmp 0x6cda6
movq 0xc1117(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x5d1bb(%rip), %rsi     # 0xca066
leaq 0x666a4(%rip), %rdx     # 0xd3556
leaq 0x728ad(%rip), %rcx     # 0xdf766
leaq 0x727c0(%rip), %r8      # 0xdf680
movl $0xb3, %r9d
xorl %eax, %eax
callq 0xb8c0
callq 0xb300