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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  lea    -0x8c000(%rsp),%r11
L65:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L65
  sub    $0xa88,%rsp
  mov    %edi,-0x8ca84(%rbp)
  mov    %rsi,-0x8ca90(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  movabs $0x7220742d20636572,%rax
  movabs $0x363120622d207761,%rdx
  mov    %rax,-0x40(%rbp)
  mov    %rdx,-0x38(%rbp)
  movabs $0x652d203120632d20,%rax
  movabs $0x383420722d207320,%rdx
  mov    %rax,-0x30(%rbp)
  mov    %rdx,-0x28(%rbp)
  movl   $0x20303030,-0x20(%rbp)
  movw   $0x2d,-0x1c(%rbp)
  lea    -0x40(%rbp),%rax
  lea    D141(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <popen@plt>
  mov    %rax,-0x8ca68(%rbp)
  cmpq   $0x0,-0x8ca68(%rbp)
  jne    L82
  lea    D109(%rip),%rax
  mov    %rax,%rdi
  call   <perror@plt>
L82:
  movl   $0x0,-0x8ca78(%rbp)
L53:
  mov    $0x23280,%eax
  sub    -0x8ca78(%rbp),%eax
  mov    -0x8ca78(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  lea    -0x8ca40(%rbp),%rdx
  lea    (%rdx,%rcx,1),%rdi
  mov    -0x8ca68(%rbp),%rdx
  mov    %rdx,%rcx
  mov    %eax,%edx
  mov    $0x4,%esi
  call   <fread@plt>
  mov    %eax,%edx
  mov    -0x8ca78(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x8ca78(%rbp)
  cmpl   $0x2327f,-0x8ca78(%rbp)
  jg     L76
  jmp    L53
L76:
  nop
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  mov    -0x8ca90(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    %eax,%ebx
  lea    D102(%rip),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    %ebx,%eax
  add    $0x1,%eax
  mov    %eax,-0x8ca70(%rbp)
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  mov    -0x8ca90(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    %eax,%ebx
  lea    D44(%rip),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    %ebx,%eax
  add    $0x1,%eax
  mov    %eax,-0x8ca6c(%rbp)
  mov    -0x8ca70(%rbp),%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8ca60(%rbp)
  mov    -0x8ca6c(%rbp),%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8ca58(%rbp)
  mov    -0x8ca60(%rbp),%rax
  lea    D32(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x8ca58(%rbp),%rax
  lea    D32(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x8ca90(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rdx
  mov    -0x8ca60(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0x8ca90(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rdx
  mov    -0x8ca58(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0x8ca60(%rbp),%rax
  lea    D102(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0x8ca58(%rbp),%rax
  lea    D44(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0x8ca60(%rbp),%rax
  lea    D136(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x8ca50(%rbp)
  cmpq   $0x0,-0x8ca50(%rbp)
  jne    L86
  lea    D113(%rip),%rax
  mov    %rax,%rdi
  call   <perror@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L86:
  mov    -0x8ca58(%rbp),%rax
  lea    D136(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x8ca48(%rbp)
  cmpq   $0x0,-0x8ca48(%rbp)
  jne    L25
  lea    D113(%rip),%rax
  mov    %rax,%rdi
  call   <perror@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L25:
  movl   $0x0,-0x8ca74(%rbp)
  jmp    L49
L16:
  mov    -0x8ca74(%rbp),%eax
  cltq
  mov    -0x8ca40(%rbp,%rax,4),%ecx
  mov    -0x8ca74(%rbp),%edx
  mov    -0x8ca50(%rbp),%rax
  lea    D14(%rip),%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  lea    -0x8ca40(%rbp),%rdx
  mov    -0x8ca74(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x8ca48(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x1,%edx
  mov    $0x4,%esi
  call   <fwrite@plt>
  addl   $0x1,-0x8ca74(%rbp)
L49:
  cmpl   $0x2327f,-0x8ca74(%rbp)
  jle    L16
  mov    -0x8ca50(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x8ca48(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x8ca68(%rbp),%rax
  mov    %rax,%rdi
  call   <pclose@plt>
  mov    $0x0,%eax
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L71
  call   <__stack_chk_fail@plt>
L71:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D141
data_type: string
name: extract_symbolic_data
arguments: label: D109
data_type: string
name: extract_symbolic_data
arguments: label: D32
data_type: string
name: extract_symbolic_data
arguments: label: D102
data_type: string
name: extract_symbolic_data
arguments: label: D44
data_type: string
name: extract_symbolic_data
arguments: label: D136
data_type: string
name: extract_symbolic_data
arguments: label: D113
data_type: string
name: extract_symbolic_data
arguments: label: D14
data_type: string

tool: D141: r

tool: D109: rec

tool: D32: data/

tool: D102: .txt

tool: D44: .raw

tool: D136: w

tool: D113: fopen

tool: D14: %d %d


assistant: ```c
int main(int ARGC, char *ARGV[]) {
  FILE *rec;
  char cmd[] = "rec -t raw -b 16 -c 1 -e s -r 48000 -";
  if ((rec = popen(cmd, "r")) == NULL) {
    perror("rec");
  }
  int n = 0;
  int16_t buf[144000];
  while (1) {
    n += fread(buf + n, sizeof(int16_t), 144000 - n, rec);
    if (n >= 144000) {
      break;
    }
  }
  char *text_file_name, *raw_file_name;
  int text_file_name_len = strlen("data/") + strlen(ARGV[1]) + strlen(".txt") + 1;
  int raw_file_name_len = strlen("data/") + strlen(ARGV[1]) + strlen(".raw") + 1;
  text_file_name = (char *)malloc(sizeof(char) * text_file_name_len);
  raw_file_name = (char *)malloc(sizeof(char) * raw_file_name_len);
  strcpy(text_file_name, "data/");
  strcpy(raw_file_name, "data/");
  strcat(text_file_name, ARGV[1]);
  strcat(raw_file_name, ARGV[1]);
  strcat(text_file_name, ".txt");
  strcat(raw_file_name, ".raw");
  FILE *text, *raw;
  if ((text = fopen(text_file_name, "w")) == NULL) {
    perror("fopen");
    exit(1);
  }
  if ((raw = fopen(raw_file_name, "w")) == NULL) {
    perror("fopen");
    exit(1);
  }
  for (int i = 0; i < 144000; i++) {
    fprintf(text, "%d %d\n", i, buf[i]);
    fwrite(&buf[i], sizeof(int16_t), 1, raw);
  }
  fclose(text);
  fclose(raw);
  pclose(rec);
  return 0;
}
```