#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 */

/* Type definitions */
struct timeval {
  int tv_sec;
  scalar_t__ tv_usec;
};
struct timespec {
  int tv_nsec;
  scalar_t__ tv_sec;
};
typedef int /*<<< orphan*/ fd_set;

/* Variables and functions */
scalar_t__ EAGAIN;
scalar_t__ EINTR;
scalar_t__ ETIMEDOUT;
scalar_t__ EWOULDBLOCK;
int /*<<< orphan*/ FD_SET(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ FD_ZERO(int /*<<< orphan*/ *);
scalar_t__ errno;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
scalar_t__ nanosleep(struct timespec *, struct timespec *);
int select(int, int /*<<< orphan*/ *, int /*<<< orphan*/ *,
           int /*<<< orphan*/ *, struct timeval *);
int /*<<< orphan*/ stderr;
int write(int, void *, int);
int lwwire_writedata(void *buf, int len) {
  int towrite = len;
  int rv;
  fd_set fdset;
  struct timeval timeout;
  struct timespec sltime;
  struct timespec rtime;
  sltime.tv_sec = 0;
  sltime.tv_nsec = 50000;
  while (nanosleep(&sltime, &rtime) < 0) {
    if (errno != EINTR)
      return -1;
    sltime = rtime;
  }
  while (towrite > 0) {
    rv = write(1, buf, towrite);
    if (rv == towrite)
      break;
    if (rv < 0) {
      if (errno != EAGAIN && errno != EWOULDBLOCK && errno != EINTR) {
        return -1;
      }
      rv = 0;
    }
    buf += rv;
    towrite -= rv;
    FD_ZERO(&fdset);
    FD_SET(1, &fdset);
    timeout.tv_sec = 10;
    timeout.tv_usec = 0;
    rv = select(2, NULL, &fdset, NULL, &timeout);
    if (rv < 0) {
      if (errno == EINTR)
        continue;
      return -1;
    }
    if (rv == 0) {
      errno = ETIMEDOUT;
      return -1;
    }
  }
  fprintf(stderr, "Protocol bytes written (%d):", len);
  for (rv = 0; rv < len; rv++)
    fprintf(stderr, " %02X ", ((char *)(buf))[rv] & 0xff);
  fprintf(stderr, "\n");
  return len;
}


x86 assembly (clang, -O0):
<lwwire_writedata>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
movq   $0x0,-0x38(%rbp)
movl   $0xc350,-0x40(%rbp)
lea    -0x40(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1040 <nanosleep@plt>
cmp    $0x0,%rax
jge    11d6 <lwwire_writedata+0x76>
mov    0x2e36(%rip),%rax
mov    (%rax),%rax
mov    0x2e14(%rip),%rcx
cmp    (%rcx),%rax
je     11c1 <lwwire_writedata+0x61>
movl   $0xffffffff,-0x4(%rbp)
jmp    13b8 <lwwire_writedata+0x258>
mov    -0x50(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x38(%rbp)
jmp    1184 <lwwire_writedata+0x24>
jmp    11db <lwwire_writedata+0x7b>
cmpl   $0x0,-0x18(%rbp)
jle    1337 <lwwire_writedata+0x1d7>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%edx
mov    $0x1,%edi
call   1030 <write@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jne    120a <lwwire_writedata+0xaa>
jmp    1337 <lwwire_writedata+0x1d7>
cmpl   $0x0,-0x1c(%rbp)
jge    1275 <lwwire_writedata+0x115>
mov    0x2dbd(%rip),%rax
mov    (%rax),%rax
mov    0x2d8b(%rip),%rcx
cmp    (%rcx),%rax
je     126e <lwwire_writedata+0x10e>
mov    0x2da3(%rip),%rax
mov    (%rax),%rax
mov    0x2d91(%rip),%rcx
cmp    (%rcx),%rax
je     126e <lwwire_writedata+0x10e>
mov    0x2d89(%rip),%rax
mov    (%rax),%rax
mov    0x2d67(%rip),%rcx
cmp    (%rcx),%rax
je     126e <lwwire_writedata+0x10e>
movl   $0xffffffff,-0x4(%rbp)
jmp    13b8 <lwwire_writedata+0x258>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x1c(%rbp),%ecx
mov    -0x18(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x18(%rbp)
lea    -0x20(%rbp),%rdi
call   1060 <FD_ZERO@plt>
mov    $0x1,%edi
lea    -0x20(%rbp),%rsi
call   1080 <FD_SET@plt>
movl   $0xa,-0x30(%rbp)
movq   $0x0,-0x28(%rbp)
mov    $0x2,%edi
xor    %eax,%eax
mov    %eax,%ecx
lea    -0x20(%rbp),%rdx
lea    -0x30(%rbp),%r8
mov    %rcx,%rsi
call   1070 <select@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    1308 <lwwire_writedata+0x1a8>
mov    0x2cf4(%rip),%rax
mov    (%rax),%rax
mov    0x2cd2(%rip),%rcx
cmp    (%rcx),%rax
jne    12fc <lwwire_writedata+0x19c>
jmp    11db <lwwire_writedata+0x7b>
movl   $0xffffffff,-0x4(%rbp)
jmp    13b8 <lwwire_writedata+0x258>
cmpl   $0x0,-0x1c(%rbp)
jne    1332 <lwwire_writedata+0x1d2>
mov    0x2caf(%rip),%rax
mov    (%rax),%rcx
mov    0x2cb5(%rip),%rax
mov    %rcx,(%rax)
movl   $0xffffffff,-0x4(%rbp)
jmp    13b8 <lwwire_writedata+0x258>
jmp    11db <lwwire_writedata+0x7b>
mov    0x2ca2(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
lea    0xcb6(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    139b <lwwire_writedata+0x23b>
mov    0x2c75(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%edx
and    $0xff,%edx
lea    0xc97(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1358 <lwwire_writedata+0x1f8>
mov    0x2c3e(%rip),%rax
mov    (%rax),%edi
lea    0xc79(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lwwire_writedata>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %esi,%r14d
mov    %rdi,%r13
movq   $0x0,0x8(%rsp)
movl   $0xc350,(%rsp)
mov    %rsp,%rdi
lea    0x18(%rsp),%rsi
call   1040 <nanosleep@plt>
test   %rax,%rax
jns    11d6 <lwwire_writedata+0x76>
mov    0x2e3b(%rip),%r15
mov    0x2e1c(%rip),%r12
mov    %rsp,%rbx
lea    0x18(%rsp),%rbp
nopl   0x0(%rax)
mov    (%r15),%rax
cmp    (%r12),%rax
jne    12cc <lwwire_writedata+0x16c>
movups 0x18(%rsp),%xmm0
movaps %xmm0,(%rsp)
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1040 <nanosleep@plt>
test   %rax,%rax
js     11b0 <lwwire_writedata+0x50>
test   %r14d,%r14d
jle    12d7 <lwwire_writedata+0x177>
lea    0x14(%rsp),%r12
lea    0x28(%rsp),%r15
mov    %r14d,%ebp
jmp    1219 <lwwire_writedata+0xb9>
xchg   %ax,%ax
mov    0x2de1(%rip),%rax
mov    (%rax),%rax
mov    0x2dbf(%rip),%rcx
cmp    (%rcx),%rax
jne    12cc <lwwire_writedata+0x16c>
mov    %ebx,%eax
add    %rax,%r13
sub    %ebx,%ebp
test   %ebp,%ebp
jle    12f3 <lwwire_writedata+0x193>
mov    $0x1,%edi
mov    %r13,%rsi
mov    %ebp,%edx
call   1030 <write@plt>
cmp    %ebp,%eax
je     12f3 <lwwire_writedata+0x193>
mov    %eax,%ebx
test   %eax,%eax
jns    1270 <lwwire_writedata+0x110>
mov    0x2d9b(%rip),%rax
mov    (%rax),%rax
xor    %ebx,%ebx
mov    0x2d67(%rip),%rcx
cmp    (%rcx),%rax
je     1270 <lwwire_writedata+0x110>
mov    0x2d7b(%rip),%rcx
cmp    (%rcx),%rax
je     1270 <lwwire_writedata+0x110>
mov    0x2d5f(%rip),%rcx
cmp    (%rcx),%rax
jne    12cc <lwwire_writedata+0x16c>
cs nopw 0x0(%rax,%rax,1)
mov    %r12,%rdi
call   1060 <FD_ZERO@plt>
mov    $0x1,%edi
mov    %r12,%rsi
call   1080 <FD_SET@plt>
movl   $0xa,0x28(%rsp)
movq   $0x0,0x30(%rsp)
mov    $0x2,%edi
xor    %esi,%esi
mov    %r12,%rdx
xor    %ecx,%ecx
mov    %r15,%r8
call   1070 <select@plt>
test   %eax,%eax
js     11f0 <lwwire_writedata+0x90>
jne    120a <lwwire_writedata+0xaa>
mov    0x2d09(%rip),%rax
mov    (%rax),%rax
mov    0x2d0f(%rip),%rcx
mov    %rax,(%rcx)
mov    $0xffffffff,%r14d
jmp    1353 <lwwire_writedata+0x1f3>
mov    0x2d02(%rip),%rax
mov    (%rax),%edi
lea    0xd19(%rip),%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    133c <lwwire_writedata+0x1dc>
mov    0x2ce6(%rip),%r15
mov    (%r15),%edi
lea    0xcfc(%rip),%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
test   %r14d,%r14d
jle    133c <lwwire_writedata+0x1dc>
mov    %r14d,%ebp
lea    0xd00(%rip),%r12
xor    %ebx,%ebx
nop
mov    (%r15),%edi
movzbl 0x0(%r13,%rbx,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1320 <lwwire_writedata+0x1c0>
mov    0x2c9d(%rip),%rax
mov    (%rax),%edi
lea    0xcd8(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %r14d,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.timeval = type { i32, i64 }
%struct.timespec = type { i32, i64 }
@errno = global i64 0
@EINTR = global i64 0
@EAGAIN = global i64 0
@EWOULDBLOCK = global i64 0
@ETIMEDOUT = global i64 0
@stderr = global i32 0
@.str = [29 x i8] c"Protocol bytes written (%d):\00"
@.str.1 = [7 x i8] c" %02X \00"
@.str.2 = [2 x i8] c"\0A\00"
define i32 @lwwire_writedata(i8* %0, i32 %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca %struct.timeval
%10 = alloca %struct.timespec
%11 = alloca %struct.timespec
store i8* %0, i8** %4
store i32 %1, i32* %5
%12 = load i32, i32* %5
store i32 %12, i32* %6
%13 = getelementptr inbounds %struct.timespec, %struct.timespec* %10, i32 0, i32 1
store i64 0, i64* %13
%14 = getelementptr inbounds %struct.timespec, %struct.timespec* %10, i32 0, i32 0
store i32 50000, i32* %14
br label %15
15: ; preds = %23, %2
%16 = call i64 @nanosleep(%struct.timespec* %10, %struct.timespec* %11)
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %26
18: ; preds = %15
%19 = load i64, i64* @errno
%20 = load i64, i64* @EINTR
%21 = icmp ne i64 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 -1, i32* %3
br label %107
23: ; preds = %18
%24 = bitcast %struct.timespec* %10 to i8*
%25 = bitcast %struct.timespec* %11 to i8*
br label %15
26: ; preds = %15
br label %27
27: ; preds = %81, %74, %26
%28 = load i32, i32* %6
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %82
30: ; preds = %27
%31 = load i8*, i8** %4
%32 = load i32, i32* %6
%33 = call i32 @write(i32 1, i8* %31, i32 %32)
store i32 %33, i32* %7
%34 = load i32, i32* %7
%35 = load i32, i32* %6
%36 = icmp eq i32 %34, %35
br i1 %36, label %37, label %38
37: ; preds = %30
br label %82
38: ; preds = %30
%39 = load i32, i32* %7
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %55
41: ; preds = %38
%42 = load i64, i64* @errno
%43 = load i64, i64* @EAGAIN
%44 = icmp ne i64 %42, %43
br i1 %44, label %45, label %54
45: ; preds = %41
%46 = load i64, i64* @errno
%47 = load i64, i64* @EWOULDBLOCK
%48 = icmp ne i64 %46, %47
br i1 %48, label %49, label %54
49: ; preds = %45
%50 = load i64, i64* @errno
%51 = load i64, i64* @EINTR
%52 = icmp ne i64 %50, %51
br i1 %52, label %53, label %54
53: ; preds = %49
store i32 -1, i32* %3
br label %107
54: ; preds = %49, %45, %41
store i32 0, i32* %7
br label %55
55: ; preds = %54, %38
%56 = load i32, i32* %7
%57 = load i8*, i8** %4
%58 = sext i32 %56 to i64
%59 = getelementptr i8, i8* %57, i64 %58
store i8* %59, i8** %4
%60 = load i32, i32* %7
%61 = load i32, i32* %6
%62 = sub nsw i32 %61, %60
store i32 %62, i32* %6
%63 = call i32 @FD_ZERO(i32* %8)
%64 = call i32 @FD_SET(i32 1, i32* %8)
%65 = getelementptr inbounds %struct.timeval, %struct.timeval* %9, i32 0, i32 0
store i32 10, i32* %65
%66 = getelementptr inbounds %struct.timeval, %struct.timeval* %9, i32 0, i32 1
store i64 0, i64* %66
%67 = call i32 @select(i32 2, i32* null, i32* %8, i32* null, %struct.timeval* %9)
store i32 %67, i32* %7
%68 = load i32, i32* %7
%69 = icmp slt i32 %68, 0
br i1 %69, label %70, label %76
70: ; preds = %55
%71 = load i64, i64* @errno
%72 = load i64, i64* @EINTR
%73 = icmp eq i64 %71, %72
br i1 %73, label %74, label %75
74: ; preds = %70
br label %27
75: ; preds = %70
store i32 -1, i32* %3
br label %107
76: ; preds = %55
%77 = load i32, i32* %7
%78 = icmp eq i32 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %76
%80 = load i64, i64* @ETIMEDOUT
store i64 %80, i64* @errno
store i32 -1, i32* %3
br label %107
81: ; preds = %76
br label %27
82: ; preds = %37, %27
%83 = load i32, i32* @stderr
%84 = load i32, i32* %5
%85 = call i32 (i32, i8*, ...) @fprintf(i32 %83, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %84)
store i32 0, i32* %7
br label %86
86: ; preds = %100, %82
%87 = load i32, i32* %7
%88 = load i32, i32* %5
%89 = icmp slt i32 %87, %88
br i1 %89, label %90, label %103
90: ; preds = %86
%91 = load i32, i32* @stderr
%92 = load i8*, i8** %4
%93 = load i32, i32* %7
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i8, i8* %92, i64 %94
%96 = load i8, i8* %95
%97 = sext i8 %96 to i32
%98 = and i32 %97, 255
%99 = call i32 (i32, i8*, ...) @fprintf(i32 %91, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %98)
br label %100
100: ; preds = %90
%101 = load i32, i32* %7
%102 = add nsw i32 %101, 1
store i32 %102, i32* %7
br label %86
103: ; preds = %86
%104 = load i32, i32* @stderr
%105 = call i32 (i32, i8*, ...) @fprintf(i32 %104, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%106 = load i32, i32* %5
store i32 %106, i32* %3
br label %107
107: ; preds = %103, %79, %75, %53, %22
%108 = load i32, i32* %3
ret i32 %108
}

LLVM IR (-O2):
%struct.timeval = type { i32, i64 }
%struct.timespec = type { i32, i64 }
@errno = global i64 0
@EINTR = global i64 0
@EAGAIN = global i64 0
@EWOULDBLOCK = global i64 0
@ETIMEDOUT = global i64 0
@stderr = global i32 0
@.str = [29 x i8] c"Protocol bytes written (%d):\00"
@.str.1 = [7 x i8] c" %02X \00"
@.str.2 = [2 x i8] c"\0A\00"
define i32 @lwwire_writedata(i8* nocapture %0, i32 %1) {
%3 = alloca i32
%4 = alloca %struct.timeval
%5 = alloca %struct.timespec
%6 = alloca %struct.timespec
%7 = bitcast i32* %3 to i8*
%8 = bitcast %struct.timeval* %4 to i8*
%9 = bitcast %struct.timespec* %5 to i8*
%10 = bitcast %struct.timespec* %6 to i8*
%11 = getelementptr inbounds %struct.timespec, %struct.timespec* %5, i64 0, i32 1
store i64 0, i64* %11
%12 = getelementptr inbounds %struct.timespec, %struct.timespec* %5, i64 0, i32 0
store i32 50000, i32* %12
%13 = call i64 @nanosleep(%struct.timespec* %5, %struct.timespec* %6)
%14 = icmp slt i64 %13, 0
br i1 %14, label %23, label %15
15: ; preds = %27, %2
%16 = icmp sgt i32 %1, 0
br i1 %16, label %20, label %17
17: ; preds = %15
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %1)
br label %81
20: ; preds = %15
%21 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 0
%22 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 1
br label %30
23: ; preds = %2, %27
%24 = load i64, i64* @errno
%25 = load i64, i64* @EINTR
%26 = icmp eq i64 %24, %25
br i1 %26, label %27, label %84
27: ; preds = %23
%28 = call i64 @nanosleep(%struct.timespec* %5, %struct.timespec* %6)
%29 = icmp slt i64 %28, 0
br i1 %29, label %23, label %15
30: ; preds = %20, %60
%31 = phi i32 [ %1, %20 ], [ %51, %60 ]
%32 = phi i8* [ %0, %20 ], [ %50, %60 ]
%33 = call i32 @write(i32 1, i8* %32, i32 %31)
%34 = icmp eq i32 %33, %31
br i1 %34, label %66, label %35
35: ; preds = %30
%36 = icmp slt i32 %33, 0
br i1 %36, label %37, label %47
37: ; preds = %35
%38 = load i64, i64* @errno
%39 = load i64, i64* @EAGAIN
%40 = icmp eq i64 %38, %39
%41 = load i64, i64* @EWOULDBLOCK
%42 = icmp eq i64 %38, %41
%43 = select i1 %40, i1 true, i1 %42
%44 = load i64, i64* @EINTR
%45 = icmp eq i64 %38, %44
%46 = select i1 %43, i1 true, i1 %45
br i1 %46, label %47, label %84
47: ; preds = %37, %35
%48 = phi i32 [ %33, %35 ], [ 0, %37 ]
%49 = zext i32 %48 to i64
%50 = getelementptr i8, i8* %32, i64 %49
%51 = sub nsw i32 %31, %48
%52 = call i32 @FD_ZERO(i32* %3)
%53 = call i32 @FD_SET(i32 1, i32* %3)
store i32 10, i32* %21
store i64 0, i64* %22
%54 = call i32 @select(i32 2, i32* null, i32* %3, i32* null, %struct.timeval* %4)
%55 = icmp slt i32 %54, 0
br i1 %55, label %56, label %62
56: ; preds = %47
%57 = load i64, i64* @errno
%58 = load i64, i64* @EINTR
%59 = icmp eq i64 %57, %58
br i1 %59, label %60, label %84
60: ; preds = %56, %62
%61 = icmp sgt i32 %51, 0
br i1 %61, label %30, label %66
62: ; preds = %47
%63 = icmp eq i32 %54, 0
br i1 %63, label %64, label %60
64: ; preds = %62
%65 = load i64, i64* @ETIMEDOUT
store i64 %65, i64* @errno
br label %84
66: ; preds = %60, %30
%67 = phi i8* [ %50, %60 ], [ %32, %30 ]
%68 = load i32, i32* @stderr
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %1)
br i1 %16, label %70, label %81
70: ; preds = %66
%71 = zext i32 %1 to i64
br label %72
72: ; preds = %70, %72
%73 = phi i64 [ 0, %70 ], [ %79, %72 ]
%74 = load i32, i32* @stderr
%75 = getelementptr inbounds i8, i8* %67, i64 %73
%76 = load i8, i8* %75
%77 = zext i8 %76 to i32
%78 = call i32 (i32, i8*, ...) @fprintf(i32 %74, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %77)
%79 = add nuw nsw i64 %73, 1
%80 = icmp eq i64 %79, %71
br i1 %80, label %81, label %72
81: ; preds = %72, %17, %66
%82 = load i32, i32* @stderr
%83 = call i32 (i32, i8*, ...) @fprintf(i32 %82, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %84
84: ; preds = %23, %56, %37, %81, %64
%85 = phi i32 [ %1, %81 ], [ -1, %64 ], [ -1, %37 ], [ -1, %56 ], [ -1, %23 ]
ret i32 %85
}