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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  jmp    L50
L9:
  movsd  -0x40(%rbp),%xmm1
  movsd  -0x40(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x38(%rbp),%xmm2
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x48(%rbp),%xmm1
  movsd  -0x48(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x30(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jb     L22
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L50
L22:
  movsd  -0x30(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <sqrt@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x30(%rbp)
  movsd  -0x48(%rbp),%xmm0
  subsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x48(%rbp),%xmm1
  movsd  -0x48(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,-0x58(%rbp)
  movsd  -0x48(%rbp),%xmm0
  subsd  -0x28(%rbp),%xmm0
  movsd  -0x48(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <acos@plt>
  mulsd  -0x58(%rbp),%xmm0
  movsd  %xmm0,-0x58(%rbp)
  movsd  -0x48(%rbp),%xmm0
  movapd %xmm0,%xmm3
  subsd  -0x28(%rbp),%xmm3
  movsd  %xmm3,-0x60(%rbp)
  movsd  -0x48(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  movapd %xmm0,%xmm4
  mulsd  -0x28(%rbp),%xmm4
  movapd %xmm4,%xmm1
  movsd  -0x28(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  subsd  %xmm0,%xmm1
  cvttsd2si %xmm1,%eax
  mov    %eax,%edi
  call   <sqrt@plt>
  movsd  -0x60(%rbp),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  -0x58(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x48(%rbp),%xmm1
  movsd  D3(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x48(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x18(%rbp),%xmm0
  subsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x20(%rbp),%xmm0
  comisd -0x10(%rbp),%xmm0
  jbe    L24
  movsd  -0x10(%rbp),%xmm0
  mov    -0x20(%rbp),%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  jmp    L50
L24:
  movsd  -0x20(%rbp),%xmm0
  mov    -0x10(%rbp),%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
L50:
  lea    -0x38(%rbp),%rcx
  lea    -0x40(%rbp),%rdx
  lea    -0x48(%rbp),%rax
  mov    %rax,%rsi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  cmp    $0x3,%eax
  je     L9
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L33
  call   <__stack_chk_fail@plt>
L33:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D10
type: string
name: retrieve_data
arguments: label: D3
type: f64
name: retrieve_data
arguments: label: D7
type: string
name: retrieve_data
arguments: label: D2
type: string

tool: D10: miss

tool: D3: 3.141592653589793

tool: D7: %.7f %.7f


tool: D2: %lf %lf %lf

assistant: ```c
int main() {
  double R, x, y;
  while (scanf("%lf %lf %lf", &R, &x, &y) == 3) {
    double distance;
    if ((distance = x * x + y * y) >= R * R)
      printf("miss\n");
    else {
      distance = sqrt(distance);
      double h = R - distance;
      double segment_a = R * R * acos((R - h) / R) - (R - h) * sqrt(2 * R * h - h * h);
      double circle_a = 3.1415926535897932384626433832795028841971693993751 * R * R;
      double remaining_a = circle_a - segment_a;
      if (remaining_a < segment_a)
        printf("%.7f %.7f\n", segment_a, remaining_a);
      else
        printf("%.7f %.7f\n", remaining_a, segment_a);
    }
  }
  return 0;
}
```