user: Please show me the C implementation that matches the assembly code listed below:

```asm
<simplex2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  lea    0x1(%rdi),%r15d
  push   %r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  push   %rbx
  mov    %esi,%ebx
  sub    $0x48,%rsp
  mov    %edi,-0x48(%rbp)
  mov    %esi,%edi
  mov    %rsp,%r12
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    0x1(%rsi),%eax
  mov    %rdi,-0x60(%rbp)
  mov    %eax,-0x44(%rbp)
  lea    0x0(,%rax,4),%r14
  mov    %rax,-0x58(%rbp)
  lea    0xf(,%rdi,4),%rax
  shr    $0x4,%rax
  shl    $0x4,%rax
  mov    %rax,-0x70(%rbp)
  and    $0xfffffffffffff000,%rax
  mov    %rax,-0x50(%rbp)
  test   %ebx,%ebx
  je     L23
L84:
  mov    %r13,%rax
  xor    %r8d,%r8d
  pxor   %xmm2,%xmm2
  jmp    L27
  nopl   (%rax)
L134:
  add    $0x1,%r8d
  add    $0x4,%rax
  cmp    %r8d,%ebx
  je     L23
L27:
  comiss (%rax),%xmm2
  jbe    L134
  cmp    $0x1,%r15d
  jbe    L23
  mov    -0x58(%rbp),%rax
  mov    %r8d,%edi
  mov    -0x60(%rbp),%rsi
  mov    $0x1,%edx
  movaps %xmm2,%xmm3
  mov    $0xffffffff,%ecx
  add    %rdi,%rax
  sub    %rdi,%rsi
  lea    0x0(%r13,%rax,4),%rax
  nopl   0x0(%rax,%rax,1)
L116:
  movss  (%rax),%xmm0
  comiss %xmm2,%xmm0
  jbe    L108
  movss  (%rax,%rsi,4),%xmm1
  divss  %xmm0,%xmm1
  cmp    $0xffffffff,%ecx
  je     L146
  comiss %xmm1,%xmm3
  jbe    L108
L146:
  mov    %edx,%ecx
  movaps %xmm1,%xmm3
L108:
  add    $0x1,%edx
  add    %r14,%rax
  cmp    %edx,%r15d
  ja     L116
  cmp    $0xffffffff,%ecx
  je     L23
  mov    -0x44(%rbp),%esi
  mov    %r13,%rdx
  mov    %r15d,%edi
  call   <trafo@plt>
  mov    %rsp,%rax
  sub    -0x50(%rbp),%rax
  cmp    %rax,%rsp
  je     L123
L103:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rax,%rsp
  jne    L103
L123:
  mov    -0x70(%rbp),%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L70
  orq    $0x0,-0x8(%rsp,%rax,1)
L70:
  mov    -0x48(%rbp),%edi
  mov    %rsp,%rdx
  mov    %r13,%rcx
  mov    %ebx,%esi
  mov    %rdx,-0x68(%rbp)
  call   <solution@plt>
  mov    -0x68(%rbp),%rdx
  mov    -0x48(%rbp),%edi
  mov    %r13,%rcx
  mov    %ebx,%esi
  call   <feasible_p@plt>
  mov    %eax,%edi
  call   <assert@plt>
  mov    %r12,%rsp
  mov    %rsp,%r12
  test   %ebx,%ebx
  jne    L84
  nopl   (%rax)
L23:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L7:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void simplex2(unsigned int D, unsigned int N, float A[D + 1][N + 1]) {
  while (true) {
    unsigned int i = 0;
    for (i = 0; i < N; i++)
      if (A[0][i] < 0.)
        break;
    if (i == N)
      break;
    int pivot_index = -1;
    float pivot_value = 0.;
    for (unsigned int j = 1; j < D + 1; j++) {
      if (0. < A[j][i]) {
        float nval = A[j][N] / A[j][i];
        if ((-1 == pivot_index) || (nval < pivot_value)) {
          pivot_value = nval;
          pivot_index = j;
        }
      }
    }
    if (-1 == pivot_index)
      break;
    trafo(D + 1, N + 1, A, pivot_index, i);
    float x[N];
    solution(D, N, x, A);
    assert(feasible_p(D, N, x, A));
  }
}
```