#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 /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ version_print();
void usage() {
  version_print();
  printf("(Multicasts All-Kinds of Updating Operation for Servers on "
         "Administered Network)\n\n");
  printf("usage: makuosan [OPTION]\n");
  printf("  -d num       # loglevel(0-9)\n");
  printf("  -u uid       # user\n");
  printf("  -g gid       # group\n");
  printf("  -G gid,..    # groups\n");
  printf("  -b dir       # base dir\n");
  printf("  -p port      # port number       (default: 5000)\n");
  printf("  -m addr      # multicast address (default: 224.0.0.108)\n");
  printf("  -i addr      # interface address (default: 0.0.0.0)\n");
  printf("  -l addr      # listen address    (default: 127.0.0.1)\n");
  printf("  -U path      # unix domain socket\n");
  printf("  -k file      # key file (encrypt password)\n");
  printf("  -K file      # key file (console password)\n");
  printf("  -f num       # parallel send count(default: 5) \n");
  printf("  -R num       # recv buffer size [bytes]\n");
  printf("  -S num       # send buffer size [bytes]\n");
  printf("  -T num       # traffic rate     [Mbps]\n");
  printf("  -n           # don't fork\n");
  printf("  -r           # don't recv\n");
  printf("  -s           # don't send\n");
  printf("  -o           # don't listen (console off mode)\n");
  printf("  -O           # owner match limitation mode\n");
  printf("  -c --chroot  # chroot to base dir\n");
  printf("  -C --core    # enable core\n");
  printf("  -V --version # version\n");
  printf("  -h --help    # help\n\n");
  exit(0);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <version_print@plt>
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
call   1030 <printf@plt>
lea    0xf27(%rip),%rdi
call   1030 <printf@plt>
lea    0xf32(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf82(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb1(%rip),%rdi
call   1030 <printf@plt>
lea    0xfdc(%rip),%rdi
call   1030 <printf@plt>
lea    0x1009(%rip),%rdi
call   1030 <printf@plt>
lea    0x1022(%rip),%rdi
call   1030 <printf@plt>
lea    0x1044(%rip),%rdi
call   1030 <printf@plt>
lea    0x1066(%rip),%rdi
call   1030 <printf@plt>
lea    0x108d(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ac(%rip),%rdi
call   1030 <printf@plt>
lea    0x10cb(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e9(%rip),%rdi
call   1030 <printf@plt>
lea    0x10fa(%rip),%rdi
call   1030 <printf@plt>
lea    0x110b(%rip),%rdi
call   1030 <printf@plt>
lea    0x111c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1142(%rip),%rdi
call   1030 <printf@plt>
lea    0x1164(%rip),%rdi
call   1030 <printf@plt>
lea    0x117d(%rip),%rdi
call   1030 <printf@plt>
lea    0x118f(%rip),%rdi
call   1030 <printf@plt>
lea    0x119d(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
xor    %eax,%eax
call   1040 <version_print@plt>
lea    0xec1(%rip),%rdi
call   1030 <puts@plt>
lea    0xf07(%rip),%rdi
call   1030 <puts@plt>
lea    0xf14(%rip),%rdi
call   1030 <puts@plt>
lea    0xf27(%rip),%rdi
call   1030 <puts@plt>
lea    0xf31(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf48(%rip),%rdi
call   1030 <puts@plt>
lea    0xf56(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7d(%rip),%rdi
call   1030 <puts@plt>
lea    0xfab(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd5(%rip),%rdi
call   1030 <puts@plt>
lea    0x1001(%rip),%rdi
call   1030 <puts@plt>
lea    0x1019(%rip),%rdi
call   1030 <puts@plt>
lea    0x103a(%rip),%rdi
call   1030 <puts@plt>
lea    0x105b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1081(%rip),%rdi
call   1030 <puts@plt>
lea    0x109f(%rip),%rdi
call   1030 <puts@plt>
lea    0x10bd(%rip),%rdi
call   1030 <puts@plt>
lea    0x10da(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ea(%rip),%rdi
call   1030 <puts@plt>
lea    0x10fa(%rip),%rdi
call   1030 <puts@plt>
lea    0x110a(%rip),%rdi
call   1030 <puts@plt>
lea    0x112f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1150(%rip),%rdi
call   1030 <puts@plt>
lea    0x1168(%rip),%rdi
call   1030 <puts@plt>
lea    0x1179(%rip),%rdi
call   1030 <puts@plt>
lea    0x1186(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [83 x i8] c"(Multicasts All-Kinds of Updating Operation for Servers on Administered Network)\0A\0A\00"
@.str.1 = [26 x i8] c"usage: makuosan [OPTION]\0A\00"
@.str.2 = [32 x i8] c" -d num # loglevel(0-9)\0A\00"
@.str.3 = [23 x i8] c" -u uid # user\0A\00"
@.str.4 = [24 x i8] c" -g gid # group\0A\00"
@.str.5 = [25 x i8] c" -G gid,.. # groups\0A\00"
@.str.6 = [27 x i8] c" -b dir # base dir\0A\00"
@.str.7 = [52 x i8] c" -p port # port number (default: 5000)\0A\00"
@.str.8 = [59 x i8] c" -m addr # multicast address (default: 224.0.0.108)\0A\00"
@.str.9 = [55 x i8] c" -i addr # interface address (default: 0.0.0.0)\0A\00"
@.str.10 = [57 x i8] c" -l addr # listen address (default: 127.0.0.1)\0A\00"
@.str.11 = [37 x i8] c" -U path # unix domain socket\0A\00"
@.str.12 = [46 x i8] c" -k file # key file (encrypt password)\0A\00"
@.str.13 = [46 x i8] c" -K file # key file (console password)\0A\00"
@.str.14 = [51 x i8] c" -f num # parallel send count(default: 5) \0A\00"
@.str.15 = [43 x i8] c" -R num # recv buffer size [bytes]\0A\00"
@.str.16 = [43 x i8] c" -S num # send buffer size [bytes]\0A\00"
@.str.17 = [42 x i8] c" -T num # traffic rate [Mbps]\0A\00"
@.str.18 = [29 x i8] c" -n # don't fork\0A\00"
@.str.19 = [29 x i8] c" -r # don't recv\0A\00"
@.str.20 = [29 x i8] c" -s # don't send\0A\00"
@.str.21 = [50 x i8] c" -o # don't listen (console off mode)\0A\00"
@.str.22 = [46 x i8] c" -O # owner match limitation mode\0A\00"
@.str.23 = [37 x i8] c" -c --chroot # chroot to base dir\0A\00"
@.str.24 = [30 x i8] c" -C --core # enable core\0A\00"
@.str.25 = [26 x i8] c" -V --version # version\0A\00"
@.str.26 = [24 x i8] c" -h --help # help\0A\0A\00"
define void @usage() {
%1 = call i32 (...) @version_print()
%2 = call i32 @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.13, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.14, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.15, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.16, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.17, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.19, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.20, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.21, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.22, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.23, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.24, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.25, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.26, i64 0, i64 0))
%29 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [82 x i8] c"(Multicasts All-Kinds of Updating Operation for Servers on Administered Network)\0A\00"
@str.27 = [25 x i8] c"usage: makuosan [OPTION]\00"
@str.28 = [31 x i8] c" -d num # loglevel(0-9)\00"
@str.29 = [22 x i8] c" -u uid # user\00"
@str.30 = [23 x i8] c" -g gid # group\00"
@str.31 = [24 x i8] c" -G gid,.. # groups\00"
@str.32 = [26 x i8] c" -b dir # base dir\00"
@str.33 = [51 x i8] c" -p port # port number (default: 5000)\00"
@str.34 = [58 x i8] c" -m addr # multicast address (default: 224.0.0.108)\00"
@str.35 = [54 x i8] c" -i addr # interface address (default: 0.0.0.0)\00"
@str.36 = [56 x i8] c" -l addr # listen address (default: 127.0.0.1)\00"
@str.37 = [36 x i8] c" -U path # unix domain socket\00"
@str.38 = [45 x i8] c" -k file # key file (encrypt password)\00"
@str.39 = [45 x i8] c" -K file # key file (console password)\00"
@str.40 = [50 x i8] c" -f num # parallel send count(default: 5) \00"
@str.41 = [42 x i8] c" -R num # recv buffer size [bytes]\00"
@str.42 = [42 x i8] c" -S num # send buffer size [bytes]\00"
@str.43 = [41 x i8] c" -T num # traffic rate [Mbps]\00"
@str.44 = [28 x i8] c" -n # don't fork\00"
@str.45 = [28 x i8] c" -r # don't recv\00"
@str.46 = [28 x i8] c" -s # don't send\00"
@str.47 = [49 x i8] c" -o # don't listen (console off mode)\00"
@str.48 = [45 x i8] c" -O # owner match limitation mode\00"
@str.49 = [36 x i8] c" -c --chroot # chroot to base dir\00"
@str.50 = [29 x i8] c" -C --core # enable core\00"
@str.51 = [25 x i8] c" -V --version # version\00"
@str.52 = [23 x i8] c" -h --help # help\0A\00"
define void @usage() {
%1 = tail call i32 (...) @version_print()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.27, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.28, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.29, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.30, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.31, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.32, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.33, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.34, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.35, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.36, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.37, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.38, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.39, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.40, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.41, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.42, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.43, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.44, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.45, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.46, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.47, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.48, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.49, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.50, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.51, i64 0, i64 0))
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.52, i64 0, i64 0))
%29 = tail call i32 @exit(i32 0)
unreachable
}