user: What would the C source look like for the assembly code provided here:

```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    L81
  cmp    $0x1,%r11d
  je     L25
  xor    %ebx,%ebx
  mov    $0x1,%eax
  nopw   0x0(%rax,%rax,1)
L96:
  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    L109
  movss  %xmm1,(%rdx)
  movaps %xmm0,%xmm1
  movss  %xmm0,(%rsi)
L109:
  movslq %ebx,%rcx
  shl    $0x2,%rcx
  lea    (%r8,%rcx,1),%r10
  movss  (%r10),%xmm0
  comiss %xmm1,%xmm0
  jbe    L36
  movss  %xmm1,(%r10)
  movss  %xmm0,(%rsi)
  movss  (%r10),%xmm0
L36:
  movss  (%rdx),%xmm1
  comiss %xmm0,%xmm1
  jbe    L40
  movss  %xmm0,(%rdx)
  movss  %xmm1,(%r10)
  movss  (%rdx),%xmm1
L40:
  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)
L122:
  movss  (%r8,%rsi,4),%xmm2
  mov    %esi,%r9d
  comiss %xmm2,%xmm1
  ja     L28
  movslq %edx,%rax
  lea    -0x4(%r8,%rax,4),%rax
  xchg   %ax,%ax
L16:
  mov    %rax,%rcx
  movss  (%rax),%xmm0
  sub    $0x4,%rax
  mov    %edx,%edi
  sub    $0x1,%edx
  comiss %xmm1,%xmm0
  ja     L16
  cmp    %esi,%edx
  jl     L125
  movss  %xmm0,(%r8,%rsi,4)
  movss  %xmm2,(%rcx)
  movss  (%r10),%xmm1
L28:
  add    $0x1,%rsi
  jmp    L122
  xchg   %ax,%ax
L125:
  movss  %xmm0,(%r10)
  movss  %xmm1,(%rcx)
  cmp    %edx,%ebp
  jl     L70
  movslq %r9d,%rbx
  je     L70
L19:
  cmp    %ebx,%r11d
  jle    L81
  lea    0x1(%rbx),%eax
  cmp    %r11d,%eax
  jne    L96
  movslq %r11d,%rax
  lea    (%r8,%rbx,4),%rdx
  shl    $0x2,%rax
L128:
  add    %r8,%rax
  movss  (%rdx),%xmm0
  movss  (%rax),%xmm1
  comiss %xmm1,%xmm0
  jbe    L81
  movss  %xmm1,(%rdx)
  movss  %xmm0,(%rax)
L81:
  movslq %ebp,%rbp
  pop    %rbx
  movss  (%r8,%rbp,4),%xmm0
  pop    %rbp
  ret
L70:
  lea    -0x2(%rdi),%r11d
  jmp    L19
L25:
  mov    %rdi,%rdx
  mov    $0x4,%eax
  jmp    L128
```

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;
  }
}
```