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

```asm
<clnt_sperror>:
  endbr64
  push   %r13
  mov    %rsi,%r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <_buf@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L68
  mov    %rsp,%rsi
  mov    %rbp,%rdi
  call   <CLNT_GETERR@plt>
  mov    (%rsp),%edi
  call   <clnt_sperrno@plt>
  mov    %r13,%rdx
  lea    D39(%rip),%rsi
  mov    %r12,%rdi
  mov    %rax,%rcx
  xor    %eax,%eax
  call   <sprintf@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  movslq %eax,%rbp
  mov    (%rsp),%eax
  mov    %rbp,%rbx
  add    %r12,%rbp
  lea    -0x80(%rax),%edx
  cmp    $0x11,%edx
  ja     L61
  lea    D46(%rip),%rcx
  movslq (%rcx,%rdx,4),%rax
  add    %rcx,%rax
  notrack jmp *%rax
  movslq 0x18(%rsp),%rcx
  movslq 0x1c(%rsp),%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D20(%rip),%rsi
  call   <sprintf@plt>
L2:
  mov    $0xa,%eax
  mov    %ax,0xfe(%r12)
L68:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L64
  add    $0x48,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
  mov    0x28(%rsp),%edi
  call   <strerror@plt>
  mov    $0x100,%esi
  lea    D30(%rip),%rdx
  mov    %rbp,%rdi
  mov    %rax,%rcx
  sub    %ebx,%esi
  call   <snprintf@plt>
  jmp    L2
  nopl   0x0(%rax)
  mov    0x20(%rsp),%rdi
  call   <auth_errmsg@plt>
  movb   $0x0,0x8(%rbp)
  mov    %rbp,%rdi
  mov    %rax,%r13
  movabs $0x203d20796877203b,%rax
  mov    %rax,0x0(%rbp)
  call   <strlen@plt>
  movslq %eax,%rdi
  add    %rbp,%rdi
  test   %r13,%r13
  je     L36
  mov    %r13,%rdx
  lea    D50(%rip),%rsi
  xor    %eax,%eax
  call   <sprintf@plt>
  jmp    L2
L61:
  mov    0x8(%rsp),%rcx
  mov    0x10(%rsp),%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D9(%rip),%rsi
  call   <sprintf@plt>
  jmp    L2
L36:
  mov    0x20(%rsp),%edx
  lea    D60(%rip),%rsi
  xor    %eax,%eax
  call   <sprintf@plt>
  jmp    L2
L64:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D39
type_guessed: string
name: unpack_data
arguments: label: D20
type_guessed: string
name: unpack_data
arguments: label: D30
type_guessed: string
name: unpack_data
arguments: label: D50
type_guessed: string
name: unpack_data
arguments: label: D9
type_guessed: string
name: unpack_data
arguments: label: D60
type_guessed: string

tool: D39: %s: %s

tool: D20: ; low version = %lu, high version = %lu


tool: D30: ; errno = %s


tool: D50: %s


tool: D9: ; s1 = %lu, s2 = %lu


tool: D60: (unknown authentication error - %d)


assistant: ```c
char *clnt_sperror(CLIENT *rpch, const char *s) {
  struct rpc_err e;
  char *err;
  char *str = _buf();
  char *strstart = str;
  if (str == 0)
    return (0);
  CLNT_GETERR(rpch, &e);
  (void)sprintf(str, "%s: %s", s, clnt_sperrno(e.re_status));
  str += strlen(str);
  switch (e.re_status) {
  case RPC_SUCCESS:
  case RPC_CANTENCODEARGS:
  case RPC_CANTDECODERES:
  case RPC_TIMEDOUT:
  case RPC_PROGUNAVAIL:
  case RPC_PROCUNAVAIL:
  case RPC_CANTDECODEARGS:
  case RPC_SYSTEMERROR:
  case RPC_UNKNOWNHOST:
  case RPC_UNKNOWNPROTO:
  case RPC_PMAPFAILURE:
  case RPC_PROGNOTREGISTERED:
  case RPC_FAILED:
    break;
  case RPC_CANTSEND:
  case RPC_CANTRECV:
    (void)snprintf(str, 256 - (str - strstart), "; errno = %s\n", strerror(e.re_errno));
    break;
  case RPC_VERSMISMATCH:
    (void)sprintf(str, "; low version = %lu, high version = %lu\n", (u_long)e.re_vers.low, (u_long)e.re_vers.high);
    break;
  case RPC_AUTHERROR:
    err = auth_errmsg(e.re_why);
    (void)sprintf(str, "; why = ");
    str += strlen(str);
    if (err != NULL) {
      (void)sprintf(str, "%s\n", err);
    } else {
      (void)sprintf(str, "(unknown authentication error - %d)\n", (int)e.re_why);
    }
    break;
  case RPC_PROGVERSMISMATCH:
    (void)sprintf(str, "; low version = %lu, high version = %lu\n", (u_long)e.re_vers.low, (u_long)e.re_vers.high);
    break;
  default:
    (void)sprintf(str, "; s1 = %lu, s2 = %lu\n", (long)e.re_lb.s1, (long)e.re_lb.s2);
    break;
  }
  strstart[256 - 2] = '\n';
  strstart[256 - 1] = '\0';
  return (strstart);
}
```