user: 请从给定的汇编指令推导出C源代码：

```asm
<output_element>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rsi,%r13
  mov    $0x1,%esi
  push   %r12
  mov    %rdx,%r12
  mov    $0x2,%edx
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %ecx,%ebx
  mov    %rdi,%rcx
  lea    D16(%rip),%rdi
  mov    %ebx,%r14d
  sub    $0x8,%rsp
  call   <fwrite@plt>
  and    $0x8,%r14d
  jne    L177
L43:
  test   $0x20,%bl
  jne    L67
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <fputs@plt>
L136:
  test   %r14d,%r14d
  je     L65
L103:
  mov    %rbp,%rcx
  mov    $0x4,%edx
  mov    $0x1,%esi
  lea    D6(%rip),%rdi
  call   <fwrite@plt>
L19:
  mov    %rbp,%rsi
  and    $0x10,%ebx
  je     L134
  mov    $0x7b,%edi
  call   <fputc@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%r13d
  test   %eax,%eax
  jle    L12
L116:
  xor    %r15d,%r15d
  xor    %r14d,%r14d
  jmp    L131
  cs nopw 0x0(%rax,%rax,1)
L31:
  mov    %rbp,%rsi
  call   <fputc@plt>
L52:
  add    $0x1,%r15
  cmp    %r15d,%r13d
  jle    L48
L131:
  movsbl (%r12,%r15,1),%edi
  cmp    $0x22,%dil
  jne    L31
  test   %ebx,%ebx
  jne    L139
  test   %r15,%r15
  je     L2
  cmpb   $0x5c,-0x1(%r12,%r15,1)
  je     L139
L2:
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  test   $0x1,%r14b
  jne    L189
  lea    D49(%rip),%rdi
  call   <fwrite@plt>
L21:
  add    $0x1,%r15
  add    $0x1,%r14d
  cmp    %r15d,%r13d
  jg     L131
L48:
  test   %ebx,%ebx
  je     L45
L12:
  mov    %rbp,%rsi
  mov    $0x7d,%edi
L10:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10c0 <fputc@plt>
  nopl   0x0(%rax,%rax,1)
L139:
  mov    %rbp,%rsi
  mov    $0x22,%edi
  call   <fputc@plt>
  jmp    L52
  nopw   0x0(%rax,%rax,1)
L189:
  lea    D39(%rip),%rdi
  call   <fwrite@plt>
  jmp    L21
  cs nopw 0x0(%rax,%rax,1)
L134:
  mov    $0x22,%edi
  call   <fputc@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%r13d
  test   %eax,%eax
  jg     L116
  nopl   (%rax)
L45:
  mov    %rbp,%rsi
  mov    $0x22,%edi
  jmp    L10
  nopw   0x0(%rax,%rax,1)
L67:
  mov    %r13,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jle    L136
  sub    $0x1,%eax
  lea    0x1(%r13,%rax,1),%r15
  nopl   0x0(%rax,%rax,1)
L178:
  movsbl 0x0(%r13),%edi
  add    $0x1,%r13
  call   <toupper@plt>
  mov    %rbp,%rsi
  mov    %eax,%edi
  call   <fputc@plt>
  cmp    %r15,%r13
  jne    L178
  test   %r14d,%r14d
  jne    L103
L65:
  mov    %rbp,%rsi
  mov    $0x3d,%edi
  call   <fputc@plt>
  jmp    L19
  nopl   0x0(%rax,%rax,1)
L177:
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D2(%rip),%rdi
  call   <fwrite@plt>
  jmp    L43
```

tool_calls: name: read_data
arguments: data_tag: D16
datatype: string
name: read_data
arguments: data_tag: D6
datatype: string
name: read_data
arguments: data_tag: D49
datatype: string
name: read_data
arguments: data_tag: D39
datatype: string
name: read_data
arguments: data_tag: D2
datatype: string

tool: D16: ,


tool: D6:  = 	

tool: D49: ``

tool: D39: ''

tool: D2:   

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, "\"");
}
```