// File: /workspace/github_c_makefile_star2_O2/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 0x99f4(%rip), %r14d     # 0x10328
xorl %ebx, %ebx
movq 0x99f3(%rip), %r12      # 0x10330
cmpl %ebx, %r14d
je 0x694f
movl %ebx, %eax
cmpq $0x0, (%r12,%rax,8)
je 0x6954
incl %ebx
jmp 0x693d
movl %r14d, %ebx
jmp 0x695d
cmpl %ebx, %r14d
jne 0x6a00
leal 0x1(%r14), %eax
movl %eax, 0x99c1(%rip)      # 0x10328
andl $0x7f, %eax
movq 0x99cf(%rip), %r13      # 0x10340
movq 0x99c0(%rip), %rbp      # 0x10338
cmpl $0x1, %eax
jne 0x6a0e
movq %rsi, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
addl $0x81, %r14d
leaq (,%r14,8), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x2370
movq %rax, %r12
movq %rax, 0x9981(%rip)      # 0x10330
movq %rbp, %rdi
movq %r15, %rsi
callq 0x2370
movq %rax, %rbp
movq %rax, 0x9974(%rip)      # 0x10338
movq %r13, %rdi
movq %r14, %rsi
callq 0x2370
movq %rax, 0x996a(%rip)      # 0x10340
testq %r12, %r12
je 0x6ac1
testq %rbp, %rbp
je 0x6ac1
movq %rax, %r13
testq %rax, %rax
je 0x6ac1
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
jmp 0x6a0e
movq 0x9939(%rip), %r13      # 0x10340
movq 0x992a(%rip), %rbp      # 0x10338
movl %ebx, %r14d
movb $0x0, (%r13,%r14)
movq %rsi, (%rbp,%r14,8)
callq 0x2390
movq %rax, (%r12,%r14,8)
testq %rax, %rax
je 0x6a47
incl 0x9918(%rip)            # 0x10348
incl 0x9916(%rip)            # 0x1034c
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4b4a(%rip), %rdi      # 0xb598
xorl %eax, %eax
callq 0x2030
movq 0x980c(%rip), %rcx      # 0x10268
testq %rcx, %rcx
je 0x6a73
leaq 0x4b30(%rip), %rdi      # 0xb598
pushq $0x24
popq %rsi
pushq $0x1
popq %rdx
callq 0x23b0
leaq 0x47c3(%rip), %rdi      # 0xb23d
leaq 0x5b78(%rip), %rsi      # 0xc5f9
leaq 0x47c5(%rip), %rdx      # 0xb24d
movl $0x207, %ecx            # imm = 0x207
xorl %eax, %eax
callq 0x2030
movq 0x97cd(%rip), %rdi      # 0x10268
testq %rdi, %rdi
je 0x6b3c
leaq 0x4792(%rip), %rsi      # 0xb23d
leaq 0x5b47(%rip), %rdx      # 0xc5f9
leaq 0x4794(%rip), %rcx      # 0xb24d
movl $0x207, %r8d            # imm = 0x207
jmp 0x6b35
leaq 0x4ad0(%rip), %rdi      # 0xb598
xorl %eax, %eax
callq 0x2030
movq 0x9792(%rip), %rcx      # 0x10268
testq %rcx, %rcx
je 0x6aed
leaq 0x4ab6(%rip), %rdi      # 0xb598
pushq $0x24
popq %rsi
pushq $0x1
popq %rdx
callq 0x23b0
leaq 0x4749(%rip), %rdi      # 0xb23d
leaq 0x5afe(%rip), %rsi      # 0xc5f9
leaq 0x474b(%rip), %rdx      # 0xb24d
movl $0x1fe, %ecx            # imm = 0x1FE
xorl %eax, %eax
callq 0x2030
movq 0x9753(%rip), %rdi      # 0x10268
testq %rdi, %rdi
je 0x6b3c
leaq 0x471c(%rip), %rsi      # 0xb23d
leaq 0x5ad1(%rip), %rdx      # 0xc5f9
leaq 0x471e(%rip), %rcx      # 0xb24d
movl $0x1fe, %r8d            # imm = 0x1FE
xorl %eax, %eax
callq 0x22d0
pushq $0x1
popq %rdi
callq 0x2230