// File: /workspace/github_c_makefile_star2_O1/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
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movl 0x8f25(%rip), %r12d     # 0x10328
testq %r12, %r12
je 0x7425
movq 0x8f21(%rip), %rax      # 0x10330
xorl %ebx, %ebx
cmpq $0x0, (%rax,%rbx,8)
je 0x7427
incq %rbx
cmpl %ebx, %r12d
jne 0x7411
movl %r12d, %ebx
jmp 0x7427
xorl %ebx, %ebx
cmpl %r12d, %ebx
jne 0x74b5
leal 0x1(%r12), %eax
movl %eax, 0x8eed(%rip)      # 0x10328
andl $0x7f, %eax
cmpl $0x1, %eax
jne 0x74b5
movq 0x8ee6(%rip), %rdi      # 0x10330
addl $0x81, %r12d
leaq (,%r12,8), %r13
movq %r13, %rsi
callq 0x2370
movq %rax, %rbp
movq %rax, 0x8ec5(%rip)      # 0x10330
movq 0x8ec6(%rip), %rdi      # 0x10338
movq %r13, %rsi
callq 0x2370
movq %rax, %r13
movq %rax, 0x8eb4(%rip)      # 0x10338
movq 0x8eb5(%rip), %rdi      # 0x10340
movq %r12, %rsi
callq 0x2370
movq %rax, 0x8ea6(%rip)      # 0x10340
testq %rbp, %rbp
je 0x758d
testq %r13, %r13
je 0x758d
testq %rax, %rax
je 0x758d
movq 0x8e84(%rip), %rax      # 0x10340
movl %ebx, %r12d
movb $0x0, (%rax,%r12)
movq 0x8e6d(%rip), %rax      # 0x10338
movq %r15, (%rax,%r12,8)
movq %r14, %rdi
callq 0x2390
movq 0x8e52(%rip), %rcx      # 0x10330
movq %rax, (%rcx,%r12,8)
testq %rax, %rax
je 0x7504
incl 0x8e5b(%rip)            # 0x10348
incl 0x8e59(%rip)            # 0x1034c
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x408d(%rip), %rdi      # 0xb598
xorl %eax, %eax
callq 0x2030
movq 0x8d4f(%rip), %rcx      # 0x10268
testq %rcx, %rcx
je 0x7534
leaq 0x4073(%rip), %rdi      # 0xb598
movl $0x24, %esi
movl $0x1, %edx
callq 0x23b0
leaq 0x3d02(%rip), %rdi      # 0xb23d
leaq 0x50b7(%rip), %rsi      # 0xc5f9
leaq 0x3d04(%rip), %rdx      # 0xb24d
movl $0x207, %ecx            # imm = 0x207
xorl %eax, %eax
callq 0x2030
movq 0x8d0c(%rip), %rdi      # 0x10268
testq %rdi, %rdi
je 0x7583
leaq 0x3cd5(%rip), %rsi      # 0xb23d
leaq 0x508a(%rip), %rdx      # 0xc5f9
leaq 0x3cd7(%rip), %rcx      # 0xb24d
movl $0x207, %r8d            # imm = 0x207
xorl %eax, %eax
callq 0x22d0
movl $0x1, %edi
callq 0x2230
leaq 0x4004(%rip), %rdi      # 0xb598
xorl %eax, %eax
callq 0x2030
movq 0x8cc6(%rip), %rcx      # 0x10268
testq %rcx, %rcx
je 0x75bd
leaq 0x3fea(%rip), %rdi      # 0xb598
movl $0x24, %esi
movl $0x1, %edx
callq 0x23b0
leaq 0x3c79(%rip), %rdi      # 0xb23d
leaq 0x502e(%rip), %rsi      # 0xc5f9
leaq 0x3c7b(%rip), %rdx      # 0xb24d
movl $0x1fe, %ecx            # imm = 0x1FE
xorl %eax, %eax
callq 0x2030
movq 0x8c83(%rip), %rdi      # 0x10268
testq %rdi, %rdi
je 0x7583
leaq 0x3c4c(%rip), %rsi      # 0xb23d
leaq 0x5001(%rip), %rdx      # 0xc5f9
leaq 0x3c4e(%rip), %rcx      # 0xb24d
movl $0x1fe, %r8d            # imm = 0x1FE
jmp 0x757c