user: Demonstrate the C code that generates the assembly output below:

```asm
<get_extreme_sols>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  movslq %esi,%r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  push   %rbx
  movslq %edx,%rbx
  lea    0x0(,%rbx,8),%rdx
  mov    %rbx,%rdi
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    0xf(%rdx),%rax
  mov    %rsp,%rsi
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rcx
  cmp    %rsi,%rsp
  je     L107
L184:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L184
L107:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L114
L176:
  mov    %edi,%esi
  mov    %rdx,-0x48(%rbp)
  mov    %rsp,%r12
  call   <new_matrix_double@plt>
  mov    %rsp,%rsi
  mov    -0x48(%rbp),%rdx
  mov    %rax,%r8
  lea    0xf(,%rbx,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rcx
  cmp    %rsi,%rsp
  je     L192
L134:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L134
L192:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L43
L24:
  mov    %rsp,%r13
  test   %rbx,%rbx
  je     L165
  xor    %esi,%esi
  mov    %r12,%rdi
  mov    %r8,-0x48(%rbp)
  call   <memset@plt>
  test   %r15,%r15
  mov    -0x48(%rbp),%r8
  je     L99
L124:
  xor    %ecx,%ecx
  nopl   0x0(%rax)
L120:
  test   %rbx,%rbx
  je     L153
  mov    (%r14,%rcx,8),%rdx
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L198:
  movsd  (%rdx,%rax,8),%xmm0
  comisd (%r12,%rax,8),%xmm0
  jbe    L88
  mov    %ecx,0x0(%r13,%rax,4)
  movsd  %xmm0,(%r12,%rax,8)
L88:
  add    $0x1,%rax
  cmp    %rax,%rbx
  jne    L198
L153:
  add    $0x1,%rcx
  cmp    %r15,%rcx
  jne    L120
  test   %rbx,%rbx
  je     L91
L99:
  xor    %edi,%edi
  nopl   0x0(%rax)
L83:
  movslq 0x0(%r13,%rdi,4),%rax
  mov    (%r8,%rdi,8),%rdx
  mov    (%r14,%rax,8),%rcx
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L36:
  movsd  (%rcx,%rax,8),%xmm0
  mov    %rax,%rsi
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rbx
  jne    L36
  lea    0x1(%rdi),%rax
  cmp    %rsi,%rdi
  je     L91
  mov    %rax,%rdi
  jmp    L83
L114:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L176
L165:
  test   %r15,%r15
  jne    L124
  nopl   0x0(%rax,%rax,1)
L91:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L17
  lea    -0x28(%rbp),%rsp
  mov    %r8,%rax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L43:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L24
L17:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
double **get_extreme_sols(double **front, int frontlen, int vlen) {
  size_t i, j;
  double max_fit[vlen], cur_fit;
  double **extreme_sols = new_matrix_double(vlen, vlen);
  int positions[vlen];
  for (i = 0; i < vlen; i++) {
    max_fit[i] = 0;
  }
  for (i = 0; i < frontlen; i++) {
    for (j = 0; j < vlen; j++) {
      cur_fit = front[i][j];
      if (cur_fit > max_fit[j]) {
        max_fit[j] = cur_fit;
        positions[j] = i;
      }
    }
  }
  for (i = 0; i < vlen; i++) {
    for (j = 0; j < vlen; j++) {
      extreme_sols[i][j] = front[positions[i]][j];
    }
  }
  return (extreme_sols);
}
```