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

```asm
<median>:
  endbr64
  lea    -0x1(%rsi),%r11d
  push   %rbp
  mov    %rdi,%r8
  mov    %r11d,%ebp
  push   %rbx
  shr    $0x1f,%ebp
  add    %r11d,%ebp
  sar    %ebp
  test   %r11d,%r11d
  jle    L19
  cmp    $0x1,%r11d
  je     L151
  xor    %ebx,%ebx
  mov    $0x1,%eax
  nopw   0x0(%rax,%rax,1)
L138:
  lea    (%rbx,%r11,1),%ecx
  mov    %ecx,%edx
  shr    $0x1f,%edx
  add    %ecx,%edx
  movslq %r11d,%rcx
  sar    %edx
  lea    (%r8,%rcx,4),%rsi
  movslq %edx,%rdx
  movss  (%rsi),%xmm1
  lea    (%r8,%rdx,4),%rdx
  movss  (%rdx),%xmm0
  comiss %xmm1,%xmm0
  jbe    L143
  movss  %xmm1,(%rdx)
  movaps %xmm0,%xmm1
  movss  %xmm0,(%rsi)
L143:
  movslq %ebx,%rcx
  shl    $0x2,%rcx
  lea    (%r8,%rcx,1),%r10
  movss  (%r10),%xmm0
  comiss %xmm1,%xmm0
  jbe    L86
  movss  %xmm1,(%r10)
  movss  %xmm0,(%rsi)
  movss  (%r10),%xmm0
L86:
  movss  (%rdx),%xmm1
  comiss %xmm0,%xmm1
  jbe    L92
  movss  %xmm0,(%rdx)
  movss  %xmm1,(%r10)
  movss  (%rdx),%xmm1
L92:
  lea    0x4(%r8,%rcx,1),%rcx
  add    $0x1,%eax
  movss  (%rcx),%xmm0
  movslq %eax,%rsi
  movss  %xmm0,(%rdx)
  mov    %r11d,%edx
  movss  %xmm1,(%rcx)
  movss  (%r10),%xmm1
  nopl   0x0(%rax,%rax,1)
L90:
  movss  (%r8,%rsi,4),%xmm2
  mov    %esi,%r9d
  comiss %xmm2,%xmm1
  ja     L141
  movslq %edx,%rax
  lea    -0x4(%r8,%rax,4),%rax
  xchg   %ax,%ax
L147:
  mov    %rax,%rcx
  movss  (%rax),%xmm0
  sub    $0x4,%rax
  mov    %edx,%edi
  sub    $0x1,%edx
  comiss %xmm1,%xmm0
  ja     L147
  cmp    %esi,%edx
  jl     L55
  movss  %xmm0,(%r8,%rsi,4)
  movss  %xmm2,(%rcx)
  movss  (%r10),%xmm1
L141:
  add    $0x1,%rsi
  jmp    L90
  xchg   %ax,%ax
L55:
  movss  %xmm0,(%r10)
  movss  %xmm1,(%rcx)
  cmp    %edx,%ebp
  jl     L30
  movslq %r9d,%rbx
  je     L30
L67:
  cmp    %ebx,%r11d
  jle    L19
  lea    0x1(%rbx),%eax
  cmp    %r11d,%eax
  jne    L138
  movslq %r11d,%rax
  lea    (%r8,%rbx,4),%rdx
  shl    $0x2,%rax
L36:
  add    %r8,%rax
  movss  (%rdx),%xmm0
  movss  (%rax),%xmm1
  comiss %xmm1,%xmm0
  jbe    L19
  movss  %xmm1,(%rdx)
  movss  %xmm0,(%rax)
L19:
  movslq %ebp,%rbp
  pop    %rbx
  movss  (%r8,%rbp,4),%xmm0
  pop    %rbp
  ret
L30:
  lea    -0x2(%rdi),%r11d
  jmp    L67
L151:
  mov    %rdi,%rdx
  mov    $0x4,%eax
  jmp    L36
```

assistant: ```c
float median(float 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 float t = (arr[low]);
        (arr[low]) = (arr[high]);
        (arr[high]) = t;
      };
      return arr[median];
    }
    middle = (low + high) / 2;
    if (arr[middle] > arr[high]) {
      register float t = (arr[middle]);
      (arr[middle]) = (arr[high]);
      (arr[high]) = t;
    };
    if (arr[low] > arr[high]) {
      register float t = (arr[low]);
      (arr[low]) = (arr[high]);
      (arr[high]) = t;
    };
    if (arr[middle] > arr[low]) {
      register float t = (arr[middle]);
      (arr[middle]) = (arr[low]);
      (arr[low]) = t;
    };
    {
      register float 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 float t = (arr[ll]);
        (arr[ll]) = (arr[hh]);
        (arr[hh]) = t;
      };
    }
    {
      register float t = (arr[low]);
      (arr[low]) = (arr[hh]);
      (arr[hh]) = t;
    };
    if (hh <= median)
      low = ll;
    if (hh >= median)
      high = hh - 1;
  }
}
```