// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movl $0x0, 0x34(%rsp)
movsd 0xb4e0d(%rip), %xmm0    # 0x167810
movsd %xmm0, 0x20(%rsp)
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x58(%rax), %rdi
callq 0x3ebd0
movsd %xmm0, 0x18(%rsp)
movsd 0xb60f7(%rip), %xmm0    # 0x168b20
movsd %xmm0, 0x10(%rsp)
movb $0x1, 0xf(%rsp)
cmpq $0x0, 0x48(%rsp)
je 0xb2a44
cmpq $0x0, 0x40(%rsp)
jne 0xb2a7c
movq 0x10158d(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xab611(%rip), %rsi     # 0x15e066
leaq 0xb4ce2(%rip), %rdx     # 0x16773e
leaq 0xc1b3b(%rip), %rcx     # 0x17459e
leaq 0xc1a4e(%rip), %r8      # 0x1744b8
movl $0xb3, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xb2a7e
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x38(%rax), %rdi
movq 0x38(%rsp), %r9
leaq 0xab6ff(%rip), %rsi     # 0x15e196
leaq 0xb7589(%rip), %rdx     # 0x16a027
leaq 0x10(%rsp), %rcx
xorl %eax, %eax
movl %eax, %r8d
callq 0x49af0
cmpl $0x2, %eax
jne 0xb2abf
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0xb2c49
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x38(%rax), %rdi
movq 0x38(%rsp), %r9
leaq 0xab6be(%rip), %rsi     # 0x15e196
leaq 0xb5193(%rip), %rdx     # 0x167c72
leaq 0xf(%rsp), %rcx
xorl %eax, %eax
movl %eax, %r8d
callq 0x4a140
cmpl $0x2, %eax
jne 0xb2b00
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0xb2c49
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x38(%rax), %rdx
movq 0x38(%rsp), %rcx
leaq 0x28(%rsp), %rsi
callq 0xb77f0
movl %eax, 0x34(%rsp)
cmpl $0x0, 0x34(%rsp)
jne 0xb2c41
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x38(%rax), %rdi
movq 0x38(%rsp), %r9
leaq 0xab64d(%rip), %rsi     # 0x15e196
leaq 0xb74eb(%rip), %rdx     # 0x16a03b
leaq 0x20(%rsp), %rcx
xorl %eax, %eax
movl %eax, %r8d
callq 0x49af0
cmpl $0x2, %eax
jne 0xb2b71
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0xb2c49
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x38(%rax), %rdi
movq 0x38(%rsp), %r9
leaq 0xab60c(%rip), %rsi     # 0x15e196
leaq 0xb7338(%rip), %rdx     # 0x169ec9
leaq 0x18(%rsp), %rcx
xorl %eax, %eax
movl %eax, %r8d
callq 0x49af0
cmpl $0x2, %eax
jne 0xb2bb2
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0xb2c49
movq 0x40(%rsp), %rdi
callq 0xb7600
testb $0x1, %al
jne 0xb2bc2
jmp 0xb2be8
testb $0x1, 0xf(%rsp)
je 0xb2be8
movsd 0x18(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
addsd 0x18(%rax), %xmm0
movsd %xmm0, 0x18(%rax)
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x28(%rax), %rdi
callq 0x78f00
movq %rax, %rcx
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x50(%rax)
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x50(%rax), %rdi
callq 0x79b20
movsd 0x28(%rsp), %xmm0
movsd 0xb56fe(%rip), %xmm1    # 0x168328
divsd %xmm1, %xmm0
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
addsd 0x18(%rax), %xmm0
movsd %xmm0, 0x18(%rax)
movl 0x34(%rsp), %eax
movl %eax, 0x54(%rsp)
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)