#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 input_event {
  int dummy;
};
typedef int /*<<< orphan*/ name;

/* Variables and functions */
int /*<<< orphan*/ EVIOCGID;
int /*<<< orphan*/ EVIOCGNAME(int);
int /*<<< orphan*/ EVIOCGVERSION;
size_t ID_BUS;
size_t ID_PRODUCT;
size_t ID_VENDOR;
size_t ID_VERSION;
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ close(int);
int errno;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, char *, char *);
int /*<<< orphan*/ handle_input_event(struct input_event);
int /*<<< orphan*/ init_robot();
int /*<<< orphan*/ ioctl(int, int /*<<< orphan*/, ...);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *, unsigned int, unsigned int,
                          unsigned int, unsigned short, unsigned short,
                          unsigned short, unsigned short);
int read(int, struct input_event *, int);
int /*<<< orphan*/ stderr;
char *strerror(int);
int loop_read_input_file(char input_filename[]) {
  int fd, sz;
  unsigned i;
  unsigned version;
  unsigned short id[4];
  char name[256] = "N/A";
  struct input_event ev[16];
  if ((fd = open(input_filename, O_RDONLY)) < 0) {
    fprintf(stderr,
            "ERR %d:\n"
            "Unable to open `%s'\n"
            "%s\n",
            errno, input_filename, strerror(errno));
  }
  ioctl(fd, EVIOCGVERSION, &version);
  ioctl(fd, EVIOCGID, id);
  ioctl(fd, EVIOCGNAME(sizeof(name)), name);
  printf("Name      : %s\n"
         "Version   : %d.%d.%d\n"
         "ID        : Bus=%04x Vendor=%04x Product=%04x Version=%04x\n"
         "----------\n",
         name, version >> 16, (version >> 8) & 0xff, version & 0xff, id[ID_BUS],
         id[ID_VENDOR], id[ID_PRODUCT], id[ID_VERSION]);
  init_robot();
  for (;;) {
    sz = read(fd, ev, sizeof(struct input_event) * 16);
    if (sz < (int)sizeof(struct input_event)) {
      fprintf(stderr,
              "ERR %d:\n"
              "Reading of `%s' failed\n"
              "%s\n",
              errno, input_filename, strerror(errno));
      goto fine;
    }
    for (i = 0; i < sz / sizeof(struct input_event); i += 10) {
      handle_input_event(ev[i]);
    }
  }
fine:
  close(fd);
  return errno;
}


