// File: /workspace/github_c_makefile_star2_O3/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 $0x18, %rsp
movq %rdi, 0x8(%rsp)
testq %rdi, %rdi
je 0x8ad94
movq %rdx, %r15
testq %rdx, %rdx
je 0x8ad94
movq %rcx, %rbp
movq %rsi, %rbx
movq 0x8(%rsp), %rax
movq (%rax), %rdi
callq 0x6f310
testq %rax, %rax
je 0x8ad7b
movq %rbx, 0x10(%rsp)
xorl %r13d, %r13d
xorl %r14d, %r14d
movq 0x8(%rsp), %rbx
movq $0x0, (%rsp)
movq (%rbx), %rdi
movq %r13, %rsi
callq 0x6f037
movq (%rax), %rbx
movq %r15, %r12
movq %r15, %rdi
leaq 0x5652a(%rip), %rsi     # 0xe1196
leaq 0x6238e(%rip), %rdx     # 0xed001
movq %rsp, %rcx
xorl %r8d, %r8d
movq %rbp, %r9
callq 0x5393e
cmpl $0x1, %eax
je 0x8ac90
cmpl $0x2, %eax
jne 0x8ac9e
jmp 0x8ad74
movabsq $0x4030000000000000, %rax # imm = 0x4030000000000000
movq %rax, (%rsp)
movq %rbx, %rdi
callq 0x8e16d
movq %rbp, %r15
movq %rax, %rbp
movq %rbx, %rdi
callq 0x8e1b8
movq %r12, %rdi
movq %rbp, %rsi
movq %r15, %rbp
leaq 0x6233d(%rip), %rdx     # 0xed001
movq %rsp, %rcx
movq %rax, %r8
movq %r15, %r9
callq 0x5393e
cmpl $0x2, %eax
je 0x8ad74
movq %r14, %xmm1
punpckldq 0x56798(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x567a0(%rip), %xmm1    # 0xe1490
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movsd (%rsp), %xmm1
callq 0x7a42f
movsd (%rsp), %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
subsd 0x5fa45(%rip), %xmm0    # 0xea760
cvttsd2si %xmm0, %rsi
sarq $0x3f, %rdx
andq %rdx, %rsi
orq %rcx, %rsi
testb %al, %al
cmovneq %rsi, %r14
incq %r13
movq 0x8(%rsp), %rbx
movq (%rbx), %rdi
callq 0x6f310
cmpq %rax, %r13
movq %r12, %r15
jb 0x8ac49
movq %r14, %xmm1
punpckldq 0x56727(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x5672f(%rip), %xmm1    # 0xe1490
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq 0x10(%rsp), %rbx
jmp 0x8ad7f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x8ad85
xorpd %xmm0, %xmm0
movsd %xmm0, (%rbx)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2136b