// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x78, %rsp
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movq %rdx, 0x58(%rsp)
movq %rcx, 0x50(%rsp)
movq $0x0, 0x48(%rsp)
movl $0x0, 0x44(%rsp)
cmpq $0x0, 0x68(%rsp)
je 0xb1179
cmpq $0x0, 0x58(%rsp)
jne 0xb11b1
movq 0x102e58(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xacedc(%rip), %rsi     # 0x15e066
leaq 0xc307e(%rip), %rdx     # 0x17420f
leaq 0xc3084(%rip), %rcx     # 0x17421c
leaq 0xc2db2(%rip), %r8      # 0x173f51
movl $0x13b, %r9d            # imm = 0x13B
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xb11b3
movq $0x0, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rdi
callq 0x76490
movq %rax, %rcx
movq 0x20(%rsp), %rax
cmpq %rcx, %rax
jae 0xb1348
movq $0x0, 0x28(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rdi
movq 0x38(%rsp), %rsi
callq 0x75c80
movq (%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %r9
leaq 0xacf7e(%rip), %rsi     # 0x15e196
leaq 0xb9032(%rip), %rdx     # 0x16a251
xorl %eax, %eax
movl %eax, %r8d
leaq 0x28(%rsp), %rcx
callq 0x49af0
movl %eax, 0x44(%rsp)
movl 0x44(%rsp), %eax
movl %eax, 0x1c(%rsp)
subl $0x1, %eax
je 0xb1259
jmp 0xb1241
movl 0x1c(%rsp), %eax
subl $0x2, %eax
jne 0xb1269
jmp 0xb124c
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0xb1381
movsd 0xb8c9f(%rip), %xmm0    # 0x169f00
movsd %xmm0, 0x28(%rsp)
jmp 0xb126b
jmp 0xb126b
movq 0x58(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
callq 0xb6d90
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rdi
callq 0xb6f20
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rax, %r8
movq 0x50(%rsp), %r9
leaq 0xb8faa(%rip), %rdx     # 0x16a251
leaq 0x28(%rsp), %rcx
callq 0x49af0
movl %eax, 0x44(%rsp)
cmpl $0x2, 0x44(%rsp)
jne 0xb12c9
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0xb1381
movaps 0xad1b0(%rip), %xmm1    # 0x15e480
movq 0x48(%rsp), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0xad1ae(%rip), %xmm1    # 0x15e490
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd 0x28(%rsp), %xmm1
callq 0x8c360
testb $0x1, %al
jne 0xb1302
jmp 0xb1333
movsd 0x28(%rsp), %xmm0
movsd 0xb6618(%rip), %xmm2    # 0x167928
movaps %xmm0, %xmm1
subsd %xmm2, %xmm1
cvttsd2si %xmm1, %rcx
cvttsd2si %xmm0, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
andq %rdx, %rcx
orq %rcx, %rax
movq %rax, 0x48(%rsp)
jmp 0xb1335
movq 0x38(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x38(%rsp)
jmp 0xb11bc
movaps 0xad131(%rip), %xmm1    # 0x15e480
movq 0x48(%rsp), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0xad12f(%rip), %xmm1    # 0x15e490
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq 0x60(%rsp), %rax
movsd %xmm0, (%rax)
movl $0x0, 0x74(%rsp)
movl 0x74(%rsp), %eax
addq $0x78, %rsp
retq
nopw (%rax,%rax)