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

```asm
<printBandsOnScreen>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  movss  %xmm0,-0x38(%rbp)
  movl   $0x0,-0x18(%rbp)
  movss  D48(%rip),%xmm0
  movss  %xmm0,-0x20(%rbp)
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x24(%rbp)
  jmp    L41
L103:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x10(%rbp)
  mov    -0x24(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  -0xc(%rbp),%xmm0
  mulss  -0x10(%rbp),%xmm0
  pxor   %xmm4,%xmm4
  cvtss2sd %xmm0,%xmm4
  movq   %xmm4,%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x8(%rbp)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  pxor   %xmm1,%xmm1
  cvtss2sd -0x8(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0xc(%rbp),%xmm0
  pxor   %xmm5,%xmm5
  cvtss2sd -0x10(%rbp),%xmm5
  movq   %xmm5,%rax
  movapd %xmm2,%xmm3
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  mov    $0x4,%eax
  call   <printf@plt>
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  comiss -0x20(%rbp),%xmm0
  jbe    L9
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x20(%rbp)
L9:
  addl   $0x1,-0x24(%rbp)
L41:
  mov    -0x24(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L103
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x46,-0x14(%rbp)
  pxor   %xmm1,%xmm1
  cvtss2sd -0x20(%rbp),%xmm1
  movss  -0x20(%rbp),%xmm0
  subss  -0x38(%rbp),%xmm0
  pxor   %xmm6,%xmm6
  cvtss2sd %xmm0,%xmm6
  movq   %xmm6,%rax
  movq   %rax,%xmm0
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x24(%rbp)
  jmp    L52
L49:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x10(%rbp)
  mov    -0x24(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  -0xc(%rbp),%xmm0
  mulss  -0x10(%rbp),%xmm0
  pxor   %xmm7,%xmm7
  cvtss2sd %xmm0,%xmm7
  movq   %xmm7,%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x8(%rbp)
  pxor   %xmm3,%xmm3
  cvtss2sd -0x8(%rbp),%xmm3
  movq   %xmm3,%rax
  movq   %rax,%xmm0
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  subss  -0x20(%rbp),%xmm0
  addss  -0x38(%rbp),%xmm0
  movaps %xmm0,%xmm1
  divss  -0x38(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x14(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  cvttss2si %xmm0,%eax
  mov    %eax,-0x4(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L89
L55:
  mov    $0x2a,%edi
  call   <putchar@plt>
  addl   $0x1,-0x1c(%rbp)
L89:
  mov    -0x1c(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L55
  jmp    L109
L11:
  mov    -0x1c(%rbp),%eax
  lea    0x1(%rax),%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %ecx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  test   %edx,%edx
  jne    L59
  mov    $0x7c,%edi
  call   <putchar@plt>
  jmp    L77
L59:
  mov    $0x20,%edi
  call   <putchar@plt>
L77:
  addl   $0x1,-0x1c(%rbp)
L109:
  mov    -0x1c(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L11
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x24(%rbp)
L52:
  mov    -0x24(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L49
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D48
type_infered: byte[4]
name: retrieve_data
arguments: label: D1
type_infered: string
name: retrieve_data
arguments: label: D35
type_infered: string
name: retrieve_data
arguments: label: D7
type_infered: string
name: retrieve_data
arguments: label: D21
type_infered: string
name: retrieve_data
arguments: label: D18
type_infered: string
name: retrieve_data
arguments: label: D36
type_infered: string

tool: {"D48": [0x00,0x00,0xc8,0xc2]}

tool: D1: 
 Final results of 1/3 octave analysis.

tool: D35: Band %6.1f Hz - %6.1f Hz around %6.1f Hz: %5.2f dB/YREF*Hz


tool: D7: 
    1/3 octave analysis, plot


tool: D21:      %2.1f                                                                %2.1f


tool: D18:       +----------------------------------------------------------------------+

tool: D36: %-6.0f: 

assistant: ```c
void printBandsOnScreen(int octn, float *limits, float *calcvalues, float vrange) {
  int i;
  int val;
  int countthirdoct = 0;
  float octaveinflimit;
  float octavesuplimit;
  float centraloct;
  float max = -100.0f;
  printf("\n Final results of 1/3 octave analysis.\n");
  for (i = 0; i < octn; ++i) {
    octaveinflimit = limits[i];
    octavesuplimit = limits[i + 1];
    centraloct = sqrt(octavesuplimit * octaveinflimit);
    printf("Band %6.1f Hz - %6.1f Hz around %6.1f Hz: %5.2f dB/YREF*Hz\n", octaveinflimit, octavesuplimit, centraloct, calcvalues[i]);
    if (calcvalues[i] > max)
      max = calcvalues[i];
  }
  printf("\n    1/3 octave analysis, plot\n\n");
  int ncol = 70;
  int k;
  int lenline;
  printf("     %2.1f                                                                %2.1f\n", max - vrange, max);
  printf("      +----------------------------------------------------------------------+\n");
  for (i = 0; i < octn; ++i) {
    octaveinflimit = limits[i];
    octavesuplimit = limits[i + 1];
    centraloct = sqrt(octavesuplimit * octaveinflimit);
    printf("%-6.0f: ", centraloct);
    lenline = (calcvalues[i] - max + vrange) / (vrange)*ncol;
    for (k = 0; k < lenline; ++k)
      printf("*");
    for (; k < ncol; ++k) {
      if ((k + 1) % 10 == 0)
        printf("|");
      else
        printf(" ");
    }
    printf("\n");
  }
  printf("      +----------------------------------------------------------------------+\n");
}
```