user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %r14
  lea    D2(%rip),%rsi
  lea    D57(%rip),%rdi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rbx
  call   <fopen@plt>
  movl   $0x0,0x4(%rsp)
  mov    %rax,%rbp
  nopl   0x0(%rax,%rax,1)
L21:
  mov    %rbp,%rcx
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rbx,%rdi
  call   <fwrite@plt>
  mov    0x4(%rsp),%eax
  add    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    $0xff,%eax
  jle    L21
  mov    %rbp,%rdi
  lea    D51(%rip),%r14
  lea    D20(%rip),%r13
  call   <fclose@plt>
  lea    D95(%rip),%rdi
  lea    0x2(%rsp),%rbx
  call   <system@plt>
  lea    D82(%rip),%rdi
  lea    D24(%rip),%rbp
  call   <puts@plt>
  lea    D58(%rip),%rdi
  call   <puts@plt>
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <fopen@plt>
  movl   $0x0,0x4(%rsp)
  mov    %rax,%r12
  jmp    L12
  nopl   (%rax)
L75:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x4(%rsp),%eax
  add    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    $0xff,%eax
  jg     L30
L12:
  mov    %r12,%rcx
  mov    $0x1,%edx
  mov    $0x2,%esi
  mov    %rbx,%rdi
  call   <fread@plt>
  movswl 0x2(%rsp),%esi
  xor    %eax,%eax
  mov    %rbp,%rdi
  call   <printf@plt>
  cmpl   $0xff,0x4(%rsp)
  je     L75
  mov    $0x2c,%edi
  call   <putchar@plt>
  mov    0x4(%rsp),%eax
  mov    %eax,%edx
  and    $0x7,%edx
  cmp    $0x7,%edx
  je     L75
  add    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    $0xff,%eax
  jle    L12
L30:
  mov    %r12,%rdi
  lea    D59(%rip),%r12
  call   <fclose@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  lea    D21(%rip),%rdi
  call   <system@plt>
  lea    D56(%rip),%rdi
  call   <puts@plt>
  mov    %r13,%rdi
  mov    %r14,%rsi
  call   <fopen@plt>
  movl   $0x0,0x4(%rsp)
  mov    %rax,%r13
  jmp    L51
  nopw   0x0(%rax,%rax,1)
L79:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x4(%rsp),%eax
  add    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    $0xff,%eax
  jg     L113
L51:
  mov    %r13,%rcx
  mov    $0x1,%edx
  mov    $0x2,%esi
  mov    %rbx,%rdi
  call   <fread@plt>
  movswl 0x2(%rsp),%esi
  xor    %eax,%eax
  mov    %rbp,%rdi
  call   <printf@plt>
  cmpl   $0xff,0x4(%rsp)
  je     L79
  mov    $0x2c,%edi
  call   <putchar@plt>
  mov    0x4(%rsp),%eax
  mov    %eax,%edx
  and    $0x7,%edx
  cmp    $0x7,%edx
  je     L79
  add    $0x1,%eax
  mov    %eax,0x4(%rsp)
  cmp    $0xff,%eax
  jle    L51
L113:
  mov    %r13,%rdi
  call   <fclose@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L19
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L19:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D2
type_infered: string
name: retrieve_data
arguments: tag: D57
type_infered: string
name: retrieve_data
arguments: tag: D51
type_infered: string
name: retrieve_data
arguments: tag: D20
type_infered: string
name: retrieve_data
arguments: tag: D95
type_infered: string
name: retrieve_data
arguments: tag: D82
type_infered: string
name: retrieve_data
arguments: tag: D24
type_infered: string
name: retrieve_data
arguments: tag: D58
type_infered: string
name: retrieve_data
arguments: tag: D59
type_infered: string
name: retrieve_data
arguments: tag: D21
type_infered: string
name: retrieve_data
arguments: tag: D56
type_infered: string

tool: D2: wb

tool: D57: alaw.dat

tool: D51: rb

tool: D20: alaw.out

tool: D95: sox -t raw -A -r 8000 -b alaw.dat -t sw alaw.out

tool: D82: // Generated by TOOLS/alaw-gen.c

tool: D24: %6d

tool: D58: 
short alaw2short[]={

tool: D59: };

tool: D21: sox -t raw -U -r 8000 -b alaw.dat -t sw alaw.out

tool: D56: 
short ulaw2short[]={

assistant: ```c
int main(void) {
  int i;
  FILE *f;
  f = fopen("alaw.dat", "wb");
  for (i = 0; i < 256; i++)
    fwrite(&i, 1, 1, f);
  fclose(f);
  system("sox -t raw -A -r 8000 -b alaw.dat -t sw alaw.out");
  printf("// Generated by TOOLS/alaw-gen.c\n");
  printf("\nshort alaw2short[]={\n");
  f = fopen("alaw.out", "rb");
  for (i = 0; i < 256; i++) {
    signed short x;
    fread(&x, 2, 1, f);
    printf("%6d", x);
    if (i != 255)
      putchar(',');
    if ((i & 7) == 7)
      printf("\n");
  }
  fclose(f);
  printf("};\n");
  system("sox -t raw -U -r 8000 -b alaw.dat -t sw alaw.out");
  printf("\nshort ulaw2short[]={\n");
  f = fopen("alaw.out", "rb");
  for (i = 0; i < 256; i++) {
    signed short x;
    fread(&x, 2, 1, f);
    printf("%6d", x);
    if (i != 255)
      putchar(',');
    if ((i & 7) == 7)
      printf("\n");
  }
  fclose(f);
  printf("};\n");
  return 0;
}
```