#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*/ printf(char *, char *);
void usage(int exval) {
  char *help_str =
      "Usage:\tjuggler -h\n\tjuggler [OPTIONS] -t <target> -s "
      "<source>\n\nOptions:\n -h                      Print this help\n -s "
      "<source>             Source port to listen on.  Option may repeat.\n -t "
      "<target>             Target [<ip>:]<port> to send to.  Option may "
      "repeat.\n\n -m <max size>           Maximum size packet (default: "
      "16384)\n -l <level>              Specify a log level (err, warn, "
      "notice, info, debug)\n -d <sec>                Specify a reconnect "
      "delay in seconds\n\nJuggler will listen on all specified UDP ports and "
      "load-balance (round robin\nfor now) packets across the specified "
      "targets.\n\n";
  printf("%s", help_str);
  exit(exval);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xece(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0x110e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %edi,%ebx
lea    0x1125(%rip),%rdi
lea    0xecf(%rip),%rsi
call   1030 <printf@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [591 x i8] c"Usage:\09juggler -h\0A\09juggler [OPTIONS] -t <target> -s <source>\0A\0AOptions:\0A -h Print this help\0A -s <source> Source port to listen on. Option may repeat.\0A -t <target> Target [<ip>:]<port> to send to. Option may repeat.\0A\0A -m <max size> Maximum size packet (default: 16384)\0A -l <level> Specify a log level (err, warn, notice, info, debug)\0A -d <sec> Specify a reconnect delay in seconds\0A\0AJuggler will listen on all specified UDP ports and load-balance (round robin\0Afor now) packets across the specified targets.\0A\0A\00"
@.str.1 = [3 x i8] c"%s\00"
define void @usage(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
store i32 %0, i32* %2
store i8* getelementptr inbounds ([591 x i8], [591 x i8]* @.str, i64 0, i64 0), i8** %3
%4 = load i8*, i8** %3
%5 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%6 = load i32, i32* %2
%7 = call i32 @exit(i32 %6)
unreachable
}

LLVM IR (-O2):
@.str = [591 x i8] c"Usage:\09juggler -h\0A\09juggler [OPTIONS] -t <target> -s <source>\0A\0AOptions:\0A -h Print this help\0A -s <source> Source port to listen on. Option may repeat.\0A -t <target> Target [<ip>:]<port> to send to. Option may repeat.\0A\0A -m <max size> Maximum size packet (default: 16384)\0A -l <level> Specify a log level (err, warn, notice, info, debug)\0A -d <sec> Specify a reconnect delay in seconds\0A\0AJuggler will listen on all specified UDP ports and load-balance (round robin\0Afor now) packets across the specified targets.\0A\0A\00"
@.str.1 = [3 x i8] c"%s\00"
define void @usage(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([591 x i8], [591 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 %0)
unreachable
}