#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*/ printf(char *, ...);
void DisplayUsage(void) {
  printf("Usage: acpixtract [option] <InputFile>\n");
  printf("\nExtract binary ACPI tables from text acpidump output\n");
  printf("Default invocation extracts all DSDTs and SSDTs\n");
  printf("Version %8.8X\n\n", 0x20110330);
  printf("Options:\n");
  printf(" -a                    Extract all tables, not just DSDT/SSDT\n");
  printf(" -l                    List table summaries, do not extract\n");
  printf(" -s<Signature>         Extract all tables named <Signature>\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<DisplayUsage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf4b(%rip),%rdi
mov    $0x20110330,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<DisplayUsage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xef3(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1d(%rip),%rdi
call   1040 <puts@plt>
lea    0xea4(%rip),%rdi
mov    $0x20110330,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf2e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf2b(%rip),%rdi
call   1040 <puts@plt>
lea    0xf5d(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8d(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [40 x i8] c"Usage: acpixtract [option] <InputFile>\0A\00"
@.str.1 = [55 x i8] c"\0AExtract binary ACPI tables from text acpidump output\0A\00"
@.str.2 = [49 x i8] c"Default invocation extracts all DSDTs and SSDTs\0A\00"
@.str.3 = [16 x i8] c"Version %8.8X\0A\0A\00"
@.str.4 = [10 x i8] c"Options:\0A\00"
@.str.5 = [63 x i8] c" -a Extract all tables, not just DSDT/SSDT\0A\00"
@.str.6 = [61 x i8] c" -l List table summaries, do not extract\0A\00"
@.str.7 = [61 x i8] c" -s<Signature> Extract all tables named <Signature>\0A\00"
@.str.8 = [2 x i8] c"\0A\00"
define void @DisplayUsage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 537985840)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.3 = [16 x i8] c"Version %8.8X\0A\0A\00"
@str = [39 x i8] c"Usage: acpixtract [option] <InputFile>\00"
@str.9 = [54 x i8] c"\0AExtract binary ACPI tables from text acpidump output\00"
@str.10 = [48 x i8] c"Default invocation extracts all DSDTs and SSDTs\00"
@str.11 = [9 x i8] c"Options:\00"
@str.12 = [62 x i8] c" -a Extract all tables, not just DSDT/SSDT\00"
@str.13 = [60 x i8] c" -l List table summaries, do not extract\00"
@str.14 = [60 x i8] c" -s<Signature> Extract all tables named <Signature>\00"
define void @DisplayUsage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.9, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.10, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 537985840)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.11, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.12, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.13, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.14, i64 0, i64 0))
%9 = tail call i32 @putchar(i32 10)
ret void
}