#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 *, char *, char *);
int /*<<< orphan*/ stderr;
void usage(char *pname, char *msg) {
  fprintf(stderr,
          "%s: %s\nUsage: %s [ --server ADDR ]"
          "  [ --timeout N ]\n"
          "  [ --pause N ]\n"
          "  [ --random-seats | --id-order-seats ]\n"
          "  [ --debug ]\n"
          "  [ --disconnect-penalties N1,N2,N3 ]\n"
          "  [ --end-on-disconnect ]\n"
          "  [ --exit-on-disconnect ]\n"
          "  [ --save-on-exit ]\n"
          "  [ --option-file FILE ]\n"
          "  [ --load-game FILE ]\n"
          "  [ --no-id-required ]\n"
          "  [ --auth-basic AUTHINFO ]\n"
          "  [ --no-manager ]\n"
          "  [ --logfile FILE]\n"
          "  [ --hand-history ]\n"
          "  [ --no-special-scores ]\n"
          "  [ --seed N ]\n"
          "  [ --wallfile FILE ]\n"
          "  [ --nohist ]\n",
          pname, msg, pname);
  exit(1);
}


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

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [472 x i8] c"%s: %s\0AUsage: %s [ --server ADDR ] [ --timeout N ]\0A [ --pause N ]\0A [ --random-seats | --id-order-seats ]\0A [ --debug ]\0A [ --disconnect-penalties N1,N2,N3 ]\0A [ --end-on-disconnect ]\0A [ --exit-on-disconnect ]\0A [ --save-on-exit ]\0A [ --option-file FILE ]\0A [ --load-game FILE ]\0A [ --no-id-required ]\0A [ --auth-basic AUTHINFO ]\0A [ --no-manager ]\0A [ --logfile FILE]\0A [ --hand-history ]\0A [ --no-special-scores ]\0A [ --seed N ]\0A [ --wallfile FILE ]\0A [ --nohist ]\0A\00"
define void @usage(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %3
%7 = load i8*, i8** %4
%8 = load i8*, i8** %3
%9 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([472 x i8], [472 x i8]* @.str, i64 0, i64 0), i8* %6, i8* %7, i8* %8)
%10 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [472 x i8] c"%s: %s\0AUsage: %s [ --server ADDR ] [ --timeout N ]\0A [ --pause N ]\0A [ --random-seats | --id-order-seats ]\0A [ --debug ]\0A [ --disconnect-penalties N1,N2,N3 ]\0A [ --end-on-disconnect ]\0A [ --exit-on-disconnect ]\0A [ --save-on-exit ]\0A [ --option-file FILE ]\0A [ --load-game FILE ]\0A [ --no-id-required ]\0A [ --auth-basic AUTHINFO ]\0A [ --no-manager ]\0A [ --logfile FILE]\0A [ --hand-history ]\0A [ --no-special-scores ]\0A [ --seed N ]\0A [ --wallfile FILE ]\0A [ --nohist ]\0A\00"
define void @usage(i8* %0, i8* %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([472 x i8], [472 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1, i8* %0)
%5 = tail call i32 @exit(i32 1)
unreachable
}