#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */
typedef struct TYPE_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
typedef long u_long;
struct TYPE_4__ {
  scalar_t__ s2;
  scalar_t__ s1;
};
struct TYPE_3__ {
  int /*<<< orphan*/ high;
  int /*<<< orphan*/ low;
};
struct rpc_err {
  int re_status;
  TYPE_2__ re_lb;
  TYPE_1__ re_vers;
  scalar_t__ re_why;
  int /*<<< orphan*/ re_errno;
};
typedef int /*<<< orphan*/ CLIENT;

/* Variables and functions */
int /*<<< orphan*/ CLNT_GETERR(int /*<<< orphan*/ *, struct rpc_err *);
#define RPC_AUTHERROR 145
#define RPC_CANTDECODEARGS 144
#define RPC_CANTDECODERES 143
#define RPC_CANTENCODEARGS 142
#define RPC_CANTRECV 141
#define RPC_CANTSEND 140
#define RPC_FAILED 139
#define RPC_PMAPFAILURE 138
#define RPC_PROCUNAVAIL 137
#define RPC_PROGNOTREGISTERED 136
#define RPC_PROGUNAVAIL 135
#define RPC_PROGVERSMISMATCH 134
#define RPC_SUCCESS 133
#define RPC_SYSTEMERROR 132
#define RPC_TIMEDOUT 131
#define RPC_UNKNOWNHOST 130
#define RPC_UNKNOWNPROTO 129
#define RPC_VERSMISMATCH 128
char *_buf();
char *auth_errmsg(scalar_t__);
char *clnt_sperrno(int);
int /*<<< orphan*/ snprintf(char *, int, char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, ...);
char *strerror(int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char *);
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);
}


