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

```asm
<copy_stemmer>:
  endbr64
  mov    %rdi,%r9
  mov    %esi,%edi
  push   %r12
  mov    %rdx,%rsi
  push   %rbp
  push   %rbx
  mov    %rcx,%rbx
  test   %edi,%edi
  jle    L25
  lea    -0x1(%rdi),%ebp
  mov    %edi,%r10d
  xor    %eax,%eax
  xor    %r8d,%r8d
  mov    $0x1,%r11d
  jmp    L221
  xchg   %ax,%ax
L45:
  add    $0x20,%edx
  mov    %dl,(%rsi,%rax,1)
  add    $0x1,%rax
  cmp    %rax,%r10
  je     L136
L221:
  movzbl (%r9,%rax,1),%edx
  lea    -0x41(%rdx),%ecx
  cmp    $0x19,%cl
  jbe    L45
  lea    -0x30(%rdx),%ecx
  mov    %dl,(%rsi,%rax,1)
  cmp    $0x9,%cl
  cmovbe %r11d,%r8d
  add    $0x1,%rax
  cmp    %rax,%r10
  jne    L221
L136:
  cmp    $0x1,%r8d
  sbb    %rcx,%rcx
  and    $0x7,%ecx
  add    $0x3,%rcx
  cmp    $0x1,%r8d
  sbb    %eax,%eax
  and    $0xe,%eax
  add    $0x6,%eax
  cmp    $0x1,%r8d
  sbb    %edx,%edx
  and    $0x7,%edx
  add    $0x3,%edx
  cmp    %eax,%edi
  jle    L51
  mov    %edi,%r8d
  sub    %edx,%r8d
  cmp    %r8d,%edi
  jle    L219
  movslq %edx,%rcx
  movslq %edi,%r9
  lea    -0x1(%rdx),%eax
  mov    %edx,%r12d
  mov    %rcx,%r11
  mov    %r9,%r10
  sub    %r9,%r11
  sub    %rcx,%r10
  lea    -0x1(%rcx,%r11,1),%r11
  cmp    $0xe,%r11
  jbe    L23
  cmp    $0x6,%eax
  jbe    L23
  cmp    $0xe,%eax
  jbe    L10
  lea    (%rsi,%rcx,1),%r9
  mov    %edx,%ecx
  add    %rsi,%r10
  xor    %eax,%eax
  shr    $0x4,%ecx
  shl    $0x4,%rcx
  nopw   0x0(%rax,%rax,1)
L6:
  movdqu (%r10,%rax,1),%xmm0
  movups %xmm0,(%r9,%rax,1)
  add    $0x10,%rax
  cmp    %rcx,%rax
  jne    L6
  mov    %edx,%eax
  and    $0xfffffff0,%eax
  add    %eax,%r8d
  lea    (%rdx,%rax,1),%r11d
  cmp    %eax,%edx
  je     L54
  mov    %edx,%r12d
  sub    %eax,%r12d
  lea    -0x1(%r12),%ecx
  cmp    $0x6,%ecx
  jbe    L22
L182:
  mov    (%r10,%rax,1),%rcx
  mov    %rcx,(%r9,%rax,1)
  mov    %r12d,%eax
  and    $0xfffffff8,%eax
  add    %eax,%r8d
  add    %eax,%r11d
  cmp    %eax,%r12d
  je     L54
L22:
  movslq %r8d,%rax
  movzbl (%rsi,%rax,1),%ecx
  movslq %r11d,%rax
  mov    %cl,(%rsi,%rax,1)
  lea    0x1(%r8),%eax
  lea    0x1(%r11),%ecx
  cmp    %eax,%edi
  jle    L54
  cltq
  movslq %ecx,%rcx
  movzbl (%rsi,%rax,1),%eax
  mov    %al,(%rsi,%rcx,1)
  lea    0x2(%r8),%eax
  lea    0x2(%r11),%ecx
  cmp    %eax,%edi
  jle    L54
  cltq
  movslq %ecx,%rcx
  movzbl (%rsi,%rax,1),%eax
  mov    %al,(%rsi,%rcx,1)
  lea    0x3(%r8),%eax
  lea    0x3(%r11),%ecx
  cmp    %edi,%eax
  jge    L54
  cltq
  movslq %ecx,%rcx
  movzbl (%rsi,%rax,1),%eax
  mov    %al,(%rsi,%rcx,1)
  lea    0x4(%r8),%eax
  lea    0x4(%r11),%ecx
  cmp    %eax,%edi
  jle    L54
  cltq
  movslq %ecx,%rcx
  movzbl (%rsi,%rax,1),%eax
  mov    %al,(%rsi,%rcx,1)
  lea    0x5(%r8),%eax
  lea    0x5(%r11),%ecx
  cmp    %eax,%edi
  jle    L54
  cltq
  movslq %ecx,%rcx
  add    $0x6,%r8d
  movzbl (%rsi,%rax,1),%eax
  mov    %al,(%rsi,%rcx,1)
  lea    0x6(%r11),%eax
  cmp    %r8d,%edi
  jle    L54
  movslq %r8d,%r8
  cltq
  movzbl (%rsi,%r8,1),%ecx
  mov    %cl,(%rsi,%rax,1)
L54:
  lea    (%rdx,%rdx,1),%eax
  mov    %rax,%rdi
  add    %rax,%rsi
L186:
  movb   $0x0,(%rsi)
  mov    %edi,(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L51:
  movslq %edi,%rax
  add    %rax,%rsi
  movb   $0x0,(%rsi)
  mov    %edi,(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L219:
  add    %rcx,%rsi
  mov    %edx,%edi
  jmp    L186
  nopw   0x0(%rax,%rax,1)
L25:
  xor    %edi,%edi
  movb   $0x0,(%rsi)
  mov    %edi,(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L23:
  lea    (%rsi,%r10,1),%rax
  sub    %r8d,%ebp
  lea    0x1(%rsi,%r10,1),%r10
  mov    %rcx,%r11
  add    %rbp,%r10
  sub    %r9,%r11
  nopl   0x0(%rax)
L116:
  movzbl (%rax),%r8d
  lea    (%r11,%rax,1),%rdi
  add    $0x1,%rax
  mov    %r8b,(%rdi,%rcx,1)
  cmp    %r10,%rax
  jne    L116
  jmp    L54
L10:
  mov    %edx,%r11d
  xor    %eax,%eax
  lea    (%rsi,%rcx,1),%r9
  add    %rsi,%r10
  jmp    L182
```

assistant: ```c
void copy_stemmer(const char *zIn, int nIn, char *zOut, int *pnOut) {
  int i, mx, j;
  int hasDigit = 0;
  for (i = 0; i < nIn; i++) {
    char c = zIn[i];
    if (c >= 'A' && c <= 'Z') {
      zOut[i] = c - 'A' + 'a';
    } else {
      if (c >= '0' && c <= '9')
        hasDigit = 1;
      zOut[i] = c;
    }
  }
  mx = hasDigit ? 3 : 10;
  if (nIn > mx * 2) {
    for (j = mx, i = nIn - mx; i < nIn; i++, j++) {
      zOut[j] = zOut[i];
    }
    i = j;
  }
  zOut[i] = 0;
  *pnOut = i;
}
```