// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/diagram.c
// Function: get_caption_display_status
static int get_caption_display_status(GtDiagram *d, const char *gft,
                                      bool *result, GtError *err)
{
  bool *status;
  gt_assert(d && gft);
  status = (bool*) gt_hashmap_get(d->caption_display_status, gft);
  if (!status)
  {
    GtUword threshold = GT_UNDEF_UWORD;
    double tmp = GT_UNDEF_DOUBLE;
    status = gt_malloc(sizeof (bool));
    *status = true;
    if (gt_style_get_bool(d->style, "format", "show_block_captions", status,
                          NULL, err) == GT_STYLE_QUERY_ERROR) {
      gt_free(status);
      return -1;
    }
    if (*status)
    {
      GtStyleQueryStatus rval;
      rval = gt_style_get_num(d->style,
                              gft, "max_capt_show_width",
                              &tmp, NULL, err);
      switch (rval) {
        case GT_STYLE_QUERY_ERROR:
          gt_free(status);
          return -1;
          break; /* should never reach this */
        case GT_STYLE_QUERY_NOT_SET:
          *status = true;
          break;
        default:
          gt_assert(tmp != GT_UNDEF_DOUBLE);
          threshold = tmp;
          gt_assert(((GtUword) tmp) != GT_UNDEF_UWORD);
          *status = (gt_range_length(&d->range) <= threshold);
          break;
      }
        *status = (gt_range_length(&d->range) <= threshold);
    }
    gt_hashmap_add(d->caption_display_status, (void*) gft, status);
  }
  *result = *status;
  return 0;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
cmpq $0x0, 0x38(%rsp)
je 0x3dd68
cmpq $0x0, 0x30(%rsp)
jne 0x3dda0
movq 0x176269(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1202ed(%rip), %rsi    # 0x15e066
leaq 0x129ece(%rip), %rdx    # 0x167c4e
leaq 0x129ed0(%rip), %rcx    # 0x167c57
leaq 0x129bc9(%rip), %r8     # 0x167957
movl $0xaf, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x3dda2
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x30(%rsp), %rsi
callq 0x86470
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0x3e01d
movq $-0x1, 0x10(%rsp)
movsd 0x120a29(%rip), %xmm0   # 0x15e800
movsd %xmm0, 0x8(%rsp)
movl $0x1, %edi
leaq 0x129b6e(%rip), %rsi    # 0x167957
movl $0xb5, %edx
callq 0xd2e0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movb $0x1, (%rax)
movq 0x38(%rsp), %rax
movq 0x28(%rax), %rdi
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %r9
leaq 0x12037c(%rip), %rsi    # 0x15e196
leaq 0x129e51(%rip), %rdx    # 0x167c72
xorl %eax, %eax
movl %eax, %r8d
callq 0x4a140
cmpl $0x2, %eax
jne 0x3de53
movq 0x18(%rsp), %rdi
leaq 0x129b1b(%rip), %rsi    # 0x167957
movl $0xb9, %edx
callq 0xdab0
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
jmp 0x3e036
movq 0x18(%rsp), %rax
testb $0x1, (%rax)
je 0x3e005
movq 0x38(%rsp), %rax
movq 0x28(%rax), %rdi
movq 0x30(%rsp), %rsi
movq 0x20(%rsp), %r9
leaq 0x129e0b(%rip), %rdx    # 0x167c86
xorl %eax, %eax
movl %eax, %r8d
leaq 0x8(%rsp), %rcx
callq 0x49af0
movl %eax, 0x4(%rsp)
movl 0x4(%rsp), %eax
movl %eax, (%rsp)
subl $0x1, %eax
je 0x3dec9
jmp 0x3de9c
movl (%rsp), %eax
subl $0x2, %eax
jne 0x3ded6
jmp 0x3dea6
movq 0x18(%rsp), %rdi
leaq 0x129aa5(%rip), %rsi    # 0x167957
movl $0xc4, %edx
callq 0xdab0
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
jmp 0x3e036
movq 0x18(%rsp), %rax
movb $0x1, (%rax)
jmp 0x3dfe5
jmp 0x3ded8
movsd 0x8(%rsp), %xmm0
movsd 0x12091a(%rip), %xmm1   # 0x15e800
ucomisd %xmm1, %xmm0
jne 0x3df26
jp 0x3df26
movq 0x1760e3(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x120167(%rip), %rsi    # 0x15e066
leaq 0x129d94(%rip), %rdx    # 0x167c9a
leaq 0x129d4a(%rip), %rcx    # 0x167c57
leaq 0x129a43(%rip), %r8     # 0x167957
movl $0xcb, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x3df28
movsd 0x8(%rsp), %xmm0
movsd 0x1299f2(%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, 0x10(%rsp)
movsd 0x8(%rsp), %xmm0
movsd 0x1299c1(%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
cmpq $-0x1, %rax
jne 0x3dfc3
movq 0x176046(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1200ca(%rip), %rsi    # 0x15e066
leaq 0x129d0e(%rip), %rdx    # 0x167cb1
leaq 0x129cad(%rip), %rcx    # 0x167c57
leaq 0x1299a6(%rip), %r8     # 0x167957
movl $0xcd, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x3dfc5
movq 0x38(%rsp), %rdi
addq $0x40, %rdi
callq 0x93bd0
cmpq 0x10(%rsp), %rax
setbe %cl
movq 0x18(%rsp), %rax
andb $0x1, %cl
movb %cl, (%rax)
movq 0x38(%rsp), %rdi
addq $0x40, %rdi
callq 0x93bd0
cmpq 0x10(%rsp), %rax
setbe %cl
movq 0x18(%rsp), %rax
andb $0x1, %cl
movb %cl, (%rax)
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x30(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x86510
movq 0x18(%rsp), %rax
movb (%rax), %cl
movq 0x28(%rsp), %rax
andb $0x1, %cl
movb %cl, (%rax)
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nop