#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*/ puts(char *);
void print_usage() {
  puts("Usage: netlight_config [options] dns_name_or_address");
  puts("Options:");
  puts("NETWORK ADDRESS");
  puts("\t-d --dhcp (use dhcp for network config)");
  puts(" OR");
  puts("\t-a --address=static ip address");
  puts("\t-m --mask=network address mask");
  puts("\t-g --gateway=network gateway address");
  puts("\t-n --nameserver=network nameserver address");
  puts("mDNS / LLMNR NAME");
  puts("\t-l --label=mDNS name (16 chars max, base name only)");
  puts("ENCRYPTION KEY");
  puts("\t-k --key=AES key (16 hex bytes, eg: 00ffabcdef01233400ffabcdef012334 "
       ")");
  puts("\t\t Set key to all zeros to disable encryption (default)");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf24(%rip),%rdi
call   1030 <puts@plt>
lea    0xf38(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf66(%rip),%rdi
call   1030 <puts@plt>
lea    0xf86(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8c(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb5(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb8(%rip),%rdi
call   1030 <puts@plt>
lea    0xff4(%rip),%rdi
call   1030 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf11(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf12(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf27(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf69(%rip),%rdi
call   1030 <puts@plt>
lea    0xf89(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbb(%rip),%rdi
call   1030 <puts@plt>
lea    0xff7(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [53 x i8] c"Usage: netlight_config [options] dns_name_or_address\00"
@.str.1 = [9 x i8] c"Options:\00"
@.str.2 = [16 x i8] c"NETWORK ADDRESS\00"
@.str.3 = [41 x i8] c"\09-d --dhcp (use dhcp for network config)\00"
@.str.4 = [4 x i8] c" OR\00"
@.str.5 = [32 x i8] c"\09-a --address=static ip address\00"
@.str.6 = [32 x i8] c"\09-m --mask=network address mask\00"
@.str.7 = [38 x i8] c"\09-g --gateway=network gateway address\00"
@.str.8 = [44 x i8] c"\09-n --nameserver=network nameserver address\00"
@.str.9 = [18 x i8] c"mDNS / LLMNR NAME\00"
@.str.10 = [53 x i8] c"\09-l --label=mDNS name (16 chars max, base name only)\00"
@.str.11 = [15 x i8] c"ENCRYPTION KEY\00"
@.str.12 = [72 x i8] c"\09-k --key=AES key (16 hex bytes, eg: 00ffabcdef01233400ffabcdef012334 )\00"
@.str.13 = [56 x i8] c"\09\09 Set key to all zeros to disable encryption (default)\00"
define void @print_usage() {
%1 = call i32 @puts(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.13, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [53 x i8] c"Usage: netlight_config [options] dns_name_or_address\00"
@.str.1 = [9 x i8] c"Options:\00"
@.str.2 = [16 x i8] c"NETWORK ADDRESS\00"
@.str.3 = [41 x i8] c"\09-d --dhcp (use dhcp for network config)\00"
@.str.4 = [4 x i8] c" OR\00"
@.str.5 = [32 x i8] c"\09-a --address=static ip address\00"
@.str.6 = [32 x i8] c"\09-m --mask=network address mask\00"
@.str.7 = [38 x i8] c"\09-g --gateway=network gateway address\00"
@.str.8 = [44 x i8] c"\09-n --nameserver=network nameserver address\00"
@.str.9 = [18 x i8] c"mDNS / LLMNR NAME\00"
@.str.10 = [53 x i8] c"\09-l --label=mDNS name (16 chars max, base name only)\00"
@.str.11 = [15 x i8] c"ENCRYPTION KEY\00"
@.str.12 = [72 x i8] c"\09-k --key=AES key (16 hex bytes, eg: 00ffabcdef01233400ffabcdef012334 )\00"
@.str.13 = [56 x i8] c"\09\09 Set key to all zeros to disable encryption (default)\00"
define void @print_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.13, i64 0, i64 0))
ret void
}