#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*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void usage() {
  fputs("Usage: shutdown [-hrRmk] [-x code] [time [message]]\n", stderr);
  fputs("       -h -> halt system after shutdown\n", stderr);
  fputs("       -r -> reboot system after shutdown\n", stderr);
  fputs("       -m -> read a shutdown message from standard input\n", stderr);
  fputs("       -k -> stop an already running shutdown\n", stderr);
  fputs("       time -> keyword ``now'', minutes before shutdown ``+5'',\n",
        stderr);
  fputs("               or absolute time specification ``11:20''\n", stderr);
  fputs("       message -> short shutdown message\n", stderr);
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%esi
lea    0xecc(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2ea0(%rip),%rax
mov    (%rax),%esi
lea    0xeec(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e8b(%rip),%rax
mov    (%rax),%esi
lea    0xf00(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e76(%rip),%rax
mov    (%rax),%esi
lea    0xf16(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%esi
lea    0xf3b(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e4c(%rip),%rax
mov    (%rax),%esi
lea    0xf55(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e37(%rip),%rax
mov    (%rax),%esi
lea    0xf81(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e22(%rip),%rax
mov    (%rax),%esi
lea    0xfa5(%rip),%rdi
call   1030 <fputs@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    0x2eb8(%rip),%rbx
mov    (%rbx),%esi
lea    0xecf(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xef6(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf11(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf2e(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf5a(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf7b(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfae(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfd9(%rip),%rdi
call   1030 <fputs@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [53 x i8] c"Usage: shutdown [-hrRmk] [-x code] [time [message]]\0A\00"
@stderr = global i32 0
@.str.1 = [41 x i8] c" -h -> halt system after shutdown\0A\00"
@.str.2 = [43 x i8] c" -r -> reboot system after shutdown\0A\00"
@.str.3 = [58 x i8] c" -m -> read a shutdown message from standard input\0A\00"
@.str.4 = [47 x i8] c" -k -> stop an already running shutdown\0A\00"
@.str.5 = [65 x i8] c" time -> keyword ``now'', minutes before shutdown ``+5'',\0A\00"
@.str.6 = [57 x i8] c" or absolute time specification ``11:20''\0A\00"
@.str.7 = [42 x i8] c" message -> short shutdown message\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fputs(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stderr
%4 = call i32 @fputs(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stderr
%6 = call i32 @fputs(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stderr
%8 = call i32 @fputs(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stderr
%10 = call i32 @fputs(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stderr
%12 = call i32 @fputs(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stderr
%14 = call i32 @fputs(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @stderr
%16 = call i32 @fputs(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [53 x i8] c"Usage: shutdown [-hrRmk] [-x code] [time [message]]\0A\00"
@stderr = global i32 0
@.str.1 = [41 x i8] c" -h -> halt system after shutdown\0A\00"
@.str.2 = [43 x i8] c" -r -> reboot system after shutdown\0A\00"
@.str.3 = [58 x i8] c" -m -> read a shutdown message from standard input\0A\00"
@.str.4 = [47 x i8] c" -k -> stop an already running shutdown\0A\00"
@.str.5 = [65 x i8] c" time -> keyword ``now'', minutes before shutdown ``+5'',\0A\00"
@.str.6 = [57 x i8] c" or absolute time specification ``11:20''\0A\00"
@.str.7 = [42 x i8] c" message -> short shutdown message\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stderr
%4 = tail call i32 @fputs(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stderr
%6 = tail call i32 @fputs(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stderr
%8 = tail call i32 @fputs(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stderr
%10 = tail call i32 @fputs(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stderr
%12 = tail call i32 @fputs(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stderr
%14 = tail call i32 @fputs(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @stderr
%16 = tail call i32 @fputs(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = tail call i32 @exit(i32 1)
unreachable
}