#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*/ print_format0(char *, int /*<<< orphan*/);
int /*<<< orphan*/ print_format1(char *, int /*<<< orphan*/, char *);
void printf6(char *s, char *a1, char *a2, char *a3, char *a4, char *a5,
             char *a6) {
  print_format0(
      s, print_format1(
             s,
             print_format1(
                 s,
                 print_format1(
                     s,
                     print_format1(
                         s, print_format1(s, print_format1(s, 0, a1), a2), a3),
                     a4),
                 a5),
             a6));
}


x86 assembly (clang, -O0):
<printf6>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
xor    %esi,%esi
call   1030 <print_format1@plt>
mov    -0x60(%rbp),%rdi
mov    %eax,%esi
mov    -0x18(%rbp),%rdx
call   1030 <print_format1@plt>
mov    -0x58(%rbp),%rdi
mov    %eax,%esi
mov    -0x20(%rbp),%rdx
call   1030 <print_format1@plt>
mov    -0x50(%rbp),%rdi
mov    %eax,%esi
mov    -0x28(%rbp),%rdx
call   1030 <print_format1@plt>
mov    -0x48(%rbp),%rdi
mov    %eax,%esi
mov    -0x30(%rbp),%rdx
call   1030 <print_format1@plt>
mov    -0x40(%rbp),%rdi
mov    %eax,%esi
mov    0x10(%rbp),%rdx
call   1030 <print_format1@plt>
mov    -0x38(%rbp),%rdi
mov    %eax,%esi
call   1040 <print_format0@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printf6>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r15
mov    %r8,%r12
mov    %rcx,%r13
mov    %rdx,%rbp
mov    %rsi,%rdx
mov    %rdi,%rbx
mov    0x40(%rsp),%r14
xor    %esi,%esi
call   1030 <print_format1@plt>
mov    %rbx,%rdi
mov    %eax,%esi
mov    %rbp,%rdx
call   1030 <print_format1@plt>
mov    %rbx,%rdi
mov    %eax,%esi
mov    %r13,%rdx
call   1030 <print_format1@plt>
mov    %rbx,%rdi
mov    %eax,%esi
mov    %r12,%rdx
call   1030 <print_format1@plt>
mov    %rbx,%rdi
mov    %eax,%esi
mov    %r15,%rdx
call   1030 <print_format1@plt>
mov    %rbx,%rdi
mov    %eax,%esi
mov    %r14,%rdx
call   1030 <print_format1@plt>
mov    %rbx,%rdi
mov    %eax,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <print_format0@plt>

LLVM IR (-O0):
define void @printf6(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6) {
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
store i8* %0, i8** %8
store i8* %1, i8** %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i8* %4, i8** %12
store i8* %5, i8** %13
store i8* %6, i8** %14
%15 = load i8*, i8** %8
%16 = load i8*, i8** %8
%17 = load i8*, i8** %8
%18 = load i8*, i8** %8
%19 = load i8*, i8** %8
%20 = load i8*, i8** %8
%21 = load i8*, i8** %8
%22 = load i8*, i8** %9
%23 = call i32 @print_format1(i8* %21, i32 0, i8* %22)
%24 = load i8*, i8** %10
%25 = call i32 @print_format1(i8* %20, i32 %23, i8* %24)
%26 = load i8*, i8** %11
%27 = call i32 @print_format1(i8* %19, i32 %25, i8* %26)
%28 = load i8*, i8** %12
%29 = call i32 @print_format1(i8* %18, i32 %27, i8* %28)
%30 = load i8*, i8** %13
%31 = call i32 @print_format1(i8* %17, i32 %29, i8* %30)
%32 = load i8*, i8** %14
%33 = call i32 @print_format1(i8* %16, i32 %31, i8* %32)
%34 = call i32 @print_format0(i8* %15, i32 %33)
ret void
}

LLVM IR (-O2):
define void @printf6(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6) {
%8 = tail call i32 @print_format1(i8* %0, i32 0, i8* %1)
%9 = tail call i32 @print_format1(i8* %0, i32 %8, i8* %2)
%10 = tail call i32 @print_format1(i8* %0, i32 %9, i8* %3)
%11 = tail call i32 @print_format1(i8* %0, i32 %10, i8* %4)
%12 = tail call i32 @print_format1(i8* %0, i32 %11, i8* %5)
%13 = tail call i32 @print_format1(i8* %0, i32 %12, i8* %6)
%14 = tail call i32 @print_format0(i8* %0, i32 %13)
ret void
}