#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 printUsage(void) {
  printf("\n "
         "\x1b[32mIMF2MID version "
         "0.9.4b ("
         "Mar 15 2022"
         ")"
         "\x1b[0m"
         "\n\n"
         "An utility which converts IMF (Id-Software Music File) format into "
         "General MIDI.\n"
         "Created by Wohlstand in 2016 year. Licensed under MIT license.\n\n"
         "More detail information and source code here:\n"
         "      https://github.com/Wohlstand/imf2mid\n\n");
  printf("  \x1b[31mUsage:\x1b[0m\n");
  printf("     ./imf2mid \x1b[37m[option]\x1b[0m \x1b[32mfilename.imf\x1b[0m "
         "\x1b[37m[filename.mid]\x1b[0m\n\n");
  printf(" -np   - ignore pitch change events\n");
  printf(" -nl   - disable printing log\n");
  printf(" -li   - write dump of detected instruments into \"instlog.txt\" "
         "file\n");
  printf("\n\n");
  return 1;
}


x86 assembly (clang, -O0):
<printUsage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xff6(%rip),%rdi
call   1030 <printf@plt>
lea    0xffd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1042(%rip),%rdi
call   1030 <printf@plt>
lea    0x105b(%rip),%rdi
call   1030 <printf@plt>
lea    0x106e(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb7(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<printUsage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xff8(%rip),%rdi
call   1030 <puts@plt>
lea    0xffe(%rip),%rdi
call   1030 <puts@plt>
lea    0x1042(%rip),%rdi
call   1030 <puts@plt>
lea    0x105a(%rip),%rdi
call   1030 <puts@plt>
lea    0x106c(%rip),%rdi
call   1030 <puts@plt>
lea    0xfba(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [285 x i8] c"\0A \1B[32mIMF2MID version 0.9.4b (Mar 15 2022)\1B[0m\0A\0AAn utility which converts IMF (Id-Software Music File) format into General MIDI.\0ACreated by Wohlstand in 2016 year. Licensed under MIT license.\0A\0AMore detail information and source code here:\0A https://github.com/Wohlstand/imf2mid\0A\0A\00"
@.str.1 = [19 x i8] c" \1B[31mUsage:\1B[0m\0A\00"
@.str.2 = [81 x i8] c" ./imf2mid \1B[37m[option]\1B[0m \1B[32mfilename.imf\1B[0m \1B[37m[filename.mid]\1B[0m\0A\0A\00"
@.str.3 = [37 x i8] c" -np - ignore pitch change events\0A\00"
@.str.4 = [31 x i8] c" -nl - disable printing log\0A\00"
@.str.5 = [69 x i8] c" -li - write dump of detected instruments into \22instlog.txt\22 file\0A\00"
@.str.6 = [3 x i8] c"\0A\0A\00"
define i32 @printUsage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([285 x i8], [285 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
@str = [284 x i8] c"\0A \1B[32mIMF2MID version 0.9.4b (Mar 15 2022)\1B[0m\0A\0AAn utility which converts IMF (Id-Software Music File) format into General MIDI.\0ACreated by Wohlstand in 2016 year. Licensed under MIT license.\0A\0AMore detail information and source code here:\0A https://github.com/Wohlstand/imf2mid\0A\00"
@str.7 = [18 x i8] c" \1B[31mUsage:\1B[0m\00"
@str.8 = [80 x i8] c" ./imf2mid \1B[37m[option]\1B[0m \1B[32mfilename.imf\1B[0m \1B[37m[filename.mid]\1B[0m\0A\00"
@str.9 = [36 x i8] c" -np - ignore pitch change events\00"
@str.10 = [30 x i8] c" -nl - disable printing log\00"
@str.11 = [68 x i8] c" -li - write dump of detected instruments into \22instlog.txt\22 file\00"
@str.12 = [2 x i8] c"\0A\00"
define i32 @printUsage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([284 x i8], [284 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.7, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.8, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.9, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.10, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.11, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.12, i64 0, i64 0))
ret i32 1
}