user: Translate the below assembly code into C programming language:

```asm
<quick_select_uint8>:
  endbr64
  push   %r14
  mov    %rdi,%r11
  push   %r13
  push   %r12
  push   %rbp
  lea    -0x1(%rsi),%ebp
  mov    %ebp,%r13d
  push   %rbx
  shr    $0x1f,%r13d
  add    %ebp,%r13d
  sar    %r13d
  test   %ebp,%ebp
  jle    L11
  cmp    $0x1,%ebp
  je     L32
  xor    %r12d,%r12d
  mov    $0x1,%eax
  nopl   0x0(%rax,%rax,1)
L119:
  lea    (%r12,%rbp,1),%ecx
  mov    %ecx,%edx
  shr    $0x1f,%edx
  add    %ecx,%edx
  movslq %ebp,%rcx
  sar    %edx
  add    %r11,%rcx
  movslq %edx,%rdx
  movzbl (%rcx),%edi
  add    %r11,%rdx
  movzbl (%rdx),%esi
  cmp    %dil,%sil
  jbe    L111
  mov    %dil,(%rdx)
  mov    %esi,%edi
  mov    %sil,(%rcx)
L111:
  movslq %r12d,%r8
  lea    (%r11,%r8,1),%rbx
  movzbl (%rbx),%esi
  cmp    %dil,%sil
  jbe    L101
  mov    %dil,(%rbx)
  mov    %sil,(%rcx)
  movzbl (%rbx),%esi
L101:
  movzbl (%rdx),%ecx
  cmp    %sil,%cl
  jbe    L133
  mov    %sil,(%rdx)
  mov    %cl,(%rbx)
  movzbl (%rdx),%ecx
L133:
  lea    0x1(%r11,%r8,1),%rsi
  add    $0x1,%eax
  movzbl (%rsi),%edi
  movslq %eax,%r8
  mov    %dil,(%rdx)
  mov    %ebp,%edx
  mov    %cl,(%rsi)
  movzbl (%rbx),%esi
  nopl   0x0(%rax)
L99:
  movzbl (%r11,%r8,1),%r10d
  mov    %r8d,%r14d
  cmp    %sil,%r10b
  jb     L20
  movslq %edx,%rax
  lea    -0x1(%r11,%rax,1),%rax
  nopl   (%rax)
L78:
  mov    %rax,%rdi
  movzbl (%rax),%ecx
  mov    %edx,%r9d
  sub    $0x1,%rax
  sub    $0x1,%edx
  cmp    %sil,%cl
  ja     L78
  cmp    %r8d,%edx
  jl     L140
  mov    %cl,(%r11,%r8,1)
  mov    %r10b,(%rdi)
  movzbl (%rbx),%esi
L20:
  add    $0x1,%r8
  jmp    L99
  nopw   0x0(%rax,%rax,1)
L140:
  mov    %cl,(%rbx)
  mov    %sil,(%rdi)
  cmp    %edx,%r13d
  jl     L94
  mov    %r14d,%r12d
  je     L94
L85:
  cmp    %r12d,%ebp
  jle    L11
  lea    0x1(%r12),%eax
  cmp    %ebp,%eax
  jne    L119
  movslq %r12d,%rdx
  movslq %ebp,%rax
  add    %r11,%rdx
L129:
  add    %r11,%rax
  movzbl (%rdx),%ecx
  movzbl (%rax),%esi
  cmp    %sil,%cl
  jbe    L11
  mov    %sil,(%rdx)
  mov    %cl,(%rax)
L11:
  movslq %r13d,%r13
  pop    %rbx
  pop    %rbp
  movzbl (%r11,%r13,1),%eax
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L94:
  lea    -0x2(%r9),%ebp
  jmp    L85
L32:
  mov    %rdi,%rdx
  mov    $0x1,%eax
  jmp    L129
```

assistant: ```c
unsigned char quick_select_uint8(unsigned char 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]) {
        unsigned char temp = (arr[low]);
        (arr[low]) = (arr[high]);
        (arr[high]) = temp;
      };
      return arr[median];
    }
    middle = (low + high) / 2;
    if (arr[middle] > arr[high]) {
      unsigned char temp = (arr[middle]);
      (arr[middle]) = (arr[high]);
      (arr[high]) = temp;
    };
    if (arr[low] > arr[high]) {
      unsigned char temp = (arr[low]);
      (arr[low]) = (arr[high]);
      (arr[high]) = temp;
    };
    if (arr[middle] > arr[low]) {
      unsigned char temp = (arr[middle]);
      (arr[middle]) = (arr[low]);
      (arr[low]) = temp;
    };
    {
      unsigned char temp = (arr[middle]);
      (arr[middle]) = (arr[low + 1]);
      (arr[low + 1]) = temp;
    };
    ll = low + 1;
    hh = high;
    for (;;) {
      do
        ll++;
      while (arr[low] > arr[ll]);
      do
        hh--;
      while (arr[hh] > arr[low]);
      if (hh < ll)
        break;
      {
        unsigned char temp = (arr[ll]);
        (arr[ll]) = (arr[hh]);
        (arr[hh]) = temp;
      };
    }
    {
      unsigned char temp = (arr[low]);
      (arr[low]) = (arr[hh]);
      (arr[hh]) = temp;
    };
    if (hh <= median)
      low = ll;
    if (hh >= median)
      high = hh - 1;
  }
}
```