user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<prusage>:
  endbr64
  push   %r15
  mov    %rsi,%r9
  lea    D61(%rip),%r15
  push   %r14
  lea    D55(%rip),%r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %r8,%rbx
  sub    $0x28,%rsp
  mov    0x48(%rsi),%r12d
  mov    0x4c(%rsi),%esi
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  sub    0x4c(%rdi),%esi
  sub    0x48(%rdi),%r12d
  movslq %esi,%rax
  imul   $0x64,%r12d,%r12d
  sar    $0x1f,%esi
  imul   $0x68db8bad,%rax,%rax
  sar    $0x2c,%rax
  sub    %esi,%eax
  mov    0x44(%r9),%esi
  sub    0x44(%rdi),%esi
  add    %eax,%r12d
  mov    0x40(%r9),%eax
  sub    0x40(%rdi),%eax
  imul   $0x64,%eax,%eax
  add    %eax,%r12d
  movslq %esi,%rax
  sar    $0x1f,%esi
  imul   $0x68db8bad,%rax,%rax
  sar    $0x2c,%rax
  sub    %esi,%eax
  add    %eax,%r12d
  mov    (%rdx),%eax
  mov    0x4(%rdx),%edx
  sub    0x4(%rcx),%edx
  imul   $0x64,%r12d,%edi
  sub    (%rcx),%eax
  mov    %r12d,(%rsp)
  mov    %edx,%ecx
  imul   $0x64,%eax,%eax
  movslq %edx,%rdx
  mov    %r9,%r12
  imul   $0x68db8bad,%rdx,%rdx
  sar    $0x1f,%ecx
  mov    %edi,0x8(%rsp)
  sar    $0x2c,%rdx
  sub    %ecx,%edx
  add    %edx,%eax
  mov    $0x1,%edx
  cmovne %eax,%edx
  mov    %edx,0xc(%rsp)
  movslq %eax,%rdx
  sar    $0x1f,%eax
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x25,%rdx
  sub    %eax,%edx
  mov    $0x25,%eax
  mov    %edx,0x4(%rsp)
  mov    $0x55,%edx
  jmp    L7
  nopl   (%rax)
L194:
  mov    %al,(%rbx)
  mov    %r15,%rbp
  mov    %edx,%eax
  add    $0x1,%rbx
L456:
  lea    0x1(%rbp),%r15
  test   %al,%al
  je     L356
  movzbl 0x2(%rbp),%edx
L7:
  lea    0x1(%r15),%rbp
  cmp    $0x25,%al
  jne    L194
  test   %dl,%dl
  jne    L429
L356:
  movb   $0x0,(%rbx)
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L470
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L429:
  sub    $0x43,%edx
  cmp    $0x15,%dl
  ja     L537
  movzbl %dl,%edx
  movslq (%r14,%rdx,4),%rax
  add    %r14,%rax
  notrack jmp *%rax
  mov    0x18(%r12),%ecx
  mov    0x14(%r12),%edx
  xor    %eax,%eax
  mov    %rbx,%rdi
  sub    0x18(%r13),%ecx
  sub    0x14(%r13),%edx
  lea    D86(%rip),%rsi
  call   <sprintf@plt>
  cmpb   $0x0,(%rbx)
  je     L537
  nopl   (%rax)
L362:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L362
  nopl   0x0(%rax)
L537:
  movzbl 0x2(%r15),%eax
  jmp    L456
  mov    (%rsp),%edi
  xor    %r8d,%r8d
  test   %edi,%edi
  jne    L450
