// File: /workspace/github_cpp_makefile_star2_O2/jkingan[P]ladyheather/heather.cpp
// Function: alloc_adev()
void alloc_adev()
{
#ifdef ADEV_STUFF
long i;

   // allocate memory for the adev data queues

   free_adev_queues(); // adev queue memory already allocated, free it

//   adev_q_size++;  // add an extra entry for overflow protection
   i = 0L;

   pps_adev_q = (OFS_SIZE *) calloc(adev_q_size+10L, sizeof (OFS_SIZE));
   if(pps_adev_q == 0) {
      sprintf(out, "Could not allocate %lu x %lu byte PPS adev queue",
                    (unsigned long) (adev_q_size), (unsigned long) sizeof(OFS_SIZE));
      error_exit(50, out);
   }

   osc_adev_q = (OFS_SIZE *) calloc(adev_q_size+10L, sizeof (OFS_SIZE));
   if(osc_adev_q == 0) {
      sprintf(out, "Could not allocate %lu x %lu byte OSC adev queue",
                    (unsigned long) (adev_q_size), (unsigned long) sizeof(OFS_SIZE));
      error_exit(50, out);
   }

   chc_adev_q = (OFS_SIZE *) calloc(adev_q_size+10L, sizeof (OFS_SIZE));
   if(chc_adev_q == 0) {
      sprintf(out, "Could not allocate %lu x %lu byte chC adev queue",
                    (unsigned long) (adev_q_size), (unsigned long) sizeof(OFS_SIZE));
      error_exit(50, out);
   }

   chd_adev_q = (OFS_SIZE *) calloc(adev_q_size+10L, sizeof (OFS_SIZE));
   if(chd_adev_q == 0) {
      sprintf(out, "Could not allocate %lu x %lu byte chD adev queue",
                    (unsigned long) (adev_q_size), (unsigned long) sizeof(OFS_SIZE));
      error_exit(50, out);
   }

   adev_q_allocated = 1;
#endif
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
callq 0xf937
movq 0x216bad(%rip), %rbx    # 0x226cd8
leaq 0xa(%rbx), %r14
pushq $0x8
popq %rsi
movq %r14, %rdi
callq 0x9220
movq %rax, 0x2169df(%rip)    # 0x226b20
testq %rax, %rax
jne 0x1017a
leaq 0x3160d3(%rip), %r14    # 0x326220
leaq 0xe40c7(%rip), %rsi     # 0xf421b
pushq $0x8
popq %rcx
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x9060
pushq $0x32
popq %rdi
movq %r14, %rsi
callq 0xb290
movq 0x216b62(%rip), %rbx    # 0x226cd8
leaq 0xa(%rbx), %r14
pushq $0x8
popq %rsi
movq %r14, %rdi
callq 0x9220
movq %rax, 0x2169e4(%rip)    # 0x226b70
testq %rax, %rax
jne 0x101c5
leaq 0x316088(%rip), %r14    # 0x326220
leaq 0xe40ad(%rip), %rsi     # 0xf424c
pushq $0x8
popq %rcx
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x9060
pushq $0x32
popq %rdi
movq %r14, %rsi
callq 0xb290
movq 0x216b17(%rip), %rbx    # 0x226cd8
leaq 0xa(%rbx), %r14
pushq $0x8
popq %rsi
movq %r14, %rdi
callq 0x9220
movq %rax, 0x2169e9(%rip)    # 0x226bc0
testq %rax, %rax
jne 0x10210
leaq 0x31603d(%rip), %r14    # 0x326220
leaq 0xe4093(%rip), %rsi     # 0xf427d
pushq $0x8
popq %rcx
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x9060
pushq $0x32
popq %rdi
movq %r14, %rsi
callq 0xb290
movq 0x216acc(%rip), %rbx    # 0x226cd8
leaq 0xa(%rbx), %r14
pushq $0x8
popq %rsi
movq %r14, %rdi
callq 0x9220
movq %rax, 0x2169ee(%rip)    # 0x226c10
testq %rax, %rax
jne 0x10250
leaq 0x315ff2(%rip), %r14    # 0x326220
leaq 0xe4079(%rip), %rsi     # 0xf42ae
pushq $0x8
popq %rcx
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x9060
pushq $0x32
popq %rdi
movq %r14, %rsi
callq 0xb290
movl $0x1, 0x216a86(%rip)    # 0x226ce0
popq %rbx
popq %r14
popq %rbp
retq