user: 下面的汇编指令对应的C源代码是什么：

```asm
<counting_sort2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  movslq %edx,%rsi
  push   %rbx
  mov    %rsi,%r14
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    0xf(,%rsi,4),%rax
  mov    %rsp,%r8
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%r8
  and    $0xfffffffffffffff0,%rdx
  cmp    %r8,%rsp
  je     L91
L258:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %r8,%rsp
  jne    L258
L91:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L177
L58:
  mov    %rsp,%r15
  test   %r14d,%r14d
  jle    L93
  xor    %eax,%eax
  xor    %ebx,%ebx
  nopl   0x0(%rax)
L130:
  movl   $0x0,(%r12,%rax,4)
  mov    (%rdi,%rax,4),%edx
  cmp    %edx,%ebx
  cmovg  %edx,%ebx
  add    $0x1,%rax
  cmp    %rax,%rsi
  jne    L130
  sub    %ebx,%ecx
  xor    %eax,%eax
  nopl   (%rax)
L262:
  mov    (%rdi,%rax,4),%edx
  sub    %ebx,%edx
  mov    %edx,(%r15,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rsi
  jne    L262
  lea    0x1(%rcx),%eax
  mov    %rsp,%rsi
  cltq
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L149
L264:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L264
L149:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L99
L268:
  mov    %rsp,%rdi
  mov    %rdi,%r13
  test   %ecx,%ecx
  js     L245
  movslq %ecx,%rax
  xor    %esi,%esi
  mov    %ecx,-0x44(%rbp)
  lea    0x4(,%rax,4),%rdx
  call   <memset@plt>
  mov    -0x44(%rbp),%ecx
  mov    %r13,%rdi
L245:
  xor    %eax,%eax
  nopl   (%rax)
L209:
  movslq (%r15,%rax,4),%rdx
  add    $0x1,%rax
  addl   $0x1,(%rdi,%rdx,4)
  cmp    %eax,%r14d
  jg     L209
  lea    -0x1(%r14),%r8d
  test   %ecx,%ecx
  jle    L85
L46:
  mov    $0x1,%eax
  xchg   %ax,%ax
L70:
  mov    -0x4(%r13,%rax,4),%edx
  add    %edx,0x0(%r13,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%ecx
  jge    L70
  mov    %r14d,%r8d
  sub    $0x1,%r8d
  js     L0
L85:
  movslq %r8d,%rdx
  xchg   %ax,%ax
L212:
  movslq (%r15,%rdx,4),%rcx
  sub    $0x1,%rdx
  movslq 0x0(%r13,%rcx,4),%rdi
  mov    %rdi,%rax
  mov    %ecx,-0x4(%r12,%rdi,4)
  sub    $0x1,%eax
  mov    %eax,0x0(%r13,%rcx,4)
  test   %edx,%edx
  jns    L212
L0:
  test   %r14d,%r14d
  jle    L150
  mov    %r8d,%r8d
  mov    %r12,%rax
  lea    0x4(%r12,%r8,4),%rdx
  nopl   0x0(%rax)
L89:
  add    %ebx,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L89
L150:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L66
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   (%rax)
L177:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L58
  nopl   0x0(%rax,%rax,1)
L99:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L268
L93:
  lea    0x1(%rcx),%eax
  mov    %rsp,%rsi
  cltq
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L59
L247:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L247
L59:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L1
  orq    $0x0,-0x8(%rsp,%rdx,1)
L1:
  mov    %rsp,%r13
  test   %ecx,%ecx
  js     L150
  movslq %ecx,%rax
  xor    %esi,%esi
  mov    %r13,%rdi
  mov    %ecx,-0x44(%rbp)
  lea    0x4(,%rax,4),%rdx
  xor    %ebx,%ebx
  call   <memset@plt>
  mov    -0x44(%rbp),%ecx
  test   %ecx,%ecx
  jne    L46
  mov    %r14d,%r8d
  sub    $0x1,%r8d
  jns    L85
  jmp    L150
L66:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void counting_sort2(const int a[], int b[], int size, int maxvalue) {
  int i = 0;
  int copyofa[size];
  int min = 0;
  for (i = 0; i < size; i++) {
    b[i] = 0;
    if (min > a[i]) {
      min = a[i];
    }
  }
  int newmaxvalue = maxvalue - min;
  for (i = 0; i < size; i++) {
    copyofa[i] = a[i] - min;
  }
  int temp[newmaxvalue + 1];
  for (i = 0; i <= newmaxvalue; i++) {
    temp[i] = 0;
  }
  for (i = 0; i < size; i++) {
    temp[copyofa[i]] += 1;
  }
  for (i = 1; i <= newmaxvalue; i++) {
    temp[i] = temp[i] + temp[i - 1];
  }
  for (i = size - 1; i >= 0; i--) {
    b[temp[copyofa[i]] - 1] = copyofa[i];
    temp[copyofa[i]] = temp[copyofa[i]] - 1;
  }
  for (i = 0; i < size; i++) {
    b[i] = b[i] + min;
  }
}
```