#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*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void bu_invalid_argument(char *name, char *arg) {
  fputs(name, stderr);
  fputs(": Invalid argument: ", stderr);
  fputs(arg, stderr);
  fputs("\n", stderr);
  fputs("See '", stderr);
  fputs(name, stderr);
  fputs(" --help' for usage information.\n", stderr);
}


x86 assembly (clang, -O0):
<bu_invalid_argument>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2eb5(%rip),%rax
mov    (%rax),%esi
call   1030 <fputs@plt>
mov    0x2ea7(%rip),%rax
mov    (%rax),%esi
lea    0xebe(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x10(%rbp),%rdi
mov    0x2e8e(%rip),%rax
mov    (%rax),%esi
call   1030 <fputs@plt>
mov    0x2e80(%rip),%rax
mov    (%rax),%esi
lea    0xed1(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e6b(%rip),%rax
mov    (%rax),%esi
lea    0xe97(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rdi
mov    0x2e52(%rip),%rax
mov    (%rax),%esi
call   1030 <fputs@plt>
mov    0x2e44(%rip),%rax
mov    (%rax),%esi
lea    0xe76(%rip),%rdi
call   1030 <fputs@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bu_invalid_argument>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%r15
mov    0x2ebe(%rip),%rbx
mov    (%rbx),%esi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xece(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
mov    %r14,%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xef0(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xebd(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
mov    %r15,%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xeab(%rip),%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <fputs@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [21 x i8] c": Invalid argument: \00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [6 x i8] c"See '\00"
@.str.3 = [33 x i8] c" --help' for usage information.\0A\00"
define void @bu_invalid_argument(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i32, i32* @stderr
%7 = call i32 @fputs(i8* %5, i32 %6)
%8 = load i32, i32* @stderr
%9 = call i32 @fputs(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = load i8*, i8** %4
%11 = load i32, i32* @stderr
%12 = call i32 @fputs(i8* %10, i32 %11)
%13 = load i32, i32* @stderr
%14 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @stderr
%16 = call i32 @fputs(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %15)
%17 = load i8*, i8** %3
%18 = load i32, i32* @stderr
%19 = call i32 @fputs(i8* %17, i32 %18)
%20 = load i32, i32* @stderr
%21 = call i32 @fputs(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 %20)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [21 x i8] c": Invalid argument: \00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [6 x i8] c"See '\00"
@.str.3 = [33 x i8] c" --help' for usage information.\0A\00"
define void @bu_invalid_argument(i8* %0, i8* %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fputs(i8* %0, i32 %3)
%5 = load i32, i32* @stderr
%6 = tail call i32 @fputs(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stderr
%8 = tail call i32 @fputs(i8* %1, i32 %7)
%9 = load i32, i32* @stderr
%10 = tail call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stderr
%12 = tail call i32 @fputs(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stderr
%14 = tail call i32 @fputs(i8* %0, i32 %13)
%15 = load i32, i32* @stderr
%16 = tail call i32 @fputs(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 %15)
ret void
}