// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/gt_sketch_page.c
// Function: draw_header
static void draw_header(cairo_t *cr, const char *text, GT_UNUSED const char *fn,
                        const char *seqid, GT_UNUSED GtUword pagenum,
                        GT_UNUSED double width, GT_UNUSED double height,
                        double theight)
{
  cairo_text_extents_t ext;
  time_t t;
  char buffer[BUFSIZ];
  struct tm *tmp;
  double xpos = TEXT_SPACER;
  cairo_save(cr);
  t = time(NULL);
  tmp = localtime(&t);
  cairo_set_font_size(cr, theight);
  if (tmp)
  {
    (void) strftime(buffer, BUFSIZ, TIME_DATE_FORMAT, tmp);
    cairo_text_extents(cr, buffer, &ext);
    cairo_move_to(cr, width - TEXT_SPACER - ext.width, TEXT_SPACER
                    + theight);
    cairo_set_source_rgba(cr, 0,0,0,1);
    cairo_show_text(cr, buffer);
  }
  cairo_text_extents(cr, text, &ext);
  cairo_move_to(cr, xpos, TEXT_SPACER + theight);
  cairo_set_source_rgba(cr, 0,0,0,1);
  cairo_show_text(cr, text);
  xpos += ext.width+3;
  cairo_move_to(cr, xpos, TEXT_SPACER + theight);
  cairo_set_source_rgba(cr, 0.7, 0.7, 0.7, 1);
  cairo_show_text(cr, ", sequence region: ");
  cairo_text_extents(cr, ", sequence region: ", &ext);
  xpos += ext.width + 10;
  cairo_set_source_rgba(cr, 0,0,0,1);
  cairo_show_text(cr, seqid);
  xpos = TEXT_SPACER;
  cairo_move_to(cr, xpos, height - 2*TEXT_SPACER - theight);
  (void) snprintf(buffer, BUFSIZ, "Page "GT_WU"", pagenum+1);
  cairo_show_text(cr, buffer);
  cairo_restore(cr);
}

// Assembly:
subq $0x2088, %rsp           # imm = 0x2088
movq %rdi, 0x2080(%rsp)
movq %rsi, 0x2078(%rsp)
movq %rdx, 0x2070(%rsp)
movq %rcx, 0x2068(%rsp)
movq %r8, 0x2060(%rsp)
movsd %xmm0, 0x2058(%rsp)
movsd %xmm1, 0x2050(%rsp)
movsd %xmm2, 0x2048(%rsp)
movsd 0x2259ae(%rip), %xmm0   # 0x54e260
movsd %xmm0, (%rsp)
movq 0x2080(%rsp), %rdi
callq 0x19460
xorl %eax, %eax
movl %eax, %edi
callq 0x196e0
movq %rax, 0x2010(%rsp)
leaq 0x2010(%rsp), %rdi
callq 0x19510
movq %rax, 0x8(%rsp)
movq 0x2080(%rsp), %rdi
movsd 0x2048(%rsp), %xmm0
callq 0x199e0
cmpq $0x0, 0x8(%rsp)
je 0x3289aa
leaq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rcx
movl $0x2000, %esi           # imm = 0x2000
leaq 0x270136(%rip), %rdx    # 0x598a55
callq 0x19600
movq 0x2080(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x2018(%rsp), %rdx
callq 0x19b20
movq 0x2080(%rsp), %rdi
movsd 0x2058(%rsp), %xmm0
movsd 0x225909(%rip), %xmm1   # 0x54e260
subsd %xmm1, %xmm0
subsd 0x2028(%rsp), %xmm0
movsd 0x2258f4(%rip), %xmm1   # 0x54e260
addsd 0x2048(%rsp), %xmm1
callq 0x19270
movq 0x2080(%rsp), %rdi
xorps %xmm2, %xmm2
movsd 0x1ee8b3(%rip), %xmm3   # 0x517240
movaps %xmm2, %xmm0
movaps %xmm2, %xmm1
callq 0x19400
movq 0x2080(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x19110
movq 0x2080(%rsp), %rdi
movq 0x2078(%rsp), %rsi
leaq 0x2018(%rsp), %rdx
callq 0x19b20
movq 0x2080(%rsp), %rdi
movsd (%rsp), %xmm0
movsd 0x225884(%rip), %xmm1   # 0x54e260
addsd 0x2048(%rsp), %xmm1
callq 0x19270
movq 0x2080(%rsp), %rdi
xorps %xmm2, %xmm2
movsd 0x1ee843(%rip), %xmm3   # 0x517240
movaps %xmm2, %xmm0
movaps %xmm2, %xmm1
callq 0x19400
movq 0x2080(%rsp), %rdi
movq 0x2078(%rsp), %rsi
callq 0x19110
movsd 0x26b313(%rip), %xmm0   # 0x593d38
addsd 0x2028(%rsp), %xmm0
addsd (%rsp), %xmm0
movsd %xmm0, (%rsp)
movq 0x2080(%rsp), %rdi
movsd (%rsp), %xmm0
movsd 0x225813(%rip), %xmm1   # 0x54e260
addsd 0x2048(%rsp), %xmm1
callq 0x19270
movq 0x2080(%rsp), %rdi
movsd 0x26fcc5(%rip), %xmm2   # 0x598730
movsd 0x1ee7cd(%rip), %xmm3   # 0x517240
movaps %xmm2, %xmm0
movaps %xmm2, %xmm1
callq 0x19400
movq 0x2080(%rsp), %rdi
leaq 0x26ffda(%rip), %rsi    # 0x598a67
callq 0x19110
movq 0x2080(%rsp), %rdi
leaq 0x26ffc6(%rip), %rsi    # 0x598a67
leaq 0x2018(%rsp), %rdx
callq 0x19b20
movsd 0x1fd5ca(%rip), %xmm0   # 0x526080
addsd 0x2028(%rsp), %xmm0
addsd (%rsp), %xmm0
movsd %xmm0, (%rsp)
movq 0x2080(%rsp), %rdi
xorps %xmm2, %xmm2
movsd 0x1ee764(%rip), %xmm3   # 0x517240
movaps %xmm2, %xmm0
movaps %xmm2, %xmm1
callq 0x19400
movq 0x2080(%rsp), %rdi
movq 0x2068(%rsp), %rsi
callq 0x19110
movsd 0x22575c(%rip), %xmm0   # 0x54e260
movsd %xmm0, (%rsp)
movq 0x2080(%rsp), %rdi
movsd (%rsp), %xmm0
movsd 0x2050(%rsp), %xmm1
movsd 0x23a259(%rip), %xmm2   # 0x562d80
subsd %xmm2, %xmm1
subsd 0x2048(%rsp), %xmm1
callq 0x19270
leaq 0x10(%rsp), %rdi
movq 0x2060(%rsp), %rcx
addq $0x1, %rcx
movl $0x2000, %esi           # imm = 0x2000
leaq 0x26ff25(%rip), %rdx    # 0x598a7b
movb $0x0, %al
callq 0x19b90
movq 0x2080(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x19110
movq 0x2080(%rsp), %rdi
callq 0x19be0
addq $0x2088, %rsp           # imm = 0x2088
retq
nopw %cs:(%rax,%rax)
nop