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

```asm
<clnt_sperror>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x40,%rsp
  mov    %rdi,%r12
  mov    %rsi,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <_buf@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L51
  mov    %rsp,%rsi
  mov    %r12,%rdi
  call   <CLNT_GETERR@plt>
  mov    (%rsp),%edi
  call   <clnt_sperrno@plt>
  mov    %rax,%rcx
  mov    %rbp,%rdx
  lea    D11(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%r12d
  movslq %eax,%rbp
  add    %rbx,%rbp
  mov    (%rsp),%eax
  add    $0xffffff80,%eax
  cmp    $0x11,%eax
  ja     L41
  mov    %eax,%eax
  lea    D57(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  mov    0x28(%rsp),%edi
  call   <strerror@plt>
  mov    %rax,%rcx
  mov    $0x100,%esi
  sub    %r12d,%esi
  lea    D53(%rip),%rdx
  mov    %rbp,%rdi
  call   <snprintf@plt>
L66:
  movb   $0xa,0xfe(%rbx)
  movb   $0x0,0xff(%rbx)
L51:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L79
  mov    %rbx,%rax
  add    $0x40,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  movslq 0x18(%rsp),%rcx
  movslq 0x1c(%rsp),%rdx
  lea    D46(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L66
  mov    0x20(%rsp),%rdi
  call   <auth_errmsg@plt>
  mov    %rax,%r12
  movabs $0x203d20796877203b,%rax
  mov    %rax,0x0(%rbp)
  movb   $0x0,0x8(%rbp)
  mov    %rbp,%rdi
  call   <strlen@plt>
  movslq %eax,%rdi
  add    %rbp,%rdi
  test   %r12,%r12
  je     L43
  mov    %r12,%rdx
  lea    D21(%rip),%rsi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L66
L43:
  mov    0x20(%rsp),%edx
  lea    D31(%rip),%rsi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L66
  movslq 0x18(%rsp),%rcx
  movslq 0x1c(%rsp),%rdx
  lea    D46(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L66
L41:
  mov    0x8(%rsp),%rcx
  mov    0x10(%rsp),%rdx
  lea    D40(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L66
L79:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D11
data_type: string
name: unpack_data
arguments: label: D53
data_type: string
name: unpack_data
arguments: label: D46
data_type: string
name: unpack_data
arguments: label: D21
data_type: string
name: unpack_data
arguments: label: D31
data_type: string
name: unpack_data
arguments: label: D40
data_type: string

tool: D11: %s: %s

tool: D53: ; errno = %s


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


tool: D21: %s


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


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


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