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

```asm
<sgefa>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %esi,%r14d
  mov    %edx,0x2c(%rsp)
  mov    %rcx,0x30(%rsp)
  mov    %r8,0x50(%rsp)
  movl   $0xffffffff,(%r8)
  lea    -0x1(%rdx),%eax
  mov    %eax,0x5c(%rsp)
  test   %eax,%eax
  jle    L65
  movslq %r14d,%rax
  lea    0x8(,%rax,8),%rax
  mov    %rax,0x40(%rsp)
  mov    %rdi,0x20(%rsp)
  lea    -0x2(%rdx),%eax
  add    $0x2,%rax
  mov    %rax,0x48(%rsp)
  movl   $0x0,0x28(%rsp)
  mov    $0x1,%r13d
  lea    0x1(%rdx),%eax
  mov    %eax,0x58(%rsp)
  jmp    L98
L126:
  mov    %r14d,%r8d
  mov    %r14d,%edx
  mov    0x18(%rsp),%rsi
  mov    0xc(%rsp),%edi
  call   <saxpy@plt>
  add    $0x1,%r12d
  add    $0x8,%rbx
  cmp    %r12d,%r13d
  jl     L37
L95:
  mov    %rbx,%rcx
  movsd  (%rbx,%rbp,8),%xmm0
  test   %r15d,%r15d
  je     L126
  mov    0x28(%rsp),%eax
  add    %r12d,%eax
  cltq
  mov    0x10(%rsp),%rdx
  lea    -0x8(%rdx,%rax,8),%rax
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rbx,%rbp,8)
  movsd  %xmm0,(%rax)
  jmp    L126
L37:
  mov    0x38(%rsp),%r13
  jmp    L55
L15:
  mov    0x50(%rsp),%rax
  mov    %ebx,(%rax)
L55:
  add    $0x1,%r13
  mov    0x40(%rsp),%rcx
  add    %rcx,0x20(%rsp)
  add    %r14d,0x28(%rsp)
  cmp    0x48(%rsp),%r13
  je     L65
L98:
  lea    0x1(%r13),%r12d
  lea    -0x1(%r13),%ebx
  mov    0x20(%rsp),%rsi
  mov    %rsi,0x38(%rsp)
  mov    0x2c(%rsp),%eax
  sub    %r13d,%eax
  mov    %eax,0xc(%rsp)
  mov    0x58(%rsp),%edi
  sub    %r13d,%edi
  mov    %r14d,%edx
  call   <isamax@plt>
  mov    %eax,%r15d
  lea    -0x1(%rax,%r13,1),%ebp
  mov    0x30(%rsp),%rax
  mov    %ebp,-0x4(%rax,%r13,4)
  imul   %r14d,%ebp
  lea    0x0(%rbp,%r13,1),%eax
  cltq
  mov    0x10(%rsp),%rdx
  lea    -0x8(%rdx,%rax,8),%rax
  movsd  (%rax),%xmm0
  pxor   %xmm2,%xmm2
  ucomisd %xmm2,%xmm0
  jp     L121
  je     L15
L121:
  test   %r15d,%r15d
  je     L131
  mov    0x38(%rsp),%rdi
  movsd  (%rdi),%xmm1
  movsd  %xmm1,(%rax)
  movsd  %xmm0,(%rdi)
L131:
  mov    0x28(%rsp),%eax
  add    %r14d,%eax
  movslq %eax,%rbx
  lea    (%rbx,%r13,1),%rax
  mov    0x10(%rsp),%rdi
  lea    -0x8(%rdi,%rax,8),%rsi
  mov    %rsi,0x18(%rsp)
  mov    0x38(%rsp),%rax
  movsd  D8(%rip),%xmm0
  divsd  (%rax),%xmm0
  mov    %r14d,%edx
  mov    0xc(%rsp),%edi
  call   <sscal@plt>
  mov    0x2c(%rsp),%ecx
  cmp    %r12d,%ecx
  jl     L55
  mov    %rbx,%rdx
  lea    0x1(%rbx,%r13,1),%rax
  mov    0x10(%rsp),%rdi
  lea    -0x8(%rdi,%rax,8),%rbx
  movslq %ebp,%rbp
  sub    %rdx,%rbp
  mov    %r13,0x38(%rsp)
  mov    %ecx,%r13d
  jmp    L95
L65:
  mov    0x2c(%rsp),%edi
  movslq %edi,%rax
  mov    0x30(%rsp),%rcx
  mov    0x5c(%rsp),%edx
  mov    %edx,-0x4(%rcx,%rax,4)
  mov    %r14d,%eax
  imul   %edx,%eax
  add    %edi,%eax
  cltq
  pxor   %xmm0,%xmm0
  mov    0x10(%rsp),%rcx
  ucomisd -0x8(%rcx,%rax,8),%xmm0
  jp     L123
  jne    L123
  mov    0x50(%rsp),%rax
  mov    %edx,(%rax)
L123:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: data_label: D8
data_type: f32[2]

tool: {"D8": [0.0,-1.875]}

assistant: ```c
void sgefa(double *a, int lda, int n, int *ipvt, int *info) {
  int j, k, kp1, l, nm1;
  double t;
  *info = -1;
  nm1 = n - 1;
  if (nm1 > 0) {
    for (k = 1; k <= nm1; k++) {
      kp1 = k + 1;
      l = isamax(n - k + 1, &a[(k - 1) * lda + k - 1], lda) + k - 1;
      ipvt[k - 1] = l;
      if (a[l * lda + k - 1] != 0.0) {
        if (l != (k - 1)) {
          t = a[l * lda + k - 1];
          a[l * lda + k - 1] = a[(k - 1) * lda + k - 1];
          a[(k - 1) * lda + k - 1] = t;
        }
        t = -1.0 / a[(k - 1) * lda + k - 1];
        sscal(n - k, t, (a + k * lda + k - 1), lda);
        for (j = kp1; j <= n; j++) {
          t = a[l * lda + j - 1];
          if (l != (k - 1)) {
            a[l * lda + j - 1] = a[(k - 1) * lda + j - 1];
            a[(k - 1) * lda + j - 1] = t;
          }
          saxpy(n - k, t, (a + k * lda + k - 1), lda, (a + k * lda + j - 1), lda);
        }
      } else
        *info = k - 1;
    }
  }
  ipvt[n - 1] = n - 1;
  if (a[(n - 1) * lda + n - 1] == 0.0)
    *info = n - 1;
}
```