// File: /workspace/github_c_makefile_star2_O1/PoulinV[P]AxiCLASS/build/../source/fourier.c
// Function: fourier_pks_at_z
int fourier_pks_at_z(
                     struct background * pba,
                     struct fourier * pfo,
                     enum linear_or_logarithmic mode,
                     enum pk_outputs pk_output,
                     double z,
                     double * out_pk,      // array out_pk[index_k]
                     double * out_pk_ic,   // array out_pk_ic[index_k * pfo->ic_ic_size + index_ic1_ic2]
                     double * out_pk_cb,   // array out_pk_cb[index_k]
                     double * out_pk_cb_ic // array out_pk_cb_ic[index_k * pfo->ic_ic_size + index_ic1_ic2]
                     ) {

  if (pfo->has_pk_cb == _TRUE_) {

    class_call(fourier_pk_at_z(pba,
                               pfo,
                               mode,
                               pk_output,
                               z,
                               pfo->index_pk_cb,
                               out_pk_cb,
                               out_pk_cb_ic
                               ),
               pfo->error_message,
               pfo->error_message);
  }

  if (pfo->has_pk_m == _TRUE_) {

    class_call(fourier_pk_at_z(pba,
                               pfo,
                               mode,
                               pk_output,
                               z,
                               pfo->index_pk_m,
                               out_pk,
                               out_pk_ic
                               ),
               pfo->error_message,
               pfo->error_message);
  }

  return _SUCCESS_;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x818, %rsp            # imm = 0x818
movq %r9, %r15
movq %r8, %r9
movl %ecx, %ebp
movl %edx, %r12d
movq %rsi, %rbx
movq %rdi, %r13
cmpw $0x1, 0x52(%rsi)
jne 0xa0bdb
movq 0x858(%rsp), %rax
movq %r9, %r14
movq 0x850(%rsp), %r9
movl 0x58(%rbx), %r8d
movq %rax, (%rsp)
movq %r13, %rdi
movq %rbx, %rsi
movl %r12d, %edx
movl %ebp, %ecx
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
callq 0x9ff68
movsd 0x8(%rsp), %xmm0
movq %r14, %r9
testl %eax, %eax
je 0xa0bdb
addq $0x192, %rbx            # imm = 0x192
leaq 0x50846(%rip), %rsi     # 0xf13f0
leaq 0x7deeb(%rip), %rdx     # 0x11ea9c
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30c2c
leaq 0x5046a(%rip), %rsi     # 0xf1034
leaq 0x7df25(%rip), %rdx     # 0x11eaf6
movq %rbx, %rdi
movl $0x17f, %ecx            # imm = 0x17F
jmp 0xa0c3e
xorl %r14d, %r14d
cmpw $0x1, 0x50(%rbx)
jne 0xa0c4e
movl 0x54(%rbx), %r8d
movq %r15, (%rsp)
movq %r13, %rdi
movq %rbx, %rsi
movl %r12d, %edx
movl %ebp, %ecx
callq 0x9ff68
testl %eax, %eax
je 0xa0c4e
addq $0x192, %rbx            # imm = 0x192
leaq 0x507e1(%rip), %rsi     # 0xf13f0
leaq 0x7def1(%rip), %rdx     # 0x11eb07
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30c2c
leaq 0x50405(%rip), %rsi     # 0xf1034
leaq 0x7dec0(%rip), %rdx     # 0x11eaf6
movq %rbx, %rdi
movl $0x18e, %ecx            # imm = 0x18E
movq %r14, %r8
xorl %eax, %eax
callq 0x30c2c
movl $0x1, %r14d
movl %r14d, %eax
addq $0x818, %rsp            # imm = 0x818
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq