#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*/ exit(int);
int /*<<< orphan*/ printf(char *, char *);
void usage(char *progName) {
  printf("Usage:\n%s [-v] [-D] [-s speed] [-d device] <-(l|r|b)> K3memIndex "
         "...: read memories from radio \n",
         progName);
  printf("%s [-a K3memIndex] : translate memory channel number to address \n",
         progName);
  printf("%s [-x ERresponse] : translate a raw response \n", progName);
  printf("%s [-m channel]    : set a memory channel on the radio (like "
         "pressing MR) \n",
         progName);
  printf("%s --version       : show version \n", progName);
  printf("\nK3memIndex is a number 0-199, multiple options and ranges are "
         "accepted, e.g. %s -b 1 3 7-11\n",
         progName);
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf1a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf4c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf6c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xfa8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xfbc(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf27(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf5a(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf7b(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xfb8(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xfcd(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [97 x i8] c"Usage:\0A%s [-v] [-D] [-s speed] [-d device] <-(l|r|b)> K3memIndex ...: read memories from radio \0A\00"
@.str.1 = [66 x i8] c"%s [-a K3memIndex] : translate memory channel number to address \0A\00"
@.str.2 = [48 x i8] c"%s [-x ERresponse] : translate a raw response \0A\00"
@.str.3 = [76 x i8] c"%s [-m channel] : set a memory channel on the radio (like pressing MR) \0A\00"
@.str.4 = [36 x i8] c"%s --version : show version \0A\00"
@.str.5 = [94 x i8] c"\0AK3memIndex is a number 0-199, multiple options and ranges are accepted, e.g. %s -b 1 3 7-11\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = load i8*, i8** %2
%6 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%7 = load i8*, i8** %2
%8 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i8* %7)
%9 = load i8*, i8** %2
%10 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.3, i64 0, i64 0), i8* %9)
%11 = load i8*, i8** %2
%12 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i8* %11)
%13 = load i8*, i8** %2
%14 = call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.5, i64 0, i64 0), i8* %13)
%15 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [97 x i8] c"Usage:\0A%s [-v] [-D] [-s speed] [-d device] <-(l|r|b)> K3memIndex ...: read memories from radio \0A\00"
@.str.1 = [66 x i8] c"%s [-a K3memIndex] : translate memory channel number to address \0A\00"
@.str.2 = [48 x i8] c"%s [-x ERresponse] : translate a raw response \0A\00"
@.str.3 = [76 x i8] c"%s [-m channel] : set a memory channel on the radio (like pressing MR) \0A\00"
@.str.4 = [36 x i8] c"%s --version : show version \0A\00"
@.str.5 = [94 x i8] c"\0AK3memIndex is a number 0-199, multiple options and ranges are accepted, e.g. %s -b 1 3 7-11\0A\00"
define void @usage(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i8* %0)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.5, i64 0, i64 0), i8* %0)
%8 = tail call i32 @exit(i32 1)
unreachable
}