user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x18(%rbp)
  lea    D62(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x14(%rbp),%rax
  lea    0xc(%rax),%rcx
  lea    -0x14(%rbp),%rax
  lea    0x8(%rax),%rdx
  lea    -0x14(%rbp),%rax
  add    $0x4,%rax
  mov    %rax,%rsi
  lea    D68(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  jmp    L15
L16:
  movss  -0x8(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movss  -0xc(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  movss  -0x10(%rbp),%xmm2
  pxor   %xmm3,%xmm3
  cvtss2sd %xmm2,%xmm3
  movq   %xmm3,%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  movss  -0xc(%rbp),%xmm1
  movss  -0x10(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L43
  movss  -0xc(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  -0x10(%rbp),%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  -0x18(%rbp),%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x8(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movss  -0xc(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  movss  -0x10(%rbp),%xmm2
  pxor   %xmm4,%xmm4
  cvtss2sd %xmm2,%xmm4
  movq   %xmm4,%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  mov    $0x3,%eax
  call   <printf@plt>
L43:
  movss  -0x8(%rbp),%xmm1
  movss  -0xc(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L42
  movss  -0xc(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  -0x8(%rbp),%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  -0x18(%rbp),%xmm0
  movss  %xmm0,-0x8(%rbp)
  movss  -0x8(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movss  -0xc(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  movss  -0x10(%rbp),%xmm2
  pxor   %xmm5,%xmm5
  cvtss2sd %xmm2,%xmm5
  movq   %xmm5,%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  mov    $0x3,%eax
  call   <printf@plt>
L42:
  movss  -0x8(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movss  -0xc(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  movss  -0x10(%rbp),%xmm2
  pxor   %xmm6,%xmm6
  cvtss2sd %xmm2,%xmm6
  movq   %xmm6,%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  mov    $0x3,%eax
  call   <printf@plt>
L15:
  movss  -0x10(%rbp),%xmm1
  movss  -0xc(%rbp),%xmm0
  comiss %xmm1,%xmm0
  setae  %al
  xor    $0x1,%eax
  test   %al,%al
  jne    L16
  movss  -0xc(%rbp),%xmm1
  movss  -0x8(%rbp),%xmm0
  comiss %xmm1,%xmm0
  setae  %al
  xor    $0x1,%eax
  test   %al,%al
  jne    L16
  movss  -0xc(%rbp),%xmm0
  pxor   %xmm7,%xmm7
  cvtss2sd %xmm0,%xmm7
  movq   %xmm7,%rax
  movq   %rax,%xmm0
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L28
  call   <__stack_chk_fail@plt>
L28:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D62
type_infered: string
name: extract_symbolic_data
arguments: label: D68
type_infered: string
name: extract_symbolic_data
arguments: label: D25
type_infered: string
name: extract_symbolic_data
arguments: label: D39
type_infered: string
name: extract_symbolic_data
arguments: label: D58
type_infered: string
name: extract_symbolic_data
arguments: label: D31
type_infered: string
name: extract_symbolic_data
arguments: label: D32
type_infered: string

tool: D62: Please enter three numbers separated by spaces > 

tool: D68: %f%f%f

tool: D25: Before swaps:  %f, %f, %f


tool: D39: Swap 2 & 1 for %f, %f, %f


tool: D58: Swap 2 & 3 for %f, %f, %f


tool: D31: After swaps: %f, %f, %f


tool: D32: %.0f is the median


assistant: ```c
int main() {
  float data[3], temp = 0;
  printf("Please enter three numbers separated by spaces > ");
  scanf("%f%f%f", &data[1], &data[2], &data[3]);
  while (!((data[1] <= data[2]) && (data[2] <= data[3]))) {
    printf("Before swaps:  %f, %f, %f\n", data[1], data[2], data[3]);
    if (data[2] < data[1]) {
      temp = data[2];
      data[2] = data[1];
      data[1] = temp;
      printf("Swap 2 & 1 for %f, %f, %f\n", data[1], data[2], data[3]);
    }
    if (data[3] < data[2]) {
      temp = data[2];
      data[2] = data[3];
      data[3] = temp;
      printf("Swap 2 & 3 for %f, %f, %f\n", data[1], data[2], data[3]);
    }
    printf("After swaps: %f, %f, %f\n", data[1], data[2], data[3]);
  }
  printf("%.0f is the median\n", data[2]);
  return 0;
}
```