user: Please show me the C implementation that matches the assembly code listed below:

```asm
<__cvmx_helper_initialize_fpa>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %edi,%r13d
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  mov    %ecx,%ebp
  push   %rbx
  sub    $0x38,%rsp
  mov    0x78(%rsp),%eax
  mov    0x70(%rsp),%r14d
  mov    %esi,0xc(%rsp)
  mov    %r8d,0x10(%rsp)
  mov    0x88(%rsp),%r15d
  mov    %eax,0x18(%rsp)
  mov    0x80(%rsp),%eax
  mov    %r9d,0x14(%rsp)
  mov    0xa0(%rsp),%ebx
  mov    %eax,0x1c(%rsp)
  mov    0x90(%rsp),%eax
  mov    %eax,0x20(%rsp)
  mov    0x98(%rsp),%eax
  mov    %eax,0x24(%rsp)
  mov    0xa8(%rsp),%eax
  mov    %eax,0x28(%rsp)
  mov    0xb0(%rsp),%eax
  mov    %eax,0x2c(%rsp)
  xor    %eax,%eax
  call   <cvmx_fpa_enable@plt>
  lea    -0x1(%r12),%eax
  cmp    $0x3f,%eax
  jbe    L134
L77:
  test   %r13d,%r13d
  jns    L86
  test   %ebp,%ebp
  jns    L108
L58:
  test   %r14d,%r14d
  jns    L2
  test   %r15d,%r15d
  jns    L122
L91:
  xor    %eax,%eax
  test   %ebx,%ebx
  jns    L75
L103:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L2:
  mov    0x1c(%rsp),%edx
  mov    0x18(%rsp),%esi
  lea    D4(%rip),%rcx
  mov    %r14d,%edi
  call   <__cvmx_helper_initialize_fpa_pool@plt>
  test   %eax,%eax
  jne    L103
  test   %r15d,%r15d
  js     L91
L122:
  mov    0x24(%rsp),%edx
  mov    0x20(%rsp),%esi
  lea    D31(%rip),%rcx
  mov    %r15d,%edi
  call   <__cvmx_helper_initialize_fpa_pool@plt>
  test   %eax,%eax
  jne    L103
  xor    %eax,%eax
  test   %ebx,%ebx
  js     L103
L75:
  mov    0x2c(%rsp),%edx
  mov    0x28(%rsp),%esi
  mov    %ebx,%edi
  add    $0x38,%rsp
  pop    %rbx
  lea    D30(%rip),%rcx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <__cvmx_helper_initialize_fpa_pool@plt>
  nopl   (%rax)
L86:
  mov    0xc(%rsp),%esi
  lea    D27(%rip),%rcx
  mov    %r12d,%edx
  mov    %r13d,%edi
  call   <__cvmx_helper_initialize_fpa_pool@plt>
  test   %eax,%eax
  jne    L103
  test   %ebp,%ebp
  js     L58
L108:
  mov    0x14(%rsp),%edx
  mov    0x10(%rsp),%esi
  lea    D13(%rip),%rcx
  mov    %ebp,%edi
  call   <__cvmx_helper_initialize_fpa_pool@plt>
  test   %eax,%eax
  je     L58
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L134:
  mov    %r12d,%esi
  lea    D24(%rip),%rdi
  call   <printf@plt>
  jmp    L77
```

tool_calls: name: extract_symbolic_data
arguments: label: D4
datatype: string
name: extract_symbolic_data
arguments: label: D31
datatype: string
name: extract_symbolic_data
arguments: label: D30
datatype: string
name: extract_symbolic_data
arguments: label: D27
datatype: string
name: extract_symbolic_data
arguments: label: D13
datatype: string
name: extract_symbolic_data
arguments: label: D24
datatype: string

tool: D4: PKO Command Buffers

tool: D31: TIM Command Buffers

tool: D30: DFA Command Buffers

tool: D27: Packet Buffers

tool: D13: Work Queue Entries

tool: D24: Warning: %d packet buffers may not be enough for hardware prefetch. 65 or more is recommended.


assistant: ```c
int __cvmx_helper_initialize_fpa(int pip_pool, int pip_size, int pip_buffers, int wqe_pool, int wqe_size, int wqe_entries, int pko_pool, int pko_size, int pko_buffers, int tim_pool, int tim_size, int tim_buffers, int dfa_pool, int dfa_size, int dfa_buffers) {
  int status;
  cvmx_fpa_enable();
  if ((pip_buffers > 0) && (pip_buffers <= 64))
    printf("Warning: %d packet buffers may not be enough for hardware"
           " prefetch. 65 or more is recommended.\n",
           pip_buffers);
  if (pip_pool >= 0) {
    status = __cvmx_helper_initialize_fpa_pool(pip_pool, pip_size, pip_buffers, "Packet Buffers");
    if (status)
      return status;
  }
  if (wqe_pool >= 0) {
    status = __cvmx_helper_initialize_fpa_pool(wqe_pool, wqe_size, wqe_entries, "Work Queue Entries");
    if (status)
      return status;
  }
  if (pko_pool >= 0) {
    status = __cvmx_helper_initialize_fpa_pool(pko_pool, pko_size, pko_buffers, "PKO Command Buffers");
    if (status)
      return status;
  }
  if (tim_pool >= 0) {
    status = __cvmx_helper_initialize_fpa_pool(tim_pool, tim_size, tim_buffers, "TIM Command Buffers");
    if (status)
      return status;
  }
  if (dfa_pool >= 0) {
    status = __cvmx_helper_initialize_fpa_pool(dfa_pool, dfa_size, dfa_buffers, "DFA Command Buffers");
    if (status)
      return status;
  }
  return 0;
}
```