user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  lea    D28(%rip),%r14
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%r15
  jmp    L117
  nopw   0x0(%rax,%rax,1)
L77:
  mov    0x4(%rsp),%eax
  mov    %eax,0x0(%rbp,%rbx,4)
  add    $0x1,%rbx
L117:
  mov    %r15,%rsi
  mov    %r14,%rdi
  mov    %ebx,%r12d
  call   <scanf@plt>
  test   %eax,%eax
  jle    L86
  cmp    %ebx,%r13d
  jne    L77
  add    $0xa,%r13d
  mov    %rbp,%rdi
  lea    0x0(,%r13,4),%esi
  call   <realloc@plt>
  mov    %rax,%rbp
  jmp    L77
  nopl   0x0(%rax)
L86:
  lea    0x0(,%rbx,4),%edi
  movslq %ebx,%r13
  call   <malloc@plt>
  mov    %rax,%rdx
  test   %ebx,%ebx
  je     L100
  lea    0x0(,%r13,4),%rax
  movss  D42(%rip),%xmm2
  movss  D32(%rip),%xmm1
  sub    $0x1,%r12d
  lea    -0x8(%rbp,%rax,1),%rdi
  lea    -0x4(%rbp,%rax,1),%rsi
  xor    %eax,%eax
  jmp    L0
  nopl   0x0(%rax)
L34:
  cmp    %eax,%r12d
  je     L129
  mov    0x0(%rbp,%rax,4),%ecx
  pxor   %xmm0,%xmm0
  add    -0x4(%rbp,%rax,4),%ecx
  add    0x4(%rbp,%rax,4),%ecx
  cvtsi2ss %ecx,%xmm0
  divss  %xmm2,%xmm0
  movss  %xmm0,(%rdx,%rax,4)
L110:
  add    $0x1,%rax
  cmp    %rbx,%rax
  je     L17
L0:
  test   %rax,%rax
  jne    L34
  mov    0x4(%rbp),%ecx
  pxor   %xmm0,%xmm0
  add    0x0(%rbp),%ecx
  add    $0x1,%rax
  cvtsi2ss %ecx,%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,(%rdx)
  cmp    %rbx,%rax
  jne    L0
L17:
  mov    %rdx,%rbx
  lea    (%rdx,%rax,4),%r12
  lea    D38(%rip),%rbp
  nopl   0x0(%rax)
L12:
  movss  (%rbx),%xmm0
  mov    %rbp,%rdi
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %r12,%rbx
  jne    L12
L100:
  lea    D27(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L60
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L129:
  mov    (%rsi),%ecx
  pxor   %xmm0,%xmm0
  add    (%rdi),%ecx
  cvtsi2ss %ecx,%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,(%rdx,%rax,4)
  jmp    L110
L60:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D28
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D42
type_guessed: byte[4]
name: extract_symbolic_data
arguments: data_tag: D32
type_guessed: byte[4]
name: extract_symbolic_data
arguments: data_tag: D38
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D27
type_guessed: string

tool: D28: %d

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

tool: {"D32": [0x00,0x00,0x00,0x3f]}

tool: D38: %.2f 

tool: 

assistant: ```c
int main() {
  int *v = 0;
  int vCount = 0;
  int vCapacity = 0;
  for (;;) {
    int new;
    if (scanf("%d", &new) < 1) {
      break;
    }
    if (vCount == vCapacity) {
      vCapacity += 10;
      v = realloc(v, sizeof(int) * vCapacity);
    }
    v[vCount++] = new;
  }
  float *avg = malloc(sizeof(float) * vCount);
  for (int i = 0; i < vCount; ++i) {
    if (i == 0) {
      avg[i] = (float)(v[0] + v[1]) / 2.0f;
    } else if (i == vCount - 1) {
      avg[i] = (float)(v[vCount - 2] + v[vCount - 1]) / 2.0f;
    } else {
      avg[i] = (float)(v[i - 1] + v[i] + v[i + 1]) / 3.0f;
    }
  }
  for (int i = 0; i < vCount; ++i) {
    printf("%.2f ", avg[i]);
  }
  puts("");
  return 0;
}
```