#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*/ printf(char *, char, char, char, char, char, char, char,
                          char, char);
void printGameboard(char board[]) {
  printf("   |                                                                 "
         "       |\n"
         "   |                                 |     |                         "
         "       |\n"
         "   |                              %c  |  %c  |  %c                   "
         "          |\n"
         "   |                            _____|_____|_____                    "
         "       |\n"
         "   |                                 |     |                         "
         "       |\n"
         "   |                              %c  |  %c  |  %c                   "
         "          |\n"
         "   |                            _____|_____|_____                    "
         "       |\n"
         "   |                                 |     |                         "
         "       |\n"
         "   |                              %c  |  %c  |  %c                   "
         "          |\n"
         "   |                                 |     |                         "
         "       |\n"
         "   |                                                                 "
         "       |\n",
         board[0], board[1], board[2], board[3], board[4], board[5], board[6],
         board[7], board[8]);
}


x86 assembly (clang, -O0):
<printGameboard>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x28,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%sil
mov    -0x10(%rbp),%rax
mov    0x1(%rax),%dl
mov    -0x10(%rbp),%rax
mov    0x2(%rax),%cl
mov    -0x10(%rbp),%rax
mov    0x3(%rax),%r8b
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%r9b
mov    -0x10(%rbp),%rax
mov    0x5(%rax),%bl
mov    -0x10(%rbp),%rax
mov    0x6(%rax),%r11b
mov    -0x10(%rbp),%rax
mov    0x7(%rax),%r10b
mov    -0x10(%rbp),%rax
lea    0xe9c(%rip),%rdi
movsbl %sil,%esi
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %r8b,%r8d
movsbl %r9b,%r9d
movsbl %bl,%ebx
mov    %ebx,(%rsp)
movsbl %r11b,%r11d
mov    %r11d,0x8(%rsp)
movsbl %r10b,%r10d
mov    %r10d,0x10(%rsp)
movsbl 0x8(%rax),%eax
mov    %eax,0x18(%rsp)
call   1030 <printf@plt>
add    $0x28,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<printGameboard>:
push   %rbx
movsbl (%rdi),%esi
movsbl 0x1(%rdi),%edx
movsbl 0x2(%rdi),%ecx
movsbl 0x3(%rdi),%r8d
movsbl 0x4(%rdi),%r9d
movsbl 0x5(%rdi),%r10d
movsbl 0x6(%rdi),%r11d
movsbl 0x7(%rdi),%eax
movsbl 0x8(%rdi),%ebx
lea    0xec1(%rip),%rdi
push   %rbx
push   %rax
push   %r11
push   %r10
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [868 x i8] c" | |\0A | | | |\0A | %c | %c | %c |\0A | _____|_____|_____ |\0A | | | |\0A | %c | %c | %c |\0A | _____|_____|_____ |\0A | | | |\0A | %c | %c | %c |\0A | | | |\0A | |\0A\00"
define void @printGameboard(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = getelementptr inbounds i8, i8* %3, i64 0
%5 = load i8, i8* %4
%6 = load i8*, i8** %2
%7 = getelementptr inbounds i8, i8* %6, i64 1
%8 = load i8, i8* %7
%9 = load i8*, i8** %2
%10 = getelementptr inbounds i8, i8* %9, i64 2
%11 = load i8, i8* %10
%12 = load i8*, i8** %2
%13 = getelementptr inbounds i8, i8* %12, i64 3
%14 = load i8, i8* %13
%15 = load i8*, i8** %2
%16 = getelementptr inbounds i8, i8* %15, i64 4
%17 = load i8, i8* %16
%18 = load i8*, i8** %2
%19 = getelementptr inbounds i8, i8* %18, i64 5
%20 = load i8, i8* %19
%21 = load i8*, i8** %2
%22 = getelementptr inbounds i8, i8* %21, i64 6
%23 = load i8, i8* %22
%24 = load i8*, i8** %2
%25 = getelementptr inbounds i8, i8* %24, i64 7
%26 = load i8, i8* %25
%27 = load i8*, i8** %2
%28 = getelementptr inbounds i8, i8* %27, i64 8
%29 = load i8, i8* %28
%30 = call i32 @printf(i8* getelementptr inbounds ([868 x i8], [868 x i8]* @.str, i64 0, i64 0), i8 signext %5, i8 signext %8, i8 signext %11, i8 signext %14, i8 signext %17, i8 signext %20, i8 signext %23, i8 signext %26, i8 signext %29)
ret void
}

LLVM IR (-O2):
@.str = [868 x i8] c" | |\0A | | | |\0A | %c | %c | %c |\0A | _____|_____|_____ |\0A | | | |\0A | %c | %c | %c |\0A | _____|_____|_____ |\0A | | | |\0A | %c | %c | %c |\0A | | | |\0A | |\0A\00"
define void @printGameboard(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = getelementptr inbounds i8, i8* %0, i64 1
%4 = load i8, i8* %3
%5 = getelementptr inbounds i8, i8* %0, i64 2
%6 = load i8, i8* %5
%7 = getelementptr inbounds i8, i8* %0, i64 3
%8 = load i8, i8* %7
%9 = getelementptr inbounds i8, i8* %0, i64 4
%10 = load i8, i8* %9
%11 = getelementptr inbounds i8, i8* %0, i64 5
%12 = load i8, i8* %11
%13 = getelementptr inbounds i8, i8* %0, i64 6
%14 = load i8, i8* %13
%15 = getelementptr inbounds i8, i8* %0, i64 7
%16 = load i8, i8* %15
%17 = getelementptr inbounds i8, i8* %0, i64 8
%18 = load i8, i8* %17
%19 = tail call i32 @printf(i8* getelementptr inbounds ([868 x i8], [868 x i8]* @.str, i64 0, i64 0), i8 signext %2, i8 signext %4, i8 signext %6, i8 signext %8, i8 signext %10, i8 signext %12, i8 signext %14, i8 signext %16, i8 signext %18)
ret void
}