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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %edi,-0x74(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x60(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  movsd  D27(%rip),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  D105(%rip),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  D84(%rip),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  jmp    L70
L86:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  movsd  -0x70(%rbp),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  movsd  D0(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movsd  -0x70(%rbp),%xmm0
  mulsd  -0x18(%rbp),%xmm0
  movsd  D0(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  -0x70(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  movsd  D0(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  -0x20(%rbp),%xmm0
  subsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x18(%rbp),%xmm0
  subsd  -0x48(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x10(%rbp),%xmm0
  subsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x40(%rbp),%xmm1
  movsd  -0x50(%rbp),%xmm0
  mov    -0x48(%rbp),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <max1@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x60(%rbp)
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x30(%rbp),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <min1@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x58(%rbp)
  jmp    L108
L127:
  movsd  -0x40(%rbp),%xmm1
  movsd  -0x50(%rbp),%xmm0
  mov    -0x48(%rbp),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <max1@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x60(%rbp)
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x30(%rbp),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <min1@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x58(%rbp)
  movsd  -0x58(%rbp),%xmm0
  comisd -0x60(%rbp),%xmm0
  jbe    L76
  movsd  -0x58(%rbp),%xmm0
  subsd  -0x60(%rbp),%xmm0
  movsd  -0x68(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x68(%rbp)
L76:
  movsd  -0x58(%rbp),%xmm0
  ucomisd -0x38(%rbp),%xmm0
  jp     L24
  movsd  -0x58(%rbp),%xmm0
  ucomisd -0x38(%rbp),%xmm0
  jne    L24
  movsd  -0x50(%rbp),%xmm0
  addsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movsd  -0x38(%rbp),%xmm0
  addsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
L24:
  movsd  -0x58(%rbp),%xmm0
  ucomisd -0x30(%rbp),%xmm0
  jp     L50
  movsd  -0x58(%rbp),%xmm0
  ucomisd -0x30(%rbp),%xmm0
  jne    L50
  movsd  -0x48(%rbp),%xmm0
  addsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  -0x30(%rbp),%xmm0
  addsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
L50:
  movsd  -0x58(%rbp),%xmm0
  ucomisd -0x28(%rbp),%xmm0
  jp     L108
  movsd  -0x58(%rbp),%xmm0
  ucomisd -0x28(%rbp),%xmm0
  je     L102
  jmp    L108
L102:
  movsd  -0x40(%rbp),%xmm0
  addsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  -0x28(%rbp),%xmm0
  addsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
L108:
  movsd  D22(%rip),%xmm0
  comisd -0x60(%rbp),%xmm0
  jb     L107
  movsd  D22(%rip),%xmm0
  comisd -0x58(%rbp),%xmm0
  jae    L127
L107:
  movsd  -0x68(%rbp),%xmm0
  movsd  D8(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L70:
  lea    -0x70(%rbp),%rax
  mov    %rax,%rsi
  lea    D118(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  cmp    $0x1,%eax
  jne    L6
  movsd  -0x70(%rbp),%xmm0
  movsd  D14(%rip),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L86
  movsd  D14(%rip),%xmm1
  ucomisd %xmm1,%xmm0
  jne    L86
L6:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L97
  call   <__stack_chk_fail@plt>
L97:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D27
data_type: byte[8]
name: retrieve_data
arguments: data_tag: D105
data_type: byte[8]
name: retrieve_data
arguments: data_tag: D84
data_type: byte[8]
name: retrieve_data
arguments: data_tag: D0
data_type: f32[2]
name: retrieve_data
arguments: data_tag: D22
data_type: f64
name: retrieve_data
arguments: data_tag: D8
data_type: f32[2]
name: retrieve_data
arguments: data_tag: D29
data_type: string
name: retrieve_data
arguments: data_tag: D118
data_type: string
name: retrieve_data
arguments: data_tag: D14
data_type: f32[2]

tool: {"D27": [0xa5,0xee,0xcb,0x63,0x2b,0x82,0x4e,0x40]}

tool: {"D105": [0x84,0xb4,0xeb,0x76,0xae,0x0a,0x4e,0x40]}

tool: {"D84": [0x2f,0xba,0xe8,0xa2,0x8b,0xae,0xae,0x40]}

tool: {"D0": [0.0,3.8515625]}

tool: D22: 43200

tool: {"D8": [0.0,3.921875]}

tool: D29: %.3lf


tool: D118: %lf

tool: {"D14": [0.0,-1.875]}

assistant: ```c
int main(int argc, char *argv[]) {
  double sum = 0.0;
  double tempx = 0.0;
  double tempy = 0.0;
  double sm;
  double sh;
  double mh;
  double dsm;
  double dsh;
  double dmh;
  double bsm, bsh, bmh;
  double d;
  sm = 3600.0 / 59;
  sh = 43200.0 / 719;
  mh = 43200.0 / 11;
  while (scanf("%lf", &d) == 1 && d != -1) {
    sum = 0;
    dsm = sm * d / 360;
    dsh = sh * d / 360;
    dmh = mh * d / 360;
    bsm = sm - dsm;
    bsh = sh - dsh;
    bmh = mh - dmh;
    tempx = max1(dsh, dsm, dmh);
    tempy = min1(bsh, bsm, bmh);
    while (tempx <= 43200 && tempy <= 43200) {
      tempx = max1(dsh, dsm, dmh);
      tempy = min1(bsh, bsm, bmh);
      if (tempx < tempy) {
        sum += (tempy - tempx);
      }
      if (tempy == bsm) {
        dsm += sm;
        bsm += sm;
      }
      if (tempy == bsh) {
        dsh += sh;
        bsh += sh;
      }
      if (tempy == bmh) {
        dmh += mh;
        bmh += mh;
      }
    }
    printf("%.3lf\n", sum / 432);
  }
  return 0;
}
```