#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*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void __attribute__((noreturn)) usage(const char *filepath) {
  fprintf(stderr,
          "usage: %s [-bdfFhqvx] [-c count] [-i iface] [-l loglen] [-L tbllen] "
          "[-t ival]\n"
          "\n"
          "where\n"
          "  -b sets bonded mode: latency in lower device tc\n"
          "  -c sets capture queue length (in packets)\n"
          "  -d debug mode, displays individual records\n"
          "  -f filter by TOS bits (pass as base 10 or 16)\n"
          "  -h to show this message and exits\n"
          "  -i interface (default: eth0)\n"
          "  -l sets the timestamp log length\n"
          "  -L sets the tcp segment hashtable length\n"
          "  -q quiet: suppresses more output\n"
          "  -t sets the display interval (secs)\n"
          "  -v sets the verbose option\n"
          "  -x show extended stats: #matched, collisions, ..\n",
          filepath);
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [571 x i8] c"usage: %s [-bdfFhqvx] [-c count] [-i iface] [-l loglen] [-L tbllen] [-t ival]\0A\0Awhere\0A -b sets bonded mode: latency in lower device tc\0A -c sets capture queue length (in packets)\0A -d debug mode, displays individual records\0A -f filter by TOS bits (pass as base 10 or 16)\0A -h to show this message and exits\0A -i interface (default: eth0)\0A -l sets the timestamp log length\0A -L sets the tcp segment hashtable length\0A -q quiet: suppresses more output\0A -t sets the display interval (secs)\0A -v sets the verbose option\0A -x show extended stats: #matched, collisions, ..\0A\00"
define void @usage(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 ([571 x i8], [571 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [571 x i8] c"usage: %s [-bdfFhqvx] [-c count] [-i iface] [-l loglen] [-L tbllen] [-t ival]\0A\0Awhere\0A -b sets bonded mode: latency in lower device tc\0A -c sets capture queue length (in packets)\0A -d debug mode, displays individual records\0A -f filter by TOS bits (pass as base 10 or 16)\0A -h to show this message and exits\0A -i interface (default: eth0)\0A -l sets the timestamp log length\0A -L sets the tcp segment hashtable length\0A -q quiet: suppresses more output\0A -t sets the display interval (secs)\0A -v sets the verbose option\0A -x show extended stats: #matched, collisions, ..\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([571 x i8], [571 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @exit(i32 1)
unreachable
}