user: Translate the below assembly code into C programming language:

```asm
<get_intrdelta>:
  endbr64
  push   %r15
  mov    %r9d,%r15d
  push   %r14
  mov    %r8d,%r14d
  push   %r13
  push   %r12
  mov    %ecx,%r12d
  push   %rbp
  push   %rbx
  mov    %r9d,%ebx
  sub    $0x58,%rsp
  mov    %rdi,0x20(%rsp)
  mov    %rsi,0x28(%rsp)
  mov    %rdx,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  call   <cpu_stats_get_intr@plt>
  mov    %rax,0x30(%rsp)
  mov    %rax,%rbp
  test   %bl,%bl
  jne    L112
  cmp    $0x2,%r12d
  jbe    L6
L2:
  mov    %r14d,%eax
  xor    %ebx,%ebx
  mov    $0x1,%r13d
  mov    %rax,0x8(%rsp)
  lea    -0x2(%r12),%eax
  mov    %eax,0x14(%rsp)
  jmp    L135
  nopw   0x0(%rax,%rax,1)
L50:
  cmp    %r13d,0x14(%rsp)
  je     L83
L122:
  lea    -0x1(%r12),%eax
  cmp    %r13d,%eax
  je     L115
L128:
  add    $0x1,%r13d
  cmp    %r13d,%r12d
  je     L52
L135:
  mov    %r14d,%edi
  movslq %ebx,%rbp
  xor    $0x1,%ebx
  call   <sleep@plt>
  xor    %eax,%eax
  call   <cpu_stats_get_intr@plt>
  xor    %edx,%edx
  mov    %rax,%rsi
  mov    %ebx,%eax
  mov    %rsi,0x30(%rsp,%rax,8)
  mov    %rsi,%rax
  sub    0x30(%rsp,%rbp,8),%rax
  divq   0x8(%rsp)
  mov    %rax,%rbp
  test   %r15b,%r15b
  je     L50
  mov    %rax,%rdx
  lea    D3(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  cmp    %r13d,0x14(%rsp)
  jne    L122
L83:
  mov    0x20(%rsp),%rdi
  add    $0x1,%r13d
  call   <proc_interrupts_get_nintr_per_cpu@plt>
  mov    0x18(%rsp),%rdx
  mov    %rax,(%rdx)
  cmp    %r13d,%r12d
  jne    L135
  nopw   0x0(%rax,%rax,1)
L52:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L96
  add    $0x58,%rsp
  mov    %rbp,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L115:
  mov    0x28(%rsp),%rdi
  call   <proc_interrupts_get_nintr_per_cpu@plt>
  mov    0x18(%rsp),%rdx
  mov    %rax,0x8(%rdx)
  jmp    L128
L112:
  mov    %rax,%rsi
  lea    D11(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  cmp    $0x2,%r12d
  ja     L2
L6:
  mov    0x20(%rsp),%rdi
  call   <proc_interrupts_get_nintr_per_cpu@plt>
  mov    0x18(%rsp),%rdi
  mov    %rax,(%rdi)
  cmp    $0x1,%r12d
  ja     L2
  jmp    L52
L96:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D3
datatype: string
name: extract_symbolic_data
arguments: data_tag: D11
datatype: string

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


tool: D11: intr = %llu


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;
}
```