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

```asm
<main>:
  endbr64
  push   %r15
  lea    D53(%rip),%r15
  push   %r14
  lea    D35(%rip),%r14
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  lea    0x14(%rsp),%r12
  mov    %r12,%rbx
  jmp    L71
  nopl   (%rax)
L113:
  lea    0x1(%rbp),%r13d
  add    $0x4,%rbx
  cmp    $0x13,%ebp
  je     L33
L71:
  mov    %r15,%rdi
  xor    %eax,%eax
  mov    %r13d,%ebp
  call   <printf@plt>
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  mov    (%rbx),%eax
  test   %eax,%eax
  jne    L113
  test   %r13d,%r13d
  je     L126
L111:
  movslq %ebp,%rdx
  lea    -0x1(%rbp),%ecx
  pxor   %xmm0,%xmm0
  shl    $0x2,%rdx
  mov    %rcx,%rbx
  shl    $0x2,%rcx
  lea    0x10(%rsp,%rdx,1),%rax
  lea    0xc(%rsp,%rdx,1),%rdx
  sub    %rcx,%rdx
  nopw   0x0(%rax,%rax,1)
L112:
  pxor   %xmm1,%xmm1
  sub    $0x4,%rax
  cvtsi2ssl 0x4(%rax),%xmm1
  addss  %xmm1,%xmm0
  cmp    %rdx,%rax
  jne    L112
  cmp    $0x1,%ebp
  je     L48
  pxor   %xmm2,%xmm2
  mov    $0x1,%eax
  lea    D17(%rip),%rdi
  cvtsi2ss %ebp,%xmm2
  lea    0x18(%rsp,%rbx,4),%rbx
  lea    D40(%rip),%r13
  lea    D47(%rip),%rbp
  divss  %xmm2,%xmm0
  movaps %xmm0,%xmm1
  cvtss2sd %xmm0,%xmm0
  movss  %xmm1,0xc(%rsp)
  call   <printf@plt>
  movss  0xc(%rsp),%xmm1
  jmp    L11
  nopl   0x0(%rax)
L139:
  comiss %xmm1,%xmm0
  ja     L167
L98:
  add    $0x4,%r12
  cmp    %r12,%rbx
  je     L88
L11:
  mov    (%r12),%esi
  pxor   %xmm0,%xmm0
  cvtsi2ss %esi,%xmm0
  ucomiss %xmm1,%xmm0
  jp     L139
  jne    L139
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x4,%r12
  movss  %xmm1,0xc(%rsp)
  call   <printf@plt>
  movss  0xc(%rsp),%xmm1
  cmp    %r12,%rbx
  jne    L11
  nopl   0x0(%rax,%rax,1)
L88:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L100
  add    $0x78,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L167:
  mov    %r13,%rdi
  xor    %eax,%eax
  movss  %xmm1,0xc(%rsp)
  call   <printf@plt>
  movss  0xc(%rsp),%xmm1
  jmp    L98
L48:
  lea    D71(%rip),%rdi
  call   <puts@plt>
  jmp    L88
L33:
  lea    D50(%rip),%rdi
  mov    $0x14,%ebp
  call   <puts@plt>
  jmp    L111
L126:
  pxor   %xmm0,%xmm0
  lea    D17(%rip),%rdi
  mov    $0x1,%eax
  divss  %xmm0,%xmm0
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  jmp    L88
L100:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D53
data_type: string
name: unpack_data
arguments: label: D35
data_type: string
name: unpack_data
arguments: label: D17
data_type: string
name: unpack_data
arguments: label: D40
data_type: string
name: unpack_data
arguments: label: D47
data_type: string
name: unpack_data
arguments: label: D71
data_type: string
name: unpack_data
arguments: label: D50
data_type: string

tool: D53: Digite um valor inteiro: 

tool: D35: %d

tool: D17: 
Media e: %3.1f


tool: D40: 
%d e maior que a media

tool: D47: 
%d e igual a media

tool: D71: 
Por favor, digite mais de um valor.

tool: D50: 
Limite maximo atingido!

assistant: ```c
main() {
  int numero[21], i = 0, fim = 0, total_valores;
  float media = 0;
  do {
    i++;
    if (i <= 20) {
      printf("Digite um valor inteiro: ");
      scanf("%d", &numero[i]);
      if (numero[i] == 0) {
        i--;
        fim = 1;
      }
    } else {
      printf("\nLimite maximo atingido!\n");
      i--;
      fim = 1;
    }
  } while (fim == 0);
  total_valores = i;
  while (i >= 1) {
    media = media + numero[i];
    i--;
  }
  if (total_valores != 1) {
    media = (float)media / total_valores;
    printf("\nMedia e: %3.1f\n", media);
    for (i = 1; i <= total_valores; i++) {
      if (numero[i] == media) {
        printf("\n%d e igual a media", numero[i]);
      } else if (numero[i] > media) {
        printf("\n%d e maior que a media", numero[i]);
      }
    }
  } else {
    printf("\nPor favor, digite mais de um valor.\n");
  }
}
```