#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*/ getchar();
int /*<<< orphan*/ printf(char *);
void direct_warning() {
  printf("WARNING: You have requested direct mode. This only affects\n");
  printf("\t firmware updates. To do this safely you MUST be in\n");
  printf("\t SAFEMODE! This is only for those devices where we\n");
  printf("\t don't yet support live firmware updates. See the docs\n");
  printf("\t for information on how to boot into safemode.\n");
  printf("\t Press <enter> to continue.\n");
  getchar();
}


x86 assembly (clang, -O0):
<direct_warning>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
call   1030 <printf@plt>
lea    0xf85(%rip),%rdi
call   1030 <printf@plt>
lea    0xfaa(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<direct_warning>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf07(%rip),%rdi
call   1030 <puts@plt>
lea    0xf30(%rip),%rdi
call   1030 <puts@plt>
lea    0xf58(%rip),%rdi
call   1030 <puts@plt>
lea    0xf84(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <getchar@plt>

LLVM IR (-O0):
@.str = [60 x i8] c"WARNING: You have requested direct mode. This only affects\0A\00"
@.str.1 = [54 x i8] c"\09 firmware updates. To do this safely you MUST be in\0A\00"
@.str.2 = [53 x i8] c"\09 SAFEMODE! This is only for those devices where we\0A\00"
@.str.3 = [57 x i8] c"\09 don't yet support live firmware updates. See the docs\0A\00"
@.str.4 = [49 x i8] c"\09 for information on how to boot into safemode.\0A\00"
@.str.5 = [30 x i8] c"\09 Press <enter> to continue.\0A\00"
define void @direct_warning() {
%1 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (...) @getchar()
ret void
}

LLVM IR (-O2):
@str = [59 x i8] c"WARNING: You have requested direct mode. This only affects\00"
@str.6 = [53 x i8] c"\09 firmware updates. To do this safely you MUST be in\00"
@str.7 = [52 x i8] c"\09 SAFEMODE! This is only for those devices where we\00"
@str.8 = [56 x i8] c"\09 don't yet support live firmware updates. See the docs\00"
@str.9 = [48 x i8] c"\09 for information on how to boot into safemode.\00"
@str.10 = [29 x i8] c"\09 Press <enter> to continue.\00"
define void @direct_warning() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.6, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.7, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.8, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.9, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.10, i64 0, i64 0))
%7 = tail call i32 (...) @getchar()
ret void
}