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

```asm
<filter_mem2>:
  endbr64
  push   %r15
  mov    %rdi,%rax
  mov    %rdx,%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x38(%rsp),%rdx
  test   %r8d,%r8d
  jle    L77
  mov    %rcx,%r10
  lea    0x8(%rdi),%r11
  lea    -0x1(%r9),%ebx
  movslq %r9d,%rcx
  shl    $0x2,%rcx
  lea    (%rsi,%rcx,1),%r12
  lea    (%rdi,%rcx,1),%r13
  lea    -0x4(%rdx,%rcx,1),%r14
  mov    %rdx,%rcx
  sub    %r11,%rcx
  cmp    $0x8,%rcx
  seta   %r11b
  cmp    $0x2,%r9d
  setne  %cl
  test   %cl,%r11b
  je     L40
  lea    0x8(%rsi),%r11
  mov    %rdx,%rcx
  sub    %r11,%rcx
  cmp    $0x8,%rcx
  jbe    L40
  mov    %rax,%rcx
  lea    -0x1(%r8),%eax
  mov    %ebx,%ebp
  lea    0x4(%rcx,%rax,4),%r15
  lea    -0x2(%r9),%eax
  and    $0xfffffffc,%ebp
  mov    %eax,-0x14(%rsp)
  mov    %ebx,%eax
  sub    %ebp,%r9d
  shr    $0x2,%eax
  mov    %r9d,-0x10(%rsp)
  lea    -0x1(%rax),%r8d
  lea    -0x1(%r9),%eax
  mov    %eax,-0xc(%rsp)
  shl    $0x4,%r8
  add    $0x14,%r8
  nopl   (%rax)
L52:
  movss  (%rcx),%xmm3
  movss  (%rsi),%xmm2
  mulss  %xmm3,%xmm2
  addss  (%rdx),%xmm2
  movss  %xmm2,(%r10)
  test   %ebx,%ebx
  jle    L108
  cmpl   $0x2,-0x14(%rsp)
  jbe    L49
  movaps %xmm3,%xmm5
  movaps %xmm2,%xmm4
  mov    $0x4,%eax
  shufps $0x0,%xmm5,%xmm5
  shufps $0x0,%xmm4,%xmm4
  nopl   0x0(%rax,%rax,1)
L38:
  movups (%rsi,%rax,1),%xmm0
  movups (%rdi,%rax,1),%xmm1
  movups (%rdx,%rax,1),%xmm6
  mulps  %xmm5,%xmm0
  mulps  %xmm4,%xmm1
  addps  %xmm6,%xmm0
  subps  %xmm1,%xmm0
  movups %xmm0,-0x4(%rdx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%r8
  jne    L38
  cmp    %ebp,%ebx
  je     L108
  cmpl   $0x2,-0x10(%rsp)
  mov    -0xc(%rsp),%r11d
  je     L61
  mov    %ebp,%r9d
  mov    %ebp,%eax
L120:
  add    $0x1,%r9d
  movaps %xmm3,%xmm1
  movaps %xmm2,%xmm4
  movq   (%rsi,%r9,4),%xmm0
  shufps $0xe0,%xmm1,%xmm1
  shufps $0xe0,%xmm4,%xmm4
  mulps  %xmm1,%xmm0
  movq   (%rdx,%r9,4),%xmm1
  addps  %xmm1,%xmm0
  movq   (%rdi,%r9,4),%xmm1
  mulps  %xmm4,%xmm1
  subps  %xmm1,%xmm0
  movlps %xmm0,-0x4(%rdx,%r9,4)
  mov    %r11d,%r9d
  and    $0xfffffffe,%r9d
  add    %r9d,%eax
  cmp    %r9d,%r11d
  je     L108
L121:
  cltq
  movss  0x4(%rdi,%rax,4),%xmm1
  movss  0x4(%rsi,%rax,4),%xmm0
  mulss  %xmm2,%xmm1
  mulss  %xmm3,%xmm0
  addss  0x4(%rdx,%rax,4),%xmm0
  subss  %xmm1,%xmm0
  movss  %xmm0,(%rdx,%rax,4)
L108:
  mulss  (%r12),%xmm3
  add    $0x4,%rcx
  add    $0x4,%r10
  mulss  0x0(%r13),%xmm2
  subss  %xmm2,%xmm3
  movss  %xmm3,(%r14)
  cmp    %r15,%rcx
  jne    L52
L77:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L49:
  mov    %ebx,%r11d
  xor    %r9d,%r9d
  xor    %eax,%eax
  jmp    L120
L61:
  mov    %ebp,%eax
  jmp    L121
L40:
  mov    %rax,%rcx
  sub    $0x2,%r9d
  lea    -0x1(%r8),%eax
  lea    0x4(%rcx,%rax,4),%r8
  add    $0x2,%r9
  nop
L113:
  movss  (%rcx),%xmm2
  movss  (%rsi),%xmm3
  mulss  %xmm2,%xmm3
  addss  (%rdx),%xmm3
  movss  %xmm3,(%r10)
  test   %ebx,%ebx
  jle    L73
  mov    $0x1,%eax
  xchg   %ax,%ax
L86:
  movss  (%rdi,%rax,4),%xmm1
  movss  (%rsi,%rax,4),%xmm0
  mulss  %xmm3,%xmm1
  mulss  %xmm2,%xmm0
  addss  (%rdx,%rax,4),%xmm0
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x4(%rdx,%rax,4)
  add    $0x1,%rax
  cmp    %r9,%rax
  jne    L86
L73:
  mulss  (%r12),%xmm2
  add    $0x4,%rcx
  add    $0x4,%r10
  mulss  0x0(%r13),%xmm3
  subss  %xmm3,%xmm2
  movss  %xmm2,(%r14)
  cmp    %rcx,%r8
  jne    L113
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void filter_mem2(float *x, float *num, float *den, float *y, int N, int ord, float *mem) {
  int i, j;
  float xi, yi;
  for (i = 0; i < N; i++) {
    xi = x[i];
    y[i] = num[0] * xi + mem[0];
    yi = y[i];
    for (j = 0; j < ord - 1; j++) {
      mem[j] = mem[j + 1] + num[j + 1] * xi - den[j + 1] * yi;
    }
    mem[ord - 1] = num[ord] * xi - den[ord] * yi;
  }
}
```