user: What would the C source look like for the assembly code provided here:

```asm
<mean>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x118,%rsp
  mov    %rdi,-0x138(%rbp)
  mov    %rsi,-0x140(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x138(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x110(%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
L14:
  cmp    %rdx,%rsp
  je     L166
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L14
L166:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L137
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L137:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x108(%rbp)
  mov    -0x138(%rbp),%rdx
  mov    -0x108(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  lea    -0x100(%rbp),%rax
  lea    D9(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x108(%rbp),%rax
  lea    D60(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strtok@plt>
  mov    %rax,-0x128(%rbp)
  jmp    L95
L121:
  mov    -0x140(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,%rdx
  mov    -0x140(%rbp),%rcx
  mov    -0x128(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L46
  mov    -0x128(%rbp),%rdx
  lea    -0x100(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  jmp    L65
L46:
  lea    D60(%rip),%rax
  mov    %rax,%rsi
  mov    $0x0,%edi
  call   <strtok@plt>
  mov    %rax,-0x128(%rbp)
L95:
  cmpq   $0x0,-0x128(%rbp)
  jne    L121
L65:
  lea    -0x100(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L48
  movsd  D26(%rip),%xmm0
  jmp    L113
L48:
  movl   $0x0,-0x12c(%rbp)
  movq   $0x0,-0x120(%rbp)
  jmp    L73
L97:
  lea    -0x100(%rbp),%rdx
  mov    -0x120(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L91
  lea    -0x100(%rbp),%rdx
  mov    -0x120(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L91
  lea    -0x100(%rbp),%rdx
  mov    -0x120(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  jne    L36
L91:
  mov    -0x12c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x12c(%rbp)
  lea    -0x100(%rbp),%rcx
  mov    -0x120(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rdx),%edx
  cltq
  mov    %dl,-0x100(%rbp,%rax,1)
L36:
  addq   $0x1,-0x120(%rbp)
L73:
  lea    -0x100(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %rax,-0x120(%rbp)
  jb     L97
  mov    -0x12c(%rbp),%eax
  cltq
  movb   $0x0,-0x100(%rbp,%rax,1)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x118(%rbp)
  lea    -0x100(%rbp),%rax
  lea    D25(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strtok@plt>
  mov    %rax,-0x128(%rbp)
  jmp    L89
L19:
  mov    -0x128(%rbp),%rax
  mov    %rax,%rdi
  call   <atof@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  movsd  -0x118(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x118(%rbp)
  lea    D25(%rip),%rax
  mov    %rax,%rsi
  mov    $0x0,%edi
  call   <strtok@plt>
  mov    %rax,-0x128(%rbp)
L89:
  cmpq   $0x0,-0x128(%rbp)
  jne    L19
  movsd  -0x118(%rbp),%xmm0
  movsd  D47(%rip),%xmm1
  divsd  %xmm1,%xmm0
L113:
  mov    %rbx,%rsp
  movq   %xmm0,%rax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L156
  call   <__stack_chk_fail@plt>
L156:
  movq   %rax,%xmm0
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: label: D9
type_guessed: string
name: disassemble_data
arguments: label: D60
type_guessed: string
name: disassemble_data
arguments: label: D26
type_guessed: f32[2]
name: disassemble_data
arguments: label: D25
type_guessed: string
name: disassemble_data
arguments: label: D47
type_guessed: f64

tool: 

tool: D60: 


tool: {"D26": [0.0,-1.875]}

tool: D25: ,

tool: D47: 12

assistant: ```c
double mean(char *str, char *town) {
  char buff[strlen(str)];
  strcpy(buff, str);
  char line[200];
  strcpy(line, "");
  char *pch = strtok(buff, "\n");
  while (pch != NULL) {
    if (strncmp(pch, town, strlen(town)) == 0) {
      strcpy(line, pch);
      break;
    }
    pch = strtok(NULL, "\n");
  }
  if (strlen(line) == 0)
    return -1;
  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 += atof(pch);
    pch = strtok(NULL, ",");
  }
  return sum / 12.0;
}
```