#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, unsigned char);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ generate_timbre_text(unsigned char *, int, char *,
                                        int /*<<< orphan*/ *);
int /*<<< orphan*/ generate_vocoder_text(unsigned char *, int, char *,
                                         int /*<<< orphan*/ *);
int /*<<< orphan*/ putc(unsigned char, int /*<<< orphan*/ *);
int /*<<< orphan*/ *stderr;
int generate_text(unsigned char *data, FILE *outfile) {
  unsigned int i;
  fputs("name: \"", outfile);
  for (i = 0; i < 12; i++)
    putc(data[i], outfile);
  fputs("\"\n", outfile);
  fprintf(outfile, "bpm: %hu\n", data[31] | (data[30] << 8));
  fputs("type: ", outfile);
  switch ((data[16] & 0x30) >> 4) {
  case 0:
    fputs("synth\n", outfile);
    break;
  case 2:
    fputs("layer\n", outfile);
    break;
  case 3:
    fputs("vocoder\n", outfile);
    break;
  default:
    fputs("generate_text: Error in voice.mode (unknown mode)\n", stderr);
    return 0;
    break;
  }
  fputs("arpeggiator: ", outfile);
  if (data[32] & 0x80)
    fputs("on\n", outfile);
  else
    fputs("off\n", outfile);
  fputs("latch: ", outfile);
  if (data[32] & 0x40)
    fputs("on\n", outfile);
  else
    fputs("off\n", outfile);
  if (((data[16] & 0x30) >> 4) == 3) {
    if (!generate_vocoder_text(data, 38, "", outfile))
      return 0;
  } else {
    if (((data[16] & 0x30) >> 4) == 2) {
      if (!generate_timbre_text(data, 38, "timbre 1 -> ", outfile))
        return 0;
      if (!generate_timbre_text(data, 146, "timbre 2 -> ", outfile))
        return 0;
    } else {
      if (!generate_timbre_text(data, 38, "", outfile))
        return 0;
    }
  }
  return 1;
}


