user: What is the c source code of the assembly code below:

```asm
<store_cluster_attr>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%r12
  mov    %rsi,%rbp
  mov    %rdx,%r14
  mov    %rsi,%rdi
  call   <strlen@plt>
  lea    0x2(%rax),%edi
  call   <malloc@plt>
  mov    %rax,%r13
  mov    %rbp,%rdx
  lea    D36(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    (%r12),%rbx
  test   %rbx,%rbx
  je     L20
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L25
  mov    $0x3b,%esi
  mov    %rax,%rbx
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,%r15
  movb   $0x0,(%rbx)
  test   %rax,%rax
  lea    D10(%rip),%rax
  cmove  %rax,%r15
  mov    (%r12),%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  mov    %r15,%rdi
  call   <strlen@plt>
  lea    0x1(%rbx,%rax,1),%edi
  call   <malloc@plt>
  mov    %rax,%rbx
  mov    %r15,%rcx
  mov    (%r12),%rdx
  lea    D45(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    (%r12),%rdi
  call   <free@plt>
  test   %rbx,%rbx
  je     L20
L25:
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,(%rsp)
  lea    D37(%rip),%r15
  mov    %r15,%rdi
  call   <strlen@plt>
  add    (%rsp),%eax
  mov    %eax,(%rsp)
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,0xc(%rsp)
  lea    D69(%rip),%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  add    0xc(%rsp),%edx
  mov    %edx,0xc(%rsp)
  mov    %r14,%rdi
  call   <strlen@plt>
  add    0xc(%rsp),%eax
  mov    (%rsp),%ecx
  lea    0x1(%rcx,%rax,1),%edi
  call   <malloc@plt>
  mov    %rax,%rdi
  mov    %rbx,(%rsp)
  mov    %r15,%rcx
L12:
  mov    %rdi,(%r12)
  mov    %r14,%r9
  mov    %rbp,%r8
  mov    %rbx,%rdx
  lea    D6(%rip),%rsi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
  mov    %r13,%rdi
  call   <free@plt>
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L20:
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  lea    D69(%rip),%rdi
  call   <strlen@plt>
  add    %eax,%ebx
  mov    %r14,%rdi
  call   <strlen@plt>
  lea    0x1(%rbx,%rax,1),%edi
  call   <malloc@plt>
  mov    %rax,%rdi
  lea    D10(%rip),%rcx
  movq   $0x0,(%rsp)
  mov    %rcx,%rbx
  jmp    L12
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D36
datatype: string
name: extract_symbolic_data
arguments: data_tag: D10
datatype: string
name: extract_symbolic_data
arguments: data_tag: D45
datatype: string
name: extract_symbolic_data
arguments: data_tag: D37
datatype: string
name: extract_symbolic_data
arguments: data_tag: D69
datatype: string
name: extract_symbolic_data
arguments: data_tag: D6
datatype: string

tool: D36: %s=

tool: 

tool: D45: %s%s

tool: D37: ;

tool: D69: =

tool: D6: %s%s%s=%s

assistant: ```c
void store_cluster_attr(char **metric, char *name, char *value) {
  char *pos = NULL, *rest;
  char *pattern;
  char *new_metric = NULL;
  int len;
  pattern = malloc(strlen(name) + 2);
  sprintf(pattern, "%s=", name);
  if (*metric)
    pos = strstr(*metric, pattern);
  if (pos) {
    rest = strchr(pos, ';');
    pos[0] = 0;
    if (rest == NULL)
      rest = "";
    new_metric = malloc(strlen(*metric) + strlen(rest) + 1);
    sprintf(new_metric, "%s%s", *metric, rest);
    free(*metric);
  } else
    (new_metric = *metric);
  len = new_metric ? (strlen(new_metric) + strlen(";")) : 0;
  len += strlen(name) + strlen("=") + strlen(value);
  *metric = malloc(len + 1);
  sprintf(*metric, "%s%s%s=%s", new_metric ? new_metric : "", new_metric ? ";" : "", name, value);
  free(new_metric);
  free(pattern);
}
```