user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<cdsortp2yl>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,-0x3c(%rbp)
  mov    %r8d,-0x40(%rbp)
  mov    %r9d,-0x44(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L52
L44:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x14(%rbp)
L52:
  mov    -0x14(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L44
  movl   $0x0,-0x18(%rbp)
  jmp    L45
L98:
  mov    -0x3c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  add    $0x1,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvttss2si %xmm0,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  add    $0x1,%edx
  mov    %edx,(%rax)
  addl   $0x1,-0x18(%rbp)
L45:
  mov    -0x18(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L98
  movl   $0x0,-0x10(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L70
L71:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x4(%rbp),%eax
  add    %eax,-0x10(%rbp)
  addl   $0x1,-0x14(%rbp)
L70:
  mov    -0x14(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L71
  movl   $0x0,-0x18(%rbp)
  jmp    L46
L72:
  mov    -0x3c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  add    $0x1,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvttss2si %xmm0,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x8(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L69
L22:
  mov    -0x3c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x3c(%rbp),%eax
  imul   -0x8(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x1c(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x1c(%rbp)
L69:
  mov    -0x1c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L22
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    -0x8(%rbp),%edx
  add    $0x1,%edx
  mov    %edx,(%rax)
  addl   $0x1,-0x18(%rbp)
L46:
  mov    -0x18(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L72
  nop
  pop    %rbp
  ret
```

assistant: ```c
void cdsortp2yl(float parta[], float partb[], int npic[], int idimp, int nop, int ny1) {
  int i, j, k, m, isum, ist, ip;
  for (k = 0; k < ny1; k++) {
    npic[k] = 0;
  }
  for (j = 0; j < nop; j++) {
    m = parta[1 + idimp * j];
    npic[m] += 1;
  }
  isum = 0;
  for (k = 0; k < ny1; k++) {
    ist = npic[k];
    npic[k] = isum;
    isum += ist;
  }
  for (j = 0; j < nop; j++) {
    m = parta[1 + idimp * j];
    ip = npic[m];
    for (i = 0; i < idimp; i++) {
      partb[i + idimp * ip] = parta[i + idimp * j];
    }
    npic[m] = ip + 1;
  }
  return;
}
```