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

```asm
<output_element>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %ecx,-0x2c(%rbp)
  movl   $0x0,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x2c(%rbp),%eax
  and    $0x8,%eax
  test   %eax,%eax
  je     L25
  mov    -0x18(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
L25:
  mov    -0x2c(%rbp),%eax
  and    $0x20,%eax
  test   %eax,%eax
  jne    L32
  mov    -0x18(%rbp),%rdx
  mov    -0x20(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fputs@plt>
  jmp    L200
L32:
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x4(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L107
L93:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  mov    %edx,%edi
  call   <fputc@plt>
  addl   $0x1,-0xc(%rbp)
L107:
  mov    -0xc(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L93
L200:
  mov    -0x2c(%rbp),%eax
  and    $0x8,%eax
  test   %eax,%eax
  je     L175
  mov    -0x18(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x4,%edx
  mov    $0x1,%esi
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  jmp    L179
L175:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x3d,%edi
  call   <fputc@plt>
L179:
  mov    -0x2c(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  je     L78
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x7b,%edi
  call   <fputc@plt>
  jmp    L164
L78:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x22,%edi
  call   <fputc@plt>
L164:
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x4(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L118
L167:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0xd(%rbp)
  cmpb   $0x22,-0xd(%rbp)
  je     L91
  movsbl -0xd(%rbp),%eax
  mov    -0x18(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <fputc@plt>
  jmp    L1
L91:
  mov    -0x2c(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  jne    L176
  cmpl   $0x0,-0xc(%rbp)
  jle    L74
  mov    -0xc(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  jne    L74
L176:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x22,%edi
  call   <fputc@plt>
  jmp    L1
L74:
  mov    -0x8(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L150
  mov    -0x18(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  jmp    L209
L150:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
L209:
  addl   $0x1,-0x8(%rbp)
L1:
  addl   $0x1,-0xc(%rbp)
L118:
  mov    -0xc(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L167
  mov    -0x2c(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  je     L138
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x7d,%edi
  call   <fputc@plt>
  jmp    L47
L138:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x22,%edi
  call   <fputc@plt>
L47:
  nop
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D48
data_type: string
name: disassemble_data
arguments: tag: D13
data_type: string
name: disassemble_data
arguments: tag: D4
data_type: string
name: disassemble_data
arguments: tag: D0
data_type: string
name: disassemble_data
arguments: tag: D17
data_type: string

tool: D48: ,


tool: D13:   

tool: D4:  = 	

tool: D0: ``

tool: D17: ''

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