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

```asm
<_glp_mc21a>:
  endbr64
  push   %r15
  push   %r14
  mov    %r8,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edi,0x34(%rsp)
  mov    0x88(%rsp),%r8
  mov    %rdx,0x8(%rsp)
  mov    %r9,(%rsp)
  test   %edi,%edi
  jle    L215
  mov    %edi,%r15d
  lea    0x4(%r8),%rdx
  mov    %rsi,%r11
  mov    %rcx,%r12
  mov    0x80(%rsp),%rdi
  mov    %rdx,%rsi
  lea    0x4(%r14),%rcx
  lea    0x8(%r12),%r9
  lea    0x4(%rdi),%rbp
  lea    0x8(%rdi),%rbx
  lea    0x8(%r14),%rdi
  mov    %rbp,0x38(%rsp)
  sub    %rdi,%rsi
  mov    %rcx,%rdi
  cmp    $0x8,%rsi
  seta   %sil
  sub    %r9,%rdi
  cmp    $0x8,%rdi
  seta   %dil
  and    %edi,%esi
  mov    %rdx,%rdi
  sub    %r9,%rdi
  cmp    $0x8,%rdi
  seta   %dil
  and    %esi,%edi
  cmp    $0x1,%r15d
  setne  %sil
  sub    %rbx,%rcx
  and    %edi,%esi
  cmp    $0x8,%rcx
  seta   %cl
  and    %esi,%ecx
  mov    %rbp,%rsi
  sub    %r9,%rsi
  cmp    $0x8,%rsi
  seta   %sil
  test   %sil,%cl
  je     L73
  sub    %rbx,%rdx
  cmp    $0x8,%rdx
  jbe    L73
  lea    -0x1(%r15),%ebx
  mov    %r15d,%edi
  cmp    $0x2,%ebx
  jbe    L100
  shr    $0x2,%r15d
  mov    0x80(%rsp),%rsi
  pcmpeqd %xmm2,%xmm2
  pxor   %xmm1,%xmm1
  lea    -0x1(%r15),%ecx
  mov    $0x4,%edx
  shl    $0x4,%rcx
  add    $0x14,%rcx
  xchg   %ax,%ax
L53:
  movdqu (%r12,%rdx,1),%xmm0
  paddd  %xmm2,%xmm0
  movups %xmm0,(%rsi,%rdx,1)
  movups %xmm1,(%r14,%rdx,1)
  movups %xmm1,(%r8,%rdx,1)
  add    $0x10,%rdx
  cmp    %rcx,%rdx
  jne    L53
  mov    0x34(%rsp),%edi
  mov    %edi,%r9d
  lea    0x1(%rdi),%edx
  and    $0xfffffffc,%r9d
  lea    0x1(%r9),%esi
  mov    %esi,%ecx
  cmp    %edi,%r9d
  je     L96
  sub    %r9d,%edi
  cmp    $0x1,%edi
  je     L48
L78:
  movq   (%r12,%rsi,4),%xmm0
  mov    0x80(%rsp),%rdx
  movq   D0(%rip),%xmm1
  paddd  %xmm1,%xmm0
  movq   %xmm0,(%rdx,%rsi,4)
  mov    0x34(%rsp),%edx
  movq   $0x0,(%r14,%rsi,4)
  movq   $0x0,(%r8,%rsi,4)
  mov    %edi,%esi
  add    $0x1,%edx
  and    $0xfffffffe,%esi
  add    %esi,%ecx
  cmp    %edi,%esi
  je     L96
L48:
  movslq %ecx,%rcx
  mov    (%r12,%rcx,4),%edi
  lea    -0x1(%rdi),%edx
  mov    0x80(%rsp),%rdi
  mov    %edx,(%rdi,%rcx,4)
  mov    0x34(%rsp),%edi
  movl   $0x0,(%r14,%rcx,4)
  movl   $0x0,(%r8,%rcx,4)
  lea    0x1(%rdi),%edx
L96:
  movl   $0x0,0x30(%rsp)
  lea    0x2(%rbx),%rdi
  mov    0x90(%rsp),%rbp
  mov    %r14,0x10(%rsp)
  mov    %rdi,0x28(%rsp)
  mov    $0x1,%edi
  nopw   0x0(%rax,%rax,1)
L260:
  mov    (%rsp),%rsi
  mov    %edi,0x1c(%rsp)
  mov    %edi,%r9d
  movl   $0x1,0x18(%rsp)
  movl   $0xffffffff,(%rsi,%rdi,4)
  movslq %edi,%rsi
L143:
  mov    0x80(%rsp),%rbx
  lea    0x0(,%rsi,4),%r13
  lea    (%r12,%r13,1),%r14
  add    %r13,%rbx
  mov    (%r14),%ecx
  mov    (%rbx),%r15d
  test   %r15d,%r15d
  jns    L22
L200:
  sub    $0x1,%ecx
  mov    (%rsp),%r15
  lea    0x0(,%rsi,4),%r14
  mov    %ecx,0x0(%rbp,%r13,1)
  mov    $0x1,%r13d
  test   %ecx,%ecx
  jns    L172
  nopl   0x0(%rax)
L203:
  mov    (%r15,%r14,1),%r9d
  cmp    $0xffffffff,%r9d
  je     L358
  movslq %r9d,%rsi
  add    $0x1,%r13d
  lea    0x0(,%rsi,4),%rbx
  cmp    %edi,%r13d
  jg     L343
  mov    0x0(%rbp,%rsi,4),%ecx
  lea    0x0(,%rsi,4),%r14
  test   %ecx,%ecx
  js     L203
L172:
  mov    0x8(%rsp),%rax
  mov    (%r12,%rsi,4),%r10d
  add    (%rax,%rsi,4),%r10d
  sub    $0x1,%r10d
  mov    %r10d,%eax
  sub    %ecx,%eax
  cmp    %eax,%r10d
  jl     L203
  movslq %eax,%rcx
  jmp    L89
  cs nopw 0x0(%rax,%rax,1)
L352:
  lea    0x1(%rcx),%eax
  add    $0x1,%rcx
  cmp    %ecx,%r10d
  jl     L203
L89:
  movslq (%r11,%rcx,4),%rsi
  mov    %ecx,%eax
  mov    %rsi,%rdx
  shl    $0x2,%rsi
  lea    (%r8,%rsi,1),%rbx
  cmp    %edi,(%rbx)
  je     L352
  mov    0x10(%rsp),%rcx
  mov    (%rsp),%r15
  mov    (%rcx,%rsi,1),%ecx
  mov    0x1c(%rsp),%esi
  mov    %esi,(%rbx)
  movslq %ecx,%rsi
  mov    %r9d,(%r15,%rsi,4)
  mov    %r10d,%r9d
  lea    0x0(,%rsi,4),%rbx
  sub    %eax,%r9d
  sub    $0x1,%r9d
  mov    %r9d,0x0(%rbp,%r14,1)
  mov    %ecx,%r9d
L343:
  addl   $0x1,0x18(%rsp)
  mov    0x18(%rsp),%ecx
  cmp    %edi,%ecx
  jle    L143
  mov    0x10(%rsp),%r14
  movslq %edx,%rcx
  add    0x80(%rsp),%rbx
  lea    (%r14,%rcx,4),%r15
  nopl   0x0(%rax)
L81:
  mov    %r10d,%ecx
  mov    0x8(%rsp),%r13
  mov    0x10(%rsp),%r14
  mov    %r9d,(%r15)
  sub    %eax,%ecx
  addl   $0x1,0x30(%rsp)
  mov    $0x1,%r9d
  sub    $0x1,%ecx
  mov    %ecx,(%rbx)
  mov    (%rsp),%rbx
  cs nopw 0x0(%rax,%rax,1)
L206:
  mov    (%rbx,%rsi,4),%ecx
  cmp    $0xffffffff,%ecx
  je     L358
  movslq %ecx,%rsi
  add    $0x1,%r9d
  mov    (%r12,%rsi,4),%eax
  add    0x0(%r13,%rsi,4),%eax
  sub    0x0(%rbp,%rsi,4),%eax
  sub    $0x2,%eax
  movslq %eax,%rdx
  movslq (%r11,%rdx,4),%r15
  mov    %ecx,(%r14,%r15,4)
  mov    %r15,%rdx
  cmp    %edi,%r9d
  jle    L206
L358:
  add    $0x1,%rdi
  cmp    0x28(%rsp),%rdi
  jne    L260
  mov    0x10(%rsp),%r14
  mov    0x34(%rsp),%eax
  cmp    %eax,0x30(%rsp)
  jge    L68
  mov    0x38(%rsp),%rdi
  mov    %eax,%edx
  xor    %esi,%esi
  shl    $0x2,%rdx
  call   <memset@plt>
  mov    0x28(%rsp),%rsi
  mov    $0x1,%eax
  xor    %ecx,%ecx
  mov    0x80(%rsp),%rdi
  mov    0x90(%rsp),%r8
  jmp    L62
L283:
  add    $0x1,%ecx
  movslq %ecx,%rdx
  mov    %eax,(%r8,%rdx,4)
  add    $0x1,%rax
  cmp    %rsi,%rax
  je     L150
L62:
  movslq (%r14,%rax,4),%rdx
  test   %edx,%edx
  je     L283
  mov    %eax,(%rdi,%rdx,4)
  add    $0x1,%rax
  cmp    %rsi,%rax
  jne    L62
L150:
  mov    0x28(%rsp),%rcx
  mov    0x80(%rsp),%rsi
  mov    $0x1,%eax
  xor    %edx,%edx
  mov    0x90(%rsp),%r8
  nopw   0x0(%rax,%rax,1)
L294:
  mov    (%rsi,%rax,4),%edi
  test   %edi,%edi
  jne    L345
  add    $0x1,%edx
  movslq %edx,%rdi
  movslq (%r8,%rdi,4),%rdi
  mov    %eax,(%r14,%rdi,4)
L345:
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L294
L68:
  mov    0x30(%rsp),%eax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L22:
  mov    0x8(%rsp),%rax
  add    (%rax,%rsi,4),%ecx
  lea    -0x1(%rcx),%r10d
  mov    %r10d,%eax
  sub    %r15d,%eax
  cmp    %eax,%r10d
  jl     L342
  mov    %r13,0x20(%rsp)
  mov    0x10(%rsp),%r13
  movslq %eax,%rcx
  nopl   0x0(%rax)
L40:
  movslq (%r11,%rcx,4),%r15
  mov    %ecx,%eax
  mov    %r15,%rdx
  lea    0x0(%r13,%r15,4),%r15
  cmpl   $0x0,(%r15)
  je     L81
  lea    0x1(%rcx),%eax
  add    $0x1,%rcx
  cmp    %ecx,%r10d
  jge    L40
  mov    0x20(%rsp),%r13
L342:
  movl   $0xffffffff,(%rbx)
  mov    (%r14),%ecx
  jmp    L200
L73:
  mov    0x34(%rsp),%edi
  mov    0x80(%rsp),%r9
  mov    $0x1,%ecx
  add    $0x1,%edi
  mov    %rdi,%rdx
L185:
  mov    (%r12,%rcx,4),%ebx
  lea    -0x1(%rbx),%esi
  mov    %esi,(%r9,%rcx,4)
  movl   $0x0,(%r14,%rcx,4)
  movl   $0x0,(%r8,%rcx,4)
  add    $0x1,%rcx
  cmp    %rdi,%rcx
  jne    L185
  mov    0x34(%rsp),%edi
  lea    -0x1(%rdi),%ebx
  jmp    L96
L215:
  movl   $0x0,0x30(%rsp)
  jmp    L68
L100:
  mov    $0x1,%ecx
  mov    $0x1,%esi
  jmp    L78
```

