user: Converte this assembly snippet into its equivalent C code:

```asm
<af_filter_design_pfir>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %rdx,-0x20(%rbp)
  mov    %rcx,-0x28(%rbp)
  movss  %xmm0,-0x2c(%rbp)
  mov    %r8d,-0x30(%rbp)
  mov    -0x14(%rbp),%eax
  mov    $0x0,%edx
  divl   -0x18(%rbp)
  mov    %eax,-0x8(%rbp)
  cmpl   $0x0,-0x8(%rbp)
  jle    L207
  cmpl   $0x0,-0x18(%rbp)
  je     L207
  cmpq   $0x0,-0x20(%rbp)
  je     L207
  cmpq   $0x0,-0x28(%rbp)
  jne    L81
L207:
  mov    $0xffffffff,%eax
  jmp    L1
L81:
  mov    -0x30(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L42
  mov    -0x8(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L134
L69:
  movl   $0x0,-0x10(%rbp)
  jmp    L2
L200:
  mov    -0x20(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x20(%rbp)
  movss  (%rax),%xmm0
  movss  -0x2c(%rbp),%xmm1
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x4(%rbp)
  mov    -0x30(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  je     L110
  mov    -0xc(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L33
  movss  D10(%rip),%xmm0
  jmp    L79
L33:
  movss  D36(%rip),%xmm0
  jmp    L79
L110:
  movss  D36(%rip),%xmm0
L79:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mulss  -0x4(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x10(%rbp)
L2:
  mov    -0x18(%rbp),%eax
  cmp    %eax,-0x10(%rbp)
  jl     L200
  subl   $0x1,-0xc(%rbp)
L134:
  cmpl   $0x0,-0xc(%rbp)
  jns    L69
  jmp    L168
L42:
  movl   $0x0,-0xc(%rbp)
  jmp    L63
L201:
  movl   $0x0,-0x10(%rbp)
  jmp    L155
L167:
  mov    -0x20(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x20(%rbp)
  movss  (%rax),%xmm0
  movss  -0x2c(%rbp),%xmm1
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x4(%rbp)
  mov    -0x30(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  je     L36
  mov    -0xc(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L101
  movss  D36(%rip),%xmm0
  jmp    L10
L101:
  movss  D10(%rip),%xmm0
  jmp    L10
L36:
  movss  D36(%rip),%xmm0
L10:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mulss  -0x4(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x10(%rbp)
L155:
  mov    -0x18(%rbp),%eax
  cmp    %eax,-0x10(%rbp)
  jl     L167
  addl   $0x1,-0xc(%rbp)
L63:
  mov    -0xc(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jl     L201
L168:
  mov    $0xffffffff,%eax
L1:
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: label: D10
datatype: byte[4]
name: parse_data
arguments: label: D36
datatype: byte[4]

tool: {"D10": [0x00,0x00,0x80,0xbf]}

tool: {"D36": [0x00,0x00,0x80,0x3f]}

assistant: ```c
int af_filter_design_pfir(unsigned int n, unsigned int k, float *w, float **pw, float g, unsigned int flags) {
  int l = (int)n / k;
  int i;
  int j;
  float t;
  if (l < 1 || k < 1 || !w || !pw)
    return -1;
  if (flags & 0x00000002) {
    for (j = l - 1; j > -1; j--) {
      for (i = 0; i < (int)k; i++) {
        t = g * *w++;
        pw[i][j] = t * ((flags & 0x00000010) ? ((j & 1) ? -1 : 1) : 1);
      }
    }
  } else {
    for (j = 0; j < l; j++) {
      for (i = 0; i < (int)k; i++) {
        t = g * *w++;
        pw[i][j] = t * ((flags & 0x00000010) ? ((j & 1) ? 1 : -1) : 1);
      }
    }
  }
  return -1;
}
```