L357:
  xor    %eax,%eax
  mov    %r8d,%edx
  lea    D96(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  cmpb   $0x0,(%rbx)
  je     L537
  nopl   0x0(%rax)
L23:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L23
  jmp    L537
  mov    (%rsp),%edi
  xor    %r8d,%r8d
  test   %edi,%edi
  jne    L341
L123:
  xor    %eax,%eax
  mov    %r8d,%edx
  lea    D96(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  cmpb   $0x0,(%rbx)
  je     L537
  nopw   0x0(%rax,%rax,1)
L67:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L67
  jmp    L537
  mov    0x4(%rsp),%edi
  mov    %rbx,%rsi
  call   <psecs@plt>
  cmpb   $0x0,(%rbx)
  je     L537
L360:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L360
  jmp    L537
  mov    0x38(%r12),%rdx
  xor    %eax,%eax
  sub    0x38(%r13),%edx
  lea    D96(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  cmpb   $0x0,(%rbx)
  je     L537
  nopl   0x0(%rax)
L226:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L226
  jmp    L537
  mov    0x28(%r12),%rdx
  xor    %eax,%eax
  sub    0x28(%r13),%edx
  lea    D96(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  cmpb   $0x0,(%rbx)
  je     L537
  nopl   0x0(%rax)
L302:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L302
  jmp    L537
  mov    (%rsp),%edi
  xor    %r8d,%r8d
  test   %edi,%edi
  jne    L208
L453:
  xor    %eax,%eax
  mov    %r8d,%edx
  lea    D96(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  cmpb   $0x0,(%rbx)
  je     L537
  nopl   0x0(%rax)
L83:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L83
  jmp    L537
  mov    0x10(%r12),%eax
  lea    D96(%rip),%rsi
  mov    %rbx,%rdi
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %eax,%edx
  xor    %eax,%eax
  sar    %edx
  call   <sprintf@plt>
  cmpb   $0x0,(%rbx)
  je     L537
  cs nopw 0x0(%rax,%rax,1)
L361:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L361
  jmp    L537
  mov    0x30(%r12),%rdx
  xor    %eax,%eax
  sub    0x30(%r13),%edx
  lea    D96(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  cmpb   $0x0,(%rbx)
  je     L537
  nopl   0x0(%rax)
L91:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L91
  jmp    L537
  lea    0x40(%r13),%rdx
  lea    0x40(%r12),%rsi
  lea    0x10(%rsp),%rdi
  call   <tvsub@plt>
  movslq 0x14(%rsp),%rcx
  mov    0x10(%rsp),%edx
  mov    %rbx,%rdi
  lea    D34(%rip),%rsi
  mov    %rcx,%rax
  imul   $0x14f8b589,%rcx,%rcx
  sar    $0x1f,%eax
  sar    $0x2d,%rcx
  sub    %eax,%ecx
  xor    %eax,%eax
  call   <sprintf@plt>
  cmpb   $0x0,(%rbx)
  je     L537
  nop
L297:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L297
  jmp    L537
  lea    0x48(%r13),%rdx
  lea    0x48(%r12),%rsi
  lea    0x10(%rsp),%rdi
  call   <tvsub@plt>
  movslq 0x14(%rsp),%rcx
  mov    0x10(%rsp),%edx
  mov    %rbx,%rdi
  lea    D34(%rip),%rsi
  mov    %rcx,%rax
  imul   $0x14f8b589,%rcx,%rcx
  sar    $0x1f,%eax
  sar    $0x2d,%rcx
  sub    %eax,%ecx
  xor    %eax,%eax
  call   <sprintf@plt>
  cmpb   $0x0,(%rbx)
  je     L537
  nopw   0x0(%rax,%rax,1)
L190:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L190
  jmp    L537
  mov    (%r12),%edx
  xor    %eax,%eax
  sub    0x0(%r13),%edx
  mov    %rbx,%rdi
  lea    D128(%rip),%rsi
  call   <sprintf@plt>
  cmpb   $0x0,(%rbx)
  je     L537
L121:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L121
  jmp    L537
  mov    0x20(%r12),%rdx
  xor    %eax,%eax
  sub    0x20(%r13),%edx
  lea    D96(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  cmpb   $0x0,(%rbx)
  je     L537
  nopl   0x0(%rax)
L50:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L50
  jmp    L537
  mov    0x8(%rsp),%eax
  lea    D50(%rip),%rsi
  mov    %rbx,%rdi
  cltd
  idivl  0xc(%rsp)
  mov    %eax,%edx
  xor    %eax,%eax
  call   <sprintf@plt>
  cmpb   $0x0,(%rbx)
  je     L537
  nopl   0x0(%rax,%rax,1)
L171:
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx)
  jne    L171
  jmp    L537
L208:
  mov    0xc(%r12),%eax
  mov    0x8(%r13),%edx
  add    0x4(%r12),%eax
  add    0x4(%r13),%edx
  add    0x8(%r12),%eax
  add    0xc(%r13),%edx
  sub    %edx,%eax
  cltd
  idiv   %edi
  mov    %eax,%r8d
  jmp    L453
L341:
  mov    0xc(%r12),%eax
  add    0x8(%r12),%eax
  sub    0xc(%r13),%eax
  sub    0x8(%r13),%eax
  cltd
  idiv   %edi
  mov    %eax,%r8d
  jmp    L123
L450:
  mov    0x4(%r12),%eax
  sub    0x4(%r13),%eax
  cltd
  idiv   %edi
  mov    %eax,%r8d
  jmp    L357
L470:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D61
data_type: string
name: parse_data
arguments: tag: D86
data_type: string
name: parse_data
arguments: tag: D96
data_type: string
name: parse_data
arguments: tag: D34
data_type: string
name: parse_data
arguments: tag: D128
data_type: string
name: parse_data
arguments: tag: D50
data_type: string

tool: D61: %Uuser %Ssys %Ereal %P %Xi+%Dd %Mmaxrss %F+%Rpf %Ccsw

tool: D86: %ld+%ld

tool: D96: %ld

tool: D34: %ld.%01ld

tool: D128: %d

tool: D50: %d%%

assistant: ```c
void prusage(register struct rusage *r0, register struct rusage *r1, struct timeval *e, struct timeval *b, char *outp) {
  struct timeval tdiff;
  register time_t t;
  register char *cp;
  register int i;
  int ms;
  t = (r1->ru_utime.tv_sec - r0->ru_utime.tv_sec) * 100 + (r1->ru_utime.tv_usec - r0->ru_utime.tv_usec) / 10000 + (r1->ru_stime.tv_sec - r0->ru_stime.tv_sec) * 100 + (r1->ru_stime.tv_usec - r0->ru_stime.tv_usec) / 10000;
  ms = (e->tv_sec - b->tv_sec) * 100 + (e->tv_usec - b->tv_usec) / 10000;
  cp = "%Uuser %Ssys %Ereal %P %Xi+%Dd %Mmaxrss %F+%Rpf %Ccsw";
  for (; *cp; cp++) {
    if (*cp != '%')
      *outp++ = *cp;
    else if (cp[1])
      switch (*++cp) {
      case 'U':
        tvsub(&tdiff, &r1->ru_utime, &r0->ru_utime);
        sprintf(outp, "%ld.%01ld", tdiff.tv_sec, tdiff.tv_usec / 100000);
        {
          while (*outp)
            outp++;
        };
        break;
      case 'S':
        tvsub(&tdiff, &r1->ru_stime, &r0->ru_stime);
        sprintf(outp, "%ld.%01ld", tdiff.tv_sec, tdiff.tv_usec / 100000);
        {
          while (*outp)
            outp++;
        };
        break;
      case 'E':
        psecs(ms / 100, outp);
        {
          while (*outp)
            outp++;
        };
        break;
      case 'P':
        sprintf(outp, "%d%%", (int)(t * 100 / ((ms ? ms : 1))));
        {
          while (*outp)
            outp++;
        };
        break;
      case 'W':
        i = r1->ru_nswap - r0->ru_nswap;
        sprintf(outp, "%d", i);
        {
          while (*outp)
            outp++;
        };
        break;
      case 'X':
        sprintf(outp, "%ld", t == 0 ? 0 : (r1->ru_ixrss - r0->ru_ixrss) / t);
        {
          while (*outp)
            outp++;
        };
        break;
      case 'D':
        sprintf(outp, "%ld", t == 0 ? 0 : (r1->ru_idrss + r1->ru_isrss - (r0->ru_idrss + r0->ru_isrss)) / t);
        {
          while (*outp)
            outp++;
        };
        break;
      case 'K':
        sprintf(outp, "%ld", t == 0 ? 0 : ((r1->ru_ixrss + r1->ru_isrss + r1->ru_idrss) - (r0->ru_ixrss + r0->ru_idrss + r0->ru_isrss)) / t);
        {
          while (*outp)
            outp++;
        };
        break;
      case 'M':
        sprintf(outp, "%ld", r1->ru_maxrss / 2);
        {
          while (*outp)
            outp++;
        };
        break;
      case 'F':
        sprintf(outp, "%ld", r1->ru_majflt - r0->ru_majflt);
        {
          while (*outp)
            outp++;
        };
        break;
      case 'R':
        sprintf(outp, "%ld", r1->ru_minflt - r0->ru_minflt);
        {
          while (*outp)
            outp++;
        };
        break;
      case 'I':
        sprintf(outp, "%ld", r1->ru_inblock - r0->ru_inblock);
        {
          while (*outp)
            outp++;
        };
        break;
      case 'O':
        sprintf(outp, "%ld", r1->ru_oublock - r0->ru_oublock);
        {
          while (*outp)
            outp++;
        };
        break;
      case 'C':
        sprintf(outp, "%ld+%ld", r1->ru_nvcsw - r0->ru_nvcsw, r1->ru_nivcsw - r0->ru_nivcsw);
        {
          while (*outp)
            outp++;
        };
        break;
      }
  }
  *outp = '\0';
}
```