user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<qselect_median_lng>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%r11
  lea    -0x1(%rsi),%ebp
  mov    %ebp,%r13d
  shr    $0x1f,%r13d
  add    %ebp,%r13d
  sar    %r13d
  test   %ebp,%ebp
  jle    L66
  cmp    $0x1,%ebp
  je     L30
  mov    $0x0,%r12d
  mov    $0x1,%eax
  jmp    L124
L66:
  movslq %r13d,%r13
  mov    (%r11,%r13,8),%rax
L23:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L30:
  mov    $0x0,%r12d
L33:
  movslq %r12d,%r12
  lea    (%r11,%r12,8),%rcx
  mov    (%rcx),%rdx
  movslq %ebp,%rbp
  lea    (%r11,%rbp,8),%rax
  mov    (%rax),%rsi
  cmp    %rsi,%rdx
  jle    L62
  mov    %rsi,(%rcx)
  mov    %rdx,(%rax)
L62:
  movslq %r13d,%r13
  mov    (%r11,%r13,8),%rax
  jmp    L23
L162:
  add    $0x1,%r8
L136:
  mov    %r8d,%r14d
  mov    (%rbx),%rsi
  mov    (%r11,%r8,8),%r10
  cmp    %r10,%rsi
  jg     L162
  movslq %edx,%rax
  lea    -0x8(%r11,%rax,8),%rax
L128:
  mov    %edx,%r9d
  sub    $0x1,%edx
  mov    %rax,%rdi
  sub    $0x8,%rax
  mov    0x8(%rax),%rcx
  cmp    %rcx,%rsi
  jl     L128
  cmp    %r8d,%edx
  jl     L101
  mov    %rcx,(%r11,%r8,8)
  mov    %r10,(%rdi)
  jmp    L162
L101:
  mov    %rcx,(%rbx)
  mov    %rsi,(%rdi)
  cmp    %edx,%r13d
  jl     L176
  je     L177
  mov    %r14d,%r12d
L58:
  cmp    %r12d,%ebp
  jle    L66
  lea    0x1(%r12),%eax
  cmp    %ebp,%eax
  je     L33
L124:
  lea    (%r12,%rbp,1),%ecx
  mov    %ecx,%edx
  shr    $0x1f,%edx
  add    %ecx,%edx
  sar    %edx
  movslq %edx,%rdx
  lea    (%r11,%rdx,8),%rdx
  mov    (%rdx),%rcx
  movslq %ebp,%rsi
  lea    (%r11,%rsi,8),%rsi
  mov    (%rsi),%rdi
  cmp    %rdi,%rcx
  jle    L131
  mov    %rdi,(%rdx)
  mov    %rcx,(%rsi)
L131:
  movslq %r12d,%rcx
  shl    $0x3,%rcx
  lea    (%r11,%rcx,1),%rbx
  mov    (%rbx),%rdi
  mov    (%rsi),%r8
  cmp    %r8,%rdi
  jle    L122
  mov    %r8,(%rbx)
  mov    %rdi,(%rsi)
L122:
  mov    (%rdx),%rsi
  mov    (%rbx),%rdi
  cmp    %rdi,%rsi
  jle    L43
  mov    %rdi,(%rdx)
  mov    %rsi,(%rbx)
L43:
  mov    (%rdx),%rsi
  lea    0x8(%r11,%rcx,1),%rcx
  mov    (%rcx),%rdi
  mov    %rdi,(%rdx)
  mov    %rsi,(%rcx)
  add    $0x1,%eax
  movslq %eax,%r8
  mov    %ebp,%edx
  jmp    L136
L177:
  mov    %r14d,%r12d
L176:
  lea    -0x2(%r9),%ebp
  jmp    L58
```

assistant: ```c
long qselect_median_lng(long arr[], int n) {
  int low, high;
  int median;
  int middle, ll, hh;
  low = 0;
  high = n - 1;
  median = (low + high) / 2;
  for (;;) {
    if (high <= low) {
      return arr[median];
    }
    if (high == low + 1) {
      if (arr[low] > arr[high]) {
        register long t = (arr[low]);
        (arr[low]) = (arr[high]);
        (arr[high]) = t;
      };
      return arr[median];
    }
    middle = (low + high) / 2;
    if (arr[middle] > arr[high]) {
      register long t = (arr[middle]);
      (arr[middle]) = (arr[high]);
      (arr[high]) = t;
    };
    if (arr[low] > arr[high]) {
      register long t = (arr[low]);
      (arr[low]) = (arr[high]);
      (arr[high]) = t;
    };
    if (arr[middle] > arr[low]) {
      register long t = (arr[middle]);
      (arr[middle]) = (arr[low]);
      (arr[low]) = t;
    };
    {
      register long t = (arr[middle]);
      (arr[middle]) = (arr[low + 1]);
      (arr[low + 1]) = t;
    };
    ll = low + 1;
    hh = high;
    for (;;) {
      do
        ll++;
      while (arr[low] > arr[ll]);
      do
        hh--;
      while (arr[hh] > arr[low]);
      if (hh < ll)
        break;
      {
        register long t = (arr[ll]);
        (arr[ll]) = (arr[hh]);
        (arr[hh]) = t;
      };
    }
    {
      register long t = (arr[low]);
      (arr[low]) = (arr[hh]);
      (arr[hh]) = t;
    };
    if (hh <= median)
      low = ll;
    if (hh >= median)
      high = hh - 1;
  }
}
```