#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*/ printf(char *, ...);
int /*<<< orphan*/ strcmp(char *, char const *);
int help(const char *filename, const char *helpselection) {
  if (!strcmp("analyze", helpselection)) {
    printf("\n\n");
    printf("Provide a pcap file as second argument.\n");
    printf("%s will try to find RTP media streams in the pcap file and display "
           "some info including the SSRC value.\n",
           filename);
    printf("\n");
    printf("Example:\n%s analyze file.pcap\n", filename);
    printf("\n");
    return 0;
  }
  if (!strcmp("decrypt", helpselection)) {
    printf("\n\n");
    printf("Provide the SSRC value of the SRTP stream to decrypt as second "
           "argument in Hex notation with leading 0x.\n");
    printf("Provide the key material to be used for decryption as third "
           "argument as 40 character base64 value.\n");
    printf("Provide the pcap file that contains the SRTP stream as fourth "
           "argument.\n\n");
    printf("%s will create an output file that contains the decrypted audio "
           "data.\n",
           filename);
    printf("For further information run %s help info.\n\n", filename);
    printf("Example:\n%s decrypt 0x72c4827b "
           "CXL0YTLiYrsKYDAsxAJKTWqQaBg1PQhUH9iFwPAp file.pcap\n",
           filename);
    printf("\n");
    return 0;
  }
  if (!strcmp("info", helpselection)) {
    printf("\n\n");
    printf("To decrypt an SRTP audio stream you need the key material that was "
           "used to encrypt it. ");
    printf("Get it from a SIP trace or from a log file. ");
    printf("The key material is a 40 byte character string, for example "
           "CXL0YTLiYrsKYDAsxAJKTWqQaBg1PQhUH9iFwPAp.\n");
    printf("You also need the SSRC value of the SRTP audio stream. One way of "
           "doing this is by running %s analyze.\n\n\n\n\n",
           filename);
    printf("For a G.711 RTP stream (PCMU or PCMA) %s creates a .wav file that "
           "can be played directly.\n\n\n",
           filename);
    printf("For a G.722 RTP stream %s creates a RAW file with .g722 extension. "
           "Use ffmpeg to convert:\n",
           filename);
    printf("ffmpeg -i file.g722 file.wav\n\n\n");
    printf("For a SILK 8KHz RTP stream %s creates a SILK SDK file with .bin "
           "extension. To convert use:\n",
           filename);
    printf("decoder.exe file-SILK8000.bin help.pcm -Fs_API 8000\n");
    printf("ffmpeg.exe -f s16le -ar 8000 -i help.pcm out.wav\n\n\n");
    printf("For a SILK 16KHz RTP stream %s creates a SILK SDK file with .bin "
           "extension. To convert use:\n",
           filename);
    printf("decoder.exe file-SILK16000.bin help.pcm -Fs_API 16000\n");
    printf("ffmpeg.exe -f s16le -ar 16000 -i help.pcm out.wav\n\n\n\n");
    printf("Codecs other than G.711, G.722, SILK/8000 and SILK/16000 are not "
           "supported.\n");
    printf("\n");
    return 0;
  }
  return -1;
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xec5(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11b1 <help+0x91>
lea    0x12a8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x127b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xf09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x125b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1372 <help+0x252>
mov    -0x18(%rbp),%rsi
lea    0xefc(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1252 <help+0x132>
lea    0x1227(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xfcb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0x1000(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0x101a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11ba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1372 <help+0x252>
mov    -0x18(%rbp),%rsi
lea    0x1041(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    136b <help+0x24b>
lea    0x1186(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1023(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x106d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x108c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0x10e1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0x113b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0x1186(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11d3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0x11e1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x122f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1256(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0x1278(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12c7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12f0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1318(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1372 <help+0x252>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
lea    0xeaf(%rip),%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1269 <help+0x129>
lea    0xf2a(%rip),%rdi
mov    %rbx,%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     12a5 <help+0x165>
lea    0xfe1(%rip),%rdi
mov    %rbx,%rsi
call   1060 <strcmp@plt>
mov    %eax,%ecx
mov    $0xffffffff,%eax
test   %ecx,%ecx
jne    1314 <help+0x1d4>
lea    0x10b7(%rip),%rdi
call   1040 <puts@plt>
lea    0xfbc(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1006(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x133f(%rip),%rdi
call   1040 <puts@plt>
lea    0x1019(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1074(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x10c0(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1366(%rip),%rdi
call   1040 <puts@plt>
lea    0x10fe(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1368(%rip),%rdi
call   1040 <puts@plt>
lea    0x1390(%rip),%rdi
call   1040 <puts@plt>
lea    0x1131(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x13a6(%rip),%rdi
call   1040 <puts@plt>
lea    0x13d0(%rip),%rdi
call   1040 <puts@plt>
lea    0x13f9(%rip),%rdi
call   1040 <puts@plt>
jmp    1308 <help+0x1c8>
lea    0xfe1(%rip),%rdi
call   1040 <puts@plt>
lea    0x1148(%rip),%rdi
call   1040 <puts@plt>
lea    0xd80(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdcd(%rip),%rdi
jmp    12fe <help+0x1be>
lea    0xfa5(%rip),%rdi
call   1040 <puts@plt>
lea    0x1134(%rip),%rdi
call   1040 <puts@plt>
lea    0x1191(%rip),%rdi
call   1040 <puts@plt>
lea    0x11e8(%rip),%rdi
call   1040 <puts@plt>
lea    0xdbb(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdf1(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe0c(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [8 x i8] c"analyze\00"
@.str.1 = [3 x i8] c"\0A\0A\00"
@.str.2 = [41 x i8] c"Provide a pcap file as second argument.\0A\00"
@.str.3 = [104 x i8] c"%s will try to find RTP media streams in the pcap file and display some info including the SSRC value.\0A\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [31 x i8] c"Example:\0A%s analyze file.pcap\0A\00"
@.str.6 = [8 x i8] c"decrypt\00"
@.str.7 = [106 x i8] c"Provide the SSRC value of the SRTP stream to decrypt as second argument in Hex notation with leading 0x.\0A\00"
@.str.8 = [100 x i8] c"Provide the key material to be used for decryption as third argument as 40 character base64 value.\0A\00"
@.str.9 = [74 x i8] c"Provide the pcap file that contains the SRTP stream as fourth argument.\0A\0A\00"
@.str.10 = [71 x i8] c"%s will create an output file that contains the decrypted audio data.\0A\00"
@.str.11 = [44 x i8] c"For further information run %s help info.\0A\0A\00"
@.str.12 = [83 x i8] c"Example:\0A%s decrypt 0x72c4827b CXL0YTLiYrsKYDAsxAJKTWqQaBg1PQhUH9iFwPAp file.pcap\0A\00"
@.str.13 = [5 x i8] c"info\00"
@.str.14 = [88 x i8] c"To decrypt an SRTP audio stream you need the key material that was used to encrypt it. \00"
@.str.15 = [45 x i8] c"Get it from a SIP trace or from a log file. \00"
@.str.16 = [103 x i8] c"The key material is a 40 byte character string, for example CXL0YTLiYrsKYDAsxAJKTWqQaBg1PQhUH9iFwPAp.\0A\00"
@.str.17 = [108 x i8] c"You also need the SSRC value of the SRTP audio stream. One way of doing this is by running %s analyze.\0A\0A\0A\0A\0A\00"
@.str.18 = [93 x i8] c"For a G.711 RTP stream (PCMU or PCMA) %s creates a .wav file that can be played directly.\0A\0A\0A\00"
@.str.19 = [91 x i8] c"For a G.722 RTP stream %s creates a RAW file with .g722 extension. Use ffmpeg to convert:\0A\00"
@.str.20 = [32 x i8] c"ffmpeg -i file.g722 file.wav\0A\0A\0A\00"
@.str.21 = [92 x i8] c"For a SILK 8KHz RTP stream %s creates a SILK SDK file with .bin extension. To convert use:\0A\00"
@.str.22 = [53 x i8] c"decoder.exe file-SILK8000.bin help.pcm -Fs_API 8000\0A\00"
@.str.23 = [52 x i8] c"ffmpeg.exe -f s16le -ar 8000 -i help.pcm out.wav\0A\0A\0A\00"
@.str.24 = [93 x i8] c"For a SILK 16KHz RTP stream %s creates a SILK SDK file with .bin extension. To convert use:\0A\00"
@.str.25 = [55 x i8] c"decoder.exe file-SILK16000.bin help.pcm -Fs_API 16000\0A\00"
@.str.26 = [54 x i8] c"ffmpeg.exe -f s16le -ar 16000 -i help.pcm out.wav\0A\0A\0A\0A\00"
@.str.27 = [77 x i8] c"Codecs other than G.711, G.722, SILK/8000 and SILK/16000 are not supported.\0A\00"
define i32 @help(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
%6 = load i8*, i8** %5
%7 = call i32 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = icmp ne i32 %7, 0
br i1 %8, label %18, label %9
9: ; preds = %2
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%12 = load i8*, i8** %4
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str.3, i64 0, i64 0), i8* %12)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%15 = load i8*, i8** %4
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i8* %15)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %3
br label %61
18: ; preds = %2
%19 = load i8*, i8** %5
%20 = call i32 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %34, label %22
22: ; preds = %18
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str.7, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.8, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.9, i64 0, i64 0))
%27 = load i8*, i8** %4
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.10, i64 0, i64 0), i8* %27)
%29 = load i8*, i8** %4
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.11, i64 0, i64 0), i8* %29)
%31 = load i8*, i8** %4
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.12, i64 0, i64 0), i8* %31)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %3
br label %61
34: ; preds = %18
%35 = load i8*, i8** %5
%36 = call i32 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* %35)
%37 = icmp ne i32 %36, 0
br i1 %37, label %60, label %38
38: ; preds = %34
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.14, i64 0, i64 0))
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.15, i64 0, i64 0))
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.16, i64 0, i64 0))
%43 = load i8*, i8** %4
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([108 x i8], [108 x i8]* @.str.17, i64 0, i64 0), i8* %43)
%45 = load i8*, i8** %4
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.18, i64 0, i64 0), i8* %45)
%47 = load i8*, i8** %4
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.19, i64 0, i64 0), i8* %47)
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.20, i64 0, i64 0))
%50 = load i8*, i8** %4
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.21, i64 0, i64 0), i8* %50)
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.22, i64 0, i64 0))
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.23, i64 0, i64 0))
%54 = load i8*, i8** %4
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.24, i64 0, i64 0), i8* %54)
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.25, i64 0, i64 0))
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.26, i64 0, i64 0))
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.27, i64 0, i64 0))
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %3
br label %61
60: ; preds = %34
store i32 -1, i32* %3
br label %61
61: ; preds = %60, %38, %22, %9
%62 = load i32, i32* %3
ret i32 %62
}

