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

```asm
<dedisperse_lagged>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  movslq %edx,%rbp
  push   %rbx
  mov    %ecx,%ebx
  lea    -0x1(%rbp,%rbx,1),%r14d
  movslq %r14d,%r14
  sub    $0x28,%rsp
  mov    %rdi,0x8(%rsp)
  xor    %edi,%edi
  cmp    $0x1,%ebp
  setg   %dil
  mov    %rsi,0x10(%rsp)
  mov    %ecx,0x4(%rsp)
  call   <assert@plt>
  xor    %edi,%edi
  test   %ebx,%ebx
  setg   %dil
  call   <assert@plt>
  mov    0x8(%r15),%rax
  sub    (%r15),%rax
  xor    %edi,%edi
  sar    $0x2,%rax
  mov    %ebp,%r15d
  cmp    %r14,%rax
  setge  %dil
  call   <assert@plt>
  mov    0x8(%r12),%rax
  sub    (%r12),%rax
  xor    %edi,%edi
  sar    $0x2,%rax
  cmp    %rax,%r14
  setle  %dil
  call   <assert@plt>
  mov    %ebp,%edi
  call   <get_npass@plt>
  xor    %edi,%edi
  mov    %eax,%ebx
  mov    %eax,0x1c(%rsp)
  mov    $0x1,%eax
  mov    %ebx,%ecx
  shl    %cl,%eax
  cmp    %ebp,%eax
  sete   %dil
  call   <assert@plt>
  movl   $0x0,0x18(%rsp)
  test   %ebx,%ebx
  jle    L39
  nopl   0x0(%rax,%rax,1)
L53:
  test   %ebp,%ebp
  jle    L64
  movslq %r15d,%r11
  mov    0x8(%rsp),%r12
  mov    0x10(%rsp),%r14
  xor    %r13d,%r13d
  lea    0x0(,%r11,8),%rbx
  nopl   0x0(%rax)
L60:
  mov    %r13d,%eax
  mov    %r14,%rsi
  mov    %r12,%rdi
  add    %r15d,%r13d
  cltd
  add    %rbx,%r12
  add    %rbx,%r14
  idiv   %r15d
  mov    %r15d,%edx
  mov    %eax,%r8d
  mov    0x4(%rsp),%eax
  lea    (%r8,%rax,1),%ecx
  call   <dedisperse_kernel_lagged@plt>
  cmp    %r13d,%ebp
  jg     L60
L64:
  mov    %r15d,%eax
  addl   $0x1,0x18(%rsp)
  shr    $0x1f,%eax
  add    %r15d,%eax
  sar    %eax
  mov    %eax,%r15d
  mov    0x18(%rsp),%eax
  cmp    %eax,0x1c(%rsp)
  je     L56
  mov    0x8(%rsp),%rax
  mov    0x10(%rsp),%rdi
  mov    %rax,0x10(%rsp)
  mov    %rdi,0x8(%rsp)
  jmp    L53
L39:
  mov    0x10(%rsp),%rax
  mov    0x8(%rsp),%rsi
  mov    %rax,0x8(%rsp)
  mov    %rsi,0x10(%rsp)
  nopl   0x0(%rax,%rax,1)
L56:
  test   %ebp,%ebp
  jle    L13
  mov    0x4(%rsp),%ebx
  mov    0x8(%rsp),%r12
  xor    %r14d,%r14d
  mov    0x10(%rsp),%r13
  shl    $0x2,%ebx
  nopl   0x0(%rax,%rax,1)
L49:
  mov    0x0(%r13,%r14,8),%rsi
  mov    (%r12,%r14,8),%rdi
  mov    %ebx,%edx
  add    $0x1,%r14
  add    $0x4,%ebx
  call   <memcpy@plt>
  cmp    %r14,%rbp
  jne    L49
L13:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void dedisperse_lagged(float **inin, float **outout, int nchan, int ndat) {
  assert(nchan >= 2);
  assert(ndat >= 1);
  assert(inin[1] - inin[0] >= nchan + ndat - 1);
  assert(outout[1] - outout[0] >= nchan + ndat - 1);
  int npass = get_npass(nchan);
  assert(nchan == (1 << npass));
  int bs = nchan;
  float **in = inin;
  float **out = outout;
  for (int i = 0; i < npass; i++) {
#pragma omp parallel for
    for (int j = 0; j < nchan; j += bs)
      dedisperse_kernel_lagged(in + j, out + j, bs, ndat + j / bs, j / bs);
    float **tmp = in;
    in = out;
    out = tmp;
    bs /= 2;
  }
  for (int j = 0; j < nchan; j++)
    memcpy(out[j], in[j], (ndat + j) * sizeof(float));
}
```