user: 请将以下的汇编代码转换成C语言代码：

```asm
<variance>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x128,%rsp
  mov    %rdi,-0x148(%rbp)
  mov    %rsi,-0x150(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x148(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x118(%rbp)
  mov    %rax,%r14
  mov    $0x0,%r15d
  mov    %rax,%r12
  mov    $0x0,%r13d
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%ecx
  mov    $0x0,%edx
  div    %rcx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L76:
  cmp    %rdx,%rsp
  je     L4
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L76
L4:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L70
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L70:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x110(%rbp)
  mov    -0x148(%rbp),%rdx
  mov    -0x110(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x150(%rbp),%rdx
  mov    -0x148(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <mean@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x108(%rbp)
  mov    -0x110(%rbp),%rax
  lea    D47(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strtok@plt>
  mov    %rax,-0x130(%rbp)
  jmp    L124
L22:
  mov    -0x150(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,%rdx
  mov    -0x150(%rbp),%rcx
  mov    -0x130(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L97
  mov    -0x130(%rbp),%rdx
  lea    -0x100(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  jmp    L119
L97:
  lea    D47(%rip),%rax
  mov    %rax,%rsi
  mov    $0x0,%edi
  call   <strtok@plt>
  mov    %rax,-0x130(%rbp)
L124:
  cmpq   $0x0,-0x130(%rbp)
  jne    L22
L119:
  movl   $0x0,-0x134(%rbp)
  movq   $0x0,-0x128(%rbp)
  jmp    L10
L25:
  lea    -0x100(%rbp),%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L57
  lea    -0x100(%rbp),%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L57
  lea    -0x100(%rbp),%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  jne    L90
L57:
  mov    -0x134(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x134(%rbp)
  lea    -0x100(%rbp),%rcx
  mov    -0x128(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rdx),%edx
  cltq
  mov    %dl,-0x100(%rbp,%rax,1)
L90:
  addq   $0x1,-0x128(%rbp)
L10:
  lea    -0x100(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %rax,-0x128(%rbp)
  jb     L25
  mov    -0x134(%rbp),%eax
  cltq
  movb   $0x0,-0x100(%rbp,%rax,1)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x120(%rbp)
  lea    -0x100(%rbp),%rax
  lea    D7(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strtok@plt>
  mov    %rax,-0x130(%rbp)
  jmp    L108
L148:
  mov    -0x130(%rbp),%rax
  mov    %rax,%rdi
  call   <atof@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  subsd  -0x108(%rbp),%xmm0
  cvttsd2si %xmm0,%rax
  mov    $0x2,%esi
  mov    %rax,%rdi
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  movsd  -0x120(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x120(%rbp)
  lea    D7(%rip),%rax
  mov    %rax,%rsi
  mov    $0x0,%edi
  call   <strtok@plt>
  mov    %rax,-0x130(%rbp)
L108:
  cmpq   $0x0,-0x130(%rbp)
  jne    L148
  movsd  -0x120(%rbp),%xmm0
  movsd  D0(%rip),%xmm1
  divsd  %xmm1,%xmm0
  mov    %rbx,%rsp
  movq   %xmm0,%rax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L145
  call   <__stack_chk_fail@plt>
L145:
  movq   %rax,%xmm0
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D47
type_infered: string
name: parse_data
arguments: data_tag: D7
type_infered: string
name: parse_data
arguments: data_tag: D0
type_infered: f32[2]

tool: D47: 


tool: D7: ,

tool: {"D0": [0.0,2.625]}

assistant: ```c
double variance(char *str, char *town) {
  char buff[strlen(str)];
  strcpy(buff, str);
  char line[200];
  double rain_mean = mean(str, town);
  char *pch = strtok(buff, "\n");
  while (pch != NULL) {
    if (strncmp(pch, town, strlen(town)) == 0) {
      strcpy(line, pch);
      break;
    }
    pch = strtok(NULL, "\n");
  }
  int cnt = 0;
  for (size_t i = 0; i < strlen(line); ++i) {
    if (isdigit(line[i]) || line[i] == '.' || line[i] == ',')
      line[cnt++] = line[i];
  }
  line[cnt] = '\0';
  double sum = 0;
  pch = strtok(line, ",");
  while (pch != NULL) {
    sum += pow(atof(pch) - rain_mean, 2);
    pch = strtok(NULL, ",");
  }
  return sum / 12;
}
```