#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 */
struct mntent {
  char *mnt_fsname;
  char *mnt_dir;
  char *mnt_type;
  char *mnt_opts;
  int mnt_freq;
  int mnt_passno;
};

/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, char *, char *, char *, int, int);
void print_mount(const struct mntent *fs) {
  printf("%s %s %s %s %d %d\n", fs->mnt_fsname, fs->mnt_dir, fs->mnt_type,
         fs->mnt_opts, fs->mnt_freq, fs->mnt_passno);
}


x86 assembly (clang, -O0):
<print_mount>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rdx
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%rcx
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%r8
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%r9d
mov    -0x8(%rbp),%rax
mov    0x24(%rax),%eax
lea    0xeaf(%rip),%rdi
mov    %eax,(%rsp)
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_mount>:
push   %rax
mov    (%rdi),%rsi
mov    0x8(%rdi),%rdx
mov    0x10(%rdi),%rcx
mov    0x18(%rdi),%r8
mov    0x20(%rdi),%r9d
mov    0x24(%rdi),%eax
mov    %eax,(%rsp)
lea    0xecf(%rip),%rdi
call   1030 <printf@plt>
pop    %rax
ret

LLVM IR (-O0):
%struct.mntent = type { i8*, i8*, i8*, i8*, i32, i32 }
@.str = [19 x i8] c"%s %s %s %s %d %d\0A\00"
define void @print_mount(%struct.mntent* %0) {
%2 = alloca %struct.mntent*
store %struct.mntent* %0, %struct.mntent** %2
%3 = load %struct.mntent*, %struct.mntent** %2
%4 = getelementptr inbounds %struct.mntent, %struct.mntent* %3, i32 0, i32 0
%5 = load i8*, i8** %4
%6 = load %struct.mntent*, %struct.mntent** %2
%7 = getelementptr inbounds %struct.mntent, %struct.mntent* %6, i32 0, i32 1
%8 = load i8*, i8** %7
%9 = load %struct.mntent*, %struct.mntent** %2
%10 = getelementptr inbounds %struct.mntent, %struct.mntent* %9, i32 0, i32 2
%11 = load i8*, i8** %10
%12 = load %struct.mntent*, %struct.mntent** %2
%13 = getelementptr inbounds %struct.mntent, %struct.mntent* %12, i32 0, i32 3
%14 = load i8*, i8** %13
%15 = load %struct.mntent*, %struct.mntent** %2
%16 = getelementptr inbounds %struct.mntent, %struct.mntent* %15, i32 0, i32 4
%17 = load i32, i32* %16
%18 = load %struct.mntent*, %struct.mntent** %2
%19 = getelementptr inbounds %struct.mntent, %struct.mntent* %18, i32 0, i32 5
%20 = load i32, i32* %19
%21 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %8, i8* %11, i8* %14, i32 %17, i32 %20)
ret void
}

LLVM IR (-O2):
%struct.mntent = type { i8*, i8*, i8*, i8*, i32, i32 }
@.str = [19 x i8] c"%s %s %s %s %d %d\0A\00"
define void @print_mount(%struct.mntent* nocapture %0) {
%2 = getelementptr inbounds %struct.mntent, %struct.mntent* %0, i64 0, i32 0
%3 = load i8*, i8** %2
%4 = getelementptr inbounds %struct.mntent, %struct.mntent* %0, i64 0, i32 1
%5 = load i8*, i8** %4
%6 = getelementptr inbounds %struct.mntent, %struct.mntent* %0, i64 0, i32 2
%7 = load i8*, i8** %6
%8 = getelementptr inbounds %struct.mntent, %struct.mntent* %0, i64 0, i32 3
%9 = load i8*, i8** %8
%10 = getelementptr inbounds %struct.mntent, %struct.mntent* %0, i64 0, i32 4
%11 = load i32, i32* %10
%12 = getelementptr inbounds %struct.mntent, %struct.mntent* %0, i64 0, i32 5
%13 = load i32, i32* %12
%14 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %5, i8* %7, i8* %9, i32 %11, i32 %13)
ret void
}