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

```asm
<output_element>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%r14
  mov    %rdx,%r12
  mov    %ecx,%r13d
  mov    %rdi,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D1(%rip),%rdi
  call   <fwrite@plt>
  mov    %r13d,%r15d
  and    $0x8,%r15d
  jne    L76
L26:
  test   $0x20,%r13b
  jne    L112
  mov    %rbp,%rsi
  mov    %r14,%rdi
  call   <fputs@plt>
L147:
  test   %r15d,%r15d
  je     L89
  mov    %rbp,%rcx
  mov    $0x4,%edx
  mov    $0x1,%esi
  lea    D19(%rip),%rdi
  call   <fwrite@plt>
L165:
  and    $0x10,%r13d
  je     L224
  mov    %rbp,%rsi
  mov    $0x7b,%edi
  call   <fputc@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%r14d
  test   %eax,%eax
  jle    L16
L155:
  mov    $0x0,%ebx
  mov    $0x0,%r15d
  jmp    L117
L76:
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D26(%rip),%rdi
  call   <fwrite@plt>
  jmp    L26
L112:
  mov    %r14,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jle    L147
  mov    %r14,%rbx
  lea    -0x1(%rax),%eax
  lea    0x1(%r14,%rax,1),%r14
L128:
  movsbl (%rbx),%edi
  call   <toupper@plt>
  mov    %eax,%edi
  mov    %rbp,%rsi
  call   <fputc@plt>
  add    $0x1,%rbx
  cmp    %r14,%rbx
  jne    L128
  jmp    L147
L89:
  mov    %rbp,%rsi
  mov    $0x3d,%edi
  call   <fputc@plt>
  jmp    L165
L224:
  mov    %rbp,%rsi
  mov    $0x22,%edi
  call   <fputc@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%r14d
  test   %eax,%eax
  jg     L155
L227:
  mov    %rbp,%rsi
  mov    $0x22,%edi
  call   <fputc@plt>
  jmp    L85
L159:
  movsbl %dil,%edi
  mov    %rbp,%rsi
  call   <fputc@plt>
L83:
  add    $0x1,%rbx
  cmp    %ebx,%r14d
  jle    L5
L117:
  movzbl (%r12,%rbx,1),%edi
  cmp    $0x22,%dil
  jne    L159
  test   %r13d,%r13d
  jne    L75
  test   %ebx,%ebx
  jle    L116
  cmpb   $0x5c,-0x1(%r12,%rbx,1)
  je     L75
L116:
  test   $0x1,%r15b
  jne    L182
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D0(%rip),%rdi
  call   <fwrite@plt>
L225:
  add    $0x1,%r15d
  jmp    L83
L75:
  mov    %rbp,%rsi
  mov    $0x22,%edi
  call   <fputc@plt>
  jmp    L83
L182:
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D30(%rip),%rdi
  call   <fwrite@plt>
  jmp    L225
L5:
  test   %r13d,%r13d
  je     L227
L16:
  mov    %rbp,%rsi
  mov    $0x7d,%edi
  call   <fputc@plt>
L85:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: label: D1
datatype: string
name: parse_data
arguments: label: D19
datatype: string
name: parse_data
arguments: label: D26
datatype: string
name: parse_data
arguments: label: D0
datatype: string
name: parse_data
arguments: label: D30
datatype: string

tool: D1: ,


tool: D19:  = 	

tool: D26:   

tool: D0: ``

tool: D30: ''

assistant: ```c
void output_element(FILE *fp, char *tag, char *data, int format_opts) {
  int i, len, nquotes = 0;
  char ch;
  fprintf(fp, ",\n");
  if (format_opts & (8))
    fprintf(fp, "  ");
  if (!(format_opts & (32)))
    fprintf(fp, "%s", tag);
  else {
    len = strlen(tag);
    for (i = 0; i < len; ++i)
      fprintf(fp, "%c", toupper(tag[i]));
  }
  if (format_opts & (8))
    fprintf(fp, " = \t");
  else
    fprintf(fp, "=");
  if (format_opts & (16))
    fprintf(fp, "{");
  else
    fprintf(fp, "\"");
  len = strlen(data);
  for (i = 0; i < len; ++i) {
    ch = data[i];
    if (ch != '\"')
      fprintf(fp, "%c", ch);
    else {
      if (format_opts & (16) || (i > 0 && data[i - 1] == '\\'))
        fprintf(fp, "\"");
      else {
        if (nquotes % 2 == 0)
          fprintf(fp, "``");
        else
          fprintf(fp, "\'\'");
        nquotes++;
      }
    }
  }
  if (format_opts & (16))
    fprintf(fp, "}");
  else
    fprintf(fp, "\"");
}
```