user: 下面的汇编指令对应的C源代码是什么：

```asm
<DMedSelect>:
  endbr64
  push   %rbp
  movslq %edi,%r11
  mov    %rdx,%r8
  mov    $0x1,%ebp
  push   %rbx
  mov    $0x2,%eax
  mov    %esi,%ebx
  cmp    $0x2,%esi
  jle    L55
  nopl   0x0(%rax)
L74:
  lea    0x0(%rbp,%rbx,1),%edx
  sar    %edx
  movslq %edx,%rdx
  lea    (%r8,%rdx,8),%rcx
  movslq %ebp,%rdx
  lea    0x8(,%rdx,8),%rdx
  movsd  (%rcx),%xmm1
  lea    (%r8,%rdx,1),%r10
  lea    -0x8(%r8,%rdx,1),%rdx
  movsd  (%r10),%xmm0
  movsd  %xmm0,(%rcx)
  movslq %ebx,%rcx
  lea    (%r8,%rcx,8),%rcx
  movsd  %xmm1,(%r10)
  movsd  (%rdx),%xmm2
  movsd  (%rcx),%xmm0
  comisd %xmm0,%xmm2
  jbe    L48
  movsd  %xmm0,(%rdx)
  movapd %xmm2,%xmm0
  movsd  %xmm2,(%rcx)
  movsd  (%r10),%xmm1
L48:
  comisd %xmm0,%xmm1
  jbe    L67
  movsd  %xmm0,(%r10)
  movsd  %xmm1,(%rcx)
  movsd  (%r10),%xmm1
L67:
  movsd  (%rdx),%xmm0
  comisd %xmm1,%xmm0
  jbe    L90
  movsd  %xmm1,(%rdx)
  movapd %xmm0,%xmm1
  movsd  %xmm0,(%r10)
L90:
  add    $0x1,%eax
  mov    %ebx,%edx
  movslq %eax,%rsi
  nopl   0x0(%rax)
L111:
  movsd  (%r8,%rsi,8),%xmm2
  movslq %esi,%r9
  comisd %xmm2,%xmm1
  ja     L15
  movslq %edx,%rax
  lea    -0x8(%r8,%rax,8),%rax
  nop
L112:
  mov    %rax,%rcx
  movsd  (%rax),%xmm0
  sub    $0x8,%rax
  mov    %edx,%edi
  sub    $0x1,%edx
  comisd %xmm1,%xmm0
  ja     L112
  cmp    %esi,%edx
  jl     L35
  movsd  %xmm0,(%r8,%rsi,8)
  movsd  %xmm2,(%rcx)
L15:
  add    $0x1,%rsi
  jmp    L111
  nopw   0x0(%rax,%rax,1)
L35:
  movsd  %xmm0,(%r10)
  movsd  %xmm1,(%rcx)
  cmp    %r11d,%edx
  jl     L76
  cmove  %r9,%rbp
  lea    -0x2(%rdi),%ebx
L28:
  lea    0x1(%rbp),%eax
  cmp    %ebx,%eax
  jl     L74
L55:
  cmp    %ebx,%eax
  je     L59
L63:
  movsd  (%r8,%r11,8),%xmm0
  pop    %rbx
  pop    %rbp
  ret
L76:
  movslq %r9d,%rbp
  jmp    L28
L59:
  cltq
  lea    (%r8,%rbp,8),%rdx
  lea    (%r8,%rax,8),%rax
  movsd  (%rdx),%xmm0
  movsd  (%rax),%xmm1
  comisd %xmm1,%xmm0
  jbe    L63
  movsd  %xmm1,(%rdx)
  movsd  %xmm0,(%rax)
  movsd  (%r8,%r11,8),%xmm0
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
double DMedSelect(int k, int n, double arr[]) {
  double a, temp;
  int i, ir, j, mid, l;
  l = 1;
  ir = n;
  for (;;) {
    if (ir <= l + 1) {
      if (ir == l + 1 && arr[ir] < arr[l]) {
        temp = (arr[l]);
        (arr[l]) = (arr[ir]);
        (arr[ir]) = temp;
      }
      return arr[k];
    } else {
      mid = (l + ir) >> 1;
      temp = (arr[mid]);
      (arr[mid]) = (arr[l + 1]);
      (arr[l + 1]) = temp;
      if (arr[l] > arr[ir]) {
        temp = (arr[l]);
        (arr[l]) = (arr[ir]);
        (arr[ir]) = temp;
      }
      if (arr[l + 1] > arr[ir]) {
        temp = (arr[l + 1]);
        (arr[l + 1]) = (arr[ir]);
        (arr[ir]) = temp;
      }
      if (arr[l] > arr[l + 1]) {
        temp = (arr[l]);
        (arr[l]) = (arr[l + 1]);
        (arr[l + 1]) = temp;
      }
      i = l + 1;
      j = ir;
      a = arr[l + 1];
      for (;;) {
        do
          i++;
        while (arr[i] < a);
        do
          j--;
        while (arr[j] > a);
        if (j < i)
          break;
        temp = (arr[i]);
        (arr[i]) = (arr[j]);
        (arr[j]) = temp;
      }
      arr[l + 1] = arr[j];
      arr[j] = a;
      if (j >= k)
        ir = j - 1;
      if (j <= k)
        l = i;
    }
  }
}
```