#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("       -R -> reset system after shutdown\n", stderr);
  fputs("       -x -> return to the monitor doing...\n", stderr);
  fputs("       -m -> read a shutdown message from standard input\n", stderr);
  fputs("       -k -> stop an already running shutdown\n", stderr);
  fputs("       code -> boot monitor code to be executed\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    0xf2b(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e4c(%rip),%rax
mov    (%rax),%esi
lea    0xf43(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e37(%rip),%rax
mov    (%rax),%esi
lea    0xf68(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e22(%rip),%rax
mov    (%rax),%esi
lea    0xf82(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%esi
lea    0xf9e(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2df8(%rip),%rax
mov    (%rax),%esi
lea    0xfca(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2de3(%rip),%rax
mov    (%rax),%esi
lea    0xfee(%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    0xf4a(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf69(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf95(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfb6(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfd9(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x100c(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1037(%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 = [42 x i8] c" -R -> reset system after shutdown\0A\00"
@.str.4 = [45 x i8] c" -x -> return to the monitor doing...\0A\00"
@.str.5 = [58 x i8] c" -m -> read a shutdown message from standard input\0A\00"
@.str.6 = [47 x i8] c" -k -> stop an already running shutdown\0A\00"
@.str.7 = [49 x i8] c" code -> boot monitor code to be executed\0A\00"
@.str.8 = [65 x i8] c" time -> keyword ``now'', minutes before shutdown ``+5'',\0A\00"
@.str.9 = [57 x i8] c" or absolute time specification ``11:20''\0A\00"
@.str.10 = [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 ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stderr
%10 = call i32 @fputs(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stderr
%12 = call i32 @fputs(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stderr
%14 = call i32 @fputs(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @stderr
%16 = call i32 @fputs(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @stderr
%18 = call i32 @fputs(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.8, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @stderr
%20 = call i32 @fputs(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @stderr
%22 = call i32 @fputs(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i32 %21)
%23 = 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 = [42 x i8] c" -R -> reset system after shutdown\0A\00"
@.str.4 = [45 x i8] c" -x -> return to the monitor doing...\0A\00"
@.str.5 = [58 x i8] c" -m -> read a shutdown message from standard input\0A\00"
@.str.6 = [47 x i8] c" -k -> stop an already running shutdown\0A\00"
@.str.7 = [49 x i8] c" code -> boot monitor code to be executed\0A\00"
@.str.8 = [65 x i8] c" time -> keyword ``now'', minutes before shutdown ``+5'',\0A\00"
@.str.9 = [57 x i8] c" or absolute time specification ``11:20''\0A\00"
@.str.10 = [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 ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stderr
%10 = tail call i32 @fputs(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stderr
%12 = tail call i32 @fputs(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stderr
%14 = tail call i32 @fputs(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @stderr
%16 = tail call i32 @fputs(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @stderr
%18 = tail call i32 @fputs(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.8, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @stderr
%20 = tail call i32 @fputs(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @stderr
%22 = tail call i32 @fputs(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i32 %21)
%23 = tail call i32 @exit(i32 1)
unreachable
}