// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/queue-inline.h
// Function: extendqueuesize
static inline void extendqueuesize(GtInl_Queue *q,bool doublesize)
{
  GtUword addconst, idx, newsize;

  gt_assert(q != NULL);
  if (doublesize)
  {
    addconst = q->queuesize;
  } else
  {
    addconst = GT_MIN(1024UL,q->queuesize);
  }
  newsize = q->queuesize + addconst;
  q->queuespace = gt_realloc(q->queuespace,sizeof (*q->queuespace) * newsize);
  gt_assert(q->enqueueindex == q->dequeueindex);
  gt_assert(addconst > 0);
  for (idx=q->queuesize-1; idx>q->enqueueindex; idx--)
  {
    q->queuespace[idx+addconst] = q->queuespace[idx];
  }
  q->enqueueindex += addconst;
  /*
  printf("from queue of size "GT_WU" to queue of size "GT_WU"\n",q->queuesize,
         newsize);
  printf("now enqueindex="GT_WU",dequeuindex="GT_WU"\n",
         q->enqueueindex,q->dequeueindex);
  */
  q->queuesize = newsize;
}

// Assembly:
subq $0x38, %rsp
movb %sil, %al
movq %rdi, 0x30(%rsp)
andb $0x1, %al
movb %al, 0x2f(%rsp)
cmpq $0x0, 0x30(%rsp)
jne 0x9dd12
movq 0x1162f7(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xc037b(%rip), %rsi     # 0x15e066
leaq 0xe80a7(%rip), %rdx     # 0x185d99
leaq 0xd36ca(%rip), %rcx     # 0x1713c3
leaq 0xd3608(%rip), %r8      # 0x171308
movl $0x5c, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x9dd14
testb $0x1, 0x2f(%rsp)
je 0x9dd2b
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x20(%rsp)
jmp 0x9dd5f
movq 0x30(%rsp), %rcx
movl $0x400, %eax            # imm = 0x400
cmpq 0x18(%rcx), %rax
jae 0x9dd47
movl $0x400, %eax            # imm = 0x400
movq %rax, 0x8(%rsp)
jmp 0x9dd55
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rax
addq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rax
movq (%rax), %rdi
movq 0x10(%rsp), %rsi
shlq $0x0, %rsi
leaq 0xd357e(%rip), %rdx     # 0x171308
movl $0x65, %ecx
callq 0xd730
movq %rax, %rcx
movq 0x30(%rsp), %rax
movq %rcx, (%rax)
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x30(%rsp), %rcx
cmpq 0x10(%rcx), %rax
je 0x9ddeb
movq 0x11621e(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xc02a2(%rip), %rsi     # 0x15e066
leaq 0xd3608(%rip), %rdx     # 0x1713d3
leaq 0xd35f1(%rip), %rcx     # 0x1713c3
leaq 0xd352f(%rip), %r8      # 0x171308
movl $0x66, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x9dded
jmp 0x9ddef
cmpq $0x0, 0x20(%rsp)
ja 0x9de2f
movq 0x1161da(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xc025e(%rip), %rsi     # 0x15e066
leaq 0xd35e7(%rip), %rdx     # 0x1713f6
leaq 0xd35ad(%rip), %rcx     # 0x1713c3
leaq 0xd34eb(%rip), %r8      # 0x171308
movl $0x67, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x9de31
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rax
subq $0x1, %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jbe 0x9de88
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rcx
movb (%rax,%rcx), %dl
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rcx
addq 0x20(%rsp), %rcx
movb %dl, (%rax,%rcx)
movq 0x18(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x18(%rsp)
jmp 0x9de43
movq 0x20(%rsp), %rcx
movq 0x30(%rsp), %rax
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x18(%rax)
addq $0x38, %rsp
retq
nopl (%rax)