#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 print_input(void *_input) {
  long *input = _input;
  printf("\n===========================\n");
  printf("%016lx %016lx %016lx %016lx: %s\n", input[0], input[1], input[2],
         input[3], "input/lhs");
  printf("%016lx %016lx %016lx %016lx: %s\n", input[4], input[5], input[6],
         input[7], "rhs");
  printf("\n");
}


x86 assembly (clang, -O0):
<print_input>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rcx
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%r8
lea    0xec6(%rip),%rdi
lea    0xee0(%rip),%r9
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rsi
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rcx
mov    -0x10(%rbp),%rax
mov    0x38(%rax),%r8
lea    0xe91(%rip),%rdi
lea    0xeb5(%rip),%r9
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_input>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xef1(%rip),%rdi
call   1040 <puts@plt>
mov    (%rbx),%rsi
mov    0x8(%rbx),%rdx
mov    0x10(%rbx),%rcx
mov    0x18(%rbx),%r8
lea    0xea7(%rip),%r14
lea    0xec1(%rip),%r9
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rbx),%rsi
mov    0x28(%rbx),%rdx
mov    0x30(%rbx),%rcx
mov    0x38(%rbx),%r8
lea    0xeaa(%rip),%r9
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"\0A===========================\0A\00"
@.str.1 = [33 x i8] c"%016lx %016lx %016lx %016lx: %s\0A\00"
@.str.2 = [10 x i8] c"input/lhs\00"
@.str.3 = [4 x i8] c"rhs\00"
@.str.4 = [2 x i8] c"\0A\00"
define void @print_input(i8* %0) {
%2 = alloca i8*
%3 = alloca i64*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = bitcast i8* %4 to i64*
store i64* %5, i64** %3
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%7 = load i64*, i64** %3
%8 = getelementptr inbounds i64, i64* %7, i64 0
%9 = load i64, i64* %8
%10 = load i64*, i64** %3
%11 = getelementptr inbounds i64, i64* %10, i64 1
%12 = load i64, i64* %11
%13 = load i64*, i64** %3
%14 = getelementptr inbounds i64, i64* %13, i64 2
%15 = load i64, i64* %14
%16 = load i64*, i64** %3
%17 = getelementptr inbounds i64, i64* %16, i64 3
%18 = load i64, i64* %17
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i64 %9, i64 %12, i64 %15, i64 %18, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%20 = load i64*, i64** %3
%21 = getelementptr inbounds i64, i64* %20, i64 4
%22 = load i64, i64* %21
%23 = load i64*, i64** %3
%24 = getelementptr inbounds i64, i64* %23, i64 5
%25 = load i64, i64* %24
%26 = load i64*, i64** %3
%27 = getelementptr inbounds i64, i64* %26, i64 6
%28 = load i64, i64* %27
%29 = load i64*, i64** %3
%30 = getelementptr inbounds i64, i64* %29, i64 7
%31 = load i64, i64* %30
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i64 %22, i64 %25, i64 %28, i64 %31, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [33 x i8] c"%016lx %016lx %016lx %016lx: %s\0A\00"
@.str.2 = [10 x i8] c"input/lhs\00"
@.str.3 = [4 x i8] c"rhs\00"
@str = [29 x i8] c"\0A===========================\00"
define void @print_input(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
%4 = load i64, i64* %2
%5 = getelementptr inbounds i8, i8* %0, i64 8
%6 = bitcast i8* %5 to i64*
%7 = load i64, i64* %6
%8 = getelementptr inbounds i8, i8* %0, i64 16
%9 = bitcast i8* %8 to i64*
%10 = load i64, i64* %9
%11 = getelementptr inbounds i8, i8* %0, i64 24
%12 = bitcast i8* %11 to i64*
%13 = load i64, i64* %12
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i64 %4, i64 %7, i64 %10, i64 %13, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%15 = getelementptr inbounds i8, i8* %0, i64 32
%16 = bitcast i8* %15 to i64*
%17 = load i64, i64* %16
%18 = getelementptr inbounds i8, i8* %0, i64 40
%19 = bitcast i8* %18 to i64*
%20 = load i64, i64* %19
%21 = getelementptr inbounds i8, i8* %0, i64 48
%22 = bitcast i8* %21 to i64*
%23 = load i64, i64* %22
%24 = getelementptr inbounds i8, i8* %0, i64 56
%25 = bitcast i8* %24 to i64*
%26 = load i64, i64* %25
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i64 %17, i64 %20, i64 %23, i64 %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%28 = tail call i32 @putchar(i32 10)
ret void
}