LLVM IR (-O2):
@.str = [8 x i8] c"analyze\00"
@.str.3 = [104 x i8] c"%s will try to find RTP media streams in the pcap file and display some info including the SSRC value.\0A\00"
@.str.5 = [31 x i8] c"Example:\0A%s analyze file.pcap\0A\00"
@.str.6 = [8 x i8] c"decrypt\00"
@.str.10 = [71 x i8] c"%s will create an output file that contains the decrypted audio data.\0A\00"
@.str.11 = [44 x i8] c"For further information run %s help info.\0A\0A\00"
@.str.12 = [83 x i8] c"Example:\0A%s decrypt 0x72c4827b CXL0YTLiYrsKYDAsxAJKTWqQaBg1PQhUH9iFwPAp file.pcap\0A\00"
@.str.13 = [5 x i8] c"info\00"
@.str.14 = [88 x i8] c"To decrypt an SRTP audio stream you need the key material that was used to encrypt it. \00"
@.str.15 = [45 x i8] c"Get it from a SIP trace or from a log file. \00"
@.str.17 = [108 x i8] c"You also need the SSRC value of the SRTP audio stream. One way of doing this is by running %s analyze.\0A\0A\0A\0A\0A\00"
@.str.18 = [93 x i8] c"For a G.711 RTP stream (PCMU or PCMA) %s creates a .wav file that can be played directly.\0A\0A\0A\00"
@.str.19 = [91 x i8] c"For a G.722 RTP stream %s creates a RAW file with .g722 extension. Use ffmpeg to convert:\0A\00"
@.str.21 = [92 x i8] c"For a SILK 8KHz RTP stream %s creates a SILK SDK file with .bin extension. To convert use:\0A\00"
@.str.24 = [93 x i8] c"For a SILK 16KHz RTP stream %s creates a SILK SDK file with .bin extension. To convert use:\0A\00"
@str.28 = [40 x i8] c"Provide a pcap file as second argument.\00"
@str.30 = [105 x i8] c"Provide the SSRC value of the SRTP stream to decrypt as second argument in Hex notation with leading 0x.\00"
@str.31 = [99 x i8] c"Provide the key material to be used for decryption as third argument as 40 character base64 value.\00"
@str.32 = [73 x i8] c"Provide the pcap file that contains the SRTP stream as fourth argument.\0A\00"
@str.33 = [2 x i8] c"\0A\00"
@str.34 = [102 x i8] c"The key material is a 40 byte character string, for example CXL0YTLiYrsKYDAsxAJKTWqQaBg1PQhUH9iFwPAp.\00"
@str.35 = [31 x i8] c"ffmpeg -i file.g722 file.wav\0A\0A\00"
@str.36 = [52 x i8] c"decoder.exe file-SILK8000.bin help.pcm -Fs_API 8000\00"
@str.37 = [51 x i8] c"ffmpeg.exe -f s16le -ar 8000 -i help.pcm out.wav\0A\0A\00"
@str.38 = [54 x i8] c"decoder.exe file-SILK16000.bin help.pcm -Fs_API 16000\00"
@str.39 = [53 x i8] c"ffmpeg.exe -f s16le -ar 16000 -i help.pcm out.wav\0A\0A\0A\00"
@str.40 = [76 x i8] c"Codecs other than G.711, G.722, SILK/8000 and SILK/16000 are not supported.\00"
define i32 @help(i8* %0, i8* nocapture %1) {
%3 = tail call i32 @strcmp(i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* dereferenceable(1) %1)
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %11
5: ; preds = %2
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.33, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.28, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i8* %0)
br label %41
11: ; preds = %2
%12 = tail call i32 @strcmp(i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* dereferenceable(1) %1)
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %22
14: ; preds = %11
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.33, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([105 x i8], [105 x i8]* @str.30, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([99 x i8], [99 x i8]* @str.31, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.32, i64 0, i64 0))
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str.10, i64 0, i64 0), i8* %0)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.11, i64 0, i64 0), i8* %0)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.12, i64 0, i64 0), i8* %0)
br label %41
22: ; preds = %11
%23 = tail call i32 @strcmp(i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* dereferenceable(1) %1)
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %43
25: ; preds = %22
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.33, i64 0, i64 0))
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @.str.14, i64 0, i64 0))
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.15, i64 0, i64 0))
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([102 x i8], [102 x i8]* @str.34, i64 0, i64 0))
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([108 x i8], [108 x i8]* @.str.17, i64 0, i64 0), i8* %0)
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @.str.18, i64 0, i64 0), i8* %0)
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([91 x i8], [91 x i8]* @.str.19, i64 0, i64 0), i8* %0)
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.35, i64 0, i64 0))
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([92 x i8], [92 x i8]* @.str.21, i64 0, i64 0), i8* %0)
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.36, i64 0, i64 0))
%36 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.37, i64 0, i64 0))
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @.str.24, i64 0, i64 0), i8* %0)
%38 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.38, i64 0, i64 0))
%39 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.39, i64 0, i64 0))
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.40, i64 0, i64 0))
br label %41
41: ; preds = %5, %14, %25
%42 = tail call i32 @putchar(i32 10)
br label %43
43: ; preds = %41, %22
%44 = phi i32 [ -1, %22 ], [ 0, %41 ]
ret i32 %44
}