// File: /workspace/github_c_makefile_star2_O1/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 %r12
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 0x4eae0
movsd %xmm0, 0x18(%rsp)
movabsq $0x401c000000000000, %rax # imm = 0x401C000000000000
movq %rax, 0x10(%rsp)
movb $0x1, 0xf(%rsp)
testq %rbx, %rbx
je 0x8c338
testq %r14, %r14
je 0x8c338
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rdi
leaq 0x54fa2(%rip), %rsi     # 0xe1196
leaq 0x60c24(%rip), %rdx     # 0xece1f
leaq 0x10(%rsp), %rcx
xorl %r8d, %r8d
movq %r15, %r9
callq 0x545d2
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpl $0x2, %eax
je 0x8c2be
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rdi
leaq 0x54f6e(%rip), %rsi     # 0xe1196
leaq 0x5e876(%rip), %rdx     # 0xeaaa5
leaq 0xf(%rsp), %rcx
xorl %r8d, %r8d
movq %r15, %r9
callq 0x5488a
cmpl $0x2, %eax
je 0x8c2be
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rdx
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
movq %r15, %rcx
callq 0x8ebfa
movl %eax, %r12d
testl %eax, %eax
je 0x8c268
movl %r12d, %ebp
jmp 0x8c2be
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rdi
leaq 0x54f1f(%rip), %rsi     # 0xe1196
leaq 0x60bb5(%rip), %rdx     # 0xece33
leaq 0x20(%rsp), %rcx
xorl %r8d, %r8d
movq %r15, %r9
callq 0x545d2
cmpl $0x2, %eax
je 0x8c2be
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rdi
leaq 0x54ef4(%rip), %rsi     # 0xe1196
leaq 0x60a1b(%rip), %rdx     # 0xeccc4
leaq 0x18(%rsp), %rcx
xorl %r8d, %r8d
movq %r15, %r9
callq 0x545d2
cmpl $0x2, %eax
jne 0x8c2cd
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x8eb4b
testb %al, %al
je 0x8c2fa
cmpb $0x1, 0xf(%rsp)
jne 0x8c2fa
movsd 0x18(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
movq 0x8(%rbx), %rax
addsd 0x18(%rax), %xmm0
movsd %xmm0, 0x18(%rax)
movq 0x8(%rbx), %rax
movq 0x28(%rax), %rdi
callq 0x70724
movq 0x8(%rbx), %rcx
movq %rax, 0x50(%rcx)
movq %rax, %rdi
callq 0x70a83
movsd 0x28(%rsp), %xmm0
mulsd 0x5e37b(%rip), %xmm0    # 0xea6a0
movq 0x8(%rbx), %rax
addsd 0x18(%rax), %xmm0
movsd %xmm0, 0x18(%rax)
jmp 0x8c263
callq 0x21525