#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 passwd {
  char *pw_name;
  char *pw_passwd;
  int pw_uid;
  int pw_gid;
  char *pw_gecos;
  char *pw_dir;
  char *pw_shell;
};

/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, char *, int, int, char *, char *,
                          char *);
void print_entry(struct passwd *pwd) {
  printf("%s\t%s\t%d\t%d\t%s\t%s\t%s\n", pwd->pw_name, pwd->pw_passwd,
         pwd->pw_uid, pwd->pw_gid, pwd->pw_gecos, pwd->pw_dir, pwd->pw_shell);
}


x86 assembly (clang, -O0):
<print_entry>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%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),%ecx
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%r8d
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%r9
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%r10
mov    -0x8(%rbp),%rax
mov    0x28(%rax),%rax
lea    0xea7(%rip),%rdi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_entry>:
sub    $0x18,%rsp
mov    (%rdi),%rsi
mov    0x8(%rdi),%rdx
mov    0x10(%rdi),%ecx
mov    0x14(%rdi),%r8d
mov    0x18(%rdi),%r9
movups 0x20(%rdi),%xmm0
movups %xmm0,(%rsp)
lea    0xecb(%rip),%rdi
call   1030 <printf@plt>
add    $0x18,%rsp
ret

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

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