x86 assembly (clang, -O0):
<generate_text>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xe95(%rip),%rdi
call   1030 <fputs@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0xc,-0x1c(%rbp)
jae    11a5 <generate_text+0x55>
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
mov    (%rax,%rcx,1),%al
mov    -0x18(%rbp),%rsi
movzbl %al,%edi
call   1050 <putc@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1177 <generate_text+0x27>
mov    -0x18(%rbp),%rsi
lea    0xe58(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rax
movzbl 0x1f(%rax),%edx
lea    0xe43(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%rsi
lea    0xe3d(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x10(%rbp),%rax
movzbl 0x10(%rax),%eax
and    $0x30,%eax
shr    $0x4,%eax
mov    %eax,-0x20(%rbp)
test   %eax,%eax
je     121d <generate_text+0xcd>
jmp    11fb <generate_text+0xab>
mov    -0x20(%rbp),%eax
sub    $0x2,%eax
je     1232 <generate_text+0xe2>
jmp    120c <generate_text+0xbc>
mov    -0x20(%rbp),%eax
sub    $0x3,%eax
je     1247 <generate_text+0xf7>
jmp    125c <generate_text+0x10c>
mov    -0x18(%rbp),%rsi
lea    0xdf4(%rip),%rdi
call   1030 <fputs@plt>
jmp    127e <generate_text+0x12e>
mov    -0x18(%rbp),%rsi
lea    0xde6(%rip),%rdi
call   1030 <fputs@plt>
jmp    127e <generate_text+0x12e>
mov    -0x18(%rbp),%rsi
lea    0xdd8(%rip),%rdi
call   1030 <fputs@plt>
jmp    127e <generate_text+0x12e>
mov    0x2d7d(%rip),%rax
mov    (%rax),%rsi
lea    0xdc6(%rip),%rdi
call   1030 <fputs@plt>
movl   $0x0,-0x4(%rbp)
jmp    1413 <generate_text+0x2c3>
mov    -0x18(%rbp),%rsi
lea    0xddd(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x10(%rbp),%rax
movzbl 0x20(%rax),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     12b9 <generate_text+0x169>
mov    -0x18(%rbp),%rsi
lea    0xdc5(%rip),%rdi
call   1030 <fputs@plt>
jmp    12c9 <generate_text+0x179>
mov    -0x18(%rbp),%rsi
lea    0xdb4(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x18(%rbp),%rsi
lea    0xda9(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x10(%rbp),%rax
movzbl 0x20(%rax),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     1302 <generate_text+0x1b2>
mov    -0x18(%rbp),%rsi
lea    0xd7c(%rip),%rdi
call   1030 <fputs@plt>
jmp    1312 <generate_text+0x1c2>
mov    -0x18(%rbp),%rsi
lea    0xd6b(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x10(%rbp),%rax
movzbl 0x10(%rax),%eax
and    $0x30,%eax
sar    $0x4,%eax
cmp    $0x3,%eax
jne    135c <generate_text+0x20c>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0x26,%esi
lea    0xccd(%rip),%rdx
call   1070 <generate_vocoder_text@plt>
cmp    $0x0,%eax
jne    1357 <generate_text+0x207>
movl   $0x0,-0x4(%rbp)
jmp    1413 <generate_text+0x2c3>
jmp    140c <generate_text+0x2bc>
mov    -0x10(%rbp),%rax
movzbl 0x10(%rax),%eax
and    $0x30,%eax
sar    $0x4,%eax
cmp    $0x2,%eax
jne    13d4 <generate_text+0x284>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0x26,%esi
lea    0xcfe(%rip),%rdx
call   1040 <generate_timbre_text@plt>
cmp    $0x0,%eax
jne    13a1 <generate_text+0x251>
movl   $0x0,-0x4(%rbp)
jmp    1413 <generate_text+0x2c3>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0x92,%esi
lea    0xcdd(%rip),%rdx
call   1040 <generate_timbre_text@plt>
cmp    $0x0,%eax
jne    13cf <generate_text+0x27f>
movl   $0x0,-0x4(%rbp)
jmp    1413 <generate_text+0x2c3>
jmp    1407 <generate_text+0x2b7>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0x26,%esi
lea    0xc22(%rip),%rdx
call   1040 <generate_timbre_text@plt>
cmp    $0x0,%eax
jne    1402 <generate_text+0x2b2>
movl   $0x0,-0x4(%rbp)
jmp    1413 <generate_text+0x2c3>
jmp    1407 <generate_text+0x2b7>
jmp    140c <generate_text+0x2bc>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<generate_text>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%r14
lea    0xe9f(%rip),%rdi
mov    $0x7,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
movzbl (%r14),%edi
mov    %rbx,%rsi
call   1040 <putc@plt>
movzbl 0x1(%r14),%edi
mov    %rbx,%rsi
call   1040 <putc@plt>
movzbl 0x2(%r14),%edi
mov    %rbx,%rsi
call   1040 <putc@plt>
movzbl 0x3(%r14),%edi
mov    %rbx,%rsi
call   1040 <putc@plt>
movzbl 0x4(%r14),%edi
mov    %rbx,%rsi
call   1040 <putc@plt>
movzbl 0x5(%r14),%edi
mov    %rbx,%rsi
call   1040 <putc@plt>
movzbl 0x6(%r14),%edi
mov    %rbx,%rsi
call   1040 <putc@plt>
movzbl 0x7(%r14),%edi
mov    %rbx,%rsi
call   1040 <putc@plt>
movzbl 0x8(%r14),%edi
mov    %rbx,%rsi
call   1040 <putc@plt>
movzbl 0x9(%r14),%edi
mov    %rbx,%rsi
call   1040 <putc@plt>
movzbl 0xa(%r14),%edi
mov    %rbx,%rsi
call   1040 <putc@plt>
movzbl 0xb(%r14),%edi
mov    %rbx,%rsi
call   1040 <putc@plt>
lea    0xdf3(%rip),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
movzbl 0x1f(%r14),%edx
lea    0xdd8(%rip),%rsi
mov    %rbx,%rdi
call   1050 <fprintf@plt>
lea    0xdd3(%rip),%rdi
mov    $0x6,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
movzbl 0x10(%r14),%eax
shr    $0x4,%eax
and    $0x3,%eax
cmp    $0x3,%eax
je     127a <generate_text+0x12a>
cmp    $0x2,%eax
je     1288 <generate_text+0x138>
test   %eax,%eax
jne    1359 <generate_text+0x209>
lea    0xda4(%rip),%rdi
jmp    128f <generate_text+0x13f>
lea    0xda9(%rip),%rdi
mov    $0x8,%esi
jmp    1294 <generate_text+0x144>
lea    0xd94(%rip),%rdi
mov    $0x6,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xdbe(%rip),%rdi
mov    $0xd,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
cmpb   $0x0,0x20(%r14)
js     12cf <generate_text+0x17f>
lea    0xdb0(%rip),%rdi
mov    $0x4,%esi
jmp    12db <generate_text+0x18b>
lea    0xd9e(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xd8e(%rip),%rdi
mov    $0x7,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
testb  $0x40,0x20(%r14)
jne    1316 <generate_text+0x1c6>
lea    0xd69(%rip),%rdi
mov    $0x4,%esi
jmp    1322 <generate_text+0x1d2>
lea    0xd57(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
mov    0x10(%r14),%al
shr    $0x4,%al
and    $0x3,%al
cmp    $0x2,%al
je     137b <generate_text+0x22b>
lea    0xcc7(%rip),%rdx
mov    %r14,%rdi
mov    $0x26,%esi
mov    %rbx,%rcx
cmp    $0x3,%al
jne    13b5 <generate_text+0x265>
call   1060 <generate_vocoder_text@plt>
jmp    13ba <generate_text+0x26a>
mov    0x2c80(%rip),%rax
mov    (%rax),%rcx
lea    0xcc9(%rip),%rdi
mov    $0x32,%esi
mov    $0x1,%edx
call   1070 <fwrite@plt>
jmp    13c5 <generate_text+0x275>
lea    0xd03(%rip),%rdx
mov    %r14,%rdi
mov    $0x26,%esi
mov    %rbx,%rcx
call   1030 <generate_timbre_text@plt>
xor    %ebp,%ebp
test   %eax,%eax
je     13c7 <generate_text+0x277>
lea    0xcf3(%rip),%rdx
mov    %r14,%rdi
mov    $0x92,%esi
mov    %rbx,%rcx
call   1030 <generate_timbre_text@plt>
test   %eax,%eax
jne    13be <generate_text+0x26e>
jmp    13c7 <generate_text+0x277>
call   1030 <generate_timbre_text@plt>
test   %eax,%eax
je     13c5 <generate_text+0x275>
mov    $0x1,%ebp
jmp    13c7 <generate_text+0x277>
xor    %ebp,%ebp
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"name: \22\00"
@.str.1 = [3 x i8] c"\22\0A\00"
@.str.2 = [10 x i8] c"bpm: %hu\0A\00"
@.str.3 = [7 x i8] c"type: \00"
@.str.4 = [7 x i8] c"synth\0A\00"
@.str.5 = [7 x i8] c"layer\0A\00"
@.str.6 = [9 x i8] c"vocoder\0A\00"
@.str.7 = [51 x i8] c"generate_text: Error in voice.mode (unknown mode)\0A\00"
@stderr = global i32* null
@.str.8 = [14 x i8] c"arpeggiator: \00"
@.str.9 = [4 x i8] c"on\0A\00"
@.str.10 = [5 x i8] c"off\0A\00"
@.str.11 = [8 x i8] c"latch: \00"
@.str.12 = [1 x i8] zeroinitializer
@.str.13 = [13 x i8] c"timbre 1 -> \00"
@.str.14 = [13 x i8] c"timbre 2 -> \00"
define i32 @generate_text(i8* %0, i32* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i32
store i8* %0, i8** %4
store i32* %1, i32** %5
%7 = load i32*, i32** %5
%8 = call i32 @fputs(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32* %7)
store i32 0, i32* %6
br label %9
9: ; preds = %20, %2
%10 = load i32, i32* %6
%11 = icmp ult i32 %10, 12
br i1 %11, label %12, label %23
12: ; preds = %9
%13 = load i8*, i8** %4
%14 = load i32, i32* %6
%15 = zext i32 %14 to i64
%16 = getelementptr inbounds i8, i8* %13, i64 %15
%17 = load i8, i8* %16
%18 = load i32*, i32** %5
%19 = call i32 @putc(i8 zeroext %17, i32* %18)
br label %20
20: ; preds = %12
%21 = load i32, i32* %6
%22 = add i32 %21, 1
store i32 %22, i32* %6
br label %9
23: ; preds = %9
%24 = load i32*, i32** %5
%25 = call i32 @fputs(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %24)
%26 = load i32*, i32** %5
%27 = load i8*, i8** %4
%28 = getelementptr inbounds i8, i8* %27, i64 31
%29 = load i8, i8* %28
%30 = zext i8 %29 to i32
%31 = load i8*, i8** %4
%32 = getelementptr inbounds i8, i8* %31, i64 30
%33 = load i8, i8* %32
%34 = zext i8 %33 to i32
%35 = shl i32 %34, 8
%36 = or i32 %30, %35
%37 = trunc i32 %36 to i8
%38 = call i32 @fprintf(i32* %26, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %37)
%39 = load i32*, i32** %5
%40 = call i32 @fputs(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32* %39)
%41 = load i8*, i8** %4
%42 = getelementptr inbounds i8, i8* %41, i64 16
%43 = load i8, i8* %42
%44 = zext i8 %43 to i32
%45 = and i32 %44, 48
%46 = ashr i32 %45, 4
switch i32 %46, label %56 [
i32 0, label %47
i32 2, label %50
i32 3, label %53
]
47: ; preds = %23
%48 = load i32*, i32** %5
%49 = call i32 @fputs(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32* %48)
br label %59
50: ; preds = %23
%51 = load i32*, i32** %5
%52 = call i32 @fputs(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32* %51)
br label %59
53: ; preds = %23
%54 = load i32*, i32** %5
%55 = call i32 @fputs(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32* %54)
br label %59
56: ; preds = %23
%57 = load i32*, i32** @stderr
%58 = call i32 @fputs(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0), i32* %57)
store i32 0, i32* %3
br label %134
59: ; preds = %53, %50, %47
%60 = load i32*, i32** %5
%61 = call i32 @fputs(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i32* %60)
%62 = load i8*, i8** %4
%63 = getelementptr inbounds i8, i8* %62, i64 32
%64 = load i8, i8* %63
%65 = zext i8 %64 to i32
%66 = and i32 %65, 128
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %71
68: ; preds = %59
%69 = load i32*, i32** %5
%70 = call i32 @fputs(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32* %69)
br label %74
71: ; preds = %59
%72 = load i32*, i32** %5
%73 = call i32 @fputs(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32* %72)
br label %74
74: ; preds = %71, %68
%75 = load i32*, i32** %5
%76 = call i32 @fputs(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i32* %75)
%77 = load i8*, i8** %4
%78 = getelementptr inbounds i8, i8* %77, i64 32
%79 = load i8, i8* %78
%80 = zext i8 %79 to i32
%81 = and i32 %80, 64
%82 = icmp ne i32 %81, 0
br i1 %82, label %83, label %86
83: ; preds = %74
%84 = load i32*, i32** %5
%85 = call i32 @fputs(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32* %84)
br label %89
86: ; preds = %74
%87 = load i32*, i32** %5
%88 = call i32 @fputs(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32* %87)
br label %89
89: ; preds = %86, %83
%90 = load i8*, i8** %4
%91 = getelementptr inbounds i8, i8* %90, i64 16
%92 = load i8, i8* %91
%93 = zext i8 %92 to i32
%94 = and i32 %93, 48
%95 = ashr i32 %94, 4
%96 = icmp eq i32 %95, 3
br i1 %96, label %97, label %104
97: ; preds = %89
%98 = load i8*, i8** %4
%99 = load i32*, i32** %5
%100 = call i32 @generate_vocoder_text(i8* %98, i32 38, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.12, i64 0, i64 0), i32* %99)
%101 = icmp ne i32 %100, 0
br i1 %101, label %103, label %102
102: ; preds = %97
store i32 0, i32* %3
br label %134
103: ; preds = %97
br label %133
104: ; preds = %89
%105 = load i8*, i8** %4
%106 = getelementptr inbounds i8, i8* %105, i64 16
%107 = load i8, i8* %106
%108 = zext i8 %107 to i32
%109 = and i32 %108, 48
%110 = ashr i32 %109, 4
%111 = icmp eq i32 %110, 2
br i1 %111, label %112, label %125
112: ; preds = %104
%113 = load i8*, i8** %4
%114 = load i32*, i32** %5
%115 = call i32 @generate_timbre_text(i8* %113, i32 38, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32* %114)
%116 = icmp ne i32 %115, 0
br i1 %116, label %118, label %117
117: ; preds = %112
store i32 0, i32* %3
br label %134
118: ; preds = %112
%119 = load i8*, i8** %4
%120 = load i32*, i32** %5
%121 = call i32 @generate_timbre_text(i8* %119, i32 146, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i32* %120)
%122 = icmp ne i32 %121, 0
br i1 %122, label %124, label %123
123: ; preds = %118
store i32 0, i32* %3
br label %134
124: ; preds = %118
br label %132
125: ; preds = %104
%126 = load i8*, i8** %4
%127 = load i32*, i32** %5
%128 = call i32 @generate_timbre_text(i8* %126, i32 38, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.12, i64 0, i64 0), i32* %127)
%129 = icmp ne i32 %128, 0
br i1 %129, label %131, label %130
130: ; preds = %125
store i32 0, i32* %3
br label %134
131: ; preds = %125
br label %132
132: ; preds = %131, %124
br label %133
133: ; preds = %132, %103
store i32 1, i32* %3
br label %134
134: ; preds = %133, %130, %123, %117, %102, %56
%135 = load i32, i32* %3
ret i32 %135
}

LLVM IR (-O2):
@.str = [8 x i8] c"name: \22\00"
@.str.1 = [3 x i8] c"\22\0A\00"
@.str.2 = [10 x i8] c"bpm: %hu\0A\00"
@.str.3 = [7 x i8] c"type: \00"
@.str.4 = [7 x i8] c"synth\0A\00"
@.str.5 = [7 x i8] c"layer\0A\00"
@.str.6 = [9 x i8] c"vocoder\0A\00"
@.str.7 = [51 x i8] c"generate_text: Error in voice.mode (unknown mode)\0A\00"
@stderr = global i32* null
@.str.8 = [14 x i8] c"arpeggiator: \00"
@.str.9 = [4 x i8] c"on\0A\00"
@.str.10 = [5 x i8] c"off\0A\00"
@.str.11 = [8 x i8] c"latch: \00"
@.str.12 = [1 x i8] zeroinitializer
@.str.13 = [13 x i8] c"timbre 1 -> \00"
@.str.14 = [13 x i8] c"timbre 2 -> \00"
define i32 @generate_text(i8* %0, i32* %1) {
%3 = tail call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i64 7, i64 1, i32* %1)
%4 = load i8, i8* %0
%5 = tail call i32 @putc(i8 zeroext %4, i32* %1)
%6 = getelementptr inbounds i8, i8* %0, i64 1
%7 = load i8, i8* %6
%8 = tail call i32 @putc(i8 zeroext %7, i32* %1)
%9 = getelementptr inbounds i8, i8* %0, i64 2
%10 = load i8, i8* %9
%11 = tail call i32 @putc(i8 zeroext %10, i32* %1)
%12 = getelementptr inbounds i8, i8* %0, i64 3
%13 = load i8, i8* %12
%14 = tail call i32 @putc(i8 zeroext %13, i32* %1)
%15 = getelementptr inbounds i8, i8* %0, i64 4
%16 = load i8, i8* %15
%17 = tail call i32 @putc(i8 zeroext %16, i32* %1)
%18 = getelementptr inbounds i8, i8* %0, i64 5
%19 = load i8, i8* %18
%20 = tail call i32 @putc(i8 zeroext %19, i32* %1)
%21 = getelementptr inbounds i8, i8* %0, i64 6
%22 = load i8, i8* %21
%23 = tail call i32 @putc(i8 zeroext %22, i32* %1)
%24 = getelementptr inbounds i8, i8* %0, i64 7
%25 = load i8, i8* %24
%26 = tail call i32 @putc(i8 zeroext %25, i32* %1)
%27 = getelementptr inbounds i8, i8* %0, i64 8
%28 = load i8, i8* %27
%29 = tail call i32 @putc(i8 zeroext %28, i32* %1)
%30 = getelementptr inbounds i8, i8* %0, i64 9
%31 = load i8, i8* %30
%32 = tail call i32 @putc(i8 zeroext %31, i32* %1)
%33 = getelementptr inbounds i8, i8* %0, i64 10
%34 = load i8, i8* %33
%35 = tail call i32 @putc(i8 zeroext %34, i32* %1)
%36 = getelementptr inbounds i8, i8* %0, i64 11
%37 = load i8, i8* %36
%38 = tail call i32 @putc(i8 zeroext %37, i32* %1)
%39 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i64 2, i64 1, i32* %1)
%40 = getelementptr inbounds i8, i8* %0, i64 31
%41 = load i8, i8* %40
%42 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %41)
%43 = tail call i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i64 6, i64 1, i32* %1)
%44 = getelementptr inbounds i8, i8* %0, i64 16
%45 = load i8, i8* %44
%46 = lshr i8 %45, 4
%47 = and i8 %46, 3
%48 = zext i8 %47 to i32
switch i32 %48, label %55 [
i32 0, label %49
i32 2, label %51
i32 3, label %53
]
49: ; preds = %2
%50 = tail call i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i64 6, i64 1, i32* %1)
br label %58
51: ; preds = %2
%52 = tail call i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i64 6, i64 1, i32* %1)
br label %58
53: ; preds = %2
%54 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i64 8, i64 1, i32* %1)
br label %58
55: ; preds = %2
%56 = load i32*, i32** @stderr
%57 = tail call i64 @fwrite(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0), i64 50, i64 1, i32* %56)
br label %93
58: ; preds = %53, %51, %49
%59 = tail call i64 @fwrite(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i64 13, i64 1, i32* %1)
%60 = getelementptr inbounds i8, i8* %0, i64 32
%61 = load i8, i8* %60
%62 = icmp sgt i8 %61, -1
br i1 %62, label %65, label %63
63: ; preds = %58
%64 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i64 3, i64 1, i32* %1)
br label %67
65: ; preds = %58
%66 = tail call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i64 4, i64 1, i32* %1)
br label %67
67: ; preds = %65, %63
%68 = tail call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i64 7, i64 1, i32* %1)
%69 = load i8, i8* %60
%70 = and i8 %69, 64
%71 = icmp eq i8 %70, 0
br i1 %71, label %74, label %72
72: ; preds = %67
%73 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i64 3, i64 1, i32* %1)
br label %76
74: ; preds = %67
%75 = tail call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i64 4, i64 1, i32* %1)
br label %76
76: ; preds = %74, %72
%77 = load i8, i8* %44
%78 = lshr i8 %77, 4
%79 = and i8 %78, 3
switch i8 %79, label %89 [
i8 3, label %80
i8 2, label %83
]
80: ; preds = %76
%81 = tail call i32 @generate_vocoder_text(i8* %0, i32 38, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.12, i64 0, i64 0), i32* %1)
%82 = icmp eq i32 %81, 0
br i1 %82, label %93, label %92
83: ; preds = %76
%84 = tail call i32 @generate_timbre_text(i8* %0, i32 38, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32* %1)
%85 = icmp eq i32 %84, 0
br i1 %85, label %93, label %86
86: ; preds = %83
%87 = tail call i32 @generate_timbre_text(i8* %0, i32 146, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i32* %1)
%88 = icmp eq i32 %87, 0
br i1 %88, label %93, label %92
89: ; preds = %76
%90 = tail call i32 @generate_timbre_text(i8* %0, i32 38, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.12, i64 0, i64 0), i32* %1)
%91 = icmp eq i32 %90, 0
br i1 %91, label %93, label %92
92: ; preds = %86, %89, %80
br label %93
93: ; preds = %89, %86, %83, %80, %92, %55
%94 = phi i32 [ 0, %55 ], [ 1, %92 ], [ 0, %80 ], [ 0, %83 ], [ 0, %86 ], [ 0, %89 ]
ret i32 %94
}