x86 assembly (clang, -O0):
<loop_read_input_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x120(%rbp),%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1040 <memset@plt>
movb   $0x4e,-0x120(%rbp)
movb   $0x2f,-0x11f(%rbp)
movb   $0x41,-0x11e(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2dee(%rip),%rax
mov    (%rax),%esi
call   10a0 <open@plt>
mov    %eax,-0xc(%rbp)
cmp    $0x0,%eax
jge    125e <loop_read_input_file+0xae>
mov    0x2db4(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x170(%rbp)
mov    0x2d9d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x16c(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x168(%rbp)
mov    0x2d83(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
mov    -0x170(%rbp),%edi
mov    -0x16c(%rbp),%edx
mov    -0x168(%rbp),%rcx
mov    %rax,%r8
lea    0xda7(%rip),%rsi
call   1090 <fprintf@plt>
mov    -0xc(%rbp),%edi
mov    0x2d30(%rip),%rax
mov    (%rax),%esi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1050 <ioctl@plt>
mov    -0xc(%rbp),%edi
mov    0x2d59(%rip),%rax
mov    (%rax),%esi
lea    -0x20(%rbp),%rdx
mov    $0x0,%al
call   1050 <ioctl@plt>
mov    -0xc(%rbp),%eax
mov    %eax,-0x174(%rbp)
mov    $0x100,%edi
call   10b0 <EVIOCGNAME@plt>
mov    -0x174(%rbp),%edi
mov    %eax,%esi
lea    -0x120(%rbp),%rdx
mov    $0x0,%al
call   1050 <ioctl@plt>
lea    -0x120(%rbp),%rsi
mov    -0x18(%rbp),%edx
shr    $0x10,%edx
mov    -0x18(%rbp),%ecx
shr    $0x8,%ecx
and    $0xff,%ecx
mov    -0x18(%rbp),%r8d
and    $0xff,%r8d
mov    0x2cc8(%rip),%rax
mov    (%rax),%rax
mov    -0x20(%rbp,%rax,2),%r9w
mov    0x2cf8(%rip),%rax
mov    (%rax),%rax
mov    -0x20(%rbp,%rax,2),%r11w
mov    0x2cb0(%rip),%rax
mov    (%rax),%rax
mov    -0x20(%rbp,%rax,2),%r10w
mov    0x2cc0(%rip),%rax
mov    (%rax),%rax
lea    0xd06(%rip),%rdi
movzwl %r9w,%r9d
movzwl %r11w,%r11d
mov    %r11d,(%rsp)
movzwl %r10w,%r10d
mov    %r10d,0x8(%rsp)
movzwl -0x20(%rbp,%rax,2),%eax
mov    %eax,0x10(%rsp)
call   1030 <printf@plt>
mov    $0x0,%al
call   1080 <init_robot@plt>
mov    -0xc(%rbp),%edi
lea    -0x160(%rbp),%rsi
mov    $0x40,%edx
call   1070 <read@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x4,-0x10(%rbp)
jge    13c3 <loop_read_input_file+0x213>
mov    0x2c54(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x188(%rbp)
mov    0x2c3d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x184(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x180(%rbp)
mov    0x2c23(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
mov    -0x188(%rbp),%edi
mov    -0x184(%rbp),%edx
mov    -0x180(%rbp),%rcx
mov    %rax,%r8
lea    0xcd2(%rip),%rsi
call   1090 <fprintf@plt>
jmp    1400 <loop_read_input_file+0x250>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
movslq -0x10(%rbp),%rcx
shr    $0x2,%rcx
cmp    %rcx,%rax
jae    13fb <loop_read_input_file+0x24b>
mov    -0x14(%rbp),%eax
mov    -0x160(%rbp,%rax,4),%edi
call   10c0 <handle_input_event@plt>
mov    -0x14(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x14(%rbp)
jmp    13ca <loop_read_input_file+0x21a>
jmp    1344 <loop_read_input_file+0x194>
mov    -0xc(%rbp),%edi
call   1060 <close@plt>
mov    0x2ba9(%rip),%rax
mov    (%rax),%eax
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<loop_read_input_file>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x150,%rsp
mov    %rdi,%r14
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movaps %xmm0,0x100(%rsp)
movaps %xmm0,0xf0(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movw   $0x2f4e,0x10(%rsp)
movb   $0x41,0x12(%rsp)
mov    0x2dad(%rip),%rax
mov    (%rax),%esi
call   1090 <open@plt>
mov    %eax,%r15d
test   %eax,%eax
jns    1270 <loop_read_input_file+0xd0>
mov    0x2d78(%rip),%rax
mov    (%rax),%ebx
mov    0x2d67(%rip),%rax
mov    (%rax),%ebp
mov    %ebp,%edi
call   10c0 <strerror@plt>
lea    0xd9f(%rip),%rsi
mov    %ebx,%edi
mov    %ebp,%edx
mov    %r14,%rcx
mov    %rax,%r8
call   1080 <fprintf@plt>
mov    0x2d21(%rip),%rax
mov    (%rax),%esi
lea    0xc(%rsp),%rdx
mov    %r15d,%edi
xor    %eax,%eax
call   1040 <ioctl@plt>
mov    0x2d49(%rip),%rax
mov    (%rax),%esi
lea    0x4(%rsp),%rdx
mov    %r15d,%edi
xor    %eax,%eax
call   1040 <ioctl@plt>
mov    $0x100,%edi
call   10a0 <EVIOCGNAME@plt>
lea    0x10(%rsp),%r12
mov    %r15d,%edi
mov    %eax,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1040 <ioctl@plt>
mov    0xc(%rsp),%edx
movzbl %dh,%ecx
movzbl %dl,%r8d
shr    $0x10,%edx
mov    0x2cd5(%rip),%rax
mov    (%rax),%rax
movzwl 0x4(%rsp,%rax,2),%r9d
mov    0x2d05(%rip),%rax
mov    (%rax),%rax
movzwl 0x4(%rsp,%rax,2),%eax
mov    0x2cbe(%rip),%rsi
mov    (%rsi),%rsi
movzwl 0x4(%rsp,%rsi,2),%ebp
mov    0x2ccf(%rip),%rsi
mov    (%rsi),%rsi
movzwl 0x4(%rsp,%rsi,2),%ebx
sub    $0x8,%rsp
lea    0xd0c(%rip),%rdi
mov    %r12,%rsi
push   %rbx
push   %rbp
push   %rax
call   1030 <printf@plt>
add    $0x20,%rsp
xor    %eax,%eax
call   1070 <init_robot@plt>
lea    0x110(%rsp),%rsi
mov    %r15d,%edi
mov    $0x40,%edx
call   1060 <read@plt>
cmp    $0x4,%eax
jl     138b <loop_read_input_file+0x1eb>
mov    %eax,%ebp
lea    0x110(%rsp),%r12
xchg   %ax,%ax
shr    $0x2,%ebp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x110(%rsp,%rbx,4),%edi
call   10b0 <handle_input_event@plt>
add    $0xa,%ebx
cmp    %rbp,%rbx
jb     1360 <loop_read_input_file+0x1c0>
mov    %r15d,%edi
mov    %r12,%rsi
mov    $0x40,%edx
call   1060 <read@plt>
mov    %eax,%ebp
cmp    $0x4,%eax
jge    1350 <loop_read_input_file+0x1b0>
mov    0x2c2e(%rip),%rax
mov    (%rax),%ebx
mov    0x2c1d(%rip),%r12
mov    (%r12),%ebp
mov    %ebp,%edi
call   10c0 <strerror@plt>
lea    0xcde(%rip),%rsi
mov    %ebx,%edi
mov    %ebp,%edx
mov    %r14,%rcx
mov    %rax,%r8
call   1080 <fprintf@plt>
mov    %r15d,%edi
call   1050 <close@plt>
mov    (%r12),%eax
add    $0x150,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.input_event = type { i32 }
@O_RDONLY = global i32 0
@stderr = global i32 0
@.str = [32 x i8] c"ERR %d:\0AUnable to open `%s'\0A%s\0A\00"
@errno = global i32 0
@EVIOCGVERSION = global i32 0
@EVIOCGID = global i32 0
@.str.1 = [107 x i8] c"Name : %s\0AVersion : %d.%d.%d\0AID : Bus=%04x Vendor=%04x Product=%04x Version=%04x\0A----------\0A\00"
@ID_BUS = global i64 0
@ID_VENDOR = global i64 0
@ID_PRODUCT = global i64 0
@ID_VERSION = global i64 0
@.str.2 = [35 x i8] c"ERR %d:\0AReading of `%s' failed\0A%s\0A\00"
define i32 @loop_read_input_file(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [4 x i16]
%8 = alloca [256 x i8]
%9 = alloca [16 x %struct.input_event]
store i8* %0, i8** %2
%10 = bitcast [256 x i8]* %8 to i8*
%11 = bitcast i8* %10 to [256 x i8]*
%12 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i32 0, i32 0
store i8 78, i8* %12
%13 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i32 0, i32 1
store i8 47, i8* %13
%14 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i32 0, i32 2
store i8 65, i8* %14
%15 = load i8*, i8** %2
%16 = load i32, i32* @O_RDONLY
%17 = call i32 @open(i8* %15, i32 %16)
store i32 %17, i32* %3
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %26
19: ; preds = %1
%20 = load i32, i32* @stderr
%21 = load i32, i32* @errno
%22 = load i8*, i8** %2
%23 = load i32, i32* @errno
%24 = call i8* @strerror(i32 %23)
%25 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 %21, i8* %22, i8* %24)
br label %26
26: ; preds = %19, %1
%27 = load i32, i32* %3
%28 = load i32, i32* @EVIOCGVERSION
%29 = call i32 (i32, i32, ...) @ioctl(i32 %27, i32 %28, i32* %6)
%30 = load i32, i32* %3
%31 = load i32, i32* @EVIOCGID
%32 = getelementptr inbounds [4 x i16], [4 x i16]* %7, i64 0, i64 0
%33 = call i32 (i32, i32, ...) @ioctl(i32 %30, i32 %31, i16* %32)
%34 = load i32, i32* %3
%35 = call i32 @EVIOCGNAME(i32 256)
%36 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%37 = call i32 (i32, i32, ...) @ioctl(i32 %34, i32 %35, i8* %36)
%38 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%39 = load i32, i32* %6
%40 = lshr i32 %39, 16
%41 = load i32, i32* %6
%42 = lshr i32 %41, 8
%43 = and i32 %42, 255
%44 = load i32, i32* %6
%45 = and i32 %44, 255
%46 = load i64, i64* @ID_BUS
%47 = getelementptr inbounds [4 x i16], [4 x i16]* %7, i64 0, i64 %46
%48 = load i16, i16* %47
%49 = load i64, i64* @ID_VENDOR
%50 = getelementptr inbounds [4 x i16], [4 x i16]* %7, i64 0, i64 %49
%51 = load i16, i16* %50
%52 = load i64, i64* @ID_PRODUCT
%53 = getelementptr inbounds [4 x i16], [4 x i16]* %7, i64 0, i64 %52
%54 = load i16, i16* %53
%55 = load i64, i64* @ID_VERSION
%56 = getelementptr inbounds [4 x i16], [4 x i16]* %7, i64 0, i64 %55
%57 = load i16, i16* %56
%58 = call i32 @printf(i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str.1, i64 0, i64 0), i8* %38, i32 %40, i32 %43, i32 %45, i16 zeroext %48, i16 zeroext %51, i16 zeroext %54, i16 zeroext %57)
%59 = call i32 (...) @init_robot()
br label %60
60: ; preds = %91, %26
%61 = load i32, i32* %3
%62 = getelementptr inbounds [16 x %struct.input_event], [16 x %struct.input_event]* %9, i64 0, i64 0
%63 = call i32 @read(i32 %61, %struct.input_event* %62, i32 64)
store i32 %63, i32* %4
%64 = load i32, i32* %4
%65 = icmp slt i32 %64, 4
br i1 %65, label %66, label %73
66: ; preds = %60
%67 = load i32, i32* @stderr
%68 = load i32, i32* @errno
%69 = load i8*, i8** %2
%70 = load i32, i32* @errno
%71 = call i8* @strerror(i32 %70)
%72 = call i32 @fprintf(i32 %67, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %68, i8* %69, i8* %71)
br label %92
73: ; preds = %60
store i32 0, i32* %5
br label %74
74: ; preds = %88, %73
%75 = load i32, i32* %5
%76 = zext i32 %75 to i64
%77 = load i32, i32* %4
%78 = sext i32 %77 to i64
%79 = udiv i64 %78, 4
%80 = icmp ult i64 %76, %79
br i1 %80, label %81, label %91
81: ; preds = %74
%82 = load i32, i32* %5
%83 = zext i32 %82 to i64
%84 = getelementptr inbounds [16 x %struct.input_event], [16 x %struct.input_event]* %9, i64 0, i64 %83
%85 = getelementptr inbounds %struct.input_event, %struct.input_event* %84, i32 0, i32 0
%86 = load i32, i32* %85
%87 = call i32 @handle_input_event(i32 %86)
br label %88
88: ; preds = %81
%89 = load i32, i32* %5
%90 = add i32 %89, 10
store i32 %90, i32* %5
br label %74
91: ; preds = %74
br label %60
92: ; preds = %66
%93 = load i32, i32* %3
%94 = call i32 @close(i32 %93)
%95 = load i32, i32* @errno
ret i32 %95
}

LLVM IR (-O2):
%struct.input_event = type { i32 }
@O_RDONLY = global i32 0
@stderr = global i32 0
@.str = [32 x i8] c"ERR %d:\0AUnable to open `%s'\0A%s\0A\00"
@errno = global i32 0
@EVIOCGVERSION = global i32 0
@EVIOCGID = global i32 0
@.str.1 = [107 x i8] c"Name : %s\0AVersion : %d.%d.%d\0AID : Bus=%04x Vendor=%04x Product=%04x Version=%04x\0A----------\0A\00"
@ID_BUS = global i64 0
@ID_VENDOR = global i64 0
@ID_PRODUCT = global i64 0
@ID_VERSION = global i64 0
@.str.2 = [35 x i8] c"ERR %d:\0AReading of `%s' failed\0A%s\0A\00"
define i32 @loop_read_input_file(i8* %0) {
%2 = alloca i32
%3 = alloca [4 x i16]
%4 = alloca [256 x i8]
%5 = alloca [16 x %struct.input_event]
%6 = bitcast i32* %2 to i8*
%7 = bitcast [4 x i16]* %3 to i8*
%8 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
store i8 78, i8* %8
%9 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 1
store i8 47, i8* %9
%10 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 2
store i8 65, i8* %10
%11 = bitcast [16 x %struct.input_event]* %5 to i8*
%12 = load i32, i32* @O_RDONLY
%13 = tail call i32 @open(i8* %0, i32 %12)
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %1
%16 = load i32, i32* @stderr
%17 = load i32, i32* @errno
%18 = tail call i8* @strerror(i32 %17)
%19 = tail call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 %17, i8* %0, i8* %18)
br label %20
20: ; preds = %15, %1
%21 = load i32, i32* @EVIOCGVERSION
%22 = call i32 (i32, i32, ...) @ioctl(i32 %13, i32 %21, i32* %2)
%23 = load i32, i32* @EVIOCGID
%24 = getelementptr inbounds [4 x i16], [4 x i16]* %3, i64 0, i64 0
%25 = call i32 (i32, i32, ...) @ioctl(i32 %13, i32 %23, i16* %24)
%26 = call i32 @EVIOCGNAME(i32 256)
%27 = call i32 (i32, i32, ...) @ioctl(i32 %13, i32 %26, i8* %8)
%28 = load i32, i32* %2
%29 = lshr i32 %28, 16
%30 = lshr i32 %28, 8
%31 = and i32 %30, 255
%32 = and i32 %28, 255
%33 = load i64, i64* @ID_BUS
%34 = getelementptr inbounds [4 x i16], [4 x i16]* %3, i64 0, i64 %33
%35 = load i16, i16* %34
%36 = load i64, i64* @ID_VENDOR
%37 = getelementptr inbounds [4 x i16], [4 x i16]* %3, i64 0, i64 %36
%38 = load i16, i16* %37
%39 = load i64, i64* @ID_PRODUCT
%40 = getelementptr inbounds [4 x i16], [4 x i16]* %3, i64 0, i64 %39
%41 = load i16, i16* %40
%42 = load i64, i64* @ID_VERSION
%43 = getelementptr inbounds [4 x i16], [4 x i16]* %3, i64 0, i64 %42
%44 = load i16, i16* %43
%45 = call i32 @printf(i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str.1, i64 0, i64 0), i8* %8, i32 %29, i32 %31, i32 %32, i16 zeroext %35, i16 zeroext %38, i16 zeroext %41, i16 zeroext %44)
%46 = call i32 (...) @init_robot()
%47 = getelementptr inbounds [16 x %struct.input_event], [16 x %struct.input_event]* %5, i64 0, i64 0
%48 = call i32 @read(i32 %13, %struct.input_event* %47, i32 64)
%49 = icmp slt i32 %48, 4
br i1 %49, label %57, label %53
50: ; preds = %64
%51 = call i32 @read(i32 %13, %struct.input_event* %47, i32 64)
%52 = icmp slt i32 %51, 4
br i1 %52, label %57, label %53
53: ; preds = %20, %50
%54 = phi i32 [ %51, %50 ], [ %48, %20 ]
%55 = lshr i32 %54, 2
%56 = zext i32 %55 to i64
br label %64
57: ; preds = %50, %20
%58 = load i32, i32* @stderr
%59 = load i32, i32* @errno
%60 = call i8* @strerror(i32 %59)
%61 = call i32 @fprintf(i32 %58, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %59, i8* %0, i8* %60)
%62 = call i32 @close(i32 %13)
%63 = load i32, i32* @errno
ret i32 %63
64: ; preds = %53, %64
%65 = phi i64 [ %70, %64 ], [ 0, %53 ]
%66 = getelementptr inbounds [16 x %struct.input_event], [16 x %struct.input_event]* %5, i64 0, i64 %65, i32 0
%67 = load i32, i32* %66
%68 = call i32 @handle_input_event(i32 %67)
%69 = add nuw nsw i64 %65, 10
%70 = and i64 %69, 4294967295
%71 = icmp ult i64 %70, %56
br i1 %71, label %64, label %50
}