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

```asm
<get_intrdelta>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %ecx,-0x4c(%rbp)
  mov    %r8d,-0x50(%rbp)
  mov    %r9d,%eax
  mov    %al,-0x54(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x2c(%rbp)
  mov    $0x0,%eax
  call   <cpu_stats_get_intr@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  cmpb   $0x0,-0x54(%rbp)
  je     L50
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L50:
  cmpl   $0x2,-0x4c(%rbp)
  ja     L88
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <proc_interrupts_get_nintr_per_cpu@plt>
  mov    -0x48(%rbp),%rdx
  mov    %rax,(%rdx)
L88:
  movl   $0x1,-0x30(%rbp)
  jmp    L22
L17:
  mov    -0x50(%rbp),%eax
  mov    %eax,%edi
  call   <sleep@plt>
  cmpl   $0x0,-0x2c(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,-0x2c(%rbp)
  mov    $0x0,%eax
  call   <cpu_stats_get_intr@plt>
  mov    -0x2c(%rbp),%edx
  mov    %rax,-0x20(%rbp,%rdx,8)
  mov    -0x2c(%rbp),%eax
  mov    -0x20(%rbp,%rax,8),%rdx
  cmpl   $0x0,-0x2c(%rbp)
  sete   %al
  movzbl %al,%eax
  cltq
  mov    -0x20(%rbp,%rax,8),%rcx
  mov    %rdx,%rax
  sub    %rcx,%rax
  mov    -0x50(%rbp),%ecx
  mov    $0x0,%edx
  div    %rcx
  mov    %rax,-0x28(%rbp)
  cmpb   $0x0,-0x54(%rbp)
  je     L37
  mov    -0x2c(%rbp),%eax
  mov    -0x20(%rbp,%rax,8),%rax
  mov    -0x28(%rbp),%rdx
  mov    %rax,%rsi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L37:
  mov    -0x4c(%rbp),%eax
  sub    $0x2,%eax
  cmp    %eax,-0x30(%rbp)
  jne    L69
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <proc_interrupts_get_nintr_per_cpu@plt>
  mov    -0x48(%rbp),%rdx
  mov    %rax,(%rdx)
  jmp    L84
L69:
  mov    -0x4c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x30(%rbp)
  jne    L84
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <proc_interrupts_get_nintr_per_cpu@plt>
  mov    -0x48(%rbp),%rdx
  mov    %rax,0x8(%rdx)
L84:
  addl   $0x1,-0x30(%rbp)
L22:
  mov    -0x30(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jb     L17
  mov    -0x28(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L53
  call   <__stack_chk_fail@plt>
L53:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D10
type: string
name: parse_data
arguments: data_label: D2
type: string

tool: D10: intr = %llu


tool: D2: intr = %llu --> %llu/s


assistant: ```c
unsigned long long get_intrdelta(unsigned int *ncpus0, unsigned int *ncpus1, unsigned long *(*vintr)[2], unsigned int count, unsigned int delay, signed char verbose) {
  unsigned long long nintr[2], dnintr;
  unsigned int i, tog = 0;
  dnintr = nintr[0] = cpu_stats_get_intr();
  if (verbose)
    printf("intr = %llu\n", dnintr);
  if (count <= 2)
    (*vintr)[0] = proc_interrupts_get_nintr_per_cpu(ncpus0);
  for (i = 1; i < count; i++) {
    sleep(delay);
    tog = !tog;
    nintr[tog] = cpu_stats_get_intr();
    dnintr = (nintr[tog] - nintr[!tog]) / delay;
    if (verbose)
      printf("intr = %llu --> %llu/s\n", nintr[tog], dnintr);
    if (count - 2 == i)
      (*vintr)[0] = proc_interrupts_get_nintr_per_cpu(ncpus0);
    else if (count - 1 == i)
      (*vintr)[1] = proc_interrupts_get_nintr_per_cpu(ncpus1);
  }
  return dnintr;
}
```