user: 请将以下的汇编代码转换成C语言代码：

```asm
<radix_sort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xe0,%rsp
  mov    %rdi,-0xd8(%rbp)
  mov    %esi,-0xdc(%rbp)
  mov    %edx,-0xe0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0xc0(%rbp)
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x58(%rbp)
  movq   $0x0,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movq   $0x0,-0x10(%rbp)
  movl   $0x0,-0xbc(%rbp)
  jmp    L10
L47:
  mov    -0xbc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cltd
  idivl  -0xe0(%rbp)
  mov    %eax,%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0xb4(%rbp)
  mov    -0xb4(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0xb4(%rbp)
  mov    -0xb4(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  lea    0x1(%rax),%edx
  mov    -0xb4(%rbp),%eax
  cltq
  mov    %edx,-0x60(%rbp,%rax,4)
  mov    -0xb4(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  lea    0x1(%rax),%edx
  mov    -0xb4(%rbp),%eax
  cltq
  mov    %edx,-0x30(%rbp,%rax,4)
  cmpl   $0x0,-0xb4(%rbp)
  jle    L144
  addl   $0x1,-0xc0(%rbp)
L144:
  addl   $0x1,-0xbc(%rbp)
L10:
  mov    -0xbc(%rbp),%eax
  cmp    -0xdc(%rbp),%eax
  jl     L47
  cmpl   $0x0,-0xc0(%rbp)
  jne    L168
  mov    -0xe0(%rbp),%eax
  mov    %eax,%esi
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L146
L168:
  mov    -0x60(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0xb0(%rbp)
  mov    -0x5c(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0xa8(%rbp)
  mov    -0x58(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0xa0(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x98(%rbp)
  mov    -0x50(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x90(%rbp)
  mov    -0x4c(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x88(%rbp)
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x80(%rbp)
  mov    -0x44(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x78(%rbp)
  mov    -0x40(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x70(%rbp)
  mov    -0x3c(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x68(%rbp)
  mov    -0xdc(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0xb8(%rbp)
  jmp    L104
L86:
  mov    -0xb8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cltd
  idivl  -0xe0(%rbp)
  mov    %eax,%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0xb4(%rbp)
  mov    -0xb4(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0xb4(%rbp)
  mov    -0xb4(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  lea    -0x1(%rax),%edx
  mov    -0xb4(%rbp),%eax
  cltq
  mov    %edx,-0x60(%rbp,%rax,4)
  cmpl   $0x9,-0xb4(%rbp)
  ja     L178
  mov    -0xb4(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  lea    D15(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D15(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  mov    -0xb8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xd8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xb4(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xb0(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  jmp    L178
  mov    -0xb8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xd8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xb4(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  jmp    L178
  mov    -0xb8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xd8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xb4(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xa0(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  jmp    L178
  mov    -0xb8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xd8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xb4(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  jmp    L178
  mov    -0xb8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xd8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xb4(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x90(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  jmp    L178
  mov    -0xb8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xd8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xb4(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  jmp    L178
  mov    -0xb8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xd8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xb4(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x80(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  jmp    L178
  mov    -0xb8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xd8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xb4(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  jmp    L178
  mov    -0xb8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xd8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xb4(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  jmp    L178
  mov    -0xb8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xd8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xb4(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  nop
L178:
  subl   $0x1,-0xb8(%rbp)
L104:
  cmpl   $0x0,-0xb8(%rbp)
  jns    L86
  movl   $0x0,-0xc4(%rbp)
  mov    -0x30(%rbp),%ecx
  lea    -0xc4(%rbp),%rdx
  mov    -0xd8(%rbp),%rsi
  mov    -0xb0(%rbp),%rax
  mov    %rax,%rdi
  call   <copy@plt>
  mov    -0x2c(%rbp),%ecx
  lea    -0xc4(%rbp),%rdx
  mov    -0xd8(%rbp),%rsi
  mov    -0xa8(%rbp),%rax
  mov    %rax,%rdi
  call   <copy@plt>
  mov    -0x28(%rbp),%ecx
  lea    -0xc4(%rbp),%rdx
  mov    -0xd8(%rbp),%rsi
  mov    -0xa0(%rbp),%rax
  mov    %rax,%rdi
  call   <copy@plt>
  mov    -0x24(%rbp),%ecx
  lea    -0xc4(%rbp),%rdx
  mov    -0xd8(%rbp),%rsi
  mov    -0x98(%rbp),%rax
  mov    %rax,%rdi
  call   <copy@plt>
  mov    -0x20(%rbp),%ecx
  lea    -0xc4(%rbp),%rdx
  mov    -0xd8(%rbp),%rsi
  mov    -0x90(%rbp),%rax
  mov    %rax,%rdi
  call   <copy@plt>
  mov    -0x1c(%rbp),%ecx
  lea    -0xc4(%rbp),%rdx
  mov    -0xd8(%rbp),%rsi
  mov    -0x88(%rbp),%rax
  mov    %rax,%rdi
  call   <copy@plt>
  mov    -0x18(%rbp),%ecx
  lea    -0xc4(%rbp),%rdx
  mov    -0xd8(%rbp),%rsi
  mov    -0x80(%rbp),%rax
  mov    %rax,%rdi
  call   <copy@plt>
  mov    -0x14(%rbp),%ecx
  lea    -0xc4(%rbp),%rdx
  mov    -0xd8(%rbp),%rsi
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <copy@plt>
  mov    -0x10(%rbp),%ecx
  lea    -0xc4(%rbp),%rdx
  mov    -0xd8(%rbp),%rsi
  mov    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <copy@plt>
  mov    -0xc(%rbp),%ecx
  lea    -0xc4(%rbp),%rdx
  mov    -0xd8(%rbp),%rsi
  mov    -0x68(%rbp),%rax
  mov    %rax,%rdi
  call   <copy@plt>
  mov    -0xdc(%rbp),%edx
  mov    -0xd8(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <print@plt>
  mov    -0xe0(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0xdc(%rbp),%ecx
  mov    -0xd8(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <radix_sort>
L146:
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L41
  call   <__stack_chk_fail@plt>
L41:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D14
type_guessed: string

tool: D14: last radix is %d


assistant: ```c
void radix_sort(int v[], int length, int radix) {
  int size = 0;
  int count[10] = {0};
  int bak[10] = {0};
  int index;
  for (int i = 0; i < length; i++) {
    index = v[i] / radix % 10;
    count[index]++;
    bak[index]++;
    if (index > 0) {
      size++;
    }
  }
  if (!size) {
    printf("last radix is %d\n", radix);
    return;
  }
  int *a0 = malloc(sizeof(int) * count[0]);
  int *a1 = malloc(sizeof(int) * count[1]);
  int *a2 = malloc(sizeof(int) * count[2]);
  int *a3 = malloc(sizeof(int) * count[3]);
  int *a4 = malloc(sizeof(int) * count[4]);
  int *a5 = malloc(sizeof(int) * count[5]);
  int *a6 = malloc(sizeof(int) * count[6]);
  int *a7 = malloc(sizeof(int) * count[7]);
  int *a8 = malloc(sizeof(int) * count[8]);
  int *a9 = malloc(sizeof(int) * count[9]);
  for (int i = length - 1; i >= 0; --i) {
    index = v[i] / radix % 10;
    count[index]--;
    switch (index) {
    case 0:
      a0[count[index]] = v[i];
      break;
    case 1:
      a1[count[index]] = v[i];
      break;
    case 2:
      a2[count[index]] = v[i];
      break;
    case 3:
      a3[count[index]] = v[i];
      break;
    case 4:
      a4[count[index]] = v[i];
      break;
    case 5:
      a5[count[index]] = v[i];
      break;
    case 6:
      a6[count[index]] = v[i];
      break;
    case 7:
      a7[count[index]] = v[i];
      break;
    case 8:
      a8[count[index]] = v[i];
      break;
    case 9:
      a9[count[index]] = v[i];
      break;
    }
  }
  int pos = 0;
  copy(a0, v, &pos, bak[0]);
  copy(a1, v, &pos, bak[1]);
  copy(a2, v, &pos, bak[2]);
  copy(a3, v, &pos, bak[3]);
  copy(a4, v, &pos, bak[4]);
  copy(a5, v, &pos, bak[5]);
  copy(a6, v, &pos, bak[6]);
  copy(a7, v, &pos, bak[7]);
  copy(a8, v, &pos, bak[8]);
  copy(a9, v, &pos, bak[9]);
  print(v, length);
  radix_sort(v, length, radix * 10);
}
```