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

/* Variables and functions */
int /*<<< orphan*/ ent(int, int, int, int);
int /*<<< orphan*/ env(int, int, int, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sound(int, int, int, int, int, int, int);
scalar_t__ soundcheck(int);
main() {
  int aSounds[12] = {478, 451, 426, 402, 379, 358,
                     338, 319, 301, 284, 268, 253};
  int n = 0;
  printf("1\n\r");
  for (n = 0; n < 12; n++) {
    while (!sound(1, aSounds[n], 20, 15, 0, 0, 0))
      ;
  }
  while (soundcheck(1))
    ;
  printf("2\n\r");
  ent(1, 20, -11, 1);
  sound(1, 200, 20, 15, 0, 1, 0);
  while (soundcheck(1))
    ;
  printf("3\n\r");
  ent(1, 20, -11, 1);
  sound(1, 428, 10, 15, 0, 1, 0);
  while (soundcheck(1))
    ;
  printf("4\n\r");
  env(1, 25, 15, 5);
  ent(1, 25, 120, 6);
  sound(1, 428, 25, 15, 1, 1, 14);
  while (soundcheck(1))
    ;
  printf("5\n\r");
  sound(1, 200, 20, 15, 0, 0, 0);
  while (soundcheck(1))
    ;
  printf("6\n\r");
  env(1, 10, 1, 100);
  sound(1, 284, 1000, 1, 1, 0, 0);
  while (soundcheck(1))
    ;
  printf("7\n\r");
  ent(1, 100, 2, 2);
  sound(1, 284, 200, 15, 0, 1, 0);
  while (soundcheck(1))
    ;
  printf("8\n\r");
  ent(1, 100, -2, 2);
  sound(1, 284, 200, 15, 0, 1, 0);
  while (soundcheck(1))
    ;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x40(%rbp),%rdi
lea    0xe86(%rip),%rsi
mov    $0x30,%edx
call   1080 <memcpy@plt>
movl   $0x0,-0x44(%rbp)
lea    0xe9e(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x44(%rbp)
cmpl   $0xc,-0x44(%rbp)
jge    1203 <main+0xa3>
jmp    11ad <main+0x4d>
movslq -0x44(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%esi
mov    $0x1,%edi
mov    $0x14,%edx
mov    $0xf,%ecx
xor    %r9d,%r9d
mov    %r9d,%r8d
movl   $0x0,(%rsp)
call   1050 <sound@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    11eb <main+0x8b>
jmp    11f0 <main+0x90>
jmp    11ad <main+0x4d>
jmp    11f5 <main+0x95>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    119e <main+0x3e>
jmp    1208 <main+0xa8>
mov    $0x1,%edi
call   1030 <soundcheck@plt>
cmp    $0x0,%rax
je     1221 <main+0xc1>
jmp    1208 <main+0xa8>
lea    0xe0c(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%ecx
mov    $0x14,%esi
mov    $0xfffffff5,%edx
mov    %ecx,%edi
call   1070 <ent@plt>
mov    $0x1,%r9d
mov    $0xc8,%esi
mov    $0x14,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
mov    %r9d,%edi
movl   $0x0,(%rsp)
call   1050 <sound@plt>
mov    $0x1,%edi
call   1030 <soundcheck@plt>
cmp    $0x0,%rax
je     1283 <main+0x123>
jmp    126a <main+0x10a>
lea    0xdae(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%ecx
mov    $0x14,%esi
mov    $0xfffffff5,%edx
mov    %ecx,%edi
call   1070 <ent@plt>
mov    $0x1,%r9d
mov    $0x1ac,%esi
mov    $0xa,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
mov    %r9d,%edi
movl   $0x0,(%rsp)
call   1050 <sound@plt>
mov    $0x1,%edi
call   1030 <soundcheck@plt>
cmp    $0x0,%rax
je     12e5 <main+0x185>
jmp    12cc <main+0x16c>
lea    0xd50(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
mov    $0x19,%esi
mov    $0xf,%edx
mov    $0x5,%ecx
call   1060 <env@plt>
mov    $0x1,%edi
mov    $0x19,%esi
mov    $0x78,%edx
mov    $0x6,%ecx
call   1070 <ent@plt>
mov    $0x1,%r9d
mov    $0x1ac,%esi
mov    $0x19,%edx
mov    $0xf,%ecx
mov    %r9d,%edi
mov    %r9d,%r8d
movl   $0xe,(%rsp)
call   1050 <sound@plt>
mov    $0x1,%edi
call   1030 <soundcheck@plt>
cmp    $0x0,%rax
je     1363 <main+0x203>
jmp    134a <main+0x1ea>
lea    0xcd6(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
mov    $0xc8,%esi
mov    $0x14,%edx
mov    $0xf,%ecx
xor    %r9d,%r9d
mov    %r9d,%r8d
movl   $0x0,(%rsp)
call   1050 <sound@plt>
mov    $0x1,%edi
call   1030 <soundcheck@plt>
cmp    $0x0,%rax
je     13ae <main+0x24e>
jmp    1395 <main+0x235>
lea    0xc8f(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edx
mov    $0xa,%esi
mov    $0x64,%ecx
mov    %edx,%edi
call   1060 <env@plt>
mov    $0x1,%r8d
mov    $0x11c,%esi
mov    $0x3e8,%edx
xor    %r9d,%r9d
mov    %r8d,%edi
mov    %r8d,%ecx
movl   $0x0,(%rsp)
call   1050 <sound@plt>
mov    $0x1,%edi
call   1030 <soundcheck@plt>
cmp    $0x0,%rax
je     140e <main+0x2ae>
jmp    13f5 <main+0x295>
lea    0xc33(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
mov    $0x64,%esi
mov    $0x2,%ecx
mov    %ecx,%edx
call   1070 <ent@plt>
mov    $0x1,%r9d
mov    $0x11c,%esi
mov    $0xc8,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
mov    %r9d,%edi
movl   $0x0,(%rsp)
call   1050 <sound@plt>
mov    $0x1,%edi
call   1030 <soundcheck@plt>
cmp    $0x0,%rax
je     1470 <main+0x310>
jmp    1457 <main+0x2f7>
lea    0xbd5(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
mov    $0x64,%esi
mov    $0xfffffffe,%edx
mov    $0x2,%ecx
call   1070 <ent@plt>
mov    $0x1,%r9d
mov    $0x11c,%esi
mov    $0xc8,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
mov    %r9d,%edi
movl   $0x0,(%rsp)
call   1050 <sound@plt>
mov    $0x1,%edi
call   1030 <soundcheck@plt>
cmp    $0x0,%rax
je     14d5 <main+0x375>
jmp    14bc <main+0x35c>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
lea    0xed0(%rip),%rdi
call   1040 <printf@plt>
xor    %r14d,%r14d
lea    0xe91(%rip),%r15
nop
mov    (%r15,%r14,4),%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movl   $0x0,(%rsp)
mov    $0x1,%edi
mov    %ebx,%esi
mov    $0x14,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1050 <sound@plt>
test   %eax,%eax
je     1180 <main+0x30>
add    $0x1,%r14
cmp    $0xc,%r14
jne    1170 <main+0x20>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0x1,%edi
call   1030 <soundcheck@plt>
test   %rax,%rax
jne    11c0 <main+0x70>
lea    0xe5e(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
mov    $0x14,%esi
mov    $0xfffffff5,%edx
mov    $0x1,%ecx
call   1070 <ent@plt>
movl   $0x0,(%rsp)
mov    $0x1,%edi
mov    $0xc8,%esi
mov    $0x14,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1050 <sound@plt>
nopl   (%rax)
mov    $0x1,%edi
call   1030 <soundcheck@plt>
test   %rax,%rax
jne    1220 <main+0xd0>
lea    0xe02(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
mov    $0x14,%esi
mov    $0xfffffff5,%edx
mov    $0x1,%ecx
call   1070 <ent@plt>
movl   $0x0,(%rsp)
mov    $0x1,%edi
mov    $0x1ac,%esi
mov    $0xa,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1050 <sound@plt>
nopl   (%rax)
mov    $0x1,%edi
call   1030 <soundcheck@plt>
test   %rax,%rax
jne    1280 <main+0x130>
lea    0xda6(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
mov    $0x19,%esi
mov    $0xf,%edx
mov    $0x5,%ecx
call   1060 <env@plt>
mov    $0x1,%edi
mov    $0x19,%esi
mov    $0x78,%edx
mov    $0x6,%ecx
call   1070 <ent@plt>
movl   $0xe,(%rsp)
mov    $0x1,%edi
mov    $0x1ac,%esi
mov    $0x19,%edx
mov    $0xf,%ecx
mov    $0x1,%r8d
mov    $0x1,%r9d
call   1050 <sound@plt>
nopl   0x0(%rax)
mov    $0x1,%edi
call   1030 <soundcheck@plt>
test   %rax,%rax
jne    1300 <main+0x1b0>
lea    0xd2a(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,(%rsp)
mov    $0x1,%edi
mov    $0xc8,%esi
mov    $0x14,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1050 <sound@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0x1,%edi
call   1030 <soundcheck@plt>
test   %rax,%rax
jne    1350 <main+0x200>
lea    0xcde(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
mov    $0xa,%esi
mov    $0x1,%edx
mov    $0x64,%ecx
call   1060 <env@plt>
movl   $0x0,(%rsp)
mov    $0x1,%edi
mov    $0x11c,%esi
mov    $0x3e8,%edx
mov    $0x1,%ecx
mov    $0x1,%r8d
xor    %r9d,%r9d
call   1050 <sound@plt>
nopl   (%rax)
mov    $0x1,%edi
call   1030 <soundcheck@plt>
test   %rax,%rax
jne    13b0 <main+0x260>
lea    0xc82(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
mov    $0x64,%esi
mov    $0x2,%edx
mov    $0x2,%ecx
call   1070 <ent@plt>
movl   $0x0,(%rsp)
mov    $0x1,%edi
mov    $0x11c,%esi
mov    $0xc8,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1050 <sound@plt>
nopl   (%rax)
mov    $0x1,%edi
call   1030 <soundcheck@plt>
test   %rax,%rax
jne    1410 <main+0x2c0>
lea    0xc26(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
mov    $0x64,%esi
mov    $0xfffffffe,%edx
mov    $0x2,%ecx
call   1070 <ent@plt>
movl   $0x0,(%rsp)
mov    $0x1,%edi
mov    $0x11c,%esi
mov    $0xc8,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1050 <sound@plt>
nopl   (%rax)
mov    $0x1,%edi
call   1030 <soundcheck@plt>
test   %rax,%rax
jne    1470 <main+0x320>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.aSounds = [12 x i32] [i32 478, i32 451, i32 426, i32 402, i32 379, i32 358, i32 338, i32 319, i32 301, i32 284, i32 268, i32 253]
@.str = [4 x i8] c"1\0A\0D\00"
@.str.1 = [4 x i8] c"2\0A\0D\00"
@.str.2 = [4 x i8] c"3\0A\0D\00"
@.str.3 = [4 x i8] c"4\0A\0D\00"
@.str.4 = [4 x i8] c"5\0A\0D\00"
@.str.5 = [4 x i8] c"6\0A\0D\00"
@.str.6 = [4 x i8] c"7\0A\0D\00"
@.str.7 = [4 x i8] c"8\0A\0D\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [12 x i32]
%3 = alloca i32
store i32 0, i32* %1
%4 = bitcast [12 x i32]* %2 to i8*
store i32 0, i32* %3
%5 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %6
6: ; preds = %20, %0
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 12
br i1 %8, label %9, label %23
9: ; preds = %6
br label %10
10: ; preds = %18, %9
%11 = load i32, i32* %3
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [12 x i32], [12 x i32]* %2, i64 0, i64 %12
%14 = load i32, i32* %13
%15 = call i32 @sound(i32 1, i32 %14, i32 20, i32 15, i32 0, i32 0, i32 0)
%16 = icmp ne i32 %15, 0
%17 = xor i1 %16, true
br i1 %17, label %18, label %19
18: ; preds = %10
br label %10
19: ; preds = %10
br label %20
20: ; preds = %19
%21 = load i32, i32* %3
%22 = add nsw i32 %21, 1
store i32 %22, i32* %3
br label %6
23: ; preds = %6
br label %24
24: ; preds = %27, %23
%25 = call i64 @soundcheck(i32 1)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %24
br label %24
28: ; preds = %24
%29 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%30 = call i32 @ent(i32 1, i32 20, i32 -11, i32 1)
%31 = call i32 @sound(i32 1, i32 200, i32 20, i32 15, i32 0, i32 1, i32 0)
br label %32
32: ; preds = %35, %28
%33 = call i64 @soundcheck(i32 1)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %32
br label %32
36: ; preds = %32
%37 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%38 = call i32 @ent(i32 1, i32 20, i32 -11, i32 1)
%39 = call i32 @sound(i32 1, i32 428, i32 10, i32 15, i32 0, i32 1, i32 0)
br label %40
40: ; preds = %43, %36
%41 = call i64 @soundcheck(i32 1)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %40
br label %40
44: ; preds = %40
%45 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%46 = call i32 @env(i32 1, i32 25, i32 15, i32 5)
%47 = call i32 @ent(i32 1, i32 25, i32 120, i32 6)
%48 = call i32 @sound(i32 1, i32 428, i32 25, i32 15, i32 1, i32 1, i32 14)
br label %49
49: ; preds = %52, %44
%50 = call i64 @soundcheck(i32 1)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %49
br label %49
53: ; preds = %49
%54 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%55 = call i32 @sound(i32 1, i32 200, i32 20, i32 15, i32 0, i32 0, i32 0)
br label %56
56: ; preds = %59, %53
%57 = call i64 @soundcheck(i32 1)
%58 = icmp ne i64 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %56
br label %56
60: ; preds = %56
%61 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%62 = call i32 @env(i32 1, i32 10, i32 1, i32 100)
%63 = call i32 @sound(i32 1, i32 284, i32 1000, i32 1, i32 1, i32 0, i32 0)
br label %64
64: ; preds = %67, %60
%65 = call i64 @soundcheck(i32 1)
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %68
67: ; preds = %64
br label %64
68: ; preds = %64
%69 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%70 = call i32 @ent(i32 1, i32 100, i32 2, i32 2)
%71 = call i32 @sound(i32 1, i32 284, i32 200, i32 15, i32 0, i32 1, i32 0)
br label %72
72: ; preds = %75, %68
%73 = call i64 @soundcheck(i32 1)
%74 = icmp ne i64 %73, 0
br i1 %74, label %75, label %76
75: ; preds = %72
br label %72
76: ; preds = %72
%77 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%78 = call i32 @ent(i32 1, i32 100, i32 -2, i32 2)
%79 = call i32 @sound(i32 1, i32 284, i32 200, i32 15, i32 0, i32 1, i32 0)
br label %80
80: ; preds = %83, %76
%81 = call i64 @soundcheck(i32 1)
%82 = icmp ne i64 %81, 0
br i1 %82, label %83, label %84
83: ; preds = %80
br label %80
84: ; preds = %80
ret i32 0
}

LLVM IR (-O2):
@__const.main.aSounds = [12 x i32] [i32 478, i32 451, i32 426, i32 402, i32 379, i32 358, i32 338, i32 319, i32 301, i32 284, i32 268, i32 253]
@.str = [4 x i8] c"1\0A\0D\00"
@.str.1 = [4 x i8] c"2\0A\0D\00"
@.str.2 = [4 x i8] c"3\0A\0D\00"
@.str.3 = [4 x i8] c"4\0A\0D\00"
@.str.4 = [4 x i8] c"5\0A\0D\00"
@.str.5 = [4 x i8] c"6\0A\0D\00"
@.str.6 = [4 x i8] c"7\0A\0D\00"
@.str.7 = [4 x i8] c"8\0A\0D\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %2
2: ; preds = %0, %9
%3 = phi i64 [ 0, %0 ], [ %10, %9 ]
%4 = getelementptr inbounds [12 x i32], [12 x i32]* @__const.main.aSounds, i64 0, i64 %3
%5 = load i32, i32* %4
br label %6
6: ; preds = %2, %6
%7 = tail call i32 @sound(i32 1, i32 %5, i32 20, i32 15, i32 0, i32 0, i32 0)
%8 = icmp eq i32 %7, 0
br i1 %8, label %6, label %9
9: ; preds = %6
%10 = add nuw nsw i64 %3, 1
%11 = icmp eq i64 %10, 12
br i1 %11, label %12, label %2
12: ; preds = %9, %12
%13 = tail call i64 @soundcheck(i32 1)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %12
15: ; preds = %12
%16 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%17 = tail call i32 @ent(i32 1, i32 20, i32 -11, i32 1)
%18 = tail call i32 @sound(i32 1, i32 200, i32 20, i32 15, i32 0, i32 1, i32 0)
br label %19
19: ; preds = %19, %15
%20 = tail call i64 @soundcheck(i32 1)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %19
22: ; preds = %19
%23 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%24 = tail call i32 @ent(i32 1, i32 20, i32 -11, i32 1)
%25 = tail call i32 @sound(i32 1, i32 428, i32 10, i32 15, i32 0, i32 1, i32 0)
br label %26
26: ; preds = %26, %22
%27 = tail call i64 @soundcheck(i32 1)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %26
29: ; preds = %26
%30 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%31 = tail call i32 @env(i32 1, i32 25, i32 15, i32 5)
%32 = tail call i32 @ent(i32 1, i32 25, i32 120, i32 6)
%33 = tail call i32 @sound(i32 1, i32 428, i32 25, i32 15, i32 1, i32 1, i32 14)
br label %34
34: ; preds = %34, %29
%35 = tail call i64 @soundcheck(i32 1)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %34
37: ; preds = %34
%38 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%39 = tail call i32 @sound(i32 1, i32 200, i32 20, i32 15, i32 0, i32 0, i32 0)
br label %40
40: ; preds = %40, %37
%41 = tail call i64 @soundcheck(i32 1)
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %40
43: ; preds = %40
%44 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%45 = tail call i32 @env(i32 1, i32 10, i32 1, i32 100)
%46 = tail call i32 @sound(i32 1, i32 284, i32 1000, i32 1, i32 1, i32 0, i32 0)
br label %47
47: ; preds = %47, %43
%48 = tail call i64 @soundcheck(i32 1)
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %47
50: ; preds = %47
%51 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%52 = tail call i32 @ent(i32 1, i32 100, i32 2, i32 2)
%53 = tail call i32 @sound(i32 1, i32 284, i32 200, i32 15, i32 0, i32 1, i32 0)
br label %54
54: ; preds = %54, %50
%55 = tail call i64 @soundcheck(i32 1)
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %54
57: ; preds = %54
%58 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%59 = tail call i32 @ent(i32 1, i32 100, i32 -2, i32 2)
%60 = tail call i32 @sound(i32 1, i32 284, i32 200, i32 15, i32 0, i32 1, i32 0)
br label %61
61: ; preds = %61, %57
%62 = tail call i64 @soundcheck(i32 1)
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %61
64: ; preds = %61
ret i32 0
}