tool_calls: name: read_data
arguments: data_tag: D0
data_type: byte[8]

tool: {"D0": [0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff]}

assistant: ```c
int _glp_mc21a(int n, const int icn[], const int ip[], const int lenr[], int iperm[], int pr[], int arp[], int cv[], int out[]) {
  int i, ii, in1, in2, j, j1, jord, k, kk, numnz;
  for (i = 1; i <= n; i++) {
    arp[i] = lenr[i] - 1;
    cv[i] = iperm[i] = 0;
  }
  numnz = 0;
  for (jord = 1; jord <= n; jord++) {
    j = jord;
    pr[j] = -1;
    for (k = 1; k <= jord; k++) {
      in1 = arp[j];
      if (in1 >= 0) {
        in2 = ip[j] + lenr[j] - 1;
        in1 = in2 - in1;
        for (ii = in1; ii <= in2; ii++) {
          i = icn[ii];
          if (iperm[i] == 0)
            goto L110;
        }
        arp[j] = -1;
      }
      out[j] = lenr[j] - 1;
      for (kk = 1; kk <= jord; kk++) {
        in1 = out[j];
        if (in1 >= 0) {
          in2 = ip[j] + lenr[j] - 1;
          in1 = in2 - in1;
          for (ii = in1; ii <= in2; ii++) {
            i = icn[ii];
            if (cv[i] != jord) {
              j1 = j;
              j = iperm[i];
              cv[i] = jord;
              pr[j] = j1;
              out[j1] = in2 - ii - 1;
              goto L100;
            }
          }
        }
        j = pr[j];
        if (j == -1)
          goto L130;
      }
    L100:;
    }
  L110:
    iperm[i] = j;
    arp[j] = in2 - ii - 1;
    numnz++;
    for (k = 1; k <= jord; k++) {
      j = pr[j];
      if (j == -1)
        break;
      ii = ip[j] + lenr[j] - out[j] - 2;
      i = icn[ii];
      iperm[i] = j;
    }
  L130:;
  }
  if (numnz < n) {
    for (i = 1; i <= n; i++)
      arp[i] = 0;
    k = 0;
    for (i = 1; i <= n; i++) {
      if (iperm[i] == 0)
        out[++k] = i;
      else
        arp[iperm[i]] = i;
    }
    k = 0;
    for (i = 1; i <= n; i++) {
      if (arp[i] == 0)
        iperm[out[++k]] = i;
    }
  }
  return numnz;
}
```