#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*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
int help(const char *name) {
  fprintf(
      stderr,
      "usage: %s [<options>] <ptfile>[:<from>[-<to>]\n\n"
      "options:\n"
      "  --help|-h                 this text.\n"
      "  --version                 display version information and exit.\n"
      "  --no-sync                 don't try to sync to the first PSB, assume "
      "a valid\n"
      "                            sync point at the beginning of the trace.\n"
      "  --quiet                   don't print anything but errors.\n"
      "  --no-pad                  don't show PAD packets.\n"
      "  --no-offset               don't show the offset as the first column.\n"
      "  --raw                     show raw packet bytes.\n"
      "  --lastip                  show last IP updates on packets with IP "
      "payloads.\n"
      "  --fixed-offset-width      assume fixed width of 16 characters for "
      "the\n"
      "                            offset column.\n"
      "  --cpu none|auto|f/m[/s]   set cpu to the given value and decode "
      "according to:\n"
      "                              none     spec (default)\n"
      "                              auto     current cpu\n"
      "                              f/m[/s]  family/model[/stepping]\n"
      "  <ptfile>[:<from>[-<to>]]  load the processor trace data from "
      "<ptfile>;\n"
      "                            an optional offset or range can be given.\n",
      name);
  return 0;
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xed0(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
mov    %rdi,%rdx
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [1130 x i8] c"usage: %s [<options>] <ptfile>[:<from>[-<to>]\0A\0Aoptions:\0A --help|-h this text.\0A --version display version information and exit.\0A --no-sync don't try to sync to the first PSB, assume a valid\0A sync point at the beginning of the trace.\0A --quiet don't print anything but errors.\0A --no-pad don't show PAD packets.\0A --no-offset don't show the offset as the first column.\0A --raw show raw packet bytes.\0A --lastip show last IP updates on packets with IP payloads.\0A --fixed-offset-width assume fixed width of 16 characters for the\0A offset column.\0A --cpu none|auto|f/m[/s] set cpu to the given value and decode according to:\0A none spec (default)\0A auto current cpu\0A f/m[/s] family/model[/stepping]\0A <ptfile>[:<from>[-<to>]] load the processor trace data from <ptfile>;\0A an optional offset or range can be given.\0A\00"
define i32 @help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([1130 x i8], [1130 x i8]* @.str, i64 0, i64 0), i8* %4)
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [1130 x i8] c"usage: %s [<options>] <ptfile>[:<from>[-<to>]\0A\0Aoptions:\0A --help|-h this text.\0A --version display version information and exit.\0A --no-sync don't try to sync to the first PSB, assume a valid\0A sync point at the beginning of the trace.\0A --quiet don't print anything but errors.\0A --no-pad don't show PAD packets.\0A --no-offset don't show the offset as the first column.\0A --raw show raw packet bytes.\0A --lastip show last IP updates on packets with IP payloads.\0A --fixed-offset-width assume fixed width of 16 characters for the\0A offset column.\0A --cpu none|auto|f/m[/s] set cpu to the given value and decode according to:\0A none spec (default)\0A auto current cpu\0A f/m[/s] family/model[/stepping]\0A <ptfile>[:<from>[-<to>]] load the processor trace data from <ptfile>;\0A an optional offset or range can be given.\0A\00"
define i32 @help(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([1130 x i8], [1130 x i8]* @.str, i64 0, i64 0), i8* %0)
ret i32 0
}