#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*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, int, int, int, int);
int /*<<< orphan*/ stdout;
void dup_usage() {
  fprintf(
      stdout,
      "Usage:\n duplicator [options] device\n"
      "Options:\n"
      " -q|--queue <queue-ID>           queue ID, default is to process all\n"
      " -c|--copies <number-of-copies>  number of copies, up to %u, default is "
      "%u\n"
      " -a|--affinity <begin:end>       enable CPU affinity setting in "
      "specified range, default range is 0 to the maxium queue ID\n"
      " -p|--report-period <seconds>    period to report statistics, range is "
      "from %d to %d, default is %d, set to 0 to disable\n"
      " -v|--version                    show version\n"
      " -h|--help                       show this help\n",
      8, 3, 5, (24 * 60 * 60), (5 * 60));
  fflush(stdout);
}


x86 assembly (clang, -O0):
<dup_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2eb1(%rip),%rax
mov    (%rax),%edi
lea    0xec8(%rip),%rsi
mov    $0x8,%edx
mov    $0x3,%ecx
mov    $0x5,%r8d
mov    $0x15180,%r9d
movl   $0x12c,(%rsp)
call   1030 <fprintf@plt>
mov    0x2e7f(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dup_usage>:
push   %rbx
sub    $0x10,%rsp
mov    0x2eb4(%rip),%rbx
mov    (%rbx),%edi
movl   $0x12c,(%rsp)
lea    0xec4(%rip),%rsi
mov    $0x8,%edx
mov    $0x3,%ecx
mov    $0x5,%r8d
mov    $0x15180,%r9d
call   1030 <fprintf@plt>
mov    (%rbx),%edi
add    $0x10,%rsp
pop    %rbx
jmp    1040 <fflush@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [528 x i8] c"Usage:\0A duplicator [options] device\0AOptions:\0A -q|--queue <queue-ID> queue ID, default is to process all\0A -c|--copies <number-of-copies> number of copies, up to %u, default is %u\0A -a|--affinity <begin:end> enable CPU affinity setting in specified range, default range is 0 to the maxium queue ID\0A -p|--report-period <seconds> period to report statistics, range is from %d to %d, default is %d, set to 0 to disable\0A -v|--version show version\0A -h|--help show this help\0A\00"
define void @dup_usage() {
%1 = load i32, i32* @stdout
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([528 x i8], [528 x i8]* @.str, i64 0, i64 0), i32 8, i32 3, i32 5, i32 86400, i32 300)
%3 = load i32, i32* @stdout
%4 = call i32 @fflush(i32 %3)
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [528 x i8] c"Usage:\0A duplicator [options] device\0AOptions:\0A -q|--queue <queue-ID> queue ID, default is to process all\0A -c|--copies <number-of-copies> number of copies, up to %u, default is %u\0A -a|--affinity <begin:end> enable CPU affinity setting in specified range, default range is 0 to the maxium queue ID\0A -p|--report-period <seconds> period to report statistics, range is from %d to %d, default is %d, set to 0 to disable\0A -v|--version show version\0A -h|--help show this help\0A\00"
define void @dup_usage() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([528 x i8], [528 x i8]* @.str, i64 0, i64 0), i32 8, i32 3, i32 5, i32 86400, i32 300)
%3 = load i32, i32* @stdout
%4 = tail call i32 @fflush(i32 %3)
ret void
}