user: Translate the below assembly code into C programming language:

```asm
<llr_approx>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x38(%rsp),%r14
  test   %edx,%edx
  jle    L36
  mov    %rsi,%rbx
  mov    %ecx,%r11d
  mov    %r8d,%r12d
  movaps %xmm0,%xmm7
  shr    $0x1f,%ecx
  add    %r11d,%ecx
  sar    %ecx
  mov    %rdi,%r10
  lea    -0x1(%rdx),%edx
  lea    0x8(%rdi,%rdx,8),%r13
  lea    -0x1(%r8),%eax
  shl    $0x7,%rax
  lea    0x80(%r14,%rax,1),%r8
  mov    $0x0,%ebp
  movss  D8(%rip),%xmm8
  jmp    L46
L24:
  movslq %ebp,%rax
  lea    (%rbx,%rax,4),%rdi
  mov    %r14,%rsi
L27:
  movss  (%r10),%xmm5
  mov    %rsi,%rdx
  movslq (%rsi),%rax
  lea    (%r9,%rax,8),%rax
  movaps %xmm5,%xmm4
  subss  (%rax),%xmm4
  movss  0x4(%r10),%xmm6
  movaps %xmm6,%xmm0
  subss  0x4(%rax),%xmm0
  mulss  %xmm4,%xmm4
  mulss  %xmm0,%xmm0
  addss  %xmm0,%xmm4
  movslq 0x300(%rsi),%rax
  lea    (%r9,%rax,8),%rax
  movaps %xmm5,%xmm3
  subss  (%rax),%xmm3
  movaps %xmm6,%xmm0
  subss  0x4(%rax),%xmm0
  mulss  %xmm3,%xmm3
  mulss  %xmm0,%xmm0
  addss  %xmm0,%xmm3
  cmp    $0x3,%r11d
  jle    L57
  mov    $0x1,%eax
L49:
  movslq (%rdx,%rax,4),%r15
  lea    (%r9,%r15,8),%r15
  movaps %xmm5,%xmm0
  subss  (%r15),%xmm0
  movaps %xmm6,%xmm1
  subss  0x4(%r15),%xmm1
  mulss  %xmm0,%xmm0
  mulss  %xmm1,%xmm1
  addss  %xmm0,%xmm1
  movslq 0x300(%rdx,%rax,4),%r15
  lea    (%r9,%r15,8),%r15
  movaps %xmm5,%xmm0
  subss  (%r15),%xmm0
  movaps %xmm6,%xmm2
  subss  0x4(%r15),%xmm2
  mulss  %xmm0,%xmm0
  mulss  %xmm2,%xmm2
  addss  %xmm2,%xmm0
  minss  %xmm4,%xmm1
  movaps %xmm1,%xmm4
  minss  %xmm3,%xmm0
  movaps %xmm0,%xmm3
  add    $0x1,%rax
  cmp    %eax,%ecx
  jg     L49
L57:
  subss  %xmm4,%xmm3
  xorps  %xmm8,%xmm3
  divss  %xmm7,%xmm3
  movss  %xmm3,(%rdi)
  sub    $0xffffffffffffff80,%rsi
  add    $0x4,%rdi
  cmp    %r8,%rsi
  jne    L27
L60:
  add    %r12d,%ebp
  add    $0x8,%r10
  cmp    %r13,%r10
  je     L36
L46:
  test   %r12d,%r12d
  jg     L24
  jmp    L60
L36:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: read_data
arguments: data_tag: D8
type_infered: byte[4]

tool: {"D8": [0x00,0x00,0x00,0x80]}

assistant: ```c
void llr_approx(const _Complex float *in, float *out, int N, int M, int B, _Complex float *symbols, int (*S)[6][32], float sigma2) {
  int i, s, b;
  float num, den;
  float new_num, new_den;
  float idiff0, qdiff0, idiff1, qdiff1;
  int change_sign = -1;
  for (s = 0; s < N; s++) {
    for (b = 0; b < B; b++) {
      idiff0 = __real__ in[s] - __real__ symbols[S[0][b][0]];
      qdiff0 = __imag__ in[s] - __imag__ symbols[S[0][b][0]];
      num = idiff0 * idiff0 + qdiff0 * qdiff0;
      idiff1 = __real__ in[s] - __real__ symbols[S[1][b][0]];
      qdiff1 = __imag__ in[s] - __imag__ symbols[S[1][b][0]];
      den = idiff1 * idiff1 + qdiff1 * qdiff1;
      for (i = 1; i < M / 2; i++) {
        idiff0 = __real__ in[s] - __real__ symbols[S[0][b][i]];
        qdiff0 = __imag__ in[s] - __imag__ symbols[S[0][b][i]];
        new_num = idiff0 * idiff0 + qdiff0 * qdiff0;
        idiff1 = __real__ in[s] - __real__ symbols[S[1][b][i]];
        qdiff1 = __imag__ in[s] - __imag__ symbols[S[1][b][i]];
        new_den = idiff1 * idiff1 + qdiff1 * qdiff1;
        if (new_num < num) {
          num = new_num;
        }
        if (new_den < den) {
          den = new_den;
        }
      }
      out[s * B + b] = change_sign * (den - num) / sigma2;
    }
  }
}
```