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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movss  D14(%rip),%xmm0
  movss  %xmm0,-0x1c(%rbp)
  lea    D11(%rip),%rax
  mov    %rax,%rsi
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L1
  lea    D37(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L15
L1:
  mov    -0x30(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  lea    D39(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  jne    L11
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L15
L11:
  mov    -0x10(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x5b,%edi
  call   <fputc@plt>
  jmp    L29
L61:
  lea    -0x1d(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  lea    D4(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fscanf@plt>
  movzbl -0x1d(%rbp),%eax
  movsbl %al,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  mulss  -0x1c(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movq   %xmm1,%rdx
  mov    -0x10(%rbp),%rax
  movq   %rdx,%xmm0
  lea    D81(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <fprintf@plt>
L29:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <feof@plt>
  test   %eax,%eax
  je     L61
  mov    -0x10(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
L15:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L43
  call   <__stack_chk_fail@plt>
L43:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D14
type_guessed: byte[4]
name: unpack_data
arguments: label: D11
type_guessed: string
name: unpack_data
arguments: label: D24
type_guessed: string
name: unpack_data
arguments: label: D37
type_guessed: string
name: unpack_data
arguments: label: D39
type_guessed: string
name: unpack_data
arguments: label: D22
type_guessed: string
name: unpack_data
arguments: label: D4
type_guessed: string
name: unpack_data
arguments: label: D81
type_guessed: string
name: unpack_data
arguments: label: D28
type_guessed: string

tool: {"D14": [0x00,0x00,0x00,0x3c]}

tool: D11: w

tool: D24: data.ts

tool: D37: ERROR: cannot open output file


tool: D39: r

tool: D22: ERROR: cannot open input file


tool: D4: %c

tool: D81: %f,

tool: D28: 0]

assistant: ```c
int main(int argc, char *argv[]) {
  char num;
  float scale = 1.0 / 128.f;
  FILE *pi, *po;
  if ((po = fopen("data.ts", "w")) == NULL) {
    printf("ERROR: cannot open output file\n");
  } else if ((pi = fopen(argv[1], "r")) == NULL) {
    printf("ERROR: cannot open input file\n");
  } else {
    fprintf(po, "[");
    while (!feof(pi)) {
      fscanf(pi, "%c", &num);
      fprintf(po, "%f,", num * scale);
    }
    fprintf(po, "0]");
  }
  fclose(pi);
  fclose(po);
  return 0;
}
```