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

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x70,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  mov    D46(%rip),%rax
  mov    %rax,(%rsp)
  mov    D170(%rip),%rax
  mov    %rax,0x8(%rsp)
  mov    D52(%rip),%rax
  mov    %rax,0x10(%rsp)
  mov    D60(%rip),%rax
  mov    %rax,0x18(%rsp)
  mov    D178(%rip),%rax
  mov    %rax,0x20(%rsp)
  mov    D135(%rip),%rax
  mov    %rax,0x30(%rsp)
  movsd  D10(%rip),%xmm0
  movsd  %xmm0,0x38(%rsp)
  movsd  %xmm0,0x40(%rsp)
  mov    D15(%rip),%rax
  mov    %rax,0x48(%rsp)
  mov    D93(%rip),%rax
  mov    %rax,0x50(%rsp)
  mov    D152(%rip),%rax
  mov    %rax,0x58(%rsp)
  lea    D181(%rip),%rdi
  call   <puts@plt>
  mov    %rsp,%rbx
  lea    0x28(%rsp),%r12
  lea    D78(%rip),%rbp
L21:
  movsd  (%rbx),%xmm0
  mov    %rbp,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x8,%rbx
  cmp    %r12,%rbx
  jne    L21
  lea    D71(%rip),%rdi
  call   <puts@plt>
  lea    0x30(%rsp),%rbx
  lea    0x60(%rsp),%r12
  lea    D78(%rip),%rbp
L13:
  movsd  (%rbx),%xmm0
  mov    %rbp,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x8,%rbx
  cmp    %r12,%rbx
  jne    L13
  mov    %rsp,%rbx
  mov    $0x4,%ecx
  mov    $0x0,%edx
  mov    %rbx,%rsi
  mov    $0x0,%edi
  call   <CSPL_Array_quickselect@plt>
  lea    D171(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x4,%ecx
  mov    $0x0,%edx
  mov    %rbx,%rsi
  mov    $0x1,%edi
  call   <CSPL_Array_quickselect@plt>
  lea    D16(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x4,%ecx
  mov    $0x0,%edx
  mov    %rbx,%rsi
  mov    $0x2,%edi
  call   <CSPL_Array_quickselect@plt>
  lea    D28(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x4,%ecx
  mov    $0x0,%edx
  mov    %rbx,%rsi
  mov    $0x3,%edi
  call   <CSPL_Array_quickselect@plt>
  lea    D189(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x4,%ecx
  mov    $0x0,%edx
  mov    %rbx,%rsi
  mov    $0x4,%edi
  call   <CSPL_Array_quickselect@plt>
  lea    D56(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L10
  mov    $0x0,%eax
  add    $0x70,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L10:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D46
type_infered: byte[8]
name: retrieve_data
arguments: data_label: D170
type_infered: byte[8]
name: retrieve_data
arguments: data_label: D52
type_infered: byte[8]
name: retrieve_data
arguments: data_label: D60
type_infered: byte[8]
name: retrieve_data
arguments: data_label: D178
type_infered: byte[8]
name: retrieve_data
arguments: data_label: D135
type_infered: byte[8]
name: retrieve_data
arguments: data_label: D10
type_infered: byte[8]
name: retrieve_data
arguments: data_label: D15
type_infered: byte[8]
name: retrieve_data
arguments: data_label: D93
type_infered: byte[8]
name: retrieve_data
arguments: data_label: D152
type_infered: byte[8]
name: retrieve_data
arguments: data_label: D181
type_infered: string
name: retrieve_data
arguments: data_label: D78
type_infered: string
name: retrieve_data
arguments: data_label: D71
type_infered: string
name: retrieve_data
arguments: data_label: D171
type_infered: string
name: retrieve_data
arguments: data_label: D16
type_infered: string
name: retrieve_data
arguments: data_label: D28
type_infered: string
name: retrieve_data
arguments: data_label: D189
type_infered: string
name: retrieve_data
arguments: data_label: D56
type_infered: string

tool: {"D46": [0x00,0x00,0x00,0x00,0x00,0x00,0x34,0x40]}

tool: {"D170": [0x00,0x00,0x00,0x00,0x00,0x00,0x2e,0x40]}

tool: {"D52": [0x00,0x00,0x00,0x00,0x00,0x80,0x41,0x40]}

tool: {"D60": [0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x40]}

tool: {"D178": [0x00,0x00,0x00,0x00,0x00,0x00,0x49,0x40]}

tool: {"D135": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: {"D10": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40]}

tool: {"D15": [0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x40]}

tool: {"D93": [0x00,0x00,0x00,0x00,0x00,0x00,0x1c,0x40]}

tool: {"D152": [0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x40]}

tool: D181: dat1:

tool: D78:   %lf


tool: D71: dat2:

tool: D171: CSPL_Array_quickselect(0, dat1, 0, 4)=%lf


tool: D16: CSPL_Array_quickselect(1, dat1, 0, 4)=%lf


tool: D28: CSPL_Array_quickselect(2, dat1, 0, 4)=%lf


tool: D189: CSPL_Array_quickselect(3, dat1, 0, 4)=%lf


tool: D56: CSPL_Array_quickselect(4, dat1, 0, 4)=%lf


assistant: ```c
int main(void) {
  double dat1[5] = {20, 15, 35, 40, 50};
  double dat2[6] = {1, 2, 2, 6, 7, 8};
  long i;
  double a1;
  printf("dat1:\n");
  for (i = 0; i < 5; i++)
    printf("  %lf\n", dat1[i]);
  printf("dat2:\n");
  for (i = 0; i < 6; i++)
    printf("  %lf\n", dat2[i]);
  a1 = CSPL_Array_quickselect(0, dat1, 0, 4);
  printf("CSPL_Array_quickselect(0, dat1, 0, 4)=%lf\n", a1);
  a1 = CSPL_Array_quickselect(1, dat1, 0, 4);
  printf("CSPL_Array_quickselect(1, dat1, 0, 4)=%lf\n", a1);
  a1 = CSPL_Array_quickselect(2, dat1, 0, 4);
  printf("CSPL_Array_quickselect(2, dat1, 0, 4)=%lf\n", a1);
  a1 = CSPL_Array_quickselect(3, dat1, 0, 4);
  printf("CSPL_Array_quickselect(3, dat1, 0, 4)=%lf\n", a1);
  a1 = CSPL_Array_quickselect(4, dat1, 0, 4);
  printf("CSPL_Array_quickselect(4, dat1, 0, 4)=%lf\n", a1);
  return (0);
}
```