x86 assembly (clang, -O0):
<clnt_sperror>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    $0x0,%al
call   1090 <_buf@plt>
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x58(%rbp)
jne    11be <clnt_sperror+0x3e>
movq   $0x0,-0x8(%rbp)
jmp    137b <clnt_sperror+0x1fb>
mov    -0x10(%rbp),%rdi
lea    -0x48(%rbp),%rsi
call   1040 <CLNT_GETERR@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x48(%rbp),%edi
call   1070 <clnt_sperrno@plt>
mov    -0x78(%rbp),%rdi
mov    -0x70(%rbp),%rdx
mov    %rax,%rcx
lea    0xe53(%rip),%rsi
xor    %eax,%eax
call   1080 <sprintf@plt>
mov    -0x58(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x48(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x68(%rbp)
sub    $0x11,%eax
ja     1343 <clnt_sperror+0x1c3>
mov    -0x68(%rbp),%rax
lea    0xdcb(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    135d <clnt_sperror+0x1dd>
mov    -0x58(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x58(%rbp),%rcx
mov    -0x60(%rbp),%rax
sub    %rax,%rcx
mov    $0x100,%eax
sub    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x20(%rbp),%edi
call   10a0 <strerror@plt>
mov    -0x88(%rbp),%rdi
mov    -0x7c(%rbp),%esi
mov    %rax,%rcx
lea    0xdcf(%rip),%rdx
call   1050 <snprintf@plt>
jmp    135d <clnt_sperror+0x1dd>
mov    -0x58(%rbp),%rdi
movslq -0x2c(%rbp),%rdx
movslq -0x30(%rbp),%rcx
lea    0xdc0(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
jmp    135d <clnt_sperror+0x1dd>
mov    -0x28(%rbp),%rdi
call   1060 <auth_errmsg@plt>
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%rdi
lea    0xdc5(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
mov    -0x58(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x50(%rbp)
je     1307 <clnt_sperror+0x187>
mov    -0x58(%rbp),%rdi
mov    -0x50(%rbp),%rdx
lea    0xd5e(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
jmp    131f <clnt_sperror+0x19f>
mov    -0x58(%rbp),%rdi
mov    -0x28(%rbp),%rax
mov    %eax,%edx
lea    0xd77(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
jmp    135d <clnt_sperror+0x1dd>
mov    -0x58(%rbp),%rdi
movslq -0x2c(%rbp),%rdx
movslq -0x30(%rbp),%rcx
lea    0xd26(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
jmp    135d <clnt_sperror+0x1dd>
mov    -0x58(%rbp),%rdi
mov    -0x38(%rbp),%rdx
mov    -0x40(%rbp),%rcx
lea    0xd5e(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
mov    -0x60(%rbp),%rax
movb   $0xa,0xfe(%rax)
mov    -0x60(%rbp),%rax
movb   $0x0,0xff(%rax)
mov    -0x60(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<clnt_sperror>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%r15
mov    %rdi,%rbx
xor    %eax,%eax
call   1090 <_buf@plt>
mov    %rax,%r14
test   %rax,%rax
je     1204 <clnt_sperror+0x84>
mov    %rax,%r12
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <CLNT_GETERR@plt>
mov    0x8(%rsp),%edi
call   1070 <clnt_sperrno@plt>
lea    0xe88(%rip),%rsi
mov    %r14,%rdi
mov    %r15,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1080 <sprintf@plt>
mov    %r14,%rdi
call   1030 <strlen@plt>
movslq %eax,%rcx
add    %rcx,%r12
mov    0x8(%rsp),%ecx
add    $0xffffff80,%ecx
cmp    $0x11,%ecx
ja     124c <clnt_sperror+0xcc>
lea    0xe0f(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
movw   $0xa,0xfe(%r14)
mov    %r14,%rax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret
movslq 0x24(%rsp),%rdx
movslq 0x20(%rsp),%rcx
lea    0xe39(%rip),%rsi
jmp    125d <clnt_sperror+0xdd>
mov    $0x100,%ebx
sub    %eax,%ebx
mov    0x30(%rsp),%edi
call   10a0 <strerror@plt>
lea    0xe12(%rip),%rdx
mov    %r12,%rdi
mov    %ebx,%esi
mov    %rax,%rcx
call   1050 <snprintf@plt>
jmp    11fa <clnt_sperror+0x7a>
mov    0x10(%rsp),%rcx
mov    0x18(%rsp),%rdx
lea    0xe57(%rip),%rsi
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <sprintf@plt>
jmp    11fa <clnt_sperror+0x7a>
mov    0x28(%rsp),%rdi
call   1060 <auth_errmsg@plt>
mov    %rax,%r15
movabs $0x203d20796877203b,%rax
20 3d 20
mov    %rax,(%r12)
movb   $0x0,0x8(%r12)
mov    %r12,%rdi
call   1030 <strlen@plt>
movslq %eax,%rdi
add    %r12,%rdi
test   %r15,%r15
je     12b3 <clnt_sperror+0x133>
lea    0xdb5(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1080 <sprintf@plt>
jmp    11fa <clnt_sperror+0x7a>
mov    0x28(%rsp),%edx
lea    0xdd1(%rip),%rsi
xor    %eax,%eax
call   1080 <sprintf@plt>
jmp    11fa <clnt_sperror+0x7a>

LLVM IR (-O0):
%struct.rpc_err = type { i32, %struct.TYPE_4__, %struct.TYPE_3__, i64, i32 }
%struct.TYPE_4__ = type { i64, i64 }
%struct.TYPE_3__ = type { i32, i32 }
@.str = [7 x i8] c"%s: %s\00"
@.str.1 = [14 x i8] c"; errno = %s\0A\00"
@.str.2 = [41 x i8] c"; low version = %lu, high version = %lu\0A\00"
@.str.3 = [9 x i8] c"; why = \00"
@.str.4 = [4 x i8] c"%s\0A\00"
@.str.5 = [37 x i8] c"(unknown authentication error - %d)\0A\00"
@.str.6 = [22 x i8] c"; s1 = %lu, s2 = %lu\0A\00"
define i8* @clnt_sperror(i32* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca %struct.rpc_err
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
store i32* %0, i32** %4
store i8* %1, i8** %5
%10 = call i8* (...) @_buf()
store i8* %10, i8** %8
%11 = load i8*, i8** %8
store i8* %11, i8** %9
%12 = load i8*, i8** %8
%13 = icmp eq i8* %12, null
br i1 %13, label %14, label %15
14: ; preds = %2
store i8* null, i8** %3
br label %106
15: ; preds = %2
%16 = load i32*, i32** %4
%17 = call i32 @CLNT_GETERR(i32* %16, %struct.rpc_err* %6)
%18 = load i8*, i8** %8
%19 = load i8*, i8** %5
%20 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %6, i32 0, i32 0
%21 = load i32, i32* %20
%22 = call i8* @clnt_sperrno(i32 %21)
%23 = call i32 (i8*, i8*, ...) @sprintf(i8* %18, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %19, i8* %22)
%24 = load i8*, i8** %8
%25 = call i32 @strlen(i8* %24)
%26 = load i8*, i8** %8
%27 = sext i32 %25 to i64
%28 = getelementptr inbounds i8, i8* %26, i64 %27
store i8* %28, i8** %8
%29 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %6, i32 0, i32 0
%30 = load i32, i32* %29
switch i32 %30, label %91 [
i32 133, label %31
i32 142, label %31
i32 143, label %31
i32 131, label %31
i32 135, label %31
i32 137, label %31
i32 144, label %31
i32 132, label %31
i32 130, label %31
i32 129, label %31
i32 138, label %31
i32 136, label %31
i32 139, label %31
i32 140, label %32
i32 141, label %32
i32 128, label %45
i32 145, label %56
i32 134, label %80
]
31: ; preds = %15, %15, %15, %15, %15, %15, %15, %15, %15, %15, %15, %15, %15
br label %100
32: ; preds = %15, %15
%33 = load i8*, i8** %8
%34 = load i8*, i8** %8
%35 = load i8*, i8** %9
%36 = ptrtoint i8* %34 to i64
%37 = ptrtoint i8* %35 to i64
%38 = sub i64 %36, %37
%39 = sub nsw i64 256, %38
%40 = trunc i64 %39 to i32
%41 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %6, i32 0, i32 4
%42 = load i32, i32* %41
%43 = call i8* @strerror(i32 %42)
%44 = call i32 @snprintf(i8* %33, i32 %40, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %43)
br label %100
45: ; preds = %15
%46 = load i8*, i8** %8
%47 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %6, i32 0, i32 2
%48 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %47, i32 0, i32 1
%49 = load i32, i32* %48
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %6, i32 0, i32 2
%52 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %51, i32 0, i32 0
%53 = load i32, i32* %52
%54 = sext i32 %53 to i64
%55 = call i32 (i8*, i8*, ...) @sprintf(i8* %46, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i64 %50, i64 %54)
br label %100
56: ; preds = %15
%57 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %6, i32 0, i32 3
%58 = load i64, i64* %57
%59 = call i8* @auth_errmsg(i64 %58)
store i8* %59, i8** %7
%60 = load i8*, i8** %8
%61 = call i32 (i8*, i8*, ...) @sprintf(i8* %60, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%62 = load i8*, i8** %8
%63 = call i32 @strlen(i8* %62)
%64 = load i8*, i8** %8
%65 = sext i32 %63 to i64
%66 = getelementptr inbounds i8, i8* %64, i64 %65
store i8* %66, i8** %8
%67 = load i8*, i8** %7
%68 = icmp ne i8* %67, null
br i1 %68, label %69, label %73
69: ; preds = %56
%70 = load i8*, i8** %8
%71 = load i8*, i8** %7
%72 = call i32 (i8*, i8*, ...) @sprintf(i8* %70, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %71)
br label %79
73: ; preds = %56
%74 = load i8*, i8** %8
%75 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %6, i32 0, i32 3
%76 = load i64, i64* %75
%77 = trunc i64 %76 to i32
%78 = call i32 (i8*, i8*, ...) @sprintf(i8* %74, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0), i32 %77)
br label %79
79: ; preds = %73, %69
br label %100
80: ; preds = %15
%81 = load i8*, i8** %8
%82 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %6, i32 0, i32 2
%83 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %82, i32 0, i32 1
%84 = load i32, i32* %83
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %6, i32 0, i32 2
%87 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %86, i32 0, i32 0
%88 = load i32, i32* %87
%89 = sext i32 %88 to i64
%90 = call i32 (i8*, i8*, ...) @sprintf(i8* %81, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i64 %85, i64 %89)
br label %100
91: ; preds = %15
%92 = load i8*, i8** %8
%93 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %6, i32 0, i32 1
%94 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %93, i32 0, i32 1
%95 = load i64, i64* %94
%96 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %6, i32 0, i32 1
%97 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %96, i32 0, i32 0
%98 = load i64, i64* %97
%99 = call i32 (i8*, i8*, ...) @sprintf(i8* %92, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i64 %95, i64 %98)
br label %100
100: ; preds = %91, %80, %79, %45, %32, %31
%101 = load i8*, i8** %9
%102 = getelementptr inbounds i8, i8* %101, i64 254
store i8 10, i8* %102
%103 = load i8*, i8** %9
%104 = getelementptr inbounds i8, i8* %103, i64 255
store i8 0, i8* %104
%105 = load i8*, i8** %9
store i8* %105, i8** %3
br label %106
106: ; preds = %100, %14
%107 = load i8*, i8** %3
ret i8* %107
}

LLVM IR (-O2):
%struct.rpc_err = type { i32, %struct.TYPE_4__, %struct.TYPE_3__, i64, i32 }
%struct.TYPE_4__ = type { i64, i64 }
%struct.TYPE_3__ = type { i32, i32 }
@.str = [7 x i8] c"%s: %s\00"
@.str.1 = [14 x i8] c"; errno = %s\0A\00"
@.str.2 = [41 x i8] c"; low version = %lu, high version = %lu\0A\00"
@.str.3 = [9 x i8] c"; why = \00"
@.str.4 = [4 x i8] c"%s\0A\00"
@.str.5 = [37 x i8] c"(unknown authentication error - %d)\0A\00"
@.str.6 = [22 x i8] c"; s1 = %lu, s2 = %lu\0A\00"
define i8* @clnt_sperror(i32* %0, i8* %1) {
%3 = alloca %struct.rpc_err
%4 = bitcast %struct.rpc_err* %3 to i8*
%5 = tail call i8* (...) @_buf()
%6 = icmp eq i8* %5, null
br i1 %6, label %62, label %7
7: ; preds = %2
%8 = call i32 @CLNT_GETERR(i32* %0, %struct.rpc_err* %3)
%9 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %3, i64 0, i32 0
%10 = load i32, i32* %9
%11 = call i8* @clnt_sperrno(i32 %10)
%12 = call i32 (i8*, i8*, ...) @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %11)
%13 = call i32 @strlen(i8* %5)
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, i8* %5, i64 %14
%16 = load i32, i32* %9
switch i32 %16, label %53 [
i32 133, label %59
i32 142, label %59
i32 143, label %59
i32 131, label %59
i32 135, label %59
i32 137, label %59
i32 144, label %59
i32 132, label %59
i32 130, label %59
i32 129, label %59
i32 138, label %59
i32 136, label %59
i32 139, label %59
i32 140, label %17
i32 141, label %17
i32 128, label %23
i32 145, label %31
i32 134, label %45
]
17: ; preds = %7, %7
%18 = sub i32 256, %13
%19 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %3, i64 0, i32 4
%20 = load i32, i32* %19
%21 = call i8* @strerror(i32 %20)
%22 = call i32 @snprintf(i8* %15, i32 %18, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %21)
br label %59
23: ; preds = %7
%24 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %3, i64 0, i32 2, i32 1
%25 = load i32, i32* %24
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %3, i64 0, i32 2, i32 0
%28 = load i32, i32* %27
%29 = sext i32 %28 to i64
%30 = call i32 (i8*, i8*, ...) @sprintf(i8* %15, i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i64 %26, i64 %29)
br label %59
31: ; preds = %7
%32 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %3, i64 0, i32 3
%33 = load i64, i64* %32
%34 = call i8* @auth_errmsg(i64 %33)
%35 = call i32 @strlen(i8* %15)
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, i8* %15, i64 %36
%38 = icmp eq i8* %34, null
br i1 %38, label %41, label %39
39: ; preds = %31
%40 = call i32 (i8*, i8*, ...) @sprintf(i8* %37, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %34)
br label %59
41: ; preds = %31
%42 = load i64, i64* %32
%43 = trunc i64 %42 to i32
%44 = call i32 (i8*, i8*, ...) @sprintf(i8* %37, i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0), i32 %43)
br label %59
45: ; preds = %7
%46 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %3, i64 0, i32 2, i32 1
%47 = load i32, i32* %46
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %3, i64 0, i32 2, i32 0
%50 = load i32, i32* %49
%51 = sext i32 %50 to i64
%52 = call i32 (i8*, i8*, ...) @sprintf(i8* %15, i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i64 %48, i64 %51)
br label %59
53: ; preds = %7
%54 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %3, i64 0, i32 1, i32 1
%55 = load i64, i64* %54
%56 = getelementptr inbounds %struct.rpc_err, %struct.rpc_err* %3, i64 0, i32 1, i32 0
%57 = load i64, i64* %56
%58 = call i32 (i8*, i8*, ...) @sprintf(i8* %15, i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i64 %55, i64 %57)
br label %59
59: ; preds = %39, %41, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %53, %45, %23, %17
%60 = getelementptr inbounds i8, i8* %5, i64 254
store i8 10, i8* %60
%61 = getelementptr inbounds i8, i8* %5, i64 255
store i8 0, i8* %61
br label %62
62: ; preds = %2, %59
ret i8* %5
}