#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 printf7(char *s, char *a1, char *a2, char *a3, char *a4, char *a5,
             char *a6, char *a7) {
  print_format0(
      s,
      print_format1(
          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),
          a7));
}


x86 assembly (clang, -O0):
<printf7>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    0x18(%rbp),%rax
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),%rax
mov    %rax,-0x68(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
xor    %esi,%esi
call   1030 <print_format1@plt>
mov    -0x68(%rbp),%rdi
mov    %eax,%esi
mov    -0x18(%rbp),%rdx
call   1030 <print_format1@plt>
mov    -0x60(%rbp),%rdi
mov    %eax,%esi
mov    -0x20(%rbp),%rdx
call   1030 <print_format1@plt>
mov    -0x58(%rbp),%rdi
mov    %eax,%esi
mov    -0x28(%rbp),%rdx
call   1030 <print_format1@plt>
mov    -0x50(%rbp),%rdi
mov    %eax,%esi
mov    -0x30(%rbp),%rdx
call   1030 <print_format1@plt>
mov    -0x48(%rbp),%rdi
mov    %eax,%esi
mov    0x10(%rbp),%rdx
call   1030 <print_format1@plt>
mov    -0x40(%rbp),%rdi
mov    %eax,%esi
mov    0x18(%rbp),%rdx
call   1030 <print_format1@plt>
mov    -0x38(%rbp),%rdi
mov    %eax,%esi
call   1040 <print_format0@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printf7>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r15
mov    %r8,%r13
mov    %rcx,%rbp
mov    %rdx,%r14
mov    %rsi,%rdx
mov    %rdi,%rbx
mov    0x48(%rsp),%rax
mov    %rax,(%rsp)
mov    0x40(%rsp),%r12
xor    %esi,%esi
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
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    %r15,%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    (%rsp),%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 @printf7(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7) {
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
store i8* %0, i8** %9
store i8* %1, i8** %10
store i8* %2, i8** %11
store i8* %3, i8** %12
store i8* %4, i8** %13
store i8* %5, i8** %14
store i8* %6, i8** %15
store i8* %7, i8** %16
%17 = load i8*, i8** %9
%18 = load i8*, i8** %9
%19 = load i8*, i8** %9
%20 = load i8*, i8** %9
%21 = load i8*, i8** %9
%22 = load i8*, i8** %9
%23 = load i8*, i8** %9
%24 = load i8*, i8** %9
%25 = load i8*, i8** %10
%26 = call i32 @print_format1(i8* %24, i32 0, i8* %25)
%27 = load i8*, i8** %11
%28 = call i32 @print_format1(i8* %23, i32 %26, i8* %27)
%29 = load i8*, i8** %12
%30 = call i32 @print_format1(i8* %22, i32 %28, i8* %29)
%31 = load i8*, i8** %13
%32 = call i32 @print_format1(i8* %21, i32 %30, i8* %31)
%33 = load i8*, i8** %14
%34 = call i32 @print_format1(i8* %20, i32 %32, i8* %33)
%35 = load i8*, i8** %15
%36 = call i32 @print_format1(i8* %19, i32 %34, i8* %35)
%37 = load i8*, i8** %16
%38 = call i32 @print_format1(i8* %18, i32 %36, i8* %37)
%39 = call i32 @print_format0(i8* %17, i32 %38)
ret void
}

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