#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
void Header(FILE *out, const char *name) {
  fprintf(out,
          "// Created from bdf2c Version %s, (c) 2009, 2010 by Lutz Sammer\n"
          "//\tLicense AGPLv3: GNU Affero General Public License version 3\n"
          "\n#include \"glcd-fonts.h\"\n",
          "3");
  fprintf(out, "\n#include \"fonts-readable.h\"\n\n");
  fprintf(out, "static const unsigned char __%s_bitmap__[] __FLASH__ = {\n",
          name);
}


x86 assembly (clang, -O0):
<Header>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed5(%rip),%rsi
lea    0xf67(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf57(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xf60(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Header>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xecf(%rip),%rsi
lea    0xf61(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf55(%rip),%rdi
mov    $0x1e,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf5b(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [153 x i8] c"// Created from bdf2c Version %s, (c) 2009, 2010 by Lutz Sammer\0A//\09License AGPLv3: GNU Affero General Public License version 3\0A\0A#include \22glcd-fonts.h\22\0A\00"
@.str.1 = [2 x i8] c"3\00"
@.str.2 = [31 x i8] c"\0A#include \22fonts-readable.h\22\0A\0A\00"
@.str.3 = [58 x i8] c"static const unsigned char __%s_bitmap__[] __FLASH__ = {\0A\00"
define void @Header(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
store i32* %0, i32** %3
store i8* %1, i8** %4
%5 = load i32*, i32** %3
%6 = call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([153 x i8], [153 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32*, i32** %3
%8 = call i32 (i32*, i8*, ...) @fprintf(i32* %7, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32*, i32** %3
%10 = load i8*, i8** %4
%11 = call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0), i8* %10)
ret void
}

LLVM IR (-O2):
@.str = [153 x i8] c"// Created from bdf2c Version %s, (c) 2009, 2010 by Lutz Sammer\0A//\09License AGPLv3: GNU Affero General Public License version 3\0A\0A#include \22glcd-fonts.h\22\0A\00"
@.str.1 = [2 x i8] c"3\00"
@.str.2 = [31 x i8] c"\0A#include \22fonts-readable.h\22\0A\0A\00"
@.str.3 = [58 x i8] c"static const unsigned char __%s_bitmap__[] __FLASH__ = {\0A\00"
define void @Header(i32* nocapture %0, i8* %1) {
%3 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([153 x i8], [153 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i64 30, i64 1, i32* %0)
%5 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0), i8* %1)
ret void
}