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

```asm
<svg_attr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xe0,%rsp
  mov    %rdi,-0xd8(%rbp)
  mov    %rsi,-0xe0(%rbp)
  mov    %rdx,-0xa0(%rbp)
  mov    %rcx,-0x98(%rbp)
  mov    %r8,-0x90(%rbp)
  mov    %r9,-0x88(%rbp)
  test   %al,%al
  je     L83
  movaps %xmm0,-0x80(%rbp)
  movaps %xmm1,-0x70(%rbp)
  movaps %xmm2,-0x60(%rbp)
  movaps %xmm3,-0x50(%rbp)
  movaps %xmm4,-0x40(%rbp)
  movaps %xmm5,-0x30(%rbp)
  movaps %xmm6,-0x20(%rbp)
  movaps %xmm7,-0x10(%rbp)
L83:
  mov    -0xe0(%rbp),%rdx
  mov    -0xc8(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <va_start@plt>
  mov    -0xc8(%rbp),%edx
  mov    -0xe0(%rbp),%rax
  mov    %edx,%ecx
  mov    %rax,%rdx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <vsnprintf@plt>
  mov    %eax,-0xc4(%rbp)
  mov    -0xc8(%rbp),%eax
  mov    %eax,%edi
  call   <va_end@plt>
  cmpl   $0x0,-0xc4(%rbp)
  jns    L35
  mov    $0x0,%eax
  jmp    L76
L35:
  mov    -0xd8(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    -0xc4(%rbp),%edx
  add    %edx,%eax
  add    $0x5,%eax
  mov    %eax,-0xc0(%rbp)
  mov    -0xc0(%rbp),%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0xb8(%rbp)
  cmpq   $0x0,-0xb8(%rbp)
  jne    L36
  mov    $0x0,%eax
  jmp    L76
L36:
  mov    -0xc0(%rbp),%eax
  lea    -0x1(%rax),%esi
  mov    -0xd8(%rbp),%rdx
  mov    -0xb8(%rbp),%rax
  mov    %rdx,%rcx
  lea    D1(%rip),%rdx
  mov    %rax,%rdi
  call   <snprintf@plt>
  mov    %eax,-0xc4(%rbp)
  cmpl   $0x0,-0xc4(%rbp)
  jns    L19
  mov    -0xb8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L76
L19:
  mov    -0xc4(%rbp),%eax
  mov    %eax,-0xbc(%rbp)
  mov    -0xe0(%rbp),%rdx
  mov    -0xc8(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <va_start@plt>
  mov    -0xc0(%rbp),%eax
  sub    -0xbc(%rbp),%eax
  lea    -0x1(%rax),%esi
  mov    -0xbc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xb8(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0xc8(%rbp),%edx
  mov    -0xe0(%rbp),%rax
  mov    %edx,%ecx
  mov    %rax,%rdx
  call   <vsnprintf@plt>
  mov    %eax,-0xc4(%rbp)
  mov    -0xc8(%rbp),%eax
  mov    %eax,%edi
  call   <va_end@plt>
  cmpl   $0x0,-0xc4(%rbp)
  jns    L41
  mov    -0xb8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L76
L41:
  mov    -0xc4(%rbp),%eax
  add    %eax,-0xbc(%rbp)
  mov    -0xbc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xb8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x22,(%rax)
  mov    -0xbc(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0xb8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0xb8(%rbp),%rax
L76:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D1
type: string

tool: D1:  %s="

assistant: ```c
char *svg_attr(const char *name, const char *fmt, ...) {
  char *attr;
  int retval, length, cur_length;
  va_list vl;
  va_start(vl, fmt);
  retval = vsnprintf(NULL, 0, fmt, vl);
  va_end(vl);
  if (retval < 0)
    return NULL;
  length = retval + strlen(name) + 5;
  attr = malloc(length);
  if (attr == NULL)
    return NULL;
  retval = snprintf(attr, length - 1, " %s=\"", name);
  if (retval < 0) {
    free(attr);
    return NULL;
  }
  cur_length = retval;
  va_start(vl, fmt);
  retval = vsnprintf(attr + cur_length, length - cur_length - 1, fmt, vl);
  va_end(vl);
  if (retval < 0) {
    free(attr);
    return NULL;
  }
  cur_length += retval;
  attr[cur_length] = '"';
  attr[cur_length + 1] = '\0';
  return attr;
}
```