user: What is the c source code of the assembly code below?

```asm
<stopcheck>:
  endbr64
  push   %r15
  mov    $0x3,%r15d
  push   %r14
  push   %r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rcx,0x20(%rsp)
  movsd  %xmm0,0x10(%rsp)
  movsd  %xmm1,0x8(%rsp)
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm3,0x28(%rsp)
  cmp    $0x1,%r9d
  je     L57
  mov    %edi,%ebp
  lea    0x0(,%rdi,8),%edi
  mov    %rsi,%rbx
  mov    %r8,%r13
  call   <malloc@plt>
  movq   D24(%rip),%xmm2
  movsd  0x10(%rsp),%xmm0
  movsd  0x8(%rsp),%xmm1
  mov    %rax,%r14
  andpd  %xmm2,%xmm0
  andpd  %xmm2,%xmm1
  maxsd  %xmm1,%xmm0
  test   %ebp,%ebp
  jle    L69
  lea    0x8(%r12),%rax
  mov    0x20(%rsp),%rdx
  cmp    %rax,%r14
  lea    0x8(%r13),%rax
  setne  %r15b
  cmp    %rax,%r14
  setne  %al
  and    %eax,%r15d
  cmp    $0x1,%ebp
  setne  %al
  and    %eax,%r15d
  lea    0x8(%rdx),%rax
  cmp    %r14,%rax
  je     L3
  test   %r15b,%r15b
  je     L3
  mov    %ebp,%ecx
  movapd %xmm0,%xmm7
  mov    %r12,%r8
  mov    %r13,%rdi
  shr    %ecx
  mov    %rdx,%rsi
  movapd D22(%rip),%xmm4
  mov    %r14,%rax
  shl    $0x4,%rcx
  unpcklpd %xmm7,%xmm7
  sub    %r14,%r8
  sub    %r14,%rdi
  movapd D61(%rip),%xmm6
  add    %r14,%rcx
  sub    %r14,%rsi
  cs nopw 0x0(%rax,%rax,1)
L161:
  movupd (%rdi,%rax,1),%xmm1
  movapd %xmm6,%xmm5
  movupd (%r8,%rax,1),%xmm3
  andpd  %xmm4,%xmm1
  andpd  %xmm4,%xmm3
  divpd  %xmm1,%xmm5
  movupd (%rsi,%rax,1),%xmm1
  add    $0x10,%rax
  andpd  %xmm4,%xmm1
  maxpd  %xmm5,%xmm3
  mulpd  %xmm3,%xmm1
  divpd  %xmm7,%xmm1
  movups %xmm1,-0x10(%rax)
  cmp    %rcx,%rax
  jne    L161
  mov    %ebp,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%bpl
  je     L168
  movsd  0x0(%r13,%rax,8),%xmm4
  movsd  D61(%rip),%xmm1
  movsd  (%r12,%rax,8),%xmm3
  andpd  %xmm2,%xmm4
  divsd  %xmm4,%xmm1
  andpd  %xmm2,%xmm3
  maxsd  %xmm1,%xmm3
  movsd  (%rdx,%rax,8),%xmm1
  andpd  %xmm2,%xmm1
  mulsd  %xmm3,%xmm1
  divsd  %xmm0,%xmm1
  movsd  %xmm1,(%r14,%rax,8)
L168:
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <array_max_abs@plt>
  movsd  0x18(%rsp),%xmm6
  comisd %xmm0,%xmm6
  jae    L146
  lea    0x8(%rbx),%rax
  movq   D24(%rip),%xmm2
  cmp    %r14,%rax
  je     L133
  test   %r15b,%r15b
  je     L133
  mov    %ebp,%edx
  mov    %r12,%rdi
  mov    %r13,%rsi
  mov    %rbx,%rcx
  shr    %edx
  movapd D22(%rip),%xmm4
  mov    %r14,%rax
  sub    %r14,%rdi
  shl    $0x4,%rdx
  movapd D61(%rip),%xmm6
  sub    %r14,%rsi
  sub    %r14,%rcx
  add    %r14,%rdx
  nopl   0x0(%rax)
L94:
  movupd (%rsi,%rax,1),%xmm0
  movapd %xmm6,%xmm3
  movupd (%rdi,%rax,1),%xmm1
  movupd (%rcx,%rax,1),%xmm7
  andpd  %xmm4,%xmm0
  andpd  %xmm4,%xmm1
  divpd  %xmm0,%xmm3
  movupd (%rdi,%rax,1),%xmm0
  add    $0x10,%rax
  subpd  %xmm7,%xmm0
  andpd  %xmm4,%xmm0
  maxpd  %xmm3,%xmm1
  divpd  %xmm1,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rax,%rdx
  jne    L94
  mov    %ebp,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%bpl
  je     L40
  movsd  0x0(%r13,%rax,8),%xmm4
  movsd  D61(%rip),%xmm3
  movsd  (%r12,%rax,8),%xmm0
  andpd  %xmm2,%xmm4
  divsd  %xmm4,%xmm3
  movapd %xmm0,%xmm1
  subsd  (%rbx,%rax,8),%xmm0
  andpd  %xmm2,%xmm1
  andpd  %xmm2,%xmm0
  maxsd  %xmm3,%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%r14,%rax,8)
L40:
  mov    %r14,%rdi
  mov    %ebp,%esi
  xor    %r15d,%r15d
  call   <array_max_abs@plt>
  movsd  0x28(%rsp),%xmm6
  mov    %r14,%rdi
  comisd %xmm0,%xmm6
  setae  %r15b
  add    %r15d,%r15d
  call   <free@plt>
L57:
  add    $0x38,%rsp
  mov    %r15d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  mov    %ebp,%eax
  mov    %r12,%rsi
  mov    %r13,%rcx
  movsd  D61(%rip),%xmm1
  lea    (%r14,%rax,8),%rdi
  sub    %r14,%rsi
  mov    %r14,%rax
  sub    %r14,%rcx
  sub    %r14,%rdx
L119:
  movsd  (%rcx,%rax,1),%xmm3
  movapd %xmm1,%xmm4
  movsd  (%rsi,%rax,1),%xmm5
  andpd  %xmm2,%xmm3
  andpd  %xmm2,%xmm5
  divsd  %xmm3,%xmm4
  maxsd  %xmm4,%xmm5
  movsd  (%rdx,%rax,1),%xmm4
  add    $0x8,%rax
  andpd  %xmm2,%xmm4
  movapd %xmm4,%xmm3
  mulsd  %xmm5,%xmm3
  divsd  %xmm0,%xmm3
  movsd  %xmm3,-0x8(%rax)
  cmp    %rax,%rdi
  jne    L119
  jmp    L168
  cs nopw 0x0(%rax,%rax,1)
L69:
  mov    %ebp,%esi
  mov    %rax,%rdi
  call   <array_max_abs@plt>
  movsd  0x18(%rsp),%xmm6
  comisd %xmm0,%xmm6
  jb     L40
  nopw   0x0(%rax,%rax,1)
L146:
  mov    %r14,%rdi
  mov    $0x1,%r15d
  call   <free@plt>
  jmp    L57
L133:
  mov    %ebp,%eax
  movsd  D61(%rip),%xmm1
  sub    %r14,%r12
  sub    %r14,%r13
  lea    (%r14,%rax,8),%rdx
  sub    %r14,%rbx
  mov    %r14,%rax
L44:
  movsd  0x0(%r13,%rax,1),%xmm4
  movapd %xmm1,%xmm5
  movsd  (%r12,%rax,1),%xmm0
  andpd  %xmm2,%xmm4
  movapd %xmm0,%xmm3
  subsd  (%rbx,%rax,1),%xmm0
  add    $0x8,%rax
  divsd  %xmm4,%xmm5
  andpd  %xmm2,%xmm3
  andpd  %xmm2,%xmm0
  maxsd  %xmm5,%xmm3
  divsd  %xmm3,%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rdx
  jne    L44
  jmp    L40
```

