// File: /workspace/github_c_makefile_star2_O3/mabdi[P]bunney/bunny-main.c
// Function: add_queue
static _u32 add_queue(_u8* indir, struct bunny_traceitem* ref) {
  _u32 i;

  for (i=0;i<queue_len;i++) 
    if (!queue_fn[i]) break;

  if (i == queue_len) {
    queue_len++;
    if ((queue_len % ALLOC_CHUNK) == 1) {
      queue_fn = realloc(queue_fn,(queue_len + ALLOC_CHUNK) * sizeof(_u8*));
      queue_ck = realloc(queue_ck,(queue_len + ALLOC_CHUNK) * sizeof(struct bunny_traceitem*));
      queue_af = realloc(queue_af,(queue_len + ALLOC_CHUNK) * sizeof(_u8));
      if (!queue_fn || !queue_ck || !queue_af) fatal("out of memory");
    }

  }

  queue_af[i] = 0;
  queue_ck[i] = ref;
  queue_fn[i] = strdup(indir);

  if (!queue_fn[i]) fatal("out of memory");

  total_queue++;
  queue_real++;

  return i;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl 0x8ebc(%rip), %r12d     # 0x10328
testq %r12, %r12
je 0x748f
movq 0x8eb8(%rip), %rax      # 0x10330
xorl %r14d, %r14d
cmpq $0x0, (%rax,%r14,8)
je 0x7492
incq %r14
cmpl %r14d, %r12d
jne 0x747b
movl %r12d, %r14d
jmp 0x749b
xorl %r14d, %r14d
cmpl %r12d, %r14d
jne 0x7546
leal 0x1(%r12), %eax
movl %eax, 0x8e82(%rip)      # 0x10328
andl $0x7f, %eax
movq 0x8e90(%rip), %rbp      # 0x10340
movq 0x8e81(%rip), %rbx      # 0x10338
movq 0x8e72(%rip), %r13      # 0x10330
cmpl $0x1, %eax
jne 0x755b
movq %rsi, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
addl $0x81, %r12d
leaq (,%r12,8), %r15
movq %r13, %rdi
movq %r15, %rsi
callq 0x2370
movq %rax, %r13
movq %rax, 0x8e3b(%rip)      # 0x10330
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2370
movq %rax, %rbx
movq %rax, 0x8e2e(%rip)      # 0x10338
movq %rbp, %rdi
movq %r12, %rsi
callq 0x2370
movq %rax, 0x8e24(%rip)      # 0x10340
testq %r13, %r13
je 0x7613
testq %rbx, %rbx
je 0x7613
movq %rax, %rbp
testq %rax, %rax
je 0x7613
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
jmp 0x755b
movq 0x8df3(%rip), %rbp      # 0x10340
movq 0x8de4(%rip), %rbx      # 0x10338
movq 0x8dd5(%rip), %r13      # 0x10330
movl %r14d, %r15d
movb $0x0, (%rbp,%r15)
movq %rsi, (%rbx,%r15,8)
callq 0x2390
movq %rax, (%r13,%r15,8)
testq %rax, %rax
je 0x7595
incl 0x8dcb(%rip)            # 0x10348
incl 0x8dc9(%rip)            # 0x1034c
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3ffc(%rip), %rdi      # 0xb598
xorl %eax, %eax
callq 0x2030
movq 0x8cbe(%rip), %rcx      # 0x10268
testq %rcx, %rcx
je 0x75c5
leaq 0x3fe2(%rip), %rdi      # 0xb598
movl $0x24, %esi
movl $0x1, %edx
callq 0x23b0
leaq 0x3c71(%rip), %rdi      # 0xb23d
leaq 0x5026(%rip), %rsi      # 0xc5f9
leaq 0x3c73(%rip), %rdx      # 0xb24d
movl $0x207, %ecx            # imm = 0x207
xorl %eax, %eax
callq 0x2030
movq 0x8c7b(%rip), %rdi      # 0x10268
testq %rdi, %rdi
je 0x7692
leaq 0x3c40(%rip), %rsi      # 0xb23d
leaq 0x4ff5(%rip), %rdx      # 0xc5f9
leaq 0x3c42(%rip), %rcx      # 0xb24d
movl $0x207, %r8d            # imm = 0x207
jmp 0x768b
leaq 0x3f7e(%rip), %rdi      # 0xb598
xorl %eax, %eax
callq 0x2030
movq 0x8c40(%rip), %rcx      # 0x10268
testq %rcx, %rcx
je 0x7643
leaq 0x3f64(%rip), %rdi      # 0xb598
movl $0x24, %esi
movl $0x1, %edx
callq 0x23b0
leaq 0x3bf3(%rip), %rdi      # 0xb23d
leaq 0x4fa8(%rip), %rsi      # 0xc5f9
leaq 0x3bf5(%rip), %rdx      # 0xb24d
movl $0x1fe, %ecx            # imm = 0x1FE
xorl %eax, %eax
callq 0x2030
movq 0x8bfd(%rip), %rdi      # 0x10268
testq %rdi, %rdi
je 0x7692
leaq 0x3bc6(%rip), %rsi      # 0xb23d
leaq 0x4f7b(%rip), %rdx      # 0xc5f9
leaq 0x3bc8(%rip), %rcx      # 0xb24d
movl $0x1fe, %r8d            # imm = 0x1FE
xorl %eax, %eax
callq 0x22d0
movl $0x1, %edi
callq 0x2230