// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl 0xc488(%rip), %eax      # 0x12398
jae 0x5f32
movq 0xc487(%rip), %rax      # 0x123a0
movl -0x14(%rbp), %ecx
cmpq $0x0, (%rax,%rcx,8)
jne 0x5f25
jmp 0x5f32
jmp 0x5f27
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x5f07
movl -0x14(%rbp), %eax
cmpl 0xc45d(%rip), %eax      # 0x12398
jne 0x608f
movl 0xc451(%rip), %eax      # 0x12398
addl $0x1, %eax
movl %eax, 0xc448(%rip)      # 0x12398
movl 0xc442(%rip), %eax      # 0x12398
andl $0x7f, %eax
cmpl $0x1, %eax
jne 0x608d
movq 0xc437(%rip), %rdi      # 0x123a0
movl 0xc429(%rip), %eax      # 0x12398
addl $0x80, %eax
movl %eax, %eax
movl %eax, %esi
shlq $0x3, %rsi
callq 0x2360
movq %rax, 0xc418(%rip)      # 0x123a0
movq 0xc419(%rip), %rdi      # 0x123a8
movl 0xc403(%rip), %eax      # 0x12398
addl $0x80, %eax
movl %eax, %eax
movl %eax, %esi
shlq $0x3, %rsi
callq 0x2360
movq %rax, 0xc3fa(%rip)      # 0x123a8
movq 0xc3fb(%rip), %rdi      # 0x123b0
movl 0xc3dd(%rip), %eax      # 0x12398
addl $0x80, %eax
movl %eax, %eax
movl %eax, %esi
shlq $0x0, %rsi
callq 0x2360
movq %rax, 0xc3dc(%rip)      # 0x123b0
cmpq $0x0, 0xc3c4(%rip)      # 0x123a0
je 0x5ff6
cmpq $0x0, 0xc3c2(%rip)      # 0x123a8
je 0x5ff6
cmpq $0x0, 0xc3c0(%rip)      # 0x123b0
jne 0x608b
jmp 0x5ff8
jmp 0x5ffa
leaq 0x850b(%rip), %rdi      # 0xe50c
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0xc2c8(%rip)      # 0x122d8
je 0x6027
movq 0xc2bf(%rip), %rdi      # 0x122d8
leaq 0x84ec(%rip), %rsi      # 0xe50c
movb $0x0, %al
callq 0x22d0
jmp 0x6029
jmp 0x602b
leaq 0x817f(%rip), %rdi      # 0xe1b1
leaq 0x9534(%rip), %rsi      # 0xf56d
leaq 0x8181(%rip), %rdx      # 0xe1c1
movl $0x1fe, %ecx            # imm = 0x1FE
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0xc284(%rip)      # 0x122d8
je 0x607f
movq 0xc27b(%rip), %rdi      # 0x122d8
leaq 0x814d(%rip), %rsi      # 0xe1b1
leaq 0x9502(%rip), %rdx      # 0xf56d
leaq 0x814f(%rip), %rcx      # 0xe1c1
movl $0x1fe, %r8d            # imm = 0x1FE
movb $0x0, %al
callq 0x22d0
jmp 0x6081
movl $0x1, %edi
callq 0x2250
jmp 0x608d
jmp 0x608f
movq 0xc31a(%rip), %rax      # 0x123b0
movl -0x14(%rbp), %ecx
movb $0x0, (%rax,%rcx)
movq -0x10(%rbp), %rdx
movq 0xc300(%rip), %rax      # 0x123a8
movl -0x14(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x8(%rbp), %rdi
callq 0x2380
movq %rax, %rdx
movq 0xc2de(%rip), %rax      # 0x123a0
movl -0x14(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq 0xc2d0(%rip), %rax      # 0x123a0
movl -0x14(%rbp), %ecx
cmpq $0x0, (%rax,%rcx,8)
jne 0x6173
jmp 0x60e0
jmp 0x60e2
leaq 0x8423(%rip), %rdi      # 0xe50c
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0xc1e0(%rip)      # 0x122d8
je 0x610f
movq 0xc1d7(%rip), %rdi      # 0x122d8
leaq 0x8404(%rip), %rsi      # 0xe50c
movb $0x0, %al
callq 0x22d0
jmp 0x6111
jmp 0x6113
leaq 0x8097(%rip), %rdi      # 0xe1b1
leaq 0x944c(%rip), %rsi      # 0xf56d
leaq 0x8099(%rip), %rdx      # 0xe1c1
movl $0x207, %ecx            # imm = 0x207
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0xc19c(%rip)      # 0x122d8
je 0x6167
movq 0xc193(%rip), %rdi      # 0x122d8
leaq 0x8065(%rip), %rsi      # 0xe1b1
leaq 0x941a(%rip), %rdx      # 0xf56d
leaq 0x8067(%rip), %rcx      # 0xe1c1
movl $0x207, %r8d            # imm = 0x207
movb $0x0, %al
callq 0x22d0
jmp 0x6169
movl $0x1, %edi
callq 0x2250
movl 0xc23f(%rip), %eax      # 0x123b8
addl $0x1, %eax
movl %eax, 0xc236(%rip)      # 0x123b8
movl 0xc234(%rip), %eax      # 0x123bc
addl $0x1, %eax
movl %eax, 0xc22b(%rip)      # 0x123bc
movl -0x14(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)