// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/block.c
// Function: gt_block_get_max_height
int gt_block_get_max_height(const GtBlock *block, double *result,
                            const GtStyle *sty, GtError *err)
{
  GtUword max_height = 0;
  GtStyleQueryStatus rval = GT_STYLE_QUERY_OK;
  GtUword i;
  gt_assert(block && sty);
  for (i=0;i<gt_array_size(block->elements);i++) {
    GtElement *elem;
    double height = 0;
    elem = *(GtElement**) gt_array_get(block->elements, i);
    /* get default or image-wide bar height */
    rval = gt_style_get_num(sty, "format", "bar_height", &height, NULL, err);
    switch (rval) {
    case GT_STYLE_QUERY_ERROR:
      return -1;
      break; /* should never reach this */
    case GT_STYLE_QUERY_NOT_SET:
      height = BAR_HEIGHT_DEFAULT;
      break;
    default:
      /* do nothing */
      break;
    }
    /* try to get type-specific bar height */
    rval = gt_style_get_num(sty, gt_element_get_type(elem), "bar_height",
                            &height, gt_element_get_node_ref(elem),
                            err);
    if (rval == GT_STYLE_QUERY_ERROR) {
      return -1;
    }
    if (gt_double_smaller_double(max_height, height))
      max_height = height;
  }
  *result = max_height;
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, 0x10(%rsp)
testq %rdi, %rdi
je 0x6bd65
movq %rdx, %r15
testq %rdx, %rdx
je 0x6bd65
movq %rcx, %rbx
movq %rdi, %r12
xorl %r14d, %r14d
xorl %r13d, %r13d
movq %rdi, 0x18(%rsp)
movq (%r12), %rdi
callq 0x4b988
movq %r14, %xmm1
cmpq %rax, %r13
jae 0x6bd2f
movdqa %xmm1, 0x20(%rsp)
andq $0x0, 0x8(%rsp)
movq (%r12), %rdi
movq %r13, %rsi
callq 0x4b48e
movq (%rax), %rbp
movq %r15, %r12
movq %r15, %rdi
leaq 0x5e545(%rip), %rsi     # 0xca196
leaq 0x6a399(%rip), %rdx     # 0xd5ff1
leaq 0x8(%rsp), %rcx
xorl %r8d, %r8d
movq %rbx, %r9
callq 0x33ff8
cmpl $0x1, %eax
je 0x6bc77
cmpl $0x2, %eax
jne 0x6bc86
jmp 0x6bd2a
movabsq $0x4030000000000000, %rax # imm = 0x4030000000000000
movq %rax, 0x8(%rsp)
movq %rbp, %rdi
callq 0x6f596
movq %rbx, %r15
movq %rax, %rbx
movq %rbp, %rdi
callq 0x6f6a5
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rbx
leaq 0x6a345(%rip), %rdx     # 0xd5ff1
leaq 0x8(%rsp), %rcx
movq %rax, %r8
movq %r15, %r9
callq 0x33ff8
cmpl $0x2, %eax
je 0x6bd2a
movapd 0x20(%rsp), %xmm1
unpcklps 0x5e7b2(%rip), %xmm1    # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x5e7ba(%rip), %xmm1    # 0xca490
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movsd 0x8(%rsp), %xmm1
callq 0x58dba
movsd 0x8(%rsp), %xmm1
movapd %xmm1, %xmm0
subsd 0x67a51(%rip), %xmm0    # 0xd3750
testb %al, %al
je 0x6bd1a
cvttsd2si %xmm1, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
cvttsd2si %xmm0, %r14
andq %rcx, %r14
orq %rax, %r14
movq %r12, %r15
incq %r13
movq 0x18(%rsp), %r12
jmp 0x6bc12
pushq $-0x1
popq %rax
jmp 0x6bd56
punpckldq 0x5e749(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x5e751(%rip), %xmm1    # 0xca490
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq 0x10(%rsp), %rax
movsd %xmm0, (%rax)
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xc224c(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x5e2f0(%rip), %rsi     # 0xca066
leaq 0x735e2(%rip), %rdx     # 0xdf35f
leaq 0x735e8(%rip), %rcx     # 0xdf36c
leaq 0x73316(%rip), %r8      # 0xdf0a1
movl $0x13b, %r9d            # imm = 0x13B
xorl %eax, %eax
callq 0xb8c0
callq 0xb300