// File: /workspace/github_cpp_makefile_star2_O3/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 0x1001c
movq 0x22c4c3(%rip), %rbx    # 0x23ccd8
leaq 0xa(%rbx), %r14
movl $0x8, %esi
movq %r14, %rdi
callq 0x9230
movq %rax, 0x22c2f3(%rip)    # 0x23cb20
testq %rax, %rax
jne 0x1086a
leaq 0x32b9e7(%rip), %r14    # 0x33c220
leaq 0xf998b(%rip), %rsi     # 0x10a1cb
movl $0x8, %ecx
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x9060
movl $0x32, %edi
movq %r14, %rsi
callq 0xb424
movq 0x22c472(%rip), %rbx    # 0x23ccd8
leaq 0xa(%rbx), %r14
movl $0x8, %esi
movq %r14, %rdi
callq 0x9230
movq %rax, 0x22c2f2(%rip)    # 0x23cb70
testq %rax, %rax
jne 0x108bb
leaq 0x32b996(%rip), %r14    # 0x33c220
leaq 0xf996b(%rip), %rsi     # 0x10a1fc
movl $0x8, %ecx
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x9060
movl $0x32, %edi
movq %r14, %rsi
callq 0xb424
movq 0x22c421(%rip), %rbx    # 0x23ccd8
leaq 0xa(%rbx), %r14
movl $0x8, %esi
movq %r14, %rdi
callq 0x9230
movq %rax, 0x22c2f1(%rip)    # 0x23cbc0
testq %rax, %rax
jne 0x1090c
leaq 0x32b945(%rip), %r14    # 0x33c220
leaq 0xf994b(%rip), %rsi     # 0x10a22d
movl $0x8, %ecx
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x9060
movl $0x32, %edi
movq %r14, %rsi
callq 0xb424
movq 0x22c3d0(%rip), %rbx    # 0x23ccd8
leaq 0xa(%rbx), %r14
movl $0x8, %esi
movq %r14, %rdi
callq 0x9230
movq %rax, 0x22c2f0(%rip)    # 0x23cc10
testq %rax, %rax
jne 0x10952
leaq 0x32b8f4(%rip), %r14    # 0x33c220
leaq 0xf992b(%rip), %rsi     # 0x10a25e
movl $0x8, %ecx
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x9060
movl $0x32, %edi
movq %r14, %rsi
callq 0xb424
movl $0x1, 0x22c384(%rip)    # 0x23cce0
popq %rbx
popq %r14
popq %rbp
retq