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

```asm
<gels>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edx,-0xc(%rsp)
  test   %edx,%edx
  jle    L187
  pxor   %xmm4,%xmm4
  mov    %rsi,%rbp
  movapd %xmm0,%xmm6
  mov    %rcx,%r12
  lea    0x1(%rdx),%esi
  movq   D17(%rip),%xmm2
  xor    %edx,%edx
  xor    %r8d,%r8d
  movapd %xmm4,%xmm7
  mov    $0x1,%eax
  xor    %r9d,%r9d
  nopl   0x0(%rax)
L53:
  add    %eax,%edx
  movslq %edx,%rcx
  movsd  -0x8(%rdi,%rcx,8),%xmm0
  andpd  %xmm2,%xmm0
  comisd %xmm7,%xmm0
  jbe    L101
  movapd %xmm0,%xmm7
  mov    %eax,%r8d
  mov    %edx,%r9d
L101:
  add    $0x1,%eax
  cmp    %eax,%esi
  jne    L53
  movslq -0xc(%rsp),%rax
  mulsd  %xmm7,%xmm6
  mov    %r8d,-0x24(%rsp)
  mov    $0x8,%r13d
  movl   $0x0,-0x14(%rsp)
  movsd  D35(%rip),%xmm5
  mov    %rax,-0x8(%rsp)
  movq   D32(%rip),%xmm3
  movq   $0x1,-0x20(%rsp)
  movl   $0x0,-0x10(%rsp)
  mov    %r9d,-0x18(%rsp)
  lea    -0x1(%rax),%r9d
  nopl   0x0(%rax)
L16:
  comisd %xmm7,%xmm4
  mov    -0x20(%rsp),%rax
  mov    %eax,%r15d
  jae    L187
  mov    -0x10(%rsp),%ebx
  test   %ebx,%ebx
  jne    L159
  comisd %xmm7,%xmm6
  lea    -0x1(%rax),%edx
  cmovb  %ebx,%edx
  mov    %edx,-0x10(%rsp)
L159:
  mov    -0x24(%rsp),%ebx
  movslq -0x18(%rsp),%rdx
  movapd %xmm5,%xmm7
  movsd  -0x8(%rbp,%r13,1),%xmm1
  add    %eax,-0x14(%rsp)
  divsd  -0x8(%rdi,%rdx,8),%xmm7
  movslq %ebx,%rdx
  mov    %ebx,%r11d
  mov    -0x20(%rsp),%rsi
  lea    -0x8(%rbp,%rdx,8),%rdx
  sub    %eax,%r11d
  movsd  (%rdx),%xmm0
  movsd  %xmm1,(%rdx)
  mulsd  %xmm7,%xmm0
  movsd  %xmm0,-0x8(%rbp,%r13,1)
  cmp    %rsi,-0x8(%rsp)
  je     L110
  lea    -0x1(%rax,%rbx,1),%eax
  mov    -0x14(%rsp),%r14d
  pxor   %xmm8,%xmm8
  imul   %r11d,%eax
  cvtsi2sd %r11d,%xmm8
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  mov    -0x20(%rsp),%rdx
  sar    %eax
  lea    (%rax,%r14,1),%esi
  movslq %r14d,%rax
  lea    -0x8(%rdi,%rax,8),%rbx
  cmp    %edx,%r9d
  jl     L10
  mov    %esi,%ecx
  mov    %r14d,%eax
  jmp    L56
  nopl   0x0(%rax,%rax,1)
L211:
  lea    (%r11,%rax,1),%r10d
  movsd  (%r8),%xmm1
  cmovl  %r10d,%ecx
  movslq %ecx,%r10
  lea    -0x8(%rdi,%r10,8),%r10
  movsd  (%r10),%xmm0
  movsd  %xmm1,(%r10)
L120:
  movsd  %xmm0,-0x8(%r12,%rdx,8)
  mulsd  %xmm7,%xmm0
  add    $0x1,%rdx
  movsd  %xmm0,(%r8)
  cmp    %edx,%r9d
  jl     L17
L56:
  add    %edx,%eax
  add    $0x1,%ecx
  movslq %eax,%r8
  lea    -0x8(%rdi,%r8,8),%r8
  cmp    %eax,%esi
  jne    L211
  movsd  (%rbx),%xmm0
  movslq %ecx,%r10
  movsd  %xmm0,-0x8(%rdi,%r10,8)
  movsd  (%r8),%xmm0
  jmp    L120
  xchg   %ax,%ax
L17:
  movsd  %xmm8,(%rbx)
  mov    $0x1,%r14d
  mov    -0x14(%rsp),%ebx
  movapd %xmm4,%xmm7
  mov    -0x20(%rsp),%r11
  sub    %r15d,%r14d
  nopl   0x0(%rax,%rax,1)
L11:
  movsd  -0x8(%r12,%r11,8),%xmm1
  mov    %r11d,%r8d
  mov    %r11d,%r15d
  mov    %r11d,%edx
  lea    (%r14,%r11,1),%r10d
  mov    %ebx,%eax
  xorpd  %xmm3,%xmm1
  nopw   0x0(%rax,%rax,1)
L209:
  add    %edx,%eax
  add    $0x1,%edx
  movslq %eax,%rsi
  lea    (%rax,%r10,1),%ecx
  movsd  -0x8(%rdi,%rsi,8),%xmm0
  movslq %ecx,%rcx
  lea    -0x8(%rdi,%rcx,8),%rcx
  mulsd  %xmm1,%xmm0
  addsd  (%rcx),%xmm0
  movsd  %xmm0,(%rcx)
  cmp    %edx,%r9d
  jge    L209
  add    %r15d,%ebx
  add    $0x1,%r8d
  lea    (%rbx,%r10,1),%eax
  movslq %eax,%rdx
  movsd  -0x8(%rdi,%rdx,8),%xmm0
  andpd  %xmm2,%xmm0
  comisd %xmm7,%xmm0
  jbe    L79
  mov    %r8d,-0x24(%rsp)
  movapd %xmm0,%xmm7
  mov    %eax,-0x18(%rsp)
L79:
  mulsd  -0x8(%rbp,%r13,1),%xmm1
  addsd  0x0(%rbp,%r11,8),%xmm1
  movsd  %xmm1,0x0(%rbp,%r11,8)
  add    $0x1,%r11
  cmp    %r11d,%r9d
  jge    L11
  cmp    %r8d,%r9d
  jl     L41
  movslq %r8d,%rax
  movslq %r10d,%r10
  mov    -0x24(%rsp),%esi
  mov    -0x18(%rsp),%r8d
  sub    %rax,%r10
  lea    0x0(%r13,%r10,8),%rcx
  add    %rbp,%rcx
  nopw   0x0(%rax,%rax,1)
L167:
  add    %eax,%ebx
  lea    (%r14,%rax,1),%edx
  movsd  -0x8(%r12,%rax,8),%xmm0
  add    %ebx,%edx
  movslq %edx,%r10
  xorpd  %xmm3,%xmm0
  movsd  -0x8(%rdi,%r10,8),%xmm1
  lea    0x1(%rax),%r10d
  andpd  %xmm2,%xmm1
  comisd %xmm7,%xmm1
  jbe    L18
  movapd %xmm1,%xmm7
  mov    %r10d,%esi
  mov    %edx,%r8d
L18:
  mulsd  -0x8(%rbp,%r13,1),%xmm0
  addsd  (%rcx,%rax,8),%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r9d
  jge    L167
  mov    %esi,-0x24(%rsp)
  mov    %r8d,-0x18(%rsp)
L41:
  addq   $0x1,-0x20(%rsp)
  add    $0x8,%r13
  mov    -0x20(%rsp),%rax
  cmp    %eax,-0xc(%rsp)
  jge    L16
L110:
  test   %r9d,%r9d
  je     L179
  mov    -0xc(%rsp),%ebx
  mov    -0x8(%rsp),%r8
  movsd  D25(%rip),%xmm2
  mov    -0x14(%rsp),%r11d
  mov    %ebx,%esi
  lea    0x2(%rbx),%r10d
L224:
  sub    %esi,%r11d
  movsd  -0x10(%rbp,%r8,8),%xmm1
  sub    $0x1,%esi
  movslq %r11d,%rax
  movsd  -0x8(%rdi,%rax,8),%xmm0
  addsd  %xmm2,%xmm0
  cvttsd2si %xmm0,%r12d
  cmp    %r8d,%ebx
  jl     L148
  movslq %esi,%rax
  mov    %r11d,%edx
L71:
  add    %eax,%edx
  movslq %edx,%rcx
  movsd  -0x8(%rdi,%rcx,8),%xmm0
  mulsd  0x0(%rbp,%rax,8),%xmm0
  add    $0x1,%rax
  subsd  %xmm0,%xmm1
  cmp    %eax,%r9d
  jge    L71
L148:
  lea    (%rsi,%r12,1),%eax
  cltq
  lea    -0x8(%rbp,%rax,8),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x10(%rbp,%r8,8)
  sub    $0x1,%r8
  movsd  %xmm1,(%rax)
  mov    %r10d,%eax
  sub    %esi,%eax
  cmp    %eax,%ebx
  jge    L224
L179:
  mov    -0x10(%rsp),%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L10:
  movsd  %xmm8,(%rbx)
  movapd %xmm4,%xmm7
  jmp    L41
L187:
  movl   $0xffffffff,-0x10(%rsp)
  mov    -0x10(%rsp),%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: tag: D17
type_infered: qword
name: parse_data
arguments: tag: D35
type_infered: f64
name: parse_data
arguments: tag: D32
type_infered: f32[2]
name: parse_data
arguments: tag: D25
type_infered: f64

tool: D17: 9223372036854775807

tool: D35: 1

tool: {"D32": [0.0,-0.0]}

tool: D25: 0.5

assistant: ```c
int gels(A, R, M, EPS, AUX)
double A[], R[];
int M;
double EPS;
double AUX[];
{
  int I = 0, J = 0, K, L, IER;
  int II, LL, LLD, LR, LT, LST, LLST, LEND;
  double tb, piv, tol, pivi;
  if (M <= 0) {
  fatal:
    IER = -1;
    goto done;
  }
  IER = 0;
  piv = 0.0;
  L = 0;
  for (K = 1; K <= M; K++) {
    L += K;
    tb = fabs(A[L - 1]);
    if (tb > piv) {
      piv = tb;
      I = L;
      J = K;
    }
  }
  tol = EPS * piv;
  LST = 0;
  LEND = M - 1;
  for (K = 1; K <= M; K++) {
    if (piv <= 0.0)
      goto fatal;
    if (IER == 0) {
      if (piv <= tol) {
        IER = K - 1;
      }
    }
    LT = J - K;
    LST += K;
    pivi = 1.0 / A[I - 1];
    L = K;
    LL = L + LT;
    tb = pivi * R[LL - 1];
    R[LL - 1] = R[L - 1];
    R[L - 1] = tb;
    if (K >= M)
      break;
    LR = LST + (LT * (K + J - 1)) / 2;
    LL = LR;
    L = LST;
    for (II = K; II <= LEND; II++) {
      L += II;
      LL += 1;
      if (L == LR) {
        A[LL - 1] = A[LST - 1];
        tb = A[L - 1];
        goto lab13;
      }
      if (L > LR)
        LL = L + LT;
      tb = A[LL - 1];
      A[LL - 1] = A[L - 1];
    lab13:
      AUX[II - 1] = tb;
      A[L - 1] = pivi * tb;
    }
    A[LST - 1] = LT;
    piv = 0.0;
    LLST = LST;
    LT = 0;
    for (II = K; II <= LEND; II++) {
      pivi = -AUX[II - 1];
      LL = LLST;
      LT += 1;
      for (LLD = II; LLD <= LEND; LLD++) {
        LL += LLD;
        L = LL + LT;
        A[L - 1] += pivi * A[LL - 1];
      }
      LLST += II;
      LR = LLST + LT;
      tb = fabs(A[LR - 1]);
      if (tb > piv) {
        piv = tb;
        I = LR;
        J = II + 1;
      }
      LR = K;
      LL = LR + LT;
      R[LL - 1] += pivi * R[LR - 1];
    }
  }
  if (LEND <= 0) {
    if (LEND < 0)
      goto fatal;
    goto done;
  }
  II = M;
  for (I = 2; I <= M; I++) {
    LST -= II;
    II -= 1;
    L = A[LST - 1] + 0.5;
    J = II;
    tb = R[J - 1];
    LL = J;
    K = LST;
    for (LT = II; LT <= LEND; LT++) {
      LL += 1;
      K += LT;
      tb -= A[K - 1] * R[LL - 1];
    }
    K = J + L;
    R[J - 1] = R[K - 1];
    R[K - 1] = tb;
  }
done:
  return (IER);
}
```