#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 *, ...);
void top_options_usage(FILE *fp, char *argv0) {
  fprintf(fp,
          "%s usage: %s\n"
          "\t\t[-a | -d | -e | -c <mode>]\n"
          "\t\t[-F | -f]\n"
          "\t\t[-h]\n"
          "\t\t[-i <interval>]\n"
          "\t\t[-l <samples>]\n"
          "\t\t[-ncols <columns>]\n"
          "\t\t[-o <key>] [-O <secondaryKey>]\n"
          "\t\t[-R | -r]\n"
          "\t\t[-S]\n"
          "\t\t[-s <delay>]\n"
          "\t\t[-n <nprocs>]\n"
          "\t\t[-stats <key(s)>]\n"
          "\t\t[-pid <processid>]\n"
          "\t\t[-user <username>]\n"
          "\t\t[-U <username>]\n"
          "\t\t[-u]\n",
          argv0, argv0);
  fprintf(fp, "\n");
}


x86 assembly (clang, -O0):
<top_options_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    0xecd(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xfd9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<top_options_usage>:
push   %rbx
mov    %rsi,%rcx
mov    %rdi,%rbx
lea    0xed2(%rip),%rsi
mov    %rcx,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0xa,%edi
mov    %rbx,%rsi
pop    %rbx
jmp    1030 <fputc@plt>

LLVM IR (-O0):
@.str = [288 x i8] c"%s usage: %s\0A\09\09[-a | -d | -e | -c <mode>]\0A\09\09[-F | -f]\0A\09\09[-h]\0A\09\09[-i <interval>]\0A\09\09[-l <samples>]\0A\09\09[-ncols <columns>]\0A\09\09[-o <key>] [-O <secondaryKey>]\0A\09\09[-R | -r]\0A\09\09[-S]\0A\09\09[-s <delay>]\0A\09\09[-n <nprocs>]\0A\09\09[-stats <key(s)>]\0A\09\09[-pid <processid>]\0A\09\09[-user <username>]\0A\09\09[-U <username>]\0A\09\09[-u]\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
define void @top_options_usage(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
store i32* %0, i32** %3
store i8* %1, i8** %4
%5 = load i32*, i32** %3
%6 = load i8*, i8** %4
%7 = load i8*, i8** %4
%8 = call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([288 x i8], [288 x i8]* @.str, i64 0, i64 0), i8* %6, i8* %7)
%9 = load i32*, i32** %3
%10 = call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [288 x i8] c"%s usage: %s\0A\09\09[-a | -d | -e | -c <mode>]\0A\09\09[-F | -f]\0A\09\09[-h]\0A\09\09[-i <interval>]\0A\09\09[-l <samples>]\0A\09\09[-ncols <columns>]\0A\09\09[-o <key>] [-O <secondaryKey>]\0A\09\09[-R | -r]\0A\09\09[-S]\0A\09\09[-s <delay>]\0A\09\09[-n <nprocs>]\0A\09\09[-stats <key(s)>]\0A\09\09[-pid <processid>]\0A\09\09[-user <username>]\0A\09\09[-U <username>]\0A\09\09[-u]\0A\00"
define void @top_options_usage(i32* nocapture %0, i8* %1) {
%3 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([288 x i8], [288 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %1)
%4 = tail call i32 @fputc(i32 10, i32* %0)
ret void
}