user: 请从给定的汇编指令推导出C源代码:

```asm
<main>:
  endbr64
  push   %r15
  lea    D45(%rip),%rdi
  push   %r14
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  lea    D19(%rip),%rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0x14(%rsp),%edx
  test   %edx,%edx
  jle    L32
  lea    D15(%rip),%r14
  xor    %eax,%eax
  mov    $0x2,%r15d
  mov    %r14,%rdi
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbx,%rdi
  mov    %rsi,0x8(%rsp)
  call   <scanf@plt>
  mov    0x10(%rsp),%r13d
  mov    0x14(%rsp),%edx
  mov    %r13d,%ebp
  mov    %r13d,%r12d
  cmp    $0x1,%edx
  jle    L32
  nopw   0x0(%rax,%rax,1)
L22:
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0x10(%rsp),%eax
  mov    0x14(%rsp),%edx
  add    %eax,%r13d
  cmp    %eax,%r12d
  cmovl  %eax,%r12d
  cmp    %eax,%ebp
  cmovg  %eax,%ebp
  add    $0x1,%r15d
  cmp    %r15d,%edx
  jge    L22
L32:
  mov    %r13d,%esi
  lea    D8(%rip),%rdi
  xor    %eax,%eax
  mov    %edx,0x8(%rsp)
  call   <printf@plt>
  mov    0x8(%rsp),%edx
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ss %r13d,%xmm0
  lea    D9(%rip),%rdi
  mov    $0x1,%eax
  cvtsi2ss %edx,%xmm1
  divss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  mov    %r12d,%esi
  xor    %eax,%eax
  lea    D54(%rip),%rdi
  call   <printf@plt>
  xor    %eax,%eax
  mov    %ebp,%esi
  lea    D46(%rip),%rdi
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L25
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L25:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D45
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D19
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D15
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D8
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D9
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D54
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D46
type_guessed: string

tool: D45: Digite a quantidade de numeros: 

tool: D19: %d

tool: D15: Por favor, digite um numero inteiro: 

tool: D8: 
Soma: %d 


tool: D9: Media: %4.2f 


tool: D54: Maior numero: %d 


tool: D46: Menor numero: %d 


assistant: ```c
main() {
  int cont, valor, quantidade, soma, MAnumero, MEnumero, coringa;
  float media;
  soma = 0;
  coringa = 0;
  printf("Digite a quantidade de numeros: ");
  scanf("%d", &quantidade);
  for (cont = 1; cont <= quantidade; cont++) {
    printf("Por favor, digite um numero inteiro: ");
    scanf("%d", &valor);
    soma = soma + valor;
    if (coringa == 1) {
      if (valor > MAnumero)
        MAnumero = valor;
      if (valor < MEnumero)
        MEnumero = valor;
    } else {
      coringa = 1;
      MAnumero = valor;
      MEnumero = valor;
    }
  }
  media = (float)soma / quantidade;
  printf("\nSoma: %d \n", soma);
  printf("Media: %4.2f \n", media);
  printf("Maior numero: %d \n", MAnumero);
  printf("Menor numero: %d \n", MEnumero);
}
```