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

```asm
<chronopic_get_trama_cambio>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x12(%rbp),%rdx
  mov    -0x24(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <sg_trama_cambio_read@plt>
  mov    %eax,-0x18(%rbp)
  cmpl   $0x1,-0x18(%rbp)
  je     L53
  mov    -0x18(%rbp),%eax
  jmp    L71
L53:
  movzbl -0xe(%rbp),%eax
  movzbl %al,%edi
  movzbl -0xf(%rbp),%eax
  movzbl %al,%esi
  movzbl -0x10(%rbp),%eax
  movzbl %al,%ecx
  movzbl -0x11(%rbp),%eax
  movzbl %al,%edx
  movzbl -0x12(%rbp),%eax
  movzbl %al,%eax
  mov    %edi,%r9d
  mov    %esi,%r8d
  mov    %eax,%esi
  lea    D37(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movzbl -0x10(%rbp),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  movzbl -0xf(%rbp),%eax
  movzbl %al,%eax
  add    %edx,%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  movzbl -0xe(%rbp),%eax
  movzbl %al,%eax
  add    %edx,%eax
  movslq %eax,%rdx
  imul   $0x10624dd3,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x3,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%esi
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movzbl -0x12(%rbp),%eax
  cmp    $0x58,%al
  je     L41
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L71
L41:
  movzbl -0x11(%rbp),%eax
  test   %al,%al
  je     L31
  movzbl -0x11(%rbp),%eax
  cmp    $0x1,%al
  je     L31
  lea    D40(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L71
L31:
  movzbl -0x11(%rbp),%eax
  movzbl %al,%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,(%rax)
  movzbl -0x10(%rbp),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  movzbl -0xf(%rbp),%eax
  movzbl %al,%eax
  add    %edx,%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  movzbl -0xe(%rbp),%eax
  movzbl %al,%eax
  add    %edx,%eax
  shl    $0x3,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  D57(%rip),%xmm1
  divsd  %xmm1,%xmm0
  mov    -0x30(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x1,%eax
L71:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L7
  call   <__stack_chk_fail@plt>
L7:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D37
data_type: string
name: unpack_data
arguments: label: D15
data_type: string
name: unpack_data
arguments: label: D25
data_type: string
name: unpack_data
arguments: label: D40
data_type: string
name: unpack_data
arguments: label: D57
data_type: byte[8]
name: unpack_data
arguments: label: D51
data_type: string

tool: D37: %c-%d-%d-%d-%d

tool: D15: %d

tool: D25: Error. Trama desconocida

tool: D40: Error. Estado no valido

tool: {"D57": [0x00,0x00,0x00,0x00,0x00,0x40,0x8f,0x40]}

tool: D51: %f

assistant: ```c
int chronopic_get_trama_cambio(int fd, double *t, int *estado) {
  int n;
  unsigned char trama[10];
  n = sg_trama_cambio_read(fd, trama);
  if (n != 1)
    return n;
  printf("%c-%d-%d-%d-%d", trama[0], trama[1], trama[2], trama[3], trama[4]);
  printf("%d", ((trama[2] * 65536 + trama[3] * 256 + trama[4]) * 8) / 1000);
  if (trama[0] != 'X') {
    printf("Error. Trama desconocida\n");
    return -1;
  }
  if (trama[1] != 0 && trama[1] != 1) {
    printf("Error. Estado no valido\n");
    return -1;
  }
  *estado = (int)(trama[1] & 0xff);
  *t = (double)((trama[2] * 65536 + trama[3] * 256 + trama[4]) * 8) / 1000;
  printf("%f", *t);
  return 1;
}
```