tool_calls: name: parse_data
arguments: data_label: D24
datatype: qword
name: parse_data
arguments: data_label: D22
datatype: qword[2]
name: parse_data
arguments: data_label: D61
datatype: f64[2]

tool: D24: 9223372036854775807

tool: {"D22": [0x7fffffffffffffff,0x7fffffffffffffff]}

tool: {"D61": [1.0,1.0]}

assistant: ```c
int stopcheck(double fx, int N, double *xc, double *xf, double *jac, double *dx, double fsval, double gtol, double stol, int retval) {
  int rcode, i;
  double num, den;
  double stop0;
  double *scheck;
  rcode = 0;
  if (retval == 1) {
    rcode = 3;
    return rcode;
  }
  scheck = (double *)malloc(sizeof(double) * N);
  if (fabs(fx) > fabs(fsval)) {
    den = fabs(fx);
  } else {
    den = fabs(fsval);
  }
  for (i = 0; i < N; ++i) {
    if (fabs(xf[i]) > 1.0 / fabs(dx[i])) {
      num = fabs(xf[i]);
    } else {
      num = 1.0 / fabs(dx[i]);
    }
    scheck[i] = fabs(jac[i]) * num / den;
  }
  stop0 = array_max_abs(scheck, N);
  if (stop0 <= gtol) {
    rcode = 1;
  } else {
    for (i = 0; i < N; ++i) {
      if (fabs(xf[i]) > 1.0 / fabs(dx[i])) {
        den = fabs(xf[i]);
      } else {
        den = 1.0 / fabs(dx[i]);
      }
      num = fabs(xf[i] - xc[i]);
      scheck[i] = num / den;
    }
    stop0 = array_max_abs(scheck, N);
    if (stop0 <= stol) {
      rcode = 2;
    }
  }
  free(scheck);
  return rcode;
}
```