// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../source/fourier.c
// Function: fourier_pks_at_k_and_z
int fourier_pks_at_k_and_z(
                           struct background * pba,
                           struct primordial * ppm,
                           struct fourier *pfo,
                           enum pk_outputs pk_output,
                           double k,
                           double z,
                           double * out_pk, // number P_m(k)
                           double * out_pk_ic, // array P_m_ic(k) of index [index_ic1_ic2]
                           double * out_pk_cb, // number P_cb(k)
                           double * out_pk_cb_ic // array P__cb_ic(k)of index [index_ic1_ic2]
                           ) {

  if (pfo->has_pk_cb == _TRUE_) {

    class_call(fourier_pk_at_k_and_z(pba,
                                     ppm,
                                     pfo,
                                     pk_output,
                                     k,
                                     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_k_and_z(pba,
                                     ppm,
                                     pfo,
                                     pk_output,
                                     k,
                                     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 $0x828, %rsp            # imm = 0x828
movq %r9, %r15
movq %r8, %r9
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r13
cmpw $0x1, 0x52(%rdx)
jne 0x9e8a0
movq 0x868(%rsp), %rax
movq %r9, %r14
movq 0x860(%rsp), %r9
movl 0x58(%rbx), %r8d
movq %rax, (%rsp)
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movl %ebp, %ecx
movsd %xmm0, 0x10(%rsp)
movsd 0x10(%rsp), %xmm0
movsd %xmm1, 0x18(%rsp)
movsd 0x18(%rsp), %xmm1
callq 0x9dd77
movsd 0x10(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movq %r14, %r9
testl %eax, %eax
je 0x9e8a0
addq $0x192, %rbx            # imm = 0x192
leaq 0x4fb81(%rip), %rsi     # 0xee3f0
leaq 0x7d723(%rip), %rdx     # 0x11bf99
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30af0
leaq 0x4f7a5(%rip), %rsi     # 0xee034
leaq 0x7d765(%rip), %rdx     # 0x11bffb
movq %rbx, %rdi
movl $0x306, %ecx            # imm = 0x306
jmp 0x9e903
xorl %r14d, %r14d
cmpw $0x1, 0x50(%rbx)
jne 0x9e913
movl 0x54(%rbx), %r8d
movq %r15, (%rsp)
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movl %ebp, %ecx
callq 0x9dd77
testl %eax, %eax
je 0x9e913
addq $0x192, %rbx            # imm = 0x192
leaq 0x4fb1c(%rip), %rsi     # 0xee3f0
leaq 0x7d737(%rip), %rdx     # 0x11c012
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30af0
leaq 0x4f740(%rip), %rsi     # 0xee034
leaq 0x7d700(%rip), %rdx     # 0x11bffb
movq %rbx, %rdi
movl $0x315, %ecx            # imm = 0x315
movq %r14, %r8
xorl %eax, %eax
callq 0x30af0
movl $0x1, %r14d
movl %r14d, %eax
addq $0x828, %rsp            # imm = 0x828
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq