#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);
int /*<<< orphan*/ puts(char *);
void usage(void) {
  printf(
      "adpcma - A command line YM2610 ADPCM-A sample encoder. (release %d)\n",
      3);
  puts("usage: adpcma (infile) [outfile]");
  puts("");
  puts("Input files must be 18500Hz 16bit mono Little Endian PCM.");
  puts("[outfile] is optional and defaults to 'out.pcma' if omitted.");
  puts("");
  puts("Please see the readme for more information.");
  puts("If the readme did not come with the program, hit the person you got it "
       "from.");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
mov    $0x3,%esi
call   1040 <printf@plt>
lea    0xf09(%rip),%rdi
call   1030 <puts@plt>
lea    0xefc(%rip),%rdi
call   1030 <puts@plt>
lea    0xf12(%rip),%rdi
call   1030 <puts@plt>
lea    0xf40(%rip),%rdi
call   1030 <puts@plt>
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf65(%rip),%rdi
call   1030 <puts@plt>
lea    0xf85(%rip),%rdi
call   1030 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xec8(%rip),%rdi
mov    $0x3,%esi
call   1050 <printf@plt>
lea    0xefc(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf07(%rip),%rdi
call   1040 <puts@plt>
lea    0xf35(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf5c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf7c(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [69 x i8] c"adpcma - A command line YM2610 ADPCM-A sample encoder. (release %d)\0A\00"
@.str.1 = [33 x i8] c"usage: adpcma (infile) [outfile]\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [58 x i8] c"Input files must be 18500Hz 16bit mono Little Endian PCM.\00"
@.str.4 = [61 x i8] c"[outfile] is optional and defaults to 'out.pcma' if omitted.\00"
@.str.5 = [44 x i8] c"Please see the readme for more information.\00"
@.str.6 = [77 x i8] c"If the readme did not come with the program, hit the person you got it from.\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), i32 3)
%2 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [69 x i8] c"adpcma - A command line YM2610 ADPCM-A sample encoder. (release %d)\0A\00"
@.str.1 = [33 x i8] c"usage: adpcma (infile) [outfile]\00"
@.str.3 = [58 x i8] c"Input files must be 18500Hz 16bit mono Little Endian PCM.\00"
@.str.4 = [61 x i8] c"[outfile] is optional and defaults to 'out.pcma' if omitted.\00"
@.str.5 = [44 x i8] c"Please see the readme for more information.\00"
@.str.6 = [77 x i8] c"If the readme did not come with the program, hit the person you got it from.\00"
define void @usage() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), i32 3)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str.6, i64 0, i64 0))
ret void
}