user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  lea    D0(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x8(%rsp),%rsi
  movaps %xmm0,0x10(%rsp)
  movq   $0x0,0x30(%rsp)
  movaps %xmm0,0x20(%rsp)
  call   <scanf@plt>
  mov    0x8(%rsp),%eax
  test   %eax,%eax
  jle    L127
  xor    %ebx,%ebx
  lea    0xc(%rsp),%rbp
  lea    D88(%rip),%r12
  jmp    L191
  cs nopw 0x0(%rax,%rax,1)
L123:
  comiss %xmm0,%xmm2
  movaps %xmm2,%xmm1
  jb     L106
  addl   $0x1,0x10(%rsp)
L184:
  add    $0x1,%ebx
  cmp    %ebx,0x8(%rsp)
  jle    L127
  nopw   0x0(%rax,%rax,1)
L191:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  movss  0xc(%rsp),%xmm0
  xor    %eax,%eax
  pxor   %xmm3,%xmm3
  movss  D96(%rip),%xmm2
L55:
  test   %eax,%eax
  jne    L46
  comiss %xmm3,%xmm0
  movss  D96(%rip),%xmm1
  jae    L123
L106:
  comiss %xmm1,%xmm0
  jbe    L156
  movss  D89(%rip),%xmm4
  comiss %xmm0,%xmm4
  jae    L189
  mov    $0x2,%edx
L163:
  movslq %edx,%rax
  jmp    L55
  nopw   0x0(%rax,%rax,1)
L156:
  mov    $0x2,%eax
L46:
  pxor   %xmm1,%xmm1
  lea    0x1(%rax),%edx
  cvtsi2ss %eax,%xmm1
  comiss %xmm1,%xmm0
  jbe    L100
  pxor   %xmm1,%xmm1
  cvtsi2ss %edx,%xmm1
  comiss %xmm0,%xmm1
  jb     L100
L14:
  addl   $0x1,0x10(%rsp,%rax,4)
  add    $0x1,%ebx
  cmp    %ebx,0x8(%rsp)
  jg     L191
L127:
  lea    0x10(%rsp),%rcx
  lea    0x38(%rsp),%rsi
  xor    %r12d,%r12d
  mov    %rcx,%rax
  nopl   0x0(%rax)
L81:
  mov    (%rax),%edx
  cmp    %edx,%r12d
  cmovl  %edx,%r12d
  add    $0x4,%rax
  cmp    %rax,%rsi
  jne    L81
  nopw   0x0(%rax,%rax,1)
L96:
  mov    (%rcx),%eax
  add    $0x4,%rcx
  lea    (%rax,%rax,4),%eax
  shl    $0x2,%eax
  cltd
  idiv   %r12d
  mov    %eax,-0x4(%rcx)
  cmp    %rcx,%rsi
  jne    L96
  lea    D20(%rip),%rdi
  lea    0x34(%rsp),%rbp
  mov    $0xa,%r13d
  call   <puts@plt>
  lea    D30(%rip),%r15
  lea    D19(%rip),%r14
  nopl   (%rax)
L78:
  imul   $0xcccccccd,%r13d,%eax
  cmp    $0x33333333,%eax
  ja     L130
  mov    %r13d,%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
L224:
  mov    0x0(%rbp),%ebx
  test   %ebx,%ebx
  jle    L51
  cs nopw 0x0(%rax,%rax,1)
L145:
  mov    $0x2a,%edi
  call   <putchar@plt>
  sub    $0x1,%ebx
  mov    %ebx,0x0(%rbp)
  jne    L145
L51:
  mov    $0xa,%edi
  sub    $0x4,%rbp
  call   <putchar@plt>
  sub    $0x1,%r13d
  jne    L78
  lea    D46(%rip),%rdi
  call   <puts@plt>
  lea    (%r12,%r12,2),%r8d
  mov    %r12d,%ecx
  mov    %r12d,%edx
  sar    %ecx
  sar    $0x2,%edx
  xor    %esi,%esi
  xor    %eax,%eax
  sar    $0x2,%r8d
  mov    %r12d,%r9d
  lea    D87(%rip),%rdi
  call   <printf@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L161
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L100:
  cmp    $0x9,%edx
  jle    L163
  jmp    L184
  xchg   %ax,%ax
L189:
  mov    $0x1,%eax
  jmp    L14
  nopw   0x0(%rax,%rax,1)
L130:
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L224
L161:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D0
type_infered: string
name: read_data
arguments: data_tag: D88
type_infered: string
name: read_data
arguments: data_tag: D96
type_infered: byte[4]
name: read_data
arguments: data_tag: D89
type_infered: byte[4]
name: read_data
arguments: data_tag: D20
type_infered: string
name: read_data
arguments: data_tag: D30
type_infered: string
name: read_data
arguments: data_tag: D19
type_infered: string
name: read_data
arguments: data_tag: D46
type_infered: string
name: read_data
arguments: data_tag: D87
type_infered: string

tool: D0: %d


tool: D88: %f

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

tool: {"D89": [0x00,0x00,0x00,0x40]}

tool: D20:      ^

tool: D30:      |

tool: D19: %4d |

tool: D46:    0 +----+----+----+----+>

tool: D87: %6d%5d%5d%5d%5d


assistant: ```c
int main() {
  int i, j, n, maior = 0, vetor[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
  float aux;
  scanf("%d\n", &n);
  for (i = 0; i < n; i++) {
    scanf("%f", &aux);
    for (j = 0; j < 10; j++) {
      if (j == 0) {
        if ((j <= aux) && (aux <= (j + 1))) {
          vetor[j]++;
          j = 10;
        }
      } else {
        if ((j < aux) && (aux <= (j + 1))) {
          vetor[j]++;
          j = 10;
        }
      }
    }
  }
  for (j = 0; j < 10; j++) {
    if (vetor[j] > maior) {
      maior = vetor[j];
    }
  }
  for (j = 0; j < 10; j++) {
    vetor[j] = (vetor[j] * 20) / maior;
  }
  printf("     ^\n");
  for (j = 9; j >= 0; j--) {
    if (((j + 1) % 5) == 0) {
      printf("%4d |", (j + 1));
    } else {
      printf("     |");
    }
    while (vetor[j] > 0) {
      printf("*");
      vetor[j]--;
    }
    printf("\n");
  }
  printf("   0 +----+----+----+----+>\n");
  printf("%6d%5d%5d%5d%5d\n", 0, maior / 4, maior / 2, (maior * 3) / 4, maior);
  return 0;
}
```