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

```asm
<main>:
  endbr64
  push   %rbp
  pxor   %xmm7,%xmm7
  push   %rbx
  lea    D25(%rip),%rbx
  mov    %rbx,%rdi
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    0x40(%rsp),%rbp
  movsd  %xmm7,0x38(%rsp)
  mov    %rbp,%rsi
  call   <scanf@plt>
  cmp    $0x1,%eax
  jne    L117
  nopl   0x0(%rax)
L58:
  movsd  0x40(%rsp),%xmm4
  ucomisd D0(%rip),%xmm4
  jp     L96
  je     L117
L96:
  movsd  D121(%rip),%xmm6
  movsd  D73(%rip),%xmm5
  movsd  D115(%rip),%xmm2
  movsd  D121(%rip),%xmm7
  mulsd  %xmm4,%xmm6
  movsd  D73(%rip),%xmm3
  mulsd  %xmm4,%xmm5
  divsd  D116(%rip),%xmm6
  subsd  %xmm6,%xmm7
  movapd %xmm6,%xmm1
  mulsd  D115(%rip),%xmm4
  divsd  D116(%rip),%xmm5
  subsd  %xmm5,%xmm3
  movapd %xmm5,%xmm0
  divsd  D116(%rip),%xmm4
  subsd  %xmm4,%xmm2
  movsd  %xmm4,0x30(%rsp)
  movsd  %xmm7,0x8(%rsp)
  movsd  %xmm6,0x28(%rsp)
  movsd  %xmm2,(%rsp)
  movapd %xmm4,%xmm2
  movsd  %xmm5,0x20(%rsp)
  movsd  %xmm3,0x10(%rsp)
  call   <max@plt>
  movsd  (%rsp),%xmm2
  movsd  0x8(%rsp),%xmm1
  movsd  %xmm0,0x18(%rsp)
  movsd  0x10(%rsp),%xmm0
  call   <min@plt>
  movsd  D28(%rip),%xmm7
  comisd 0x18(%rsp),%xmm7
  movsd  0x20(%rsp),%xmm5
  movsd  0x28(%rsp),%xmm6
  movsd  0x30(%rsp),%xmm4
  jb     L67
L76:
  comisd %xmm0,%xmm7
  jb     L67
  movapd %xmm4,%xmm2
  movapd %xmm6,%xmm1
  movapd %xmm5,%xmm0
  movsd  %xmm4,0x30(%rsp)
  movsd  %xmm6,0x28(%rsp)
  movsd  %xmm5,0x20(%rsp)
  call   <max@plt>
  movsd  (%rsp),%xmm2
  movsd  0x8(%rsp),%xmm1
  movsd  %xmm0,0x18(%rsp)
  movsd  0x10(%rsp),%xmm0
  call   <min@plt>
  movsd  0x18(%rsp),%xmm3
  mov    D28(%rip),%rax
  movsd  0x20(%rsp),%xmm5
  movsd  0x28(%rsp),%xmm6
  comisd %xmm3,%xmm0
  movsd  0x30(%rsp),%xmm4
  movq   %rax,%xmm7
  jbe    L8
  movapd %xmm0,%xmm1
  subsd  %xmm3,%xmm1
  addsd  0x38(%rsp),%xmm1
  movsd  %xmm1,0x38(%rsp)
L8:
  movsd  0x8(%rsp),%xmm2
  ucomisd %xmm2,%xmm0
  jp     L111
  jne    L111
  movsd  D121(%rip),%xmm1
  addsd  D121(%rip),%xmm6
  addsd  %xmm2,%xmm1
  movsd  %xmm1,0x8(%rsp)
L111:
  movsd  0x10(%rsp),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L80
  jne    L80
  movsd  D73(%rip),%xmm2
  addsd  D73(%rip),%xmm5
  addsd  %xmm1,%xmm2
  movsd  %xmm2,0x10(%rsp)
L80:
  movsd  (%rsp),%xmm2
  ucomisd %xmm2,%xmm0
  jp     L25
  jne    L25
  movsd  D115(%rip),%xmm1
  comisd %xmm3,%xmm7
  addsd  D115(%rip),%xmm4
  addsd  %xmm2,%xmm1
  movsd  %xmm1,(%rsp)
  jae    L76
L67:
  lea    D67(%rip),%rdi
  movsd  0x38(%rsp),%xmm0
  divsd  D127(%rip),%xmm0
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmp    $0x1,%eax
  je     L58
L117:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L56
  add    $0x58,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
  xchg   %ax,%ax
L25:
  comisd %xmm3,%xmm7
  jae    L76
  jmp    L67
L56:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D25
datatype: string
name: read_data
arguments: data_label: D0
datatype: f32[2]
name: read_data
arguments: data_label: D121
datatype: byte[8]
name: read_data
arguments: data_label: D73
datatype: byte[8]
name: read_data
arguments: data_label: D115
datatype: byte[8]
name: read_data
arguments: data_label: D116
datatype: f32[2]
name: read_data
arguments: data_label: D28
datatype: f64
name: read_data
arguments: data_label: D67
datatype: string
name: read_data
arguments: data_label: D127
datatype: f32[2]

tool: D25: %lf

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

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

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

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

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

tool: D28: 43200

tool: D67: %.3lf

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

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) {
    dsm = sm * d / 360;
    dsh = sh * d / 360;
    dmh = mh * d / 360;
    bsm = sm - dsm;
    bsh = sh - dsh;
    bmh = mh - dmh;
    tempx = max(dsh, dsm, dmh);
    tempy = min(bsh, bsm, bmh);
    while (tempx <= 43200 && tempy <= 43200) {
      tempx = max(dsh, dsm, dmh);
      tempy = min(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", sum / 432);
  }
  return 0;
}
```