#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*/ printLine3(char const *, char *, char const *);
int /*<<< orphan*/ sprintf(char *, char *, char const *, char const *,
                           char const *, char const *, char const *,
                           char const *, ...);
void printLine4(const char *begin, const char *content, const char *border,
                const char *end) {
  char bufferPerBlock[19] = "";
  sprintf(bufferPerBlock, "%s%s%s%s%s%s", content, content, content, content,
          content, content);
  char buffer[82] = "";
  sprintf(buffer, "%s%s%s%s%s%s%s", bufferPerBlock, border, bufferPerBlock,
          border, bufferPerBlock, border, bufferPerBlock);
  printLine3(begin, buffer, end);
}


x86 assembly (clang, -O0):
<printLine4>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x13,%edx
call   1030 <memset@plt>
lea    -0x40(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x10(%rbp),%r8
mov    -0x10(%rbp),%r9
mov    -0x10(%rbp),%r10
mov    -0x10(%rbp),%rax
lea    0xe84(%rip),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1050 <sprintf@plt>
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x52,%edx
call   1030 <memset@plt>
lea    -0xa0(%rbp),%rdi
lea    -0x40(%rbp),%rdx
mov    -0x18(%rbp),%rcx
lea    -0x40(%rbp),%r8
mov    -0x18(%rbp),%r9
lea    -0x40(%rbp),%r11
mov    -0x18(%rbp),%r10
lea    -0x40(%rbp),%rax
lea    0xe35(%rip),%rsi
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1050 <sprintf@plt>
mov    -0x8(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1040 <printLine3@plt>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printLine4>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x80,%rsp
mov    %rcx,%r14
mov    %rdx,%rbx
mov    %rsi,%rcx
mov    %rdi,%r15
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movl   $0x0,0xf(%rsp)
lea    0xeb0(%rip),%rsi
mov    %rsp,%r12
mov    %r12,%rdi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
xor    %eax,%eax
push   %rcx
push   %rcx
call   1040 <sprintf@plt>
add    $0x10,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movw   $0x0,0x70(%rsp)
sub    $0x8,%rsp
lea    0xe64(%rip),%rsi
lea    0x28(%rsp),%r13
mov    %r13,%rdi
mov    %r12,%rdx
mov    %rbx,%rcx
mov    %r12,%r8
mov    %rbx,%r9
xor    %eax,%eax
push   %r12
push   %rbx
push   %r12
call   1040 <sprintf@plt>
add    $0x20,%rsp
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1030 <printLine3@plt>
add    $0x80,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [13 x i8] c"%s%s%s%s%s%s\00"
@.str.1 = [15 x i8] c"%s%s%s%s%s%s%s\00"
define void @printLine4(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca [19 x i8]
%6 = alloca [82 x i8]
%7 = getelementptr inbounds [19 x i8], [19 x i8]* %5, i64 0, i64 0
%8 = call i32 (i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, ...) @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %1, i8* %1, i8* %1, i8* %1, i8* %1)
%9 = getelementptr inbounds [82 x i8], [82 x i8]* %6, i64 0, i64 0
%10 = call i32 (i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, ...) @sprintf(i8* %9, i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* %7, i8* %2, i8* %7, i8* %2, i8* %7, i8* %2, i8* %7)
%11 = call i32 @printLine3(i8* %0, i8* %9, i8* %3)
ret void
}