user: 请将以下的汇编代码转换成C语言代码：

```asm
<distanceUB_l2_m128>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %edx,-0x64(%rbp)
  movss  %xmm0,-0x68(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x48(%rbp)
  movss  -0x68(%rbp),%xmm0
  mulss  %xmm0,%xmm0
  movss  %xmm0,-0x44(%rbp)
  movl   $0x0,-0x40(%rbp)
  movl   $0x0,-0x3c(%rbp)
  movl   $0x0,-0x38(%rbp)
  movl   $0x0,-0x34(%rbp)
  movl   $0x0,-0x4c(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L32
L12:
  mov    -0x4c(%rbp),%eax
  cltq
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  mov    %rdx,%rcx
  shl    $0x4,%rcx
  mov    -0x58(%rbp),%rdx
  add    %rdx,%rcx
  mov    0x8(%rax),%rdx
  mov    (%rax),%rax
  mov    (%rcx),%rdi
  mov    0x8(%rcx),%rsi
  mov    %rdx,%rcx
  mov    %rax,%rdx
  call   <_mm_sub_ps@plt>
  mov    %rax,-0x30(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    -0x30(%rbp),%rax
  mov    -0x28(%rbp),%rdx
  mov    -0x30(%rbp),%rdi
  mov    -0x28(%rbp),%rsi
  mov    %rdx,%rcx
  mov    %rax,%rdx
  call   <_mm_mul_ps@plt>
  mov    %eax,%edx
  mov    -0x40(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    %rcx,%rdi
  mov    %rax,%rsi
  call   <_mm_add_ps@plt>
  mov    %rax,-0x40(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    -0x4c(%rbp),%eax
  cltd
  shr    $0x1d,%edx
  add    %edx,%eax
  and    $0x7,%eax
  sub    %edx,%eax
  cmp    $0x7,%eax
  jne    L57
  mov    -0x40(%rbp),%rcx
  mov    -0x38(%rbp),%rdx
  lea    -0x20(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <_mm_store_ps@plt>
  movss  -0x20(%rbp),%xmm1
  movss  -0x1c(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x18(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x14(%rbp),%xmm0
  addss  %xmm1,%xmm0
  comiss -0x44(%rbp),%xmm0
  jbe    L57
  mov    -0x44(%rbp),%eax
  jmp    L15
L57:
  addl   $0x1,-0x4c(%rbp)
L32:
  mov    -0x64(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  cmp    %eax,-0x4c(%rbp)
  jl     L12
  mov    -0x40(%rbp),%rcx
  mov    -0x38(%rbp),%rdx
  lea    -0x20(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <_mm_store_ps@plt>
  movss  -0x20(%rbp),%xmm1
  movss  -0x1c(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x18(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x14(%rbp),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x48(%rbp)
  mov    -0x48(%rbp),%eax
  movd   %eax,%xmm0
  call   <sqrt@plt>
  movd   %xmm0,%eax
L15:
  movd   %eax,%xmm0
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L14
  call   <__stack_chk_fail@plt>
L14:
  leave
  ret
```

assistant: ```c
float distanceUB_l2_m128(__m128 *p1, __m128 *p2, int len, float dist) {
  float ret = 0;
  float dist2 = dist * dist;
  __m128 sum = {0, 0, 0, 0};
  float fsum[4];
  int i = 0;
  for (i = 0; i < len / 4; i++) {
    __m128 diff;
    diff = _mm_sub_ps(p1[i], p2[i]);
    sum = _mm_add_ps(sum, _mm_mul_ps(diff, diff));
    if (i % 8 == 7) {
      _mm_store_ps(fsum, sum);
      if (fsum[0] + fsum[1] + fsum[2] + fsum[3] > dist2) {
        return dist2;
      }
    }
  }
  _mm_store_ps(fsum, sum);
  ret = fsum[0] + fsum[1] + fsum[2] + fsum[3];
  return sqrt(ret);
}
```